/* roulang page: index */
/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: #0a0e17;
  color: #e8edf5;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; transition: color 0.2s; }
a:hover { color: #ff4d4d; }
img { max-width: 100%; height: auto; display: block; }
button, input, textarea { font-family: inherit; font-size: inherit; outline: none; border: none; }
ul, ol { list-style: none; }

/* ===== DESIGN VARIABLES ===== */
:root {
  --primary: #0f1423;
  --primary-light: #1a2035;
  --secondary: #ff4d4d;
  --secondary-dark: #cc3333;
  --accent: #ffb347;
  --accent-dark: #e6992e;
  --bg: #0a0e17;
  --bg-card: #151b30;
  --bg-card-hover: #1c2440;
  --bg-dark: #080b12;
  --bg-section: #0d1220;
  --text: #e8edf5;
  --text-muted: #8892b0;
  --text-dim: #5a6480;
  --border: #2a3148;
  --border-light: #3a4460;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.2);
  --shadow-md: 0 8px 32px rgba(0,0,0,0.3);
  --shadow-lg: 0 16px 48px rgba(0,0,0,0.4);
  --shadow-glow: 0 0 30px rgba(255,77,77,0.15);
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --max-width: 1200px;
  --header-height: 72px;
}

/* ===== CONTAINER ===== */
.container { width: 100%; max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }
@media (max-width: 768px) { .container { padding: 0 16px; } }

/* ===== SECTION ===== */
.section { padding: 80px 0; }
.section-dark { background: var(--bg-section); }
.section-header { text-align: center; margin-bottom: 48px; }
.section-title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  background: linear-gradient(135deg, #fff 40%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.section-subtitle {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
}
.section-tag {
  display: inline-block;
  background: rgba(255,77,77,0.12);
  color: var(--secondary);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  padding: 4px 14px;
  border-radius: 20px;
  margin-bottom: 16px;
  text-transform: uppercase;
}

/* ===== HEADER / NAV ===== */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--header-height);
  background: rgba(10,14,23,0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(42,49,72,0.4);
  transition: background var(--transition);
}
.header.scrolled { background: rgba(10,14,23,0.96); }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}
.header-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 20px;
  color: #fff;
  letter-spacing: -0.03em;
}
.header-logo .logo-icon {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, var(--secondary), var(--accent));
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: #fff;
}
.header-logo .logo-text span { color: var(--secondary); }
.header-nav { display: flex; align-items: center; gap: 8px; }
.header-nav a {
  padding: 8px 18px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  transition: all var(--transition);
  position: relative;
}
.header-nav a:hover { color: #fff; background: rgba(255,255,255,0.05); }
.header-nav a.active {
  color: #fff;
  background: rgba(255,77,77,0.12);
}
.header-nav a.active::after {
  content: '';
  position: absolute;
  bottom: 2px; left: 50%;
  transform: translateX(-50%);
  width: 20px; height: 3px;
  background: var(--secondary);
  border-radius: 2px;
}
.header-actions { display: flex; align-items: center; gap: 12px; }
.header-search {
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 8px 14px;
  color: #fff;
  font-size: 13px;
  width: 180px;
  transition: all var(--transition);
}
.header-search::placeholder { color: var(--text-dim); }
.header-search:focus { border-color: var(--secondary); background: rgba(255,255,255,0.08); }
.btn-header {
  padding: 8px 20px;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
}
.btn-header-outline {
  background: transparent;
  border: 1px solid var(--border-light);
  color: var(--text);
}
.btn-header-outline:hover { border-color: var(--secondary); color: var(--secondary); }
.btn-header-primary {
  background: linear-gradient(135deg, var(--secondary), var(--secondary-dark));
  color: #fff;
  box-shadow: 0 4px 20px rgba(255,77,77,0.25);
}
.btn-header-primary:hover { transform: translateY(-1px); box-shadow: 0 6px 28px rgba(255,77,77,0.35); }
.header-mobile-toggle { display: none; background: none; color: #fff; font-size: 22px; cursor: pointer; padding: 4px; }

@media (max-width: 900px) {
  .header-nav { display: none; }
  .header-actions .btn-header-outline, .header-actions .header-search { display: none; }
  .header-mobile-toggle { display: block; }
  .header-nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--header-height);
    left: 0; right: 0;
    background: rgba(10,14,23,0.98);
    backdrop-filter: blur(20px);
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
    gap: 4px;
  }
  .header-nav.open a { width: 100%; padding: 12px 16px; }
  .header-nav.open a.active::after { display: none; }
}

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background: url('/assets/images/backpic/back-1.png') center center / cover no-repeat;
  opacity: 0.35;
  z-index: 0;
}
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(10,14,23,0.92) 30%, rgba(10,14,23,0.4) 70%, rgba(10,14,23,0.2) 100%);
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 20% 50%, rgba(255,77,77,0.08) 0%, transparent 60%);
  z-index: 0;
}
.hero-content { position: relative; z-index: 1; max-width: 700px; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,77,77,0.12);
  border: 1px solid rgba(255,77,77,0.2);
  padding: 6px 16px 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  color: var(--secondary);
  margin-bottom: 24px;
  letter-spacing: 0.04em;
}
.hero-badge i { font-size: 10px; }
.hero h1 {
  font-size: clamp(36px, 6vw, 68px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
  color: #fff;
}
.hero h1 span { color: var(--secondary); }
.hero p {
  font-size: clamp(16px, 2vw, 20px);
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 560px;
  margin-bottom: 36px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  border-radius: var(--radius-md);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  border: none;
}
.btn-primary {
  background: linear-gradient(135deg, var(--secondary), var(--secondary-dark));
  color: #fff;
  box-shadow: 0 8px 32px rgba(255,77,77,0.3);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 40px rgba(255,77,77,0.4); }
.btn-secondary {
  background: rgba(255,255,255,0.06);
  color: #fff;
  border: 1px solid var(--border);
}
.btn-secondary:hover { background: rgba(255,255,255,0.1); border-color: var(--text-muted); transform: translateY(-2px); }
.hero-stats {
  display: flex;
  gap: 32px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid rgba(42,49,72,0.3);
}
.hero-stat { }
.hero-stat-number {
  font-size: 28px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
}
.hero-stat-number span { color: var(--accent); }
.hero-stat-label { font-size: 13px; color: var(--text-dim); margin-top: 2px; }
@media (max-width: 768px) {
  .hero { min-height: 70vh; padding: 100px 0 60px; }
  .hero-stats { gap: 20px; flex-wrap: wrap; }
  .hero-stat-number { font-size: 22px; }
}

/* ===== FEATURES ===== */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 3px;
  background: linear-gradient(90deg, var(--secondary), var(--accent));
  opacity: 0;
  transition: opacity var(--transition);
}
.feature-card:hover { transform: translateY(-4px); border-color: var(--border-light); box-shadow: var(--shadow-md); }
.feature-card:hover::before { opacity: 1; }
.feature-icon {
  width: 52px; height: 52px;
  background: rgba(255,77,77,0.1);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: var(--secondary);
  margin-bottom: 20px;
}
.feature-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; color: #fff; }
.feature-card p { font-size: 14px; color: var(--text-muted); line-height: 1.7; }
@media (max-width: 900px) { .features-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .features-grid { grid-template-columns: 1fr; } }

/* ===== CATEGORY ENTRY ===== */
.category-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.category-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: all var(--transition);
  min-height: 260px;
  display: flex;
  align-items: flex-end;
}
.category-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--border-light); }
.category-card img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.3;
  transition: opacity var(--transition);
}
.category-card:hover img { opacity: 0.45; }
.category-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(10,14,23,0.9) 0%, rgba(10,14,23,0.3) 100%);
}
.category-card-content {
  position: relative;
  z-index: 1;
  padding: 32px;
  width: 100%;
}
.category-card-content h3 { font-size: 22px; font-weight: 700; color: #fff; margin-bottom: 6px; }
.category-card-content p { font-size: 14px; color: var(--text-muted); margin-bottom: 14px; }
.category-card-content .btn { font-size: 13px; padding: 10px 22px; }
@media (max-width: 768px) { .category-grid { grid-template-columns: 1fr; } }

/* ===== LATEST POSTS (CMS) ===== */
.posts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.post-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition);
}
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--border-light); }
.post-card-img {
  width: 100%; height: 180px;
  object-fit: cover;
  background: var(--primary-light);
}
.post-card-body { padding: 20px 24px 24px; }
.post-card-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  color: var(--secondary);
  background: rgba(255,77,77,0.1);
  padding: 2px 10px;
  border-radius: 4px;
  margin-bottom: 10px;
  letter-spacing: 0.04em;
}
.post-card h3 { font-size: 16px; font-weight: 700; color: #fff; margin-bottom: 6px; line-height: 1.4; }
.post-card p { font-size: 13px; color: var(--text-muted); line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.post-card-meta { display: flex; align-items: center; gap: 12px; margin-top: 14px; font-size: 12px; color: var(--text-dim); }
.post-card-meta i { margin-right: 4px; }
.empty-posts {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  color: var(--text-dim);
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px dashed var(--border);
}
.empty-posts i { font-size: 40px; margin-bottom: 16px; opacity: 0.5; }
@media (max-width: 900px) { .posts-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .posts-grid { grid-template-columns: 1fr; } }

/* ===== STATS BAR ===== */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
}
.stat-item {
  background: var(--bg-card);
  padding: 36px 24px;
  text-align: center;
  transition: background var(--transition);
}
.stat-item:hover { background: var(--bg-card-hover); }
.stat-number {
  font-size: 32px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
}
.stat-number span { color: var(--accent); }
.stat-label { font-size: 13px; color: var(--text-dim); margin-top: 4px; }
@media (max-width: 768px) { .stats-bar { grid-template-columns: repeat(2, 1fr); } }

/* ===== FAQ ===== */
.faq-grid { max-width: 800px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all var(--transition);
}
.faq-item:hover { border-color: var(--border-light); }
.faq-question {
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  transition: color var(--transition);
  user-select: none;
}
.faq-question:hover { color: var(--secondary); }
.faq-question i { font-size: 14px; color: var(--text-dim); transition: transform var(--transition); }
.faq-item.open .faq-question i { transform: rotate(180deg); color: var(--secondary); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}
.faq-item.open .faq-answer {
  max-height: 300px;
  padding: 0 24px 20px;
}
.faq-answer p { font-size: 14px; color: var(--text-muted); line-height: 1.7; }

/* ===== CTA ===== */
.cta-section {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 64px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: radial-gradient(ellipse at center, rgba(255,77,77,0.06) 0%, transparent 60%);
}
.cta-section h2 {
  font-size: clamp(24px, 3.5vw, 36px);
  font-weight: 800;
  color: #fff;
  margin-bottom: 12px;
  position: relative;
}
.cta-section p {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 500px;
  margin: 0 auto 28px;
  position: relative;
}
.cta-section .btn { position: relative; }
@media (max-width: 600px) { .cta-section { padding: 40px 24px; } }

/* ===== FOOTER ===== */
.footer {
  background: var(--bg-dark);
  border-top: 1px solid var(--border);
  padding: 48px 0 32px;
}
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; }
.footer-brand { max-width: 300px; }
.footer-brand .header-logo { margin-bottom: 12px; }
.footer-brand p { font-size: 13px; color: var(--text-dim); line-height: 1.7; }
.footer-links { display: flex; gap: 48px; flex-wrap: wrap; }
.footer-links-col h4 { font-size: 13px; font-weight: 700; color: #fff; margin-bottom: 16px; letter-spacing: 0.04em; text-transform: uppercase; }
.footer-links-col a {
  display: block;
  font-size: 13px;
  color: var(--text-dim);
  padding: 4px 0;
  transition: color var(--transition);
}
.footer-links-col a:hover { color: var(--secondary); }
.footer-bottom {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
  color: var(--text-dim);
}
.footer-bottom a { color: var(--text-muted); }
.footer-bottom a:hover { color: var(--secondary); }
@media (max-width: 600px) { .footer-inner { flex-direction: column; } .footer-links { gap: 24px; } }

/* ===== UTILITY ===== */
.text-center { text-align: center; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }
.gap-12 { gap: 12px; }
.flex-center { display: flex; align-items: center; justify-content: center; }

/* ===== BREADCRUMB (article) ===== */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-dim);
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--secondary); }
.breadcrumb .current { color: var(--text); }

/* ===== ARTICLE LAYOUT ===== */
.article-header {
  padding: 120px 0 40px;
  background: var(--bg-section);
  border-bottom: 1px solid var(--border);
}
.article-main { padding: 48px 0 80px; }
.article-body {
  max-width: 800px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 48px;
}
.article-body h1 { font-size: clamp(26px, 3.5vw, 38px); font-weight: 800; color: #fff; margin-bottom: 16px; line-height: 1.2; }
.article-meta { display: flex; flex-wrap: wrap; gap: 16px; font-size: 13px; color: var(--text-dim); margin-bottom: 24px; padding-bottom: 20px; border-bottom: 1px solid var(--border); }
.article-meta span { display: flex; align-items: center; gap: 6px; }
.article-meta .tag { color: var(--secondary); background: rgba(255,77,77,0.1); padding: 2px 10px; border-radius: 4px; }
.article-content { font-size: 15px; color: var(--text); line-height: 1.8; }
.article-content p { margin-bottom: 16px; }
.article-content img { border-radius: var(--radius-md); margin: 24px 0; width: 100%; }
.article-not-found {
  text-align: center;
  padding: 80px 20px;
}
.article-not-found i { font-size: 48px; color: var(--text-dim); margin-bottom: 16px; }
.article-not-found h2 { font-size: 24px; color: #fff; margin-bottom: 8px; }
.article-not-found p { color: var(--text-dim); }
.article-not-found a { color: var(--secondary); margin-top: 16px; display: inline-block; }
@media (max-width: 768px) { .article-body { padding: 24px 20px; } }

/* ===== CATEGORY PAGE SPECIFIC ===== */
.category-hero {
  padding: 120px 0 60px;
  background: var(--bg-section);
  border-bottom: 1px solid var(--border);
  position: relative;
}
.category-hero-bg {
  position: absolute;
  inset: 0;
  background: url('/assets/images/backpic/back-2.png') center center / cover no-repeat;
  opacity: 0.15;
}
.category-hero .container { position: relative; z-index: 1; }
.category-hero h1 { font-size: clamp(30px, 4vw, 44px); font-weight: 800; color: #fff; margin-bottom: 8px; }
.category-hero p { font-size: 16px; color: var(--text-muted); max-width: 560px; }

.subcategory-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.subcategory-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  text-align: center;
  transition: all var(--transition);
  cursor: pointer;
}
.subcategory-card:hover { transform: translateY(-3px); border-color: var(--border-light); box-shadow: var(--shadow-sm); }
.subcategory-card i { font-size: 28px; color: var(--secondary); margin-bottom: 12px; }
.subcategory-card h3 { font-size: 15px; font-weight: 700; color: #fff; margin-bottom: 4px; }
.subcategory-card p { font-size: 12px; color: var(--text-dim); }
@media (max-width: 768px) { .subcategory-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .subcategory-grid { grid-template-columns: 1fr; } }

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.animate-in { animation: fadeInUp 0.6s ease both; }
.animate-in-d1 { animation-delay: 0.1s; }
.animate-in-d2 { animation-delay: 0.2s; }
.animate-in-d3 { animation-delay: 0.3s; }
.animate-in-d4 { animation-delay: 0.4s; }

/* roulang page: category1 */
/* ===== 设计变量 ===== */
        :root {
            --primary: #e63946;
            --primary-dark: #c1121f;
            --primary-light: #ff6b6b;
            --secondary: #1d3557;
            --secondary-light: #264653;
            --accent: #f4a261;
            --bg-dark: #0d1b2a;
            --bg-mid: #1b2d45;
            --bg-card: #1b2838;
            --bg-light: #f0f2f5;
            --bg-white: #ffffff;
            --text-light: #f1faee;
            --text-muted: #a8b8c8;
            --text-body: #2c3e50;
            --text-dark: #1a1a2e;
            --border-color: rgba(255, 255, 255, 0.1);
            --border-light: #e0e0e0;
            --radius: 12px;
            --radius-sm: 8px;
            --radius-lg: 20px;
            --shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
            --shadow-sm: 0 4px 16px rgba(0, 0, 0, 0.15);
            --shadow-hover: 0 12px 40px rgba(230, 57, 70, 0.25);
            --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            --font-sans: 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', system-ui, -apple-system, sans-serif;
            --max-width: 1200px;
            --header-height: 72px;
        }

        /* ===== Reset / Base ===== */
        *,
        *::before,
        *::after {
            box-sizing: border-box;
            margin: 0;
            padding: 0;
        }
        html {
            scroll-behavior: smooth;
            -webkit-font-smoothing: antialiased;
        }
        body {
            font-family: var(--font-sans);
            background: var(--bg-dark);
            color: var(--text-light);
            line-height: 1.7;
            font-size: 16px;
            min-height: 100vh;
        }
        a {
            color: var(--primary-light);
            text-decoration: none;
            transition: var(--transition);
        }
        a:hover {
            color: var(--accent);
        }
        img {
            max-width: 100%;
            height: auto;
            display: block;
        }
        ul,
        ol {
            list-style: none;
        }
        button,
        input,
        select,
        textarea {
            font-family: inherit;
            font-size: inherit;
            outline: none;
            border: none;
        }
        button {
            cursor: pointer;
        }
        h1,
        h2,
        h3,
        h4,
        h5,
        h6 {
            line-height: 1.25;
            font-weight: 700;
        }

        /* ===== Container ===== */
        .container {
            max-width: var(--max-width);
            margin: 0 auto;
            padding: 0 24px;
        }
        @media (max-width: 768px) {
            .container {
                padding: 0 16px;
            }
        }

        /* ===== Header / Nav ===== */
        .header {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            z-index: 1000;
            background: rgba(13, 27, 42, 0.92);
            backdrop-filter: blur(16px);
            -webkit-backdrop-filter: blur(16px);
            border-bottom: 1px solid var(--border-color);
            height: var(--header-height);
            transition: var(--transition);
        }
        .header.scrolled {
            background: rgba(13, 27, 42, 0.98);
            box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
        }
        .header .container {
            display: flex;
            align-items: center;
            justify-content: space-between;
            height: 100%;
        }
        .header-logo {
            display: flex;
            align-items: center;
            gap: 10px;
            color: var(--text-light);
            font-weight: 800;
            font-size: 1.4rem;
            letter-spacing: 0.5px;
            transition: var(--transition);
        }
        .header-logo:hover {
            color: var(--primary-light);
            transform: scale(1.02);
        }
        .logo-icon {
            width: 38px;
            height: 38px;
            background: var(--primary);
            border-radius: var(--radius-sm);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.2rem;
            color: #fff;
            box-shadow: 0 0 20px rgba(230, 57, 70, 0.3);
        }
        .logo-text span {
            color: var(--primary-light);
        }
        .header-nav {
            display: flex;
            align-items: center;
            gap: 8px;
        }
        .header-nav a {
            padding: 8px 18px;
            border-radius: var(--radius-sm);
            color: var(--text-muted);
            font-weight: 500;
            font-size: 0.95rem;
            transition: var(--transition);
            position: relative;
        }
        .header-nav a::after {
            content: '';
            position: absolute;
            bottom: 2px;
            left: 50%;
            transform: translateX(-50%) scaleX(0);
            width: 60%;
            height: 3px;
            background: var(--primary);
            border-radius: 4px;
            transition: var(--transition);
        }
        .header-nav a:hover {
            color: var(--text-light);
            background: rgba(255, 255, 255, 0.05);
        }
        .header-nav a:hover::after {
            transform: translateX(-50%) scaleX(1);
        }
        .header-nav a.active {
            color: var(--text-light);
            background: rgba(230, 57, 70, 0.15);
        }
        .header-nav a.active::after {
            transform: translateX(-50%) scaleX(1);
            background: var(--primary);
        }
        .header-actions {
            display: flex;
            align-items: center;
            gap: 12px;
        }
        .header-search {
            display: flex;
            align-items: center;
            background: rgba(255, 255, 255, 0.08);
            border-radius: 30px;
            padding: 6px 16px 6px 20px;
            border: 1px solid var(--border-color);
            transition: var(--transition);
        }
        .header-search:focus-within {
            border-color: var(--primary);
            background: rgba(255, 255, 255, 0.12);
            box-shadow: 0 0 20px rgba(230, 57, 70, 0.15);
        }
        .header-search input {
            background: transparent;
            border: none;
            color: var(--text-light);
            padding: 6px 0;
            width: 160px;
            font-size: 0.9rem;
        }
        .header-search input::placeholder {
            color: var(--text-muted);
        }
        .header-search button {
            background: transparent;
            color: var(--text-muted);
            font-size: 1rem;
            padding: 4px 8px;
            transition: var(--transition);
        }
        .header-search button:hover {
            color: var(--primary-light);
        }
        .btn-cta {
            background: var(--primary);
            color: #fff;
            padding: 10px 24px;
            border-radius: 30px;
            font-weight: 600;
            font-size: 0.9rem;
            transition: var(--transition);
            border: none;
            display: inline-flex;
            align-items: center;
            gap: 8px;
            box-shadow: 0 4px 20px rgba(230, 57, 70, 0.3);
        }
        .btn-cta:hover {
            background: var(--primary-dark);
            transform: translateY(-2px) scale(1.02);
            box-shadow: 0 8px 30px rgba(230, 57, 70, 0.4);
            color: #fff;
        }
        .btn-cta-outline {
            background: transparent;
            color: var(--text-light);
            border: 1.5px solid var(--border-color);
            padding: 9px 22px;
            border-radius: 30px;
            font-weight: 500;
            font-size: 0.9rem;
            transition: var(--transition);
        }
        .btn-cta-outline:hover {
            border-color: var(--primary);
            color: var(--primary-light);
            background: rgba(230, 57, 70, 0.08);
        }
        .menu-toggle {
            display: none;
            background: transparent;
            color: var(--text-light);
            font-size: 1.6rem;
            padding: 4px 8px;
            border-radius: var(--radius-sm);
            transition: var(--transition);
        }
        .menu-toggle:hover {
            color: var(--primary-light);
            background: rgba(255, 255, 255, 0.05);
        }

        /* ===== Mobile Nav ===== */
        .mobile-nav {
            display: none;
            position: fixed;
            top: var(--header-height);
            left: 0;
            right: 0;
            background: rgba(13, 27, 42, 0.98);
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
            border-bottom: 1px solid var(--border-color);
            padding: 16px 24px 24px;
            z-index: 999;
            transform: translateY(-110%);
            transition: var(--transition);
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
        }
        .mobile-nav.open {
            transform: translateY(0);
        }
        .mobile-nav a {
            display: block;
            padding: 12px 16px;
            color: var(--text-muted);
            font-weight: 500;
            border-radius: var(--radius-sm);
            transition: var(--transition);
            border-left: 3px solid transparent;
        }
        .mobile-nav a:hover {
            color: var(--text-light);
            background: rgba(255, 255, 255, 0.05);
            border-left-color: var(--primary);
        }
        .mobile-nav a.active {
            color: var(--text-light);
            background: rgba(230, 57, 70, 0.12);
            border-left-color: var(--primary);
        }
        .mobile-nav .btn-cta {
            margin-top: 12px;
            width: 100%;
            justify-content: center;
            padding: 12px;
        }

        /* ===== Page Banner ===== */
        .page-banner {
            padding-top: calc(var(--header-height) + 40px);
            padding-bottom: 60px;
            background: linear-gradient(135deg, #0d1b2a 0%, #1b2d45 50%, #0d1b2a 100%);
            position: relative;
            overflow: hidden;
            min-height: 320px;
            display: flex;
            align-items: center;
        }
        .page-banner::before {
            content: '';
            position: absolute;
            inset: 0;
            background: url('/assets/images/backpic/back-2.png') center center / cover no-repeat;
            opacity: 0.25;
            z-index: 0;
        }
        .page-banner::after {
            content: '';
            position: absolute;
            inset: 0;
            background: linear-gradient(90deg, rgba(13, 27, 42, 0.85) 0%, rgba(13, 27, 42, 0.4) 100%);
            z-index: 1;
        }
        .page-banner .container {
            position: relative;
            z-index: 2;
        }
        .page-banner h1 {
            font-size: 2.8rem;
            font-weight: 800;
            letter-spacing: -0.5px;
            margin-bottom: 16px;
            background: linear-gradient(135deg, var(--text-light) 30%, var(--primary-light) 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }
        .page-banner p {
            font-size: 1.15rem;
            color: var(--text-muted);
            max-width: 640px;
            line-height: 1.8;
        }
        .page-banner .banner-tags {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
            margin-top: 24px;
        }
        .page-banner .banner-tags span {
            background: rgba(230, 57, 70, 0.15);
            border: 1px solid rgba(230, 57, 70, 0.25);
            padding: 6px 16px;
            border-radius: 30px;
            font-size: 0.85rem;
            color: var(--primary-light);
            font-weight: 500;
        }

        /* ===== Section Common ===== */
        .section {
            padding: 80px 0;
        }
        .section-alt {
            background: var(--bg-mid);
        }
        .section-title {
            text-align: center;
            margin-bottom: 50px;
        }
        .section-title h2 {
            font-size: 2.2rem;
            font-weight: 700;
            margin-bottom: 12px;
            letter-spacing: -0.3px;
        }
        .section-title h2 span {
            color: var(--primary-light);
        }
        .section-title p {
            color: var(--text-muted);
            font-size: 1.05rem;
            max-width: 560px;
            margin: 0 auto;
        }
        .section-title .title-bar {
            width: 60px;
            height: 4px;
            background: var(--primary);
            border-radius: 4px;
            margin: 16px auto 0;
        }

        @media (max-width: 768px) {
            .section {
                padding: 56px 0;
            }
            .section-title h2 {
                font-size: 1.7rem;
            }
            .page-banner h1 {
                font-size: 2rem;
            }
            .page-banner p {
                font-size: 1rem;
            }
        }

        /* ===== Guide Intro ===== */
        .guide-intro-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 48px;
            align-items: center;
        }
        .guide-intro-text h3 {
            font-size: 1.8rem;
            font-weight: 700;
            margin-bottom: 20px;
            line-height: 1.3;
        }
        .guide-intro-text h3 span {
            color: var(--primary-light);
        }
        .guide-intro-text p {
            color: var(--text-muted);
            margin-bottom: 16px;
            font-size: 1.05rem;
        }
        .guide-intro-text .stat-row {
            display: flex;
            gap: 32px;
            margin-top: 28px;
            flex-wrap: wrap;
        }
        .guide-intro-text .stat-item {
            text-align: center;
        }
        .guide-intro-text .stat-item .num {
            font-size: 2.2rem;
            font-weight: 800;
            color: var(--primary-light);
            line-height: 1.2;
        }
        .guide-intro-text .stat-item .label {
            font-size: 0.85rem;
            color: var(--text-muted);
            margin-top: 4px;
        }
        .guide-intro-image {
            border-radius: var(--radius-lg);
            overflow: hidden;
            box-shadow: var(--shadow);
            position: relative;
        }
        .guide-intro-image img {
            width: 100%;
            height: 380px;
            object-fit: cover;
            transition: var(--transition);
        }
        .guide-intro-image:hover img {
            transform: scale(1.03);
        }
        .guide-intro-image .img-overlay {
            position: absolute;
            inset: 0;
            background: linear-gradient(135deg, rgba(230, 57, 70, 0.2), transparent);
            pointer-events: none;
        }

        @media (max-width: 768px) {
            .guide-intro-grid {
                grid-template-columns: 1fr;
                gap: 32px;
            }
            .guide-intro-image img {
                height: 260px;
            }
        }

        /* ===== Guide Cards Grid ===== */
        .guide-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 28px;
        }
        .guide-card {
            background: var(--bg-card);
            border-radius: var(--radius);
            overflow: hidden;
            border: 1px solid var(--border-color);
            transition: var(--transition);
            box-shadow: var(--shadow-sm);
        }
        .guide-card:hover {
            transform: translateY(-6px);
            border-color: rgba(230, 57, 70, 0.3);
            box-shadow: var(--shadow-hover);
        }
        .guide-card .card-img {
            height: 200px;
            overflow: hidden;
            position: relative;
        }
        .guide-card .card-img img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: var(--transition);
        }
        .guide-card:hover .card-img img {
            transform: scale(1.06);
        }
        .guide-card .card-img .card-tag {
            position: absolute;
            top: 12px;
            left: 12px;
            background: var(--primary);
            color: #fff;
            padding: 4px 14px;
            border-radius: 30px;
            font-size: 0.75rem;
            font-weight: 600;
            letter-spacing: 0.5px;
            box-shadow: 0 4px 12px rgba(230, 57, 70, 0.3);
        }
        .guide-card .card-body {
            padding: 24px 22px 26px;
        }
        .guide-card .card-body h3 {
            font-size: 1.2rem;
            font-weight: 700;
            margin-bottom: 10px;
            line-height: 1.35;
        }
        .guide-card .card-body h3 a {
            color: var(--text-light);
            transition: var(--transition);
        }
        .guide-card .card-body h3 a:hover {
            color: var(--primary-light);
        }
        .guide-card .card-body p {
            color: var(--text-muted);
            font-size: 0.92rem;
            line-height: 1.6;
            margin-bottom: 16px;
        }
        .guide-card .card-meta {
            display: flex;
            justify-content: space-between;
            align-items: center;
            font-size: 0.82rem;
            color: var(--text-muted);
            border-top: 1px solid rgba(255, 255, 255, 0.06);
            padding-top: 14px;
        }
        .guide-card .card-meta span i {
            margin-right: 4px;
            color: var(--primary-light);
        }
        .guide-card .card-meta .badge {
            background: rgba(230, 57, 70, 0.12);
            color: var(--primary-light);
            padding: 2px 12px;
            border-radius: 30px;
            font-size: 0.75rem;
            font-weight: 600;
        }

        @media (max-width: 1024px) {
            .guide-grid {
                grid-template-columns: repeat(2, 1fr);
            }
        }
        @media (max-width: 640px) {
            .guide-grid {
                grid-template-columns: 1fr;
            }
            .guide-card .card-img {
                height: 180px;
            }
        }

        /* ===== Guide Categories ===== */
        .cat-tabs {
            display: flex;
            flex-wrap: wrap;
            justify-content: center;
            gap: 12px;
            margin-bottom: 40px;
        }
        .cat-tabs .cat-tab {
            padding: 10px 24px;
            border-radius: 30px;
            font-weight: 500;
            font-size: 0.9rem;
            background: rgba(255, 255, 255, 0.05);
            border: 1px solid var(--border-color);
            color: var(--text-muted);
            transition: var(--transition);
            cursor: pointer;
        }
        .cat-tabs .cat-tab:hover {
            border-color: var(--primary);
            color: var(--text-light);
            background: rgba(230, 57, 70, 0.08);
        }
        .cat-tabs .cat-tab.active {
            background: var(--primary);
            border-color: var(--primary);
            color: #fff;
            box-shadow: 0 4px 20px rgba(230, 57, 70, 0.3);
        }
        .cat-tabs .cat-tab i {
            margin-right: 6px;
        }

        /* ===== Featured List ===== */
        .featured-list {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 20px;
        }
        .featured-item {
            display: flex;
            gap: 18px;
            background: var(--bg-card);
            padding: 18px 20px;
            border-radius: var(--radius);
            border: 1px solid var(--border-color);
            transition: var(--transition);
            align-items: center;
        }
        .featured-item:hover {
            border-color: rgba(230, 57, 70, 0.25);
            transform: translateX(4px);
            box-shadow: var(--shadow-sm);
        }
        .featured-item .fi-num {
            font-size: 1.8rem;
            font-weight: 800;
            color: var(--primary-light);
            min-width: 40px;
            text-align: center;
            opacity: 0.7;
        }
        .featured-item .fi-content h4 {
            font-size: 1rem;
            font-weight: 600;
            margin-bottom: 4px;
        }
        .featured-item .fi-content h4 a {
            color: var(--text-light);
        }
        .featured-item .fi-content h4 a:hover {
            color: var(--primary-light);
        }
        .featured-item .fi-content p {
            font-size: 0.85rem;
            color: var(--text-muted);
        }

        @media (max-width: 768px) {
            .featured-list {
                grid-template-columns: 1fr;
            }
        }

        /* ===== FAQ ===== */
        .faq-list {
            max-width: 800px;
            margin: 0 auto;
            display: flex;
            flex-direction: column;
            gap: 12px;
        }
        .faq-item {
            background: var(--bg-card);
            border-radius: var(--radius);
            border: 1px solid var(--border-color);
            overflow: hidden;
            transition: var(--transition);
        }
        .faq-item:hover {
            border-color: rgba(230, 57, 70, 0.2);
        }
        .faq-question {
            padding: 20px 24px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            cursor: pointer;
            font-weight: 600;
            font-size: 1.05rem;
            color: var(--text-light);
            transition: var(--transition);
            background: transparent;
            border: none;
            width: 100%;
            text-align: left;
        }
        .faq-question:hover {
            color: var(--primary-light);
        }
        .faq-question i {
            transition: var(--transition);
            color: var(--text-muted);
            font-size: 1.1rem;
        }
        .faq-item.open .faq-question i {
            transform: rotate(180deg);
            color: var(--primary-light);
        }
        .faq-answer {
            padding: 0 24px 20px;
            color: var(--text-muted);
            font-size: 0.95rem;
            line-height: 1.7;
            display: none;
        }
        .faq-item.open .faq-answer {
            display: block;
        }

        /* ===== CTA ===== */
        .cta-section {
            background: linear-gradient(135deg, var(--bg-mid), var(--bg-dark));
            border-top: 1px solid var(--border-color);
            border-bottom: 1px solid var(--border-color);
            text-align: center;
            padding: 80px 0;
            position: relative;
            overflow: hidden;
        }
        .cta-section::before {
            content: '';
            position: absolute;
            inset: 0;
            background: url('/assets/images/backpic/back-3.png') center center / cover no-repeat;
            opacity: 0.08;
            z-index: 0;
        }
        .cta-section .container {
            position: relative;
            z-index: 1;
        }
        .cta-section h2 {
            font-size: 2.4rem;
            font-weight: 800;
            margin-bottom: 16px;
        }
        .cta-section h2 span {
            color: var(--primary-light);
        }
        .cta-section p {
            color: var(--text-muted);
            font-size: 1.1rem;
            max-width: 520px;
            margin: 0 auto 32px;
        }
        .cta-section .cta-btns {
            display: flex;
            justify-content: center;
            gap: 16px;
            flex-wrap: wrap;
        }

        @media (max-width: 768px) {
            .cta-section h2 {
                font-size: 1.8rem;
            }
            .cta-section {
                padding: 56px 0;
            }
        }

        /* ===== Footer ===== */
        .footer {
            background: #0a1520;
            border-top: 1px solid var(--border-color);
            padding: 60px 0 0;
        }
        .footer-inner {
            display: grid;
            grid-template-columns: 1.5fr 2fr;
            gap: 48px;
            padding-bottom: 40px;
            border-bottom: 1px solid rgba(255, 255, 255, 0.06);
        }
        .footer-brand .header-logo {
            display: inline-flex;
            margin-bottom: 16px;
        }
        .footer-brand p {
            color: var(--text-muted);
            font-size: 0.92rem;
            line-height: 1.7;
            max-width: 360px;
        }
        .footer-links {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 32px;
        }
        .footer-links-col h4 {
            font-size: 1rem;
            font-weight: 600;
            margin-bottom: 16px;
            color: var(--text-light);
            letter-spacing: 0.5px;
        }
        .footer-links-col a {
            display: block;
            color: var(--text-muted);
            font-size: 0.9rem;
            padding: 5px 0;
            transition: var(--transition);
        }
        .footer-links-col a:hover {
            color: var(--primary-light);
            padding-left: 4px;
        }
        .footer-bottom {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 24px 0;
            flex-wrap: wrap;
            gap: 12px;
            font-size: 0.85rem;
            color: var(--text-muted);
        }
        .footer-bottom a {
            color: var(--primary-light);
        }
        .footer-bottom a:hover {
            color: var(--accent);
        }

        @media (max-width: 768px) {
            .footer-inner {
                grid-template-columns: 1fr;
                gap: 32px;
            }
            .footer-links {
                grid-template-columns: repeat(2, 1fr);
                gap: 24px;
            }
            .footer-bottom {
                flex-direction: column;
                text-align: center;
            }
        }
        @media (max-width: 480px) {
            .footer-links {
                grid-template-columns: 1fr;
            }
        }

        /* ===== Responsive Nav ===== */
        @media (max-width: 868px) {
            .header-nav {
                display: none;
            }
            .header-actions .btn-cta-outline,
            .header-actions .btn-cta {
                display: none;
            }
            .menu-toggle {
                display: block;
            }
            .mobile-nav {
                display: block;
            }
            .header-search input {
                width: 100px;
            }
        }
        @media (min-width: 869px) {
            .mobile-nav {
                display: none !important;
            }
        }

        /* ===== Utility ===== */
        .text-primary {
            color: var(--primary-light);
        }
        .text-center {
            text-align: center;
        }
        .mt-16 {
            margin-top: 16px;
        }
        .mt-24 {
            margin-top: 24px;
        }
        .mt-32 {
            margin-top: 32px;
        }
        .gap-8 {
            gap: 8px;
        }
        .flex-center {
            display: flex;
            align-items: center;
            justify-content: center;
        }

        /* ===== Scrollbar ===== */
        ::-webkit-scrollbar {
            width: 6px;
        }
        ::-webkit-scrollbar-track {
            background: var(--bg-dark);
        }
        ::-webkit-scrollbar-thumb {
            background: var(--primary);
            border-radius: 10px;
        }
        ::-webkit-scrollbar-thumb:hover {
            background: var(--primary-dark);
        }

        /* ===== Focus ===== */
        a:focus-visible,
        button:focus-visible,
        input:focus-visible {
            outline: 2px solid var(--primary-light);
            outline-offset: 2px;
        }

        /* 面包屑 */
        .breadcrumb {
            display: flex;
            align-items: center;
            gap: 8px;
            font-size: 0.88rem;
            color: var(--text-muted);
            margin-bottom: 20px;
            flex-wrap: wrap;
        }
        .breadcrumb a {
            color: var(--text-muted);
        }
        .breadcrumb a:hover {
            color: var(--primary-light);
        }
        .breadcrumb .sep {
            color: var(--text-muted);
            opacity: 0.5;
        }
        .breadcrumb .current {
            color: var(--primary-light);
            font-weight: 500;
        }

/* roulang page: article */
/* ===== 设计变量 ===== */
:root {
  --primary: #0d0d1a;
  --primary-light: #1a1a2e;
  --primary-lighter: #252540;
  --accent: #d4a030;
  --accent-hover: #e8b84a;
  --accent-dark: #b8860b;
  --bg-body: #f5f5f0;
  --bg-card: #ffffff;
  --bg-dark: #0d0d1a;
  --bg-section: #f0efea;
  --text-primary: #1a1a1a;
  --text-secondary: #555555;
  --text-light: #888888;
  --text-white: #f0f0f0;
  --border-color: #e5e5e5;
  --border-light: #f0f0f0;
  --radius: 10px;
  --radius-sm: 6px;
  --radius-lg: 16px;
  --shadow: 0 4px 24px rgba(0,0,0,0.07);
  --shadow-hover: 0 12px 40px rgba(0,0,0,0.12);
  --shadow-dark: 0 8px 32px rgba(0,0,0,0.25);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --font-title: 'PingFang SC', 'Microsoft YaHei', -apple-system, BlinkMacSystemFont, sans-serif;
  --max-width: 1200px;
  --header-height: 72px;
}
/* ===== Reset / Base ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-primary);
  background: var(--bg-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: inherit; text-decoration: none; transition: var(--transition); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }
button, input, textarea { font-family: inherit; font-size: inherit; border: none; outline: none; background: none; }
button { cursor: pointer; }
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}
@media (max-width: 768px) {
  .container { padding: 0 16px; }
}
.section-title {
  font-family: var(--font-title);
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 12px;
  color: var(--text-primary);
}
.section-title .highlight { color: var(--accent); }
.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 600px;
  line-height: 1.6;
}
.section-header {
  text-align: center;
  margin-bottom: 48px;
}
.section-header .section-subtitle { margin: 0 auto; }
@media (max-width: 768px) {
  .section-title { font-size: 1.6rem; }
  .section-header { margin-bottom: 32px; }
}
/* ===== Header / Nav ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(13, 13, 26, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(212, 160, 48, 0.15);
  height: var(--header-height);
  transition: var(--transition);
}
.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}
.header-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.logo-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.2rem;
  box-shadow: 0 4px 12px rgba(212, 160, 48, 0.3);
}
.logo-text {
  font-family: var(--font-title);
  font-size: 1.35rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.5px;
}
.logo-text span { color: var(--accent); }
.header-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}
.header-nav a {
  padding: 8px 18px;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 500;
  color: rgba(255,255,255,0.75);
  transition: var(--transition);
  position: relative;
}
.header-nav a:hover { color: #fff; background: rgba(255,255,255,0.08); }
.header-nav a.active {
  color: #fff;
  background: rgba(212, 160, 48, 0.2);
  box-shadow: inset 0 0 0 1px rgba(212, 160, 48, 0.25);
}
.header-nav a.active::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
}
.header-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.header-search {
  display: flex;
  align-items: center;
  background: rgba(255,255,255,0.08);
  border-radius: 8px;
  padding: 0 14px;
  height: 40px;
  border: 1px solid rgba(255,255,255,0.06);
  transition: var(--transition);
}
.header-search:focus-within {
  background: rgba(255,255,255,0.14);
  border-color: rgba(212, 160, 48, 0.3);
}
.header-search input {
  background: none;
  color: #fff;
  width: 140px;
  padding: 8px 0;
  font-size: 0.9rem;
}
.header-search input::placeholder { color: rgba(255,255,255,0.35); }
.header-search i { color: rgba(255,255,255,0.4); font-size: 0.95rem; }
.header-btn {
  padding: 8px 20px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: var(--transition);
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #0d0d1a;
  box-shadow: 0 4px 16px rgba(212, 160, 48, 0.25);
}
.header-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(212, 160, 48, 0.35);
}
.mobile-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.4rem;
  border-radius: 8px;
  background: rgba(255,255,255,0.06);
}
@media (max-width: 900px) {
  .header-nav { display: none; }
  .header-search { display: none; }
  .header-btn { display: none; }
  .mobile-toggle { display: flex; }
}
/* ===== Mobile Nav ===== */
.mobile-nav {
  display: none;
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  background: rgba(13, 13, 26, 0.98);
  backdrop-filter: blur(20px);
  padding: 20px 24px 28px;
  border-bottom: 1px solid rgba(212, 160, 48, 0.15);
  z-index: 999;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.mobile-nav.open { display: block; }
.mobile-nav a {
  display: block;
  padding: 14px 16px;
  font-size: 1.05rem;
  font-weight: 500;
  color: rgba(255,255,255,0.8);
  border-radius: 10px;
  margin-bottom: 4px;
  transition: var(--transition);
}
.mobile-nav a:hover { background: rgba(255,255,255,0.06); color: #fff; }
.mobile-nav a.active {
  background: rgba(212, 160, 48, 0.15);
  color: var(--accent);
}
/* ===== Article Banner ===== */
.article-banner {
  position: relative;
  padding: 140px 0 80px;
  background: var(--primary);
  overflow: hidden;
  min-height: 380px;
  display: flex;
  align-items: center;
}
.article-banner-bg {
  position: absolute;
  inset: 0;
  background: url('/assets/images/backpic/back-2.png') center/cover no-repeat;
  opacity: 0.35;
  transform: scale(1.05);
  transition: transform 8s ease;
}
.article-banner:hover .article-banner-bg { transform: scale(1.0); }
.article-banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(13,13,26,0.92) 0%, rgba(13,13,26,0.7) 50%, rgba(13,13,26,0.85) 100%);
}
.article-banner .container {
  position: relative;
  z-index: 2;
  width: 100%;
}
.article-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.article-breadcrumb a { color: rgba(255,255,255,0.6); }
.article-breadcrumb a:hover { color: var(--accent); }
.article-breadcrumb .sep { color: rgba(255,255,255,0.3); }
.article-breadcrumb .current { color: rgba(255,255,255,0.8); }
.article-category-badge {
  display: inline-block;
  padding: 6px 16px;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #0d0d1a;
  font-size: 0.8rem;
  font-weight: 700;
  border-radius: 20px;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
  text-transform: uppercase;
}
.article-banner h1 {
  font-family: var(--font-title);
  font-size: 2.6rem;
  font-weight: 800;
  line-height: 1.25;
  color: #fff;
  max-width: 900px;
  margin-bottom: 16px;
  letter-spacing: -0.3px;
}
.article-banner-meta {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
}
.article-banner-meta i { margin-right: 6px; color: var(--accent); }
.article-banner-meta span { display: flex; align-items: center; }
@media (max-width: 768px) {
  .article-banner { padding: 110px 0 50px; min-height: 280px; }
  .article-banner h1 { font-size: 1.8rem; }
  .article-banner-meta { gap: 12px; font-size: 0.8rem; }
}
/* ===== Article Main ===== */
.article-main {
  padding: 48px 0 64px;
  background: var(--bg-body);
}
.article-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 40px;
  align-items: start;
}
@media (max-width: 1024px) {
  .article-layout { grid-template-columns: 1fr; }
}
.article-body {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 40px 44px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border-light);
}
@media (max-width: 768px) {
  .article-body { padding: 24px 20px; }
}
.article-meta-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-bottom: 20px;
  margin-bottom: 28px;
  border-bottom: 2px solid var(--border-light);
}
.article-meta-bar .meta-left {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.article-meta-bar .meta-item {
  font-size: 0.85rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 6px;
}
.article-meta-bar .meta-item i { color: var(--accent); }
.article-meta-bar .meta-item .cat-link {
  color: var(--accent-dark);
  font-weight: 600;
}
.article-meta-bar .meta-item .cat-link:hover { color: var(--accent); }
.article-content {
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--text-primary);
}
.article-content p { margin-bottom: 1.4em; }
.article-content h2, .article-content h3, .article-content h4 {
  font-family: var(--font-title);
  font-weight: 700;
  margin-top: 1.8em;
  margin-bottom: 0.8em;
  color: var(--primary);
}
.article-content h2 { font-size: 1.6rem; }
.article-content h3 { font-size: 1.25rem; }
.article-content ul, .article-content ol { margin-bottom: 1.4em; padding-left: 1.8em; }
.article-content ul li { list-style: disc; margin-bottom: 0.4em; }
.article-content ol li { list-style: decimal; margin-bottom: 0.4em; }
.article-content img {
  border-radius: var(--radius);
  margin: 1.5em 0;
  box-shadow: var(--shadow);
  width: 100%;
  height: auto;
  object-fit: cover;
}
.article-content blockquote {
  border-left: 4px solid var(--accent);
  background: rgba(212, 160, 48, 0.06);
  padding: 16px 24px;
  margin: 1.5em 0;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--text-secondary);
  font-style: italic;
}
.article-content a { color: var(--accent-dark); border-bottom: 1px solid transparent; }
.article-content a:hover { border-bottom-color: var(--accent-dark); }
.article-content code {
  background: #f0efe8;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.9em;
  color: #d63384;
}
/* ===== Sidebar ===== */
.article-sidebar {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.sidebar-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border-light);
}
.sidebar-card h3 {
  font-family: var(--font-title);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--border-light);
  display: flex;
  align-items: center;
  gap: 8px;
}
.sidebar-card h3 i { color: var(--accent); }
.sidebar-list li { margin-bottom: 4px; }
.sidebar-list a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 0.92rem;
  color: var(--text-secondary);
  transition: var(--transition);
}
.sidebar-list a:hover {
  background: rgba(212, 160, 48, 0.08);
  color: var(--primary);
  padding-left: 16px;
}
.sidebar-list a i { color: var(--accent); font-size: 0.8rem; }
.sidebar-cover {
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: 14px;
}
.sidebar-cover img { width: 100%; height: 160px; object-fit: cover; border-radius: var(--radius-sm); }
.sidebar-promo p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 14px;
  line-height: 1.6;
}
.sidebar-promo .btn-block {
  display: block;
  text-align: center;
  padding: 10px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #0d0d1a;
  font-weight: 600;
  font-size: 0.9rem;
  transition: var(--transition);
}
.sidebar-promo .btn-block:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(212, 160, 48, 0.25);
}
/* ===== Article Footer ===== */
.article-footer-bar {
  margin-top: 40px;
  padding-top: 28px;
  border-top: 2px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.article-tags {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.article-tags .tag-label { font-size: 0.85rem; color: var(--text-secondary); font-weight: 500; }
.article-tags .tag {
  padding: 5px 14px;
  background: var(--bg-body);
  border-radius: 20px;
  font-size: 0.8rem;
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
  transition: var(--transition);
}
.article-tags .tag:hover { background: var(--accent); color: #fff; border-color: var(--accent); }
.article-share {
  display: flex;
  align-items: center;
  gap: 8px;
}
.article-share span { font-size: 0.85rem; color: var(--text-secondary); }
.article-share a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-body);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: var(--transition);
}
.article-share a:hover { background: var(--accent); color: #fff; border-color: var(--accent); transform: translateY(-2px); }
/* ===== Article Nav (prev/next) ===== */
.article-prevnext {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 32px;
}
.article-prevnext a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border-radius: var(--radius);
  background: var(--bg-body);
  border: 1px solid var(--border-color);
  transition: var(--transition);
  font-size: 0.9rem;
  color: var(--text-secondary);
}
.article-prevnext a:hover {
  background: var(--bg-card);
  box-shadow: var(--shadow);
  border-color: var(--accent);
  color: var(--primary);
}
.article-prevnext .prev { text-align: left; }
.article-prevnext .next { text-align: right; flex-direction: row-reverse; }
.article-prevnext .dir { font-size: 0.75rem; color: var(--text-light); font-weight: 500; display: block; margin-bottom: 2px; }
@media (max-width: 640px) {
  .article-prevnext { grid-template-columns: 1fr; }
}
/* ===== Not Found ===== */
.not-found-box {
  text-align: center;
  padding: 80px 24px;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  border: 1px solid var(--border-light);
}
.not-found-box .nf-icon {
  font-size: 4rem;
  color: var(--accent);
  margin-bottom: 20px;
  opacity: 0.6;
}
.not-found-box h2 {
  font-family: var(--font-title);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 12px;
}
.not-found-box p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  margin-bottom: 24px;
}
.not-found-box .btn-home {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 32px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #0d0d1a;
  font-weight: 600;
  font-size: 1rem;
  transition: var(--transition);
}
.not-found-box .btn-home:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(212,160,48,0.3); }
/* ===== Related Section ===== */
.related-section {
  padding: 64px 0;
  background: var(--bg-section);
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 32px;
}
@media (max-width: 900px) {
  .related-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .related-grid { grid-template-columns: 1fr; }
}
.related-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border-light);
  transition: var(--transition);
}
.related-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }
.related-card-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}
.related-card-body { padding: 18px 20px 20px; }
.related-card-body h4 {
  font-family: var(--font-title);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--primary);
  line-height: 1.4;
}
.related-card-body p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.related-card-body .rc-meta {
  font-size: 0.75rem;
  color: var(--text-light);
  display: flex;
  align-items: center;
  gap: 8px;
}
.related-card-body .rc-meta i { color: var(--accent); }
/* ===== CTA Section ===== */
.cta-section {
  padding: 72px 0;
  background: var(--primary);
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('/assets/images/backpic/back-3.png') center/cover no-repeat;
  opacity: 0.1;
}
.cta-section .container { position: relative; z-index: 2; text-align: center; }
.cta-section h2 {
  font-family: var(--font-title);
  font-size: 2rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 12px;
}
.cta-section p {
  color: rgba(255,255,255,0.7);
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0 auto 28px;
  line-height: 1.6;
}
.cta-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}
.cta-btn-primary {
  padding: 14px 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #0d0d1a;
  font-weight: 700;
  font-size: 1rem;
  transition: var(--transition);
  box-shadow: 0 8px 24px rgba(212, 160, 48, 0.25);
}
.cta-btn-primary:hover { transform: translateY(-3px); box-shadow: 0 12px 36px rgba(212, 160, 48, 0.35); }
.cta-btn-secondary {
  padding: 14px 36px;
  border-radius: 10px;
  background: rgba(255,255,255,0.08);
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  border: 1px solid rgba(255,255,255,0.15);
  transition: var(--transition);
}
.cta-btn-secondary:hover { background: rgba(255,255,255,0.15); border-color: var(--accent); }
@media (max-width: 640px) {
  .cta-section h2 { font-size: 1.5rem; }
  .cta-btn-primary, .cta-btn-secondary { width: 100%; text-align: center; }
}
/* ===== Footer ===== */
.footer {
  background: var(--bg-dark);
  color: rgba(255,255,255,0.7);
  padding: 56px 0 0;
  border-top: 1px solid rgba(212, 160, 48, 0.1);
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.2fr 2fr;
  gap: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
@media (max-width: 768px) {
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
}
.footer-brand .header-logo { margin-bottom: 16px; }
.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.55);
  max-width: 360px;
}
.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 600px) {
  .footer-links { grid-template-columns: repeat(2, 1fr); }
}
.footer-links-col h4 {
  font-family: var(--font-title);
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 16px;
  letter-spacing: 0.3px;
}
.footer-links-col a {
  display: block;
  padding: 5px 0;
  font-size: 0.88rem;
  color: rgba(255,255,255,0.5);
  transition: var(--transition);
}
.footer-links-col a:hover { color: var(--accent); padding-left: 4px; }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 20px 0;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.35);
}
.footer-bottom a { color: rgba(255,255,255,0.5); }
.footer-bottom a:hover { color: var(--accent); }
@media (max-width: 560px) {
  .footer-bottom { flex-direction: column; text-align: center; }
}
/* ===== Responsive fixes ===== */
@media (max-width: 520px) {
  .article-banner h1 { font-size: 1.4rem; }
  .article-body { padding: 16px; }
  .article-content { font-size: 0.95rem; }
  .article-meta-bar { flex-direction: column; align-items: flex-start; }
  .sidebar-card { padding: 16px; }
}
