/* ============================================================================
   CCBONLINE INC. / 中加商业在线 — Design Tokens
   Source of truth: CCBONLINE VI V3.1-R1 (2026-11-19), inheriting VI V3.0
   (2026-10-10). Colors, type and spacing below are transcribed from the
   official brand system PDF. Do not invent new brand colors.
   ============================================================================ */

/* ---------- Fonts (self-hosted, subset) ---------------------------------- */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/Inter-Regular.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/Inter-Medium.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/Inter-SemiBold.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/Inter-Bold.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter Display';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/InterDisplay-SemiBold.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter Display';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/InterDisplay-Bold.woff2') format('woff2');
}
@font-face {
  font-family: 'Noto Sans SC';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/NotoSansSC-Regular.woff2') format('woff2');
}
@font-face {
  font-family: 'Noto Sans SC';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/NotoSansSC-Medium.woff2') format('woff2');
}
@font-face {
  font-family: 'Noto Sans SC';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/NotoSansSC-Bold.woff2') format('woff2');
}

:root {
  /* ---------- Brand core (VI V3.1 §07) ---------------------------------- */
  --ink: #182F3B;          /* Deep Ink — primary, rule-table headers, body text */
  --teal: #087E75;         /* Atlantic Teal — accent, connectors, eyebrows */
  --paper: #F7F5F0;        /* Warm Paper — default page ground */
  --fog: #DFE6E1;          /* Fog — rules, table bands, dividers, quiet fills */

  /* ---------- Logo-only extension colors (do not use as site palette) --- */
  --inverse-mint: #78CEB6; /* Inverse Mint — deep-ground C mark only */
  --inverse-cjk: #9DDACB;  /* Inverse CJK tint — CJK glyphs on deep ground */
  --white: #FFFFFF;

  /* ---------- Derived neutrals (tints of Deep Ink over Warm Paper) ------ */
  --ink-90: #2C4049;
  --ink-70: #5A6C73;       /* secondary text (VI body/secondary) */
  --ink-55: #7C8A8F;       /* tertiary text, labels */
  --ink-40: #9FA9AC;       /* disabled / micro-labels */
  --paper-2: #EFEDE6;      /* recessed band on Warm Paper */
  --fog-soft: #E9EEEA;     /* table zebra band */
  --teal-ink: #0A5F59;     /* teal pressed / hover-dark */
  --teal-tint: #E4EFEC;    /* accent wash, selection, quiet badges */

  /* ---------- Semantic text -------------------------------------------- */
  --fg1: var(--ink);
  --fg2: var(--ink-70);
  --fg3: var(--ink-55);
  --fg-invert: var(--paper);
  --fg-accent: var(--teal);

  /* ---------- Semantic surfaces ---------------------------------------- */
  --bg: var(--paper);
  --bg-raised: #FFFFFF;
  --bg-deep: var(--ink);
  --bg-recessed: var(--paper-2);
  --bg-accentwash: var(--teal-tint);

  /* ---------- Rules / borders ----------------------------------------- */
  --rule: var(--fog);            /* hairline divider */
  --rule-strong: var(--ink);     /* table header rule / section rule */
  --rule-soft: #EDEAE2;

  /* ---------- Type families ------------------------------------------- */
  --font-en: 'Inter', 'Noto Sans SC', -apple-system, sans-serif;
  --font-display: 'Inter Display', 'Inter', 'Noto Sans SC', sans-serif;
  --font-cjk: 'Noto Sans SC', 'Inter', sans-serif;
  --font-mono: 'Inter', ui-monospace, 'SFMono-Regular', monospace;

  /* ---------- Type scale (VI §08: 32/48/64 reference, body 16–18) ------ */
  --t-display: 64px;    /* cover / hero */
  --t-h1: 48px;
  --t-h2: 32px;
  --t-h3: 24px;
  --t-h4: 20px;
  --t-lead: 18px;       /* website lead paragraph */
  --t-body: 16px;
  --t-small: 14px;
  --t-micro: 12px;      /* eyebrow / caption / legal */
  --t-micro-xs: 11px;

  --lh-tight: 1.15;
  --lh-snug: 1.35;
  --lh-body: 1.7;       /* CJK needs looser leading */
  --lh-en: 1.6;

  --tr-display: -0.02em; /* Inter Display tightens at size */
  --tr-h: -0.015em;
  --tr-eyebrow: 0.14em;  /* uppercase tracking for eyebrows */

  --fw-regular: 400;
  --fw-medium: 500;
  --fw-semibold: 600;
  --fw-bold: 700;

  /* ---------- Spacing (8pt system, VI §09) ---------------------------- */
  --s-1: 8px;
  --s-2: 16px;
  --s-3: 24px;
  --s-4: 32px;
  --s-6: 48px;
  --s-8: 64px;
  --s-10: 80px;
  --s-12: 96px;
  --s-16: 128px;

  /* ---------- Layout -------------------------------------------------- */
  --gutter: 24px;
  --measure: 62ch;        /* reading measure for body copy */
  --page-max: 1200px;     /* website content width */
  --plate-max: 1080px;    /* A4 landscape plate width */

  /* ---------- Radii: brand is rectilinear ---------------------------- */
  --r-0: 0px;
  --r-1: 2px;
  --r-icon: 4px;          /* only for app-icon contexts */
  --r-pill: 999px;        /* exclusive to the logo's C-bar; never UI chrome */

  /* ---------- Elevation: essentially none. Overlays only. ------------ */
  --shadow-none: none;
  --shadow-overlay: 0 18px 44px rgba(24, 47, 59, 0.14), 0 2px 6px rgba(24, 47, 59, 0.08);
  --shadow-lift: 0 1px 0 rgba(24, 47, 59, 0.06);

  /* ---------- Motion ------------------------------------------------- */
  --ease: cubic-bezier(0.2, 0, 0.1, 1);
  --dur-fast: 120ms;
  --dur: 200ms;
  --dur-slow: 320ms;
}

/* ---------- Element defaults ----------------------------------------- */
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg1);
  font-family: var(--font-en);
  font-size: var(--t-body);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: var(--fw-semibold);
  line-height: var(--lh-snug);
  letter-spacing: var(--tr-h);
  text-wrap: pretty;
}

h1 { font-size: var(--t-h1); }
h2 { font-size: var(--t-h2); }
h3 { font-size: var(--t-h3); }
h4 { font-size: var(--t-h4); }

p {
  margin: 0 0 var(--s-2);
  max-width: var(--measure);
  text-wrap: pretty;
}

a { color: var(--teal); text-decoration: none; }
a:hover { color: var(--teal-ink); }

/* CJK text: same scale, looser leading, natural rhythm */
.cjk, [lang="zh"], [lang="zh-CN"] {
  font-family: var(--font-cjk);
  line-height: var(--lh-body);
  letter-spacing: 0;
}

/* Eyebrow / kicker — the VI deck's own section marker */
.eyebrow {
  font-family: var(--font-en);
  font-size: var(--t-micro);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--tr-eyebrow);
  text-transform: uppercase;
  color: var(--teal);
}

/* Numeric / tabular — tables, evidence, figures */
.tnum { font-variant-numeric: tabular-nums; }

code, pre { font-family: var(--font-mono); }
