/* roulang page: index */
/* ===== CSS Design Variables ===== */
        :root {
            --primary: #ff6b35;
            --primary-hover: #e85a2a;
            --primary-light: #ff8f5e;
            --primary-dark: #cc5529;
            --secondary: #00d4ff;
            --secondary-hover: #00b8e6;
            --accent: #ffd700;
            --bg-dark: #0a0e17;
            --bg-mid: #111827;
            --bg-card: #1a2233;
            --bg-card-hover: #1f2a40;
            --bg-sidebar: #080b12;
            --text-primary: #f0f4f8;
            --text-secondary: #b0bcc9;
            --text-muted: #6b7a8f;
            --border-color: #2a3a55;
            --border-light: #3a4a6a;
            --radius-sm: 6px;
            --radius-md: 12px;
            --radius-lg: 20px;
            --radius-xl: 28px;
            --shadow-sm: 0 2px 8px rgba(0,0,0,0.3);
            --shadow-md: 0 8px 24px rgba(0,0,0,0.4);
            --shadow-lg: 0 16px 48px rgba(0,0,0,0.5);
            --shadow-glow: 0 0 20px rgba(255,107,53,0.15);
            --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            --sidebar-width: 240px;
            --sidebar-collapsed: 68px;
            --font-sans: 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', system-ui, -apple-system, sans-serif;
            --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
            --z-header: 100;
            --z-sidebar: 200;
            --z-overlay: 300;
        }

        /* ===== 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);
            background: var(--bg-dark);
            color: var(--text-primary);
            line-height: 1.7;
            font-size: 16px;
            min-height: 100vh;
            display: flex;
        }
        a { color: var(--secondary); text-decoration: none; transition: var(--transition); }
        a:hover { color: var(--primary-light); }
        img { max-width: 100%; height: auto; display: block; border-radius: var(--radius-sm); }
        button, input, textarea, select { font-family: inherit; font-size: 1rem; border: none; outline: none; }
        button { cursor: pointer; background: none; }
        ul, ol { list-style: none; }
        h1, h2, h3, h4, h5, h6 { font-weight: 700; line-height: 1.3; color: var(--text-primary); }
        h1 { font-size: clamp(2rem, 5vw, 3.6rem); letter-spacing: -0.02em; }
        h2 { font-size: clamp(1.5rem, 3.5vw, 2.4rem); letter-spacing: -0.01em; }
        h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); }
        h4 { font-size: 1.1rem; }
        p { margin-bottom: 1rem; color: var(--text-secondary); }
        .container { max-width: 1280px; margin: 0 auto; padding: 0 24px; width: 100%; }

        /* ===== Scrollbar ===== */
        ::-webkit-scrollbar { width: 6px; }
        ::-webkit-scrollbar-track { background: var(--bg-dark); }
        ::-webkit-scrollbar-thumb { background: var(--border-color); border-radius: 3px; }
        ::-webkit-scrollbar-thumb:hover { background: var(--border-light); }

        /* ===== Sidebar / Left Nav ===== */
        .sidebar {
            position: fixed;
            top: 0;
            left: 0;
            width: var(--sidebar-width);
            height: 100vh;
            background: var(--bg-sidebar);
            border-right: 1px solid var(--border-color);
            z-index: var(--z-sidebar);
            display: flex;
            flex-direction: column;
            transition: transform 0.3s ease;
            overflow-y: auto;
            overflow-x: hidden;
        }
        .sidebar-brand {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 24px 20px;
            border-bottom: 1px solid var(--border-color);
        }
        .sidebar-brand .brand-icon {
            width: 40px;
            height: 40px;
            background: var(--primary);
            border-radius: var(--radius-md);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.4rem;
            color: #fff;
            font-weight: 800;
            flex-shrink: 0;
        }
        .sidebar-brand .brand-text {
            font-size: 1.2rem;
            font-weight: 700;
            color: var(--text-primary);
            letter-spacing: 0.02em;
            white-space: nowrap;
        }
        .sidebar-brand .brand-text span { color: var(--primary); }
        .sidebar-nav { padding: 16px 12px; flex: 1; display: flex; flex-direction: column; gap: 4px; }
        .sidebar-nav .nav-item {
            display: flex;
            align-items: center;
            gap: 14px;
            padding: 12px 16px;
            border-radius: var(--radius-md);
            color: var(--text-secondary);
            font-weight: 500;
            font-size: 0.95rem;
            transition: var(--transition);
            position: relative;
        }
        .sidebar-nav .nav-item i { width: 22px; text-align: center; font-size: 1.1rem; flex-shrink: 0; }
        .sidebar-nav .nav-item:hover { background: var(--bg-card); color: var(--text-primary); }
        .sidebar-nav .nav-item.active {
            background: rgba(255,107,53,0.12);
            color: var(--primary);
            font-weight: 600;
        }
        .sidebar-nav .nav-item.active::before {
            content: '';
            position: absolute;
            left: -12px;
            top: 50%;
            transform: translateY(-50%);
            width: 4px;
            height: 24px;
            background: var(--primary);
            border-radius: 0 4px 4px 0;
        }
        .sidebar-footer {
            padding: 16px 20px;
            border-top: 1px solid var(--border-color);
            font-size: 0.8rem;
            color: var(--text-muted);
            text-align: center;
        }

        /* ===== Mobile Top Bar ===== */
        .mobile-topbar {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            height: 64px;
            background: var(--bg-sidebar);
            border-bottom: 1px solid var(--border-color);
            z-index: var(--z-header);
            align-items: center;
            justify-content: space-between;
            padding: 0 20px;
        }
        .mobile-topbar .brand-text {
            font-size: 1.1rem;
            font-weight: 700;
            color: var(--text-primary);
        }
        .mobile-topbar .brand-text span { color: var(--primary); }
        .mobile-topbar .hamburger {
            width: 40px;
            height: 40px;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            gap: 5px;
            border-radius: var(--radius-sm);
            transition: var(--transition);
        }
        .mobile-topbar .hamburger:hover { background: var(--bg-card); }
        .mobile-topbar .hamburger span {
            display: block;
            width: 22px;
            height: 2px;
            background: var(--text-primary);
            border-radius: 2px;
            transition: var(--transition);
        }
        .mobile-topbar .hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
        .mobile-topbar .hamburger.active span:nth-child(2) { opacity: 0; }
        .mobile-topbar .hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

        /* ===== Overlay for mobile ===== */
        .sidebar-overlay {
            display: none;
            position: fixed;
            inset: 0;
            background: rgba(0,0,0,0.6);
            z-index: calc(var(--z-sidebar) - 1);
            backdrop-filter: blur(4px);
        }
        .sidebar-overlay.open { display: block; }

        /* ===== Main Content ===== */
        .main-content {
            margin-left: var(--sidebar-width);
            flex: 1;
            min-height: 100vh;
            display: flex;
            flex-direction: column;
        }
        .main-content .page-content { flex: 1; }

        /* ===== Hero ===== */
        .hero {
            position: relative;
            min-height: 70vh;
            display: flex;
            align-items: center;
            padding: 60px 0 80px;
            overflow: hidden;
            background: var(--bg-mid);
        }
        .hero-bg {
            position: absolute;
            inset: 0;
            background: url('/assets/images/backpic/back-1.png') center center / cover no-repeat;
            opacity: 0.25;
            z-index: 0;
        }
        .hero-bg::after {
            content: '';
            position: absolute;
            inset: 0;
            background: linear-gradient(135deg, rgba(10,14,23,0.85) 0%, rgba(17,24,39,0.7) 50%, rgba(10,14,23,0.9) 100%);
        }
        .hero .container { position: relative; z-index: 1; }
        .hero-badge {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            background: rgba(255,107,53,0.15);
            border: 1px solid rgba(255,107,53,0.3);
            padding: 6px 16px;
            border-radius: 50px;
            font-size: 0.85rem;
            color: var(--primary-light);
            margin-bottom: 24px;
            letter-spacing: 0.03em;
        }
        .hero-badge i { font-size: 0.8rem; }
        .hero h1 { margin-bottom: 20px; max-width: 800px; }
        .hero h1 .highlight { background: linear-gradient(135deg, var(--primary), var(--accent)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
        .hero p { font-size: 1.15rem; max-width: 640px; color: var(--text-secondary); margin-bottom: 32px; }
        .hero-actions { display: flex; flex-wrap: wrap; gap: 16px; }
        .hero-actions .btn { padding: 14px 32px; border-radius: 50px; font-weight: 600; font-size: 1rem; transition: var(--transition); display: inline-flex; align-items: center; gap: 10px; }
        .hero-actions .btn-primary { background: var(--primary); color: #fff; border: 2px solid var(--primary); }
        .hero-actions .btn-primary:hover { background: var(--primary-hover); border-color: var(--primary-hover); transform: translateY(-2px); box-shadow: var(--shadow-glow); }
        .hero-actions .btn-outline { background: transparent; color: var(--text-primary); border: 2px solid var(--border-light); }
        .hero-actions .btn-outline:hover { border-color: var(--primary); color: var(--primary); transform: translateY(-2px); }
        .hero-stats {
            display: flex; gap: 40px; margin-top: 50px; flex-wrap: wrap;
        }
        .hero-stats .stat-item { text-align: left; }
        .hero-stats .stat-number { font-size: 2.2rem; font-weight: 800; color: var(--text-primary); line-height: 1.2; }
        .hero-stats .stat-number i { color: var(--primary); font-size: 1.6rem; margin-right: 6px; }
        .hero-stats .stat-label { font-size: 0.9rem; color: var(--text-muted); margin-top: 4px; }

        /* ===== Section Common ===== */
        .section { padding: 80px 0; }
        .section-header { text-align: center; margin-bottom: 48px; }
        .section-header h2 { margin-bottom: 12px; }
        .section-header p { max-width: 600px; margin: 0 auto; color: var(--text-muted); font-size: 1.05rem; }
        .section-header .subtitle { display: inline-block; background: rgba(255,107,53,0.1); padding: 4px 16px; border-radius: 50px; font-size: 0.85rem; color: var(--primary); margin-bottom: 12px; font-weight: 500; }

        /* ===== Features / Platform Intro ===== */
        .features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
        .feature-card {
            background: var(--bg-card);
            border: 1px solid var(--border-color);
            border-radius: var(--radius-lg);
            padding: 32px 28px;
            transition: var(--transition);
            position: relative;
            overflow: hidden;
        }
        .feature-card::before {
            content: '';
            position: absolute;
            top: 0; left: 0; right: 0;
            height: 3px;
            background: linear-gradient(90deg, var(--primary), var(--accent));
            opacity: 0;
            transition: var(--transition);
        }
        .feature-card:hover { border-color: var(--border-light); transform: translateY(-4px); box-shadow: var(--shadow-md); }
        .feature-card:hover::before { opacity: 1; }
        .feature-card .icon-box {
            width: 52px; height: 52px; background: rgba(255,107,53,0.1);
            border-radius: var(--radius-md);
            display: flex; align-items: center; justify-content: center;
            font-size: 1.4rem; color: var(--primary); margin-bottom: 18px;
        }
        .feature-card h3 { margin-bottom: 10px; font-size: 1.2rem; }
        .feature-card p { font-size: 0.95rem; margin-bottom: 0; }

        /* ===== Category Entry ===== */
        .category-section { background: var(--bg-mid); }
        .category-card {
            background: var(--bg-card);
            border: 1px solid var(--border-color);
            border-radius: var(--radius-lg);
            overflow: hidden;
            transition: var(--transition);
            display: flex;
            align-items: center;
        }
        .category-card:hover { border-color: var(--border-light); transform: translateY(-3px); box-shadow: var(--shadow-md); }
        .category-card .cat-img { width: 280px; min-height: 200px; flex-shrink: 0; background: var(--bg-mid); overflow: hidden; }
        .category-card .cat-img img { width: 100%; height: 100%; object-fit: cover; }
        .category-card .cat-info { padding: 28px 32px; flex: 1; }
        .category-card .cat-info h3 { margin-bottom: 8px; }
        .category-card .cat-info p { font-size: 0.95rem; margin-bottom: 16px; }
        .category-card .cat-info .btn-tag {
            display: inline-flex; align-items: center; gap: 8px;
            padding: 8px 20px; background: rgba(255,107,53,0.1);
            color: var(--primary); border-radius: 50px; font-size: 0.9rem; font-weight: 500;
            border: 1px solid rgba(255,107,53,0.2); transition: var(--transition);
        }
        .category-card .cat-info .btn-tag:hover { background: var(--primary); color: #fff; border-color: var(--primary); }

        /* ===== Stats / Data ===== */
        .stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
        .stat-card {
            background: var(--bg-card);
            border: 1px solid var(--border-color);
            border-radius: var(--radius-md);
            padding: 28px 20px;
            text-align: center;
            transition: var(--transition);
        }
        .stat-card:hover { border-color: var(--border-light); transform: translateY(-2px); }
        .stat-card .stat-num { font-size: 2.6rem; font-weight: 800; color: var(--primary); line-height: 1.2; }
        .stat-card .stat-label { font-size: 0.95rem; color: var(--text-muted); margin-top: 6px; }

        /* ===== Latest News / CMS List ===== */
        .news-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
        .news-card {
            background: var(--bg-card);
            border: 1px solid var(--border-color);
            border-radius: var(--radius-lg);
            overflow: hidden;
            transition: var(--transition);
            display: flex;
            flex-direction: column;
        }
        .news-card:hover { border-color: var(--border-light); transform: translateY(-3px); box-shadow: var(--shadow-md); }
        .news-card .news-img { height: 200px; background: var(--bg-mid); overflow: hidden; }
        .news-card .news-img img { width: 100%; height: 100%; object-fit: cover; transition: var(--transition); }
        .news-card:hover .news-img img { transform: scale(1.05); }
        .news-card .news-body { padding: 20px 24px 24px; flex: 1; display: flex; flex-direction: column; }
        .news-card .news-meta { display: flex; align-items: center; gap: 12px; font-size: 0.85rem; color: var(--text-muted); margin-bottom: 10px; }
        .news-card .news-meta .tag { background: rgba(255,107,53,0.1); color: var(--primary); padding: 2px 10px; border-radius: 4px; font-size: 0.75rem; font-weight: 500; }
        .news-card .news-body h3 { font-size: 1.05rem; margin-bottom: 8px; flex: 1; }
        .news-card .news-body h3 a { color: var(--text-primary); }
        .news-card .news-body h3 a:hover { color: var(--primary); }
        .news-card .news-body .news-excerpt { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 0; }
        .news-card .news-body .read-more { margin-top: 14px; color: var(--secondary); font-size: 0.9rem; font-weight: 500; display: inline-flex; align-items: center; gap: 6px; }
        .news-card .news-body .read-more:hover { color: var(--primary); }

        /* ===== Game Recommend ===== */
        .game-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
        .game-card {
            background: var(--bg-card);
            border: 1px solid var(--border-color);
            border-radius: var(--radius-lg);
            overflow: hidden;
            transition: var(--transition);
            position: relative;
        }
        .game-card:hover { border-color: var(--border-light); transform: translateY(-4px); box-shadow: var(--shadow-md); }
        .game-card .game-img { height: 180px; background: var(--bg-mid); overflow: hidden; }
        .game-card .game-img img { width: 100%; height: 100%; object-fit: cover; transition: var(--transition); }
        .game-card:hover .game-img img { transform: scale(1.05); }
        .game-card .game-info { padding: 18px 20px 20px; }
        .game-card .game-info h4 { font-size: 1rem; margin-bottom: 4px; }
        .game-card .game-info .game-desc { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 0; }
        .game-card .game-badge {
            position: absolute; top: 12px; right: 12px;
            background: var(--primary); color: #fff; padding: 2px 12px;
            border-radius: 50px; font-size: 0.75rem; font-weight: 600;
        }

        /* ===== Tournament Path / Flow ===== */
        .path-section { background: var(--bg-mid); }
        .path-steps { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; position: relative; }
        .path-steps::before {
            content: '';
            position: absolute; top: 40px; left: 10%; right: 10%;
            height: 2px; background: linear-gradient(90deg, var(--border-color), var(--primary), var(--border-color));
            z-index: 0;
        }
        .path-step {
            flex: 1; min-width: 140px; text-align: center; position: relative; z-index: 1;
            background: var(--bg-dark); padding: 16px 12px; border-radius: var(--radius-md);
        }
        .path-step .step-num {
            width: 48px; height: 48px; margin: 0 auto 12px;
            background: var(--primary); color: #fff; border-radius: 50%;
            display: flex; align-items: center; justify-content: center;
            font-weight: 800; font-size: 1.2rem;
            border: 3px solid var(--bg-dark); box-shadow: 0 0 0 2px var(--primary);
        }
        .path-step h4 { font-size: 1rem; margin-bottom: 4px; }
        .path-step p { font-size: 0.85rem; margin-bottom: 0; }

        /* ===== FAQ ===== */
        .faq-list { max-width: 800px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
        .faq-item {
            background: var(--bg-card);
            border: 1px solid var(--border-color);
            border-radius: var(--radius-md);
            overflow: hidden;
            transition: var(--transition);
        }
        .faq-item:hover { border-color: var(--border-light); }
        .faq-item .faq-question {
            display: flex; justify-content: space-between; align-items: center;
            padding: 18px 24px; cursor: pointer; font-weight: 600; color: var(--text-primary);
            transition: var(--transition);
        }
        .faq-item .faq-question:hover { color: var(--primary); }
        .faq-item .faq-question i { transition: var(--transition); color: var(--text-muted); }
        .faq-item .faq-answer {
            max-height: 0; overflow: hidden; transition: max-height 0.35s ease, padding 0.35s ease;
            padding: 0 24px; color: var(--text-secondary); font-size: 0.95rem;
        }
        .faq-item.active .faq-question i { transform: rotate(180deg); color: var(--primary); }
        .faq-item.active .faq-answer { max-height: 300px; padding: 0 24px 20px; }

        /* ===== CTA ===== */
        .cta-section {
            background: var(--bg-mid);
            position: relative;
            overflow: hidden;
        }
        .cta-section::before {
            content: ''; position: absolute; inset: 0;
            background: url('/assets/images/backpic/back-2.png') center center / cover no-repeat;
            opacity: 0.08;
        }
        .cta-box {
            position: relative; z-index: 1;
            background: linear-gradient(135deg, rgba(255,107,53,0.08), rgba(0,212,255,0.05));
            border: 1px solid var(--border-color);
            border-radius: var(--radius-xl);
            padding: 56px 48px;
            text-align: center;
            max-width: 760px;
            margin: 0 auto;
        }
        .cta-box h2 { margin-bottom: 12px; }
        .cta-box p { margin-bottom: 28px; color: var(--text-muted); }
        .cta-box .btn { padding: 16px 40px; border-radius: 50px; font-weight: 600; font-size: 1.05rem; background: var(--primary); color: #fff; border: 2px solid var(--primary); display: inline-flex; align-items: center; gap: 10px; transition: var(--transition); }
        .cta-box .btn:hover { background: var(--primary-hover); border-color: var(--primary-hover); transform: translateY(-2px); box-shadow: var(--shadow-glow); }

        /* ===== Footer ===== */
        .footer {
            background: var(--bg-sidebar);
            border-top: 1px solid var(--border-color);
            padding: 40px 0 24px;
            margin-top: auto;
        }
        .footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; }
        .footer-brand .brand-text { font-size: 1.2rem; font-weight: 700; color: var(--text-primary); margin-bottom: 8px; }
        .footer-brand .brand-text span { color: var(--primary); }
        .footer-brand p { font-size: 0.9rem; color: var(--text-muted); max-width: 300px; }
        .footer-col h4 { font-size: 0.95rem; color: var(--text-primary); margin-bottom: 14px; font-weight: 600; }
        .footer-col ul li { margin-bottom: 8px; }
        .footer-col ul li a { font-size: 0.9rem; color: var(--text-secondary); }
        .footer-col ul li a:hover { color: var(--primary); }
        .footer-bottom {
            margin-top: 32px; padding-top: 20px;
            border-top: 1px solid var(--border-color);
            display: flex; justify-content: space-between; align-items: center;
            flex-wrap: wrap; gap: 12px;
            font-size: 0.85rem; color: var(--text-muted);
        }

        /* ===== Buttons / Tags ===== */
        .btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 24px; border-radius: 50px; font-weight: 500; font-size: 0.95rem; transition: var(--transition); border: none; cursor: pointer; }
        .btn-sm { padding: 6px 16px; font-size: 0.85rem; }
        .tag { display: inline-block; padding: 2px 12px; border-radius: 4px; font-size: 0.75rem; font-weight: 500; background: rgba(255,107,53,0.1); color: var(--primary); }

        /* ===== Responsive ===== */
        @media (max-width: 1024px) {
            .features-grid { grid-template-columns: repeat(2, 1fr); }
            .stats-grid { grid-template-columns: repeat(2, 1fr); }
            .game-grid { grid-template-columns: repeat(2, 1fr); }
            .category-card { flex-direction: column; }
            .category-card .cat-img { width: 100%; height: 200px; }
            .footer-grid { grid-template-columns: 1fr 1fr; }
        }

        @media (max-width: 768px) {
            .sidebar { transform: translateX(-100%); }
            .sidebar.open { transform: translateX(0); }
            .mobile-topbar { display: flex; }
            .main-content { margin-left: 0; padding-top: 64px; }
            .hero { min-height: auto; padding: 40px 0 60px; }
            .hero-stats { gap: 24px; }
            .hero-stats .stat-number { font-size: 1.6rem; }
            .features-grid { grid-template-columns: 1fr; }
            .news-grid { grid-template-columns: 1fr; }
            .game-grid { grid-template-columns: 1fr; }
            .stats-grid { grid-template-columns: repeat(2, 1fr); }
            .path-steps { flex-direction: column; }
            .path-steps::before { display: none; }
            .path-step { min-width: auto; }
            .cta-box { padding: 32px 24px; }
            .footer-grid { grid-template-columns: 1fr; gap: 24px; }
            .footer-bottom { flex-direction: column; text-align: center; }
            .section { padding: 48px 0; }
            .category-card .cat-info { padding: 20px; }
        }

        @media (max-width: 520px) {
            .container { padding: 0 16px; }
            .hero-actions { flex-direction: column; }
            .hero-actions .btn { width: 100%; justify-content: center; }
            .stats-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
            .stat-card { padding: 20px 12px; }
            .stat-card .stat-num { font-size: 2rem; }
            .news-card .news-img { height: 160px; }
            .game-card .game-img { height: 150px; }
            .faq-item .faq-question { padding: 14px 16px; font-size: 0.95rem; }
            .faq-item .faq-answer { padding: 0 16px; }
            .faq-item.active .faq-answer { padding: 0 16px 16px; }
        }

        /* ===== Utility ===== */
        .text-center { text-align: center; }
        .mt-1 { margin-top: 8px; }
        .mt-2 { margin-top: 16px; }
        .mt-3 { margin-top: 24px; }
        .mb-2 { margin-bottom: 16px; }
        .gap-2 { gap: 16px; }
        .flex-center { display: flex; align-items: center; justify-content: center; }
        .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

/* roulang page: category1 */
/* ===== Design Variables ===== */
        :root {
            --primary: #f5c518;
            --primary-dark: #d4a800;
            --primary-light: #ffe066;
            --secondary: #e94560;
            --secondary-dark: #c2304a;
            --sidebar-bg: #0f0f1a;
            --sidebar-hover: #1a1a30;
            --sidebar-width: 240px;
            --bg: #f4f5f7;
            --card-bg: #ffffff;
            --text: #1a1a2e;
            --text-light: #6c757d;
            --text-white: #f8f9fa;
            --border: #e0e0e0;
            --radius: 12px;
            --radius-sm: 8px;
            --radius-lg: 20px;
            --shadow: 0 4px 24px rgba(0, 0, 0, 0.07);
            --shadow-hover: 0 12px 40px rgba(0, 0, 0, 0.12);
            --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
            --max-width: 1200px;
            --header-h: 0px;
            --footer-pt: 60px;
            --footer-pb: 30px;
        }

        /* ===== Reset & Base ===== */
        *,
        *::before,
        *::after {
            box-sizing: border-box;
            margin: 0;
            padding: 0;
        }

        html {
            scroll-behavior: smooth;
            -webkit-font-smoothing: antialiased;
        }

        body {
            font-family: var(--font);
            font-size: 16px;
            line-height: 1.7;
            color: var(--text);
            background: var(--bg);
            display: flex;
            min-height: 100vh;
        }

        a {
            color: inherit;
            text-decoration: none;
            transition: var(--transition);
        }

        img {
            max-width: 100%;
            height: auto;
            display: block;
            border-radius: var(--radius-sm);
        }

        button,
        input,
        textarea {
            font-family: inherit;
            font-size: inherit;
            border: none;
            outline: none;
            background: none;
        }

        button {
            cursor: pointer;
        }

        ul,
        ol {
            list-style: none;
        }

        h1,
        h2,
        h3,
        h4,
        h5,
        h6 {
            line-height: 1.25;
            font-weight: 700;
            color: var(--text);
        }

        h1 {
            font-size: 2.8rem;
        }
        h2 {
            font-size: 2.2rem;
        }
        h3 {
            font-size: 1.5rem;
        }
        h4 {
            font-size: 1.15rem;
        }

        .container {
            width: 100%;
            max-width: var(--max-width);
            margin: 0 auto;
            padding: 0 24px;
        }

        /* ===== Sidebar Navigation ===== */
        .sidebar {
            position: fixed;
            top: 0;
            left: 0;
            width: var(--sidebar-width);
            height: 100vh;
            background: var(--sidebar-bg);
            z-index: 1000;
            display: flex;
            flex-direction: column;
            padding: 28px 0 20px;
            box-shadow: 2px 0 20px rgba(0, 0, 0, 0.3);
            transition: transform var(--transition);
            overflow-y: auto;
        }

        .sidebar-brand {
            padding: 0 24px 32px;
            border-bottom: 1px solid rgba(255, 255, 255, 0.06);
            margin-bottom: 20px;
        }

        .brand-text {
            font-size: 1.6rem;
            font-weight: 800;
            color: var(--text-white);
            letter-spacing: -0.5px;
        }

        .brand-text span {
            color: var(--primary);
        }

        .sidebar-nav {
            display: flex;
            flex-direction: column;
            gap: 4px;
            padding: 0 12px;
        }

        .nav-item {
            display: flex;
            align-items: center;
            gap: 14px;
            padding: 14px 18px;
            border-radius: var(--radius-sm);
            color: rgba(255, 255, 255, 0.7);
            font-weight: 500;
            font-size: 1rem;
            transition: var(--transition);
            position: relative;
        }

        .nav-item i {
            width: 22px;
            text-align: center;
            font-size: 1.15rem;
            color: rgba(255, 255, 255, 0.5);
            transition: var(--transition);
        }

        .nav-item:hover {
            background: var(--sidebar-hover);
            color: var(--text-white);
        }

        .nav-item:hover i {
            color: var(--primary);
        }

        .nav-item.active {
            background: rgba(245, 197, 24, 0.12);
            color: var(--primary);
        }

        .nav-item.active i {
            color: var(--primary);
        }

        .nav-item.active::before {
            content: '';
            position: absolute;
            left: 0;
            top: 50%;
            transform: translateY(-50%);
            width: 4px;
            height: 28px;
            background: var(--primary);
            border-radius: 0 4px 4px 0;
        }

        /* ===== Main Content ===== */
        .main-content {
            margin-left: var(--sidebar-width);
            flex: 1;
            min-height: 100vh;
            display: flex;
            flex-direction: column;
        }

        /* ===== Hero Banner ===== */
        .hero {
            position: relative;
            min-height: 420px;
            display: flex;
            align-items: center;
            justify-content: center;
            text-align: center;
            background: linear-gradient(135deg, rgba(15, 15, 26, 0.85), rgba(26, 26, 46, 0.75)), url('/assets/images/backpic/back-1.png') center center / cover no-repeat;
            padding: 80px 24px 60px;
            overflow: hidden;
        }

        .hero::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            height: 80px;
            background: linear-gradient(to top, var(--bg), transparent);
            pointer-events: none;
        }

        .hero-content {
            position: relative;
            z-index: 2;
            max-width: 820px;
        }

        .hero-badge {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            background: rgba(245, 197, 24, 0.18);
            color: var(--primary);
            padding: 8px 20px;
            border-radius: 50px;
            font-size: 0.9rem;
            font-weight: 600;
            backdrop-filter: blur(6px);
            margin-bottom: 24px;
            border: 1px solid rgba(245, 197, 24, 0.25);
        }

        .hero-badge i {
            font-size: 0.85rem;
        }

        .hero h1 {
            color: var(--text-white);
            font-size: 3.2rem;
            font-weight: 800;
            letter-spacing: -1px;
            margin-bottom: 18px;
            text-shadow: 0 2px 20px rgba(0, 0, 0, 0.4);
        }

        .hero h1 span {
            color: var(--primary);
        }

        .hero p {
            color: rgba(255, 255, 255, 0.8);
            font-size: 1.15rem;
            max-width: 600px;
            margin: 0 auto 32px;
            line-height: 1.8;
        }

        .hero-actions {
            display: flex;
            gap: 16px;
            justify-content: center;
            flex-wrap: wrap;
        }

        .btn {
            display: inline-flex;
            align-items: center;
            gap: 10px;
            padding: 14px 32px;
            border-radius: 50px;
            font-weight: 600;
            font-size: 1rem;
            transition: var(--transition);
            border: none;
            cursor: pointer;
        }

        .btn-primary {
            background: var(--primary);
            color: var(--sidebar-bg);
            box-shadow: 0 4px 16px rgba(245, 197, 24, 0.35);
        }

        .btn-primary:hover {
            background: var(--primary-dark);
            transform: translateY(-2px);
            box-shadow: 0 8px 28px rgba(245, 197, 24, 0.45);
        }

        .btn-outline-light {
            background: transparent;
            color: var(--text-white);
            border: 2px solid rgba(255, 255, 255, 0.3);
        }

        .btn-outline-light:hover {
            border-color: var(--primary);
            color: var(--primary);
            background: rgba(245, 197, 24, 0.08);
            transform: translateY(-2px);
        }

        /* ===== Section Shared ===== */
        .section {
            padding: 70px 0 60px;
        }

        .section-header {
            text-align: center;
            margin-bottom: 48px;
        }

        .section-header h2 {
            font-size: 2.2rem;
            font-weight: 800;
            margin-bottom: 12px;
            letter-spacing: -0.5px;
        }

        .section-header h2 span {
            color: var(--primary-dark);
        }

        .section-header p {
            color: var(--text-light);
            font-size: 1.05rem;
            max-width: 560px;
            margin: 0 auto;
        }

        .section-divider {
            width: 64px;
            height: 4px;
            background: var(--primary);
            border-radius: 4px;
            margin: 12px auto 0;
        }

        /* ===== Category Cards (攻略分类) ===== */
        .category-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
            gap: 28px;
        }

        .category-card {
            background: var(--card-bg);
            border-radius: var(--radius);
            overflow: hidden;
            box-shadow: var(--shadow);
            transition: var(--transition);
            cursor: pointer;
            border: 1px solid var(--border);
        }

        .category-card:hover {
            transform: translateY(-6px);
            box-shadow: var(--shadow-hover);
        }

        .category-card .card-img {
            height: 180px;
            background-size: cover;
            background-position: center;
            position: relative;
        }

        .category-card .card-img .overlay {
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            height: 60%;
            background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent);
        }

        .category-card .card-img .tag {
            position: absolute;
            top: 16px;
            left: 16px;
            background: var(--primary);
            color: var(--sidebar-bg);
            padding: 4px 14px;
            border-radius: 50px;
            font-size: 0.8rem;
            font-weight: 700;
            z-index: 2;
        }

        .category-card .card-body {
            padding: 22px 24px 26px;
        }

        .category-card .card-body h3 {
            font-size: 1.2rem;
            font-weight: 700;
            margin-bottom: 8px;
        }

        .category-card .card-body p {
            color: var(--text-light);
            font-size: 0.95rem;
            line-height: 1.6;
            margin-bottom: 14px;
        }

        .category-card .card-body .meta {
            display: flex;
            align-items: center;
            gap: 16px;
            font-size: 0.85rem;
            color: var(--text-light);
        }

        .category-card .card-body .meta i {
            margin-right: 4px;
        }

        /* ===== Hot Articles (热门攻略) ===== */
        .hot-list {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 20px;
        }

        .hot-item {
            display: flex;
            align-items: center;
            gap: 20px;
            background: var(--card-bg);
            padding: 20px 24px;
            border-radius: var(--radius-sm);
            box-shadow: var(--shadow);
            border: 1px solid var(--border);
            transition: var(--transition);
        }

        .hot-item:hover {
            transform: translateY(-3px);
            box-shadow: var(--shadow-hover);
            border-color: var(--primary-light);
        }

        .hot-item .rank {
            font-size: 1.8rem;
            font-weight: 800;
            color: var(--primary);
            min-width: 44px;
            text-align: center;
            line-height: 1;
        }

        .hot-item .rank .sub {
            display: block;
            font-size: 0.7rem;
            font-weight: 400;
            color: var(--text-light);
        }

        .hot-item .info {
            flex: 1;
        }

        .hot-item .info h4 {
            font-size: 1.05rem;
            font-weight: 600;
            margin-bottom: 4px;
        }

        .hot-item .info p {
            font-size: 0.9rem;
            color: var(--text-light);
            line-height: 1.5;
        }

        .hot-item .info .badge {
            display: inline-block;
            background: rgba(245, 197, 24, 0.15);
            color: var(--primary-dark);
            font-size: 0.75rem;
            font-weight: 600;
            padding: 2px 12px;
            border-radius: 50px;
            margin-top: 6px;
        }

        .hot-item .views {
            font-size: 0.85rem;
            color: var(--text-light);
            white-space: nowrap;
        }

        .hot-item .views i {
            margin-right: 4px;
        }

        /* ===== Stats Section ===== */
        .stats-section {
            background: linear-gradient(135deg, #0f0f1a, #1a1a30);
            padding: 70px 0;
            color: var(--text-white);
        }

        .stats-grid {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 30px;
            text-align: center;
        }

        .stat-item .number {
            font-size: 2.8rem;
            font-weight: 800;
            color: var(--primary);
            line-height: 1.1;
        }

        .stat-item .label {
            font-size: 0.95rem;
            color: rgba(255, 255, 255, 0.7);
            margin-top: 6px;
        }

        .stat-item .label i {
            margin-right: 6px;
            color: var(--primary);
        }

        /* ===== Deep Guides (深度攻略) ===== */
        .guide-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 30px;
        }

        .guide-card {
            display: flex;
            background: var(--card-bg);
            border-radius: var(--radius);
            overflow: hidden;
            box-shadow: var(--shadow);
            border: 1px solid var(--border);
            transition: var(--transition);
        }

        .guide-card:hover {
            transform: translateY(-4px);
            box-shadow: var(--shadow-hover);
        }

        .guide-card .guide-img {
            width: 200px;
            min-height: 180px;
            background-size: cover;
            background-position: center;
            flex-shrink: 0;
        }

        .guide-card .guide-body {
            padding: 22px 24px;
            flex: 1;
            display: flex;
            flex-direction: column;
            justify-content: center;
        }

        .guide-card .guide-body .guide-tag {
            display: inline-block;
            background: rgba(233, 69, 96, 0.12);
            color: var(--secondary);
            font-size: 0.75rem;
            font-weight: 600;
            padding: 2px 12px;
            border-radius: 50px;
            margin-bottom: 8px;
            align-self: flex-start;
        }

        .guide-card .guide-body h3 {
            font-size: 1.15rem;
            font-weight: 700;
            margin-bottom: 8px;
        }

        .guide-card .guide-body p {
            font-size: 0.9rem;
            color: var(--text-light);
            line-height: 1.6;
            margin-bottom: 12px;
        }

        .guide-card .guide-body .guide-meta {
            display: flex;
            align-items: center;
            gap: 16px;
            font-size: 0.85rem;
            color: var(--text-light);
        }

        .guide-card .guide-body .guide-meta i {
            margin-right: 4px;
        }

        .guide-card .guide-body .guide-meta .author {
            display: flex;
            align-items: center;
            gap: 6px;
        }

        /* ===== FAQ ===== */
        .faq-list {
            max-width: 800px;
            margin: 0 auto;
            display: flex;
            flex-direction: column;
            gap: 12px;
        }

        .faq-item {
            background: var(--card-bg);
            border-radius: var(--radius-sm);
            box-shadow: var(--shadow);
            border: 1px solid var(--border);
            overflow: hidden;
            transition: var(--transition);
        }

        .faq-item:hover {
            border-color: var(--primary-light);
        }

        .faq-question {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 18px 24px;
            font-weight: 600;
            font-size: 1rem;
            cursor: pointer;
            transition: var(--transition);
            background: none;
            width: 100%;
            text-align: left;
            color: var(--text);
        }

        .faq-question i {
            color: var(--primary);
            transition: transform 0.3s ease;
            font-size: 1.1rem;
        }

        .faq-question.active i {
            transform: rotate(180deg);
        }

        .faq-answer {
            padding: 0 24px 18px;
            color: var(--text-light);
            font-size: 0.95rem;
            line-height: 1.7;
            display: none;
        }

        .faq-answer.open {
            display: block;
        }

        /* ===== CTA ===== */
        .cta-section {
            background: linear-gradient(135deg, rgba(15, 15, 26, 0.92), rgba(26, 26, 46, 0.88)), url('/assets/images/backpic/back-2.png') center center / cover no-repeat;
            padding: 80px 24px;
            text-align: center;
            color: var(--text-white);
        }

        .cta-section h2 {
            color: var(--text-white);
            font-size: 2.2rem;
            font-weight: 800;
            margin-bottom: 16px;
        }

        .cta-section h2 span {
            color: var(--primary);
        }

        .cta-section p {
            color: rgba(255, 255, 255, 0.75);
            max-width: 540px;
            margin: 0 auto 32px;
            font-size: 1.05rem;
        }

        .cta-section .btn-group {
            display: flex;
            gap: 16px;
            justify-content: center;
            flex-wrap: wrap;
        }

        .btn-cta {
            background: var(--primary);
            color: var(--sidebar-bg);
            padding: 16px 40px;
            border-radius: 50px;
            font-weight: 700;
            font-size: 1.05rem;
            box-shadow: 0 4px 20px rgba(245, 197, 24, 0.35);
            transition: var(--transition);
        }

        .btn-cta:hover {
            background: var(--primary-dark);
            transform: translateY(-3px);
            box-shadow: 0 8px 32px rgba(245, 197, 24, 0.45);
        }

        .btn-cta-outline {
            background: transparent;
            color: var(--text-white);
            border: 2px solid rgba(255, 255, 255, 0.3);
            padding: 16px 40px;
            border-radius: 50px;
            font-weight: 600;
            font-size: 1.05rem;
            transition: var(--transition);
        }

        .btn-cta-outline:hover {
            border-color: var(--primary);
            color: var(--primary);
            transform: translateY(-3px);
        }

        /* ===== Footer ===== */
        .footer {
            background: #0a0a14;
            color: rgba(255, 255, 255, 0.7);
            padding: 60px 0 30px;
            margin-top: auto;
        }

        .footer-grid {
            display: grid;
            grid-template-columns: 2fr 1fr 1.5fr;
            gap: 40px;
            margin-bottom: 40px;
        }

        .footer-brand .brand-text {
            font-size: 1.4rem;
            margin-bottom: 14px;
        }

        .footer-brand p {
            font-size: 0.9rem;
            line-height: 1.7;
            color: rgba(255, 255, 255, 0.55);
            max-width: 340px;
        }

        .footer-col h4 {
            color: var(--text-white);
            font-size: 1rem;
            font-weight: 700;
            margin-bottom: 16px;
        }

        .footer-col ul li {
            margin-bottom: 10px;
        }

        .footer-col ul li a {
            color: rgba(255, 255, 255, 0.55);
            font-size: 0.9rem;
            transition: var(--transition);
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .footer-col ul li a:hover {
            color: var(--primary);
        }

        .footer-bottom {
            border-top: 1px solid rgba(255, 255, 255, 0.06);
            padding-top: 24px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            font-size: 0.85rem;
            color: rgba(255, 255, 255, 0.4);
            flex-wrap: wrap;
            gap: 12px;
        }

        /* ===== Mobile Toggle ===== */
        .mobile-toggle {
            display: none;
            position: fixed;
            top: 16px;
            left: 16px;
            z-index: 1100;
            background: var(--sidebar-bg);
            color: var(--text-white);
            border: none;
            width: 44px;
            height: 44px;
            border-radius: var(--radius-sm);
            font-size: 1.3rem;
            cursor: pointer;
            box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
            transition: var(--transition);
        }

        .mobile-toggle:hover {
            background: var(--sidebar-hover);
        }

        .sidebar-overlay {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0, 0, 0, 0.5);
            z-index: 999;
            backdrop-filter: blur(4px);
        }

        /* ===== Responsive ===== */
        @media (max-width: 1024px) {
            :root {
                --sidebar-width: 220px;
            }
            h1 {
                font-size: 2.4rem;
            }
            h2 {
                font-size: 1.8rem;
            }
            .hero h1 {
                font-size: 2.6rem;
            }
            .stats-grid {
                grid-template-columns: repeat(2, 1fr);
                gap: 24px;
            }
            .guide-grid {
                grid-template-columns: 1fr;
            }
            .guide-card .guide-img {
                width: 160px;
            }
            .hot-list {
                grid-template-columns: 1fr;
            }
        }

        @media (max-width: 768px) {
            .mobile-toggle {
                display: flex;
                align-items: center;
                justify-content: center;
            }

            .sidebar {
                transform: translateX(-100%);
            }

            .sidebar.open {
                transform: translateX(0);
            }

            .sidebar-overlay.open {
                display: block;
            }

            .main-content {
                margin-left: 0;
            }

            .hero {
                min-height: 360px;
                padding: 60px 20px 50px;
            }

            .hero h1 {
                font-size: 2rem;
            }

            .hero p {
                font-size: 1rem;
            }

            .hero-actions {
                flex-direction: column;
                align-items: center;
            }

            .btn {
                width: 100%;
                max-width: 280px;
                justify-content: center;
            }

            .section {
                padding: 50px 0 40px;
            }

            .section-header h2 {
                font-size: 1.6rem;
            }

            .category-grid {
                grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
                gap: 20px;
            }

            .hot-item {
                flex-direction: column;
                text-align: center;
                padding: 18px 20px;
            }

            .hot-item .rank {
                min-width: auto;
            }

            .guide-card {
                flex-direction: column;
            }

            .guide-card .guide-img {
                width: 100%;
                height: 180px;
            }

            .stats-grid {
                grid-template-columns: repeat(2, 1fr);
                gap: 20px;
            }

            .stat-item .number {
                font-size: 2rem;
            }

            .footer-grid {
                grid-template-columns: 1fr;
                gap: 30px;
            }

            .footer-bottom {
                flex-direction: column;
                text-align: center;
            }

            .cta-section h2 {
                font-size: 1.6rem;
            }

            .faq-question {
                padding: 16px 18px;
                font-size: 0.95rem;
            }
        }

        @media (max-width: 520px) {
            .hero h1 {
                font-size: 1.6rem;
            }

            .section-header h2 {
                font-size: 1.4rem;
            }

            .category-grid {
                grid-template-columns: 1fr;
            }

            .stats-grid {
                grid-template-columns: 1fr 1fr;
                gap: 16px;
            }

            .stat-item .number {
                font-size: 1.6rem;
            }

            .guide-card .guide-img {
                height: 140px;
            }

            .cta-section {
                padding: 50px 20px;
            }

            .btn-cta,
            .btn-cta-outline {
                width: 100%;
                text-align: center;
            }

            .hot-item .info h4 {
                font-size: 0.95rem;
            }

            .footer-grid {
                gap: 24px;
            }
        }

        @media (min-width: 769px) {
            .sidebar {
                transform: translateX(0) !important;
            }
            .sidebar-overlay {
                display: none !important;
            }
        }

        /* ===== Animations ===== */
        @keyframes fadeUp {
            from {
                opacity: 0;
                transform: translateY(30px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .hero-content {
            animation: fadeUp 0.8s ease forwards;
        }

        .section {
            animation: fadeUp 0.6s ease forwards;
        }

/* roulang page: article */
/* ===== Design Variables ===== */
        :root {
            --primary: #e63946;
            --primary-dark: #c1121f;
            --primary-light: #ff6b6b;
            --secondary: #1d3557;
            --secondary-light: #2d4a7a;
            --accent: #f4a261;
            --accent-light: #ffd166;
            --bg-dark: #0a0f1a;
            --bg-main: #0f1623;
            --bg-card: #1a2332;
            --bg-card-hover: #1f2a3d;
            --bg-sidebar: #0c1320;
            --text-white: #f1f3f5;
            --text-light: #c8cdd5;
            --text-muted: #7a8599;
            --border-color: #2a3548;
            --border-light: #3a4558;
            --radius-sm: 6px;
            --radius-md: 12px;
            --radius-lg: 20px;
            --radius-xl: 28px;
            --shadow-sm: 0 2px 8px rgba(0,0,0,0.25);
            --shadow-md: 0 6px 24px rgba(0,0,0,0.35);
            --shadow-lg: 0 12px 40px rgba(0,0,0,0.5);
            --shadow-glow: 0 0 30px rgba(230,57,70,0.15);
            --transition: 0.25s cubic-bezier(0.4,0,0.2,1);
            --sidebar-width: 220px;
            --header-h: 0px;
            --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
            --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
        }

        /* ===== Reset & Base ===== */
        *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
        html { scroll-behavior: smooth; font-size: 16px; }
        body {
            font-family: var(--font-sans);
            background: var(--bg-main);
            color: var(--text-light);
            line-height: 1.7;
            min-height: 100vh;
            display: flex;
        }
        a { color: var(--accent); text-decoration: none; transition: var(--transition); }
        a:hover { color: var(--accent-light); }
        img { max-width: 100%; height: auto; display: block; border-radius: var(--radius-sm); }
        button, input, textarea { font-family: inherit; font-size: 1rem; }
        ul { list-style: none; }
        ::selection { background: var(--primary); color: #fff; }

        /* ===== Scrollbar ===== */
        ::-webkit-scrollbar { width: 6px; }
        ::-webkit-scrollbar-track { background: var(--bg-dark); }
        ::-webkit-scrollbar-thumb { background: var(--border-color); border-radius: 8px; }
        ::-webkit-scrollbar-thumb:hover { background: var(--border-light); }

        /* ===== Container ===== */
        .container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 24px;
        }

        /* ===== Sidebar Navigation ===== */
        .sidebar {
            position: fixed;
            top: 0;
            left: 0;
            width: var(--sidebar-width);
            height: 100vh;
            background: var(--bg-sidebar);
            border-right: 1px solid var(--border-color);
            display: flex;
            flex-direction: column;
            z-index: 1000;
            padding: 28px 0 20px;
            transition: var(--transition);
        }
        .sidebar-brand {
            padding: 0 20px 24px;
            border-bottom: 1px solid var(--border-color);
            margin-bottom: 16px;
        }
        .sidebar-brand .brand-text {
            font-size: 1.5rem;
            font-weight: 800;
            color: var(--text-white);
            letter-spacing: -0.5px;
        }
        .sidebar-brand .brand-text span {
            color: var(--primary);
        }
        .sidebar-brand .brand-sub {
            font-size: 0.75rem;
            color: var(--text-muted);
            letter-spacing: 2px;
            text-transform: uppercase;
            margin-top: 2px;
        }
        .sidebar-nav {
            flex: 1;
            display: flex;
            flex-direction: column;
            gap: 4px;
            padding: 0 12px;
        }
        .sidebar-nav .nav-item {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 12px 16px;
            border-radius: var(--radius-md);
            color: var(--text-muted);
            font-size: 0.95rem;
            font-weight: 500;
            transition: var(--transition);
            position: relative;
        }
        .sidebar-nav .nav-item i {
            width: 20px;
            text-align: center;
            font-size: 1.1rem;
        }
        .sidebar-nav .nav-item:hover {
            color: var(--text-light);
            background: rgba(255,255,255,0.04);
        }
        .sidebar-nav .nav-item.active {
            color: var(--text-white);
            background: rgba(230,57,70,0.15);
            border-left: 3px solid var(--primary);
        }
        .sidebar-nav .nav-item.active::before {
            content: '';
            position: absolute;
            left: -12px;
            top: 50%;
            transform: translateY(-50%);
            width: 3px;
            height: 24px;
            background: var(--primary);
            border-radius: 0 4px 4px 0;
        }
        .sidebar-footer {
            padding: 16px 20px 0;
            border-top: 1px solid var(--border-color);
            margin-top: 8px;
        }
        .sidebar-footer .social-links {
            display: flex;
            gap: 12px;
        }
        .sidebar-footer .social-links a {
            width: 36px;
            height: 36px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 50%;
            background: rgba(255,255,255,0.04);
            color: var(--text-muted);
            font-size: 1rem;
            transition: var(--transition);
        }
        .sidebar-footer .social-links a:hover {
            background: var(--primary);
            color: #fff;
            transform: translateY(-2px);
        }

        /* ===== Main Content Area ===== */
        .main-wrap {
            margin-left: var(--sidebar-width);
            flex: 1;
            min-height: 100vh;
            display: flex;
            flex-direction: column;
        }
        .main-content {
            flex: 1;
            padding: 40px 0 60px;
        }

        /* ===== Article Header ===== */
        .article-header {
            background: linear-gradient(135deg, var(--bg-dark) 0%, var(--bg-card) 100%);
            padding: 48px 0 40px;
            border-bottom: 1px solid var(--border-color);
            position: relative;
            overflow: hidden;
        }
        .article-header::before {
            content: '';
            position: absolute;
            top: -60%;
            right: -20%;
            width: 500px;
            height: 500px;
            background: radial-gradient(circle, rgba(230,57,70,0.06) 0%, transparent 70%);
            pointer-events: none;
        }
        .article-header .container {
            position: relative;
            z-index: 1;
        }
        .article-breadcrumb {
            display: flex;
            align-items: center;
            gap: 8px;
            font-size: 0.85rem;
            color: var(--text-muted);
            margin-bottom: 20px;
        }
        .article-breadcrumb a {
            color: var(--text-muted);
        }
        .article-breadcrumb a:hover {
            color: var(--accent);
        }
        .article-breadcrumb .sep {
            color: var(--border-color);
        }
        .article-breadcrumb .current {
            color: var(--text-light);
        }
        .article-category-badge {
            display: inline-block;
            padding: 4px 14px;
            border-radius: 20px;
            background: rgba(230,57,70,0.15);
            color: var(--primary-light);
            font-size: 0.8rem;
            font-weight: 600;
            letter-spacing: 0.5px;
            margin-bottom: 16px;
            border: 1px solid rgba(230,57,70,0.2);
        }
        .article-header h1 {
            font-size: 2.2rem;
            font-weight: 800;
            color: var(--text-white);
            line-height: 1.3;
            max-width: 800px;
            letter-spacing: -0.5px;
        }
        .article-meta {
            display: flex;
            align-items: center;
            gap: 24px;
            margin-top: 20px;
            flex-wrap: wrap;
        }
        .article-meta .meta-item {
            display: flex;
            align-items: center;
            gap: 6px;
            font-size: 0.85rem;
            color: var(--text-muted);
        }
        .article-meta .meta-item i {
            font-size: 0.9rem;
        }
        .article-meta .meta-item .cat-link {
            color: var(--accent);
            font-weight: 500;
        }

        /* ===== Article Body ===== */
        .article-body {
            padding: 48px 0;
        }
        .article-body .container {
            display: grid;
            grid-template-columns: 1fr 300px;
            gap: 48px;
        }
        .article-content {
            background: var(--bg-card);
            border-radius: var(--radius-lg);
            padding: 40px 44px;
            border: 1px solid var(--border-color);
            box-shadow: var(--shadow-sm);
        }
        .article-content .cms-content {
            font-size: 1.05rem;
            line-height: 1.9;
            color: var(--text-light);
        }
        .article-content .cms-content h2,
        .article-content .cms-content h3 {
            color: var(--text-white);
            margin-top: 32px;
            margin-bottom: 16px;
            font-weight: 700;
            letter-spacing: -0.3px;
        }
        .article-content .cms-content h2 { font-size: 1.5rem; border-bottom: 1px solid var(--border-color); padding-bottom: 10px; }
        .article-content .cms-content h3 { font-size: 1.2rem; }
        .article-content .cms-content p {
            margin-bottom: 18px;
        }
        .article-content .cms-content ul,
        .article-content .cms-content ol {
            margin-bottom: 18px;
            padding-left: 24px;
        }
        .article-content .cms-content ul li {
            list-style: disc;
            margin-bottom: 6px;
        }
        .article-content .cms-content ol li {
            list-style: decimal;
            margin-bottom: 6px;
        }
        .article-content .cms-content a {
            color: var(--accent);
            text-decoration: underline;
            text-underline-offset: 2px;
        }
        .article-content .cms-content blockquote {
            border-left: 4px solid var(--primary);
            padding: 16px 20px;
            margin: 24px 0;
            background: rgba(230,57,70,0.05);
            border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
            color: var(--text-light);
            font-style: italic;
        }
        .article-content .cms-content img {
            border-radius: var(--radius-md);
            margin: 24px 0;
            box-shadow: var(--shadow-sm);
        }
        .article-content .cms-content code {
            background: rgba(255,255,255,0.06);
            padding: 2px 10px;
            border-radius: 4px;
            font-family: var(--font-mono);
            font-size: 0.9em;
            color: var(--accent-light);
        }
        .article-content .cms-content pre {
            background: var(--bg-dark);
            padding: 20px 24px;
            border-radius: var(--radius-md);
            overflow-x: auto;
            margin: 24px 0;
            border: 1px solid var(--border-color);
        }
        .article-content .cms-content pre code {
            background: none;
            padding: 0;
            color: var(--text-light);
        }

        /* ===== Article Sidebar ===== */
        .article-sidebar {
            display: flex;
            flex-direction: column;
            gap: 28px;
        }
        .sidebar-card {
            background: var(--bg-card);
            border-radius: var(--radius-md);
            padding: 24px 20px;
            border: 1px solid var(--border-color);
            box-shadow: var(--shadow-sm);
        }
        .sidebar-card h3 {
            font-size: 1rem;
            font-weight: 700;
            color: var(--text-white);
            margin-bottom: 16px;
            display: flex;
            align-items: center;
            gap: 8px;
        }
        .sidebar-card h3 i {
            color: var(--primary);
        }
        .sidebar-card .side-list {
            display: flex;
            flex-direction: column;
            gap: 12px;
        }
        .sidebar-card .side-list a {
            display: flex;
            align-items: flex-start;
            gap: 12px;
            padding: 8px 0;
            border-bottom: 1px solid rgba(255,255,255,0.04);
            font-size: 0.9rem;
            color: var(--text-light);
            transition: var(--transition);
        }
        .sidebar-card .side-list a:last-child {
            border-bottom: none;
        }
        .sidebar-card .side-list a:hover {
            color: var(--accent);
            padding-left: 4px;
        }
        .sidebar-card .side-list a .num {
            flex-shrink: 0;
            width: 28px;
            height: 28px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 50%;
            background: rgba(230,57,70,0.1);
            color: var(--primary-light);
            font-size: 0.8rem;
            font-weight: 700;
        }
        .sidebar-card .tag-cloud {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
        }
        .sidebar-card .tag-cloud a {
            padding: 4px 14px;
            border-radius: 20px;
            background: rgba(255,255,255,0.04);
            border: 1px solid var(--border-color);
            font-size: 0.8rem;
            color: var(--text-muted);
            transition: var(--transition);
        }
        .sidebar-card .tag-cloud a:hover {
            background: rgba(230,57,70,0.1);
            border-color: var(--primary);
            color: var(--primary-light);
        }

        /* ===== Not Found ===== */
        .not-found-box {
            text-align: center;
            padding: 80px 20px;
            background: var(--bg-card);
            border-radius: var(--radius-lg);
            border: 1px solid var(--border-color);
        }
        .not-found-box .nf-icon {
            font-size: 4rem;
            color: var(--text-muted);
            margin-bottom: 20px;
        }
        .not-found-box h2 {
            font-size: 1.8rem;
            color: var(--text-white);
            margin-bottom: 12px;
        }
        .not-found-box p {
            color: var(--text-muted);
            margin-bottom: 24px;
        }
        .not-found-box .btn-back {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            padding: 12px 32px;
            border-radius: var(--radius-md);
            background: var(--primary);
            color: #fff;
            font-weight: 600;
            transition: var(--transition);
        }
        .not-found-box .btn-back:hover {
            background: var(--primary-dark);
            transform: translateY(-2px);
            box-shadow: var(--shadow-md);
        }

        /* ===== Footer ===== */
        .footer {
            background: var(--bg-dark);
            border-top: 1px solid var(--border-color);
            padding: 48px 0 28px;
            margin-top: auto;
        }
        .footer-grid {
            display: grid;
            grid-template-columns: 2fr 1fr 1.5fr;
            gap: 40px;
            margin-bottom: 36px;
        }
        .footer-brand .brand-text {
            font-size: 1.35rem;
            font-weight: 800;
            color: var(--text-white);
            margin-bottom: 10px;
        }
        .footer-brand .brand-text span {
            color: var(--primary);
        }
        .footer-brand p {
            font-size: 0.9rem;
            color: var(--text-muted);
            max-width: 360px;
            line-height: 1.7;
        }
        .footer-col h4 {
            font-size: 0.95rem;
            font-weight: 700;
            color: var(--text-white);
            margin-bottom: 16px;
            letter-spacing: 0.5px;
        }
        .footer-col ul {
            display: flex;
            flex-direction: column;
            gap: 10px;
        }
        .footer-col ul li a {
            font-size: 0.88rem;
            color: var(--text-muted);
            display: flex;
            align-items: center;
            gap: 8px;
            transition: var(--transition);
        }
        .footer-col ul li a:hover {
            color: var(--accent);
            padding-left: 4px;
        }
        .footer-col ul li a i {
            width: 18px;
            text-align: center;
            color: var(--text-muted);
        }
        .footer-bottom {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding-top: 24px;
            border-top: 1px solid var(--border-color);
            font-size: 0.82rem;
            color: var(--text-muted);
        }

        /* ===== Mobile Hamburger ===== */
        .mobile-toggle {
            display: none;
            position: fixed;
            top: 16px;
            left: 16px;
            z-index: 1100;
            width: 42px;
            height: 42px;
            border-radius: var(--radius-sm);
            background: var(--bg-card);
            border: 1px solid var(--border-color);
            color: var(--text-white);
            font-size: 1.2rem;
            cursor: pointer;
            align-items: center;
            justify-content: center;
            box-shadow: var(--shadow-sm);
            transition: var(--transition);
        }
        .mobile-toggle:hover {
            background: var(--bg-card-hover);
        }
        .sidebar-overlay {
            display: none;
            position: fixed;
            inset: 0;
            background: rgba(0,0,0,0.6);
            z-index: 999;
            backdrop-filter: blur(4px);
        }

        /* ===== Responsive ===== */
        @media (max-width: 1200px) {
            .article-body .container {
                grid-template-columns: 1fr 260px;
                gap: 32px;
            }
        }
        @media (max-width: 1024px) {
            .article-body .container {
                grid-template-columns: 1fr;
            }
            .article-sidebar {
                display: grid;
                grid-template-columns: 1fr 1fr;
                gap: 20px;
            }
            .article-content {
                padding: 32px 28px;
            }
        }
        @media (max-width: 900px) {
            .footer-grid {
                grid-template-columns: 1fr 1fr;
            }
            .footer-brand {
                grid-column: 1 / -1;
            }
            .article-header h1 {
                font-size: 1.8rem;
            }
        }
        @media (max-width: 768px) {
            :root {
                --sidebar-width: 0px;
            }
            .mobile-toggle {
                display: flex;
            }
            .sidebar {
                transform: translateX(-100%);
            }
            .sidebar.open {
                transform: translateX(0);
            }
            .sidebar-overlay.active {
                display: block;
            }
            .main-wrap {
                margin-left: 0;
            }
            .main-content {
                padding: 24px 0 40px;
            }
            .article-header {
                padding: 32px 0 28px;
            }
            .article-header h1 {
                font-size: 1.5rem;
            }
            .article-content {
                padding: 24px 18px;
            }
            .article-body .container {
                gap: 24px;
            }
            .article-sidebar {
                grid-template-columns: 1fr;
            }
            .article-meta {
                gap: 14px;
            }
            .footer-grid {
                grid-template-columns: 1fr;
                gap: 28px;
            }
            .footer-bottom {
                flex-direction: column;
                gap: 8px;
                text-align: center;
            }
        }
        @media (max-width: 520px) {
            .article-header h1 {
                font-size: 1.25rem;
            }
            .article-content {
                padding: 18px 14px;
            }
            .article-content .cms-content {
                font-size: 0.98rem;
            }
            .article-breadcrumb {
                font-size: 0.78rem;
                flex-wrap: wrap;
            }
            .sidebar-card {
                padding: 18px 14px;
            }
            .container {
                padding: 0 14px;
            }
        }

        /* ===== Print ===== */
        @media print {
            .sidebar, .mobile-toggle, .sidebar-overlay, .article-sidebar, .footer {
                display: none !important;
            }
            .main-wrap {
                margin-left: 0 !important;
            }
            .article-content {
                box-shadow: none;
                border: none;
                background: #fff;
                color: #333;
            }
            .article-content .cms-content {
                color: #333;
            }
            .article-content .cms-content h2,
            .article-content .cms-content h3 {
                color: #111;
            }
            body {
                background: #fff;
            }
        }
