
/* MIANYAOYAO -- site stylesheet (self-contained, system fonts only) */

:root {
  --bg: #FAF7F2;
  --surface: #FFFFFF;
  --ink: #23201B;
  --muted: #7A736A;
  --line: #E7E0D6;
  --accent: #A45A3C;
  --accent-dark: #7E4128;
  --accent-soft: #F3E4DB;
  --footer-bg: #221F1A;
  --footer-ink: #D8D2C8;
  --serif: Georgia, "Times New Roman", "Songti SC", serif;
  --sans: "Segoe UI", "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  --radius: 16px;
  --shadow: 0 18px 40px -18px rgba(35, 32, 27, 0.25);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--accent-dark); text-decoration: none; }
a:hover { color: var(--accent); }

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

.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--ink);
  color: #fff; padding: 10px 16px; z-index: 100; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.2; }
h2 { font-size: clamp(28px, 4vw, 40px); letter-spacing: -0.01em; }
h3 { font-size: 20px; }

.eyebrow {
  display: inline-block; font-size: 12px; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent);
}

.section { padding: 84px 0; }
.section-alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 640px; margin-bottom: 44px; }
.section-head p { color: var(--muted); margin-top: 12px; font-size: 17px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(250, 247, 242, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 28px; height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); font-family: var(--serif); font-weight: 700; font-size: 20px; letter-spacing: 0.06em; }
.brand:hover { color: var(--ink); }
.brand svg { width: 34px; height: 34px; flex: none; }
.brand .brand-zh { font-size: 12px; color: var(--muted); letter-spacing: 0.3em; margin-left: 4px; }
.site-nav { display: flex; align-items: center; gap: 26px; margin-left: auto; }
.site-nav a { color: var(--ink); font-size: 15px; font-weight: 500; }
.site-nav a:hover { color: var(--accent); }
.nav-toggle {
  display: none; margin-left: auto; background: none; border: 1px solid var(--line);
  border-radius: 10px; width: 42px; height: 42px; cursor: pointer;
  align-items: center; justify-content: center; color: var(--ink);
}
.nav-toggle svg { width: 22px; height: 22px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 26px; border-radius: 999px; font-weight: 600;
  font-size: 15px; border: 1px solid transparent; cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); color: #fff; box-shadow: var(--shadow); }
.btn-ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--ink); color: var(--bg); }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { color: var(--accent-dark); box-shadow: var(--shadow); }
.btn-outline-light { border-color: rgba(255,255,255,0.6); color: #fff; background: transparent; }
.btn-outline-light:hover { background: rgba(255,255,255,0.12); color: #fff; }
.btn-sm { padding: 9px 18px; font-size: 14px; }
.btn svg { width: 18px; height: 18px; }

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(620px 420px at 88% 12%, rgba(164, 90, 60, 0.10), transparent 62%),
    radial-gradient(520px 380px at 6% 92%, rgba(164, 90, 60, 0.08), transparent 60%),
    var(--bg);
  padding: 104px 0 92px;
}
.hero .lede { font-size: 19px; color: var(--muted); max-width: 62ch; margin-top: 22px; }
.hero h1 {
  font-size: clamp(44px, 7vw, 78px); line-height: 1.04;
  letter-spacing: -0.015em; max-width: 16ch; margin-top: 18px;
}
.hero-actions { display: flex; gap: 16px; margin-top: 38px; flex-wrap: wrap; }
.trust-row { display: flex; gap: 44px; flex-wrap: wrap; margin-top: 56px; }
.trust-item b { display: block; font-family: var(--serif); font-size: 26px; }
.trust-item span { font-size: 14px; color: var(--muted); }

/* ---------- catalog toolbar ---------- */
.toolbar { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; margin-bottom: 34px; }
.chips { display: flex; gap: 10px; flex-wrap: wrap; }
.chip {
  border: 1px solid var(--line); background: var(--surface); color: var(--ink);
  border-radius: 999px; padding: 9px 18px; font-size: 14px; cursor: pointer;
  transition: all 0.2s ease; font-family: var(--sans);
}
.chip:hover { border-color: var(--accent); color: var(--accent); }
.chip.active { background: var(--ink); border-color: var(--ink); color: #fff; }
.search-box {
  margin-left: auto; display: flex; align-items: center; gap: 10px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 999px; padding: 10px 18px; min-width: 240px;
}
.search-box svg { width: 17px; height: 17px; color: var(--muted); flex: none; }
.search-box input { border: none; outline: none; background: transparent; font-size: 15px; width: 100%; color: var(--ink); font-family: var(--sans); }
.no-results { color: var(--muted); padding: 30px 0; }

/* ---------- product cards ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(252px, 1fr)); gap: 26px; }
.p-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: transform 0.25s ease, box-shadow 0.25s ease;
  display: flex; flex-direction: column;
}
.p-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.p-card-link { display: flex; flex-direction: column; height: 100%; color: var(--ink); }
.p-card-link:hover { color: var(--ink); }
.p-card-media { aspect-ratio: 4 / 3; background: var(--accent-soft); overflow: hidden; }
.p-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.p-card:hover .p-card-media img { transform: scale(1.04); }
.p-card-body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.p-card-cat { font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); }
.p-card-body h3 { font-size: 19px; }
.p-card-body p { font-size: 14px; color: var(--muted); flex: 1; }
.p-card-more { font-size: 14px; font-weight: 600; color: var(--accent-dark); margin-top: 6px; }

/* ---------- category cards ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 22px; }
.cat-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 26px; display: flex; flex-direction: column; gap: 10px;
  color: var(--ink); transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.cat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); color: var(--ink); }
.cat-zh { font-family: var(--serif); font-size: 26px; color: var(--accent); opacity: 0.85; }
.cat-name { font-family: var(--serif); font-size: 21px; font-weight: 600; }
.cat-card p { font-size: 14px; color: var(--muted); flex: 1; }
.cat-count { font-size: 14px; font-weight: 600; color: var(--accent-dark); }

/* ---------- story / split ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.split .prose p { margin-bottom: 16px; color: var(--muted); }
.split .prose p:first-child { color: var(--ink); font-size: 19px; font-family: var(--serif); }
.entity-line { border-left: 3px solid var(--accent); padding: 12px 18px; background: var(--surface); border-radius: 0 12px 12px 0; font-size: 14px; color: var(--muted); margin-top: 22px; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; counter-reset: step; }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; }
.step::before {
  counter-increment: step; content: "0" counter(step);
  font-family: var(--serif); font-size: 34px; color: var(--accent); display: block; margin-bottom: 12px;
}
.step h3 { margin-bottom: 8px; }
.step p { font-size: 15px; color: var(--muted); }

/* ---------- cta band ---------- */
.cta-band {
  background:
    radial-gradient(480px 300px at 90% 20%, rgba(255,255,255,0.08), transparent 60%),
    var(--footer-bg);
  color: #fff; border-radius: 24px; padding: 64px 56px;
  display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: var(--footer-ink); margin-top: 10px; max-width: 52ch; }
.cta-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- breadcrumb ---------- */
.breadcrumb { font-size: 14px; color: var(--muted); padding: 26px 0 0; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb .sep { margin: 0 8px; color: var(--line); }

/* ---------- product detail ---------- */
.product-layout { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; margin-top: 34px; align-items: start; }
.product-media { background: var(--accent-soft); border-radius: 20px; overflow: hidden; }
.product-media img { width: 100%; height: auto; }
.product-info h1 { font-size: clamp(30px, 4vw, 44px); margin: 12px 0 14px; }
.product-info .short { font-size: 17px; color: var(--muted); }
.tag-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 18px; }
.tag-pill { font-size: 12.5px; background: var(--accent-soft); color: var(--accent-dark); border-radius: 999px; padding: 5px 13px; }
.spec-table { width: 100%; border-collapse: collapse; margin-top: 28px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.spec-table th, .spec-table td { text-align: left; padding: 13px 18px; border-bottom: 1px solid var(--line); font-size: 15px; vertical-align: top; }
.spec-table tr:last-child th, .spec-table tr:last-child td { border-bottom: none; }
.spec-table th { width: 34%; color: var(--muted); font-weight: 600; background: var(--bg); }
.product-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 30px; }
.product-desc { margin-top: 26px; }
.product-desc p { color: var(--muted); margin-bottom: 14px; }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 44px; align-items: start; }
.info-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; margin-bottom: 20px; }
.info-card h3 { margin-bottom: 10px; }
.info-card p { color: var(--muted); font-size: 15px; }
.info-card .big { font-family: var(--serif); font-size: 24px; color: var(--ink); }
.info-card a.big:hover { color: var(--accent); }
.inquiry-form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 34px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-grid label { display: flex; flex-direction: column; gap: 7px; font-size: 14px; font-weight: 600; }
.form-grid .full { grid-column: 1 / -1; }
.form-grid input, .form-grid select, .form-grid textarea {
  border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px;
  font-size: 15px; font-family: var(--sans); background: var(--bg); color: var(--ink);
  outline: none; transition: border-color 0.2s ease;
}
.form-grid input:focus, .form-grid select:focus, .form-grid textarea:focus { border-color: var(--accent); }
.form-note { font-size: 13.5px; color: var(--muted); margin: 18px 0; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 820px; }
.faq-list details { border-bottom: 1px solid var(--line); background: transparent; }
.faq-list summary {
  cursor: pointer; list-style: none; display: flex; justify-content: space-between;
  align-items: center; gap: 20px; padding: 22px 4px; font-weight: 600; font-size: 17px;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; font-size: 26px; color: var(--accent); font-weight: 400; transition: transform 0.2s ease; }
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list .faq-a { padding: 0 4px 22px; color: var(--muted); max-width: 70ch; }

/* ---------- legal / prose pages ---------- */
.prose-page { max-width: 780px; }
.prose-page h1 { font-size: clamp(32px, 4.5vw, 46px); margin: 18px 0 30px; }
.prose-page h2 { font-size: 22px; margin: 36px 0 14px; }
.prose-page p, .prose-page li { color: var(--muted); margin-bottom: 14px; }
.prose-page .updated { font-size: 13.5px; color: var(--muted); letter-spacing: 0.08em; text-transform: uppercase; }
.prose-page strong { color: var(--ink); }

/* ---------- 404 ---------- */
.error-hero { text-align: center; padding: 120px 0 100px; }
.error-hero .code { font-family: var(--serif); font-size: clamp(90px, 14vw, 160px); color: var(--accent); line-height: 1; }
.error-hero p { color: var(--muted); margin: 18px auto 34px; max-width: 46ch; }

/* ---------- footer ---------- */
.site-footer { background: var(--footer-bg); color: var(--footer-ink); margin-top: 90px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 44px; padding: 64px 0 48px; }
.site-footer h4 { color: #fff; font-size: 15px; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 16px; font-family: var(--sans); font-weight: 700; }
.site-footer a { color: var(--footer-ink); font-size: 14.5px; }
.site-footer a:hover { color: #fff; }
.site-footer ul { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.footer-brand { font-family: var(--serif); font-size: 22px; color: #fff; letter-spacing: 0.06em; margin-bottom: 12px; }
.footer-blurb { font-size: 14.5px; color: var(--footer-ink); max-width: 36ch; }
.footer-contact p { font-size: 14.5px; margin-bottom: 8px; }
.footer-contact .num { font-family: var(--serif); font-size: 19px; color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); padding: 22px 0; font-size: 13px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer-bottom p { color: rgba(216,210,200,0.75); }

/* ---------- floating buttons ---------- */
.wa-float {
  position: fixed; right: 22px; bottom: 24px; z-index: 70;
  width: 58px; height: 58px; border-radius: 50%;
  background: #1FA855; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 26px -8px rgba(31, 168, 85, 0.65);
  transition: transform 0.2s ease;
}
.wa-float:hover { transform: scale(1.07); }
.wa-float svg { width: 30px; height: 30px; fill: #fff; }
.to-top {
  position: fixed; right: 26px; bottom: 96px; z-index: 70;
  width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line);
  background: var(--surface); color: var(--ink); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transform: translateY(8px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.to-top.visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
.to-top svg { width: 18px; height: 18px; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .split, .product-layout, .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  .steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .search-box { margin-left: 0; width: 100%; }
}
@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .site-nav {
    display: none; position: absolute; top: 72px; left: 0; right: 0;
    background: var(--bg); border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: flex-start; padding: 18px 24px 22px; gap: 16px;
  }
  .site-nav.open { display: flex; }
  .header-cta { display: none; }
  .section { padding: 60px 0; }
  .cta-band { padding: 44px 30px; }
}
@media (max-width: 560px) {
  .hero { padding: 72px 0 64px; }
  .trust-row { gap: 26px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .form-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
