/* ============================================================
   万链网络 — 编辑式 / 暖米白 / 陶土橙 (Editorial Warm)
   A deliberate departure from the "deep-blue + blue CTA + card grid" look.
   ============================================================ */
:root {
  --paper:      #F7F3EC;   /* warm off-white */
  --paper-2:    #EFE8DB;   /* deeper sand */
  --ink:        #1C1815;   /* warm near-black */
  --ink-soft:   #6E655A;   /* muted warm gray */
  --clay:       #C2552E;   /* terracotta accent */
  --clay-dark:  #9E401F;
  --line:       #E2D8C8;   /* warm hairline */
  --white:      #FFFFFF;
  --radius:     6px;
  --container:  1140px;
  --ease:       cubic-bezier(.22,.61,.36,1);
  --serif:      "Songti SC", "SimSun", Georgia, "Times New Roman", serif;
  --sans:       "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", "Segoe UI", system-ui, -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }
body { overflow-x: clip; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "tnum";
}
h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
ul, ol { list-style: none; padding: 0; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; }
ol { counter-reset: none; }

/* ===== Ambient background (glow + paper grain) =====
   Fixed layers behind content (z-index:0); content sits above (main z-index:1)
   so the glow shows through transparent sections and grain reads as paper texture. */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(44% 38% at 88% 4%, rgba(194,85,46,.14), transparent 62%),
    radial-gradient(50% 42% at 3% 38%, rgba(216,150,86,.12), transparent 60%),
    radial-gradient(38% 34% at 97% 97%, rgba(194,85,46,.08), transparent 62%);
  animation: auraDrift 22s ease-in-out infinite;
}
body::after {
  content: "";
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: .05;
  mix-blend-mode: multiply;
}
@keyframes auraDrift {
  0%, 100% { transform: translate3d(0,0,0) scale(1); }
  50%      { transform: translate3d(-14px,10px,0) scale(1.04); }
}

main { position: relative; z-index: 1; }

/* 3D tilt cards — keep .reveal opacity transition intact */
.hero-aside.reveal, .contact-form.reveal {
  transition: opacity .6s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease), background .2s var(--ease);
  will-change: transform;
  transform-style: preserve-3d;
}

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 28px; }

/* ===== Accessibility ===== */
.skip-link {
  position: absolute; left: 16px; top: -48px;
  background: var(--clay); color: #fff; padding: 10px 16px;
  border-radius: 6px; z-index: 100; transition: top .2s var(--ease);
}
.skip-link:focus { top: 16px; }
:focus-visible { outline: 3px solid var(--clay); outline-offset: 2px; border-radius: 3px; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; padding: 13px 24px; border-radius: 999px;
  font-weight: 600; font-size: 15px; line-height: 1;
  border: 1.5px solid transparent; white-space: nowrap;
  transition: transform .18s var(--ease), background .18s var(--ease), color .18s var(--ease), border-color .18s var(--ease);
}
.btn-primary { background: var(--clay); color: #fff; }
.btn-primary:hover { background: var(--clay-dark); transform: translateY(-2px); }
.btn-text { color: var(--ink); padding-left: 4px; padding-right: 4px; }
.btn-text .arrow { transition: transform .2s var(--ease); }
.btn-text:hover { color: var(--clay); }
.btn-text:hover .arrow { transform: translateX(5px); }
.btn-block { width: 100%; }
/* magnetic buttons get a snappier transform transition */
.magnetic { will-change: transform; transition: transform .18s var(--ease), background .18s var(--ease), color .18s var(--ease); }

/* ===== Header ===== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247,243,236,.88);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .25s var(--ease);
}
.site-header.scrolled { box-shadow: 0 6px 24px rgba(28,24,21,.08); }
.header-inner { display: flex; align-items: center; gap: 20px; height: 72px; transition: height .25s var(--ease); }
.site-header.scrolled .header-inner { height: 62px; }
.brand { display: inline-flex; align-items: center; gap: 11px; }
.brand-mark { width: 16px; height: 16px; background: var(--clay); border-radius: 3px; transform: rotate(45deg); flex: 0 0 auto; }
.brand-text { font-weight: 800; font-size: 19px; letter-spacing: .3px; color: var(--ink); display: inline-flex; align-items: baseline; gap: 8px; }
.brand-en { font-family: var(--serif); font-size: 12px; font-weight: 400; letter-spacing: 3px; color: var(--ink-soft); }
.nav { display: flex; gap: 30px; margin-left: auto; }
.nav a { color: var(--ink-soft); font-weight: 500; font-size: 15px; position: relative; padding: 4px 0; transition: color .2s var(--ease); }
.nav a::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 0; height: 2px; background: var(--clay); transition: width .22s var(--ease); }
.nav a:hover { color: var(--ink); }
.nav a:hover::after { width: 100%; }
.nav a.active { color: var(--ink); }
.nav a.active::after { width: 100%; }
.nav-cta { margin-left: 6px; }

.menu-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; padding: 8px; margin-left: auto; }
.menu-toggle span { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .2s var(--ease), opacity .2s var(--ease); }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav { display: flex; flex-direction: column; gap: 4px; padding: 12px 28px 22px; border-bottom: 1px solid var(--line); background: var(--paper); }
.mobile-nav[hidden] { display: none; }
.mobile-nav a { padding: 13px 4px; color: var(--ink); font-weight: 500; border-bottom: 1px solid var(--paper-2); }
.mobile-nav .btn { margin-top: 14px; border-bottom: 0; }

/* scroll progress bar */
.scroll-progress { position: absolute; left: 0; bottom: 0; height: 2px; width: 0; background: var(--clay); }

/* ===== Hero ===== */
.hero { position: relative; padding: 0; overflow: hidden; }
.hero-deco { position: absolute; top: -90px; right: -60px; width: 300px; height: 300px; overflow: hidden; pointer-events: none; z-index: 0; }
.deco-shape {
  display: block; width: 100%; height: 100%;
  background: linear-gradient(135deg, var(--clay), var(--clay-dark));
  opacity: .10; transform: rotate(45deg);
  border-radius: 18px;
  animation: decoFloat 14s ease-in-out infinite;
}
@keyframes decoFloat {
  0%, 100% { transform: rotate(45deg) translate(0, 0); }
  50%      { transform: rotate(45deg) translate(-18px, 22px); }
}
.hero-grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.5fr 1fr; gap: 56px; align-items: center;
  padding-top: 92px; padding-bottom: 64px;
}
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: 2.5px; text-transform: uppercase; color: var(--clay); margin-bottom: 22px; }
.hero-title {
  font-size: clamp(40px, 6.4vw, 76px); line-height: 1.04; font-weight: 800;
  letter-spacing: -.5px; color: var(--ink);
}
.hero-title .t-line { display: block; overflow: hidden; padding-bottom: .04em; }
.hero-title .t-word { display: inline-block; }
.hero-title .t-word + .t-word { margin-left: .22em; }
.hero-title .accent { color: var(--clay); }
.hero-sub { margin-top: 26px; font-size: clamp(16px, 1.5vw, 19px); color: var(--ink-soft); max-width: 520px; }
.hero-actions { margin-top: 34px; display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }

.hero-aside {
  border: 1px solid var(--line); border-left: 3px solid var(--clay);
  background: var(--white); border-radius: var(--radius); padding: 30px 28px;
}
.aside-label { font-size: 12px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 16px; }
.aside-list li { display: flex; align-items: baseline; gap: 14px; padding: 13px 0; border-bottom: 1px solid var(--paper-2); font-size: 15.5px; }
.aside-list li:last-child { border-bottom: 0; }
.aside-list span { font-family: var(--serif); font-size: 14px; color: var(--clay); font-weight: 700; min-width: 22px; }
.aside-foot { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--paper-2); }
.aside-foot strong { display: block; font-size: 16px; color: var(--ink); }
.aside-foot span { font-size: 13.5px; color: var(--ink-soft); }

.hero-rule { height: 1px; background: var(--line); }

/* ===== Metrics band (count-up) ===== */
.metrics { background: var(--paper); border-bottom: 1px solid var(--line); }
.metrics-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding: 56px 28px; }
.metric { text-align: left; padding-left: 18px; border-left: 2px solid var(--clay); }
.metric-num { display: block; font-family: var(--serif); font-weight: 700; font-size: clamp(36px, 4.4vw, 56px); line-height: 1; color: var(--ink); font-feature-settings: "tnum"; }
.metric-label { display: block; margin-top: 10px; font-size: 14px; color: var(--ink-soft); letter-spacing: .5px; }

/* ===== Section base ===== */
.section { padding: 96px 0; }
.section-paper { background: var(--paper-2); }
.section-head { margin-bottom: 52px; }
.index-num { font-family: var(--serif); font-size: 15px; font-weight: 700; letter-spacing: 4px; color: var(--clay); margin-bottom: 10px; }
.section-eyebrow { font-size: 13px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 14px; }
.section-title { font-size: clamp(27px, 3.6vw, 42px); font-weight: 800; letter-spacing: -.4px; color: var(--ink); line-height: 1.22; }

/* ===== Split (about / contact) ===== */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.split-left .section-title { margin-top: 4px; }
.lead { color: var(--ink-soft); font-size: 17px; }
.principles { margin-top: 28px; display: grid; gap: 18px; }
.principles li { display: flex; gap: 14px; align-items: flex-start; font-size: 15px; color: var(--ink-soft); }
.principles .dot { flex: 0 0 auto; width: 9px; height: 9px; border-radius: 50%; background: var(--clay); margin-top: 9px; }
.principles b { color: var(--ink); font-weight: 700; margin-right: 6px; }

/* ===== Services: numbered index list ===== */
.index-list { border-top: 1px solid var(--line); }
.index-row {
  display: grid; grid-template-columns: 90px 1fr auto; gap: 30px; align-items: center;
  padding: 34px 8px; border-bottom: 1px solid var(--line);
  transition: background .2s var(--ease), padding-left .2s var(--ease);
}
.index-row:hover { background: var(--white); padding-left: 22px; }
.row-num { font-family: var(--serif); font-size: 40px; font-weight: 700; color: var(--ink-soft); line-height: 1; transition: color .2s var(--ease), transform .2s var(--ease); }
.index-row:hover .row-num { color: var(--clay); transform: translateX(4px); }
.row-body h3, .row-body h2 { font-size: 22px; font-weight: 800; color: var(--ink); }
.row-body p { color: var(--ink-soft); font-size: 15px; margin-top: 6px; max-width: 540px; }
.row-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.row-tags li { font-size: 12.5px; color: var(--clay); background: rgba(194,85,46,.10); padding: 5px 12px; border-radius: 999px; font-weight: 600; white-space: nowrap; }

/* ===== Contact ===== */
.contact { background: var(--ink); color: var(--paper); }
.contact .section-eyebrow { color: #C9A98F; }
.contact .section-title { color: #fff; }
.contact .index-num { color: var(--clay); }
.info-list { margin-top: 32px; display: grid; gap: 0; }
.info-list li { display: grid; grid-template-columns: 64px 1fr; gap: 16px; padding: 18px 0; border-top: 1px solid rgba(255,255,255,.12); }
.info-list li:last-child { border-bottom: 1px solid rgba(255,255,255,.12); }
.info-key { font-size: 13px; color: #C9A98F; letter-spacing: 1px; }
.info-val { font-size: 16.5px; color: #fff; }
.info-val a:hover { color: #E8B79E; }

.contact-form { background: var(--white); border-radius: var(--radius); padding: 34px; color: var(--ink); }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 14px; font-weight: 600; color: var(--ink); margin-bottom: 8px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: var(--radius);
  font: inherit; font-size: 15px; color: var(--ink); background: var(--paper);
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease), background .18s var(--ease);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--clay); background: #fff; box-shadow: 0 0 0 3px rgba(194,85,46,.14);
}
.field textarea { resize: vertical; }
.form-note { margin-top: 14px; font-size: 14px; font-weight: 600; min-height: 20px; }
.form-note.ok { color: #1a8a4a; }
.form-note.err { color: #c0392b; }
/* submit button success animation */
.btn.sent { background: #1a8a4a; }
.btn.sent::after { content: " ✓"; }

/* ===== Footer ===== */
.site-footer { background: #161210; color: rgba(247,243,236,.62); }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 42px 28px; flex-wrap: wrap; }
.footer-brand .brand-text { color: #fff; font-size: 19px; font-weight: 800; }
.footer-brand p { font-size: 14px; margin-top: 8px; }
.footer-nav { display: flex; gap: 26px; }
.footer-nav a { font-size: 15px; color: rgba(247,243,236,.72); }
.footer-nav a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 18px 0; }
.footer-bottom p { text-align: center; font-size: 13px; color: rgba(247,243,236,.45); }


/* ===== FAQ：编号栏 + 内容的两列编号清单 ===== */
.section-head--faq {
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .8fr);
  gap: 24px 64px; align-items: end; margin-bottom: 46px;
}
.faq-head-lead { font-size: 15.5px; line-height: 1.85; color: var(--ink-soft); padding-bottom: 9px; }

.faq-list {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 0 56px; align-items: start;
  border-bottom: 1px solid var(--line);
}
.faq-item {
  display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 0 12px;
  padding: 26px 0 30px; border-top: 1px solid var(--line);
}
.faq-num {
  font-family: var(--serif); font-size: 13px; font-weight: 700;
  letter-spacing: 1.5px; color: var(--clay); padding-top: 5px;
}
.faq-item dt { font-size: 17px; font-weight: 700; color: var(--ink); letter-spacing: -.2px; line-height: 1.5; }
.faq-item dd { margin: 10px 0 0; font-size: 15px; line-height: 1.78; color: var(--ink-soft); }

.faq-cta { margin-top: 34px; display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.faq-cta-text { font-size: 15.5px; color: var(--ink-soft); }
.footer-domain { margin-top: 8px; font-size: 13px; color: rgba(247,243,236,.48); letter-spacing: .3px; }
.footer-nap { margin-bottom: 6px; }
.footer-nap a:hover { color: #fff; }

/* ===== 客户 Logo 墙 ===== */
.logo-wall {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px;
}
.logo-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  min-height: 96px; display: flex; align-items: center; justify-content: center;
  padding: 16px 18px;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.logo-card:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(28,24,21,.07); }
.logo-card img { max-width: 100%; max-height: 56px; object-fit: contain; }
.clients-note { margin-top: 24px; font-size: 14px; color: var(--ink-soft); line-height: 1.8; }
.clients-note a { color: var(--clay); }
@media (max-width: 900px) { .logo-wall { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 720px) {
  .logo-wall { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .logo-card { min-height: 78px; padding: 12px; }
  .logo-card img { max-height: 42px; }
}
@media (max-width: 520px) { .logo-wall { grid-template-columns: repeat(2, 1fr); } }

/* ===== Reveal ===== */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ===== Custom cursor (fine-pointer only) ===== */
.cursor-ring, .cursor-dot { position: fixed; top: 0; left: 0; pointer-events: none; z-index: 9999; border-radius: 50%; opacity: 0; }
.cursor-ring { width: 34px; height: 34px; border: 1.5px solid var(--clay); transform: translate(-50%, -50%); transition: width .2s var(--ease), height .2s var(--ease), background .2s var(--ease), opacity .2s var(--ease); }
.cursor-dot { width: 6px; height: 6px; background: var(--clay); transform: translate(-50%, -50%); transition: opacity .2s var(--ease); }
.cursor-ring.hover { width: 56px; height: 56px; background: rgba(194,85,46,.12); }
body.cursor-on, body.cursor-on a, body.cursor-on button, body.cursor-on input, body.cursor-on select, body.cursor-on textarea, body.cursor-on .index-row { cursor: none; }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 34px; padding-top: 64px; }
  .split { grid-template-columns: 1fr; gap: 36px; }
  .index-row { grid-template-columns: 56px 1fr; gap: 18px; }
  .row-tags { grid-column: 1 / -1; margin-top: 4px; }
  .row-num { font-size: 30px; }
  .metrics-grid { grid-template-columns: repeat(2, 1fr); gap: 28px 24px; }
  .section-head--faq { grid-template-columns: 1fr; gap: 16px; align-items: start; }
  .faq-head-lead { padding-bottom: 0; }
  .faq-list { grid-template-columns: 1fr; gap: 0; }
}
@media (max-width: 720px) {
  .faq-item { grid-template-columns: 30px minmax(0, 1fr); gap: 0 6px; padding: 22px 0 24px; }
  .faq-num { letter-spacing: 1px; padding-top: 4px; }
  .faq-item dt { font-size: 16px; }
  .faq-item dd { font-size: 14.6px; }
  .nav, .nav-cta { display: none; }
  .menu-toggle { display: flex; }
  .section { padding: 72px 0; }
  .index-row { padding: 26px 4px; }
  .metrics-grid { grid-template-columns: repeat(2, 1fr); padding: 44px 28px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  /* hero title: keep visible, no mask reveal */
  .hero-title .t-line { overflow: visible; }
  .hero-title .t-word { opacity: 1 !important; transform: none !important; }
  .deco-shape { animation: none; }
}

/* Hero title mask-reveal: only when JS animation is on AND motion is allowed */
@media (prefers-reduced-motion: no-preference) {
  body.js-anim .hero-title .t-word { opacity: 0; transform: translateY(110%); }
  body.js-anim.play .hero-title .t-word { opacity: 1; transform: translateY(0); transition: opacity .7s var(--ease), transform .7s var(--ease); }
  body.js-anim.play .hero-title .t-line:nth-child(1) .t-word { transition-delay: .05s; }
  body.js-anim.play .hero-title .t-line:nth-child(2) .t-word:nth-child(1) { transition-delay: .16s; }
  body.js-anim.play .hero-title .t-line:nth-child(2) .t-word:nth-child(2) { transition-delay: .28s; }
}

/* ============================================================
   Sub-page & new blocks (案例板块 / 案例页 / B2B 表单两列)
   ============================================================ */

/* 案例板块：可点击的列表行 + 底部动作区 */
.index-row .row-link { display: inline-block; }
.index-row .row-link:hover { color: var(--clay); }
.case-cta { margin-top: 36px; display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }

/* 子页面（案例页）顶部导语与面包屑 */
.page-intro { max-width: 780px; }
.breadcrumb { font-size: 13px; letter-spacing: .6px; color: var(--ink-soft); margin-bottom: 14px; }
.breadcrumb a:hover { color: var(--clay); }
.breadcrumb span { margin: 0 8px; color: var(--line); }
.page-intro .lead { margin-top: 18px; }
.case-source { margin-top: 26px; font-size: 14px; color: var(--ink-soft); }

/* B2B 咨询表单：短字段两列排布 */
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.field-row > .field { min-width: 0; }
@media (max-width: 680px) {
  .field-row { grid-template-columns: 1fr; }
}
