/* ============================================================
 * 云擎 · 企业定制客服 · 主样式
 * 模块顺序：变量 → reset → 排版 → 按钮 → 各业务板块 → 动画 → 响应式
 * ============================================================ */

/* ---------- 设计变量 ---------- */
:root {
  /* Brand palette — navy + warm gold */
  --navy-900: #071523;
  --navy-800: #0a1d33;
  --navy-700: #0f2a4a;
  --navy-600: #163a63;
  --navy-500: #21507f;
  --gold: #c9a24b;
  --gold-bright: #e3c98a;
  --gold-deep: #a9852f;

  --cream: #f7f4ec;
  --paper: #ffffff;
  --ink: #14202f;
  --ink-soft: #34465c;
  --muted: #5d6b7e;
  --line: #e4ddcf;
  --line-dark: rgba(227, 201, 138, 0.18);

  --radius: 14px;
  --radius-lg: 22px;
  --maxw: 1200px;
  --shadow-sm: 0 1px 2px rgba(7, 21, 35, 0.06), 0 6px 18px rgba(7, 21, 35, 0.05);
  --shadow-md: 0 10px 40px rgba(7, 21, 35, 0.10);

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --font-display: "Fraunces", "Songti SC", Georgia, serif;
  --font-body: "Manrope", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
}

/* ---------- Reset ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
::selection { background: var(--gold); color: var(--navy-900); }

.wrap { width: min(100% - 2.4rem, var(--maxw)); margin-inline: auto; }
.eyebrow {
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--gold-deep);
  display: inline-flex; align-items: center; gap: 0.6rem;
}
.eyebrow::before {
  content: ""; width: 26px; height: 1px; background: var(--gold); display: inline-block;
}
.eyebrow.on-dark { color: var(--gold-bright); }
.eyebrow.on-dark::before { background: var(--gold-bright); }

h1, h2, h3 { font-family: var(--font-display); font-weight: 500; line-height: 1.08; letter-spacing: -0.01em; color: var(--navy-900); }
h2 { font-size: clamp(1.9rem, 3.6vw, 3rem); }
h3 { font-size: 1.28rem; font-weight: 600; }

.lede { color: var(--ink-soft); font-size: clamp(1rem, 1.4vw, 1.12rem); max-width: 56ch; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--font-body); font-weight: 700; font-size: 0.95rem;
  padding: 0.85rem 1.5rem; border-radius: 999px; cursor: pointer;
  border: 1px solid transparent; transition: all 0.35s var(--ease);
  white-space: nowrap;
}
.btn-gold { background: var(--gold); color: var(--navy-900); }
.btn-gold:hover { background: var(--gold-bright); transform: translateY(-2px); box-shadow: 0 10px 26px rgba(201,162,75,0.35); }
.btn-ghost { background: transparent; color: var(--navy-800); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-deep); }
.btn-ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,0.28); }
.btn-ghost-light:hover { border-color: var(--gold-bright); color: var(--gold-bright); }
.btn .arrow { transition: transform 0.35s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }

/* ---------- Header / Nav ---------- */
header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247,244,236,0.82); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 0.6rem; font-weight: 800; font-size: 1.18rem; letter-spacing: -0.01em; color: var(--navy-900); }
.brand .mark {
  width: 34px; height: 34px; border-radius: 9px; flex: none;
  background: linear-gradient(140deg, var(--navy-700), var(--navy-900));
  display: grid; place-items: center; color: var(--gold-bright);
  font-family: var(--font-display); font-size: 1.15rem; font-weight: 600;
  border: 1px solid var(--line-dark);
}
.brand small { display: block; font-family: var(--font-body); font-weight: 600; font-size: 0.62rem; letter-spacing: 0.24em; color: var(--muted); margin-top: -2px; }

.nav-links { display: flex; align-items: center; gap: 2rem; list-style: none; }
.nav-links a { font-weight: 600; font-size: 0.95rem; color: var(--ink-soft); position: relative; padding: 0.2rem 0; transition: color 0.3s; }
.nav-links a::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 0; height: 2px; background: var(--gold); transition: width 0.35s var(--ease); }
.nav-links a:hover { color: var(--navy-900); }
.nav-links a:hover::after { width: 100%; }
.nav-cta { display: flex; align-items: center; gap: 0.9rem; }

.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 10px; width: 44px; height: 44px; cursor: pointer; }
.nav-toggle span { display: block; width: 20px; height: 2px; background: var(--navy-900); margin: 4px auto; transition: 0.3s; }

/* ---------- Hero ---------- */
.hero { position: relative; background: radial-gradient(120% 120% at 85% 0%, var(--navy-700) 0%, var(--navy-900) 55%); color: #fff; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(227,201,138,0.06) 1px, transparent 1px), linear-gradient(90deg, rgba(227,201,138,0.06) 1px, transparent 1px);
  background-size: 64px 64px; mask-image: radial-gradient(80% 80% at 80% 10%, #000, transparent 70%);
  pointer-events: none;
}
.hero::after {
  content: ""; position: absolute; right: -160px; top: -160px; width: 520px; height: 520px;
  border: 1px solid var(--line-dark); border-radius: 50%;
  box-shadow: 0 0 0 60px rgba(227,201,138,0.04), 0 0 0 140px rgba(227,201,138,0.025);
  pointer-events: none;
}
.hero-grid { position: relative; z-index: 2; display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 3.5rem; align-items: center; padding: clamp(3.5rem, 7vw, 6rem) 0 clamp(3rem, 5vw, 4.5rem); }
.hero h1 { color: #fff; font-size: clamp(2.4rem, 5.4vw, 4.1rem); margin: 1.2rem 0 1.3rem; }
.hero h1 em { font-style: italic; color: var(--gold-bright); }
.hero p.lede { color: rgba(255,255,255,0.78); }
.hero-actions { display: flex; gap: 1rem; margin-top: 2.2rem; flex-wrap: wrap; }

.hero-card {
  background: rgba(255,255,255,0.04); border: 1px solid var(--line-dark);
  border-radius: var(--radius-lg); padding: 2rem; backdrop-filter: blur(6px);
}
.hero-card h4 { font-family: var(--font-body); font-weight: 700; font-size: 0.82rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold-bright); margin-bottom: 1.4rem; }
.stat-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem 1rem; }
.stat .num { font-family: var(--font-display); font-size: clamp(1.9rem, 3vw, 2.4rem); font-weight: 600; color: #fff; line-height: 1; }
.stat .num span { color: var(--gold-bright); }
.stat .label { font-size: 0.83rem; color: rgba(255,255,255,0.66); margin-top: 0.4rem; }

/* ---------- Trust strip ---------- */
.trust { background: var(--navy-800); color: rgba(255,255,255,0.7); border-top: 1px solid var(--line-dark); }
.trust .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.2rem 0; }
.trust strong { color: #fff; font-weight: 700; }
.trust .logos { display: flex; flex-wrap: wrap; gap: 1.8rem; font-family: var(--font-display); font-size: 1.05rem; color: rgba(255,255,255,0.45); letter-spacing: 0.02em; }
.trust .logos span { transition: color 0.3s; }
.trust .logos span:hover { color: var(--gold-bright); }

/* ---------- Section base ---------- */
section { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.section-head { max-width: 64ch; margin-bottom: 3rem; }
.section-head h2 { margin: 1rem 0 1rem; }
.section-head p { color: var(--muted); }

/* ---------- Services (服务介绍) ---------- */
.services { background: var(--paper); }
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.svc-card {
  border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 2rem 1.8rem;
  background: var(--cream); transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s;
  position: relative; overflow: hidden;
}
.svc-card::before { content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 0; background: var(--gold); transition: width 0.5s var(--ease); }
.svc-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: var(--gold); }
.svc-card:hover::before { width: 100%; }
.svc-ico { width: 52px; height: 52px; border-radius: 13px; background: var(--navy-900); color: var(--gold-bright); display: grid; place-items: center; margin-bottom: 1.3rem; }
.svc-ico svg { width: 26px; height: 26px; }
.svc-card h3 { margin-bottom: 0.6rem; }
.svc-card p { color: var(--muted); font-size: 0.95rem; }
.svc-card ul { list-style: none; margin-top: 1.1rem; display: grid; gap: 0.55rem; }
.svc-card li { font-size: 0.9rem; color: var(--ink-soft); display: flex; gap: 0.55rem; align-items: flex-start; }
.svc-card li svg { width: 16px; height: 16px; color: var(--gold-deep); flex: none; margin-top: 4px; }

/* Feature split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem; align-items: center; margin-top: 4.5rem; }
.split-visual { background: linear-gradient(150deg, var(--navy-700), var(--navy-900)); border-radius: var(--radius-lg); padding: 2.4rem; color: #fff; position: relative; overflow: hidden; }
.split-visual::after { content: ""; position: absolute; right: -80px; bottom: -80px; width: 240px; height: 240px; border: 1px solid var(--line-dark); border-radius: 50%; }
.split-visual h4 { font-family: var(--font-body); font-size: 0.8rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold-bright); margin-bottom: 1.2rem; }
.team-row { display: flex; align-items: center; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--line-dark); }
.team-row:last-child { border-bottom: 0; }
.team-ava { width: 42px; height: 42px; border-radius: 50%; background: rgba(227,201,138,0.16); color: var(--gold-bright); display: grid; place-items: center; font-family: var(--font-display); font-weight: 600; flex: none; }
.team-row .t-name { font-weight: 700; }
.team-row .t-role { font-size: 0.82rem; color: rgba(255,255,255,0.6); }

/* ---------- Advantages (企业优势) ---------- */
.advantages { background: var(--navy-900); color: #fff; position: relative; overflow: hidden; }
.advantages::before { content: ""; position: absolute; left: -120px; bottom: -120px; width: 380px; height: 380px; border: 1px solid var(--line-dark); border-radius: 50%; }
.advantages .section-head h2 { color: #fff; }
.advantages .section-head p { color: rgba(255,255,255,0.7); }
.adv-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.2rem; position: relative; z-index: 2; }
.adv-item { border: 1px solid var(--line-dark); border-radius: var(--radius); padding: 1.8rem; background: rgba(255,255,255,0.025); transition: background 0.4s, border-color 0.4s; }
.adv-item:hover { background: rgba(227,201,138,0.06); border-color: var(--gold); }
.adv-num { font-family: var(--font-display); font-size: 1.4rem; color: var(--gold-bright); font-weight: 600; }
.adv-item h3 { color: #fff; font-size: 1.15rem; margin: 0.6rem 0 0.5rem; }
.adv-item p { color: rgba(255,255,255,0.66); font-size: 0.93rem; }

/* ---------- Cases (成功案例) ---------- */
.cases { background: var(--cream); }
.case-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.6rem; }
.case-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 2rem; display: flex; flex-direction: column; transition: transform 0.4s var(--ease), box-shadow 0.4s; }
.case-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.case-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.2rem; }
.case-tag { font-size: 0.74rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold-deep); background: rgba(201,162,75,0.12); padding: 0.35rem 0.7rem; border-radius: 999px; }
.case-card h3 { font-size: 1.25rem; margin-bottom: 0.5rem; }
.case-card p { color: var(--muted); font-size: 0.94rem; flex: 1; }
.case-metrics { display: flex; gap: 1.8rem; margin: 1.4rem 0; padding-top: 1.2rem; border-top: 1px solid var(--line); }
.case-metrics .m-num { font-family: var(--font-display); font-size: 1.7rem; font-weight: 600; color: var(--navy-800); }
.case-metrics .m-lab { font-size: 0.78rem; color: var(--muted); }
.case-quote { font-style: italic; color: var(--ink-soft); font-size: 0.92rem; border-left: 2px solid var(--gold); padding-left: 1rem; }

/* ---------- Process (服务流程) ---------- */
.process { background: var(--paper); }
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; position: relative; margin-top: 1rem; }
.steps::before { content: ""; position: absolute; top: 27px; left: 8%; right: 8%; height: 1px; background: var(--line); }
.step { text-align: center; padding: 0 0.8rem; position: relative; }
.step .dot { width: 54px; height: 54px; margin: 0 auto 1.1rem; border-radius: 50%; background: var(--navy-900); color: var(--gold-bright); display: grid; place-items: center; font-family: var(--font-display); font-size: 1.3rem; font-weight: 600; border: 3px solid var(--paper); box-shadow: 0 0 0 1px var(--line); position: relative; z-index: 2; transition: transform 0.4s var(--ease), background 0.4s; }
.step:hover .dot { transform: scale(1.08); background: var(--gold); color: var(--navy-900); }
.step h3 { font-size: 1.05rem; margin-bottom: 0.4rem; }
.step p { font-size: 0.86rem; color: var(--muted); }

/* ---------- Consultation / Form ---------- */
.consult { background: radial-gradient(120% 120% at 10% 0%, var(--navy-700), var(--navy-900)); color: #fff; }
.consult-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 3.5rem; align-items: start; }
.consult-info h2 { color: #fff; margin: 1rem 0 1.2rem; }
.consult-info p { color: rgba(255,255,255,0.72); }
.contact-list { list-style: none; margin-top: 2rem; display: grid; gap: 1.1rem; }
.contact-list li { display: flex; gap: 0.9rem; align-items: flex-start; }
.contact-list .c-ico { width: 40px; height: 40px; flex: none; border-radius: 11px; background: rgba(227,201,138,0.12); color: var(--gold-bright); display: grid; place-items: center; }
.contact-list .c-ico svg { width: 20px; height: 20px; }
.contact-list .c-k { font-size: 0.8rem; color: rgba(255,255,255,0.55); letter-spacing: 0.08em; text-transform: uppercase; }
.contact-list .c-v { font-weight: 600; color: #fff; }

.form-card { background: var(--paper); border-radius: var(--radius-lg); padding: clamp(1.6rem, 3vw, 2.6rem); color: var(--ink); box-shadow: var(--shadow-md); }
.form-card h3 { margin-bottom: 0.4rem; }
.form-card .sub { color: var(--muted); font-size: 0.9rem; margin-bottom: 1.6rem; }
.field { margin-bottom: 1.1rem; }
.field.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.field label { display: block; font-size: 0.85rem; font-weight: 600; color: var(--ink-soft); margin-bottom: 0.45rem; }
.field input, .field select, .field textarea {
  width: 100%; font-family: var(--font-body); font-size: 0.95rem; color: var(--ink);
  background: var(--cream); border: 1px solid var(--line); border-radius: 11px; padding: 0.8rem 0.95rem;
  transition: border-color 0.3s, box-shadow 0.3s, background 0.3s;
}
.field textarea { resize: vertical; min-height: 96px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold); background: #fff; box-shadow: 0 0 0 4px rgba(201,162,75,0.14); }
.form-card .btn-gold { width: 100%; justify-content: center; margin-top: 0.4rem; }
.form-note { font-size: 0.78rem; color: var(--muted); margin-top: 0.9rem; text-align: center; }
.form-success { display: none; text-align: center; padding: 1.5rem 0; }
.form-success.show { display: block; animation: pop 0.5s var(--ease); }
.form-success .ok { width: 60px; height: 60px; border-radius: 50%; background: rgba(201,162,75,0.16); color: var(--gold-deep); display: grid; place-items: center; margin: 0 auto 1rem; }
.form-success .ok svg { width: 30px; height: 30px; }

/* ---------- Footer ---------- */
footer { background: var(--navy-900); color: rgba(255,255,255,0.6); padding: 3.5rem 0 2rem; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; margin-bottom: 2.5rem; }
footer .brand { color: #fff; margin-bottom: 1rem; }
footer .brand small { color: rgba(255,255,255,0.5); }
.foot-about { font-size: 0.9rem; max-width: 34ch; }
.foot-col h5 { font-family: var(--font-body); font-size: 0.82rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold-bright); margin-bottom: 1rem; }
.foot-col a { display: block; font-size: 0.9rem; padding: 0.32rem 0; color: rgba(255,255,255,0.62); transition: color 0.3s; }
.foot-col a:hover { color: var(--gold-bright); }
.foot-bottom { border-top: 1px solid var(--line-dark); padding-top: 1.5rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.8rem; font-size: 0.82rem; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@keyframes pop { from { opacity: 0; transform: scale(0.92); } to { opacity: 1; transform: scale(1); } }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .svc-grid { grid-template-columns: 1fr 1fr; }
  .split { grid-template-columns: 1fr; gap: 2rem; }
  .case-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; gap: 2rem 0; }
  .steps::before { display: none; }
  .consult-grid { grid-template-columns: 1fr; gap: 2rem; }
  .adv-grid { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  .nav-links, .nav-cta .btn-ghost { display: none; }
  .nav-toggle { display: block; }
  .nav.open .nav-links {
    display: flex; flex-direction: column; position: absolute; top: 72px; left: 0; right: 0;
    background: var(--cream); border-bottom: 1px solid var(--line); padding: 1rem 1.2rem 1.4rem; gap: 1.1rem;
  }
  .nav.open .nav-links a { font-size: 1.05rem; }
  .svc-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .field.row2 { grid-template-columns: 1fr; }
  .stat-row { grid-template-columns: 1fr 1fr; }
  .foot-grid { grid-template-columns: 1fr; }
  .trust .wrap { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
