/* 东方财富下载落地站第1套 · 红色行情门户风 */
:root {
  --brand: #c41e3a;
  --brand-dark: #9a1830;
  --brand-deep: #7a1226;
  --up: #c41e3a;
  --down: #1b8a4a;
  --bg: #ffffff;
  --bg-soft: #f7f7f8;
  --bg-tint: #fdf5f6;
  --text: #1a1a1a;
  --text-sec: #4a4a4a;
  --text-mute: #888888;
  --line: #e6e6e8;
  --max: 1120px;
  --font: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", "Source Han Sans SC", sans-serif;
  --serif: "Source Han Serif SC", "Noto Serif SC", "Songti SC", "SimSun", serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: auto;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.75;
  color: var(--text);
  background: var(--bg);
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--brand);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

button {
  font-family: inherit;
  cursor: pointer;
}

.container {
  width: min(100% - 40px, var(--max));
  margin: 0 auto;
}

/* 顶栏 */
.site-header {
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  flex-shrink: 0;
}

.brand:hover {
  text-decoration: none;
  color: var(--brand);
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: block;
  flex-shrink: 0;
}

.brand-name {
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.04em;
}

.brand-sub {
  display: block;
  font-size: 11px;
  color: var(--text-mute);
  font-weight: 400;
  letter-spacing: 0;
  margin-top: 1px;
}

.nav {
  display: flex;
  align-items: stretch;
  gap: 4px;
}

.nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  color: var(--text-sec);
  padding: 20px 16px;
  font-size: 0.95rem;
  text-decoration: none;
  transition: color 0.15s;
}

.nav a:hover {
  color: var(--brand);
  text-decoration: none;
}

.nav a.active {
  color: var(--brand);
  font-weight: 700;
}

.nav a.active::after {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 0;
  height: 3px;
  background: var(--brand);
}

/* 行情条 */
.ticker {
  background: var(--bg-soft);
  border-bottom: 1px solid var(--line);
}

.ticker-inner {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 8px 0;
  font-size: 0.85rem;
  color: var(--text-sec);
  flex-wrap: wrap;
}

.ticker-label {
  color: var(--brand);
  font-weight: 700;
  flex-shrink: 0;
}

.ticker-items {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 22px;
}

.up {
  color: var(--up);
  font-style: normal;
  font-weight: 600;
}

.down {
  color: var(--down);
  font-style: normal;
  font-weight: 600;
}

/* Hero：左文案右K线 */
.hero {
  background:
    linear-gradient(180deg, var(--bg-tint) 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--line);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 40px;
  align-items: center;
  padding: 56px 0 64px;
}

.hero-eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--brand);
  border-left: 3px solid var(--brand);
  padding-left: 10px;
  margin-bottom: 14px;
}

.hero h1 {
  margin: 0 0 16px;
  font-family: var(--serif);
  font-size: clamp(1.55rem, 2.6vw, 2.05rem);
  line-height: 1.35;
  color: var(--text);
  font-weight: 700;
}

.hero-lead {
  margin: 0 0 28px;
  color: var(--text-sec);
  font-size: 1.02rem;
  max-width: 36em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 22px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 22px;
  font-size: 0.86rem;
  color: var(--text-mute);
}

.hero-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.hero-meta svg {
  flex-shrink: 0;
  color: var(--brand);
}

.hero-visual {
  background: #111318;
  border: 1px solid #2a2d35;
  padding: 14px 14px 10px;
}

.hero-visual-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 10px;
  color: #e8e8ea;
  font-size: 13px;
}

.hero-visual-head strong {
  font-weight: 600;
}

.hero-visual-head em {
  font-style: normal;
  color: #8a8f9a;
  font-size: 12px;
}

.kline {
  display: block;
  width: 100%;
  height: auto;
}

/* 按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  font-size: 0.95rem;
  font-weight: 600;
  border: 1px solid transparent;
  border-radius: 2px;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  line-height: 1.3;
}

.btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.btn:hover {
  text-decoration: none;
}

.btn:disabled {
  opacity: 0.75;
  cursor: wait;
}

.btn-primary {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
}

.btn-primary:hover {
  background: var(--brand-dark);
  border-color: var(--brand-dark);
  color: #fff;
}

.btn-outline {
  background: transparent;
  color: var(--brand);
  border-color: var(--brand);
}

.btn-outline:hover {
  background: var(--bg-tint);
  color: var(--brand-dark);
}

.btn-dark {
  background: var(--text);
  color: #fff;
  border-color: var(--text);
}

.btn-dark:hover {
  background: #333;
  color: #fff;
}

.btn-lg {
  padding: 14px 26px;
  font-size: 1rem;
}

.btn-block {
  width: 100%;
}

/* 区块 */
.section {
  padding: 64px 0;
}

.section-alt {
  background: var(--bg-soft);
}

.section-tint {
  background: var(--bg-tint);
}

.section-head {
  margin-bottom: 32px;
  max-width: 46em;
}

.section-head h2 {
  margin: 0 0 12px;
  font-family: var(--serif);
  font-size: clamp(1.35rem, 2.2vw, 1.7rem);
  line-height: 1.35;
  color: var(--text);
  border-left: 4px solid var(--brand);
  padding-left: 12px;
}

.section-head p {
  margin: 0;
  color: var(--text-sec);
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.panel {
  background: var(--bg);
  border: 1px solid var(--line);
  border-top: 3px solid var(--brand);
  padding: 22px 22px 20px;
}

.section-alt .panel {
  background: var(--bg);
}

.panel h3 {
  margin: 0 0 10px;
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.panel h3 svg {
  width: 20px;
  height: 20px;
  color: var(--brand);
  flex-shrink: 0;
}

.panel p {
  margin: 0;
  color: var(--text-sec);
  font-size: 0.95rem;
}

.panel + .panel-note,
.prose p {
  color: var(--text-sec);
}

/* 下载卡片 */
.dl-card {
  background: var(--bg);
  border: 1px solid var(--line);
  padding: 24px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.dl-card .os-icon {
  width: 40px;
  height: 40px;
  color: var(--brand);
}

.dl-card h3 {
  margin: 0;
  font-size: 1.05rem;
}

.dl-card p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-mute);
  flex: 1;
}

.dl-card .btn {
  margin-top: 6px;
  width: 100%;
}

.dl-featured {
  background: linear-gradient(135deg, var(--brand-deep), var(--brand));
  color: #fff;
  border: none;
  padding: 36px 28px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 28px;
  align-items: center;
  margin-bottom: 24px;
}

.dl-featured h2 {
  margin: 0 0 12px;
  font-family: var(--serif);
  font-size: 1.5rem;
  border: none;
  padding: 0;
  color: #fff;
}

.dl-featured p {
  margin: 0 0 20px;
  color: rgba(255, 255, 255, 0.9);
}

.dl-featured .btn-primary {
  background: #fff;
  color: var(--brand);
  border-color: #fff;
}

.dl-featured .btn-primary:hover {
  background: #f5f5f5;
  color: var(--brand-dark);
}

.dl-featured-side {
  border-left: 1px solid rgba(255, 255, 255, 0.25);
  padding-left: 28px;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.88);
}

.dl-featured-side li {
  margin-bottom: 8px;
}

.dl-featured-side ul {
  margin: 0;
  padding-left: 18px;
}

/* 功能深讲 */
.feature-row {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 20px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}

.feature-row:last-child {
  border-bottom: none;
}

.feature-num {
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 700;
  color: var(--brand);
  line-height: 1;
  opacity: 0.85;
}

.feature-row h3 {
  margin: 0 0 8px;
  font-size: 1.1rem;
}

.feature-row p {
  margin: 0;
  color: var(--text-sec);
}

/* 评价 */
.quote-card {
  background: var(--bg);
  border: 1px solid var(--line);
  padding: 24px;
  position: relative;
}

.quote-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--brand);
}

.quote-card blockquote {
  margin: 0 0 16px;
  color: var(--text-sec);
  font-size: 0.95rem;
}

.quote-card footer {
  font-size: 0.86rem;
  color: var(--text-mute);
  border: none;
  padding: 0;
  background: none;
}

.quote-card footer strong {
  color: var(--text);
  display: block;
  margin-bottom: 2px;
}

/* 数据背书 */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.stat-item {
  background: var(--bg);
  border: 1px solid var(--line);
  padding: 28px 18px;
  text-align: center;
}

.stat-item strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.8rem;
  color: var(--brand);
  line-height: 1.2;
  margin-bottom: 8px;
}

.stat-item span {
  font-size: 0.9rem;
  color: var(--text-sec);
}

/* 对比表 */
.compare-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg);
  font-size: 0.95rem;
}

.compare-table th,
.compare-table td {
  border: 1px solid var(--line);
  padding: 14px 16px;
  text-align: left;
  vertical-align: top;
}

.compare-table th {
  background: var(--brand);
  color: #fff;
  font-weight: 600;
}

.compare-table tr:nth-child(even) td {
  background: var(--bg-soft);
}

.compare-table .check {
  color: var(--brand);
  font-weight: 700;
}

.compare-table .cross {
  color: var(--text-mute);
}

/* FAQ */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--line);
}

.faq-item {
  border-bottom: 1px solid var(--line);
  padding: 20px 0;
}

.faq-item h3 {
  margin: 0 0 10px;
  font-size: 1.02rem;
  color: var(--text);
}

.faq-item h3::before {
  content: "Q";
  display: inline-block;
  width: 22px;
  height: 22px;
  line-height: 22px;
  text-align: center;
  background: var(--brand);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  margin-right: 10px;
  vertical-align: middle;
}

.faq-item p {
  margin: 0;
  color: var(--text-sec);
  padding-left: 32px;
}

/* 正文长文 */
.prose {
  max-width: 720px;
  margin: 0 auto;
}

.prose h1 {
  margin: 0 0 20px;
  font-family: var(--serif);
  font-size: clamp(1.5rem, 2.5vw, 1.9rem);
  line-height: 1.35;
  border-bottom: 3px solid var(--brand);
  padding-bottom: 16px;
}

.prose h2 {
  margin: 36px 0 14px;
  font-size: 1.25rem;
  color: var(--text);
  border-left: 4px solid var(--brand);
  padding-left: 12px;
}

.prose p {
  margin: 0 0 16px;
  color: var(--text-sec);
  text-align: justify;
}

.prose ul {
  margin: 0 0 16px;
  padding-left: 22px;
  color: var(--text-sec);
}

.prose li {
  margin-bottom: 8px;
}

.cta-box {
  margin: 36px 0 0;
  padding: 28px 24px;
  background: var(--bg-tint);
  border: 1px solid #f0c8cf;
  text-align: center;
}

.cta-box p {
  margin: 0 0 16px;
  text-align: center;
  color: var(--text-sec);
}

/* 安装步骤 */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  counter-reset: step;
}

.step {
  background: var(--bg);
  border: 1px solid var(--line);
  padding: 22px;
  position: relative;
}

.step::before {
  counter-increment: step;
  content: counter(step);
  display: block;
  width: 28px;
  height: 28px;
  line-height: 28px;
  text-align: center;
  background: var(--brand);
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 12px;
}

.step h3 {
  margin: 0 0 8px;
  font-size: 1.02rem;
}

.step p {
  margin: 0;
  color: var(--text-sec);
  font-size: 0.93rem;
}

/* 系统要求 */
.req-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.req-card {
  border: 1px solid var(--line);
  background: var(--bg);
  padding: 20px 22px;
}

.req-card h3 {
  margin: 0 0 10px;
  font-size: 1.02rem;
  color: var(--brand);
}

.req-card ul {
  margin: 0;
  padding-left: 18px;
  color: var(--text-sec);
  font-size: 0.93rem;
}

.req-card li {
  margin-bottom: 6px;
}

/* 版本日志 */
.changelog {
  border: 1px solid var(--line);
  background: var(--bg);
}

.changelog-item {
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
}

.changelog-item:last-child {
  border-bottom: none;
}

.changelog-item h3 {
  margin: 0 0 8px;
  font-size: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: baseline;
}

.changelog-item h3 time {
  font-size: 0.85rem;
  color: var(--text-mute);
  font-weight: 400;
}

.changelog-item p {
  margin: 0;
  color: var(--text-sec);
  font-size: 0.93rem;
}

/* 页脚 */
.site-footer {
  background: #1a1a1a;
  color: #c8c8c8;
  padding: 40px 0 28px;
  margin-top: 0;
  font-size: 0.88rem;
  line-height: 1.7;
}

.site-footer a {
  color: #f0a0ac;
}

.footer-safe {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 16px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.06);
  border-left: 3px solid var(--brand);
  color: #e8e8e8;
}

.footer-safe svg {
  flex-shrink: 0;
  color: #7dcea0;
  margin-top: 2px;
}

.footer-copy {
  color: #999;
  margin: 0;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 18px;
}

.footer-nav a {
  text-decoration: none;
}

.footer-nav a:hover {
  text-decoration: underline;
}

/* 工具 */
.mt-24 {
  margin-top: 24px;
}

.mb-0 {
  margin-bottom: 0;
}

.text-sec {
  color: var(--text-sec);
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* 响应式 */
@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: 1fr;
    padding: 40px 0 48px;
    gap: 28px;
  }

  .grid-3,
  .grid-4,
  .stat-grid,
  .steps {
    grid-template-columns: 1fr 1fr;
  }

  .dl-featured {
    grid-template-columns: 1fr;
  }

  .dl-featured-side {
    border-left: none;
    border-top: 1px solid rgba(255, 255, 255, 0.25);
    padding-left: 0;
    padding-top: 20px;
  }
}

@media (max-width: 640px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
    padding: 10px 0;
    min-height: auto;
    gap: 4px;
  }

  .nav {
    width: 100%;
    overflow-x: auto;
  }

  .nav a {
    padding: 12px 12px;
  }

  .nav a.active::after {
    left: 12px;
    right: 12px;
  }

  .grid-2,
  .grid-3,
  .grid-4,
  .stat-grid,
  .steps,
  .req-list {
    grid-template-columns: 1fr;
  }

  .feature-row {
    grid-template-columns: 48px 1fr;
    gap: 12px;
  }

  .compare-table {
    display: block;
    overflow-x: auto;
  }
}
