/* ============================================================
   旭禾主站 · style.css（v11 重构：从 index.html 内联 <style> 抽出）
   层级：tokens.css ① → components.css ② → 本文件 ③
   奢侈极简 × Pentagram 结构 × 异形几何

   本文件只写主站专属排版：
     · 不定义 :root（token 唯一源在 tokens.css）
     · 不重定义 components.css 的 .topbar / .nav / .btn / .toast / .reveal
   ============================================================ */

* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  line-height: var(--t-body-lh);
  font-size: var(--t-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  /* 主站顶栏为"透明 → 滚动后实底"，通过变量覆盖 components.css 的默认值 */
  --topbar-bg: transparent;
  --topbar-line: transparent;
  --topbar-h: 72px;
}

/* ---------- 顶栏（基础在 components.css，此处只写滚动态） ---------- */
.topbar.scrolled { background: rgba(250, 249, 246, .92); box-shadow: 0 1px 0 var(--line); border-bottom-color: var(--line); }

/* ---------- Hero：Pentagram 式动态一句话 ---------- */
.hero {
  min-height: 100svh; display: flex; flex-direction: column; justify-content: center;
  position: relative; padding: 120px clamp(20px, 6vw, 90px) 60px; overflow: hidden;
}
.hero > * { position: relative; z-index: 1; }
.hero-kicker { font-size: 12px; letter-spacing: .4em; color: var(--brand); font-weight: 700; margin-bottom: 26px; }
.hero h1 { font-family: var(--font-serif); font-size: var(--t-hero); font-weight: 600; line-height: var(--t-hero-lh); letter-spacing: .01em; max-width: 14em; }
.hero h1 .rotator { color: var(--brand); position: relative; display: inline-block; min-width: 3.2em; border-bottom: 3px solid var(--brand); padding-bottom: .04em; }
.hero-sub { font-size: clamp(15px, 1.6vw, 18px); color: var(--dim); max-width: 38em; margin-top: 30px; line-height: 2; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 42px; }
.hero-meta { display: flex; gap: clamp(24px, 5vw, 72px); margin-top: var(--s8); flex-wrap: wrap; }
.hero-meta div b { display: block; font-family: var(--font-serif); font-size: clamp(24px, 3vw, 38px); font-weight: 600; }
.hero-meta div span { font-size: 12px; color: var(--faint); letter-spacing: .12em; }
.scroll-hint {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%);
  font-size: 11px; letter-spacing: .3em; color: var(--faint);
  display: flex; flex-direction: column; align-items: center; gap: var(--s2); z-index: 1;
}
.scroll-hint::after { content: ""; width: 1px; height: 36px; background: linear-gradient(var(--faint), transparent); animation: drop 1.8s infinite; }
@keyframes drop {
  0% { transform: scaleY(0); transform-origin: top; }
  55% { transform: scaleY(1); transform-origin: top; }
  56% { transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ---------- 通用 section ---------- */
section.sec { padding: clamp(72px, 10vw, 130px) clamp(20px, 6vw, 90px); position: relative; overflow: hidden; }
.sec-tag { font-size: 11px; letter-spacing: .4em; color: var(--brand); font-weight: 800; margin-bottom: 14px; }
.sec-title { font-family: var(--font-serif); font-size: clamp(26px, 4vw, 46px); font-weight: 600; margin-bottom: 18px; }
.sec-lead { color: var(--dim); max-width: 44em; margin-bottom: 44px; }

/* ---------- 关于：Pentagram 式两栏 ---------- */
.about-grid { display: grid; grid-template-columns: 5fr 6fr; gap: clamp(30px, 6vw, 90px); align-items: start; }
.about-text p { margin: 0 0 18px; color: #3a3833; line-height: 2.1; }
.about-text .big { font-family: var(--font-serif); font-size: clamp(17px, 1.8vw, 21px); color: var(--ink); font-weight: 600; }
.about-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.fact { background: var(--paper); padding: 26px var(--s5); }
.fact b { display: block; font-family: var(--font-serif); font-size: 26px; font-weight: 600; color: var(--brand); }
.fact span { font-size: 12.5px; color: var(--dim); }
@media (max-width: 900px) { .about-grid { grid-template-columns: 1fr; } }

/* ---------- 能力：三张异形卡 ---------- */
.caps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.cap {
  background: #fff; border: 1px solid var(--line); padding: 38px 30px;
  position: relative; overflow: hidden;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.cap:nth-child(1) { border-radius: var(--r-md) 28px var(--r-md) 28px; }
.cap:nth-child(2) { border-radius: 28px var(--r-md) 28px var(--r-md); }
.cap:nth-child(3) { border-radius: var(--r-md) 28px var(--r-md) 28px; }
.cap:hover { transform: translateY(-10px) scale(1.015); box-shadow: var(--shadow-lift); }
.cap:hover .cap-icon { transform: rotate(-8deg) scale(1.12); }
.cap-icon { width: 52px; height: 52px; color: var(--brand); margin-bottom: 20px; transition: transform .45s var(--ease); }
.cap-icon svg { width: 100%; height: 100%; }
.cap:hover h3 { color: var(--brand); }
.cap h3 { font-family: var(--font-serif); font-size: 21px; font-weight: 700; margin-bottom: var(--s2); transition: color .3s; }
.cap .price { font-size: 12px; color: var(--brand); font-weight: 700; letter-spacing: .1em; margin-bottom: var(--s3); }
.cap p { font-size: 13.5px; color: var(--dim); }
.cap ul { list-style: none; margin-top: var(--s4); }
.cap li { font-size: 13px; color: #3a3833; padding: 6px 0 6px 22px; position: relative; }
.cap li::before {
  content: ""; position: absolute; left: 0; top: 12px;
  width: 10px; height: 10px; border-radius: 50% 50% 50% 0; background: var(--gold);
}
.cap::before {
  content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 4px;
  background: linear-gradient(90deg, var(--brand), var(--gold));
  transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease);
}
.cap:hover::before { transform: scaleX(1); }
@media (max-width: 900px) { .caps { grid-template-columns: 1fr; } }

/* ---------- 作品：瀑布流（Pentagram 式错落） ---------- */
.works { columns: 2; column-gap: 28px; }
.work {
  break-inside: avoid; margin-bottom: 28px; background: #fff;
  border: 1px solid var(--line); text-decoration: none; color: var(--ink);
  display: block; position: relative; overflow: hidden;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.work:nth-child(odd) { border-radius: 6px 30px 6px 6px; }
.work:nth-child(even) { border-radius: 6px 6px 30px 6px; }
.work:hover { transform: translateY(-8px); box-shadow: var(--shadow-lift); }
.work .work-arrow {
  position: absolute; top: var(--s4); right: var(--s4); width: 34px; height: 34px;
  border-radius: 50%; background: var(--ink); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 15px;
  opacity: 0; transform: translate(6px, -6px) rotate(-45deg); transition: all var(--dur-base) var(--ease);
}
.work:hover .work-arrow { opacity: 1; transform: translate(0, 0) rotate(0); }
.work-img { position: relative; overflow: hidden; }
.work-img img { width: 100%; display: block; transition: transform .7s var(--ease); }
.work:hover .work-img img { transform: scale(1.045); }
.work-tag {
  position: absolute; top: 14px; left: 14px; background: rgba(20, 20, 20, .82);
  color: #fff; font-size: 11px; font-weight: 700; letter-spacing: .14em;
  padding: 5px 12px; border-radius: var(--r-pill);
}
.work-body { padding: 22px var(--s5) 26px; }
.work-body h3 { font-family: var(--font-serif); font-size: 20px; font-weight: 700; }
.work-body p { font-size: 13px; color: var(--dim); margin-top: 6px; }
.work-nums { display: flex; gap: 20px; margin-top: 14px; }
.work-nums b { font-size: 17px; font-family: var(--font-serif); color: var(--brand); }
.work-nums span { font-size: 11px; color: var(--faint); display: block; }
@media (max-width: 768px) { .works { columns: 1; } }

/* ---------- 色彩资产条 ---------- */
.color-band { display: flex; height: 110px; border-radius: var(--r-md) var(--r-xl) var(--r-md) var(--r-xl); overflow: hidden; border: 1px solid var(--line); cursor: pointer; }
.color-band button { border: none; cursor: pointer; position: relative; transition: flex-grow .5s var(--ease), transform var(--dur-base) var(--ease); }
.color-band button:hover { flex-grow: 1.6 !important; transform: scaleY(1.08); }
.color-band button:focus-visible { outline: 2px solid var(--ink); outline-offset: -3px; z-index: 2; }
.color-band .cb-tip {
  position: absolute; top: -34px; left: 50%; transform: translateX(-50%);
  background: var(--ink); color: #fff; font-size: 11px; font-weight: 700;
  padding: 4px 10px; border-radius: var(--r-pill); white-space: nowrap;
  opacity: 0; transition: opacity .3s; pointer-events: none;
}
.color-band button:hover .cb-tip { opacity: 1; }
.color-band .cb-label { position: absolute; bottom: 10px; left: 0; right: 0; text-align: center; font-size: 11px; font-weight: 700; opacity: 0; transition: opacity .3s; }
.color-band button:hover .cb-label { opacity: 1; }
.band-note { font-size: 12.5px; color: var(--faint); margin-top: var(--s3); text-align: right; }

/* ---------- 联系 ---------- */
.contact-grid { display: grid; grid-template-columns: 5fr 7fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-md) 30px var(--r-md) var(--r-md); overflow: hidden; }
.contact-side { background: var(--ink); color: var(--paper); padding: 52px 44px; display: flex; flex-direction: column; justify-content: space-between; }
.contact-side h2 { font-family: var(--font-serif); font-size: clamp(26px, 3vw, 36px); font-weight: 600; line-height: 1.35; }
.contact-side p { font-size: 13.5px; color: var(--on-dark); margin-top: var(--s4); }
.contact-info { font-size: 13px; line-height: 2.2; color: #E8E4DA; margin-top: 36px; }
.wechat-box { margin-top: 28px; display: flex; align-items: center; gap: var(--s4); background: rgba(255, 255, 255, .06); padding: 14px var(--s4); border-radius: var(--r-organic-b); }
.wechat-qr { flex: none; background: #fff; padding: 4px; border-radius: 6px; line-height: 0; }
.wechat-qr .qr { display: block; width: 84px; height: 84px; object-fit: cover; }
.qr-fallback { width: 84px; height: 84px; display: flex; align-items: center; justify-content: center; background: #fff; border: 1px dashed var(--line); }
.qr-fallback svg { width: 40px; height: 40px; color: var(--ink); }
.wechat-txt b { display: block; font-size: 14px; color: #fff; margin-bottom: 4px; }
.wechat-txt span { font-size: 11.5px; color: var(--on-dark); line-height: 1.7; }
.contact-form { background: var(--paper); padding: 52px 44px; display: grid; grid-template-columns: 1fr 1fr; gap: var(--s4) 18px; }
.f-full { grid-column: 1 / -1; }
.contact-form label { display: block; font-size: 11.5px; font-weight: 700; letter-spacing: .1em; margin-bottom: 6px; color: var(--dim); }
.contact-form input, .contact-form select, .contact-form textarea {
  width: 100%; padding: 13px 15px; font-size: 14px; font-family: inherit;
  border: 1px solid var(--ink); background: #fff; color: var(--ink); outline: none;
  transition: box-shadow .25s, border-color .25s;
}
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand); }
.contact-form textarea { min-height: 96px; resize: vertical; }
.submit-btn {
  grid-column: 1 / -1; background: var(--brand); color: #fff; border: none; min-height: 52px;
  padding: var(--s4); font-size: 14.5px; font-weight: 800; letter-spacing: .1em; cursor: pointer;
  border-radius: var(--r-organic-b); transition: background .3s, transform .3s var(--ease);
}
.submit-btn:hover { background: var(--brand-hover); transform: translateY(-2px); }
.submit-btn:disabled { background: #CCC; cursor: not-allowed; transform: none; }
.form-msg { grid-column: 1 / -1; font-size: 13px; min-height: 20px; font-weight: 700; }
.form-msg.ok { color: #2E7D32; }
.form-msg.err { color: var(--brand); }
@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; }
  .contact-form { grid-template-columns: 1fr; padding: 36px var(--s5); }
  .contact-side { padding: 36px var(--s5); }
}

/* ---------- 子元素错落入场（.reveal / .reveal.in 基类在 components.css） ---------- */
.reveal .cap, .reveal .work, .reveal .fact { opacity: 0; transform: translateY(28px); transition: opacity var(--dur-slow) var(--ease), transform var(--dur-slow) var(--ease); }
.reveal.in .cap, .reveal.in .work, .reveal.in .fact { opacity: 1; transform: none; }
.reveal.in .cap:nth-child(2), .reveal.in .work:nth-child(2), .reveal.in .fact:nth-child(2) { transition-delay: var(--stagger-2); }
.reveal.in .cap:nth-child(3), .reveal.in .work:nth-child(3), .reveal.in .fact:nth-child(3) { transition-delay: var(--stagger-3); }
.reveal.in .work:nth-child(4) { transition-delay: .36s; }
