/* ============================================================
   TG群组频道教程站样式 v1.0 - Purple #7C3AED
   ============================================================ */

:root {
  --primary: #7C3AED;
  --primary-dark: #5B21B6;
  --primary-light: #A78BFA;
  --primary-soft: #f5f3ff;
  --bg: #faf9f6;
  --bg-soft: #ffffff;
  --card: #ffffff;
  --text: #1c1917;
  --text-sub: #78716c;
  --border: #e7e5e4;
  --radius: 12px;
  --shadow: 0 2px 12px rgba(0,0,0,.04);
}

* { margin:0; padding:0; box-sizing:border-box; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  background:var(--bg);
  color:var(--text);
  line-height:1.7;
  -webkit-font-smoothing:antialiased;
}
a { color:var(--primary); text-decoration:none; }
a:hover { color:var(--primary-dark); }
img { max-width:100%; height:auto; }
.container { max-width:1200px; margin:0 auto; padding:0 20px; }

/* ===== Header ===== */
header {
  background:var(--card);
  border-bottom:1px solid var(--border);
  position:sticky;
  top:0;
  z-index:100;
  box-shadow:0 1px 8px rgba(0,0,0,.03);
}
.header-inner {
  display:flex;
  align-items:center;
  justify-content:space-between;
  height:64px;
}
.logo {
  display:flex;
  align-items:center;
  gap:10px;
  font-size:20px;
  font-weight:700;
  color:var(--text);
}
.logo-icon {
  width:36px;
  height:36px;
  background:linear-gradient(135deg, #A78BFA, #7C3AED);
  border-radius:10px;
  display:flex;
  align-items:center;
  justify-content:center;
  color:#fff;
  font-weight:800;
  font-size:15px;
}
header nav { display:flex; gap:6px; }
header nav a {
  padding:8px 14px;
  border-radius:8px;
  font-size:14px;
  color:var(--text-sub);
  font-weight:500;
  transition:.2s;
}
header nav a:hover,
header nav a.active {
  background:var(--primary-soft);
  color:var(--primary);
}
.header-btn {
  padding:8px 18px;
  background:var(--primary);
  color:#fff;
  border-radius:8px;
  font-size:14px;
  font-weight:600;
  transition:.2s;
}
.header-btn:hover { background:var(--primary-dark); color:#fff; }

/* ===== Hero ===== */
.hero {
  background:linear-gradient(135deg, #f5f3ff 0%, #ffffff 50%, #ede9fe 100%);
  color:var(--text);
  padding:60px 0;
  border-bottom:1px solid var(--border);
}
.hero-inner { display:flex; align-items:center; gap:40px; }
.hero-badge {
  display:inline-block;
  background:#ede9fe;
  color:var(--primary-dark);
  padding:4px 14px;
  border-radius:20px;
  font-size:13px;
  font-weight:600;
  margin-bottom:16px;
  border:1px solid #c4b5fd;
}
.hero h1 { font-size:38px; font-weight:800; line-height:1.3; margin-bottom:16px; color:var(--text); }
.hero h1 span { color:var(--primary); }
.hero p { font-size:16px; color:var(--text-sub); margin-bottom:28px; max-width:520px; line-height:1.8; }
.hero-btns { display:flex; gap:12px; margin-bottom:32px; flex-wrap:wrap; }
.btn-primary {
  display:inline-flex; align-items:center; gap:8px;
  padding:14px 28px; background:var(--primary); color:#fff;
  border-radius:10px; font-weight:700; font-size:15px; transition:.2s;
  box-shadow:0 4px 16px rgba(124,58,237,.15);
}
.btn-primary:hover { transform:translateY(-2px); box-shadow:0 6px 20px rgba(124,58,237,.25); color:#fff; background:var(--primary-dark); }
.btn-secondary {
  display:inline-flex; align-items:center; gap:8px;
  padding:14px 28px; background:#fff; color:var(--text);
  border-radius:10px; font-weight:600; font-size:15px;
  border:1px solid var(--border); transition:.2s;
}
.btn-secondary:hover { background:var(--bg); color:var(--text); border-color:#d6d3d1; }
.hero-stats { display:flex; gap:32px; }
.stat-num { font-size:28px; font-weight:800; color:var(--primary); }
.stat-label { font-size:13px; color:var(--text-sub); }

/* ===== Section ===== */
.section { padding:60px 0; }
.section-header { text-align:center; margin-bottom:40px; }
.section-tag {
  display:inline-block; background:var(--primary-soft); color:var(--primary);
  padding:4px 14px; border-radius:20px; font-size:13px; font-weight:600; margin-bottom:12px;
}
.section-header h2 { font-size:28px; font-weight:800; margin-bottom:10px; color:var(--text); }
.section-sub { color:var(--text-sub); font-size:15px; }

/* ===== Cards ===== */
.cards-grid { display:grid; grid-template-columns:repeat(auto-fill, minmax(280px, 1fr)); gap:20px; }
.articles-grid { display:grid; grid-template-columns:repeat(3, 1fr); gap:20px; }
.articles-grid > a { display:block; }
.card {
  background:var(--card); border-radius:var(--radius); padding:28px;
  box-shadow:var(--shadow); border:1px solid var(--border); transition:.25s;
}
.card:hover { transform:translateY(-4px); box-shadow:0 8px 24px rgba(0,0,0,.06); border-color:var(--primary-light); }
.card-icon:has(img) { width:100%; height:160px; background:none; border-radius:12px; overflow:hidden; padding:0; }
.card-icon img { width:100%; height:100%; object-fit:cover; display:block; }
.card-icon { width:48px; height:48px; border-radius:12px; display:flex; align-items:center; justify-content:center; font-size:20px; font-weight:700; margin-bottom:16px; }
.card-icon.purple { background:#ede9fe; color:#7C3AED; }
.card-icon.violet { background:#c4b5fd; color:#5B21B6; }
.card-icon.lilac { background:#ddd6fe; color:#6D28D9; }
.card-icon.mauve { background:#ede9fe; color:#7C3AED; }
.card-icon.plum { background:#f5f3ff; color:#5B21B6; }

/* ===== Steps ===== */
.steps-wrap { display:grid; grid-template-columns:repeat(auto-fill, minmax(240px, 1fr)); gap:20px; }
.step { background:var(--card); border-radius:var(--radius); padding:28px; box-shadow:var(--shadow); border:1px solid var(--border); text-align:center; }
.step-num {
  width:40px; height:40px; background:linear-gradient(135deg, #A78BFA, #7C3AED);
  color:#fff; border-radius:50%; display:flex; align-items:center; justify-content:center;
  font-weight:800; margin:0 auto 16px; font-size:18px;
}
.step h4 { font-size:16px; font-weight:700; margin-bottom:8px; color:var(--text); }
.step p { font-size:14px; color:var(--text-sub); }

/* ===== FAQ ===== */
.faq-list { max-width:800px; margin:0 auto; display:flex; flex-direction:column; gap:10px; }
.faq-item { background:var(--card); border-radius:var(--radius); box-shadow:var(--shadow); border:1px solid var(--border); overflow:hidden; }
.faq-q {
  padding:18px 24px; font-weight:700; font-size:15px; cursor:pointer;
  display:flex; justify-content:space-between; align-items:center; transition:.2s; color:var(--text);
}
.faq-q:hover { background:var(--bg-soft); }
.faq-q:after { content:'+'; font-size:20px; color:var(--text-sub); }
.faq-item.open .faq-q:after { content:'\2212'; }
.faq-a { padding:0 24px 18px; font-size:14px; color:var(--text-sub); line-height:1.8; display:none; }
.faq-item.open .faq-a { display:block; }

/* ===== Breadcrumb ===== */
.breadcrumb { padding:16px 0; font-size:13px; color:var(--text-sub); }
.breadcrumb a { color:var(--primary); }

/* ===== CTA ===== */
.cta {
  background:var(--primary-soft); color:var(--text); padding:56px 0; text-align:center;
  border-top:1px solid #c4b5fd; border-bottom:1px solid #c4b5fd;
}
.cta h2 { font-size:28px; font-weight:800; margin-bottom:12px; color:var(--text); }
.cta p { font-size:16px; color:var(--text-sub); margin-bottom:28px; }
.cta-btns { display:flex; gap:12px; justify-content:center; flex-wrap:wrap; }
.btn-white {
  padding:14px 28px; background:var(--primary); color:#fff; border-radius:10px;
  font-weight:700; font-size:15px; transition:.2s; box-shadow:0 4px 16px rgba(124,58,237,.15);
}
.btn-white:hover { transform:translateY(-2px); background:var(--primary-dark); color:#fff; }
.btn-outline-white {
  padding:14px 28px; border:2px solid var(--primary); color:var(--primary);
  border-radius:10px; font-weight:600; font-size:15px; transition:.2s; background:transparent;
}
.btn-outline-white:hover { background:var(--primary-soft); color:var(--primary-dark); }

/* ===== Footer ===== */
footer { background:#f5f5f4; color:#57534e; padding:56px 0 24px; border-top:1px solid var(--border); }
.footer-grid { display:grid; grid-template-columns:1.5fr 1fr 1fr 1fr; gap:32px; margin-bottom:40px; }
.footer-brand h3 { color:var(--text); font-size:18px; font-weight:700; margin-bottom:12px; }
.footer-brand p { font-size:13px; line-height:1.8; }
.footer-col h4 { color:var(--text); font-size:14px; font-weight:700; margin-bottom:14px; }
.footer-col ul { list-style:none; }
.footer-col li { margin-bottom:8px; }
.footer-col a { font-size:13px; color:#78716c; transition:.2s; }
.footer-col a:hover { color:var(--primary); }
.footer-bottom { border-top:1px solid var(--border); padding-top:20px; display:flex; justify-content:space-between; font-size:12px; flex-wrap:wrap; gap:8px; }

/* ===== Disclaimer ===== */
.disclaimer {
  background:var(--primary-soft); border:1px solid #c4b5fd; border-radius:var(--radius);
  padding:16px 20px; margin:24px 0; font-size:13px; color:#5B21B6; line-height:1.7;
}

/* ===== Download Section ===== */
.dl-section {
  background:linear-gradient(160deg, #f5f3ff 0%, #ffffff 50%, #ede9fe 100%);
  padding:64px 0; position:relative; overflow:hidden;
  border-top:1px solid #c4b5fd; border-bottom:1px solid #c4b5fd;
}
.dl-section .section-header { text-align:center; margin-bottom:40px; position:relative; z-index:1; }
.dl-section .section-header h2 { color:var(--text); font-size:32px; font-weight:800; }
.dl-section .section-tag { background:#ede9fe; color:var(--primary-dark); border:1px solid #c4b5fd; }
.dl-section .section-sub { color:var(--text-sub); font-size:15px; margin-top:8px; }
.dl-rating { display:flex; align-items:center; justify-content:center; gap:8px; margin-top:12px; }
.dl-rating .stars { color:#f59e0b; font-size:18px; letter-spacing:2px; }
.dl-rating .rating-text { color:var(--text-sub); font-size:13px; }
.dl-grid { display:grid; grid-template-columns:repeat(3, 1fr); gap:24px; position:relative; z-index:1; }
.dl-platform-card {
  background:#fff; border:1px solid var(--border); border-radius:16px; padding:32px 28px;
  text-align:center; transition:all .3s ease; position:relative; overflow:hidden;
  box-shadow:0 2px 12px rgba(0,0,0,.04);
}
.dl-platform-card:hover { transform:translateY(-6px); box-shadow:0 12px 40px rgba(0,0,0,.08); border-color:var(--primary-light); }
.dl-platform-icon { width:72px; height:72px; border-radius:18px; display:flex; align-items:center; justify-content:center; margin:0 auto 20px; font-size:32px; font-weight:800; color:#fff; }
.dl-platform-card h3 { color:var(--text); font-size:20px; font-weight:700; margin-bottom:6px; }
.dl-platform-card .dl-sub { color:var(--text-sub); font-size:13px; margin-bottom:20px; }
.dl-platform-meta { display:flex; justify-content:center; gap:20px; margin-bottom:24px; font-size:13px; }
.dl-platform-meta span { display:flex; flex-direction:column; align-items:center; gap:2px; }
.dl-platform-meta .meta-label { color:#a8a29e; font-size:11px; }
.dl-platform-meta .meta-val { color:var(--text); font-weight:600; }
.dl-platform-card .dl-btn {
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  width:100%; padding:16px 24px; border-radius:12px; font-weight:700; font-size:16px;
  color:#fff; background:linear-gradient(135deg, var(--primary), var(--primary-dark));
  box-shadow:0 4px 16px rgba(124,58,237,.2); transition:all .25s ease; text-decoration:none;
}
.dl-platform-card .dl-btn:hover { transform:translateY(-2px); box-shadow:0 8px 24px rgba(124,58,237,.3); color:#fff; }
.dl-badge {
  position:absolute; top:16px; right:16px; background:#ede9fe; color:var(--primary-dark);
  font-size:11px; font-weight:600; padding:4px 10px; border-radius:20px; border:1px solid #c4b5fd;
}
.dl-trust { display:flex; justify-content:center; gap:32px; margin-top:40px; flex-wrap:wrap; position:relative; z-index:1; }
.dl-trust-item { display:flex; align-items:center; gap:8px; color:var(--text-sub); font-size:14px; }
.dl-trust-item .check { color:var(--primary); font-size:18px; }

/* ===== Article DL Card ===== */
.article-dl-card {
  background:linear-gradient(135deg, #f5f3ff 0%, #ede9fe 100%);
  border:1px solid #c4b5fd; border-radius:16px; padding:36px; margin:36px 0;
  color:var(--text); display:grid; grid-template-columns:1fr auto; align-items:center; gap:24px;
  box-shadow:0 4px 20px rgba(124,58,237,.06);
}
.article-dl-card .adl-info h3 { font-size:22px; font-weight:800; margin-bottom:8px; color:var(--text); }
.article-dl-card .adl-info p { font-size:14px; color:var(--text-sub); line-height:1.7; }
.article-dl-card .adl-meta { display:flex; gap:16px; margin-top:12px; font-size:13px; color:var(--primary-dark); }
.article-dl-card .adl-btn {
  display:inline-flex; flex-direction:column; align-items:center; gap:4px;
  padding:20px 36px; background:var(--primary); color:#fff; border-radius:14px;
  font-weight:800; font-size:16px; text-decoration:none; box-shadow:0 4px 16px rgba(124,58,237,.2);
  transition:all .25s ease; white-space:nowrap;
}
.article-dl-card .adl-btn:hover { transform:translateY(-3px); box-shadow:0 8px 24px rgba(124,58,237,.3); color:#fff; background:var(--primary-dark); }
.article-dl-card .adl-btn .adl-btn-sub { font-size:11px; font-weight:500; color:rgba(255,255,255,.8); }

/* ===== Article Content ===== */
.article-content h2 { font-size:22px; font-weight:800; margin:32px 0 16px; padding-bottom:8px; border-bottom:2px solid var(--primary-soft); }
.article-content h3 { font-size:18px; font-weight:700; margin:24px 0 12px; color:var(--primary-dark); }
.article-content p { margin-bottom:16px; }
.article-content table { width:100%; border-collapse:collapse; margin:16px 0; font-size:14px; }
.article-content table th { background:var(--primary-soft); padding:10px; text-align:left; border:1px solid var(--border); font-weight:700; }
.article-content table td { padding:10px; border:1px solid var(--border); }
.article-content strong { color:var(--text); }

/* ===== Details/Summary ===== */
details summary {
  padding:18px 24px; font-weight:700; font-size:15px; cursor:pointer;
  display:flex; justify-content:space-between; align-items:center; transition:.2s; color:var(--text);
  list-style:none;
}
details summary::-webkit-details-marker { display:none; }
details summary:after { content:'+'; font-size:20px; color:var(--text-sub); }
details[open] summary:after { content:'\2212'; }
details .faq-body { padding:0 24px 18px; font-size:14px; color:var(--text-sub); line-height:1.8; }

/* ===== Responsive ===== */
@media (max-width:768px) {
  .hero-inner { flex-direction:column; text-align:center; }
  .hero h1 { font-size:26px; }
  .hero-btns { justify-content:center; }
  .hero-stats { justify-content:center; }
  .dl-grid { grid-template-columns:1fr; }
  .article-dl-card { grid-template-columns:1fr; text-align:center; }
  .article-dl-card .adl-meta { justify-content:center; }
  .footer-grid { grid-template-columns:1fr 1fr; }
  header nav { display:none; }
  .cards-grid { grid-template-columns:1fr; }
  .articles-grid { grid-template-columns:repeat(2, 1fr); }
}
@media (max-width:480px) {
  .footer-grid { grid-template-columns:1fr; }
  .hero h1 { font-size:22px; }
  .section-header h2 { font-size:22px; }
  .articles-grid { grid-template-columns:1fr; }
}
.card-icon { font-size:28px; }
.breadcrumb { padding:8px 0 20px; font-size:13px; color:var(--text-sub); }
.breadcrumb a { color:var(--primary); }
