:root {
  --primary: #4a8c6f;
  --primary-light: #e8f5ee;
  --primary-dark: #2d6b4f;
  --accent: #5ba3d9;
  --accent-light: #e3f2fd;
  --text: #2c3e50;
  --text-light: #5a6c7d;
  --bg: #f7f9fb;
  --card: #ffffff;
  --border: #e2e8f0;
  --shadow: 0 2px 12px rgba(0,0,0,0.06);
  --radius: 10px;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 15px;
}

.top-bar {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: #fff;
  padding: 0;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  box-shadow: 0 2px 16px rgba(0,0,0,0.15);
}
.top-bar-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
}
.top-bar .logo {
  font-size: 20px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: #fff;
}
.top-bar .logo .icon { font-size: 26px; }
.top-bar nav a {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  margin-left: 20px;
  font-size: 14px;
  transition: color 0.2s;
}
.top-bar nav a:hover,
.top-bar nav a.active { color: #fff; font-weight: 600; }

.page-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 24px 40px;
  display: flex;
  gap: 28px;
}

.sidebar {
  width: 260px;
  flex-shrink: 0;
  position: sticky;
  top: 80px;
  max-height: calc(100vh - 100px);
  overflow-y: auto;
  scrollbar-width: thin;
}
.sidebar::-webkit-scrollbar { width: 4px; }
.sidebar::-webkit-scrollbar-thumb { background: #ccc; border-radius: 4px; }
.sidebar .toc {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px 0;
  border: 1px solid var(--border);
}
.toc-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--primary-dark);
  padding: 0 20px 12px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 8px;
}
.toc a {
  display: block;
  padding: 6px 20px;
  color: var(--text-light);
  text-decoration: none;
  font-size: 13px;
  transition: all 0.15s;
  border-left: 3px solid transparent;
}
.toc a.truncate-title {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 200px; /* 大约12个汉字宽度 */
}
.toc a:hover { color: var(--primary); background: var(--primary-light); }
.toc a.level-2 { padding-left: 36px; font-size: 12.5px; }
.toc a.level-3 { padding-left: 50px; font-size: 12px; }
.toc a.active { color: var(--primary); border-left-color: var(--primary); font-weight: 600; }

.main-content {
  flex: 1;
  min-width: 0;
}

.hero {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--accent) 100%);
  color: #fff;
  border-radius: 16px;
  padding: 56px 48px;
  margin-bottom: 32px;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "\2744";
  position: absolute;
  right: 40px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 140px;
  opacity: 0.12;
}
.hero h1 { font-size: 36px; margin-bottom: 12px; font-weight: 800; }
.hero .subtitle { font-size: 18px; opacity: 0.9; margin-bottom: 24px; }
.hero .desc { font-size: 15px; opacity: 0.8; max-width: 600px; line-height: 1.8; }
.hero .cta-btn {
  display: inline-block;
  margin-top: 24px;
  padding: 12px 32px;
  background: #fff;
  color: var(--primary-dark);
  border-radius: 8px;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
}
.hero .cta-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,0.2); }

.hero-actions {
  display: flex;
  gap: 12px;
  margin-top: 24px;
  flex-wrap: wrap;
}
.hero-actions .cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.cta-qq {
  background: #fff3cd;
  color: #856404;
  border: 1px solid #ffeaa7;
}
.cta-qq:hover {
  background: #ffeaa7;
  color: #856404;
}
.hero-badge {
  margin-top: 16px;
  font-size: 13px;
  opacity: 0.85;
}

/* 免费测试横幅 */
.trial-banner {
  background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
  border-radius: var(--radius);
  padding: 28px 36px;
  margin-bottom: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  border: 1px solid #a5d6a7;
}
.trial-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 20px;
  flex-wrap: wrap;
}
.trial-text h2 {
  font-size: 20px;
  color: #2d6b4f;
  margin-bottom: 6px;
}
.trial-text p {
  font-size: 14px;
  color: #33691e;
  margin: 0;
}
.trial-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 28px;
  background: linear-gradient(135deg, #4a8c6f, #2d6b4f);
  color: #fff;
  border-radius: 8px;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
  white-space: nowrap;
}
.trial-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(74,140,111,0.35);
}

/* 让 page-full 也享受居中 + 内边距 */
.page-full {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 24px 40px;
}

.highlights {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 36px;
}
.highlight-card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
  border: 1px solid var(--border);
  transition: transform 0.2s, box-shadow 0.2s;
}
.highlight-card:hover { transform: translateY(-3px); box-shadow: 0 6px 24px rgba(0,0,0,0.1); }
.highlight-card .icon { font-size: 32px; margin-bottom: 12px; }
.highlight-card h3 { font-size: 16px; margin-bottom: 8px; color: var(--primary-dark); }
.highlight-card p { font-size: 13px; color: var(--text-light); }

.section {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 36px 40px;
  margin-bottom: 28px;
  border: 1px solid var(--border);
}
.section h1 {
  font-size: 24px;
  color: var(--primary-dark);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--primary-light);
}
.section h2 {
  font-size: 22px;
  color: var(--primary-dark);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--primary-light);
  display: flex;
  align-items: center;
  gap: 10px;
}
.section h2 .num {
  background: var(--primary);
  color: #fff;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  flex-shrink: 0;
}
.section h3 {
  font-size: 17px;
  color: var(--text);
  margin: 24px 0 12px;
  padding-left: 12px;
  border-left: 3px solid var(--accent);
}
.section h4 {
  font-size: 15px;
  color: var(--text);
  margin: 16px 0 8px;
}
.section p { margin-bottom: 12px; }
.section ul, .section ol {
  margin: 8px 0 16px 20px;
}
.section li { margin-bottom: 6px; }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin: 16px 0;
}
.feature-card {
  background: var(--bg);
  border-radius: 8px;
  padding: 16px 20px;
  border: 1px solid var(--border);
}
.feature-card h4 {
  margin: 0 0 6px;
  font-size: 14px;
  color: var(--primary-dark);
}
.feature-card p {
  margin: 0;
  font-size: 13px;
  color: var(--text-light);
}

.step {
  display: flex;
  gap: 14px;
  margin: 14px 0;
  align-items: flex-start;
}
.step-num {
  background: var(--accent);
  color: #fff;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  flex-shrink: 0;
  margin-top: 2px;
}
.step-content { flex: 1; }
.step-content strong { color: var(--primary-dark); }

.tip {
  background: var(--primary-light);
  border-left: 4px solid var(--primary);
  padding: 12px 16px;
  border-radius: 0 8px 8px 0;
  margin: 12px 0;
  font-size: 13px;
}
.tip.blue {
  background: var(--accent-light);
  border-left-color: var(--accent);
}
.tip.orange {
  background: #fff8e1;
  border-left-color: #f0a500;
}

.info-table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0;
  font-size: 13px;
}
.info-table th {
  background: var(--primary-light);
  color: var(--primary-dark);
  padding: 8px 12px;
  text-align: left;
  font-weight: 600;
  border: 1px solid var(--border);
}
.info-table td {
  padding: 8px 12px;
  border: 1px solid var(--border);
  color: var(--text);
}
.info-table tr:nth-child(even) td { background: #fafbfc; }

.mock-ui {
  background: #f0f4f8;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px;
  margin: 16px 0;
  font-size: 13px;
}
.mock-ui .mock-title {
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 10px;
  font-size: 14px;
}
.mock-sidebar {
  display: flex;
  gap: 16px;
}
.mock-sidebar .sidebar-mock {
  width: 180px;
  background: #fff;
  border-radius: 6px;
  padding: 12px;
  border: 1px solid #e0e4e8;
}
.mock-sidebar .sidebar-mock .menu-item {
  padding: 5px 8px;
  margin: 2px 0;
  border-radius: 4px;
  font-size: 12px;
  color: var(--text-light);
}
.mock-sidebar .sidebar-mock .menu-item.active {
  background: var(--primary-light);
  color: var(--primary-dark);
  font-weight: 600;
}
.mock-sidebar .content-mock {
  flex: 1;
  background: #fff;
  border-radius: 6px;
  padding: 16px;
  border: 1px solid #e0e4e8;
}
.mock-sidebar .content-mock .mock-row {
  display: flex;
  gap: 10px;
  padding: 6px 0;
  border-bottom: 1px dashed #eee;
  font-size: 12px;
  color: var(--text-light);
}
.mock-btn {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 4px;
  font-size: 11px;
  margin: 2px;
}
.mock-btn.primary { background: var(--primary); color: #fff; }
.mock-btn.outline { border: 1px solid var(--primary); color: var(--primary); }
.mock-btn.danger { background: #e74c3c; color: #fff; }

.footer {
  background: var(--card);
  border-top: 1px solid var(--border);
  padding: 32px 24px;
  text-align: center;
  color: var(--text-light);
  font-size: 13px;
}
.footer .footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.footer a {
  color: var(--primary);
  text-decoration: none;
}
.footer a:hover { text-decoration: underline; }
.footer .footer-links {
  margin-bottom: 12px;
}
.footer .footer-links a {
  margin: 0 12px;
}
.footer .friend-links {
  margin-bottom: 12px;
  font-size: 12px;
}
.footer .friend-label {
  color: var(--text-light);
  margin-right: 4px;
}
.footer .friend-links a {
  margin: 0 8px;
  font-size: 12px;
}

/* QQ 浮动按钮 */
.qq-float {
  position: fixed;
  right: 20px;
  bottom: 80px;
  z-index: 99;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.qq-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, #4a8c6f, #2d6b4f);
  color: #fff;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(74,140,111,0.35);
  transition: transform 0.25s, box-shadow 0.25s, background 0.25s;
  text-decoration: none;
  font-size: 10px;
  gap: 2px;
  padding: 0;
}
.qq-btn span {
  font-size: 10px;
  line-height: 1;
}
.qq-btn:hover {
  transform: translateY(-3px) scale(1.08);
  box-shadow: 0 8px 28px rgba(74,140,111,0.45);
  background: linear-gradient(135deg, #5ba87e, #3a8b5f);
}
.qq-btn.back-top {
  background: linear-gradient(135deg, #5ba3d9, #3a7cc0);
  box-shadow: 0 4px 16px rgba(91,163,217,0.35);
}
.qq-btn.back-top:hover {
  background: linear-gradient(135deg, #6db5e8, #4a8dd0);
  box-shadow: 0 8px 28px rgba(91,163,217,0.45);
}

.qq-float {
  position: fixed;
  right: 20px;
  bottom: 80px;
  z-index: 99;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.qq-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, #4a8c6f, #2d6b4f);
  color: #fff;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(74,140,111,0.35);
  transition: transform 0.25s, box-shadow 0.25s, background 0.25s;
  text-decoration: none;
  font-size: 10px;
  gap: 2px;
  padding: 0;
}
.qq-btn span {
  font-size: 10px;
  line-height: 1;
}
.qq-btn:hover {
  transform: translateY(-3px) scale(1.08);
  box-shadow: 0 8px 28px rgba(74,140,111,0.45);
  background: linear-gradient(135deg, #5ba87e, #3a8b5f);
}
.qq-btn.back-top {
  background: linear-gradient(135deg, #5ba3d9, #3a7cc0);
  box-shadow: 0 4px 16px rgba(91,163,217,0.35);
}
.qq-btn.back-top:hover {
  background: linear-gradient(135deg, #6db5e8, #4a8dd0);
  box-shadow: 0 8px 28px rgba(91,163,217,0.45);
}

.channel-card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px 32px;
  margin-bottom: 24px;
  border: 1px solid var(--border);
}
.channel-card h2 {
  font-size: 20px;
  color: var(--primary-dark);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--primary-light);
  display: flex;
  align-items: center;
  gap: 8px;
}
.channel-card .channel-icon {
  font-size: 22px;
}
.channel-articles {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.article-item {
  padding: 12px 16px;
  background: var(--bg);
  border-radius: 8px;
  border: 1px solid var(--border);
  transition: transform 0.15s, box-shadow 0.15s;
}
.article-item:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow);
}
.article-item h3 {
  font-size: 15px;
  margin: 0 0 4px;
}
.article-item h3 a {
  color: var(--primary-dark);
  text-decoration: none;
  font-weight: 600;
}
.article-item h3 a:hover {
  color: var(--primary);
}
.article-item .article-summary {
  font-size: 13px;
  color: var(--text-light);
  margin: 0;
  line-height: 1.5;
}
.channel-more {
  margin-top: 16px;
  text-align: right;
}
.channel-more a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
  font-size: 14px;
}
.channel-more a:hover {
  text-decoration: underline;
}

.article-card-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-bottom: 28px;
}
.article-card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px 24px;
  border: 1px solid var(--border);
  transition: transform 0.15s, box-shadow 0.15s;
}
.article-card:hover {
  transform: translateX(4px);
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}
.article-card h3 {
  font-size: 17px;
  margin: 0 0 8px;
}
.article-card h3 a {
  color: var(--primary-dark);
  text-decoration: none;
  font-weight: 700;
}
.article-card h3 a:hover {
  color: var(--primary);
}
.article-card .article-summary {
  font-size: 13px;
  color: var(--text-light);
  margin: 0 0 10px;
  line-height: 1.6;
}
.article-card .read-more {
  font-size: 13px;
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
}
.article-card .read-more:hover {
  text-decoration: underline;
}

.channel-desc {
  color: var(--text-light);
  font-size: 14px;
  margin-bottom: 12px;
  line-height: 1.7;
}

.not-found-page {
  text-align: center;
  padding: 80px 20px;
}
.not-found-code {
  font-size: 120px;
  font-weight: 800;
  color: var(--primary);
  opacity: 0.2;
  line-height: 1;
  margin-bottom: 12px;
}
.not-found-page h1 {
  font-size: 28px;
  color: var(--text);
  margin-bottom: 12px;
}
.not-found-desc {
  font-size: 15px;
  color: var(--text-light);
  margin-bottom: 28px;
}
.not-found-btn {
  display: inline-block;
  padding: 12px 32px;
  background: var(--primary);
  color: #fff;
  border-radius: 8px;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
}
.not-found-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(74,140,111,0.3);
}

.faq-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.faq-list li {
  margin-bottom: 12px;
  padding: 16px 20px;
  background: var(--bg);
  border-radius: 8px;
  border: 1px solid var(--border);
  transition: transform 0.15s, box-shadow 0.15s;
}
.faq-list li:hover { transform: translateX(4px); box-shadow: var(--shadow); }
.faq-list a {
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  font-size: 15px;
}
.faq-list a:hover { color: var(--primary); }
.faq-list .faq-desc {
  color: var(--text-light);
  font-size: 13px;
  margin-top: 4px;
  font-weight: 400;
}

.chapter-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.chapter-list li {
  margin-bottom: 16px;
  padding: 20px 24px;
  background: var(--bg);
  border-radius: 8px;
  border: 1px solid var(--border);
  transition: transform 0.15s, box-shadow 0.15s;
}
.chapter-list li:hover { transform: translateX(4px); box-shadow: var(--shadow); }
.chapter-list a {
  text-decoration: none;
  color: var(--primary-dark);
  font-weight: 700;
  font-size: 17px;
}
.chapter-list a:hover { color: var(--primary); }
.chapter-list .ch-desc {
  color: var(--text-light);
  font-size: 13px;
  margin-top: 6px;
  font-weight: 400;
}

.faq-article h1 {
  font-size: 26px;
  color: var(--primary-dark);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--primary-light);
}
.faq-article p {
  margin-bottom: 14px;
  line-height: 1.9;
}
.faq-article h2 {
  font-size: 18px;
  color: var(--primary-dark);
  margin: 28px 0 12px;
  padding-left: 12px;
  border-left: 3px solid var(--accent);
}
.faq-article ul {
  margin: 8px 0 16px 20px;
}
.faq-article li {
  margin-bottom: 8px;
  line-height: 1.8;
}

.breadcrumb {
  font-size: 13px;
  color: var(--text-light);
  margin-bottom: 20px;
}
.breadcrumb a {
  color: var(--primary);
  text-decoration: none;
}
.breadcrumb a:hover { text-decoration: underline; }

.page-full {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 24px 40px;
}

@media (max-width: 900px) {
  .sidebar { display: none; }
  .page-wrap { padding: 70px 16px 30px; }
  .hero { padding: 36px 24px; }
  .hero h1 { font-size: 26px; }
  .section { padding: 24px 20px; }
  .highlights { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr; }
  .page-full { padding: 70px 16px 30px; }
}


.mock-ui .mock-chart {
  display: flex;
  gap: 12px;
  margin: 10px 0;
}
.mock-ui .mock-chart-item {
  flex: 1;
  padding: 10px;
  border-radius: 6px;
  text-align: center;
}
.mock-ui .mock-stat-row {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
}
.mock-ui .mock-stat-card {
  flex: 1;
  padding: 10px;
  border-radius: 6px;
  text-align: center;
}
.mock-sidebar .content-mock .mock-sub-title {
  font-weight: 600;
  font-size: 12px;
  color: #2d6b4f;
  margin: 10px 0 6px;
}
.mock-sidebar .content-mock .mock-drag-area {
  margin-top: 10px;
  padding: 10px;
  background: #fafbfc;
  border-radius: 6px;
  border: 1px dashed #ccc;
}
@media (max-width: 900px) {
  .mock-sidebar {
    flex-direction: column;
  }
  .mock-sidebar .sidebar-mock {
    width: 100%;
  }
}
