:root {
  --bg: #f4f0e8;
  --paper: #fffdf8;
  --ink: #1a1814;
  --muted: #6b645a;
  --line: #ddd4c6;
  --gold: #8a6a3d;
  --gold-2: #b08a52;
  --dark: #141210;
  --dark-2: #221f1b;
  --max: 1180px;
  --radius: 14px;
  --shadow: 0 16px 40px rgba(26, 24, 20, 0.08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, .btn { font: inherit; }

.wrap { width: min(var(--max), calc(100% - 40px)); margin: 0 auto; }
.muted { color: var(--muted); }
.gold { color: var(--gold); }

.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(244, 240, 232, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 72px; gap: 20px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 42px; width: auto; filter: brightness(0); }
.brand-name { font-weight: 700; letter-spacing: 0.08em; }
.brand-name small { display: block; font-weight: 400; font-size: 11px; color: var(--muted); letter-spacing: 0.16em; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  padding: 8px 12px; border-radius: 999px;
  font-size: 14px; color: var(--ink);
}
.nav a:hover, .nav a.active { background: #ebe4d6; color: var(--gold); }
.nav-drop { position: relative; }
.nav-drop > a::after { content: " ▾"; font-size: 10px; }
.nav-drop .sub {
  display: none; position: absolute; top: 100%; left: 0;
  min-width: 140px; padding: 8px;
  background: var(--paper); border: 1px solid var(--line);
  border-radius: 12px; box-shadow: var(--shadow);
}
.nav-drop:hover .sub, .nav-drop:focus-within .sub { display: grid; }
.nav-drop .sub a { border-radius: 8px; }

.header-tools { display: flex; align-items: center; gap: 10px; }
.lang-btn, .menu-btn {
  border: 1px solid var(--line); background: var(--paper);
  border-radius: 999px; padding: 6px 12px; cursor: pointer;
}
.phone-pill {
  background: var(--ink); color: #fff; border-radius: 999px;
  padding: 8px 14px; font-size: 13px;
}
.menu-btn { display: none; }

.hero {
  position: relative; min-height: 78vh;
  display: grid; place-items: end start;
  background: #1b1916 center/cover no-repeat;
  color: #fff;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20,18,16,.25), rgba(20,18,16,.72));
}
.hero-copy { position: relative; z-index: 1; padding: 0 0 72px; width: min(var(--max), calc(100% - 40px)); margin: 0 auto; }
.kicker { letter-spacing: 0.28em; text-transform: uppercase; font-size: 12px; color: var(--gold-2); }
.hero h1 { font-size: clamp(36px, 6vw, 72px); line-height: 1.1; margin: 10px 0 16px; font-weight: 600; }
.hero p { max-width: 640px; color: #ece6db; }

.section { padding: 84px 0; }
.section h2 { font-size: clamp(28px, 4vw, 42px); margin: 0 0 12px; }
.lead { max-width: 680px; color: var(--muted); margin-bottom: 36px; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stat {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px;
}
.stat b { display: block; font-size: 32px; color: var(--gold); }

.cards, .products, .news-grid, .case-grid {
  display: grid; gap: 18px;
}
.cards { grid-template-columns: repeat(3, 1fr); }
.card, .product-card, .news-card, .case-card {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow);
}
.card { padding: 24px; }
.card h3, .product-card h3, .news-card h3 { margin: 0 0 8px; font-size: 20px; }

.products { grid-template-columns: repeat(4, 1fr); }
.product-card img, .case-card img, .news-card img, .detail-hero img {
  width: 100%; aspect-ratio: 4/3; object-fit: cover; background: #e8e0d2;
}
.product-card .meta, .news-card .meta { padding: 14px 16px 18px; }
.sku { font-size: 12px; letter-spacing: 0.08em; color: var(--gold); }

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 24px; }
.filter-btn {
  border: 1px solid var(--line); background: var(--paper);
  border-radius: 999px; padding: 7px 14px; cursor: pointer;
}
.filter-btn.active { background: var(--ink); color: #fff; border-color: var(--ink); }

.timeline { border-left: 2px solid var(--line); margin-left: 8px; }
.tl-item { padding: 0 0 28px 22px; position: relative; }
.tl-item::before {
  content: ""; width: 10px; height: 10px; border-radius: 50%;
  background: var(--gold); position: absolute; left: -6px; top: 8px;
}
.tl-item strong { color: var(--gold); }

.dark-band {
  background: var(--dark); color: #f4efe6; padding: 84px 0;
}
.dark-band .card { background: var(--dark-2); border-color: #34302b; color: #f4efe6; box-shadow: none; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--gold); color: #fff; border: 0;
  border-radius: 999px; padding: 12px 20px; cursor: pointer;
}
.btn.ghost { background: transparent; color: inherit; border: 1px solid currentColor; }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 22px; }

.page-hero {
  padding: 72px 0 40px;
  background: linear-gradient(180deg, #ebe4d6, var(--bg));
}
.page-hero h1 { margin: 8px 0; font-size: clamp(32px, 5vw, 52px); }

.detail { display: grid; grid-template-columns: 1.1fr .9fr; gap: 36px; align-items: start; }
.detail-hero { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--paper); }
.prose { max-width: 760px; }
.prose p { color: #3b3832; }
.prose img,
.cms-img img { max-width: 100%; height: auto; margin: 16px auto; }

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.contact-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.contact-card a { color: var(--gold); }
form { display: grid; gap: 12px; }
input, textarea {
  width: 100%; border: 1px solid var(--line); border-radius: 10px;
  padding: 12px 14px; background: #fff; font: inherit;
}
textarea { min-height: 140px; resize: vertical; }

.site-footer { background: var(--dark); color: #d9d1c4; padding: 48px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 24px; }
.site-footer a { color: #f0e8da; }
.copyright { margin-top: 28px; font-size: 13px; color: #9c9488; border-top: 1px solid #322e29; padding-top: 16px; }

[data-en] { display: none; }
html[lang="en"] [data-zh] { display: none; }
html[lang="en"] [data-en] { display: inline; }
html[lang="en"] p[data-en], html[lang="en"] h1[data-en], html[lang="en"] h2[data-en],
html[lang="en"] h3[data-en], html[lang="en"] li[data-en], html[lang="en"] span.block[data-en] { display: block; }

@media (max-width: 980px) {
  .stats, .cards, .products, .news-grid, .case-grid, .detail, .contact-grid, .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .nav, .phone-pill { display: none; }
  .menu-btn { display: inline-flex; }
  .nav.open {
    display: flex; flex-direction: column; position: absolute;
    top: 72px; left: 0; right: 0; background: var(--bg);
    padding: 12px 20px 20px; border-bottom: 1px solid var(--line);
  }
  .nav-drop .sub { position: static; box-shadow: none; border: 0; padding-left: 12px; }
}
@media (max-width: 640px) {
  .stats, .cards, .products, .news-grid, .case-grid, .detail, .contact-grid, .footer-grid {
    grid-template-columns: 1fr;
  }
  .hero { min-height: 70vh; }
}
