:root {
    --color-bg: #0a0a0a;
    --color-bg-secondary: #141414;
    --color-gold: #c9a227;
    --color-gold-light: #e8d5a3;
    --color-bronze: #b87333;
    --color-cream: #f5f0e8;
    --color-text: #e8e8e8;
    --color-text-muted: #888;
    --font-display: 'Playfair Display', serif;
    --font-body: 'Noto Sans SC', sans-serif;
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    background: var(--color-bg);
    color: var(--color-text);
    line-height: 1.7;
}

/* 导航栏 */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1.2rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(10,10,10,0.98);
    backdrop-filter: blur(20px);
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: 12px;
}

.logo-img {
    height: 40px;
    width: auto;
    object-fit: contain;
    border-radius: 8px;
}

.logo-text {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 600;
    background: linear-gradient(135deg, var(--color-gold), var(--color-gold-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 2px;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    color: var(--color-text);
    text-decoration: none;
    font-size: 0.9rem;
}

/* 页面标题 */
.page-header {
    padding: 8rem 5% 3rem;
    text-align: center;
    background: linear-gradient(135deg, #1a1410 0%, #0a0a0a 100%);
}

.page-header h1 {
    font-family: var(--font-display);
    font-size: 2.5rem;
    color: var(--color-cream);
    margin-bottom: 1rem;
}

.page-header p {
    color: var(--color-text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* 产品网格 */
.products-section {
    padding: 3rem 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

.product-card {
    background: var(--color-bg-secondary);
    border-radius: 8px;
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid rgba(201,162,39,0.1);
}

.product-card:hover {
    transform: translateY(-8px);
    border-color: rgba(201,162,39,0.3);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.product-image {
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
    background: linear-gradient(135deg, #1a1410, #2d1f16);
    position: relative;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

/* 库存标签 */
.stock-tag {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    z-index: 2;
}
.stock-tag.in-stock {
    background: rgba(82, 196, 26, 0.9);
    color: #fff;
}
.stock-tag.pre-order {
    background: rgba(250, 140, 22, 0.9);
    color: #fff;
}
.stock-tag.out-stock {
    background: rgba(255, 77, 79, 0.9);
    color: #fff;
}

/* 应用场景标签 */
.product-scenes {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 8px 0;
}
.product-scenes span {
    padding: 3px 8px;
    background: rgba(201,162,39,0.1);
    border: 1px solid rgba(201,162,39,0.2);
    border-radius: 4px;
    font-size: 11px;
    color: var(--color-gold);
}

.product-info {
    padding: 1.5rem;
}

.product-title {
    font-size: 1rem;
    color: var(--color-cream);
    margin-bottom: 0.5rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
}

.product-price {
    font-size: 1.3rem;
    color: var(--color-gold);
    font-weight: 600;
}

.product-price span {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    font-weight: 400;
}

.product-sold {
    font-size: 0.8rem;
    color: var(--color-bronze);
}

.product-badge {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    background: rgba(201,162,39,0.15);
    color: var(--color-gold);
    font-size: 0.75rem;
    border-radius: 20px;
    margin-bottom: 0.5rem;
}

/* 页脚 */
footer {
    background: var(--color-bg-secondary);
    padding: 3rem 5%;
    text-align: center;
    margin-top: 4rem;
}

footer p {
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

/* 响应式 */
@media (max-width: 768px) {
    .logo-img {
        height: 32px;
    }

    .logo-text {
        font-size: 1.4rem;
    }

    .page-header h1 {
        font-size: 1.8rem;
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .product-info {
        padding: 1rem;
    }

    .product-title {
        font-size: 0.85rem;
    }

    .product-price {
        font-size: 1rem;
    }
}
