/* roulang page: index */
:root {
            --font-sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
            --color-primary: #4f46e5;
            --color-primary-light: #6366f1;
            --color-gold: #f59e0b;
            --color-night: #0b1026;
            --color-night-deep: #060917;
            --color-text: #0f172a;
            --color-text-muted: #64748b;
            --color-bg: #f8fafc;
            --color-border: #e2e8f0;
            --radius-lg: 1rem;
            --radius-xl: 1.5rem;
            --shadow-card: 0 4px 24px rgba(15, 23, 42, 0.04);
            --shadow-hover: 0 12px 32px rgba(15, 23, 42, 0.08);
        }

        * {
            box-sizing: border-box;
            margin: 0;
            padding: 0;
        }

        html {
            scroll-behavior: smooth;
            font-size: 16px;
        }

        body {
            font-family: var(--font-sans);
            background: var(--color-bg);
            color: var(--color-text);
            line-height: 1.7;
            text-rendering: optimizeLegibility;
            -webkit-font-smoothing: antialiased;
        }

        a {
            color: inherit;
            text-decoration: none;
            transition: color 0.2s ease;
        }

        img {
            display: block;
            max-width: 100%;
        }

        button {
            cursor: pointer;
            font-family: inherit;
        }

        input {
            font-family: inherit;
        }

        .glass-header {
            background: rgba(6, 9, 23, 0.7);
            backdrop-filter: blur(16px);
            -webkit-backdrop-filter: blur(16px);
            border-bottom: 1px solid rgba(255, 255, 255, 0.06);
        }

        .star-pattern {
            background-image:
                radial-gradient(1px 1px at 20px 30px, rgba(255, 255, 255, 0.7), transparent),
                radial-gradient(1px 1px at 40px 80px, rgba(255, 255, 255, 0.4), transparent),
                radial-gradient(1.5px 1.5px at 60px 20px, rgba(255, 255, 255, 0.5), transparent),
                radial-gradient(1px 1px at 90px 50px, rgba(255, 255, 255, 0.6), transparent),
                radial-gradient(1px 1px at 130px 90px, rgba(255, 255, 255, 0.3), transparent);
            background-size: 180px 180px;
        }

        .text-gradient-gold {
            background: linear-gradient(135deg, #fbbf24 0%, #f97316 100%);
            -webkit-background-clip: text;
            background-clip: text;
            -webkit-text-fill-color: transparent;
        }

        .hero-title {
            letter-spacing: -0.02em;
        }

        .shadow-glow-gold {
            box-shadow: 0 4px 30px rgba(245, 158, 11, 0.35);
        }

        .card-lift {
            transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
        }

        .card-lift:hover {
            transform: translateY(-6px);
            box-shadow: var(--shadow-hover);
        }

        details summary::-webkit-details-marker {
            display: none;
        }

        details[open] .faq-icon {
            transform: rotate(45deg);
        }

        .faq-icon {
            transition: transform 0.3s ease;
        }

        @keyframes float-slow {
            0%,
            100% {
                transform: translateY(0px);
            }
            50% {
                transform: translateY(-12px);
            }
        }

        .animate-float-slow {
            animation: float-slow 5s ease-in-out infinite;
        }

        @keyframes pulse-glow {
            0%,
            100% {
                opacity: 0.6;
            }
            50% {
                opacity: 1;
            }
        }

        .animate-pulse-glow {
            animation: pulse-glow 3s ease-in-out infinite;
        }

        ::selection {
            background: rgba(99, 102, 241, 0.2);
        }

        .scroll-indicator {
            animation: scroll-bounce 2.2s ease-in-out infinite;
        }

        @keyframes scroll-bounce {
            0%,
            100% {
                transform: translateY(0);
                opacity: 0.7;
            }
            50% {
                transform: translateY(8px);
                opacity: 1;
            }
        }

        .stat-card {
            transition: background 0.3s ease;
        }

        .stat-card:hover {
            background: rgba(79, 70, 229, 0.03);
        }

        .nav-link {
            position: relative;
        }

        .nav-link.active {
            background: rgba(255, 255, 255, 0.1);
            color: #fff;
        }

        .nav-link:not(.active):hover {
            background: rgba(255, 255, 255, 0.06);
            color: #fff;
        }

        .mobile-nav .nav-link.active {
            background: rgba(99, 102, 241, 0.15);
            color: #6366f1;
        }

        .mobile-nav .nav-link:not(.active) {
            color: #e2e8f0;
        }

        .mobile-nav .nav-link:not(.active):hover {
            background: rgba(255, 255, 255, 0.05);
        }

        .footer-link {
            transition: color 0.2s;
        }

        .footer-link:hover {
            color: #fbbf24;
        }

/* roulang page: category1 */
:root {
            --primary: #6366f1;
            --primary-dark: #4f46e5;
            --accent: #a855f7;
            --dark-bg: #060917;
            --card-bg: #0b1023;
            --text-main: #e2e8f0;
            --text-weak: #94a3b8;
            --text-muted: #64748b;
            --border-subtle: rgba(255, 255, 255, 0.08);
            --radius: 16px;
            --radius-sm: 10px;
            --shadow-lg: 0 20px 45px -15px rgba(0, 0, 0, 0.45);
            --shadow-md: 0 10px 30px -10px rgba(0, 0, 0, 0.35);
        }
        * {
            box-sizing: border-box;
        }
        html {
            scroll-behavior: smooth;
        }
        body {
            background-color: var(--dark-bg);
            color: var(--text-main);
            font-family: 'PingFang SC', 'Microsoft YaHei', system-ui, sans-serif;
            line-height: 1.65;
            margin: 0;
            -webkit-font-smoothing: antialiased;
        }
        a {
            color: inherit;
            text-decoration: none;
            transition: all 0.25s ease;
        }
        img {
            max-width: 100%;
            display: block;
        }
        button,
        input {
            font-family: inherit;
            font-size: inherit;
            border: none;
            outline: none;
        }
        .container-custom {
            max-width: 1280px;
            margin: 0 auto;
            padding: 0 24px;
        }
        .glass-header {
            background: rgba(6, 9, 23, 0.82);
            backdrop-filter: blur(18px);
            -webkit-backdrop-filter: blur(18px);
            border-bottom: 1px solid rgba(255, 255, 255, 0.06);
        }
        .nav-link {
            position: relative;
            font-size: 14px;
            padding: 8px 18px;
            border-radius: 9999px;
            transition: all 0.3s ease;
        }
        .nav-link:hover {
            background: rgba(99, 102, 241, 0.12);
            color: #fff !important;
        }
        .nav-link.active {
            background: linear-gradient(135deg, rgba(99, 102, 241, 0.25), rgba(168, 85, 247, 0.2));
            color: #fff !important;
            box-shadow: 0 0 0 1px rgba(99, 102, 241, 0.3), 0 4px 14px rgba(99, 102, 241, 0.15);
        }
        .search-input {
            background: rgba(255, 255, 255, 0.06);
            border: 1px solid rgba(255, 255, 255, 0.08);
            transition: all 0.3s ease;
        }
        .search-input:focus {
            background: rgba(255, 255, 255, 0.09);
            border-color: rgba(99, 102, 241, 0.5);
            box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
        }
        .btn-primary {
            background: linear-gradient(135deg, #6366f1, #a855f7);
            color: #fff;
            padding: 10px 22px;
            border-radius: 9999px;
            font-size: 14px;
            font-weight: 600;
            display: inline-flex;
            align-items: center;
            gap: 8px;
            transition: all 0.3s ease;
            box-shadow: 0 4px 16px rgba(99, 102, 241, 0.3);
        }
        .btn-primary:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 24px rgba(99, 102, 241, 0.4);
        }
        .btn-outline {
            border: 1px solid rgba(255, 255, 255, 0.15);
            color: #e2e8f0;
            padding: 10px 22px;
            border-radius: 9999px;
            font-size: 14px;
            font-weight: 500;
            display: inline-flex;
            align-items: center;
            gap: 8px;
            transition: all 0.3s ease;
            background: rgba(255, 255, 255, 0.03);
        }
        .btn-outline:hover {
            border-color: rgba(99, 102, 241, 0.6);
            background: rgba(99, 102, 241, 0.1);
            transform: translateY(-2px);
        }
        .card-base {
            background: linear-gradient(145deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01));
            border: 1px solid rgba(255, 255, 255, 0.06);
            border-radius: 20px;
            transition: all 0.35s ease;
        }
        .card-base:hover {
            transform: translateY(-4px);
            border-color: rgba(99, 102, 241, 0.25);
            box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
            background: linear-gradient(145deg, rgba(99, 102, 241, 0.08), rgba(168, 85, 247, 0.03));
        }
        .tag-badge {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            padding: 4px 12px;
            border-radius: 9999px;
            font-size: 12px;
            font-weight: 500;
            background: rgba(99, 102, 241, 0.12);
            color: #a5b4fc;
            border: 1px solid rgba(99, 102, 241, 0.2);
        }
        .tag-badge-purple {
            background: rgba(168, 85, 247, 0.12);
            color: #d8b4fe;
            border-color: rgba(168, 85, 247, 0.2);
        }
        .tag-badge-green {
            background: rgba(34, 197, 94, 0.1);
            color: #86efac;
            border-color: rgba(34, 197, 94, 0.2);
        }
        .hero-bg {
            background-image: linear-gradient(135deg, rgba(6, 9, 23, 0.9) 0%, rgba(6, 9, 23, 0.65) 50%, rgba(99, 102, 241, 0.25) 100%), url('/assets/images/backpic/back-1.png');
            background-size: cover;
            background-position: center;
            position: relative;
        }
        .hero-bg::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: radial-gradient(circle at 80% 20%, rgba(168, 85, 247, 0.2) 0%, transparent 50%);
            pointer-events: none;
        }
        .section-title {
            font-size: clamp(24px, 4vw, 36px);
            font-weight: 800;
            letter-spacing: -0.02em;
            line-height: 1.2;
        }
        .section-subtitle {
            font-size: 15px;
            color: var(--text-weak);
            line-height: 1.7;
        }
        .rank-item {
            display: flex;
            align-items: center;
            gap: 16px;
            padding: 16px 18px;
            border-radius: 14px;
            transition: all 0.3s ease;
            border: 1px solid transparent;
        }
        .rank-item:hover {
            background: rgba(99, 102, 241, 0.07);
            border-color: rgba(99, 102, 241, 0.15);
        }
        .rank-num {
            width: 34px;
            height: 34px;
            border-radius: 10px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 800;
            font-size: 14px;
            background: rgba(99, 102, 241, 0.15);
            color: #a5b4fc;
            flex-shrink: 0;
        }
        .rank-num.top-1 {
            background: linear-gradient(135deg, #f59e0b, #f97316);
            color: #fff;
        }
        .rank-num.top-2 {
            background: linear-gradient(135deg, #94a3b8, #64748b);
            color: #fff;
        }
        .rank-num.top-3 {
            background: linear-gradient(135deg, #b45309, #d97706);
            color: #fff;
        }
        .avatar-group {
            display: flex;
            align-items: center;
        }
        .avatar-group .avatar-item {
            width: 38px;
            height: 38px;
            border-radius: 50%;
            border: 2px solid #0b1023;
            margin-left: -10px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 13px;
            font-weight: 700;
            color: #fff;
            background: linear-gradient(135deg, #6366f1, #a855f7);
        }
        .avatar-group .avatar-item:first-child {
            margin-left: 0;
        }
        .avatar-group .avatar-item.more-tag {
            background: rgba(255, 255, 255, 0.08);
            color: #94a3b8;
            font-size: 11px;
            border-color: rgba(255, 255, 255, 0.1);
        }
        .faq-item {
            background: rgba(255, 255, 255, 0.025);
            border: 1px solid rgba(255, 255, 255, 0.06);
            border-radius: 16px;
            padding: 24px 28px;
            transition: all 0.3s ease;
        }
        .faq-item:hover {
            border-color: rgba(99, 102, 241, 0.2);
            background: rgba(99, 102, 241, 0.04);
        }
        .faq-q {
            font-size: 16px;
            font-weight: 700;
            color: #e2e8f0;
            display: flex;
            align-items: center;
            gap: 12px;
        }
        .faq-q .icon-circle {
            width: 28px;
            height: 28px;
            border-radius: 50%;
            background: rgba(99, 102, 241, 0.15);
            display: flex;
            align-items: center;
            justify-content: center;
            color: #a5b4fc;
            font-size: 13px;
            flex-shrink: 0;
        }
        .faq-a {
            color: #94a3b8;
            font-size: 14px;
            line-height: 1.8;
            padding-top: 12px;
            padding-left: 40px;
        }
        .cta-bg {
            background-image: linear-gradient(120deg, rgba(99, 102, 241, 0.15), rgba(168, 85, 247, 0.08)), url('/assets/images/backpic/back-2.png');
            background-size: cover;
            background-position: center;
        }
        .footer-link {
            transition: color 0.25s ease;
        }
        .footer-link:hover {
            color: #a5b4fc;
        }
        .step-card {
            position: relative;
        }
        .step-card::before {
            content: '';
            position: absolute;
            top: 28px;
            left: -1px;
            width: 2px;
            height: calc(100% - 28px);
            background: linear-gradient(to bottom, rgba(99, 102, 241, 0.3), rgba(168, 85, 247, 0.05));
        }
        @media (max-width: 1024px) {
            .container-custom {
                padding: 0 20px;
            }
            .nav-desktop {
                display: none;
            }
            .mobile-menu-btn {
                display: flex;
            }
            .mobile-nav {
                display: none;
            }
            .mobile-nav.open {
                display: block;
            }
        }
        @media (min-width: 1025px) {
            .mobile-menu-btn {
                display: none;
            }
            .mobile-nav {
                display: none !important;
            }
        }
        @media (max-width: 640px) {
            .container-custom {
                padding: 0 16px;
            }
            .section-title {
                font-size: 24px;
            }
            .faq-a {
                padding-left: 0;
                padding-top: 14px;
            }
            .hero-content {
                padding: 60px 0 80px;
            }
        }
        @media (min-width: 641px) {
            .hero-content {
                padding: 100px 0 130px;
            }
        }
        .card-cover {
            border-radius: 16px;
            overflow: hidden;
            position: relative;
        }
        .card-cover img {
            width: 100%;
            height: 200px;
            object-fit: cover;
            transition: transform 0.5s ease;
        }
        .card-base:hover .card-cover img {
            transform: scale(1.05);
        }
        .cover-overlay {
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: linear-gradient(to top, rgba(6, 9, 23, 0.6) 0%, transparent 50%);
            z-index: 1;
        }
        .cover-tag {
            position: absolute;
            top: 14px;
            left: 14px;
            z-index: 2;
        }
        .stat-number {
            font-size: 40px;
            font-weight: 800;
            background: linear-gradient(135deg, #818cf8, #c084fc);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            line-height: 1.1;
        }
        .badge-count {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            background: rgba(99, 102, 241, 0.12);
            border: 1px solid rgba(99, 102, 241, 0.2);
            color: #a5b4fc;
            padding: 4px 12px;
            border-radius: 9999px;
            font-size: 12px;
            font-weight: 500;
        }
        .badge-count i {
            font-size: 11px;
        }
        .divider-light {
            height: 1px;
            background: linear-gradient(to right, transparent, rgba(99, 102, 241, 0.3), transparent);
        }
        .section-padding {
            padding: 90px 0;
        }
        @media (max-width: 768px) {
            .section-padding {
                padding: 60px 0;
            }
        }
        .focus-ring:focus-visible {
            outline: 2px solid #818cf8;
            outline-offset: 2px;
        }
        .banner-inner {
            position: relative;
            z-index: 1;
        }

/* roulang page: article */
:root {
            --primary: #6366f1;
            --primary-dark: #4f46e5;
            --secondary: #8b5cf6;
            --dark: #060917;
            --dark-light: #0d1225;
            --text: #1e293b;
            --text-light: #64748b;
            --border: #e2e8f0;
            --bg-soft: #f8fafc;
            --radius: 1rem;
            --shadow: 0 4px 24px rgba(15, 23, 42, 0.06);
            --shadow-lg: 0 12px 40px rgba(15, 23, 42, 0.1);
        }

        * {
            box-sizing: border-box;
        }

        html {
            scroll-behavior: smooth;
        }

        body {
            font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "PingFang SC", "Microsoft YaHei", sans-serif;
            background: #fff;
            color: var(--text);
            line-height: 1.6;
            -webkit-font-smoothing: antialiased;
        }

        img {
            display: block;
            max-width: 100%;
        }

        a {
            text-decoration: none;
            color: inherit;
        }

        /* 按钮组件 */
        .btn-primary {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            padding: 0.625rem 1.5rem;
            border-radius: 9999px;
            font-size: 0.875rem;
            font-weight: 600;
            color: #fff;
            background: linear-gradient(135deg, #6366f1, #8b5cf6);
            box-shadow: 0 4px 16px rgba(99, 102, 241, 0.3);
            transition: all 0.3s ease;
            border: none;
            cursor: pointer;
        }
        .btn-primary:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 24px rgba(99, 102, 241, 0.4);
        }
        .btn-primary:active {
            transform: translateY(0);
        }
        .btn-primary:focus-visible {
            outline: 3px solid rgba(99, 102, 241, 0.5);
            outline-offset: 2px;
        }

        .btn-secondary {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            padding: 0.625rem 1.5rem;
            border-radius: 9999px;
            font-size: 0.875rem;
            font-weight: 600;
            color: #fff;
            background: rgba(255, 255, 255, 0.1);
            border: 1px solid rgba(255, 255, 255, 0.2);
            backdrop-filter: blur(8px);
            transition: all 0.3s ease;
        }
        .btn-secondary:hover {
            background: rgba(255, 255, 255, 0.2);
            border-color: rgba(255, 255, 255, 0.3);
            transform: translateY(-2px);
        }

        /* 导航链接 */
        .nav-link {
            position: relative;
            transition: all 0.2s ease;
        }
        .nav-link:hover {
            color: #fff;
            background: rgba(255, 255, 255, 0.08);
        }
        .nav-link.active {
            background: linear-gradient(135deg, rgba(99, 102, 241, 0.25), rgba(139, 92, 246, 0.25));
            color: #fff;
            box-shadow: inset 0 0 0 1px rgba(139, 92, 246, 0.35);
        }

        /* 页脚链接 */
        .footer-link {
            transition: color 0.2s ease;
        }
        .footer-link:hover {
            color: #fff;
        }

        /* 文章正文排版 */
        .article-content {
            font-size: 1.05rem;
            line-height: 1.9;
            color: #334155;
        }
        .article-content p {
            margin-bottom: 1.5rem;
        }
        .article-content h2 {
            font-size: 1.5rem;
            font-weight: 700;
            color: #0f172a;
            margin: 2.5rem 0 1.25rem;
            padding-bottom: 0.75rem;
            border-bottom: 2px solid #f1f5f9;
            letter-spacing: -0.02em;
        }
        .article-content h3 {
            font-size: 1.25rem;
            font-weight: 600;
            color: #0f172a;
            margin: 2rem 0 1rem;
        }
        .article-content a {
            color: #4f46e5;
            text-decoration: underline;
            text-underline-offset: 4px;
            text-decoration-color: rgba(79, 70, 229, 0.3);
            transition: text-decoration-color 0.2s ease;
        }
        .article-content a:hover {
            text-decoration-color: #4f46e5;
        }
        .article-content ul,
        .article-content ol {
            margin: 1.5rem 0;
            padding-left: 1.5rem;
        }
        .article-content ul {
            list-style: disc;
        }
        .article-content ol {
            list-style: decimal;
        }
        .article-content li {
            margin-bottom: 0.75rem;
            padding-left: 0.5rem;
        }
        .article-content ul li::marker {
            color: #6366f1;
        }
        .article-content img {
            border-radius: 1rem;
            margin: 2rem 0;
            box-shadow: var(--shadow);
        }
        .article-content blockquote {
            border-left: 4px solid #6366f1;
            background: #f8fafc;
            padding: 1.25rem 1.5rem;
            margin: 2rem 0;
            border-radius: 0 1rem 1rem 0;
            color: #475569;
            font-style: italic;
        }
        .article-content table {
            width: 100%;
            border-collapse: collapse;
            margin: 1.5rem 0;
            font-size: 0.95rem;
        }
        .article-content th,
        .article-content td {
            border: 1px solid #e2e8f0;
            padding: 0.75rem 1rem;
            text-align: left;
        }
        .article-content th {
            background: #f8fafc;
            font-weight: 600;
        }
        .article-content code {
            background: #f1f5f9;
            padding: 0.2rem 0.4rem;
            border-radius: 0.375rem;
            font-size: 0.875em;
        }

        /* 行数截断 */
        .line-clamp-2 {
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }

        /* 移动端菜单过渡 */
        #mobileMenu {
            transition: opacity 0.25s ease, transform 0.25s ease;
        }
        #mobileMenu.hidden {
            opacity: 0;
            transform: translateY(-8px);
            pointer-events: none;
        }

        /* 站点头部 */
        .site-header {
            transition: background 0.3s ease;
        }

        /* 卡片通用 hover */
        .hover-card {
            transition: all 0.3s ease;
        }
        .hover-card:hover {
            transform: translateY(-4px);
            box-shadow: 0 16px 40px rgba(15, 23, 42, 0.1);
        }
