/* Shop Diamonds by Shape 板块样式 */
.gemstones-section {
    padding: 80px 0;
    background-color: #000000;
    position: relative;
}

.gemstones-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: rgba(255, 255, 255, 0.2);
}

.gemstones-container {
    max-width: 1290px;
    margin: 0 auto;
    padding: 0 20px;
}

.gemstones-layout {
    display: grid;
    grid-template-columns: 45% 55%;
    gap: 80px;
    align-items: start;
}

/* 左侧：标题和展示图 */
.gemstones-left {
    position: sticky;
    top: 100px;
}

.gemstones-title {
    font-family: 'EB Garamond', serif;
    font-size: 2.8rem;
    font-weight: 400;
    color: #ffffff;
    margin: 0 0 40px 0;
    line-height: 1.2;
    letter-spacing: 0.5px;
}

.gemstones-featured-image {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 12px;
    /* background-color: #1a1a1a;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5); */
}

.gemstones-image-link {
    display: block;
    width: 100%;
    height: 100%;
}

#gemstone-main-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* transition: opacity 0.4s ease; */
}

/* 右侧：钻石形状网格 */
.gemstones-right {
    padding-top: 20px;
}

.gemstones-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.gemstone-card {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    padding: 24px 28px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    gap: 20px;
}

.gemstone-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateX(8px);
    box-shadow: 0 4px 20px rgba(255, 255, 255, 0.1);
}

.gemstone-icon {
    width: 95px;
    height: 95px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    /* background: rgba(255, 255, 255, 0.08); */
    /* border-radius: 8px; */
    /* padding: 10px; */
}

.gemstone-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 1;
    border-radius: 50px;
}

/* .gemstone-card:hover .gemstone-icon {
    background: rgba(255, 255, 255, 0.12);
} */

.gemstone-card:hover .gemstone-icon img {
    transform: scale(1.1);
    transition: all 0.3s ease;
}

.gemstone-name {
    font-size: 16px;
    font-weight: 500;
    color: #ffffff;
    text-align: left;
    margin: 0;
    line-height: 1.3;
    letter-spacing: 0.3px;
}

.gemstone-card:hover .gemstone-name {
    color: #ffffff;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .gemstones-layout {
        gap: 60px;
        grid-template-columns: 40% 60%;
    }
    
    .gemstones-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }
}

@media (max-width: 992px) {
    .gemstones-layout {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    
    .gemstones-left {
        position: relative;
        top: 0;
        max-width: 600px;
        margin: 0 auto;
    }
    
    .gemstones-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .gemstones-section {
        padding: 60px 0;
    }
    
    .gemstones-title {
        font-size: 2.2rem;
        margin-bottom: 30px;
    }

    .gemstones-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 8px;
    }

    .gemstone-card {
        flex-direction: column;
        padding: 12px 8px;
        gap: 8px;
    }

    .gemstone-card:hover {
        transform: translateY(-4px);
    }

    .gemstone-icon {
        width: 45px;
        height: 45px;
        padding: 6px;
    }

    .gemstone-name {
        font-size: 11px;
        text-align: center;
        line-height: 1.2;
    }
}

@media (max-width: 480px) {
    .gemstones-container {
        padding: 0 15px;
    }

    .gemstones-title {
        font-size: 1.8rem;
    }

    .gemstones-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 6px;
    }

    .gemstone-card {
        padding: 10px 6px;
        gap: 6px;
    }

    .gemstone-icon {
        width: 40px;
        height: 40px;
        padding: 5px;
    }

    .gemstone-name {
        font-size: 10px;
    }
}
