/* ==========================================================================
   影落知味 · 官网样式
   温暖生活杂志风 · 米白 / 墨色 / 橙色 · 衬线标题
   ========================================================================== */

/* ---------- 设计 Token ---------- */
:root {
  /* 颜色 */
  --bg: #FAFAF8;            /* 米白底 */
  --bg-warm: #F4EEE2;       /* 暖米（section 交替） */
  --bg-deep: #2A211A;       /* 深咖（深色 section） */
  --cream: #FFFCF6;         /* 卡片白 */

  --ink: #1F1A14;           /* 墨黑（偏暖） */
  --ink-2: #5A5249;         /* 暖灰文字 */
  --ink-3: #736A5B;         /* 浅灰辅助（提深至 WCAG AA：浅底对比 ≈4.6–5.1） */
  --ink-inv: #F7F2E8;       /* 深底上的文字 */

  --brand: #FF6B35;         /* 品牌橙 */
  --brand-deep: #DD4F18;    /* 深橙 hover */
  --brand-soft: #FFE6D8;    /* 橙浅底 */
  --gold: #C28A3C;          /* 金棕点缀（杂志辅助色） */

  --brand-strong: #C2410C;     /* 深品牌橙：实心按钮 / banner 承载白字（白字对比 ≈5.2，达 WCAG AA） */
  --brand-strong-deep: #A3360A;/* 深橙 hover（白字对比 ≈6.8） */

  --line: #E8E0D2;          /* 暖描边 */
  --line-deep: rgba(247, 242, 232, 0.16);

  /* 字体 */
  --serif: 'Songti SC', 'STSong', 'Source Han Serif SC', 'Noto Serif SC', 'SimSun', serif;
  --sans: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'HarmonyOS Sans SC', 'Microsoft YaHei', sans-serif;

  /* 间距 / 圆角 / 阴影 */
  --r-sm: 12px;
  --r-md: 20px;
  --r-lg: 32px;
  --r-xl: 48px;
  --shadow-sm: 0 4px 16px rgba(60, 40, 20, 0.06);
  --shadow-md: 0 18px 48px rgba(60, 40, 20, 0.10);
  --shadow-lg: 0 40px 90px rgba(60, 40, 20, 0.16);

  --container: 1180px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.7;
  font-size: 17px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }

/* 键盘焦点可见（可访问性） */
a:focus-visible, button:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 6px; }

/* 跳到主要内容（键盘用户跳过导航） */
.skip-link {
  position: fixed; top: 0; left: 0; z-index: 10000;
  transform: translateY(-120%);
  background: var(--ink); color: #fff;
  padding: 12px 20px; border-radius: 0 0 12px 12px;
  font-size: 14px; font-weight: 600;
  transition: transform 0.25s var(--ease);
}
.skip-link:focus { transform: translateY(0); outline: none; }

/* ---------- 全局 grain 纹理 ---------- */
.grain {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}

/* ---------- 排版 ---------- */
.serif { font-family: var(--serif); font-weight: 600; letter-spacing: 0.01em; }
.eyebrow {
  font-size: 13px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--brand-strong);
  font-weight: 600;
}
.eyebrow.muted { color: var(--ink-3); }
/* 深色 section 上的辅助小标题单独提亮（不依赖 ink-3，深底对比 ≈6.7） */
.section--deep .eyebrow.muted { color: rgba(247, 242, 232, 0.65); }
.section-no {
  font-family: var(--serif);
  font-size: 15px;
  color: var(--ink-3);
  letter-spacing: 0.1em;
}

/* ---------- 布局 ---------- */
.container { width: min(100% - 48px, var(--container)); margin-inline: auto; }
section[id] { scroll-margin-top: 80px; } /* 固定导航锚点偏移兜底 */
.section { padding: clamp(72px, 11vw, 150px) 0; position: relative; }
.section--warm { background: var(--bg-warm); }
.section--deep { background: var(--bg-deep); color: var(--ink-inv); }
.section--deep .ink-2 { color: rgba(247, 242, 232, 0.72); }
.section--deep .section-no { color: rgba(247, 242, 232, 0.4); }

.section-head { max-width: 720px; margin-bottom: clamp(48px, 7vw, 84px); }
.section-head .eyebrow { margin-bottom: 18px; display: block; }
.section-title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(30px, 4.6vw, 54px);
  line-height: 1.22;
  letter-spacing: 0.005em;
}
.section-title em { font-style: normal; color: var(--brand); }
.section-sub {
  margin-top: 22px;
  font-size: clamp(16px, 1.4vw, 19px);
  color: var(--ink-2);
  line-height: 1.85;
}
.section--deep .section-sub { color: rgba(247, 242, 232, 0.68); }

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 18px 0;
  transition: background 0.4s var(--ease), padding 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.nav.scrolled {
  background: rgba(250, 250, 248, 0.82);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  padding: 12px 0;
  box-shadow: 0 1px 0 var(--line);
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 40px; height: 40px; border-radius: 11px;
  display: block; overflow: hidden; flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(60, 40, 20, 0.14);
}
.brand-mark img { width: 100%; height: 100%; object-fit: cover; display: block; }
.brand-name { font-family: var(--serif); font-weight: 600; font-size: 20px; letter-spacing: 0.06em; }
.nav-links { display: flex; gap: 30px; align-items: center; }
.nav-links a { font-size: 15px; color: var(--ink-2); transition: color 0.25s; position: relative; }
.nav-links a:hover { color: var(--brand); }
.nav-links .nav-cta {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 20px; border-radius: 999px;
  background: var(--ink); color: #fff;
  font-size: 14px; font-weight: 600;
  transition: background 0.25s, transform 0.25s;
}
.nav-links .nav-cta:hover { background: var(--brand); color: #fff; transform: translateY(-1px); }
.nav-toggle { display: none; font-size: 24px; color: var(--ink); }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 30px; border-radius: 999px;
  font-size: 16px; font-weight: 600;
  transition: transform 0.3s var(--ease), box-shadow 0.3s, background 0.3s;
}
.btn--primary { background: var(--brand-strong); color: #fff; box-shadow: 0 14px 32px rgba(255, 107, 53, 0.32); }
.btn--primary:hover { transform: translateY(-2px); background: var(--brand-strong-deep); box-shadow: 0 20px 42px rgba(255, 107, 53, 0.40); }
.btn--ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--line); }
.btn--ghost:hover { border-color: var(--ink); transform: translateY(-2px); }
.btn--inv { background: var(--cream); color: var(--ink); }
.btn--inv:hover { transform: translateY(-2px); background: #fff; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; align-items: center;
  padding: 140px 0 80px;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(60% 50% at 78% 28%, rgba(255, 107, 53, 0.16), transparent 70%),
    radial-gradient(50% 50% at 12% 80%, rgba(194, 138, 60, 0.12), transparent 70%),
    var(--bg);
}
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.hero-eyebrow { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 28px; }
.hero-eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 4px rgba(255,107,53,0.18); }
.hero-title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(38px, 6vw, 78px);
  line-height: 1.1;
  letter-spacing: 0.01em;
}
.hero-title .ln { display: block; white-space: nowrap; }
.hero-title .accent { color: var(--brand); font-style: italic; }
.hero-desc {
  margin-top: 30px;
  font-size: clamp(16px, 1.5vw, 20px);
  color: var(--ink-2); line-height: 1.85;
  max-width: 30em;
}
.hero-actions { margin-top: 40px; display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }
.hero-meta { margin-top: 44px; display: flex; gap: 36px; flex-wrap: wrap; }
.hero-meta .num { font-family: var(--serif); font-size: 30px; font-weight: 600; color: var(--ink); }
.hero-meta .lbl { font-size: 13px; color: var(--ink-3); margin-top: 4px; }

/* Hero 右侧视觉 */
.hero-visual { position: relative; height: 560px; }
.hero-bowl {
  position: absolute; inset: 0;
  display: grid; place-items: center;
}
.hero-bowl svg { width: 100%; height: 100%; max-width: 460px; }
.float-card {
  position: absolute;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-md);
  padding: 14px 18px;
  display: flex; align-items: center; gap: 12px;
  font-size: 14px;
  animation: float 6s ease-in-out infinite;
}
.float-card .ic { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); }
.float-card .t { font-weight: 600; color: var(--ink); }
.float-card .s { font-size: 12px; color: var(--ink-3); }
.float-card.fc-1 { top: 8%; left: -4%; animation-delay: 0s; }
.float-card.fc-2 { bottom: 14%; right: -2%; animation-delay: 1.6s; }
.float-card.fc-3 { bottom: 0%; left: 12%; animation-delay: 3.2s; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

/* ---------- Manifesto 引子 ---------- */
.manifesto { text-align: center; max-width: 900px; margin-inline: auto; }
.manifesto-text {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(26px, 4vw, 48px);
  line-height: 1.45;
  letter-spacing: 0.01em;
}
.manifesto-text .hl { color: var(--brand); }
.manifesto-text .strike { color: var(--ink-3); }
.manifesto-sign { margin-top: 36px; color: var(--ink-3); font-size: 14px; letter-spacing: 0.2em; }

/* ---------- Feature（左右交错） ---------- */
.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 90px);
  align-items: center;
  margin-bottom: clamp(72px, 10vw, 130px);
}
.feature:last-child { margin-bottom: 0; }
.feature.reverse .feature-text { order: 2; }
.feature-no { font-family: var(--serif); font-size: 64px; font-weight: 600; color: var(--brand-soft); line-height: 1; margin-bottom: 8px; }
.feature-eyebrow { color: var(--brand-strong); font-size: 13px; letter-spacing: 0.24em; text-transform: uppercase; font-weight: 600; }
.feature-title {
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(26px, 3.4vw, 40px);
  line-height: 1.25; margin: 16px 0 20px;
}
.feature-desc { color: var(--ink-2); font-size: 17px; line-height: 1.85; }
.feature-tags { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 10px; }
.tag {
  padding: 7px 14px; border-radius: 999px;
  background: var(--brand-soft); color: var(--brand-deep);
  font-size: 13px; font-weight: 500;
}

/* Feature 视觉框（抽象图形卡） */
.feature-visual {
  position: relative;
  aspect-ratio: 4 / 3.4;
  border-radius: var(--r-lg);
  background: var(--cream);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  display: grid; place-items: center;
}
.feature-visual.warm { background: linear-gradient(150deg, #FFE6D8, #FFF3EA); }
.feature-visual.cream { background: linear-gradient(150deg, #FFFCF6, #F6EEDF); }
.feature-visual.dark { background: var(--bg-deep); }
.feature-visual svg { width: 64%; height: auto; }
.feature-visual .badge {
  position: absolute; top: 20px; left: 20px;
  font-family: var(--serif); font-size: 13px; color: var(--ink-3); letter-spacing: 0.1em;
}

/* ---------- AI 亮点卡 ---------- */
.ai-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.ai-card {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 36px 30px;
  color: var(--ink);
  transition: transform 0.4s var(--ease), box-shadow 0.4s, border-color 0.4s;
}
.ai-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: transparent; }
.ai-card .ai-ic { width: 56px; height: 56px; border-radius: 16px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; margin-bottom: 24px; }
.ai-card h3 { font-family: var(--serif); font-size: 23px; font-weight: 600; margin-bottom: 12px; }
.ai-card p { color: var(--ink-2); font-size: 15.5px; line-height: 1.8; }
.ai-card .pill { margin-top: 20px; display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ink-3); }

/* ---------- 更多能力 网格 ---------- */
.more-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.more-item { background: var(--bg); padding: 38px 32px; transition: background 0.3s; }
.section--deep .more-item { background: var(--bg-deep); }
.more-item:hover { background: var(--cream); }
.more-item .mi-ic { width: 44px; height: 44px; border-radius: 12px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; margin-bottom: 18px; }
.section--deep .more-item .mi-ic { background: rgba(255,107,53,0.16); }
.more-item h4 { font-family: var(--serif); font-size: 19px; font-weight: 600; margin-bottom: 8px; }
.more-item p { font-size: 14.5px; color: var(--ink-2); line-height: 1.7; }
.section--deep .more-item p { color: rgba(247,242,232,0.6); }

/* ---------- 界面展示（手机 mockup） ---------- */
.showcase-wrap { display: flex; gap: 40px; justify-content: center; align-items: flex-end; flex-wrap: wrap; }
.phone {
  position: relative;
  width: clamp(220px, 20vw, 290px);
  aspect-ratio: 9 / 19.5;
  border-radius: 42px;
  background: #111;
  padding: 10px;
  box-shadow: var(--shadow-lg);
  transition: transform 0.5s var(--ease);
}
/* 错位挂在每张手机的外层包裹 div 上 —— 每张 .phone 都是其包裹 <div> 的第一个子元素，
   故旧的 .phone:nth-child(n) 永远匹配不到，错位完全失效。改为选包裹 div。 */
.showcase-wrap > div:nth-child(2) .phone { transform: translateY(-30px); }
.showcase-wrap > div:nth-child(3) .phone { transform: translateY(-12px); }
.showcase-wrap > div:nth-child(1) .phone:hover { transform: translateY(-10px) scale(1.015); }
.showcase-wrap > div:nth-child(2) .phone:hover { transform: translateY(-38px) scale(1.015); }
.showcase-wrap > div:nth-child(3) .phone:hover { transform: translateY(-22px) scale(1.015); }
.phone-screen {
  position: relative;
  width: 100%; height: 100%;
  border-radius: 33px;
  overflow: hidden;
  background: var(--bg);
}
.phone-screen img { width: 100%; height: 100%; object-fit: cover; }
.phone-notch {
  position: absolute; top: 16px; left: 50%; transform: translateX(-50%);
  width: 34%; height: 22px; background: #111; border-radius: 0 0 16px 16px; z-index: 2;
}
.phone-caption {
  text-align: center; margin-top: 24px;
}
.phone-caption .t { font-family: var(--serif); font-size: 16px; font-weight: 600; }
.phone-caption .s { font-size: 13px; color: var(--ink-3); margin-top: 4px; }

/* ---------- CTA ---------- */
.cta-box {
  background: var(--brand-strong);
  border-radius: var(--r-xl);
  padding: clamp(48px, 7vw, 84px);
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: center;
  position: relative; overflow: hidden;
  box-shadow: 0 40px 90px rgba(255, 107, 53, 0.32);
}
.cta-box::before {
  content: ''; position: absolute; top: -40%; right: -10%;
  width: 60%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.22), transparent 70%);
}
.cta-title { font-family: var(--serif); font-size: clamp(30px, 4vw, 48px); font-weight: 600; line-height: 1.2; color: #fff; }
.cta-desc { margin-top: 18px; color: rgba(255,255,255,0.9); font-size: 17px; line-height: 1.8; }
.cta-qr {
  background: #fff; border-radius: var(--r-md); padding: 20px;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  margin-left: auto; width: fit-content;
  box-shadow: var(--shadow-md);
}
.cta-qr-img {
  width: 168px; height: 168px; border-radius: var(--r-sm);
  overflow: hidden;
}
.cta-qr-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cta-qr-hint { font-size: 13px; color: var(--ink-2); text-align: center; line-height: 1.5; }
.cta-qr-hint b { color: var(--ink); }

/* ---------- Footer ---------- */
.footer { background: var(--bg-deep); color: var(--ink-inv); padding: 72px 0 40px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.footer-brand .brand-name { color: var(--ink-inv); }
.footer-brand p { color: rgba(247,242,232,0.6); margin-top: 16px; font-size: 14.5px; line-height: 1.8; max-width: 26em; }
.footer h5 { font-family: var(--serif); font-size: 15px; margin-bottom: 18px; color: rgba(247,242,232,0.92); }
.footer ul li { margin-bottom: 12px; }
.footer ul a { color: rgba(247,242,232,0.6); font-size: 14.5px; transition: color 0.25s; }
.footer ul a:hover { color: var(--brand); }
.footer-bottom { margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--line-deep); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; color: rgba(247,242,232,0.5); font-size: 13px; }
.footer-bottom a { transition: color 0.25s; }
.footer-bottom a:hover { color: var(--brand); }

/* ---------- 滚动渐入动画（渐进增强：无 JS 时内容默认可见，避免脚本失败致空白页） ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
.js .reveal.d1 { transition-delay: 0.08s; }
.js .reveal.d2 { transition-delay: 0.16s; }
.js .reveal.d3 { transition-delay: 0.24s; }
.js .reveal.d4 { transition-delay: 0.32s; }

/* ---------- 响应式 ---------- */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-visual { height: 380px; order: -1; }
  .feature { grid-template-columns: 1fr; gap: 32px; }
  .feature.reverse .feature-text { order: 0; }
  .ai-grid { grid-template-columns: 1fr; }
  .more-grid { grid-template-columns: 1fr 1fr; }
  .cta-box { grid-template-columns: 1fr; }
  .cta-qr { margin: 0 auto; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .nav-links { display: none; }
  .nav-toggle { display: block; }
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  .more-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .showcase-wrap { gap: 18px; }
  .phone { width: 200px; }
  .showcase-wrap > div .phone { transform: none; }
  .hero-meta { gap: 24px; }
}

/* 移动端菜单展开 */
.nav-links.open {
  display: flex; flex-direction: column;
  position: absolute; top: 100%; left: 24px; right: 24px;
  background: var(--cream); border: 1px solid var(--line);
  border-radius: var(--r-md); padding: 20px; gap: 16px;
  box-shadow: var(--shadow-md);
}

/* ---------- 尊重 reduced-motion ---------- */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
