/* ==========================================================================
   洄汀科技 · 公司官网
   在 style.css 的 token / header / footer / legal 基础上扩展，不引外部依赖。
   ========================================================================== */

:root {
  --clay: #b9633f;
  --clay-soft: #f3e4da;
  --gold: #9a7a45;
  --ink-soft: #23282c;
  --container-wide: 1200px;
}

body { background: var(--paper); }

.brand { gap: 9px; }
.brand-mark { width: 30px; height: 30px; stroke: var(--accent); }
.brand-name { font-size: 16px; letter-spacing: -.02em; }
.brand-en {
  margin-left: 2px;
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: .16em;
  color: var(--muted);
  transform: translateY(1px);
}

.nav a.is-current { color: var(--ink); background: var(--surface-2); }

/* --------------------------------------------------------------- page hero */
.page-hero { padding: 84px 0 66px; overflow: hidden; }
.page-hero .container { position: relative; }
.hero-company {
  display: grid;
  grid-template-columns: 1.02fr .98fr;
  gap: 64px;
  align-items: center;
}
.hero-company h1 {
  font-size: clamp(38px, 4.9vw, 66px);
  line-height: 1.08;
  letter-spacing: -.045em;
  margin-bottom: 22px;
}
.hero-company h1 em {
  font-style: normal;
  color: var(--accent);
  position: relative;
  isolation: isolate;
  white-space: nowrap;
}
.hero-company h1 em::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 4px;
  height: .22em;
  background: var(--accent-soft);
  z-index: -1;
  border-radius: 2px;
}
.hero-company .lede { max-width: 35em; font-size: 16.5px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 26px; padding: 0; }
.hero-meta li { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted); }
.hero-meta li + li::before { content: ""; width: 1px; height: 10px; background: var(--line-strong); margin-right: 10px; }
.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }

/* -------------------------------------------------------------- capability board */
.board {
  position: relative;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background:
    radial-gradient(120% 100% at 100% 0%, color-mix(in srgb, var(--accent-soft) 70%, transparent), transparent 58%),
    var(--surface);
  box-shadow: var(--shadow-lg);
  isolation: isolate;
}
.board::before {
  content: "";
  position: absolute;
  inset: -18% -12% auto auto;
  width: 280px; height: 280px;
  border: 1px solid color-mix(in srgb, var(--accent) 18%, transparent);
  border-radius: 50%;
  box-shadow:
    0 0 0 26px color-mix(in srgb, var(--accent) 4%, transparent),
    0 0 0 52px color-mix(in srgb, var(--accent) 3%, transparent);
  z-index: -1;
  pointer-events: none;
}
.board-head {
  display: flex; align-items: center; gap: 8px;
  padding: 2px 4px 14px;
  font-size: 10px; font-weight: 600; letter-spacing: .14em;
  color: var(--muted);
}
.board-head .dot { width: 5px; height: 5px; box-shadow: none; }
.board-head .board-year { margin-left: auto; font-variant-numeric: tabular-nums; }
.board-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.board-cell {
  min-height: 116px;
  padding: 15px 16px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: color-mix(in srgb, var(--paper) 40%, var(--surface));
  display: flex; flex-direction: column;
  transition: transform .2s var(--ease), border-color .2s;
}
.board-cell:hover { transform: translateY(-2px); border-color: var(--line-strong); }
.board-cell .num { font-size: 10px; color: var(--muted); letter-spacing: .1em; }
.board-cell strong { margin-top: auto; font-size: 20px; letter-spacing: -.03em; }
.board-cell small { margin-top: 4px; font-size: 11px; color: var(--muted); line-height: 1.5; }
.board-cell.is-live {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}
.board-cell.is-live .num, .board-cell.is-live small { color: color-mix(in srgb, var(--paper) 58%, transparent); }
.board-cell.wide { grid-column: 1 / -1; min-height: 92px; }
.board-cell.wide strong { font-size: 17px; }
.board-foot {
  display: flex; justify-content: space-between; gap: 12px;
  margin-top: 14px; padding: 0 4px;
  font-size: 9.5px; letter-spacing: .13em; color: var(--muted);
}

/* ------------------------------------------------------------------ strips */
.trust-strip { border-block: 1px solid var(--line); background: color-mix(in srgb, var(--surface) 55%, var(--paper)); }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.trust-item { padding: 24px 26px; border-left: 1px solid var(--line); }
.trust-item:first-child { border-left: 0; padding-left: 0; }
.trust-item strong { display: block; font-size: 14px; margin-bottom: 4px; }
.trust-item span { font-size: 12px; color: var(--muted); line-height: 1.6; }

/* --------------------------------------------------------------- content */
.section { padding: 92px 0; }
.section-tight { padding: 64px 0; }
.section-alt { background: color-mix(in srgb, var(--surface) 62%, var(--paper)); border-block: 1px solid var(--line); }
.section-head { max-width: 760px; margin-bottom: 44px; }
.section-head h2 { font-size: clamp(28px, 3.3vw, 42px); letter-spacing: -.035em; }
.section-sub { margin-top: 14px; font-size: 15.5px; line-height: 1.8; color: var(--muted); max-width: 46em; }
.section-head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.section-head-row .section-head { margin-bottom: 0; }

/* --------------------------------------------------------------- products */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.product-card {
  grid-column: span 1;
  min-height: 240px;
  padding: 24px 22px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  display: flex; flex-direction: column;
  transition: transform .22s var(--ease), box-shadow .22s, border-color .22s;
}
.product-card:hover { transform: translateY(-3px); border-color: var(--line-strong); box-shadow: var(--shadow-md); }
.product-card.is-featured { grid-column: span 2; background: var(--ink); color: var(--paper); border-color: var(--ink); }
.product-card.is-featured .product-desc, .product-card.is-featured .product-meta { color: color-mix(in srgb, var(--paper) 62%, transparent); }
.product-card.is-featured .product-icon { background: color-mix(in srgb, var(--paper) 10%, transparent); color: var(--paper); }
.product-card.is-featured .status { background: color-mix(in srgb, var(--paper) 14%, transparent); color: var(--paper); }
.product-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.product-icon {
  width: 42px; height: 42px; border-radius: 12px;
  display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent);
}
.product-icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.status {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 8px; border-radius: 999px;
  background: var(--surface-2); color: var(--muted);
  font-size: 10px; font-weight: 600; letter-spacing: .02em;
  white-space: nowrap;
}
.status::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.status.live { background: var(--accent-soft); color: var(--accent-ink); }
.status.dev { background: var(--clay-soft); color: #8f4527; }
.status.plan { background: var(--surface-2); color: var(--muted); }
.product-card h3 { margin-top: 28px; font-size: 19px; letter-spacing: -.025em; }
.product-desc { margin-top: 8px; font-size: 13px; line-height: 1.7; color: var(--muted); }
.product-meta { margin-top: auto; padding-top: 18px; font-size: 11px; color: var(--muted); letter-spacing: .01em; }
.product-card.is-featured h3 { font-size: 26px; }
.product-card.is-featured .product-desc { max-width: 30em; }
.product-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; font-size: 12.5px; font-weight: 600; color: var(--accent); }
.product-card.is-featured .product-link { color: var(--paper); }
.product-link svg { width: 15px; height: 15px; }

/* --------------------------------------------------------------- scenes */
.scene-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.scene-card {
  position: relative;
  overflow: hidden;
  padding: 34px 32px 30px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  min-height: 320px;
  display: flex; flex-direction: column;
}
.scene-card::after {
  content: attr(data-index);
  position: absolute; right: 20px; top: 12px;
  font-size: 76px; line-height: 1; font-weight: 700;
  color: color-mix(in srgb, var(--ink) 5%, transparent);
  letter-spacing: -.08em;
  pointer-events: none;
}
.scene-card h3 { font-size: 25px; letter-spacing: -.03em; }
.scene-card .scene-lede { margin-top: 10px; font-size: 13.5px; line-height: 1.75; color: var(--muted); max-width: 28em; }
.scene-list { margin: 22px 0 0; display: grid; gap: 9px; }
.scene-list li { display: flex; gap: 9px; font-size: 12.5px; color: var(--ink-2); line-height: 1.6; }
.scene-list li::before { content: ""; width: 5px; height: 5px; margin-top: 7px; border-radius: 50%; background: var(--accent); flex: none; }
.scene-link { margin-top: auto; padding-top: 22px; display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 600; color: var(--accent); }
.scene-link svg { width: 15px; height: 15px; }

/* --------------------------------------------------------------- principles */
.principle-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--line); }
.principle { padding: 28px 24px 0 0; border-right: 1px solid var(--line); }
.principle:last-child { border-right: 0; }
.principle .num { font-size: 10px; letter-spacing: .12em; color: var(--muted); }
.principle h3 { margin-top: 26px; font-size: 16px; letter-spacing: -.02em; }
.principle p { margin-top: 8px; font-size: 12.5px; line-height: 1.75; color: var(--muted); }

/* --------------------------------------------------------------- cta */
.cta-band {
  position: relative;
  overflow: hidden;
  padding: 54px 48px;
  border-radius: 24px;
  background: var(--ink);
  color: var(--paper);
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
}
.cta-band::after {
  content: "";
  position: absolute; right: -80px; bottom: -140px;
  width: 380px; height: 380px; border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--paper) 14%, transparent);
  box-shadow: 0 0 0 34px color-mix(in srgb, var(--paper) 4%, transparent), 0 0 0 68px color-mix(in srgb, var(--paper) 3%, transparent);
}
.cta-band h2 { font-size: clamp(24px, 3vw, 36px); letter-spacing: -.035em; }
.cta-band p { margin-top: 10px; font-size: 13.5px; line-height: 1.7; color: color-mix(in srgb, var(--paper) 66%, transparent); max-width: 34em; }
.cta-band .btn-primary { background: var(--paper); color: var(--ink); flex: none; position: relative; z-index: 1; }
.cta-band .btn-primary:hover { background: var(--accent-soft); }

/* --------------------------------------------------------------- page head */
.sub-hero { padding: 68px 0 46px; border-bottom: 1px solid var(--line); }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 24px; font-size: 11.5px; color: var(--muted); }
.breadcrumb a:hover { color: var(--ink); }
.breadcrumb span { opacity: .5; }
.sub-hero h1 { font-size: clamp(34px, 4.2vw, 54px); letter-spacing: -.045em; max-width: 14em; }
.sub-hero .lede { max-width: 44em; margin-top: 18px; }
.sub-hero-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.tag {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 10px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface);
  font-size: 11px; color: var(--muted);
}
.tag.live { border-color: color-mix(in srgb, var(--accent) 30%, var(--line)); color: var(--accent); background: var(--accent-soft); }

/* --------------------------------------------------------------- detail */
.detail-grid { display: grid; grid-template-columns: 1.35fr .65fr; gap: 56px; align-items: start; }
.prose h2 { font-size: 24px; letter-spacing: -.03em; margin: 42px 0 12px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 16px; margin: 24px 0 8px; }
.prose p { margin: 12px 0; font-size: 14px; line-height: 1.85; color: var(--ink-2); }
.prose ul { margin: 12px 0; padding-left: 20px; list-style: revert; }
.prose li { margin: 7px 0; font-size: 13.5px; line-height: 1.8; color: var(--ink-2); }
.aside-card { padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); position: sticky; top: 90px; }
.aside-card h3 { font-size: 14px; margin-bottom: 14px; }
.aside-list { display: grid; gap: 10px; }
.aside-list div { display: flex; justify-content: space-between; gap: 16px; font-size: 12px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.aside-list div:last-child { border-bottom: 0; padding-bottom: 0; }
.aside-list dt { color: var(--muted); }
.aside-list dd { margin: 0; text-align: right; color: var(--ink); font-weight: 600; }
.aside-note { margin-top: 16px; font-size: 11px; line-height: 1.65; color: var(--muted); }

.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.feature-card { padding: 22px 20px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.feature-card svg { width: 22px; height: 22px; fill: none; stroke: var(--accent); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.feature-card h3 { margin-top: 18px; font-size: 14px; }
.feature-card p { margin-top: 6px; font-size: 12px; line-height: 1.7; color: var(--muted); }

/* --------------------------------------------------------------- roadmap */
.roadmap { border-left: 1px solid var(--line-strong); margin-left: 8px; display: grid; gap: 0; }
.roadmap-item { position: relative; padding: 0 0 34px 30px; }
.roadmap-item::before { content: ""; position: absolute; left: -4.5px; top: 5px; width: 8px; height: 8px; border-radius: 50%; background: var(--paper); border: 2px solid var(--line-strong); }
.roadmap-item.is-live::before { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.roadmap-item:last-child { padding-bottom: 0; }
.roadmap-phase { font-size: 10px; letter-spacing: .13em; color: var(--muted); }
.roadmap-item h3 { margin-top: 5px; font-size: 16px; }
.roadmap-item p { margin-top: 5px; font-size: 12.5px; line-height: 1.7; color: var(--muted); max-width: 44em; }

/* --------------------------------------------------------------- about */
.about-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: start; }
.about-note { padding: 28px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); }
.about-note .big { font-size: 28px; line-height: 1.25; letter-spacing: -.035em; }
.about-note .small { margin-top: 18px; font-size: 12px; line-height: 1.75; color: var(--muted); }
.fact-list { display: grid; gap: 0; border-top: 1px solid var(--line); }
.fact-row { display: grid; grid-template-columns: 120px 1fr; gap: 20px; padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.fact-row dt { color: var(--muted); }
.fact-row dd { margin: 0; color: var(--ink); }

/* --------------------------------------------------------------- contact */
.contact-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; }
.contact-card { padding: 30px; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); }
.contact-card h2 { font-size: 22px; letter-spacing: -.03em; }
.contact-card p { margin-top: 10px; font-size: 13px; line-height: 1.8; color: var(--muted); }
.mail-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 22px; font-size: 18px; font-weight: 600; color: var(--accent); letter-spacing: -.02em; }
.mail-link svg { width: 19px; height: 19px; }
.contact-list { display: grid; gap: 12px; margin-top: 24px; }
.contact-list div { display: flex; justify-content: space-between; gap: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--line); font-size: 12.5px; }
.contact-list div:last-child { border-bottom: 0; }
.contact-list dt { color: var(--muted); }
.contact-list dd { margin: 0; text-align: right; }

/* --------------------------------------------------------------- faq tweaks */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { padding: 18px 4px; font-size: 14px; }
.faq details p { padding: 0 40px 18px 4px; font-size: 13px; }

/* --------------------------------------------------------------- responsive */
@media (max-width: 1080px) {
  .hero-company { gap: 40px; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .product-card.is-featured { grid-column: 1 / -1; }
  .principle-grid { grid-template-columns: repeat(2, 1fr); }
  .principle:nth-child(2) { border-right: 0; }
  .principle:nth-child(n+3) { border-top: 1px solid var(--line); margin-top: 0; padding-top: 28px; }
}

@media (max-width: 900px) {
  .hero-company { grid-template-columns: 1fr; }
  .board { max-width: 580px; }
  .trust-grid { grid-template-columns: 1fr 1fr; }
  .trust-item { border-left: 0; border-top: 1px solid var(--line); padding-left: 0; }
  .trust-item:nth-child(-n+2) { border-top: 0; }
  .scene-grid, .detail-grid, .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .aside-card { position: static; }
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .cta-band { flex-direction: column; align-items: flex-start; padding: 40px 32px; }
  .section-head-row { flex-direction: column; align-items: flex-start; gap: 16px; }
}

@media (max-width: 620px) {
  .brand-en { display: none; }
  .header-actions .btn { display: none; }
  .header-actions { margin-left: auto; }
  .page-hero { padding: 48px 0 42px; }
  .hero-company h1 { font-size: clamp(34px, 9vw, 44px); }
  .hero-company .lede { font-size: 15px; }
  .board { padding: 14px; border-radius: 18px; }
  .board-cell { min-height: 100px; padding: 13px; }
  .board-cell strong { font-size: 17px; }
  .product-grid, .feature-grid { grid-template-columns: 1fr; }
  .product-card, .product-card.is-featured { grid-column: auto; min-height: 210px; }
  .product-card.is-featured h3 { font-size: 22px; }
  .principle-grid { grid-template-columns: 1fr; }
  .principle, .principle:nth-child(2) { border-right: 0; border-top: 1px solid var(--line); padding: 24px 0 0; }
  .principle:first-child { border-top: 0; padding-top: 0; }
  .section { padding: 64px 0; }
  .sub-hero { padding: 44px 0 34px; }
  .sub-hero h1 { font-size: clamp(30px, 8.5vw, 40px); }
  .scene-card { padding: 26px 22px; min-height: 0; }
  .cta-band { padding: 32px 24px; border-radius: 18px; }
  .fact-row { grid-template-columns: 96px 1fr; gap: 14px; }
  .contact-card { padding: 24px 22px; }
  .mail-link { font-size: 16px; }
}
