:root {
  --accent: #3eaf7c;
  --accent-dark: #369e6f;
  --accent-light: #e8f7f0;
  --accent-2: #3b82f6;
  --accent-2-dark: #2563eb;
  --text: #2c3e50;
  --text-light: #6a8bad;
  --text-dim: #7f8c8d;
  --border: #eaecef;
  --bg-soft: #f6f8fa;
  --code-bg: #f3f4f5;
  --warn-bg: rgba(255, 229, 100, 0.25);
  --warn-border: #e7c000;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --shadow-sm: 0 1px 2px rgba(44, 62, 80, .05), 0 2px 6px rgba(44, 62, 80, .05);
  --shadow-md: 0 8px 20px rgba(44, 62, 80, .10), 0 2px 6px rgba(44, 62, 80, .05);
  --shadow-lg: 0 20px 44px rgba(44, 62, 80, .16);
  --gradient-brand: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 130%);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background: #fff;
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
::selection { background: rgba(62, 175, 124, 0.25); }
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #d3d9e0; border-radius: 8px; border: 3px solid #fff; }
::-webkit-scrollbar-thumb:hover { background: #b9c2cc; }
a { color: var(--accent-dark); text-decoration: none; transition: color .15s; }
a:hover { text-decoration: underline; }
code {
  background: var(--code-bg);
  padding: 2px 6px;
  border-radius: 5px;
  font-size: 0.85em;
  color: #476582;
  border: 1px solid rgba(44, 62, 80, .06);
}
pre {
  background: #2c3444;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  overflow-x: auto;
  margin: 14px 0;
  font-size: 0.85rem;
  line-height: 1.6;
  box-shadow: var(--shadow-sm);
}
pre code { background: none; padding: 0; border: none; color: #dbe4ee; }

/* ===== 顶部导航 ===== */
.navbar {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 0 rgba(44, 62, 80, .02), 0 6px 20px rgba(44, 62, 80, .04);
  height: 57px;
}
.navbar-inner {
  max-width: 1260px; margin: 0 auto;
  padding: 0 20px;
  height: 100%;
  display: flex; align-items: center; justify-content: space-between;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  min-width: 0; flex: 0 1 auto;
  overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
  font-size: 1.15rem; font-weight: 700; color: var(--text);
  letter-spacing: -.01em;
}
.brand:hover { text-decoration: none; }
.brand-short { display: none; }
.brand-logo {
  width: 30px; height: 30px;
  flex: none;
  border-radius: 8px;
  display: block;
  box-shadow: 0 2px 8px rgba(62, 175, 124, .35);
}
.nav-menu { display: flex; align-items: center; gap: 2px; flex-wrap: nowrap; }
.nav-menu a {
  color: var(--text); font-size: 0.9rem; font-weight: 500;
  padding: 7px 10px;
  border-radius: 999px;
  white-space: nowrap;
  transition: background .18s, color .18s;
}
.nav-menu a:hover { text-decoration: none; background: var(--bg-soft); color: var(--accent-dark); }
.nav-menu a.active { background: var(--accent-light); color: var(--accent-dark); font-weight: 600; }
.nav-toggle { display: none; background: none; border: none; font-size: 1.4rem; color: var(--text); cursor: pointer; }

/* 导航下拉菜单（教程索引） */
.nav-dropdown {
  position: relative;
  display: flex; align-items: center;
  height: 57px;
}
.nav-dropdown > a.has-sub { white-space: nowrap; }
.nav-dropdown > a.has-sub::after {
  content: " ▾";
  font-size: 0.7em;
  color: var(--text-dim);
}
.dropdown-menu {
  display: none;
  position: absolute;
  /* top 紧贴触发区底部（不留空隙），避免鼠标下移经过空隙时被判定为移出而收起菜单 */
  top: 100%; left: 50%;
  transform: translateX(-50%);
  min-width: 190px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  padding: 8px;
  z-index: 30;
}
.nav-dropdown:hover .dropdown-menu { display: block; }
.dropdown-menu a {
  display: block;
  padding: 9px 14px;
  color: var(--text);
  font-size: 0.88rem;
  border-bottom: none;
  border-radius: 7px;
  white-space: nowrap;
}
.dropdown-menu a:hover {
  background: var(--accent-light);
  color: var(--accent-dark);
  text-decoration: none;
  border-bottom: none;
}

/* ===== 语言切换 ===== */
.lang-switch { position: relative; }
.lang-btn {
  display: flex; align-items: center; gap: 5px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 7px 10px;
  font-size: 0.85rem; font-weight: 500;
  color: var(--text);
  cursor: pointer;
  white-space: nowrap;
  transition: background .18s, border-color .18s, color .18s;
}
.lang-code {
  display: flex; align-items: center; justify-content: center;
  flex: none;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--accent-light);
  color: var(--accent-dark);
  font-size: 0.72rem; font-weight: 700;
  line-height: 1;
  transition: background .18s, color .18s;
}
.lang-btn:hover { background: var(--accent-light); color: var(--accent-dark); border-color: var(--accent-light); }
.lang-btn:hover .lang-code { background: var(--accent-dark); color: #fff; }
.lang-btn-text { white-space: nowrap; }
.lang-caret { font-size: 0.7em; color: var(--text-dim); }
.lang-switch { padding-bottom: 10px; margin-bottom: -10px; }
.lang-menu {
  display: none;
  position: absolute;
  top: 100%; right: 0;
  min-width: 150px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  padding: 8px;
  z-index: 30;
}
.lang-switch:hover .lang-menu,
.lang-switch.open .lang-menu { display: block; }
.lang-menu a {
  display: block;
  padding: 9px 14px;
  color: var(--text);
  font-size: 0.88rem;
  border-bottom: none;
  border-radius: 7px;
  white-space: nowrap;
}
.lang-menu a:hover { background: var(--accent-light); color: var(--accent-dark); text-decoration: none; border-bottom: none; }
.lang-menu a.active { color: var(--accent-dark); font-weight: 600; background: var(--accent-light); }

/* ===== 站内搜索 ===== */
.navbar-right { display: flex; align-items: center; gap: 12px; }
.nav-search { position: relative; }
.nav-search input {
  width: 138px;
  padding: 7px 12px 7px 32px;
  font-size: 0.85rem;
  color: var(--text);
  background: var(--bg-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%237f8c8d' stroke-width='2.5' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E") 11px center no-repeat;
  border: 1px solid var(--border);
  border-radius: 999px;
  outline: none;
  transition: width 0.2s, border-color 0.2s, box-shadow .2s;
}
.nav-search input:focus { width: 210px; border-color: var(--accent); background-color: #fff; box-shadow: 0 0 0 3px var(--accent-light); }
.nav-search input::placeholder { color: var(--text-dim); }
.nav-search input::-webkit-search-cancel-button { -webkit-appearance: none; }
.search-results {
  display: none;
  position: absolute;
  top: calc(100% + 10px); right: 0;
  width: min(330px, calc(100vw - 32px));
  max-height: 380px; overflow-y: auto;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  padding: 6px; margin: 0;
  z-index: 30;
}
.search-results.open { display: block; }
.search-results a {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 9px 12px;
  font-size: 0.87rem;
  color: var(--text);
  border-radius: 7px;
}
.search-results a:hover,
.search-results a.focused {
  background: var(--accent-light);
  text-decoration: none;
}
.search-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.search-title mark { background: none; color: var(--accent); font-weight: 600; }
.search-badge {
  flex: none;
  font-size: 0.72rem;
  color: var(--text-dim);
  background: var(--bg-soft);
  border: 1px solid var(--border);
  padding: 1px 8px;
  border-radius: 10px;
}
.search-empty { padding: 14px; font-size: 0.85rem; color: var(--text-dim); text-align: center; }

/* 表格下方的补充说明 */
.table-note { font-size: 0.85rem; color: var(--text-dim); margin-top: -6px; }

/* ===== 博客 ===== */
.post-item {
  position: relative;
  border-bottom: 1px solid var(--border);
  padding: 4px 0 24px 18px;
  margin-bottom: 24px;
  transition: padding-left .2s;
}
.post-item::before {
  content: '';
  position: absolute;
  left: 0; top: 6px; bottom: 26px;
  width: 3px; border-radius: 2px;
  background: var(--border);
  transition: background .2s;
}
.post-item:hover::before { background: var(--gradient-brand); }
.post-item:hover { padding-left: 22px; }
.post-item:last-child { border-bottom: none; margin-bottom: 0; }
.post-item-link { position: absolute; inset: 0; z-index: 1; }
.post-item h2 a, .post-item .post-more { position: relative; z-index: 2; }
.post-meta {
  display: flex; align-items: center; gap: 12px;
  font-size: 0.82rem; color: var(--text-dim);
  margin-bottom: 8px;
}
.post-cat {
  font-size: 0.72rem; font-weight: 700;
  background: var(--accent-light);
  color: var(--accent-dark);
  padding: 2px 10px; border-radius: 999px;
}
.content .post-item h2 {
  margin: 0 0 8px; padding: 0; border: none;
  font-size: 1.35rem; font-weight: 700;
}
.post-item h2 a { color: var(--text); }
.post-item h2 a:hover { color: var(--accent-dark); text-decoration: none; }
.post-item p { color: var(--text-dim); font-size: 0.92rem; margin-bottom: 8px; }
.post-more { font-size: 0.88rem; font-weight: 600; }

/* ===== Hero（首页，左文右图）===== */
.hero {
  position: relative;
  padding: 64px 24px 52px;
  overflow: hidden;
  isolation: isolate;
}
.hero::before, .hero::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  z-index: -1;
  opacity: .55;
}
.hero::before {
  width: 420px; height: 420px;
  background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
  top: -180px; left: -120px;
}
.hero::after {
  width: 380px; height: 380px;
  background: radial-gradient(circle, var(--accent-2) 0%, transparent 70%);
  top: -140px; right: -100px;
  opacity: .35;
}
.hero-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 400px;
  gap: 56px;
  align-items: center;
}
.hero-logo {
  width: 60px; height: 60px;
  margin-bottom: 20px;
  border-radius: 16px;
  display: block;
  box-shadow: var(--shadow-md);
}
.hero h1 {
  font-size: 2.5rem; font-weight: 700; margin-bottom: 10px;
  letter-spacing: -.02em;
}
.hero .tagline {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 10px;
  background: var(--gradient-brand);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.hero .desc {
  color: var(--text-dim); margin-bottom: 30px;
  font-size: 0.98rem;
}
.hero-buttons { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-art {
  width: 100%;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, .6);
  box-shadow: var(--shadow-lg);
}
.btn {
  display: inline-block;
  padding: 12px 30px;
  border-radius: 999px;
  font-size: 1rem; font-weight: 600;
  transition: transform .18s, box-shadow .18s, background .18s, color .18s, border-color .18s;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-primary {
  background: var(--gradient-brand); color: #fff;
  border: 1px solid transparent;
  box-shadow: 0 10px 24px rgba(62, 175, 124, .3);
}
.btn-primary:hover { box-shadow: 0 14px 28px rgba(62, 175, 124, .4); }
.btn-secondary {
  background: #fff; color: var(--text);
  border: 1px solid #dcdfe6;
  box-shadow: var(--shadow-sm);
}
.btn-secondary:hover { border-color: var(--accent); color: var(--accent-dark); box-shadow: var(--shadow-md); }
.hero-version { margin-top: 20px; font-size: 0.85rem; color: var(--text-dim); }

/* 段落配图（右浮动） */
.float-illustration {
  float: right;
  width: 190px;
  margin: 0 0 12px 22px;
  border-radius: 10px;
}
@media (max-width: 720px) {
  .float-illustration { float: none; display: block; margin: 0 auto 14px; }
}

/* ===== 特性三列（首页）===== */
.features {
  max-width: 1260px; margin: 0 auto;
  padding: 48px 24px 52px;
  counter-reset: feat;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.feature {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px 22px 20px;
  box-shadow: var(--shadow-sm);
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: transparent; }
.feature h2 {
  display: flex; align-items: center; gap: 12px;
  font-size: 1.05rem; font-weight: 600;
  color: var(--text);
  margin: 0 0 10px;
  border: none; padding: 0;
}
.feature h2::before {
  counter-increment: feat;
  content: counter(feat);
  flex: none;
  width: 30px; height: 30px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--gradient-brand);
  color: #fff;
  border-radius: 9px;
  font-size: 0.9rem; font-weight: 700;
}
.feature p { font-size: 0.92rem; color: var(--text-dim); }

/* ===== 内页标题区 ===== */
.page-header {
  position: relative;
  max-width: 1260px; margin: 0 auto;
  padding: 44px 24px 0;
}
.breadcrumb {
  display: flex; align-items: center; flex-wrap: wrap;
  gap: 6px;
  font-size: 0.83rem;
  color: var(--text-dim);
  margin-bottom: 4px;
}
.breadcrumb a { color: var(--text-dim); }
.breadcrumb a:hover { color: var(--accent-dark); text-decoration: none; }
.breadcrumb .sep { color: var(--border); }
.breadcrumb .current {
  color: var(--text); font-weight: 500;
  max-width: 55vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.page-header::before {
  content: '';
  position: absolute;
  top: -10px; left: 24px;
  width: 46px; height: 5px;
  border-radius: 3px;
  background: var(--gradient-brand);
}
.page-header h1 {
  font-size: 2.05rem; font-weight: 700; margin: 12px 0 8px;
  letter-spacing: -.02em;
}
.page-header .page-meta {
  color: var(--text-dim); font-size: 0.85rem;
  margin-bottom: 8px;
}
.page-header .page-meta span { margin-right: 18px; }

/* ===== 主体两栏 ===== */
.layout {
  max-width: 1260px; margin: 0 auto;
  padding: 40px 24px 64px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 48px;
}
.layout.bordered { border-top: 1px solid var(--border); }
.content { min-width: 0; }
.content > h2 {
  position: relative;
  font-size: 1.6rem; font-weight: 700;
  letter-spacing: -.01em;
  padding-bottom: 12px; margin: 52px 0 20px;
  border-bottom: 1px solid var(--border);
}
.content > h2::after {
  content: '';
  position: absolute;
  left: 0; bottom: -1px;
  width: 46px; height: 3px;
  border-radius: 2px;
  background: var(--gradient-brand);
}
.content > h2:first-child { margin-top: 0; }
.content h3 {
  font-size: 1.2rem; font-weight: 600;
  margin: 32px 0 12px;
}
.content p { margin-bottom: 14px; }
.content ul, .content ol { padding-left: 1.4em; margin-bottom: 14px; }
.content li { margin-bottom: 6px; }

/* 提示块 */
.tip, .warning {
  position: relative;
  padding: 14px 18px 14px 46px;
  background: var(--accent-light);
  border-radius: var(--radius-sm);
  margin: 18px 0;
  font-size: 0.92rem;
  box-shadow: var(--shadow-sm);
}
.tip::before, .warning::before {
  content: '✓';
  position: absolute;
  left: 16px; top: 14px;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 0.72rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.tip strong, .warning strong { display: block; margin-bottom: 4px; }
.warning { background: var(--warn-bg); }
.warning::before { content: '!'; background: var(--warn-border); }

/* 表格 */
.table-wrap {
  overflow-x: auto; margin: 16px 0 8px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
th, td {
  border: 1px solid var(--border);
  padding: 10px 14px;
  text-align: left;
}
table tr:first-child th:first-child { border-top-left-radius: var(--radius-sm); }
table tr:first-child th:last-child { border-top-right-radius: var(--radius-sm); }
th { background: var(--bg-soft); font-weight: 600; border-top: none; }
tr:first-child th, tr:first-child td { border-top: none; }
tr td:first-child, tr th:first-child { border-left: none; }
tr td:last-child, tr th:last-child { border-right: none; }
tr:last-child td { border-bottom: none; }
tbody tr:hover td, tr:nth-child(even):hover td { background: var(--accent-light); }
tr:nth-child(even) td { background: #fafbfc; }
td a { font-weight: 600; white-space: nowrap; }
.size-col { white-space: nowrap; color: var(--text-dim); }
.rec-mark { color: var(--accent-dark); font-weight: 700; margin-right: 4px; }

/* 平台小标题行 */
.platform-head {
  display: flex; align-items: center; gap: 10px;
}
.badge, .platform-head .badge {
  font-size: 0.72rem; font-weight: 700;
  background: var(--accent-light);
  color: var(--accent-dark);
  padding: 3px 11px; border-radius: 999px;
}

/* ===== 下载页平台卡片 ===== */
.dl-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px 26px 20px;
  margin-bottom: 22px;
  scroll-margin-top: 72px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .2s;
}
.dl-card:hover { box-shadow: var(--shadow-md); }
.dl-head { display: flex; align-items: flex-start; gap: 14px; }
.dl-os-icon {
  width: 32px; height: 32px; padding: 7px;
  margin-top: 3px; flex: none;
  box-sizing: border-box;
  background: var(--bg-soft);
  border-radius: 10px;
}
.dl-app-icon { width: 52px; height: 52px; border-radius: 12px; flex: none; margin-left: auto; box-shadow: var(--shadow-sm); }
.content .dl-card h2 {
  display: flex; align-items: center; gap: 10px;
  font-size: 1.25rem; font-weight: 700;
  margin: 0 0 4px; padding: 0; border: none;
}
.dl-card .badge {
  font-size: 0.72rem; font-weight: 600;
  background: var(--accent-light);
  color: var(--accent-dark);
  padding: 2px 10px; border-radius: 999px;
}
.content .dl-head-txt p { font-size: 0.88rem; color: var(--text-dim); margin: 0; }
.dl-rec {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  background: linear-gradient(135deg, var(--accent-light), rgba(59, 130, 246, .06));
  border: 1px solid rgba(62, 175, 124, 0.25);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  margin-top: 16px;
}
.dl-rec-txt { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; min-width: 0; }
.dl-rec-label {
  font-size: 0.72rem; font-weight: 700;
  color: #fff; background: var(--gradient-brand);
  padding: 2px 9px; border-radius: 999px;
  flex: none;
}
.dl-rec-txt code { word-break: break-all; }
.dl-rec-meta { font-size: 0.82rem; color: var(--text-dim); }
.dl-rec .btn { flex: none; padding: 9px 24px; font-size: 0.92rem; }
.dl-more { margin-top: 14px; }
.dl-more summary { cursor: pointer; font-size: 0.87rem; color: var(--text-light); user-select: none; font-weight: 500; }
.dl-more summary:hover { color: var(--accent-dark); }
.dl-more .table-wrap { margin: 12px 0 0; }

/* 下载页：CDN 覆盖数量较少时，其余版本直接以简洁列表展示，不再收起 */
.dl-alt-label { margin-top: 12px; font-size: 0.8rem; font-weight: 600; color: var(--text-light); }
.dl-alt-list { margin-top: 6px; display: flex; flex-direction: column; gap: 6px; }
.dl-alt {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 9px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-soft);
}
.dl-alt-txt { display: flex; align-items: baseline; flex-wrap: wrap; gap: 3px 8px; min-width: 0; font-size: 0.83rem; color: var(--text-dim); }
.dl-alt-txt code { font-size: 0.8rem; color: var(--text); word-break: break-all; }
.dl-alt-link { font-size: 0.83rem; font-weight: 600; color: var(--accent-dark); white-space: nowrap; flex: none; }
.dl-alt-link:hover { text-decoration: underline; }

/* 同一平台内的多个客户端子块 */
.dl-sub { border-top: 1px dashed var(--border); margin-top: 18px; padding-top: 16px; scroll-margin-top: 72px; }
.dl-sub-head { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.dl-sub-name { font-size: 1.05rem; font-weight: 700; }
.dl-sub-tag { font-size: 0.8rem; color: var(--text-dim); }

/* ===== 侧边栏 ===== */
.sidebar { font-size: 0.88rem; }
.sidebar-box {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
}
.sidebar-box h3 {
  font-size: 0.95rem; font-weight: 700;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}
.sidebar-box ul { list-style: none; }
.sidebar-box li { margin-bottom: 9px; }
.sidebar-box li a { color: var(--text); }
.sidebar-box li a:hover { color: var(--accent-dark); }
.toc { position: sticky; top: 81px; }
.toc-l2 { padding-left: 0; }
.toc-l3 { padding-left: 1.2em; font-size: 0.84rem; }
.toc-l3 a { color: var(--text-dim) !important; }
.ver-row {
  display: flex; justify-content: space-between;
  margin-bottom: 9px;
}
.ver-row .name { color: var(--text); }
.ver-row .ver { color: var(--accent-dark); font-weight: 700; font-family: monospace; }
/* ===== 平台卡片（首页）===== */
.os-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 20px 0 8px;
}
a.os-card {
  display: block;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px 18px 20px;
  text-align: center;
  color: inherit;
  box-shadow: var(--shadow-sm);
  transition: transform .2s, border-color .2s, box-shadow .2s;
}
a.os-card:hover {
  text-decoration: none;
  border-color: transparent;
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.os-card .os-ico {
  width: 44px; height: 44px; padding: 10px;
  margin: 0 auto 14px;
  display: block;
  box-sizing: border-box;
  background: var(--bg-soft);
  border-radius: 50%;
  object-fit: contain;
  transition: background .2s;
}
a.os-card:hover .os-ico { background: var(--accent-light); }
.os-card h3 { font-size: 1.05rem; margin: 0 0 4px; font-weight: 600; }
.os-card .client { color: var(--text-dim); font-size: 0.85rem; }
.os-card .ver { font-family: monospace; color: var(--accent-dark); font-size: 0.85rem; }
.os-card .go {
  display: inline-block;
  margin-top: 12px;
  font-size: 0.88rem;
  color: var(--accent);
  font-weight: 500;
}

/* ===== 教程卡片（教程中心）===== */
.guide-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin: 20px 0 8px;
}
a.guide-card {
  display: block;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px 24px;
  color: inherit;
  box-shadow: var(--shadow-sm);
  transition: transform .2s, border-color .2s, box-shadow .2s;
}
a.guide-card:hover {
  text-decoration: none;
  border-color: transparent;
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.guide-card .g-tag {
  display: inline-block;
  font-size: 0.72rem; font-weight: 700;
  background: var(--accent-light);
  color: var(--accent-dark);
  padding: 3px 11px; border-radius: 999px;
  margin-bottom: 12px;
}
.guide-card h3 { font-size: 1.08rem; font-weight: 700; margin-bottom: 6px; }
.guide-card p { font-size: 0.88rem; color: var(--text-dim); margin: 0; }
.guide-card .g-go {
  display: inline-block;
  margin-top: 12px;
  font-size: 0.86rem;
  color: var(--accent-dark);
  font-weight: 600;
}
@media (max-width: 720px) {
  .guide-grid { grid-template-columns: 1fr; }
}

/* ===== 标题内嵌图标 ===== */
.h-icon {
  width: 26px; height: 26px; padding: 5px;
  box-sizing: border-box;
  vertical-align: -6px;
  margin-right: 8px;
  background: var(--bg-soft);
  border-radius: 8px;
  object-fit: contain;
}

/* ===== 客户端介绍块 ===== */
.client-intro {
  display: flex; align-items: center; gap: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin: 16px 0;
  background: linear-gradient(135deg, var(--bg-soft), #fff);
  box-shadow: var(--shadow-sm);
}
.client-intro img {
  width: 56px; height: 56px;
  border-radius: 14px;
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}
.client-intro .t { font-weight: 700; margin-bottom: 2px; }
.client-intro .d { font-size: 0.88rem; color: var(--text-dim); }

/* ===== 文章结尾下载引导卡片 ===== */
.post-cta {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  margin: 36px 0 12px;
  padding: 26px 28px;
  border-radius: var(--radius-md);
  background: var(--gradient-brand);
  color: #fff;
  box-shadow: 0 16px 32px rgba(62, 175, 124, .3);
}
.post-cta .post-cta-text .t { font-size: 1.15rem; font-weight: 700; margin-bottom: 4px; }
.post-cta .post-cta-text .d { font-size: 0.88rem; opacity: 0.92; }
.post-cta .btn { flex: none; }
.post-cta .btn-primary { background: #fff; color: var(--accent-dark); box-shadow: none; }
.post-cta .btn-primary:hover { background: #fff; box-shadow: 0 10px 20px rgba(0, 0, 0, .18); }

/* ===== 右下角悬浮下载引导 ===== */
.dl-float {
  position: fixed; right: 22px; bottom: 22px;
  z-index: 60;
  display: flex; align-items: center; gap: 12px;
  max-width: min(420px, calc(100vw - 44px));
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 8px 20px 8px 8px;
  box-shadow: var(--shadow-lg);
  animation: dlFloatIn .35s ease;
}
.dl-float img { width: 38px; height: 38px; border-radius: 10px; flex: none; box-shadow: var(--shadow-sm); }
.dl-float-text { line-height: 1.3; min-width: 0; flex: 1 1 auto; }
.dl-float-text .t { font-size: 0.85rem; font-weight: 700; color: var(--text); }
.dl-float-text .d { font-size: 0.75rem; color: var(--text-dim); }
.dl-float .btn { flex: none; padding: 7px 18px; font-size: 0.82rem; }
.dl-float-close {
  position: absolute; top: -7px; right: -7px;
  width: 22px; height: 22px; border-radius: 50%;
  background: #fff; border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.65rem; color: var(--text-dim); cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: color .18s, border-color .18s;
}
.dl-float-close:hover { color: var(--accent-dark); border-color: var(--accent); }
@keyframes dlFloatIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }

/* ===== 三步流程图 ===== */
.steps-flow {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: stretch;
  gap: 10px;
  margin: 20px 0 24px;
}
.step-box {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: #fff;
  padding: 20px 14px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform .2s, box-shadow .2s;
}
.step-box:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.step-box .num {
  width: 34px; height: 34px;
  margin: 0 auto 10px;
  border-radius: 50%;
  background: var(--gradient-brand);
  color: #fff;
  display: grid; place-items: center;
  font-weight: 700; font-size: 1rem;
  box-shadow: 0 6px 14px rgba(62, 175, 124, .3);
}
.step-box .t { font-weight: 700; font-size: 0.95rem; margin-bottom: 4px; }
.step-box .d { font-size: 0.82rem; color: var(--text-dim); line-height: 1.5; }
.step-arrow {
  align-self: center;
  color: #c3ccd4;
  font-size: 1.5rem;
  font-weight: 300;
}

@media (max-width: 720px) {
  .os-grid { grid-template-columns: repeat(2, 1fr); }

  /* 三步流程图移动端改为紧凑时间线，避免大卡片占满整屏 */
  .steps-flow { grid-template-columns: 1fr; gap: 0; }
  .step-arrow { display: none; }
  .step-box {
    display: flex; align-items: flex-start; text-align: left;
    gap: 14px;
    background: none; border: none; box-shadow: none; border-radius: 0;
    padding: 0 4px 22px 4px;
    position: relative;
  }
  .step-box:hover { transform: none; box-shadow: none; }
  .step-box:last-child { padding-bottom: 2px; }
  .step-box::before {
    content: '';
    position: absolute;
    left: 18px; top: 32px; bottom: 0;
    width: 2px;
    background: var(--border);
  }
  .step-box:last-child::before { display: none; }
  .step-box .num { width: 30px; height: 30px; margin: 0; flex: none; font-size: 0.85rem; }
  .step-box .t { font-size: 0.95rem; margin-bottom: 2px; }
  .step-box .d { font-size: 0.82rem; }
}

/* ===== 页脚 ===== */
footer {
  border-top: 1px solid var(--border);
  background: #f8fafb;
  color: var(--text-dim);
  font-size: 0.88rem;
  position: relative;
}
footer::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--gradient-brand);
}
.footer-inner {
  max-width: 1260px;
  margin: 0 auto;
  padding: 48px 24px 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 36px;
}
.footer-brand .brand { margin-bottom: 12px; }
.footer-brand p {
  max-width: 300px;
  font-size: 0.85rem;
  line-height: 1.7;
}
.footer-grid h4 {
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 700;
  margin-bottom: 14px;
}
.footer-grid ul { list-style: none; }
.footer-grid li { margin-bottom: 10px; }
.footer-grid li a { color: var(--text-dim); transition: color .15s, padding-left .15s; }
.footer-grid li a:hover { color: var(--accent-dark); text-decoration: none; padding-left: 3px; }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 18px 24px 22px;
  text-align: center;
  font-size: 0.82rem;
}
.footer-bottom p { margin-bottom: 4px; }
@media (max-width: 720px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .footer-brand { grid-column: 1 / -1; }
}

/* ===== 响应式 ===== */
@media (max-width: 960px) {
  .layout { grid-template-columns: 1fr; }
  .toc { display: none; }
  .features { grid-template-columns: 1fr; padding-bottom: 24px; gap: 14px; }
  .hero-inner { grid-template-columns: 1fr; gap: 32px; }
  .hero-art { max-width: 480px; justify-self: center; }
}
/* 中等宽度桌面端：部分语言（日语、英语等）导航文案较长，
   先收紧间距、隐藏语言按钮的文字标签，为导航项腾出空间，避免文字换行 */
@media (max-width: 1240px) and (min-width: 721px) {
  .navbar-inner { padding: 0 16px; }
  .navbar-right { gap: 8px; }
  .nav-menu { gap: 0; }
  .nav-menu a { padding: 7px 8px; font-size: 0.85rem; }
  .nav-search input { width: 110px; }
  .nav-search input:focus { width: 190px; }
  .lang-btn-text, .lang-caret { display: none; }
  .lang-btn { padding: 7px 8px; }
}
@media (max-width: 720px) {
  .nav-menu {
    display: none;
    position: absolute; top: 57px; left: 0; right: 0;
    max-height: calc(100vh - 57px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    background: #fff;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    flex-direction: column; align-items: stretch;
    padding: 16px 24px; gap: 14px;
  }
  .nav-menu a { padding: 10px 12px; }
  .nav-menu.open { display: flex; }
  body.nav-open { overflow: hidden; }
  .nav-toggle { display: block; }
  .navbar-inner { padding: 0 16px; }
  .brand-full { display: none; }
  .brand-short { display: inline; }
  .navbar-right { gap: 8px; }
  .lang-btn { padding: 7px 9px; gap: 0; }
  .lang-btn-text, .lang-caret { display: none; }
  .lang-menu { right: -8px; }
  .nav-search input { width: 36px; padding-left: 34px; background-position: 10px center; }
  .nav-search input::placeholder { color: transparent; }
  .nav-search input:focus { width: 140px; }
  .nav-search input:focus::placeholder { color: var(--text-dim); }
  .search-results {
    position: fixed;
    top: 65px; left: 12px; right: 12px;
    width: auto; max-height: 70vh;
  }
  .dl-card { padding: 18px 16px 14px; }
  .dl-app-icon { display: none; }
  .dl-rec { flex-direction: column; align-items: stretch; }
  .dl-rec .btn { text-align: center; }
  .hero-buttons .btn { flex: 1 1 auto; text-align: center; }
  .nav-dropdown {
    height: auto;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .dropdown-menu {
    display: block;
    position: static;
    transform: none;
    min-width: 0;
    border: none;
    box-shadow: none;
    padding: 0 0 0 12px;
    display: flex; flex-direction: column; gap: 10px;
  }
  .dropdown-menu a { padding: 6px 8px; font-size: 0.88rem; color: var(--text-dim); }
  .dropdown-menu a:hover { background: none; }
  .hero { padding: 40px 20px 36px; }
  .hero::before, .hero::after { width: 220px; height: 220px; }
  .hero h1 { font-size: 1.9rem; }
  .hero-art { display: none; }
}

/* ===== 超小屏幕（手机竖屏）===== */
@media (max-width: 480px) {
  .page-header { padding: 32px 16px 0; }
  .page-header::before { left: 16px; }
  .page-header h1 { font-size: 1.55rem; }
  .layout { padding: 28px 16px 48px; gap: 32px; }
  .features { padding: 32px 16px 36px; }
  .content > h2 { font-size: 1.32rem; margin: 36px 0 16px; }
  .content h3 { font-size: 1.08rem; margin: 26px 0 10px; }
  .os-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .os-card { padding: 18px 12px 16px; }
  .steps-flow { gap: 14px; }
  th, td { padding: 8px 10px; font-size: 0.85rem; }
  .dl-card { padding: 16px 14px 12px; }
  .dl-head { gap: 10px; }
  .client-intro { flex-wrap: wrap; }
  .post-cta { flex-direction: column; align-items: stretch; text-align: center; padding: 22px 20px; }
  .post-cta .btn { text-align: center; }
  .dl-float { left: 12px; right: 12px; bottom: 12px; padding: 8px 14px 8px 8px; }
  .dl-float-text .d { display: none; }
  .dl-float .btn { padding: 7px 14px; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .footer-brand { grid-column: auto; }
  .hero .tagline { font-size: 1.08rem; }
  .hero-buttons { flex-direction: column; align-items: stretch; }
  .brand { font-size: 1.02rem; }
}
