/* ===== Reset & Base ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    /* ---- 新版 CSS 变量契约层 ---- */
    --color-primary: #C0392B;
    --color-primary-hover: #A93226;
    --color-accent: #D4A853;
    --color-bg: #FAF7F2;
    --color-bg-warm: #F5F0EA;
    --color-text: #2C241B;
    --color-text-light: #7A6E60;
    --color-border: #E8E0D6;
    --color-white: #FFFFFF;
    --color-overlay: rgba(44, 36, 27, 0.5);
    --font-serif: 'Georgia', 'Times New Roman', serif;
    --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    --shadow-card: 0 2px 20px rgba(44, 36, 27, 0.08);
    --shadow-hero: 0 4px 30px rgba(44, 36, 27, 0.15);
    --radius: 12px;

    /* ---- 旧版变量（兼容旧代码） ---- */
    --cream: var(--color-bg);
    --warm-bg: var(--color-bg-warm);
    --text: var(--color-text);
    --text-light: var(--color-text-light);
    --accent: var(--color-primary);
    --accent-hover: var(--color-primary-hover);
    --gold: var(--color-accent);
    --border: var(--color-border);
    --white: var(--color-white);
    --shadow: var(--shadow-card);
}

html { scroll-behavior: smooth; }
body {
    font-family: var(--font-sans);
    color: var(--text);
    background: var(--cream);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ===== Typography ===== */
h1, h2, h3, h4 { font-family: var(--font-serif); font-weight: 600; line-height: 1.3; color: var(--text); }

.section-tag {
    display: inline-block;
    font-size: 0.75rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 16px;
    font-weight: 600;
}

.section-title {
    font-size: 2.4rem;
    margin-bottom: 16px;
}

.section-sub {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 600px;
}

/* ===== Navbar ===== */
.navbar {
    position: fixed; top: 0; left: 0; right: 0;
    z-index: 1000;
    padding: 20px 0;
    transition: all 0.3s;
    background: transparent;
}

.navbar.scrolled {
    background: rgba(250, 247, 242, 0.97);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 10px rgba(0,0,0,0.06);
    padding: 12px 0;
}

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

.logo {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text);
    text-decoration: none;
}

.logo span { color: var(--accent); }

.nav-links {
    display: flex;
    list-style: none;
    gap: 32px;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-light);
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-links a:hover, .nav-links a.active { color: var(--text); }

.nav-cta {
    background: var(--accent);
    color: var(--white) !important;
    padding: 8px 20px;
    border-radius: 6px;
    transition: background 0.2s !important;
}

.nav-cta:hover { background: var(--accent-hover) !important; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--text); transition: 0.3s; }

.lang-btn {
    background: none;
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 6px 14px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-light);
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}

.lang-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
}

/* ===== Hero ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-bg {
    position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(245,240,234,0.88) 0%, rgba(237,228,213,0.82) 40%, rgba(232,220,200,0.78) 100%),
                url('../images/img-01.webp') center/cover no-repeat;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%; right: -30%;
    width: 800px; height: 800px;
    background: radial-gradient(circle, rgba(212, 168, 83, 0.08) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 700px;
}

.hero-badge {
    display: inline-block;
    font-size: 0.8rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--accent);
    border: 1px solid var(--accent);
    padding: 6px 16px;
    border-radius: 20px;
    margin-bottom: 24px;
    font-weight: 500;
}

.hero h1 {
    font-size: 3.6rem;
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero h1 .highlight {
    color: var(--accent);
}

.hero p {
    font-size: 1.15rem;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 36px;
    max-width: 560px;
}

.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; }

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
}

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

.btn-primary:hover { background: var(--accent-hover); transform: translateY(-1px); }

.btn-outline {
    background: transparent;
    color: var(--text);
    border: 1.5px solid var(--border);
}

.btn-outline:hover { border-color: var(--text); transform: translateY(-1px); }

.hero-stats {
    display: flex;
    gap: 40px;
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid var(--border);
}

.stat .stat-num { display: block; font-family: var(--font-serif); font-size: 1.6rem; font-weight: 700; color: var(--text); }
.stat .stat-label { font-size: 0.85rem; color: var(--text-light); }

/* ===== Featured Products ===== */
.featured {
    padding: 100px 0;
    background: var(--white);
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-top: 48px;
}

.product-card {
    text-decoration: none;
    color: inherit;
    background: var(--cream);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }

.product-card-image {
    aspect-ratio: 4/3;
    background: var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--text-light);
    overflow: hidden;
}

.product-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-card-body {
    padding: 24px;
}

.product-card-body .product-tag {
    font-size: 0.75rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 8px;
}

.product-card-body h3 {
    font-size: 1.2rem;
    margin-bottom: 8px;
}

.product-card-body p {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.6;
}

/* ===== Story Section ===== */
.story {
    padding: 100px 0;
}

.story-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.story-image {
    aspect-ratio: 1;
    background: var(--border);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: var(--text-light);
    background-size: cover !important;
    background-position: center !important;
}

.story-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius);
}

.story-text h2 {
    font-size: 2.2rem;
    margin-bottom: 20px;
}

.story-text p {
    color: var(--text-light);
    margin-bottom: 16px;
    line-height: 1.8;
}

/* ===== Why Us ===== */
.why-us {
    padding: 100px 0;
    background: var(--white);
}

.why-us-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 48px;
}

.why-us-card {
    text-align: center;
    padding: 40px 24px;
}

.why-us-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.why-us-card h3 {
    font-size: 1.2rem;
    margin-bottom: 12px;
}

.why-us-card p {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.7;
}

/* ===== Blog Preview ===== */
.blog-preview {
    padding: 100px 0;
    background: var(--cream);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-top: 48px;
}

.blog-card {
    text-decoration: none;
    color: inherit;
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.blog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }

.blog-card-image {
    aspect-ratio: 16/9;
    background: var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--text-light);
}

.blog-card-body {
    padding: 24px;
}

.blog-card-body .blog-date {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-bottom: 8px;
}

.blog-card-body h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.blog-card-body p {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.6;
}

/* ===== CTA Banner ===== */
.cta-banner {
    padding: 80px 0;
    background: linear-gradient(135deg, #2C241B 0%, #4A3D33 100%);
    color: var(--white);
    text-align: center;
}

.cta-banner h2 {
    font-size: 2.4rem;
    color: var(--white);
    margin-bottom: 16px;
}

.cta-banner p {
    color: rgba(255,255,255,0.7);
    margin-bottom: 32px;
    font-size: 1.1rem;
}

.cta-banner .btn-primary { background: var(--gold); color: var(--text); }
.cta-banner .btn-primary:hover { background: #D4A853; }
.cta-banner .btn-outline { border-color: rgba(255,255,255,0.3); color: var(--white); }
.cta-banner .btn-outline:hover { border-color: var(--white); }

/* ===== Footer ===== */
.footer {
    padding: 60px 0 40px;
    background: var(--text);
    color: rgba(255,255,255,0.6);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand .logo { color: var(--white); }
.footer-brand p { margin-top: 16px; font-size: 0.9rem; line-height: 1.7; }

.footer h4 {
    color: var(--white);
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.footer-links { list-style: none; }
.footer-links li { margin-bottom: 12px; }
.footer-links a {
    color: rgba(255,255,255,0.5);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.footer-links a:hover { color: var(--white); }

.footer-bottom {
    padding-top: 32px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.85rem;
    text-align: center;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute; top: 100%; left: 0; right: 0;
        background: var(--cream);
        flex-direction: column;
        padding: 20px 24px;
        gap: 16px;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    }
    .nav-links.open { display: flex; }
    .nav-toggle { display: flex; }

    .hero h1 { font-size: 2.4rem; }
    .hero-stats { gap: 24px; flex-wrap: wrap; }

    .featured-grid,
    .why-us-grid,
    .blog-grid { grid-template-columns: 1fr; }

    .story-grid { grid-template-columns: 1fr; gap: 32px; }

    .footer-grid { grid-template-columns: 1fr 1fr; }

    .section-title { font-size: 1.8rem; }
}

@media (max-width: 480px) {
    .footer-grid { grid-template-columns: 1fr; }
    .hero h1 { font-size: 2rem; }
}

/* ===== Cookie Consent ===== */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--text);
    color: var(--white);
    padding: 16px 24px;
    z-index: 1000;
    display: none;
    font-size: 0.875rem;
}
.cookie-consent.show { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
/* ===== Cookie Consent Bar ===== */
.cookie-bar {
  position: fixed; bottom: 0; left: 0; right: 0;
  background: var(--cream);
  border-top: 1px solid var(--border);
  padding: 16px 24px;
  z-index: 9999;
  box-shadow: 0 -2px 20px rgba(0,0,0,0.06);
  display: none;
}
.cookie-bar-content {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  font-size: 0.9rem;
}
.cookie-bar-content a { color: var(--accent); text-decoration: underline; }
.btn-sm { padding: 8px 20px; font-size: 0.85rem; }
@media (max-width: 640px) {
  .cookie-bar-content { flex-direction: column; text-align: center; }
}
