/* roulang page: index */
:root {
            --bg: #0E0D12;
            --surface: #16141C;
            --surface-2: #1D1A26;
            --border: #292432;
            --border-strong: #3A3354;
            --primary: #7C5CFF;
            --primary-hover: #9276FF;
            --primary-weak: rgba(124, 92, 255, 0.12);
            --accent: #F2B84B;
            --accent-hover: #FFCF6C;
            --accent-weak: rgba(242, 184, 75, 0.14);
            --success: #39D98A;
            --danger: #FF6B6B;
            --text-1: #EDEAF2;
            --text-2: #A49CB2;
            --text-3: #6E667C;
            --font-main: 'PingFang SC', 'Microsoft YaHei', 'Noto Sans SC', -apple-system, sans-serif;
            --radius-sm: 6px;
            --radius-md: 10px;
            --radius-lg: 14px;
            --radius-xl: 18px;
            --shadow-card: 0 2px 12px rgba(0, 0, 0, 0.25);
            --shadow-hover: 0 12px 32px rgba(0, 0, 0, 0.40), 0 0 0 1px rgba(124, 92, 255, 0.18);
            --shadow-btn: 0 4px 18px rgba(124, 92, 255, 0.32);
        }

        * {
            box-sizing: border-box;
        }
        html {
            scroll-behavior: smooth;
        }
        body {
            background: var(--bg);
            color: var(--text-1);
            font-family: var(--font-main);
            font-size: 15px;
            line-height: 1.75;
            margin: 0;
            overflow-x: hidden;
        }
        a {
            color: var(--primary);
            text-decoration: none;
            transition: color .2s;
        }
        a:hover {
            color: var(--primary-hover);
        }
        img {
            max-width: 100%;
            height: auto;
        }
        button {
            font-family: inherit;
            border: none;
            background: none;
            cursor: pointer;
        }
        input {
            font-family: inherit;
            border: none;
            outline: none;
        }
        .container {
            max-width: 1200px;
            padding-left: 20px;
            padding-right: 20px;
            margin-left: auto;
            margin-right: auto;
            width: 100%;
        }
        .btn {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            height: 46px;
            padding: 0 24px;
            border-radius: 8px;
            font-weight: 700;
            font-size: 15px;
            line-height: 1;
            transition: all .25s ease;
            text-decoration: none;
            border: none;
        }
        .btn-primary {
            background: var(--primary);
            color: #fff;
            box-shadow: var(--shadow-btn);
        }
        .btn-primary:hover {
            background: var(--primary-hover);
            color: #fff;
            transform: translateY(-2px);
        }
        .btn-primary:active {
            background: #5C3FE8;
            transform: translateY(0);
            box-shadow: none;
        }
        .btn-primary:focus-visible,
        .btn-outline:focus-visible {
            outline: 2px solid var(--primary);
            outline-offset: 2px;
        }
        .btn-outline {
            background: transparent;
            border: 1px solid var(--border-strong);
            color: var(--text-1);
        }
        .btn-outline:hover {
            border-color: var(--primary);
            color: var(--primary);
            background: var(--primary-weak);
            transform: translateY(-2px);
        }
        .btn-lg {
            height: 52px;
            padding: 0 32px;
            font-size: 16px;
            border-radius: 10px;
        }
        .btn-sm {
            height: 36px;
            padding: 0 16px;
            font-size: 13px;
            border-radius: 6px;
        }

        /* ===== Topbar ===== */
        .topbar {
            background: #14121A;
            height: 32px;
            display: flex;
            align-items: center;
            font-size: 13px;
            color: var(--text-3);
        }
        .topbar-welcome {
            color: var(--text-2);
        }
        .topbar-info {
            color: var(--text-3);
        }
        .topbar-info i {
            margin-right: 4px;
            color: var(--accent);
        }

        /* ===== Header ===== */
        .main-header {
            background: var(--bg);
            border-bottom: 1px solid var(--border);
            position: sticky;
            top: 0;
            z-index: 1050;
            box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
        }
        .main-header .navbar {
            padding: 0;
            min-height: 72px;
        }
        .logo {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 10px 0;
        }
        .logo-icon {
            width: 40px;
            height: 40px;
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
        }
        .logo-text {
            font-size: 22px;
            font-weight: 800;
            color: var(--text-1);
            letter-spacing: -0.01em;
            white-space: nowrap;
        }
        .logo-text span {
            color: var(--primary);
        }
        .main-nav {
            display: flex;
            align-items: center;
            gap: 6px;
            margin-left: 32px;
        }
        .nav-link {
            display: inline-block;
            padding: 24px 14px;
            color: var(--text-2) !important;
            font-size: 15px;
            font-weight: 600;
            position: relative;
            transition: color .2s;
        }
        .nav-link::after {
            content: '';
            position: absolute;
            left: 14px;
            right: 14px;
            bottom: 14px;
            height: 2px;
            background: var(--primary);
            border-radius: 2px;
            transform: scaleX(0);
            transform-origin: left;
            transition: transform .25s;
        }
        .nav-link:hover,
        .nav-link.active {
            color: var(--text-1) !important;
        }
        .nav-link:hover::after,
        .nav-link.active::after {
            transform: scaleX(1);
        }
        .nav-actions {
            display: flex;
            align-items: center;
            gap: 12px;
        }
        .search-toggle {
            width: 36px;
            height: 36px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--text-2);
            background: transparent;
            transition: all .2s;
        }
        .search-toggle:hover {
            background: var(--primary-weak);
            color: var(--primary);
        }
        .hamburger {
            display: none;
            width: 40px;
            height: 40px;
            border-radius: 8px;
            background: var(--surface);
            border: 1px solid var(--border);
            color: var(--text-1);
            align-items: center;
            justify-content: center;
            font-size: 18px;
        }

        /* ===== Mega Menu ===== */
        .mega-nav-item {
            position: static;
        }
        .mega-menu {
            display: none;
            position: absolute;
            top: 100%;
            left: 50%;
            transform: translateX(-50%);
            width: min(1200px, 94vw);
            background: var(--surface-2);
            border-radius: 0 0 14px 14px;
            border-top: 2px solid var(--primary);
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
            padding: 28px 32px 32px;
            z-index: 1055;
        }
        .mega-nav-item:hover .mega-menu,
        .mega-nav-item:focus-within .mega-menu {
            display: block;
            animation: megaIn .25s ease;
        }
        @keyframes megaIn {
            from {
                opacity: 0;
                transform: translateX(-50%) translateY(8px);
            }
            to {
                opacity: 1;
                transform: translateX(-50%) translateY(0);
            }
        }
        .mega-grid {
            display: grid;
            grid-template-columns: 1.2fr 1fr 0.8fr;
            gap: 32px;
        }
        .mega-title {
            font-size: 13px;
            font-weight: 600;
            letter-spacing: 0.08em;
            color: var(--text-3);
            text-transform: uppercase;
            margin-bottom: 16px;
        }
        .mega-cats {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 12px;
        }
        .mega-cat-card {
            display: flex;
            flex-direction: column;
            padding: 14px;
            background: var(--surface);
            border: 1px solid var(--border);
            border-radius: 10px;
            transition: all .2s;
            text-decoration: none;
        }
        .mega-cat-card:hover {
            background: var(--primary-weak);
            border-color: var(--primary);
            transform: translateY(-2px);
            box-shadow: var(--shadow-card);
        }
        .mega-cat-icon {
            font-size: 18px;
            color: var(--primary);
            margin-bottom: 8px;
        }
        .mega-cat-name {
            font-size: 14px;
            font-weight: 700;
            color: var(--text-1);
        }
        .mega-cat-desc {
            font-size: 12px;
            color: var(--text-3);
            margin-top: 4px;
        }
        .mega-news {
            display: flex;
            flex-direction: column;
            gap: 12px;
        }
        .mega-news-item {
            padding: 10px 12px;
            background: var(--surface);
            border-radius: 8px;
            border: 1px solid transparent;
            transition: all .2s;
            text-decoration: none;
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 12px;
        }
        .mega-news-item:hover {
            border-color: var(--primary);
            background: var(--primary-weak);
        }
        .mega-news-title {
            font-size: 14px;
            color: var(--text-1);
            font-weight: 600;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }
        .mega-news-time {
            font-size: 12px;
            color: var(--text-3);
            flex-shrink: 0;
            font-variant-numeric: tabular-nums;
        }
        .mega-news-empty {
            font-size: 14px;
            color: var(--text-3);
            padding: 20px;
            text-align: center;
            background: var(--surface);
            border-radius: 8px;
        }
        .mega-cta-col {
            display: flex;
            align-items: stretch;
        }
        .mega-cta-box {
            background: var(--primary-weak);
            border: 1px solid rgba(124, 92, 255, 0.25);
            border-radius: 12px;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            text-align: center;
            padding: 28px 20px;
            width: 100%;
        }
        .mega-cta-box h4 {
            font-size: 20px;
            font-weight: 700;
            color: var(--text-1);
            margin-bottom: 8px;
        }
        .mega-cta-box p {
            font-size: 13px;
            color: var(--text-2);
            margin-bottom: 20px;
        }

        /* ===== Search Bar ===== */
        .search-bar-wrap {
            position: absolute;
            top: 72px;
            left: 0;
            right: 0;
            background: var(--surface-2);
            border-bottom: 1px solid var(--border);
            padding: 16px 0;
            display: none;
            z-index: 1049;
        }
        .search-bar-wrap.active {
            display: block;
        }
        .search-input-group {
            display: flex;
            align-items: center;
            background: var(--surface);
            border-radius: 8px;
            padding: 0 16px;
            border: 1px solid var(--border);
            transition: border-color .2s;
        }
        .search-input-group:focus-within {
            border-color: var(--primary);
            box-shadow: 0 0 0 3px rgba(124, 92, 255, 0.15);
        }
        .search-input-group i {
            color: var(--text-3);
            margin-right: 10px;
        }
        .search-input-group input {
            background: transparent;
            color: var(--text-1);
            height: 44px;
            width: 100%;
            font-size: 15px;
        }
        .search-input-group input::placeholder {
            color: var(--text-3);
        }

        /* ===== Hero ===== */
        .index-hero {
            position: relative;
            min-height: 92vh;
            display: flex;
            align-items: center;
            background: linear-gradient(to right, rgba(14, 13, 18, 0.96) 0%, rgba(14, 13, 18, 0.75) 45%, rgba(14, 13, 18, 0.3) 100%),
                url('/assets/images/backpic/back-1.webp') center/cover no-repeat;
            padding: 100px 0 120px;
        }
        .hero-tag {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            padding: 4px 14px;
            background: var(--primary-weak);
            border: 1px solid rgba(124, 92, 255, 0.3);
            border-radius: 4px;
            font-size: 12px;
            font-weight: 600;
            letter-spacing: 0.05em;
            color: var(--primary-hover);
            margin-bottom: 20px;
        }
        .hero-title {
            font-size: 48px;
            font-weight: 800;
            line-height: 64px;
            letter-spacing: -0.02em;
            margin-bottom: 16px;
            color: var(--text-1);
        }
        .hero-title .highlight {
            color: var(--primary);
        }
        .hero-subtitle {
            font-size: 15px;
            color: var(--text-2);
            margin-bottom: 32px;
            max-width: 460px;
            line-height: 1.7;
        }
        .hero-panel {
            background: var(--surface-2);
            border: 1px solid var(--border);
            border-radius: 18px;
            padding: 24px;
            box-shadow: var(--shadow-card);
            max-width: 320px;
            margin-left: auto;
        }
        .hero-panel-title {
            font-size: 16px;
            font-weight: 700;
            color: var(--text-1);
            margin-bottom: 18px;
        }
        .hero-panel-items {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 10px;
            margin-bottom: 20px;
        }
        .panel-item {
            display: flex;
            align-items: center;
            gap: 8px;
            padding: 10px 12px;
            background: var(--surface);
            border: 1px solid var(--border);
            border-radius: 10px;
            transition: all .2s;
            text-decoration: none;
            color: var(--text-1);
            font-size: 13px;
            font-weight: 600;
        }
        .panel-item i {
            color: var(--primary);
            font-size: 16px;
        }
        .panel-item:hover {
            border-color: var(--primary);
            background: var(--primary-weak);
            color: var(--text-1);
        }
        .hero-panel .btn {
            width: 100%;
        }
        .hero-floating-capsules {
            position: absolute;
            bottom: 24px;
            left: 0;
            right: 0;
            display: flex;
            justify-content: center;
            gap: 16px;
            flex-wrap: wrap;
            pointer-events: none;
        }
        .hero-capsule {
            display: flex;
            align-items: center;
            gap: 8px;
            background: rgba(29, 26, 38, 0.85);
            backdrop-filter: none;
            border: 1px solid var(--border);
            border-radius: 50px;
            padding: 10px 20px;
            font-size: 13px;
            color: var(--text-2);
            box-shadow: var(--shadow-card);
            backdrop-filter: none;
        }
        .hero-capsule i {
            color: var(--accent);
        }

        /* ===== Section Base ===== */
        .section {
            padding: 80px 0;
        }
        .section-alt {
            background: var(--surface);
        }
        .section-head {
            display: flex;
            align-items: flex-end;
            justify-content: space-between;
            margin-bottom: 40px;
            flex-wrap: wrap;
            gap: 16px;
        }
        .section-title {
            font-size: 32px;
            font-weight: 700;
            line-height: 44px;
            letter-spacing: -0.01em;
            margin: 0;
            color: var(--text-1);
        }
        .section-subtitle {
            font-size: 15px;
            color: var(--text-2);
            margin-top: 8px;
        }
        .section-more {
            font-size: 14px;
            color: var(--primary);
            font-weight: 600;
            text-decoration: none;
            display: inline-flex;
            align-items: center;
            gap: 6px;
        }
        .section-more:hover {
            color: var(--primary-hover);
        }
        .section-more i {
            font-size: 12px;
            transition: transform .2s;
        }
        .section-more:hover i {
            transform: translateX(4px);
        }

        /* ===== Guide ===== */
        .guide-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 48px;
            align-items: center;
        }
        .guide-media {
            border-radius: 16px;
            overflow: hidden;
            position: relative;
        }
        .guide-media img {
            width: 100%;
            aspect-ratio: 4/3;
            object-fit: cover;
            display: block;
        }
        .guide-steps {
            display: flex;
            flex-direction: column;
            gap: 28px;
            counter-reset: guide;
        }
        .guide-step {
            display: flex;
            gap: 16px;
            align-items: flex-start;
        }
        .guide-step-num {
            font-size: 36px;
            font-weight: 800;
            color: var(--primary);
            font-variant-numeric: tabular-nums;
            line-height: 1;
            flex-shrink: 0;
            width: 48px;
            text-align: center;
        }
        .guide-step-body h3 {
            font-size: 20px;
            font-weight: 700;
            color: var(--text-1);
            margin: 0 0 4px;
        }
        .guide-step-body p {
            font-size: 15px;
            color: var(--text-2);
            margin: 0;
        }
        .flow-strip {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 0;
            margin-top: 56px;
            position: relative;
        }
        .flow-step {
            text-align: center;
            position: relative;
            padding: 24px 12px;
        }
        .flow-step::after {
            content: '';
            position: absolute;
            top: 50%;
            right: -1px;
            width: calc(100% - 80px);
            height: 2px;
            border-top: 2px dashed var(--primary);
            opacity: 0.4;
        }
        .flow-step:last-child::after {
            display: none;
        }
        .flow-icon {
            width: 56px;
            height: 56px;
            border-radius: 50%;
            background: var(--primary-weak);
            border: 1px solid rgba(124, 92, 255, 0.3);
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0 auto 12px;
            font-size: 20px;
            color: var(--primary);
        }
        .flow-step-name {
            font-size: 15px;
            font-weight: 700;
            color: var(--text-1);
            margin-bottom: 4px;
        }
        .flow-step-desc {
            font-size: 13px;
            color: var(--text-3);
        }

        /* ===== Reward ===== */
        .reward-grid {
            display: grid;
            grid-template-columns: 1.1fr 0.9fr;
            gap: 24px;
            margin-bottom: 24px;
        }
        .reward-card {
            background: var(--surface);
            border: 1px solid var(--border);
            border-radius: 14px;
            overflow: hidden;
            box-shadow: var(--shadow-card);
            transition: all .3s;
        }
        .reward-card:hover {
            border-color: var(--border-strong);
            box-shadow: var(--shadow-hover);
            transform: translateY(-4px);
        }
        .reward-cover {
            width: 100%;
            aspect-ratio: 16/9;
            object-fit: cover;
            display: block;
        }
        .reward-card-body {
            padding: 20px 24px 24px;
        }
        .reward-name {
            font-size: 24px;
            font-weight: 700;
            color: var(--accent);
            margin-bottom: 6px;
        }
        .reward-condition {
            font-size: 14px;
            color: var(--text-2);
            margin-bottom: 18px;
        }
        .reward-calendar {
            background: var(--surface);
            border: 1px solid var(--border);
            border-radius: 14px;
            padding: 20px 24px;
            box-shadow: var(--shadow-card);
        }
        .calendar-title {
            font-size: 18px;
            font-weight: 700;
            color: var(--text-1);
            margin-bottom: 16px;
            display: flex;
            align-items: center;
            gap: 8px;
        }
        .calendar-title i {
            color: var(--accent);
        }
        .calendar-list {
            display: flex;
            flex-direction: column;
        }
        .calendar-day {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 10px 0;
            border-bottom: 1px solid var(--border);
            font-size: 14px;
        }
        .calendar-day:last-child {
            border-bottom: none;
        }
        .calendar-day.today {
            background: var(--primary-weak);
            border-radius: 8px;
            padding-left: 12px;
            padding-right: 12px;
            margin: 4px -12px;
            border: 1px solid var(--primary);
        }
        .calendar-day-label {
            display: flex;
            align-items: center;
            gap: 8px;
            color: var(--text-2);
        }
        .calendar-day.today .calendar-day-label {
            color: var(--text-1);
            font-weight: 600;
        }
        .calendar-day-value {
            color: var(--text-1);
            font-weight: 600;
        }
        .calendar-badge {
            padding: 2px 8px;
            font-size: 11px;
            font-weight: 700;
            border-radius: 4px;
            background: var(--primary);
            color: #fff;
            margin-left: auto;
        }
        .reward-progress-card {
            background: var(--surface);
            border: 1px solid var(--border);
            border-radius: 14px;
            padding: 28px 32px;
            display: flex;
            align-items: center;
            gap: 32px;
            flex-wrap: wrap;
            box-shadow: var(--shadow-card);
        }
        .progress-num {
            font-size: 46px;
            font-weight: 800;
            color: var(--primary);
            font-variant-numeric: tabular-nums;
            letter-spacing: -0.02em;
            line-height: 1;
        }
        .progress-meta {
            flex: 1;
            min-width: 200px;
        }
        .progress-meta-label {
            font-size: 14px;
            font-weight: 600;
            color: var(--text-1);
            margin-bottom: 8px;
        }
        .progress-track {
            height: 6px;
            background: #2A2632;
            border-radius: 3px;
            overflow: hidden;
            margin-bottom: 8px;
        }
        .progress-fill {
            height: 100%;
            background: linear-gradient(90deg, #7C5CFF, #F2B84B);
            border-radius: 3px;
            transition: width .8s ease;
        }
        .progress-fill.complete {
            background: var(--success);
        }
        .progress-hint {
            font-size: 13px;
            color: var(--text-3);
        }

        /* ===== Mission ===== */
        .mission-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 24px;
        }
        .mission-card {
            background: var(--surface);
            border: 1px solid var(--border);
            border-radius: 14px;
            padding: 24px;
            box-shadow: var(--shadow-card);
            transition: all .25s;
            display: flex;
            flex-direction: column;
            gap: 12px;
        }
        .mission-card:hover {
            border-color: var(--border-strong);
            box-shadow: var(--shadow-hover);
            transform: translateY(-4px);
        }
        .mission-card-top {
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 8px;
        }
        .mission-name {
            font-size: 15px;
            font-weight: 700;
            color: var(--text-1);
            margin: 0;
        }
        .mission-progress-num {
            font-size: 14px;
            font-weight: 700;
            color: var(--text-2);
            font-variant-numeric: tabular-nums;
        }
        .mission-card .progress-track {
            margin: 0;
        }
        .badge-status {
            padding: 3px 10px;
            border-radius: 4px;
            font-size: 12px;
            font-weight: 600;
            letter-spacing: 0.03em;
            flex-shrink: 0;
        }
        .badge-status.active {
            background: var(--primary-weak);
            color: var(--primary-hover);
        }
        .badge-status.claim {
            background: var(--accent-weak);
            color: var(--accent);
        }
        .badge-status.done {
            background: rgba(57, 217, 138, 0.12);
            color: var(--success);
        }
        .refresh-btn {
            width: 36px;
            height: 36px;
            border-radius: 8px;
            background: var(--surface);
            border: 1px solid var(--border);
            color: var(--text-2);
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all .2s;
        }
        .refresh-btn:hover {
            border-color: var(--primary);
            color: var(--primary);
            background: var(--primary-weak);
        }
        .refresh-btn:hover i {
            transform: rotate(180deg);
        }
        .refresh-btn i {
            transition: transform .4s;
        }

        /* ===== CTA ===== */
        .cta-section {
            position: relative;
            padding: 96px 0;
            text-align: center;
            background: linear-gradient(rgba(14, 13, 18, 0.82), rgba(14, 13, 18, 0.82)),
                url('/assets/images/backpic/back-2.webp') center/cover fixed no-repeat;
        }
        .cta-title {
            font-size: 36px;
            font-weight: 800;
            letter-spacing: -0.02em;
            color: var(--text-1);
            margin-bottom: 12px;
        }
        .cta-subtitle {
            font-size: 15px;
            color: var(--text-2);
            margin-bottom: 32px;
        }
        .cta-section .btn {
            min-width: 220px;
        }

        /* ===== News List ===== */
        .news-filter {
            display: flex;
            gap: 8px;
        }
        .filter-tag {
            padding: 6px 16px;
            border-radius: 50px;
            background: var(--surface);
            border: 1px solid var(--border);
            font-size: 13px;
            font-weight: 600;
            color: var(--text-2);
            transition: all .2s;
        }
        .filter-tag:hover,
        .filter-tag.active {
            background: var(--primary-weak);
            border-color: var(--primary);
            color: var(--primary-hover);
        }
        .news-list {
            display: flex;
            flex-direction: column;
            gap: 16px;
        }
        .news-card {
            display: flex;
            gap: 16px;
            align-items: center;
            background: var(--surface);
            border: 1px solid var(--border);
            border-radius: 12px;
            padding: 16px;
            box-shadow: var(--shadow-card);
            transition: all .25s;
            text-decoration: none;
        }
        .news-card:hover {
            border-color: var(--primary);
            box-shadow: var(--shadow-hover);
            transform: translateY(-2px);
        }
        .news-thumb {
            width: 80px;
            height: 80px;
            border-radius: 8px;
            overflow: hidden;
            flex-shrink: 0;
            background: var(--surface-2);
        }
        .news-thumb img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
        .news-body {
            flex: 1;
            min-width: 0;
        }
        .news-title {
            font-size: 15px;
            font-weight: 700;
            color: var(--text-1);
            margin: 0 0 4px;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }
        .news-excerpt {
            font-size: 13px;
            color: var(--text-2);
            margin: 0 0 8px;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }
        .news-meta {
            display: flex;
            align-items: center;
            gap: 12px;
        }
        .news-category {
            padding: 2px 10px;
            border-radius: 4px;
            font-size: 12px;
            font-weight: 600;
            background: var(--primary-weak);
            color: var(--primary-hover);
        }
        .news-time {
            font-size: 12px;
            color: var(--text-3);
            font-variant-numeric: tabular-nums;
        }
        .news-readmore {
            font-size: 13px;
            color: var(--primary);
            font-weight: 600;
            margin-left: auto;
            display: inline-flex;
            align-items: center;
            gap: 4px;
        }
        .news-readmore i {
            font-size: 11px;
        }
        .empty-state {
            text-align: center;
            padding: 60px 20px;
            background: var(--surface);
            border: 1px dashed var(--border-strong);
            border-radius: 14px;
        }
        .empty-state-icon {
            font-size: 48px;
            color: var(--text-3);
            margin-bottom: 16px;
        }
        .empty-state-text {
            font-size: 15px;
            color: var(--text-2);
            margin-bottom: 20px;
        }

        /* ===== FAQ ===== */
        .faq-wrap {
            max-width: 860px;
            margin: 0 auto;
        }
        .faq-item {
            border-bottom: 1px solid var(--border);
            transition: all .3s;
            background: transparent;
            border-radius: 0;
        }
        .faq-item.open {
            background: var(--primary-weak);
            border-radius: 10px;
            box-shadow: inset 0 0 0 1px rgba(124, 92, 255, 0.2);
        }
        .faq-question {
            width: 100%;
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 20px 16px;
            font-size: 15px;
            font-weight: 600;
            color: var(--text-1);
            background: transparent;
            text-align: left;
            transition: color .2s;
        }
        .faq-item.open .faq-question {
            color: var(--primary);
        }
        .faq-question i {
            font-size: 14px;
            color: var(--text-3);
            transition: transform .3s;
            flex-shrink: 0;
            margin-left: 12px;
        }
        .faq-item.open .faq-question i {
            transform: rotate(180deg);
            color: var(--primary);
        }
        .faq-answer {
            max-height: 0;
            overflow: hidden;
            transition: max-height .35s ease;
        }
        .faq-item.open .faq-answer {
            max-height: 500px;
        }
        .faq-answer-inner {
            padding: 0 16px 20px;
            font-size: 14px;
            line-height: 1.75;
            color: var(--text-2);
        }

        /* ===== Footer ===== */
        .site-footer {
            background: #0A090D;
            padding: 56px 0 0;
            border-top: 1px solid var(--border);
        }
        .footer-grid {
            display: grid;
            grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
            gap: 40px;
            margin-bottom: 40px;
        }
        .footer-brand .logo {
            margin-bottom: 14px;
        }
        .footer-brand p {
            font-size: 14px;
            color: var(--text-3);
            line-height: 1.7;
            max-width: 280px;
        }
        .footer-col h4 {
            font-size: 15px;
            font-weight: 700;
            color: var(--text-1);
            margin-bottom: 16px;
        }
        .footer-col a {
            display: block;
            padding: 4px 0;
            font-size: 14px;
            color: var(--text-2);
            text-decoration: none;
            transition: color .2s;
        }
        .footer-col a:hover {
            color: var(--primary);
        }
        .footer-col p {
            font-size: 13px;
            color: var(--text-3);
            line-height: 1.7;
            margin: 0;
        }
        .footer-bottom {
            border-top: 1px solid var(--border);
            padding: 20px 0;
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-wrap: wrap;
            gap: 8px;
            font-size: 13px;
            color: var(--text-3);
        }

        /* ===== Responsive ===== */
        @media (max-width: 991.98px) {
            .main-header .navbar-collapse {
                background: var(--surface-2);
                border-radius: 0 0 14px 14px;
                padding: 16px 20px;
                margin-top: 0;
                box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
            }
            .main-nav {
                flex-direction: column;
                align-items: stretch;
                margin-left: 0;
                gap: 0;
                padding: 10px 0;
            }
            .nav-link {
                padding: 12px 8px;
                display: block;
            }
            .nav-link::after {
                display: none;
            }
            .mega-menu {
                position: static;
                transform: none;
                width: 100%;
                border-radius: 12px;
                margin-top: 8px;
                padding: 20px;
                display: none;
                box-shadow: none;
                border-top: 2px solid var(--primary);
            }
            .mega-nav-item.show .mega-menu {
                display: block;
                animation: none;
            }
            .mega-grid {
                grid-template-columns: 1fr;
                gap: 24px;
            }
            .mega-cta-col {
                display: block;
            }
            .hamburger {
                display: flex;
            }
            .nav-actions .btn {
                display: none;
            }
            .search-toggle {
                display: none;
            }
            .hero-title {
                font-size: 38px;
                line-height: 50px;
            }
            .hero-panel {
                margin-left: 0;
                margin-top: 32px;
                max-width: 100%;
            }
            .guide-grid {
                grid-template-columns: 1fr;
                gap: 32px;
            }
            .reward-grid {
                grid-template-columns: 1fr;
            }
            .mission-grid {
                grid-template-columns: repeat(2, 1fr);
            }
            .footer-grid {
                grid-template-columns: 1fr 1fr;
                gap: 32px;
            }
            .flow-strip {
                grid-template-columns: repeat(2, 1fr);
                gap: 16px;
            }
            .flow-step::after {
                display: none;
            }
        }
        @media (max-width: 575.98px) {
            .section {
                padding: 56px 0;
            }
            .section-title {
                font-size: 26px;
                line-height: 36px;
            }
            .hero-title {
                font-size: 30px;
                line-height: 42px;
            }
            .hero-panel-items {
                grid-template-columns: 1fr 1fr;
            }
            .flow-strip {
                grid-template-columns: 1fr 1fr;
            }
            .mission-grid {
                grid-template-columns: 1fr;
            }
            .footer-grid {
                grid-template-columns: 1fr;
            }
            .hero-floating-capsules {
                display: none;
            }
            .news-card {
                flex-direction: column;
                align-items: flex-start;
            }
            .news-thumb {
                width: 100%;
                height: 160px;
            }
            .news-meta {
                flex-wrap: wrap;
            }
            .news-readmore {
                margin-left: 0;
            }
            .reward-progress-card {
                padding: 20px;
                flex-direction: column;
                align-items: flex-start;
                gap: 16px;
            }
        }

.refresh-btn.spinning i {
            transform: rotate(360deg);
            transition: transform .6s;
        }

/* roulang page: category1 */
:root {
            --bg: #0E0D12;
            --surface: #16141C;
            --surface-2: #1D1A26;
            --border: #292432;
            --border-strong: #3A3354;
            --primary: #7C5CFF;
            --primary-hover: #9276FF;
            --primary-weak: rgba(124, 92, 255, 0.12);
            --accent: #F2B84B;
            --accent-hover: #FFCF6C;
            --accent-weak: rgba(242, 184, 75, 0.14);
            --success: #39D98A;
            --danger: #FF6B6B;
            --text-1: #EDEAF2;
            --text-2: #A49CB2;
            --text-3: #6E667C;
            --radius-sm: 6px;
            --radius-md: 10px;
            --radius-lg: 14px;
            --shadow-card: 0 2px 12px rgba(0, 0, 0, 0.25);
            --shadow-hover: 0 12px 32px rgba(0, 0, 0, 0.40), 0 0 0 1px rgba(124, 92, 255, 0.18);
            --shadow-btn: 0 4px 18px rgba(124, 92, 255, 0.32);
            --font-family: 'PingFang SC', 'Microsoft YaHei', 'Noto Sans SC', -apple-system, sans-serif;
        }

        *,
        *::before,
        *::after {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        html {
            scroll-behavior: smooth;
        }

        body {
            font-family: var(--font-family);
            background: var(--bg);
            color: var(--text-1);
            line-height: 1.75;
            font-size: 15px;
            -webkit-font-smoothing: antialiased;
        }

        a {
            text-decoration: none;
            color: inherit;
            transition: color .2s ease;
        }

        img {
            max-width: 100%;
            height: auto;
            display: block;
        }

        button,
        input {
            font-family: inherit;
            border: none;
            outline: none;
            background: none;
        }

        .container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 24px;
        }

        .text-gradient {
            background: linear-gradient(135deg, var(--primary), var(--accent));
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        .btn {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            height: 44px;
            padding: 0 24px;
            border-radius: var(--radius-md);
            font-size: 15px;
            font-weight: 700;
            border: none;
            cursor: pointer;
            transition: all .25s ease;
            gap: 8px;
            white-space: nowrap;
        }

        .btn:focus-visible {
            outline: 2px solid var(--primary);
            outline-offset: 2px;
        }

        .btn-primary {
            background: var(--primary);
            color: #fff;
            box-shadow: var(--shadow-btn);
        }

        .btn-primary:hover {
            background: var(--primary-hover);
            color: #fff;
            transform: translateY(-2px);
            box-shadow: 0 8px 24px rgba(124, 92, 255, 0.42);
        }

        .btn-primary:active {
            background: #5C3FE8;
            transform: none;
            box-shadow: none;
        }

        .btn-outline {
            background: transparent;
            border: 1px solid var(--border-strong);
            color: var(--text-1);
        }

        .btn-outline:hover {
            border-color: var(--primary);
            color: var(--primary);
            background: var(--primary-weak);
        }

        .btn-lg {
            height: 52px;
            padding: 0 32px;
            font-size: 16px;
            border-radius: var(--radius-md);
        }

        /* ===== Top Strip ===== */
        .top-strip {
            background: #14121A;
            height: 32px;
            display: flex;
            align-items: center;
            border-bottom: 1px solid rgba(255, 255, 255, 0.04);
        }

        .top-strip .container {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 16px;
        }

        .top-strip-left {
            font-size: 12px;
            color: var(--text-3);
        }

        .top-strip-right {
            font-size: 12px;
            color: var(--text-3);
            display: flex;
            align-items: center;
            gap: 6px;
        }

        .top-strip-right i {
            color: var(--accent);
            font-size: 11px;
        }

        /* ===== Header / Navbar ===== */
        .main-header {
            position: sticky;
            top: 0;
            z-index: 1000;
            background: var(--bg);
            border-bottom: 1px solid var(--border);
        }

        .main-header .navbar {
            min-height: 72px;
            padding: 0;
            background: var(--bg);
        }

        .main-header .navbar .container {
            display: flex;
            align-items: center;
            justify-content: space-between;
            position: relative;
        }

        .logo {
            display: flex;
            align-items: center;
            gap: 10px;
            flex-shrink: 0;
        }

        .logo-icon {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 40px;
            height: 40px;
        }

        .logo-text {
            font-size: 22px;
            font-weight: 800;
            color: var(--text-1);
            letter-spacing: -0.02em;
        }

        .logo-text span {
            color: var(--primary);
        }

        .main-nav {
            display: flex;
            align-items: center;
            gap: 4px;
            margin-left: 40px;
        }

        .nav-link {
            display: inline-flex;
            align-items: center;
            height: 72px;
            padding: 0 16px;
            font-size: 15px;
            font-weight: 600;
            color: var(--text-2);
            border-bottom: 2px solid transparent;
            position: relative;
            transition: color .2s ease;
        }

        .nav-link:hover {
            color: var(--text-1);
        }

        .nav-link.active {
            color: var(--text-1);
        }

        .nav-link.active::after {
            content: '';
            position: absolute;
            left: 16px;
            right: 16px;
            bottom: -1px;
            height: 2px;
            background: var(--primary);
            border-radius: 2px;
        }

        .nav-actions {
            display: flex;
            align-items: center;
            gap: 12px;
            margin-left: auto;
        }

        .search-btn {
            width: 36px;
            height: 36px;
            border-radius: 50%;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            color: var(--text-2);
            font-size: 15px;
            transition: all .2s ease;
            cursor: pointer;
        }

        .search-btn:hover {
            background: var(--primary-weak);
            color: var(--primary);
        }

        .btn-nav {
            height: 40px;
            padding: 0 20px;
            font-size: 14px;
        }

        .hamburger {
            width: 40px;
            height: 40px;
            border-radius: var(--radius-sm);
            display: inline-flex;
            align-items: center;
            justify-content: center;
            color: var(--text-1);
            font-size: 18px;
            cursor: pointer;
            background: var(--surface);
        }

        .hamburger:hover {
            background: var(--surface-2);
        }

        /* Mega Menu */
        .mega-nav-item {
            position: relative;
        }

        .mega-menu {
            position: absolute;
            top: 100%;
            left: 50%;
            transform: translateX(-50%);
            width: 720px;
            max-width: 100vw;
            background: var(--surface-2);
            border-top: 2px solid var(--primary);
            border-radius: 0 0 14px 14px;
            box-shadow: 0 24px 48px rgba(0, 0, 0, 0.5);
            display: none;
            z-index: 1050;
            padding: 28px;
        }

        .mega-nav-item:hover .mega-menu,
        .mega-nav-item:focus-within .mega-menu {
            display: block;
        }

        .mega-grid {
            display: grid;
            grid-template-columns: 1.2fr 1fr 0.9fr;
            gap: 24px;
        }

        .mega-title {
            font-size: 13px;
            font-weight: 700;
            color: var(--text-3);
            letter-spacing: 0.06em;
            margin-bottom: 14px;
            padding-bottom: 8px;
            border-bottom: 1px solid var(--border);
        }

        .mega-cats {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 8px;
        }

        .mega-cat-card {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 10px 12px;
            border-radius: var(--radius-md);
            border: 1px solid transparent;
            transition: all .2s ease;
        }

        .mega-cat-card:hover {
            background: var(--primary-weak);
            border-color: rgba(124, 92, 255, 0.2);
        }

        .mega-cat-icon {
            width: 34px;
            height: 34px;
            border-radius: 8px;
            background: var(--primary-weak);
            color: var(--primary);
            display: inline-flex;
            align-items: center;
            justify-content: center;
            font-size: 13px;
            flex-shrink: 0;
        }

        .mega-cat-name {
            font-size: 14px;
            font-weight: 600;
            color: var(--text-1);
            display: block;
            line-height: 1.3;
        }

        .mega-cat-desc {
            font-size: 12px;
            color: var(--text-3);
            display: block;
            line-height: 1.3;
        }

        .mega-latest {
            display: flex;
            flex-direction: column;
            gap: 4px;
        }

        .mega-latest-item {
            padding: 8px 10px;
            border-radius: 8px;
            transition: background .2s ease;
        }

        .mega-latest-item:hover {
            background: var(--primary-weak);
        }

        .mega-latest-title {
            display: block;
            font-size: 14px;
            font-weight: 500;
            color: var(--text-1);
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .mega-latest-title:hover {
            color: var(--primary);
        }

        .mega-latest-date {
            font-size: 12px;
            color: var(--text-3);
        }

        .mega-cta {
            background: var(--primary-weak);
            border: 1px solid rgba(124, 92, 255, 0.18);
            border-radius: 12px;
            padding: 20px 18px;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: flex-start;
            gap: 12px;
        }

        .mega-cta p {
            font-size: 14px;
            line-height: 1.6;
            color: var(--text-2);
            margin: 0;
        }

        .mega-cta .btn {
            height: 40px;
            font-size: 14px;
            padding: 0 18px;
            width: 100%;
        }

        /* ===== Category Hero ===== */
        .category-hero {
            position: relative;
            padding: 64px 0 72px;
            background: linear-gradient(120deg, rgba(14, 13, 18, 0.95) 0%, rgba(14, 13, 18, 0.82) 55%, rgba(40, 30, 60, 0.72) 100%), url('/assets/images/backpic/back-1.webp') center center / cover no-repeat;
            border-bottom: 1px solid var(--border);
        }

        .category-hero::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            height: 80px;
            background: linear-gradient(180deg, transparent, var(--bg));
            pointer-events: none;
        }

        .category-hero h1 {
            font-size: 32px;
            font-weight: 800;
            color: var(--text-1);
            letter-spacing: -0.02em;
            margin-bottom: 12px;
            line-height: 1.4;
            position: relative;
            z-index: 1;
        }

        .category-hero h1::before {
            content: '';
            display: inline-block;
            width: 6px;
            height: 28px;
            background: var(--primary);
            border-radius: 3px;
            margin-right: 12px;
            vertical-align: -3px;
        }

        .category-hero p {
            font-size: 15px;
            color: var(--text-2);
            max-width: 640px;
            line-height: 1.75;
            position: relative;
            z-index: 1;
            margin: 0;
        }

        /* ===== Category Main ===== */
        .category-main {
            padding: 48px 0 72px;
            background: var(--bg);
        }

        .game-list-col .section-label {
            font-size: 12px;
            font-weight: 700;
            letter-spacing: 0.06em;
            color: var(--primary);
            text-transform: uppercase;
            margin-bottom: 6px;
        }

        .section-title-sm {
            font-size: 24px;
            font-weight: 700;
            color: var(--text-1);
            margin-bottom: 4px;
        }

        .section-desc-sm {
            font-size: 14px;
            color: var(--text-2);
            margin-bottom: 24px;
        }

        .game-list {
            display: flex;
            flex-direction: column;
            gap: 16px;
        }

        .game-card {
            display: flex;
            align-items: center;
            gap: 20px;
            background: var(--surface);
            border: 1px solid var(--border);
            border-radius: 14px;
            padding: 20px 24px;
            transition: all .25s ease;
        }

        .game-card:hover {
            border-color: var(--primary);
            box-shadow: var(--shadow-hover);
            transform: translateY(-4px);
            background: var(--surface-2);
        }

        .game-card-icon {
            width: 56px;
            height: 56px;
            border-radius: 12px;
            background: var(--primary-weak);
            color: var(--primary);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 22px;
            flex-shrink: 0;
            transition: background .25s ease, transform .25s ease;
        }

        .game-card:hover .game-card-icon {
            background: rgba(124, 92, 255, 0.22);
            transform: scale(1.05);
        }

        .game-card-body {
            flex: 1;
            min-width: 0;
        }

        .game-card-body h3 {
            font-size: 18px;
            font-weight: 700;
            color: var(--text-1);
            margin-bottom: 4px;
            line-height: 1.4;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .game-card-body p {
            font-size: 13px;
            color: var(--text-2);
            line-height: 1.65;
            margin: 0;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }

        .game-card-link {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            font-size: 13px;
            color: var(--primary);
            font-weight: 600;
            margin-top: 8px;
            transition: gap .2s ease;
            flex-shrink: 0;
        }

        .game-card-link:hover {
            gap: 10px;
            color: var(--primary-hover);
        }

        .game-card-badge {
            font-size: 12px;
            font-weight: 600;
            letter-spacing: 0.04em;
            padding: 4px 10px;
            border-radius: var(--radius-sm);
            background: var(--accent-weak);
            color: var(--accent);
            flex-shrink: 0;
            margin-left: 8px;
        }

        /* ===== Sidebar ===== */
        .category-sidebar {
            display: flex;
            flex-direction: column;
            gap: 20px;
        }

        .sidebar-box {
            background: var(--surface);
            border: 1px solid var(--border);
            border-radius: 14px;
            padding: 24px;
        }

        .sidebar-box h3 {
            font-size: 16px;
            font-weight: 700;
            color: var(--text-1);
            margin-bottom: 16px;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .sidebar-box h3::before {
            content: '';
            width: 4px;
            height: 16px;
            background: var(--primary);
            border-radius: 2px;
        }

        .sidebar-feature img {
            border-radius: 10px;
            margin-bottom: 14px;
            width: 100%;
            object-fit: cover;
        }

        .sidebar-feature h4 {
            font-size: 16px;
            font-weight: 700;
            color: var(--text-1);
            margin-bottom: 6px;
        }

        .sidebar-feature p {
            font-size: 13px;
            color: var(--text-2);
            margin: 0;
            line-height: 1.6;
        }

        .sidebar-feature .feature-tag {
            display: inline-block;
            font-size: 12px;
            font-weight: 600;
            color: var(--accent);
            background: var(--accent-weak);
            padding: 2px 10px;
            border-radius: 4px;
            letter-spacing: 0.05em;
            margin-bottom: 10px;
        }

        /* Tag Cloud */
        .tag-cloud {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
        }

        .tag-pill {
            display: inline-flex;
            align-items: center;
            padding: 5px 14px;
            font-size: 13px;
            font-weight: 500;
            color: var(--text-2);
            background: var(--bg);
            border: 1px solid var(--border);
            border-radius: 20px;
            transition: all .2s ease;
            cursor: pointer;
        }

        .tag-pill:hover {
            background: var(--primary-weak);
            border-color: var(--primary);
            color: var(--primary);
        }

        /* FAQ Accordion */
        .faq-accordion .accordion-item {
            background: transparent;
            border: none;
            border-bottom: 1px solid var(--border);
            border-radius: 0;
        }

        .faq-accordion .accordion-item:last-child {
            border-bottom: none;
        }

        .faq-accordion .accordion-header {
            border: none;
        }

        .faq-accordion .accordion-button {
            background: transparent;
            color: var(--text-1);
            font-size: 14px;
            font-weight: 600;
            padding: 14px 0;
            box-shadow: none;
            border: none;
            line-height: 1.6;
        }

        .faq-accordion .accordion-button::after {
            content: '\f078';
            font-family: 'Font Awesome 6 Free';
            font-weight: 900;
            background: none;
            width: auto;
            height: auto;
            font-size: 12px;
            color: var(--text-3);
            transition: transform .25s ease;
        }

        .faq-accordion .accordion-button:not(.collapsed) {
            color: var(--primary);
            background: var(--primary-weak);
        }

        .faq-accordion .accordion-button:not(.collapsed)::after {
            transform: rotate(180deg);
            color: var(--primary);
        }

        .faq-accordion .accordion-button:focus {
            box-shadow: none;
        }

        .faq-accordion .accordion-body {
            font-size: 13px;
            line-height: 1.75;
            color: var(--text-2);
            padding: 0 0 16px;
        }

        /* Back Button */
        .category-back {
            text-align: center;
            margin-top: 48px;
            padding-top: 32px;
            border-top: 1px solid var(--border);
        }

        .category-back .btn {
            min-width: 180px;
            height: 48px;
        }

        /* ===== Footer ===== */
        .site-footer {
            background: #0A090D;
            padding: 48px 0 32px;
            border-top: 1px solid var(--border);
        }

        .site-footer .footer-grid {
            display: grid;
            grid-template-columns: 1.4fr 1fr 1fr 1fr;
            gap: 32px;
            margin-bottom: 36px;
        }

        .site-footer .footer-brand .logo {
            margin-bottom: 12px;
        }

        .site-footer .footer-brand p {
            font-size: 13px;
            color: var(--text-3);
            line-height: 1.7;
            margin: 0;
            max-width: 260px;
        }

        .site-footer .footer-col h4 {
            font-size: 14px;
            font-weight: 700;
            color: var(--text-1);
            margin-bottom: 14px;
            letter-spacing: 0.02em;
        }

        .site-footer .footer-col a {
            display: block;
            font-size: 13px;
            color: var(--text-3);
            padding: 4px 0;
            transition: color .2s ease, padding-left .2s ease;
        }

        .site-footer .footer-col a:hover {
            color: var(--primary);
            padding-left: 4px;
        }

        .site-footer .footer-col p {
            font-size: 13px;
            color: var(--text-3);
            line-height: 1.7;
            margin: 0;
        }

        .site-footer .footer-bottom {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 16px;
            padding-top: 24px;
            border-top: 1px solid var(--border);
            font-size: 12px;
            color: var(--text-3);
        }

        .site-footer .footer-bottom span {
            font-size: 12px;
        }

        /* ===== Responsive ===== */
        @media (max-width: 1199.98px) {
            .mega-menu {
                width: 640px;
            }
        }

        @media (max-width: 991.98px) {
            .main-header .navbar .container {
                flex-wrap: wrap;
                padding-top: 12px;
                padding-bottom: 12px;
            }

            .main-nav {
                flex-direction: column;
                align-items: flex-start;
                width: 100%;
                margin-left: 0;
                gap: 0;
                padding: 8px 0;
            }

            .nav-link {
                height: auto;
                padding: 10px 0;
                width: 100%;
                border-bottom: 1px solid transparent;
            }

            .nav-link.active::after {
                display: none;
            }

            .nav-link.active {
                color: var(--primary);
            }

            .nav-actions {
                margin-left: 0;
                width: 100%;
                padding: 12px 0 4px;
                border-top: 1px solid var(--border);
            }

            .btn-nav {
                flex: 1;
                justify-content: center;
            }

            .mega-nav-item {
                width: 100%;
            }

            .mega-nav-item .mega-menu {
                position: static;
                transform: none;
                width: 100%;
                box-shadow: none;
                border-radius: 0;
                border-top: none;
                border-left: 2px solid var(--primary);
                padding: 16px 20px;
                background: var(--bg);
                display: none;
            }

            .mega-nav-item.open .mega-menu {
                display: block;
            }

            .mega-grid {
                grid-template-columns: 1fr;
                gap: 20px;
            }

            .mega-cats {
                grid-template-columns: 1fr 1fr;
            }

            .mega-cta .btn {
                width: auto;
                min-width: 180px;
            }

            .top-strip-right {
                display: none;
            }

            .category-hero {
                padding: 48px 0 56px;
            }

            .site-footer .footer-grid {
                grid-template-columns: 1fr 1fr;
            }
        }

        @media (max-width: 767.98px) {
            .category-hero h1 {
                font-size: 26px;
            }

            .category-hero p {
                font-size: 14px;
            }

            .game-card {
                padding: 16px 18px;
                gap: 16px;
            }

            .game-card-icon {
                width: 48px;
                height: 48px;
                font-size: 18px;
            }

            .site-footer .footer-grid {
                grid-template-columns: 1fr;
                gap: 24px;
            }

            .site-footer .footer-bottom {
                flex-direction: column;
                align-items: flex-start;
            }
        }

        @media (max-width: 575.98px) {
            .container {
                padding: 0 16px;
            }

            .game-card {
                flex-direction: column;
                align-items: flex-start;
                gap: 12px;
            }

            .game-card-icon {
                width: 42px;
                height: 42px;
                font-size: 16px;
            }

            .game-card-badge {
                margin-left: 0;
                margin-top: 4px;
            }

            .sidebar-box {
                padding: 18px;
            }

            .mega-cats {
                grid-template-columns: 1fr;
            }

            .category-hero h1 {
                font-size: 22px;
            }

            .category-back .btn {
                width: 100%;
            }
        }

/* roulang page: article */
:root {
  --bg: #0E0D12;
  --surface: #16141C;
  --surface-2: #1D1A26;
  --border: #292432;
  --border-strong: #3A3354;
  --primary: #7C5CFF;
  --primary-hover: #9276FF;
  --primary-weak: rgba(124, 92, 255, 0.12);
  --accent: #F2B84B;
  --accent-hover: #FFCF6C;
  --accent-weak: rgba(242, 184, 75, 0.14);
  --success: #39D98A;
  --danger: #FF6B6B;
  --text-1: #EDEAF2;
  --text-2: #A49CB2;
  --text-3: #6E667C;
  --radius: 12px;
  --radius-sm: 6px;
  --shadow-card: 0 2px 12px rgba(0, 0, 0, 0.25);
  --shadow-hover: 0 12px 32px rgba(0, 0, 0, 0.40), 0 0 0 1px rgba(124, 92, 255, 0.18);
  --shadow-btn: 0 4px 18px rgba(124, 92, 255, 0.32);
  --font: 'PingFang SC', 'Microsoft YaHei', 'Noto Sans SC', -apple-system, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  background-color: var(--bg);
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 32px 32px;
  color: var(--text-1);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.25s ease;
}

.container {
  max-width: 1200px;
  position: relative;
}

h1, h2, h3, h4, p {
  margin-top: 0;
}

/* ===== 顶部细条 ===== */
.topbar {
  background: #14121A;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-3);
  height: 32px;
}

.topbar .container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.topbar i {
  color: var(--accent);
  margin-right: 6px;
}

/* ===== 主导航 ===== */
.main-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(14, 13, 18, 0.96);
  border-bottom: 1px solid var(--border);
}

.navbar {
  min-height: 72px;
  padding: 0;
  background: transparent;
}

.navbar-brand {
  padding: 0;
  margin-right: 0;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.logo-icon {
  display: flex;
  align-items: center;
}

.logo-text {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-1);
  letter-spacing: -0.02em;
}

.logo-text span {
  color: var(--primary);
}

.navbar-collapse {
  flex-grow: 0;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-right: 24px;
}

.nav-link {
  padding: 8px 16px !important;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-2) !important;
  position: relative;
  transition: color 0.25s ease;
  border-radius: 6px;
}

.nav-link:hover,
.nav-link.active {
  color: var(--text-1) !important;
}

.nav-link.active::after {
  content: '';
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 0;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
}

.navbar-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-left: 20px;
}

.search-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
}

.search-btn:hover {
  background: var(--primary-weak);
  color: var(--primary);
  border-color: var(--primary);
}

.hamburger {
  background: transparent;
  border: 1px solid var(--border-strong);
  color: var(--text-1);
  border-radius: 8px;
  width: 40px;
  height: 40px;
  font-size: 16px;
}

/* ===== Mega Menu ===== */
.mega-nav-item {
  position: relative;
}

.mega-menu {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  width: 1200px;
  max-width: calc(100vw - 48px);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-top: 2px solid var(--primary);
  border-radius: 0 0 14px 14px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease;
  transform: translateX(-50%) translateY(8px);
}

.mega-nav-item:hover .mega-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.mega-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 0.8fr;
  gap: 24px;
}

.mega-title {
  font-size: 13px;
  color: var(--text-3);
  letter-spacing: 0.06em;
  margin-bottom: 14px;
  font-weight: 700;
}

.mega-cat-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 10px;
  transition: background 0.2s ease;
}

.mega-cat-card:hover {
  background: var(--primary-weak);
}

.mega-cat-icon {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: var(--primary-weak);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.mega-cat-name {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: var(--text-1);
}

.mega-cat-desc {
  display: block;
  font-size: 12px;
  color: var(--text-3);
}

.mega-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.mega-list li {
  margin-bottom: 10px;
}

.mega-list a {
  display: block;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 14px;
  color: var(--text-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: background 0.2s ease, color 0.2s ease;
}

.mega-list a:hover {
  background: var(--primary-weak);
  color: var(--primary);
}

.mega-list small {
  display: block;
  font-size: 12px;
  color: var(--text-3);
  margin-top: 2px;
}

.mega-cta {
  background: var(--primary-weak);
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.mega-cta p {
  font-size: 13px;
  color: var(--text-2);
  margin-bottom: 16px;
}

/* ===== 按钮 ===== */
.btn-game-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 24px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: var(--shadow-btn);
  transition: all 0.25s ease;
  white-space: nowrap;
}

.btn-game-primary:hover {
  background: var(--primary-hover);
  color: #fff;
  transform: translateY(-2px);
}

.btn-game-primary:active {
  background: #5C3FE8;
  transform: none;
}

.btn-game-primary:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.btn-game-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 24px;
  background: transparent;
  color: var(--text-1);
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s ease;
  white-space: nowrap;
}

.btn-game-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-weak);
}

/* ===== 面包屑 ===== */
.breadcrumb-bar {
  padding: 20px 0 0;
  font-size: 13px;
  color: var(--text-3);
}

.breadcrumb-bar a {
  color: var(--text-2);
}

.breadcrumb-bar a:hover {
  color: var(--primary);
}

.breadcrumb-sep {
  margin: 0 8px;
  color: var(--text-3);
}

.breadcrumb-current {
  color: var(--text-1);
}

/* ===== 文章头部 ===== */
.article-head {
  padding: 40px 0 24px;
  border-bottom: 1px solid var(--border);
}

.article-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 18px;
}

.badge {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  padding: 4px 12px;
  border-radius: 4px;
}

.badge-category {
  background: var(--primary-weak);
  color: var(--primary);
}

.badge-official {
  background: var(--accent-weak);
  color: var(--accent);
}

.meta-date {
  font-size: 13px;
  color: var(--text-3);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.article-head h1 {
  font-size: 32px;
  line-height: 44px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-1);
  margin-bottom: 0;
}

/* ===== 正文区 ===== */
.article-layout {
  padding: 40px 0 56px;
}

.article-body {
  max-width: 760px;
  margin: 0 auto;
}

.article-body p {
  font-size: 15px;
  line-height: 1.75;
  color: var(--text-1);
  margin-bottom: 20px;
}

.article-body h2 {
  font-size: 24px;
  line-height: 32px;
  font-weight: 700;
  margin: 36px 0 16px;
  color: var(--text-1);
}

.article-body h3 {
  font-size: 20px;
  line-height: 28px;
  font-weight: 700;
  margin: 28px 0 14px;
  color: var(--text-1);
}

.article-body blockquote {
  border-left: 4px solid var(--primary);
  background: var(--primary-weak);
  padding: 16px 20px;
  border-radius: 8px;
  color: var(--text-2);
  margin-bottom: 20px;
}

.article-body img {
  border-radius: 12px;
  margin: 24px 0;
}

.article-body figure figcaption {
  font-size: 13px;
  color: var(--text-3);
  text-align: center;
}

.article-body ul,
.article-body ol {
  padding-left: 24px;
  margin-bottom: 20px;
}

.article-body li {
  font-size: 15px;
  line-height: 26px;
  color: var(--text-1);
}

.article-body a {
  color: var(--primary);
  border-bottom: 1px solid var(--primary-weak);
}

.article-body a:hover {
  color: var(--primary-hover);
}

/* ===== 文末导航 ===== */
.article-pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 24px 0;
  margin: 0 auto;
  max-width: 760px;
}

.pager-btn {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 18px;
  min-width: 180px;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.pager-btn:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

.pager-label {
  display: block;
  font-size: 12px;
  color: var(--text-3);
  margin-bottom: 4px;
}

.pager-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-1);
}

.pager-next {
  text-align: right;
}

/* ===== 相关推荐 ===== */
.related-section {
  padding: 56px 0 72px;
}

.section-title {
  font-size: 28px;
  line-height: 36px;
  font-weight: 800;
  text-align: center;
  margin-bottom: 36px;
  color: var(--text-1);
}

.post-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  height: 100%;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.post-card:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px);
}

.post-card-cover {
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.post-card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post-card-body {
  padding: 20px 20px 24px;
}

.post-card-body h3 {
  font-size: 17px;
  line-height: 24px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-1);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.post-card-body h3 a {
  color: var(--text-1);
}

.post-card-body h3 a:hover {
  color: var(--primary);
}

.post-card-body p {
  font-size: 13px;
  color: var(--text-2);
  line-height: 22px;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.read-more {
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
}

.read-more i {
  margin-left: 6px;
  transition: transform 0.2s ease;
}

.read-more:hover i {
  transform: translateX(4px);
}

/* ===== 未找到 ===== */
.not-found-wrap {
  padding: 80px 0;
}

.not-found-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--primary-weak);
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  margin-bottom: 20px;
}

.not-found-wrap h1 {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 10px;
}

.not-found-wrap p {
  color: var(--text-2);
  margin-bottom: 24px;
}

/* ===== 页脚 ===== */
.site-footer {
  background: #0A090D;
  border-top: 1px solid var(--border);
  padding: 48px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 32px;
  padding-bottom: 32px;
}

.footer-brand .logo-text {
  font-size: 19px;
}

.footer-brand p {
  font-size: 14px;
  color: var(--text-3);
  margin-top: 14px;
  max-width: 260px;
}

.footer-col h4 {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-1);
  margin-bottom: 16px;
}

.footer-col a {
  display: block;
  font-size: 14px;
  color: var(--text-2);
  margin-bottom: 10px;
}

.footer-col a:hover {
  color: var(--primary);
}

.footer-col p {
  font-size: 13px;
  color: var(--text-3);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  border-top: 1px solid var(--border);
  padding: 20px 0;
  font-size: 13px;
  color: var(--text-3);
}

/* ===== 响应式 ===== */
@media (min-width: 992px) {
  .navbar-collapse {
    display: flex !important;
    align-items: center;
    justify-content: flex-end;
  }

  .main-nav {
    margin-right: 24px;
  }
}

@media (max-width: 1199.98px) {
  .mega-menu {
    max-width: calc(100vw - 48px);
  }

  .mega-grid {
    grid-template-columns: 1.1fr 1fr 0.9fr;
    gap: 18px;
  }

  .pager-btn {
    min-width: 150px;
  }
}

@media (max-width: 991.98px) {
  .navbar {
    min-height: 64px;
  }

  .main-nav {
    display: block;
    padding: 16px 0;
    margin-right: 0;
  }

  .nav-link {
    display: block;
    padding: 12px 0 !important;
  }

  .nav-link.active::after {
    left: 0;
    right: auto;
    width: 32px;
  }

  .mega-nav-item {
    position: relative;
  }

  .mega-menu {
    display: block;
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border-radius: 10px;
    margin: 8px 0;
    padding: 16px;
    max-width: 100%;
  }

  .mega-nav-item:hover .mega-menu {
    transform: none;
  }

  .mega-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .navbar-actions {
    width: 100%;
    padding: 12px 0;
    margin-left: 0;
  }

  .search-btn {
    width: 44px;
    height: 44px;
    border-radius: 8px;
  }

  .btn-game-primary {
    flex: 1;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 767.98px) {
  .article-head h1 {
    font-size: 26px;
    line-height: 36px;
  }

  .article-pager {
    flex-direction: column;
  }

  .pager-btn {
    width: 100%;
    min-width: 0;
  }

  .section-title {
    font-size: 24px;
    line-height: 32px;
  }
}

@media (max-width: 575.98px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .article-head {
    padding: 28px 0 20px;
  }

  .article-layout {
    padding: 28px 0 40px;
  }

  .related-section {
    padding: 40px 0 56px;
  }
}

/* roulang page: category2 */
:root {
  --bg: #0E0D12;
  --surface: #16141C;
  --surface-2: #1D1A26;
  --border: #292432;
  --border-strong: #3A3354;
  --primary: #7C5CFF;
  --primary-hover: #9276FF;
  --primary-weak: rgba(124, 92, 255, 0.12);
  --accent: #F2B84B;
  --accent-hover: #FFCF6C;
  --accent-weak: rgba(242, 184, 75, 0.14);
  --success: #39D98A;
  --danger: #FF6B6B;
  --text-1: #EDEAF2;
  --text-2: #A49CB2;
  --text-3: #6E667C;
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 14px;
  --shadow-card: 0 2px 12px rgba(0, 0, 0, 0.25);
  --shadow-hover: 0 12px 32px rgba(0, 0, 0, 0.40), 0 0 0 1px rgba(124, 92, 255, 0.18);
  --shadow-primary: 0 4px 18px rgba(124, 92, 255, 0.32);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'PingFang SC', 'Microsoft YaHei', 'Noto Sans SC', -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text-1);
  line-height: 1.75;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; transition: color 0.2s ease; }
a:hover { color: var(--primary); }
button { border: none; background: none; cursor: pointer; font-family: inherit; }
input, textarea { outline: none; }
.container { max-width: 1200px; }

.main-header {
  position: relative;
  z-index: 1000;
}
.topbar {
  height: 32px;
  background: #14121A;
  border-bottom: 1px solid var(--border);
  font-size: 12px;
  color: var(--text-3);
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}
.topbar i { margin-right: 6px; font-size: 11px; }
.main-navbar {
  min-height: 72px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: 0;
  position: sticky;
  top: 0;
  width: 100%;
}
.main-navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo-icon { display: flex; flex-shrink: 0; }
.logo-text {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-1);
  letter-spacing: -0.02em;
  line-height: 1;
}
.logo-text span { color: var(--primary); }
.hamburger {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  color: var(--text-1);
  font-size: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  transition: border-color 0.2s ease;
}
.hamburger:hover { border-color: var(--primary); }
.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0 auto;
}
.nav-item {
  position: static;
}
.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0 16px;
  height: 44px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-2) !important;
  border-radius: 8px;
  position: relative;
  transition: color 0.25s ease;
  white-space: nowrap;
}
.nav-link::after {
  content: '';
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: -2px;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.25s ease;
}
.nav-link:hover { color: var(--text-1) !important; }
.nav-link:hover::after,
.nav-link.active::after { transform: scaleX(1); }
.nav-link.active { color: var(--text-1) !important; }
.nav-tools {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.search-toggle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-2);
  font-size: 14px;
  border: 1px solid var(--border);
  background: var(--surface);
  transition: all 0.2s ease;
}
.search-toggle:hover {
  color: var(--primary);
  background: var(--primary-weak);
  border-color: var(--primary);
}
.mega-menu {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 100%;
  width: 100%;
  max-width: 1200px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-top: 2px solid var(--primary);
  border-radius: 0 0 14px 14px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5);
  padding: 28px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
  z-index: 1000;
}
.mega-nav-item:hover .mega-menu {
  opacity: 1;
  visibility: visible;
}
.mega-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 0.9fr;
  gap: 32px;
}
.mega-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-2);
  letter-spacing: 0.05em;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
  text-transform: uppercase;
}
.mega-cats {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.mega-cat-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  transition: background 0.2s ease;
}
.mega-cat-card:hover {
  background: var(--primary-weak);
  color: var(--text-1);
}
.mega-cat-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  color: var(--primary);
  font-size: 15px;
  flex-shrink: 0;
}
.mega-cat-name {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-1);
  line-height: 1.3;
}
.mega-cat-desc {
  display: block;
  font-size: 12px;
  color: var(--text-3);
  line-height: 1.3;
}
.mega-news {
  display: flex;
  flex-direction: column;
}
.mega-news-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 9px 0;
  border-bottom: 1px solid var(--border);
  transition: color 0.2s ease;
}
.mega-news-item:last-child { border-bottom: none; }
.mega-news-item:hover .mega-news-title { color: var(--primary); }
.mega-news-title {
  font-size: 13px;
  color: var(--text-1);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.2s ease;
}
.mega-news-date {
  font-size: 12px;
  color: var(--text-3);
  flex-shrink: 0;
  margin-left: 12px;
}
.mega-cta-inner {
  background: var(--primary-weak);
  border: 1px solid rgba(124, 92, 255, 0.25);
  border-radius: 12px;
  padding: 24px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}
.mega-cta-inner h4 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-1);
  margin-bottom: 6px;
}
.mega-cta-inner p {
  font-size: 13px;
  color: var(--text-2);
  margin-bottom: 16px;
}
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 46px;
  padding: 0 26px;
  background: var(--primary);
  color: #fff !important;
  font-size: 15px;
  font-weight: 700;
  border-radius: 8px;
  border: none;
  transition: all 0.22s ease;
  box-shadow: var(--shadow-primary);
  white-space: nowrap;
}
.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(124, 92, 255, 0.4);
  color: #fff !important;
}
.btn-primary:active {
  background: #5C3FE8;
  transform: translateY(0);
}
.btn-primary:focus-visible,
.btn-outline:focus-visible,
.search-toggle:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}
.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 46px;
  padding: 0 26px;
  background: transparent;
  border: 1px solid var(--border-strong);
  color: var(--text-1);
  font-size: 15px;
  font-weight: 600;
  border-radius: 8px;
  transition: all 0.22s ease;
  white-space: nowrap;
}
.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-weak);
  transform: translateY(-2px);
}
.btn-sm { height: 40px; padding: 0 20px; font-size: 14px; }

.category-hero {
  padding: 56px 0 36px;
  background:
    radial-gradient(ellipse at 20% 20%, rgba(124, 92, 255, 0.14), transparent 50%),
    linear-gradient(rgba(14, 13, 18, 0.88), rgba(14, 13, 18, 0.95)),
    url('/assets/images/backpic/back-1.webp') center / cover no-repeat;
  border-bottom: 1px solid var(--border);
  position: relative;
}
.breadcrumb-nav {
  font-size: 13px;
  color: var(--text-3);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.breadcrumb-nav a { color: var(--text-3); }
.breadcrumb-nav a:hover { color: var(--primary); }
.breadcrumb-nav i { font-size: 10px; color: var(--text-3); }
.category-hero h1 {
  font-size: 32px;
  font-weight: 700;
  color: var(--text-1);
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  line-height: 1.3;
}
.category-hero .category-desc {
  font-size: 15px;
  color: var(--text-2);
  max-width: 720px;
  line-height: 1.7;
}
.category-main {
  padding: 40px 0 48px;
}
.category-main .row { margin: 0 -12px; }
.category-main .col-lg-8,
.category-main .col-lg-4 { padding: 0 12px; }
.section-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-1);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.section-title i { color: var(--primary); margin-right: 8px; }
.game-list { display: flex; flex-direction: column; gap: 16px; }
.game-card {
  display: flex;
  gap: 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 22px;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
  position: relative;
}
.game-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px);
}
.game-card-icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-weak);
  color: var(--primary);
  font-size: 22px;
  flex-shrink: 0;
  border: 1px solid rgba(124, 92, 255, 0.2);
}
.game-card-body { flex: 1; min-width: 0; }
.game-card-body h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-1);
  margin-bottom: 6px;
  line-height: 1.4;
}
.game-card-body p {
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.65;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.game-card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
}
.badge {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.03em;
  padding: 3px 10px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
}
.badge-cat {
  background: var(--primary-weak);
  color: var(--primary);
}
.badge-tag {
  background: var(--surface-2);
  color: var(--text-2);
  border: 1px solid var(--border);
}
.article-link,
.game-card-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  transition: color 0.2s ease;
}
.article-link i,
.game-card-link i {
  font-size: 11px;
  margin-left: 4px;
  transition: transform 0.2s ease;
}
.article-link:hover,
.game-card-link:hover {
  color: var(--primary-hover);
}
.article-link:hover i,
.game-card-link:hover i {
  transform: translateX(3px);
}
.sidebar-widget {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 22px;
  margin-bottom: 24px;
}
.sidebar-widget h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-1);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 8px;
}
.sidebar-widget h3 i { color: var(--primary); font-size: 14px; }
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.tag-item {
  display: inline-block;
  padding: 4px 14px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--text-2);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 6px;
  transition: all 0.2s ease;
}
.tag-item:hover {
  color: var(--primary);
  background: var(--primary-weak);
  border-color: var(--primary);
}
.feature-card {
  border-radius: 12px;
  overflow: hidden;
  background: var(--surface-2);
  border: 1px solid var(--border);
}
.feature-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}
.feature-body {
  padding: 18px;
}
.feature-body h4 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-1);
  margin-bottom: 6px;
}
.feature-body p {
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.6;
  margin-bottom: 12px;
}
.faq-list { display: flex; flex-direction: column; }
.faq-item {
  border-bottom: 1px solid var(--border);
  transition: background 0.25s ease;
}
.faq-item:first-child { border-top: 1px solid var(--border); }
.faq-item.open { background: var(--primary-weak); }
.faq-q {
  width: 100%;
  padding: 14px 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  text-align: left;
  transition: color 0.2s ease;
}
.faq-q .fa-chevron-down {
  font-size: 12px;
  color: var(--text-3);
  transition: transform 0.2s ease;
  flex-shrink: 0;
}
.faq-item.open .faq-q { color: var(--primary); }
.faq-item.open .faq-q .fa-chevron-down { transform: rotate(180deg); }
.faq-a {
  padding: 0 12px 16px;
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.75;
  display: none;
}
.faq-item.open .faq-a { display: block; }

.cta-strip {
  padding: 60px 0;
  text-align: center;
  background:
    linear-gradient(rgba(14, 13, 18, 0.86), rgba(14, 13, 18, 0.9)),
    url('/assets/images/backpic/back-2.webp') center / cover no-repeat;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.cta-strip h3 {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-1);
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}
.cta-strip p {
  font-size: 15px;
  color: var(--text-2);
  margin-bottom: 24px;
}
.cta-strip .btn-primary {
  width: 220px;
  height: 52px;
  font-size: 16px;
}
.back-home {
  padding: 32px 0 48px;
  text-align: center;
  background: var(--bg);
}

.site-footer {
  background: #0A090D;
  padding: 48px 0 0;
  border-top: 1px solid var(--border);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 36px;
  padding-bottom: 32px;
}
.footer-brand .logo { margin-bottom: 14px; }
.footer-brand .logo-text {
  font-size: 19px;
  font-weight: 800;
  color: var(--text-1);
  letter-spacing: -0.01em;
}
.footer-brand p {
  font-size: 13px;
  color: var(--text-3);
  line-height: 1.7;
  margin-top: 10px;
  max-width: 280px;
}
.footer-col h4 {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-1);
  margin-bottom: 16px;
  letter-spacing: 0.02em;
}
.footer-col a {
  display: block;
  font-size: 13px;
  color: var(--text-3);
  padding: 5px 0;
  transition: color 0.2s ease;
}
.footer-col a:hover { color: var(--primary); }
.footer-col p {
  font-size: 13px;
  color: var(--text-3);
  line-height: 1.65;
}
.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 18px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 12px;
  color: var(--text-3);
}

@media (min-width: 992px) {
  .navbar-expand-lg .navbar-collapse {
    display: flex;
    justify-content: space-between;
    flex-grow: 1;
    margin-left: 32px;
  }
}
@media (max-width: 991.98px) {
  .main-navbar .container { flex-wrap: wrap; position: relative; }
  .navbar-collapse {
    position: absolute;
    top: calc(100% + 1px);
    left: 0;
    right: 0;
    background: var(--surface-2);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
    padding: 20px;
    z-index: 999;
    max-height: calc(100vh - 72px);
    overflow-y: auto;
  }
  .navbar-collapse.collapse:not(.show) { display: none; }
  .navbar-collapse.collapse.show { display: block; }
  .main-nav {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    margin-bottom: 16px;
  }
  .nav-link {
    padding: 12px 14px;
    height: auto;
    width: 100%;
    border-radius: 8px;
  }
  .nav-link::after { display: none; }
  .nav-link:hover,
  .nav-link.active {
    background: var(--primary-weak);
    color: var(--primary) !important;
  }
  .nav-tools {
    padding-top: 12px;
    border-top: 1px solid var(--border);
    justify-content: space-between;
  }
  .mega-menu {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    max-width: 100%;
    border-radius: 8px;
    margin-top: 8px;
    padding: 16px;
    box-shadow: none;
    border: 1px solid var(--border);
    border-top: 1px solid var(--border);
    display: none;
    background: var(--surface);
  }
  .mega-nav-item.open .mega-menu { display: block; }
  .mega-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .mega-cta-inner { padding: 18px; }
  .mega-news-item:last-child { border-bottom: 1px solid var(--border); }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }
}
@media (max-width: 767.98px) {
  .category-hero {
    padding: 36px 0 28px;
  }
  .category-hero h1 { font-size: 26px; }
  .category-main { padding: 28px 0 36px; }
  .game-card {
    flex-direction: row;
    padding: 16px;
  }
  .sidebar-widget { padding: 18px; }
  .cta-strip { padding: 40px 0; }
  .cta-strip h3 { font-size: 22px; }
  .cta-strip .btn-primary { width: 200px; height: 48px; font-size: 15px; }
}
@media (max-width: 575.98px) {
  .topbar { display: none; }
  .footer-grid { grid-template-columns: 1fr; gap: 20px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .game-card {
    flex-direction: row;
    gap: 14px;
  }
  .game-card-icon { width: 48px; height: 48px; font-size: 18px; }
  .game-card-body h3 { font-size: 15px; }
}
