/* ============================================================
   TI Vertex — 设计系统
   暖性专业调 · 几何科技感无衬线 · B2B 咨询服务商
   ============================================================ */

:root {
  /* 色板 */
  --ink:        #16140f;
  --ink-1:      #2b2820;
  --ink-2:      #57514a;
  --ink-3:      #8a8378;
  --paper:      #efece4;
  --paper-2:    #e6e2d8;
  --surface:    #fbfaf6;
  --surface-2:  #f5f2ea;
  --line:       #d9d4c8;
  --line-soft:  #e4dfd4;
  --accent:     #c0552a;
  --accent-ink: #a3431f;
  --accent-soft:#ecd9cc;
  --accent-wash:#f6ece4;

  /* 字体 */
  --sans: "Space Grotesk", "Noto Sans SC", -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  --cn:   "Noto Sans SC", "Space Grotesk", "PingFang SC", "Microsoft YaHei", sans-serif;
  --mono: "Space Mono", "DM Mono", ui-monospace, "SF Mono", Menlo, monospace;

  /* 半径 / 阴影 */
  --r-sm: 6px;
  --r:    12px;
  --r-lg: 20px;
  --shadow-sm: 0 1px 2px rgba(22,20,15,.04), 0 2px 6px rgba(22,20,15,.04);
  --shadow:    0 4px 14px rgba(22,20,15,.06), 0 18px 40px -20px rgba(22,20,15,.16);
  --shadow-lg: 0 30px 70px -30px rgba(22,20,15,.28);

  /* 度量 */
  --maxw: 1200px;
  --pad:  clamp(20px, 5vw, 64px);
  --nav-h: 72px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--cn);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  letter-spacing: -0.003em;
}

h1, h2, h3, h4 { margin: 0; font-weight: 700; line-height: 1.16; letter-spacing: -0.02em; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

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

/* 通用排版工具 */
.mono {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--mono);
  font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--accent-ink);
}
.eyebrow::before {
  content: ""; width: 22px; height: 1.5px; background: var(--accent);
}
.lead { color: var(--ink-2); font-size: clamp(16px, 1.4vw, 18px); }

.section { padding-block: clamp(72px, 9vw, 130px); }
.section-head { max-width: 720px; margin-bottom: clamp(40px, 5vw, 64px); }
.section-head h2 {
  font-size: clamp(28px, 4vw, 46px);
  margin-top: 18px;
}
.section-head .lead { margin-top: 18px; }

/* ===== 按钮 ===== */
.btn {
  --bg: var(--ink); --fg: var(--surface);
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--cn); font-weight: 600; font-size: 15px;
  padding: 13px 24px; border-radius: 100px; border: 1px solid transparent;
  background: var(--bg); color: var(--fg); cursor: pointer;
  transition: transform .25s cubic-bezier(.2,.8,.2,1), box-shadow .25s, background .25s, color .25s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn .arr { transition: transform .3s cubic-bezier(.2,.8,.2,1); }
.btn:hover .arr { transform: translateX(4px); }
.btn--accent { --bg: var(--accent); --fg: #fff; }
.btn--accent:hover { --bg: var(--accent-ink); }
.btn--ghost {
  --bg: transparent; --fg: var(--ink);
  border-color: var(--line);
}
.btn--ghost:hover { background: var(--surface); border-color: var(--ink-3); }
.btn--sm { padding: 10px 18px; font-size: 14px; }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--nav-h);
  display: flex; align-items: center;
  transition: background .35s, box-shadow .35s, border-color .35s, height .35s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(239,236,228,.82);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  border-bottom-color: var(--line-soft);
  height: 62px;
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: flex; align-items: center; gap: 11px; font-family: var(--sans); font-weight: 700; font-size: 19px; letter-spacing: -0.01em; }
.brand .mark {
  width: 28px; height: 28px; position: relative; flex: none;
}
.brand .mark svg { width: 100%; height: 100%; display: block; }
.brand b { font-weight: 700; }
.brand .v { color: var(--accent); }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  font-size: 14.5px; color: var(--ink-1); font-weight: 500;
  padding: 8px 14px; border-radius: 8px; transition: background .2s, color .2s;
}
.nav-links a:hover { background: var(--surface-2); color: var(--ink); }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.nav-toggle { display: none; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative; overflow: hidden;
  padding-top: calc(var(--nav-h) + clamp(48px, 8vw, 96px));
  padding-bottom: clamp(60px, 8vw, 110px);
  background:
    radial-gradient(120% 90% at 88% -10%, var(--accent-wash) 0%, transparent 52%),
    linear-gradient(180deg, var(--paper) 0%, var(--paper-2) 100%);
}
.hero-grid {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.hero-copy h1 {
  font-size: clamp(34px, 5.2vw, 64px);
  line-height: 1.1; margin-top: 22px;
  letter-spacing: -0.025em;
}
.hero-copy h1 .hl { color: var(--accent); }
.hero-copy .lead { margin-top: 24px; max-width: 30em; font-size: clamp(16px, 1.5vw, 19px); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero-meta {
  margin-top: 40px; padding-top: 26px; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 28px 40px;
}
.hero-meta .item { display: flex; flex-direction: column; gap: 4px; }
.hero-meta .item .k { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; color: var(--ink-3); text-transform: uppercase; }
.hero-meta .item .v { font-size: 14.5px; color: var(--ink-1); font-weight: 500; }

/* Hero 流程图视觉 */
.hero-visual { position: relative; aspect-ratio: 1 / 1.02; }
.flowcard {
  position: absolute; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r); box-shadow: var(--shadow); padding: 14px 16px;
  display: flex; flex-direction: column; gap: 9px; width: max-content;
  opacity: 0; transform: translateY(14px) scale(.97);
  animation: floatIn .7s cubic-bezier(.2,.8,.2,1) forwards;
}
.flowcard .fc-top { display: flex; align-items: center; gap: 9px; }
.flowcard .dot { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.flowcard .fc-label { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; color: var(--ink-2); }
.flowcard .fc-title { font-weight: 600; font-size: 14px; }
.flowcard .bar { height: 6px; border-radius: 4px; background: var(--surface-2); }
@keyframes floatIn { to { opacity: 1; transform: translateY(0) scale(1); } }

.hero-visual .gridframe {
  position: absolute; inset: 0; border-radius: var(--r-lg);
  background:
    linear-gradient(var(--line-soft) 1px, transparent 1px) 0 0 / 100% 38px,
    linear-gradient(90deg, var(--line-soft) 1px, transparent 1px) 0 0 / 38px 100%;
  -webkit-mask-image: radial-gradient(80% 80% at 50% 45%, #000 40%, transparent 78%);
          mask-image: radial-gradient(80% 80% at 50% 45%, #000 40%, transparent 78%);
  opacity: .55;
}
.hero-visual svg.wires { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.hero-visual svg.wires path { fill: none; stroke: var(--accent); stroke-width: 1.6; opacity: .5; stroke-dasharray: 6 7; }
.hero-visual svg.wires .flow { animation: dash 1.4s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -26; } }

.pulse {
  position: absolute; width: 10px; height: 10px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 0 0 rgba(192,85,42,.45);
  animation: pulse 2.4s ease-out infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(192,85,42,.4); }
  70% { box-shadow: 0 0 0 14px rgba(192,85,42,0); }
  100% { box-shadow: 0 0 0 0 rgba(192,85,42,0); }
}

/* ============================================================
   信任条 / logo 占位
   ============================================================ */
.trust { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #e0dbcf; }
.trust .wrap { display: flex; align-items: center; gap: clamp(20px,4vw,48px); padding-block: 22px; flex-wrap: wrap; }
.trust .lbl { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); white-space: nowrap; }
.trust .row { display: flex; align-items: center; gap: clamp(20px,4vw,46px); flex-wrap: wrap; }
.trust .ph {
  font-family: var(--mono); font-size: 13px; color: var(--ink-3);
  border: 1px dashed var(--line); border-radius: 6px; padding: 6px 14px;
}

/* ============================================================
   核心能力 三栏
   ============================================================ */
.caps { background: var(--paper); }
.cap-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.cap {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 30px 28px 32px; position: relative; overflow: hidden;
  transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s, border-color .35s;
}
.cap:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: var(--accent-soft); }
.cap .idx { font-family: var(--mono); font-size: 12px; color: var(--ink-3); letter-spacing: .1em; }
.cap .icn { width: 46px; height: 46px; margin: 18px 0 20px; color: var(--accent); }
.cap .icn svg { width: 100%; height: 100%; }
.cap h3 { font-size: 21px; }
.cap p { color: var(--ink-2); margin-top: 12px; font-size: 15px; }
.cap ul { list-style: none; padding: 0; margin: 20px 0 0; display: flex; flex-direction: column; gap: 9px; }
.cap li { display: flex; gap: 9px; font-size: 14px; color: var(--ink-1); align-items: flex-start; }
.cap li::before { content: ""; width: 6px; height: 6px; border-radius: 2px; background: var(--accent); margin-top: 8px; flex: none; }
.cap .glow {
  position: absolute; right: -40px; top: -40px; width: 130px; height: 130px; border-radius: 50%;
  background: radial-gradient(circle, var(--accent-wash) 0%, transparent 70%); opacity: 0;
  transition: opacity .4s;
}
.cap:hover .glow { opacity: 1; }

/* ============================================================
   适用场景
   ============================================================ */
.uses { background: var(--surface-2); border-block: 1px solid var(--line-soft); }
.use-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line-soft); border: 1px solid var(--line-soft); border-radius: var(--r-lg); overflow: hidden; }
.use {
  background: var(--surface); padding: 28px 26px; display: flex; flex-direction: column; gap: 12px;
  transition: background .3s; min-height: 168px;
}
.use:hover { background: var(--accent-wash); }
.use .u-no { font-family: var(--mono); font-size: 12px; color: var(--accent); letter-spacing: .1em; }
.use h4 { font-size: 18px; }
.use p { color: var(--ink-2); font-size: 14px; }
.use .tag { margin-top: auto; font-family: var(--mono); font-size: 11px; color: var(--ink-3); letter-spacing: .08em; }

/* ============================================================
   案例 / 产品矩阵 (tabs)
   ============================================================ */
.cases { background: var(--paper); }
.tabbar { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 28px; }
.tab {
  font-family: var(--cn); font-weight: 600; font-size: 15px; cursor: pointer;
  background: transparent; border: 1px solid var(--line); color: var(--ink-2);
  padding: 11px 20px; border-radius: 100px; transition: all .25s; display: flex; align-items: center; gap: 9px;
}
.tab .tdot { width: 8px; height: 8px; border-radius: 50%; background: var(--ink-3); transition: background .25s; }
.tab:hover { border-color: var(--ink-3); color: var(--ink); }
.tab.active { background: var(--ink); color: var(--surface); border-color: var(--ink); }
.tab.active .tdot { background: var(--accent); }
.tab .ten { font-family: var(--mono); font-size: 11px; opacity: .6; letter-spacing: .05em; }

.case-panel {
  display: grid; grid-template-columns: .92fr 1.08fr; gap: clamp(28px,4vw,56px);
  align-items: center; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: clamp(28px,4vw,48px); box-shadow: var(--shadow-sm);
}
.case-panel[hidden] { display: none; }
.case-info .case-kicker { font-family: var(--mono); font-size: 12px; letter-spacing: .14em; color: var(--accent-ink); text-transform: uppercase; }
.case-info h3 { font-size: clamp(24px, 3vw, 34px); margin-top: 12px; }
.case-info .role { color: var(--ink-3); font-size: 14px; margin-top: 6px; font-family: var(--mono); letter-spacing: .04em; }
.case-info .desc { color: var(--ink-2); margin-top: 18px; font-size: 15.5px; }
.case-info .pts { list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-direction: column; gap: 12px; }
.case-info .pts li { display: flex; gap: 11px; font-size: 14.5px; align-items: flex-start; }
.case-info .pts li svg { width: 18px; height: 18px; color: var(--accent); flex: none; margin-top: 2px; }
.case-info .chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.case-info .chip { font-family: var(--mono); font-size: 11px; letter-spacing: .06em; padding: 5px 11px; border-radius: 100px; background: var(--surface-2); border: 1px solid var(--line); color: var(--ink-2); }

/* 产品界面示意 (mock) */
.mock { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow); }
.mock .mbar { display: flex; align-items: center; gap: 7px; padding: 11px 14px; border-bottom: 1px solid var(--line); background: var(--surface); }
.mock .mbar .md { width: 9px; height: 9px; border-radius: 50%; background: var(--line); }
.mock .mbar .mt { margin-left: 8px; font-family: var(--mono); font-size: 11px; color: var(--ink-3); letter-spacing: .04em; }
.mock .mbody { padding: 18px; min-height: 280px; }
.ph-img {
  border: 1px dashed var(--line); border-radius: var(--r-sm);
  background-image: repeating-linear-gradient(45deg, var(--surface-2) 0 10px, var(--surface) 10px 20px);
  display: flex; align-items: center; justify-content: center; color: var(--ink-3);
  font-family: var(--mono); font-size: 11px; letter-spacing: .04em; text-align: center; padding: 8px;
}

/* ============================================================
   服务流程
   ============================================================ */
.flow { background: var(--ink); color: var(--surface); }
.flow .section-head h2 { color: var(--surface); }
.flow .eyebrow { color: var(--accent); }
.flow .eyebrow::before { background: var(--accent); }
.flow .lead { color: rgba(251,250,246,.66); }
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; position: relative; margin-top: 20px; }
.step { padding: 0 16px; position: relative; }
.step .node {
  width: 16px; height: 16px; border-radius: 50%; background: var(--ink); border: 2px solid var(--ink-3);
  position: relative; z-index: 2; transition: border-color .4s, background .4s, box-shadow .4s;
}
.step.lit .node { border-color: var(--accent); background: var(--accent); box-shadow: 0 0 0 5px rgba(192,85,42,.18); }
.flow .track { position: absolute; left: 8px; right: 8px; top: 7px; height: 2px; background: rgba(255,255,255,.13); z-index: 1; border-radius: 2px; }
.flow .track .fill { position: absolute; inset: 0; width: 0; background: var(--accent); border-radius: 2px; transition: width 1.4s cubic-bezier(.4,0,.2,1); }
.step .s-no { font-family: var(--mono); font-size: 12px; color: var(--accent); letter-spacing: .1em; margin-top: 22px; }
.step h4 { font-size: 18px; margin-top: 10px; color: var(--surface); }
.step p { color: rgba(251,250,246,.6); font-size: 13.5px; margin-top: 8px; }

/* ============================================================
   联系 CTA + footer
   ============================================================ */
.contact { background: var(--paper); }
.contact-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: clamp(36px, 5vw, 64px); position: relative; overflow: hidden;
  display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(28px,4vw,56px); align-items: center;
}
.contact-card .deco {
  position: absolute; right: -80px; bottom: -80px; width: 300px; height: 300px;
  background: radial-gradient(circle, var(--accent-wash) 0%, transparent 68%); pointer-events: none;
}
.contact-card h2 { font-size: clamp(26px, 3.4vw, 40px); position: relative; }
.contact-card .lead { margin-top: 18px; position: relative; max-width: 32em; }
.contact-fit { list-style: none; padding: 0; margin: 24px 0 0; display: flex; flex-direction: column; gap: 11px; position: relative; }
.contact-fit li { display: flex; gap: 10px; font-size: 14.5px; color: var(--ink-1); align-items: flex-start; }
.contact-fit li svg { width: 18px; height: 18px; color: var(--accent); flex: none; margin-top: 2px; }
.contact-form { position: relative; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r); padding: 24px; }
.contact-form .ff { margin-bottom: 14px; }
.contact-form label { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); display: block; margin-bottom: 7px; }
.contact-form input, .contact-form textarea, .contact-form select {
  width: 100%; font-family: var(--cn); font-size: 14.5px; color: var(--ink);
  background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 11px 13px;
  transition: border-color .2s, box-shadow .2s;
}
.contact-form input:focus, .contact-form textarea:focus, .contact-form select:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(192,85,42,.12);
}
.contact-form textarea { resize: vertical; min-height: 72px; }
.contact-form .btn { width: 100%; justify-content: center; margin-top: 4px; }
.form-note { font-size: 12px; color: var(--ink-3); margin-top: 12px; text-align: center; }

.footer { background: var(--ink); color: rgba(251,250,246,.7); padding-block: clamp(48px, 6vw, 72px) 36px; }
.footer .top { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer .brand { color: var(--surface); }
.footer .f-tag { margin-top: 16px; max-width: 30em; font-size: 14px; color: rgba(251,250,246,.55); }
.footer .cols { display: flex; gap: clamp(36px, 6vw, 80px); flex-wrap: wrap; }
.footer .col h5 { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: rgba(251,250,246,.45); margin: 0 0 14px; font-weight: 500; }
.footer .col a { display: block; font-size: 14px; color: rgba(251,250,246,.72); margin-bottom: 10px; transition: color .2s; }
.footer .col a:hover { color: var(--accent); }
.footer .bot { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 28px; font-size: 12.5px; color: rgba(251,250,246,.4); font-family: var(--mono); letter-spacing: .03em; }

/* ============================================================
   滚动浮现
   ============================================================ */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s cubic-bezier(.2,.8,.2,1), transform .8s cubic-bezier(.2,.8,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; }
.reveal.d4 { transition-delay: .32s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .flowcard { animation: none; opacity: 1; transform: none; }
  .hero-visual svg.wires .flow, .pulse { animation: none; }
  html { scroll-behavior: auto; }
}

/* ============================================================
   响应式
   ============================================================ */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 460px; margin-top: 12px; }
  .cap-grid { grid-template-columns: 1fr; }
  .use-grid { grid-template-columns: repeat(2, 1fr); }
  .case-panel { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; gap: 28px 0; }
  .flow .track { display: none; }
  .step { padding: 0 0 0 0; }
  .contact-card { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .nav-links, .nav-actions .btn--ghost { display: none; }
  .nav-toggle { display: inline-flex; }
  .use-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
}
