/* ==========================================================================
   Gephi 中文站样式表
   主色取自仓库官方 Logo（SVG fill #555，gephi/gephi DesktopIcons 模块）
   兼容目标：Chromium 86（不使用 :has / :is / @layer / aspect-ratio / 逻辑属性）
   ========================================================================== */

:root {
  /* 品牌色：仓库 Logo 主色 */
  --c-brand: #555555;
  --c-brand-dark: #2b2b2b;
  --c-brand-light: #8a8a8a;
  --c-accent: #555555;
  --c-accent-hover: #2b2b2b;

  /* 功能色 */
  --c-bg: #ffffff;
  --c-bg-soft: #f7f7f5;
  --c-bg-mute: #efefec;
  --c-card: #ffffff;
  --c-border: #e6e6e2;
  --c-border-strong: #d4d4cf;

  /* 文字 */
  --c-text: #1a1a1a;
  --c-text-2: #4a4a46;
  --c-text-3: #6d6d66; /* 对白/浅/页脚底均 ≥ 4.6:1 */
  --c-text-inverse: #ffffff;

  /* 状态 */
  --c-focus: #0b57d0; /* focus 可见色，对比度 4.6:1 */
  --c-danger: #b3261e;

  /* 布局 */
  --w-max: 1120px;
  --radius: 10px;
  --radius-lg: 16px;
  --shadow-1: 0 1px 3px rgba(26, 26, 26, 0.08);
  --shadow-2: 0 6px 24px rgba(26, 26, 26, 0.10);
  --shadow-3: 0 16px 48px rgba(26, 26, 26, 0.16);
  --header-h: 64px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  --mono: ui-monospace, SFMono-Regular, Consolas, "Courier New", monospace;
}

/* ---------- 重置 ---------- */
* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  color: var(--c-text);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; border: 0; }

a { color: var(--c-focus); text-decoration: none; }
a:hover { text-decoration: underline; }

ul, ol { padding-left: 1.5em; }
ul li, ol li { margin: 0.35em 0; }

/* 可访问性：跳转到主内容 */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--c-bg);
  color: var(--c-focus);
  padding: 10px 18px;
  border: 2px solid var(--c-focus);
  border-radius: 0 0 var(--radius) 0;
  font-weight: 600;
}
.skip-link:focus { left: 0; text-decoration: none; }

/* 焦点可见性 */
a:focus-visible,
button:focus-visible,
[tabindex]:focus-visible,
input:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--c-focus);
  outline-offset: 2px;
}

/* ---------- 布局容器 ---------- */
.container { max-width: var(--w-max); margin: 0 auto; padding: 0 24px; }

.section { padding: 72px 0; }
.section--soft { background: var(--c-bg-soft); }

.section-head { max-width: 720px; margin: 0 auto 44px; text-align: center; }
.section-head .kicker {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--c-brand);
  text-transform: uppercase;
  margin-bottom: 10px;
}
.section-head h2 { margin: 0 0 12px; font-size: 30px; line-height: 1.3; }
.section-head p { margin: 0; color: var(--c-text-2); }

/* ---------- 页头 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--c-border);
}
.site-header.is-scrolled { box-shadow: var(--shadow-1); }

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

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--c-text);
  font-weight: 700;
  font-size: 18px;
}
.brand:hover { text-decoration: none; }
.brand svg { display: block; }
.brand .brand-name { letter-spacing: 0.01em; }
.brand .brand-badge {
  font-size: 11px;
  font-weight: 600;
  color: var(--c-text-3);
  border: 1px solid var(--c-border-strong);
  border-radius: 999px;
  padding: 1px 8px;
  margin-left: 4px;
  letter-spacing: 0.05em;
}

.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav a {
  display: inline-block;
  color: var(--c-text-2);
  font-weight: 500;
  font-size: 15px;
  padding: 8px 14px;
  border-radius: 8px;
  min-height: 44px;
  display: -webkit-inline-flex;
  -webkit-align-items: center;
}
.main-nav a:hover { color: var(--c-text); background: var(--c-bg-mute); text-decoration: none; }
.main-nav a[aria-current="page"] { color: var(--c-text); font-weight: 600; background: var(--c-bg-mute); }

.header-cta { display: -webkit-flex; display: flex; align-items: center; gap: 12px; }

/* 移动端导航按钮 */
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--c-border-strong);
  border-radius: 8px;
  width: 44px;
  height: 44px;
  cursor: pointer;
  padding: 0;
}
.nav-toggle svg { margin: 0 auto; }

/* ---------- 按钮 ---------- */
.btn {
  display: -webkit-inline-flex;
  display: inline-flex;
  -webkit-align-items: center;
  align-items: center;
  -webkit-justify-content: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 22px;
  border-radius: 8px;
  border: 1px solid transparent;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  -webkit-transition: background-color 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s, -webkit-transform 0.15s;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s, transform 0.15s;
}
.btn:hover { text-decoration: none; }
.btn:active { -webkit-transform: translateY(1px); transform: translateY(1px); }

.btn--primary {
  background: var(--c-accent);
  color: var(--c-text-inverse);
}
.btn--primary:hover { background: var(--c-accent-hover); color: var(--c-text-inverse); }

.btn--ghost {
  background: transparent;
  color: var(--c-text);
  border-color: var(--c-border-strong);
}
.btn--ghost:hover { border-color: var(--c-brand); background: var(--c-bg-soft); }

.btn--lg { font-size: 16px; padding: 13px 28px; min-height: 48px; }

.btn--dl { min-width: 148px; }

/* ---------- 英雄区 ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 88px 0 72px;
  background: var(--c-bg);
}
.hero::before {
  /* 顶部柔和渐变底纹（纯装饰） */
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 320px;
  background: -webkit-linear-gradient(top, #f7f7f5 0%, rgba(247, 247, 245, 0) 100%);
  background: linear-gradient(180deg, #f7f7f5 0%, rgba(247, 247, 245, 0) 100%);
  z-index: -1;
}

.hero-grid {
  display: -webkit-flex;
  display: flex;
  -webkit-align-items: center;
  align-items: center;
  gap: 48px;
}
.hero-copy { -webkit-flex: 1 1 56%; flex: 1 1 56%; }
.hero-visual { -webkit-flex: 0 1 44%; flex: 0 1 44%; }

.hero h1 {
  margin: 0 0 18px;
  font-size: 42px;
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.hero h1 .accent { color: var(--c-brand); }

.hero .lede {
  font-size: 18px;
  color: var(--c-text-2);
  max-width: 34em;
  margin: 0 0 28px;
}

.hero-meta {
  display: -webkit-flex;
  display: flex;
  -webkit-flex-wrap: wrap;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 30px;
  padding: 0;
  list-style: none;
}
.hero-meta li {
  font-size: 13px;
  color: var(--c-text-2);
  background: var(--c-bg-soft);
  border: 1px solid var(--c-border);
  border-radius: 999px;
  padding: 5px 12px;
}

.hero-actions { display: -webkit-flex; display: flex; -webkit-flex-wrap: wrap; flex-wrap: wrap; gap: 14px; }

.hero-visual .figure-card {
  background: var(--c-card);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-2);
  padding: 14px;
  margin: 0;
}
.figure-card img { display: block; width: 100%; border-radius: 8px; }
.figure-card figcaption {
  font-size: 12.5px;
  color: var(--c-text-3);
  text-align: center;
  padding: 10px 4px 2px;
}

/* ---------- 徽章条 ---------- */
.fact-strip {
  border-top: 1px solid var(--c-border);
  border-bottom: 1px solid var(--c-border);
  background: var(--c-bg-soft);
  padding: 26px 0;
}
.fact-strip .container {
  display: -webkit-flex;
  display: flex;
  -webkit-flex-wrap: wrap;
  flex-wrap: wrap;
  -webkit-justify-content: space-between;
  justify-content: space-between;
  gap: 18px;
}
.fact-item { display: flex; align-items: center; gap: 12px; }
.fact-item svg { -webkit-flex: none; flex: none; }
.fact-item .fact-label { font-size: 13px; color: var(--c-text-3); line-height: 1.3; }
.fact-item .fact-value { font-size: 15px; font-weight: 600; color: var(--c-text); line-height: 1.3; }

/* ---------- 卡片网格 ---------- */
.grid-3 {
  display: -webkit-flex;
  display: flex;
  -webkit-flex-wrap: wrap;
  flex-wrap: wrap;
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.grid-3 > li {
  -webkit-flex: 1 1 300px;
  flex: 1 1 300px;
  min-width: 0;
}

.card {
  background: var(--c-card);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  padding: 28px 26px;
  height: 100%;
  -webkit-transition: box-shadow 0.25s, border-color 0.25s, -webkit-transform 0.25s;
  transition: box-shadow 0.25s, border-color 0.25s, transform 0.25s;
}
.card:hover {
  box-shadow: var(--shadow-2);
  border-color: var(--c-border-strong);
  -webkit-transform: translateY(-3px);
  transform: translateY(-3px);
}
.card .card-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--c-bg-mute);
  display: -webkit-flex;
  display: flex;
  -webkit-align-items: center;
  align-items: center;
  -webkit-justify-content: center;
  justify-content: center;
  margin-bottom: 16px;
}
.card h3 { margin: 0 0 8px; font-size: 18px; }
.card p { margin: 0; font-size: 14.5px; color: var(--c-text-2); }
.card ul { margin: 8px 0 0; }
.card ul li { font-size: 14.5px; color: var(--c-text-2); }

/* ---------- 数据表 ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--c-border); border-radius: var(--radius-lg); background: var(--c-card); }
table.data { width: 100%; border-collapse: collapse; font-size: 14.5px; }
table.data th, table.data td {
  text-align: left;
  padding: 13px 16px;
  border-bottom: 1px solid var(--c-border);
  vertical-align: top;
}
table.data th {
  background: var(--c-bg-soft);
  font-size: 13px;
  font-weight: 600;
  color: var(--c-text-2);
  white-space: nowrap;
}
table.data tr:last-child td { border-bottom: 0; }
table.data td .file { font-family: var(--mono); font-size: 13px; word-break: break-all; }

/* ---------- 安装步骤 ---------- */
.steps { margin: 0; padding: 0; list-style: none; counter-reset: step; }
.steps > li {
  counter-increment: step;
  position: relative;
  padding: 0 0 30px 56px;
  border-left: 2px solid var(--c-border);
  margin-left: 17px;
}
.steps > li:last-child { border-left-color: transparent; padding-bottom: 4px; }
.steps > li::before {
  content: counter(step);
  position: absolute;
  left: -17px;
  top: 0;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--c-accent);
  color: var(--c-text-inverse);
  font-weight: 700;
  font-size: 15px;
  display: -webkit-flex;
  display: flex;
  -webkit-align-items: center;
  align-items: center;
  -webkit-justify-content: center;
  justify-content: center;
}
.steps h3 { margin: 2px 0 6px; font-size: 17px; }
.steps p { margin: 0; color: var(--c-text-2); font-size: 15px; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 780px; margin: 0 auto; }
.faq-item {
  background: var(--c-card);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
}
.faq-item summary {
  cursor: pointer;
  padding: 16px 20px;
  font-weight: 600;
  font-size: 15.5px;
  min-height: 44px;
  display: -webkit-flex;
  display: flex;
  -webkit-align-items: center;
  align-items: center;
  -webkit-justify-content:  space-between;
  justify-content: space-between;
  gap: 16px;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .chev {
  -webkit-flex: none;
  flex: none;
  -webkit-transition: -webkit-transform 0.2s;
  transition: transform 0.2s;
}
.faq-item[open] summary .chev { -webkit-transform: rotate(180deg); transform: rotate(180deg); }
.faq-item .faq-body { padding: 0 20px 18px; color: var(--c-text-2); font-size: 15px; }
.faq-item .faq-body p { margin: 0 0 10px; }
.faq-item .faq-body p:last-child { margin: 0; }

/* ---------- 页脚 ---------- */
.site-footer {
  background: #f2f2ef;
  border-top: 1px solid var(--c-border);
  padding: 52px 0 40px;
  margin-top: 0;
}
.footer-grid {
  display: -webkit-flex;
  display: flex;
  -webkit-flex-wrap: wrap;
  flex-wrap: wrap;
  gap: 40px;
}
.footer-col { -webkit-flex: 1 1 240px; flex: 1 1 240px; min-width: 0; }
.footer-col h4 {
  margin: 0 0 14px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--c-text-3);
  text-transform: uppercase;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col ul li { margin: 8px 0; }
.footer-col a { color: var(--c-text-2); font-size: 14.5px; }
.footer-col a:hover { color: var(--c-text); }
.footer-brand p {
  margin: 10px 0 0;
  font-size: 13.5px;
  color: var(--c-text-3);
  max-width: 30em;
}

.footer-bottom {
  margin-top: 40px;
  padding-top: 22px;
  border-top: 1px solid var(--c-border);
  font-size: 13px;
  color: var(--c-text-3);
  display: -webkit-flex;
  display: flex;
  -webkit-flex-wrap: wrap;
  flex-wrap: wrap;
  gap: 12px;
  -webkit-justify-content: space-between;
  justify-content: space-between;
}

/* ---------- 下载弹窗 ---------- */
.modal {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 300;
  display: none;
  -webkit-align-items: center;
  align-items: center;
  -webkit-justify-content: center;
  justify-content: center;
  padding: 24px;
}
.modal.is-open { display: -webkit-flex; display: flex; }
.modal-backdrop {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: rgba(26, 26, 26, 0.5);
}
.modal-dialog {
  position: relative;
  background: var(--c-bg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-3);
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 32px 32px 36px;
  -webkit-animation: modalIn 0.25s ease-out;
  animation: modalIn 0.25s ease-out;
}
@-webkit-keyframes modalIn {
  from { opacity: 0; -webkit-transform: translateY(14px) scale(0.98); transform: translateY(14px) scale(0.98); }
  to { opacity: 1; -webkit-transform: translateY(0) scale(1); transform: translateY(0) scale(1); }
}
@keyframes modalIn {
  from { opacity: 0; -webkit-transform: translateY(14px) scale(0.98); transform: translateY(14px) scale(0.98); }
  to { opacity: 1; -webkit-transform: translateY(0) scale(1); transform: translateY(0) scale(1); }
}
.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  border: none;
  background: transparent;
  cursor: pointer;
  color: var(--c-text-3);
  display: -webkit-flex;
  display: flex;
  -webkit-align-items: center;
  align-items: center;
  -webkit-justify-content: center;
  justify-content: center;
}
.modal-close:hover { background: var(--c-bg-mute); color: var(--c-text); }

.modal-dialog h2 { margin: 0 0 6px; font-size: 22px; }
.modal-dialog .modal-sub { margin: 0 0 24px; font-size: 14px; color: var(--c-text-3); }

.qr-row {
  display: -webkit-flex;
  display: flex;
  gap: 18px;
  -webkit-flex-wrap: wrap;
  flex-wrap: wrap;
  -webkit-justify-content: center;
  justify-content: center;
}
.qr-box {
  -webkit-flex: 1 1 200px;
  flex: 1 1 200px;
  max-width: 232px;
  border: 2px dashed var(--c-border-strong);
  border-radius: var(--radius);
  padding: 18px 14px 16px;
  text-align: center;
}
.qr-box .qr-img {
  display: block;
  width: 168px;
  height: 168px;
  margin: 0 auto 12px;
  border-radius: 8px;
  background: #ffffff;
}
.qr-box .qr-label { font-size: 15px; font-weight: 600; color: var(--c-text); display: block; }
.qr-box .qr-tip { font-size: 12.5px; color: var(--c-text-3); display: block; margin-top: 4px; }

.modal-note {
  margin: 22px 0 0;
  font-size: 13px;
  color: var(--c-text-3);
  border-top: 1px solid var(--c-border);
  padding-top: 16px;
  line-height: 1.6;
}

/* ---------- 滚动显现动画 ---------- */
.reveal { opacity: 0; -webkit-transform: translateY(18px); transform: translateY(18px); }
.reveal.is-in {
  opacity: 1;
  -webkit-transform: none;
  transform: none;
  -webkit-transition: opacity 0.6s ease, -webkit-transform 0.6s ease;
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.no-js .reveal, .reveal.is-legacy { opacity: 1; -webkit-transform: none; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; -webkit-transform: none; transform: none; -webkit-transition: none; transition: none; }
  .modal-dialog { -webkit-animation: none; animation: none; }
  .btn, .card { -webkit-transition: none; transition: none; }
}

/* ---------- 页面小节变体 ---------- */
.page-hero { padding: 56px 0 40px; background: var(--c-bg-soft); border-bottom: 1px solid var(--c-border); }
.page-hero h1 { margin: 0 0 12px; font-size: 34px; line-height: 1.3; }
.page-hero .lede { font-size: 17px; color: var(--c-text-2); max-width: 44em; margin: 0; }

.breadcrumb { font-size: 13px; color: var(--c-text-3); margin-bottom: 18px; }
.breadcrumb ol { list-style: none; display: -webkit-flex; display: flex; -webkit-flex-wrap: wrap; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; }
.breadcrumb li + li::before { content: "/"; margin-right: 6px; color: var(--c-border-strong); }
.breadcrumb a { color: var(--c-text-3); }
.breadcrumb a:hover { color: var(--c-text); }
.breadcrumb [aria-current="page"] { color: var(--c-text); }

.prose { max-width: 780px; }
.prose h2 { font-size: 26px; margin: 48px 0 14px; }
.prose h3 { font-size: 19px; margin: 32px 0 10px; }
.prose p { color: var(--c-text-2); }

.note {
  background: var(--c-bg-soft);
  border-left: 3px solid var(--c-brand);
  border-radius: 0 8px 8px 0;
  padding: 14px 18px;
  font-size: 14px;
  color: var(--c-text-2);
  margin: 20px 0;
}
.note strong { color: var(--c-text); }

/* 下载页平台区块 */
.platform-card {
  background: var(--c-card);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  padding: 26px;
  margin-bottom: 20px;
  display: -webkit-flex;
  display: flex;
  -webkit-flex-wrap: wrap;
  flex-wrap: wrap;
  gap: 18px;
  -webkit-align-items: center;
  align-items: center;
}
.platform-card .pf-info { -webkit-flex: 1 1 260px; flex: 1 1 260px; min-width: 0; }
.platform-card h3 { margin: 0 0 4px; font-size: 18px; }
.platform-card .pf-file { font-family: var(--mono); font-size: 12.5px; color: var(--c-text-3); word-break: break-all; }
.platform-card .btn { -webkit-flex: none; flex: none; }

/* ---------- 404 ---------- */
.error-wrap { text-align: center; padding: 100px 24px; }
.error-code { font-size: 96px; font-weight: 700; color: var(--c-bg-mute); line-height: 1; letter-spacing: 0.02em;
  -webkit-text-stroke: 2px var(--c-border-strong); }
.error-wrap h1 { font-size: 28px; margin: 8px 0 12px; }
.error-wrap p { color: var(--c-text-2); margin: 0 0 28px; }

/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
  .hero-grid { -webkit-flex-direction: column; flex-direction: column; gap: 36px; }
  .hero-copy, .hero-visual { -webkit-flex: 1 1 auto; flex: 1 1 auto; width: 100%; }
  .hero h1 { font-size: 34px; }
  .section { padding: 56px 0; }
}

@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .main-nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--c-bg);
    border-bottom: 1px solid var(--c-border);
    box-shadow: var(--shadow-2);
    -webkit-flex-direction: column;
    flex-direction: column;
    -webkit-align-items: stretch;
    align-items: stretch;
    padding: 8px 16px 16px;
    gap: 2px;
  }
  .main-nav.is-open { display: flex; }
  .main-nav a { border-radius: 8px; }
  .header-cta .btn--ghost { display: none; }
  .footer-grid { gap: 28px; }
  .footer-col { -webkit-flex: 1 1 100%; flex: 1 1 100%; }
  .platform-card .btn { width: 100%; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 29px; }
  .hero { padding: 56px 0 48px; }
  .hero .lede { font-size: 16px; }
  .section-head h2 { font-size: 25px; }
  .page-hero h1 { font-size: 27px; }
  .qr-row { -webkit-flex-direction: column; flex-direction: column; -webkit-align-items: center; align-items: center; }
  .qr-box { width: 100%; }
}
