/* 东方财富 · 深色行情终端风 */
:root {
  --bg: #0B1220;
  --bg-panel: #111827;
  --bg-elevated: #151D2E;
  --bg-soft: #1A2438;
  --border: #243044;
  --border-strong: #334155;
  --text: #E5E7EB;
  --text-muted: #94A3B8;
  --text-dim: #64748B;
  --red: #E53935;
  --red-hover: #EF5350;
  --green: #26A69A;
  --green-dim: #1B7A70;
  --amber: #F59E0B;
  --mono: "JetBrains Mono", "SF Mono", "Cascadia Code", "Consolas", "Courier New", monospace;
  --sans: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", "Segoe UI", sans-serif;
  --max: 1120px;
  --radius: 6px;
  --nav-h: 64px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.75;
  color: var(--text);
  background: var(--bg);
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(229, 57, 53, 0.12), transparent),
    linear-gradient(180deg, #0B1220 0%, #0D1526 40%, #0B1220 100%);
  min-height: 100vh;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--green);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--red-hover);
}

h1, h2, h3, h4 {
  line-height: 1.35;
  font-weight: 700;
  color: #F8FAFC;
  margin: 0 0 0.75em;
}

h1 { font-size: clamp(1.85rem, 4vw, 2.75rem); letter-spacing: 0.02em; }
h2 { font-size: clamp(1.45rem, 2.5vw, 1.85rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; color: var(--text-muted); }
ul, ol { margin: 0 0 1em; padding-left: 1.35em; color: var(--text-muted); }
li { margin-bottom: 0.4em; }

.container {
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
}

/* Ticker */
.ticker {
  background: #080E1A;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  height: 36px;
  display: flex;
  align-items: center;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.02em;
}

.ticker-track {
  display: flex;
  gap: 2.5rem;
  white-space: nowrap;
  animation: ticker-scroll 40s linear infinite;
  padding-left: 100%;
}

.ticker-item {
  color: var(--text-dim);
}

.ticker-item .up { color: var(--red); }
.ticker-item .down { color: var(--green); }
.ticker-item .code { color: var(--text-muted); margin-right: 0.4em; }

@keyframes ticker-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 18, 32, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: #F8FAFC;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
}

.brand:hover { color: #fff; }

.brand-mark {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: stretch;
  gap: 0.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
  height: 100%;
}

.nav-links a {
  display: flex;
  align-items: center;
  height: 100%;
  padding: 0 1rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 500;
  position: relative;
  border-bottom: 2px solid transparent;
}

.nav-links a:hover {
  color: #F1F5F9;
}

.nav-links a.active {
  color: #fff;
  border-bottom-color: var(--red);
}

.nav-cta {
  display: none;
}

@media (min-width: 720px) {
  .nav-cta {
    display: inline-flex;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.7rem 1.35rem;
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.15s;
  line-height: 1.2;
  text-decoration: none;
}

.btn:disabled {
  opacity: 0.7;
  cursor: wait;
}

.btn-primary {
  background: var(--red);
  color: #fff;
  border-color: var(--red);
}

.btn-primary:hover {
  background: var(--red-hover);
  color: #fff;
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}

.btn-secondary:hover {
  border-color: var(--green);
  color: var(--green);
  background: rgba(38, 166, 154, 0.08);
}

.btn-green {
  background: var(--green);
  color: #041210;
  border-color: var(--green);
}

.btn-green:hover {
  background: #2bbbad;
  color: #041210;
}

.btn-block {
  width: 100%;
}

.btn-lg {
  padding: 0.9rem 1.75rem;
  font-size: 1.05rem;
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

/* Hero */
.hero {
  padding: 2.5rem 0 3.5rem;
  border-bottom: 1px solid var(--border);
}

.hero-panel {
  background:
    linear-gradient(135deg, rgba(229, 57, 53, 0.08) 0%, transparent 45%),
    linear-gradient(180deg, var(--bg-panel) 0%, var(--bg-elevated) 100%);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: clamp(1.75rem, 4vw, 3rem);
  display: grid;
  gap: 2rem;
  position: relative;
  overflow: hidden;
}

.hero-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(36, 48, 68, 0.35) 1px, transparent 1px),
    linear-gradient(90deg, rgba(36, 48, 68, 0.35) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
  opacity: 0.45;
}

.hero-content,
.hero-visual {
  position: relative;
  z-index: 1;
}

@media (min-width: 900px) {
  .hero-panel {
    grid-template-columns: 1.15fr 0.85fr;
    align-items: center;
  }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--green);
  border: 1px solid rgba(38, 166, 154, 0.35);
  background: rgba(38, 166, 154, 0.08);
  padding: 0.3rem 0.7rem;
  border-radius: 4px;
  margin-bottom: 1rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hero-badge .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
}

.hero h1 {
  margin-bottom: 0.85rem;
}

.hero-lead {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 36em;
  margin-bottom: 1.5rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-dim);
}

.hero-meta span strong {
  color: var(--text);
  font-weight: 600;
}

.kline-wrap {
  background: #0A101C;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1rem;
}

.kline-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.75rem;
  font-family: var(--mono);
  font-size: 12px;
}

.kline-head .symbol { color: var(--text); font-weight: 600; }
.kline-head .price { color: var(--red); font-size: 1.15rem; }
.kline-head .chg { color: var(--red); }

.kline-svg {
  width: 100%;
  height: auto;
  display: block;
}

/* Sections */
.section {
  padding: 3.5rem 0;
  border-bottom: 1px solid rgba(36, 48, 68, 0.7);
}

.section-header {
  margin-bottom: 2rem;
  max-width: 46em;
}

.section-header .eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--red);
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
}

.section-header p {
  margin-bottom: 0;
}

/* Grid cards */
.grid-3 {
  display: grid;
  gap: 1rem;
}

@media (min-width: 720px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 960px) {
  .grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
  .grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
}

.cap-card {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.35rem 1.25rem;
  transition: border-color 0.2s;
}

.cap-card:hover {
  border-color: rgba(229, 57, 53, 0.45);
}

.cap-icon {
  width: 40px;
  height: 40px;
  margin-bottom: 0.85rem;
  color: var(--red);
}

.cap-card h3 {
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
}

.cap-card p {
  font-size: 0.92rem;
  margin-bottom: 0;
}

/* Feature rows */
.feature-row {
  display: grid;
  gap: 1.75rem;
  align-items: center;
  margin-bottom: 2.5rem;
  padding: 1.5rem;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.feature-row:last-child { margin-bottom: 0; }

@media (min-width: 860px) {
  .feature-row {
    grid-template-columns: 1fr 1fr;
    padding: 2rem;
  }
  .feature-row.reverse .feature-media { order: 2; }
  .feature-row.reverse .feature-body { order: 1; }
}

.feature-media {
  background: #0A101C;
  border: 1px solid var(--border);
  border-radius: 6px;
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}

.feature-body h3 {
  margin-bottom: 0.65rem;
}

.feature-body .tag {
  display: inline-block;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--amber);
  border: 1px solid rgba(245, 158, 11, 0.35);
  padding: 0.15rem 0.5rem;
  border-radius: 3px;
  margin-bottom: 0.65rem;
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
}

.feature-list li {
  position: relative;
  padding-left: 1.15rem;
  margin-bottom: 0.45rem;
  font-size: 0.95rem;
}

.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  background: var(--red);
  border-radius: 1px;
}

/* Download strip */
.download-strip {
  background: linear-gradient(90deg, rgba(229, 57, 53, 0.12), rgba(38, 166, 154, 0.08));
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.75rem;
}

.download-strip-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.download-strip-head h2 { margin-bottom: 0.35rem; }
.download-strip-head p { margin: 0; max-width: 36em; }

.platform-grid {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .platform-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 960px) {
  .platform-grid { grid-template-columns: repeat(4, 1fr); }
}

.platform-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.15rem;
  text-align: center;
}

.platform-card .p-icon {
  width: 36px;
  height: 36px;
  margin: 0 auto 0.65rem;
  color: var(--text);
}

.platform-card h3 {
  font-size: 1rem;
  margin-bottom: 0.35rem;
}

.platform-card p {
  font-size: 0.82rem;
  margin-bottom: 0.85rem;
  min-height: 2.6em;
}

/* Stats */
.stats-wall {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 800px) {
  .stats-wall { grid-template-columns: repeat(4, 1fr); }
}

.stat-item {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-top: 2px solid var(--red);
  border-radius: var(--radius);
  padding: 1.35rem 1rem;
  text-align: center;
}

.stat-item .num {
  font-family: var(--mono);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  color: #F8FAFC;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.35rem;
}

.stat-item .num .unit {
  font-size: 0.85rem;
  color: var(--red);
  margin-left: 0.15rem;
}

.stat-item .label {
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* Table */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg-panel);
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  min-width: 640px;
}

.compare-table th,
.compare-table td {
  padding: 0.9rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.compare-table th {
  background: var(--bg-soft);
  color: #F1F5F9;
  font-weight: 600;
  font-family: var(--mono);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
}

.compare-table td {
  color: var(--text-muted);
}

.compare-table tr:last-child td { border-bottom: none; }

.compare-table .hl {
  color: var(--green);
  font-weight: 600;
}

.compare-table .dim { color: var(--text-dim); }

/* Reviews */
.reviews {
  display: grid;
  gap: 1rem;
}

@media (min-width: 800px) {
  .reviews { grid-template-columns: repeat(3, 1fr); }
}

.review-card {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.35rem;
}

.review-card .stars {
  color: var(--amber);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.15em;
  margin-bottom: 0.75rem;
}

.review-card p {
  font-size: 0.92rem;
  margin-bottom: 1rem;
}

.review-card .author {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-dim);
}

.review-card .author strong {
  color: var(--text-muted);
  display: block;
  font-size: 0.9rem;
  margin-bottom: 0.15rem;
  font-family: var(--sans);
}

/* FAQ */
.faq-list {
  display: grid;
  gap: 0.75rem;
}

.faq-item {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.15rem 1.25rem;
}

.faq-item h3 {
  font-size: 1.02rem;
  margin-bottom: 0.5rem;
  color: #F1F5F9;
}

.faq-item p {
  margin-bottom: 0;
  font-size: 0.95rem;
}

/* Soft article (zh-cn) */
.article {
  max-width: 760px;
}

.article h2 {
  margin-top: 2rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--border);
}

.article h2:first-of-type {
  margin-top: 0;
  border-top: none;
  padding-top: 0;
}

.article h3 {
  margin-top: 1.5rem;
  color: #E2E8F0;
}

.article p {
  text-align: justify;
}

.cta-box {
  margin: 2rem 0;
  padding: 1.5rem;
  background: linear-gradient(135deg, rgba(229, 57, 53, 0.15), rgba(17, 24, 39, 0.9));
  border: 1px solid rgba(229, 57, 53, 0.4);
  border-radius: 8px;
  text-align: center;
}

.cta-box h3 {
  margin-bottom: 0.5rem;
}

.cta-box p {
  margin-bottom: 1.15rem;
  text-align: center;
}

/* Download page specifics */
.dl-hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1rem;
}

.dl-hero-stats .chip {
  font-family: var(--mono);
  font-size: 12px;
  padding: 0.4rem 0.75rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text-muted);
}

.dl-hero-stats .chip b { color: var(--red); }

.steps {
  display: grid;
  gap: 1rem;
  counter-reset: step;
}

@media (min-width: 800px) {
  .steps { grid-template-columns: repeat(3, 1fr); }
}

.step-card {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.35rem;
  position: relative;
  counter-increment: step;
}

.step-card::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--mono);
  font-size: 1.5rem;
  color: var(--red);
  display: block;
  margin-bottom: 0.65rem;
  font-weight: 700;
}

.req-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 720px) {
  .req-grid { grid-template-columns: repeat(2, 1fr); }
}

.req-card {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
}

.req-card h3 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.05rem;
}

.changelog {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}

.changelog-item {
  padding: 1.15rem 1.35rem;
  border-bottom: 1px solid var(--border);
}

.changelog-item:last-child { border-bottom: none; }

.changelog-item .ver {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--green);
  margin-bottom: 0.35rem;
}

.changelog-item h3 {
  font-size: 1.05rem;
  margin-bottom: 0.45rem;
}

/* Footer */
.site-footer {
  padding: 2.5rem 0 2rem;
  background: #080E1A;
  border-top: 1px solid var(--border);
  margin-top: auto;
}

.footer-grid {
  display: grid;
  gap: 1.5rem;
  margin-bottom: 1.75rem;
}

@media (min-width: 720px) {
  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr;
  }
}

.footer-brand {
  color: #F8FAFC;
  font-weight: 700;
  margin-bottom: 0.65rem;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li { margin-bottom: 0.4em; }
.footer-links a { color: var(--text-muted); font-size: 0.92rem; }
.footer-links a:hover { color: #fff; }

.footer-title {
  font-size: 0.85rem;
  color: #CBD5E1;
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.security-note {
  background: rgba(38, 166, 154, 0.08);
  border: 1px solid rgba(38, 166, 154, 0.28);
  border-radius: var(--radius);
  padding: 0.9rem 1rem;
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.security-note strong {
  color: var(--green);
}

.footer-copy {
  font-size: 0.82rem;
  color: var(--text-dim);
  border-top: 1px solid var(--border);
  padding-top: 1.25rem;
  margin: 0;
  line-height: 1.7;
}

/* Utilities */
.text-mono { font-family: var(--mono); }
.text-up { color: var(--red); }
.text-down { color: var(--green); }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }

.inline-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

@media (max-width: 640px) {
  .nav-links a { padding: 0 0.65rem; font-size: 0.88rem; }
  .hero { padding: 1.5rem 0 2.5rem; }
  .section { padding: 2.5rem 0; }
}
