/* ============================================================
   安滋初 ANZICHU 官网设计系统 v2.0
   宫墙红 #BC141C · 琉璃金 #F7CCA0 · 水墨黑
   移动优先 · 流式排版(clamp) · 容器查询 · 全断点适配
   ============================================================ */

:root {
  /* 品牌色（SSOT 唯一基准） */
  --red: #BC141C;
  --red-d: #8C0C14;
  --red-dd: #60080E;
  --gold: #C9A063;
  --gold-l: #F7CCA0;
  --gold-w: #FAE8CD;
  --cream: #FAF6EF;
  --ink: #1C1816;
  --ink-2: #4A423E;
  --grey: #8A827C;
  --line: rgba(201, 160, 99, .25);

  /* 字体 */
  --serif: 'Noto Serif SC', 'LiMingCP', 'STSong', 'SimSun', serif;
  --sans: 'Noto Sans SC', 'Lingxun Serif', 'Microsoft YaHei', 'PingFang SC', sans-serif;

  /* 流式字号：手机→桌面平滑缩放 */
  --fs-hero: clamp(2.1rem, 6.4vw + 0.5rem, 5.25rem);
  --fs-h2: clamp(1.7rem, 3.2vw + 0.6rem, 2.75rem);
  --fs-h3: clamp(1.35rem, 1.6vw + 0.8rem, 2rem);
  --fs-body: clamp(.95rem, .35vw + .86rem, 1.0625rem);
  --fs-small: clamp(.8rem, .2vw + .76rem, .875rem);

  /* 流式间距与容器 */
  --pad-section: clamp(3.2rem, 8vw, 6.25rem);
  --pad-x: clamp(1rem, 4vw, 2rem);
  --maxw: 1280px;
  --radius: 14px;
  --shadow-card: 0 18px 48px rgba(140, 12, 20, .10);
  --ease: cubic-bezier(.22, .61, .36, 1);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.75;
  font-size: var(--fs-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; height: auto; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--pad-x); }

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 700; line-height: 1.25; }

/* 通用区块标题 */
.sec-head { text-align: center; margin-bottom: clamp(2rem, 5vw, 4rem); }
.eyebrow { color: var(--red); font-size: var(--fs-small); letter-spacing: .4em; font-family: var(--serif); margin-bottom: .75rem; }
.sec-title { font-size: var(--fs-h2); letter-spacing: .12em; margin-bottom: 1rem; }
.sec-line { width: 60px; height: 2px; background: var(--gold); margin: 0 auto; }
.sec-desc { color: var(--grey); margin-top: 1rem; max-width: 620px; margin-inline: auto; }
section.block { padding-block: var(--pad-section); }

/* 按钮 */
.btn { display: inline-block; padding: .9em 2.4em; font-size: .95rem; letter-spacing: .12em; border: 1px solid transparent; transition: all .25s var(--ease); text-align: center; min-height: 44px; line-height: 1.3; }
.btn-primary { background: var(--red); color: #fff; border-color: var(--gold); }
.btn-primary:hover { background: var(--red-d); border-color: var(--gold-l); transform: translateY(-2px); }
.btn-ghost { border-color: rgba(255,255,255,.45); color: #fff; }
.btn-ghost:hover { border-color: var(--gold-l); color: var(--gold-l); }
.btn-gold { background: var(--gold); color: var(--red-dd); font-weight: 500; }
.btn-gold:hover { background: var(--gold-l); }

/* 入场动画：默认内容可见（SEO/无JS/截图友好），仅在 JS 主动加 .js-anim 时才做隐藏→显现 */
.js-anim .reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js-anim .reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js-anim .reveal { opacity: 1; transform: none; } }

/* 顶部导航 */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 100; background: rgba(96,8,14,.96); backdrop-filter: blur(10px); border-bottom: 2px solid var(--gold); }
.nav-inner { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--pad-x); height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.nav-logo { display: flex; align-items: center; gap: .75rem; }
.nav-logo .mark { width: 38px; height: 38px; flex-shrink: 0; border: 1.5px solid var(--gold-l); border-radius: 50%; display: grid; place-items: center; color: var(--gold-l); font-family: var(--serif); font-weight: 900; font-size: 1.1rem; }
.nav-logo .txt { color: #fff; font-family: var(--serif); font-size: 1.35rem; font-weight: 700; letter-spacing: .12em; line-height: 1.1; }
.nav-logo .sub { color: var(--gold-l); font-size: .68rem; letter-spacing: .22em; }
.nav-links { display: flex; gap: clamp(1rem,2.4vw,2.2rem); }
.nav-links a { color: rgba(255,255,255,.85); font-size: .92rem; position: relative; white-space: nowrap; transition: color .2s; }
.nav-links a:hover, .nav-links a.active { color: var(--gold-l); }
.nav-links a::after { content: ''; position: absolute; bottom: -6px; left: 0; width: 0; height: 2px; background: var(--gold-l); transition: width .25s; }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-cta { background: var(--gold); color: var(--red-dd); padding: .5em 1.4em; font-size: .875rem; white-space: nowrap; }
.nav-cta:hover { background: var(--gold-l); }
.nav-toggle { display: none; background: none; border: 1px solid var(--gold-l); color: var(--gold-l); width: 44px; height: 40px; font-size: 1.3rem; place-items: center; }

/* 移动端抽屉菜单 */
@media (max-width: 960px) {
  .nav-links { position: fixed; inset: 68px 0 auto 0; flex-direction: column; gap: 0; background: rgba(96,8,14,.985); padding: .5rem 0 1.2rem; transform: translateY(-130%); transition: transform .35s var(--ease); border-bottom: 2px solid var(--gold); }
  .nav-links.open { transform: none; }
  .nav-links a { padding: .9rem var(--pad-x); font-size: 1.05rem; border-bottom: 1px solid rgba(247,204,160,.12); }
  .nav-links a::after { display: none; }
  .nav-cta { display: none; }
  .nav-toggle { display: grid; }
}

/* Hero */
.hero { position: relative; min-height: 100svh; display: grid; place-items: center; text-align: center; overflow: hidden; background: var(--red-dd); color: #fff; }
.hero-bg { position: absolute; inset: 0; background-position: center; background-size: cover; background-repeat: no-repeat; filter: brightness(.45); }
.hero-ov { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(96,8,14,.5), rgba(28,4,6,.78)); }
.hero-c { position: relative; z-index: 2; padding: 6rem var(--pad-x) 4rem; max-width: 920px; }
.hero-badge { display: inline-block; border: 1px solid var(--gold-l); color: var(--gold-l); padding: .45em 1.6em; font-size: .8rem; letter-spacing: .4em; margin-bottom: 2rem; font-family: var(--serif); }
.hero h1 { font-size: var(--fs-hero); letter-spacing: .14em; margin-bottom: 1.4rem; }
.hero h1 .gold { color: var(--gold-l); }
.hero-line { width: 80px; height: 2px; background: var(--gold); margin: 0 auto 1.6rem; }
.hero-sub { font-family: var(--serif); font-size: clamp(1.05rem,2vw,1.5rem); letter-spacing: .2em; color: rgba(255,255,255,.88); margin-bottom: 1rem; }
.hero-desc { font-size: var(--fs-small); color: rgba(255,255,255,.68); max-width: 560px; margin: 0 auto 2.4rem; }
.hero-btns { display: flex; gap: 1.1rem; justify-content: center; flex-wrap: wrap; }
.buy-row { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 1.6rem; align-items: center; }

/* 自适应网格：auto-fit，不写死列数，窄屏自动单列 */
.grid-auto { display: grid; gap: clamp(1rem, 2.4vw, 2rem); grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }

/* 卡片 */
.card { background: #fff; border: 1px solid var(--line); overflow: hidden; transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-card); }
.card .ph { overflow: hidden; position: relative; aspect-ratio: 4/3; }
.card .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.card:hover .ph img { transform: scale(1.06); }
.card .tag { position: absolute; top: .9rem; left: .9rem; background: var(--red); color: #fff; font-size: .75rem; padding: .3em .9em; letter-spacing: .1em; }
.card .bd { padding: clamp(1.2rem,2vw,1.7rem); }
.card h3 { font-size: var(--fs-h3); letter-spacing: .08em; margin-bottom: .3rem; }
.card .en { color: var(--gold); font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; margin-bottom: .8rem; }
.card p { color: var(--grey); font-size: var(--fs-small); }
.card .more { display: inline-block; margin-top: 1rem; color: var(--red); font-size: .85rem; letter-spacing: .1em; border-bottom: 1px solid var(--red); }

/* 深底区块 */
.dark { background: var(--ink); color: #fff; }
.dark .sec-title { color: #fff; }
.dark .sec-desc { color: rgba(255,255,255,.6); }
.red-grad { background: linear-gradient(180deg, var(--red-dd), var(--red-d)); color: #fff; }

/* 两栏（图文交替，窄屏堆叠） */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem,5vw,4rem); align-items: center; }
.split.rev .media { order: 2; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } .split.rev .media { order: 0; } }
.media-frame { position: relative; }
.media-frame img { width: 100%; object-fit: cover; border: 1px solid var(--line); }
.frame-corner { position: absolute; inset: 12px; border: 1px solid rgba(247,204,160,.35); pointer-events: none; }

/* 保障项 */
.assure { display: grid; gap: 1px; background: rgba(201,160,99,.2); grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
.assure .item { background: #fff; padding: clamp(1.6rem,3vw,2.5rem); text-align: center; transition: background .25s; }
.assure .item:hover { background: var(--cream); }
.assure .ic { width: 56px; height: 56px; margin: 0 auto 1.1rem; border: 2px solid var(--gold); border-radius: 50%; display: grid; place-items: center; }
.assure .ic svg { width: 26px; height: 26px; stroke: var(--red); fill: none; stroke-width: 1.8; }
.assure h4 { font-size: 1.1rem; letter-spacing: .1em; margin-bottom: .5rem; }
.assure p { font-size: var(--fs-small); color: var(--grey); }

/* 资质 */
.certs { display: grid; gap: clamp(.8rem,2vw,1.2rem); grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); }
.cert { background: #fff; border: 1px solid var(--line); padding: .9rem; text-align: center; transition: transform .25s; }
.cert:hover { transform: translateY(-4px); }
.cert img { width: 100%; height: 180px; object-fit: contain; background: #f5f0e8; margin-bottom: .7rem; }
.cert .nm { font-size: .85rem; }
.cert .nt { font-size: .72rem; color: var(--grey); margin-top: .2rem; }
.cert-ph { height: 180px; background: #f5f0e8; display: grid; place-items: center; color: var(--gold); font-family: var(--serif); letter-spacing: .1em; margin-bottom: .7rem; }

/* 联系 + 页脚 */
.contact { background: var(--ink); color: #fff; padding-block: clamp(2.6rem,6vw,5rem); }
.contact-grid { display: grid; gap: clamp(1.6rem,4vw,3rem); grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.contact h4 { color: var(--gold-l); font-size: 1.1rem; letter-spacing: .1em; margin-bottom: 1.1rem; }
.contact li, .contact p { color: rgba(255,255,255,.66); font-size: var(--fs-small); line-height: 2.1; }
.footer { background: var(--red-dd); color: rgba(255,255,255,.55); text-align: center; padding: 1.4rem var(--pad-x); font-size: .78rem; border-top: 1px solid rgba(247,204,160,.15); line-height: 1.9; }
.footer a { color: var(--gold-l); }

/* FAQ 专属 */
.faq-toolbar { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: center; margin-bottom: 1.4rem; }
.faq-cat-btn { border: 1px solid var(--line); background: #fff; padding: .55em 1.2em; border-radius: 999px; font-size: .88rem; color: var(--ink-2); transition: all .2s; min-height: 40px; }
.faq-cat-btn.active, .faq-cat-btn:hover { background: var(--red); color: #fff; border-color: var(--red); }
.faq-search { width: min(560px, 100%); margin: 0 auto 2rem; display: block; padding: .9em 1.2em; border: 1px solid var(--line); border-radius: 10px; font-size: 1rem; font-family: inherit; }
.faq-search:focus { outline: 2px solid var(--gold); border-color: var(--gold); }
.faq-group-title { font-family: var(--serif); font-size: var(--fs-h3); color: var(--red-d); letter-spacing: .08em; margin: 2.4rem 0 1.1rem; padding-left: .8rem; border-left: 4px solid var(--gold); }
details.faq-item { background: #fff; border: 1px solid var(--line); border-radius: 10px; margin-bottom: .7rem; overflow: hidden; }
details.faq-item summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: .9rem; padding: 1.05rem 1.2rem; font-family: var(--serif); font-size: clamp(.98rem,1vw+ .7rem,1.08rem); min-height: 44px; }
details.faq-item summary::-webkit-details-marker { display: none; }
.faq-item .qid { color: var(--gold); font-size: .8rem; font-family: var(--sans); flex-shrink: 0; }
.faq-item .qtext { flex: 1; }
.faq-item .arrow { color: var(--red); transition: transform .3s; flex-shrink: 0; font-size: 1.2rem; }
details.faq-item[open] .arrow { transform: rotate(45deg); }
.faq-item .abody { padding: 0 1.2rem 1.2rem 2.6rem; color: var(--ink-2); font-size: var(--fs-small); line-height: 1.95; }
.faq-empty { text-align: center; color: var(--grey); padding: 3rem 0; display: none; }

/* 口味/规格小标签 */
.chips { display: grid; gap: .9rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); margin-top: 1.6rem; }
.chip { border: 1px solid rgba(247,204,160,.3); padding: 1rem 1.2rem; background: rgba(255,255,255,.04); }
.chip .n { font-family: var(--serif); color: var(--gold-l); font-size: 1.1rem; margin-bottom: .2rem; }
.chip .d { font-size: .78rem; color: rgba(255,255,255,.55); }
.warn-box { margin-top: 1.6rem; padding: .9rem 1.2rem; background: rgba(188,20,28,.22); border-left: 3px solid var(--gold-l); font-size: .85rem; color: rgba(255,255,255,.82); }
.spec-grid { display: grid; gap: .8rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 140px), 1fr)); margin-top: 1.4rem; }
.spec { padding: .9rem 1.1rem; background: #fff; border: 1px solid var(--line); }
.spec .k { font-size: .75rem; color: var(--grey); }
.spec .v { font-family: var(--serif); font-size: 1.02rem; margin-top: .2rem; }

/* 首页·食用指南小卡 */
.guide-mini { display:flex; flex-direction:column; gap:.7rem; background:var(--cream); border:1px solid var(--line); padding:clamp(1.3rem,2.4vw,1.9rem); transition:transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s; min-height:44px; }
.guide-mini:hover { transform:translateY(-5px); box-shadow:var(--shadow-card); border-color:var(--gold); }
.guide-mini h3 { font-size:1.15rem; color:var(--red-d); letter-spacing:.05em; }
.guide-mini p { color:var(--grey); font-size:var(--fs-small); line-height:1.85; flex:1; }
.guide-mini .more { color:var(--red); font-size:.88rem; letter-spacing:.1em; border-bottom:1px solid var(--red); align-self:flex-start; }

/* 回到顶部 */
.to-top { position: fixed; right: clamp(1rem,3vw,2rem); bottom: clamp(1rem,3vw,2rem); width: 48px; height: 48px; border-radius: 50%; background: var(--red); color: var(--gold-l); border: 1px solid var(--gold); font-size: 1.2rem; display: grid; place-items: center; opacity: 0; pointer-events: none; transition: opacity .3s; z-index: 90; }
.to-top.show { opacity: 1; pointer-events: auto; }

/* 打印 */
@media print { .nav, .to-top, .hero-btns { display: none !important; } body { background: #fff; } }
