        :root {
            /* === 全局配色升级：深色磨砂风格 === */
            --bg-color: #0b1120;
            --primary-color: #3b82f6;
            --text-main: #f3f4f6;
            --text-sub: #9ca3af;
            
            /* 状态色 */
            --accent-green: #10b981;
            --accent-red: #ef4444;
            --accent-yellow: #eab308;
            --accent-orange: #f97316;
            
            /* 延迟颜色变量 */
            --latency-49: #10b981;
            --latency-149: #3b82f6;
            --latency-299: #eab308;
            --latency-999: #f97316;
            --latency-1000: #ef4444;

            /* === 卡片统一变量 === */
            --glass-bg: linear-gradient(145deg, rgba(30, 41, 59, 0.72) 0%, rgba(15, 23, 42, 0.76) 100%);
            --glass-border: 1px solid rgba(255, 255, 255, 0.11);
            --glass-shadow: 0 24px 80px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.08);
            --glass-radius: 22px;
            --card-bg: linear-gradient(180deg, rgba(15, 23, 42, 0.72), rgba(15, 23, 42, 0.52));
            --card-hover-bg: linear-gradient(180deg, rgba(20, 32, 56, 0.82), rgba(15, 23, 42, 0.62));
            --card-border: 1px solid rgba(96, 165, 250, 0.16);
            --card-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
            --card-hover-shadow: 0 14px 30px rgba(2, 6, 23, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.06);
            --focus-ring: 0 0 0 3px rgba(59, 130, 246, 0.22);
        }

        html[data-theme="light"] {
            --bg-color: #f5f7fb;
            --primary-color: #2563eb;
            --text-main: #111827;
            --text-sub: #64748b;
            --glass-bg: linear-gradient(145deg, rgba(255, 255, 255, 0.92) 0%, rgba(241, 245, 249, 0.9) 100%);
            --glass-border: 1px solid rgba(15, 23, 42, 0.1);
            --glass-shadow: 0 20px 70px rgba(15, 23, 42, 0.13), inset 0 1px 0 rgba(255, 255, 255, 0.9);
            --card-bg: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(239, 246, 255, 0.82));
            --card-hover-bg: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(219, 234, 254, 0.9));
            --card-border: 1px solid rgba(37, 99, 235, 0.16);
            --card-shadow: 0 10px 24px rgba(15, 23, 42, 0.09), inset 0 1px 0 rgba(255, 255, 255, 0.94);
            --card-hover-shadow: 0 14px 28px rgba(15, 23, 42, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.96);
            --focus-ring: 0 0 0 3px rgba(37, 99, 235, 0.16);
        }

        * { margin: 0; padding: 0; box-sizing: border-box; }

        #app {
            width: 100%;
            display: flex;
            justify-content: center;
        }

        html, body {
            overflow-x: hidden;
            width: 100%;
        }

        body {
            font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
            background-color: var(--bg-color);
            background-image:
                linear-gradient(180deg, rgba(59, 130, 246, 0.08), transparent 32%),
                linear-gradient(135deg, rgba(16, 185, 129, 0.04), transparent 36%),
                linear-gradient(225deg, rgba(236, 72, 153, 0.04), transparent 34%);
            color: var(--text-main);
            min-height: 100vh;
            display: flex;
            justify-content: center;
            align-items: center;
            position: relative;
            padding: 20px 10px;
            transition: background-color 0.25s ease, color 0.25s ease;
        }

        html.modal-open,
        body.modal-open {
            overflow: hidden;
        }

        /* 背景特效 */
        body::before {
            content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
            background-image: linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
            background-size: 36px 36px; z-index: -1;
            mask-image: linear-gradient(180deg, transparent 0%, black 12%, black 78%, transparent 100%);
            -webkit-mask-image: linear-gradient(180deg, transparent 0%, black 12%, black 78%, transparent 100%);
        }
        body::after {
            content: ""; position: absolute; top: -180px; left: 0;
            width: 100%; height: 460px;
            background: linear-gradient(90deg, transparent 8%, rgba(59, 130, 246, 0.16), rgba(16, 185, 129, 0.08), transparent 92%);
            z-index: -2; filter: blur(60px);
        }

        html[data-theme="light"] body::before {
            background-image: linear-gradient(rgba(15, 23, 42, 0.06) 1px, transparent 1px), linear-gradient(90deg, rgba(15, 23, 42, 0.06) 1px, transparent 1px);
        }

        html[data-theme="light"] body::after {
            background: linear-gradient(90deg, transparent 8%, rgba(37, 99, 235, 0.18), rgba(14, 165, 233, 0.1), transparent 92%);
        }

        .container {
            width: 100%; max-width: 480px; padding: 10px;
            display: flex; flex-direction: column; gap: 16px; 
            transition: max-width 0.3s ease;
        }
        @media (min-width: 768px) { .container { max-width: 1100px; padding: 20px; gap: 24px; } }
        @media (min-width: 1200px) { .container { max-width: 1280px; padding: 22px; } }

        header { 
            text-align: center; 
            margin-bottom: 16px;
            padding: 20px 0;
            position: relative;
        }
        
        header::after {
            content: "";
            position: absolute;
            bottom: 0;
            left: 50%;
            transform: translateX(-50%);
            width: 40px;
            height: 1px;
            background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.4), transparent);
            border-radius: 1px;
        }
        
        h1 { 
            font-size: 1.6rem; 
            font-weight: 800; 
            margin-bottom: 12px; 
            letter-spacing: 0.5px; 
            color: var(--text-main);
            text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
            animation: slideDown 0.6s ease-out;
        }
        
        @keyframes slideDown {
            from {
                opacity: 0;
                transform: translateY(-15px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }
        
        @media (min-width: 768px) { 
            h1 { font-size: 2rem; letter-spacing: 0.5px; }
        }

        .subtitle-badge {
            display: inline-block; 
            background: rgba(107, 114, 128, 0.15);
            border: 1px solid rgba(156, 163, 175, 0.2);
            padding: 6px 14px; 
            border-radius: 20px; 
            font-size: 0.8rem; 
            color: #9ca3af;
            font-weight: 500;
            letter-spacing: 0.3px;
            backdrop-filter: blur(8px);
            -webkit-backdrop-filter: blur(8px);
            transition: all 0.3s ease;
            animation: slideUp 0.6s ease-out 0.1s both;
            text-decoration: none;
        }
        
        .subtitle-badge:hover {
            background: rgba(107, 114, 128, 0.25);
            border-color: rgba(156, 163, 175, 0.4);
            color: #d1d5db;
        }

        .theme-toggle {
            z-index: 2;
            width: 42px;
            height: 42px;
            border-radius: 50%;
            border: 1px solid rgba(148, 163, 184, 0.18);
            background: rgba(2, 6, 23, 0.28);
            color: #fbbf24;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            flex-shrink: 0;
            margin-left: auto;
            padding: 0;
            box-shadow: var(--card-shadow);
            backdrop-filter: none;
            -webkit-backdrop-filter: none;
            transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
            position: relative;
        }

        .theme-toggle:hover {
            border-color: rgba(96, 165, 250, 0.32);
            background: rgba(37, 99, 235, 0.12);
            box-shadow: var(--card-hover-shadow);
        }

        .theme-toggle svg {
            width: 18px;
            height: 18px;
            position: relative;
            z-index: 2;
            transition: color 0.2s ease;
        }

        .theme-toggle::before {
            content: none;
        }

        .theme-icon-sun {
            color: #fbbf24;
        }

        .theme-icon-moon {
            color: #2563eb;
            display: none;
        }

        html[data-theme="light"] .theme-toggle {
            background: rgba(255, 255, 255, 0.76);
            color: #2563eb;
            border-color: rgba(15, 23, 42, 0.12);
            box-shadow: var(--card-shadow);
        }

        html[data-theme="light"] .theme-toggle:hover {
            border-color: rgba(37, 99, 235, 0.22);
            background: rgba(37, 99, 235, 0.06);
        }

        html[data-theme="light"] .theme-icon-sun {
            display: none;
        }

        html[data-theme="light"] .theme-icon-moon {
            display: block;
        }
        
        @keyframes slideUp {
            from {
                opacity: 0;
                transform: translateY(15px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }
        
        .main-card {
            background: var(--glass-bg);
            border: var(--glass-border);
            border-radius: var(--glass-radius);
            padding: 22px;
            display: flex; flex-direction: column; gap: 24px;
            backdrop-filter: blur(22px) saturate(135%);
            -webkit-backdrop-filter: blur(22px) saturate(135%);
            box-shadow: var(--glass-shadow);
            position: relative;
            overflow: hidden;
        }

        .main-card::before {
            content: "";
            position: absolute;
            inset: 0;
            pointer-events: none;
            background:
                linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 180px),
                linear-gradient(90deg, transparent, rgba(96, 165, 250, 0.06), transparent);
        }

        .main-card > * {
            position: relative;
            z-index: 1;
        }

        .status-box {
            background: var(--card-bg);
            border-radius: 16px; padding: 16px;
            display: flex; align-items: center; gap: 15px; 
            border: var(--card-border);
            box-shadow: var(--card-shadow);
            backdrop-filter: blur(14px);
            -webkit-backdrop-filter: blur(14px);
        }

        .status-main {
            display: flex;
            align-items: center;
            gap: 15px;
            min-width: 0;
        }

        .status-text {
            min-width: 0;
        }
        
        @keyframes status-wave {
            0% {
                box-shadow:
                    0 0 0 0 rgba(var(--status-wave-rgb), 0.38),
                    inset 0 1px 0 rgba(255, 255, 255, 0.08);
            }
            70% {
                box-shadow:
                    0 0 0 11px rgba(var(--status-wave-rgb), 0),
                    inset 0 1px 0 rgba(255, 255, 255, 0.08);
            }
            100% {
                box-shadow:
                    0 0 0 0 rgba(var(--status-wave-rgb), 0),
                    inset 0 1px 0 rgba(255, 255, 255, 0.08);
            }
        }

        .status-icon {
            --status-wave-rgb: 16, 185, 129;
            width: 42px; height: 42px; background: rgba(255, 255, 255, 0.07);
            border-radius: 50%; display: flex; align-items: center; justify-content: center;
            color: var(--accent-green); animation: status-wave 2s ease-out infinite; flex-shrink: 0;
            box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
        }

        .status-icon-ok {
            --status-wave-rgb: 16, 185, 129;
            animation-duration: 2s;
        }

        .status-icon-warning {
            --status-wave-rgb: 249, 115, 22;
            animation-duration: 1.65s;
        }

        .status-icon-danger {
            --status-wave-rgb: 239, 68, 68;
            animation-duration: 1.35s;
        }
        .status-text h3 {
            font-size: 0.95rem; font-weight: 600; color: #fff;
            white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
        }
        .status-text p {
            font-size: 0.75rem; color: var(--text-sub); margin-top: 2px;
            white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
        }

        @media (max-width: 420px) {
            .status-box {
                gap: 10px;
                padding: 14px;
            }

            .status-main {
                gap: 10px;
            }

            .theme-toggle {
                width: 42px;
                height: 42px;
            }
        }

        /* ==================== Uptime 列表优化 ==================== */
        .uptime-list { 
            display: flex; 
            flex-direction: column; 
            gap: 12px;
            margin-top: 0px;
        }
        
        .uptime-item { 
            background: var(--card-bg);
            border: var(--card-border);
            border-radius: 16px;
            padding: 14px;
            display: flex; 
            flex-direction: column; 
            gap: 8px;
            transition: all 0.3s ease;
            position: relative;
            overflow: hidden;
            box-shadow: var(--card-shadow);
            backdrop-filter: blur(12px);
            -webkit-backdrop-filter: blur(12px);
        }
        
        .uptime-item::before {
            content: "";
            position: absolute;
            left: 0;
            top: 0;
            bottom: 0;
            width: 3px;
            background: transparent;
            transition: background 0.3s ease;
        }
        
        .uptime-item:hover {
            background: var(--card-hover-bg);
            border-color: rgba(96, 165, 250, 0.28);
            box-shadow: var(--card-hover-shadow);
        }
        
        /* 根据状态改变左边框颜色 */
        .uptime-item.status-up::before { background: var(--accent-green); }
        .uptime-item.status-down::before { background: var(--accent-red); }
        .uptime-item.status-warning::before { background: var(--accent-yellow); }
        
        .uptime-header-row { 
            display: flex; 
            justify-content: space-between; 
            align-items: flex-start; 
            gap: 8px;
            flex-wrap: wrap;
        }
        
        .uptime-title-group { 
            display: flex; 
            flex-direction: column; 
            max-width: 100%; 
            flex: 1;
            min-width: 0;
        }

        .uptime-title-line {
            display: flex;
            align-items: center;
            gap: 8px;
            min-width: 0;
        }
        
        .uptime-title {
            font-size: 0.8rem; 
            font-weight: 600; 
            color: #e5e7eb;
            display: block;
            text-decoration: none; 
            word-break: break-all;
            line-height: 1.3;
            cursor: default;
        }
        
        .uptime-link-icon {
            width: 22px;
            height: 22px;
            border-radius: 7px;
            border: 1px solid transparent;
            color: #cbd5e1;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
            text-decoration: none;
            opacity: 0.84;
            transition: color 0.2s ease, background 0.2s ease, opacity 0.2s ease;
        }

        .uptime-link-icon svg {
            width: 13px;
            height: 13px;
        }

        .uptime-link-icon:hover {
            color: #60a5fa; 
            background: rgba(96, 165, 250, 0.12);
            opacity: 1;
        }
        
        .uptime-status-label {
            font-size: 0.7rem; 
            font-weight: 600;
            display: flex; 
            align-items: center; 
            flex-shrink: 0;
            padding: 2px 8px;
            border-radius: 6px;
            border: 1px solid rgba(255, 255, 255, 0.1);
            background: rgba(255, 255, 255, 0.05);
            box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
            white-space: nowrap;
            transition: all 0.2s ease;
        }

        .uptime-item.status-up .uptime-status-label {
            background: rgba(16, 185, 129, 0.1);
            border-color: rgba(16, 185, 129, 0.24);
        }

        .uptime-item.status-down .uptime-status-label {
            background: rgba(239, 68, 68, 0.1);
            border-color: rgba(239, 68, 68, 0.24);
        }

        .uptime-item.status-warning .uptime-status-label {
            background: rgba(234, 179, 8, 0.1);
            border-color: rgba(234, 179, 8, 0.24);
        }
        
        .uptime-status-label svg {
            width: 12px;
            height: 12px;
            animation: pulse-status 2s infinite;
        }
        
        @keyframes pulse-status {
            0%, 100% { opacity: 1; }
            50% { opacity: 0.5; }
        }

        /* ==================== Uptime 柱状图优化 ==================== */
        .uptime-bars { 
            display: flex; 
            gap: 2px; 
            height: 18px; 
            width: 100%; 
            align-items: flex-end;
            margin-top: 2px; 
            background: rgba(0, 0, 0, 0.24); 
            border-radius: 999px; 
            padding: 3px;
            backdrop-filter: blur(4px);
        }
        
        .uptime-bar {
            flex: 1; 
            height: 100%; 
            background-color: #374151; 
            border-radius: 999px;
            transition: filter 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
            cursor: pointer; 
            position: relative;
            min-height: 2px;
            border: none;
            box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
        }
        
        .uptime-bar:hover { 
            z-index: 10; 
            filter: brightness(1.12) saturate(1.12);
            box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.38), 0 0 10px currentColor;
        }
        
        .uptime-bar.active { 
            background: #10b981;
        }
        
        .uptime-bar.slow { 
            background: #eab308;
        }
        
        .uptime-bar.down { 
            background: #ef4444;
        }
        
        /* 加载动画 */
        .uptime-bar.loading {
            animation: pulse-bar 1.5s ease-in-out infinite;
        }
        
        @keyframes pulse-bar {
            0%, 100% { opacity: 0.4; }
            50% { opacity: 0.8; }
        }
        
        /* ==================== Uptime 底部统计 ==================== */
        .uptime-stats-footer {
            display: flex; 
            justify-content: flex-start; 
            font-size: 0.7rem; 
            color: #9ca3af;
            margin-top: 2px;
            min-height: 16px;
        }
        
        .stats-text {
            display: flex;
            align-items: center;
            gap: 2px;
            line-height: 1.3;
        }
        
        .stats-text.error {
            color: #ef4444;
        }
        
        .stats-text.success {
            color: #10b981;
        }

        .divider { height: 1px; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent); border: none; margin: 12px 0; }

        .section-header {
            font-size: 0.92rem; color: #60a5fa; margin-bottom: 12px; 
            display: flex; align-items: center; gap: 8px; font-weight: 600;
            letter-spacing: 0.2px;
            text-shadow: 0 0 18px rgba(96, 165, 250, 0.25);
        }
        .section-header.social-header { margin-top: 12px; }

        .btn-grid {
            display: grid; grid-template-columns: 1fr; gap: 12px;
        }
        @media (min-width: 768px) { .btn-grid { grid-template-columns: repeat(2, 1fr); } }
        @media (min-width: 1024px) { .btn-grid { grid-template-columns: repeat(3, 1fr); } }
        #subscriptions-root,
        #preferred-root,
        #conversion-root {
            min-width: 0;
        }
        #preferred-root,
        #conversion-root {
            margin-top: -4px;
        }
        .btn-card {
            background: var(--card-bg);
            border: var(--card-border);
            border-radius: 16px;
            padding: 16px;
            display: flex; align-items: center; gap: 15px;
            cursor: pointer; text-decoration: none;
            transition: transform 0.22s ease, background 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
            position: relative; overflow: hidden;
            color: var(--text-main);
            box-shadow: var(--card-shadow);
            /* Keep grid cards cheap to paint; backdrop-filter caused delayed content rendering on dense card lists. */
            backdrop-filter: none;
            -webkit-backdrop-filter: none;
        }
        .btn-card:hover {
            background: var(--card-hover-bg);
            border-color: rgba(96, 165, 250, 0.28);
            box-shadow: var(--card-hover-shadow);
        }
        .btn-card:focus-visible {
            outline: none;
            box-shadow: var(--card-shadow), var(--focus-ring);
        }
        .btn-card::before {
            content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
            background: transparent; transition: background 0.2s;
        }
        .btn-card:hover::before { background: var(--primary-color); }
        
        .btn-icon-box {
            width: 40px; height: 40px; border-radius: 12px;
            display: flex; align-items: center; justify-content: center;
            flex-shrink: 0; font-size: 0;
            border: 1px solid rgba(255, 255, 255, 0.12);
            background: linear-gradient(145deg, rgba(248, 250, 252, 0.13), rgba(15, 23, 42, 0.2));
            color: #60a5fa;
            box-shadow: 0 8px 18px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.12);
        }
        .btn-icon-box svg {
            width: 21px;
            height: 21px;
            display: block;
            filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.18));
        }
        .btn-icon-box.icon-doc {
            color: #3b82f6;
            background: linear-gradient(145deg, rgba(22, 119, 255, 0.14), rgba(15, 23, 42, 0.22));
            border-color: rgba(22, 119, 255, 0.22);
        }
        .btn-icon-box.icon-github {
            color: #f8fafc;
            background: linear-gradient(145deg, rgba(248, 250, 252, 0.14), rgba(15, 23, 42, 0.24));
            border-color: rgba(255, 255, 255, 0.14);
        }
        .btn-icon-box.icon-telegram {
            color: #38bdf8;
            background: linear-gradient(145deg, rgba(56, 189, 248, 0.14), rgba(15, 23, 42, 0.22));
            border-color: rgba(56, 189, 248, 0.24);
        }
        .btn-icon-box.icon-telegram svg {
            width: 20px;
            height: 20px;
        }
        .btn-card.web .btn-icon-box { background: rgba(16, 185, 129, 0.15); color: #10b981; }

        .btn-text-group { display: flex; flex-direction: column; gap: 3px; }
        .btn-title-row { display: flex; align-items: center; gap: 8px; min-width: 0; }
        .btn-title { font-size: 0.95rem; font-weight: 600; color: #fff; line-height: 1.2; }
        .btn-desc { font-size: 0.75rem; color: #9ca3af; line-height: 1.2; }
        .converter-card.has-badge .btn-text-group,
        .client-card.has-badge .btn-text-group {
            padding-right: 72px;
        }

        .mini-badge {
            position: absolute;
            top: 12px;
            right: 12px;
            display: inline-flex;
            align-items: center;
            flex-shrink: 0;
            border: 1px solid rgba(16, 185, 129, 0.24);
            background: rgba(16, 185, 129, 0.1);
            color: #10b981;
            border-radius: 6px;
            padding: 2px 8px;
            font-size: 0.7rem;
            font-weight: 600;
            line-height: 1.3;
            white-space: nowrap;
            box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
        }
        
        .btn-card.success-state { border-color: #10b981; background: rgba(16, 185, 129, 0.1); }
        .btn-card.success-state .btn-title { color: #10b981; }

        .converter-card .btn-desc {
            font-family: 'SF Mono', 'Menlo', Consolas, monospace;
            color: #bfdbfe;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }
        .copy-enabled .copy-sub {
            color: inherit;
            border-radius: 6px;
        }
        .copy-enabled .copy-sub:hover {
            color: #93c5fd;
            text-decoration: none;
        }

        .client-group-title {
            font-size: 0.8rem;
            font-weight: 700;
            color: #9ca3af;
            margin: 14px 0 10px;
        }

        .client-card .btn-desc.url {
            font-family: 'SF Mono', 'Menlo', Consolas, monospace;
            color: #bfdbfe;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        .client-note {
            font-size: 0.72rem;
            color: #9ca3af;
            line-height: 1.25;
        }

        .client-grid {
            display: grid;
            grid-template-columns: 1fr;
            gap: 12px;
        }

        @media (min-width: 768px) {
            .client-grid { grid-template-columns: repeat(2, 1fr); }
        }

        @media (min-width: 1180px) {
            .client-grid { grid-template-columns: repeat(3, 1fr); }
        }

        .client-card {
            align-items: flex-start;
            min-height: 118px;
            gap: 16px;
        }

        .client-logo {
            width: 52px;
            height: 52px;
            border-radius: 17px;
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
            padding: 3px;
            color: #fff;
            background: linear-gradient(145deg, #38bdf8, #2563eb);
            box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28), 0 10px 22px rgba(37, 99, 235, 0.24);
        }

        .client-logo svg {
            width: 28px;
            height: 28px;
        }

        .client-logo img {
            width: 100%;
            height: 100%;
            display: block;
            border-radius: 14px;
            object-fit: contain;
            background: #fff;
        }

        .client-logo.dark { background: linear-gradient(145deg, #475569, #1e293b); }
        .client-logo.stash { background: linear-gradient(145deg, #38bdf8, #2563eb); }
        .client-logo.verge { background: linear-gradient(145deg, #fb7185, #8b5cf6); }
        .client-logo.green { background: linear-gradient(145deg, #34d399, #059669); }
        .client-logo.purple { background: linear-gradient(145deg, #a78bfa, #6366f1); }
        .client-logo.orange { background: linear-gradient(145deg, #f59e0b, #f97316); }
        .client-logo.rose { background: linear-gradient(145deg, #fb7185, #e11d48); }

        .client-info {
            min-width: 0;
            display: flex;
            flex-direction: column;
            gap: 8px;
            flex: 1;
        }

        .client-name {
            font-size: 1rem;
            font-weight: 750;
            color: #fff;
            line-height: 1.15;
        }

        .client-desc {
            font-size: 0.78rem;
            color: #9ca3af;
            line-height: 1.45;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }

        .platform-tags {
            display: flex;
            flex-wrap: wrap;
            gap: 6px;
            margin-top: 1px;
        }

        .platform-tag {
            border-radius: 6px;
            padding: 3px 8px;
            font-size: 0.68rem;
            font-weight: 650;
            line-height: 1.2;
            color: #bfdbfe;
            background: rgba(59, 130, 246, 0.14);
            border: 1px solid rgba(96, 165, 250, 0.2);
        }

        .platform-tag.android { color: #bbf7d0; background: rgba(34, 197, 94, 0.14); border-color: rgba(74, 222, 128, 0.22); }
        .platform-tag.ios,
        .platform-tag.macos { color: #e9d5ff; background: rgba(168, 85, 247, 0.14); border-color: rgba(196, 181, 253, 0.2); }
        .platform-tag.linux { color: #fed7aa; background: rgba(249, 115, 22, 0.14); border-color: rgba(251, 146, 60, 0.22); }

        .section-note {
            font-size: 0.75rem;
            color: #9ca3af;
            line-height: 1.6;
            margin: -4px 0 12px;
        }

        .copy-sub {
            border: 0;
            background: transparent;
            padding: 0;
            color: inherit;
            font: inherit;
            text-align: left;
            cursor: copy;
        }

        .copy-sub:hover {
            color: #60a5fa;
            text-decoration: underline;
        }

        .doh-panel {
            position: relative;
            display: flex;
            flex-direction: column;
            gap: 10px;
        }

        .doh-panel .section-header {
            margin-bottom: 0;
        }

        .doh-card {
            --doh-control-height: 46px;
            --doh-button-width: 76px;
            background: var(--card-bg);
            border: var(--card-border);
            border-radius: 16px;
            padding: 18px;
            box-shadow: var(--card-shadow);
            display: flex;
            flex-direction: column;
            gap: 14px;
            overflow: hidden;
        }

        .doh-form {
            display: grid;
            grid-template-columns: 1fr;
            gap: 12px 14px;
        }

        @media (min-width: 860px) {
            .doh-form {
                grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) calc((var(--doh-button-width) * 2) + 8px);
                align-items: end;
            }
        }

        .doh-field {
            display: flex;
            flex-direction: column;
            gap: 8px;
            min-width: 0;
        }

        .doh-field span {
            color: #d1d5db;
            font-size: 0.78rem;
            font-weight: 650;
            line-height: 1.25;
        }

        .doh-field select,
        .doh-field input {
            width: 100%;
            height: var(--doh-control-height);
            min-height: var(--doh-control-height);
            border: 1px solid rgba(148, 163, 184, 0.18);
            border-radius: 12px;
            background: rgba(15, 23, 42, 0.34);
            color: #f8fafc;
            font: inherit;
            font-size: 0.88rem;
            padding: 0 14px;
            outline: none;
            transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
        }

        .doh-field select:focus,
        .doh-field input:focus {
            border-color: rgba(96, 165, 250, 0.52);
            box-shadow: var(--focus-ring);
            background: rgba(15, 23, 42, 0.5);
        }

        .doh-action-row,
        .doh-input-row {
            display: grid;
            grid-template-columns: repeat(2, var(--doh-button-width));
            gap: 8px;
            align-items: end;
            justify-content: end;
            align-self: end;
        }

        .doh-clear,
        .doh-primary,
        .doh-secondary {
            border: 1px solid rgba(96, 165, 250, 0.22);
            border-radius: 11px;
            width: var(--doh-button-width);
            height: var(--doh-control-height);
            min-height: var(--doh-control-height);
            padding: 0 10px;
            color: #cfe3ff;
            background: rgba(15, 23, 42, 0.36);
            font: inherit;
            font-size: 0.82rem;
            font-weight: 700;
            cursor: pointer;
            white-space: nowrap;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
            transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
        }

        .doh-clear:hover,
        .doh-secondary:hover {
            border-color: rgba(96, 165, 250, 0.42);
            background: rgba(37, 99, 235, 0.16);
            color: #fff;
            box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 8px 18px rgba(37, 99, 235, 0.1);
        }

        .doh-clear {
            min-width: 0;
        }

        .doh-primary {
            background: linear-gradient(135deg, #2563eb, #0ea5e9);
            border-color: rgba(125, 211, 252, 0.32);
            color: #fff;
            min-width: 0;
            box-shadow: 0 10px 20px rgba(37, 99, 235, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.18);
        }

        .doh-primary:hover {
            border-color: rgba(125, 211, 252, 0.46);
            background: linear-gradient(135deg, #1d4ed8, #0284c7);
            box-shadow: 0 12px 22px rgba(37, 99, 235, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.2);
        }

        .doh-primary:disabled,
        .doh-secondary:disabled {
            cursor: not-allowed;
            opacity: 0.58;
            transform: none;
            box-shadow: none;
        }

        .github-tool {
            position: relative;
            display: flex;
            flex-direction: column;
            gap: 12px;
            padding: 16px;
            border: var(--card-border);
            border-radius: 14px;
            background: var(--card-bg);
            box-shadow: var(--card-shadow);
            overflow: visible;
        }

        #github-accelerator-root.dropdown-open,
        #doh-root.dropdown-open {
            z-index: 80;
        }

        .github-tool-title {
            color: #93b4e8;
            font-size: 0.88rem;
            line-height: 1.45;
            text-align: left;
        }

        .github-commandbar {
            display: grid;
            grid-template-columns: 210px minmax(0, 1fr) 82px 82px 82px;
            gap: 0;
            align-items: start;
        }

        .doh-commandbar {
            grid-template-columns: minmax(520px, 0.62fr) minmax(220px, 1fr) 82px 82px;
        }

        .github-provider-combo,
        .doh-provider-combo {
            position: relative;
            min-width: 0;
            z-index: 20;
        }

        .github-provider-combo.open,
        .doh-provider-combo.open {
            z-index: 120;
        }

        .github-provider-trigger,
        .github-url-control,
        .github-submit,
        .github-command-speed,
        .github-command-clear,
        .doh-command-clear,
        .github-result-copy,
        .github-result-open {
            border: 1px solid rgba(148, 163, 184, 0.18);
            background: rgba(2, 6, 23, 0.28);
            color: #dbeafe;
            font: inherit;
            font-weight: 750;
            min-height: 48px;
        }

        .github-provider-trigger {
            width: 100%;
            height: 48px;
            border-radius: 12px 0 0 12px;
            padding: 0 0 0 12px;
            display: flex;
            align-items: center;
            gap: 8px;
            cursor: pointer;
            overflow: hidden;
        }

        .github-provider-current,
        .github-provider-option-name {
            min-width: 0;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        .github-provider-current {
            color: #bfdbfe;
            font-size: 0.92rem;
            font-weight: 850;
        }

        .github-provider-arrow {
            align-self: stretch;
            flex: 0 0 42px;
            width: 42px;
            margin-left: auto;
            border-left: 1px solid rgba(148, 163, 184, 0.16);
            color: #cbd5e1;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .github-provider-arrow::before {
            content: '';
            width: 7px;
            height: 7px;
            border-right: 2px solid currentColor;
            border-bottom: 2px solid currentColor;
            transform: rotate(45deg) translate(-1px, -1px);
        }

        .github-provider-combo.open .github-provider-arrow::before,
        .doh-provider-combo.open .github-provider-arrow::before {
            transform: rotate(225deg) translate(-1px, -1px);
        }

        .github-provider-menu {
            position: absolute;
            top: calc(100% + 6px);
            left: 0;
            z-index: 140;
            width: min(330px, calc(100vw - 36px));
            max-height: 312px;
            overflow: auto;
            padding: 6px;
            border: 1px solid rgba(96, 165, 250, 0.18);
            border-radius: 12px;
            background: #050b16;
            box-shadow: 0 22px 46px rgba(2, 6, 23, 0.68);
            scrollbar-color: rgba(148, 163, 184, 0.42) rgba(15, 23, 42, 0.6);
            scrollbar-width: thin;
        }

        .doh-provider-menu {
            width: min(560px, calc(100vw - 36px));
        }

        .github-provider-menu::-webkit-scrollbar {
            width: 8px;
        }

        .github-provider-menu::-webkit-scrollbar-track {
            background: rgba(15, 23, 42, 0.6);
            border-radius: 999px;
        }

        .github-provider-menu::-webkit-scrollbar-thumb {
            background: rgba(148, 163, 184, 0.42);
            border-radius: 999px;
        }

        .github-provider-option {
            width: 100%;
            min-width: 0;
            border: 0;
            border-radius: 8px;
            padding: 9px 10px;
            color: #dbeafe;
            background: transparent;
            font: inherit;
            font-weight: 750;
            display: grid;
            grid-template-columns: minmax(0, 1fr) auto 18px;
            gap: 8px;
            align-items: center;
            text-align: left;
            cursor: pointer;
        }

        .github-provider-option:hover,
        .github-provider-option.active {
            background: rgba(59, 130, 246, 0.2);
        }

        .github-provider-check {
            color: #bfdbfe;
            text-align: center;
        }

        .github-url-control {
            min-width: 0;
            height: 48px;
            border-left: 0;
            border-right: 0;
            padding: 0 12px;
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .github-url-icon {
            flex: 0 0 auto;
            color: #93b4e8;
            font-size: 0.72rem;
            letter-spacing: 0;
        }

        .github-url-control input {
            width: 100%;
            min-width: 0;
            border: 0;
            outline: 0;
            background: transparent;
            color: #f8fafc;
            font: inherit;
            font-size: 0.92rem;
        }

        .github-url-control input::placeholder {
            color: #94a3b8;
        }

        .github-command-clear,
        .github-command-speed,
        .doh-command-clear {
            position: relative;
            width: 100%;
            height: 48px;
            min-height: 48px;
            border-right: 0;
            border-radius: 0;
            padding: 0 12px;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 0.92rem;
            font-weight: 850;
            line-height: 1;
            white-space: nowrap;
        }

        .github-command-speed {
            border-left-color: rgba(148, 163, 184, 0.18);
            border-right: 0;
            border-radius: 0;
        }

        .github-command-clear:hover,
        .github-command-speed:hover,
        .doh-command-clear:hover {
            background: rgba(37, 99, 235, 0.16);
            box-shadow: inset 0 0 0 1px rgba(96, 165, 250, 0.38);
            color: #ffffff;
            z-index: 2;
        }

        .github-command-speed:disabled {
            cursor: not-allowed;
            opacity: 0.58;
        }

        .github-submit {
            position: relative;
            width: 100%;
            height: 48px;
            min-height: 48px;
            border-radius: 0 12px 12px 0;
            padding: 0;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 0.92rem;
            font-weight: 850;
            line-height: 1;
            white-space: nowrap;
            color: #e0f2fe;
            background: rgba(14, 165, 233, 0.12);
        }

        .github-submit:hover {
            border-color: rgba(125, 211, 252, 0.42);
            color: #ffffff;
            background: linear-gradient(135deg, rgba(37, 99, 235, 0.72), rgba(14, 165, 233, 0.78));
        }

        .github-result-copy,
        .github-result-open {
            height: 38px;
            min-width: 86px;
            min-height: 38px;
            border-radius: 10px;
            padding: 0 16px;
            cursor: pointer;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            font: inherit;
            font-size: 0.86rem;
            font-weight: 850;
            line-height: 1;
            white-space: nowrap;
        }

        .github-result-copy:hover,
        .github-result-open:hover {
            border-color: rgba(96, 165, 250, 0.38);
            background: rgba(37, 99, 235, 0.16);
            color: #ffffff;
        }

        .github-test-list {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
            gap: 8px;
        }

        .github-test-item {
            width: 100%;
            min-width: 0;
            min-height: 48px;
            border: 1px solid rgba(96, 165, 250, 0.14);
            border-radius: 10px;
            padding: 9px 11px;
            background: rgba(15, 23, 42, 0.34);
            color: #dbeafe;
            font: inherit;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 10px;
            text-align: left;
            transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
        }

        .github-test-item:hover,
        .github-test-item.active {
            border-color: rgba(96, 165, 250, 0.34);
            background: rgba(37, 99, 235, 0.16);
            box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
        }

        .github-test-name {
            min-width: 0;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
            font-size: 0.86rem;
            line-height: 1.35;
            font-weight: 750;
        }

        .github-test-metric {
            flex: 0 0 auto;
            color: #e2e8f0;
            background: transparent;
            font-size: 0.86rem;
            font-weight: 850;
            line-height: 1.3;
            white-space: nowrap;
            display: inline-flex;
            align-items: baseline;
            gap: 1px;
        }

        .github-test-value {
            font-size: 0.9rem;
            line-height: 1;
        }

        .github-test-unit {
            font-size: 0.62rem;
            line-height: 1;
        }

        .github-test-metric.fast {
            color: #10b981;
            background: transparent;
        }

        .github-test-metric.medium {
            color: #f59e0b;
            background: transparent;
        }

        .github-test-metric.slow {
            color: #fb7185;
            background: transparent;
        }

        .github-test-metric.pending,
        .github-test-metric.error {
            border-radius: 999px;
            padding: 3px 8px;
            color: #fff1f2;
            background: #fb5b6b;
            font-size: 0.72rem;
        }

        .github-test-metric.pending {
            color: #fffbeb;
            background: #d97706;
        }

        .github-inline-error {
            width: 100%;
            color: #fecaca;
            font-size: 0.82rem;
            line-height: 1.5;
            padding: 10px 12px;
            border: 1px solid rgba(248, 113, 113, 0.16);
            border-radius: 10px;
            background: rgba(239, 68, 68, 0.09);
        }

        .doh-result {
            border: var(--card-border);
            border-radius: 12px;
            background: var(--card-bg);
            overflow: hidden;
        }

        .github-result {
            border: var(--card-border);
            border-radius: 12px;
            background: var(--card-bg);
            overflow: hidden;
        }

        .github-result-head {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 12px;
            padding: 12px 14px;
            border-bottom: 1px solid rgba(148, 163, 184, 0.12);
        }

        .github-result-title {
            color: #f8fafc;
            font-size: 0.92rem;
            font-weight: 850;
        }

        .github-result-actions {
            display: flex;
            gap: 8px;
        }

        .github-result-url {
            display: block;
            margin: 14px;
            border: var(--card-border);
            border-radius: 10px;
            background: transparent;
            color: #dbeafe;
            padding: 12px 13px;
            font-family: 'SF Mono', 'Menlo', Consolas, monospace;
            font-size: 0.8rem;
            line-height: 1.55;
            text-decoration: none;
            overflow-wrap: anywhere;
        }

        .github-result-url:hover {
            color: #ffffff;
            border-color: rgba(96, 165, 250, 0.3);
            background: rgba(37, 99, 235, 0.08);
        }

        .doh-result-panel {
            display: flex;
            flex-direction: column;
        }

        .doh-result-head {
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 12px;
            width: 100%;
            padding: 14px 16px;
            border: 0;
            background: transparent;
            border-bottom: 1px solid rgba(148, 163, 184, 0.12);
            font: inherit;
            text-align: left;
            cursor: default;
            transition: background 0.2s ease;
        }

        .doh-result-title {
            color: #f8fafc;
            font-size: 0.92rem;
            font-weight: 800;
            line-height: 1.4;
        }

        .doh-result-meta {
            display: flex;
            align-items: center;
            gap: 8px;
            flex: 0 0 auto;
        }

        .doh-result-copy,
        .doh-result-toggle {
            border: 1px solid rgba(148, 163, 184, 0.18);
            border-radius: 10px;
            background: rgba(2, 6, 23, 0.28);
            color: #dbeafe;
            width: auto;
            min-width: 86px;
            height: 38px;
            min-height: 38px;
            padding: 0 16px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            font: inherit;
            font-size: 0.86rem;
            font-weight: 850;
            line-height: 1;
            text-align: center;
            white-space: nowrap;
            cursor: pointer;
            box-shadow: none;
            transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
        }

        .doh-result-copy:hover,
        .doh-result-toggle:hover {
            border-color: rgba(96, 165, 250, 0.42);
            background: rgba(37, 99, 235, 0.16);
            color: #fff;
            box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 8px 18px rgba(37, 99, 235, 0.1);
        }

        .doh-tabs-bar {
            display: flex;
            align-items: flex-end;
            justify-content: space-between;
            gap: 12px;
            padding: 12px 14px 0;
            border-bottom: 1px solid rgba(148, 163, 184, 0.16);
            background: transparent;
        }

        .doh-tabs {
            display: flex;
            flex: 1;
            flex-wrap: wrap;
            gap: 4px;
            min-width: 0;
        }

        .doh-result-copy {
            margin-bottom: 0;
        }

        .doh-tab {
            min-height: 40px;
            border: 1px solid transparent;
            border-bottom: 0;
            border-radius: 10px 10px 0 0;
            background: transparent;
            color: #9fb3d0;
            padding: 0 14px;
            font: inherit;
            font-size: 0.82rem;
            font-weight: 800;
            cursor: pointer;
            transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
        }

        .doh-tab:hover {
            color: #dbeafe;
            background: rgba(96, 165, 250, 0.08);
        }

        .doh-tab.active {
            color: #60a5fa;
            background: rgba(15, 23, 42, 0.28);
            border-color: rgba(148, 163, 184, 0.16);
        }

        .doh-tab-content {
            padding: 14px;
            background: transparent;
        }

        .doh-record-list {
            border: 1px solid rgba(96, 165, 250, 0.12);
            border-radius: 12px;
            padding: 12px;
            background: transparent;
            display: flex;
            flex-direction: column;
            gap: 8px;
        }

        .doh-count {
            border-radius: 10px;
            background: rgba(96, 165, 250, 0.08);
            color: #e5e7eb;
            font-size: 0.86rem;
            font-weight: 800;
            padding: 10px 12px;
            margin-bottom: 6px;
        }

        .doh-row {
            display: grid;
            grid-template-columns: minmax(180px, 1fr) auto auto auto;
            gap: 8px;
            align-items: center;
            border: 1px solid rgba(96, 165, 250, 0.18);
            border-radius: 9px;
            background: rgba(15, 23, 42, 0.24);
            padding: 8px 10px;
        }

        .doh-row-ns {
            grid-template-columns: minmax(0, 1fr) auto;
            align-items: start;
        }

        .doh-address {
            color: #f8fafc;
            font-family: 'SF Mono', 'Menlo', Consolas, monospace;
            font-size: 0.82rem;
            line-height: 1.5;
            overflow-wrap: anywhere;
        }

        .doh-chip {
            display: inline-flex;
            align-items: center;
            min-height: 26px;
            border-radius: 7px;
            background: rgba(59, 130, 246, 0.1);
            color: #93c5fd;
            padding: 2px 8px;
            font-size: 0.75rem;
            font-weight: 750;
            line-height: 1.4;
            white-space: nowrap;
        }

        .doh-ttl {
            color: #cbd5e1;
            font-size: 0.78rem;
            font-weight: 700;
            white-space: nowrap;
            justify-self: end;
        }

        .doh-ns-line,
        .doh-soa {
            color: #cbd5e1;
            font-size: 0.8rem;
            line-height: 1.7;
            margin-top: 6px;
        }

        .doh-soa .doh-chip {
            margin-bottom: 6px;
        }

        .doh-raw {
            max-height: 360px;
            overflow: auto;
            border: 1px solid rgba(96, 165, 250, 0.12);
            border-radius: 12px;
            background: rgba(15, 23, 42, 0.38);
            color: #dbeafe;
            padding: 14px;
            font-family: 'SF Mono', 'Menlo', Consolas, monospace;
            font-size: 0.76rem;
            line-height: 1.55;
            white-space: pre;
        }

        .doh-empty,
        .doh-error {
            color: #9ca3af;
            font-size: 0.8rem;
            line-height: 1.5;
            padding: 12px;
        }

        .doh-error {
            color: #fca5a5;
        }

        @media (max-width: 760px) {
            .doh-card {
                --doh-control-height: 42px;
                --doh-button-width: 52px;
                padding: 14px;
                gap: 12px;
            }

            .doh-form {
                grid-template-columns: minmax(0, 1fr) calc((var(--doh-button-width) * 2) + 6px);
                gap: 11px 7px;
                align-items: end;
            }

            .doh-field:first-child {
                grid-column: 1 / -1;
            }

            .doh-domain-field {
                grid-column: 1;
            }

            .doh-field select,
            .doh-field input,
            .doh-clear,
            .doh-primary,
            .doh-secondary {
                min-height: var(--doh-control-height);
                font-size: 0.78rem;
            }

            .doh-action-row {
                grid-column: 2;
                grid-template-columns: repeat(2, var(--doh-button-width));
                gap: 6px;
                align-self: end;
                justify-content: end;
            }

            .doh-clear {
                padding: 0 8px;
            }

            .doh-primary {
                padding: 0 8px;
            }

            .github-tool {
                padding: 12px;
                border-radius: 12px;
            }

            .github-tool-title {
                text-align: left;
                font-size: 0.8rem;
            }

            .github-commandbar {
                grid-template-columns: repeat(3, minmax(0, 1fr));
                gap: 8px 0;
            }

            .doh-commandbar {
                grid-template-columns: repeat(2, minmax(0, 1fr));
            }

            .github-provider-combo,
            .doh-provider-combo {
                grid-column: 1 / -1;
            }

            .github-provider-trigger {
                border-radius: 11px;
            }

            .github-provider-menu {
                width: 100%;
                max-height: 280px;
            }

            .github-url-control {
                grid-column: 1 / -1;
                border-left: 1px solid rgba(148, 163, 184, 0.18);
                border-right: 1px solid rgba(148, 163, 184, 0.18);
                border-radius: 11px;
            }

            .github-command-clear,
            .github-command-speed,
            .doh-command-clear {
                padding: 0 8px;
            }

            .github-command-speed,
            .doh-command-clear {
                border-radius: 11px 0 0 11px;
            }

            .github-command-clear {
                border-radius: 0;
            }

            .github-submit {
                border-radius: 0 11px 11px 0;
            }

            .github-test-list {
                grid-template-columns: 1fr;
            }

            .github-test-metric {
                font-size: 0.78rem;
            }

            .github-test-metric.pending,
            .github-test-metric.error {
                font-size: 0.68rem;
                padding: 3px 7px;
            }

            .doh-result-head {
                gap: 10px;
                padding: 12px 14px;
            }

            .doh-result-title {
                min-width: 0;
                overflow: hidden;
                text-overflow: ellipsis;
                white-space: nowrap;
            }

            .doh-result-meta {
                flex-shrink: 0;
                margin-left: auto;
                gap: 6px;
            }

            .doh-tabs-bar {
                align-items: stretch;
                flex-direction: column;
                gap: 10px;
            }

            .doh-result-copy {
                width: auto;
                min-width: 74px;
                margin-bottom: 0;
            }

            .doh-row {
                grid-template-columns: 1fr;
                align-items: start;
            }

            .doh-ttl {
                justify-self: start;
            }
        }


        footer { 
            text-align: center; font-size: 0.75rem; color: #4b5563; 
            margin-top: 30px; font-weight: 500;
        }
        footer a { color: #6b7280; text-decoration: none; transition: color 0.2s; }
        footer a:hover { color: #9ca3af; text-decoration: underline; }
        
        svg { width: 18px; height: 18px; flex-shrink: 0; }
        .icon-lg { width: 24px; height: 24px; }

        #tooltip {
            position: fixed; background: rgba(0, 0, 0, 0.95); color: #fff;
            padding: 8px 12px; border-radius: 6px; font-size: 0.75rem;
            pointer-events: none; opacity: 0; transition: opacity 0.15s, transform 0.15s;
            z-index: 1000; border: 1px solid #374151;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
            white-space: nowrap; transform: translateY(10px); left: 0; top: 0;
        }
        #tooltip.visible { opacity: 1; transform: translateY(0); }
        .tooltip-date { color: #9ca3af; margin-bottom: 2px; display: block; font-size: 0.7rem;}
        .tooltip-detail { font-weight: 600; color: #fff; }
        .tooltip-detail.error { color: #ef4444; }
        .tooltip-detail.success { color: #10b981; }

        .ip-cards-container {
            display: grid; grid-template-columns: 1fr; gap: 12px; margin-bottom: 12px;
        }
        @media (min-width: 768px) { .ip-cards-container { grid-template-columns: repeat(2, 1fr); } }
        @media (min-width: 1024px) { .ip-cards-container { grid-template-columns: repeat(4, 1fr); } }

        .ip-card {
            background: var(--card-bg);
            border: var(--card-border);
            border-radius: 16px; padding: 20px;
            display: flex; flex-direction: column;
            min-height: 150px; transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease, border-color 0.22s ease;
            position: relative; overflow: hidden;
            box-shadow: var(--card-shadow);
            backdrop-filter: blur(12px);
            -webkit-backdrop-filter: blur(12px);
        }
        .ip-card:hover { box-shadow: var(--card-hover-shadow); border-color: rgba(96,165,250,0.28); background: var(--card-hover-bg); }
        
        .ip-card-head { display: flex; align-items: center; gap: 8px; font-size: 0.85rem; font-weight: 700; margin-bottom: 12px; opacity: 0.9; }
        .dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; box-shadow: 0 0 8px currentColor; }
        
        .ip-card:nth-child(1) .ip-card-head { color: #f97316; } .ip-card:nth-child(1) .dot { background: #f97316; color: #f97316; }
        .ip-card:nth-child(2) .ip-card-head { color: #10b981; } .ip-card:nth-child(2) .dot { background: #10b981; color: #10b981; }
        .ip-card:nth-child(3) .ip-card-head { color: #3b82f6; } .ip-card:nth-child(3) .dot { background: #3b82f6; color: #3b82f6; }
        .ip-card:nth-child(4) .ip-card-head { color: #ec4899; } .ip-card:nth-child(4) .dot { background: #ec4899; color: #ec4899; }

        .ip-text { font-size: 1.4rem; font-weight: 700; color: #fff; margin-bottom: 6px; word-break: break-all; line-height: 1.2; letter-spacing: 0.5px; background: transparent; border: 0; display: block; padding: 0; text-align: left; width: 100%; }
        .ip-text.clickable { cursor: pointer; transition: color 0.2s; }
        .ip-text.clickable:hover { color: #60a5fa; text-decoration: underline; }
        .ip-sub-val { font-size: 0.8rem; color: #9ca3af; margin-bottom: auto; }
        .ip-desc { font-size: 0.7rem; color: #4b5563; margin-top: 15px; border-top: 1px dashed rgba(255,255,255,0.1); padding-top: 8px; }

        /* ==================== 重点重构：延迟卡片 ==================== */
        /* 网格系统：手机 1 列，平板 2 列，PC 4 列 */
        .latency-cards {
            display: grid;
            grid-template-columns: 1fr;
            gap: 12px;
            margin-top: 0px;
        }
        @media (min-width: 768px) {
            .latency-cards { grid-template-columns: repeat(2, 1fr); }
        }
        @media (min-width: 1200px) {
            .latency-cards { grid-template-columns: repeat(4, 1fr); }
        }

        .latency-card {
            background: var(--card-bg);
            border: var(--card-border);
            border-radius: 16px;
            padding: 15px; /* 增加内边距 */
            display: flex;
            flex-direction: column; /* 垂直排列 */
            gap: 8px;
            transition: transform 0.22s ease, background 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
            box-shadow: var(--card-shadow);
            backdrop-filter: blur(12px);
            -webkit-backdrop-filter: blur(12px);
        }
        .latency-card:hover {
            background: var(--card-hover-bg);
            border-color: rgba(96, 165, 250, 0.28);
            box-shadow: var(--card-hover-shadow);
        }

        /* 顶部行：[Icon+Name] ... [Value+Tag] */
        .latency-card-top {
            display: flex;
            justify-content: space-between;
            align-items: center;
            width: 100%;
        }

        /* 左侧信息组 */
        .latency-info {
            display: flex;
            align-items: center;
            gap: 10px;
        }
        .latency-icon-box {
            width: 32px; height: 32px;
            display: flex; align-items: center; justify-content: center;
            flex-shrink: 0;
            border-radius: 10px;
            background: linear-gradient(145deg, rgba(248, 250, 252, 0.13), rgba(15, 23, 42, 0.2));
            border: 1px solid rgba(255, 255, 255, 0.12);
            box-shadow: 0 8px 18px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.12);
        }
        .latency-card-site-0 .latency-icon-box {
            background: linear-gradient(145deg, rgba(22, 119, 255, 0.14), rgba(15, 23, 42, 0.22));
            border-color: rgba(22, 119, 255, 0.22);
        }
        .latency-card-bilibili .latency-icon-box {
            background: linear-gradient(145deg, rgba(251, 114, 153, 0.14), rgba(15, 23, 42, 0.22));
            border-color: rgba(251, 114, 153, 0.24);
        }
        .latency-card-site-2 .latency-icon-box {
            background: linear-gradient(145deg, rgba(9, 184, 62, 0.14), rgba(15, 23, 42, 0.22));
            border-color: rgba(9, 184, 62, 0.24);
        }
        .latency-card-site-3 .latency-icon-box {
            background: linear-gradient(145deg, rgba(249, 115, 22, 0.14), rgba(15, 23, 42, 0.22));
            border-color: rgba(249, 115, 22, 0.25);
        }
        .latency-card-github .latency-icon-box {
            background: linear-gradient(145deg, rgba(248, 250, 252, 0.14), rgba(15, 23, 42, 0.24));
            border-color: rgba(255, 255, 255, 0.14);
            color: #f8fafc;
        }
        .latency-card-jsdelivr .latency-icon-box {
            background: linear-gradient(145deg, rgba(240, 219, 79, 0.15), rgba(15, 23, 42, 0.22));
            border-color: rgba(240, 219, 79, 0.25);
        }
        .latency-card-jsdelivr .latency-icon-box svg path {
            fill: #f59e0b;
        }
        .latency-card-cloudflare .latency-icon-box {
            background: linear-gradient(145deg, rgba(243, 128, 32, 0.15), rgba(15, 23, 42, 0.22));
            border-color: rgba(243, 128, 32, 0.26);
        }
        .latency-card-youtube .latency-icon-box {
            background: linear-gradient(145deg, rgba(239, 68, 68, 0.16), rgba(15, 23, 42, 0.22));
            border-color: rgba(239, 68, 68, 0.27);
        }
        .latency-icon-box svg {
            width: 18px; height: 18px;
            display: block;
            filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.18));
        }
        .latency-name {
            font-weight: 600; color: #e5e7eb; font-size: 0.95rem;
        }

        /* 右侧状态组 */
        .latency-status {
            display: flex;
            align-items: center;
            gap: 8px;
        }
        .latency-value {
            font-family: 'SF Mono', 'Menlo', monospace;
            font-weight: 700;
            font-size: 0.9rem;
            color: #9ca3af;
        }
        .latency-tag {
            font-size: 0.65rem;
            padding: 2px 6px;
            border-radius: 4px;
            font-weight: 600;
            white-space: nowrap;
            border: 1px solid transparent;
        }
        .latency-tag.domestic { color: #10b981; background: rgba(16, 185, 129, 0.1); border-color: rgba(16, 185, 129, 0.2); }
        .latency-tag.intl { color: #3b82f6; background: rgba(59, 130, 246, 0.1); border-color: rgba(59, 130, 246, 0.2); }

        /* 底部跑马灯：独占一行，铺满 */
        .latency-bars {
            display: flex; gap: 3px; height: 6px;
            width: 100%; /* 铺满 */
            align-items: center;
            margin-top: 4px; /* 稍微与上面分开 */
        }
        .latency-bar {
            flex: 1; height: 100%; background-color: #374151; border-radius: 2px;
            transition: background-color 0.3s;
        }
        .latency-bar.loading { animation: latencyPulse 1.5s ease-in-out infinite; }
        @keyframes latencyPulse { 0%, 100% { opacity: 0.3; } 50% { opacity: 0.8; } }

        /* 弹窗及其他组件 */
        .ip-detail-modal {
            position: fixed; top: 0; left: 0; right: 0; bottom: 0;
            background: rgba(0, 0, 0, 0.85); backdrop-filter: blur(5px); z-index: 2000;
            display: flex; align-items: center; justify-content: center; padding: 20px;
            overflow: hidden;
            animation: fadeIn 0.2s ease-out;
        }
        @keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

        .ip-detail-content {
            background: rgba(30, 41, 59, 0.82); backdrop-filter: blur(24px) saturate(135%); -webkit-backdrop-filter: blur(24px) saturate(135%);
            width: 100%; max-width: 660px; border-radius: 20px; border: 1px solid rgba(255, 255, 255, 0.12);
            padding: 0; max-height: min(780px, calc(100dvh - 40px)); overflow: hidden; color: #fff; position: relative;
            display: flex; flex-direction: column;
            box-shadow: 0 28px 80px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.08);
        }
        .ip-detail-head {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 14px;
            flex-shrink: 0;
            padding: 22px 22px 14px 24px;
            border-bottom: 1px solid rgba(148, 163, 184, 0.12);
        }
        .ip-detail-body {
            flex: 1 1 auto;
            min-height: 0;
            overflow-y: auto;
            overflow-x: hidden;
            padding: 18px 22px 16px 24px;
            overscroll-behavior: contain;
            scrollbar-gutter: stable;
            scrollbar-width: thin;
            scrollbar-color: rgba(96, 165, 250, 0.34) transparent;
        }
        .ip-detail-body::-webkit-scrollbar { width: 6px; }
        .ip-detail-body::-webkit-scrollbar-track { background: transparent; }
        .ip-detail-body::-webkit-scrollbar-thumb {
            background: rgba(96, 165, 250, 0.34);
            border-radius: 999px;
            border: 1px solid rgba(30, 41, 59, 0.82);
        }
        .ip-detail-body::-webkit-scrollbar-thumb:hover {
            background: rgba(96, 165, 250, 0.62);
        }
        .ip-detail-close {
            width: 32px;
            height: 32px;
            border-radius: 10px;
            border: 1px solid rgba(148, 163, 184, 0.14);
            background: rgba(15, 23, 42, 0.24);
            color: #cbd5e1;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            flex-shrink: 0;
            box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
            transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
        }
        .ip-detail-close svg {
            width: 18px;
            height: 18px;
        }
        .ip-detail-close:hover {
            color: #fff;
            background: rgba(239, 68, 68, 0.14);
            border-color: rgba(239, 68, 68, 0.32);
        }
        .ip-detail-title { font-size: 1.35rem; font-weight: 800; display: flex; align-items: center; gap: 10px; color: #f8fafc; min-width: 0; }
        .ip-detail-source { font-size: 0.75rem; background: rgba(148, 163, 184, 0.14); border: 1px solid rgba(148, 163, 184, 0.16); padding: 3px 9px; border-radius: 7px; color: #9ca3af; font-weight: 600; }
        
        .ip-detail-section { margin-bottom: 17px; border-bottom: 1px solid rgba(148, 163, 184, 0.16); padding-bottom: 13px; }
        .ip-detail-section:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
        .ip-detail-section-title { font-size: 1rem; font-weight: 800; color: #60a5fa; margin-bottom: 12px; }
        .ip-detail-item {
            display: grid;
            grid-template-columns: minmax(128px, 0.36fr) minmax(0, 1fr);
            gap: 16px;
            align-items: center;
            padding: 8px 0;
            font-size: 0.92rem;
            border-bottom: 1px dashed rgba(148, 163, 184, 0.12);
        }
        .ip-detail-item:last-child { border-bottom: none; }
        .ip-detail-label { color: #9ca3af; position: relative; font-weight: 600; }
        .ip-detail-value { font-weight: 700; text-align: right; color: #e5e7eb; min-width: 0; overflow-wrap: anywhere; justify-self: end; }
        .ip-detail-value-multiline { line-height: 1.52; max-width: 440px; justify-self: end; }
        
        .ip-detail-badge,
        .ip-detail-chip {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            padding: 3px 9px;
            border-radius: 7px;
            font-size: 0.8rem;
            font-weight: 800;
            line-height: 1.35;
            border: 1px solid transparent;
        }
        .ip-detail-type-sep {
            color: #64748b;
            margin: 0 4px;
            font-weight: 800;
        }
        .badge-success { background: rgba(16, 185, 129, 0.2); color: #10b981; }
        .badge-info { background: rgba(59, 130, 246, 0.2); color: #3b82f6; }
        .badge-warning { background: rgba(234, 179, 8, 0.2); color: #eab308; }
        .badge-high { background: rgba(249, 115, 22, 0.2); color: #f97316; }
        .badge-critical { background: rgba(239, 68, 68, 0.2); color: #ef4444; }
        .ip-type-residential { background: rgba(16, 185, 129, 0.16); border-color: rgba(16, 185, 129, 0.24); color: #34d399; }
        .ip-type-hosting { background: rgba(96, 165, 250, 0.16); border-color: rgba(96, 165, 250, 0.24); color: #60a5fa; }
        .ip-type-business { background: rgba(249, 115, 22, 0.16); border-color: rgba(249, 115, 22, 0.24); color: #fb923c; }
        .ip-type-unknown { background: rgba(148, 163, 184, 0.14); border-color: rgba(148, 163, 184, 0.18); color: #cbd5e1; }
        
        .success-text { color: #10b981; } .warning-text { color: #eab308; } .danger-text { color: #ef4444; }
        
        .loading-spinner {
            display: inline-block; width: 14px; height: 14px; border: 2px solid #f3f3f3;
            border-top: 2px solid #3b82f6; border-radius: 50%; animation: spin 1s linear infinite; margin-left: 8px;
        }
        @keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

        .score-help-icon {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 16px;
            height: 16px;
            background: rgba(148, 163, 184, 0.18);
            border: 1px solid rgba(148, 163, 184, 0.18);
            border-radius: 50%;
            color: #94a3b8;
            font-size: 11px;
            cursor: help;
            margin-left: 5px;
            vertical-align: 1px;
            transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
        }
        .score-help-icon[aria-expanded="true"] {
            color: #bfdbfe;
            background: rgba(96, 165, 250, 0.18);
            border-color: rgba(96, 165, 250, 0.28);
        }
        .score-tooltip {
            display: none;
            position: static;
            background: rgba(15, 23, 42, 0.96);
            border: 1px solid rgba(148, 163, 184, 0.16);
            padding: 15px;
            border-radius: 12px;
            box-shadow: 0 18px 42px rgba(0,0,0,0.45), inset 0 1px 0 rgba(255,255,255,0.06);
            width: 100%;
            max-width: none;
            margin: 4px 0 10px;
            font-size: 0.8rem;
            color: #e5e7eb;
            line-height: 1.55;
            backdrop-filter: blur(16px);
            -webkit-backdrop-filter: blur(16px);
        }
        .score-tooltip-note {
            display: block;
            color: #94a3b8;
            font-weight: 600;
            margin-top: 8px;
        }
        .score-formula-list {
            display: grid;
            gap: 8px;
            margin-top: 12px;
        }
        .score-formula-row {
            display: grid;
            grid-template-columns: 86px minmax(0, 1fr);
            align-items: center;
            gap: 10px;
            padding: 9px 10px;
            border-radius: 9px;
            background: rgba(15, 23, 42, 0.62);
            border: 1px solid rgba(148, 163, 184, 0.09);
        }
        .score-formula-row span {
            color: #cbd5e1;
            font-weight: 800;
        }
        .score-formula-row code {
            justify-self: end;
            min-width: 0;
            color: #93c5fd;
            font-family: 'SF Mono', 'Menlo', monospace;
            font-size: 0.76rem;
            font-weight: 800;
            text-align: right;
            white-space: normal;
            overflow-wrap: anywhere;
        }
        .score-risk-title {
            display: block;
            margin: 13px 0 8px;
            color: #f8fafc;
            font-weight: 900;
        }
        .score-risk-grid {
            display: grid;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 7px 12px;
            padding: 10px;
            border-radius: 10px;
            background: rgba(15, 23, 42, 0.54);
            border: 1px solid rgba(148, 163, 184, 0.08);
        }
        .score-risk-grid span {
            position: relative;
            padding-left: 13px;
            color: #cbd5e1;
            font-weight: 700;
        }
        .score-risk-grid span::before {
            content: "";
            position: absolute;
            left: 0;
            top: 0.58em;
            width: 5px;
            height: 5px;
            border-radius: 50%;
            background: #fb923c;
            box-shadow: 0 0 8px rgba(251, 146, 60, 0.42);
        }
        @media (max-width: 640px) {
            .score-tooltip {
                padding: 13px;
                margin: 2px 0 9px;
            }

            .score-formula-row {
                grid-template-columns: 72px minmax(0, 1fr);
                gap: 8px;
                padding: 8px;
            }

            .score-risk-grid {
                gap: 7px 8px;
                padding: 9px;
            }
        }
        .score-tooltip.show { display: block; }
        .tooltip-header {
            display: block;
            color: #f8fafc;
            font-size: 0.94rem;
            font-weight: 900;
            margin-bottom: 8px;
            border-bottom: 1px solid rgba(148, 163, 184, 0.14);
            padding-bottom: 9px;
        }

        html[data-theme="light"] .subtitle-badge {
            background: rgba(255, 255, 255, 0.72);
            border-color: rgba(15, 23, 42, 0.1);
            color: #64748b;
        }

        html[data-theme="light"] .subtitle-badge:hover {
            background: #fff;
            border-color: rgba(37, 99, 235, 0.24);
            color: #1e293b;
        }

        html[data-theme="light"] h1 {
            text-shadow: none;
        }

        html[data-theme="light"] .status-box,
        html[data-theme="light"] .uptime-item,
        html[data-theme="light"] .btn-card,
        html[data-theme="light"] .ip-card,
        html[data-theme="light"] .latency-card {
            background: var(--card-bg);
            border-color: rgba(37, 99, 235, 0.16);
        }

        html[data-theme="light"] .status-box {
            background: var(--card-bg);
            border-color: rgba(37, 99, 235, 0.16);
        }

        html[data-theme="light"] .main-card {
            box-shadow: var(--glass-shadow);
        }

        html[data-theme="light"] .status-box {
            box-shadow: var(--card-shadow);
        }

        html[data-theme="light"] .uptime-item:hover,
        html[data-theme="light"] .btn-card:hover,
        html[data-theme="light"] .ip-card:hover,
        html[data-theme="light"] .latency-card:hover {
            background: var(--card-hover-bg);
            border-color: rgba(37, 99, 235, 0.22);
            box-shadow: var(--card-hover-shadow);
        }

        html[data-theme="light"] .section-header {
            text-shadow: none;
        }

        html[data-theme="light"] .status-text h3,
        html[data-theme="light"] .btn-title,
        html[data-theme="light"] .ip-text,
        html[data-theme="light"] .uptime-title,
        html[data-theme="light"] .latency-name {
            color: #111827;
        }

        html[data-theme="light"] .btn-desc,
        html[data-theme="light"] .ip-sub-val,
        html[data-theme="light"] .uptime-stats-footer,
        html[data-theme="light"] .latency-value,
        html[data-theme="light"] .status-text p {
            color: #64748b;
        }

        html[data-theme="light"] .ip-desc,
        html[data-theme="light"] footer {
            color: #94a3b8;
        }

        html[data-theme="light"] footer a {
            color: #64748b;
        }

        html[data-theme="light"] footer a:hover {
            color: #2563eb;
        }

        html[data-theme="light"] .uptime-bars,
        html[data-theme="light"] .status-icon {
            background: rgba(15, 23, 42, 0.05);
        }

        html[data-theme="light"] .latency-icon-box {
            background: linear-gradient(145deg, #ffffff, #f8fafc);
            border-color: rgba(15, 23, 42, 0.1);
            box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.96);
        }

        html[data-theme="light"] .latency-icon-box svg {
            filter: none;
        }

        html[data-theme="light"] .latency-card-site-0 .latency-icon-box {
            background: linear-gradient(145deg, #ffffff, #eff6ff);
            border-color: rgba(22, 119, 255, 0.28);
        }

        html[data-theme="light"] .latency-card-bilibili .latency-icon-box {
            background: linear-gradient(145deg, #ffffff, #fdf2f8);
            border-color: rgba(251, 114, 153, 0.3);
        }

        html[data-theme="light"] .latency-card-site-2 .latency-icon-box {
            background: linear-gradient(145deg, #ffffff, #ecfdf5);
            border-color: rgba(9, 184, 62, 0.3);
        }

        html[data-theme="light"] .latency-card-site-3 .latency-icon-box {
            background: linear-gradient(145deg, #ffffff, #fff7ed);
            border-color: rgba(234, 88, 12, 0.32);
        }

        html[data-theme="light"] .latency-card-github .latency-icon-box {
            background: linear-gradient(145deg, #ffffff, #f1f5f9);
            border-color: rgba(17, 24, 39, 0.14);
            fill: #111827;
            color: #111827;
        }

        html[data-theme="light"] .latency-card-jsdelivr .latency-icon-box {
            background: linear-gradient(145deg, #ffffff, #fff7ed);
            border-color: rgba(202, 138, 4, 0.34);
        }

        html[data-theme="light"] .latency-card-jsdelivr .latency-icon-box svg path {
            fill: #b45309;
        }

        html[data-theme="light"] .latency-card-cloudflare .latency-icon-box {
            background: linear-gradient(145deg, #ffffff, #fff7ed);
            border-color: rgba(243, 128, 32, 0.34);
        }

        html[data-theme="light"] .latency-card-youtube .latency-icon-box {
            background: linear-gradient(145deg, #ffffff, #fef2f2);
            border-color: rgba(239, 68, 68, 0.34);
        }

        html[data-theme="light"] .uptime-bar,
        html[data-theme="light"] .latency-bar {
            background-color: #cbd5e1;
        }

        html[data-theme="light"] .uptime-bar.active {
            background-color: #10b981;
        }

        html[data-theme="light"] .uptime-bar.slow {
            background-color: #eab308;
        }

        html[data-theme="light"] .uptime-bar.down {
            background-color: #ef4444;
        }

        html[data-theme="light"] .latency-bar.loading {
            background-color: #cbd5e1 !important;
        }

        html[data-theme="light"] .uptime-link-icon {
            color: #64748b;
            background: rgba(15, 23, 42, 0.035);
            border-color: rgba(15, 23, 42, 0.08);
            opacity: 0.9;
        }

        html[data-theme="light"] .uptime-link-icon:hover {
            color: #2563eb;
            background: rgba(37, 99, 235, 0.08);
            border-color: rgba(37, 99, 235, 0.18);
            opacity: 1;
        }

        html[data-theme="light"] .btn-icon-box {
            background: linear-gradient(145deg, #ffffff, #f8fafc);
            border-color: rgba(15, 23, 42, 0.1);
            color: #2563eb;
            box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.96);
        }

        html[data-theme="light"] .btn-icon-box svg {
            filter: none;
        }

        html[data-theme="light"] .btn-icon-box.icon-doc {
            background: linear-gradient(145deg, #ffffff, #eff6ff);
            border-color: rgba(22, 119, 255, 0.28);
            color: #2563eb;
        }

        html[data-theme="light"] .btn-icon-box.icon-github {
            background: linear-gradient(145deg, #ffffff, #f1f5f9);
            border-color: rgba(17, 24, 39, 0.14);
            color: #111827;
        }

        html[data-theme="light"] .btn-icon-box.icon-telegram {
            background: linear-gradient(145deg, #ffffff, #f0f9ff);
            border-color: rgba(14, 165, 233, 0.3);
            color: #0284c7;
        }

        html[data-theme="light"] .converter-card .btn-desc {
            color: #1e40af;
        }

        html[data-theme="light"] .copy-enabled .copy-sub:hover {
            color: #2563eb;
        }

        html[data-theme="light"] .client-group-title,
        html[data-theme="light"] .client-note,
        html[data-theme="light"] .section-note {
            color: #64748b;
        }

        html[data-theme="light"] .doh-card {
            background: linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(239, 246, 255, 0.84));
            border-color: rgba(59, 130, 246, 0.16);
            box-shadow: 0 10px 24px rgba(15, 23, 42, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.95);
        }

        html[data-theme="light"] .doh-field span,
        html[data-theme="light"] .doh-empty {
            color: #64748b;
        }

        html[data-theme="light"] .doh-field select,
        html[data-theme="light"] .doh-field input,
        html[data-theme="light"] .doh-result {
            background: var(--card-bg);
            border-color: rgba(37, 99, 235, 0.16);
            color: #111827;
        }

        html[data-theme="light"] .doh-result-head {
            background: transparent;
            border-bottom-color: rgba(15, 23, 42, 0.1);
        }

        html[data-theme="light"] .doh-result-copy,
        html[data-theme="light"] .doh-result-toggle {
            border-color: rgba(15, 23, 42, 0.12);
            color: #1e293b;
            background: rgba(255, 255, 255, 0.76);
            box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.88);
        }

        html[data-theme="light"] .doh-result-copy:hover,
        html[data-theme="light"] .doh-result-toggle:hover {
            border-color: rgba(37, 99, 235, 0.22);
            color: #1e293b;
            background: rgba(37, 99, 235, 0.08);
            box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95), 0 8px 18px rgba(37, 99, 235, 0.08);
        }

        html[data-theme="light"] .doh-result-title,
        html[data-theme="light"] .doh-count,
        html[data-theme="light"] .doh-address {
            color: #111827;
        }

        html[data-theme="light"] .github-result-url {
            background: transparent;
            border-color: rgba(37, 99, 235, 0.14);
            color: #1e40af;
        }

        html[data-theme="light"] .github-result-url:hover {
            background: rgba(37, 99, 235, 0.06);
            border-color: rgba(37, 99, 235, 0.26);
            color: #1d4ed8;
        }

        html[data-theme="light"] .github-tool {
            background: var(--card-bg);
            border-color: rgba(37, 99, 235, 0.16);
            box-shadow: var(--card-shadow);
        }

        html[data-theme="light"] .github-tool-title {
            color: #64748b;
        }

        html[data-theme="light"] .github-provider-trigger,
        html[data-theme="light"] .github-url-control,
        html[data-theme="light"] .github-submit,
        html[data-theme="light"] .github-command-speed,
        html[data-theme="light"] .github-command-clear,
        html[data-theme="light"] .doh-command-clear,
        html[data-theme="light"] .github-result-copy,
        html[data-theme="light"] .github-result-open,
        html[data-theme="light"] .github-test-item {
            background: rgba(255, 255, 255, 0.76);
            border-color: rgba(15, 23, 42, 0.12);
            color: #1e293b;
            box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.88);
        }

        html[data-theme="light"] .github-result {
            background: var(--card-bg);
            border-color: rgba(37, 99, 235, 0.16);
            color: #1e293b;
            box-shadow: var(--card-shadow);
        }

        html[data-theme="light"] .github-submit {
            background: linear-gradient(135deg, #2563eb, #0ea5e9);
            border-color: rgba(37, 99, 235, 0.4);
            color: #ffffff;
            box-shadow: 0 10px 20px rgba(37, 99, 235, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.22);
        }

        html[data-theme="light"] .github-submit:hover {
            background: linear-gradient(135deg, #1d4ed8, #0284c7);
            border-color: rgba(37, 99, 235, 0.48);
            color: #ffffff;
            box-shadow: 0 12px 22px rgba(37, 99, 235, 0.26), inset 0 1px 0 rgba(255, 255, 255, 0.24);
        }

        html[data-theme="light"] .github-command-clear,
        html[data-theme="light"] .github-command-speed,
        html[data-theme="light"] .doh-command-clear {
            color: #1e293b;
        }

        html[data-theme="light"] .github-provider-menu {
            background: rgba(248, 250, 252, 0.98);
            border-color: rgba(37, 99, 235, 0.16);
            box-shadow: 0 18px 34px rgba(15, 23, 42, 0.18);
        }

        html[data-theme="light"] .github-command-clear:hover,
        html[data-theme="light"] .github-command-speed:hover,
        html[data-theme="light"] .doh-command-clear:hover {
            background: rgba(37, 99, 235, 0.08);
            box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.22);
            color: #1e293b;
        }

        html[data-theme="light"] .github-provider-option {
            color: #1e293b;
        }

        html[data-theme="light"] .github-provider-option:hover,
        html[data-theme="light"] .github-provider-option.active,
        html[data-theme="light"] .github-test-item:hover,
        html[data-theme="light"] .github-test-item.active {
            background: rgba(15, 23, 42, 0.05);
            border-color: rgba(15, 23, 42, 0.1);
        }

        html[data-theme="light"] .github-provider-current {
            color: #1e293b;
        }

        html[data-theme="light"] .github-provider-arrow {
            color: #64748b;
        }

        html[data-theme="light"] .github-provider-trigger:hover .github-provider-arrow {
            color: #2563eb;
        }

        html[data-theme="light"] .github-url-icon {
            color: #475569;
        }

        html[data-theme="light"] .github-provider-check {
            color: #64748b;
        }

        html[data-theme="light"] .github-url-control input {
            color: #111827;
        }

        html[data-theme="light"] .github-result-title {
            color: #111827;
        }

        html[data-theme="light"] .github-result-head {
            border-bottom-color: rgba(15, 23, 42, 0.1);
        }

        html[data-theme="light"] .github-inline-error {
            color: #b91c1c;
            background: rgba(239, 68, 68, 0.08);
            border-color: rgba(239, 68, 68, 0.16);
        }

        html[data-theme="light"] .doh-ttl,
        html[data-theme="light"] .doh-ns-line,
        html[data-theme="light"] .doh-soa {
            color: #64748b;
        }

        html[data-theme="light"] .doh-tabs-bar {
            background: transparent;
            border-bottom-color: rgba(15, 23, 42, 0.12);
        }

        html[data-theme="light"] .doh-tab-content {
            background: transparent;
        }

        html[data-theme="light"] .doh-tab {
            color: #64748b;
        }

        html[data-theme="light"] .doh-tab:hover,
        html[data-theme="light"] .doh-tab.active {
            color: #2563eb;
            background: rgba(37, 99, 235, 0.06);
            border-color: rgba(15, 23, 42, 0.12);
        }

        html[data-theme="light"] .doh-clear:not(.doh-command-clear),
        html[data-theme="light"] .doh-secondary {
            border-color: rgba(37, 99, 235, 0.22);
            color: #1d4ed8;
            background: rgba(255, 255, 255, 0.72);
            box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
        }

        html[data-theme="light"] .doh-clear:not(.doh-command-clear):hover,
        html[data-theme="light"] .doh-secondary:hover {
            border-color: rgba(37, 99, 235, 0.38);
            color: #1e40af;
            background: rgba(37, 99, 235, 0.08);
            box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95), 0 8px 18px rgba(37, 99, 235, 0.08);
        }

        html[data-theme="light"] .doh-primary {
            background: linear-gradient(135deg, #2563eb, #0ea5e9);
            border-color: rgba(37, 99, 235, 0.4);
            color: #ffffff;
            box-shadow: 0 10px 20px rgba(37, 99, 235, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.22);
        }

        html[data-theme="light"] .doh-primary:hover {
            background: linear-gradient(135deg, #1d4ed8, #0284c7);
            border-color: rgba(37, 99, 235, 0.48);
            color: #ffffff;
            box-shadow: 0 12px 22px rgba(37, 99, 235, 0.26), inset 0 1px 0 rgba(255, 255, 255, 0.24);
        }

        html[data-theme="light"] .doh-command-clear {
            background: rgba(255, 255, 255, 0.76);
            border-color: rgba(15, 23, 42, 0.12);
            color: #1e293b;
            box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.88);
        }

        html[data-theme="light"] .doh-command-clear:hover {
            background: rgba(37, 99, 235, 0.08);
            border-color: rgba(37, 99, 235, 0.22);
            color: #1e293b;
            box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.22);
        }

        html[data-theme="light"] .doh-record-list,
        html[data-theme="light"] .doh-row,
        html[data-theme="light"] .doh-raw {
            border-color: rgba(37, 99, 235, 0.12);
        }

        html[data-theme="light"] .doh-record-list {
            background: transparent;
        }

        html[data-theme="light"] .doh-row,
        html[data-theme="light"] .doh-raw {
            background: rgba(255, 255, 255, 0.58);
        }

        html[data-theme="light"] .doh-count,
        html[data-theme="light"] .doh-chip {
            background: rgba(37, 99, 235, 0.1);
            border-color: rgba(37, 99, 235, 0.16);
            color: #1e40af;
        }

        html[data-theme="light"] .doh-raw {
            color: #334155;
        }

        html[data-theme="light"] .doh-error {
            color: #dc2626;
        }

        html[data-theme="light"] .client-card .btn-desc.url {
            color: #1e40af;
        }

        html[data-theme="light"] .client-card {
            background: linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(239, 246, 255, 0.84));
            border-color: rgba(59, 130, 246, 0.16);
            box-shadow: 0 10px 24px rgba(15, 23, 42, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.95);
            color: #111827;
        }

        html[data-theme="light"] .client-card:hover {
            background: linear-gradient(145deg, #ffffff, rgba(219, 234, 254, 0.82));
            border-color: rgba(37, 99, 235, 0.28);
            box-shadow: 0 14px 30px rgba(37, 99, 235, 0.13), inset 0 1px 0 rgba(255, 255, 255, 0.98);
        }

        html[data-theme="light"] .client-name {
            color: #111827 !important;
        }

        html[data-theme="light"] .client-desc {
            color: #475569 !important;
        }

        html[data-theme="light"] .platform-tag {
            color: #2563eb;
            background: rgba(37, 99, 235, 0.12);
            border-color: rgba(37, 99, 235, 0.16);
        }

        html[data-theme="light"] .platform-tag.android {
            color: #059669;
            background: rgba(16, 185, 129, 0.12);
            border-color: rgba(5, 150, 105, 0.16);
        }

        html[data-theme="light"] .platform-tag.ios,
        html[data-theme="light"] .platform-tag.macos {
            color: #7c3aed;
            background: rgba(124, 58, 237, 0.11);
            border-color: rgba(124, 58, 237, 0.16);
        }

        html[data-theme="light"] .platform-tag.linux {
            color: #c2410c;
            background: rgba(249, 115, 22, 0.12);
            border-color: rgba(234, 88, 12, 0.16);
        }

        html[data-theme="light"] .mini-badge {
            background: rgba(16, 185, 129, 0.12);
            border-color: rgba(5, 150, 105, 0.24);
            color: #059669;
        }

        html[data-theme="light"] .divider {
            background: linear-gradient(90deg, transparent, rgba(15, 23, 42, 0.12), transparent);
        }

        html[data-theme="light"] #tooltip,
        html[data-theme="light"] .score-tooltip {
            background: #fff;
            color: #111827;
            border-color: rgba(15, 23, 42, 0.12);
            box-shadow: 0 12px 24px rgba(15, 23, 42, 0.16);
        }

        html[data-theme="light"] .score-help-icon {
            background: rgba(15, 23, 42, 0.06);
            border-color: rgba(15, 23, 42, 0.1);
            color: #64748b;
        }

        html[data-theme="light"] .tooltip-header {
            color: #111827;
            border-bottom-color: rgba(15, 23, 42, 0.12);
        }

        html[data-theme="light"] .tooltip-detail {
            color: #111827;
        }

        html[data-theme="light"] .score-tooltip-note {
            color: #64748b;
        }

        html[data-theme="light"] .score-formula-row,
        html[data-theme="light"] .score-risk-grid {
            background: rgba(248, 250, 252, 0.88);
            border-color: rgba(15, 23, 42, 0.08);
        }

        html[data-theme="light"] .score-formula-row span,
        html[data-theme="light"] .score-risk-grid span {
            color: #475569;
        }

        html[data-theme="light"] .score-formula-row code {
            color: #1d4ed8;
        }

        html[data-theme="light"] .score-risk-title {
            color: #111827;
        }

        html[data-theme="light"] .ip-detail-modal {
            background: rgba(15, 23, 42, 0.42);
        }

        html[data-theme="light"] .ip-detail-content {
            background: rgba(255, 255, 255, 0.94);
            border-color: rgba(15, 23, 42, 0.12);
            color: #111827;
            box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.2);
        }

        html[data-theme="light"] .ip-detail-head {
            border-bottom-color: rgba(15, 23, 42, 0.1);
        }

        html[data-theme="light"] .ip-detail-body {
            scrollbar-color: rgba(37, 99, 235, 0.34) transparent;
        }

        html[data-theme="light"] .ip-detail-body::-webkit-scrollbar-thumb {
            background: rgba(37, 99, 235, 0.32);
            border-color: rgba(255, 255, 255, 0.94);
        }

        html[data-theme="light"] .ip-detail-close,
        html[data-theme="light"] .ip-detail-label,
        html[data-theme="light"] .ip-detail-source {
            color: #64748b;
        }

        html[data-theme="light"] .ip-detail-close {
            background: rgba(15, 23, 42, 0.05);
            border-color: rgba(15, 23, 42, 0.1);
            box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.88);
        }

        html[data-theme="light"] .ip-detail-value,
        html[data-theme="light"] .ip-detail-title {
            color: #111827;
        }

        html[data-theme="light"] .ip-detail-close:hover {
            color: #dc2626;
            background: rgba(239, 68, 68, 0.09);
            border-color: rgba(239, 68, 68, 0.22);
        }

        html[data-theme="light"] .ip-detail-section {
            border-bottom-color: rgba(15, 23, 42, 0.12);
        }

        html[data-theme="light"] .ip-detail-item {
            border-bottom-color: rgba(15, 23, 42, 0.08);
        }

        html[data-theme="light"] .ip-detail-source,
        html[data-theme="light"] .score-help-icon {
            background: rgba(15, 23, 42, 0.08);
        }

        html[data-theme="light"] .ip-type-residential {
            background: rgba(16, 185, 129, 0.12);
            border-color: rgba(5, 150, 105, 0.2);
            color: #059669;
        }

        html[data-theme="light"] .ip-type-hosting {
            background: rgba(37, 99, 235, 0.12);
            border-color: rgba(37, 99, 235, 0.2);
            color: #2563eb;
        }

        html[data-theme="light"] .ip-type-business {
            background: rgba(249, 115, 22, 0.12);
            border-color: rgba(234, 88, 12, 0.2);
            color: #c2410c;
        }

        html[data-theme="light"] .ip-type-unknown {
            background: rgba(100, 116, 139, 0.12);
            border-color: rgba(100, 116, 139, 0.18);
            color: #475569;
        }

        @media (max-width: 640px) {
            body {
                align-items: flex-start;
                padding: 12px 8px;
            }

            body::before {
                background-size: 34px 34px;
            }

            body::after {
                filter: blur(26px);
                height: 320px;
            }

            header,
            .subtitle-badge {
                animation: none;
            }

            .main-card {
                overflow: visible;
                backdrop-filter: none;
                -webkit-backdrop-filter: none;
                box-shadow: 0 14px 34px rgba(0, 0, 0, 0.24);
            }

            .status-box,
            .uptime-item,
            .btn-card,
            .ip-card,
            .latency-card,
            .ip-detail-content {
                backdrop-filter: none;
                -webkit-backdrop-filter: none;
                opacity: 1;
                visibility: visible;
                box-shadow: var(--card-shadow);
                will-change: auto;
            }

            .status-box,
            .uptime-item,
            .btn-card,
            .ip-card,
            .latency-card {
                background: var(--card-bg) !important;
            }

            html[data-theme="light"] .status-box,
            html[data-theme="light"] .uptime-item,
            html[data-theme="light"] .btn-card,
            html[data-theme="light"] .ip-card,
            html[data-theme="light"] .latency-card {
                background: var(--card-bg) !important;
            }

            .main-card::before {
                display: none;
            }

            .btn-card,
            .ip-card,
            .latency-card,
            .uptime-item {
                transform: none;
            }

            .btn-card:hover,
            .ip-card:hover,
            .latency-card:hover,
            .uptime-item:hover {
                transform: none;
            }

            .btn-card *,
            .ip-card *,
            .latency-card *,
            .uptime-item * {
                opacity: 1;
                visibility: visible;
            }

            .ip-detail-modal {
                align-items: center;
                padding: 18px 22px;
            }

            .ip-detail-content {
                width: min(460px, calc(100vw - 36px));
                max-width: none;
                padding: 0;
                max-height: calc(100dvh - 36px);
                border-radius: 16px;
                overflow: hidden;
            }

            .ip-detail-head {
                padding: 15px 12px 10px 14px;
                gap: 10px;
                align-items: center;
            }

            .ip-detail-body {
                padding: 13px 12px 12px 14px;
                scrollbar-width: thin;
                scrollbar-gutter: stable;
            }

            .ip-detail-body::-webkit-scrollbar {
                width: 4px;
            }

            .ip-detail-close {
                width: 30px;
                height: 30px;
                border-radius: 9px;
            }

            .ip-detail-close svg {
                width: 17px;
                height: 17px;
            }

            .ip-detail-title {
                font-size: 1.08rem;
                line-height: 1.25;
                margin-bottom: 0;
                padding-right: 0;
                flex-wrap: wrap;
                gap: 7px;
            }

            .ip-detail-source {
                font-size: 0.68rem;
                padding: 2px 7px;
                border-radius: 6px;
            }

            .ip-detail-section {
                margin-bottom: 14px;
                padding-bottom: 11px;
            }

            .ip-detail-section-title {
                font-size: 0.92rem;
                margin-bottom: 8px;
            }

            .ip-detail-item {
                grid-template-columns: minmax(92px, 0.42fr) minmax(0, 1fr);
                gap: 8px;
                align-items: center;
                padding: 7px 0;
                font-size: 0.82rem;
            }

            .ip-detail-label {
                line-height: 1.35;
            }

            .ip-detail-value,
            .ip-detail-value-multiline {
                text-align: right;
                justify-self: end;
                max-width: none;
                line-height: 1.35;
            }

            .ip-detail-chip,
            .ip-detail-badge {
                margin-top: 0;
                padding: 2px 7px;
                border-radius: 6px;
                font-size: 0.72rem;
            }

            .ip-detail-type-sep {
                margin: 0 2px;
            }

            .score-help-icon {
                width: 15px;
                height: 15px;
                line-height: 15px;
                font-size: 11px;
                margin-left: 3px;
            }

            .score-tooltip {
                width: 100%;
                max-width: none;
            }
        }
