/* roulang page: index */
:root {
            /* 主色 - 游戏科技蓝紫 */
            --color-primary: #4F46E5;
            --color-primary-hover: #4338CA;
            --color-primary-light: #EEF2FF;
            --color-secondary: #F59E0B;
            --color-secondary-hover: #D97706;
            --color-bg: #F8FAFC;
            --color-surface: #FFFFFF;
            --color-text: #0F172A;
            --color-text-weak: #64748B;
            --color-border: #E2E8F0;
            --color-nav-bg: #0F172A;
            --color-nav-text: #CBD5E1;
            --color-nav-active: #FFFFFF;
            --color-footer-bg: #1E293B;
            --radius-sm: 0.5rem;
            --radius-md: 0.75rem;
            --radius-lg: 1rem;
            --shadow-sm: 0 1px 2px 0 rgba(0,0,0,0.05);
            --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -2px rgba(0,0,0,0.05);
            --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.08), 0 4px 6px -4px rgba(0,0,0,0.04);
            --transition: 200ms ease;
        }
        
        * {
            box-sizing: border-box;
        }
        
        body {
            font-family: 'Inter', system-ui, -apple-system, sans-serif;
            background-color: var(--color-bg);
            color: var(--color-text);
            line-height: 1.6;
            margin: 0;
            display: flex;
            min-height: 100vh;
            overflow-x: hidden;
        }
        
        a {
            color: inherit;
            text-decoration: none;
            transition: color var(--transition);
        }
        img {
            max-width: 100%;
            height: auto;
            display: block;
        }
        button {
            font-family: inherit;
            cursor: pointer;
        }
        input {
            font-family: inherit;
        }
        
        /* 左侧导航栏 - App Shell */
        .app-nav {
            width: 260px;
            background-color: var(--color-nav-bg);
            color: var(--color-nav-text);
            display: flex;
            flex-direction: column;
            position: fixed;
            top: 0;
            left: 0;
            bottom: 0;
            z-index: 40;
            padding: 1.5rem;
            transition: transform var(--transition);
            overflow-y: auto;
            box-shadow: 0 0 20px rgba(0,0,0,0.15);
        }
        .nav-logo {
            font-size: 1.5rem;
            font-weight: 700;
            color: var(--color-nav-active);
            margin-bottom: 2rem;
            display: flex;
            align-items: center;
            gap: 0.75rem;
            letter-spacing: -0.02em;
            white-space: nowrap;
        }
        .nav-logo i {
            color: var(--color-secondary);
            font-size: 1.75rem;
        }
        .nav-menu {
            list-style: none;
            padding: 0;
            margin: 0;
            display: flex;
            flex-direction: column;
            gap: 0.25rem;
            flex: 1;
        }
        .nav-menu a {
            display: flex;
            align-items: center;
            gap: 0.75rem;
            padding: 0.75rem 1rem;
            border-radius: var(--radius-md);
            color: var(--color-nav-text);
            font-weight: 500;
            transition: all var(--transition);
            white-space: nowrap;
        }
        .nav-menu a:hover,
        .nav-menu a.active {
            background-color: rgba(255,255,255,0.08);
            color: var(--color-nav-active);
        }
        .nav-menu a.active {
            background-color: var(--color-primary);
            font-weight: 600;
        }
        .nav-menu a i {
            width: 1.5rem;
            text-align: center;
            font-size: 1.1rem;
        }
        .nav-footer {
            margin-top: auto;
            padding-top: 1.5rem;
            border-top: 1px solid rgba(255,255,255,0.08);
            font-size: 0.8rem;
            color: #94A3B8;
        }
        
        /* 主内容区 */
        .main-content {
            margin-left: 260px;
            flex: 1;
            width: calc(100% - 260px);
            min-height: 100vh;
            display: flex;
            flex-direction: column;
        }
        
        /* 移动端顶部栏 */
        .mobile-bar {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            background: var(--color-nav-bg);
            color: white;
            padding: 0.75rem 1.25rem;
            z-index: 50;
            align-items: center;
            justify-content: space-between;
            box-shadow: var(--shadow-md);
        }
        .mobile-bar .logo {
            font-size: 1.25rem;
            font-weight: 700;
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }
        .menu-toggle {
            background: none;
            border: none;
            color: white;
            font-size: 1.5rem;
            padding: 0.25rem;
        }
        
        /* 汉堡菜单打开时导航 */
        .app-nav.open {
            transform: translateX(0);
        }
        
        /* 覆盖层 */
        .overlay {
            display: none;
            position: fixed;
            inset: 0;
            background: rgba(0,0,0,0.5);
            z-index: 35;
        }
        .overlay.active {
            display: block;
        }
        
        /* Responsive */
        @media (max-width: 1024px) {
            .app-nav {
                transform: translateX(-100%);
                width: 280px;
            }
            .main-content {
                margin-left: 0;
                width: 100%;
            }
            .mobile-bar {
                display: flex;
            }
            .main-content {
                padding-top: 64px; /* 为顶部栏留空 */
            }
        }
        @media (min-width: 1025px) {
            .app-nav {
                transform: translateX(0) !important;
            }
            .overlay {
                display: none !important;
            }
        }
        
        /* ========== 板块通用容器 ========== */
        .section-container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 4rem 2rem;
            width: 100%;
        }
        @media (max-width: 768px) {
            .section-container {
                padding: 2.5rem 1.25rem;
            }
        }
        
        /* Hero */
        .hero-section {
            position: relative;
            padding: 5rem 2rem;
            background: url('/assets/images/backpic/back-1.png') center/cover no-repeat;
            color: white;
            text-align: center;
            display: flex;
            align-items: center;
            justify-content: center;
            min-height: 60vh;
            background-attachment: fixed;
        }
        .hero-section::before {
            content: '';
            position: absolute;
            inset: 0;
            background: linear-gradient(135deg, rgba(15,23,42,0.85) 0%, rgba(79,70,229,0.65) 100%);
        }
        .hero-content {
            position: relative;
            max-width: 700px;
        }
        .hero-content h1 {
            font-size: clamp(2.25rem, 5vw, 3.5rem);
            font-weight: 800;
            letter-spacing: -0.02em;
            margin-bottom: 1.5rem;
            line-height: 1.2;
        }
        .hero-content p {
            font-size: 1.2rem;
            color: rgba(255,255,255,0.85);
            margin-bottom: 2rem;
            line-height: 1.7;
        }
        
        /* 按钮组件 */
        .btn {
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
            padding: 0.75rem 1.75rem;
            border-radius: 9999px;
            font-weight: 600;
            font-size: 1rem;
            transition: all var(--transition);
            border: none;
            cursor: pointer;
            text-align: center;
        }
        .btn-primary {
            background-color: var(--color-primary);
            color: white;
            box-shadow: 0 4px 14px rgba(79,70,229,0.4);
        }
        .btn-primary:hover {
            background-color: var(--color-primary-hover);
            transform: translateY(-2px);
            box-shadow: 0 8px 20px rgba(79,70,229,0.45);
        }
        .btn-outline {
            background: transparent;
            border: 2px solid white;
            color: white;
        }
        .btn-outline:hover {
            background: white;
            color: var(--color-primary);
        }
        .btn-secondary {
            background-color: var(--color-secondary);
            color: #1E293B;
        }
        .btn-secondary:hover {
            background-color: var(--color-secondary-hover);
        }
        
        /* 卡片基础 */
        .card {
            background: var(--color-surface);
            border-radius: var(--radius-lg);
            box-shadow: var(--shadow-sm);
            transition: all var(--transition);
            border: 1px solid var(--color-border);
            overflow: hidden;
        }
        .card:hover {
            box-shadow: var(--shadow-lg);
            transform: translateY(-4px);
        }
        .card-img {
            width: 100%;
            height: 200px;
            object-fit: cover;
        }
        .card-body {
            padding: 1.5rem;
        }
        
        /* 网格 */
        .grid-3 {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
            gap: 2rem;
        }
        .grid-4 {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
            gap: 1.5rem;
        }
        
        /* 统计数字 */
        .stat-block {
            text-align: center;
            padding: 2rem 1rem;
        }
        .stat-number {
            font-size: 2.5rem;
            font-weight: 800;
            color: var(--color-primary);
            line-height: 1.2;
        }
        .stat-label {
            color: var(--color-text-weak);
            font-size: 0.95rem;
            margin-top: 0.5rem;
        }
        
        /* 资讯列表 */
        .news-list-item {
            display: flex;
            gap: 1.5rem;
            padding: 1.5rem 0;
            border-bottom: 1px solid var(--color-border);
            align-items: flex-start;
            transition: background var(--transition);
        }
        .news-list-item:hover {
            background: #F1F5F9;
            margin: 0 -1rem;
            padding-left: 1rem;
            padding-right: 1rem;
            border-radius: var(--radius-md);
        }
        .news-thumb {
            width: 120px;
            height: 80px;
            border-radius: var(--radius-sm);
            object-fit: cover;
            flex-shrink: 0;
            background: #E2E8F0;
        }
        .news-info {
            flex: 1;
        }
        .news-category {
            display: inline-block;
            background: var(--color-primary-light);
            color: var(--color-primary);
            font-size: 0.75rem;
            font-weight: 600;
            padding: 0.2rem 0.6rem;
            border-radius: 999px;
            margin-bottom: 0.5rem;
        }
        .news-title {
            font-weight: 700;
            font-size: 1.1rem;
            margin-bottom: 0.25rem;
        }
        .news-desc {
            color: var(--color-text-weak);
            font-size: 0.9rem;
            line-height: 1.5;
        }
        .news-time {
            font-size: 0.8rem;
            color: #94A3B8;
            margin-top: 0.5rem;
        }
        
        /* FAQ */
        .faq-item {
            border-bottom: 1px solid var(--color-border);
            padding: 1.25rem 0;
        }
        .faq-question {
            font-weight: 700;
            font-size: 1.1rem;
            cursor: pointer;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        .faq-answer {
            margin-top: 0.75rem;
            color: var(--color-text-weak);
            line-height: 1.7;
            display: none;
        }
        .faq-item.open .faq-answer {
            display: block;
        }
        
        /* CTA 深色区块 */
        .cta-dark {
            background: linear-gradient(135deg, #1E293B 0%, #0F172A 100%);
            color: white;
            text-align: center;
            padding: 4rem 2rem;
            border-radius: 2rem;
            margin: 2rem;
        }
        @media (max-width: 768px) {
            .cta-dark { margin: 1rem; padding: 3rem 1.5rem; border-radius: 1.5rem; }
        }
        
        /* 页脚 */
        .site-footer {
            background: var(--color-footer-bg);
            color: #CBD5E1;
            padding: 3rem 2rem;
            font-size: 0.9rem;
            margin-top: auto;
        }
        .footer-grid {
            display: grid;
            grid-template-columns: 2fr 1fr 1fr;
            gap: 2rem;
            max-width: 1200px;
            margin: 0 auto;
        }
        @media (max-width: 768px) {
            .footer-grid { grid-template-columns: 1fr; }
        }
        .footer-brand {
            font-size: 1.25rem;
            font-weight: 700;
            color: white;
            margin-bottom: 0.75rem;
        }

/* roulang page: category1 */
:root {
            --primary: #FF6B00;
            --primary-hover: #E05A00;
            --primary-light: #FFF3E6;
            --bg: #F1F5F9;
            --surface: #FFFFFF;
            --text: #1E293B;
            --text-secondary: #64748B;
            --border: #E2E8F0;
            --nav-bg: #0F172A;
            --nav-text: #CBD5E1;
            --nav-active: #FF6B00;
            --radius-sm: 8px;
            --radius-md: 12px;
            --radius-lg: 20px;
            --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
            --shadow: 0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -2px rgba(0,0,0,0.05);
            --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.08), 0 4px 6px -4px rgba(0,0,0,0.04);
            --transition: 0.2s ease;
            --nav-width: 260px;
        }

        * {
            box-sizing: border-box;
            margin: 0;
            padding: 0;
        }

        html {
            font-size: 16px;
            scroll-behavior: smooth;
        }

        body {
            font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans SC", sans-serif;
            background-color: var(--bg);
            color: var(--text);
            line-height: 1.6;
            display: flex;
            min-height: 100vh;
            -webkit-font-smoothing: antialiased;
        }

        img {
            max-width: 100%;
            height: auto;
            display: block;
        }

        a {
            text-decoration: none;
            color: inherit;
        }

        button, input {
            font-family: inherit;
        }

        /* App Shell Navigation */
        .app-nav {
            position: fixed;
            top: 0;
            left: 0;
            height: 100vh;
            width: var(--nav-width);
            background: var(--nav-bg);
            display: flex;
            flex-direction: column;
            padding: 1.5rem 1.2rem;
            z-index: 1000;
            transition: transform var(--transition);
            box-shadow: 2px 0 12px rgba(0,0,0,0.15);
        }

        .nav-logo {
            font-size: 1.4rem;
            font-weight: 700;
            color: white;
            margin-bottom: 2.5rem;
            display: flex;
            align-items: center;
            gap: 0.5rem;
            letter-spacing: 0.5px;
        }
        .nav-logo i {
            color: var(--primary);
            font-size: 1.6rem;
        }

        .nav-menu {
            list-style: none;
            flex: 1;
        }
        .nav-menu li {
            margin-bottom: 0.5rem;
        }
        .nav-menu a {
            display: flex;
            align-items: center;
            gap: 0.75rem;
            padding: 0.75rem 1rem;
            border-radius: var(--radius-sm);
            color: var(--nav-text);
            font-weight: 500;
            transition: all var(--transition);
            font-size: 0.95rem;
        }
        .nav-menu a i {
            font-size: 1.1rem;
            width: 20px;
            text-align: center;
        }
        .nav-menu a:hover {
            background: rgba(255,255,255,0.08);
            color: white;
        }
        .nav-menu a.active {
            background: var(--primary);
            color: white;
            box-shadow: 0 4px 10px rgba(255,107,0,0.4);
        }
        .nav-menu a.active i {
            color: white;
        }

        .nav-footer {
            margin-top: auto;
            font-size: 0.8rem;
            color: #94A3B8;
            line-height: 1.5;
        }

        /* Mobile nav toggle */
        .nav-toggle {
            display: none;
            position: fixed;
            top: 1rem;
            left: 1rem;
            z-index: 1100;
            background: var(--nav-bg);
            color: white;
            border: none;
            font-size: 1.5rem;
            width: 44px;
            height: 44px;
            border-radius: var(--radius-sm);
            align-items: center;
            justify-content: center;
            box-shadow: var(--shadow-lg);
            cursor: pointer;
        }

        /* Main Content Area */
        .app-main {
            margin-left: var(--nav-width);
            flex: 1;
            min-width: 0;
            display: flex;
            flex-direction: column;
        }

        .container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 1.5rem;
            width: 100%;
        }

        /* Page Banner */
        .page-banner {
            background: linear-gradient(135deg, rgba(15,23,42,0.8) 0%, rgba(30,41,59,0.9) 100%), 
                        url('/assets/images/backpic/back-1.png') center/cover no-repeat;
            padding: 5rem 0 4rem;
            color: white;
            position: relative;
        }
        .page-banner .container {
            position: relative;
            z-index: 2;
        }
        .page-banner h1 {
            font-size: 2.8rem;
            font-weight: 800;
            margin-bottom: 1rem;
            letter-spacing: -0.5px;
        }
        .page-banner p {
            font-size: 1.15rem;
            color: #CBD5E1;
            max-width: 650px;
            margin-bottom: 2rem;
        }
        .banner-search {
            display: flex;
            gap: 0.5rem;
            max-width: 500px;
        }
        .banner-search input {
            flex: 1;
            padding: 0.8rem 1.2rem;
            border-radius: 50px;
            border: none;
            background: rgba(255,255,255,0.15);
            color: white;
            backdrop-filter: blur(8px);
            outline: none;
            font-size: 0.95rem;
        }
        .banner-search input::placeholder {
            color: #CBD5E1;
        }
        .banner-search button {
            background: var(--primary);
            border: none;
            color: white;
            padding: 0 1.8rem;
            border-radius: 50px;
            font-weight: 600;
            cursor: pointer;
            transition: background var(--transition);
            white-space: nowrap;
        }
        .banner-search button:hover {
            background: var(--primary-hover);
        }

        /* Stats Row */
        .stats-section {
            background: var(--surface);
            border-bottom: 1px solid var(--border);
        }
        .stats-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
            gap: 1.5rem;
            padding: 2rem 0;
        }
        .stat-item {
            text-align: center;
        }
        .stat-number {
            font-size: 2.2rem;
            font-weight: 700;
            color: var(--primary);
        }
        .stat-label {
            color: var(--text-secondary);
            font-size: 0.9rem;
            margin-top: 0.2rem;
        }

        /* Game Cards Grid */
        .section {
            padding: 3.5rem 0;
        }
        .section-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 2rem;
        }
        .section-header h2 {
            font-size: 2rem;
            font-weight: 700;
            color: var(--text);
        }
        .section-header .view-all {
            color: var(--primary);
            font-weight: 600;
            display: flex;
            align-items: center;
            gap: 0.3rem;
            transition: color var(--transition);
        }
        .section-header .view-all:hover {
            color: var(--primary-hover);
        }

        .card-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
            gap: 1.8rem;
        }

        .game-card {
            background: var(--surface);
            border-radius: var(--radius-md);
            overflow: hidden;
            box-shadow: var(--shadow);
            transition: transform var(--transition), box-shadow var(--transition);
            display: flex;
            flex-direction: column;
        }
        .game-card:hover {
            transform: translateY(-4px);
            box-shadow: var(--shadow-lg);
        }
        .game-card img {
            width: 100%;
            height: 160px;
            object-fit: cover;
        }
        .card-body {
            padding: 1.2rem;
            flex: 1;
            display: flex;
            flex-direction: column;
        }
        .game-tags {
            display: flex;
            gap: 0.4rem;
            margin-bottom: 0.75rem;
        }
        .badge {
            background: var(--primary-light);
            color: var(--primary);
            padding: 0.2rem 0.6rem;
            border-radius: 20px;
            font-size: 0.75rem;
            font-weight: 600;
        }
        .card-title {
            font-weight: 700;
            font-size: 1.15rem;
            margin-bottom: 0.5rem;
        }
        .card-desc {
            color: var(--text-secondary);
            font-size: 0.9rem;
            margin-bottom: 1rem;
            flex: 1;
        }
        .card-btn {
            background: var(--primary);
            color: white;
            border: none;
            padding: 0.6rem 1rem;
            border-radius: var(--radius-sm);
            font-weight: 600;
            cursor: pointer;
            transition: background var(--transition);
            text-align: center;
            display: inline-block;
            margin-top: auto;
        }
        .card-btn:hover {
            background: var(--primary-hover);
        }

        /* Ranking List */
        .rank-list {
            background: var(--surface);
            border-radius: var(--radius-md);
            box-shadow: var(--shadow);
            padding: 0.8rem 0;
        }
        .rank-item {
            display: flex;
            align-items: center;
            padding: 0.9rem 1.8rem;
            border-bottom: 1px solid var(--border);
            gap: 1rem;
            transition: background var(--transition);
        }
        .rank-item:last-child {
            border-bottom: none;
        }
        .rank-item:hover {
            background: #F8FAFC;
        }
        .rank-num {
            font-weight: 800;
            font-size: 1.4rem;
            width: 40px;
            color: var(--primary);
        }
        .rank-info {
            flex: 1;
        }
        .rank-name {
            font-weight: 600;
        }
        .rank-category {
            color: var(--text-secondary);
            font-size: 0.85rem;
        }
        .rank-download {
            background: transparent;
            border: 1px solid var(--primary);
            color: var(--primary);
            padding: 0.4rem 1.2rem;
            border-radius: 50px;
            font-weight: 600;
            cursor: pointer;
            transition: all var(--transition);
        }
        .rank-download:hover {
            background: var(--primary);
            color: white;
        }

        /* FAQ */
        .faq-item {
            background: var(--surface);
            border-radius: var(--radius-sm);
            padding: 1.2rem 1.8rem;
            margin-bottom: 0.8rem;
            box-shadow: var(--shadow-sm);
            border: 1px solid var(--border);
        }
        .faq-q {
            font-weight: 700;
            margin-bottom: 0.4rem;
        }
        .faq-a {
            color: var(--text-secondary);
        }

        /* CTA */
        .cta-section {
            background: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
            color: white;
            text-align: center;
            padding: 3.5rem 0;
        }
        .cta-section h3 {
            font-size: 1.8rem;
        }
        .btn-white {
            background: white;
            color: #0F172A;
            padding: 0.8rem 2rem;
            border-radius: 50px;
            font-weight: 700;
            display: inline-block;
            margin-top: 1.5rem;
            transition: background var(--transition);
        }
        .btn-white:hover {
            background: #F1F5F9;
        }

        /* Footer */
        .site-footer {
            background: #0F172A;
            color: #94A3B8;
            padding: 2.5rem 1.5rem 1.5rem;
            font-size: 0.9rem;
        }
        .footer-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
            gap: 2rem;
            max-width: 1200px;
            margin: 0 auto;
        }
        .footer-brand {
            font-size: 1.3rem;
            font-weight: 700;
            color: white;
            margin-bottom: 0.5rem;
        }

        /* Responsive */
        @media (max-width: 1024px) {
            :root {
                --nav-width: 240px;
            }
            .page-banner h1 {
                font-size: 2.2rem;
            }
        }

        @media (max-width: 768px) {
            .app-nav {
                transform: translateX(-100%);
            }
            .app-nav.is-open {
                transform: translateX(0);
            }
            .app-main {
                margin-left: 0 !important;
            }
            .nav-toggle {
                display: flex;
            }
            .page-banner {
                padding: 4rem 0 3rem;
            }
            .page-banner h1 {
                font-size: 1.9rem;
            }
            .card-grid {
                grid-template-columns: 1fr;
            }
        }

/* roulang page: article */
:root {
            --primary: #6366f1;
            --primary-hover: #4f46e5;
            --primary-light: #eef2ff;
            --primary-soft: #e0e7ff;
            --accent: #f59e0b;
            --accent-hover: #d97706;
            --accent-light: #fffbeb;
            --bg: #f1f5f9;
            --bg-alt: #f8fafc;
            --surface: #ffffff;
            --surface-hover: #f9fafb;
            --text: #1e293b;
            --text-heading: #0f172a;
            --text-secondary: #64748b;
            --text-muted: #94a3b8;
            --text-light: #cbd5e1;
            --border: #e2e8f0;
            --border-light: #f1f5f9;
            --border-focus: #6366f1;
            --radius-sm: 8px;
            --radius: 12px;
            --radius-lg: 16px;
            --radius-xl: 20px;
            --shadow-xs: 0 1px 2px rgba(0,0,0,0.04);
            --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
            --shadow: 0 4px 6px rgba(0,0,0,0.05), 0 2px 4px rgba(0,0,0,0.04);
            --shadow-md: 0 10px 25px rgba(0,0,0,0.07), 0 4px 10px rgba(0,0,0,0.04);
            --shadow-lg: 0 20px 40px rgba(0,0,0,0.09), 0 8px 16px rgba(0,0,0,0.05);
            --shadow-xl: 0 25px 50px rgba(0,0,0,0.12);
            --nav-width: 240px;
            --nav-bg: #1e1b4b;
            --nav-bg-hover: #2d2a5e;
            --nav-text: #c7d2fe;
            --nav-text-active: #ffffff;
            --nav-accent: #818cf8;
            --transition-fast: 0.15s ease;
            --transition: 0.25s ease;
            --transition-slow: 0.35s ease;
            --font-sans: 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', 'Hiragino Sans GB', system-ui, -apple-system, sans-serif;
            --font-mono: 'SF Mono', 'Fira Code', 'Consolas', 'Monaco', monospace;
            --content-max: 760px;
            --header-height-mobile: 56px;
        }

        *, *::before, *::after {
            box-sizing: border-box;
        }

        html {
            scroll-behavior: smooth;
            -webkit-text-size-adjust: 100%;
        }

        body {
            margin: 0;
            padding: 0;
            font-family: var(--font-sans);
            font-size: 16px;
            line-height: 1.6;
            color: var(--text);
            background: var(--bg);
            display: flex;
            min-height: 100vh;
            -webkit-font-smoothing: antialiased;
            -moz-osx-font-smoothing: grayscale;
        }

        a {
            color: var(--primary);
            text-decoration: none;
            transition: color var(--transition-fast);
        }
        a:hover {
            color: var(--primary-hover);
        }
        img {
            max-width: 100%;
            height: auto;
            display: block;
        }
        button, input, textarea, select {
            font-family: inherit;
            font-size: inherit;
        }
        h1, h2, h3, h4, h5, h6 {
            margin: 0;
            color: var(--text-heading);
            line-height: 1.3;
            font-weight: 700;
        }
        ul, ol {
            margin: 0;
            padding: 0;
            list-style: none;
        }
        p {
            margin: 0;
        }

        .app-nav {
            position: fixed;
            top: 0;
            left: 0;
            width: var(--nav-width);
            height: 100vh;
            background: var(--nav-bg);
            display: flex;
            flex-direction: column;
            z-index: 1000;
            overflow-y: auto;
            overflow-x: hidden;
            transition: transform var(--transition-slow), box-shadow var(--transition-slow);
            box-shadow: 2px 0 24px rgba(0,0,0,0.18);
        }
        .nav-logo {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 20px 20px 16px;
            font-size: 1.15rem;
            font-weight: 700;
            color: #ffffff;
            letter-spacing: 0.02em;
            border-bottom: 1px solid rgba(255,255,255,0.08);
            margin-bottom: 8px;
            white-space: nowrap;
        }
        .nav-logo i {
            font-size: 1.35rem;
            color: var(--accent);
        }
        .nav-menu {
            flex: 1;
            padding: 8px 12px;
            display: flex;
            flex-direction: column;
            gap: 2px;
        }
        .nav-menu li a {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 11px 14px;
            border-radius: var(--radius-sm);
            color: var(--nav-text);
            font-size: 0.92rem;
            font-weight: 500;
            transition: all var(--transition-fast);
            white-space: nowrap;
        }
        .nav-menu li a i {
            width: 20px;
            text-align: center;
            font-size: 0.9rem;
            opacity: 0.75;
            transition: opacity var(--transition-fast);
        }
        .nav-menu li a:hover {
            background: var(--nav-bg-hover);
            color: #e0e7ff;
        }
        .nav-menu li a:hover i {
            opacity: 1;
        }
        .nav-menu li a.active {
            background: rgba(99,102,241,0.3);
            color: var(--nav-text-active);
            font-weight: 600;
            box-shadow: inset 3px 0 0 var(--nav-accent);
        }
        .nav-menu li a.active i {
            opacity: 1;
            color: var(--accent);
        }
        .nav-footer {
            padding: 16px 20px;
            border-top: 1px solid rgba(255,255,255,0.08);
            color: var(--nav-text);
            font-size: 0.78rem;
            opacity: 0.7;
            line-height: 1.6;
        }

        .main-wrapper {
            margin-left: var(--nav-width);
            flex: 1;
            min-height: 100vh;
            display: flex;
            flex-direction: column;
            transition: margin var(--transition-slow);
        }

        .mobile-header {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            height: var(--header-height-mobile);
            background: var(--nav-bg);
            z-index: 999;
            align-items: center;
            padding: 0 16px;
            gap: 12px;
            box-shadow: 0 2px 12px rgba(0,0,0,0.15);
        }
        .mobile-header .menu-toggle {
            background: none;
            border: none;
            color: #ffffff;
            font-size: 1.4rem;
            cursor: pointer;
            padding: 6px;
            line-height: 1;
            border-radius: 6px;
            transition: background var(--transition-fast);
        }
        .mobile-header .menu-toggle:hover {
            background: rgba(255,255,255,0.1);
        }
        .mobile-header .mobile-logo {
            font-weight: 700;
            color: #ffffff;
            font-size: 1rem;
            display: flex;
            align-items: center;
            gap: 8px;
        }
        .mobile-header .mobile-logo i {
            color: var(--accent);
            font-size: 1.1rem;
        }

        .nav-overlay {
            display: none;
            position: fixed;
            inset: 0;
            background: rgba(0,0,0,0.5);
            z-index: 998;
            opacity: 0;
            transition: opacity var(--transition-slow);
            pointer-events: none;
        }
        .nav-overlay.show {
            opacity: 1;
            pointer-events: auto;
        }

        .content-area {
            flex: 1;
            padding: 28px 32px 0;
            max-width: 1100px;
            width: 100%;
            margin: 0 auto;
        }

        .breadcrumb {
            display: flex;
            align-items: center;
            gap: 8px;
            font-size: 0.85rem;
            color: var(--text-muted);
            margin-bottom: 20px;
            flex-wrap: wrap;
        }
        .breadcrumb a {
            color: var(--text-secondary);
            transition: color var(--transition-fast);
        }
        .breadcrumb a:hover {
            color: var(--primary);
        }
        .breadcrumb .separator {
            color: var(--text-light);
            font-size: 0.7rem;
        }
        .breadcrumb .current {
            color: var(--text);
            font-weight: 500;
            max-width: 300px;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        .article-cover {
            border-radius: var(--radius-lg);
            overflow: hidden;
            margin-bottom: 24px;
            box-shadow: var(--shadow-md);
            position: relative;
            background: var(--surface);
            aspect-ratio: 21 / 9;
            min-height: 200px;
        }
        .article-cover img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            display: block;
        }
        .article-cover .cover-overlay {
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            height: 50%;
            background: linear-gradient(to top, rgba(0,0,0,0.35), transparent);
            pointer-events: none;
        }

        .article-header {
            margin-bottom: 28px;
        }
        .article-meta-top {
            display: flex;
            align-items: center;
            gap: 12px;
            flex-wrap: wrap;
            margin-bottom: 14px;
        }
        .article-category-tag {
            display: inline-flex;
            align-items: center;
            gap: 5px;
            background: var(--primary-light);
            color: var(--primary);
            font-size: 0.8rem;
            font-weight: 600;
            padding: 5px 12px;
            border-radius: 20px;
            letter-spacing: 0.02em;
            transition: all var(--transition-fast);
            white-space: nowrap;
        }
        .article-category-tag:hover {
            background: var(--primary-soft);
            color: var(--primary-hover);
        }
        .article-date {
            font-size: 0.84rem;
            color: var(--text-muted);
            display: flex;
            align-items: center;
            gap: 5px;
        }
        .article-reading-time {
            font-size: 0.8rem;
            color: var(--text-muted);
            display: flex;
            align-items: center;
            gap: 4px;
            background: var(--bg-alt);
            padding: 4px 10px;
            border-radius: 14px;
        }
        .article-title {
            font-size: 2rem;
            font-weight: 800;
            color: var(--text-heading);
            line-height: 1.25;
            letter-spacing: -0.01em;
            margin-bottom: 8px;
        }
        .article-excerpt {
            font-size: 1.05rem;
            color: var(--text-secondary);
            line-height: 1.7;
        }

        .article-body-wrapper {
            display: flex;
            gap: 32px;
            margin-bottom: 40px;
        }
        .article-main {
            flex: 1;
            min-width: 0;
            background: var(--surface);
            border-radius: var(--radius-lg);
            padding: 36px 40px;
            box-shadow: var(--shadow-sm);
            border: 1px solid var(--border-light);
        }
        .content-body {
            font-size: 1.02rem;
            line-height: 1.9;
            color: var(--text);
            word-break: break-word;
        }
        .content-body h2 {
            font-size: 1.5rem;
            margin: 2em 0 0.8em;
            padding-bottom: 0.5em;
            border-bottom: 2px solid var(--border);
            color: var(--text-heading);
        }
        .content-body h3 {
            font-size: 1.25rem;
            margin: 1.8em 0 0.6em;
            color: var(--text-heading);
        }
        .content-body h4 {
            font-size: 1.1rem;
            margin: 1.5em 0 0.5em;
            color: var(--text-heading);
        }
        .content-body p {
            margin-bottom: 1.2em;
        }
        .content-body ul, .content-body ol {
            margin: 1em 0 1.2em;
            padding-left: 1.5em;
        }
        .content-body ul {
            list-style: disc;
        }
        .content-body ol {
            list-style: decimal;
        }
        .content-body li {
            margin-bottom: 0.5em;
        }
        .content-body blockquote {
            margin: 1.5em 0;
            padding: 16px 24px;
            border-left: 4px solid var(--primary);
            background: var(--primary-light);
            border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
            color: var(--text-secondary);
            font-style: italic;
        }
        .content-body img {
            border-radius: var(--radius);
            margin: 1.5em auto;
            max-width: 100%;
            box-shadow: var(--shadow-sm);
        }
        .content-body a {
            color: var(--primary);
            font-weight: 500;
            text-decoration: underline;
            text-decoration-color: var(--primary-light);
            text-underline-offset: 3px;
            transition: all var(--transition-fast);
        }
        .content-body a:hover {
            text-decoration-color: var(--primary);
            color: var(--primary-hover);
        }
        .content-body code {
            background: var(--bg);
            padding: 2px 8px;
            border-radius: 4px;
            font-family: var(--font-mono);
            font-size: 0.9em;
            color: #e11d48;
        }
        .content-body pre {
            background: #1e293b;
            color: #e2e8f0;
            padding: 20px 24px;
            border-radius: var(--radius);
            overflow-x: auto;
            margin: 1.5em 0;
            font-family: var(--font-mono);
            font-size: 0.88rem;
            line-height: 1.6;
        }
        .content-body pre code {
            background: none;
            padding: 0;
            color: inherit;
            font-size: inherit;
        }
        .content-body hr {
            border: none;
            border-top: 1px solid var(--border);
            margin: 2em 0;
        }

        .article-sidebar {
            width: 260px;
            flex-shrink: 0;
            display: flex;
            flex-direction: column;
            gap: 20px;
        }
        .sidebar-card {
            background: var(--surface);
            border-radius: var(--radius);
            padding: 20px;
            border: 1px solid var(--border-light);
            box-shadow: var(--shadow-xs);
        }
        .sidebar-card h4 {
            font-size: 0.9rem;
            font-weight: 700;
            color: var(--text-heading);
            margin-bottom: 12px;
            display: flex;
            align-items: center;
            gap: 7px;
        }
        .sidebar-card h4 i {
            color: var(--accent);
            font-size: 0.85rem;
        }
        .sidebar-card .mini-post {
            display: flex;
            gap: 10px;
            padding: 8px 0;
            border-bottom: 1px solid var(--border-light);
            transition: background var(--transition-fast);
            border-radius: 6px;
            padding: 8px 6px;
            margin: 0 -6px;
        }
        .sidebar-card .mini-post:last-child {
            border-bottom: none;
        }
        .sidebar-card .mini-post:hover {
            background: var(--surface-hover);
        }
        .sidebar-card .mini-post img {
            width: 48px;
            height: 48px;
            border-radius: 6px;
            object-fit: cover;
            flex-shrink: 0;
        }
        .sidebar-card .mini-post .mini-info {
            min-width: 0;
        }
        .sidebar-card .mini-post .mini-title {
            font-size: 0.82rem;
            font-weight: 600;
            color: var(--text);
            line-height: 1.4;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
            margin-bottom: 2px;
        }
        .sidebar-card .mini-post .mini-date {
            font-size: 0.72rem;
            color: var(--text-muted);
        }
        .sidebar-card .mini-post a {
            color: inherit;
        }
        .sidebar-card .mini-post a:hover .mini-title {
            color: var(--primary);
        }

        .share-section {
            margin-top: 12px;
            padding-top: 20px;
            border-top: 1px solid var(--border);
            display: flex;
            align-items: center;
            gap: 10px;
            flex-wrap: wrap;
        }
        .share-section span {
            font-size: 0.85rem;
            font-weight: 600;
            color: var(--text-secondary);
        }
        .share-btn {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 38px;
            height: 38px;
            border-radius: 50%;
            border: 1px solid var(--border);
            background: var(--surface);
            color: var(--text-secondary);
            cursor: pointer;
            transition: all var(--transition-fast);
            font-size: 0.95rem;
        }
        .share-btn:hover {
            background: var(--primary);
            color: #ffffff;
            border-color: var(--primary);
            box-shadow: var(--shadow-sm);
            transform: translateY(-2px);
        }

        .related-section {
            margin-bottom: 40px;
        }
        .related-section .section-heading {
            font-size: 1.35rem;
            font-weight: 700;
            color: var(--text-heading);
            margin-bottom: 20px;
            display: flex;
            align-items: center;
            gap: 10px;
        }
        .related-section .section-heading::after {
            content: '';
            flex: 1;
            height: 1px;
            background: var(--border);
            min-width: 30px;
        }
        .related-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 20px;
        }
        .related-card {
            background: var(--surface);
            border-radius: var(--radius);
            overflow: hidden;
            border: 1px solid var(--border-light);
            box-shadow: var(--shadow-xs);
            transition: all var(--transition);
            display: flex;
            flex-direction: column;
        }
        .related-card:hover {
            box-shadow: var(--shadow-md);
            transform: translateY(-3px);
            border-color: var(--border);
        }
        .related-card img {
            width: 100%;
            aspect-ratio: 16 / 10;
            object-fit: cover;
        }
        .related-card .related-info {
            padding: 16px;
            flex: 1;
            display: flex;
            flex-direction: column;
            gap: 6px;
        }
        .related-card .related-title {
            font-size: 0.95rem;
            font-weight: 700;
            color: var(--text-heading);
            line-height: 1.4;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }
        .related-card .related-date {
            font-size: 0.78rem;
            color: var(--text-muted);
            margin-top: auto;
        }
        .related-card a {
            color: inherit;
            display: block;
        }
        .related-card a:hover .related-title {
            color: var(--primary);
        }

        .not-found-section {
            text-align: center;
            padding: 60px 20px;
            background: var(--surface);
            border-radius: var(--radius-lg);
            box-shadow: var(--shadow-sm);
            border: 1px solid var(--border-light);
        }
        .not-found-section .nf-icon {
            font-size: 4rem;
            color: var(--text-light);
            margin-bottom: 16px;
        }
        .not-found-section h2 {
            font-size: 1.5rem;
            margin-bottom: 8px;
        }
        .not-found-section p {
            color: var(--text-secondary);
            margin-bottom: 20px;
        }
        .btn {
            display: inline-flex;
            align-items: center;
            gap: 7px;
            padding: 10px 22px;
            border-radius: 25px;
            font-weight: 600;
            font-size: 0.9rem;
            cursor: pointer;
            border: none;
            transition: all var(--transition);
            text-decoration: none;
            white-space: nowrap;
        }
        .btn-primary {
            background: var(--primary);
            color: #ffffff;
        }
        .btn-primary:hover {
            background: var(--primary-hover);
            box-shadow: var(--shadow-md);
            transform: translateY(-1px);
            color: #ffffff;
        }
        .btn-outline {
            background: transparent;
            border: 2px solid var(--border);
            color: var(--text);
        }
        .btn-outline:hover {
            border-color: var(--primary);
            color: var(--primary);
            background: var(--primary-light);
        }

        .site-footer {
            background: #1e1b4b;
            color: #c7d2fe;
            padding: 32px 0 20px;
            margin-top: auto;
        }
        .site-footer .footer-inner {
            max-width: 1100px;
            margin: 0 auto;
            padding: 0 32px;
        }
        .footer-grid {
            display: grid;
            grid-template-columns: 2fr 1fr 1fr;
            gap: 32px;
        }
        .footer-brand {
            font-weight: 700;
            color: #ffffff;
            font-size: 1.1rem;
            margin-bottom: 8px;
        }
        .footer-grid p {
            font-size: 0.85rem;
            line-height: 1.7;
            color: #a5b4fc;
        }
        .footer-grid a {
            color: #c7d2fe;
            font-size: 0.85rem;
            transition: color var(--transition-fast);
        }
        .footer-grid a:hover {
            color: #ffffff;
        }
        .footer-bottom {
            text-align: center;
            margin-top: 24px;
            padding-top: 16px;
            border-top: 1px solid rgba(255,255,255,0.1);
            color: #94a3b8;
            font-size: 0.8rem;
        }

        @media (max-width: 1200px) {
            .article-body-wrapper {
                flex-direction: column;
            }
            .article-sidebar {
                width: 100%;
                flex-direction: row;
                flex-wrap: wrap;
                gap: 16px;
            }
            .article-sidebar .sidebar-card {
                flex: 1;
                min-width: 200px;
            }
            .related-grid {
                grid-template-columns: repeat(2, 1fr);
            }
        }

        @media (max-width: 1024px) {
            .app-nav {
                transform: translateX(-100%);
            }
            .app-nav.open {
                transform: translateX(0);
                box-shadow: 4px 0 30px rgba(0,0,0,0.35);
            }
            .main-wrapper {
                margin-left: 0;
            }
            .mobile-header {
                display: flex;
            }
            .nav-overlay {
                display: block;
            }
            .content-area {
                padding-top: calc(var(--header-height-mobile) + 20px);
                padding-left: 16px;
                padding-right: 16px;
            }
            .article-main {
                padding: 24px 20px;
            }
            .article-title {
                font-size: 1.5rem;
            }
            .footer-grid {
                grid-template-columns: 1fr 1fr;
            }
        }

        @media (max-width: 768px) {
            .related-grid {
                grid-template-columns: 1fr;
            }
            .article-sidebar {
                flex-direction: column;
            }
            .article-sidebar .sidebar-card {
                min-width: auto;
            }
            .article-main {
                padding: 20px 16px;
            }
            .article-title {
                font-size: 1.35rem;
            }
            .content-body {
                font-size: 0.95rem;
            }
            .footer-grid {
                grid-template-columns: 1fr;
                gap: 20px;
            }
            .content-area {
                padding: calc(var(--header-height-mobile) + 12px) 12px 0;
            }
            .article-cover {
                border-radius: var(--radius);
                aspect-ratio: 16 / 9;
                min-height: 160px;
            }
        }

        @media (max-width: 520px) {
            .article-title {
                font-size: 1.2rem;
            }
            .article-meta-top {
                gap: 8px;
            }
            .article-category-tag {
                font-size: 0.74rem;
                padding: 4px 10px;
            }
            .article-date {
                font-size: 0.76rem;
            }
            .article-main {
                padding: 16px 12px;
                border-radius: var(--radius);
            }
            .content-body {
                font-size: 0.9rem;
                line-height: 1.8;
            }
            .breadcrumb {
                font-size: 0.78rem;
            }
            .share-btn {
                width: 34px;
                height: 34px;
                font-size: 0.85rem;
            }
            .related-card .related-title {
                font-size: 0.88rem;
            }
            .btn {
                padding: 8px 18px;
                font-size: 0.82rem;
            }
        }
