/* ==========================================================================
   AwanLink 云桥 — design system
   Independent brand. Tropical-editorial: forest ink, jade, coral, amber.
   ========================================================================== */

:root {
  --bg: #f6f1e6;
  --bg-2: #efe7d6;
  --surface: #ffffff;
  --surface-2: #fbf8f1;

  --ink: #09211d;
  --ink-2: #22413a;
  --muted: #5f746d;
  --line: #e3dbc9;
  --line-2: #d6ccb6;

  --deep: #062622;
  --deep-2: #0a352d;
  --deep-3: #0f453a;

  --jade: #12b886;
  --jade-d: #0b8f68;
  --coral: #ff6a45;
  --coral-d: #e04f2c;
  --amber: #f3a712;
  --gold: #dcb463;

  --radius-xs: 8px;
  --radius-sm: 12px;
  --radius: 18px;
  --radius-lg: 28px;
  --radius-pill: 999px;

  --shadow-sm: 0 2px 10px rgba(6, 38, 34, 0.06);
  --shadow: 0 22px 48px -28px rgba(6, 38, 34, 0.55);
  --shadow-lg: 0 48px 90px -46px rgba(6, 38, 34, 0.6);

  --wrap: 1180px;
  --serif: "Fraunces", "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, "Songti SC", "Songti TC", serif;
  --sans: "Manrope", "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.68;
  color: var(--ink-2);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }
a:hover { color: var(--jade-d); }

h1, h2, h3, h4 {
  font-family: var(--serif);
  color: var(--ink);
  line-height: 1.12;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2.35rem, 4.6vw, 3.9rem); }
h2 { font-size: clamp(1.85rem, 3.2vw, 2.7rem); }
h3 { font-size: clamp(1.2rem, 1.8vw, 1.5rem); }
p { margin: 0 0 1rem; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 820px; }
.center { text-align: center; }

.eyebrow {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--jade-d);
  margin: 0 0 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 2px;
  background: var(--coral);
  display: inline-block;
}
.on-dark .eyebrow { color: var(--gold); }
.on-dark .eyebrow::before { background: var(--coral); }

.lede { font-size: 1.12rem; color: var(--muted); }
.on-dark .lede { color: #b9d3c9; }

/* ---------- skip link ---------- */
.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--deep); color: #fff;
  padding: 10px 16px; border-radius: 0 0 var(--radius-sm) 0; z-index: 200;
}
.skip-link:focus { left: 0; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(246, 241, 230, 0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-bar { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 74px; }

.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand-mark { width: 44px; height: 44px; border-radius: 13px; box-shadow: var(--shadow-sm); }
.brand-text { display: flex; flex-direction: column; line-height: 1.06; }
.brand-name { font-family: var(--serif); font-weight: 600; font-size: 1.16rem; color: var(--ink); }
.brand-sub { font-size: 0.66rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--jade-d); }

.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  position: relative;
  padding: 9px 13px; border-radius: var(--radius-pill);
  font-size: 0.94rem; font-weight: 600; color: var(--ink-2);
  transition: background 0.22s ease, color 0.22s ease;
}
.nav-links a::after {
  content: ""; position: absolute; left: 13px; right: 13px; bottom: 5px; height: 2px;
  background: var(--coral); transform: scaleX(0); transform-origin: left;
  transition: transform 0.26s ease;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { transform: scaleX(1); }
.nav-links a[aria-current="page"] { background: rgba(18, 184, 134, 0.12); color: var(--ink); }
.nav-links a[aria-current="page"]::after { transform: scaleX(1); background: var(--jade); }

.nav-right { display: flex; align-items: center; gap: 12px; }

.lang-switch { display: inline-flex; gap: 2px; padding: 3px; background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--radius-pill); }
.lang-switch button {
  border: 0; background: transparent; cursor: pointer;
  font: inherit; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.04em;
  color: var(--muted); padding: 6px 10px; border-radius: var(--radius-pill);
  transition: background 0.2s ease, color 0.2s ease;
}
.lang-switch button:hover { color: var(--ink); }
.lang-switch button[aria-pressed="true"] { background: var(--deep); color: #fff; }

.nav-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--surface); cursor: pointer; padding: 11px 10px; }
.nav-toggle span { display: block; height: 2px; background: var(--ink); border-radius: 2px; margin: 4px 0; transition: transform 0.25s ease, opacity 0.25s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 13px 24px; border-radius: var(--radius-pill);
  font-weight: 700; font-size: 0.96rem; cursor: pointer; border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.24s ease, background 0.24s ease, color 0.2s ease;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--coral); color: #23110b; box-shadow: 0 16px 30px -16px rgba(255, 106, 69, 0.9); }
.btn-primary:hover { background: var(--coral-d); color: #fff; transform: translateY(-2px); }
.btn-dark { background: var(--deep); color: #fff; }
.btn-dark:hover { background: var(--deep-3); color: #fff; transform: translateY(-2px); }
.btn-ghost { background: transparent; border-color: var(--line-2); color: var(--ink); }
.btn-ghost:hover { border-color: var(--jade); color: var(--jade-d); transform: translateY(-2px); }
.on-dark .btn-ghost { border-color: rgba(255,255,255,0.34); color: #eaf5ef; }
.on-dark .btn-ghost:hover { border-color: var(--gold); color: var(--gold); }

/* ---------- sections ---------- */
section { padding: clamp(64px, 8vw, 116px) 0; }
.dark { background: var(--deep); color: #cfe4db; }
.dark h1, .dark h2, .dark h3 { color: #ffffff; }
.dark a:hover { color: var(--gold); }
.band { background: var(--surface-2); }
.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head.center { margin-left: auto; margin-right: auto; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; padding-top: clamp(56px, 7vw, 96px); padding-bottom: clamp(64px, 8vw, 110px); }
.hero-grid { display: grid; grid-template-columns: 1.06fr 0.94fr; gap: clamp(34px, 5vw, 72px); align-items: center; }
.hero h1 { margin-bottom: 22px; }
.hero h1 em { font-style: italic; color: var(--jade-d); }
.hero .lede { max-width: 34rem; margin-bottom: 30px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 30px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 10px 22px; list-style: none; padding: 0; margin: 0; }
.hero-points li { display: inline-flex; align-items: center; gap: 8px; font-size: 0.92rem; font-weight: 600; color: var(--ink-2); }
.hero-points svg { width: 17px; height: 17px; color: var(--jade-d); }

.hero-art { position: relative; }
.orb { position: absolute; border-radius: 50%; filter: blur(6px); opacity: 0.5; z-index: 0; }
.orb-1 { width: 240px; height: 240px; background: radial-gradient(circle at 30% 30%, rgba(18,184,134,0.55), transparent 70%); top: -40px; right: -30px; }
.orb-2 { width: 200px; height: 200px; background: radial-gradient(circle at 60% 40%, rgba(255,106,69,0.42), transparent 70%); bottom: -30px; left: -20px; }
.globe { position: relative; z-index: 1; width: 100%; filter: drop-shadow(0 30px 50px rgba(6,38,34,0.24)); }

/* stat strip */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-top: 8px; }
.stat { background: var(--surface); padding: 26px 22px; }
.stat .n { font-family: var(--serif); font-size: clamp(1.7rem, 2.6vw, 2.3rem); color: var(--ink); line-height: 1; }
.stat .t { margin-top: 8px; font-size: 0.84rem; color: var(--muted); font-weight: 600; }

/* ---------- cards ---------- */
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 28px; box-shadow: var(--shadow-sm);
  transition: transform 0.28s ease, box-shadow 0.3s ease, border-color 0.28s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--line-2); }
.card h3 { margin-bottom: 10px; }
.card p { margin-bottom: 0; color: var(--muted); }
.card .icon {
  width: 48px; height: 48px; border-radius: 14px; margin-bottom: 18px;
  display: grid; place-items: center;
  background: linear-gradient(140deg, rgba(18,184,134,0.16), rgba(243,167,18,0.14));
  color: var(--jade-d);
}
.card .icon svg { width: 24px; height: 24px; }
.card-link { display: inline-flex; align-items: center; gap: 7px; margin-top: 16px; font-weight: 700; font-size: 0.9rem; color: var(--jade-d); }
.card-link svg { width: 16px; height: 16px; transition: transform 0.24s ease; }
.card:hover .card-link svg { transform: translateX(4px); }

.on-dark .card { background: rgba(255,255,255,0.045); border-color: rgba(255,255,255,0.12); box-shadow: none; }
.on-dark .card p { color: #a9c6bc; }
.on-dark .card:hover { border-color: rgba(220,180,99,0.5); }

.tagged { display: inline-block; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--jade-d); background: rgba(18,184,134,0.12); padding: 4px 10px; border-radius: var(--radius-pill); margin-bottom: 14px; }

/* ---------- split feature ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 64px); align-items: center; }
.split.reverse .split-media { order: 2; }
.panel {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: clamp(26px, 3.4vw, 40px); box-shadow: var(--shadow);
}
.on-dark .panel { background: rgba(255,255,255,0.05); border-color: rgba(255,255,255,0.12); box-shadow: none; }

.checklist { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 13px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; font-size: 0.98rem; }
.checklist svg { width: 20px; height: 20px; flex: none; color: var(--jade-d); margin-top: 3px; }

/* ---------- process steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: step; }
.step { position: relative; padding-top: 26px; border-top: 2px solid var(--line-2); }
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  font-family: var(--serif); font-size: 1.5rem; color: var(--coral); display: block; margin-bottom: 10px;
}
.step h3 { font-size: 1.1rem; }
.step p { color: var(--muted); font-size: 0.94rem; margin: 0; }
.on-dark .step { border-color: rgba(255,255,255,0.16); }
.on-dark .step p { color: #a9c6bc; }

/* ---------- coverage table ---------- */
.matrix { width: 100%; border-collapse: collapse; background: var(--surface); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.matrix th, .matrix td { text-align: left; padding: 16px 20px; border-bottom: 1px solid var(--line); font-size: 0.95rem; }
.matrix th { background: var(--deep); color: #fff; font-weight: 700; letter-spacing: 0.02em; }
.matrix tr:last-child td { border-bottom: 0; }
.matrix td:first-child { font-weight: 700; color: var(--ink); }
.matrix tr:hover td { background: var(--surface-2); }

/* ---------- faq ---------- */
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  cursor: pointer; list-style: none; padding: 22px 44px 22px 0; position: relative;
  font-family: var(--serif); font-size: 1.12rem; color: var(--ink); font-weight: 600;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  font-size: 1.5rem; color: var(--jade-d); transition: transform 0.25s ease;
}
.faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-item p { padding: 0 40px 22px 0; color: var(--muted); }
.on-dark .faq-item { border-color: rgba(255,255,255,0.14); }
.on-dark .faq-item summary { color: #fff; }

/* ---------- cta band ---------- */
.cta {
  background: linear-gradient(145deg, var(--deep-2), var(--deep-3));
  border-radius: var(--radius-lg); padding: clamp(38px, 5vw, 64px);
  display: grid; grid-template-columns: 1.3fr auto; gap: 30px; align-items: center;
  box-shadow: var(--shadow-lg); position: relative; overflow: hidden;
}
.cta::after { content: ""; position: absolute; right: -60px; top: -60px; width: 260px; height: 260px; border-radius: 50%; background: radial-gradient(circle, rgba(243,167,18,0.28), transparent 70%); }
.cta h2 { color: #fff; margin-bottom: 8px; }
.cta p { color: #b9d3c9; margin: 0; }
.cta .btn { position: relative; z-index: 1; }

/* ---------- form ---------- */
.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 18px; }
.field label { font-weight: 700; font-size: 0.88rem; color: var(--ink); }
.field input, .field textarea, .field select {
  font: inherit; padding: 13px 15px; border: 1px solid var(--line-2); border-radius: var(--radius-sm);
  background: var(--surface); color: var(--ink-2); width: 100%;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: 2px solid var(--jade); border-color: var(--jade); }
.form-note { font-size: 0.86rem; color: var(--muted); }

/* ---------- footer ---------- */
.site-footer { background: var(--deep); color: #a9c6bc; padding: 62px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 34px; }
.site-footer h4 { color: #fff; font-family: var(--sans); font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 16px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.site-footer a { color: #a9c6bc; font-size: 0.94rem; }
.site-footer a:hover { color: var(--gold); }
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.footer-brand .brand-name { color: #fff; }
.footer-bottom { margin-top: 44px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,0.12); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 0.84rem; }

/* ---------- reveal animation ---------- */
[data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1); }
[data-reveal].is-visible { opacity: 1; transform: none; }

/* ---------- page hero (subpages) ---------- */
.page-hero { background: var(--deep); color: #cfe4db; padding: clamp(54px, 6vw, 84px) 0; position: relative; overflow: hidden; }
.page-hero::after { content: ""; position: absolute; right: -80px; bottom: -100px; width: 320px; height: 320px; border-radius: 50%; background: radial-gradient(circle, rgba(18,184,134,0.28), transparent 70%); }
.breadcrumb { display: flex; gap: 9px; align-items: center; font-size: 0.82rem; color: #8fb3a7; margin-bottom: 16px; }
.breadcrumb a:hover { color: var(--gold); }

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .hero-grid, .split { grid-template-columns: 1fr; }
  .split.reverse .split-media { order: 0; }
  .grid-4, .steps { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cta { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .nav-links {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: var(--surface); border-bottom: 1px solid var(--line);
    padding: 12px 18px 18px; box-shadow: var(--shadow);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 13px 12px; border-radius: var(--radius-sm); }
  .nav-toggle { display: block; }
  .grid-2, .grid-3, .grid-4, .steps { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  body { font-size: 16px; }
  .brand-sub { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  [data-reveal] { opacity: 1; transform: none; }
}
