/* ============================================================
   同花顺财经 · 官方网站风格（第 1 套：经典稳重蓝）
   ============================================================ */
:root {
  --blue-900: #00266b;
  --blue-700: #0041a8;
  --blue-600: #0052d9;
  --blue-500: #2e73e5;
  --blue-100: #e8f0fe;
  --blue-50: #f4f8ff;
  --rise-red: #d92e2e;
  --fall-green: #0a9f5c;
  --ink-900: #1a2233;
  --ink-700: #3a4459;
  --ink-500: #6b7688;
  --ink-300: #a7afbd;
  --border-c: #e3e8f0;
  --bg-page: #ffffff;
  --radius-l: 16px;
  --radius-m: 10px;
  --radius-s: 6px;
  --shadow-card: 0 4px 20px rgba(20, 40, 90, 0.08);
  --shadow-hover: 0 10px 30px rgba(20, 40, 90, 0.14);
  --max-width: 1180px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  color: var(--ink-900);
  background: var(--bg-page);
  line-height: 1.7;
  font-size: 15px;
}

img, svg { display: block; }

a { color: inherit; text-decoration: none; }

ul, ol { list-style: none; }

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }

/* ---------------- 顶部导航 ---------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid var(--border-c);
  backdrop-filter: saturate(180%) blur(6px);
}

.nav-wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 700;
  color: var(--blue-700);
}

.brand svg { width: 32px; height: 32px; }

.brand .brand-sub {
  font-size: 12px;
  font-weight: 400;
  color: var(--ink-500);
  margin-left: 4px;
}

.main-nav { display: flex; align-items: center; gap: 4px; }

.main-nav a {
  position: relative;
  padding: 10px 18px;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-700);
  border-radius: var(--radius-s);
  transition: color 0.2s ease, background 0.2s ease;
}

.main-nav a:hover { color: var(--blue-600); background: var(--blue-50); }

.main-nav a.active {
  color: var(--blue-700);
  background: var(--blue-100);
  font-weight: 700;
}

.main-nav a.active::after {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 4px;
  height: 2px;
  background: var(--blue-600);
  border-radius: 2px;
}

.nav-cta {
  background: var(--blue-600);
  color: #fff !important;
  padding: 10px 22px !important;
  border-radius: 999px !important;
  font-weight: 700 !important;
}

.nav-cta:hover { background: var(--blue-700) !important; }

/* ---------------- Hero ---------------- */
.hero {
  background: linear-gradient(180deg, var(--blue-50) 0%, #ffffff 100%);
  padding: 72px 0 56px;
  border-bottom: 1px solid var(--border-c);
}

.hero-inner { text-align: center; max-width: 780px; margin: 0 auto; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--blue-100);
  color: var(--blue-700);
  font-size: 13px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: 40px;
  font-weight: 800;
  color: var(--ink-900);
  line-height: 1.35;
  margin-bottom: 18px;
}

.hero h1 span { color: var(--blue-600); }

.hero p.lead {
  font-size: 17px;
  color: var(--ink-500);
  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 30px;
  font-size: 15px;
  font-weight: 700;
  border-radius: var(--radius-m);
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  font-family: inherit;
}

.btn:disabled { cursor: not-allowed; opacity: 0.75; }

.btn-primary {
  background: var(--blue-600);
  color: #fff;
  box-shadow: 0 8px 20px rgba(0, 82, 217, 0.28);
}

.btn-primary:hover:not(:disabled) { background: var(--blue-700); transform: translateY(-2px); }

.btn-outline {
  background: #fff;
  color: var(--blue-700);
  border: 1.5px solid var(--blue-600);
}

.btn-outline:hover:not(:disabled) { background: var(--blue-50); transform: translateY(-2px); }

.btn-ghost {
  background: var(--ink-900);
  color: #fff;
}

.btn-ghost:hover:not(:disabled) { background: #000; transform: translateY(-2px); }

.btn-sm { padding: 10px 20px; font-size: 14px; }
.btn-block { width: 100%; }

.hero-meta {
  display: flex;
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--ink-500);
}

.hero-meta span { display: inline-flex; align-items: center; gap: 6px; }
.hero-meta svg { width: 15px; height: 15px; color: var(--blue-600); }

/* ---------------- Section 通用 ---------------- */
section { padding: 64px 0; }
section.alt { background: var(--blue-50); }

.section-head { text-align: center; max-width: 640px; margin: 0 auto 44px; }
.section-tag {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  color: var(--blue-600);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.section-head h2 { font-size: 30px; font-weight: 800; margin-bottom: 12px; }
.section-head p { color: var(--ink-500); font-size: 15px; }

/* ---------------- 特性卡片 ---------------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background: #fff;
  border: 1px solid var(--border-c);
  border-radius: var(--radius-l);
  padding: 28px 24px;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.feature-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-4px); }

.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--blue-100);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.feature-icon svg { width: 26px; height: 26px; color: var(--blue-600); }

.feature-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 10px; }
.feature-card p { color: var(--ink-500); font-size: 14px; }

/* ---------------- 多平台下载 ---------------- */
.platform-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.platform-card {
  background: #fff;
  border: 1px solid var(--border-c);
  border-radius: var(--radius-l);
  padding: 26px 20px;
  text-align: center;
  box-shadow: var(--shadow-card);
}

.platform-card .p-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 14px;
  color: var(--blue-700);
}

.platform-card h3 { font-size: 16px; margin-bottom: 6px; }
.platform-card .p-desc { font-size: 13px; color: var(--ink-500); margin-bottom: 16px; min-height: 40px; }

/* ---------------- 功能详解 ---------------- */
.detail-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  padding: 40px 0;
  border-bottom: 1px solid var(--border-c);
}
.detail-row:last-child { border-bottom: none; }
.detail-row.reverse .detail-text { order: 2; }
.detail-row.reverse .detail-visual { order: 1; }

.detail-text .num {
  display: inline-flex;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  background: var(--blue-600);
  color: #fff;
  border-radius: 10px;
  font-weight: 800;
  margin-bottom: 16px;
}

.detail-text h3 { font-size: 22px; font-weight: 800; margin-bottom: 12px; }
.detail-text p { color: var(--ink-500); margin-bottom: 10px; }

.detail-visual {
  background: var(--blue-50);
  border: 1px solid var(--border-c);
  border-radius: var(--radius-l);
  padding: 24px;
  min-height: 220px;
}

.mock-bars { display: flex; align-items: flex-end; gap: 8px; height: 160px; }
.mock-bars i {
  flex: 1;
  border-radius: 4px 4px 0 0;
  display: block;
}
.mock-bars i.up { background: var(--rise-red); }
.mock-bars i.down { background: var(--fall-green); }

/* ---------------- 数据统计 ---------------- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
.stat-item .stat-num {
  font-size: 36px;
  font-weight: 800;
  color: var(--blue-700);
  margin-bottom: 6px;
}
.stat-item .stat-label { font-size: 14px; color: var(--ink-500); }

/* ---------------- 用户评价 ---------------- */
.review-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.review-card {
  background: #fff;
  border: 1px solid var(--border-c);
  border-radius: var(--radius-l);
  padding: 22px;
}
.review-stars { display: flex; gap: 3px; margin-bottom: 10px; }
.review-stars svg { width: 15px; height: 15px; color: #f5a623; }
.review-card p.review-text { color: var(--ink-700); font-size: 14px; margin-bottom: 14px; }
.review-user { display: flex; align-items: center; gap: 10px; }
.review-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--blue-100); color: var(--blue-700);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 14px;
}
.review-name { font-size: 13px; font-weight: 700; }
.review-role { font-size: 12px; color: var(--ink-300); }

/* ---------------- 对比表格 ---------------- */
.compare-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: var(--radius-l);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.compare-table th, .compare-table td {
  padding: 16px 18px;
  border-bottom: 1px solid var(--border-c);
  font-size: 14px;
  text-align: center;
}
.compare-table th { background: var(--blue-50); font-size: 14px; color: var(--ink-700); }
.compare-table td:first-child, .compare-table th:first-child { text-align: left; color: var(--ink-700); font-weight: 600; }
.compare-table .col-ths { background: var(--blue-100); font-weight: 700; color: var(--blue-700); }
.compare-table tr:last-child td { border-bottom: none; }
.tick { color: var(--fall-green); font-weight: 800; }
.cross { color: var(--ink-300); font-weight: 800; }

/* ---------------- FAQ ---------------- */
.faq-list { max-width: 760px; margin: 0 auto; }
.faq-item {
  border: 1px solid var(--border-c);
  border-radius: var(--radius-m);
  margin-bottom: 12px;
  overflow: hidden;
  background: #fff;
}
.faq-item input { display: none; }
.faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  cursor: pointer;
  font-weight: 700;
  font-size: 15px;
}
.faq-q .arrow { width: 18px; height: 18px; color: var(--blue-600); transition: transform 0.2s ease; flex-shrink: 0; }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
  padding: 0 20px;
  color: var(--ink-500);
  font-size: 14px;
}
.faq-item input:checked ~ .faq-a { max-height: 320px; padding: 0 20px 20px; }
.faq-item input:checked ~ .faq-q .arrow { transform: rotate(180deg); }

/* ---------------- 下载页专用 ---------------- */
.download-hero {
  background: linear-gradient(135deg, var(--blue-700), var(--blue-600));
  color: #fff;
  padding: 56px 0;
  border-radius: 0 0 var(--radius-l) var(--radius-l);
}
.download-hero .container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}
.download-hero h1 { font-size: 30px; font-weight: 800; margin-bottom: 10px; }
.download-hero p { color: rgba(255,255,255,0.85); margin-bottom: 22px; font-size: 15px; }
.dl-version-tags { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 24px; font-size: 13px; }
.dl-version-tags span { background: rgba(255,255,255,0.15); padding: 6px 12px; border-radius: 999px; }
.download-hero .btn-primary { background: #fff; color: var(--blue-700); box-shadow: 0 8px 24px rgba(0,0,0,0.2); }
.download-hero .btn-primary:hover:not(:disabled) { background: var(--blue-50); }

.win-panel {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: var(--radius-l);
  padding: 22px;
}
.win-panel ul { font-size: 13px; color: rgba(255,255,255,0.9); }
.win-panel li { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px dashed rgba(255,255,255,0.2); }
.win-panel li:last-child { border-bottom: none; }

.step-list { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; counter-reset: step; }
.step-item { text-align: center; position: relative; }
.step-item .step-circle {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--blue-600); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; margin: 0 auto 12px; font-size: 16px;
}
.step-item h4 { font-size: 14px; margin-bottom: 6px; }
.step-item p { font-size: 12.5px; color: var(--ink-500); }

.req-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius-l); overflow: hidden; box-shadow: var(--shadow-card); }
.req-table th, .req-table td { padding: 14px 18px; border-bottom: 1px solid var(--border-c); font-size: 13.5px; }
.req-table th { background: var(--blue-50); text-align: left; }
.req-table tr:last-child td { border-bottom: none; }

.changelog { max-width: 760px; margin: 0 auto; }
.changelog-item {
  display: grid; grid-template-columns: 140px 1fr; gap: 20px;
  padding: 18px 0; border-bottom: 1px solid var(--border-c);
}
.changelog-item:last-child { border-bottom: none; }
.changelog-ver { font-weight: 800; color: var(--blue-700); }
.changelog-date { font-size: 12.5px; color: var(--ink-300); }
.changelog-item ul { font-size: 13.5px; color: var(--ink-700); }
.changelog-item li { padding: 3px 0; position: relative; padding-left: 14px; }
.changelog-item li::before { content: "•"; color: var(--blue-600); position: absolute; left: 0; }

.security-banner {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--blue-50);
  border: 1px solid var(--border-c);
  border-radius: var(--radius-l);
  padding: 22px;
}
.security-banner svg { width: 40px; height: 40px; color: var(--blue-600); flex-shrink: 0; }
.security-banner p { font-size: 13.5px; color: var(--ink-700); }

/* ---------------- 中文页专用 ---------------- */
.article-body h2 { font-size: 22px; margin: 32px 0 14px; font-weight: 800; }
.article-body h3 { font-size: 17px; margin: 22px 0 10px; font-weight: 700; }
.article-body p { color: var(--ink-700); margin-bottom: 12px; }
.article-body ul { margin: 10px 0 16px 0; }
.article-body li { padding-left: 18px; position: relative; margin-bottom: 6px; color: var(--ink-700); }
.article-body li::before { content: "▸"; color: var(--blue-600); position: absolute; left: 0; }

.cta-banner {
  text-align: center;
  background: linear-gradient(135deg, var(--blue-700), var(--blue-600));
  color: #fff;
  border-radius: var(--radius-l);
  padding: 48px 32px;
}
.cta-banner h2 { font-size: 26px; margin-bottom: 12px; }
.cta-banner p { color: rgba(255,255,255,0.85); margin-bottom: 24px; }
.cta-banner .btn-primary { background: #fff; color: var(--blue-700); }
.cta-banner .btn-primary:hover:not(:disabled) { background: var(--blue-50); }

/* ---------------- 页脚 ---------------- */
.site-footer {
  background: var(--ink-900);
  color: rgba(255,255,255,0.7);
  padding: 48px 0 24px;
  margin-top: 40px;
}
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 32px; }
.footer-brand { color: #fff; font-size: 18px; font-weight: 700; margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
.footer-brand svg { width: 24px; height: 24px; }
.footer-desc { font-size: 13px; line-height: 1.8; }
.footer-col h4 { color: #fff; font-size: 14px; margin-bottom: 14px; }
.footer-col a { display: block; font-size: 13px; padding: 5px 0; color: rgba(255,255,255,0.65); }
.footer-col a:hover { color: #fff; }
.footer-security {
  display: flex; align-items: center; gap: 10px;
  border-top: 1px solid rgba(255,255,255,0.12);
  padding: 20px 0;
  font-size: 13px;
}
.footer-security svg { width: 18px; height: 18px; color: var(--fall-green); flex-shrink: 0; }
.footer-bottom { font-size: 12.5px; color: rgba(255,255,255,0.45); line-height: 1.8; text-align: center; padding-top: 10px; }

/* ---------------- 动画 ---------------- */
@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

/* ---------------- 响应式 ---------------- */
@media (max-width: 960px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .platform-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .review-grid { grid-template-columns: repeat(2, 1fr); }
  .detail-row { grid-template-columns: 1fr; }
  .detail-row.reverse .detail-text { order: 1; }
  .detail-row.reverse .detail-visual { order: 2; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .step-list { grid-template-columns: repeat(2, 1fr); }
  .download-hero .container { grid-template-columns: 1fr; }
  .main-nav { display: none; }
}

@media (max-width: 600px) {
  .hero h1 { font-size: 28px; }
  .feature-grid, .platform-grid, .stats-grid, .review-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .step-list { grid-template-columns: 1fr; }
}
