/* 红色财经门户 — 第1套根目录样式 */
:root {
  --brand: #C8102E;
  --brand-dark: #9E0C24;
  --ink: #1A1A1A;
  --ink-soft: #333333;
  --muted: #666666;
  --line: #D9D9D9;
  --bg: #F5F5F5;
  --paper: #FFFFFF;
  --accent-soft: #F8E9EC;
  --max: 1120px;
  --font: "Source Han Sans SC", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", 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);
  color: var(--ink);
  background-color: var(--bg);
  background-image:
    linear-gradient(135deg, rgba(26, 26, 26, 0.03) 25%, transparent 25%),
    linear-gradient(225deg, rgba(26, 26, 26, 0.03) 25%, transparent 25%),
    linear-gradient(45deg, rgba(26, 26, 26, 0.03) 25%, transparent 25%),
    linear-gradient(315deg, rgba(26, 26, 26, 0.03) 25%, transparent 25%),
    linear-gradient(rgba(200, 16, 46, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(200, 16, 46, 0.035) 1px, transparent 1px);
  background-size: 12px 12px, 12px 12px, 12px 12px, 12px 12px, 24px 24px, 24px 24px;
  background-position: 0 0, 6px 0, 0 -6px, 6px 6px, 0 0, 0 0;
  line-height: 1.75;
  font-size: 16px;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--brand);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
}

/* 顶部门户条 */
.topbar {
  background: var(--ink);
  color: #EDEDED;
  font-size: 13px;
}

.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  min-height: 36px;
  flex-wrap: wrap;
  padding: 6px 0;
}

.topbar span {
  opacity: 0.9;
}

.site-header {
  background: var(--paper);
  border-bottom: 3px solid var(--brand);
  position: sticky;
  top: 0;
  z-index: 50;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
}

.brand:hover {
  text-decoration: none;
}

.brand-mark {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  background: var(--brand);
  color: #fff;
  font-weight: 700;
  font-family: var(--serif);
  letter-spacing: 0.04em;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand-text strong {
  font-size: 20px;
  letter-spacing: 0.06em;
}

.brand-text small {
  color: var(--muted);
  font-size: 12px;
  margin-top: 2px;
}

.nav {
  display: flex;
  align-items: stretch;
  gap: 0;
}

.nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 0 18px;
  min-height: 72px;
  color: var(--ink-soft);
  font-weight: 600;
  text-decoration: none;
  border-left: 1px solid #EEE;
}

.nav a:last-child {
  border-right: 1px solid #EEE;
}

.nav a:hover {
  color: var(--brand);
  background: var(--accent-soft);
  text-decoration: none;
}

.nav a.active {
  color: #fff;
  background: var(--brand);
}

.nav a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -3px;
  height: 3px;
  background: var(--brand-dark);
}

/* Hero */
.hero {
  background: linear-gradient(180deg, #fff 0%, #F7F7F7 100%);
  border-bottom: 1px solid var(--line);
  padding: 48px 0 40px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 36px;
  align-items: center;
}

.eyebrow {
  display: inline-block;
  color: var(--brand);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  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(28px, 4vw, 40px);
  line-height: 1.25;
  color: var(--ink);
  font-weight: 700;
}

.hero-lead {
  margin: 0 0 22px;
  color: var(--ink-soft);
  font-size: 17px;
  max-width: 36em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  color: var(--muted);
  font-size: 13px;
}

.hero-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.hero-visual {
  background: var(--ink);
  color: #fff;
  padding: 18px 18px 12px;
  border: 1px solid #2A2A2A;
}

.hero-visual-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 8px;
  font-size: 13px;
}

.hero-visual-head strong {
  color: #fff;
  font-size: 15px;
}

.hero-visual-head em {
  font-style: normal;
  color: #F07178;
}

.kline {
  width: 100%;
  height: auto;
  display: block;
  background: #111;
}

.page-title-wrap {
  padding: 36px 0 8px;
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.page-title-wrap h1 {
  margin: 0 0 10px;
  font-family: var(--serif);
  font-size: clamp(26px, 3.5vw, 36px);
  line-height: 1.3;
}

.page-title-wrap p {
  margin: 0;
  color: var(--ink-soft);
  max-width: 48em;
}

/* 通用区块 */
.section {
  padding: 48px 0;
}

.section + .section {
  border-top: 1px solid var(--line);
}

.section-head {
  margin-bottom: 24px;
  max-width: 48em;
}

.section-head h2 {
  margin: 0 0 10px;
  font-family: var(--serif);
  font-size: 28px;
  line-height: 1.3;
  color: var(--ink);
  border-bottom: 2px solid var(--brand);
  display: inline-block;
  padding-bottom: 6px;
}

.section-head p {
  margin: 12px 0 0;
  color: var(--ink-soft);
}

.section h3 {
  margin: 24px 0 10px;
  font-size: 20px;
  color: var(--ink);
  font-family: var(--serif);
}

.section p {
  margin: 0 0 14px;
  color: var(--ink-soft);
}

.section ul,
.section ol {
  margin: 0 0 16px;
  padding-left: 1.3em;
  color: var(--ink-soft);
}

.section li {
  margin-bottom: 8px;
}

.bg-paper {
  background: var(--paper);
}

.bg-soft {
  background: linear-gradient(180deg, #FAFAFA, #F3F3F3);
}

/* 分栏布局 */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px 40px;
}

.split-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.panel {
  border-top: 2px solid var(--brand);
  padding-top: 14px;
}

.panel h3 {
  margin-top: 0;
}

.list-plain {
  list-style: none;
  padding: 0;
  margin: 0;
}

.list-plain li {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  margin: 0;
}

.list-plain li:last-child {
  border-bottom: 0;
}

.list-plain .idx {
  color: var(--brand);
  font-weight: 700;
  font-family: var(--serif);
}

/* 时间线 */
.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  border-left: 2px solid var(--brand);
}

.timeline li {
  position: relative;
  padding: 0 0 22px 22px;
  margin: 0;
}

.timeline li::before {
  content: "";
  position: absolute;
  left: -7px;
  top: 6px;
  width: 12px;
  height: 12px;
  background: #fff;
  border: 2px solid var(--brand);
}

.timeline strong {
  display: block;
  color: var(--ink);
  margin-bottom: 4px;
}

/* 对比表 */
.table-wrap {
  overflow-x: auto;
  border-top: 2px solid var(--brand);
  border-bottom: 1px solid var(--line);
}

table.compare {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  font-size: 15px;
}

table.compare th,
table.compare td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

table.compare th {
  background: var(--ink);
  color: #fff;
  font-weight: 600;
}

table.compare tr:nth-child(even) td {
  background: #FAFAFA;
}

table.compare td:first-child {
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
}

/* FAQ */
.faq details {
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
}

.faq summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--ink);
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::before {
  content: "+";
  display: inline-block;
  width: 1.2em;
  color: var(--brand);
  font-weight: 700;
}

.faq details[open] summary::before {
  content: "–";
}

.faq details p {
  margin: 10px 0 0;
  padding-left: 1.2em;
}

/* 评价列表 */
.quotes {
  display: grid;
  gap: 0;
}

.quotes article {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 18px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.quotes .who {
  color: var(--muted);
  font-size: 13px;
}

.quotes .who strong {
  display: block;
  color: var(--ink);
  font-size: 15px;
  margin-bottom: 4px;
}

.quotes p {
  margin: 0;
}

/* CTA 条 */
.cta-band {
  background: var(--ink);
  color: #fff;
  padding: 36px 0;
}

.cta-band h2 {
  margin: 0 0 10px;
  font-family: var(--serif);
  font-size: 26px;
  color: #fff;
  border: 0;
}

.cta-band p {
  margin: 0 0 18px;
  color: #D8D8D8;
  max-width: 46em;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* 按钮 */
.btn {
  appearance: none;
  border: 1px solid transparent;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  font: inherit;
  font-weight: 700;
  letter-spacing: 0.02em;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.btn-primary {
  background: var(--brand);
  color: #fff;
}

.btn-primary:hover {
  background: var(--brand-dark);
}

.btn-primary:disabled {
  opacity: 0.7;
  cursor: wait;
}

.btn-dark {
  background: var(--ink);
  color: #fff;
}

.btn-dark:hover {
  background: #000;
}

.btn-outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}

.btn-outline:hover {
  background: var(--ink);
  color: #fff;
}

.btn-outline-light {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.55);
}

.btn-outline-light:hover {
  background: #fff;
  color: var(--ink);
}

.btn-block {
  width: 100%;
}

.download-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.dl-item {
  border-top: 2px solid var(--brand);
  background: #fff;
  padding: 18px 16px;
}

.dl-item h3 {
  margin: 0 0 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 18px;
}

.dl-item p {
  margin: 0 0 14px;
  font-size: 14px;
  min-height: 3.2em;
}

.steps {
  counter-reset: step;
  list-style: none;
  padding: 0;
  margin: 0;
}

.steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  margin: 0;
}

.steps li::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 700;
  color: var(--brand);
  line-height: 1.2;
}

.soft-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
}

.note-box {
  border-left: 3px solid var(--brand);
  background: var(--accent-soft);
  padding: 14px 16px;
  margin: 16px 0;
  color: var(--ink-soft);
}

/* 页脚 */
.site-footer {
  background: var(--ink);
  color: #CFCFCF;
  padding: 36px 0 28px;
  font-size: 14px;
}

.site-footer a {
  color: #F5F5F5;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 28px;
  margin-bottom: 24px;
}

.site-footer h3 {
  margin: 0 0 12px;
  color: #fff;
  font-size: 16px;
  font-family: var(--serif);
}

.site-footer p,
.site-footer li {
  color: #BDBDBD;
  line-height: 1.7;
}

.site-footer ul {
  margin: 0;
  padding-left: 1.1em;
}

.security-seal {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 14px;
  background: rgba(255, 255, 255, 0.03);
}

.security-seal svg {
  width: 28px;
  height: 28px;
  color: #F07178;
  flex-shrink: 0;
}

.security-seal strong {
  display: block;
  color: #fff;
  margin-bottom: 4px;
}

.footer-copy {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 16px;
  color: #A8A8A8;
  font-size: 13px;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 900px) {
  .hero-grid,
  .split,
  .split-3,
  .download-grid,
  .footer-grid,
  .quotes article {
    grid-template-columns: 1fr;
  }

  .header-inner {
    flex-direction: column;
    align-items: flex-start;
    padding: 12px 0;
    min-height: auto;
  }

  .nav {
    width: 100%;
    overflow-x: auto;
  }

  .nav a {
    min-height: 48px;
    white-space: nowrap;
  }
}

@media (max-width: 560px) {
  .hero {
    padding: 32px 0 28px;
  }

  .section {
    padding: 36px 0;
  }

  .btn {
    width: 100%;
  }
}
