:root {
  --primary: #4f46e5;
  --accent: #7c3aed;
  --bg: #f5f3ff;
  --text: #1e1b4b;
  --white: #ffffff;
  --border: #1e1b4b;
  --shadow: 8px 8px 0px 0px #1e1b4b;
  --font-heading: 'Inter', -apple-system, sans-serif;
  --font-mono: 'Courier New', monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: var(--font-heading);
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.75;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--text);
}

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

.btn-square {
  border: 2px solid var(--border);
  border-radius: 0 !important;
  box-shadow: 4px 4px 0px 0px var(--border);
  padding: 12px 32px;
  font-weight: 700;
  transition: all 0.25s ease;
  background: var(--white);
  color: var(--text);
  display: inline-block;
}

.btn-square:hover {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0px 0px var(--border);
  background: var(--primary);
  color: var(--white);
}

.btn-primary-solid {
  background: var(--primary);
  color: var(--white);
  border-color: var(--border);
}

.btn-primary-solid:hover {
  background: var(--accent);
  color: var(--white);
}

/* Navbar */
.navbar-hm {
  background: var(--bg);
  border-bottom: 3px solid var(--border);
  padding: 16px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar-brand-hm {
  font-size: 2rem;
  font-weight: 900;
  color: var(--text) !important;
  letter-spacing: -0.02em;
}

.navbar-brand-hm i {
  color: var(--primary);
  margin-right: 6px;
}

.navbar-toggler-hm {
  border: 2px solid var(--border);
  border-radius: 0;
  padding: 8px 12px;
  background: var(--white);
}

.navbar-toggler-hm i {
  font-size: 1.2rem;
  color: var(--text);
}

.nav-link-hm {
  font-weight: 700;
  color: var(--text) !important;
  margin: 0 12px;
  padding: 6px 4px !important;
  border-bottom: 2px solid transparent;
  transition: all 0.2s;
  font-size: 0.95rem;
}

.nav-link-hm:hover {
  border-bottom-color: var(--primary);
  color: var(--primary) !important;
}

/* Hero */
.hero-section {
  background: var(--bg);
  border-bottom: 3px solid var(--border);
  padding: 80px 0 60px;
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  background-image: linear-gradient(135deg, rgba(79, 70, 229, 0.08) 0%, rgba(124, 58, 237, 0.08) 100%);
  background-size: cover;
}

.hero-stats {
  display: flex;
  gap: 32px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}

.stat-item {
  border: 3px solid var(--border);
  background: var(--white);
  box-shadow: var(--shadow);
  padding: 20px 28px;
  min-width: 150px;
}

.stat-number {
  font-family: var(--font-mono);
  font-size: 2.6rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
  display: block;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text);
  opacity: 0.7;
}

.hero-title {
  font-size: 3.8rem;
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 20px;
}

.hero-title span {
  color: var(--primary);
}

.hero-subtitle {
  font-size: 1.2rem;
  opacity: 0.85;
  max-width: 520px;
  margin-bottom: 36px;
  font-weight: 400;
}

/* Section base */
.section-base {
  padding: 80px 0;
  border-bottom: 3px solid var(--border);
}

.section-title {
  font-size: 2.4rem;
  font-weight: 900;
  margin-bottom: 12px;
  display: inline-block;
  border-bottom: 4px solid var(--primary);
  padding-bottom: 6px;
}

.section-sub {
  opacity: 0.7;
  font-weight: 400;
  max-width: 640px;
  margin-bottom: 40px;
}

/* Introduction long-form */
.intro-text {
  font-size: 1.1rem;
  line-height: 1.9;
}

.intro-text strong {
  color: var(--primary);
}

/* Timeline */
.timeline-wrap {
  position: relative;
  padding-left: 36px;
}

.timeline-wrap::before {
  content: '';
  position: absolute;
  left: 10px;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--border);
}

.timeline-item {
  position: relative;
  padding: 20px 0 20px 24px;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -34px;
  top: 28px;
  width: 16px;
  height: 16px;
  background: var(--primary);
  border: 3px solid var(--border);
}

.timeline-date {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.timeline-title {
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 4px;
}

.timeline-desc {
  opacity: 0.8;
}

/* Comparison Table */
.table-hm {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border: 3px solid var(--border);
  box-shadow: var(--shadow);
}

.table-hm th, .table-hm td {
  border: 2px solid var(--border);
  padding: 14px 20px;
  text-align: center;
  font-size: 0.95rem;
}

.table-hm th {
  background: var(--primary);
  color: var(--white);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
}

.table-hm td:first-child {
  font-weight: 700;
}

.table-hm tr:nth-child(even) {
  background: var(--bg);
}

.table-hm .table-highlight {
  background: rgba(79, 70, 229, 0.12) !important;
  font-weight: 700;
}

/* FAQ */
.accordion-hm {
  border: 3px solid var(--border);
  background: var(--white);
  box-shadow: var(--shadow);
}

.faq-item {
  border-bottom: 2px solid var(--border);
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-question {
  padding: 18px 24px;
  cursor: pointer;
  font-weight: 700;
  font-size: 1.05rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--white);
  transition: background 0.2s;
}

.faq-question:hover {
  background: var(--bg);
}

.faq-question i {
  color: var(--primary);
  transition: transform 0.3s;
}

.faq-answer {
  padding: 0 24px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
  opacity: 0;
  line-height: 1.8;
}

.faq-item.active .faq-answer {
  max-height: 300px;
  padding: 0 24px 18px;
  opacity: 1;
}

.faq-item.active .faq-question i {
  transform: rotate(180deg);
}

/* Feature tabs */
.feature-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 32px;
}

.feature-tab-btn {
  border: 2px solid var(--border);
  background: var(--white);
  padding: 10px 24px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 0.95rem;
}

.feature-tab-btn:hover {
  background: var(--bg);
  transform: translateY(-2px);
}

.feature-tab-btn.active {
  background: var(--primary);
  color: var(--white);
  box-shadow: 4px 4px 0px 0px var(--border);
}

.feature-panel {
  display: none;
  border: 3px solid var(--border);
  background: var(--white);
  box-shadow: var(--shadow);
  padding: 32px;
}

.feature-panel.active {
  display: block;
  animation: fadeInUp 0.4s ease;
}

.feature-panel h4 {
  font-size: 1.3rem;
  margin-bottom: 12px;
  color: var(--primary);
}

.feature-panel p {
  margin-bottom: 12px;
}

/* Cards Grid */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.card-hm {
  background: var(--white);
  border: 3px solid var(--border);
  box-shadow: var(--shadow);
  padding: 28px;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.card-hm:hover {
  transform: scale(1.03);
  border-color: var(--primary);
  box-shadow: 10px 10px 0px 0px var(--border);
}

.card-icon {
  width: 56px;
  height: 56px;
  border: 3px solid var(--border);
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--primary);
  margin-bottom: 16px;
}

.card-hm h3 {
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.card-hm p {
  opacity: 0.75;
  font-size: 0.92rem;
  margin-bottom: 0;
}

/* CTA */
.cta-section {
  background: var(--primary);
  color: var(--white);
  border-bottom: 3px solid var(--border);
  padding: 70px 0;
}

.cta-section .section-title {
  color: var(--white);
  border-bottom-color: var(--white);
}

.cta-section .section-sub {
  color: rgba(255, 255, 255, 0.85);
}

.cta-btn {
  background: var(--white);
  color: var(--primary);
  border: 3px solid var(--border);
  box-shadow: 5px 5px 0px 0px var(--border);
}

.cta-btn:hover {
  background: var(--text);
  color: var(--white);
  box-shadow: 2px 2px 0px 0px var(--border);
}

/* Footer */
.footer-hm {
  background: var(--text);
  color: var(--white);
  padding: 50px 0 30px;
}

.footer-brand {
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--white);
  margin-bottom: 12px;
}

.footer-brand i {
  color: var(--accent);
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 8px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--white);
}

.copyright {
  border-top: 2px solid rgba(255, 255, 255, 0.15);
  padding-top: 20px;
  margin-top: 30px;
  font-size: 0.9rem;
  opacity: 0.7;
}

/* Friend Links */
.friend-links {
  background: var(--bg);
  border-bottom: 3px solid var(--border);
  padding: 40px 0;
}

.friend-links-title {
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 16px;
  display: inline-block;
  border-left: 4px solid var(--primary);
  padding-left: 10px;
}

.friend-links-content {
  font-size: 0.9rem;
  opacity: 0.7;
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

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

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive */
@media (max-width: 992px) {
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .hero-title {
    font-size: 2.6rem;
  }
  .stat-item {
    min-width: 120px;
    padding: 16px 20px;
  }
  .stat-number {
    font-size: 2rem;
  }
}

@media (max-width: 768px) {
  .card-grid {
    grid-template-columns: 1fr;
  }
  .hero-section {
    padding: 60px 0 40px;
  }
  .hero-stats {
    gap: 16px;
  }
  .stat-item {
    min-width: calc(50% - 8px);
  }
  .section-title {
    font-size: 1.8rem;
  }
  .table-responsive {
    overflow-x: auto;
  }
}

/* Toggle mobile menu */
.navbar-collapse-hm {
  display: none;
}

.navbar-collapse-hm.show {
  display: block;
}

@media (min-width: 992px) {
  .navbar-collapse-hm {
    display: flex !important;
  }
}

/* --- 子页面追加 --- */
/* 本页专属样式 */
    .about-hero { padding: 6rem 0 4rem; background: var(--bg); }
.about-badge { display: inline-block; background: var(--primary); color: var(--white); font-family: var(--font-mono); font-size: .8rem; padding: .25rem 1rem; border: 2px solid var(--border); box-shadow: 4px 4px 0px 0px var(--border); letter-spacing: .05em; margin-bottom: 1.5rem; }
.about-title { font-family: var(--font-heading); font-weight: 900; font-size: 2.5rem; line-height: 1.2; color: var(--text); margin-bottom: 1rem; }
.about-title span { color: var(--primary); }
.about-sub { font-size: 1.1rem; color: var(--text); opacity: .85; max-width: 720px; margin-bottom: 0; }
.section-base.alt { background: var(--white); }
.card-hm i { font-size: 2rem; color: var(--primary); margin-bottom: 1rem; }
.faq-item h4 { font-family: var(--font-heading); font-weight: 700; font-size: 1.05rem; color: var(--text); margin-bottom: .5rem; }
.faq-item p { color: var(--text); opacity: .8; font-size: .95rem; margin-bottom: 0; }
.cta-box { background: var(--primary); border: 3px solid var(--border); box-shadow: 8px 8px 0px 0px var(--border); padding: 3rem 2rem; text-align: center; }
.cta-box h2 { font-family: var(--font-heading); font-weight: 900; color: var(--white); font-size: 2rem; margin-bottom: 1rem; }
.cta-box p { color: rgba(255,255,255,.9); font-size: 1.1rem; margin-bottom: 1.5rem; }
.cta-box .btn-cta { background: var(--white); color: var(--primary); border: 2px solid var(--border); box-shadow: 4px 4px 0px 0px var(--border); font-weight: 700; padding: .75rem 2rem; text-decoration: none; display: inline-block; transition: all .2s ease; }
.cta-box .btn-cta:hover { background: var(--accent); color: var(--white); }
.about-title { font-size: 2rem; }
.cta-box { padding: 2rem 1rem; }

/* --- 子页面追加 --- */
/* 本页专属样式 — 免责声明页 */
    .disclaimer-wrap {
      padding: 4rem 0;
    }
.disclaimer-card {
      background: var(--white);
      border: 2px solid var(--border);
      box-shadow: var(--shadow);
      padding: 2rem;
      margin-bottom: 2rem;
    }
.disclaimer-card h2 {
      font-size: 1.5rem;
      font-weight: 700;
      margin-bottom: 1rem;
      color: var(--primary);
      font-family: var(--font-heading);
    }
.disclaimer-card p, .disclaimer-card li {
      color: var(--text);
      font-size: 0.95rem;
      line-height: 1.8;
    }
.disclaimer-card ul, .disclaimer-card ol {
      padding-left: 1.2rem;
      margin-bottom: 1rem;
    }
.disclaimer-card li {
      margin-bottom: 0.5rem;
    }
.highlight-box {
      background: var(--bg);
      border-left: 4px solid var(--accent);
      padding: 1rem 1.5rem;
      margin: 1.5rem 0;
    }
.highlight-box p {
      margin: 0;
      font-weight: 500;
    }
.small-note {
      font-size: 0.85rem;
      color: #6c63a0;
      font-style: italic;
    }
.updated-date {
      font-family: var(--font-mono);
      font-size: 0.9rem;
      color: var(--primary);
      font-weight: 600;
    }
.disclaimer-card {
        padding: 1.5rem;
      }

/* --- 子页面追加 --- */
/* 本页专属样式 */
    .guide-hero {
      background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
      color: var(--white);
      padding: 4rem 0;
      position: relative;
      overflow: hidden;
    }
.guide-hero::before {
      content: '📖';
      position: absolute;
      right: -30px;
      top: -20px;
      font-size: 12rem;
      opacity: 0.15;
      transform: rotate(-15deg);
    }
.guide-hero-title {
      font-size: 2.8rem;
      font-weight: 900;
      letter-spacing: -1px;
      position: relative;
      z-index: 1;
    }
.guide-hero-sub {
      font-size: 1.2rem;
      opacity: 0.95;
      position: relative;
      z-index: 1;
    }
.guide-section {
      padding: 4rem 0;
    }
.guide-section-alt {
      background: var(--bg);
    }
.guide-card {
      background: var(--white);
      border: 2px solid var(--border);
      border-radius: 12px;
      padding: 2rem;
      box-shadow: var(--shadow);
      height: 100%;
      transition: transform 0.3s ease;
    }
.guide-card:hover {
      transform: translateY(-5px);
    }
.guide-card-icon {
      font-size: 2.5rem;
      color: var(--primary);
      margin-bottom: 1rem;
    }
.guide-step {
      display: flex;
      align-items: flex-start;
      gap: 1.5rem;
      margin-bottom: 2rem;
    }
.guide-step-num {
      background: var(--primary);
      color: var(--white);
      width: 50px;
      height: 50px;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 1.4rem;
      font-weight: 800;
      flex-shrink: 0;
      border: 3px solid var(--border);
      box-shadow: 4px 4px 0px 0px var(--border);
    }
.guide-step-content {
      flex: 1;
    }
.guide-tip {
      background: var(--bg);
      border-left: 4px solid var(--accent);
      padding: 1rem 1.5rem;
      border-radius: 0 8px 8px 0;
      margin: 1.5rem 0;
    }
.guide-tip i {
      color: var(--accent);
      margin-right: 0.5rem;
    }
.guide-table {
      width: 100%;
      border-collapse: collapse;
      margin: 2rem 0;
    }
.guide-table th {
      background: var(--primary);
      color: var(--white);
      padding: 1rem;
      text-align: left;
      font-weight: 600;
      border: 2px solid var(--border);
    }
.guide-table td {
      padding: 1rem;
      border: 2px solid var(--border);
      background: var(--white);
    }
.guide-table tr:nth-child(even) td {
      background: var(--bg);
    }
.guide-badge {
      display: inline-block;
      background: var(--accent);
      color: var(--white);
      padding: 0.3rem 0.8rem;
      border-radius: 20px;
      font-size: 0.8rem;
      font-weight: 600;
      margin-right: 0.5rem;
      border: 2px solid var(--border);
    }
.guide-hero-title {
        font-size: 2rem;
      }
.guide-step {
        flex-direction: column;
        gap: 1rem;
      }
.guide-step-num {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
      }

/* --- 子页面追加 --- */
/* 页面专属样式 */
    .ranking-hero {
      background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
      color: var(--white);
      padding: 80px 0 60px;
      position: relative;
      overflow: hidden;
    }
.ranking-hero::after {
      content: '🏆';
      position: absolute;
      right: 40px;
      bottom: 20px;
      font-size: 120px;
      opacity: 0.2;
      transform: rotate(-15deg);
    }
.ranking-hero h1 {
      font-size: 3rem;
      font-weight: 800;
      margin-bottom: 20px;
      color: var(--white);
    }
.ranking-hero p {
      font-size: 1.2rem;
      max-width: 600px;
      opacity: 0.95;
    }
.ranking-section {
      padding: 60px 0;
    }
.ranking-section:nth-child(even) {
      background: rgba(79, 70, 229, 0.03);
    }
.ranking-title {
      font-size: 2rem;
      font-weight: 700;
      color: var(--text);
      margin-bottom: 15px;
      padding-bottom: 15px;
      border-bottom: 3px solid var(--primary);
      display: inline-block;
    }
.ranking-subtitle {
      color: var(--text);
      opacity: 0.7;
      margin-bottom: 40px;
      font-size: 1.1rem;
    }
.rank-card {
      background: var(--white);
      border: 2px solid var(--border);
      box-shadow: var(--shadow);
      padding: 20px;
      margin-bottom: 20px;
      transition: all 0.3s ease;
      display: flex;
      align-items: center;
      gap: 20px;
    }
.rank-card:hover {
      transform: translateY(-4px);
      box-shadow: 12px 12px 0px 0px var(--border);
    }
.rank-number {
      font-size: 2.5rem;
      font-weight: 800;
      color: var(--primary);
      min-width: 60px;
      text-align: center;
      font-family: var(--font-mono);
    }
.rank-info {
      flex: 1;
    }
.rank-title {
      font-size: 1.2rem;
      font-weight: 600;
      color: var(--text);
      margin-bottom: 5px;
    }
.rank-meta {
      font-size: 0.9rem;
      color: var(--text);
      opacity: 0.7;
      display: flex;
      gap: 15px;
      flex-wrap: wrap;
    }
.rank-badge {
      background: var(--primary);
      color: var(--white);
      padding: 4px 12px;
      border-radius: 20px;
      font-size: 0.8rem;
      font-weight: 600;
      display: inline-block;
    }
.rank-badge.hot {
      background: #e11d48;
    }
.rank-badge.new {
      background: #16a34a;
    }
.trend-up {
      color: #16a34a;
      font-weight: 600;
    }
.trend-down {
      color: #dc2626;
      font-weight: 600;
    }
.trend-same {
      color: var(--text);
      opacity: 0.6;
      font-weight: 600;
    }
.update-info {
      background: var(--primary);
      color: var(--white);
      padding: 10px 20px;
      border-radius: 8px;
      font-size: 0.9rem;
      display: inline-block;
      margin-bottom: 30px;
    }
.category-tabs {
      display: flex;
      gap: 12px;
      flex-wrap: wrap;
      margin-bottom: 30px;
    }
.category-tab {
      background: var(--white);
      border: 2px solid var(--border);
      padding: 8px 20px;
      font-weight: 600;
      cursor: pointer;
      transition: all 0.2s;
      color: var(--text);
    }
.category-tab:hover, .category-tab.active {
      background: var(--primary);
      color: var(--white);
    }
.genre-tag {
      display: inline-block;
      background: var(--bg);
      padding: 2px 10px;
      border-radius: 4px;
      font-size: 0.8rem;
      margin-right: 8px;
      color: var(--text);
    }
.ranking-hero h1 {
        font-size: 2rem;
      }
.rank-card {
        flex-direction: column;
        text-align: center;
        align-items: center;
      }
.rank-number {
        font-size: 2rem;
      }
.rank-meta {
        justify-content: center;
      }

/* --- Bootstrap 组件配色适配(程序自动补,避免白底黑字) --- */
.table { color:#1e1b4b !important; border-color:rgba(0,0,0,.12) !important; --bs-table-bg:transparent !important; --bs-table-color:#1e1b4b !important; }
