/* roulang page: index */
/* ===== Design Variables ===== */
        :root {
            --primary: #0f0c29;
            --primary-light: #1a1a3e;
            --secondary: #302b63;
            --accent: #ff6b35;
            --accent-hover: #e85d2c;
            --gold: #ffd700;
            --gold-light: #fff3b0;
            --success: #00c853;
            --bg-dark: #0a0a1a;
            --bg-card: #ffffff;
            --bg-section: #f5f7fa;
            --bg-alt: #eef1f5;
            --text-primary: #1a1a2e;
            --text-secondary: #4a4a6a;
            --text-light: #7a7a9a;
            --text-white: #ffffff;
            --border-color: #e0e3eb;
            --radius-sm: 8px;
            --radius-md: 12px;
            --radius-lg: 20px;
            --radius-xl: 28px;
            --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
            --shadow-md: 0 6px 24px rgba(0,0,0,0.10);
            --shadow-lg: 0 16px 48px rgba(0,0,0,0.14);
            --nav-width: 240px;
            --header-height: 64px;
            --transition: all 0.3s ease;
            --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
        }

        /* ===== 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-family);
            font-size: 16px;
            line-height: 1.7;
            color: var(--text-primary);
            background: var(--bg-dark);
            -webkit-font-smoothing: antialiased;
            -moz-osx-font-smoothing: grayscale;
        }
        a { color: var(--accent); text-decoration: none; transition: var(--transition); }
        a:hover { color: var(--accent-hover); }
        a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
        img { max-width: 100%; height: auto; display: block; border-radius: var(--radius-md); }
        ul, ol { list-style: none; }
        button, input, textarea { font-family: inherit; font-size: inherit; border: none; outline: none; }
        button { cursor: pointer; background: none; }
        h1, h2, h3, h4, h5, h6 { font-weight: 700; line-height: 1.3; color: var(--text-primary); }
        h1 { font-size: 2.8rem; }
        h2 { font-size: 2rem; margin-bottom: 0.5rem; }
        h3 { font-size: 1.35rem; }
        p { margin-bottom: 1rem; color: var(--text-secondary); }
        .container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

        /* ===== Layout: Left Nav + Content ===== */
        .app-wrapper { display: flex; min-height: 100vh; }

        /* ===== Left Navigation ===== */
        .side-nav {
            position: fixed; top: 0; left: 0; width: var(--nav-width); height: 100vh;
            background: var(--primary); color: var(--text-white);
            display: flex; flex-direction: column; z-index: 1000;
            overflow-y: auto; border-right: 1px solid rgba(255,255,255,0.06);
            transition: var(--transition);
        }
        .side-nav .nav-brand {
            display: flex; align-items: center; gap: 12px;
            padding: 24px 20px 20px; border-bottom: 1px solid rgba(255,255,255,0.08);
        }
        .side-nav .nav-brand .brand-icon {
            width: 40px; height: 40px; border-radius: var(--radius-sm);
            background: linear-gradient(135deg, var(--accent), var(--gold));
            display: flex; align-items: center; justify-content: center;
            font-size: 1.4rem; color: #fff; font-weight: 800;
            flex-shrink: 0;
        }
        .side-nav .nav-brand .brand-text {
            font-size: 1.1rem; font-weight: 700; color: var(--text-white);
            line-height: 1.3; letter-spacing: 0.5px;
        }
        .side-nav .nav-menu { padding: 16px 12px; flex: 1; }
        .side-nav .nav-menu li { margin-bottom: 4px; }
        .side-nav .nav-menu a {
            display: flex; align-items: center; gap: 12px;
            padding: 12px 16px; border-radius: var(--radius-sm);
            color: rgba(255,255,255,0.7); font-size: 0.95rem; font-weight: 500;
            transition: var(--transition); position: relative;
        }
        .side-nav .nav-menu a i { width: 20px; text-align: center; font-size: 1rem; }
        .side-nav .nav-menu a:hover { background: rgba(255,255,255,0.08); color: var(--text-white); }
        .side-nav .nav-menu a.active {
            background: linear-gradient(135deg, var(--accent), #e85d2c);
            color: var(--text-white); box-shadow: 0 4px 16px rgba(255,107,53,0.3);
        }
        .side-nav .nav-footer {
            padding: 16px 20px; border-top: 1px solid rgba(255,255,255,0.08);
            font-size: 0.8rem; color: rgba(255,255,255,0.35); text-align: center;
        }

        /* ===== Main Content Area ===== */
        .main-content {
            margin-left: var(--nav-width); flex: 1;
            background: var(--bg-section); min-height: 100vh;
        }

        /* ===== Mobile Header ===== */
        .mobile-header {
            display: none; position: sticky; top: 0; z-index: 999;
            background: var(--primary); padding: 0 16px; height: var(--header-height);
            align-items: center; justify-content: space-between;
            border-bottom: 1px solid rgba(255,255,255,0.08);
        }
        .mobile-header .mobile-brand {
            display: flex; align-items: center; gap: 10px; color: var(--text-white); font-weight: 700; font-size: 1rem;
        }
        .mobile-header .mobile-brand .brand-icon {
            width: 32px; height: 32px; border-radius: 6px;
            background: linear-gradient(135deg, var(--accent), var(--gold));
            display: flex; align-items: center; justify-content: center;
            font-size: 1rem; color: #fff; font-weight: 800;
        }
        .mobile-header .hamburger {
            width: 36px; height: 36px; display: flex; flex-direction: column;
            align-items: center; justify-content: center; gap: 5px;
            border-radius: var(--radius-sm); transition: var(--transition);
            background: rgba(255,255,255,0.06);
        }
        .mobile-header .hamburger span {
            display: block; width: 20px; height: 2px; background: var(--text-white);
            border-radius: 2px; transition: var(--transition);
        }
        .mobile-header .hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
        .mobile-header .hamburger.active span:nth-child(2) { opacity: 0; }
        .mobile-header .hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

        /* ===== Hero Section ===== */
        .hero {
            position: relative; min-height: 520px; display: flex; align-items: center;
            background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 60%, #1a1a3e 100%);
            overflow: hidden; padding: 80px 0;
        }
        .hero::before {
            content: ''; position: absolute; inset: 0;
            background: url('/assets/images/backpic/back-1.png') center center / cover no-repeat;
            opacity: 0.2; mix-blend-mode: overlay; z-index: 1;
        }
        .hero::after {
            content: ''; position: absolute; inset: 0;
            background: radial-gradient(ellipse at 30% 50%, rgba(255,107,53,0.15) 0%, transparent 70%);
            z-index: 1;
        }
        .hero .container { position: relative; z-index: 2; width: 100%; }
        .hero-content { max-width: 700px; }
        .hero-badge {
            display: inline-flex; align-items: center; gap: 8px;
            background: rgba(255,215,0,0.15); border: 1px solid rgba(255,215,0,0.25);
            color: var(--gold); padding: 6px 18px; border-radius: 50px;
            font-size: 0.85rem; font-weight: 600; margin-bottom: 24px;
            backdrop-filter: blur(4px);
        }
        .hero-content h1 {
            font-size: 3.2rem; color: var(--text-white); margin-bottom: 16px;
            line-height: 1.2; letter-spacing: -0.5px;
        }
        .hero-content h1 span { background: linear-gradient(135deg, var(--gold), var(--accent)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
        .hero-content p {
            font-size: 1.15rem; color: rgba(255,255,255,0.75); margin-bottom: 32px;
            max-width: 580px; line-height: 1.8;
        }
        .hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
        .btn {
            display: inline-flex; align-items: center; gap: 8px;
            padding: 14px 32px; border-radius: 50px; font-weight: 600;
            font-size: 1rem; transition: var(--transition); border: none;
            cursor: pointer; text-decoration: none;
        }
        .btn-primary {
            background: linear-gradient(135deg, var(--accent), #e85d2c);
            color: var(--text-white); box-shadow: 0 6px 24px rgba(255,107,53,0.35);
        }
        .btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 32px rgba(255,107,53,0.45); color: var(--text-white); }
        .btn-secondary {
            background: rgba(255,255,255,0.1); backdrop-filter: blur(4px);
            color: var(--text-white); border: 1px solid rgba(255,255,255,0.2);
        }
        .btn-secondary:hover { background: rgba(255,255,255,0.18); color: var(--text-white); transform: translateY(-2px); }
        .btn-gold {
            background: linear-gradient(135deg, var(--gold), #f0c000);
            color: var(--primary); box-shadow: 0 6px 24px rgba(255,215,0,0.3);
        }
        .btn-gold:hover { transform: translateY(-2px); box-shadow: 0 10px 32px rgba(255,215,0,0.4); color: var(--primary); }
        .btn-lg { padding: 16px 40px; font-size: 1.1rem; }
        .btn i { font-size: 1.1rem; }

        /* ===== Section Common ===== */
        .section { padding: 80px 0; }
        .section-title { text-align: center; margin-bottom: 48px; }
        .section-title h2 { font-size: 2.2rem; margin-bottom: 12px; }
        .section-title p { font-size: 1.05rem; color: var(--text-light); max-width: 600px; margin: 0 auto; }
        .section-alt { background: var(--bg-alt); }
        .section-dark {
            background: var(--primary); color: var(--text-white);
        }
        .section-dark .section-title h2 { color: var(--text-white); }
        .section-dark .section-title p { color: rgba(255,255,255,0.65); }

        /* ===== Features Grid ===== */
        .features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
        .feature-card {
            background: var(--bg-card); border-radius: var(--radius-md);
            padding: 36px 28px; box-shadow: var(--shadow-sm);
            transition: var(--transition); border: 1px solid var(--border-color);
            text-align: center;
        }
        .feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
        .feature-card .icon {
            width: 60px; height: 60px; border-radius: var(--radius-sm);
            display: flex; align-items: center; justify-content: center;
            margin: 0 auto 20px; font-size: 1.6rem; color: var(--text-white);
        }
        .feature-card .icon.accent { background: linear-gradient(135deg, var(--accent), #e85d2c); }
        .feature-card .icon.gold { background: linear-gradient(135deg, var(--gold), #f0c000); color: var(--primary); }
        .feature-card .icon.success { background: linear-gradient(135deg, var(--success), #00a844); }
        .feature-card h3 { margin-bottom: 10px; font-size: 1.2rem; }
        .feature-card p { font-size: 0.95rem; color: var(--text-light); margin-bottom: 0; }

        /* ===== Games / Cover Cards ===== */
        .games-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
        .game-card {
            background: var(--bg-card); border-radius: var(--radius-md);
            overflow: hidden; box-shadow: var(--shadow-sm);
            transition: var(--transition); border: 1px solid var(--border-color);
        }
        .game-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
        .game-card .cover { position: relative; aspect-ratio: 16/9; overflow: hidden; background: var(--bg-alt); }
        .game-card .cover img { width: 100%; height: 100%; object-fit: cover; transition: var(--transition); }
        .game-card:hover .cover img { transform: scale(1.05); }
        .game-card .cover .badge {
            position: absolute; top: 12px; left: 12px;
            background: var(--accent); color: var(--text-white);
            padding: 4px 14px; border-radius: 50px; font-size: 0.75rem; font-weight: 600;
        }
        .game-card .info { padding: 18px 20px 20px; }
        .game-card .info h3 { font-size: 1.1rem; margin-bottom: 6px; }
        .game-card .info p { font-size: 0.9rem; color: var(--text-light); margin-bottom: 14px; line-height: 1.5; }
        .game-card .info .meta { display: flex; align-items: center; justify-content: space-between; }
        .game-card .info .meta .tag {
            background: var(--bg-alt); color: var(--text-secondary);
            padding: 4px 12px; border-radius: 50px; font-size: 0.8rem; font-weight: 500;
        }
        .game-card .info .meta .download-btn {
            width: 36px; height: 36px; border-radius: 50%;
            background: linear-gradient(135deg, var(--accent), #e85d2c);
            color: var(--text-white); display: flex; align-items: center; justify-content: center;
            transition: var(--transition); font-size: 0.9rem;
        }
        .game-card .info .meta .download-btn:hover { transform: scale(1.1); }

        /* ===== Latest News / CMS List ===== */
        .news-list { display: grid; gap: 20px; }
        .news-item {
            display: flex; align-items: flex-start; gap: 20px;
            background: var(--bg-card); border-radius: var(--radius-md);
            padding: 20px 24px; box-shadow: var(--shadow-sm);
            transition: var(--transition); border: 1px solid var(--border-color);
        }
        .news-item:hover { transform: translateX(4px); box-shadow: var(--shadow-md); }
        .news-item .num {
            width: 40px; height: 40px; border-radius: var(--radius-sm);
            background: linear-gradient(135deg, var(--primary-light), var(--secondary));
            color: var(--text-white); display: flex; align-items: center; justify-content: center;
            font-weight: 700; font-size: 0.9rem; flex-shrink: 0;
        }
        .news-item .content { flex: 1; min-width: 0; }
        .news-item .content h3 { font-size: 1.05rem; margin-bottom: 4px; }
        .news-item .content h3 a { color: var(--text-primary); }
        .news-item .content h3 a:hover { color: var(--accent); }
        .news-item .content p { font-size: 0.9rem; color: var(--text-light); margin-bottom: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
        .news-item .meta { display: flex; align-items: center; gap: 16px; margin-top: 8px; font-size: 0.8rem; color: var(--text-light); }
        .news-item .meta .cat { background: var(--bg-alt); padding: 2px 12px; border-radius: 50px; color: var(--text-secondary); font-weight: 500; }
        .news-empty {
            text-align: center; padding: 48px 24px; background: var(--bg-card);
            border-radius: var(--radius-md); color: var(--text-light); font-size: 1rem;
            border: 1px dashed var(--border-color);
        }

        /* ===== Stats ===== */
        .stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
        .stat-card {
            text-align: center; padding: 32px 16px;
            background: rgba(255,255,255,0.05); border-radius: var(--radius-md);
            border: 1px solid rgba(255,255,255,0.08); backdrop-filter: blur(4px);
            transition: var(--transition);
        }
        .stat-card:hover { background: rgba(255,255,255,0.08); transform: translateY(-2px); }
        .stat-card .num { font-size: 2.6rem; font-weight: 800; color: var(--gold); line-height: 1.2; }
        .stat-card .label { font-size: 0.95rem; color: rgba(255,255,255,0.6); margin-top: 8px; }

        /* ===== FAQ ===== */
        .faq-list { max-width: 780px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
        .faq-item {
            background: var(--bg-card); border-radius: var(--radius-md);
            border: 1px solid var(--border-color); overflow: hidden;
            transition: var(--transition);
        }
        .faq-item:hover { box-shadow: var(--shadow-sm); }
        .faq-item .faq-q {
            padding: 18px 24px; font-weight: 600; font-size: 1rem;
            display: flex; align-items: center; justify-content: space-between;
            cursor: pointer; color: var(--text-primary); user-select: none;
            transition: var(--transition);
        }
        .faq-item .faq-q:hover { color: var(--accent); }
        .faq-item .faq-q i { transition: var(--transition); color: var(--text-light); font-size: 0.8rem; }
        .faq-item.active .faq-q i { transform: rotate(180deg); color: var(--accent); }
        .faq-item .faq-a {
            max-height: 0; overflow: hidden; transition: max-height 0.4s ease, padding 0.3s ease;
            padding: 0 24px; color: var(--text-secondary); font-size: 0.95rem; line-height: 1.7;
        }
        .faq-item.active .faq-a { max-height: 300px; padding: 0 24px 20px; }

        /* ===== CTA ===== */
        .cta-section {
            background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
            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; mix-blend-mode: overlay;
        }
        .cta-content { position: relative; z-index: 2; text-align: center; padding: 60px 0; }
        .cta-content h2 { font-size: 2.2rem; color: var(--text-white); margin-bottom: 16px; }
        .cta-content p { font-size: 1.1rem; color: rgba(255,255,255,0.7); max-width: 540px; margin: 0 auto 32px; }
        .cta-content .btn-group { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }

        /* ===== Footer ===== */
        .footer {
            background: var(--primary); color: rgba(255,255,255,0.5);
            padding: 40px 0 32px; border-top: 1px solid rgba(255,255,255,0.06);
        }
        .footer .container { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; }
        .footer .footer-brand { display: flex; align-items: center; gap: 10px; }
        .footer .footer-brand .brand-icon {
            width: 32px; height: 32px; border-radius: 6px;
            background: linear-gradient(135deg, var(--accent), var(--gold));
            display: flex; align-items: center; justify-content: center;
            font-size: 0.9rem; color: #fff; font-weight: 800;
        }
        .footer .footer-brand span { color: rgba(255,255,255,0.8); font-weight: 600; font-size: 0.95rem; }
        .footer .footer-links { display: flex; flex-wrap: wrap; gap: 20px; }
        .footer .footer-links a { color: rgba(255,255,255,0.5); font-size: 0.85rem; transition: var(--transition); }
        .footer .footer-links a:hover { color: var(--gold); }
        .footer .copyright { font-size: 0.8rem; width: 100%; text-align: center; margin-top: 16px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,0.06); color: rgba(255,255,255,0.3); }

        /* ===== Responsive ===== */
        @media (max-width: 1024px) {
            .features-grid { grid-template-columns: repeat(2, 1fr); }
            .games-grid { grid-template-columns: repeat(2, 1fr); }
            .stats-grid { grid-template-columns: repeat(2, 1fr); }
            .hero-content h1 { font-size: 2.6rem; }
        }

        @media (max-width: 768px) {
            .side-nav { transform: translateX(-100%); }
            .side-nav.open { transform: translateX(0); }
            .main-content { margin-left: 0; }
            .mobile-header { display: flex; }
            .hero { min-height: 400px; padding: 60px 0; }
            .hero-content h1 { font-size: 2rem; }
            .hero-content p { font-size: 1rem; }
            .section { padding: 56px 0; }
            .section-title { margin-bottom: 32px; }
            .section-title h2 { font-size: 1.7rem; }
            .features-grid { grid-template-columns: 1fr; gap: 20px; }
            .games-grid { grid-template-columns: 1fr; gap: 20px; }
            .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
            .stat-card .num { font-size: 2rem; }
            .news-item { flex-direction: column; padding: 16px 18px; }
            .news-item .num { display: none; }
            .cta-content h2 { font-size: 1.6rem; }
            .footer .container { flex-direction: column; text-align: center; }
            .btn-lg { padding: 14px 28px; font-size: 1rem; }
        }

        @media (max-width: 520px) {
            .hero-content h1 { font-size: 1.6rem; }
            .hero-actions { flex-direction: column; }
            .hero-actions .btn { width: 100%; justify-content: center; }
            .stats-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
            .stat-card { padding: 20px 12px; }
            .stat-card .num { font-size: 1.6rem; }
            .game-card .info { padding: 14px 16px; }
            .faq-item .faq-q { padding: 14px 16px; font-size: 0.95rem; }
            .section { padding: 40px 0; }
        }

        /* ===== Mobile Overlay ===== */
        .nav-overlay {
            display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.5);
            z-index: 999; backdrop-filter: blur(2px);
        }
        .nav-overlay.show { display: block; }
        @media (max-width: 768px) {
            .nav-overlay.show { display: block; }
        }

        /* ===== Misc ===== */
        .text-center { text-align: center; }
        .mt-16 { margin-top: 16px; }
        .mb-16 { margin-bottom: 16px; }
        .gap-8 { gap: 8px; }
        .flex-center { display: flex; align-items: center; justify-content: center; }

/* roulang page: category1 */
/* ===== 设计变量 ===== */
        :root {
            --primary: #6366F1;
            --primary-dark: #4F46E5;
            --primary-light: #A5B4FC;
            --primary-bg: rgba(99, 102, 241, 0.08);
            --accent: #F59E0B;
            --accent-dark: #D97706;
            --accent-light: #FDE68A;
            --success: #10B981;
            --dark: #0F0E3A;
            --dark-2: #1E1B4B;
            --text: #1F2937;
            --text-light: #6B7280;
            --text-white: #FFFFFF;
            --bg: #F8FAFC;
            --bg-card: #FFFFFF;
            --bg-section: #F1F5F9;
            --border: #E5E7EB;
            --border-light: #F1F5F9;
            --radius-sm: 8px;
            --radius-md: 12px;
            --radius-lg: 16px;
            --radius-xl: 24px;
            --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
            --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
            --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.1);
            --shadow-xl: 0 20px 50px rgba(0, 0, 0, 0.15);
            --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
            --nav-width: 240px;
            --header-h: 64px;
            --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
            --max-w: 1200px;
        }

        /* ===== 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);
            font-size: 16px;
            line-height: 1.6;
            color: var(--text);
            background: var(--bg);
            -webkit-font-smoothing: antialiased;
            -moz-osx-font-smoothing: grayscale;
        }

        a {
            color: var(--primary);
            text-decoration: none;
            transition: color var(--transition);
        }

        a:hover {
            color: var(--primary-dark);
        }

        img {
            max-width: 100%;
            height: auto;
            display: block;
            border-radius: var(--radius-sm);
        }

        button,
        input,
        textarea,
        select {
            font-family: inherit;
            font-size: inherit;
            outline: none;
            border: none;
        }

        button {
            cursor: pointer;
            background: none;
        }

        ul,
        ol {
            list-style: none;
        }

        h1,
        h2,
        h3,
        h4,
        h5,
        h6 {
            line-height: 1.3;
            color: var(--dark);
            font-weight: 700;
        }

        .container {
            width: 100%;
            max-width: var(--max-w);
            margin: 0 auto;
            padding: 0 24px;
        }

        /* ===== App Wrapper ===== */
        .app-wrapper {
            display: flex;
            min-height: 100vh;
        }

        /* ===== Side Nav ===== */
        .side-nav {
            position: fixed;
            top: 0;
            left: 0;
            width: var(--nav-width);
            height: 100vh;
            background: var(--dark);
            color: var(--text-white);
            display: flex;
            flex-direction: column;
            padding: 0;
            z-index: 1000;
            transition: transform var(--transition), box-shadow var(--transition);
            overflow-y: auto;
        }

        .side-nav .nav-brand {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 24px 20px 20px;
            border-bottom: 1px solid rgba(255, 255, 255, 0.08);
            flex-shrink: 0;
        }

        .side-nav .brand-icon {
            width: 40px;
            height: 40px;
            background: linear-gradient(135deg, var(--primary), var(--accent));
            border-radius: var(--radius-sm);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 22px;
            font-weight: 800;
            color: #fff;
            flex-shrink: 0;
        }

        .side-nav .brand-text {
            font-size: 18px;
            font-weight: 700;
            letter-spacing: 0.5px;
            color: #fff;
            line-height: 1.2;
        }

        .side-nav .nav-menu {
            flex: 1;
            padding: 16px 12px;
            display: flex;
            flex-direction: column;
            gap: 4px;
        }

        .side-nav .nav-menu li a {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 12px 16px;
            border-radius: var(--radius-sm);
            color: rgba(255, 255, 255, 0.7);
            font-size: 15px;
            font-weight: 500;
            transition: all var(--transition);
            position: relative;
        }

        .side-nav .nav-menu li a i {
            width: 20px;
            text-align: center;
            font-size: 16px;
            color: rgba(255, 255, 255, 0.5);
            transition: color var(--transition);
        }

        .side-nav .nav-menu li a:hover {
            background: rgba(255, 255, 255, 0.08);
            color: #fff;
        }

        .side-nav .nav-menu li a:hover i {
            color: var(--primary-light);
        }

        .side-nav .nav-menu li a.active {
            background: rgba(99, 102, 241, 0.25);
            color: #fff;
            font-weight: 600;
        }

        .side-nav .nav-menu li a.active i {
            color: var(--primary-light);
        }

        .side-nav .nav-menu li a.active::before {
            content: '';
            position: absolute;
            left: 0;
            top: 50%;
            transform: translateY(-50%);
            width: 3px;
            height: 24px;
            background: var(--primary-light);
            border-radius: 0 3px 3px 0;
        }

        .side-nav .nav-footer {
            padding: 16px 20px;
            font-size: 12px;
            color: rgba(255, 255, 255, 0.35);
            border-top: 1px solid rgba(255, 255, 255, 0.06);
            text-align: center;
            flex-shrink: 0;
            letter-spacing: 0.3px;
        }

        /* ===== Mobile Nav Toggle ===== */
        .nav-toggle {
            display: none;
            position: fixed;
            top: 12px;
            left: 16px;
            z-index: 1100;
            background: var(--dark);
            color: #fff;
            width: 44px;
            height: 44px;
            border-radius: var(--radius-sm);
            align-items: center;
            justify-content: center;
            font-size: 20px;
            box-shadow: var(--shadow-md);
            border: 1px solid rgba(255, 255, 255, 0.1);
            transition: background var(--transition);
        }

        .nav-toggle:hover {
            background: var(--dark-2);
        }

        .nav-overlay {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100vw;
            height: 100vh;
            background: rgba(0, 0, 0, 0.5);
            z-index: 999;
            backdrop-filter: blur(4px);
            opacity: 0;
            transition: opacity var(--transition);
        }

        .nav-overlay.show {
            opacity: 1;
        }

        /* ===== Main Content ===== */
        .main-content {
            flex: 1;
            margin-left: var(--nav-width);
            min-height: 100vh;
            display: flex;
            flex-direction: column;
        }

        /* ===== Hero / Banner ===== */
        .category-hero {
            position: relative;
            padding: 80px 0 60px;
            background: linear-gradient(135deg, var(--dark) 0%, var(--dark-2) 50%, rgba(99, 102, 241, 0.15) 100%);
            overflow: hidden;
            min-height: 320px;
            display: flex;
            align-items: center;
        }

        .category-hero::before {
            content: '';
            position: absolute;
            inset: 0;
            background: url('/assets/images/backpic/back-1.png') center center / cover no-repeat;
            opacity: 0.15;
            z-index: 0;
        }

        .category-hero::after {
            content: '';
            position: absolute;
            inset: 0;
            background: linear-gradient(135deg, rgba(15, 14, 58, 0.85) 0%, rgba(30, 27, 75, 0.7) 100%);
            z-index: 1;
        }

        .category-hero .container {
            position: relative;
            z-index: 2;
            text-align: center;
            color: var(--text-white);
        }

        .category-hero .hero-badge {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            background: rgba(99, 102, 241, 0.3);
            border: 1px solid rgba(165, 180, 252, 0.3);
            padding: 6px 18px;
            border-radius: 50px;
            font-size: 13px;
            font-weight: 500;
            color: var(--primary-light);
            margin-bottom: 20px;
            backdrop-filter: blur(8px);
        }

        .category-hero h1 {
            font-size: 42px;
            font-weight: 800;
            color: #fff;
            margin-bottom: 16px;
            letter-spacing: -0.5px;
        }

        .category-hero h1 span {
            background: linear-gradient(135deg, var(--primary-light), var(--accent-light));
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        .category-hero p {
            font-size: 18px;
            color: rgba(255, 255, 255, 0.75);
            max-width: 640px;
            margin: 0 auto 28px;
            line-height: 1.7;
        }

        .hero-stats {
            display: flex;
            justify-content: center;
            gap: 40px;
            flex-wrap: wrap;
        }

        .hero-stats .stat-item {
            text-align: center;
        }

        .hero-stats .stat-item .num {
            font-size: 28px;
            font-weight: 800;
            color: #fff;
            display: block;
        }

        .hero-stats .stat-item .label {
            font-size: 13px;
            color: rgba(255, 255, 255, 0.55);
            margin-top: 2px;
        }

        /* ===== Breadcrumb ===== */
        .breadcrumb-bar {
            background: var(--bg-card);
            border-bottom: 1px solid var(--border);
            padding: 12px 0;
        }

        .breadcrumb-bar .container {
            display: flex;
            align-items: center;
            gap: 8px;
            font-size: 13px;
            color: var(--text-light);
        }

        .breadcrumb-bar a {
            color: var(--text-light);
        }

        .breadcrumb-bar a:hover {
            color: var(--primary);
        }

        .breadcrumb-bar .sep {
            color: var(--border);
            font-size: 12px;
        }

        .breadcrumb-bar .current {
            color: var(--text);
            font-weight: 500;
        }

        /* ===== Section Common ===== */
        .section {
            padding: 64px 0;
        }

        .section-header {
            text-align: center;
            margin-bottom: 44px;
        }

        .section-header h2 {
            font-size: 32px;
            font-weight: 800;
            color: var(--dark);
            margin-bottom: 12px;
            letter-spacing: -0.3px;
        }

        .section-header h2 .highlight {
            background: linear-gradient(135deg, var(--primary), var(--accent));
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        .section-header p {
            font-size: 16px;
            color: var(--text-light);
            max-width: 560px;
            margin: 0 auto;
            line-height: 1.7;
        }

        .section.bg-light {
            background: var(--bg-section);
        }

        .section.bg-white {
            background: var(--bg-card);
        }

        /* ===== Sub Category Grid ===== */
        .sub-category-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
            gap: 16px;
        }

        .sub-cat-card {
            background: var(--bg-card);
            border: 1px solid var(--border);
            border-radius: var(--radius-md);
            padding: 24px 16px;
            text-align: center;
            transition: all var(--transition);
            cursor: pointer;
        }

        .sub-cat-card:hover {
            border-color: var(--primary);
            box-shadow: var(--shadow-md);
            transform: translateY(-3px);
        }

        .sub-cat-card .icon {
            width: 48px;
            height: 48px;
            margin: 0 auto 12px;
            background: var(--primary-bg);
            border-radius: var(--radius-sm);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 22px;
            color: var(--primary);
            transition: background var(--transition);
        }

        .sub-cat-card:hover .icon {
            background: var(--primary);
            color: #fff;
        }

        .sub-cat-card h3 {
            font-size: 15px;
            font-weight: 600;
            color: var(--text);
            margin-bottom: 4px;
        }

        .sub-cat-card .count {
            font-size: 13px;
            color: var(--text-light);
        }

        /* ===== Guide Card Grid ===== */
        .guide-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
            gap: 24px;
        }

        .guide-card {
            background: var(--bg-card);
            border: 1px solid var(--border);
            border-radius: var(--radius-md);
            overflow: hidden;
            transition: all var(--transition);
            display: flex;
            flex-direction: column;
        }

        .guide-card:hover {
            border-color: var(--primary-light);
            box-shadow: var(--shadow-lg);
            transform: translateY(-4px);
        }

        .guide-card .card-img {
            width: 100%;
            height: 200px;
            object-fit: cover;
            border-radius: 0;
            display: block;
        }

        .guide-card .card-body {
            padding: 20px;
            flex: 1;
            display: flex;
            flex-direction: column;
        }

        .guide-card .card-tags {
            display: flex;
            gap: 8px;
            flex-wrap: wrap;
            margin-bottom: 10px;
        }

        .guide-card .card-tags .tag {
            font-size: 12px;
            font-weight: 500;
            padding: 2px 12px;
            border-radius: 50px;
            background: var(--primary-bg);
            color: var(--primary);
        }

        .guide-card .card-tags .tag.hot {
            background: rgba(245, 158, 11, 0.12);
            color: var(--accent-dark);
        }

        .guide-card .card-tags .tag.new {
            background: rgba(16, 185, 129, 0.12);
            color: var(--success);
        }

        .guide-card h3 {
            font-size: 18px;
            font-weight: 700;
            color: var(--dark);
            margin-bottom: 8px;
            line-height: 1.35;
        }

        .guide-card p {
            font-size: 14px;
            color: var(--text-light);
            line-height: 1.7;
            flex: 1;
            margin-bottom: 16px;
        }

        .guide-card .card-meta {
            display: flex;
            align-items: center;
            justify-content: space-between;
            font-size: 13px;
            color: var(--text-light);
            border-top: 1px solid var(--border-light);
            padding-top: 14px;
        }

        .guide-card .card-meta .views i {
            margin-right: 4px;
            font-size: 12px;
        }

        .guide-card .card-meta .btn-sm {
            padding: 6px 16px;
            font-size: 13px;
            font-weight: 500;
            border-radius: 50px;
            background: var(--primary);
            color: #fff;
            transition: background var(--transition);
        }

        .guide-card .card-meta .btn-sm:hover {
            background: var(--primary-dark);
            color: #fff;
        }

        /* ===== Feature Section ===== */
        .feature-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
            gap: 24px;
        }

        .feature-item {
            background: var(--bg-card);
            border: 1px solid var(--border);
            border-radius: var(--radius-md);
            padding: 32px 24px;
            text-align: center;
            transition: all var(--transition);
        }

        .feature-item:hover {
            border-color: var(--primary-light);
            box-shadow: var(--shadow-md);
        }

        .feature-item .f-icon {
            width: 56px;
            height: 56px;
            margin: 0 auto 16px;
            background: linear-gradient(135deg, var(--primary-bg), rgba(245, 158, 11, 0.08));
            border-radius: var(--radius-sm);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 26px;
            color: var(--primary);
        }

        .feature-item h3 {
            font-size: 18px;
            font-weight: 700;
            color: var(--dark);
            margin-bottom: 8px;
        }

        .feature-item p {
            font-size: 14px;
            color: var(--text-light);
            line-height: 1.7;
        }

        /* ===== Stats Counter ===== */
        .stats-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
            gap: 24px;
            text-align: center;
        }

        .stats-grid .stat-box {
            background: var(--bg-card);
            border: 1px solid var(--border);
            border-radius: var(--radius-md);
            padding: 32px 16px;
            transition: all var(--transition);
        }

        .stats-grid .stat-box:hover {
            border-color: var(--primary-light);
            box-shadow: var(--shadow-sm);
        }

        .stats-grid .stat-box .num {
            font-size: 36px;
            font-weight: 800;
            color: var(--primary);
            display: block;
            line-height: 1.2;
        }

        .stats-grid .stat-box .num .suffix {
            font-size: 20px;
            font-weight: 600;
            color: var(--text-light);
        }

        .stats-grid .stat-box .label {
            font-size: 14px;
            color: var(--text-light);
            margin-top: 6px;
        }

        /* ===== 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);
            border-radius: var(--radius-sm);
            overflow: hidden;
            transition: border-color var(--transition);
        }

        .faq-item.open {
            border-color: var(--primary-light);
        }

        .faq-question {
            width: 100%;
            padding: 18px 20px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            font-size: 16px;
            font-weight: 600;
            color: var(--text);
            text-align: left;
            background: none;
            transition: color var(--transition);
        }

        .faq-question:hover {
            color: var(--primary);
        }

        .faq-question .faq-icon {
            font-size: 14px;
            color: var(--text-light);
            transition: transform var(--transition);
            flex-shrink: 0;
            margin-left: 12px;
        }

        .faq-item.open .faq-question .faq-icon {
            transform: rotate(180deg);
            color: var(--primary);
        }

        .faq-answer {
            max-height: 0;
            overflow: hidden;
            transition: max-height 0.35s ease, padding 0.35s ease;
            padding: 0 20px;
            font-size: 15px;
            color: var(--text-light);
            line-height: 1.7;
        }

        .faq-item.open .faq-answer {
            max-height: 300px;
            padding: 0 20px 18px;
        }

        /* ===== CTA ===== */
        .cta-section {
            background: linear-gradient(135deg, var(--dark) 0%, var(--dark-2) 100%);
            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;
            z-index: 0;
        }

        .cta-section .container {
            position: relative;
            z-index: 1;
            text-align: center;
            padding: 64px 24px;
        }

        .cta-section h2 {
            font-size: 32px;
            font-weight: 800;
            color: #fff;
            margin-bottom: 14px;
        }

        .cta-section p {
            font-size: 16px;
            color: rgba(255, 255, 255, 0.7);
            max-width: 520px;
            margin: 0 auto 28px;
        }

        .cta-buttons {
            display: flex;
            justify-content: center;
            gap: 16px;
            flex-wrap: wrap;
        }

        .btn {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            padding: 14px 32px;
            font-size: 16px;
            font-weight: 600;
            border-radius: 50px;
            transition: all var(--transition);
            border: none;
            cursor: pointer;
        }

        .btn-primary {
            background: var(--primary);
            color: #fff;
            box-shadow: 0 4px 14px rgba(99, 102, 241, 0.35);
        }

        .btn-primary:hover {
            background: var(--primary-dark);
            color: #fff;
            box-shadow: 0 6px 24px rgba(99, 102, 241, 0.45);
            transform: translateY(-2px);
        }

        .btn-outline-light {
            background: transparent;
            color: #fff;
            border: 2px solid rgba(255, 255, 255, 0.3);
        }

        .btn-outline-light:hover {
            background: rgba(255, 255, 255, 0.1);
            color: #fff;
            border-color: rgba(255, 255, 255, 0.5);
            transform: translateY(-2px);
        }

        /* ===== Footer ===== */
        .footer {
            background: var(--dark);
            color: rgba(255, 255, 255, 0.7);
            padding: 40px 0 32px;
            flex-shrink: 0;
        }

        .footer .container {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 20px;
            text-align: center;
        }

        .footer .footer-brand {
            display: flex;
            align-items: center;
            gap: 10px;
            font-size: 18px;
            font-weight: 700;
            color: #fff;
        }

        .footer .footer-brand .brand-icon {
            width: 36px;
            height: 36px;
            background: linear-gradient(135deg, var(--primary), var(--accent));
            border-radius: var(--radius-sm);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 18px;
            font-weight: 800;
            color: #fff;
        }

        .footer .footer-links {
            display: flex;
            gap: 24px;
            flex-wrap: wrap;
            justify-content: center;
        }

        .footer .footer-links a {
            color: rgba(255, 255, 255, 0.6);
            font-size: 14px;
            font-weight: 500;
            transition: color var(--transition);
        }

        .footer .footer-links a:hover {
            color: var(--primary-light);
        }

        .footer .copyright {
            font-size: 13px;
            color: rgba(255, 255, 255, 0.35);
            letter-spacing: 0.3px;
        }

        /* ===== Mobile Nav Open State ===== */
        body.nav-open .side-nav {
            transform: translateX(0);
            box-shadow: var(--shadow-xl);
        }

        body.nav-open .nav-overlay {
            display: block;
            opacity: 1;
        }

        /* ===== Responsive ===== */
        @media (max-width: 1024px) {
            .guide-grid {
                grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
            }

            .category-hero h1 {
                font-size: 34px;
            }
        }

        @media (max-width: 768px) {
            :root {
                --nav-width: 0px;
            }

            .nav-toggle {
                display: flex;
            }

            .side-nav {
                transform: translateX(-100%);
                width: 280px;
            }

            .main-content {
                margin-left: 0;
            }

            .category-hero {
                padding: 60px 0 44px;
                min-height: 260px;
            }

            .category-hero h1 {
                font-size: 28px;
            }

            .category-hero p {
                font-size: 16px;
            }

            .hero-stats {
                gap: 24px;
            }

            .hero-stats .stat-item .num {
                font-size: 22px;
            }

            .section {
                padding: 44px 0;
            }

            .section-header h2 {
                font-size: 26px;
            }

            .sub-category-grid {
                grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
                gap: 12px;
            }

            .sub-cat-card {
                padding: 18px 12px;
            }

            .sub-cat-card .icon {
                width: 40px;
                height: 40px;
                font-size: 18px;
            }

            .sub-cat-card h3 {
                font-size: 14px;
            }

            .guide-grid {
                grid-template-columns: 1fr;
                gap: 16px;
            }

            .feature-grid {
                grid-template-columns: 1fr 1fr;
                gap: 16px;
            }

            .stats-grid {
                grid-template-columns: 1fr 1fr;
                gap: 16px;
            }

            .cta-section h2 {
                font-size: 26px;
            }

            .btn {
                padding: 12px 24px;
                font-size: 15px;
            }

            .faq-question {
                font-size: 15px;
                padding: 16px 16px;
            }

            .container {
                padding: 0 16px;
            }
        }

        @media (max-width: 520px) {
            .category-hero h1 {
                font-size: 24px;
            }

            .hero-stats {
                gap: 16px;
                flex-direction: column;
                align-items: center;
            }

            .section-header h2 {
                font-size: 22px;
            }

            .feature-grid {
                grid-template-columns: 1fr;
            }

            .stats-grid {
                grid-template-columns: 1fr 1fr;
                gap: 12px;
            }

            .stats-grid .stat-box .num {
                font-size: 28px;
            }

            .cta-buttons {
                flex-direction: column;
                align-items: center;
            }

            .btn {
                width: 100%;
                justify-content: center;
            }

            .footer .footer-links {
                gap: 16px;
            }
        }

        @media (min-width: 769px) {
            .side-nav {
                transform: translateX(0) !important;
            }
            .nav-overlay {
                display: none !important;
            }
            body.nav-open .side-nav {
                transform: translateX(0);
            }
        }

/* roulang page: article */
/* ===== Design Variables ===== */
:root {
  --primary: #0f1b2d;
  --primary-dark: #080e1a;
  --primary-light: #1a2a4a;
  --accent: #f0a030;
  --accent-light: #f5b84a;
  --accent-dark: #d48920;
  --bg: #f0f2f5;
  --bg-card: #ffffff;
  --text: #1a1a2e;
  --text-light: #6b7280;
  --text-muted: #9ca3af;
  --text-white: #ffffff;
  --border: #e5e7eb;
  --radius: 16px;
  --radius-sm: 10px;
  --radius-xs: 6px;
  --shadow: 0 4px 24px rgba(0,0,0,0.07);
  --shadow-hover: 0 12px 48px rgba(0,0,0,0.12);
  --shadow-nav: 2px 0 20px rgba(0,0,0,0.15);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font: 'PingFang SC','Microsoft YaHei','Noto Sans SC',system-ui,-apple-system,sans-serif;
  --nav-width: 240px;
  --content-max: 860px;
}
/* ===== 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);
  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; outline: none; border: none; }
ul, ol { list-style: none; }
/* ===== Layout: Side Nav + Main ===== */
.side-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: var(--nav-width);
  height: 100vh;
  background: var(--primary-dark);
  display: flex;
  flex-direction: column;
  z-index: 1000;
  box-shadow: var(--shadow-nav);
  overflow-y: auto;
  transition: transform var(--transition);
}
.main-wrap {
  margin-left: var(--nav-width);
  flex: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
/* ===== Side Nav Brand ===== */
.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 28px 20px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.brand-icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 700;
  color: var(--primary-dark);
  flex-shrink: 0;
}
.brand-text {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-white);
  letter-spacing: 0.5px;
}
/* ===== Side Nav Menu ===== */
.nav-menu { flex: 1; padding: 16px 12px; }
.nav-menu li { margin-bottom: 4px; }
.nav-menu a {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  color: rgba(255,255,255,0.65);
  font-size: 15px;
  font-weight: 500;
  transition: var(--transition);
}
.nav-menu a i { width: 20px; font-size: 16px; text-align: center; }
.nav-menu a:hover {
  background: rgba(255,255,255,0.08);
  color: var(--text-white);
}
.nav-menu a.active {
  background: rgba(240,160,48,0.15);
  color: var(--accent-light);
  font-weight: 600;
}
.nav-menu a.active i { color: var(--accent-light); }
/* ===== Nav Footer ===== */
.nav-footer {
  padding: 16px 20px;
  border-top: 1px solid rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.35);
  font-size: 12px;
  text-align: center;
}
/* ===== Mobile Nav Toggle ===== */
.nav-toggle {
  display: none;
  position: fixed;
  top: 16px;
  left: 16px;
  z-index: 1100;
  width: 44px;
  height: 44px;
  background: var(--primary);
  color: var(--text-white);
  border-radius: var(--radius-sm);
  align-items: center;
  justify-content: center;
  font-size: 20px;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border: none;
}
.nav-toggle:hover { background: var(--primary-light); }
.nav-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.5);
  z-index: 999;
  opacity: 0;
  transition: opacity var(--transition);
}
/* ===== Main Content Area ===== */
.main-content {
  flex: 1;
  padding: 40px 32px 60px;
  max-width: var(--content-max);
  width: 100%;
  margin: 0 auto;
}
/* ===== Breadcrumb ===== */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text-light);
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.breadcrumb a { color: var(--text-light); transition: var(--transition); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb span { color: var(--text-muted); }
.breadcrumb .sep { color: var(--text-muted); font-size: 12px; }
/* ===== Article Card ===== */
.article-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  padding: 40px 44px 48px;
  margin-bottom: 36px;
}
.article-feature-img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  margin-bottom: 32px;
  background: var(--border);
}
.article-header { margin-bottom: 28px; }
.article-category {
  display: inline-block;
  background: rgba(240,160,48,0.12);
  color: var(--accent-dark);
  font-size: 13px;
  font-weight: 600;
  padding: 4px 14px;
  border-radius: 20px;
  margin-bottom: 16px;
}
.article-title {
  font-size: 30px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--primary);
  margin-bottom: 16px;
}
.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px;
  font-size: 14px;
  color: var(--text-light);
}
.article-meta i { margin-right: 6px; color: var(--text-muted); }
.article-meta span { display: inline-flex; align-items: center; }
/* ===== Article Summary ===== */
.article-summary {
  background: var(--bg);
  border-left: 4px solid var(--accent);
  padding: 20px 24px;
  border-radius: var(--radius-xs);
  font-size: 16px;
  color: var(--text-light);
  line-height: 1.8;
  margin-bottom: 32px;
}
.article-summary strong { color: var(--text); }
/* ===== Article Body ===== */
.article-body {
  font-size: 16.5px;
  line-height: 1.9;
  color: var(--text);
}
.article-body p { margin-bottom: 1.2em; }
.article-body h2, .article-body h3 {
  margin-top: 1.6em;
  margin-bottom: 0.6em;
  color: var(--primary);
  font-weight: 700;
}
.article-body h2 { font-size: 24px; }
.article-body h3 { font-size: 20px; }
.article-body ul, .article-body ol {
  margin: 0.8em 0 1.2em 1.5em;
}
.article-body ul { list-style: disc; }
.article-body ol { list-style: decimal; }
.article-body li { margin-bottom: 0.4em; }
.article-body blockquote {
  border-left: 4px solid var(--accent);
  background: var(--bg);
  padding: 16px 22px;
  margin: 1.2em 0;
  border-radius: var(--radius-xs);
  color: var(--text-light);
  font-style: normal;
}
.article-body a { color: var(--accent-dark); text-decoration: underline; }
.article-body a:hover { color: var(--accent); }
.article-body img { margin: 1.2em 0; border-radius: var(--radius-sm); width: 100%; }
/* ===== Article Tags ===== */
.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}
.tag {
  display: inline-block;
  background: var(--bg);
  color: var(--text-light);
  font-size: 13px;
  padding: 5px 16px;
  border-radius: 20px;
  transition: var(--transition);
  border: 1px solid var(--border);
}
.tag:hover { background: var(--accent); color: var(--text-white); border-color: var(--accent); }
/* ===== Share CTA ===== */
.share-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 28px;
  padding: 20px 24px;
  background: linear-gradient(135deg, rgba(240,160,48,0.08), rgba(240,160,48,0.02));
  border-radius: var(--radius-sm);
  border: 1px solid rgba(240,160,48,0.15);
}
.share-cta .label {
  font-size: 15px;
  font-weight: 600;
  color: var(--primary);
}
.share-btns { display: flex; gap: 10px; }
.share-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: var(--text-white);
  transition: var(--transition);
  cursor: pointer;
  border: none;
}
.share-btn.wechat { background: #07c160; }
.share-btn.weibo { background: #e6162d; }
.share-btn.qq { background: #12b7f5; }
.share-btn.link { background: var(--text-light); }
.share-btn:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(0,0,0,0.15); }
/* ===== Post Navigation ===== */
.post-nav {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 36px;
}
.post-nav a {
  flex: 1;
  padding: 18px 22px;
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  transition: var(--transition);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.post-nav a:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); border-color: var(--accent); }
.post-nav .dir { font-size: 13px; color: var(--text-muted); }
.post-nav .pTitle { font-size: 15px; font-weight: 600; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.post-nav .next { text-align: right; }
/* ===== Related Articles ===== */
.related-section { margin-top: 48px; }
.related-section .section-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.related-section .section-title i { color: var(--accent); font-size: 20px; }
.related-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.related-card {
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border: 1px solid var(--border);
}
.related-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-4px); }
.related-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}
.related-card .rc-body { padding: 16px 18px 20px; }
.related-card .rc-cat {
  font-size: 12px;
  color: var(--accent-dark);
  font-weight: 600;
  margin-bottom: 6px;
}
.related-card .rc-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--primary);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.related-card .rc-date {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 8px;
}
/* ===== Not Found ===== */
.not-found {
  text-align: center;
  padding: 80px 20px;
  background: var(--bg-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.not-found .nf-icon {
  font-size: 64px;
  color: var(--text-muted);
  margin-bottom: 20px;
}
.not-found h2 {
  font-size: 28px;
  color: var(--primary);
  margin-bottom: 12px;
}
.not-found p { color: var(--text-light); margin-bottom: 28px; font-size: 16px; }
.not-found .back-home {
  display: inline-block;
  padding: 12px 36px;
  background: var(--accent);
  color: var(--text-white);
  border-radius: 40px;
  font-weight: 600;
  font-size: 16px;
  transition: var(--transition);
}
.not-found .back-home:hover { background: var(--accent-dark); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(240,160,48,0.35); }
/* ===== Footer ===== */
.footer {
  background: var(--primary-dark);
  color: rgba(255,255,255,0.7);
  padding: 40px 0 32px;
  margin-top: auto;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.footer .container {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 32px;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.footer-brand .brand-icon {
  width: 36px;
  height: 36px;
  font-size: 18px;
}
.footer-brand span { font-size: 18px; font-weight: 700; color: var(--text-white); }
.footer-links {
  display: flex;
  gap: 24px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.footer-links a { color: rgba(255,255,255,0.55); font-size: 14px; transition: var(--transition); }
.footer-links a:hover { color: var(--accent-light); }
.copyright {
  font-size: 13px;
  color: rgba(255,255,255,0.35);
  line-height: 1.6;
}
/* ===== Not Found in Article ===== */
.error-container { padding: 40px 0; }
/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .article-card { padding: 32px 28px 40px; }
  .article-title { font-size: 26px; }
  .article-feature-img { height: 280px; }
  .related-grid { gap: 16px; }
}
@media (max-width: 768px) {
  .side-nav {
    transform: translateX(-100%);
    width: 280px;
  }
  .side-nav.open { transform: translateX(0); }
  .nav-toggle { display: flex; }
  .nav-overlay.show { display: block; opacity: 1; }
  .main-wrap { margin-left: 0; }
  .main-content { padding: 24px 16px 40px; padding-top: 76px; }
  .article-card { padding: 24px 18px 32px; }
  .article-title { font-size: 22px; }
  .article-feature-img { height: 200px; }
  .article-meta { gap: 10px 16px; font-size: 13px; }
  .article-summary { padding: 16px 18px; font-size: 15px; }
  .article-body { font-size: 15.5px; }
  .share-cta { flex-direction: column; align-items: flex-start; }
  .post-nav { flex-direction: column; }
  .post-nav a { width: 100%; }
  .related-grid { grid-template-columns: 1fr; }
  .footer .container { padding: 0 16px; }
  .breadcrumb { font-size: 13px; margin-bottom: 20px; }
  .related-card img { height: 140px; }
}
@media (max-width: 520px) {
  .article-card { padding: 18px 14px 24px; border-radius: var(--radius-sm); }
  .article-title { font-size: 20px; }
  .article-feature-img { height: 160px; }
  .article-meta { flex-direction: column; gap: 6px; font-size: 12px; }
  .article-summary { padding: 14px 16px; font-size: 14px; }
  .article-body { font-size: 14.5px; }
  .share-cta { padding: 16px 18px; }
  .share-btn { width: 36px; height: 36px; font-size: 14px; }
  .not-found { padding: 40px 16px; }
  .not-found .nf-icon { font-size: 48px; }
  .not-found h2 { font-size: 22px; }
  .related-card img { height: 120px; }
}
