/* 风格 C「设计感 · 海图」：纸白 + 墨黑 + 克莱因蓝，警示橙只做标记 */
@font-face { font-family: "DisplayCN"; src: url(../fonts/display-cn.woff2) format("woff2"); font-display: swap; } /* 得意黑子集，按 OFL 更名 */
@font-face { font-family: "Space Grotesk"; src: url(../fonts/space-grotesk.woff2) format("woff2"); font-weight: 300 700; font-display: swap; }

:root {
  --paper: #f3f1ec;
  --ink: #0b0d12;
  --ink-2: #4a4d55;
  --gray: #8c8f94;
  --blue: #1e3bff;
  --orange: #ff5b1f;
  --rule: rgba(11, 13, 18, .16);
  --header-h: 64px;
  --pad: clamp(20px, 3vw, 40px);
  --sans: "PingFang SC", "HarmonyOS Sans SC", "MiSans", "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif;
  --display: "DisplayCN", "Space Grotesk", var(--sans);
  --grotesk: "Space Grotesk", var(--sans);
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", "Cascadia Mono", Menlo, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.8 var(--sans); -webkit-font-smoothing: antialiased; }
h1, h2, h3, p, ul, dl, dd, table { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
i, em { font-style: normal; }
::selection { background: var(--blue); color: #fff; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }

.wrap { width: min(1360px, 100% - var(--pad) * 2); margin-left: auto; margin-right: auto; }
.label { font: 500 11px/1.4 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); }
.muted { color: var(--ink-2); }
.blue { color: var(--blue); }

.btn-ink { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 22px; border-radius: 999px; background: var(--ink); color: var(--paper); font-size: 15px; font-weight: 600; transition: background .2s; }
.btn-ink:hover { background: var(--blue); }
.link { padding-bottom: 2px; border-bottom: 1px solid currentColor; font-weight: 600; transition: color .2s; }
.link:hover { color: var(--blue); }

/* 顶栏 */
.header { position: sticky; top: 0; z-index: 10; border-bottom: 1px solid var(--ink); background: rgba(243, 241, 236, .88); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.header-inner { display: grid; grid-template-columns: auto auto 1fr auto; align-items: center; gap: 28px; height: var(--header-h); }
.brand { display: flex; align-items: baseline; gap: 10px; white-space: nowrap; }
.brand b { font: 22px/1 var(--display); font-weight: normal; }
.brand span { font: 600 10px/1 var(--grotesk); letter-spacing: .3em; }
.coord { padding-left: 24px; border-left: 1px solid var(--rule); font: 10px/1.35 var(--mono); color: var(--ink-2); }
.nav { display: flex; justify-content: center; gap: 28px; }
.nav a { display: flex; align-items: baseline; gap: 6px; font-size: 14px; transition: color .2s; }
.nav a i { font: 10px/1 var(--mono); color: var(--gray); }
.nav a:hover, .nav a.is-active { color: var(--blue); }
.nav-toggle { display: none; height: 36px; padding: 0 14px; border: 1px solid var(--ink); border-radius: 999px; background: none; font: inherit; font-size: 13px; cursor: pointer; }

/* 首屏 */
.hero { position: relative; display: flex; flex-direction: column; justify-content: space-between; min-height: calc(100vh - var(--header-h)); min-height: calc(100svh - var(--header-h)); overflow: hidden; border-bottom: 1px solid var(--ink); }
.contours { position: absolute; top: 0; right: 0; width: 66%; height: 100%; -webkit-mask-image: linear-gradient(90deg, transparent, #000 28%); mask-image: linear-gradient(90deg, transparent, #000 28%); }
.hero-inner { position: relative; padding: clamp(40px, 9vh, 110px) 0 48px; }
.hero h1 { margin: 22px 0 28px; font: clamp(56px, 9vw, 150px)/1.02 var(--display); font-weight: normal; letter-spacing: -.01em; }
.hero-lead { max-width: 28em; font-size: 18px; color: var(--ink-2); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 28px; margin-top: 36px; }
.hero-foot { position: relative; display: grid; grid-template-columns: repeat(4, 1fr) auto; border-top: 1px solid var(--ink); background: rgba(243, 241, 236, .7); }
.hero-foot p { display: flex; align-items: baseline; gap: 10px; padding: 18px 16px 18px 0; font-size: 14px; }
.hero-foot p + p { padding-left: 16px; border-left: 1px solid var(--rule); }
.hero-foot i { font: 11px/1 var(--mono); color: var(--blue); }
.clock { font: 12px/1.6 var(--mono); color: var(--ink-2); }
.clock b { font-weight: 500; color: var(--ink); }

/* 滚动字带 */
.marquee { overflow: hidden; border-bottom: 1px solid var(--ink); background: var(--blue); color: #fff; }
.marquee-track { display: flex; width: max-content; animation: marquee 40s linear infinite; }
.marquee span { display: flex; align-items: center; gap: 56px; padding: 16px 28px; font: clamp(20px, 2.4vw, 32px)/1 var(--display); white-space: nowrap; }
.marquee span::after { content: ""; width: .32em; height: .32em; border-radius: 50%; background: var(--orange); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* 实力数据 */
.stats { display: grid; grid-template-columns: repeat(5, 1fr); border-bottom: 1px solid var(--rule); }
.stats div { display: flex; flex-direction: column-reverse; padding: 44px 0 36px; }
.stats div + div { padding-left: 24px; border-left: 1px solid var(--rule); }
.stats dd { font: 500 clamp(48px, 6.4vw, 104px)/.9 var(--grotesk); letter-spacing: -.04em; }
.stats sup { margin-left: 4px; font-size: .4em; vertical-align: top; color: var(--blue); }
.stats dt { margin-top: 16px; font: 11px/1.4 var(--mono); letter-spacing: .12em; color: var(--ink-2); }

/* 通用区块 */
.section { padding: clamp(80px, 11vw, 160px) 0; border-bottom: 1px solid var(--rule); }
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 96px); align-items: start; }
.section-head.wide { max-width: 760px; margin-bottom: 56px; }
.big-num { display: block; font: 500 clamp(96px, 14vw, 220px)/.8 var(--grotesk); letter-spacing: -.06em; }
.section-head .label { margin-top: 32px; }
h2 { margin: 8px 0 18px; font: clamp(40px, 5.4vw, 84px)/1.08 var(--display); font-weight: normal; }

/* 核心技术：原生 details 折叠，同组只展开一项 */
.rows { border-top: 1px solid var(--ink); }
.rows details { border-bottom: 1px solid var(--rule); }
.rows summary { display: grid; grid-template-columns: 56px 1fr auto; align-items: baseline; gap: 4px 16px; padding: 26px 0; list-style: none; cursor: pointer; }
.rows summary::-webkit-details-marker { display: none; }
.rows summary i { font: 12px/1 var(--mono); color: var(--gray); }
.rows summary b { font: clamp(24px, 2.6vw, 38px)/1.2 var(--display); font-weight: normal; transition: color .2s; }
.rows summary em { grid-column: 2; font: 12px/1.4 var(--mono); color: var(--ink-2); }
.rows summary::after { content: "+"; grid-row: 1; grid-column: 3; font: 300 30px/1 var(--grotesk); transition: transform .3s, color .2s; }
.rows details[open] summary::after { transform: rotate(45deg); color: var(--blue); }
.rows summary:hover b, .rows details[open] summary b { color: var(--blue); }
.row-body { max-width: 720px; padding: 0 0 32px 72px; }
.row-body p { color: var(--ink-2); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.tags li { padding: 2px 12px; border: 1px solid var(--ink); border-radius: 999px; font-size: 13px; }

/* 解决方案：细线网格，悬停整格反色 */
.cells { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--ink); border-left: 1px solid var(--rule); }
.cells article { display: flex; flex-direction: column; min-height: 260px; padding: 24px 24px 28px; border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); transition: background .25s, color .25s; }
.cells i { font: 11px/1 var(--mono); color: var(--gray); }
.cells h3 { margin-top: auto; font: 26px/1.25 var(--display); font-weight: normal; }
.cells p { margin-top: 10px; font-size: 14px; line-height: 1.7; color: var(--ink-2); }
.cells article:hover { background: var(--blue); color: #fff; }
.cells article:hover i, .cells article:hover p { color: rgba(255, 255, 255, .78); }
.cta { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 16px 24px; margin-top: 48px; padding: 28px 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); font: clamp(24px, 3vw, 44px)/1.2 var(--display); transition: color .2s; }
.cta b { font-weight: normal; color: var(--blue); }
.cta:hover { color: var(--blue); }

/* 关于我们 */
.motto { margin-bottom: 40px; font: clamp(32px, 4.2vw, 64px)/1.18 var(--display); }
.about-text { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; padding-top: 24px; border-top: 1px solid var(--ink); }
.sites { width: 100%; margin-top: 48px; border-collapse: collapse; font-size: 15px; }
.sites caption { padding-bottom: 12px; text-align: left; }
.sites td { padding: 14px 0; border-bottom: 1px solid var(--rule); }
.sites td:nth-child(2) { font: 11px/1 var(--mono); color: var(--gray); }
.sites td:last-child { text-align: right; font: 13px/1 var(--mono); color: var(--blue); }
.dot { display: inline-block; width: 8px; height: 8px; margin-right: 12px; border-radius: 50%; background: var(--orange); vertical-align: 1px; }
.certs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.certs li { padding: 6px 14px; border: 1px solid var(--ink); border-radius: 999px; font-size: 13px; }

/* 合作伙伴：名称排成海报 */
.names { font: clamp(30px, 4.6vw, 72px)/1.4 var(--display); color: var(--gray); }
.names span { color: var(--ink); white-space: nowrap; transition: color .2s; }
.names span:hover { color: var(--blue); }
.names sup { margin-left: 4px; font: 11px/1 var(--mono); letter-spacing: .1em; color: var(--gray); }

/* 联系我们：整块克莱因蓝 */
.contact { padding: clamp(80px, 12vw, 180px) 0; background: var(--blue); color: #fff; }
.contact .label { color: rgba(255, 255, 255, .72); }
.contact h2 { margin: 20px 0 64px; font-size: clamp(48px, 8vw, 128px); line-height: 1.02; }
.contact-list { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid rgba(255, 255, 255, .45); }
.contact-list div { padding: 20px 0; }
.contact-list div + div { padding-left: 24px; border-left: 1px solid rgba(255, 255, 255, .45); }
.contact-list dt { font: 11px/1.4 var(--mono); letter-spacing: .12em; opacity: .75; }
.contact-list dd { margin-top: 8px; font-size: 20px; font-weight: 600; }

/* 页脚 */
.footer { overflow: hidden; padding: 56px 0 28px; background: var(--ink); color: var(--paper); }
.wordmark { font: 600 clamp(56px, 16.2vw, 290px)/.82 var(--grotesk); letter-spacing: -.055em; white-space: nowrap; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: 36px; padding-top: 20px; border-top: 1px solid rgba(243, 241, 236, .2); font-size: 13px; color: rgba(243, 241, 236, .62); }
.footer a:hover { color: #fff; }

/* 风格切换（评审用） */
.style-switch { position: fixed; left: 16px; bottom: 16px; z-index: 20; display: flex; gap: 2px; padding: 4px; border: 1px solid var(--ink); border-radius: 999px; background: var(--paper); font-size: 12px; }
.style-switch[hidden] { display: none; }
.style-switch a { padding: 5px 12px; border-radius: 999px; }
.style-switch a[aria-current] { background: var(--ink); color: var(--paper); }

/* 滚动显现 */
.js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s ease; }
.js [data-reveal].is-in { opacity: 1; transform: none; }

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

@media (max-width: 1180px) {
  .coord { display: none; }
  .header-inner { grid-template-columns: auto 1fr auto; }
  .nav { gap: 20px; }
}

@media (max-width: 900px) {
  .header-inner { grid-template-columns: 1fr auto auto; gap: 12px; }
  .nav-toggle { display: block; }
  .nav { display: none; position: absolute; top: var(--header-h); left: 0; right: 0; flex-direction: column; gap: 0; padding: 8px var(--pad) 20px; border-bottom: 1px solid var(--ink); background: var(--paper); }
  .header.is-open .nav { display: flex; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--rule); font-size: 16px; }
  .header > .wrap > .btn-ink { height: 36px; padding: 0 14px; font-size: 13px; }
  .contours { width: 100%; opacity: .5; -webkit-mask-image: none; mask-image: none; }
  .hero-foot { grid-template-columns: 1fr 1fr; }
  .hero-foot p:nth-child(odd) { padding-left: 0; border-left: 0; }
  .hero-foot p:nth-child(n + 3) { border-top: 1px solid var(--rule); }
  .clock { display: none !important; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stats div:nth-child(odd) { padding-left: 0; border-left: 0; }
  .stats div:last-child { grid-column: span 2; }
  .stats div:nth-child(n + 3) { border-top: 1px solid var(--rule); }
  .split { grid-template-columns: 1fr; }
  .cells { grid-template-columns: repeat(2, 1fr); }
  .about-text, .contact-list { grid-template-columns: 1fr; }
  .contact-list div + div { padding-left: 0; border-left: 0; border-top: 1px solid rgba(255, 255, 255, .45); }
  .row-body { padding-left: 0; }
}

@media (max-width: 560px) {
  .cells { grid-template-columns: 1fr; }
  .cells article { min-height: 200px; }
  .hero-foot { display: none; }
  .brand span { display: none; }
}
