/* ============================================================
   LOTTO5.VIP - Global Stylesheet
   Site: https://www.lotto5.vip
   Language: Bengali (bn-BD) | Market: Bangladesh
   ============================================================ */

/* ---- CSS Variables / Design Tokens ---- */
:root {
  --color-primary:       #e63946;
  --color-primary-dark:  #c0392b;
  --color-secondary:     #f4d03f;
  --color-accent:        #f4a261;
  --color-success:       #27ae60;
  --color-info:          #3498db;

  --color-bg-dark:       #1a0533;
  --color-bg-mid:        #2d0a5e;
  --color-bg-navy:       #0d1b4b;
  --color-bg-light:      #f8f5ff;
  --color-bg-card:       #ffffff;
  --color-bg-section:    #f2eeff;

  --color-text-main:     #1a1a2e;
  --color-text-muted:    #555577;
  --color-text-light:    #ffffff;
  --color-text-gold:     #f4d03f;

  --color-border:        #e0d8f5;
  --color-border-dark:   #3d1a6e;

  --shadow-sm:   0 2px 8px rgba(0,0,0,0.08);
  --shadow-md:   0 4px 20px rgba(0,0,0,0.12);
  --shadow-lg:   0 8px 40px rgba(0,0,0,0.18);
  --shadow-card: 0 2px 12px rgba(100,50,200,0.10);

  --radius-sm:   6px;
  --radius-md:   12px;
  --radius-lg:   20px;
  --radius-xl:   32px;

  --font-main:   system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;

  --container-max: 1280px;
  --header-h:      72px;
}

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-main);
  color: var(--color-text-main);
  background: var(--color-bg-light);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--color-primary); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--color-primary-dark); }

img { max-width: 100%; height: auto; display: block; }

ul, ol { list-style: none; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-main);
  font-weight: 700;
  line-height: 1.3;
  color: var(--color-text-main);
}

/* ---- Container ---- */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 20px;
}

/* ============================================================
   TOP INFO BAR
   ============================================================ */
.top-bar {
  background: var(--color-bg-dark);
  color: rgba(255,255,255,0.75);
  font-size: 0.8rem;
  padding: 6px 0;
  border-bottom: 1px solid var(--color-border-dark);
}
.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}
.top-bar-left { display: flex; align-items: center; gap: 16px; }
.top-bar-right { display: flex; align-items: center; gap: 12px; }
.top-bar a { color: var(--color-secondary); font-size: 0.78rem; }
.top-bar a:hover { color: #fff; }
.top-bar-badge {
  background: var(--color-primary);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 20px;
  letter-spacing: 0.5px;
}

/* ============================================================
   HEADER
   ============================================================ */
#site-header {
  background: #fff;
  border-bottom: 2px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-sm);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 16px;
}

/* Logo */
.site-logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}
.site-logo img,
.site-logo svg {
  height: 44px;
  max-height: 44px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
}

/* Main Nav */
.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav a {
  color: var(--color-text-main);
  font-size: 0.88rem;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
}
.main-nav a:hover,
.main-nav a.active {
  background: var(--color-bg-section);
  color: var(--color-primary);
}

/* Header CTA Buttons */
.header-ctas {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

/* ---- Button System ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-family: var(--font-main);
  font-size: 0.88rem;
  font-weight: 700;
  padding: 9px 20px;
  border-radius: var(--radius-md);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
  text-decoration: none;
  line-height: 1;
}
.btn-register {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}
.btn-register:hover {
  background: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
  color: #fff;
}
.btn-login {
  background: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}
.btn-login:hover {
  background: var(--color-primary);
  color: #fff;
}
.btn-primary {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}
.btn-primary:hover {
  background: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
  color: #fff;
}
.btn-secondary {
  background: var(--color-secondary);
  color: var(--color-bg-dark);
  border-color: var(--color-secondary);
}
.btn-secondary:hover {
  background: #e6c200;
  border-color: #e6c200;
  color: var(--color-bg-dark);
}
.btn-outline {
  background: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}
.btn-outline:hover {
  background: var(--color-primary);
  color: #fff;
}
.btn-lg {
  font-size: 1rem;
  padding: 14px 32px;
  border-radius: var(--radius-lg);
}
.btn-sm {
  font-size: 0.8rem;
  padding: 6px 14px;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 5px;
}
.mobile-menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text-main);
  border-radius: 2px;
  transition: all 0.3s;
}

/* Mobile Nav Drawer */
.mobile-nav-drawer {
  display: none;
  position: fixed;
  top: 0; right: 0;
  width: 280px;
  height: 100vh;
  background: #fff;
  z-index: 2000;
  box-shadow: var(--shadow-lg);
  padding: 20px;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.3s ease;
}
.mobile-nav-drawer.open { transform: translateX(0); }
.mobile-nav-drawer .close-btn {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  float: right;
  color: var(--color-text-main);
}
.mobile-nav-drawer ul { margin-top: 40px; }
.mobile-nav-drawer ul li { border-bottom: 1px solid var(--color-border); }
.mobile-nav-drawer ul li a {
  display: block;
  padding: 14px 8px;
  color: var(--color-text-main);
  font-weight: 600;
  font-size: 1rem;
}
.mobile-nav-drawer .mobile-ctas {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 20px;
}
.mobile-nav-drawer .mobile-ctas .btn { width: 100%; justify-content: center; }
.overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 1999;
}
.overlay.active { display: block; }

/* ============================================================
   HERO BANNER
   ============================================================ */
.hero-banner {
  width: 100%;
  overflow: hidden;
  position: relative;
  background: var(--color-bg-dark);
}
.hero-banner img,
.hero-banner svg {
  width: 100%;
  height: auto;
  display: block;
  max-height: 480px;
  object-fit: cover;
}

/* ============================================================
   SECTION COMMONS
   ============================================================ */
.section { padding: 60px 0; }
.section-sm { padding: 40px 0; }
.section-lg { padding: 80px 0; }

.section-dark {
  background: var(--color-bg-dark);
  color: var(--color-text-light);
}
.section-mid {
  background: var(--color-bg-mid);
  color: var(--color-text-light);
}
.section-light { background: var(--color-bg-light); }
.section-alt { background: var(--color-bg-section); }
.section-white { background: #fff; }

.section-title {
  text-align: center;
  margin-bottom: 40px;
}
.section-title h2 {
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--color-text-main);
  margin-bottom: 10px;
}
.section-title.light h2 { color: var(--color-text-light); }
.section-title p {
  color: var(--color-text-muted);
  font-size: 1rem;
  max-width: 600px;
  margin: 0 auto;
}
.section-title.light p { color: rgba(255,255,255,0.75); }
.section-divider {
  width: 60px;
  height: 4px;
  background: var(--color-primary);
  border-radius: 2px;
  margin: 12px auto 0;
}

/* ============================================================
   SHORTCUT ICON CARDS (竞品骨架: 快捷入口图块)
   ============================================================ */
.shortcut-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 16px;
  margin-top: 8px;
}
.shortcut-card {
  background: #fff;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 20px 12px;
  text-align: center;
  cursor: pointer;
  transition: all 0.25s;
  box-shadow: var(--shadow-card);
}
.shortcut-card:hover {
  border-color: var(--color-primary);
  box-shadow: 0 4px 20px rgba(230,57,70,0.15);
  transform: translateY(-3px);
}
.shortcut-card .sc-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 10px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
}
.shortcut-card .sc-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--color-text-main);
  line-height: 1.3;
}
.sc-icon-red { background: rgba(230,57,70,0.12); }
.sc-icon-gold { background: rgba(244,208,63,0.18); }
.sc-icon-green { background: rgba(39,174,96,0.12); }
.sc-icon-blue { background: rgba(52,152,219,0.12); }
.sc-icon-purple { background: rgba(142,68,173,0.12); }
.sc-icon-orange { background: rgba(244,162,97,0.15); }

/* ============================================================
   FEATURE CARDS (优势介绍)
   ============================================================ */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}
.feature-card {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 28px 24px;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--color-border);
  transition: box-shadow 0.25s, transform 0.25s;
}
.feature-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}
.feature-card .fc-icon {
  font-size: 2.2rem;
  margin-bottom: 14px;
}
.feature-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--color-text-main);
}
.feature-card p {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.65;
}

/* ============================================================
   CONTENT FEED / ARTICLE LISTING (竞品骨架: 内容流)
   ============================================================ */
.content-feed {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.feed-card {
  background: #fff;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--color-border);
  transition: box-shadow 0.25s, transform 0.25s;
  display: flex;
  flex-direction: column;
}
.feed-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}
.feed-card-img {
  width: 100%;
  aspect-ratio: 16/9;
  background: var(--color-bg-section);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}
.feed-card-img .img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  background: linear-gradient(135deg, var(--color-bg-section), #e8e0ff);
}
.feed-card-body {
  padding: 18px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.feed-card-cat {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 6px;
}
.feed-card-body h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--color-text-main);
  line-height: 1.4;
}
.feed-card-body p {
  font-size: 0.88rem;
  color: var(--color-text-muted);
  line-height: 1.6;
  flex: 1;
}
.feed-card-footer {
  padding: 12px 20px;
  border-top: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.feed-card-date {
  font-size: 0.75rem;
  color: var(--color-text-muted);
}
.feed-card-link {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--color-primary);
}

/* ============================================================
   PROMO / HIGHLIGHT CARDS
   ============================================================ */
.promo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}
.promo-card {
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  color: #fff;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.promo-card::before {
  content: '';
  position: absolute;
  top: -40px; right: -40px;
  width: 160px; height: 160px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
}
.promo-card-red { background: linear-gradient(135deg, #e63946, #c0392b); }
.promo-card-gold { background: linear-gradient(135deg, #f4d03f, #e67e22); color: #1a0533; }
.promo-card-purple { background: linear-gradient(135deg, #8e44ad, #2d0a5e); }
.promo-card-blue { background: linear-gradient(135deg, #2980b9, #0d1b4b); }
.promo-card h3 { font-size: 1.2rem; font-weight: 800; margin-bottom: 10px; }
.promo-card p { font-size: 0.9rem; opacity: 0.9; margin-bottom: 18px; }

/* ============================================================
   RESULT TABLE (彩票结果展示)
   ============================================================ */
.result-table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
}
.result-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  font-size: 0.9rem;
}
.result-table th {
  background: var(--color-bg-dark);
  color: var(--color-text-gold);
  padding: 14px 16px;
  text-align: left;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
}
.result-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--color-border);
  color: var(--color-text-main);
}
.result-table tr:last-child td { border-bottom: none; }
.result-table tr:hover td { background: var(--color-bg-section); }
.result-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  font-weight: 800;
  font-size: 0.85rem;
  margin: 2px;
}
.result-number.gold { background: var(--color-secondary); color: var(--color-bg-dark); }
.result-number.green { background: var(--color-success); }

/* ============================================================
   LOTTERY BALL DISPLAY
   ============================================================ */
.lottery-balls {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.lball {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 1rem;
  color: #fff;
  box-shadow: 0 3px 8px rgba(0,0,0,0.2);
}
.lball-red { background: radial-gradient(circle at 35% 35%, #ff6b7a, #e63946); }
.lball-gold { background: radial-gradient(circle at 35% 35%, #ffe066, #f4d03f); color: #1a0533; }
.lball-blue { background: radial-gradient(circle at 35% 35%, #5dade2, #2980b9); }
.lball-green { background: radial-gradient(circle at 35% 35%, #58d68d, #27ae60); }
.lball-purple { background: radial-gradient(circle at 35% 35%, #bb8fce, #8e44ad); }

/* ============================================================
   FAQ SECTION
   ============================================================ */
.faq-list { max-width: 860px; margin: 0 auto; }
.faq-item {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow-card);
}
.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 18px 22px;
  text-align: left;
  font-family: var(--font-main);
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--color-text-main);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  transition: background 0.2s;
}
.faq-question:hover { background: var(--color-bg-section); }
.faq-question.active { background: var(--color-bg-section); color: var(--color-primary); }
.faq-icon {
  font-size: 1.2rem;
  font-weight: 400;
  flex-shrink: 0;
  transition: transform 0.3s;
  color: var(--color-primary);
}
.faq-question.active .faq-icon { transform: rotate(45deg); }
.faq-answer {
  display: none;
  padding: 0 22px 18px;
  font-size: 0.92rem;
  color: var(--color-text-muted);
  line-height: 1.75;
  border-top: 1px solid var(--color-border);
}
.faq-answer.open { display: block; }

/* ============================================================
   YOUTUBE VIDEO MODULE
   ============================================================ */
.video-section { background: var(--color-bg-section); }
.video-wrapper {
  max-width: 800px;
  margin: 0 auto;
}
.video-responsive {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}
.video-responsive iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  border: none;
  border-radius: var(--radius-lg);
}

/* ============================================================
   CTA SECTION
   ============================================================ */
.cta-section {
  background: linear-gradient(135deg, var(--color-bg-dark), var(--color-bg-mid));
  color: #fff;
  text-align: center;
  padding: 70px 20px;
}
.cta-section h2 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--color-secondary);
  margin-bottom: 14px;
}
.cta-section p {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.85);
  margin-bottom: 30px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}
.cta-buttons {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================================
   LONG-FORM CONTENT AREA (SEO 长文)
   ============================================================ */
.longform-content {
  max-width: 900px;
  margin: 0 auto;
  font-size: 0.97rem;
  line-height: 1.85;
  color: var(--color-text-main);
}
.longform-content h2 {
  font-size: 1.5rem;
  font-weight: 800;
  margin: 36px 0 14px;
  color: var(--color-text-main);
  padding-bottom: 8px;
  border-bottom: 2px solid var(--color-border);
}
.longform-content h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 24px 0 10px;
  color: var(--color-primary);
}
.longform-content p { margin-bottom: 16px; }
.longform-content ul,
.longform-content ol {
  margin: 14px 0 18px 20px;
}
.longform-content ul { list-style: disc; }
.longform-content ol { list-style: decimal; }
.longform-content li { margin-bottom: 8px; }
.longform-content strong { color: var(--color-primary); }
.longform-content a { color: var(--color-primary); text-decoration: underline; }
.longform-content blockquote {
  border-left: 4px solid var(--color-primary);
  padding: 12px 20px;
  background: var(--color-bg-section);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 20px 0;
  font-style: italic;
  color: var(--color-text-muted);
}

/* ============================================================
   BREADCRUMB
   ============================================================ */
.breadcrumb {
  padding: 12px 0;
  font-size: 0.82rem;
  color: var(--color-text-muted);
}
.breadcrumb a { color: var(--color-primary); }
.breadcrumb span { margin: 0 6px; }

/* ============================================================
   PAGE HERO (inner pages)
   ============================================================ */
.page-hero {
  background: linear-gradient(135deg, var(--color-bg-dark) 0%, var(--color-bg-mid) 60%, var(--color-bg-navy) 100%);
  color: #fff;
  padding: 60px 20px 50px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  top: -60px; left: -60px;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: rgba(244,208,63,0.06);
}
.page-hero::after {
  content: '';
  position: absolute;
  bottom: -60px; right: -60px;
  width: 250px; height: 250px;
  border-radius: 50%;
  background: rgba(230,57,70,0.06);
}
.page-hero h1 {
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--color-secondary);
  margin-bottom: 12px;
  position: relative;
  z-index: 1;
}
.page-hero p {
  font-size: 1rem;
  color: rgba(255,255,255,0.85);
  max-width: 640px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* Slots page hero variant */
.page-hero-slots {
  background: linear-gradient(135deg, #0d1b4b 0%, #1a0533 50%, #2d0a5e 100%);
}
/* Sports page hero variant */
.page-hero-sports {
  background: linear-gradient(135deg, #0a2e1a 0%, #1a4a2e 50%, #0d3b1f 100%);
}
/* FAQ page hero variant */
.page-hero-faq {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
}
/* About page hero variant */
.page-hero-about {
  background: linear-gradient(135deg, #2c1654 0%, #1a0533 50%, #3d1a6e 100%);
}
/* Privacy page hero variant */
.page-hero-privacy {
  background: linear-gradient(135deg, #1a2a1a 0%, #0d2b0d 50%, #1a3a1a 100%);
}

/* ============================================================
   ARCHIVE / LISTING PAGE (栏目归档型)
   ============================================================ */
.archive-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 32px;
  align-items: start;
}
.archive-main { min-width: 0; }
.archive-sidebar { position: sticky; top: calc(var(--header-h) + 20px); }

.archive-list { display: flex; flex-direction: column; gap: 24px; }
.archive-item {
  background: #fff;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--color-border);
  display: grid;
  grid-template-columns: 200px 1fr;
  transition: box-shadow 0.25s, transform 0.25s;
}
.archive-item:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.archive-item-img {
  background: var(--color-bg-section);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  min-height: 140px;
}
.archive-item-body { padding: 20px 22px; }
.archive-item-cat {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 6px;
}
.archive-item-body h2 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--color-text-main);
}
.archive-item-body p {
  font-size: 0.88rem;
  color: var(--color-text-muted);
  line-height: 1.6;
  margin-bottom: 14px;
}
.archive-item-meta {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  display: flex;
  gap: 12px;
  align-items: center;
}

/* Sidebar Widget */
.sidebar-widget {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 22px;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--color-border);
  margin-bottom: 20px;
}
.sidebar-widget h3 {
  font-size: 0.95rem;
  font-weight: 800;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--color-primary);
  color: var(--color-text-main);
}
.sidebar-links li { border-bottom: 1px solid var(--color-border); }
.sidebar-links li:last-child { border-bottom: none; }
.sidebar-links li a {
  display: block;
  padding: 10px 0;
  font-size: 0.88rem;
  color: var(--color-text-main);
  font-weight: 500;
  transition: color 0.2s;
}
.sidebar-links li a:hover { color: var(--color-primary); }

/* ============================================================
   ABOUT PAGE - Story / Blog Style
   ============================================================ */
.about-story {
  max-width: 860px;
  margin: 0 auto;
}
.about-story .story-meta {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--color-border);
  flex-wrap: wrap;
}
.story-author {
  display: flex;
  align-items: center;
  gap: 10px;
}
.story-author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 800;
  font-size: 1.1rem;
}
.story-author-name { font-weight: 700; font-size: 0.9rem; }
.story-author-role { font-size: 0.78rem; color: var(--color-text-muted); }
.story-date { font-size: 0.8rem; color: var(--color-text-muted); }

.timeline {
  position: relative;
  padding-left: 32px;
  margin: 30px 0;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 8px; top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--color-primary), var(--color-secondary));
}
.timeline-item {
  position: relative;
  margin-bottom: 28px;
}
.timeline-item::before {
  content: '';
  position: absolute;
  left: -28px; top: 6px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--color-primary);
  border: 2px solid #fff;
  box-shadow: 0 0 0 2px var(--color-primary);
}
.timeline-year {
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 4px;
}
.timeline-item h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 6px;
}
.timeline-item p {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.65;
}

/* ============================================================
   STATS ROW
   ============================================================ */
.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 20px;
  text-align: center;
}
.stat-item { padding: 20px; }
.stat-number {
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--color-secondary);
  line-height: 1;
  margin-bottom: 6px;
}
.stat-label {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.8);
  font-weight: 500;
}

/* ============================================================
   FOOTER (重型信息架构)
   ============================================================ */
#site-footer {
  background: var(--color-bg-dark);
  color: rgba(255,255,255,0.8);
  padding: 60px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--color-border-dark);
}
.footer-col h4 {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--color-secondary);
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--color-border-dark);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.footer-col p {
  font-size: 0.88rem;
  line-height: 1.75;
  color: rgba(255,255,255,0.7);
  margin-bottom: 14px;
}
.footer-links { display: flex; flex-direction: column; gap: 8px; }
.footer-links a {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.7);
  transition: color 0.2s;
  padding: 2px 0;
}
.footer-links a:hover { color: var(--color-secondary); }

.footer-contact { display: flex; flex-direction: column; gap: 12px; }
.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.88rem;
  color: rgba(255,255,255,0.75);
}
.footer-contact-item .ci-label {
  font-weight: 700;
  color: var(--color-secondary);
  min-width: 60px;
  flex-shrink: 0;
}
.footer-contact-item a { color: rgba(255,255,255,0.75); }
.footer-contact-item a:hover { color: var(--color-secondary); }

.footer-logo-wrap { margin-bottom: 16px; }
.footer-logo-wrap img,
.footer-logo-wrap svg {
  height: 40px;
  width: auto;
  max-width: 160px;
  filter: brightness(0) invert(1);
  opacity: 0.9;
}

.footer-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}
.footer-tag {
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.6);
  font-size: 0.72rem;
  padding: 3px 10px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.12);
}

.footer-partners {
  padding: 20px 0;
  border-bottom: 1px solid var(--color-border-dark);
}
.footer-partners p {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.4);
  text-align: center;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.partner-logos {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}
.partner-logo-item {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-sm);
  padding: 8px 16px;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.5);
  font-weight: 600;
}

.footer-bottom {
  padding: 18px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.footer-copyright {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.45);
}
.footer-bottom-links {
  display: flex;
  gap: 16px;
}
.footer-bottom-links a {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.45);
}
.footer-bottom-links a:hover { color: var(--color-secondary); }

/* ============================================================
   BACK TO TOP
   ============================================================ */
.back-to-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 44px;
  height: 44px;
  background: var(--color-primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: var(--shadow-md);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
  z-index: 999;
  border: none;
  text-decoration: none;
}
.back-to-top.visible { opacity: 1; visibility: visible; }
.back-to-top:hover { background: var(--color-primary-dark); color: #fff; transform: translateY(-3px); }

/* ============================================================
   404 PAGE
   ============================================================ */
.error-page {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
}
.error-page-inner { max-width: 500px; }
.error-code {
  font-size: 8rem;
  font-weight: 900;
  color: var(--color-primary);
  line-height: 1;
  margin-bottom: 10px;
  opacity: 0.15;
}
.error-title {
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 14px;
}
.error-desc {
  color: var(--color-text-muted);
  margin-bottom: 28px;
  font-size: 1rem;
}
.error-links {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================================
   PRIVACY / POLICY PAGE
   ============================================================ */
.policy-content {
  max-width: 860px;
  margin: 0 auto;
  font-size: 0.95rem;
  line-height: 1.85;
}
.policy-content h2 {
  font-size: 1.3rem;
  font-weight: 800;
  margin: 32px 0 12px;
  color: var(--color-text-main);
  padding-left: 14px;
  border-left: 4px solid var(--color-primary);
}
.policy-content h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 20px 0 8px;
  color: var(--color-primary);
}
.policy-content p { margin-bottom: 14px; color: var(--color-text-muted); }
.policy-content ul {
  list-style: disc;
  margin: 10px 0 16px 22px;
}
.policy-content ul li { margin-bottom: 6px; color: var(--color-text-muted); }
.policy-last-updated {
  background: var(--color-bg-section);
  border-radius: var(--radius-sm);
  padding: 10px 16px;
  font-size: 0.82rem;
  color: var(--color-text-muted);
  margin-bottom: 28px;
  border-left: 3px solid var(--color-primary);
}

/* ============================================================
   UTILITY CLASSES
   ============================================================ */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.text-primary { color: var(--color-primary); }
.text-gold { color: var(--color-secondary); }
.text-muted { color: var(--color-text-muted); }
.text-white { color: #fff; }
.fw-bold { font-weight: 700; }
.fw-black { font-weight: 900; }
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }
.d-flex { display: flex; }
.align-center { align-items: center; }
.justify-center { justify-content: center; }
.gap-1 { gap: 8px; }
.gap-2 { gap: 16px; }
.gap-3 { gap: 24px; }
.w-100 { width: 100%; }
.rounded { border-radius: var(--radius-md); }
.shadow { box-shadow: var(--shadow-md); }
.bg-dark { background: var(--color-bg-dark); }
.bg-light { background: var(--color-bg-light); }
.bg-white { background: #fff; }
.p-3 { padding: 24px; }
.p-4 { padding: 32px; }
.hidden { display: none; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .archive-layout { grid-template-columns: 1fr; }
  .archive-sidebar { position: static; }
}

@media (max-width: 768px) {
  :root { --header-h: 60px; }

  .main-nav { display: none; }
  .mobile-menu-toggle { display: flex; }

  .site-logo img, .site-logo svg {
    height: 36px;
    max-height: 36px;
    max-width: 140px;
  }

  .header-ctas .btn-login { display: none; }

  .section { padding: 40px 0; }
  .section-lg { padding: 56px 0; }

  .page-hero h1 { font-size: 1.6rem; }
  .page-hero p { font-size: 0.92rem; }

  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .footer-bottom { flex-direction: column; text-align: center; }

  .archive-item { grid-template-columns: 1fr; }
  .archive-item-img { min-height: 160px; }

  .shortcut-grid { grid-template-columns: repeat(3, 1fr); }

  .feature-grid { grid-template-columns: 1fr; }
  .content-feed { grid-template-columns: 1fr; }
  .promo-grid { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: repeat(2, 1fr); }

  .cta-section h2 { font-size: 1.5rem; }

  .top-bar { display: none; }

  .hero-banner img, .hero-banner svg { max-height: 220px; }
}

@media (max-width: 480px) {
  .shortcut-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-row { grid-template-columns: 1fr 1fr; }
  .btn-lg { font-size: 0.9rem; padding: 12px 22px; }
  .cta-buttons { flex-direction: column; align-items: center; }
  .error-code { font-size: 5rem; }
}
