:root {
  --bg: #f5f7fb;
  --surface: #ffffff;
  --line: #e8ebf2;
  --text: #202632;
  --muted: #6d7685;
  --muted-soft: #98a2b3;
  --brand: #045755;
  --brand-soft: #d7eceb;
  --brand-deep: #03413f;
  --blue: #2f80ed;
  --shadow: 0 12px 32px rgba(16, 24, 40, 0.06);
  --radius-lg: 18px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Sora", "Microsoft YaHei", "PingFang SC", "Noto Sans SC", "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
}

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

button,
input {
  font: inherit;
}

.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 184px;
  padding: 20px 0;
  background: #fff;
  border-right: 1px solid var(--line);
  overflow-y: auto;
  z-index: 20;
}

.sidebar-brand {
  padding: 0 18px 20px;
  border-bottom: 1px solid var(--line);
}

.brand-mark {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-icon {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), #0a7d79);
  color: #ffffff;
  font-weight: 800;
  font-size: 0.92rem;
}

.brand-copy {
  display: grid;
  gap: 2px;
}

.brand-copy strong {
  font-size: 1rem;
}

.brand-copy span {
  color: var(--muted);
  font-size: 0.76rem;
}

.sidebar-nav,
.sidebar-group {
  padding: 14px 12px 0;
}

.nav-item,
.nav-subitem {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 0 16px;
  border-radius: 12px;
  color: var(--text);
}

.nav-item.active {
  background: linear-gradient(135deg, var(--brand-soft), #eef8f7);
  color: var(--brand-deep);
  font-weight: 700;
}

.nav-item:hover,
.nav-subitem:hover,
.topbar-links a:hover,
.headline-list a:hover,
.video-rank a:hover,
.more-link:hover {
  color: var(--brand);
}

.sidebar-title {
  margin: 16px 8px 8px;
  color: var(--muted-soft);
  font-size: 0.86rem;
}

.main-shell {
  margin-left: 184px;
  min-height: 100vh;
}

.topbar {
  display: grid;
  grid-template-columns: auto minmax(320px, 1fr) auto;
  align-items: center;
  gap: 24px;
  padding: 14px 28px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 15;
}

.topbar-left,
.topbar-links {
  display: flex;
  align-items: center;
  gap: 18px;
}

.menu-button {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 34px;
  height: 34px;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
}

.menu-button span {
  width: 20px;
  height: 2px;
  background: #1f2937;
  border-radius: 999px;
}

.region-switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.region-arrow {
  color: var(--muted);
  font-size: 0.78rem;
}

.search-bar {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  min-height: 44px;
  border: 2px solid var(--brand);
  overflow: hidden;
}

.search-bar input {
  height: 100%;
  border: 0;
  padding: 0 16px;
  outline: none;
  background: #fff;
}

.search-bar button {
  height: 100%;
  border: 0;
  padding: 0 18px;
  background: var(--brand);
  color: #ffffff;
  font-weight: 700;
  cursor: pointer;
}

.topbar-links {
  color: var(--muted);
  font-size: 0.92rem;
}

.login-pill {
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--brand);
  color: #ffffff;
  font-weight: 700;
}

.content {
  padding: 18px 22px 32px;
}

.hero-section,
.channel-section,
.rating-section,
.test-section,
.video-main,
.video-rank,
.insight-column,
.member-section {
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.hero-section,
.channel-section,
.rating-section,
.test-section,
.member-section {
  padding: 18px 18px 20px;
  border-radius: var(--radius-lg);
  margin-bottom: 18px;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.section-header h2 {
  margin: 0;
  font-size: 1.12rem;
}

.header-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  color: var(--muted);
  font-size: 0.9rem;
}

.header-tabs span.active {
  color: var(--text);
  font-weight: 700;
  position: relative;
}

.header-tabs span.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -10px;
  height: 3px;
  border-radius: 999px;
  background: var(--brand);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) 280px 340px;
  gap: 10px;
}

.story-visual,
.thumb,
.test-thumb,
.video-thumb {
  position: relative;
  overflow: hidden;
}

.story-visual {
  min-height: 370px;
  padding: 20px;
  display: flex;
  align-items: flex-end;
  color: #fff;
}

.story-visual::before,
.thumb::before,
.test-thumb::before,
.video-thumb::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.58)),
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.14), transparent 28%);
}

.story-visual-red {
  background: linear-gradient(135deg, #8f1d1d, #e45f4f 45%, #3a1f1f);
}

.story-visual-blue {
  min-height: 175px;
  background: linear-gradient(135deg, #0d47a1, #2f80ed 45%, #1d2939);
}

.story-visual-dark {
  min-height: 175px;
  background: linear-gradient(135deg, #3a3a3a, #111827 60%, #50462f);
}

.visual-copy,
.thumb strong,
.thumb-label,
.video-thumb span {
  position: relative;
  z-index: 1;
}

.visual-badge,
.thumb-label {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 10px;
  background: rgba(4, 87, 85, 0.92);
  color: #ffffff;
  font-size: 0.74rem;
  font-weight: 700;
}

.visual-copy h3 {
  margin: 0 0 8px;
  font-size: 1.72rem;
  line-height: 1.2;
}

.visual-copy p,
.feature-card p,
.rating-card p,
.test-copy,
.test-sub,
.video-card p,
.insight-card p,
.policy-card p,
.member-copy p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.story-visual .visual-copy p {
  color: rgba(255, 255, 255, 0.84);
}

.hero-side-cards {
  
  gap: 10px;
}

.headline-list {
  padding: 8px 0 0;
}

.headline-list h3 {
  margin: 0 0 12px;
  color: var(--brand);
  font-size: 1rem;
}

.headline-list ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.headline-list li {
  padding: 7px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 0.95rem;
  line-height: 1.55;
}

.headline-list li:last-child {
  border-bottom: 0;
}

.more-link {
  display: inline-flex;
  margin-top: 12px;
  color: var(--blue);
  font-size: 0.92rem;
}

.card-row,
.rating-grid,
.test-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.feature-card h3,
.rating-card h3,
.test-head h3,
.video-card h3,
.insight-card h3,
.policy-card h3,
.access-card h3 {
  margin: 12px 0 8px;
  font-size: 1rem;
  line-height: 1.5;
}

.thumb {
  min-height: 172px;
  padding: 18px;
  display: flex;
  align-items: flex-end;
  color: #fff;
}

.thumb strong {
  font-size: 1.45rem;
  line-height: 1.15;
}

.thumb-gold {
  background: linear-gradient(135deg, #6c4c1f, #d0a64b 50%, #2d2415);
}

.thumb-sun {
  background: linear-gradient(135deg, #4c5563, #f1c94c 50%, #1d2939);
}

.thumb-night {
  background: linear-gradient(135deg, #171717, #5b3a0d 55%, #7d6c4e);
}

.thumb-earth {
  background: linear-gradient(135deg, #334155, #65844c 50%, #c9a35d);
}

.thumb-ice {
  background: linear-gradient(135deg, #4d6e9e, #c0d8ff 50%, #4c4f56);
}

.rating-card {
  padding: 18px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(4, 87, 85, 0.16) 0, rgba(4, 87, 85, 0.16) 56px, transparent 56px),
    linear-gradient(180deg, #fff, #fbfcff);
}

.score-top {
  display: flex;
  align-items: flex-start;
  gap: 4px;
  margin-bottom: 8px;
}

.score-top strong {
  font-size: 2.2rem;
  line-height: 1;
}

.score-top span {
  margin-top: 3px;
  color: var(--muted);
}

.rating-user {
  margin: 12px 0 10px;
  color: var(--text);
  font-size: 0.88rem;
}

.rating-copy {
  font-size: 0.9rem;
}

.test-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px;
  background: #fff;
}

.test-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.test-head strong {
  color: #111827;
  font-size: 1.65rem;
  white-space: nowrap;
}

.test-sub {
  margin: 4px 0 10px;
  font-size: 0.88rem;
}

.test-thumb {
  min-height: 146px;
  margin-bottom: 10px;
}

.thumb-track-1 {
  background: linear-gradient(135deg, #8bd7d2, #4f86d9 60%, #b8d9f4);
}

.thumb-track-2 {
  background: linear-gradient(135deg, #f4fbff, #b8d3ec 50%, #d1b48f);
}

.thumb-track-3 {
  background: linear-gradient(135deg, #c7e4ff, #5c8ab1 55%, #dba868);
}

.thumb-track-4 {
  background: linear-gradient(135deg, #d8def1, #9ca8db 55%, #bcc8ef);
}

.thumb-track-5 {
  background: linear-gradient(135deg, #d3e2f6, #88a6d5 55%, #9bc58d);
}

.video-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 18px;
  margin-bottom: 18px;
}

.video-main,
.video-rank,
.insight-column {
  padding: 18px;
  border-radius: var(--radius-lg);
}

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

.video-thumb {
  min-height: 174px;
}

.video-thumb span {
  position: absolute;
  right: 10px;
  bottom: 10px;
  padding: 4px 8px;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  font-size: 0.76rem;
}

.video-thumb-1 {
  background: linear-gradient(135deg, #d9d4d4, #806656 55%, #efc96f);
}

.video-thumb-2 {
  background: linear-gradient(135deg, #202938, #6f87a6 55%, #f5c85b);
}

.video-thumb-3 {
  background: linear-gradient(135deg, #191919, #7b5b2e 55%, #d6b655);
}

.video-thumb-4 {
  background: linear-gradient(135deg, #f29d61, #b85f43 55%, #6e3e2e);
}

.video-thumb-5 {
  background: linear-gradient(135deg, #f7bc56, #d37235 55%, #6b4b3e);
}

.video-thumb-6 {
  background: linear-gradient(135deg, #dce7f4, #8aa4c8 55%, #8db7de);
}

.video-thumb-7 {
  background: linear-gradient(135deg, #cbb27b, #6d8db7 55%, #273043);
}

.video-thumb-8 {
  background: linear-gradient(135deg, #e7e7e7, #6e726f 55%, #292929);
}

.compact-header {
  margin-bottom: 10px;
}

.video-rank ol {
  list-style: none;
  margin: 0;
  padding: 0;
}

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

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

.video-rank span {
  font-size: 1.9rem;
  font-weight: 800;
  line-height: 1;
  color: var(--brand);
}

.video-rank li:nth-child(n + 4) span {
  color: #d0d5dd;
}

.insight-section {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 18px;
}

.insight-list,
.policy-stack {
  display: grid;
  gap: 14px;
}

.insight-card,
.policy-card {
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fafbff;
}

.policy-card {
  grid-template-columns: 84px 1fr;
}

.insight-date,
.policy-card strong {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 10px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--brand-soft), #edf8f7);
  color: var(--brand-deep);
  font-weight: 800;
}

.member-section {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) 420px;
  gap: 22px;
  align-items: center;
}

.member-eyebrow {
  display: inline-flex;
  margin-bottom: 8px;
  color: var(--brand);
  font-size: 0.84rem;
  font-weight: 700;
}

.member-copy h2 {
  margin: 0 0 12px;
  font-size: 2rem;
  line-height: 1.2;
}

.member-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.member-tags span {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-deep);
  font-size: 0.86rem;
}

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

.access-card {
  padding: 18px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #fff, #fbfcff);
}

.access-card a {
  display: inline-flex;
  margin-top: 12px;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border-radius: 10px;
  background: var(--brand);
  color: #ffffff;
  font-weight: 700;
}

@media (max-width: 1460px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr) 280px;
  }

  .headline-list {
    grid-column: 1 / -1;
  }

  .card-row,
  .rating-grid,
  .test-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .video-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1180px) {
  .sidebar {
    position: static;
    width: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding-bottom: 12px;
  }

  .main-shell {
    margin-left: 0;
  }

  .sidebar-nav,
  .sidebar-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 12px 12px 0;
  }

  .sidebar-title {
    width: 100%;
  }

  .nav-item,
  .nav-subitem {
    min-height: 40px;
    padding: 0 12px;
    border: 1px solid var(--line);
    background: #fff;
  }

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

  .topbar-left,
  .topbar-links {
    flex-wrap: wrap;
  }

  .video-section,
  .insight-section,
  .member-section {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .content {
    padding: 14px;
  }

  .hero-grid,
  .card-row,
  .rating-grid,
  .test-grid,
  .video-grid,
  .member-actions {
    grid-template-columns: 1fr;
  }

  .section-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .header-tabs span.active::after {
    bottom: -6px;
  }
}
