/* roulang page: index */
:root {
    --primary: #1B5FBA;
    --primary-dark: #14487F;
    --secondary: #F5A623;
    --bg: #F7FAFC;
    --card: #FFFFFF;
    --text: #1F2937;
    --text-2: #6B7280;
    --border: #E5E7EB;
    --info-bg: #E3EEF9;
    --radius: 12px;
    --radius-lg: 16px;
    --shadow-sm: 0 1px 3px rgba(16,42,67,.08);
    --shadow-lg: 0 8px 24px rgba(16,42,67,.10);
    --font: Inter, "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.8;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; transition: all .2s ease; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }
ul, ol { list-style: none; }

.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }

/* ===== 按钮 ===== */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    gap: 8px; border-radius: 10px; padding: 12px 26px;
    font-size: 15px; font-weight: 600; line-height: 1.4;
    border: 2px solid transparent; transition: all .2s ease;
    white-space: nowrap; min-height: 44px;
}
.btn i { font-size: 14px; transition: transform .2s ease; }
.btn-primary { background: var(--primary); color: #fff; border-color: var(--primary); }
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); transform: translateY(-2px); box-shadow: 0 8px 16px rgba(27,95,186,.25); }
.btn-primary:active { transform: translateY(1px); }
.btn-primary i:hover { transform: translateX(4px); }
.btn-outline { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; transform: translateY(-2px); box-shadow: 0 6px 14px rgba(27,95,186,.18); }
.btn-white { background: #fff; color: var(--primary); border-color: #fff; }
.btn-white:hover { background: #F0F4FA; border-color: #F0F4FA; transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,.12); }
.btn-sm { padding: 8px 18px; font-size: 14px; min-height: 38px; }
.btn:focus-visible { outline: 3px solid rgba(27,95,186,.35); outline-offset: 2px; }

/* ===== 标签/徽章 ===== */
.badge {
    display: inline-block; padding: 4px 12px; border-radius: 24px;
    font-size: 13px; font-weight: 600; line-height: 1.5; color: var(--primary); background: var(--info-bg);
}
.badge-warm { background: rgba(245,166,35,.15); color: #C07A00; }
.badge-gray { background: #F3F4F6; color: var(--text-2); }

/* ===== Header 导航 ===== */
.header {
    position: fixed; top: 0; left: 0; right: 0; height: 72px;
    background: rgba(255,255,255,.96); backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0,0,0,.05); z-index: 1000;
}
.header-inner {
    max-width: 1360px; height: 100%; margin: 0 auto; padding: 0 32px;
    display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.logo {
    display: flex; align-items: center; gap: 10px;
    font-size: 20px; font-weight: 700; letter-spacing: -.5px; color: var(--text);
}
.logo i { color: var(--primary); font-size: 24px; }
.logo span { color: var(--primary); font-weight: 800; }
.nav-menu { display: flex; align-items: center; gap: 4px; margin-left: 24px; flex: 1; }
.nav-link {
    position: relative; display: flex; align-items: center;
    padding: 10px 16px; border-radius: 8px; font-size: 15px; font-weight: 500;
    color: var(--text-2); transition: all .2s ease;
}
.nav-link:hover { color: var(--primary); background: rgba(27,95,186,.06); }
.nav-link.active { color: var(--primary); font-weight: 600; }
.nav-link.active::after {
    content: ''; position: absolute; bottom: 4px; left: 16px; right: 16px; height: 2px;
    background: var(--primary); border-radius: 2px;
}
.nav-right { display: flex; align-items: center; gap: 12px; }

/* Mega 菜单 */
.nav-mega { position: relative; }
.mega-trigger {
    display: flex; align-items: center; gap: 8px;
    padding: 10px 16px; border: none; background: transparent;
    font-size: 15px; font-weight: 500; color: var(--text-2);
    border-radius: 8px; transition: all .2s ease;
}
.mega-trigger:hover { color: var(--primary); background: rgba(27,95,186,.06); }
.mega-trigger.open { color: var(--primary); background: rgba(27,95,186,.06); }
.mega-trigger i { font-size: 12px; transition: transform .3s ease; }
.mega-trigger.open i { transform: rotate(180deg); }
.mega-panel {
    position: absolute; top: 56px; right: 0; width: 480px;
    background: var(--card); border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg), 0 2px 6px rgba(16,42,67,.04);
    border: 1px solid rgba(0,0,0,.04);
    opacity: 0; visibility: hidden; transform: translateY(10px) scale(.98);
    transition: all .25s ease; z-index: 1001;
}
.mega-panel.show { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }
.mega-content { display: grid; grid-template-columns: 1fr 1.2fr; gap: 24px; padding: 28px 32px; }
.mega-block h4 {
    font-size: 13px; font-weight: 700; color: #9CA3AF; text-transform: uppercase;
    letter-spacing: 1px; margin-bottom: 16px;
}
.mega-block a { display: block; padding: 6px 0; font-size: 14px; color: var(--text-2); border-radius: 6px; transition: all .2s ease; }
.mega-block a:hover { color: var(--primary); padding-left: 6px; }
.mega-item {
    display: flex; align-items: center; gap: 12px; padding: 10px;
    border-radius: 10px; transition: background .2s ease; margin-bottom: 8px;
}
.mega-item:hover { background: var(--bg); }
.mega-item img { width: 56px; height: 40px; object-fit: cover; border-radius: 6px; }
.mega-item strong { display: block; font-size: 14px; color: var(--text); line-height: 1.3; }
.mega-item span { font-size: 12px; color: #9CA3AF; }
.mega-cta { padding: 14px 28px; background: var(--bg); border-top: 1px solid var(--border); text-align: center; border-radius: 0 0 var(--radius-lg) var(--radius-lg); }

.header-cta { margin-left: 4px; }
.mobile-toggle { display: none; }

/* ===== Hero ===== */
.hero { position: relative; padding: 150px 0 100px; min-height: 78vh; display: flex; flex-direction: column; justify-content: center; overflow: hidden; }
.hero-bg {
    position: absolute; inset: 0; background-size: cover; background-position: center;
    z-index: 0;
}
.hero-overlay {
    position: absolute; inset: 0; z-index: 1;
    background: linear-gradient(120deg, rgba(255,255,255,.96) 0%, rgba(255,255,255,.80) 40%, rgba(227,238,249,.65) 100%);
}
.hero-content { position: relative; z-index: 2; text-align: center; max-width: 800px; padding: 0 24px; }
.hero h1 { font-size: 42px; font-weight: 800; line-height: 1.3; letter-spacing: -1px; color: var(--text); margin-bottom: 20px; }
.hero h1 u { text-decoration: none; color: var(--primary); }
.hero-sub { font-size: 18px; color: var(--text-2); margin-bottom: 32px; line-height: 1.7; }
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.hero-stats { position: relative; z-index: 2; display: flex; gap: 20px; justify-content: center; margin-top: 60px; flex-wrap: wrap; }
.stat-card {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    background: rgba(255,255,255,.75); backdrop-filter: blur(6px);
    border: 1px solid rgba(255,255,255,.75); border-radius: var(--radius);
    box-shadow: var(--shadow-sm); padding: 22px 34px; min-width: 150px;
    transition: all .2s ease;
}
.stat-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.stat-card strong { font-size: 30px; font-weight: 800; color: var(--primary); line-height: 1.2; }
.stat-card span { font-size: 14px; color: var(--text-2); margin-top: 4px; }

/* ===== 通用 section ===== */
.section { padding: 90px 0; }
.section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 40px; gap: 20px; }
.section-head h2 { font-size: 28px; font-weight: 700; letter-spacing: -.5px; position: relative; padding-left: 16px; }
.section-head h2::before { content: ''; position: absolute; left: 0; top: 8px; bottom: 8px; width: 4px; background: var(--primary); border-radius: 4px; }
.more-link { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: var(--primary); padding: 8px 14px; border-radius: 8px; transition: all .2s ease; }
.more-link:hover { background: rgba(27,95,186,.06); }
.more-link:hover i { transform: translateX(4px); }
.more-link i { transition: transform .2s ease; }

/* ===== 最新资讯 ===== */
.news-section { background: var(--bg); }
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.news-card {
    display: flex; flex-direction: column; background: var(--card);
    border-radius: var(--radius-lg); overflow: hidden;
    box-shadow: var(--shadow-sm); transition: all .25s ease;
    border: 1px solid transparent;
}
.news-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-5px); border-color: rgba(27,95,186,.10); }
.news-thumb { width: 100%; height: 200px; overflow: hidden; background: var(--info-bg); }
.news-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.news-card:hover .news-thumb img { transform: scale(1.04); }
.news-body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.news-body .badge { align-self: flex-start; }
.news-body h3 { font-size: 17px; font-weight: 700; line-height: 1.4; color: var(--text); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.news-body h3:hover { color: var(--primary); }
.news-body p { font-size: 14px; color: var(--text-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.6; margin-bottom: 4px; }
.news-time { font-size: 13px; color: #9CA3AF; display: flex; align-items: center; gap: 6px; margin-top: auto; }
.news-link { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 600; color: var(--primary); }
.news-link:hover { gap: 8px; }
.news-link i { font-size: 12px; transition: transform .2s ease; }
.news-link:hover i { transform: translateX(4px); }
.empty-state {
    grid-column: 1 / -1; text-align: center; padding: 60px 20px;
    border: 2px dashed var(--border); border-radius: var(--radius-lg);
    color: var(--text-2); font-size: 15px;
}

/* ===== 玩法介绍 ===== */
.guide-section { background: #fff; }
.guide-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.guide-card {
    background: var(--card); border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 32px; position: relative;
    transition: all .25s ease; box-shadow: var(--shadow-sm);
}
.guide-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); border-color: rgba(27,95,186,.15); }
.guide-card.featured { grid-column: 1 / -1; background: linear-gradient(135deg, #F0F5FC 0%, #E3EEF9 100%); }
.guide-icon { width: 48px; height: 48px; border-radius: 12px; background: var(--info-bg); color: var(--primary); display: flex; align-items: center; justify-content: center; font-size: 20px; margin-bottom: 18px; }
.guide-num { position: absolute; top: 22px; right: 28px; font-size: 40px; font-weight: 800; color: var(--info-bg); line-height: 1; }
.guide-card h3 { font-size: 20px; font-weight: 700; margin-bottom: 10px; }
.guide-card p { font-size: 14px; color: var(--text-2); line-height: 1.7; }

/* ===== 奖励预览 ===== */
.rewards-section { background: var(--bg); }
.rewards-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.reward-card {
    position: relative; border-radius: var(--radius-lg); overflow: hidden;
    min-height: 260px; box-shadow: var(--shadow-sm); transition: all .25s ease;
    display: flex; align-items: flex-end; border: 1px solid transparent;
}
.reward-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); border-color: rgba(27,95,186,.10); }
.reward-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.reward-card .overlay {
    position: absolute; inset: 0; z-index: 1;
    background: linear-gradient(165deg, rgba(15,23,42,.05) 20%, rgba(15,23,42,.78) 100%);
}
.reward-content { position: relative; z-index: 2; padding: 28px; color: #fff; width: 100%; }
.reward-content .badge { background: rgba(255,255,255,.2); color: #fff; margin-bottom: 10px; }
.reward-content h3 { font-size: 22px; font-weight: 700; margin-bottom: 6px; text-shadow: 0 2px 8px rgba(0,0,0,.4); }
.reward-content p { font-size: 14px; opacity: .9; line-height: 1.6; margin-bottom: 14px; }
.reward-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.reward-link { color: #fff; font-size: 14px; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.reward-link:hover { gap: 10px; }
.reward-card.wide { grid-column: 1 / -1; min-height: 220px; }

/* ===== 任务进度 ===== */
.progress-section { background: #fff; }
.progress-list { max-width: 820px; margin: 0 auto; display: flex; flex-direction: column; gap: 20px; }
.progress-card {
    display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
    background: var(--card); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 20px 24px;
    box-shadow: var(--shadow-sm); transition: all .2s ease;
}
.progress-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.progress-info { flex: 0 0 160px; }
.progress-info h4 { font-size: 15px; font-weight: 700; color: var(--text); }
.progress-info span { font-size: 13px; color: var(--text-2); }
.progress-track { flex: 1; min-width: 200px; }
.progress-bar {
    height: 8px; background: var(--border); border-radius: 4px; overflow: hidden; position: relative;
}
.progress-bar-fill { height: 100%; border-radius: 4px; background: var(--secondary); transition: width .8s ease; }
.progress-status { flex: 0 0 110px; text-align: right; font-size: 13px; font-weight: 700; }
.progress-status .pct { color: var(--primary); font-size: 16px; margin-left: 4px; }
.status-done { color: #C07A00; }
.status-ing { color: var(--primary); }

/* ===== FAQ ===== */
.faq-section { background: var(--bg); }
.faq-wrap { max-width: 860px; margin: 0 auto; }
.faq-item {
    background: var(--card); border: 1px solid var(--border);
    border-radius: var(--radius); margin-bottom: 16px; overflow: hidden;
    transition: all .2s ease;
}
.faq-item:hover { border-color: var(--primary); }
.faq-item details { padding: 0 24px; }
.faq-item summary {
    display: flex; align-items: center; justify-content: space-between;
    padding: 18px 0; font-size: 15px; font-weight: 600; color: var(--text);
    cursor: pointer; list-style: none; gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary i { color: #9CA3AF; transition: transform .3s ease; font-size: 14px; }
.faq-item details[open] summary { color: var(--primary); }
.faq-item details[open] summary i { transform: rotate(180deg); color: var(--primary); }
.faq-answer { padding: 0 0 20px; font-size: 14px; color: var(--text-2); line-height: 1.75; }

/* ===== CTA ===== */
.cta-section { background: var(--primary); position: relative; overflow: hidden; padding: 90px 0; }
.cta-section::before {
    content: ''; position: absolute; width: 400px; height: 400px;
    background: rgba(255,255,255,.06); border-radius: 50%;
    top: -120px; right: -80px;
}
.cta-content { position: relative; text-align: center; color: #fff; max-width: 640px; margin: 0 auto; padding: 0 24px; }
.cta-content h2 { font-size: 32px; font-weight: 800; margin-bottom: 14px; letter-spacing: -1px; }
.cta-content p { font-size: 17px; opacity: .9; margin-bottom: 32px; line-height: 1.7; }
.cta-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ===== Footer ===== */
.footer { background: #142A3F; color: #9CA3AF; padding: 70px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 40px; margin-bottom: 50px; }
.footer-brand .logo { color: #fff; margin-bottom: 12px; }
.footer-brand .logo i { color: var(--secondary); }
.footer-brand p { font-size: 14px; line-height: 1.8; max-width: 300px; }
.footer h4 { color: #fff; font-size: 14px; font-weight: 600; margin-bottom: 18px; text-transform: uppercase; letter-spacing: 1px; }
.footer-links a { display: block; padding: 5px 0; font-size: 14px; color: #9CA3AF; }
.footer-links a:hover { color: var(--secondary); padding-left: 6px; }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.1); padding-top: 24px;
    text-align: center; font-size: 13px; color: #6B7F94;
}

/* ===== 响应式 ===== */
@media (max-width: 1024px) {
    .nav-menu { margin-left: 12px; }
    .nav-link { padding: 8px 12px; font-size: 14px; }
    .mega-panel { width: 420px; }
    .news-grid { grid-template-columns: repeat(2, 1fr); }
    .guide-grid { grid-template-columns: 1fr; }
    .guide-card.featured { grid-column: 1; }
    .rewards-grid { grid-template-columns: 1fr; }
    .reward-card.wide { grid-column: 1; }
}

@media (max-width: 768px) {
    .header { height: 60px; }
    .header-inner { padding: 0 16px; }
    .logo { font-size: 17px; }
    .logo i { font-size: 20px; }
    .desktop-hide { display: inline-flex; }
    .nav-menu {
        position: fixed; top: 60px; left: 0; right: 0;
        background: #fff; flex-direction: column; align-items: flex-start;
        padding: 16px 24px 24px; gap: 4px; border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow-lg); transform: translateY(-16px);
        opacity: 0; visibility: hidden; transition: all .3s ease; z-index: 999;
    }
    .nav-menu.open { transform: translateY(0); opacity: 1; visibility: visible; }
    .nav-link { width: 100%; padding: 12px 10px; }
    .nav-link.active::after { bottom: auto; left: 10px; right: auto; top: 50%; transform: translateY(-50%); width: 3px; height: 20px; }
    .nav-right { gap: 8px; }
    .header-cta .btn { padding: 8px 16px; font-size: 13px; min-height: 38px; }
    .mega-panel {
        position: static; width: 100%; margin-top: 8px;
        opacity: 1; visibility: hidden; transform: none;
        box-shadow: none; border: 1px solid var(--border); border-radius: var(--radius);
        max-height: 0; overflow: hidden; transition: max-height .35s ease;
    }
    .mega-panel.show { max-height: 800px; visibility: visible; }
    .mega-content { grid-template-columns: 1fr; padding: 20px; }
    .hero { padding: 120px 0 70px; min-height: auto; }
    .hero h1 { font-size: 30px; }
    .hero-sub { font-size: 16px; }
    .hero-actions .btn { width: 100%; max-width: 240px; }
    .hero-stats { margin-top: 40px; gap: 12px; }
    .stat-card { padding: 16px 22px; min-width: 120px; }
    .stat-card strong { font-size: 24px; }
    .section { padding: 60px 0; }
    .section-head h2 { font-size: 24px; }
    .news-grid { grid-template-columns: 1fr; }
    .news-thumb { height: 180px; }
    .reward-card { min-height: 220px; }
    .reward-card.wide { min-height: 200px; }
    .progress-card { padding: 16px 18px; gap: 12px; }
    .progress-info { flex: 1 1 100%; }
    .progress-track { flex: 1 1 100%; min-width: 0; }
    .progress-status { flex: 1 1 100%; text-align: left; }
    .cta-section { padding: 60px 0; }
    .cta-content h2 { font-size: 26px; }
    .cta-content p { font-size: 15px; }
    .footer-grid { grid-template-columns: 1fr; gap: 32px; }
    .footer { padding: 50px 0 24px; }
    .mobile-toggle {
        display: flex; width: 42px; height: 42px; align-items: center; justify-content: center;
        background: transparent; border: 1px solid var(--border); border-radius: 8px;
        color: var(--text); font-size: 18px; transition: all .2s ease;
    }
    .mobile-toggle:hover { border-color: var(--primary); color: var(--primary); }
}

@media (max-width: 520px) {
    .container { padding: 0 16px; }
    .hero h1 { font-size: 26px; }
    .hero-sub { font-size: 15px; }
    .section-head { flex-direction: column; align-items: flex-start; gap: 10px; }
    .news-thumb { height: 160px; }
    .reward-content h3 { font-size: 19px; }
}

/* roulang page: category1 */
:root {
  --primary: #1B5FBA;
  --primary-dark: #14487F;
  --secondary: #F5A623;
  --bg: #F7FAFC;
  --card: #FFFFFF;
  --text: #1F2937;
  --text-2: #6B7280;
  --border: #E5E7EB;
  --info-bg: #E3EEF9;
  --radius: 12px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 3px rgba(16,42,67,.08);
  --shadow-lg: 0 8px 24px rgba(16,42,67,.10);
  --transition: .2s ease;
  --font-stack: Inter, "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-stack);
  font-size: 16px;
  line-height: 1.8;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition);
}

img {
  max-width: 100%;
  display: block;
  object-fit: cover;
}

button {
  font-family: var(--font-stack);
  cursor: pointer;
  border: none;
  background: none;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== Header / Nav ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 72px;
  background: var(--card);
  border-bottom: 1px solid rgba(229,231,235,.7);
  box-shadow: var(--shadow-sm);
  z-index: 1000;
}

.header-inner {
  max-width: 1200px;
  height: 100%;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 20px;
  color: var(--text);
  white-space: nowrap;
}

.logo i {
  color: var(--primary);
  font-size: 22px;
}

.logo span {
  color: var(--primary);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-link {
  padding: 8px 16px;
  border-radius: 8px;
  font-weight: 500;
  font-size: 15px;
  color: #4B5563;
  transition: all var(--transition);
}

.nav-link:hover {
  background: var(--info-bg);
  color: var(--primary);
}

.nav-link.active {
  color: var(--primary);
  font-weight: 600;
  background: rgba(27,95,186,.08);
}

.nav-mega {
  position: relative;
}

.mega-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 8px;
  font-weight: 500;
  font-size: 15px;
  color: #4B5563;
  transition: all var(--transition);
}

.mega-trigger:hover {
  background: var(--info-bg);
  color: var(--primary);
}

.mega-trigger[aria-expanded="true"] i {
  transform: rotate(180deg);
}

.mega-trigger i {
  transition: transform .25s ease;
  font-size: 12px;
}

.mega-panel {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  width: 520px;
  background: var(--card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(229,231,235,.6);
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all .25s ease;
}

.mega-panel.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.mega-content {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 20px;
}

.mega-block h4 {
  font-size: 14px;
  color: var(--text-2);
  font-weight: 600;
  margin-bottom: 12px;
  letter-spacing: .5px;
}

.mega-block a:not(.mega-item) {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 0;
  font-size: 14px;
  color: var(--text);
  font-weight: 500;
  border-bottom: 1px solid rgba(229,231,235,.6);
}

.mega-block a:not(.mega-item) i {
  color: var(--primary);
  font-size: 13px;
  width: 16px;
  text-align: center;
}

.mega-block a:not(.mega-item):hover {
  color: var(--primary);
}

.mega-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px;
  border-radius: 10px;
  transition: background var(--transition);
}

.mega-item:hover {
  background: var(--bg);
}

.mega-item img {
  width: 72px;
  height: 48px;
  border-radius: 8px;
  flex-shrink: 0;
}

.mega-item strong {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  display: block;
  line-height: 1.4;
}

.mega-item span {
  font-size: 12px;
  color: var(--text-2);
}

.mega-cta {
  display: block;
  text-align: center;
  margin-top: 20px;
  padding: 12px 20px;
  background: var(--primary);
  color: #fff;
  border-radius: 10px;
  font-weight: 600;
  font-size: 15px;
  transition: all var(--transition);
}

.mega-cta:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

.menu-toggle {
  display: none;
  padding: 8px 12px;
  font-size: 20px;
  color: var(--text);
  border-radius: 8px;
}

.menu-toggle:hover {
  background: var(--info-bg);
  color: var(--primary);
}

/* ===== Category Hero ===== */
.category-hero {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 140px 24px 80px;
  background: linear-gradient(rgba(255,255,255,.85), rgba(247,250,252,.92)), url('/assets/images/backpic/back-1.png') center/cover no-repeat;
}

.category-hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 120px;
  background: linear-gradient(180deg, transparent, var(--bg));
  pointer-events: none;
}

.category-hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.category-hero-content .tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--info-bg);
  color: var(--primary);
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 20px;
}

.category-hero-content h1 {
  font-size: 40px;
  font-weight: 800;
  line-height: 1.3;
  color: var(--text);
  margin-bottom: 16px;
}

.category-hero-content h1 em {
  font-style: normal;
  color: var(--primary);
}

.category-hero-content p {
  font-size: 17px;
  color: var(--text-2);
  max-width: 620px;
  margin: 0 auto;
}

.hero-badges {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 36px;
  flex-wrap: wrap;
}

.hero-badge {
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(229,231,235,.8);
  border-radius: var(--radius);
  padding: 12px 22px;
  box-shadow: var(--shadow-sm);
  min-width: 120px;
}

.hero-badge strong {
  display: block;
  font-size: 22px;
  color: var(--primary);
  font-weight: 800;
  line-height: 1.3;
}

.hero-badge span {
  font-size: 13px;
  color: var(--text-2);
}

/* ===== Play Grid ===== */
.play-grid-section {
  padding: 100px 0 80px;
}

.section-head {
  text-align: center;
  margin-bottom: 48px;
}

.section-head h2 {
  font-size: 28px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}

.section-head p {
  color: var(--text-2);
  font-size: 15px;
}

.play-featured {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 24px;
  margin-bottom: 24px;
}

.play-card {
  background: var(--card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(229,231,235,.5);
  overflow: hidden;
  transition: all var(--transition);
}

.play-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.play-card-large {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.play-card-body {
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.play-card-body .num {
  font-size: 40px;
  font-weight: 800;
  color: var(--info-bg);
  line-height: 1;
  margin-bottom: 12px;
}

.play-card-body h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text);
}

.play-card-body p {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.7;
  margin-bottom: 18px;
}

.play-card-body .card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
}

.play-card-body .card-link i {
  transition: transform var(--transition);
}

.play-card-body .card-link:hover i {
  transform: translateX(4px);
}

.play-card-media {
  min-height: 240px;
}

.play-card-media img {
  width: 100%;
  height: 100%;
}

.play-sub-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.play-card-small {
  padding: 28px;
  text-align: left;
}

.play-card-small .card-icon {
  width: 52px;
  height: 52px;
  background: var(--info-bg);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: var(--primary);
  margin-bottom: 18px;
}

.play-card-small h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
}

.play-card-small p {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.7;
}

.play-card-small .tag {
  display: inline-block;
  margin-top: 14px;
  font-size: 12px;
  font-weight: 600;
  color: var(--primary);
  background: var(--info-bg);
  padding: 4px 12px;
  border-radius: 999px;
}

/* ===== Highlights ===== */
.highlights-section {
  padding: 80px 0;
  background: var(--card);
  border-top: 1px solid rgba(229,231,235,.6);
  border-bottom: 1px solid rgba(229,231,235,.6);
}

.highlights-grid {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 24px;
}

.highlight-main {
  background: var(--bg);
  border-radius: var(--radius-lg);
  padding: 40px;
  position: relative;
  overflow: hidden;
}

.highlight-main::before {
  content: "\f0eb";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  right: -20px;
  bottom: -20px;
  font-size: 120px;
  color: rgba(27,95,186,.06);
}

.highlight-main h3 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text);
}

.highlight-main p {
  font-size: 15px;
  color: var(--text-2);
  max-width: 90%;
}

.highlight-side {
  display: grid;
  gap: 24px;
}

.highlight-item {
  background: var(--card);
  border: 1px solid rgba(229,231,235,.6);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  display: flex;
  gap: 16px;
  align-items: flex-start;
  transition: all var(--transition);
}

.highlight-item:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}

.highlight-item i {
  font-size: 20px;
  color: var(--secondary);
  margin-top: 4px;
}

.highlight-item h4 {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}

.highlight-item p {
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.6;
}

/* ===== Scenes ===== */
.scenes-section {
  padding: 90px 0;
}

.scenes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.scene-card {
  background: var(--card);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  text-align: center;
  border: 1px solid rgba(229,231,235,.5);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}

.scene-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.scene-card .icon-box {
  width: 64px;
  height: 64px;
  margin: 0 auto 18px;
  background: var(--info-bg);
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  color: var(--primary);
}

.scene-card h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
}

.scene-card p {
  font-size: 14px;
  color: var(--text-2);
}

/* ===== Steps ===== */
.steps-section {
  padding: 90px 0;
  background: var(--card);
  border-top: 1px solid rgba(229,231,235,.6);
}

.steps-wrapper {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  counter-reset: step-counter;
}

.step-item {
  text-align: center;
  position: relative;
  padding: 32px 20px;
}

.step-item::before {
  counter-increment: step-counter;
  content: "0" counter(step-counter);
  display: block;
  font-size: 42px;
  font-weight: 800;
  color: var(--info-bg);
  line-height: 1;
  margin-bottom: 14px;
}

.step-item:not(:last-child)::after {
  content: "\f061";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  right: -18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--border);
  font-size: 14px;
}

.step-item h3 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text);
}

.step-item p {
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.6;
}

/* ===== FAQ ===== */
.faq-section {
  padding: 90px 0;
}

.faq-list {
  max-width: 760px;
  margin: 0 auto;
}

.faq-item {
  background: var(--card);
  border-radius: var(--radius);
  border: 1px solid rgba(229,231,235,.6);
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.faq-item summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  transition: all var(--transition);
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary i {
  color: var(--text-2);
  transition: transform .25s ease;
  font-size: 14px;
  flex-shrink: 0;
}

.faq-item[open] summary {
  color: var(--primary);
  border-left: 4px solid var(--primary);
}

.faq-item[open] summary i {
  transform: rotate(180deg);
  color: var(--primary);
}

.faq-answer {
  padding: 0 24px 20px;
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.8;
  border-left: 4px solid var(--primary);
}

/* ===== CTA ===== */
.cta-section {
  background: var(--primary);
  padding: 100px 0;
  text-align: center;
}

.cta-inner h2 {
  color: #fff;
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 12px;
}

.cta-inner p {
  color: rgba(255,255,255,.85);
  font-size: 18px;
  margin-bottom: 36px;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  transition: all var(--transition);
  min-height: 44px;
}

.btn-primary {
  background: #fff;
  color: var(--primary);
}

.btn-primary:hover {
  background: var(--secondary);
  color: #fff;
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255,255,255,.7);
}

.btn-outline:hover {
  background: rgba(255,255,255,.1);
  transform: translateY(-2px);
  border-color: #fff;
}

/* ===== Footer ===== */
.footer {
  background: #1F2937;
  color: #9CA3AF;
  padding: 64px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
}

.footer-brand .logo {
  color: #fff;
  margin-bottom: 16px;
}

.footer-brand .logo span {
  color: var(--secondary);
}

.footer-brand .logo i {
  color: var(--secondary);
}

.footer-brand p {
  font-size: 14px;
  line-height: 1.8;
  max-width: 340px;
}

.footer-links h4 {
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 16px;
}

.footer-links a {
  display: block;
  padding: 6px 0;
  font-size: 14px;
  color: #9CA3AF;
  transition: color var(--transition);
}

.footer-links a:hover {
  color: var(--secondary);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 20px 0;
  text-align: center;
  font-size: 13px;
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .play-featured {
    grid-template-columns: 1fr;
  }

  .play-sub-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .play-card-large {
    grid-template-columns: 1fr;
  }

  .play-card-media {
    min-height: 200px;
  }

  .play-card-media img {
    height: 240px;
  }

  .highlights-grid {
    grid-template-columns: 1fr;
  }

  .steps-wrapper {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }

  .step-item:not(:last-child)::after {
    display: none;
  }

  .scenes-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .mega-panel {
    width: 440px;
  }
}

@media (max-width: 768px) {
  .header {
    height: 60px;
  }

  .menu-toggle {
    display: block;
  }

  .nav-menu {
    position: fixed;
    top: 60px;
    left: 0;
    width: 100%;
    background: var(--card);
    flex-direction: column;
    align-items: stretch;
    padding: 16px 24px 24px;
    box-shadow: var(--shadow-lg);
    border-bottom: 1px solid var(--border);
    display: none;
    z-index: 999;
    max-height: calc(100vh - 60px);
    overflow-y: auto;
  }

  .nav-menu.open {
    display: flex;
  }

  .nav-link {
    padding: 12px 16px;
  }

  .nav-mega {
    width: 100%;
  }

  .mega-trigger {
    width: 100%;
    justify-content: space-between;
    padding: 12px 16px;
  }

  .mega-panel {
    position: static;
    width: 100%;
    box-shadow: var(--shadow-sm);
    border: none;
    border-top: 1px solid var(--border);
    border-radius: 0;
    opacity: 1;
    visibility: visible;
    transform: none;
    padding: 16px 0;
    display: none;
  }

  .mega-panel.open {
    display: block;
  }

  .mega-content {
    grid-template-columns: 1fr;
  }

  .category-hero {
    min-height: 480px;
    padding: 110px 20px 60px;
  }

  .category-hero-content h1 {
    font-size: 32px;
  }

  .category-hero-content p {
    font-size: 15px;
  }

  .hero-badges {
    gap: 10px;
  }

  .hero-badge {
    padding: 10px 16px;
    min-width: 100px;
  }

  .hero-badge strong {
    font-size: 18px;
  }

  .play-grid-section {
    padding: 70px 0 60px;
  }

  .play-sub-grid {
    grid-template-columns: 1fr;
  }

  .scenes-grid {
    grid-template-columns: 1fr;
  }

  .steps-wrapper {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .cta-section {
    padding: 70px 0;
  }

  .cta-inner h2 {
    font-size: 26px;
  }

  .cta-inner p {
    font-size: 16px;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }

  .cta-buttons {
    flex-direction: column;
  }

  .section-head h2 {
    font-size: 24px;
  }
}

@media (max-width: 520px) {
  .logo {
    font-size: 17px;
  }

  .logo i {
    font-size: 18px;
  }

  .category-hero-content h1 {
    font-size: 28px;
  }

  .category-hero-content p {
    font-size: 14px;
  }

  .play-card-body {
    padding: 24px;
  }

  .play-card-body h3 {
    font-size: 20px;
  }

  .highlight-main {
    padding: 28px 24px;
  }

  .highlight-main h3 {
    font-size: 20px;
  }

  .faq-item summary {
    font-size: 15px;
    padding: 18px;
  }

  .faq-answer {
    padding: 0 18px 18px;
  }
}

/* roulang page: article */
:root {
    --primary: #1B5FBA;
    --primary-dark: #14487F;
    --secondary: #F5A623;
    --bg: #F7FAFC;
    --card: #FFFFFF;
    --text: #1F2937;
    --text-2: #6B7280;
    --border: #E5E7EB;
    --info-bg: #E3EEF9;
    --radius: 12px;
    --radius-lg: 16px;
    --shadow-sm: 0 1px 3px rgba(16,42,67,.08);
    --shadow-lg: 0 8px 24px rgba(16,42,67,.10);
    --transition: .2s ease;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: Inter, "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
    font-size: 16px;
    line-height: 1.8;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}
a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--primary-dark); text-decoration: underline; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul, ol { list-style: none; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 790px; }

.btn-primary,
.btn-outline,
.btn-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
    transition: all var(--transition);
    text-decoration: none;
}
.btn-primary {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 2px 8px rgba(27,95,186,.25);
}
.btn-primary:hover {
    background: var(--primary-dark);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(27,95,186,.3);
    text-decoration: none;
}
.btn-outline {
    border: 1.5px solid var(--primary);
    color: var(--primary);
    background: transparent;
}
.btn-outline:hover {
    background: var(--info-bg);
    transform: translateY(-1px);
    text-decoration: none;
}
.btn-cta {
    background: #fff;
    color: var(--primary);
    padding: 14px 36px;
    font-size: 16px;
    box-shadow: 0 4px 16px rgba(0,0,0,.12);
}
.btn-cta:hover {
    transform: translateY(-2px) scale(1.01);
    box-shadow: 0 8px 24px rgba(0,0,0,.16);
    color: var(--primary-dark);
    text-decoration: none;
}

/* Header */
.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255,255,255,.96);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border);
    height: 72px;
    display: flex;
    align-items: center;
}
.header-inner {
    max-width: 1280px;
    width: 100%;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}
.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 800;
    color: var(--text);
    white-space: nowrap;
    text-decoration: none;
}
.logo i {
    color: var(--primary);
    font-size: 22px;
}
.logo span {
    color: var(--primary);
}
.logo:hover { text-decoration: none; color: var(--text); }
.nav-menu {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 1;
    justify-content: flex-end;
}
.nav-link {
    position: relative;
    padding: 10px 16px;
    font-size: 15px;
    font-weight: 500;
    color: #4B5563;
    border-radius: 8px;
    transition: color var(--transition), background var(--transition);
}
.nav-link:hover {
    color: var(--primary);
    background: var(--info-bg);
    text-decoration: none;
}
.nav-link.active {
    color: var(--primary);
    font-weight: 600;
}
.nav-link.active::after {
    content: '';
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 2px;
    height: 2px;
    background: var(--primary);
    border-radius: 2px;
}
.nav-mega {
    position: relative;
    margin-left: 6px;
}
.mega-trigger {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    font-size: 15px;
    font-weight: 500;
    color: #4B5563;
    border-radius: 8px;
    transition: all var(--transition);
}
.mega-trigger:hover {
    color: var(--primary);
    background: var(--info-bg);
}
.mega-trigger i {
    font-size: 11px;
    transition: transform var(--transition);
}
.mega-trigger[aria-expanded="true"] i {
    transform: rotate(180deg);
}
.mega-panel {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    width: 520px;
    max-width: calc(100vw - 48px);
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: 0 12px 40px rgba(16,42,67,.14);
    border: 1px solid var(--border);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all .24s ease;
    z-index: 999;
    padding: 24px;
}
.nav-mega:hover .mega-panel,
.mega-trigger[aria-expanded="true"] + .mega-panel {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.mega-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}
.mega-block h4 {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-2);
    text-transform: uppercase;
    letter-spacing: .5px;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
}
.mega-block > a:not(.mega-item) {
    display: block;
    padding: 6px 0;
    font-size: 14px;
    color: var(--text);
    transition: color var(--transition), padding-left var(--transition);
}
.mega-block > a:not(.mega-item):hover {
    color: var(--primary);
    padding-left: 4px;
    text-decoration: none;
}
.mega-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    border-radius: 10px;
    transition: background var(--transition);
}
.mega-item:hover {
    background: var(--bg);
    text-decoration: none;
}
.mega-item img {
    width: 56px;
    height: 42px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
}
.mega-item strong {
    display: block;
    font-size: 14px;
    color: var(--text);
    line-height: 1.3;
}
.mega-item span {
    font-size: 12px;
    color: var(--text-2);
}
.mobile-toggle {
    display: none;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--text);
    border-radius: 8px;
    transition: background var(--transition);
}
.mobile-toggle:hover {
    background: var(--bg);
}

/* Breadcrumb */
.breadcrumb {
    padding: 22px 0 8px;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
}
.breadcrumb .container {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 14px;
    color: var(--text-2);
}
.breadcrumb a {
    color: var(--text-2);
    transition: color var(--transition);
}
.breadcrumb a:hover {
    color: var(--primary);
    text-decoration: none;
}
.breadcrumb i {
    font-size: 10px;
    color: var(--border);
}
.breadcrumb span {
    color: var(--text);
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 260px;
}

/* Article header */
.article-header {
    padding: 48px 0 24px;
    background: var(--bg);
}
.article-header h1 {
    font-size: 36px;
    font-weight: 800;
    line-height: 1.35;
    letter-spacing: -.5px;
    color: var(--text);
    margin-bottom: 20px;
}
.article-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 24px;
    font-size: 14px;
    color: var(--text-2);
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}
.article-meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.article-meta i {
    color: var(--primary);
    font-size: 13px;
    width: 14px;
}

/* Article body */
.article-body {
    padding: 32px 0 48px;
    background: var(--bg);
}
.article-content {
    background: var(--card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: 48px;
    font-size: 17px;
    line-height: 1.85;
    color: var(--text);
}
.article-content h2 {
    font-size: 28px;
    font-weight: 700;
    margin: 1.8em 0 .8em;
    letter-spacing: -.3px;
    line-height: 1.4;
}
.article-content h2:first-child { margin-top: 0; }
.article-content h3 {
    font-size: 20px;
    font-weight: 600;
    margin: 1.6em 0 .6em;
    line-height: 1.5;
}
.article-content p {
    margin-bottom: 1.2em;
}
.article-content p:last-child { margin-bottom: 0; }
.article-content a {
    text-decoration: underline;
    text-underline-offset: 3px;
}
.article-content blockquote {
    background: var(--info-bg);
    border-left: 4px solid var(--primary);
    padding: 18px 24px;
    border-radius: 0 var(--radius) var(--radius) 0;
    margin: 28px 0;
    font-size: 16px;
    color: var(--text);
}
.article-content blockquote p:last-child { margin-bottom: 0; }
.article-content ul,
.article-content ol {
    margin: 0 0 1.4em;
    padding-left: 1.5em;
}
.article-content ul li {
    list-style: disc;
    margin-bottom: 8px;
}
.article-content ol li {
    list-style: decimal;
    margin-bottom: 8px;
}
.article-content img {
    border-radius: 12px;
    margin: 28px auto;
    box-shadow: var(--shadow-sm);
}
.article-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 28px 0;
    font-size: 15px;
}
.article-content th,
.article-content td {
    border: 1px solid var(--border);
    padding: 12px 16px;
    text-align: left;
}
.article-content th {
    background: var(--info-bg);
    font-weight: 600;
}
.article-content input,
.article-content textarea {
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 15px;
    font-family: inherit;
}
.article-content input:focus,
.article-content textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(27,95,186,.12);
}
.article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 36px;
    padding-top: 28px;
    border-top: 1px solid var(--border);
}
.tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: var(--info-bg);
    color: var(--primary);
    font-size: 13px;
    font-weight: 500;
    padding: 6px 14px;
    border-radius: 20px;
    transition: all var(--transition);
}
.tag:hover {
    background: var(--primary);
    color: #fff;
    text-decoration: none;
}
.article-bottom-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 32px;
    padding-top: 28px;
    border-top: 1px solid var(--border);
    flex-wrap: wrap;
}

/* Not found */
.not-found {
    text-align: center;
    padding: 60px 24px;
    background: var(--card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}
.not-found i {
    font-size: 48px;
    color: var(--border);
    margin-bottom: 16px;
}
.not-found h2 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text);
}
.not-found p {
    color: var(--text-2);
    margin-bottom: 24px;
}

/* Related posts */
.related-posts {
    padding: 80px 0;
    background: var(--bg);
}
.section-title {
    font-size: 28px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 16px;
    letter-spacing: -.3px;
    position: relative;
}
.section-title::after {
    content: '';
    display: block;
    width: 48px;
    height: 4px;
    background: var(--secondary);
    border-radius: 2px;
    margin: 12px auto 0;
}
.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 40px;
}
.related-card {
    background: var(--card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
    text-decoration: none;
    display: flex;
    flex-direction: column;
}
.related-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    text-decoration: none;
}
.related-card img {
    width: 100%;
    height: 170px;
    object-fit: cover;
}
.related-card-body {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.related-card h3 {
    font-size: 17px;
    font-weight: 600;
    color: var(--text);
    line-height: 1.5;
    transition: color var(--transition);
}
.related-card:hover h3 {
    color: var(--primary);
}
.related-card-body span {
    font-size: 13px;
    color: var(--text-2);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* CTA */
.cta-section {
    background: var(--primary);
    padding: 100px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.cta-section::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 250px;
    height: 250px;
    background: rgba(255,255,255,.05);
    border-radius: 50%;
}
.cta-section::after {
    content: '';
    position: absolute;
    bottom: -80px;
    left: -40px;
    width: 300px;
    height: 300px;
    background: rgba(255,255,255,.04);
    border-radius: 50%;
}
.cta-section .container {
    position: relative;
    z-index: 2;
}
.cta-section h2 {
    font-size: 34px;
    font-weight: 800;
    color: #fff;
    line-height: 1.4;
    margin-bottom: 16px;
    letter-spacing: -.3px;
}
.cta-section p {
    font-size: 18px;
    color: rgba(255,255,255,.85);
    margin-bottom: 36px;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
}

/* Footer */
.footer {
    background: #142A3F;
    padding: 64px 0 0;
    color: #9CA3AF;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 48px;
}
.footer .logo {
    color: #fff;
    margin-bottom: 14px;
}
.footer .logo span {
    color: var(--secondary);
}
.footer-brand p {
    font-size: 14px;
    line-height: 1.8;
    color: #9CA3AF;
    max-width: 340px;
    margin-top: 8px;
}
.footer-links h4 {
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 18px;
}
.footer-links a {
    display: block;
    font-size: 14px;
    color: #9CA3AF;
    padding: 5px 0;
    transition: color var(--transition), padding-left var(--transition);
}
.footer-links a:hover {
    color: var(--secondary);
    padding-left: 4px;
    text-decoration: none;
}
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.08);
    padding: 22px 0;
    text-align: center;
    font-size: 13px;
    color: #6B7A8D;
}

/* Responsive */
@media (max-width: 1024px) {
    .related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .mega-panel {
        width: 440px;
    }
}
@media (max-width: 768px) {
    .header {
        height: 60px;
    }
    .header-inner {
        padding: 0 16px;
    }
    .logo {
        font-size: 17px;
    }
    .logo i {
        font-size: 18px;
    }
    .mobile-toggle {
        display: inline-flex;
    }
    .nav-menu {
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        background: #fff;
        flex-direction: column;
        align-items: stretch;
        padding: 16px;
        gap: 4px;
        box-shadow: var(--shadow-lg);
        border-bottom: 1px solid var(--border);
        max-height: 0;
        overflow: hidden;
        transition: max-height .3s ease;
        visibility: hidden;
        opacity: 0;
    }
    .nav-menu.open {
        max-height: calc(100vh - 60px);
        overflow-y: auto;
        visibility: visible;
        opacity: 1;
    }
    .nav-link {
        padding: 12px 16px;
        font-size: 15px;
    }
    .nav-link.active::after {
        display: none;
    }
    .nav-mega {
        margin: 0;
    }
    .mega-trigger {
        width: 100%;
        justify-content: space-between;
        padding: 12px 16px;
    }
    .mega-panel {
        position: static;
        width: 100%;
        max-width: 100%;
        box-shadow: none;
        border: none;
        border-radius: 0;
        padding: 0 0 0 16px;
        opacity: 1;
        visibility: hidden;
        max-height: 0;
        overflow: hidden;
        transform: none;
        transition: max-height .3s ease, visibility .3s;
    }
    .mega-trigger[aria-expanded="true"] + .mega-panel {
        max-height: 800px;
        visibility: visible;
        overflow-y: auto;
    }
    .nav-mega:hover .mega-panel {
        opacity: 1;
        visibility: hidden;
        max-height: 0;
    }
    .mega-trigger[aria-expanded="true"] + .mega-panel {
        max-height: 800px;
        visibility: visible;
    }
    .mega-content {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 16px 0;
    }
    .breadcrumb {
        padding: 16px 0 8px;
    }
    .article-header {
        padding: 28px 0 16px;
    }
    .article-header h1 {
        font-size: 26px;
    }
    .article-meta {
        gap: 8px 16px;
        font-size: 13px;
    }
    .article-content {
        padding: 24px;
        font-size: 16px;
        line-height: 1.8;
    }
    .article-content h2 {
        font-size: 22px;
    }
    .article-content h3 {
        font-size: 18px;
    }
    .article-bottom-nav {
        flex-direction: column;
        align-items: stretch;
    }
    .related-posts {
        padding: 56px 0;
    }
    .related-grid {
        grid-template-columns: 1fr;
        margin-top: 28px;
    }
    .cta-section {
        padding: 64px 0;
    }
    .cta-section h2 {
        font-size: 26px;
    }
    .cta-section p {
        font-size: 16px;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .footer {
        padding-top: 48px;
    }
}
@media (max-width: 520px) {
    .container {
        padding: 0 16px;
    }
    .breadcrumb span {
        max-width: 160px;
    }
}
