/* HypoMux 官网样式 — Windows 11 Fluent 风格（微光蓝 #0078d4） */

:root {
  --accent: #0078d4;
  --accent-dark: #005a9e;
  --accent-light: #c7e0f4;
  --bg: #f5f7fa;
  --surface: #ffffff;
  --text: #1b1f23;
  --text-secondary: #4a5561;
  --border: #e1e6eb;
  --shadow: 0 4px 16px rgba(16, 32, 48, 0.08);
  --shadow-lg: 0 8px 28px rgba(16, 32, 48, 0.14);
  --radius: 12px;
  --max-width: 1120px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 76px;
}

body {
  margin: 0;
  font-family: "Segoe UI", "Microsoft YaHei", "PingFang SC", -apple-system, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-dark); text-decoration: underline; }

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ============ 顶部导航 ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
}
.brand:hover { text-decoration: none; }
.brand small {
  font-size: 0.72rem;
  font-weight: 600;
  color: #fff;
  background: var(--accent);
  border-radius: 999px;
  padding: 2px 10px;
  vertical-align: middle;
}
.brand-footer { margin-bottom: 10px; color: #fff; }

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}
.site-nav > a {
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 0.92rem;
  color: var(--text-secondary);
  font-weight: 500;
}
.site-nav > a:hover {
  color: var(--accent);
  background: var(--accent-light);
  text-decoration: none;
}
.site-nav > a.is-active {
  color: var(--accent);
  font-weight: 600;
}
.nav-github { font-weight: 600; }

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

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 14px rgba(0, 120, 212, 0.35);
}
.btn-primary:hover { background: var(--accent-dark); color: #fff; }

.btn-ghost {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border);
  box-shadow: var(--shadow);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

.btn-lg { padding: 14px 30px; font-size: 1.05rem; }
.btn-sm { padding: 7px 16px; font-size: 0.9rem; }

/* ============ Hero ============ */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(1200px 500px at 80% -10%, rgba(0, 120, 212, 0.14), transparent 60%),
    radial-gradient(900px 420px at 10% 110%, rgba(0, 120, 212, 0.10), transparent 60%),
    linear-gradient(180deg, #eef4fb 0%, var(--bg) 100%);
  padding: 72px 0 64px;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 48px;
  align-items: center;
}

.hero-badges { margin: 0 0 18px; display: flex; gap: 10px; flex-wrap: wrap; }

.badge {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--accent-light);
  color: var(--accent-dark);
}
.badge-green { background: #dff6e4; color: #1d7a3a; }
.badge-orange { background: #ffe9d1; color: #a05a12; }

.hero h1 {
  margin: 0 0 16px;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.hero-sub {
  font-size: 1.06rem;
  color: var(--text-secondary);
  margin: 0 0 28px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 26px;
}
.hero-actions.center { justify-content: center; margin-top: 28px; }

.hero-meta {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 26px;
  color: var(--text-secondary);
  font-size: 0.92rem;
}

.hero-shot {
  margin: 0;
  text-align: center;
}
.hero-shot img {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
}
.hero-shot figcaption {
  margin-top: 12px;
  font-size: 0.88rem;
  color: var(--text-secondary);
}

/* ============ 区块 ============ */
.section { padding: 76px 0; }
.section-alt { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.section h2 {
  margin: 0 0 12px;
  font-size: clamp(1.5rem, 3vw, 2rem);
  text-align: center;
}

.section-lead {
  max-width: 860px;
  margin: 0 auto 40px;
  text-align: center;
  color: var(--text-secondary);
}

.section-download {
  background:
    radial-gradient(800px 320px at 50% 0%, rgba(0, 120, 212, 0.12), transparent 65%),
    var(--bg);
  text-align: center;
}

.download-inner p { max-width: 720px; margin: 0 auto; color: var(--text-secondary); }
.download-note { margin-top: 18px; font-size: 0.88rem; color: var(--text-secondary); }

/* ============ 卡片 ============ */
.grid {
  display: grid;
  gap: 22px;
}
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.card h3 { margin: 0 0 10px; font-size: 1.08rem; }
.card p { margin: 0; color: var(--text-secondary); font-size: 0.96rem; }
.card ul { margin: 0; padding-left: 20px; color: var(--text-secondary); font-size: 0.94rem; }
.card li + li { margin-top: 8px; }
.card code {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1px 6px;
  font-size: 0.85em;
}

.card-icon {
  font-size: 1.7rem;
  margin-bottom: 12px;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-light);
  border-radius: 12px;
}

/* ============ 提示框 ============ */
.callout {
  margin-top: 34px;
  background: #eef6ff;
  border: 1px solid var(--accent-light);
  border-left: 4px solid var(--accent);
  border-radius: 10px;
  padding: 18px 22px;
  color: var(--text-secondary);
  font-size: 0.97rem;
}

/* ============ 使用步骤 ============ */
.steps ol {
  counter-reset: step;
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
  max-width: 900px;
  margin: 0 auto;
}
.steps li {
  counter-increment: step;
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px 22px 18px 74px;
  color: var(--text-secondary);
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 22px;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.steps strong { color: var(--text); }

/* ============ 原理图 ============ */
.diagram {
  background: #10161d;
  color: #cfe3f5;
  border-radius: var(--radius);
  padding: 26px 28px;
  overflow-x: auto;
  font-size: 0.85rem;
  line-height: 1.6;
  box-shadow: var(--shadow-lg);
  margin: 0 auto 36px;
  max-width: 900px;
  text-align: left;
}

/* ============ 截图 ============ */
.shots, .shot { margin: 0 auto; }
.shot {
  max-width: 900px;
  margin: 0 auto 44px;
  text-align: center;
}
.shot img {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
}
.shot figcaption {
  margin-top: 12px;
  font-size: 0.93rem;
  color: var(--text-secondary);
  text-align: left;
}
.shot-small img { max-width: min(420px, 100%); }

/* ============ FAQ ============ */
.faq-item {
  max-width: 860px;
  margin: 0 auto 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px 26px;
}
.faq-item h3 {
  margin: 0 0 8px;
  font-size: 1.02rem;
}
.faq-item h3::before { content: "Q. "; color: var(--accent); }
.faq-item p { margin: 0; color: var(--text-secondary); font-size: 0.96rem; }

/* ============ 页脚 ============ */
.site-footer {
  background: #141a21;
  color: #b7c2cd;
  padding: 56px 0 36px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 36px;
  margin-bottom: 36px;
}
.footer-grid h4 {
  margin: 0 0 12px;
  color: #fff;
  font-size: 0.98rem;
}
.footer-grid nav { display: flex; flex-direction: column; gap: 8px; }
.footer-grid a { color: #b7c2cd; font-size: 0.92rem; }
.footer-grid a:hover { color: #fff; }
.footer-desc { margin: 0; font-size: 0.92rem; }
.footer-legal {
  border-top: 1px solid #2a3340;
  padding-top: 22px;
  font-size: 0.84rem;
  color: #8b98a6;
}
.footer-legal p { margin: 0 0 6px; }
.footer-legal a { color: #b7c2cd; }

/* ============ 响应式 ============ */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; gap: 36px; }
  .hero-shot { order: -1; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 680px) {
  .section { padding: 56px 0; }
  .hero { padding: 48px 0; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .header-inner { height: auto; flex-wrap: wrap; padding: 10px 0; }
  .site-nav { justify-content: flex-start; }
  .site-nav > a { padding: 6px 8px; font-size: 0.86rem; }
  .hero-actions .btn { width: 100%; }
  .steps li { padding-left: 64px; }
  .steps li::before { left: 16px; }
}

/* ============ 子页面（下载 / 教程 / FAQ） ============ */
.page-hero {
  background:
    radial-gradient(900px 380px at 50% -20%, rgba(0, 120, 212, 0.14), transparent 65%),
    linear-gradient(180deg, #eef4fb 0%, var(--bg) 100%);
  padding: 48px 0 56px;
  text-align: center;
}
.page-hero h1 {
  margin: 10px 0 14px;
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
}
.page-hero-lead {
  max-width: 760px;
  margin: 0 auto;
  color: var(--text-secondary);
}
.page-hero .download-note { margin-top: 18px; }

.breadcrumb {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-bottom: 6px;
}
.breadcrumb a { color: var(--text-secondary); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb span { margin: 0 6px; color: #9aa5b0; }
.breadcrumb em { font-style: normal; color: var(--accent-dark); font-weight: 600; }

.info-table-wrap {
  max-width: 760px;
  margin: 0 auto;
  overflow-x: auto;
}
.info-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.info-table th,
.info-table td {
  padding: 14px 20px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
}
.info-table tr:last-child th,
.info-table tr:last-child td { border-bottom: none; }
.info-table th {
  width: 130px;
  background: #f7fafd;
  color: var(--text-secondary);
  font-weight: 600;
  white-space: nowrap;
}

.more-link { text-align: center; margin: 34px 0 0; }

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

@media (max-width: 680px) {
  .page-hero { padding: 36px 0 44px; }
  .info-table th, .info-table td { padding: 12px 14px; font-size: 0.9rem; }
  .info-table th { width: 100px; }
}
