/* OZON 茶叶独立站 - 东方禅意奢华风 */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=Source+Sans+3:wght@300;400;600&display=swap');

:root {
    /* 东方禅意配色 */
    --ink-black: #1a1a1a;
    --deep-green: #2d3a2d;
    --forest-green: #3d4f3d;
    --sage-green: #7a8b7a;
    --warm-gold: #c9a962;
    --soft-gold: #d4b978;
    --rice-paper: #faf8f3;
    --warm-white: #f5f2ed;
    --stone-gray: #8a8680;
    --shadow: rgba(45, 58, 45, 0.08);
    --shadow-deep: rgba(45, 58, 45, 0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Source Sans 3', -apple-system, sans-serif;
    background: var(--rice-paper);
    color: var(--ink-black);
    line-height: 1.7;
    font-weight: 300;
}

/* 优雅的滚动条 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--warm-white);
}

::-webkit-scrollbar-thumb {
    background: var(--sage-green);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--forest-green);
}

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

/* ===== Header - 极简奢华 ===== */
.header {
    background: linear-gradient(180deg, var(--rice-paper) 0%, transparent 100%);
    padding: 40px 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    transition: all 0.4s ease;
}

.header.scrolled {
    background: rgba(250, 248, 243, 0.95);
    backdrop-filter: blur(20px);
    padding: 20px 0;
    box-shadow: 0 2px 40px var(--shadow);
}

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

.logo {
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.logo h1 {
    font-family: 'Playfair Display', serif;
    font-size: 28px;
    font-weight: 600;
    color: var(--deep-green);
    letter-spacing: 3px;
    text-transform: uppercase;
}

.logo span {
    font-size: 11px;
    letter-spacing: 4px;
    color: var(--sage-green);
    margin-top: 4px;
    text-transform: uppercase;
}

.nav {
    display: flex;
    gap: 40px;
}

.nav a {
    text-decoration: none;
    color: var(--forest-green);
    font-size: 13px;
    letter-spacing: 2px;
    text-transform: uppercase;
    position: relative;
    padding: 8px 0;
    transition: color 0.3s ease;
}

.nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--warm-gold);
    transition: width 0.3s ease;
}

.nav a:hover {
    color: var(--deep-green);
}

.nav a:hover::after {
    width: 100%;
}

/* ===== Hero Section - 水墨意境 ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: var(--rice-paper);
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 80%;
    height: 150%;
    background: radial-gradient(ellipse at center, rgba(201, 169, 98, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 60%;
    height: 100%;
    background: radial-gradient(ellipse at center, rgba(45, 58, 45, 0.05) 0%, transparent 60%);
    pointer-events: none;
}

.hero-content {
    text-align: center;
    position: relative;
    z-index: 1;
    padding: 120px 0;
}

.hero-subtitle {
    font-size: 12px;
    letter-spacing: 6px;
    text-transform: uppercase;
    color: var(--sage-green);
    margin-bottom: 24px;
    animation: fadeInUp 1s ease;
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: 72px;
    font-weight: 400;
    color: var(--deep-green);
    margin-bottom: 24px;
    line-height: 1.2;
    animation: fadeInUp 1s ease 0.2s both;
}

.hero-title span {
    font-style: italic;
    color: var(--warm-gold);
}

.hero-desc {
    font-size: 18px;
    color: var(--stone-gray);
    max-width: 600px;
    margin: 0 auto 40px;
    animation: fadeInUp 1s ease 0.4s both;
}

.hero-cta {
    display: inline-block;
    padding: 18px 48px;
    background: var(--deep-green);
    color: var(--rice-paper);
    text-decoration: none;
    font-size: 12px;
    letter-spacing: 3px;
    text-transform: uppercase;
    transition: all 0.4s ease;
    animation: fadeInUp 1s ease 0.6s both;
    position: relative;
    overflow: hidden;
}

.hero-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--warm-gold);
    transition: left 0.4s ease;
    z-index: -1;
}

.hero-cta:hover {
    color: var(--ink-black);
}

.hero-cta:hover::before {
    left: 0;
}

/* ===== Products Section - 画廊式展示 ===== */
.products-section {
    padding: 120px 0;
    background: transparent;
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-subtitle {
    font-size: 11px;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--sage-green);
    margin-bottom: 16px;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 48px;
    font-weight: 400;
    color: var(--deep-green);
}

/* 瀑布流网格 */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 40px;
}

.product-card {
    background: transparent;
    position: relative;
    overflow: hidden;
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.product-card:nth-child(even) {
    margin-top: 60px;
}

.product-card:hover {
    transform: translateY(-8px);
}

.product-image-wrapper {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 300px;
}

.product-image {
    max-width: 100%;
    max-height: 400px;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: transform 0.8s cubic-bezier(0.23, 1, 0.32, 1);
    display: block;
}

.product-image.no-image {
    min-height: 300px;
    width: 100%;
    background: var(--warm-white);
}

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

.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(45, 58, 45, 0.6) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 30px;
}

.product-card:hover .product-overlay {
    opacity: 1;
}

.btn-view {
    padding: 14px 32px;
    background: var(--rice-paper);
    color: var(--deep-green);
    text-decoration: none;
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.4s ease 0.1s;
}

.product-card:hover .btn-view {
    transform: translateY(0);
    opacity: 1;
}

.product-info {
    padding: 28px 0;
}

.product-brand {
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--sage-green);
    margin-bottom: 8px;
}

.product-name {
    font-family: 'Playfair Display', serif;
    font-size: 22px;
    font-weight: 400;
    color: var(--deep-green);
    margin-bottom: 12px;
    line-height: 1.4;
}

.product-name a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.product-image-link {
    display: block;
    text-decoration: none;
}

.product-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid rgba(122, 139, 122, 0.2);
}

.product-price {
    display: flex;
    align-items: baseline;
    gap: 12px;
}

.price-current {
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    font-weight: 600;
    color: var(--deep-green);
}

.price-original {
    font-size: 14px;
    color: var(--stone-gray);
    text-decoration: line-through;
}

.btn-ozon {
    padding: 10px 20px;
    background: transparent;
    border: 1px solid var(--sage-green);
    color: var(--forest-green);
    text-decoration: none;
    font-size: 10px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.btn-ozon:hover {
    background: var(--deep-green);
    border-color: var(--deep-green);
    color: var(--rice-paper);
}

/* ===== Product Detail - 沉浸式详情 ===== */
.product-detail {
    min-height: 100vh;
    padding: 140px 0 80px;
    background: var(--rice-paper);
}

.breadcrumb {
    margin-bottom: 60px;
}

.breadcrumb a {
    color: var(--sage-green);
    text-decoration: none;
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: var(--deep-green);
}

.detail-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 80px;
    align-items: start;
}

.detail-gallery {
    position: sticky;
    top: 140px;
}

.detail-main-image {
    width: 100%;
    max-height: 600px;
    object-fit: contain;
    margin-bottom: 20px;
}

.detail-thumbnails {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.detail-thumb {
    width: 80px;
    height: 80px;
    object-fit: contain;
    cursor: pointer;
    opacity: 0.6;
    transition: all 0.3s ease;
}

.detail-thumb:hover,
.detail-thumb.active {
    opacity: 1;
}

.detail-info {
    padding-top: 20px;
}

.detail-brand {
    font-size: 12px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--sage-green);
    margin-bottom: 16px;
}

.detail-title {
    font-family: 'Playfair Display', serif;
    font-size: 42px;
    font-weight: 400;
    color: var(--deep-green);
    margin-bottom: 24px;
    line-height: 1.3;
}

.detail-price-block {
    display: flex;
    align-items: baseline;
    gap: 20px;
    margin-bottom: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(122, 139, 122, 0.2);
}

.detail-price {
    font-family: 'Playfair Display', serif;
    font-size: 36px;
    font-weight: 600;
    color: var(--deep-green);
}

.detail-price-old {
    font-size: 20px;
    color: var(--stone-gray);
    text-decoration: line-through;
}

.detail-description {
    font-size: 16px;
    line-height: 1.8;
    color: var(--stone-gray);
    margin-bottom: 40px;
}

.detail-cta {
    display: inline-block;
    padding: 20px 60px;
    background: var(--deep-green);
    color: var(--rice-paper);
    text-decoration: none;
    font-size: 12px;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 60px;
    transition: all 0.4s ease;
}

.detail-cta:hover {
    background: var(--warm-gold);
    color: var(--ink-black);
}

.detail-attributes {
    margin-top: 60px;
}

.detail-attributes h3 {
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    font-weight: 400;
    color: var(--deep-green);
    margin-bottom: 24px;
}

.attributes-list {
    display: grid;
    gap: 16px;
}

.attribute-item {
    display: flex;
    justify-content: space-between;
    padding: 16px 0;
    border-bottom: 1px solid rgba(122, 139, 122, 0.15);
}

.attribute-name {
    color: var(--sage-green);
    font-size: 14px;
}

.attribute-value {
    color: var(--deep-green);
    font-weight: 400;
}

/* ===== Footer - 极简收尾 ===== */
.footer {
    background: var(--deep-green);
    color: var(--sage-green);
    padding: 80px 0 40px;
    text-align: center;
}

.footer-logo {
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    color: var(--rice-paper);
    margin-bottom: 16px;
}

.footer-tagline {
    font-size: 12px;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 40px;
}

.footer-copy {
    font-size: 13px;
    padding-top: 40px;
    border-top: 1px solid rgba(122, 139, 122, 0.2);
}

/* ===== Empty State ===== */
.empty {
    text-align: center;
    padding: 120px 20px;
    grid-column: 1 / -1;
}

.empty-icon {
    font-size: 64px;
    margin-bottom: 24px;
    opacity: 0.3;
}

.empty h3 {
    font-family: 'Playfair Display', serif;
    font-size: 28px;
    color: var(--deep-green);
    margin-bottom: 16px;
}

.empty p {
    color: var(--stone-gray);
    margin-bottom: 32px;
}

/* ===== Animations ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    .container {
        padding: 0 30px;
    }
    
    .hero-title {
        font-size: 48px;
    }
    
    .detail-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .detail-gallery {
        position: static;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 36px;
    }
    
    .section-title {
        font-size: 32px;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .product-card:nth-child(even) {
        margin-top: 0;
    }
    
    .nav {
        display: none;
    }
}
