:root {
  --bg: #070d16;
  --bg-soft: #121c2c;
  --text: #f7f2e9;
  --muted: #9eb3c5;
  --accent: #2dd4bf;
  --accent-2: #ff8a3d;
  --danger: #ef476f;
  --panel: rgba(14, 22, 34, 0.78);
  --panel-strong: rgba(10, 16, 26, 0.9);
  --line: rgba(255, 233, 206, 0.14);
  --glow: rgba(45, 212, 191, 0.35);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: "Space Grotesk", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 14% 16%, rgba(45, 212, 191, 0.28), transparent 44%),
    radial-gradient(circle at 82% 12%, rgba(255, 138, 61, 0.2), transparent 38%),
    radial-gradient(circle at 52% 90%, rgba(86, 109, 255, 0.15), transparent 34%),
    linear-gradient(155deg, #050912 0%, #0c1624 52%, #13263b 100%);
  min-height: 100%;
  overflow-x: hidden;
}

.bg-grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 42px 42px;
  opacity: 0.27;
  z-index: -3;
}

.orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(40px);
  z-index: -2;
  opacity: 0.5;
  animation: float 12s ease-in-out infinite;
}

.orb-1 {
  width: 240px;
  height: 240px;
  top: 10%;
  right: -40px;
  background: rgba(45, 212, 191, 0.55);
}

.orb-2 {
  width: 300px;
  height: 300px;
  left: -80px;
  bottom: 12%;
  background: rgba(255, 138, 61, 0.4);
  animation-delay: -4s;
}

.topbar {
  max-width: 1140px;
  margin: 0 auto;
  padding: 24px 20px 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lang-switch {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  background: rgba(7, 14, 22, 0.8);
}

.lang-btn {
  border: none;
  background: transparent;
  color: var(--muted);
  padding: 7px 10px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
}

.lang-btn.is-active {
  background: var(--accent);
  color: #06201d;
}

.brand {
  letter-spacing: 0.1em;
  font-size: 0.84rem;
  font-weight: 700;
}

.badge {
  border: 1px solid var(--line);
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  color: var(--muted);
}

main {
  max-width: 1140px;
  margin: 0 auto;
  padding: 12px 20px 80px;
}

.hero {
  margin-top: 20px;
  padding: 40px 34px;
  background: linear-gradient(130deg, rgba(13, 27, 43, 0.92), rgba(21, 19, 31, 0.78));
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: 0 26px 45px rgba(0, 0, 0, 0.42);
}

.kicker {
  color: var(--accent);
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  margin: 0 0 8px;
}

h1,
h3,
h4 {
  font-family: "Bebas Neue", sans-serif;
  letter-spacing: 0.02em;
}

h1 {
  margin: 0;
  font-size: clamp(2.2rem, 7.2vw, 4.6rem);
  line-height: 1.05;
  background: linear-gradient(96deg, #f8fbff 0%, #2dd4bf 48%, #ffb27a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 10px 40px rgba(45, 212, 191, 0.18);
}

html[lang="zh"] h1,
html[lang="zh"] h3,
html[lang="zh"] h4 {
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  letter-spacing: 0;
}

html[lang="zh"] h1 {
  line-height: 1.15;
}

.hero-sub {
  margin-top: 14px;
  max-width: 720px;
  color: var(--text);
  font-size: 1.06rem;
  line-height: 1.6;
}

.cn {
  display: block;
  margin-top: 8px;
  color: var(--accent-2);
}

.hero-actions {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

.btn {
  text-decoration: none;
  border-radius: 999px;
  padding: 11px 18px;
  font-weight: 700;
  transition: transform 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  color: #041a18;
  background: var(--accent);
  box-shadow: 0 10px 24px var(--glow);
}

.btn-ghost {
  color: var(--text);
  border: 1px solid var(--line);
}

.ticker-wrap {
  margin-top: 22px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(9, 17, 27, 0.76);
  overflow: hidden;
}

.ticker {
  display: flex;
  white-space: nowrap;
  gap: 26px;
  padding: 12px 16px;
  animation: slide 26s linear infinite;
  color: var(--muted);
  font-size: 0.94rem;
}

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

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
  backdrop-filter: blur(6px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.card h2 {
  margin: 10px 0 6px;
  font-size: 2rem;
  color: var(--accent);
}

.card small {
  color: #85a0b4;
}

.visual {
  margin-top: 26px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 16px;
}

.image-panel,
.copy-panel,
.chart-section,
.news-card,
.footer {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel);
}

.image-panel {
  min-height: 350px;
  overflow: hidden;
}

.image-panel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.03);
  transition: transform 0.5s ease;
}

.image-panel:hover img {
  transform: scale(1.08);
}

.copy-panel {
  padding: 22px;
}

.copy-panel h3 {
  margin: 0;
  font-size: 2rem;
}

.copy-panel p {
  color: #d4dee8;
  line-height: 1.6;
}

.copy-panel ul {
  padding-left: 18px;
  color: var(--muted);
}

.chart-section {
  margin-top: 24px;
  padding: 20px;
}

.photo-mosaic {
  margin-top: 24px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(12, 20, 33, 0.9), rgba(11, 18, 29, 0.82));
  padding: 20px;
}

.mosaic-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 12px;
}

.mosaic-main,
.mosaic-tile {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
}

.mosaic-main {
  grid-row: span 2;
  min-height: 380px;
}

.mosaic-main img,
.mosaic-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.03);
  transition: transform 0.45s ease;
}

.mosaic-main:hover img,
.mosaic-tile:hover img {
  transform: scale(1.08);
}

.mosaic-main::after,
.mosaic-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(5, 8, 14, 0.76), rgba(5, 8, 14, 0.1));
}

.mosaic-overlay,
.tile-caption {
  position: absolute;
  z-index: 2;
}

.mosaic-overlay {
  left: 16px;
  right: 16px;
  bottom: 14px;
}

.mosaic-overlay h4 {
  margin: 0 0 6px;
  font-size: 1.85rem;
}

.mosaic-overlay p {
  margin: 0;
  color: #d7e5ef;
  line-height: 1.45;
}

.tile-caption {
  left: 12px;
  right: 12px;
  bottom: 10px;
  color: #e9f5ff;
  font-weight: 700;
  line-height: 1.3;
  font-size: 0.92rem;
}

.signal-board,
.timeline,
.deep-dive {
  margin-top: 24px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel);
  padding: 20px;
}

.live-desk,
.category-feed,
.engagement {
  margin-top: 24px;
}

.longread {
  margin-top: 24px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(13, 20, 33, 0.92), rgba(16, 18, 26, 0.84));
  padding: 20px;
}

.longread-layout {
  display: grid;
  grid-template-columns: 1.5fr 0.85fr;
  gap: 14px;
}

.longread-main,
.longread-side {
  min-width: 0;
}

.longread-hero {
  margin: 0 0 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  position: relative;
}

.longread-hero img {
  width: 100%;
  height: 290px;
  object-fit: cover;
  display: block;
  filter: saturate(1.05);
}

.longread-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(7, 10, 16, 0.78), rgba(7, 10, 16, 0.05));
}

.longread-hero figcaption {
  position: absolute;
  z-index: 2;
  left: 12px;
  bottom: 10px;
  font-size: 0.8rem;
  color: #e8f8ff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  padding: 5px 10px;
  background: rgba(8, 16, 25, 0.7);
}

.longread-body {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(8, 14, 24, 0.7);
  padding: 18px;
}

.longread-body p {
  margin: 0 0 14px;
  color: #d8e6f2;
  line-height: 1.75;
  font-size: 1.01rem;
}

.longread-body h4 {
  margin: 18px 0 10px;
  font-size: 1.9rem;
  color: #f2f9ff;
}

.longread-body blockquote {
  margin: 0 0 12px;
  border-left: 3px solid var(--accent-2);
  background: rgba(255, 138, 61, 0.08);
  border-radius: 0 10px 10px 0;
  padding: 12px 14px;
  color: #ffe4d2;
  line-height: 1.65;
  font-style: italic;
}

.longread-side {
  display: grid;
  gap: 12px;
  align-content: start;
}

.side-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
  background: var(--panel-strong);
}

.side-card h4 {
  margin: 0 0 8px;
  font-size: 1.45rem;
}

.side-card p {
  margin: 0 0 9px;
  color: var(--muted);
  line-height: 1.55;
}

.side-card ul {
  margin: 0;
  padding-left: 18px;
  color: #cbdceb;
  line-height: 1.55;
}

.metric strong {
  color: var(--accent);
}

.cycle-explainer {
  margin-top: 24px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel);
  padding: 20px;
}

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

.cycle-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel-strong);
  padding: 14px;
}

.cycle-card h4 {
  margin: 0 0 8px;
  font-size: 1.5rem;
}

.cycle-card ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.55;
}

.cycle-note {
  margin: 14px 0 0;
  border: 1px solid rgba(45, 212, 191, 0.3);
  border-radius: 12px;
  padding: 12px;
  background: rgba(11, 30, 34, 0.55);
  color: #d7e7f4;
}

.live-desk {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 14px;
}

.live-wire,
.price-board,
.category-feed,
.most-read,
.newsletter,
.media-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel);
  padding: 18px;
}

.section-head.compact h3 {
  font-size: 1.75rem;
}

.section-head.compact p {
  margin-bottom: 10px;
}

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

.wire-list li {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
  background: var(--panel-strong);
  color: #d8e4ee;
  line-height: 1.45;
}

.wire-list span {
  color: var(--accent-2);
  margin-right: 9px;
  font-weight: 700;
}

.wire-list strong {
  color: var(--accent);
  margin-right: 7px;
}

.price-list {
  display: grid;
  gap: 8px;
}

.price-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 8px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
  background: var(--panel-strong);
}

.price-row span {
  color: #d9e7f4;
  font-weight: 700;
}

.price-row b {
  color: #f3f8fd;
}

.price-row em {
  font-style: normal;
  font-weight: 700;
}

.feed-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.feed-btn {
  border: 1px solid var(--line);
  background: rgba(12, 20, 32, 0.72);
  color: var(--text);
  border-radius: 999px;
  padding: 8px 14px;
  font-weight: 700;
  cursor: pointer;
}

.feed-btn.is-active {
  background: var(--accent);
  color: #05211f;
  border-color: transparent;
}

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

.feed-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 13px;
  background: var(--panel-strong);
}

.feed-card h4 {
  margin: 0 0 7px;
  font-size: 1.35rem;
}

.feed-card p {
  margin: 0 0 10px;
  color: var(--muted);
  line-height: 1.5;
}

.feed-card small {
  color: var(--accent-2);
}

.engagement {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 14px;
}

.most-read ol {
  margin: 0;
  padding-left: 22px;
  color: #e0eaf2;
  line-height: 1.7;
}

.newsletter p {
  color: var(--muted);
  line-height: 1.5;
  margin: 0 0 12px;
}

.news-form {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
}

.news-form input {
  flex: 1;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 11px;
  background: rgba(8, 15, 24, 0.9);
  color: var(--text);
}

.news-form button {
  border: none;
  border-radius: 10px;
  padding: 10px 13px;
  background: var(--accent-2);
  color: #2a1404;
  font-weight: 700;
  cursor: pointer;
}

.newsletter small {
  color: var(--muted);
}

.media-card {
  overflow: hidden;
}

.media-card img {
  width: calc(100% + 36px);
  margin: -18px -18px 12px;
  height: 170px;
  object-fit: cover;
}

.media-card h4 {
  margin: 0 0 8px;
  font-size: 1.6rem;
}

.media-card p {
  margin: 0;
  color: var(--muted);
}

.signal-grid {
  margin-top: 8px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.signal-card {
  background: var(--panel-strong);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
}

.signal-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 9px;
}

.signal-top strong {
  font-size: 0.95rem;
}

.signal-top span {
  color: var(--accent);
  font-weight: 700;
}

.meter {
  width: 100%;
  height: 9px;
  border-radius: 999px;
  background: rgba(255, 245, 234, 0.12);
  overflow: hidden;
}

.meter span {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, #2dd4bf, #ff8a3d);
  box-shadow: 0 0 14px var(--glow);
  transition: width 1s cubic-bezier(0.22, 1, 0.36, 1);
}

.signal-card p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.45;
  font-size: 0.9rem;
}

.split-story {
  margin-top: 24px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 14px;
}

.story-block {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel);
  padding: 20px;
}

.story-block h3 {
  margin: 0 0 10px;
  font-size: 2.1rem;
}

.story-block p {
  color: #d4dee8;
  line-height: 1.7;
  margin: 0 0 12px;
}

.quote-block {
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: linear-gradient(145deg, rgba(16, 33, 46, 0.88), rgba(32, 18, 26, 0.72));
}

.quote {
  font-size: 1.2rem;
  color: var(--text);
  margin: 0 0 10px;
}

.quote-meta {
  color: var(--accent);
  margin: 0 0 8px;
}

.quote-cn {
  color: var(--accent-2);
  margin: 0;
}

.timeline-grid {
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.time-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
  background: var(--panel-strong);
}

.time-tag {
  display: inline-block;
  margin-bottom: 7px;
  border: 1px solid rgba(45, 212, 191, 0.4);
  border-radius: 999px;
  padding: 4px 10px;
  color: var(--accent);
  font-size: 0.75rem;
}

.time-card h4 {
  margin: 0 0 8px;
  font-size: 1.45rem;
}

.time-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.table-wrap {
  margin-top: 10px;
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

th,
td {
  padding: 12px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}

th {
  color: #c7d8e6;
  font-weight: 700;
}

td {
  color: #e1ebf4;
}

.up {
  color: var(--accent);
  font-weight: 700;
}

.down {
  color: var(--danger);
  font-weight: 700;
}

.section-head h3 {
  margin: 0;
  font-size: 2rem;
}

.section-head p {
  margin: 4px 0 16px;
  color: var(--muted);
}

#flowChart {
  width: 100%;
  height: auto;
  border-radius: 14px;
  background: rgba(8, 14, 24, 0.8);
  border: 1px solid var(--line);
}

.news-grid {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.news-card {
  overflow: hidden;
  background: linear-gradient(145deg, rgba(14, 22, 34, 0.86), rgba(11, 17, 28, 0.8));
}

.news-card img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  display: block;
  filter: saturate(1.05);
}

.news-card h4,
.news-card p {
  padding: 0 14px;
}

.news-card h4 {
  margin: 14px 0 6px;
  font-size: 1.7rem;
}

.news-card p {
  margin: 0 0 18px;
  color: var(--muted);
  line-height: 1.55;
}

.footer {
  margin-top: 22px;
  padding: 16px;
  text-align: center;
  color: var(--muted);
}

.card,
.story-block,
.signal-card,
.time-card,
.news-card,
.photo-mosaic,
.cycle-card,
.feed-card,
.live-wire,
.price-board,
.most-read,
.newsletter,
.media-card,
.longread,
.side-card,
.copy-panel,
.chart-section,
.signal-board,
.timeline,
.deep-dive {
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.card:hover,
.story-block:hover,
.signal-card:hover,
.time-card:hover,
.news-card:hover,
.photo-mosaic:hover,
.cycle-card:hover,
.feed-card:hover,
.live-wire:hover,
.price-board:hover,
.most-read:hover,
.newsletter:hover,
.media-card:hover,
.longread:hover,
.side-card:hover,
.copy-panel:hover,
.chart-section:hover,
.signal-board:hover,
.timeline:hover,
.deep-dive:hover {
  transform: translateY(-3px);
  border-color: rgba(45, 212, 191, 0.38);
  box-shadow: 0 18px 30px rgba(0, 0, 0, 0.24);
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes slide {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-24px);
  }
}

@media (max-width: 980px) {
  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .signal-grid,
  .timeline-grid,
  .feed-grid,
  .cycle-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mosaic-grid {
    grid-template-columns: 1fr 1fr;
  }

  .mosaic-main {
    grid-column: span 2;
    grid-row: span 1;
    min-height: 280px;
  }

  .live-desk,
  .engagement,
  .longread-layout {
    grid-template-columns: 1fr;
  }

  .visual {
    grid-template-columns: 1fr;
  }

  .split-story {
    grid-template-columns: 1fr;
  }

  .news-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .topbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .topbar-right {
    width: 100%;
    justify-content: space-between;
  }

  .hero {
    padding: 26px 20px;
  }

  .hero-actions {
    flex-wrap: wrap;
  }

  .stats,
  .news-grid,
  .signal-grid,
  .timeline-grid,
  .feed-grid,
  .cycle-grid {
    grid-template-columns: 1fr;
  }

  .mosaic-grid {
    grid-template-columns: 1fr;
  }

  .mosaic-main {
    grid-column: auto;
    min-height: 240px;
  }

  .news-form {
    flex-direction: column;
  }
}

html[dir="rtl"] body {
  text-align: right;
}

html[dir="rtl"] .hero-actions,
html[dir="rtl"] .feed-filters,
html[dir="rtl"] .news-form,
html[dir="rtl"] .topbar,
html[dir="rtl"] .topbar-right {
  flex-direction: row-reverse;
}

html[dir="rtl"] .wire-list,
html[dir="rtl"] .copy-panel ul,
html[dir="rtl"] .most-read ol,
html[dir="rtl"] .cycle-card ul,
html[dir="rtl"] .side-card ul {
  padding-right: 20px;
  padding-left: 0;
}

html[dir="rtl"] .longread-body blockquote {
  border-left: none;
  border-right: 3px solid var(--accent-2);
  border-radius: 10px 0 0 10px;
}
