/* ==========================================================================
   mojiejichang.mom - Celestial Mythic Ring & Amber Starlight Theme
   High-performance Native CSS (< 20KB, Zero external dependencies)
   ========================================================================== */

:root {
  --bg-cosmos: #0c0816;
  --bg-card: #151024;
  --bg-card-alt: #1c1530;
  --bg-card-hover: #221a3b;
  --accent-amber: #f59e0b;
  --accent-gold: #fbbf24;
  --accent-soft: rgba(245, 158, 11, 0.15);
  --accent-glow: rgba(245, 158, 11, 0.28);
  --text-main: #f8fafc;
  --text-body: #cbd5e1;
  --text-muted: #94a3b8;
  --border-subtle: #271f3d;
  --border-focus: #f59e0b;
  --ring-gradient: linear-gradient(135deg, #f59e0b 0%, #fbbf24 50%, #d97706 100%);
  --font-stack: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-cosmos);
}

body {
  font-family: var(--font-stack);
  background-color: var(--bg-cosmos);
  color: var(--text-main);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Hyperlinks base rule: Accent color, same before and after visit */
a, a:visited {
  color: var(--accent-gold);
  text-decoration: none;
  transition: color 0.2s ease, border-color 0.2s ease;
}

a:hover {
  color: #ffffff;
}

img, svg {
  display: block;
}

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ----------------- Header & Nav ----------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(12, 8, 22, 0.94);
  border-bottom: 1px solid var(--border-subtle);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.logo-group, .logo-group:visited {
  display: flex;
  align-items: center;
  gap: 14px;
  color: #fff;
}

.logo-halo-svg {
  width: 40px;
  height: 40px;
}

.logo-title {
  font-size: 1.35rem;
  font-weight: 800;
  background: var(--ring-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: 0.5px;
}

.logo-tag {
  font-size: 0.72rem;
  color: var(--accent-amber);
  background: rgba(245, 158, 11, 0.12);
  padding: 2px 7px;
  border-radius: 999px;
  border: 1px solid rgba(245, 158, 11, 0.25);
  font-weight: 600;
  letter-spacing: 0.5px;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 30px;
  list-style: none;
}

.nav-menu a, .nav-menu a:visited {
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

.nav-menu a:hover {
  color: var(--accent-gold);
}

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

.nav-cta, .nav-cta:visited {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 42px;
  padding: 0 24px;
  font-size: 0.9rem;
  font-weight: 700;
  color: #0c0816;
  background: var(--ring-gradient);
  border-radius: 999px;
  box-shadow: 0 4px 14px var(--accent-glow);
  transition: all 0.2s ease;
}

.nav-cta:hover {
  transform: translateY(-1px);
  filter: brightness(1.08);
  color: #0c0816;
}

/* ----------------- Hero (Centered Narrative Flow) ----------------- */
.hero-center {
  padding: 85px 0 75px;
  text-align: center;
  position: relative;
  background: radial-gradient(circle at 50% 15%, rgba(245, 158, 11, 0.1) 0%, transparent 65%);
}

.hero-halo-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 18px;
  border-radius: 999px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-gold);
  margin-bottom: 24px;
}

.halo-dot-ring {
  width: 12px;
  height: 12px;
  border: 2px solid var(--accent-amber);
  border-radius: 50%;
  display: inline-block;
}

.hero-main-title {
  font-size: 3.1rem;
  font-weight: 900;
  line-height: 1.25;
  letter-spacing: -0.5px;
  max-width: 880px;
  margin: 0 auto 22px;
}

.hero-main-title .amber-text {
  background: var(--ring-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-description {
  font-size: 1.15rem;
  line-height: 1.8;
  color: var(--text-muted);
  max-width: 680px;
  margin: 0 auto 38px;
}

.hero-btn-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 45px;
}

.btn-amber-glow, .btn-amber-glow:visited {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 52px;
  padding: 0 32px;
  font-size: 1.02rem;
  font-weight: 800;
  color: #0c0816;
  background: var(--ring-gradient);
  border-radius: 999px;
  box-shadow: 0 6px 20px var(--accent-glow);
  transition: all 0.2s ease;
}

.btn-amber-glow:hover {
  transform: translateY(-2px);
  filter: brightness(1.1);
  color: #0c0816;
}

.btn-cosmic-ghost, .btn-cosmic-ghost:visited {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 52px;
  padding: 0 28px;
  font-size: 1rem;
  font-weight: 700;
  color: #f8fafc;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  transition: all 0.2s ease;
}

.btn-cosmic-ghost:hover {
  border-color: var(--accent-amber);
  background: var(--bg-card-alt);
  color: #fff;
  transform: translateY(-1px);
}

/* Hero Center Ring Illustration */
.hero-halo-display {
  max-width: 760px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 24px;
  padding: 34px 28px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4);
}

.halo-stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: center;
}

.halo-stat-item {
  padding: 12px;
}

.halo-stat-num {
  font-size: 1.85rem;
  font-weight: 900;
  color: var(--accent-gold);
  line-height: 1.1;
  margin-bottom: 6px;
}

.halo-stat-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ----------------- Section Containers ----------------- */
.section-block {
  padding: 85px 0;
  position: relative;
}

.section-block.alt-bg {
  background: #0f0a1c;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.block-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 56px;
}

.block-tag {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--accent-amber);
  letter-spacing: 1.2px;
  margin-bottom: 10px;
}

.block-heading {
  font-size: 2.3rem;
  font-weight: 900;
  letter-spacing: -0.5px;
  margin-bottom: 14px;
}

.block-intro {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ----------------- 4 Core Advantages (2x2 Grid) ----------------- */
.advantages-grid-4 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.adv-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  padding: 36px 32px;
  display: flex;
  gap: 22px;
  align-items: flex-start;
  transition: all 0.25s ease;
}

.adv-card:hover {
  border-color: var(--border-focus);
  background: var(--bg-card-alt);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
}

.adv-icon-circlet {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background: var(--accent-soft);
  border: 1px solid rgba(245, 158, 11, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.adv-content h3 {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 10px;
  color: #fff;
}

.adv-content p {
  font-size: 0.94rem;
  color: var(--text-body);
  line-height: 1.7;
}

/* ----------------- 4 AI & Streaming Cards (4 Columns) ----------------- */
.media-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.media-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  padding: 30px 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.2s ease;
}

.media-card:hover {
  border-color: rgba(245, 158, 11, 0.5);
  transform: translateY(-3px);
}

.media-top-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent-gold);
  background: rgba(245, 158, 11, 0.12);
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 16px;
}

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

.media-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 20px;
}

.media-tags {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-main);
  padding-top: 14px;
  border-top: 1px solid var(--border-subtle);
}

/* ----------------- Pricing Table (3 Tiers with Ring Radii) ----------------- */
.pricing-flex-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  align-items: stretch;
}

.plan-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 24px;
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  transition: all 0.2s ease;
}

.plan-card.solar-highlight {
  background: linear-gradient(180deg, #1e1638 0%, #151024 100%);
  border: 2px solid var(--accent-amber);
  transform: translateY(-10px);
  box-shadow: 0 16px 36px var(--accent-glow);
}

.solar-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--ring-gradient);
  color: #0c0816;
  font-size: 0.78rem;
  font-weight: 800;
  padding: 4px 16px;
  border-radius: 999px;
  box-shadow: 0 4px 10px var(--accent-glow);
}

.plan-header {
  margin-bottom: 28px;
}

.plan-title {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 6px;
}

.plan-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.plan-cost-box {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin: 22px 0;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--border-subtle);
}

.cost-symbol {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--accent-gold);
}

.cost-digits {
  font-size: 3rem;
  font-weight: 900;
  line-height: 1;
}

.cost-time {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.plan-perks {
  list-style: none;
  margin-bottom: 34px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.perk-row {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.92rem;
  color: var(--text-body);
}

.perk-ring-point {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 2px solid var(--accent-amber);
  flex-shrink: 0;
}

.plan-action-btn, .plan-action-btn:visited {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 50px;
  font-size: 0.98rem;
  font-weight: 800;
  border-radius: 999px;
  transition: all 0.2s ease;
}

.plan-btn-filled, .plan-btn-filled:visited {
  background: var(--ring-gradient);
  color: #0c0816;
  box-shadow: 0 4px 14px var(--accent-glow);
}

.plan-btn-filled:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
  color: #0c0816;
}

.plan-btn-hollow, .plan-btn-hollow:visited {
  background: var(--bg-card-alt);
  color: #fff;
  border: 1px solid var(--border-subtle);
}

.plan-btn-hollow:hover {
  border-color: var(--accent-amber);
  color: var(--accent-gold);
}

/* ----------------- 4 FAQ Items ----------------- */
.faq-stack-4 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  max-width: 860px;
  margin: 0 auto;
}

.faq-card-pill {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 18px;
  padding: 26px 30px;
}

.faq-title-row {
  font-size: 1.15rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.faq-num-ring {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-gold);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 900;
  border: 1px solid rgba(245, 158, 11, 0.4);
  flex-shrink: 0;
}

.faq-answer-body {
  font-size: 0.94rem;
  color: var(--text-body);
  line-height: 1.75;
  padding-left: 38px;
}

/* ----------------- 4 Testimonials (2x2 Grid) ----------------- */
.feedback-grid-4 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 26px;
}

.feedback-bubble {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.feedback-text {
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--text-body);
  margin-bottom: 22px;
}

.feedback-user-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 18px;
  border-top: 1px solid var(--border-subtle);
}

.feedback-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-card-alt);
  border: 2px solid var(--accent-amber);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: var(--accent-gold);
  flex-shrink: 0;
}

.feedback-meta h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
}

.feedback-meta span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ----------------- Footer: Exactly 4 Titles in Chinese ----------------- */
.cosmic-footer {
  padding: 56px 0;
  background: #08050e;
  border-top: 1px solid var(--border-subtle);
  text-align: center;
}

.footer-links-row, .footer-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  list-style: none;
  padding: 0;
  margin: 0 0 24px 0;
}

.footer-links-row a, .footer-links-row a:visited,
.footer-nav a, .footer-nav a:visited {
  color: var(--text-muted);
  font-size: 1rem;
  font-weight: 600;
  transition: color 0.2s ease;
}

.footer-links-row a:hover,
.footer-nav a:hover {
  color: var(--accent-gold);
}

.footer-legal-copy, .footer-copy {
  font-size: 0.82rem;
  color: #4b4460;
  margin: 0;
}

/* ----------------- Hub & Articles Listing Layout (Guides) ----------------- */
.cosmic-hub-hero {
  text-align: center;
  padding: 30px 0 45px;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 50px;
}

.cosmic-hub-hero h1 {
  font-size: 2.6rem;
  font-weight: 900;
  margin-bottom: 14px;
  background: var(--ring-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.cosmic-hub-hero p {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 680px;
  margin: 0 auto;
}

.cosmic-card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  margin-bottom: 60px;
}

.cosmic-guide-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.25s ease;
}

.cosmic-guide-card:hover {
  border-color: var(--accent-amber);
  background: var(--bg-card-alt);
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.4);
}

.guide-pill-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.guide-tag {
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--accent-gold);
  background: rgba(245, 158, 11, 0.12);
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid rgba(245, 158, 11, 0.2);
}

.guide-date {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.guide-card-title {
  font-size: 1.28rem;
  font-weight: 800;
  line-height: 1.45;
  margin-bottom: 14px;
}

.guide-card-title a, .guide-card-title a:visited {
  color: #fff;
  transition: color 0.15s ease;
}

.guide-card-title a:hover {
  color: var(--accent-gold);
}

.guide-card-desc {
  font-size: 0.94rem;
  color: var(--text-body);
  line-height: 1.7;
  margin-bottom: 22px;
}

.guide-enter-btn, .guide-enter-btn:visited {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--accent-gold);
}

.guide-enter-btn:hover {
  color: #fff;
}

/* ----------------- Single Article Detail Layout (Guides) ----------------- */
.cosmic-article-wrap {
  max-width: 860px;
  margin: 0 auto;
  padding: 50px 0 85px;
}

.cosmic-article-head {
  margin-bottom: 38px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-subtle);
}

.cosmic-nav-trail {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 18px;
}

.cosmic-nav-trail a, .cosmic-nav-trail a:visited {
  color: var(--accent-gold);
}

.cosmic-headline {
  font-size: 2.35rem;
  font-weight: 900;
  line-height: 1.32;
  letter-spacing: -0.5px;
  margin-bottom: 18px;
  color: #fff;
}

.cosmic-meta-info {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 0.86rem;
  color: var(--text-muted);
}

.cosmic-content-body {
  color: var(--text-body);
  font-size: 1.05rem;
  line-height: 1.88;
}

.cosmic-content-body p {
  margin-bottom: 22px;
}

.cosmic-content-body h2 {
  font-size: 1.5rem;
  font-weight: 800;
  color: #ffffff;
  margin: 44px 0 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-subtle);
  position: relative;
}

.cosmic-content-body h2::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 50px;
  height: 2px;
  background: var(--ring-gradient);
}

.cosmic-content-body h3 {
  font-size: 1.22rem;
  font-weight: 700;
  color: var(--accent-gold);
  margin: 28px 0 12px;
}

.cosmic-content-body ul, .cosmic-content-body ol {
  margin: 16px 0 24px 24px;
}

.cosmic-content-body li {
  margin-bottom: 10px;
}

/* Hyperlink styling rule inside article body:
   Accent gold/amber, same before and after visit, distinct from body, never blue/purple */
.cosmic-content-body a,
.cosmic-content-body a:visited {
  color: var(--accent-gold) !important;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: all 0.15s ease;
}

.cosmic-content-body a:hover {
  color: #ffffff !important;
  background: rgba(245, 158, 11, 0.15);
}

.cosmic-note-box {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-left: 4px solid var(--accent-amber);
  border-radius: 12px;
  padding: 20px 24px;
  margin: 30px 0;
  color: #e2e8f0;
}

/* ----------------- Subpage Specific ----------------- */
.cosmic-subpage {
  padding: 65px 0 95px;
  max-width: 860px;
  margin: 0 auto;
}

.back-to-portal, .back-to-portal:visited {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 26px;
  color: var(--accent-gold);
  font-size: 0.92rem;
  font-weight: 700;
}

.cosmic-subpage-head {
  margin-bottom: 40px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-subtle);
}

.cosmic-subpage-head h1 {
  font-size: 2.4rem;
  font-weight: 900;
  margin-bottom: 12px;
}

.cosmic-subpage-head p {
  font-size: 1.05rem;
  color: var(--text-muted);
}

.cosmic-article {
  line-height: 1.85;
  color: var(--text-body);
}

.cosmic-article h2 {
  font-size: 1.45rem;
  font-weight: 800;
  color: #fff;
  margin: 36px 0 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-subtle);
}

.cosmic-article h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--accent-gold);
  margin: 24px 0 12px;
}

.cosmic-article p {
  margin-bottom: 16px;
}

.cosmic-article ul {
  margin: 12px 0 20px 24px;
}

.cosmic-article li {
  margin-bottom: 8px;
}

/* ----------------- Mobile Media Queries ----------------- */
@media (max-width: 960px) {
  .advantages-grid-4,
  .media-grid-4,
  .pricing-flex-3,
  .feedback-grid-4,
  .cosmic-card-grid {
    grid-template-columns: 1fr;
  }
  .plan-card.solar-highlight {
    transform: none;
  }
}

@media (max-width: 640px) {
  .container {
    padding: 0 16px;
  }
  .hero-main-title, .cosmic-headline {
    font-size: 2.1rem;
  }
  .hero-btn-row {
    flex-direction: column;
    width: 100%;
  }
  .btn-amber-glow, .btn-cosmic-ghost {
    width: 100%;
    min-height: 48px;
  }
  .halo-stat-row {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .nav-cta {
    display: none;
  }
  .nav-menu {
    gap: 14px;
    flex-wrap: wrap;
  }
  .nav-menu a {
    font-size: 0.84rem;
  }
  .footer-links-row, .footer-nav {
    flex-direction: column;
    gap: 16px;
  }
}
