/* 宝格丽风格珠宝商城样式 */

/* 基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #1a1a1a;
    --secondary-color: #8b7355;
    --gold-color: #d4af37;
    --text-dark: #2c2c2c;
    --text-light: #666666;
    --bg-light: #f8f8f8;
    --border-color: #e5e5e5;
    --white: #ffffff;
    --transition: all 0.3s ease;
}

body {
    font-family: 'Noto Serif SC', serif;
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--white);
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 14px 40px;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 2px;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--secondary-color);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

.text-center {
    text-align: center;
}

/* 头部样式 */
.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.header-top {
    background-color: var(--bg-light);
    padding: 8px 0;
    font-size: 12px;
}

.header-top-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-links a {
    margin-left: 20px;
    color: var(--text-light);
}

.header-links a:hover {
    color: var(--primary-color);
}

.header-main {
    padding: 20px 0;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    font-family: 'Playfair Display', serif;
    font-size: 32px;
    font-weight: 700;
    letter-spacing: 3px;
    color: var(--primary-color);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 40px;
}

.nav-menu li {
    position: relative;
}

.nav-menu a {
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text-dark);
    padding: 10px 0;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--gold-color);
}

/* 下拉菜单 */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--white);
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    list-style: none;
    padding: 10px 0;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li a {
    display: block;
    padding: 10px 20px;
    text-transform: none;
}

.dropdown-menu li a:hover {
    background-color: var(--bg-light);
}

/* 导航图标 */
.nav-icons {
    display: flex;
    gap: 20px;
}

.icon-link {
    position: relative;
    color: var(--text-dark);
    padding: 5px;
}

.icon-link:hover {
    color: var(--gold-color);
}

.cart-count {
    position: absolute;
    top: -5px;
    right: -8px;
    background-color: var(--gold-color);
    color: var(--white);
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 10px;
}

/* 主横幅 */
.hero {
    position: relative;
    height: 600px;
    overflow: hidden;
}

.hero-slide {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: var(--white);
    z-index: 2;
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: 64px;
    font-weight: 700;
    letter-spacing: 4px;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-subtitle {
    font-size: 20px;
    letter-spacing: 2px;
    margin-bottom: 40px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

/* 章节样式 */
.section-header {
    text-align: center;
    margin-bottom: 60px;
    padding-top: 80px;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 42px;
    font-weight: 600;
    letter-spacing: 2px;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.section-subtitle {
    font-size: 16px;
    color: var(--text-light);
    letter-spacing: 1px;
}

/* 分类网格 */
.categories-section {
    padding-bottom: 80px;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.category-card {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    transition: var(--transition);
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.category-image {
    aspect-ratio: 1;
    overflow: hidden;
}

.category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.category-card:hover .category-image img {
    transform: scale(1.1);
}

.category-name {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
    color: var(--white);
    padding: 30px 20px 20px;
    font-size: 20px;
    font-weight: 500;
    letter-spacing: 1px;
    text-align: center;
}

/* 商品网格 */
.featured-section {
    background-color: var(--bg-light);
    padding-bottom: 80px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 40px;
}

.product-card {
    background-color: var(--white);
    border-radius: 4px;
    overflow: hidden;
    transition: var(--transition);
}

.product-card:hover {
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transform: translateY(-5px);
}

.product-image {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    display: block;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: var(--gold-color);
    color: var(--white);
    padding: 5px 15px;
    font-size: 12px;
    letter-spacing: 1px;
    border-radius: 2px;
}

.product-info {
    padding: 20px;
}

.product-category {
    font-size: 12px;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
    display: block;
    margin-bottom: 8px;
}

.product-name {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 12px;
    min-height: 48px;
}

.product-name a:hover {
    color: var(--gold-color);
}

.product-price {
    display: flex;
    align-items: center;
    gap: 10px;
}

.price-current {
    font-size: 20px;
    font-weight: 600;
    color: var(--primary-color);
}

.price-original {
    font-size: 16px;
    color: var(--text-light);
    text-decoration: line-through;
}

/* 特色功能 */
.features-section {
    padding: 80px 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.feature-item {
    text-align: center;
    padding: 20px;
}

.feature-icon {
    color: var(--gold-color);
    margin-bottom: 20px;
}

.feature-item h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
    letter-spacing: 1px;
}

.feature-item p {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.8;
}

/* 页脚 */
.footer {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4 {
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: rgba(255,255,255,0.7);
    font-size: 14px;
}

.footer-col ul li a:hover {
    color: var(--gold-color);
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-icon {
    display: inline-block;
    padding: 8px 16px;
    background-color: rgba(255,255,255,0.1);
    border-radius: 4px;
    font-size: 14px;
    transition: var(--transition);
}

.social-icon:hover {
    background-color: var(--gold-color);
    color: var(--white);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 14px;
    color: rgba(255,255,255,0.6);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .hero-title {
        font-size: 36px;
    }
    
    .hero-subtitle {
        font-size: 16px;
    }
    
    .section-title {
        font-size: 32px;
    }
    
    .nav-menu {
        display: none;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 20px;
    }
}


