/* ============================================================
 * NetDriveS 站点样式
 * 包含：基础排版、首页 6 个区块、Doc 页面、语言切换、响应式
 * ============================================================ */

:root {
  --bg: #0b1220;
  --bg-soft: #111a2c;
  --surface: #ffffff;
  --surface-soft: #f5f7fb;
  --surface-elevated: #fbfcff;
  --text: #111827;
  --text-muted: #5b6475;
  --text-invert: #ffffff;
  --line: #d7dfeb;
  --line-soft: #e6ecf6;
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-soft: rgba(37, 99, 235, 0.08);
  --accent: #0ea5e9;
  --shadow-sm: 0 6px 14px rgba(15, 23, 42, 0.06);
  --shadow: 0 24px 48px rgba(15, 23, 42, 0.14);
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 999px;
  --radius-card: 18px;
  --container: 1160px;
  --section-pad-y: 5.5rem;
  --header-h: 78px;
  --font-sans: "MiSans", sans-serif;
  --weight-regular: 300;
  --weight-medium: 450;
  --weight-bold: 650;
}

/* ============================================================
 * 基础重置
 * ============================================================ */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  font-family: var(--font-sans);
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: var(--weight-regular);
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(37, 99, 235, 0.08), transparent 28%),
    linear-gradient(180deg, #eef3ff 0%, #ffffff 36%);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-synthesis-weight: none;
  text-rendering: optimizeLegibility;
}

/* 强制所有文字元素使用 MiSans，避免部分浏览器/扩展意外回退 */
h1, h2, h3, h4, h5, h6,
p, span, small, strong, em, b, i, u, mark, sub, sup,
a, button, label, legend, summary, caption,
input, textarea, select,
li, dt, dd, blockquote, cite, q, code, pre, kbd, samp,
table, th, td {
  font-family: var(--font-sans);
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  cursor: pointer;
}

input,
textarea,
select {
  font: inherit;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.container {
  width: min(var(--container), calc(100% - 2rem));
  margin: 0 auto;
}

/* ============================================================
 * FOUC 防护（语言态非默认时短暂隐藏）
 * 由内联脚本在检测到非默认语言时设置
 * 由 main.js 在初始化完成后移除
 * ============================================================ */

html[data-fouc] body {
  visibility: hidden;
}

/* ============================================================
 * Header
 * ============================================================ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(255, 255, 255, 0.86);
  border-bottom: 1px solid rgba(215, 223, 235, 0.8);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  min-width: 0;
  color: var(--text);
}

.brand-logo {
  width: 44px;
  height: 44px;
  object-fit: contain;
  flex: none;
}

/* 仅放大带 brand--logo-only 的 logo（无文字时） */
.brand--logo-only .brand-logo {
  width: 168px;
  height: 42px;
}

.brand-name {
  font-size: 1.1rem;
  font-weight: var(--weight-bold);
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.site-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 0.15rem;
  color: var(--text-muted);
  font-size: 0.98rem;
  transition: color 0.2s ease;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 2.5px;
  border-radius: 99px;
  background: var(--primary-dark);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.25s ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--text);
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
  transform: scaleX(1);
}

.site-nav a.is-active {
  color: var(--text);
  font-weight: var(--weight-bold);
}

.site-nav a.is-active::after {
  transform: scaleX(1);
}

/* 语言切换按钮 */
.lang-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  height: 38px;
  padding: 0 0.85rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.92);
  color: var(--text);
  font-size: 0.9rem;
  font-weight: var(--weight-bold);
  letter-spacing: 0.04em;
  transition: background-color 0.2s ease, border-color 0.2s ease,
    color 0.2s ease, transform 0.2s ease;
}

.lang-toggle:hover,
.lang-toggle:focus-visible {
  background: var(--surface-soft);
  border-color: var(--primary);
  color: var(--primary-dark);
  transform: translateY(-1px);
}

.lang-toggle[aria-pressed="true"] {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

/* nav 内的 lang-toggle：尺寸与 nav 项协调 */
.site-nav .lang-toggle {
  margin-left: 0.5rem;
  min-width: 44px;
  height: 36px;
  padding: 0 0.7rem;
  font-size: 0.85rem;
}

/* 移动端菜单按钮 */
.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 0.28rem;
  flex-direction: column;
  width: 48px;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  cursor: pointer;
}

.menu-toggle-bar {
  width: 20px;
  height: 2px;
  border-radius: 99px;
  background: var(--text);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.menu-toggle[aria-expanded="true"] .menu-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-toggle-bar:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] .menu-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ============================================================
 * 通用排版
 * ============================================================ */

.eyebrow,
.section-label {
  margin: 0 0 0.9rem;
  color: var(--primary);
  font-size: 0.95rem;
  font-weight: var(--weight-medium);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section-title {
  margin: 0 0 1rem;
  line-height: 1.2;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: var(--weight-bold);
  letter-spacing: -0.01em;
}

.section-text {
  margin: 0 0 1.5rem;
  max-width: 60ch;
  color: var(--text-muted);
}

/* ============================================================
 * Hero
 * ============================================================ */

.hero-section,
.section {
  padding: var(--section-pad-y) 0;
}

.hero-section {
  padding-top: 4rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2.5rem;
  align-items: center;
}

.hero-copy h1 {
  margin: 0;
  line-height: 1.15;
  font-size: clamp(2.3rem, 4.5vw, 3.8rem);
  font-weight: var(--weight-bold);
  max-width: 20ch;
  letter-spacing: -0.02em;
}

.hero-text {
  max-width: 62ch;
  margin: 1.35rem 0 0;
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2rem;
}

.hero-media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--surface-soft);
}

.hero-media img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  width: 100%;
}

/* ============================================================
 * 通用按钮
 * ============================================================ */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 50px;
  padding: 0 1.4rem;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font-weight: var(--weight-bold);
  font-size: 0.98rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease,
    background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
}

.button-primary {
  color: #fff;
  background: var(--primary);
  box-shadow: 0 14px 28px rgba(37, 99, 235, 0.22);
}

.button-primary:hover,
.button-primary:focus-visible {
  background: var(--primary-dark);
  box-shadow: 0 16px 32px rgba(37, 99, 235, 0.28);
}

.button-secondary {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.92);
  color: var(--text);
}

.button-secondary:hover,
.button-secondary:focus-visible {
  background: var(--surface-soft);
  border-color: var(--primary);
  color: var(--primary-dark);
}

.button .icon {
  width: 18px;
  height: 18px;
  flex: none;
  fill: currentColor;
}

/* ============================================================
 * About
 * ============================================================ */

.about-section {
  background: var(--surface);
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2.5rem;
  align-items: center;
  padding: 2rem 0;
}

.about-media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--surface-soft);
}

.about-media img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  width: 100%;
}

.about-copy p {
  margin: 0 0 1rem;
  color: var(--text-muted);
}

.feature-list {
  display: grid;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.feature-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 52px;
  padding: 0 1rem;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  font-weight: var(--weight-medium);
  color: var(--text);
}

.feature-icon {
  width: 22px;
  height: 22px;
  flex: none;
  fill: var(--primary);
}

/* ============================================================
 * Services
 * ============================================================ */

.services-section {
  background: linear-gradient(180deg, #ffffff 0%, #f4f7ff 100%);
}

.services-header {
  max-width: 640px;
  margin-bottom: 2.5rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

.service-card {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding: 1.75rem;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease,
    border-color 0.2s ease;
}

.service-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  border-color: rgba(37, 99, 235, 0.35);
}

.service-card .service-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  color: #fff;
  margin-bottom: 0.35rem;
}

.service-card .service-icon .icon {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.service-card .service-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--primary-soft);
  color: var(--primary-dark);
  font-weight: var(--weight-bold);
  font-size: 0.95rem;
}

.service-card h3 {
  margin: 0;
  font-size: 1.18rem;
  font-weight: var(--weight-bold);
  letter-spacing: -0.005em;
}

.service-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.98rem;
}

/* ============================================================
 * Team
 * ============================================================ */

.team-section {
  background: var(--surface);
}

.team-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 3rem;
  align-items: start;
}

.team-copy {
  max-width: 720px;
}

.team-copy p {
  margin: 0 0 1rem;
  color: var(--text-muted);
}

.team-panel-grid {
  display: grid;
  gap: 1.25rem;
}

.team-panel {
  padding: 1.5rem 1.6rem;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease,
    border-color 0.2s ease;
}

.team-panel:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  border-color: rgba(37, 99, 235, 0.35);
}

.team-panel-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--primary-soft);
  color: var(--primary-dark);
  margin-bottom: 0.75rem;
}

.team-panel-icon .icon {
  width: 19px;
  height: 19px;
  fill: currentColor;
}

.team-panel-kicker {
  margin: 0 0 0.55rem;
  color: var(--primary);
  font-size: 0.82rem;
  font-weight: var(--weight-medium);
  letter-spacing: 0.08em;
}

.team-panel h3 {
  margin: 0 0 0.5rem;
  font-size: 1.12rem;
  font-weight: var(--weight-bold);
  letter-spacing: -0.005em;
}

.team-panel p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ============================================================
 * Documentation (首页入口)
 * ============================================================ */

.docs-section {
  background: linear-gradient(180deg, #f4f7ff 0%, #ffffff 100%);
}

.docs-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 3rem;
  align-items: center;
}

.docs-copy h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: var(--weight-bold);
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.docs-copy p {
  margin: 0 0 1.5rem;
  max-width: 56ch;
  color: var(--text-muted);
}

.docs-preview-list {
  display: grid;
  gap: 1rem;
}

.docs-preview-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1.4rem;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease,
    border-color 0.2s ease;
}

.docs-preview-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  border-color: rgba(37, 99, 235, 0.35);
}

.docs-preview-icon {
  width: 26px;
  height: 26px;
  flex: none;
  fill: var(--primary);
}

.docs-preview-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  flex: none;
  border-radius: 12px;
  background: var(--primary-soft);
  color: var(--primary-dark);
  font-weight: var(--weight-bold);
  font-size: 0.95rem;
}

.docs-preview-item h3 {
  margin: 0 0 0.35rem;
  font-size: 1.08rem;
  font-weight: var(--weight-bold);
  letter-spacing: -0.005em;
}

.docs-preview-item p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ============================================================
 * Contact
 * ============================================================ */

.contact-section {
  background: var(--surface);
}

.contact-card {
  padding: 2.25rem;
  background: linear-gradient(135deg, #f8faff 0%, #eef3ff 100%);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.contact-card .section-label {
  margin-bottom: 0.5rem;
}

.contact-card h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.6rem, 2.6vw, 2.1rem);
  line-height: 1.3;
}

.contact-card p {
  margin: 0 0 1.5rem;
  color: var(--text-muted);
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.contact-button {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 52px;
  padding: 0 1.25rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  font-weight: var(--weight-bold);
  font-size: 0.98rem;
  transition: background-color 0.2s ease, border-color 0.2s ease,
    color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.contact-button:hover,
.contact-button:focus-visible {
  transform: translateY(-1px);
  border-color: var(--primary);
  color: var(--primary-dark);
  box-shadow: var(--shadow-sm);
}

.contact-button .icon {
  width: 20px;
  height: 20px;
  flex: none;
  fill: currentColor;
}

.contact-button[data-channel="x"]:hover,
.contact-button[data-channel="x"]:focus-visible {
  border-color: #1d1d1f;
  color: #1d1d1f;
}

/* ============================================================
 * Footer
 * ============================================================ */

.site-footer {
  padding: 2.6rem 0 1.6rem;
  color: var(--text);
  background: var(--surface);
  border-top: 1px solid var(--line-soft);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--line-soft);
}

.footer-col--brand {
  max-width: 360px;
}

.footer-logo {
  display: inline-block;
  width: 150px;
  height: auto;
  margin-bottom: 0.85rem;
}

.footer-text {
  margin: 0 0 0.95rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

.footer-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-badges li {
  padding: 0.22rem 0.65rem;
  border-radius: 99px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  color: var(--text-muted);
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  transition: background-color 0.2s ease, border-color 0.2s ease,
    color 0.2s ease;
}

.footer-badges li:hover {
  background: var(--primary-soft);
  border-color: var(--primary);
  color: var(--primary-dark);
}

.footer-col-title {
  margin: 0 0 0.9rem;
  color: var(--text);
  font-size: 0.85rem;
  font-weight: var(--weight-bold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-list {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-list a {
  color: var(--text-muted);
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.footer-list a:hover,
.footer-list a:focus-visible {
  color: var(--primary-dark);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.4rem;
}

.footer-copyright {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.88rem;
}

.footer-tagline {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.88rem;
  letter-spacing: 0.01em;
}

.footer-social {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  color: var(--text-muted);
  transition: background-color 0.2s ease, color 0.2s ease,
    border-color 0.2s ease, transform 0.2s ease;
}

.footer-social a:hover,
.footer-social a:focus-visible {
  background: var(--primary-soft);
  border-color: var(--primary);
  color: var(--primary-dark);
  transform: translateY(-1px);
}

.footer-social .icon {
  width: 18px;
  height: 18px;
  flex: none;
  fill: currentColor;
}

/* ============================================================
 * Doc 页面
 * ============================================================ */

.doc-hero {
  padding: calc(var(--section-pad-y) - 1rem) 0 2rem;
}

.doc-hero .container {
  max-width: 820px;
}

.doc-hero .section-label {
  margin-bottom: 0.75rem;
}

.doc-hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(2.2rem, 4vw, 3rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.doc-hero p {
  margin: 0;
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 64ch;
}

.doc-links {
  padding-bottom: 2.5rem;
}

.tool-feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2rem;
  align-items: center;
  padding: 2.5rem;
  background: linear-gradient(135deg, #111a2c 0%, #1a2742 100%);
  color: rgba(255, 255, 255, 0.92);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.tool-feature-copy {
  min-width: 0;
}

.tool-feature .tool-eyebrow {
  display: inline-block;
  margin: 0 0 0.75rem;
  padding: 0.25rem 0.7rem;
  border-radius: 99px;
  background: rgba(37, 99, 235, 0.18);
  color: #93c5fd;
  font-size: 0.8rem;
  font-weight: var(--weight-bold);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.tool-feature h2 {
  margin: 0 0 0.7rem;
  font-size: 1.7rem;
  color: #fff;
  line-height: 1.3;
}

.tool-feature p {
  margin: 0 0 1.5rem;
  color: rgba(255, 255, 255, 0.78);
  max-width: 54ch;
}

.tool-feature .button-secondary {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
  color: #fff;
}

.tool-feature .button-secondary:hover,
.tool-feature .button-secondary:focus-visible {
  background: rgba(255, 255, 255, 0.2);
  border-color: #fff;
  color: #fff;
}

.tool-feature-action {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.tool-feature-action .button {
  white-space: nowrap;
}

.tool-feature-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.tool-feature-visual .icon {
  width: 132px;
  height: 132px;
  fill: #5b8def;
  opacity: 0.9;
}

.doc-list-shell {
  padding: 2.25rem;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.doc-entry-list {
  display: flex;
  flex-direction: column;
}

.doc-entry {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.4rem 0.25rem;
  border-top: 1px solid var(--line-soft);
}

.doc-entry:first-child {
  border-top: 0;
}

.doc-entry-main {
  min-width: 0;
}

.doc-entry-head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 0.45rem;
}

.doc-entry-head h3 {
  margin: 0;
  font-size: 1.12rem;
  font-weight: var(--weight-bold);
  letter-spacing: -0.005em;
}

.doc-entry-main > p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.doc-directory {
  padding-bottom: 2.5rem;
}

.doc-directory-header {
  max-width: 640px;
  margin-bottom: 2rem;
}

.doc-status {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.18rem 0.55rem;
  border-radius: 99px;
  background: var(--surface-soft);
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: var(--weight-bold);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.doc-status::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.7;
}

.doc-status[data-state="available"] {
  background: rgba(16, 185, 129, 0.12);
  color: #047857;
}

.doc-status[data-state="pending"] {
  background: rgba(245, 158, 11, 0.14);
  color: #b45309;
}

.doc-status[data-state="ended"] {
  background: var(--surface-soft);
  color: var(--text-muted);
}

.doc-action {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.55rem 1.15rem;
  border-radius: 99px;
  background: var(--primary-soft);
  color: var(--primary-dark);
  font-size: 0.9rem;
  font-weight: var(--weight-bold);
  transition: background-color 0.2s ease, color 0.2s ease,
    transform 0.2s ease;
}

.doc-action:hover,
.doc-action:focus-visible {
  background: var(--primary);
  color: #fff;
  transform: translateY(-1px);
}

.doc-action--muted,
.doc-action--muted:hover,
.doc-action--muted:focus-visible {
  background: var(--surface-soft);
  color: var(--text-muted);
  transform: none;
  cursor: not-allowed;
}

.doc-action .icon {
  width: 14px;
  height: 14px;
  flex: none;
  fill: currentColor;
}

/* ============================================================
 * 实验室（Doc 页入口 + Lab 页面）
 * ============================================================ */

.lab-links {
  padding-bottom: var(--section-pad-y);
}

.lab-feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2rem;
  align-items: center;
  padding: 2.5rem;
  background: linear-gradient(135deg, #171233 0%, #2b2153 100%);
  color: rgba(255, 255, 255, 0.92);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.lab-feature-copy {
  min-width: 0;
}

.lab-feature .lab-eyebrow {
  display: inline-block;
  margin: 0 0 0.75rem;
  padding: 0.25rem 0.7rem;
  border-radius: 99px;
  background: rgba(139, 92, 246, 0.22);
  color: #c4b5fd;
  font-size: 0.8rem;
  font-weight: var(--weight-bold);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.lab-feature h2 {
  margin: 0 0 0.7rem;
  font-size: 1.7rem;
  color: #fff;
  line-height: 1.3;
}

.lab-feature p {
  margin: 0 0 1.5rem;
  color: rgba(255, 255, 255, 0.78);
  max-width: 54ch;
}

.lab-feature .button-secondary {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
  color: #fff;
}

.lab-feature .button-secondary:hover,
.lab-feature .button-secondary:focus-visible {
  background: rgba(255, 255, 255, 0.2);
  border-color: #fff;
  color: #fff;
}

.lab-feature-action {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.lab-feature-action .button {
  white-space: nowrap;
}

/* 格物特色入口（lab 页）——主题色 #80a797 */
.gewu-feature {
  margin-bottom: 2.5rem;
  background: linear-gradient(135deg, #17251e 0%, #284036 100%);
}

.gewu-feature .lab-eyebrow {
  background: rgba(128, 167, 151, 0.22);
  color: #a9cdbd;
}

.gewu-feature .button-secondary:hover,
.gewu-feature .button-secondary:focus-visible {
  border-color: #80a797;
}

.gewu-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.gewu-badges li {
  padding: 0.22rem 0.65rem;
  border-radius: 99px;
  background: rgba(128, 167, 151, 0.16);
  border: 1px solid rgba(128, 167, 151, 0.45);
  color: #d7e8e0;
  font-size: 0.78rem;
  letter-spacing: 0.02em;
}

.lab-directory {
  padding-bottom: var(--section-pad-y);
}

.lab-directory-header {
  max-width: 640px;
  margin-bottom: 2rem;
}

.lab-directory-header .section-label {
  margin-bottom: 0.75rem;
}

.lab-directory-header h2 {
  margin: 0;
}

.lab-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

.lab-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 1.75rem;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease,
    border-color 0.2s ease;
}

.lab-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  border-color: rgba(139, 92, 246, 0.35);
}

.lab-card .doc-entry-head {
  margin-bottom: 0;
}

.lab-card h3 {
  margin: 0;
  font-size: 1.18rem;
  font-weight: var(--weight-bold);
  letter-spacing: -0.005em;
}

.lab-card > p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.98rem;
}

.lab-card .doc-action {
  margin-top: auto;
}

.lab-back {
  padding-bottom: var(--section-pad-y);
}

.doc-hero p + p {
  margin-top: 0.75rem;
  font-size: 0.92rem;
}

/* ============================================================
 * 响应式：≤ 900px
 * ============================================================ */

@media (max-width: 900px) {
  :root {
    --header-h: 72px;
    --section-pad-y: 4rem;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .lang-toggle {
    min-width: 44px;
    height: 44px;
    padding: 0 0.7rem;
    border-radius: 12px;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 8px);
    right: 1rem;
    left: 1rem;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.55rem;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 0.95rem 1rem;
    border-radius: 14px;
    min-height: 44px;
  }

  .site-nav a:hover,
  .site-nav a:focus-visible {
    background: var(--surface-soft);
  }

  .site-nav a::after {
    display: none;
  }

  .hero-section,
  .about-section,
  .services-section,
  .team-section,
  .docs-section,
  .contact-section {
    padding: 4rem 0;
  }

  .hero-grid,
  .about-grid,
  .team-layout,
  .docs-layout,
  .tool-feature,
  .lab-feature {
    grid-template-columns: 1fr;
  }

  .tool-feature-visual {
    display: none;
  }

  .hero-copy h1 {
    max-width: none;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .lab-grid {
    grid-template-columns: 1fr;
  }

  .doc-entry {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .contact-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .contact-button {
    justify-content: center;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    padding-bottom: 1.6rem;
  }

  .footer-col--brand {
    max-width: none;
    grid-column: 1 / -1;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }

  .footer-tagline {
    order: 2;
  }

  .footer-social {
    order: 3;
  }
}

/* ============================================================
 * 响应式：≤ 640px
 * ============================================================ */

@media (max-width: 640px) {
  .header-inner {
    min-height: 72px;
  }

  .brand-name {
    font-size: 1rem;
  }

  .brand--logo-only .brand-logo {
    width: 140px;
    height: 35px;
  }

  .hero-copy h1 {
    font-size: 2.1rem;
  }

  .button {
    width: 100%;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .button {
    width: 100%;
  }

  .section-title {
    font-size: 1.55rem;
  }

  .doc-hero h1 {
    font-size: 1.85rem;
  }

  .contact-card {
    padding: 1.5rem;
  }

  .doc-list-shell {
    padding: 1.5rem;
  }

  .doc-action {
    align-self: stretch;
    justify-content: center;
  }

  .tool-feature {
    padding: 1.75rem;
  }

  .lab-feature {
    padding: 1.75rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}
