/* Site 4 — Warm Finance News Portal */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --orange: #E85D04;
  --amber: #F48C06;
  --charcoal: #212529;
  --bg-warm: #FFF8F0;
  --bg-card: #FFFFFF;
  --bg-alt: #FFF0E0;
  --text: #212529;
  --text-muted: #5C636A;
  --text-light: #868E96;
  --border: #F0DCC8;
  --green: #2B8A3E;
  --red: #C92A2A;
  --font: "Microsoft YaHei", "PingFang SC", sans-serif;
  --nav-h: 58px;
  --rail-w: 5px;
  --radius: 6px;
  --radius-pill: 4px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg-warm);
  color: var(--text);
  line-height: 1.55;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
  position: relative;
  padding-left: var(--rail-w);
}

body::before {
  content: "";
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  width: var(--rail-w);
  background: linear-gradient(180deg, var(--orange) 0%, var(--amber) 100%);
  z-index: 9999;
}

a { color: var(--orange); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--amber); }

img { max-width: 100%; display: block; }

.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Keyframes ── */
@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes fade-up {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse-bar {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

/* ── Navigation ── */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--nav-h);
  background: rgba(255, 248, 240, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 17px;
  color: var(--charcoal);
  letter-spacing: -0.02em;
}

.nav-brand-mark {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-links a {
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  transition: background 0.2s, color 0.2s;
}

.nav-links a:hover {
  color: var(--orange);
  background: rgba(232, 93, 4, 0.08);
}

.nav-links a.active {
  color: #fff;
  background: var(--orange);
}

.nav-links a.active:hover {
  color: #fff;
  background: var(--amber);
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  line-height: 1.3;
}

.btn:disabled { opacity: 0.7; cursor: not-allowed; }

.btn-primary {
  background: var(--orange);
  color: #fff;
  box-shadow: 0 2px 8px rgba(232, 93, 4, 0.3);
}

.btn-primary:hover:not(:disabled) {
  background: var(--amber);
  box-shadow: 0 4px 14px rgba(244, 140, 6, 0.35);
}

.btn-outline {
  background: transparent;
  color: var(--orange);
  border: 1.5px solid var(--orange);
}

.btn-outline:hover:not(:disabled) {
  background: rgba(232, 93, 4, 0.06);
}

.btn-sm { padding: 8px 16px; font-size: 13px; }
.btn-lg { padding: 14px 28px; font-size: 15px; }
.btn-block { width: 100%; }

/* ── Hero ── */
.hero {
  padding: 48px 0 56px;
  border-bottom: 1px solid var(--border);
}

.hero-grid {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 40px;
  align-items: center;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--orange);
  background: rgba(232, 93, 4, 0.1);
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  margin-bottom: 16px;
  letter-spacing: 0.04em;
}

.hero h1 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  line-height: 1.15;
  color: var(--charcoal);
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}

.hero h1 span { color: var(--orange); }

.hero-lead {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 24px;
  max-width: 520px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(33, 37, 41, 0.08);
}

.hero-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  background: var(--charcoal);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
}

.hero-panel-head .live-dot {
  width: 7px;
  height: 7px;
  background: #51CF66;
  border-radius: 50%;
  animation: pulse-bar 1.5s ease infinite;
  margin-right: 6px;
}

.hero-panel-body { padding: 16px; }

.market-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}

.market-row:last-child { border-bottom: none; }

.market-name { color: var(--text-muted); font-weight: 500; }
.market-val { font-weight: 700; font-variant-numeric: tabular-nums; }
.market-up { color: var(--red); }
.market-down { color: var(--green); }

.hero-quote {
  margin-top: 14px;
  padding: 12px 14px;
  background: var(--bg-alt);
  border-left: 3px solid var(--orange);
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}

.hero-quote strong { color: var(--charcoal); display: block; margin-bottom: 4px; font-size: 12px; }

/* ── Sections ── */
.section {
  padding: 52px 0;
}

.section-alt {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-head {
  margin-bottom: 28px;
}

.section-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--orange);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.section-title {
  font-size: 24px;
  font-weight: 800;
  color: var(--charcoal);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.section-desc {
  margin-top: 8px;
  color: var(--text-muted);
  font-size: 14px;
  max-width: 640px;
}

/* ── Comparison Table ── */
.compare-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.compare-table th,
.compare-table td {
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.compare-table th {
  background: var(--charcoal);
  color: #fff;
  font-weight: 600;
  font-size: 13px;
}

.compare-table th:first-child { border-radius: var(--radius) 0 0 0; }
.compare-table tr:last-child td { border-bottom: none; }

.compare-table td:first-child {
  font-weight: 600;
  color: var(--charcoal);
  background: rgba(255, 248, 240, 0.5);
}

.compare-table .check { color: var(--orange); font-weight: 700; }
.compare-table .cross { color: var(--text-light); }

.compare-highlight {
  background: rgba(232, 93, 4, 0.06) !important;
  color: var(--orange);
  font-weight: 700;
}

/* ── Accordion / Details ── */
.accordion-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.accordion-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.accordion-item summary {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  cursor: pointer;
  font-weight: 700;
  font-size: 15px;
  color: var(--charcoal);
  list-style: none;
  transition: background 0.2s;
}

.accordion-item summary::-webkit-details-marker { display: none; }

.accordion-item summary::after {
  content: "+";
  margin-left: auto;
  font-size: 18px;
  color: var(--orange);
  font-weight: 400;
  transition: transform 0.2s;
}

.accordion-item[open] summary::after {
  content: "−";
}

.accordion-item summary:hover { background: rgba(232, 93, 4, 0.04); }

.accordion-item[open] summary {
  border-bottom: 1px solid var(--border);
  background: rgba(232, 93, 4, 0.05);
}

.accordion-icon {
  width: 36px;
  height: 36px;
  background: rgba(232, 93, 4, 0.12);
  border-radius: var(--radius-pill);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--orange);
}

.accordion-body {
  padding: 16px 20px 20px 68px;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.65;
}

.accordion-body ul {
  margin-top: 8px;
  padding-left: 18px;
}

.accordion-body li { margin-bottom: 4px; }

/* ── Stats Banner ── */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  background: var(--charcoal);
  border-radius: var(--radius);
  overflow: hidden;
}

.stat-item {
  padding: 28px 20px;
  text-align: center;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-item:last-child { border-right: none; }

.stat-num {
  font-size: 32px;
  font-weight: 800;
  color: var(--amber);
  line-height: 1;
  letter-spacing: -0.03em;
}

.stat-num small {
  font-size: 16px;
  font-weight: 600;
}

.stat-label {
  margin-top: 6px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.65);
}

/* ── Feature Columns ── */
.col-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.col-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 22px;
  transition: box-shadow 0.2s, border-color 0.2s;
}

.col-card:hover {
  border-color: var(--amber);
  box-shadow: 0 6px 20px rgba(232, 93, 4, 0.1);
}

.col-card-icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--orange), var(--amber));
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  margin-bottom: 14px;
}

.col-card h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--charcoal);
  margin-bottom: 8px;
  line-height: 1.25;
}

.col-card p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ── Platforms ── */
.platform-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.platform-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 18px;
  text-align: center;
  transition: border-color 0.2s;
}

.platform-card:hover { border-color: var(--orange); }

.platform-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 12px;
  color: var(--orange);
}

.platform-card h3 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--charcoal);
}

.platform-card p {
  font-size: 12px;
  color: var(--text-light);
  margin-bottom: 14px;
}

/* ── Reviews ── */
.review-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.review-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  gap: 14px;
}

.review-avatar {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, var(--orange), var(--amber));
  color: #fff;
  border-radius: var(--radius-pill);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
  flex-shrink: 0;
}

.review-meta {
  flex: 1;
  min-width: 0;
}

.review-name {
  font-weight: 700;
  font-size: 14px;
  color: var(--charcoal);
  margin-bottom: 2px;
}

.review-role {
  font-size: 12px;
  color: var(--text-light);
  font-weight: 400;
}

.review-stars {
  display: flex;
  align-items: center;
  gap: 2px;
  color: var(--amber);
}
.review-stars svg { display: block; }
.check-icon { vertical-align: -2px; margin-right: 2px; }

.review-text {
  margin-top: 8px;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ── FAQ ── */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.faq-item summary {
  padding: 16px 20px;
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  color: var(--charcoal);
  list-style: none;
  display: flex;
  align-items: center;
  gap: 10px;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-tag {
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  background: var(--orange);
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  flex-shrink: 0;
}

.faq-item p {
  padding: 0 20px 16px 20px;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.65;
  border-top: 1px solid var(--border);
  padding-top: 14px;
  margin: 0 20px 16px;
}

/* ── Download Page ── */
.download-hero {
  padding: 44px 0 36px;
  background: linear-gradient(135deg, var(--charcoal) 0%, #343A40 100%);
  color: #fff;
}

.download-hero h1 {
  font-size: 30px;
  font-weight: 800;
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}

.download-hero p {
  color: rgba(255, 255, 255, 0.72);
  font-size: 15px;
  max-width: 560px;
}

.download-main {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 24px;
  margin-top: 28px;
}

.download-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}

.download-card.featured {
  border-color: var(--orange);
  box-shadow: 0 8px 28px rgba(232, 93, 4, 0.15);
}

.download-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  background: var(--orange);
  color: #fff;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  margin-bottom: 12px;
}

.download-card h2 {
  font-size: 20px;
  font-weight: 800;
  color: var(--charcoal);
  margin-bottom: 8px;
}

.download-card .ver {
  font-size: 13px;
  color: var(--text-light);
  margin-bottom: 16px;
}

.download-specs {
  list-style: none;
  margin-bottom: 20px;
}

.download-specs li {
  font-size: 13px;
  color: var(--text-muted);
  padding: 6px 0;
  border-bottom: 1px dashed var(--border);
  display: flex;
  justify-content: space-between;
}

.download-specs li:last-child { border-bottom: none; }

.platform-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 32px;
}

.platform-dl {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.platform-dl-icon {
  width: 44px;
  height: 44px;
  color: var(--orange);
  flex-shrink: 0;
}

.platform-dl-info { flex: 1; }

.platform-dl-info h3 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--charcoal);
}

.platform-dl-info p {
  font-size: 12px;
  color: var(--text-light);
  margin-bottom: 12px;
}

.install-steps {
  counter-reset: step;
  list-style: none;
  margin-top: 20px;
}

.install-steps li {
  counter-increment: step;
  position: relative;
  padding: 14px 14px 14px 48px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 10px;
  font-size: 14px;
  color: var(--text-muted);
}

.install-steps li::before {
  content: counter(step);
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  background: var(--orange);
  color: #fff;
  border-radius: var(--radius-pill);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
}

.changelog {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-top: 20px;
}

.changelog h3 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--charcoal);
}

.changelog ul {
  padding-left: 18px;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ── Article / zh-cn ── */
.article-wrap {
  max-width: 780px;
  margin: 0 auto;
  padding: 44px 24px 52px;
}

.article-wrap h1 {
  font-size: 28px;
  font-weight: 800;
  color: var(--charcoal);
  line-height: 1.25;
  margin-bottom: 18px;
  letter-spacing: -0.02em;
}

.article-wrap h2 {
  font-size: 20px;
  font-weight: 700;
  color: var(--charcoal);
  margin: 32px 0 12px;
  padding-left: 12px;
  border-left: 4px solid var(--orange);
}

.article-wrap h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--charcoal);
  margin: 20px 0 8px;
}

.article-wrap p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 14px;
}

.article-wrap ul, .article-wrap ol {
  padding-left: 22px;
  margin-bottom: 14px;
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.75;
}

.article-wrap li { margin-bottom: 6px; }

.article-cta {
  margin-top: 36px;
  padding: 28px;
  background: linear-gradient(135deg, rgba(232, 93, 4, 0.08), rgba(244, 140, 6, 0.12));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
}

.article-cta h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--charcoal);
  margin-bottom: 8px;
}

.article-cta p {
  font-size: 14px;
  margin-bottom: 16px;
}

/* ── Footer ── */
.site-footer {
  background: var(--charcoal);
  color: rgba(255, 255, 255, 0.7);
  padding: 36px 0 28px;
  margin-top: 0;
}

.footer-notice {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 14px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: var(--radius);
  border-left: 3px solid var(--amber);
}

.footer-notice svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--amber);
}

.footer-copy {
  font-size: 12px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.5);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 16px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.65);
  font-size: 13px;
}

.footer-links a:hover { color: var(--amber); }

/* ── Responsive ── */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .col-grid { grid-template-columns: 1fr 1fr; }
  .platform-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .stat-item:nth-child(2) { border-right: none; }
  .stat-item { border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
  .download-main { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .nav-links { display: none; }
  .col-grid { grid-template-columns: 1fr; }
  .review-grid { grid-template-columns: 1fr; }
  .platform-grid { grid-template-columns: 1fr; }
  .platform-list { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: 1fr 1fr; }
  .accordion-body { padding-left: 20px; }
  .hero { padding: 32px 0 40px; }
}
