/* Independent snapshot of HAP visual rules, 2026-10-06. */

        :root {
            --bg-primary: #0a0e17;
            --bg-secondary: #1a1f2e;
            --bg-tertiary: #0d1321;
            --bg-card: rgba(20, 30, 48, 0.9);
            --bg-card-hover: rgba(15, 25, 40, 0.95);
            --bg-header: rgba(15, 20, 30, 0.78);
            --bg-input: rgba(15, 20, 30, 0.8);
            --text-primary: #e0e6ed;
            --text-secondary: #a0aec0;
            --text-muted: #718096;
            --text-dim: #4a5568;
            --border-color: rgba(0, 149, 255, 0.2);
            --border-light: rgba(0, 149, 255, 0.15);
            --accent-primary: #3584F7;
            --accent-secondary: #0095ff;
            --accent-gradient: linear-gradient(135deg, #0095ff, #3584F7);
            --shadow-color: rgba(0, 149, 255, 0.3);
            --bg-animation-1: rgba(0, 149, 255, 0.1);
            --bg-animation-2: rgba(255, 0, 128, 0.08);
            --bg-animation-3: rgba(0, 255, 200, 0.05);
            --surface-radius: 20px;
            --surface-radius-sm: 14px;
            --surface-shadow: 0 20px 50px rgba(0, 0, 0, 0.22);
            --surface-shadow-soft: 0 12px 30px rgba(0, 0, 0, 0.16);
            --content-width: 1400px;
            --section-gap: clamp(24px, 4vw, 40px);
            --page-padding: clamp(16px, 2vw, 30px);
            --focus-ring: 0 0 0 3px rgba(53, 132, 247, 0.22);
            --brand-title-gradient: linear-gradient(90deg, #ffffff 0%, #93c5fd 18%, #2563eb 32%, #ffffff 50%, #93c5fd 68%, #2563eb 82%, #ffffff 100%);
            --brand-title-shadow: 0 0 24px rgba(37, 99, 235, 0.28);
        }
        [data-theme="light"] {
            --bg-primary: #f5f7fa;
            --bg-secondary: #e8ecf1;
            --bg-tertiary: #ffffff;
            --bg-card: rgba(255, 255, 255, 0.95);
            --bg-card-hover: rgba(248, 250, 252, 0.98);
            --bg-header: rgba(255, 255, 255, 0.82);
            --bg-input: rgba(255, 255, 255, 0.9);
            --text-primary: #1a202c;
            --text-secondary: #4a5568;
            --text-muted: #718096;
            --text-dim: #a0aec0;
            --border-color: rgba(53, 132, 247, 0.25);
            --border-light: rgba(53, 132, 247, 0.15);
            --accent-primary: #3584F7;
            --accent-secondary: #2563eb;
            --accent-gradient: linear-gradient(135deg, #3584F7, #1d4ed8);
            --shadow-color: rgba(53, 132, 247, 0.15);
            --bg-animation-1: rgba(53, 132, 247, 0.05);
            --bg-animation-2: rgba(255, 0, 128, 0.03);
            --bg-animation-3: rgba(53, 132, 247, 0.02);
            --brand-title-gradient: linear-gradient(90deg, #05070b 0%, #1d4ed8 18%, #60a5fa 32%, #05070b 50%, #1d4ed8 68%, #60a5fa 82%, #05070b 100%);
            --brand-title-shadow: 0 8px 22px rgba(29, 78, 216, 0.16);
        }
        * { margin: 0; padding: 0; box-sizing: border-box; }
        body {
            font-family: 'HarmonyOS Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
            background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 50%, var(--bg-tertiary) 100%);
            min-height: 100vh;
            color: var(--text-primary);
            overflow-x: hidden;
            transition: background 0.3s ease, color 0.3s ease;
            line-height: 1.6;
        }
        a {
            color: inherit;
        }
        img {
            max-width: 100%;
        }
        main {
            display: block;
        }
        .page-shell,
        .page-container,
        .content-container {
            width: min(var(--content-width), calc(100% - (var(--page-padding) * 2)));
            margin: 0 auto;
        }
        .section-card,
        .surface-card {
            background: var(--bg-card);
            border: 1px solid var(--border-color);
            border-radius: var(--surface-radius);
            box-shadow: var(--surface-shadow-soft);
        }
        .section-title {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 16px;
            margin-bottom: 18px;
        }
        .section-title h2,
        .section-title h3 {
            margin: 0;
        }
        .eyebrow {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            padding: 6px 12px;
            border-radius: 999px;
            border: 1px solid var(--border-light);
            background: rgba(53, 132, 247, 0.08);
            color: var(--accent-primary);
            font-size: 12px;
            font-weight: 600;
            letter-spacing: 0.02em;
        }
        .empty-state,
        .status-message {
            padding: 20px;
            border: 1px dashed var(--border-color);
            border-radius: var(--surface-radius-sm);
            background: rgba(53, 132, 247, 0.06);
            color: var(--text-secondary);
            text-align: center;
        }
        input:focus,
        textarea:focus,
        select:focus,
        button:focus-visible,
        a:focus-visible {
            outline: none;
            box-shadow: var(--focus-ring);
        }
        .rich-editor,
        .feature-editor,
        .rich-editor *,
        .feature-editor * {
            background-color: transparent !important;
            color: #ffffff !important;
        }
        .rich-editor a,
        .feature-editor a {
            color: var(--accent-primary) !important;
        }
        [data-theme="light"] .rich-editor,
        [data-theme="light"] .feature-editor,
        [data-theme="light"] .rich-editor *,
        [data-theme="light"] .feature-editor * {
            color: #000000 !important;
        }
        [data-theme="light"] .rich-editor a,
        [data-theme="light"] .feature-editor a {
            color: var(--accent-primary) !important;
        }
        [data-theme="dark"] select,
        [data-theme="dark"] select option {
            background-color: #1a1a2e !important;
            color: #ffffff !important;
        }
        [data-theme="dark"] select.form-control,
        [data-theme="dark"] .form-control select,
        [data-theme="dark"] select.editable-field,
        [data-theme="dark"] .editable-field {
            background-color: #1a1a2e !important;
            color: #ffffff !important;
        }
        [data-theme="dark"] select.form-control option,
        [data-theme="dark"] .form-control select option,
        [data-theme="dark"] select.editable-field option,
        [data-theme="dark"] .editable-field option {
            background-color: #1a1a2e !important;
            color: #ffffff !important;
        }
        .bg-animation {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            pointer-events: none;
            z-index: -1;
            overflow: hidden;
        }
        .bg-animation::before {
            content: '';
            position: absolute;
            width: 200%;
            height: 200%;
            background: radial-gradient(circle at 20% 80%, var(--bg-animation-1) 0%, transparent 50%),
                        radial-gradient(circle at 80% 20%, var(--bg-animation-2) 0%, transparent 50%),
                        radial-gradient(circle at 40% 40%, var(--bg-animation-3) 0%, transparent 40%);
            animation: bgMove 20s ease-in-out infinite;
        }
        @keyframes bgMove {
            0%, 100% { transform: translate(0, 0); }
            50% { transform: translate(-20px, -20px); }
        }
        .header {
            background: var(--bg-header);
            -webkit-backdrop-filter: blur(20px);
            backdrop-filter: blur(20px);
            border-bottom: 1px solid var(--border-color);
            position: sticky;
            top: 0;
            z-index: 1000;
            transition: background 0.3s ease, border-color 0.3s ease;
        }
        .header-content {
            max-width: var(--content-width);
            margin: 0 auto;
            padding: 10px var(--page-padding);
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: clamp(10px, 1.4vw, 18px);
        }
        .sr-only {
            position: absolute;
            width: 1px;
            height: 1px;
            padding: 0;
            margin: -1px;
            overflow: hidden;
            clip: rect(0, 0, 0, 0);
            white-space: nowrap;
            border: 0;
        }
        .logo {
            display: flex;
            align-items: center;
            gap: 12px;
            text-decoration: none;
            flex: 0 0 auto;
            min-width: 0;
        }
        .logo-icon {
            width: clamp(36px, 4.5vw, 45px);
            height: clamp(36px, 4.5vw, 45px);
            border-radius: 12px;
            overflow: hidden;
            box-shadow: 0 4px 15px rgba(0, 149, 255, 0.4);
        }
        .logo-icon img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
        .logo-text {
            font-size: clamp(16px, 2.2vw, 22px);
            font-weight: 700;
            background-image: var(--brand-title-gradient);
            background-size: 200% 100%;
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            text-shadow: var(--brand-title-shadow);
            animation: brandTitleGradientFlow 4.8s linear infinite;
            white-space: nowrap;
        }
        @keyframes brandTitleGradientFlow {
            0% { background-position: 0% 50%; }
            100% { background-position: 100% 50%; }
        }
        .header-search {
            flex: 1 1 460px;
            width: min(100%, 560px);
            max-width: 560px;
            min-width: 190px;
            margin: 0 auto;
        }
        .header-search-form {
            display: flex;
            align-items: center;
            min-width: 0;
            height: 42px;
            padding-left: 16px;
            border: 1px solid var(--border-color);
            border-radius: 12px;
            background: var(--bg-input);
            transition: border-color 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
        }
        .header-search-form:focus-within {
            border-color: var(--accent-primary);
            box-shadow: var(--focus-ring);
            background: var(--bg-card);
        }
        html[data-ui-version] .header .header-search-form input {
            flex: 1 1 auto;
            min-width: 0;
            height: 100%;
            padding: 0 12px 0 0 !important;
            border: 0 !important;
            border-radius: 0 !important;
            outline: 0 !important;
            background: transparent !important;
            box-shadow: none !important;
            color: var(--text-primary);
            font: inherit;
            font-size: 14px;
        }
        html[data-ui-version] .header .header-search-form input::placeholder {
            color: var(--text-dim);
        }
        .header-search-submit {
            align-self: stretch;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 6px;
            min-width: 76px;
            padding: 0 14px;
            border: 0;
            border-left: 1px solid var(--border-light);
            border-radius: 0 11px 11px 0;
            background: rgba(53, 132, 247, 0.1);
            color: var(--text-primary);
            font-size: 13px;
            font-weight: 600;
            cursor: pointer;
            transition: color 0.2s ease, background 0.2s ease;
        }
        .header-search-submit:hover {
            color: #fff;
            background: var(--accent-primary);
        }
        .header-search-toggle {
            display: none;
            width: 38px;
            height: 38px;
            border: 1px solid var(--border-light);
            border-radius: 10px;
            background: var(--bg-card);
            color: var(--accent-primary);
            cursor: pointer;
        }
        .header-chat-link {
            display: inline-grid;
            place-items: center;
            width: 38px;
            height: 38px;
            flex: 0 0 38px;
            position: relative;
            color: var(--accent-primary);
            border: 1px solid var(--border-light);
            border-radius: 8px;
            text-decoration: none;
            touch-action: manipulation;
        }
        .header-chat-link.has-unread::after {
            content: '';
            position: absolute;
            top: 5px;
            right: 5px;
            width: 6px;
            height: 6px;
            border-radius: 50%;
            background: #e74263;
        }
        .nav-mobile-only { display: none !important; }
        .nav {
            display: flex;
            flex: 0 0 auto;
            min-width: 0;
            justify-content: flex-end;
            gap: 3px;
            align-items: center;
            overflow: visible;
        }
        .nav a {
            display: inline-flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            gap: 3px;
            min-width: 52px;
            color: var(--text-secondary);
            text-decoration: none;
            font-size: 11px;
            line-height: 1.2;
            transition: color 0.3s, background 0.3s, border-color 0.3s;
            position: relative;
            padding: 6px 7px;
            border-radius: 10px;
            border: 1px solid transparent;
            white-space: nowrap;
            text-align: center;
            word-break: normal;
            overflow-wrap: normal;
        }
        .nav a i {
            flex: 0 0 auto;
            font-size: 15px;
        }
        .nav a > span {
            min-width: 0;
            white-space: nowrap;
        }
        .nav a:hover,
        .nav a.active {
            color: var(--accent-primary);
            background: rgba(53, 132, 247, 0.08);
            border-color: rgba(53, 132, 247, 0.18);
        }
        .nav-secondary {
            display: none !important;
        }
        .header-more {
            position: relative;
            flex: 0 0 auto;
        }
        .header-more-trigger {
            min-width: 52px;
            padding: 6px 7px;
            display: inline-flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            gap: 3px;
            border: 1px solid transparent;
            border-radius: 10px;
            background: transparent;
            color: var(--text-secondary);
            font: inherit;
            font-size: 11px;
            line-height: 1.2;
            cursor: pointer;
            transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
        }
        .header-more-trigger i {
            font-size: 15px;
        }
        .header-more-trigger:hover,
        .header-more.open .header-more-trigger {
            color: var(--accent-primary);
            background: rgba(53, 132, 247, 0.08);
            border-color: rgba(53, 132, 247, 0.18);
        }
        .header-more-menu {
            position: absolute;
            top: calc(100% + 10px);
            right: 0;
            width: 190px;
            padding: 8px;
            display: grid;
            gap: 4px;
            border: 1px solid var(--border-color);
            border-radius: 12px;
            background: color-mix(in srgb, var(--bg-card) 96%, transparent);
            box-shadow: 0 18px 44px rgba(0, 0, 0, 0.3);
            backdrop-filter: blur(18px);
            opacity: 0;
            visibility: hidden;
            transform: translateY(-6px) scale(0.98);
            transform-origin: top right;
            transition: opacity 0.18s ease, visibility 0.18s ease, transform 0.18s ease;
        }
        .header-more.open .header-more-menu {
            opacity: 1;
            visibility: visible;
            transform: translateY(0) scale(1);
        }
        .header-more-menu a,
        .header-more-action {
            width: 100%;
            min-width: 0;
            display: inline-flex;
            flex-direction: row;
            align-items: center;
            justify-content: flex-start;
            gap: 10px;
            padding: 10px 11px;
            border: 1px solid transparent;
            border-radius: 10px;
            background: transparent;
            color: var(--text-secondary);
            font: inherit;
            font-size: 13px;
            text-align: left;
            text-decoration: none;
            cursor: pointer;
        }
        .header-more-menu a:hover,
        .header-more-action:hover {
            color: var(--accent-primary);
            background: rgba(53, 132, 247, 0.08);
            border-color: rgba(53, 132, 247, 0.18);
        }
        .header-more-menu a i,
        .header-more-action i {
            width: 18px;
            text-align: center;
        }
        .nav-fulltip {
            position: fixed;
            z-index: 10000;
            max-width: min(360px, calc(100vw - 24px));
            padding: 9px 12px;
            border: 1px solid var(--border-color);
            border-radius: 8px;
            background: var(--bg-card);
            color: var(--text-primary);
            box-shadow: 0 14px 34px rgba(0, 0, 0, 0.22);
            font-size: 13px;
            line-height: 1.35;
            text-align: left;
            white-space: normal;
            overflow-wrap: break-word;
            pointer-events: none;
            opacity: 0;
            transform: translateY(-4px);
            transition: opacity 0.16s ease, transform 0.16s ease;
        }
        .nav-fulltip.is-visible {
            opacity: 1;
            transform: translateY(0);
        }
        .user-area {
            display: flex;
            align-items: center;
            gap: 15px;
            flex: 0 0 auto;
            min-width: 0;
        }
        .header-user-live {
            min-width: 0;
            display: flex;
            align-items: center;
            gap: 10px;
        }
        .header-user-live__placeholder,
        .header-user-live__refresh {
            display: inline-flex;
            align-items: center;
            gap: 10px;
            min-width: 0;
            padding: 0;
            border: 0;
            background: transparent;
            color: inherit;
            font: inherit;
            text-decoration: none;
        }
        .header-user-live__placeholder .user-avatar {
            position: relative;
        }
        .header-user-live__placeholder .user-avatar::after {
            content: '';
            position: absolute;
            inset: -3px;
            border: 2px solid transparent;
            border-top-color: rgba(121, 193, 255, 0.9);
            border-radius: 50%;
            animation: headerUserSpin 0.9s linear infinite;
        }
        .header-user-live__refresh {
            cursor: pointer;
        }
        .header-user-live__refresh:hover .user-name {
            color: var(--accent-primary);
        }
        .header-notification-badge {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 38px;
            height: 38px;
            padding: 0;
            background: rgba(255, 170, 0, 0.15);
            border: 1px solid rgba(255, 170, 0, 0.3);
            border-radius: 10px;
            color: #ffaa00;
            font-size: 13px;
            text-decoration: none;
        }
        @keyframes headerUserSpin {
            to { transform: rotate(360deg); }
        }
        .user-info {
            display: flex;
            align-items: center;
            gap: 10px;
            cursor: pointer;
            text-decoration: none;
            color: inherit;
        }
        .user-info:hover .user-name {
            color: var(--accent-primary);
        }
        .user-avatar {
            width: clamp(30px, 3.6vw, 36px);
            height: clamp(30px, 3.6vw, 36px);
            background: linear-gradient(135deg, #0095ff, #3584F7);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: clamp(12px, 1.4vw, 14px);
            overflow: hidden;
        }
        .user-avatar img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
        .user-name {
            font-size: clamp(12px, 1.4vw, 14px);
            color: var(--text-secondary);
            max-width: min(150px, 15vw);
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }
        .btn-login {
            padding: 8px 20px;
            background: var(--accent-gradient);
            border: none;
            border-radius: 20px;
            color: white;
            text-decoration: none;
            font-size: 14px;
            transition: all 0.3s;
        }
        .btn-login:hover {
            transform: translateY(-2px);
            box-shadow: 0 5px 15px var(--shadow-color);
        }
        .btn-register {
            padding: 8px 20px;
            background: transparent;
            border: 1px solid var(--border-color);
            border-radius: 20px;
            color: var(--accent-primary);
            text-decoration: none;
            font-size: 14px;
            transition: all 0.3s;
        }
        .btn-register:hover {
            background: var(--bg-animation-1);
        }
        .theme-toggle {
            display: flex;
            align-items: center;
            gap: 6px;
            padding: 8px 14px;
            background: var(--bg-card);
            border: 1px solid var(--border-color);
            border-radius: 20px;
            cursor: pointer;
            transition: all 0.3s ease;
            user-select: none;
        }
        .theme-toggle:hover {
            background: var(--bg-card-hover);
            border-color: var(--accent-primary);
        }
        .theme-toggle i {
            font-size: 16px;
            color: var(--accent-primary);
            transition: transform 0.3s ease;
        }
        .theme-toggle:hover i {
            transform: rotate(15deg);
        }
        .theme-toggle span {
            font-size: 13px;
            color: var(--text-secondary);
        }
        .theme-toggle.desktop-only {
            display: flex;
        }
        @media (max-width: 992px) {
            .theme-toggle.desktop-only {
                display: none !important;
            }
        }
        @media (min-width: 993px) {
            .header-content {
                max-width: 1600px;
            }
            .nav a {
                flex: 0 0 auto;
            }
        }
        @media (min-width: 993px) and (max-width: 1450px) {
            .header-content {
                padding-left: 14px;
                padding-right: 14px;
                gap: 8px;
            }
            .logo {
                gap: 8px;
            }
            .logo-text {
                font-size: 18px;
            }
            .nav {
                gap: 3px;
            }
            .nav a,
            html[data-ui-version] .header .nav a {
                min-width: 46px;
                padding: 5px 6px;
                flex-direction: column;
                font-size: 10px;
                gap: 3px;
            }
            .header-more-trigger {
                min-width: 46px;
                padding: 5px 6px;
                font-size: 10px;
            }
            .header-search {
                max-width: 440px;
            }
            .user-area {
                gap: 6px;
            }
            .site-pref-trigger,
            .theme-toggle {
                padding: 6px 9px;
                font-size: 12px;
            }
            .header-notification-badge,
            .notification-badge {
                padding: 5px 8px !important;
                font-size: 12px !important;
            }
            .user-name {
                max-width: 80px;
            }
        }
        @media (min-width: 993px) and (max-width: 1180px) {
            .logo-text {
                display: none;
            }
            .header-search {
                max-width: 360px;
            }
            .site-pref-trigger .pref-badge,
            .theme-toggle span,
            .header-notification-badge span,
            .notification-badge span {
                display: none;
            }
            .user-name {
                max-width: 72px;
            }
        }
        .btn-logout {
            padding: 6px 14px;
            background: rgba(255, 107, 107, 0.1);
            border: 1px solid rgba(255, 107, 107, 0.3);
            border-radius: 15px;
            color: #ff6b6b;
            text-decoration: none;
            font-size: clamp(11px, 1.3vw, 13px);
            transition: all 0.3s;
        }
        .btn-logout:hover {
            background: rgba(255, 107, 107, 0.2);
        }
        @media (max-width: 768px) {
            .btn-logout {
                display: none;
            }
        }
        .btn-submit {
            padding: 8px 20px;
            background: rgba(0, 212, 170, 0.15);
            border: 1px solid rgba(0, 212, 170, 0.4);
            border-radius: 20px;
            color: var(--accent-primary);
            text-decoration: none;
            font-size: 14px;
            transition: all 0.3s;
            display: flex;
            align-items: center;
            gap: 6px;
        }
        .btn-submit:hover {
            background: rgba(0, 212, 170, 0.25);
        }
        .mobile-menu-btn {
            display: none;
            width: 38px;
            height: 38px;
            place-items: center;
            background: var(--bg-card);
            border: 1px solid var(--border-light);
            border-radius: 10px;
            color: var(--text-primary);
            font-size: 18px;
            cursor: pointer;
            padding: 0;
        }
        @media (max-width: 992px) {
            .header-content {
                position: relative;
                min-height: 60px;
                padding: 8px 12px;
                gap: 6px;
            }
            .logo {
                margin-right: auto;
                transition: opacity 0.2s ease;
            }
            .header-search {
                position: absolute;
                z-index: 4;
                top: 50%;
                left: 64px;
                right: 94px;
                width: auto;
                max-width: none;
                min-width: 0;
                margin: 0;
                opacity: 0;
                visibility: hidden;
                pointer-events: none;
                transform: translateY(-50%) scaleX(0.72);
                transform-origin: right center;
                transition: opacity 0.22s ease, visibility 0.22s ease, transform 0.24s ease;
            }
            .header-search-form {
                height: 40px;
                padding-left: 12px;
                border-radius: 10px;
                background: color-mix(in srgb, var(--bg-card) 97%, transparent);
            }
            .header-search-submit {
                min-width: 40px;
                width: 40px;
                padding: 0;
                border-radius: 0 9px 9px 0;
            }
            .header-search-submit span {
                display: none;
            }
            .header-search-toggle {
                display: grid;
                place-items: center;
                flex: 0 0 auto;
                position: relative;
                z-index: 5;
            }
            .header.search-open .header-search {
                opacity: 1;
                visibility: visible;
                pointer-events: auto;
                transform: translateY(-50%) scaleX(1);
            }
            .header.search-open .logo-text,
            .header.search-open .user-area {
                opacity: 0;
                visibility: hidden;
                pointer-events: none;
            }
            .mobile-menu-btn {
                display: grid;
                flex: 0 0 auto;
                position: relative;
                z-index: 5;
            }
            .nav {
                position: fixed;
                top: var(--site-header-height, 60px);
                left: 0;
                right: 0;
                background: var(--bg-header);
                backdrop-filter: blur(20px);
                display: grid;
                grid-template-columns: repeat(3, minmax(0, 1fr));
                padding: 12px;
                gap: 8px;
                transform: translateY(-100%);
                opacity: 0;
                visibility: hidden;
                transition: all 0.3s ease;
                border-bottom: 1px solid var(--border-color);
                max-height: calc(100vh - var(--site-header-height, 60px));
                overflow-y: auto;
            }
            .nav.active {
                transform: translateY(0);
                opacity: 1;
                visibility: visible;
            }
            .nav a {
                width: 100%;
                max-width: none;
                min-width: 0;
                min-height: 62px;
                flex-direction: column;
                justify-content: center;
                gap: 6px;
                padding: 9px 6px;
                background: var(--bg-animation-1);
                border-radius: 10px;
                text-align: center;
                font-size: 11px;
                white-space: normal;
                overflow: visible;
                text-overflow: clip;
                line-height: 1.35;
            }
            .nav a i {
                font-size: 17px;
            }
            .header-more {
                display: none;
            }
            .nav a > span {
                white-space: normal;
                overflow: visible;
                text-overflow: clip;
            }
            .nav a::after {
                display: none;
            }
            .user-area {
                flex-wrap: wrap;
                gap: 6px;
                transition: opacity 0.2s ease, visibility 0.2s ease;
            }
            .user-name {
                display: none;
            }
        }
        @media (max-width: 768px) {
            .logo-text {
                font-size: 16px;
            }
            .logo-icon {
                width: 36px;
                height: 36px;
            }
            .btn-login {
                padding: 7px 10px;
                font-size: 11px;
                white-space: nowrap;
            }
        }
        @media (max-width: 480px) {
            .logo-text {
                display: none;
            }
            .header-search {
                left: 56px;
                right: 92px;
            }
        }
        #category_suggestions::-webkit-scrollbar {
            display: none;
        }
        #category_suggestions {
            background: var(--bg-card) !important;
            border-color: var(--border-color) !important;
        }
        .category-suggestion-item {
            padding: 8px 12px;
            cursor: pointer;
            border-bottom: 1px solid var(--border-light);
            color: var(--text-primary);
            transition: background 0.15s ease;
        }
        .category-suggestion-item:hover {
            background: rgba(0, 149, 255, 0.15) !important;
        }
        .category-suggestion-other {
            color: #a855f7;
            font-weight: 500;
            border-bottom: none;
        }
        .category-suggestion-other:hover {
            background: rgba(168, 85, 247, 0.15) !important;
        }
        select option {
            padding: 8px 12px;
            background: var(--bg-card);
            color: var(--text-primary);
        }
        /* 协议弹窗样式 */
        .agreement-modal-overlay {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0, 0, 0, 0.85);
            z-index: 10000;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 20px;
            backdrop-filter: blur(5px);
        }
        .agreement-modal {
            background: var(--bg-card);
            border: 1px solid var(--border-color);
            border-radius: 20px;
            max-width: 520px;
            width: 100%;
            max-height: 90vh;
            overflow-y: auto;
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
        }
        .agreement-modal-header {
            padding: 25px 30px 20px;
            text-align: center;
            border-bottom: 1px solid var(--border-light);
        }
        .agreement-modal-header h2 {
            font-size: 22px;
            font-weight: 600;
            color: var(--text-primary);
            margin-bottom: 8px;
        }
        .agreement-modal-header p {
            font-size: 14px;
            color: var(--text-muted);
        }
        .agreement-modal-body {
            padding: 25px 30px;
        }
        .agreement-item {
            display: flex;
            align-items: flex-start;
            gap: 12px;
            padding: 15px;
            background: var(--bg-animation-1);
            border: 1px solid var(--border-light);
            border-radius: 12px;
            margin-bottom: 12px;
            transition: all 0.3s ease;
        }
        .agreement-item:hover {
            border-color: var(--accent-primary);
            background: var(--border-light);
        }
        .agreement-item input[type="checkbox"] {
            width: 20px;
            height: 20px;
            accent-color: var(--accent-primary);
            cursor: pointer;
            margin-top: 2px;
            flex-shrink: 0;
            pointer-events: auto;
        }
        .agreement-item:hover {
            border-color: var(--accent-primary);
            background: var(--border-light);
        }
        .agreement-item input[type="checkbox"] {
            width: 20px;
            height: 20px;
            accent-color: var(--accent-primary);
            cursor: pointer;
            margin-top: 2px;
            flex-shrink: 0;
        }
        .agreement-item-content {
            flex: 1;
        }
        .agreement-item-content label {
            font-size: 15px;
            color: var(--text-primary);
            cursor: pointer;
            display: block;
            margin-bottom: 4px;
        }
        .agreement-item-content a {
            color: var(--accent-primary);
            text-decoration: none;
        }
        .agreement-item-content a:hover {
            text-decoration: underline;
        }
        .agreement-item-content .desc {
            font-size: 13px;
            color: var(--text-muted);
        }
        .agreement-modal-footer {
            padding: 20px 30px 25px;
            border-top: 1px solid var(--border-light);
        }
        .agreement-btn {
            width: 100%;
            padding: 14px;
            border: none;
            border-radius: 12px;
            font-size: 16px;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.3s ease;
        }
        .agreement-btn:disabled {
            background: var(--text-dim);
            color: var(--text-muted);
            cursor: not-allowed;
        }
        .agreement-btn:not(:disabled) {
            background: var(--accent-gradient);
            color: white;
        }
        .agreement-btn:not(:disabled):hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 25px var(--shadow-color);
        }
        .agreement-btn.decline {
            background: transparent;
            border: 1px solid var(--border-color);
            color: var(--text-muted);
            margin-top: 10px;
        }
        .agreement-btn.decline:hover {
            background: rgba(255, 107, 107, 0.1);
            border-color: rgba(255, 107, 107, 0.3);
            color: #ff6b6b;
        }
        @media (max-width: 576px) {
            .agreement-modal {
                border-radius: 16px;
            }
            .agreement-modal-header {
                padding: 20px;
            }
            .agreement-modal-body {
                padding: 20px;
            }
            .agreement-modal-footer {
                padding: 15px 20px 20px;
            }
        }
        .vip-notification {
            margin: 20px auto;
            max-width: 800px;
            padding: 15px 20px;
            background: linear-gradient(135deg, rgba(0, 149, 255, 0.15), rgba(0, 212, 170, 0.1));
            border: 1px solid rgba(0, 149, 255, 0.3);
            border-radius: 12px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 15px;
        }
        .vip-notification-left {
            display: flex;
            align-items: center;
            gap: 12px;
        }
        .vip-notification-icon {
            width: 40px;
            height: 40px;
            background: linear-gradient(135deg, #0095ff, #00d4aa);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 18px;
        }
        .vip-notification-text {
            color: #e0e0e0;
        }
        .vip-notification-title {
            font-weight: 600;
            color: #00d4aa;
            margin-bottom: 2px;
        }
        .vip-notification-desc {
            font-size: 13px;
            color: #a0aec0;
        }
        .vip-node-list {
            margin-top: 2px;
            white-space: nowrap;
        }
        .vip-node-list span {
            display: inline;
        }
        .vip-node-list .vip-node-separator {
            display: inline;
        }
        .vip-notification-actions {
            display: flex;
            align-items: center;
            gap: 10px;
        }
        .vip-notification-hide {
            padding: 8px 12px;
            background: rgba(0, 212, 170, 0.2);
            border: 1px solid rgba(0, 212, 170, 0.3);
            border-radius: 6px;
            color: #00d4aa;
            cursor: pointer;
            font-size: 13px;
            min-width: 136px;
            white-space: nowrap;
            transition: all 0.3s;
        }
        .vip-notification-hide:hover {
            background: rgba(0, 212, 170, 0.3);
        }
        .vip-notification-close {
            padding: 8px 12px;
            background: transparent;
            border: 1px solid rgba(255, 255, 255, 0.2);
            border-radius: 6px;
            color: #888;
            cursor: pointer;
            font-size: 13px;
            transition: all 0.3s;
        }
        .vip-notification-close:hover {
            background: rgba(255, 255, 255, 0.1);
            color: #fff;
        }
        [data-theme="light"] .vip-notification {
            background: linear-gradient(135deg, rgba(53, 132, 247, 0.1), rgba(0, 212, 170, 0.08));
            border-color: rgba(53, 132, 247, 0.3);
        }
        [data-theme="light"] .vip-notification-title {
            color: #3584F7;
        }
        [data-theme="light"] .vip-notification-desc {
            color: #718096;
        }
        @media (max-width: 768px) {
            .vip-notification {
                flex-direction: column;
                text-align: center;
                margin: 15px;
            }
            .vip-notification-left {
                flex-direction: column;
            }
            .vip-node-list {
                white-space: normal;
            }
            .vip-node-list span {
                display: block;
            }
            .vip-node-list .vip-node-separator {
                display: none;
            }
        }
        .app-market-support-banner {
            position: relative;
            isolation: isolate;
            contain: layout paint;
            width: min(860px, calc(100% - 32px));
            margin: 14px auto 18px;
            padding: clamp(14px, 2vw, 18px);
            overflow: hidden;
            border: 1px solid rgba(255, 176, 32, 0.46);
            border-radius: 16px;
            background: linear-gradient(135deg, rgba(53, 132, 247, 0.14), rgba(0, 212, 170, 0.08));
            box-shadow: 0 12px 28px rgba(0, 0, 0, 0.16);
        }
        .app-market-support-main {
            display: grid;
            grid-template-columns: 60px minmax(0, 1fr);
            align-items: center;
            gap: 13px;
            margin-bottom: 12px;
        }
        .app-market-support-icon {
            width: 60px;
            height: 60px;
            border: 1px solid rgba(255, 255, 255, 0.34);
            border-radius: 15px;
            object-fit: cover;
            background: rgba(53, 132, 247, 0.12);
            box-shadow: 0 7px 16px rgba(0, 0, 0, 0.18);
        }
        .app-market-support-copy {
            min-width: 0;
        }
        .app-market-support-title {
            min-width: 0;
            color: var(--text-primary);
            font-size: clamp(17px, 2.1vw, 21px);
            font-weight: 850;
            line-height: 1.25;
        }
        .app-market-support-subtitle {
            margin-top: 4px;
            color: var(--text-secondary);
            font-size: 13px;
            line-height: 1.45;
        }
        .app-market-support-current {
            display: inline-flex;
            align-items: center;
            flex-wrap: wrap;
            gap: 5px;
            margin-top: 5px;
            padding: 4px 9px;
            border: 1px solid rgba(255, 176, 32, 0.28);
            border-radius: 999px;
            color: var(--text-secondary);
            background: rgba(255, 176, 32, 0.08);
            font-size: 12px;
            line-height: 1.35;
        }
.app-market-support-current strong {
            color: #ffb020;
            font-weight: 850;
        }
.app-market-support-policy {
            display: inline-flex;
            align-items: center;
            gap: 5px;
            margin-left: 4px;
            padding: 3px 7px;
            border-radius: 999px;
            color: #ffd166;
            background: rgba(255, 209, 102, 0.12);
            font-size: 11px;
            font-weight: 800;
        }
.app-market-support-policy.low_frequency { color: #a5b4fc; background: rgba(165, 180, 252, 0.12); }
.app-market-support-policy.standard { color: #7dd3fc; background: rgba(125, 211, 252, 0.1); }
        .app-market-support-cta-grid {
            display: grid;
            grid-template-columns: minmax(0, 1.15fr) minmax(220px, .85fr);
            gap: 8px;
        }
        .app-market-support-open {
            position: relative;
            display: grid;
            grid-template-columns: 50px minmax(0, 1fr) 30px;
            align-items: center;
            gap: 10px;
            width: 100%;
            min-height: 78px;
            padding: 12px 14px;
            overflow: hidden;
            border: 1px solid rgba(255, 255, 255, 0.3);
            border-radius: 15px;
            color: #ffffff;
            background: linear-gradient(120deg, #176de8 0%, #3584f7 52%, #36a9ff 100%);
            box-shadow: 0 10px 22px rgba(35, 118, 243, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.24);
            text-decoration: none;
            transition: transform 0.2s ease, box-shadow 0.2s ease;
        }
        .app-market-support-open::before {
            position: absolute;
            inset: 0;
            background:
                linear-gradient(110deg, rgba(255, 255, 255, 0.17), transparent 34%),
                radial-gradient(circle at 88% 10%, rgba(255, 255, 255, 0.22), transparent 24%);
            content: '';
            pointer-events: none;
        }
        .app-market-support-open-icon,
        .app-market-support-open-arrow {
            position: relative;
            z-index: 1;
            display: inline-flex;
            align-items: center;
            justify-content: center;
        }
        .app-market-support-open-icon {
            width: 48px;
            height: 48px;
            border: 1px solid rgba(255, 255, 255, 0.28);
            border-radius: 14px;
            background: rgba(255, 255, 255, 0.18);
            box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
            font-size: 20px;
        }
        .app-market-support-open-copy {
            position: relative;
            z-index: 1;
            display: flex;
            min-width: 0;
            flex-direction: column;
            gap: 5px;
        }
        .app-market-support-open-title {
            font-size: clamp(18px, 2.4vw, 23px);
            font-weight: 900;
            line-height: 1.15;
            letter-spacing: 0.02em;
        }
        .app-market-support-open-subtitle {
            color: rgba(255, 255, 255, 0.92);
            font-size: 12.5px;
            font-weight: 650;
            line-height: 1.4;
        }
        .app-market-support-open-arrow {
            width: 30px;
            height: 30px;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.18);
            font-size: 14px;
        }
        .app-market-support-open:focus-visible {
            outline: 4px solid rgba(53, 132, 247, 0.3);
            outline-offset: 3px;
        }
        .app-market-support-hapkit {
            display: grid;
            grid-template-columns: 42px minmax(0, 1fr);
            align-items: center;
            gap: 10px;
            min-height: 78px;
            padding: 12px 13px;
            border: 1px solid rgba(53, 132, 247, 0.48);
            border-radius: 15px;
            color: var(--text-primary);
            background: rgba(53, 132, 247, 0.12);
            text-decoration: none;
            transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
        }
        .app-market-support-hapkit-icon {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 40px;
            height: 40px;
            border-radius: 12px;
            color: #ffffff;
            background: #2378ed;
            font-size: 17px;
        }
        .app-market-support-hapkit-copy {
            min-width: 0;
        }
        .app-market-support-hapkit-title,
        .app-market-support-hapkit-subtitle {
            display: block;
        }
        .app-market-support-hapkit-title {
            color: var(--text-primary);
            font-size: 15px;
            font-weight: 900;
            line-height: 1.25;
        }
        .app-market-support-hapkit-subtitle {
            margin-top: 4px;
            color: var(--text-secondary);
            font-size: 11.5px;
            font-weight: 700;
            line-height: 1.45;
        }
        .app-market-support-hapkit:focus-visible {
            outline: 4px solid rgba(53, 132, 247, 0.26);
            outline-offset: 3px;
        }
        .app-market-support-notice {
            display: grid;
            grid-template-columns: 38px minmax(0, 1fr);
            align-items: center;
            gap: 9px;
            margin-top: 10px;
            padding: 9px 11px;
            border: 1px solid rgba(255, 176, 32, 0.32);
            border-radius: 12px;
            background: rgba(255, 176, 32, 0.08);
            text-align: left;
        }
        .app-market-support-notice-icon {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 32px;
            height: 32px;
            border-radius: 10px;
            color: #ff9d00;
            background: rgba(255, 176, 32, 0.15);
            font-size: 15px;
        }
        .app-market-support-notice-title {
            color: var(--text-primary);
            font-size: 13px;
            font-weight: 850;
            line-height: 1.35;
        }
        .app-market-support-notice-text {
            margin-top: 2px;
            color: var(--text-secondary);
            font-size: 12.5px;
            font-weight: 650;
            line-height: 1.5;
        }
.app-market-support-keep-installed {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            margin-top: 4px;
            padding: 3px 7px;
            border-radius: 8px;
            color: var(--accent-primary);
            background: rgba(53, 132, 247, 0.11);
            font-size: 12px;
            font-weight: 800;
            line-height: 1.35;
        }
.app-market-support-frequency {
            display: flex;
            align-items: flex-start;
            gap: 6px;
            margin-top: 6px;
            color: var(--text-muted);
            font-size: 11px;
            line-height: 1.45;
        }
        .app-market-support-actions {
            display: grid;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 8px;
            margin-top: 9px;
        }
        .app-market-support-all,
        .app-market-support-snooze {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 100%;
            min-width: 0;
            min-height: 38px;
            gap: 6px;
            padding: 8px 10px;
            border-radius: 10px;
            cursor: pointer;
            font: inherit;
            font-size: 12.5px;
            font-weight: 750;
            line-height: 1.2;
            text-decoration: none;
            transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
        }
        .app-market-support-all {
            border: 1px solid rgba(53, 132, 247, 0.36);
            color: var(--accent-primary);
            background: rgba(53, 132, 247, 0.09);
        }
        .app-market-support-snooze {
            border: 1px solid rgba(128, 145, 165, 0.28);
            color: var(--text-secondary);
            background: rgba(128, 145, 165, 0.08);
        }
        .app-market-support-all:focus-visible,
        .app-market-support-snooze:focus-visible {
            outline: 3px solid rgba(53, 132, 247, 0.24);
            outline-offset: 2px;
        }
        .app-market-support-footer {
            display: grid;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            align-items: center;
            justify-content: center;
            gap: 7px;
            margin-top: 8px;
        }
        .app-market-support-reward,
        .app-market-support-gift {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 7px;
            padding: 6px 9px;
            border-radius: 999px;
            color: #ffb020;
            background: rgba(255, 176, 32, 0.08);
            font-size: 12px;
            font-weight: 750;
            line-height: 1.4;
            text-align: center;
        }
        .app-market-support-gift {
            color: var(--accent-primary);
            background: rgba(53, 132, 247, 0.09);
            font-size: 12px;
            font-weight: 750;
            line-height: 1.45;
            text-align: center;
        }
        @media (hover: hover) {
            .app-market-support-open:hover {
                filter: saturate(1.07) brightness(1.03);
                box-shadow: 0 18px 36px rgba(35, 118, 243, 0.44), inset 0 1px 0 rgba(255, 255, 255, 0.3);
                transform: translateY(-2px);
            }
            .app-market-support-hapkit:hover {
                border-color: rgba(53, 132, 247, 0.72);
                background: rgba(53, 132, 247, 0.18);
                transform: translateY(-2px);
            }
            .app-market-support-all:hover,
            .app-market-support-snooze:hover {
                border-color: rgba(53, 132, 247, 0.58);
                color: var(--accent-primary);
                background: rgba(53, 132, 247, 0.15);
                transform: translateY(-1px);
            }
        }
        [data-theme="light"] .app-market-support-banner {
            background: linear-gradient(135deg, rgba(255, 255, 255, 0.97), rgba(239, 248, 255, 0.97));
            box-shadow: 0 16px 36px rgba(53, 84, 120, 0.12);
        }
        @media (max-width: 680px) {
            .app-market-support-banner {
                width: min(720px, calc(100% - 20px));
                margin: 10px auto 14px;
                padding: 12px;
                border-radius: 14px;
            }
            .app-market-support-main {
                grid-template-columns: 44px minmax(0, 1fr);
                gap: 9px;
                margin-bottom: 10px;
            }
            .app-market-support-icon {
                width: 44px;
                height: 44px;
                border-radius: 12px;
            }
            .app-market-support-title {
                display: -webkit-box;
                overflow: hidden;
                -webkit-box-orient: vertical;
                -webkit-line-clamp: 2;
                font-size: 15.5px;
            }
            .app-market-support-subtitle {
                display: -webkit-box;
                overflow: hidden;
                -webkit-box-orient: vertical;
                -webkit-line-clamp: 1;
                margin-top: 2px;
                font-size: 12px;
                line-height: 1.35;
            }
            .app-market-support-current {
                margin-top: 4px;
                padding: 3px 7px;
                font-size: 11px;
            }
            .app-market-support-policy {
                font-size: 10px;
            }
            .app-market-support-open {
                grid-template-columns: 34px minmax(0, 1fr);
                gap: 8px;
                min-height: 64px;
                padding: 8px 9px;
                border-radius: 12px;
            }
            .app-market-support-open-icon {
                width: 34px;
                height: 34px;
                border-radius: 10px;
                font-size: 15px;
            }
            .app-market-support-open-title {
                display: -webkit-box;
                overflow: hidden;
                -webkit-box-orient: vertical;
                -webkit-line-clamp: 2;
                font-size: 14.5px;
            }
            .app-market-support-open-subtitle {
                display: -webkit-box;
                overflow: hidden;
                -webkit-box-orient: vertical;
                -webkit-line-clamp: 1;
                font-size: 10.5px;
                line-height: 1.25;
            }
            .app-market-support-open-arrow {
                display: none;
            }
            .app-market-support-cta-grid {
                grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
                gap: 6px;
            }
            .app-market-support-hapkit {
                grid-template-columns: 32px minmax(0, 1fr);
                gap: 7px;
                min-height: 64px;
                padding: 8px;
                border-radius: 12px;
            }
            .app-market-support-hapkit-icon {
                width: 31px;
                height: 31px;
                border-radius: 9px;
                font-size: 14px;
            }
            .app-market-support-hapkit-title {
                display: -webkit-box;
                overflow: hidden;
                -webkit-box-orient: vertical;
                -webkit-line-clamp: 2;
                font-size: 13.5px;
            }
            .app-market-support-hapkit-subtitle {
                display: -webkit-box;
                overflow: hidden;
                -webkit-box-orient: vertical;
                -webkit-line-clamp: 1;
                margin-top: 2px;
                font-size: 10px;
                line-height: 1.25;
            }
            .app-market-support-notice {
                grid-template-columns: 26px minmax(0, 1fr);
                gap: 7px;
                margin-top: 8px;
                padding: 8px;
                border-radius: 10px;
            }
            .app-market-support-notice-icon {
                width: 26px;
                height: 26px;
                border-radius: 8px;
                font-size: 13px;
            }
            .app-market-support-notice-title {
                font-size: 12.5px;
            }
            .app-market-support-notice-text {
                display: -webkit-box;
                overflow: hidden;
                -webkit-box-orient: vertical;
                -webkit-line-clamp: 1;
                font-size: 11.5px;
                line-height: 1.3;
            }
            .app-market-support-keep-installed {
                display: -webkit-box;
                overflow: hidden;
                -webkit-box-orient: vertical;
                -webkit-line-clamp: 1;
                margin-top: 3px;
                padding: 3px 6px;
                font-size: 11px;
            }
            .app-market-support-frequency {
                font-size: 10.5px;
            }
            .app-market-support-actions {
                gap: 6px;
                margin-top: 8px;
            }
            .app-market-support-all,
            .app-market-support-snooze {
                min-height: 34px;
                gap: 4px;
                padding: 6px 5px;
                font-size: 11.5px;
            }
            .app-market-support-reward,
            .app-market-support-gift {
                min-width: 0;
                overflow: hidden;
                padding: 4px 6px;
                border-radius: 8px;
                font-size: 10.5px;
                line-height: 1.25;
                white-space: nowrap;
                text-overflow: ellipsis;
            }
            .app-market-support-footer {
                display: grid;
                grid-template-columns: 1fr;
                gap: 5px;
            }
            .app-market-support-reward,
            .app-market-support-gift {
                justify-content: flex-start;
                white-space: normal;
                text-align: left;
            }
        }
        @media (max-width: 390px) {
            .app-market-support-open {
                grid-template-columns: 32px minmax(0, 1fr);
            }
            .app-market-support-open-icon {
                width: 32px;
                height: 32px;
            }
            .app-market-support-open-arrow {
                display: none;
            }
            .app-market-support-all,
            .app-market-support-snooze {
                font-size: 11px;
            }
        }
        @media (prefers-reduced-motion: reduce) {
            *,
            *::before,
            *::after {
                animation-duration: 0.001ms !important;
                animation-iteration-count: 1 !important;
                transition-duration: 0.001ms !important;
                scroll-behavior: auto !important;
            }
            .bg-animation {
                display: none !important;
            }
            .app-market-support-open,
            .app-market-support-hapkit,
            .app-market-support-all,
            .app-market-support-snooze {
                transition: none;
            }
        }
        html[data-performance="lite"] body {
            background-attachment: scroll !important;
            background-image: linear-gradient(180deg, var(--bg-primary), var(--bg-tertiary)) !important;
        }
        html[data-performance="lite"] .bg-animation,
        html[data-performance="lite"] .home-520-canvas,
        html[data-performance="lite"] .home-520-points {
            display: none !important;
        }
        html[data-performance="lite"] .header,
        html[data-performance="lite"] .home-520-stage,
        html[data-performance="lite"] .site-pref-dropdown,
        html[data-performance="lite"] .app-market-support-banner,
        html[data-performance="lite"] .app-market-support-open,
        html[data-performance="lite"] .app-market-support-hapkit {
            -webkit-backdrop-filter: none !important;
            backdrop-filter: none !important;
            box-shadow: none !important;
        }
        html[data-performance="lite"] .app-market-support-open::before {
            display: none !important;
        }
        html[data-performance="lite"] .home-520-stage::before,
        html[data-performance="lite"] .home-520-stage::after,
        html[data-performance="lite"] .logo-text,
        html[data-performance="lite"] .hero h1,
        html[data-performance="lite"] .home-520-number {
            animation: none !important;
        }
        html[data-performance="lite"] * {
            transition-duration: 0s !important;
            transition-delay: 0s !important;
        }




        .footer {
            background: var(--bg-header);
            border-top: 1px solid var(--border-color);
            padding: clamp(36px, 6vw, 56px) var(--page-padding) clamp(24px, 4vw, 32px);
            margin-top: clamp(48px, 8vw, 88px);
        }
        .footer-content {
            max-width: var(--content-width);
            margin: 0 auto;
            display: grid;
            grid-template-columns: minmax(260px, 2fr) repeat(4, minmax(140px, 1fr));
            gap: clamp(22px, 3vw, 40px);
        }
        @media (max-width: 768px) {
            .footer-content { grid-template-columns: 1fr 1fr; gap: 30px; }
            .footer-brand { grid-column: 1 / -1; }
        }
        .footer-brand h3 {
            font-size: 24px;
            margin-bottom: 15px;
            background-image: var(--brand-title-gradient);
            background-size: 200% 100%;
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            text-shadow: var(--brand-title-shadow);
            animation: brandTitleGradientFlow 4.8s linear infinite;
        }
        .footer-brand p {
            color: var(--text-muted);
            line-height: 1.6;
            font-size: 14px;
        }
        .footer-links h4 {
            color: var(--text-primary);
            margin-bottom: 20px;
            font-size: 16px;
        }
        .footer-links a {
            display: block;
            color: var(--text-muted);
            text-decoration: none;
            margin-bottom: 10px;
            font-size: 14px;
            transition: color 0.3s;
        }
        .footer-links a:hover {
            color: var(--accent-primary);
        }
        .footer-bottom {
            max-width: 1400px;
            margin: 40px auto 0;
            padding-top: 30px;
            border-top: 1px solid var(--border-light);
            text-align: center;
            color: var(--text-dim);
            font-size: 13px;
        }
        .footer-bottom-inner {
            display: flex;
            justify-content: center;
            align-items: center;
            gap: 20px;
            flex-wrap: wrap;
        }
        .theme-toggle {
            display: flex;
            align-items: center;
            gap: 6px;
            padding: 8px 14px;
            background: var(--bg-card);
            border: 1px solid var(--border-color);
            border-radius: 20px;
            cursor: pointer;
            transition: all 0.3s ease;
            user-select: none;
        }
        .theme-toggle:hover {
            background: var(--bg-card-hover);
            border-color: var(--accent-primary);
        }
        .theme-toggle i {
            font-size: 16px;
            color: var(--accent-primary);
            transition: transform 0.3s ease;
        }
        .theme-toggle:hover i {
            transform: rotate(15deg);
        }
        .theme-toggle span {
            font-size: 13px;
            color: var(--text-secondary);
        }
        .theme-toggle.mobile-only {
            display: none;
        }
        .footer-theme-modes.mobile-only {
            display: none;
        }
        .footer-theme-modes {
            grid-template-columns: repeat(3, minmax(0, 1fr));
            gap: 4px;
            padding: 3px;
            border: 1px solid var(--border-color);
            border-radius: 10px;
            background: var(--bg-card);
        }
        .footer-theme-modes button {
            min-width: 0;
            min-height: 30px;
            padding: 4px 7px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 4px;
            border: 0;
            border-radius: 7px;
            background: transparent;
            color: var(--text-muted);
            font-size: 11px;
            cursor: pointer;
        }
        .footer-theme-modes button.is-active {
            background: rgba(53, 132, 247, 0.16);
            color: var(--accent-primary);
        }
        @media (max-width: 992px) {
            .theme-toggle.mobile-only {
                display: flex !important;
            }
            .footer-theme-modes.mobile-only {
                display: grid !important;
            }
        }
        @media (max-width: 768px) {
            .footer {
                padding: 28px max(12px, env(safe-area-inset-right)) calc(20px + env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
                margin-top: 40px;
            }
            .footer-content {
                grid-template-columns: repeat(2, minmax(0, 1fr));
                gap: 22px 18px;
            }
            .footer-brand { grid-column: 1 / -1; }
            .footer-brand h3 {
                font-size: 20px;
            }
            .footer-brand p {
                font-size: 13px;
            }
            .footer-links h4 {
                font-size: 15px;
                margin-bottom: 15px;
            }
            .footer-links a {
                font-size: 13px;
                margin-bottom: 8px;
            }
            .footer-bottom {
                font-size: 12px;
                margin-top: 28px;
                padding: 20px 4px 0;
                line-height: 1.7;
            }
            .footer-bottom > div {
                gap: 12px !important;
            }
            .footer-bottom p {
                width: 100%;
                overflow-wrap: anywhere;
            }
        }
        @media (max-width: 520px) {
            .footer {
                padding-top: 18px;
                padding-bottom: 24px;
                margin-top: 32px;
                height: 600px;
                min-height: 600px;
                max-height: 600px;
                display: flex;
                flex-direction: column;
                overflow: visible;
            }
            .footer-content {
                width: 100%;
                min-height: 0;
                flex: 1 1 auto;
                grid-template-columns: repeat(2, minmax(0, 1fr));
                gap: 12px 16px;
                align-content: space-evenly;
            }
            .footer-brand {
                grid-column: 1 / -1;
                padding-bottom: 2px;
            }
            .footer-brand h3 {
                margin-bottom: 5px;
                font-size: 20px;
                line-height: 1.3;
            }
            .footer-brand p {
                font-size: 12.5px;
                line-height: 1.45;
            }
            .footer-brand p[style] {
                margin-top: 4px !important;
            }
            .footer-links {
                min-width: 0;
                padding: 8px 0 0;
                border-top: 1px solid var(--border-light);
            }
            .footer-links h4 {
                margin-bottom: 5px;
                font-size: 14px;
                line-height: 1.3;
            }
            .footer-links a {
                min-height: 0;
                margin-bottom: 2px;
                display: block;
                font-size: 12.5px;
                line-height: 1.4;
                overflow-wrap: anywhere;
            }
            .footer-bottom {
                width: 100%;
                margin-top: 8px;
                padding-top: 10px;
                font-size: 10.5px;
            }
            .footer-bottom-inner {
                display: grid !important;
                grid-template-columns: auto auto;
                justify-content: center;
                align-items: center;
                gap: 8px !important;
                text-align: center;
            }
            .footer-record-line {
                grid-column: 1 / -1;
                width: 100%;
                font-size: 10px;
                line-height: 1.3;
                white-space: nowrap;
                overflow: visible;
                text-align: center;
            }
            .footer-theme-modes {
                width: 168px;
                align-self: end;
            }
            .footer-theme-modes button {
                min-height: 28px;
                padding: 3px 5px;
                font-size: 10px;
            }
            .footer-bottom .site-translation-switcher {
                width: auto !important;
                max-width: 126px !important;
                justify-content: flex-end !important;
                align-self: end;
            }
            .footer-bottom .site-translation-trigger {
                width: auto !important;
                min-width: 0 !important;
                max-width: 126px !important;
                min-height: 34px !important;
                padding: 5px 7px !important;
                gap: 4px !important;
                border-radius: 9px !important;
                box-shadow: none !important;
                font-size: 10px !important;
            }
            .footer-bottom .site-translation-label {
                display: none !important;
            }
            .footer-bottom .site-translation-current {
                min-width: 0 !important;
                max-width: 72px !important;
                font-size: 10px !important;
            }
            .footer-bottom .site-translation-trigger i {
                font-size: 11px !important;
            }
        }
