/* roulang page: index */
:root {
  --primary: #0d9488;
  --primary-dark: #0f766e;
  --primary-light: #14b8a6;
  --secondary: #f59e0b;
  --secondary-light: #fbbf24;
  --accent: #6366f1;
  --dark: #0f172a;
  --dark-2: #1e293b;
  --gray-900: #111827;
  --gray-800: #1f2937;
  --gray-700: #374151;
  --gray-600: #4b5563;
  --gray-500: #6b7280;
  --gray-400: #9ca3af;
  --gray-300: #d1d5db;
  --gray-200: #e5e7eb;
  --gray-100: #f3f4f6;
  --gray-50: #f9fafb;
  --white: #ffffff;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.10);
  --shadow-lg: 0 10px 40px rgba(0,0,0,0.12);
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --sidebar-width: 260px;
  --header-h: 0px;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  color: var(--gray-800);
  background: var(--gray-50);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--primary-dark); }
img { max-width: 100%; height: auto; display: block; }
button, input, select, textarea { font-family: inherit; font-size: inherit; }
ul, ol { list-style: none; }
h1, h2, h3, h4, h5, h6 { line-height: 1.3; color: var(--dark); font-weight: 700; }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.2rem); margin-bottom: 0.5rem; }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.1rem; }
p { margin-bottom: 1rem; color: var(--gray-600); }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.container-fluid { width: 100%; padding: 0 24px; }
.section { padding: 80px 0; }
.section-title { text-align: center; margin-bottom: 48px; }
.section-title h2 { position: relative; display: inline-block; }
.section-title h2::after { content: ''; display: block; width: 60px; height: 4px; background: var(--primary); border-radius: 4px; margin: 12px auto 0; }
.section-title p { max-width: 600px; margin: 12px auto 0; font-size: 1.05rem; color: var(--gray-500); }
.text-primary { color: var(--primary); }
.text-secondary { color: var(--secondary); }
.text-center { text-align: center; }
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mt-12 { margin-top: 3rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }

/* ===== 按钮 ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 28px; border-radius: var(--radius-md); font-weight: 600; font-size: 0.95rem;
  border: none; cursor: pointer; transition: all var(--transition); line-height: 1.4;
  text-decoration: none;
}
.btn-primary { background: var(--primary); color: var(--white); }
.btn-primary:hover { background: var(--primary-dark); color: var(--white); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-secondary { background: var(--secondary); color: var(--white); }
.btn-secondary:hover { background: #d97706; color: var(--white); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-outline { background: transparent; color: var(--primary); border: 2px solid var(--primary); }
.btn-outline:hover { background: var(--primary); color: var(--white); transform: translateY(-2px); }
.btn-white { background: var(--white); color: var(--primary); }
.btn-white:hover { background: var(--gray-100); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-lg { padding: 16px 36px; font-size: 1.1rem; border-radius: var(--radius-lg); }
.btn-sm { padding: 8px 18px; font-size: 0.85rem; border-radius: var(--radius-sm); }
.btn i { font-size: 1.1em; }

/* ===== 徽章 / 标签 ===== */
.badge {
  display: inline-block; padding: 4px 14px; border-radius: 50px; font-size: 0.8rem;
  font-weight: 600; background: var(--gray-100); color: var(--gray-600);
}
.badge-primary { background: rgba(13, 148, 136, 0.12); color: var(--primary); }
.badge-secondary { background: rgba(245, 158, 11, 0.15); color: #b45309; }
.badge-accent { background: rgba(99, 102, 241, 0.12); color: var(--accent); }
.tag {
  display: inline-block; padding: 2px 12px; border-radius: var(--radius-sm); font-size: 0.78rem;
  font-weight: 500; background: var(--gray-100); color: var(--gray-600); margin: 2px;
}

/* ===== 左侧导航布局 ===== */
.site-wrapper { display: flex; min-height: 100vh; }

/* 侧边栏 */
.sidebar {
  position: fixed; top: 0; left: 0; width: var(--sidebar-width); height: 100vh;
  background: var(--white); border-right: 1px solid var(--gray-200);
  z-index: 1000; display: flex; flex-direction: column; padding: 0;
  box-shadow: 2px 0 20px rgba(0,0,0,0.04);
  transition: transform var(--transition);
}
.sidebar-brand {
  display: flex; align-items: center; gap: 12px; padding: 24px 24px 20px;
  border-bottom: 1px solid var(--gray-100);
}
.sidebar-brand .logo-icon {
  width: 42px; height: 42px; background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center;
  color: var(--white); font-size: 1.3rem; font-weight: 700; flex-shrink: 0;
}
.sidebar-brand .logo-text { font-size: 1.15rem; font-weight: 700; color: var(--dark); line-height: 1.3; }
.sidebar-brand .logo-text span { color: var(--primary); }
.sidebar-nav { flex: 1; padding: 16px 12px; overflow-y: auto; }
.sidebar-nav .nav-label { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--gray-400); padding: 16px 12px 6px; font-weight: 600; }
.sidebar-nav a {
  display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: var(--radius-md);
  color: var(--gray-600); font-weight: 500; font-size: 0.95rem; margin-bottom: 2px;
  transition: all var(--transition); text-decoration: none;
}
.sidebar-nav a i { width: 20px; text-align: center; font-size: 1.05rem; color: var(--gray-400); transition: color var(--transition); }
.sidebar-nav a:hover { background: var(--gray-50); color: var(--primary); }
.sidebar-nav a:hover i { color: var(--primary); }
.sidebar-nav a.active { background: rgba(13, 148, 136, 0.08); color: var(--primary); font-weight: 600; }
.sidebar-nav a.active i { color: var(--primary); }
.sidebar-footer { padding: 16px 20px; border-top: 1px solid var(--gray-100); }
.sidebar-footer .user-card {
  display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: var(--radius-md);
  background: var(--gray-50); cursor: pointer; transition: background var(--transition);
}
.sidebar-footer .user-card:hover { background: var(--gray-100); }
.sidebar-footer .user-avatar { width: 36px; height: 36px; border-radius: 50%; background: linear-gradient(135deg, var(--primary), var(--accent)); display: flex; align-items: center; justify-content: center; color: var(--white); font-weight: 600; font-size: 0.85rem; }
.sidebar-footer .user-info .user-name { font-size: 0.9rem; font-weight: 600; color: var(--dark); }
.sidebar-footer .user-info .user-status { font-size: 0.75rem; color: var(--gray-400); }

/* 主内容区 */
.main-content { flex: 1; margin-left: var(--sidebar-width); min-height: 100vh; }

/* 移动端顶部栏（仅移动端显示） */
.mobile-header {
  display: none; position: sticky; top: 0; z-index: 999;
  background: var(--white); border-bottom: 1px solid var(--gray-200);
  padding: 12px 20px; align-items: center; justify-content: space-between;
  box-shadow: var(--shadow-sm);
}
.mobile-header .mobile-logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.1rem; color: var(--dark); }
.mobile-header .mobile-logo .logo-icon-sm { width: 34px; height: 34px; background: linear-gradient(135deg, var(--primary), var(--primary-light)); border-radius: 8px; display: flex; align-items: center; justify-content: center; color: var(--white); font-weight: 700; font-size: 1rem; }
.mobile-header .hamburger { background: none; border: none; font-size: 1.5rem; color: var(--gray-600); cursor: pointer; padding: 4px 8px; border-radius: var(--radius-sm); }
.mobile-header .hamburger:hover { background: var(--gray-50); }

/* 移动端导航遮罩 */
.nav-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.4); z-index: 998; }

/* ===== Hero 首屏 ===== */
.hero {
  position: relative; min-height: 520px; display: flex; align-items: center;
  background: url('/assets/images/backpic/back-1.png') center center / cover no-repeat;
  padding: 60px 0; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(13, 148, 136, 0.85) 0%, rgba(15, 118, 110, 0.70) 50%, rgba(15, 23, 42, 0.60) 100%);
}
.hero .container { position: relative; z-index: 2; }
.hero-content { max-width: 680px; }
.hero-badge { display: inline-block; padding: 6px 20px; border-radius: 50px; background: rgba(255,255,255,0.15); color: var(--white); font-size: 0.85rem; font-weight: 500; backdrop-filter: blur(4px); margin-bottom: 20px; border: 1px solid rgba(255,255,255,0.1); }
.hero h1 { color: var(--white); font-size: clamp(2.2rem, 5.5vw, 3.6rem); margin-bottom: 16px; line-height: 1.15; }
.hero h1 span { color: var(--secondary); }
.hero p { color: rgba(255,255,255,0.85); font-size: 1.1rem; max-width: 540px; margin-bottom: 32px; line-height: 1.7; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; }
.hero-actions .btn i { font-size: 1rem; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 32px; margin-top: 48px; padding-top: 32px; border-top: 1px solid rgba(255,255,255,0.15); }
.hero-stat .num { font-size: 1.8rem; font-weight: 800; color: var(--white); }
.hero-stat .label { font-size: 0.9rem; color: rgba(255,255,255,0.7); }

/* ===== 特色/介绍板块 ===== */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.feature-card { background: var(--white); border-radius: var(--radius-lg); padding: 36px 28px; box-shadow: var(--shadow-sm); border: 1px solid var(--gray-100); transition: all var(--transition); text-align: center; }
.feature-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: rgba(13, 148, 136, 0.15); }
.feature-card .icon-wrap { width: 64px; height: 64px; border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; font-size: 1.6rem; }
.feature-card .icon-wrap.primary { background: rgba(13, 148, 136, 0.1); color: var(--primary); }
.feature-card .icon-wrap.secondary { background: rgba(245, 158, 11, 0.1); color: var(--secondary); }
.feature-card .icon-wrap.accent { background: rgba(99, 102, 241, 0.1); color: var(--accent); }
.feature-card h3 { font-size: 1.15rem; margin-bottom: 10px; }
.feature-card p { font-size: 0.92rem; color: var(--gray-500); margin-bottom: 0; }

/* ===== 分类入口 ===== */
.categories-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.category-card { display: flex; flex-direction: column; border-radius: var(--radius-lg); overflow: hidden; background: var(--white); box-shadow: var(--shadow-sm); border: 1px solid var(--gray-100); transition: all var(--transition); text-decoration: none; }
.category-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: rgba(13, 148, 136, 0.15); }
.category-card .cat-img { height: 180px; overflow: hidden; position: relative; }
.category-card .cat-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.category-card:hover .cat-img img { transform: scale(1.05); }
.category-card .cat-img::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0,0,0,0.25) 0%, transparent 70%); }
.category-card .cat-body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.category-card .cat-body h3 { font-size: 1.15rem; margin-bottom: 8px; color: var(--dark); }
.category-card .cat-body p { font-size: 0.9rem; color: var(--gray-500); margin-bottom: 16px; flex: 1; }
.category-card .cat-body .cat-meta { display: flex; align-items: center; justify-content: space-between; }
.category-card .cat-body .cat-tag { font-size: 0.8rem; color: var(--primary); font-weight: 600; }
.category-card .cat-body .cat-arrow { color: var(--gray-300); font-size: 1rem; transition: all var(--transition); }
.category-card:hover .cat-body .cat-arrow { color: var(--primary); transform: translateX(4px); }

/* ===== 最新资讯列表 ===== */
.news-list { display: grid; grid-template-columns: 1fr; gap: 20px; }
.news-item { display: flex; gap: 20px; background: var(--white); border-radius: var(--radius-md); padding: 20px; box-shadow: var(--shadow-sm); border: 1px solid var(--gray-100); transition: all var(--transition); cursor: pointer; }
.news-item:hover { box-shadow: var(--shadow-md); border-color: rgba(13, 148, 136, 0.12); }
.news-item .news-thumb { width: 120px; min-height: 80px; border-radius: var(--radius-sm); overflow: hidden; flex-shrink: 0; background: var(--gray-100); }
.news-item .news-thumb img { width: 100%; height: 100%; object-fit: cover; }
.news-item .news-info { flex: 1; display: flex; flex-direction: column; justify-content: center; }
.news-item .news-info h4 { font-size: 1rem; margin-bottom: 6px; color: var(--dark); transition: color var(--transition); }
.news-item:hover .news-info h4 { color: var(--primary); }
.news-item .news-info p { font-size: 0.88rem; color: var(--gray-500); margin-bottom: 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.news-item .news-meta { display: flex; flex-wrap: wrap; gap: 12px; font-size: 0.8rem; color: var(--gray-400); }
.news-item .news-meta .badge { padding: 2px 10px; font-size: 0.7rem; }
.news-empty { text-align: center; padding: 40px 20px; color: var(--gray-400); background: var(--white); border-radius: var(--radius-md); border: 1px dashed var(--gray-200); }

/* ===== 使用流程 ===== */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: step; }
.step-card { text-align: center; position: relative; padding: 32px 16px; background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); border: 1px solid var(--gray-100); transition: all var(--transition); }
.step-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.step-card .step-num { width: 48px; height: 48px; border-radius: 50%; background: linear-gradient(135deg, var(--primary), var(--primary-light)); color: var(--white); font-weight: 800; font-size: 1.2rem; display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; }
.step-card h4 { font-size: 1.05rem; margin-bottom: 8px; }
.step-card p { font-size: 0.88rem; color: var(--gray-500); margin-bottom: 0; }
.step-connector { display: none; }

/* ===== 数据统计 ===== */
.stats-section { background: linear-gradient(135deg, var(--dark), var(--dark-2)); position: relative; overflow: hidden; }
.stats-section::before { content: ''; position: absolute; top: -50%; right: -20%; width: 500px; height: 500px; border-radius: 50%; background: rgba(13, 148, 136, 0.08); }
.stats-section::after { content: ''; position: absolute; bottom: -30%; left: -10%; width: 400px; height: 400px; border-radius: 50%; background: rgba(245, 158, 11, 0.05); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; position: relative; z-index: 2; }
.stat-card { text-align: center; padding: 32px 16px; }
.stat-card .stat-icon { font-size: 2rem; color: var(--primary-light); margin-bottom: 12px; }
.stat-card .stat-number { font-size: 2.8rem; font-weight: 800; color: var(--white); line-height: 1.2; }
.stat-card .stat-number span { color: var(--secondary); }
.stat-card .stat-label { font-size: 0.95rem; color: rgba(255,255,255,0.6); margin-top: 4px; }

/* ===== FAQ ===== */
.faq-list { max-width: 800px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item { background: var(--white); border-radius: var(--radius-md); border: 1px solid var(--gray-100); overflow: hidden; transition: all var(--transition); }
.faq-item:hover { border-color: var(--gray-200); }
.faq-item .faq-q { padding: 18px 24px; display: flex; align-items: center; justify-content: space-between; cursor: pointer; font-weight: 600; color: var(--dark); font-size: 1rem; transition: color var(--transition); }
.faq-item .faq-q:hover { color: var(--primary); }
.faq-item .faq-q i { color: var(--gray-400); transition: transform var(--transition); font-size: 0.9rem; }
.faq-item.active .faq-q i { transform: rotate(180deg); color: var(--primary); }
.faq-item .faq-a { padding: 0 24px 18px; display: none; font-size: 0.92rem; color: var(--gray-600); line-height: 1.7; }
.faq-item.active .faq-a { display: block; }
.faq-item .faq-a p:last-child { margin-bottom: 0; }

/* ===== CTA ===== */
.cta-section { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); position: relative; overflow: hidden; }
.cta-section::before { content: ''; position: absolute; top: 0; right: 0; width: 400px; height: 100%; background: url('/assets/images/backpic/back-2.png') center center / cover no-repeat; opacity: 0.1; }
.cta-content { position: relative; z-index: 2; text-align: center; padding: 40px 0; }
.cta-content h2 { color: var(--white); margin-bottom: 12px; }
.cta-content p { color: rgba(255,255,255,0.8); max-width: 560px; margin: 0 auto 32px; font-size: 1.05rem; }
.cta-content .btn i { font-size: 1rem; }

/* ===== 页脚 ===== */
.footer { background: var(--dark); color: rgba(255,255,255,0.6); padding: 60px 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
.footer-brand .footer-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.footer-brand .footer-logo .logo-icon-sm { width: 36px; height: 36px; background: linear-gradient(135deg, var(--primary), var(--primary-light)); border-radius: 8px; display: flex; align-items: center; justify-content: center; color: var(--white); font-weight: 700; font-size: 0.9rem; }
.footer-brand .footer-logo span { font-size: 1.1rem; font-weight: 700; color: var(--white); }
.footer-brand p { font-size: 0.9rem; color: rgba(255,255,255,0.5); max-width: 320px; }
.footer-col h4 { font-size: 0.95rem; color: var(--white); margin-bottom: 16px; font-weight: 600; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a { color: rgba(255,255,255,0.5); font-size: 0.9rem; transition: color var(--transition); }
.footer-col ul li a:hover { color: var(--primary-light); }
.footer-col ul li a i { width: 18px; margin-right: 6px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.06); margin-top: 40px; padding: 24px 0; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.footer-bottom p { font-size: 0.85rem; color: rgba(255,255,255,0.35); margin-bottom: 0; }
.footer-bottom .footer-links { display: flex; gap: 20px; }
.footer-bottom .footer-links a { font-size: 0.85rem; color: rgba(255,255,255,0.35); }
.footer-bottom .footer-links a:hover { color: var(--primary-light); }

/* ===== 响应式 ===== */
@media (max-width: 1024px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }
}

@media (max-width: 768px) {
  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: translateX(0); }
  .main-content { margin-left: 0; }
  .mobile-header { display: flex; }
  .nav-overlay.active { display: block; }
  .hero { min-height: 400px; padding: 40px 0; }
  .hero-stats { gap: 20px; margin-top: 32px; padding-top: 24px; }
  .hero-stat .num { font-size: 1.4rem; }
  .features-grid { grid-template-columns: 1fr; gap: 16px; }
  .categories-grid { grid-template-columns: 1fr; gap: 16px; }
  .steps { grid-template-columns: 1fr 1fr; gap: 12px; }
  .step-card { padding: 24px 12px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .stat-card .stat-number { font-size: 2rem; }
  .news-item { flex-direction: column; }
  .news-item .news-thumb { width: 100%; height: 140px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .cta-content h2 { font-size: 1.4rem; }
  .section { padding: 48px 0; }
  .section-title { margin-bottom: 32px; }
}

@media (max-width: 480px) {
  .hero { min-height: 340px; padding: 32px 0; }
  .hero h1 { font-size: 1.8rem; }
  .hero p { font-size: 0.95rem; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
  .steps { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .stat-card { padding: 20px 8px; }
  .stat-card .stat-number { font-size: 1.6rem; }
  .container { padding: 0 16px; }
  .section { padding: 36px 0; }
}

/* roulang page: article */
/* ===== 设计变量 ===== */
:root {
  --primary: #2a6df4;
  --primary-light: #4a8aff;
  --primary-dark: #1a4fa0;
  --primary-bg: #eef4ff;
  --secondary: #f97316;
  --secondary-light: #fb923c;
  --accent: #8b5cf6;
  --bg: #f8fafc;
  --bg-card: #ffffff;
  --bg-dark: #0f172a;
  --bg-dark-2: #1e293b;
  --text: #1e293b;
  --text-light: #64748b;
  --text-white: #f1f5f9;
  --border: #e2e8f0;
  --border-light: #f1f5f9;
  --radius: 16px;
  --radius-sm: 10px;
  --radius-xs: 6px;
  --shadow: 0 4px 24px rgba(42,109,244,0.08);
  --shadow-lg: 0 12px 48px rgba(42,109,244,0.14);
  --shadow-hover: 0 20px 56px rgba(42,109,244,0.18);
  --transition: 0.3s cubic-bezier(0.4,0,0.2,1);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
  --sidebar-width: 250px;
  --header-height: 0px;
}
/* ===== 基础 Reset ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  display: flex;
  min-height: 100vh;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--primary-dark); }
ul, ol { list-style: none; }
button, input, textarea { font-family: inherit; font-size: inherit; outline: none; border: none; }
/* ===== 容器 ===== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; width: 100%; }
/* ===== 侧边栏导航 ===== */
.sidebar {
  width: var(--sidebar-width);
  min-height: 100vh;
  background: var(--bg-dark);
  color: var(--text-white);
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition);
}
.sidebar-brand {
  padding: 32px 24px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  gap: 12px;
}
.logo-icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(42,109,244,0.3);
}
.sidebar-brand span {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.5px;
}
.sidebar-nav {
  flex: 1;
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.nav-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: rgba(255,255,255,0.3);
  padding: 12px 12px 8px;
  font-weight: 600;
}
.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  color: rgba(255,255,255,0.65);
  font-size: 15px;
  font-weight: 500;
  transition: all var(--transition);
  position: relative;
}
.sidebar-nav a i { width: 20px; text-align: center; font-size: 16px; }
.sidebar-nav a:hover { background: rgba(255,255,255,0.06); color: #fff; }
.sidebar-nav a.active {
  background: rgba(42,109,244,0.2);
  color: #fff;
  font-weight: 600;
}
.sidebar-nav a.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 24px;
  background: var(--primary-light);
  border-radius: 0 4px 4px 0;
}
.sidebar-footer {
  padding: 20px 24px;
  border-top: 1px solid rgba(255,255,255,0.06);
  font-size: 12px;
  color: rgba(255,255,255,0.3);
  text-align: center;
}
/* ===== 主内容区 ===== */
.main-content {
  margin-left: var(--sidebar-width);
  flex: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
/* ===== 移动端菜单按钮 ===== */
.mobile-toggle {
  display: none;
  position: fixed;
  top: 16px;
  left: 16px;
  z-index: 1100;
  width: 44px;
  height: 44px;
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text);
  font-size: 20px;
  transition: all var(--transition);
  border: 1px solid var(--border);
}
.mobile-toggle:hover { background: var(--primary-bg); color: var(--primary); }
.mobile-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.4);
  z-index: 999;
  opacity: 0;
  transition: opacity var(--transition);
}
/* ===== 文章页 Header ===== */
.article-header {
  background: var(--bg-dark);
  position: relative;
  padding: 60px 0 50px;
  overflow: hidden;
}
.article-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('/assets/images/backpic/back-2.png') center/cover no-repeat;
  opacity: 0.2;
  z-index: 0;
}
.article-header::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(15,23,42,0.92) 0%, rgba(30,41,59,0.8) 100%);
  z-index: 1;
}
.article-header .container { position: relative; z-index: 2; }
.article-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  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(--primary-light); }
.article-breadcrumb .sep { color: rgba(255,255,255,0.2); }
.article-breadcrumb .current { color: rgba(255,255,255,0.85); }
.article-header h1 {
  font-size: 36px;
  font-weight: 800;
  color: #fff;
  line-height: 1.3;
  max-width: 800px;
  margin-bottom: 16px;
}
.article-meta {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  color: rgba(255,255,255,0.6);
  font-size: 14px;
}
.article-meta .tag {
  display: inline-block;
  background: rgba(42,109,244,0.25);
  color: var(--primary-light);
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  border: 1px solid rgba(42,109,244,0.2);
}
.article-meta i { margin-right: 6px; }
/* ===== 文章正文 ===== */
.article-body {
  padding: 48px 0 60px;
  flex: 1;
}
.article-body .container {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 48px;
}
.article-content {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 40px 44px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}
.article-content .featured-image {
  width: 100%;
  border-radius: var(--radius-sm);
  margin-bottom: 32px;
  object-fit: cover;
  max-height: 420px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}
.article-content .post-body {
  font-size: 16px;
  line-height: 1.85;
  color: var(--text);
}
.article-content .post-body p { margin-bottom: 18px; }
.article-content .post-body h2 { font-size: 24px; margin: 36px 0 16px; font-weight: 700; color: var(--text); }
.article-content .post-body h3 { font-size: 20px; margin: 28px 0 12px; font-weight: 600; color: var(--text); }
.article-content .post-body ul, .article-content .post-body ol { margin: 16px 0; padding-left: 24px; }
.article-content .post-body li { margin-bottom: 8px; list-style: disc; }
.article-content .post-body ol li { list-style: decimal; }
.article-content .post-body blockquote {
  border-left: 4px solid var(--primary);
  background: var(--primary-bg);
  padding: 16px 24px;
  margin: 24px 0;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--text-light);
  font-style: italic;
}
.article-content .post-body a { color: var(--primary); text-decoration: underline; }
.article-content .post-body img { border-radius: var(--radius-sm); margin: 24px 0; }
/* 文章未找到 */
.article-not-found {
  text-align: center;
  padding: 80px 20px;
  background: var(--bg-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}
.article-not-found .icon { font-size: 64px; color: var(--text-light); margin-bottom: 20px; opacity: 0.4; }
.article-not-found h2 { font-size: 28px; margin-bottom: 12px; color: var(--text); }
.article-not-found p { color: var(--text-light); margin-bottom: 24px; font-size: 16px; }
.article-not-found .btn-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius-sm);
  font-weight: 600;
  transition: all var(--transition);
}
.article-not-found .btn-back:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: var(--shadow-lg); }
/* ===== 侧边栏 ===== */
.article-sidebar { display: flex; flex-direction: column; gap: 28px; }
.sidebar-widget {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}
.sidebar-widget h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 10px;
}
.sidebar-widget h3 i { color: var(--primary); font-size: 18px; }
.sidebar-widget ul { display: flex; flex-direction: column; gap: 12px; }
.sidebar-widget ul li a {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-light);
  font-size: 14px;
  color: var(--text);
  transition: all var(--transition);
}
.sidebar-widget ul li:last-child a { border-bottom: none; }
.sidebar-widget ul li a:hover { color: var(--primary); padding-left: 6px; }
.sidebar-widget ul li a .num {
  width: 28px;
  height: 28px;
  background: var(--primary-bg);
  border-radius: var(--radius-xs);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
  flex-shrink: 0;
}
.sidebar-widget ul li a .text { flex: 1; line-height: 1.5; }
.sidebar-widget ul li a .text .title { display: block; font-weight: 500; }
.sidebar-widget ul li a .text .date { display: block; font-size: 12px; color: var(--text-light); margin-top: 2px; }
.category-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-light);
  color: var(--text);
  font-size: 14px;
  transition: all var(--transition);
}
.category-list a:hover { color: var(--primary); padding-left: 4px; }
.category-list a .badge {
  background: var(--primary-bg);
  color: var(--primary);
  padding: 2px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}
/* ===== 页脚 ===== */
.footer {
  background: var(--bg-dark);
  color: var(--text-white);
  padding: 56px 0 0;
  margin-top: auto;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.logo-icon-sm {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: var(--radius-xs);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}
.footer-logo span { font-size: 18px; font-weight: 700; color: #fff; }
.footer-brand p { font-size: 14px; color: rgba(255,255,255,0.55); line-height: 1.7; max-width: 320px; }
.footer-col h4 {
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 18px;
  letter-spacing: 0.3px;
}
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a {
  color: rgba(255,255,255,0.55);
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all var(--transition);
}
.footer-col ul li a i { font-size: 12px; }
.footer-col ul li a:hover { color: var(--primary-light); padding-left: 4px; }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom p { font-size: 13px; color: rgba(255,255,255,0.35); }
.footer-links { display: flex; gap: 20px; }
.footer-links a { font-size: 13px; color: rgba(255,255,255,0.35); transition: color var(--transition); }
.footer-links a:hover { color: var(--primary-light); }
/* ===== 响应式 ===== */
@media (max-width: 1024px) {
  .article-body .container { grid-template-columns: 1fr; }
  .article-sidebar { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .article-header h1 { font-size: 30px; }
}
@media (max-width: 768px) {
  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: translateX(0); }
  .mobile-toggle { display: flex; }
  .mobile-overlay.active { display: block; opacity: 1; }
  .main-content { margin-left: 0; }
  .article-header { padding: 80px 0 40px; }
  .article-header h1 { font-size: 24px; }
  .article-content { padding: 24px 20px; }
  .article-body { padding: 32px 0 40px; }
  .article-sidebar { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .footer-links { justify-content: center; }
}
@media (max-width: 520px) {
  .container { padding: 0 16px; }
  .article-header h1 { font-size: 20px; }
  .article-meta { gap: 12px; font-size: 13px; }
  .article-content { padding: 20px 16px; }
  .article-content .post-body { font-size: 15px; }
  .article-breadcrumb { font-size: 12px; }
  .sidebar-widget { padding: 20px; }
  .footer { padding: 40px 0 0; }
}

/* roulang page: category1 */
/* ===== Design Variables ===== */
:root {
  --primary: #e85d3a;
  --primary-light: #f07a5a;
  --primary-dark: #c94428;
  --secondary: #2b4f6e;
  --secondary-light: #3d6b8f;
  --accent: #f4a261;
  --accent-light: #f7bc8a;
  --bg: #f8f6f2;
  --bg-alt: #efece6;
  --bg-card: #ffffff;
  --bg-dark: #1e2d3d;
  --text: #2c2c2e;
  --text-light: #6b6b70;
  --text-lighter: #9e9ea4;
  --text-white: #f5f0eb;
  --border: #ddd8d0;
  --border-light: #ebe7e0;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-xl: 30px;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
  --shadow-md: 0 6px 24px rgba(0,0,0,0.08);
  --shadow-lg: 0 16px 48px rgba(0,0,0,0.12);
  --shadow-xl: 0 24px 64px rgba(0,0,0,0.16);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --sidebar-w: 240px;
  --header-h: 0px;
  --font-sans: 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', system-ui, -apple-system, sans-serif;
  --font-mono: 'SF Mono', 'Fira Code', monospace;
  --space-xs: 6px;
  --space-sm: 12px;
  --space-md: 24px;
  --space-lg: 48px;
  --space-xl: 80px;
}

/* ===== 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-sans);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--primary-dark); }
a:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; border-radius: 4px; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, textarea, select { font-family: inherit; font-size: 1rem; }
ul, ol { list-style: none; }
h1, h2, h3, h4, h5, h6 { line-height: 1.25; color: var(--text); font-weight: 700; }
h1 { font-size: 2.8rem; letter-spacing: -0.02em; }
h2 { font-size: 2.2rem; letter-spacing: -0.01em; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.15rem; }
p { margin-bottom: 1rem; color: var(--text-light); }
.container { max-width: 1200px; margin: 0 auto; padding: 0 var(--space-md); }
.section { padding: var(--space-xl) 0; }
.section-alt { background: var(--bg-alt); }
.section-dark { background: var(--bg-dark); color: var(--text-white); }
.section-dark h2, .section-dark h3, .section-dark h4 { color: var(--text-white); }
.section-dark p { color: rgba(255,255,255,0.75); }
.section-title { text-align: center; margin-bottom: var(--space-lg); }
.section-title h2 { margin-bottom: var(--space-sm); }
.section-title p { max-width: 640px; margin: 0 auto; font-size: 1.1rem; }
.tag {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  background: var(--primary);
  color: #fff;
  letter-spacing: 0.02em;
}
.tag-secondary { background: var(--secondary); }
.tag-accent { background: var(--accent); color: var(--text); }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 34px;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  transition: all var(--transition);
  border: 2px solid transparent;
  text-align: center;
  justify-content: center;
}
.btn-primary {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); color: #fff; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(232,93,58,0.35); }
.btn-primary:active { transform: translateY(0); box-shadow: 0 4px 12px rgba(232,93,58,0.25); }
.btn-secondary {
  background: transparent;
  color: var(--secondary);
  border-color: var(--secondary);
}
.btn-secondary:hover { background: var(--secondary); color: #fff; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(43,79,110,0.30); }
.btn-secondary:active { transform: translateY(0); }
.btn-outline-light {
  background: transparent;
  color: var(--text-white);
  border-color: rgba(255,255,255,0.6);
}
.btn-outline-light:hover { background: rgba(255,255,255,0.12); border-color: #fff; color: #fff; transform: translateY(-2px); }
.btn-sm { padding: 10px 22px; font-size: 0.9rem; }
.card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  border: 1px solid var(--border-light);
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.card-img { width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block; }
.card-body { padding: var(--space-md); }
.card-body h3 { margin-bottom: var(--space-sm); font-size: 1.2rem; }
.card-body p { font-size: 0.95rem; margin-bottom: var(--space-sm); }
.card-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: var(--space-sm); }
.card-tags .tag { font-size: 0.7rem; padding: 2px 12px; }

/* ===== Layout: Sidebar + Main ===== */
.app-wrapper { display: flex; min-height: 100vh; }

/* ===== Sidebar ===== */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: var(--sidebar-w);
  height: 100vh;
  background: var(--bg-card);
  border-right: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  z-index: 1000;
  transition: transform var(--transition);
  overflow-y: auto;
}
.sidebar-brand {
  padding: var(--space-md) var(--space-md);
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  gap: 12px;
}
.logo-icon {
  width: 40px;
  height: 40px;
  background: var(--primary);
  color: #fff;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: 800;
  flex-shrink: 0;
}
.logo-text {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text);
  white-space: nowrap;
}
.sidebar-nav {
  flex: 1;
  padding: var(--space-md) 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.nav-label {
  padding: var(--space-xs) var(--space-md);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-lighter);
  font-weight: 700;
  margin-top: var(--space-sm);
}
.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px var(--space-md);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-light);
  border-radius: 0;
  transition: all var(--transition);
  border-left: 3px solid transparent;
}
.sidebar-nav a i { width: 20px; text-align: center; font-size: 1.1rem; }
.sidebar-nav a:hover { background: var(--bg-alt); color: var(--text); border-left-color: var(--border); }
.sidebar-nav a.active {
  background: rgba(232,93,58,0.08);
  color: var(--primary);
  border-left-color: var(--primary);
  font-weight: 600;
}
.sidebar-cta {
  margin: var(--space-md);
  padding: var(--space-md);
  background: var(--bg-alt);
  border-radius: var(--radius-md);
  text-align: center;
}
.sidebar-cta p { font-size: 0.85rem; margin-bottom: var(--space-sm); color: var(--text-light); }
.sidebar-cta .btn { width: 100%; padding: 12px 20px; font-size: 0.9rem; }

/* ===== Main Content ===== */
.main-content {
  margin-left: var(--sidebar-w);
  flex: 1;
  min-height: 100vh;
}

/* ===== Mobile Header ===== */
.mobile-header {
  display: none;
  position: sticky;
  top: 0;
  z-index: 999;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-light);
  padding: 12px var(--space-md);
  align-items: center;
  justify-content: space-between;
}
.mobile-header .logo-icon { width: 34px; height: 34px; font-size: 1.1rem; border-radius: 10px; }
.mobile-header .logo-text { font-size: 1.1rem; }
.hamburger {
  width: 40px;
  height: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border-radius: 10px;
  transition: background var(--transition);
}
.hamburger:hover { background: var(--bg-alt); }
.hamburger span {
  display: block;
  width: 22px;
  height: 2.5px;
  background: var(--text);
  border-radius: 2px;
  transition: all var(--transition);
}
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(6px, -6px); }

/* ===== Hero / Banner ===== */
.page-banner {
  position: relative;
  padding: var(--space-xl) 0;
  background: var(--bg-dark);
  overflow: hidden;
  min-height: 320px;
  display: flex;
  align-items: center;
}
.page-banner-bg {
  position: absolute;
  inset: 0;
  background: url('/assets/images/backpic/back-1.png') center center / cover no-repeat;
  opacity: 0.35;
  transform: scale(1.02);
}
.page-banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(30,45,61,0.85) 0%, rgba(30,45,61,0.50) 100%);
}
.page-banner .container { position: relative; z-index: 2; text-align: center; }
.page-banner .tag { margin-bottom: var(--space-sm); }
.page-banner h1 { color: var(--text-white); font-size: 3rem; margin-bottom: var(--space-sm); }
.page-banner p { color: rgba(255,255,255,0.75); font-size: 1.15rem; max-width: 620px; margin: 0 auto var(--space-md); }
.page-banner .banner-meta { display: flex; gap: var(--space-md); justify-content: center; flex-wrap: wrap; color: rgba(255,255,255,0.6); font-size: 0.9rem; }
.page-banner .banner-meta i { margin-right: 6px; }

/* ===== Intro Section ===== */
.intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  align-items: center;
}
.intro-image { border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-md); }
.intro-image img { width: 100%; height: 380px; object-fit: cover; }
.intro-text h2 { margin-bottom: var(--space-sm); }
.intro-text p { font-size: 1.05rem; }
.intro-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-md); margin-top: var(--space-md); }
.intro-stat { text-align: center; padding: var(--space-md); background: var(--bg-alt); border-radius: var(--radius-md); }
.intro-stat .num { font-size: 2rem; font-weight: 800; color: var(--primary); display: block; }
.intro-stat .label { font-size: 0.85rem; color: var(--text-light); }

/* ===== Guide Cards Grid ===== */
.guide-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}
.guide-card .card-img { aspect-ratio: 3/2; }
.guide-card .card-body { padding: var(--space-md); }
.guide-card .card-body h3 { font-size: 1.15rem; }
.guide-card .card-body p { font-size: 0.9rem; }
.guide-card .card-footer { display: flex; align-items: center; justify-content: space-between; padding-top: var(--space-sm); border-top: 1px solid var(--border-light); margin-top: var(--space-sm); }
.guide-card .card-footer .meta { font-size: 0.8rem; color: var(--text-lighter); }
.guide-card .card-footer .more { font-size: 0.85rem; color: var(--primary); font-weight: 600; }

/* ===== Featured Section ===== */
.featured-section {
  background: var(--bg-dark);
  position: relative;
  overflow: hidden;
}
.featured-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('/assets/images/backpic/back-2.png') center center / cover no-repeat;
  opacity: 0.12;
}
.featured-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
  position: relative;
  z-index: 2;
}
.featured-item { background: rgba(255,255,255,0.06); border-radius: var(--radius-md); padding: var(--space-md); border: 1px solid rgba(255,255,255,0.08); backdrop-filter: blur(6px); transition: all var(--transition); }
.featured-item:hover { background: rgba(255,255,255,0.10); transform: translateY(-4px); }
.featured-item .icon { font-size: 2rem; color: var(--accent); margin-bottom: var(--space-sm); }
.featured-item h3 { color: var(--text-white); margin-bottom: var(--space-xs); }
.featured-item p { color: rgba(255,255,255,0.65); font-size: 0.95rem; }

/* ===== Steps / Process ===== */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
  counter-reset: step;
}
.step-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  position: relative;
  transition: all var(--transition);
}
.step-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.step-card .step-num {
  width: 48px;
  height: 48px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  font-weight: 800;
  margin: 0 auto var(--space-sm);
}
.step-card h4 { margin-bottom: var(--space-xs); }
.step-card p { font-size: 0.9rem; margin-bottom: 0; }

/* ===== FAQ ===== */
.faq-list { max-width: 780px; margin: 0 auto; display: flex; flex-direction: column; gap: var(--space-sm); }
.faq-item { background: var(--bg-card); border-radius: var(--radius-md); overflow: hidden; border: 1px solid var(--border-light); transition: all var(--transition); }
.faq-item:hover { border-color: var(--border); }
.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-md);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  transition: background var(--transition);
  gap: var(--space-sm);
}
.faq-question:hover { background: var(--bg-alt); }
.faq-question i { color: var(--primary); transition: transform var(--transition); font-size: 1.1rem; flex-shrink: 0; }
.faq-item.open .faq-question i { transform: rotate(180deg); }
.faq-answer { padding: 0 var(--space-md) var(--space-md); display: none; }
.faq-answer p { font-size: 0.95rem; margin-bottom: 0; }
.faq-item.open .faq-answer { display: block; }

/* ===== CTA ===== */
.cta-section {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  text-align: center;
  padding: var(--space-xl) 0;
}
.cta-section h2 { color: #fff; margin-bottom: var(--space-sm); }
.cta-section p { color: rgba(255,255,255,0.85); max-width: 560px; margin: 0 auto var(--space-md); font-size: 1.1rem; }
.cta-section .btn-outline-light { border-color: rgba(255,255,255,0.8); }
.cta-section .btn-outline-light:hover { background: rgba(255,255,255,0.15); }

/* ===== Footer ===== */
.footer {
  background: var(--bg-dark);
  color: var(--text-white);
  padding: var(--space-lg) 0 var(--space-md);
}
.footer .container { position: relative; z-index: 2; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: var(--space-lg); margin-bottom: var(--space-lg); }
.footer-brand .footer-logo { display: flex; align-items: center; gap: 10px; margin-bottom: var(--space-sm); }
.footer-brand .footer-logo .logo-icon-sm { width: 32px; height: 32px; background: var(--primary); color: #fff; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 1rem; font-weight: 800; flex-shrink: 0; }
.footer-brand .footer-logo span { font-size: 1.2rem; font-weight: 700; color: var(--text-white); }
.footer-brand p { font-size: 0.9rem; color: rgba(255,255,255,0.6); max-width: 320px; }
.footer-col h4 { color: var(--text-white); font-size: 1rem; margin-bottom: var(--space-sm); font-weight: 600; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a { color: rgba(255,255,255,0.6); font-size: 0.9rem; display: flex; align-items: center; gap: 8px; transition: all var(--transition); }
.footer-col ul li a i { font-size: 0.7rem; }
.footer-col ul li a:hover { color: var(--accent); padding-left: 4px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding-top: var(--space-md); display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: var(--space-sm); }
.footer-bottom p { font-size: 0.85rem; color: rgba(255,255,255,0.4); margin-bottom: 0; }
.footer-links { display: flex; gap: var(--space-md); }
.footer-links a { font-size: 0.85rem; color: rgba(255,255,255,0.4); transition: color var(--transition); }
.footer-links a:hover { color: var(--accent); }

/* ===== Mobile Overlay ===== */
.sidebar-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.4); z-index: 999; }

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .guide-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .intro-grid { grid-template-columns: 1fr; }
  .intro-image { order: -1; }
  .intro-image img { height: 260px; }
}

@media (max-width: 768px) {
  :root { --sidebar-w: 0px; }
  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: translateX(0); }
  .mobile-header { display: flex; }
  .sidebar-overlay.show { display: block; }
  .main-content { margin-left: 0; }
  .page-banner h1 { font-size: 2.2rem; }
  .page-banner { min-height: 260px; padding: var(--space-lg) 0; }
  .section { padding: var(--space-lg) 0; }
  h2 { font-size: 1.8rem; }
  .guide-grid { grid-template-columns: 1fr; }
  .featured-grid { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr 1fr; }
  .intro-stats { grid-template-columns: repeat(3, 1fr); }
  .intro-stat .num { font-size: 1.5rem; }
  .footer-grid { grid-template-columns: 1fr; gap: var(--space-md); }
  .footer-bottom { flex-direction: column; text-align: center; }
  .footer-links { justify-content: center; }
  .page-banner p { font-size: 1rem; }
}

@media (max-width: 520px) {
  .page-banner h1 { font-size: 1.7rem; }
  .section-title h2 { font-size: 1.5rem; }
  .steps-grid { grid-template-columns: 1fr; }
  .intro-stats { grid-template-columns: 1fr; }
  .btn { padding: 12px 24px; font-size: 0.9rem; }
  .container { padding: 0 var(--space-sm); }
  .page-banner .banner-meta { flex-direction: column; align-items: center; gap: var(--space-xs); }
}
