:root {
  --brand: #059669;
  --brand-dark: #047857;
  --text: #1F2937;
  --text-light: #6B7280;
  --bg: #F8FAFC;
  --card: #FFFFFF;
  --border: #E5E7EB;
  --radius: 14px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background: var(--bg); color: var(--text);
  line-height: 1.6; font-size: 15px;
}
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
.container { max-width: 860px; margin: 0 auto; padding: 0 20px; }

/* ===== 顶栏 ===== */
.topbar {
  background: #fff; border-bottom: 1px solid var(--border);
  padding: 12px 0; position: sticky; top: 0; z-index: 10;
}
.topbar .container { display: flex; align-items: center; gap: 10px; }
.topbar .logo { width: 30px; height: 30px; border-radius: 8px; background: linear-gradient(135deg, #059669, #34D399); display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; font-size: 16px; flex-shrink: 0; }
.topbar .brand { font-weight: 700; font-size: 16px; }
.topbar .brand small { color: var(--text-light); font-weight: 400; margin-left: 6px; }

/* ===== Hero ===== */
.hero {
  background: linear-gradient(135deg, #059669 0%, #047857 55%, #065F46 100%);
  color: #fff; padding: 44px 0 40px;
}
.hero h1 { font-size: 26px; font-weight: 700; margin-bottom: 8px; }
.hero p { color: rgba(255,255,255,.88); font-size: 15px; margin-bottom: 22px; }
.search {
  display: flex; align-items: center; background: #fff; border-radius: 12px;
  padding: 12px 16px; max-width: 520px; box-shadow: 0 4px 16px rgba(0,0,0,.12);
}
.search input {
  flex: 1; border: none; outline: none; font-size: 15px; color: var(--text);
  background: transparent;
}
.search .icon { color: var(--text-light); margin-right: 10px; font-size: 16px; }
.search .clear { display: none; cursor: pointer; color: var(--text-light); padding: 0 4px; }

/* ===== 区块标题 ===== */
.section { padding: 32px 0; }
.section-title { font-size: 20px; font-weight: 700; margin-bottom: 6px; display: flex; align-items: center; gap: 8px; }
.section-sub { color: var(--text-light); font-size: 14px; margin-bottom: 18px; }

/* ===== 快速开始步骤卡片 ===== */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.step-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 18px 16px; position: relative; transition: all .15s;
}
.step-card:hover { border-color: var(--brand); box-shadow: 0 4px 14px rgba(5,150,105,.12); transform: translateY(-2px); }
.step-num {
  width: 28px; height: 28px; border-radius: 50%; background: var(--brand);
  color: #fff; font-weight: 700; font-size: 14px; display: flex; align-items: center; justify-content: center;
  margin-bottom: 10px;
}
.step-card h3 { font-size: 15px; margin-bottom: 4px; }
.step-card p { font-size: 13px; color: var(--text-light); }

/* ===== 概念卡片 ===== */
.concepts { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.concept-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 18px 16px; cursor: pointer; transition: all .15s;
}
.concept-card:hover { border-color: var(--brand); }
.concept-card .emoji { font-size: 26px; margin-bottom: 8px; }
.concept-card h3 { font-size: 15px; margin-bottom: 4px; }
.concept-card p { font-size: 13px; color: var(--text-light); }

/* ===== 使用指南（左导航 + 内容）===== */
.guide-wrap { display: flex; gap: 24px; align-items: flex-start; }
.guide-nav {
  position: sticky; top: 70px; width: 200px; flex-shrink: 0;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 12px; font-size: 14px;
}
.guide-nav a { display: block; padding: 8px 10px; border-radius: 8px; color: var(--text-light); }
.guide-nav a:hover { background: #F0FDF4; color: var(--brand); text-decoration: none; }
.guide-nav a.active { background: #F0FDF4; color: var(--brand); font-weight: 600; }
.guide-content { flex: 1; min-width: 0; }
/* Tab 切换：默认只显示当前激活文章 */
.article {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px 24px; margin-bottom: 16px; display: none;
}
.article.active { display: block; }
.article h3 { font-size: 17px; margin-bottom: 12px; color: var(--brand-dark); }
.article ol, .article ul { padding-left: 20px; margin: 8px 0; }
.article li { margin-bottom: 8px; }
.article p { margin-bottom: 10px; }
.article .note {
  background: #F0FDF4; border-left: 3px solid var(--brand); border-radius: 6px;
  padding: 10px 14px; font-size: 14px; margin: 10px 0;
}
.article .warn {
  background: #FFFBEB; border-left: 3px solid #F59E0B; border-radius: 6px;
  padding: 10px 14px; font-size: 14px; margin: 10px 0;
}
.article code { background: #F3F4F6; padding: 2px 6px; border-radius: 4px; font-size: 13px; color: #DB2777; }

/* ===== FAQ ===== */
.faq-item {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  margin-bottom: 10px; overflow: hidden;
}
.faq-q {
  width: 100%; text-align: left; background: none; border: none; cursor: pointer;
  padding: 16px 18px; font-size: 15px; font-weight: 600; color: var(--text);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.faq-q .q-mark { color: var(--brand); margin-right: 8px; font-weight: 700; }
.faq-q .arrow { color: var(--text-light); transition: transform .2s; flex-shrink: 0; }
.faq-item.open .arrow { transform: rotate(180deg); }
.faq-a { display: none; padding: 0 18px 16px; font-size: 14px; color: #374151; }
.faq-item.open .faq-a { display: block; }
.faq-item.hidden { display: none; }

/* ===== 页脚 ===== */
.footer { text-align: center; color: var(--text-light); font-size: 13px; padding: 30px 0 40px; }
.footer .wx { color: var(--brand); font-weight: 600; }
.no-result { text-align: center; color: var(--text-light); padding: 30px 0; display: none; }

/* ===== 响应式（手机）===== */
@media (max-width: 720px) {
  .hero h1 { font-size: 22px; }
  .guide-wrap { flex-direction: column; }
  .guide-nav { position: sticky; top: 0; z-index: 20; width: 100%; display: flex; flex-wrap: wrap; gap: 6px; border: none; background: #F8FAFC; padding: 10px 0; margin: -6px 0 10px; box-shadow: 0 2px 6px rgba(0,0,0,.04); }
  .guide-nav a { background: var(--card); border: 1px solid var(--border); font-size: 13px; padding: 6px 12px; }
  .steps { grid-template-columns: 1fr 1fr; }
  .concepts { grid-template-columns: 1fr 1fr; }
  .article { padding: 18px 16px; }
}

/* 回到顶部浮动按钮 */
#backTop {
  position: fixed; right: 18px; bottom: 30px; z-index: 99;
  width: 44px; height: 44px; border-radius: 50%;
  border: none; background: var(--brand); color: #fff;
  font-size: 20px; cursor: pointer;
  box-shadow: 0 4px 14px rgba(5, 150, 105, .35);
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: all .25s ease;
}
#backTop.show { opacity: 1; visibility: visible; transform: translateY(0); }

/* v=4 工作文件夹：下载按钮 + FAQ 迷你区 */
.download-box {
  background: #F9FAFB;
  border: 1px dashed #D1D5DB;
  border-radius: 10px;
  padding: 12px 16px;
  margin: 12px 0;
  text-align: center;
}
.btn-download {
  background: #059669;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 10px 22px;
  font-size: 15px;
  cursor: pointer;
  margin-top: 6px;
}
.btn-download:hover { opacity: .9; }
.faq-mini { margin-top: 14px; }
.faq-mini p { margin: 8px 0; font-size: 14px; }
