/* 陈吉旺福官网样式。颜色取自两个品牌标志：陈吉旺福红/墨黑，跳上月球的月亮黄与米色。 */
:root {
  --red: #d42d25;        /* 按钮、色块：白字对比度 5.0 */
  --red-dark: #b0221b;
  --red-text: #c02820;   /* 小号红字：在米色底上对比度也够 4.5 */
  --ink: #1f1a17;
  --text: #3b332d;
  --muted: #7a6e63;
  --cream: #f4ebdd;
  --cream-2: #faf5ee;
  --moon: #f0c93a;
  --moon-soft: #f7e39a;
  --khaki: #a8916a;
  --line: #e6dccd;
  --white: #fff;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(60, 40, 20, .08);
  --serif: "Songti SC", "Noto Serif SC", "Source Han Serif SC", "STSong", "SimSun", serif;
  --sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 16px/1.75 var(--sans); color: var(--text); background: var(--white); }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--serif); color: var(--ink); line-height: 1.3; margin: 0 0 .6em; font-weight: 900; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
@media (max-width: 600px) { .container { padding: 0 16px; } }

/* ---------- 页头 ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }
.logo { display: flex; align-items: center; gap: 10px; }
.logo img { width: 44px; height: auto; border-radius: 4px; }
.logo__text { font-family: var(--serif); font-weight: 900; font-size: 20px; color: var(--ink); line-height: 1.1; display: flex; flex-direction: column; }
.logo__text small { font-family: var(--sans); font-size: 10px; letter-spacing: .12em; font-weight: 600; color: var(--muted); margin-top: 3px; }
.site-nav ul { display: flex; gap: 4px; }
.site-nav a { display: block; padding: 8px 14px; border-radius: 999px; font-size: 15px; color: var(--text); transition: background .2s, color .2s; }
.site-nav a:hover { background: var(--cream); color: var(--ink); }
.site-nav a[aria-current="page"] { background: var(--red); color: var(--white); }
.nav-toggle { display: none; }

@media (max-width: 960px) {
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 10px; background: var(--white); cursor: pointer; }
  .nav-toggle__bar, .nav-toggle__bar::before, .nav-toggle__bar::after { content: ""; display: block; width: 20px; height: 2px; background: var(--ink); position: relative; transition: transform .2s; }
  .nav-toggle__bar::before { position: absolute; top: -6px; }
  .nav-toggle__bar::after { position: absolute; top: 6px; }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bar { background: transparent; }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bar::before { transform: translateY(6px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bar::after { transform: translateY(-6px) rotate(-45deg); }
  .site-nav { position: absolute; top: var(--header-h); left: 0; right: 0; background: var(--white); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); display: none; }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; padding: 12px 16px 16px; gap: 2px; }
  .site-nav a { padding: 12px 16px; border-radius: 10px; font-size: 16px; }
}

/* ---------- 通用区块 ---------- */
.section { padding: 96px 0; }
.section--cream { background: var(--cream); }
.section--soft { background: var(--cream-2); }
@media (max-width: 760px) { .section { padding: 64px 0; } }
.eyebrow { font-size: 13px; letter-spacing: .2em; text-transform: uppercase; color: var(--red-text); font-weight: 700; margin-bottom: 10px; }
.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head--center { text-align: center; margin-left: auto; margin-right: auto; }
.section-head h2 { font-size: clamp(28px, 4vw, 40px); }
.section-head p { color: var(--muted); font-size: 17px; }
.accent { color: var(--red-text); }

.btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 28px; border-radius: 999px; font-weight: 700; font-size: 16px; border: 2px solid transparent; transition: transform .15s, background .2s, color .2s; cursor: pointer; }
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--red); color: var(--white); }
.btn--primary:hover { background: var(--red-dark); }
.btn--ghost { border-color: currentColor; color: var(--ink); background: transparent; }
.btn--light { background: var(--white); color: var(--ink); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- 首页大图 ---------- */
.hero { position: relative; min-height: min(86vh, 760px); display: flex; align-items: center; color: var(--white); overflow: hidden; }
.hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(25, 15, 8, .78) 0%, rgba(25, 15, 8, .45) 55%, rgba(25, 15, 8, .1) 100%); }
.hero .container { position: relative; z-index: 1; }
.hero__content { max-width: 620px; padding: 80px 0; }
.hero .eyebrow { color: var(--moon); }
.hero h1 { color: var(--white); font-size: clamp(34px, 6vw, 60px); margin-bottom: 20px; }
.hero p { font-size: clamp(16px, 2vw, 19px); color: rgba(255, 255, 255, .9); margin-bottom: 32px; }
.hero .btn--ghost { color: var(--white); }

.page-hero { background: var(--cream); padding: 80px 0 64px; position: relative; overflow: hidden; }
.page-hero h1 { font-size: clamp(32px, 5vw, 48px); }
.page-hero p { color: var(--muted); font-size: 18px; max-width: 680px; margin: 0; }
.page-hero::after { content: ""; position: absolute; right: -60px; top: -60px; width: 260px; height: 260px; border-radius: 50%; background: var(--moon); opacity: .55; }
.page-hero .container { position: relative; z-index: 1; }

/* ---------- 数字 ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); margin-top: -64px; position: relative; z-index: 2; }
.stat { padding: 32px 24px; text-align: center; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat__num { font-family: var(--serif); font-size: clamp(36px, 5vw, 52px); font-weight: 900; color: var(--red); line-height: 1; }
.stat__num small { font-size: .45em; margin-left: 2px; color: var(--ink); }
.stat__label { margin-top: 10px; color: var(--muted); font-size: 15px; }
@media (max-width: 760px) {
  .stats { grid-template-columns: repeat(2, 1fr); margin-top: -40px; }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .stat { padding: 24px 12px; }
}

/* ---------- 图文分栏 ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split--reverse .split__media { order: 2; }
.split__media img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.split h2 { font-size: clamp(26px, 3.6vw, 36px); }
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; gap: 32px; }
  .split--reverse .split__media { order: 0; }
}
.checklist li { position: relative; padding-left: 28px; margin-bottom: 10px; }
.checklist li::before { content: ""; position: absolute; left: 0; top: .55em; width: 14px; height: 14px; border-radius: 50%; background: var(--moon); box-shadow: inset 0 0 0 3px var(--moon-soft); }

/* ---------- 卡片 ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.cards--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .cards, .cards--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .cards, .cards--4 { grid-template-columns: 1fr; } }
.card { background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; transition: transform .2s; }
a.card:hover { transform: translateY(-4px); }
.card__img { aspect-ratio: 4 / 3; overflow: hidden; background: var(--cream); }
.card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
a.card:hover .card__img img { transform: scale(1.05); }
.card__body { padding: 24px; flex: 1; }
.card__body h3 { font-size: 22px; margin-bottom: 8px; }
.card__body p { color: var(--muted); margin: 0; font-size: 15px; }
.card__more { display: inline-block; margin-top: 14px; color: var(--red-text); font-weight: 700; font-size: 15px; }

.feature { background: var(--white); border-radius: var(--radius); padding: 32px 28px; box-shadow: var(--shadow); }
.feature__num { font-family: var(--serif); font-size: 64px; font-weight: 900; color: var(--red); line-height: 1; margin-bottom: 12px; }
.feature h3 { font-size: 21px; }
.feature p { color: var(--muted); margin: 0; font-size: 15px; }
.feature__icon { width: 52px; height: 52px; border-radius: 50%; background: var(--moon); display: grid; place-items: center; font-family: var(--serif); font-weight: 900; font-size: 22px; color: var(--ink); margin-bottom: 16px; }

/* ---------- 跳上月球品牌块 ---------- */
.moon-band { background: var(--cream); position: relative; overflow: hidden; }
.moon-band::before, .moon-band::after { content: ""; position: absolute; border-radius: 50%; background: var(--moon); }
.moon-band::before { width: 340px; height: 340px; left: -120px; bottom: -140px; }
.moon-band::after { width: 90px; height: 90px; right: 8%; top: 40px; }
.moon-band .container { position: relative; z-index: 1; }
.moon-logo { width: 220px; margin-bottom: 20px; }
.slogan { font-family: var(--serif); font-size: clamp(24px, 3.4vw, 34px); font-weight: 900; color: var(--ink); }

.dots { display: flex; gap: 16px; flex-wrap: wrap; }
.dot { text-align: center; font-size: 14px; color: var(--muted); }
.dot span { display: block; width: 72px; height: 72px; border-radius: 50%; margin: 0 auto 8px; box-shadow: inset 0 0 0 4px rgba(255, 255, 255, .35); }

/* ---------- 荣誉 ---------- */
.honors { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.honor { background: var(--white); border-left: 4px solid var(--red); border-radius: 10px; padding: 18px 20px; font-weight: 600; color: var(--ink); box-shadow: var(--shadow); }
@media (max-width: 600px) { .honors { grid-template-columns: 1fr; } }

/* ---------- 时间线 / 流程 ---------- */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; counter-reset: step; }
.step { background: var(--white); border-radius: var(--radius); padding: 28px 20px; box-shadow: var(--shadow); position: relative; }
.step::before { counter-increment: step; content: counter(step, decimal-leading-zero); font-family: var(--serif); font-weight: 900; font-size: 34px; color: var(--moon); display: block; margin-bottom: 8px; }
.step h3 { font-size: 18px; margin-bottom: 6px; }
.step p { font-size: 14px; color: var(--muted); margin: 0; }
@media (max-width: 960px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* ---------- 产品 ---------- */
.tabs { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 32px; }
.tab { font: inherit; font-weight: 600; padding: 10px 22px; border-radius: 999px; border: 2px solid var(--line); background: var(--white); color: var(--text); cursor: pointer; transition: all .2s; }
.tab:hover { border-color: var(--red); color: var(--red-text); }
.tab.is-active { background: var(--red); border-color: var(--red); color: var(--white); }
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
@media (max-width: 1024px) { .product-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px) { .product-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; } }
.product { background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.product[hidden] { display: none; }
.product__img { aspect-ratio: 1; background: var(--cream); overflow: hidden; }
.product__img img { width: 100%; height: 100%; object-fit: cover; }
.product__body { padding: 16px 18px 20px; }
.product__cat { font-size: 12px; color: var(--red-text); font-weight: 700; letter-spacing: .08em; margin: 0 0 4px; }
.product h3 { font-size: 18px; margin-bottom: 4px; }
.product__sub { font-size: 14px; color: var(--muted); margin: 0 0 10px; }
.badge { display: inline-block; font-size: 12px; padding: 2px 10px; border-radius: 999px; font-weight: 600; }
.badge--cold { background: #e4eff8; color: #2f6390; }
.badge--room { background: var(--moon-soft); color: #6d5410; }
@media (max-width: 760px) { .product__body { padding: 12px 12px 14px; } .product h3 { font-size: 16px; } }

/* ---------- 联系 ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-card { background: var(--white); border-radius: var(--radius); padding: 32px 28px; box-shadow: var(--shadow); }
.contact-card h3 { font-size: 20px; }
.contact-card p { margin: 0 0 6px; color: var(--muted); }
.contact-card strong { color: var(--ink); }

.cta { background: var(--red); color: var(--white); border-radius: 20px; padding: 56px 48px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; position: relative; overflow: hidden; }
.cta::after { content: ""; position: absolute; width: 200px; height: 200px; border-radius: 50%; background: var(--moon); right: -60px; bottom: -90px; opacity: .9; }
.cta > * { position: relative; z-index: 1; }
.cta h2 { color: var(--white); font-size: clamp(24px, 3.4vw, 32px); margin-bottom: 6px; }
.cta p { margin: 0; color: var(--white); }
@media (max-width: 600px) { .cta { padding: 40px 24px; } }

.note { font-size: 14px; color: var(--muted); }

/* ---------- 页脚 ---------- */
.site-footer { background: var(--ink); color: rgba(255, 255, 255, .72); padding: 64px 0 0; font-size: 15px; }
.site-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.4fr; gap: 40px; padding-bottom: 40px; }
.site-footer h2 { color: var(--white); font-family: var(--sans); font-size: 16px; font-weight: 700; margin-bottom: 16px; }
.logo--footer .logo__text { color: var(--white); }
.logo--footer .logo__text small { color: rgba(255, 255, 255, .5); }
.site-footer__intro { margin-top: 16px; }
.site-footer__links li, .site-footer__contact li { margin-bottom: 8px; }
.site-footer a:hover { color: var(--moon); }
.site-footer__bottom { border-top: 1px solid rgba(255, 255, 255, .12); padding-top: 20px; padding-bottom: 24px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; font-size: 13px; color: rgba(255, 255, 255, .5); }
.site-footer__bottom p { margin: 0; }
@media (max-width: 760px) { .site-footer__grid { grid-template-columns: 1fr; gap: 28px; } }

/* 进入视口淡入。只在脚本确实能运行时（<html class="js">）才先隐藏，
   没有脚本或脚本加载失败时内容照常显示。 */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

.section-head .eyebrow { color: var(--red-text); font-size: 13px; }
h1, h2 { text-wrap: balance; }
.not-found { padding: 120px 0 140px; }
@media (max-width: 600px) { .not-found { padding: 72px 0 96px; } }

/* ---------- 合作伙伴标志墙 ---------- */
.partner-group + .partner-group { margin-top: 48px; }
.partner-group h3 { font-size: 22px; margin-bottom: 4px; }
.partner-group__desc { color: var(--muted); font-size: 15px; margin: 0; }
.partner-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 16px; margin-top: 20px; }
.partner { background: var(--white); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; text-align: center; transition: transform .2s, box-shadow .2s; }
.partner:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.partner img { width: 100%; aspect-ratio: 9 / 5; object-fit: contain; }
.partner span { display: block; padding: 8px 6px 12px; font-size: 14px; color: var(--text); border-top: 1px solid var(--line); }
.partner-note { text-align: center; margin: 32px 0 0; }
@media (max-width: 520px) { .partner-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; } .partner span { font-size: 12px; padding: 6px 4px 8px; } }

/* 公司全称：字号略小，放得下时一行显示；放不下只在地名和「陈吉旺福食品有限公司」之间换行，不把一个词拆开 */
.contact-card .entity-name { font-size: 18px; }
.entity-name span { white-space: nowrap; }

/* ---------- 在线购买 ---------- */
.shop-band { margin-top: 48px; background: var(--cream); border-radius: 20px; padding: 36px 40px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.shop-band h2 { font-size: clamp(22px, 3vw, 28px); margin-bottom: 4px; }
.shop-band p { margin: 0; color: var(--muted); }
.shop-band__btns { display: flex; gap: 12px; flex-wrap: wrap; }
.shop-btn { display: flex; flex-direction: column; min-width: 200px; padding: 14px 22px; border-radius: 14px; background: var(--red); color: var(--white); transition: transform .15s, background .2s; }
.shop-btn:hover { transform: translateY(-2px); background: var(--red-dark); }
.shop-btn__name { font-weight: 700; font-size: 17px; }
.shop-btn__desc { font-size: 13px; opacity: .92; }
.section--tight { padding-top: 0; }
.section--tight .shop-band { margin-top: 0; }
@media (max-width: 600px) { .shop-band { padding: 28px 20px; } .shop-btn { flex: 1 1 100%; } }

/* 邮箱地址较长，窄屏下允许在任意位置换行，避免撑出横向滚动 */
a.email { overflow-wrap: anywhere; }
.contact-card a.email:hover strong { color: var(--red-text); }
