:root {
  --accent: #2f7cf6;
  --accent-dark: #1766da;
  --accent-soft: #eef5ff;
  --ink: #1f1f1f;
  --muted: #666;
  --line: #ededed;
  --paper: #fff;
  --soft: #f7f7f7;
  --dark: #2b2b2b;
  --shadow: 0 12px 30px rgba(0, 0, 0, .08);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--soft);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  line-height: 1.62;
}

a { color: inherit; text-decoration: none; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, .97);
  backdrop-filter: blur(12px);
}

.nav {
  width: min(1180px, calc(100% - 32px));
  min-height: 64px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
}

.brand-logo {
  display: block;
  width: 170px;
  height: auto;
}

.menu {
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
  overflow-x: auto;
  color: #252525;
  font-size: 15px;
  white-space: nowrap;
  scrollbar-width: none;
}

.menu::-webkit-scrollbar { display: none; }

.menu a {
  padding: 20px 0 18px;
  border-bottom: 3px solid transparent;
}

.menu a:hover,
.menu a.active { color: var(--accent); }

.menu a.active {
  border-color: var(--accent);
  font-weight: 700;
}

.nav-cta,
.primary-btn,
.secondary-btn {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 15px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 700;
}

.nav-cta,
.primary-btn {
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #fff;
}

.secondary-btn {
  border: 1px solid rgba(255, 255, 255, .35);
  color: #fff;
}

.page {
  width: min(1180px, calc(100% - 32px));
  margin: 18px auto 44px;
}

.ticker {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 42px;
  margin-bottom: 14px;
  padding: 9px 14px;
  border: 1px solid var(--line);
  background: #fff;
  overflow: hidden;
}

.ticker span,
.tag {
  width: max-content;
  padding: 3px 8px;
  border-radius: 3px;
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}

.ticker p {
  margin: 0;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(310px, .85fr);
  gap: 18px;
}

.hero-copy {
  min-height: 420px;
  padding: 34px;
  display: grid;
  align-content: end;
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(18, 18, 18, .78), rgba(18, 18, 18, .48) 48%, rgba(18, 18, 18, .12)),
    var(--hero-image, url("images/hero-fintech.jpg")) center / cover no-repeat;
  color: #fff;
}

.eyebrow {
  margin: 0 0 12px;
  color: #dbeafe;
  font-size: 13px;
  font-weight: 800;
}

.hero h1 {
  max-width: 740px;
  margin: 0 0 14px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.06;
}

.hero p {
  max-width: 670px;
  margin: 0 0 22px;
  color: rgba(255, 255, 255, .86);
  font-size: 18px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.lead-card,
.panel,
.article-card,
.category-card,
.service-grid article {
  border: 1px solid var(--line);
  background: var(--paper);
}

.lead-card {
  min-height: 420px;
  padding: 24px;
  display: grid;
  align-content: start;
}

.lead-card h2 {
  margin: 0 0 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  font-size: 20px;
  line-height: 1.2;
}

.lead-card p {
  color: var(--muted);
}

.story-rank {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.story-rank li {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 10px;
  align-items: start;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}

.story-rank li:last-child {
  border-bottom: 0;
}

.story-rank span {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  background: var(--dark);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}

.story-rank li:first-child span {
  background: var(--accent);
}

.story-rank a {
  display: block;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.45;
}

.story-rank small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.metric-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 20px;
}

.metric-row span {
  padding-top: 11px;
  border-top: 3px solid var(--accent);
  color: var(--muted);
  font-size: 12px;
}

.metric-row strong {
  display: block;
  color: var(--ink);
  font-size: 24px;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin: 34px 0 14px;
  border-bottom: 2px solid #222;
}

.section-head h2 {
  margin: 0;
  padding-bottom: 10px;
  font-size: 24px;
  line-height: 1;
}

.section-head a {
  padding-bottom: 9px;
  color: var(--muted);
  font-size: 14px;
}

.section-head a:hover { color: var(--accent); }

.category-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.category-card {
  min-height: 158px;
  padding: 18px;
  display: grid;
  align-content: space-between;
  transition: transform .18s ease, box-shadow .18s ease;
}

.category-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.category-card strong {
  display: block;
  margin: 6px 0;
  font-size: 17px;
}

.category-card p,
.category-card small {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.weekday {
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
}

.main-grid,
.article-page {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 18px;
  align-items: start;
}

.article-list {
  display: grid;
  gap: 12px;
}

.article-card {
  min-height: 154px;
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 18px;
  padding: 14px;
}

.thumb {
  min-height: 126px;
  display: block;
  overflow: hidden;
  background: var(--accent-soft);
}

.thumb img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 126px;
  object-fit: cover;
}

.meta-line,
.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  color: #8a8a8a;
  font-size: 12px;
}

.article-card h3 {
  margin: 7px 0 8px;
  font-size: 21px;
  line-height: 1.28;
}

.article-card h3 a:hover { color: var(--accent); }

.article-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.sidebar {
  display: grid;
  gap: 14px;
}

.panel {
  padding: 18px;
}

.panel h2 {
  margin: 0 0 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  font-size: 18px;
}

.panel p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.newsletter-panel {
  display: grid;
  gap: 12px;
  padding: 18px;
  border: 1px solid var(--line);
  background: var(--paper);
}

.newsletter-panel h2 {
  margin: 0;
  font-size: 18px;
}

.newsletter-panel p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.signup-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.signup-row span {
  min-height: 38px;
  display: flex;
  align-items: center;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--muted);
  background: #fff;
  font-size: 14px;
}

.signup-row b {
  min-width: 78px;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  background: var(--accent);
  color: #fff;
  font-size: 14px;
}

.rank-list {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.rank-list li {
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 10px;
  align-items: start;
  font-size: 14px;
}

.rank-list span {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  background: var(--dark);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}

.rank-list li:first-child span { background: var(--accent); }

.archive-hero {
  padding: 34px;
  background: #fff;
  border: 1px solid var(--line);
}

.archive-hero h1 {
  margin: 0 0 10px;
  font-size: clamp(34px, 5vw, 54px);
  line-height: 1.1;
}

.archive-hero p {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
  font-size: 18px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.service-grid article {
  min-height: 182px;
  padding: 20px;
}

.service-grid span {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  border-radius: 6px;
  background: var(--dark);
  color: #fff;
  font-weight: 900;
}

.service-grid h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

.service-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.cta {
  margin-top: 34px;
  padding: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: #1f1f1f;
  color: #fff;
}

.cta h2 {
  margin: 0 0 6px;
  font-size: 26px;
}

.cta p {
  margin: 0;
  color: rgba(255, 255, 255, .72);
}

.post {
  padding: 32px;
  background: #fff;
  border: 1px solid var(--line);
}

.post-header {
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

.post-header h1 {
  max-width: 900px;
  margin: 16px 0 12px;
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.12;
}

.post-header p {
  max-width: 840px;
  color: var(--muted);
  font-size: 18px;
}

.post-content {
  max-width: 820px;
  margin-top: 28px;
  font-size: 17px;
}

.post-content h2,
.post-content h3 {
  margin: 34px 0 12px;
  line-height: 1.25;
}

.post-content h2 { font-size: 28px; }
.post-content h3 { font-size: 22px; }

.post-content p {
  margin: 0 0 18px;
}

.post-content a {
  color: var(--accent-dark);
  border-bottom: 1px solid rgba(54, 165, 201, .35);
}

.post-content ul,
.post-content ol {
  margin: 0 0 22px 22px;
  padding: 0;
}

.post-content li {
  margin: 8px 0;
}

.post-content hr {
  margin: 30px 0;
  border: 0;
  border-top: 1px solid var(--line);
}

.footer {
  padding: 26px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  background: #fff;
  font-size: 13px;
}

.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

@media (max-width: 980px) {
  .nav {
    height: auto;
    padding: 12px 0;
    flex-wrap: wrap;
  }

  .menu {
    order: 3;
    width: 100%;
  }

  .nav-cta {
    margin-left: auto;
  }

  .hero,
  .main-grid,
  .article-page {
    grid-template-columns: 1fr;
  }

  .category-grid,
  .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .page,
  .nav,
  .footer-inner {
    width: min(100% - 22px, 1180px);
  }

  .hero-copy,
  .lead-card {
    min-height: 360px;
    padding: 24px;
  }

  .category-grid,
  .service-grid,
  .metric-row,
  .article-card,
  .signup-row {
    grid-template-columns: 1fr;
  }

  .thumb {
    min-height: 150px;
  }

  .post {
    padding: 22px;
  }

  .cta {
    display: grid;
  }
}
