/* roulang page: index */
:root {
            --primary: #4F46E5;
            --primary-light: #8B5CF6;
            --accent: #D946EF;
            --highlight: #FBBF24;
            --bg: #F8FAFC;
            --card: #FFFFFF;
            --text: #0F172A;
            --text-secondary: #64748B;
            --border: #E2E8F0;
            --radius-lg: 1.5rem;
            --radius-md: 1rem;
            --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04);
            --shadow-lg: 0 20px 25px -5px rgba(79, 70, 229, 0.1);
        }
        * {
            box-sizing: border-box;
        }
        html {
            scroll-behavior: smooth;
        }
        body {
            background: var(--bg);
            color: var(--text);
            font-family: 'PingFang SC', 'Microsoft YaHei', 'Noto Sans CJK SC', 'Helvetica Neue', Arial, sans-serif;
            -webkit-font-smoothing: antialiased;
        }
        img {
            display: block;
            max-width: 100%;
        }
        a,
        button,
        input,
        textarea {
            outline: none;
        }
        a:focus-visible,
        button:focus-visible,
        input:focus-visible,
        textarea:focus-visible {
            outline: 2px solid var(--primary);
            outline-offset: 2px;
            border-radius: 6px;
        }
        .dot-pattern {
            background-image: radial-gradient(circle, rgba(139, 92, 246, 0.08) 1px, transparent 1px);
            background-size: 22px 22px;
        }
        .line-clamp-2 {
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }
        .nav-link {
            border-left: 3px solid transparent;
            transition: all 0.2s ease;
        }
        .nav-link:hover {
            background: #F8FAFC;
            color: var(--primary);
        }
        .nav-link.active {
            background: linear-gradient(90deg, #EEF2FF, #FAF5FF);
            color: var(--primary);
            border-left-color: var(--primary);
            font-weight: 600;
        }
        .faq-answer {
            display: none;
        }
        .faq-item.open .faq-answer {
            display: block;
        }
        .faq-item.open .faq-icon {
            transform: rotate(45deg);
        }
        .faq-icon {
            transition: transform 0.2s ease;
        }
        .card-hover {
            transition: all 0.2s ease;
        }
        .card-hover:hover {
            transform: translateY(-4px);
            box-shadow: var(--shadow-lg);
        }

/* roulang page: category1 */
:root {
            --primary: #4F46E5;
            --secondary: #8B5CF6;
            --accent: #D946EF;
            --highlight: #FBBF24;
            --bg: #F8FAFC;
            --text: #0F172A;
            --muted: #64748B;
            --border: #E2E8F0;
            --radius-lg: 1.5rem;
            --radius-md: 1rem;
            --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06);
            --shadow-lg: 0 12px 32px rgba(79, 70, 229, .12);
        }
        * {
            box-sizing: border-box;
        }
        html {
            scroll-behavior: smooth;
        }
        body {
            margin: 0;
            font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", "Helvetica Neue", Arial, sans-serif;
            line-height: 1.6;
            background: var(--bg);
            color: var(--text);
            -webkit-font-smoothing: antialiased;
        }
        img {
            max-width: 100%;
            display: block;
        }
        a {
            text-decoration: none;
            color: inherit;
        }
        button {
            font-family: inherit;
            cursor: pointer;
        }
        .dot-pattern {
            background-image: radial-gradient(rgba(79, 70, 229, .14) 1px, transparent 1px);
            background-size: 22px 22px;
        }
        .btn-primary {
            display: inline-flex;
            align-items: center;
            gap: .5rem;
            background: linear-gradient(135deg, #4F46E5, #8B5CF6, #D946EF);
            color: #fff;
            font-weight: 600;
            font-size: .95rem;
            padding: .85rem 1.8rem;
            border-radius: 999px;
            border: none;
            box-shadow: 0 6px 20px rgba(79, 70, 229, .25);
            transition: all .2s ease;
        }
        .btn-primary:hover {
            box-shadow: 0 10px 30px rgba(139, 92, 246, .35);
            transform: translateY(-2px);
        }
        .btn-primary:active {
            transform: scale(.96);
        }
        .btn-outline {
            display: inline-flex;
            align-items: center;
            gap: .5rem;
            background: #fff;
            color: var(--primary);
            font-weight: 600;
            font-size: .95rem;
            padding: .85rem 1.8rem;
            border-radius: 999px;
            border: 1.5px solid #E2E8F0;
            transition: all .2s ease;
        }
        .btn-outline:hover {
            border-color: #A78BFA;
            color: #6D28D9;
            box-shadow: 0 4px 14px rgba(139, 92, 246, .12);
            transform: translateY(-1px);
        }
        .btn-outline:active {
            transform: scale(.96);
        }
        .section-tag {
            display: inline-block;
            background: #EEF2FF;
            color: #6D28D9;
            font-size: .8rem;
            font-weight: 600;
            padding: .35rem .9rem;
            border-radius: 999px;
        }
        .check-icon {
            flex: none;
            width: 24px;
            height: 24px;
            border-radius: 999px;
            background: linear-gradient(135deg, #4F46E5, #D946EF);
            display: flex;
            align-items: center;
            justify-content: center;
            margin-top: 4px;
        }
        .nav-link {
            transition: all .2s ease;
        }
        .nav-link:hover {
            background: #F1F5F9;
            color: #4F46E5;
        }
        .nav-link.active {
            background: linear-gradient(135deg, rgba(79, 70, 229, .08), rgba(217, 70, 239, .08));
            color: #4F46E5;
            font-weight: 600;
            border-left: 3px solid #8B5CF6;
        }
        .feature-card {
            background: #fff;
            border: 1px solid #E2E8F0;
            border-radius: 1.25rem;
            padding: 1.5rem;
            box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
            transition: all .2s ease;
        }
        .feature-card:hover {
            border-color: #DDD6FE;
            box-shadow: 0 12px 32px rgba(79, 70, 229, .12);
            transform: translateY(-4px);
        }
        .faq-item {
            background: #fff;
            border: 1px solid #E2E8F0;
            border-radius: 1.25rem;
            overflow: hidden;
            transition: border-color .2s ease, box-shadow .2s ease;
        }
        .faq-item.active {
            border-color: #DDD6FE;
            box-shadow: 0 8px 24px rgba(79, 70, 229, .08);
        }
        .faq-question {
            width: 100%;
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 1rem;
            padding: 1.25rem 1.5rem;
            background: transparent;
            border: none;
            text-align: left;
            font-size: 1rem;
            font-weight: 600;
            color: #0F172A;
        }
        .faq-icon {
            flex: none;
            width: 28px;
            height: 28px;
            border-radius: 999px;
            background: #EEF2FF;
            color: #4F46E5;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: transform .3s ease, background .2s ease;
        }
        .faq-item.active .faq-icon {
            transform: rotate(45deg);
            background: linear-gradient(135deg, #4F46E5, #D946EF);
            color: #fff;
        }
        .faq-answer {
            max-height: 0;
            overflow: hidden;
            font-size: .95rem;
            color: #64748B;
            line-height: 1.8;
            transition: max-height .35s ease;
        }
        .faq-answer-inner {
            padding: 0 1.5rem 1.4rem;
        }
        .step-card {
            background: rgba(255, 255, 255, .08);
            border: 1px solid rgba(255, 255, 255, .18);
            border-radius: 1.25rem;
            padding: 1.5rem;
            backdrop-filter: blur(4px);
            transition: background .2s ease, transform .2s ease;
        }
        .step-card:hover {
            background: rgba(255, 255, 255, .14);
            transform: translateY(-3px);
        }
        .step-num {
            width: 40px;
            height: 40px;
            border-radius: 999px;
            background: linear-gradient(135deg, #FBBF24, #F59E0B);
            color: #78350F;
            font-weight: 700;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.05rem;
        }
        .footer-link:hover {
            color: #4F46E5 !important;
        }
        @media (max-width: 1023px) {
            .desktop-sidebar {
                display: none;
            }
        }
        @media (min-width: 1024px) {
            .mobile-topbar,
            .mobile-drawer,
            .mobile-overlay {
                display: none;
            }
        }
        @media (max-width: 640px) {
            .btn-primary,
            .btn-outline {
                width: 100%;
                justify-content: center;
            }
        }

/* roulang page: article */
:root {
        --primary: #4F46E5;
        --secondary: #8B5CF6;
        --accent: #D946EF;
        --highlight: #FBBF24;
        --bg: #F8FAFC;
        --card: #FFFFFF;
        --text: #0F172A;
        --text-muted: #64748B;
        --border: #E2E8F0;
    }
    * { box-sizing: border-box; margin: 0; padding: 0; }
    body {
        font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
        background: linear-gradient(to bottom, #F8FAFC, #F5F3FF, #FDF4FF);
        color: var(--text);
        line-height: 1.6;
        -webkit-font-smoothing: antialiased;
    }
    a { text-decoration: none; color: inherit; transition: color .2s; }
    img { max-width: 100%; height: auto; display: block; }
    
    .nav-link { transition: background-color .2s, color .2s, box-shadow .2s; border: 1px solid transparent; }
    .nav-link:hover { background-color: #EEF2FF; color: var(--primary); }
    .nav-link.active {
        background: linear-gradient(135deg, rgba(79,70,229,.08), rgba(139,92,246,.08));
        color: var(--primary);
        font-weight: 600;
        border-color: rgba(79,70,229,.15);
        box-shadow: 0 2px 8px rgba(79,70,229,.06);
    }
    .nav-link.active i { color: var(--primary); }
    
    .gradient-text {
        background: linear-gradient(135deg, #4F46E5, #8B5CF6, #D946EF);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }
    
    .btn-primary {
        display: inline-flex;
        align-items: center;
        gap: .5rem;
        background: linear-gradient(135deg, #4F46E5, #8B5CF6, #D946EF);
        color: #fff;
        font-weight: 600;
        padding: .75rem 1.75rem;
        border-radius: 9999px;
        border: none;
        cursor: pointer;
        box-shadow: 0 4px 14px rgba(79,70,229,.25);
        transition: all .2s;
    }
    .btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(79,70,229,.35); }
    .btn-primary:active { transform: scale(.96); }
    .btn-outline {
        display: inline-flex;
        align-items: center;
        gap: .5rem;
        background: #fff;
        color: var(--primary);
        font-weight: 600;
        padding: .75rem 1.75rem;
        border-radius: 9999px;
        border: 1.5px solid #E0E7FF;
        cursor: pointer;
        transition: all .2s;
    }
    .btn-outline:hover { border-color: var(--primary); background: #F5F3FF; transform: translateY(-1px); }
    .btn-outline:active { transform: scale(.96); }
    
    .data-badge {
        display: inline-flex;
        align-items: center;
        gap: .25rem;
        background: #FEF3C7;
        color: #B45309;
        padding: .25rem .75rem;
        border-radius: 9999px;
        font-size: .75rem;
        font-weight: 600;
    }
    .cat-tag {
        display: inline-flex;
        align-items: center;
        background: #EEF2FF;
        color: #4F46E5;
        padding: .25rem .875rem;
        border-radius: 9999px;
        font-size: .75rem;
        font-weight: 600;
    }
    .card-hover { transition: all .25s ease; }
    .card-hover:hover { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(79,70,229,.1); border-color: #C7D2FE !important; }
    
    .tag-chip {
        display: inline-flex;
        align-items: center;
        background: #F1F5F9;
        color: #64748B;
        padding: .375rem 1rem;
        border-radius: 9999px;
        font-size: .825rem;
        font-weight: 500;
        transition: all .2s;
    }
    .tag-chip:hover { background: #E0E7FF; color: var(--primary); }
    
    .dot-pattern {
        background-image: radial-gradient(circle, rgba(79,70,229,.07) 1px, transparent 1px);
        background-size: 24px 24px;
    }
    
    .mobile-menu-backdrop { display: none; }
    .mobile-menu-backdrop.show { display: block; }
    
    a:focus-visible, button:focus-visible {
        outline: 3px solid rgba(79,70,229,.4);
        outline-offset: 2px;
    }
    
    /* 文章正文 */
    .article-content {
        font-size: 1.125rem;
        line-height: 2.1;
        color: #334155;
        word-break: break-word;
    }
    .article-content > *:last-child { margin-bottom: 0; }
    .article-content p { margin-bottom: 1.5rem; }
    .article-content h2 {
        font-size: 1.5rem;
        font-weight: 700;
        color: #0F172A;
        margin: 2.5rem 0 1rem;
        letter-spacing: -.02em;
        line-height: 1.4;
    }
    .article-content h3 {
        font-size: 1.25rem;
        font-weight: 600;
        color: #0F172A;
        margin: 2rem 0 .75rem;
        line-height: 1.4;
    }
    .article-content h4 {
        font-size: 1.125rem;
        font-weight: 600;
        color: #0F172A;
        margin: 1.75rem 0 .75rem;
    }
    .article-content ul,
    .article-content ol { margin: 0 0 1.5rem 1.5rem; padding: 0; }
    .article-content li { margin-bottom: .5rem; }
    .article-content ul li { list-style: disc; }
    .article-content ol li { list-style: decimal; }
    .article-content a { color: var(--primary); font-weight: 500; }
    .article-content a:hover { text-decoration: underline; }
    .article-content blockquote {
        border-left: 4px solid var(--primary);
        background: linear-gradient(to right, #EEF2FF, #F5F3FF);
        padding: 1.25rem 1.5rem;
        border-radius: 0 1rem 1rem 0;
        margin: 1.5rem 0;
        color: #334155;
        font-style: normal;
    }
    .article-content img {
        border-radius: 1rem;
        box-shadow: 0 4px 16px rgba(0,0,0,.08);
        margin: 1.5rem 0;
        width: 100%;
        object-fit: cover;
    }
    .article-content table {
        width: 100%;
        border-collapse: collapse;
        margin: 1.5rem 0;
        font-size: .95rem;
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    .article-content th {
        background: #F1F5F9;
        font-weight: 600;
        color: #0F172A;
    }
    .article-content th,
    .article-content td {
        border: 1px solid #E2E8F0;
        padding: .75rem 1rem;
        text-align: left;
        white-space: nowrap;
    }
    .article-content code {
        background: #F1F5F9;
        padding: .2em .45em;
        border-radius: .375rem;
        font-size: .875em;
        color: #4F46E5;
    }
    .article-content pre {
        background: #0F172A;
        color: #E2E8F0;
        padding: 1.25rem 1.5rem;
        border-radius: 1rem;
        margin: 1.5rem 0;
        overflow-x: auto;
        line-height: 1.7;
    }
    .article-content pre code {
        background: transparent;
        color: inherit;
        padding: 0;
    }
    
    /* 响应式 */
    @media (max-width: 1024px) {
        .desktop-sidebar { transform: translateX(-100%); }
    }
    @media (max-width: 640px) {
        .breadcrumb-text { max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    }
    
    /* 平滑滚动 */
    html { scroll-behavior: smooth; }

/* roulang page: category2 */
:root {
            --primary: #4F46E5;
            --primary-light: #818CF8;
            --secondary: #8B5CF6;
            --accent: #D946EF;
            --highlight: #FBBF24;
            --bg-body: #F8FAFC;
            --text-main: #0F172A;
            --text-muted: #64748B;
            --border: #E2E8F0;
            --radius-lg: 1.5rem;
            --radius-md: 1rem;
            --shadow-hover: 0 20px 40px -15px rgba(79, 70, 229, .15);
        }
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
        html {
            scroll-behavior: smooth;
        }
        body {
            font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
            background: linear-gradient(180deg, #FFFFFF 0%, #F8FAFC 100%);
            color: #0F172A;
            line-height: 1.6;
            -webkit-font-smoothing: antialiased;
        }
        img {
            display: block;
            max-width: 100%;
            height: auto;
        }
        a {
            text-decoration: none;
            color: inherit;
            transition: color .2s ease;
        }
        button {
            font-family: inherit;
        }
        a:focus-visible,
        button:focus-visible {
            outline: 3px solid rgba(79, 70, 229, .4);
            outline-offset: 2px;
            border-radius: 6px;
        }
        .dot-pattern {
            background-image: radial-gradient(circle, rgba(79, 70, 229, .12) 1px, transparent 1px);
            background-size: 22px 22px;
        }
        .text-gradient {
            background: linear-gradient(135deg, #4F46E5, #8B5CF6, #D946EF);
            -webkit-background-clip: text;
            background-clip: text;
            color: transparent;
        }
        .nav-link {
            transition: all .2s ease;
        }
        .nav-link:hover {
            background: #F1F5F9;
            color: #0F172A;
        }
        .nav-link.active {
            background: linear-gradient(135deg, rgba(79, 70, 229, .1), rgba(217, 70, 239, .08));
            color: #4F46E5;
            font-weight: 600;
        }
        .nav-link.active i {
            color: #4F46E5;
        }
        .btn-gradient {
            background: linear-gradient(135deg, #4F46E5, #8B5CF6, #D946EF);
            color: #fff;
            transition: all .2s ease;
        }
        .btn-gradient:hover {
            box-shadow: 0 12px 28px -6px rgba(79, 70, 229, .35);
            transform: translateY(-2px);
            color: #fff;
        }
        .btn-gradient:active {
            transform: scale(.97);
        }
        .btn-outline {
            background: #fff;
            border: 1px solid #E2E8F0;
            color: #334155;
            transition: all .2s ease;
        }
        .btn-outline:hover {
            border-color: #C4B5FD;
            color: #4F46E5;
            transform: translateY(-2px);
            box-shadow: 0 8px 20px -8px rgba(139, 92, 246, .2);
        }
        .btn-outline:active {
            transform: scale(.97);
        }
        .badge {
            display: inline-flex;
            align-items: center;
            gap: .4rem;
            padding: .35rem .8rem;
            border-radius: 999px;
            font-size: .75rem;
            font-weight: 600;
        }
        .card-hover {
            transition: all .2s ease;
        }
        .card-hover:hover {
            box-shadow: var(--shadow-hover);
            transform: translateY(-4px);
            border-color: #DDD6FE;
        }
        .faq-btn {
            width: 100%;
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 1rem;
            padding: 1.25rem 1.5rem;
            background: #fff;
            border: none;
            text-align: left;
            cursor: pointer;
            border-radius: 1rem;
            transition: background .2s ease;
        }
        .faq-btn:hover {
            background: #F8FAFC;
        }
        .faq-btn .faq-icon {
            transition: transform .3s ease;
            color: #94A3B8;
            font-size: 1.2rem;
            flex-shrink: 0;
        }
        .faq-item {
            background: #fff;
            border: 1px solid #E2E8F0;
            border-radius: 1rem;
            overflow: hidden;
            transition: border-color .2s ease, box-shadow .2s ease;
        }
        .faq-item.open {
            border-color: #DDD6FE;
            box-shadow: 0 8px 30px -12px rgba(79, 70, 229, .12);
        }
        .faq-item.open .faq-btn .faq-icon {
            transform: rotate(45deg);
            color: #4F46E5;
        }
        .faq-answer {
            max-height: 0;
            overflow: hidden;
            transition: max-height .3s ease-out;
        }
        .faq-item.open .faq-answer {
            max-height: 500px;
        }
        .faq-answer-inner {
            padding: .25rem 1.5rem 1.5rem;
            color: #64748B;
            line-height: 1.75;
            font-size: .9375rem;
        }
        .mobile-menu {
            position: fixed;
            top: 0;
            left: 0;
            bottom: 0;
            width: 280px;
            background: #fff;
            z-index: 60;
            transform: translateX(-100%);
            transition: transform .3s ease;
            box-shadow: 2px 0 24px rgba(15, 23, 42, .1);
        }
        .mobile-menu.open {
            transform: translateX(0);
        }
        .mobile-menu-backdrop {
            position: fixed;
            inset: 0;
            background: rgba(15, 23, 42, .4);
            z-index: 55;
            opacity: 0;
            visibility: hidden;
            transition: all .3s ease;
        }
        .mobile-menu-backdrop.open {
            opacity: 1;
            visibility: visible;
        }
