/* ============================================================
   公司软件下载网站 - 主样式表
   设计风格参考 JetBrains / Sublime Text 官网：专业、干净、重产品展示
   ============================================================ */

/* ---------- 设计令牌 ---------- */
:root {
  /* 主色：深靛蓝 + 电光蓝强调色 */
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-light: #dbeafe;
  --accent: #06b6d4;

  /* 中性色 */
  --bg: #ffffff;
  --bg-soft: #f8fafc;
  --bg-dark: #0f172a;
  --bg-dark-soft: #1e293b;
  --text: #0f172a;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --text-inverse: #f8fafc;
  --text-inverse-muted: #cbd5e1;
  --border: #e2e8f0;
  --border-dark: #334155;

  /* 状态色 */
  --success: #16a34a;
  --danger: #dc2626;
  --warning: #d97706;

  /* 尺寸 */
  --radius: 10px;
  --radius-sm: 6px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04), 0 1px 3px rgba(15, 23, 42, 0.06);
  --shadow: 0 4px 6px -1px rgba(15, 23, 42, 0.08), 0 2px 4px -2px rgba(15, 23, 42, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(15, 23, 42, 0.08), 0 4px 6px -4px rgba(15, 23, 42, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(15, 23, 42, 0.1), 0 8px 10px -6px rgba(15, 23, 42, 0.05);

  /* 布局 */
  --container: 1140px;
  --header-h: 64px;

  /* 字体：系统字体栈（不依赖外部字体服务，加载更快更稳定） */
  --font-sans: "Segoe UI", "Microsoft YaHei", "PingFang SC", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: "Cascadia Mono", "Consolas", "Courier New", monospace;
}

/* ---------- 基础重置 ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: var(--primary); text-decoration: none; transition: color .15s; }
a:hover { color: var(--primary-dark); }

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

h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 0.5em; font-weight: 700; letter-spacing: -0.01em; }
h1 { font-size: clamp(1.75rem, 4vw, 2.75rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }

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

.section { padding: 72px 0; }
.section-sm { padding: 48px 0; }
.section-soft { background: var(--bg-soft); }
.section-dark { background: var(--bg-dark); color: var(--text-inverse); }

.section-head { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.section-head .eyebrow {
  display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--primary); margin-bottom: 12px;
}
.section-head p { color: var(--text-muted); font-size: 16px; margin: 0; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 20px; border-radius: var(--radius-sm);
  border: 1px solid transparent; cursor: pointer;
  font-size: 14px; font-weight: 600; font-family: inherit;
  background: var(--bg-soft); color: var(--text);
  text-decoration: none; transition: all .15s; white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.btn:active { transform: translateY(0); }

.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); color: #fff; }

.btn-dark { background: var(--bg-dark); color: #fff; }
.btn-dark:hover { background: var(--bg-dark-soft); color: #fff; }

.btn-light { background: rgba(255,255,255,0.1); color: var(--text-inverse); border-color: rgba(255,255,255,0.2); }
.btn-light:hover { background: rgba(255,255,255,0.15); color: #fff; }

.btn-outline { background: transparent; border-color: var(--border); color: var(--text); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }

.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #b91c1c; color: #fff; }

.btn-lg { padding: 13px 28px; font-size: 15px; }
.btn-sm { padding: 6px 12px; font-size: 13px; }
.btn-block { display: flex; width: 100%; }

/* ---------- 顶部导航 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: var(--header-h);
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 700; font-size: 17px; }
.brand:hover { color: var(--text); }
.brand .logo {
  width: 32px; height: 32px; border-radius: 8px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 800; font-size: 16px;
}
.brand .logo svg { width: 18px; height: 18px; }

.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav a {
  color: var(--text-muted); font-size: 14px; font-weight: 500;
  padding: 8px 14px; border-radius: var(--radius-sm); text-decoration: none;
  transition: all .15s;
}
.site-nav a:hover { color: var(--text); background: var(--bg-soft); }
.site-nav a.active { color: var(--primary); }

/* 导航"产品"下拉菜单 */
.nav-dropdown { position: relative; }
.nav-dropdown > a { display: inline-block; cursor: pointer; }
.nav-dropdown.active > a { color: var(--primary); }
.nav-caret { font-size: 11px; opacity: .7; }
.nav-dropdown-menu {
  position: absolute; top: 100%; left: 0; min-width: 220px;
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-sm);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
  padding: 8px; display: none; z-index: 200;
}
/* 透明桥接区，防止鼠标移向下拉菜单时因间隙丢失 hover */
.nav-dropdown-menu::before {
  content: ""; position: absolute; top: -10px; left: 0; right: 0; height: 10px;
}
.nav-dropdown:hover .nav-dropdown-menu { display: block; }
.nav-dropdown-menu a {
  display: block; padding: 8px 12px; font-size: 14px;
  color: var(--text-muted); border-radius: 6px; white-space: nowrap;
}
.nav-dropdown-menu a:hover { background: var(--bg-soft); color: var(--text); }
/* 分组 mega 菜单：多列布局，右对齐防止溢出屏幕 */
.nav-dropdown-menu.nav-mega {
  left: auto; right: 0; width: 560px; padding: 14px;
  column-count: 3; column-gap: 8px;
}
.nav-group { break-inside: avoid; margin-bottom: 10px; }
.nav-group:last-child { margin-bottom: 0; }
.nav-group-title {
  font-size: 12px; font-weight: 700; color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  padding: 5px 10px; border-radius: 6px; letter-spacing: .04em;
  margin-bottom: 6px;
}

.nav-cta { margin-left: 12px; }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--text); margin: 4px 0; transition: .2s; }

/* ---------- Hero 区 ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: 80px 0 96px;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(37, 99, 235, 0.12), transparent),
    linear-gradient(180deg, var(--bg-soft) 0%, var(--bg) 100%);
}
.hero-grid {
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center;
}
.hero-content { max-width: 560px; }
.hero .eyebrow {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px; background: var(--primary-light); color: var(--primary-dark);
  border-radius: 999px; font-size: 13px; font-weight: 600; margin-bottom: 20px;
}
.hero h1 { margin-bottom: 20px; }
.hero h1 .grad {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.hero .lead { font-size: 18px; color: var(--text-muted); margin-bottom: 32px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 32px; margin-top: 40px; padding-top: 32px; border-top: 1px solid var(--border); }
.hero-stats .stat .num { font-size: 24px; font-weight: 700; color: var(--text); }
.hero-stats .stat .lbl { font-size: 13px; color: var(--text-muted); }

/* Hero 右侧装饰：产品愿景卡 */
.hero-visual {
  position: relative;
}

/* ---------- 应用卡片网格 ---------- */
.app-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px;
}

/* ---------- 软件中心独立入口 ---------- */
.center-banner {
  display: flex; justify-content: space-between; align-items: center; gap: 32px;
  padding: 32px 36px; border-radius: var(--radius);
  background: linear-gradient(120deg, #eef4ff 0%, #f6f9ff 55%, #eefaf3 100%);
  border: 1px solid #d5e3fb;
}
.center-main { display: flex; align-items: center; gap: 24px; min-width: 0; }
.center-icon {
  flex: none; width: 84px; height: 84px; border-radius: 20px; overflow: hidden;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 40px; font-weight: 800;
  box-shadow: var(--shadow-lg);
}
.center-icon img { width: 100%; height: 100%; object-fit: cover; }
.center-info h2 { margin: 0 0 6px; font-size: 24px; }
.center-tagline { margin: 0 0 10px; color: var(--text-muted); font-size: 15px; }
.center-points { margin: 0; padding: 0; list-style: none; }
.center-points li {
  position: relative; padding-left: 22px; margin: 4px 0;
  font-size: 14px; color: var(--text);
}
.center-points li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  color: var(--primary); font-weight: 800;
}
.center-actions {
  flex: none; display: flex; flex-direction: column; align-items: stretch; gap: 10px;
  min-width: 220px; text-align: center;
}
.center-actions .btn { justify-content: center; }
.center-meta { font-size: 13px; color: var(--text-muted); }
@media (max-width: 860px) {
  .center-banner { flex-direction: column; align-items: stretch; }
  .center-main { flex-direction: column; text-align: center; }
  .center-points li { text-align: left; }
}

.app-card {
  display: flex; flex-direction: column; padding: 28px;
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius);
  transition: all .2s; text-decoration: none; color: inherit; height: 100%;
}
.app-card:hover {
  border-color: var(--primary); box-shadow: var(--shadow-lg); transform: translateY(-2px);
  text-decoration: none; color: inherit;
}
.app-card .app-icon {
  width: 56px; height: 56px; border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 24px; font-weight: 800; margin-bottom: 16px;
}
.app-card .app-icon img { width: 100%; height: 100%; object-fit: cover; border-radius: 12px; }
.app-card h3 { margin: 0 0 4px; font-size: 18px; }
.app-card .platform-tag {
  display: inline-block; font-size: 12px; color: var(--text-muted);
  margin-bottom: 12px;
}
.app-card .desc {
  color: var(--text-muted); font-size: 14px; flex: 1; margin-bottom: 16px;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.app-card .card-foot {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 16px; border-top: 1px solid var(--border);
}
.app-card .ver { font-size: 13px; color: var(--text-muted); }
.app-card .dl-link { font-size: 14px; font-weight: 600; color: var(--primary); }

/* ---------- 分类筛选与分区 ---------- */
.category-nav {
  position: sticky; top: var(--header-h); z-index: 50;
  display: flex; flex-wrap: wrap; gap: 10px; align-items: center;
  padding: 14px 0; margin-bottom: 8px;
  background: rgba(255, 255, 255, 0.92); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.cat-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 16px; border-radius: 999px;
  border: 1px solid var(--border); background: var(--bg);
  color: var(--text-muted); font-size: 14px; font-weight: 500;
  transition: all .15s;
}
.cat-chip em {
  font-style: normal; font-size: 12px; font-weight: 600;
  color: var(--primary); background: var(--primary-light);
  border-radius: 999px; padding: 1px 8px;
}
.cat-chip:hover { border-color: var(--primary); color: var(--primary); text-decoration: none; }
.cat-chip.is-all { color: var(--text); font-weight: 600; }
.category-section { scroll-margin-top: calc(var(--header-h) + 72px); padding-top: 36px; }
.category-title {
  display: flex; align-items: baseline; gap: 12px;
  margin: 0 0 20px; padding-bottom: 12px; border-bottom: 1px solid var(--border);
}
.category-title h3 { margin: 0; font-size: 20px; }
.cat-count { font-size: 13px; color: var(--text-muted); }

/* 卡片右上角分类徽章 */
.app-card { position: relative; }
.cat-badge {
  position: absolute; top: 14px; right: 14px;
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 12px; font-weight: 600; line-height: 1;
  color: var(--primary-dark); background: var(--primary-light);
  padding: 5px 10px; border-radius: 999px;
}
/* 详情页 meta 行中的可点击分类徽章 */
.cat-badge-link { position: static; }
.cat-badge-link svg { width: 12px; height: 12px; }
.cat-badge-link:hover { background: #c7dbfc; color: var(--primary-dark); }

/* ---------- 特性区 ---------- */
.features-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.feature-card {
  padding: 28px; background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius); transition: all .2s;
}
.feature-card:hover { box-shadow: var(--shadow); }
.feature-card .icon-box {
  width: 44px; height: 44px; border-radius: 10px;
  background: var(--primary-light); color: var(--primary);
  display: flex; align-items: center; justify-content: center; margin-bottom: 16px;
}
.feature-card .icon-box svg { width: 22px; height: 22px; }
.feature-card h3 { margin: 0 0 8px; font-size: 17px; }
.feature-card p { margin: 0; color: var(--text-muted); font-size: 14px; }

/* ---------- CTA 区 ---------- */
.cta-band {
  background: linear-gradient(135deg, var(--bg-dark), var(--bg-dark-soft));
  color: #fff; border-radius: var(--radius-lg); padding: 56px 48px; text-align: center;
  position: relative; overflow: hidden;
}
.cta-band::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 80% at 50% 0%, rgba(37, 99, 235, 0.25), transparent);
}
.cta-band > * { position: relative; }
.cta-band h2 { margin-bottom: 12px; }
.cta-band p { color: var(--text-inverse-muted); margin-bottom: 28px; font-size: 16px; }
/* 深色底上的幽灵按钮：白字白边保证可读（默认 outline 是深色字，在此不可见） */
.cta-band .btn-outline { color: #fff; border-color: rgba(255, 255, 255, 0.45); }
.cta-band .btn-outline:hover { border-color: #fff; color: #fff; background: rgba(255, 255, 255, 0.08); }
.cta-band .cta-note { margin: 22px 0 0; font-size: 14px; color: var(--text-inverse-muted); }
.cta-band .cta-note a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

/* 产品页面包屑 */
.breadcrumb { display: flex; align-items: center; gap: 8px; padding-top: 18px; font-size: 13.5px; color: var(--text-muted); flex-wrap: wrap; }
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb [aria-current="page"] { color: var(--text); font-weight: 600; }

/* 产品页底部软件中心导流 */
.center-promo {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  background: linear-gradient(135deg, #eef4ff 0%, #f6f9ff 100%);
  border: 1px solid #d7e3f8; border-radius: 14px; padding: 26px 30px;
}
.center-promo-text h3 { margin: 0 0 6px; font-size: 18px; color: var(--text); }
.center-promo-text p { margin: 0; font-size: 14px; color: var(--text-muted); line-height: 1.7; }
.center-promo .btn { white-space: nowrap; flex-shrink: 0; }
@media (max-width: 720px) { .center-promo { flex-direction: column; align-items: flex-start; } }

/* 移动端引导条（仅手机 UA 渲染） */
.mobile-tip {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 999;
  display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap;
  background: #12264f; color: #fff; padding: 10px 14px; font-size: 13px;
  padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px));
}
.mobile-tip b { color: #ffd76a; }
.mobile-tip .mtip-actions { display: flex; gap: 8px; }
.mobile-tip button {
  background: rgba(255, 255, 255, 0.14); color: #fff; border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 6px; padding: 5px 10px; font-size: 12.5px;
}
.mobile-tip #mtipClose { border: none; background: transparent; font-size: 16px; line-height: 1; padding: 2px 6px; }

/* 开发与版权说明 */
.dev-note {
  background: var(--bg-soft, #f8fafc); border: 1px solid var(--border, #e2e8f0);
  border-radius: var(--radius-lg, 16px); padding: 32px 36px;
}
.dev-note h3 { margin-bottom: 12px; color: var(--text, #0f172a); }
.dev-note p { color: var(--text-muted, #475569); font-size: 15px; line-height: 1.9; margin: 0; }
.dev-note a { color: var(--primary, #2563eb); font-weight: 500; }

/* 首页 Hero 右侧愿景图 */
.hero-img {
  display: block; width: 100%; max-width: 460px; margin-left: auto;
  border-radius: 20px;
  box-shadow: 0 24px 60px -24px rgba(30, 58, 138, 0.25), 0 4px 16px -8px rgba(30, 58, 138, 0.12);
}

/* ---------- 页脚 ---------- */
.site-footer { background: var(--bg-dark); color: var(--text-inverse-muted); padding: 64px 0 32px; }
.footer-grid {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 48px; margin-bottom: 48px;
}
.footer-col h4 { color: #fff; font-size: 14px; margin-bottom: 16px; font-weight: 600; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: var(--text-inverse-muted); font-size: 14px; }
.footer-col a:hover { color: #fff; }
.footer-brand .brand { color: #fff; margin-bottom: 16px; }
.footer-brand p { font-size: 14px; max-width: 280px; }
.footer-bottom {
  padding-top: 32px; border-top: 1px solid var(--border-dark);
  display: flex; justify-content: space-between; align-items: center; font-size: 13px;
}
.footer-social { display: flex; gap: 12px; }
.footer-social a {
  width: 32px; height: 32px; border-radius: 8px;
  background: var(--bg-dark-soft); display: flex; align-items: center; justify-content: center;
  color: var(--text-inverse-muted);
}
.footer-social a:hover { background: var(--primary); color: #fff; }
.footer-social svg { width: 16px; height: 16px; }

/* ---------- 应用详情页 ---------- */
.detail-hero {
  padding: 56px 0 48px; background: var(--bg-soft);
  border-bottom: 1px solid var(--border);
}
.detail-hero-grid { display: grid; grid-template-columns: auto 380px; gap: 48px; align-items: start; }
.detail-hero .app-head { display: flex; gap: 20px; align-items: center; margin-bottom: 20px; }
.detail-hero .app-head .app-icon {
  width: 72px; height: 72px; border-radius: 16px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 32px; font-weight: 800; flex-shrink: 0;
}
.detail-hero .app-head .app-icon img { width: 100%; height: 100%; object-fit: cover; border-radius: 16px; }
.detail-hero h1 { margin: 0 0 6px; }
.detail-hero .tagline { color: var(--text-muted); margin: 0; font-size: 16px; }
.detail-hero .meta-row {
  display: flex; gap: 20px; flex-wrap: wrap; color: var(--text-muted); font-size: 14px;
}
.detail-hero .meta-row span { display: inline-flex; align-items: center; gap: 6px; }
.detail-hero .meta-row svg { width: 15px; height: 15px; }

/* 下载卡片 */
.download-card {
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px; position: sticky; top: calc(var(--header-h) + 24px);
  box-shadow: var(--shadow-sm);
}
.download-card h3 { margin: 0 0 4px; font-size: 18px; }
.download-card .ver-line { color: var(--text-muted); font-size: 14px; margin-bottom: 4px; }
.download-card .size-line { color: var(--text-muted); font-size: 13px; margin-bottom: 20px; }
.download-card .btn { margin-bottom: 16px; }
.download-card .sha-box {
  background: var(--bg-soft); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 12px; font-family: var(--font-mono); font-size: 11px; word-break: break-all;
  color: var(--text-muted); line-height: 1.5;
}
.download-card .sha-box .label {
  display: block; font-family: var(--font-sans); font-size: 12px; font-weight: 600;
  color: var(--text); margin-bottom: 6px;
}
.download-card .extra-info { font-size: 13px; color: var(--text-muted); margin-top: 12px; }
.download-card .extra-info div { margin-bottom: 4px; }

/* 右侧栏纵向排列 */
.detail-aside { display: flex; flex-direction: column; gap: 16px; }
.detail-aside .download-card { position: static; }

/* 下载安全提示模态框 */
.dl-modal {
  position: fixed; inset: 0; z-index: 9999;
  display: none; align-items: center; justify-content: center;
}
.dl-modal.show { display: flex; }
.dl-modal-backdrop {
  position: absolute; inset: 0; background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(2px);
}
.dl-modal-dialog {
  position: relative; z-index: 1; width: 480px; max-width: calc(100% - 40px);
  background: var(--bg); border-radius: var(--radius-lg); box-shadow: var(--shadow-xl);
  overflow: hidden; animation: dl-pop .2s ease-out;
}
@keyframes dl-pop { from { opacity: 0; transform: translateY(12px) scale(.97); } to { opacity: 1; transform: none; } }
.dl-modal-header {
  display: flex; align-items: center; gap: 12px; padding: 20px 24px;
  border-bottom: 1px solid var(--border);
}
.dl-modal-icon {
  width: 36px; height: 36px; border-radius: 10px;
  background: #fffbeb; color: var(--warning);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.dl-modal-header h3 { margin: 0; font-size: 16px; flex: 1; }
.dl-modal-close {
  background: none; border: 0; cursor: pointer; padding: 4px;
  color: var(--text-muted); display: flex;
}
.dl-modal-close:hover { color: var(--text); }
.dl-modal-body { padding: 20px 24px; font-size: 14px; color: var(--text-muted); line-height: 1.7; }
.dl-modal-body p { margin: 0 0 14px; }
.dl-modal-steps { display: flex; flex-direction: column; gap: 12px; }
.dl-step { display: flex; gap: 10px; align-items: flex-start; }
.dl-step-num {
  width: 22px; height: 22px; border-radius: 50%; flex-shrink: 0;
  background: var(--primary); color: #fff; font-size: 12px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.dl-step code {
  background: #f1f5f9; padding: 1px 5px; border-radius: 4px;
  font-size: 12px; font-family: var(--font-mono); color: var(--text);
}
.dl-modal-footer {
  display: flex; justify-content: flex-end; gap: 10px;
  padding: 16px 24px; background: var(--bg-soft); border-top: 1px solid var(--border);
}

/* 截图展示 */
.screenshots-section { margin-top: 48px; }
.screenshots {
  display: flex; gap: 16px; overflow-x: auto; padding: 4px 0 12px;
  scroll-snap-type: x mandatory;
}
.screenshots img {
  height: 360px; border-radius: var(--radius); border: 1px solid var(--border);
  box-shadow: var(--shadow); scroll-snap-align: start; flex-shrink: 0;
}

/* 详情内容区 */
.detail-body { display: grid; grid-template-columns: 1fr 320px; gap: 48px; align-items: start; }
.detail-main { min-width: 0; }
.detail-section { margin-bottom: 48px; }
.detail-section h2 {
  font-size: 22px; padding-bottom: 12px; border-bottom: 2px solid var(--border); margin-bottom: 20px;
}

/* 功能列表 */
.features-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; list-style: none; padding: 0; margin: 0; }
.features-list li {
  display: flex; gap: 12px; padding: 16px; background: var(--bg-soft);
  border-radius: var(--radius-sm); border: 1px solid var(--border);
}
.features-list .check {
  width: 24px; height: 24px; border-radius: 50%; background: var(--success);
  color: #fff; display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.features-list .check svg { width: 14px; height: 14px; }
.features-list .txt { font-size: 14px; }

/* 版本时间线 */
.version-list { list-style: none; padding: 0; margin: 0; position: relative; }
.version-list::before {
  content: ""; position: absolute; left: 11px; top: 8px; bottom: 8px; width: 2px; background: var(--border);
}
.version-list li { position: relative; padding: 0 0 24px 40px; }
.version-list li::before {
  content: ""; position: absolute; left: 6px; top: 6px; width: 12px; height: 12px;
  border-radius: 50%; background: var(--bg); border: 3px solid var(--primary);
}
.version-list li.current::before { background: var(--primary); }
.version-list .ver-head { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.version-list .ver-num { font-weight: 700; font-size: 16px; }
.version-list .ver-date { color: var(--text-muted); font-size: 13px; }
.version-list .ver-notes { color: var(--text-muted); font-size: 14px; white-space: pre-wrap; }
.badge-latest {
  display: inline-block; font-size: 11px; padding: 2px 8px;
  background: var(--success); color: #fff; border-radius: 999px; font-weight: 600;
}

/* ---------- 问题与建议 ---------- */
.fb-list { list-style: none; padding: 0; margin: 0 0 32px; }
.fb-item {
  border: 1px solid var(--border); border-radius: 12px;
  padding: 16px 18px; margin-bottom: 14px; background: var(--bg);
}
.fb-item-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 8px; }
.fb-nick { font-weight: 700; font-size: 14px; }
.fb-date { color: var(--text-muted); font-size: 12px; }
.fb-content { font-size: 14px; line-height: 1.7; white-space: pre-wrap; word-break: break-word; }
.fb-reply {
  margin-top: 12px; padding: 10px 14px; border-radius: 0 10px 10px 10px;
  background: var(--bg-soft); border-left: 3px solid var(--primary);
}
.fb-reply-badge {
  display: inline-block; font-size: 12px; font-weight: 700;
  color: var(--primary); margin-bottom: 4px;
}
.fb-reply-text { font-size: 14px; line-height: 1.7; white-space: pre-wrap; word-break: break-word; }
.fb-form-card {
  border: 1px solid var(--border); border-radius: 12px;
  padding: 20px 22px; background: var(--bg-soft);
}
.fb-form-card .form-row { margin-bottom: 14px; }
@media (max-width: 640px) {
  .fb-form-card .form-row[style*="grid-template-columns"] { grid-template-columns: 1fr !important; }
}

/* ---------- 空状态 ---------- */
.empty-state { text-align: center; padding: 80px 20px; color: var(--text-muted); }
.empty-state .icon-circle {
  width: 64px; height: 64px; margin: 0 auto 20px; border-radius: 50%;
  background: var(--bg-soft); display: flex; align-items: center; justify-content: center;
}
.empty-state svg { width: 28px; height: 28px; }

/* ---------- 通用页面（关于/联系/隐私） ---------- */
.page-hero { padding: 56px 0 32px; background: var(--bg-soft); border-bottom: 1px solid var(--border); }
.page-hero h1 { margin: 0 0 12px; }
.page-hero p { color: var(--text-muted); font-size: 17px; margin: 0; max-width: 640px; }
.page-body { padding: 48px 0; }
.page-body h2 { font-size: 20px; margin-top: 32px; margin-bottom: 12px; }
.page-body p, .page-body li { color: var(--text); line-height: 1.8; }
.page-body ul { padding-left: 20px; }
.page-body li { margin-bottom: 8px; }

/* 联系页卡片 */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-bottom: 48px; }
.contact-card {
  padding: 32px; background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius); text-align: center; transition: all .2s;
}
.contact-card:hover { box-shadow: var(--shadow); }
.contact-card .icon-box {
  width: 48px; height: 48px; margin: 0 auto 16px; border-radius: 12px;
  background: var(--primary-light); color: var(--primary);
  display: flex; align-items: center; justify-content: center;
}
.contact-card .icon-box svg { width: 24px; height: 24px; }
.contact-card h3 { margin: 0 0 6px; }
.contact-card p { color: var(--text-muted); margin: 0; font-size: 14px; }

/* 关于页值卡片 */
.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.value-card { padding: 28px; background: var(--bg-soft); border-radius: var(--radius); border: 1px solid var(--border); }
.value-card h3 { margin: 0 0 8px; }
.value-card p { margin: 0; color: var(--text-muted); font-size: 14px; }

/* ============================================================
   后台管理样式
   ============================================================ */
.admin-layout { display: grid; grid-template-columns: 220px 1fr; gap: 24px; padding: 32px 0; }
.admin-sidebar {
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 12px; position: sticky; top: calc(var(--header-h) + 24px); height: fit-content;
}
.admin-sidebar a {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--radius-sm);
  text-decoration: none; color: var(--text); margin-bottom: 2px; font-size: 14px; font-weight: 500;
}
.admin-sidebar a:hover { background: var(--bg-soft); }
.admin-sidebar a.active { background: var(--primary); color: #fff; }
.admin-sidebar a svg { width: 16px; height: 16px; }

.admin-topbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.admin-topbar h2 { margin: 0; }

/* 表格 */
table.data-table {
  width: 100%; border-collapse: collapse; background: var(--bg);
  border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden;
}
.data-table th, .data-table td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--border); font-size: 14px; }
.data-table th { background: var(--bg-soft); font-weight: 600; color: var(--text-muted); font-size: 13px; text-transform: uppercase; letter-spacing: 0.04em; }
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: var(--bg-soft); }

/* 表单 */
.form-card { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; max-width: 640px; }
.form-row { margin-bottom: 20px; }
.form-row label { display: block; font-weight: 600; margin-bottom: 8px; font-size: 14px; }
.form-row input[type=text], .form-row input[type=password], .form-row input[type=file],
.form-row textarea, .form-row select {
  width: 100%; padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--radius-sm);
  font-size: 14px; font-family: inherit; background: var(--bg); transition: border-color .15s, box-shadow .15s;
}
.form-row input:focus, .form-row textarea:focus, .form-row select:focus {
  outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}
.form-row textarea { min-height: 100px; resize: vertical; }
.form-row .hint { color: var(--text-muted); font-size: 12px; margin-top: 6px; }
.checkbox-row { display: flex; align-items: center; gap: 8px; }
.form-inline { display: flex; gap: 10px; align-items: center; }

.login-wrap { max-width: 380px; margin: 80px auto; }
.login-wrap .form-card { max-width: none; }
.login-wrap h2 { text-align: center; margin-bottom: 24px; }

/* 统计卡片 */
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 28px; }
.stat-card {
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px;
}
.stat-card .num { font-size: 32px; font-weight: 700; color: var(--primary); line-height: 1.2; }
.stat-card .lbl { color: var(--text-muted); font-size: 14px; margin-top: 4px; }

.chart-card { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; margin-bottom: 20px; }
.chart-card h3 { margin: 0 0 16px; font-size: 16px; }

/* ---------- 通知条 ---------- */
.flashes { margin-bottom: 20px; }
.flash {
  padding: 12px 16px; border-radius: var(--radius-sm); margin-bottom: 8px;
  border: 1px solid var(--border); background: var(--bg); font-size: 14px;
  display: flex; align-items: center; gap: 8px;
}
.flash-success { border-color: var(--success); background: #f0fdf4; color: #166534; }
.flash-danger { border-color: var(--danger); background: #fef2f2; color: #991b1b; }
.flash-warning { border-color: var(--warning); background: #fffbeb; color: #92400e; }
.flash-info { border-color: var(--primary); background: #eff6ff; color: #1e40af; }

/* ============================================================
   响应式
   ============================================================ */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { max-width: 480px; }
  .detail-hero-grid, .detail-body { grid-template-columns: 1fr; }
  .detail-aside .download-card { position: static; }
  .features-grid, .values-grid, .contact-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 720px) {
  .site-nav { display: none; }
  .site-nav.open {
    display: flex; flex-direction: column; position: absolute; top: var(--header-h); left: 0; right: 0;
    background: var(--bg); border-bottom: 1px solid var(--border); padding: 12px; gap: 4px;
  }
  .nav-toggle { display: block; }
  .nav-cta { margin-left: 0; }
  /* 移动端：产品下拉改为平铺列表 */
  .nav-dropdown { width: 100%; }
  .nav-dropdown-menu {
    display: block; position: static; min-width: 0;
    box-shadow: none; border: 0; border-left: 2px solid var(--border);
    border-radius: 0; margin: 2px 0 4px 14px; padding: 2px 0 2px 8px;
  }
  .nav-dropdown-menu.nav-mega { width: auto; column-count: 1; padding: 2px 0 2px 8px; }
  .nav-dropdown-menu::before { display: none; }
  .features-grid, .values-grid, .contact-grid, .features-list { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 16px; }
  .admin-layout { grid-template-columns: 1fr; }
  .admin-sidebar { position: static; }
  .stats-grid { grid-template-columns: 1fr; }
  .hero-stats { flex-wrap: wrap; gap: 20px; }
  .cta-band { padding: 40px 24px; }
  .join-pain-grid, .join-roles, .join-steps { grid-template-columns: 1fr; }
  .join-goal-grid, .join-two-col { grid-template-columns: 1fr; }
  .join-hero h1 { font-size: 30px; }
}

/* ===== 加入我们（招募页） ===== */
.join-hero {
  padding: 80px 0 48px; text-align: center;
  background: linear-gradient(180deg, var(--bg-alt, #f4f7fb), transparent);
}
.join-hero h1 { font-size: 42px; margin: 0 0 12px; line-height: 1.25; }
.join-hero .text-accent { color: var(--primary); }
.join-sub { color: var(--text-muted); font-size: 18px; margin: 0; }
.join-pain-answer { text-align: center; font-size: 20px; margin-top: 24px; }
.join-pain-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 24px 0 8px; }
.join-pain-card {
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px; color: var(--text-muted); line-height: 1.7; box-shadow: var(--shadow-sm);
}
.join-who p, .join-goal p { line-height: 1.9; }
.join-values { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0 4px; }
.join-value {
  padding: 8px 18px; border-radius: 999px; font-weight: 600; font-size: 14px;
  background: rgba(34, 197, 94, .1); color: #16a34a;
}
.join-goal-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 20px 0; }
.join-goal-card {
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px; box-shadow: var(--shadow-sm); line-height: 1.8;
}
.join-goal-card p { color: var(--text-muted); margin: 8px 0 0; }
.join-roles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 24px 0; }
.join-role {
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow-sm); transition: transform .2s, box-shadow .2s;
}
.join-role:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.join-role-icon {
  width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center;
  background: rgba(37, 99, 235, .1); color: var(--primary);
  font-weight: 700; font-size: 18px; margin-bottom: 14px;
}
.join-role h3 { margin: 0 0 4px; }
.join-role-tag { color: var(--primary); font-size: 13px; font-weight: 600; margin: 0 0 10px; }
.join-role p:not(.join-role-tag) { color: var(--text-muted); line-height: 1.7; margin: 0; font-size: 14.5px; }
.join-two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin: 8px 0 40px; }
.join-honest { color: var(--text-muted); line-height: 1.8; }
.join-list { list-style: none; padding-left: 0; margin: 12px 0 0; }
.join-list li { position: relative; padding-left: 26px; margin-bottom: 12px; line-height: 1.75; }
.join-list li::before { content: "\2713"; position: absolute; left: 0; top: 1px; color: #16a34a; font-weight: 700; }
.join-cta {
  text-align: center; background: var(--bg); border: 1px solid var(--border);
  border-radius: 20px; padding: 48px 32px; box-shadow: var(--shadow-sm);
}
.join-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 28px 0; text-align: left; }
.join-step {
  display: flex; gap: 12px; align-items: flex-start;
  background: var(--bg-alt, #f4f7fb); border-radius: 14px; padding: 18px;
}
.join-step span {
  flex: 0 0 32px; width: 32px; height: 32px; border-radius: 50%;
  background: var(--primary); color: #fff; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.join-step p { margin: 4px 0 0; line-height: 1.7; font-size: 14.5px; }
.join-quote { font-size: 18px; line-height: 2; margin: 8px 0 28px; }
.nav-join { font-weight: 600; }
.nav-join.active {
  padding: 6px 14px; border-radius: 999px;
  background: rgba(37, 99, 235, .1); color: var(--primary) !important;
}

/* ============================================================
   首页改版新增：信任条 / 搜索 / 场景卡 / 为什么免费 / FAQ / 需求征集
   ============================================================ */

/* ---------- 信任条 ---------- */
.trust-bar {
  display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 24px;
}
.trust-item {
  display: flex; align-items: center; gap: 7px;
  font-size: 14px; font-weight: 500; color: var(--text-muted);
}
.trust-item svg { color: var(--success); flex: none; }

/* 眉标呼吸绿点：传达「持续上新」的活力感 */
.eyebrow .live-dot {
  position: relative; width: 8px; height: 8px;
  border-radius: 50%; background: #10b981; flex: none;
}
.eyebrow .live-dot::after {
  content: ""; position: absolute; inset: -4px; border-radius: 50%;
  background: rgba(16, 185, 129, .35);
  animation: livePulse 1.6s ease-out infinite;
}
@keyframes livePulse {
  0% { transform: scale(.5); opacity: 1; }
  100% { transform: scale(1.6); opacity: 0; }
}

/* ---------- 首页搜索 ---------- */
.search-wrap { position: relative; max-width: 540px; margin: 0 auto 28px; }
.search-wrap .search-ico {
  position: absolute; left: 16px; top: 50%; transform: translateY(-50%);
  color: var(--text-light); pointer-events: none;
}
.search-wrap input {
  width: 100%; padding: 13px 18px 13px 44px;
  border: 1px solid var(--border); border-radius: 999px;
  font-size: 15px; font-family: inherit; background: var(--bg);
  outline: none; transition: border-color .15s, box-shadow .15s;
}
.search-wrap input:focus {
  border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-light);
}
.search-empty {
  display: none; text-align: center; color: var(--text-muted);
  padding: 32px 0 12px; font-size: 15px;
}

/* ---------- 场景卡（你可能正在找） ---------- */
.scene-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 32px; }
.scene-card {
  display: block; background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 26px 24px;
  transition: transform .18s, box-shadow .18s, border-color .18s;
}
.scene-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--primary-light); }
.scene-card .scene-q { font-size: 15.5px; font-weight: 600; color: var(--text); margin: 0 0 10px; line-height: 1.6; }
.scene-card .scene-a { font-size: 14px; color: var(--text-muted); line-height: 1.75; margin: 0; }
.scene-card .scene-go { display: inline-block; margin-top: 14px; font-size: 14px; font-weight: 600; color: var(--primary); }

/* ---------- 为什么免费（志愿者共建） ---------- */
.why-free { background: var(--bg-dark); color: var(--text-inverse); }
.why-free .eyebrow { color: var(--accent); }
.why-free h2 { color: var(--text-inverse); }
.why-free .section-head p { color: var(--text-inverse-muted); }
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 36px 0 28px; }
.why-card {
  background: var(--bg-dark-soft); border: 1px solid var(--border-dark);
  border-radius: var(--radius-lg); padding: 26px 24px;
}
.why-card h3 { margin: 0 0 10px; font-size: 16.5px; color: var(--text-inverse); }
.why-card p { margin: 0; font-size: 14px; line-height: 1.8; color: var(--text-inverse-muted); }
.why-promise {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px; max-width: 820px;
  margin: 0 auto 28px;
}
.why-promise .promise {
  display: flex; gap: 10px; align-items: flex-start;
  background: rgba(37, 99, 235, .14); border: 1px solid rgba(37, 99, 235, .4);
  border-radius: var(--radius); padding: 16px 18px;
  font-size: 14.5px; line-height: 1.7; color: var(--text-inverse);
}
.why-promise .promise svg { flex: none; margin-top: 3px; color: var(--accent); }
.why-cta { text-align: center; margin: 0; font-size: 15px; color: var(--text-inverse-muted); }
.why-cta a { color: var(--accent); font-weight: 600; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 780px; margin: 0 auto; }
.faq-list details {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius); margin-bottom: 12px; overflow: hidden;
}
.faq-list summary {
  cursor: pointer; padding: 16px 20px; font-weight: 600; font-size: 15px;
  list-style: none; display: flex; justify-content: space-between;
  align-items: center; gap: 12px; color: var(--text);
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; font-size: 22px; color: var(--text-light); line-height: 1; }
.faq-list details[open] summary::after { content: "\2013"; }
.faq-list .faq-a {
  padding: 0 20px 18px; color: var(--text-muted);
  font-size: 14.5px; line-height: 1.85;
}
.faq-list .faq-a a { color: var(--primary); font-weight: 500; }

/* ---------- 需求征集横条 ---------- */
.request-band {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  background: var(--bg); border: 1px dashed var(--border);
  border-left: 4px solid var(--primary); border-radius: var(--radius);
  padding: 28px 32px;
}
.request-band h3 { margin: 0 0 6px; font-size: 18px; }
.request-band p { margin: 0; color: var(--text-muted); font-size: 14.5px; line-height: 1.7; }
.request-band .btn { flex: none; }

/* ---------- 详情页技术信息折叠 ---------- */
.tech-info { margin-top: 14px; border-top: 1px dashed var(--border); padding-top: 12px; }
.tech-info summary {
  cursor: pointer; font-size: 13px; color: var(--text-muted);
  list-style: none; user-select: none;
}
.tech-info summary::-webkit-details-marker { display: none; }
.tech-info summary::before { content: "\25B8 "; }
.tech-info details[open] summary::before,
.tech-info[open] summary::before { content: "\25BE "; }
.tech-info .tech-dl { margin: 10px 0 0; font-size: 12.5px; }
.tech-info dt { color: var(--text-light); margin-top: 8px; }
.tech-info dd { margin: 2px 0 0; word-break: break-all; font-family: var(--font-mono); color: var(--text); }

/* ---------- 响应式补充 ---------- */
@media (max-width: 960px) {
  .scene-grid, .why-grid { grid-template-columns: 1fr; }
  .request-band { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 720px) {
  .why-promise { grid-template-columns: 1fr; }
  .trust-bar { gap: 8px 16px; }
}

/* ---------- 教程（内嵌在各软件详情页） ---------- */
.guide-note { margin: 32px 0 0; font-size: 14px; color: var(--text-muted); text-align: center; }
.guide-note a { color: var(--primary); font-weight: 600; }

/* 应用详情页内嵌教程：教程按 app.slug 归属，只出现在对应软件页 */
.guide-inline {
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--bg); margin-bottom: 14px; overflow: hidden;
}
.guide-inline > summary {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 16px 20px; font-size: 15.5px; font-weight: 600;
  cursor: pointer; list-style: none;
}
.guide-inline > summary::-webkit-details-marker { display: none; }
.guide-inline > summary .gi-title { line-height: 1.6; }
.guide-inline > summary .gi-hint {
  flex: none; font-size: 12.5px; font-weight: 500; color: var(--text-light);
}
.guide-inline[open] > summary { border-bottom: 1px solid var(--border); }
.guide-inline .gi-body { padding: 18px 22px 24px; }
.guide-inline .gi-body p { margin: 0 0 12px; }
.gi-lede { font-size: 15px !important; line-height: 1.9; color: var(--text-muted); }
.gi-sub {
  margin: 26px 0 12px; font-size: 15px; line-height: 1.4;
  padding-left: 10px; border-left: 3px solid var(--primary);
}
.guide-inline .faq-list { max-width: none; margin: 0; }

.guide-prep {
  list-style: none; margin: 0; padding: 16px 22px;
  background: var(--bg-soft); border-radius: var(--radius);
}
.guide-prep li { position: relative; padding-left: 18px; font-size: 14.5px; line-height: 1.8; }
.guide-prep li + li { margin-top: 8px; }
.guide-prep li::before {
  content: ""; position: absolute; left: 2px; top: 11px;
  width: 6px; height: 6px; border-radius: 50%; background: var(--primary);
}

.gi-steps { list-style: none; margin: 0; padding: 0; }
.guide-step { display: flex; gap: 16px; padding: 16px 0; border-bottom: 1px dashed var(--border); }
.guide-step:last-child { border-bottom: 0; padding-bottom: 0; }
.guide-step-num {
  flex: none; width: 30px; height: 30px; border-radius: 50%;
  background: var(--primary); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 700;
}
.guide-step-body h4 { margin: 4px 0 8px; font-size: 15.5px; }
.guide-step-body p { margin: 0 !important; font-size: 14.5px; line-height: 1.85; color: var(--text-muted); }

.guide-tips {
  list-style: none; margin: 0; padding: 16px 22px;
  background: #fffbeb; border: 1px solid #fde68a; border-radius: var(--radius);
}
.guide-tips li { font-size: 14.5px; line-height: 1.85; }
.guide-tips li + li { margin-top: 8px; }

@media (max-width: 720px) {
  .guide-inline .gi-body { padding: 16px 16px 20px; }
  .guide-inline > summary { padding: 14px 16px; font-size: 14.5px; }
}
