@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;500;600;700;800;900&family=Share+Tech+Mono&family=Noto+Sans+SC:wght@400;500;600;700&display=swap');

:root {
    --neon-cyan: #00f0ff;
    --neon-purple: #b026ff;
    --neon-pink: #ff00aa;
    --neon-green: #00ff88;
    --neon-yellow: #ffea00;
    --neon-orange: #ff6b35;
    --dark-bg: #07070c;
    --dark-card: #0e0e18;
    --dark-elevated: #151524;
    --dark-border: #1e1e35;
    --text-primary: #f0f0ff;
    --text-secondary: #a0a8c0;
    --text-dim: #606880;
    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 22px;
    --shadow-sm: 0 2px 12px rgba(0,0,0,0.4);
    --shadow-md: 0 4px 24px rgba(0,0,0,0.5);
    --shadow-glow: 0 0 30px rgba(0,240,255,0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html {
    font-size: 17px;
    overscroll-behavior-y: none;
}

body {
    font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--dark-bg);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    padding-bottom: 90px;
    -webkit-font-smoothing: antialiased;
}

/* ===== 赛博网格背景 ===== */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(0, 240, 255, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 240, 255, 0.025) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
    z-index: 0;
}

/* ===== 粒子背景 ===== */
.cyber-particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: var(--neon-cyan);
    border-radius: 50%;
    opacity: 0.3;
    animation: float linear infinite;
}

@keyframes float {
    0% { transform: translateY(100vh) translateX(0) scale(1); opacity: 0; }
    10% { opacity: 0.3; }
    90% { opacity: 0.3; }
    100% { transform: translateY(-10vh) translateX(40px) scale(0.5); opacity: 0; }
}

/* ===== 顶部导航栏 ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 64px;
    background: rgba(7, 7, 12, 0.95);
    backdrop-filter: blur(20px) saturate(1.2);
    -webkit-backdrop-filter: blur(20px) saturate(1.2);
    border-bottom: 1px solid rgba(0, 240, 255, 0.12);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    z-index: 1000;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--neon-cyan);
    text-shadow: 0 0 12px rgba(0, 240, 255, 0.4);
    text-decoration: none;
    letter-spacing: 0.5px;
}

.nav-brand svg {
    width: 30px;
    height: 30px;
    filter: drop-shadow(0 0 8px rgba(0, 240, 255, 0.5));
}

/* ===== 底部Tab导航 ===== */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 76px;
    background: rgba(7, 7, 12, 0.96);
    backdrop-filter: blur(20px) saturate(1.2);
    -webkit-backdrop-filter: blur(20px) saturate(1.2);
    border-top: 1px solid rgba(0, 240, 255, 0.1);
    display: flex;
    align-items: stretch;
    justify-content: space-around;
    z-index: 1000;
    padding: 4px 8px 16px;
}

.bottom-nav a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    color: var(--text-dim);
    text-decoration: none;
    font-size: 0.68rem;
    font-weight: 500;
    flex: 1;
    border-radius: 14px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    padding: 6px 0;
}

.bottom-nav a svg {
    width: 24px;
    height: 24px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    stroke-width: 1.8;
}

.bottom-nav a.active {
    color: var(--neon-cyan);
}

.bottom-nav a.active svg {
    filter: drop-shadow(0 0 8px rgba(0, 240, 255, 0.5));
    stroke-width: 2.2;
}

.bottom-nav a .nav-indicator {
    position: absolute;
    bottom: 2px;
    width: 20px;
    height: 3px;
    background: var(--neon-cyan);
    border-radius: 2px;
    opacity: 0;
    transform: scaleX(0);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 8px rgba(0, 240, 255, 0.4);
}

.bottom-nav a.active .nav-indicator {
    opacity: 1;
    transform: scaleX(1);
}

/* ===== 主容器 ===== */
.main-container {
    position: relative;
    z-index: 1;
    padding-top: 76px;
    max-width: 480px;
    margin: 0 auto;
    padding-left: 16px;
    padding-right: 16px;
}

/* ===== 页面标题 ===== */
.page-header {
    text-align: center;
    margin-bottom: 28px;
    padding: 12px 0;
    animation: fadeSlideDown 0.5s ease-out;
}

.page-header h1 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.6rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--neon-cyan), var(--neon-purple), var(--neon-pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 12px rgba(0, 240, 255, 0.25));
    margin-bottom: 14px;
    letter-spacing: 1px;
}

.page-header .subtitle {
    color: var(--text-secondary);
    font-size: 0.92rem;
    line-height: 1.8;
    padding: 0 8px;
}

.page-header .subtitle .highlight {
    color: var(--neon-cyan);
    background: rgba(0, 240, 255, 0.1);
    padding: 3px 10px;
    border-radius: 6px;
    border: 1px solid rgba(0, 240, 255, 0.2);
    font-weight: 600;
    font-size: 0.88rem;
}

.page-header .subtitle .highlight-purple {
    color: var(--neon-purple);
    background: rgba(176, 38, 255, 0.1);
    padding: 3px 10px;
    border-radius: 6px;
    border: 1px solid rgba(176, 38, 255, 0.2);
    font-weight: 600;
    font-size: 0.88rem;
}

/* ===== 赛博卡片 ===== */
.cyber-card {
    background: var(--dark-card);
    border: 1px solid var(--dark-border);
    border-radius: var(--radius-lg);
    padding: 22px;
    margin-bottom: 16px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-sm);
    animation: cardSlideUp 0.5s ease-out both;
}

.cyber-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--neon-cyan), transparent);
    opacity: 0.5;
}

.cyber-card:active {
    transform: scale(0.985);
}

.cyber-card .card-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--neon-cyan);
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.cyber-card .card-title svg {
    width: 20px;
    height: 20px;
    filter: drop-shadow(0 0 4px rgba(0, 240, 255, 0.3));
}

/* ===== 步骤指示器 ===== */
.step-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 24px;
    padding: 0 20px;
}

.step-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.15);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.step-dot.active {
    background: var(--neon-cyan);
    border-color: var(--neon-cyan);
    box-shadow: 0 0 12px rgba(0, 240, 255, 0.5);
    transform: scale(1.3);
}

.step-dot.completed {
    background: var(--neon-green);
    border-color: var(--neon-green);
    box-shadow: 0 0 8px rgba(0, 255, 136, 0.3);
}

.step-line {
    flex: 1;
    max-width: 40px;
    height: 2px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 1px;
    position: relative;
    overflow: hidden;
}

.step-line::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--neon-green), var(--neon-cyan));
    transition: width 0.5s ease;
}

.step-line.completed::after {
    width: 100%;
}

/* ===== 步骤内容切换 ===== */
.step-content {
    display: none;
    animation: stepIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.step-content.active {
    display: block;
}

@keyframes stepIn {
    from { opacity: 0; transform: translateX(30px); }
    to { opacity: 1; transform: translateX(0); }
}

/* ===== 上传区域 ===== */
.upload-zone {
    border: 2px dashed rgba(0, 240, 255, 0.25);
    border-radius: var(--radius-lg);
    padding: 48px 24px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(0, 240, 255, 0.02);
    position: relative;
    overflow: hidden;
}

.upload-zone:hover,
.upload-zone.dragover {
    border-color: var(--neon-cyan);
    background: rgba(0, 240, 255, 0.05);
    box-shadow: 0 0 40px rgba(0, 240, 255, 0.08), inset 0 0 40px rgba(0, 240, 255, 0.02);
}

.upload-zone .upload-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 18px;
    color: var(--neon-cyan);
    filter: drop-shadow(0 0 12px rgba(0, 240, 255, 0.4));
    transition: all 0.3s ease;
    animation: floatIcon 3s ease-in-out infinite;
}

@keyframes floatIcon {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

.upload-zone:hover .upload-icon {
    transform: translateY(-4px) scale(1.05);
    animation: none;
}

.upload-zone .upload-text {
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 8px;
    font-weight: 500;
}

.upload-zone .upload-hint {
    font-size: 0.85rem;
    color: var(--text-dim);
}

.upload-zone .upload-or {
    color: var(--text-dim);
    margin: 10px 0;
    font-size: 0.9rem;
}

.upload-zone input[type="file"] {
    display: none;
}

/* ===== 按钮 ===== */
.cyber-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 36px;
    font-family: 'Orbitron', 'Noto Sans SC', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
    width: 100%;
    min-height: 56px;
    touch-action: manipulation;
}

.cyber-btn-primary {
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.18), rgba(176, 38, 255, 0.18));
    color: var(--neon-cyan);
    border: 1.5px solid rgba(0, 240, 255, 0.35);
    text-shadow: 0 0 10px rgba(0, 240, 255, 0.3);
}

.cyber-btn-primary:hover {
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.28), rgba(176, 38, 255, 0.28));
    box-shadow: 0 0 30px rgba(0, 240, 255, 0.15), 0 0 60px rgba(176, 38, 255, 0.08);
    transform: translateY(-1px);
}

.cyber-btn-primary:active {
    transform: translateY(1px) scale(0.98);
}

.cyber-btn-primary:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none;
}

.cyber-btn-secondary {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-secondary);
    border: 1.5px solid rgba(255, 255, 255, 0.1);
}

.cyber-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    border-color: rgba(255, 255, 255, 0.2);
}

/* 按钮涟漪效果 */
.cyber-btn .ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(0, 240, 255, 0.25);
    transform: scale(0);
    animation: rippleEffect 0.6s ease-out;
    pointer-events: none;
}

@keyframes rippleEffect {
    to { transform: scale(4); opacity: 0; }
}

/* ===== 状态面板 ===== */
.status-panel {
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(0, 240, 255, 0.12);
    border-radius: var(--radius-md);
    padding: 16px;
    min-height: 140px;
    font-size: 0.88rem;
    line-height: 1.9;
    color: var(--text-secondary);
    overflow-y: auto;
    max-height: 220px;
    font-family: 'Share Tech Mono', monospace;
}

.status-panel .status-line {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 6px;
    opacity: 0;
    animation: fadeInUp 0.35s ease forwards;
}

.status-panel .status-line .timestamp {
    color: var(--text-dim);
    font-size: 0.75rem;
    min-width: 64px;
    flex-shrink: 0;
    margin-top: 1px;
}

.status-panel .status-line .tag {
    padding: 2px 7px;
    border-radius: 4px;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    flex-shrink: 0;
    margin-top: 1px;
}

.status-panel .status-line .tag.info {
    background: rgba(0, 240, 255, 0.12);
    color: var(--neon-cyan);
}

.status-panel .status-line .tag.success {
    background: rgba(0, 255, 136, 0.12);
    color: var(--neon-green);
}

.status-panel .status-line .tag.warn {
    background: rgba(255, 234, 0, 0.12);
    color: var(--neon-yellow);
}

.status-panel .status-line .tag.error {
    background: rgba(255, 0, 170, 0.12);
    color: var(--neon-pink);
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===== 进度条 ===== */
.progress-container {
    margin: 20px 0;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--neon-cyan), var(--neon-purple), var(--neon-pink));
    border-radius: 4px;
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.3);
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 30px;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.5));
    animation: shimmer 1.2s ease-in-out infinite;
}

@keyframes shimmer {
    0% { transform: translateX(0); opacity: 0; }
    50% { opacity: 1; }
    100% { transform: translateX(30px); opacity: 0; }
}

.progress-text {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
    font-size: 0.85rem;
    color: var(--text-dim);
    font-family: 'Orbitron', sans-serif;
}

/* ===== 结果面板 ===== */
.result-panel {
    border: 1.5px dashed rgba(0, 255, 136, 0.25);
    border-radius: var(--radius-md);
    padding: 40px 24px;
    text-align: center;
    min-height: 160px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    background: rgba(0, 255, 136, 0.02);
    transition: all 0.3s ease;
}

.result-panel .result-icon {
    width: 48px;
    height: 48px;
    color: var(--text-dim);
    transition: all 0.3s ease;
}

.result-panel .result-text {
    color: var(--text-dim);
    font-size: 0.95rem;
}

.result-panel.has-file {
    border-color: rgba(0, 255, 136, 0.4);
    background: rgba(0, 255, 136, 0.04);
    animation: resultPulse 2s ease-in-out infinite;
}

@keyframes resultPulse {
    0%, 100% { box-shadow: 0 0 0 rgba(0, 255, 136, 0); }
    50% { box-shadow: 0 0 20px rgba(0, 255, 136, 0.1); }
}

.result-panel.has-file .result-icon {
    color: var(--neon-green);
    filter: drop-shadow(0 0 10px rgba(0, 255, 136, 0.4));
    animation: checkBounce 0.5s ease;
}

@keyframes checkBounce {
    0% { transform: scale(0); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.result-panel.has-file .result-text {
    color: var(--neon-green);
}

/* ===== 选项网格 ===== */
.option-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.option-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease;
    user-select: none;
    min-height: 56px;
    position: relative;
}

.option-item:active {
    transform: scale(0.98);
}

.option-item:hover {
    background: rgba(0, 240, 255, 0.04);
    border-color: rgba(0, 240, 255, 0.15);
}

.option-item input[type="checkbox"],
.option-item input[type="radio"] {
    appearance: none;
    width: 22px;
    height: 22px;
    border: 2px solid var(--text-dim);
    border-radius: 6px;
    position: relative;
    cursor: pointer;
    transition: none;
    flex-shrink: 0;
    margin: 0;
}

.option-item input[type="radio"] {
    border-radius: 50%;
}

.option-item input[type="checkbox"]:checked,
.option-item input[type="radio"]:checked {
    background: var(--neon-cyan);
    border-color: var(--neon-cyan);
    box-shadow: none;
    animation: none;
}

.option-item input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 1px;
    width: 5px;
    height: 10px;
    border: solid var(--dark-bg);
    border-width: 0 2.5px 2.5px 0;
    transform: rotate(45deg);
}

.option-item input[type="radio"]:checked::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 5px;
    width: 8px;
    height: 8px;
    background: var(--dark-bg);
    border-radius: 50%;
}

.option-item .option-label {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.option-item:hover .option-label,
.option-item input:checked + .option-label {
    color: var(--text-primary);
}

/* ===== 两列布局 ===== */
.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

/* ===== 频段网格 ===== */
.band-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 16px;
}

.band-item {
    padding: 18px 8px;
    text-align: center;
    background: rgba(255, 255, 255, 0.03);
    border: 1.5px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease;
    font-size: 1rem;
    font-weight: 700;
    font-family: 'Orbitron', sans-serif;
    min-height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.band-item:active {
    transform: scale(0.95);
}

.band-item:hover {
    border-color: rgba(176, 38, 255, 0.3);
    background: rgba(176, 38, 255, 0.06);
    color: var(--neon-purple);
}

.band-item.active {
    border-color: var(--neon-purple);
    background: rgba(176, 38, 255, 0.15);
    color: var(--neon-purple);
    box-shadow: 0 0 20px rgba(176, 38, 255, 0.15);
}

/* ===== 信号强度条 ===== */
.signal-bars {
    display: flex;
    align-items: flex-end;
    gap: 4px;
    height: 32px;
}

.signal-bar {
    width: 8px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.signal-bar:nth-child(1) { height: 25%; }
.signal-bar:nth-child(2) { height: 50%; }
.signal-bar:nth-child(3) { height: 75%; }
.signal-bar:nth-child(4) { height: 100%; }

.signal-bar.active {
    background: var(--neon-green);
    box-shadow: 0 0 10px rgba(0, 255, 136, 0.4);
}

.signal-bar.active.warn {
    background: var(--neon-yellow);
    box-shadow: 0 0 10px rgba(255, 234, 0, 0.4);
}

.signal-bar.active.danger {
    background: var(--neon-pink);
    box-shadow: 0 0 10px rgba(255, 0, 170, 0.4);
}

/* ===== 滑块 ===== */
.cyber-slider {
    width: 100%;
    -webkit-appearance: none;
    appearance: none;
    height: 8px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    outline: none;
    margin: 14px 0;
}

.cyber-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--neon-cyan);
    cursor: pointer;
    box-shadow: 0 0 16px rgba(0, 240, 255, 0.5), 0 0 0 4px rgba(0, 240, 255, 0.1);
    border: 3px solid var(--dark-bg);
    transition: transform 0.15s ease;
}

.cyber-slider::-webkit-slider-thumb:active {
    transform: scale(1.2);
}

.cyber-slider::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--neon-cyan);
    cursor: pointer;
    box-shadow: 0 0 16px rgba(0, 240, 255, 0.5);
    border: 3px solid var(--dark-bg);
}

.slider-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--text-dim);
    margin-top: -2px;
    font-family: 'Share Tech Mono', monospace;
}

/* ===== 终端输出 ===== */
.terminal-output {
    background: #040408;
    border: 1px solid rgba(0, 240, 255, 0.12);
    border-radius: var(--radius-md);
    padding: 18px;
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.82rem;
    line-height: 1.8;
    color: var(--neon-green);
    min-height: 160px;
    overflow-y: auto;
    max-height: 280px;
}

.terminal-output .cmd {
    color: var(--neon-cyan);
}

.terminal-output .comment {
    color: var(--text-dim);
}

.terminal-output .success {
    color: var(--neon-green);
}

.terminal-output .warn {
    color: var(--neon-yellow);
}

.terminal-output .error {
    color: var(--neon-pink);
}

.terminal-output .cursor {
    display: inline-block;
    width: 8px;
    height: 15px;
    background: var(--neon-green);
    animation: blink 1s step-end infinite;
    vertical-align: middle;
    margin-left: 2px;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* ===== 底部信息 ===== */
.footer-info {
    text-align: center;
    padding: 20px;
    color: var(--text-dim);
    font-size: 0.78rem;
    margin-top: 20px;
    font-family: 'Share Tech Mono', monospace;
}

/* ===== 文件信息 ===== */
.file-info {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: rgba(0, 255, 136, 0.06);
    border: 1.5px solid rgba(0, 255, 136, 0.2);
    border-radius: var(--radius-md);
    margin-top: 14px;
    animation: fileSlideIn 0.4s ease;
}

@keyframes fileSlideIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.file-info svg {
    color: var(--neon-green);
    flex-shrink: 0;
    width: 22px;
    height: 22px;
}

.file-info .file-name {
    font-weight: 600;
    color: var(--neon-green);
    word-break: break-all;
    font-size: 0.9rem;
}

.file-info .file-size {
    color: var(--text-dim);
    font-size: 0.82rem;
    margin-left: auto;
    flex-shrink: 0;
    font-family: 'Share Tech Mono', monospace;
}

/* ===== 数值显示 ===== */
.value-display {
    font-family: 'Orbitron', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--neon-cyan);
    text-shadow: 0 0 15px rgba(0, 240, 255, 0.3);
    text-align: center;
    padding: 14px 0;
}

/* ===== 标签组 ===== */
.tag-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
}

.cyber-tag {
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 600;
    border: 1.5px solid;
    transition: all 0.2s ease;
    cursor: pointer;
    font-family: 'Orbitron', sans-serif;
    letter-spacing: 0.5px;
}

.cyber-tag.cyan {
    color: var(--neon-cyan);
    border-color: rgba(0, 240, 255, 0.3);
    background: rgba(0, 240, 255, 0.06);
}

.cyber-tag.purple {
    color: var(--neon-purple);
    border-color: rgba(176, 38, 255, 0.3);
    background: rgba(176, 38, 255, 0.06);
}

.cyber-tag.green {
    color: var(--neon-green);
    border-color: rgba(0, 255, 136, 0.3);
    background: rgba(0, 255, 136, 0.06);
}

.cyber-tag:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

/* ===== 加载动画 ===== */
.cyber-spinner {
    width: 48px;
    height: 48px;
    border: 3px solid rgba(0, 240, 255, 0.15);
    border-top-color: var(--neon-cyan);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.cyber-spinner-ring {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: 3px solid transparent;
    border-top-color: var(--neon-cyan);
    border-right-color: var(--neon-purple);
    animation: spin 1s linear infinite;
    margin: 0 auto;
    position: relative;
}

.cyber-spinner-ring::after {
    content: '';
    position: absolute;
    inset: 8px;
    border-radius: 50%;
    border: 2px solid transparent;
    border-bottom-color: var(--neon-pink);
    animation: spin 0.6s linear infinite reverse;
}

/* ===== 成功动画 ===== */
.success-check {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: rgba(0, 255, 136, 0.1);
    border: 2px solid var(--neon-green);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    animation: successPop 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.success-check svg {
    width: 36px;
    height: 36px;
    color: var(--neon-green);
    filter: drop-shadow(0 0 8px rgba(0, 255, 136, 0.4));
}

@keyframes successPop {
    0% { transform: scale(0); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

/* ===== 页面切换动画 ===== */
.page-enter {
    animation: pageEnter 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes pageEnter {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes cardSlideUp {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeSlideDown {
    from { opacity: 0; transform: translateY(-12px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 卡片交错动画 */
.cyber-card:nth-child(1) { animation-delay: 0s; }
.cyber-card:nth-child(2) { animation-delay: 0.08s; }
.cyber-card:nth-child(3) { animation-delay: 0.16s; }
.cyber-card:nth-child(4) { animation-delay: 0.24s; }
.cyber-card:nth-child(5) { animation-delay: 0.32s; }

/* ===== 脉冲发光 ===== */
.pulse-glow {
    animation: pulseGlow 2s ease-in-out infinite;
}

@keyframes pulseGlow {
    0%, 100% { box-shadow: 0 0 5px rgba(0, 240, 255, 0.1); }
    50% { box-shadow: 0 0 25px rgba(0, 240, 255, 0.2); }
}

/* ===== 滚动条 ===== */
::-webkit-scrollbar {
    width: 4px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(0, 240, 255, 0.2);
    border-radius: 2px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 240, 255, 0.4);
}

/* ===== 角标装饰 ===== */
.corner-deco {
    position: absolute;
    width: 14px;
    height: 14px;
    border: 2px solid var(--neon-cyan);
    opacity: 0.4;
}

.corner-deco.tl { top: -1px; left: -1px; border-right: none; border-bottom: none; }
.corner-deco.tr { top: -1px; right: -1px; border-left: none; border-bottom: none; }
.corner-deco.bl { bottom: -1px; left: -1px; border-right: none; border-top: none; }
.corner-deco.br { bottom: -1px; right: -1px; border-left: none; border-top: none; }

/* ===== 处理中动画 ===== */
.processing-overlay {
    position: fixed;
    inset: 0;
    background: rgba(7, 7, 12, 0.92);
    backdrop-filter: blur(8px);
    z-index: 2000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.processing-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.processing-overlay .processing-text {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.1rem;
    color: var(--neon-cyan);
    text-shadow: 0 0 15px rgba(0, 240, 255, 0.3);
}

.processing-overlay .processing-sub {
    font-size: 0.85rem;
    color: var(--text-dim);
}

/* ===== 步骤按钮区域 ===== */
.step-actions {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.step-actions .cyber-btn {
    flex: 1;
}

/* ===== 数据卡片 ===== */
.data-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-md);
    padding: 18px;
    text-align: center;
}

.data-card .data-label {
    font-size: 0.8rem;
    color: var(--text-dim);
    margin-bottom: 6px;
}

.data-card .data-value {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
}

/* ===== 状态徽章 ===== */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.82rem;
    font-weight: 600;
    font-family: 'Orbitron', sans-serif;
    letter-spacing: 0.5px;
}

.status-badge.online {
    background: rgba(0, 255, 136, 0.12);
    color: var(--neon-green);
    border: 1px solid rgba(0, 255, 136, 0.25);
}

.status-badge.online::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--neon-green);
    box-shadow: 0 0 8px rgba(0, 255, 136, 0.6);
    animation: pulseDot 2s ease-in-out infinite;
}

.status-badge.offline {
    background: rgba(255, 0, 170, 0.12);
    color: var(--neon-pink);
    border: 1px solid rgba(255, 0, 170, 0.25);
}

.status-badge.offline::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--neon-pink);
}

@keyframes pulseDot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.8); }
}

/* ===== 信息行 ===== */
.info-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    min-height: 52px;
}

.info-row:last-child {
    border-bottom: none;
}

.info-row .info-label {
    font-size: 0.92rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.info-row .info-label svg {
    width: 18px;
    height: 18px;
    color: var(--text-dim);
    flex-shrink: 0;
}

.info-row .info-value {
    font-family: 'Orbitron', 'Share Tech Mono', sans-serif;
    font-size: 0.92rem;
    color: var(--neon-cyan);
    text-align: right;
    font-weight: 600;
}

.info-row .info-value.green { color: var(--neon-green); }
.info-row .info-value.yellow { color: var(--neon-yellow); }
.info-row .info-value.pink { color: var(--neon-pink); }
.info-row .info-value.purple { color: var(--neon-purple); }
.info-row .info-value.dim { color: var(--text-dim); }

/* ===== 工具网格 ===== */
.tool-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

.tool-item {
    background: var(--dark-elevated);
    border: 1px solid var(--dark-border);
    border-radius: var(--radius-lg);
    padding: 22px 14px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    text-decoration: none;
    display: block;
    min-height: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.tool-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--neon-cyan), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.tool-item:active {
    transform: scale(0.96);
}

.tool-item:hover::before,
.tool-item:active::before {
    opacity: 0.6;
}

.tool-item .tool-icon {
    width: 36px;
    height: 36px;
    color: var(--neon-cyan);
    filter: drop-shadow(0 0 8px rgba(0, 240, 255, 0.3));
    transition: all 0.3s ease;
}

.tool-item:hover .tool-icon {
    transform: translateY(-3px) scale(1.1);
}

.tool-item .tool-name {
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--text-primary);
}

.tool-item .tool-desc {
    font-size: 0.75rem;
    color: var(--text-dim);
    line-height: 1.4;
}

/* ===== 快捷操作栏 ===== */
.quick-actions {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 4px 0 12px;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.quick-actions::-webkit-scrollbar {
    display: none;
}

.quick-btn {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: rgba(0, 240, 255, 0.08);
    border: 1px solid rgba(0, 240, 255, 0.18);
    border-radius: 24px;
    color: var(--neon-cyan);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    white-space: nowrap;
    touch-action: manipulation;
}

.quick-btn:active {
    transform: scale(0.95);
    background: rgba(0, 240, 255, 0.15);
}

.quick-btn svg {
    width: 16px;
    height: 16px;
}

/* ===== 实时数据刷新动画 ===== */
.data-refresh {
    animation: dataRefresh 2s ease-in-out infinite;
}

@keyframes dataRefresh {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* ===== 连接状态条 ===== */
.conn-status-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    background: rgba(0, 255, 136, 0.06);
    border: 1px solid rgba(0, 255, 136, 0.15);
    border-radius: var(--radius-md);
    margin-bottom: 16px;
    font-size: 0.85rem;
    color: var(--neon-green);
}

.conn-status-bar .conn-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--neon-green);
    box-shadow: 0 0 10px rgba(0, 255, 136, 0.5);
    animation: pulseDot 1.5s ease-in-out infinite;
}

/* ===== Ping结果 ===== */
.ping-result {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-md);
    margin-bottom: 10px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    animation: cardSlideUp 0.4s ease both;
}

.ping-result .ping-host {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.ping-result .ping-time {
    font-family: 'Orbitron', sans-serif;
    font-size: 1rem;
    font-weight: 700;
}

.ping-result .ping-time.good { color: var(--neon-green); }
.ping-result .ping-time.ok { color: var(--neon-yellow); }
.ping-result .ping-time.bad { color: var(--neon-pink); }

/* ===== 流量统计 ===== */
.traffic-stats {
    display: flex;
    gap: 14px;
}

.traffic-stat {
    flex: 1;
    text-align: center;
    padding: 18px 12px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.traffic-stat .stat-icon {
    width: 28px;
    height: 28px;
    margin: 0 auto 8px;
}

.traffic-stat .stat-icon.up { color: var(--neon-cyan); }
.traffic-stat .stat-icon.down { color: var(--neon-purple); }

.traffic-stat .stat-label {
    font-size: 0.78rem;
    color: var(--text-dim);
    margin-bottom: 4px;
}

.traffic-stat .stat-value {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
}

/* ===== 速度测试仪表盘 ===== */
.speed-gauge {
    width: 160px;
    height: 80px;
    margin: 0 auto;
    position: relative;
}

.speed-gauge svg {
    width: 100%;
    height: 100%;
}

.speed-value {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    font-family: 'Orbitron', sans-serif;
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--neon-cyan);
    text-shadow: 0 0 15px rgba(0, 240, 255, 0.3);
}

.speed-label {
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-dim);
    margin-top: 4px;
}

/* ===== 页面切换滑入动画 ===== */
.slide-in-right {
    animation: slideInRight 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(40px); }
    to { opacity: 1; transform: translateX(0); }
}

/* ===== 呼吸发光 ===== */
.breathing-glow {
    animation: breathingGlow 3s ease-in-out infinite;
}

@keyframes breathingGlow {
    0%, 100% { opacity: 0.6; filter: drop-shadow(0 0 5px rgba(0, 240, 255, 0.2)); }
    50% { opacity: 1; filter: drop-shadow(0 0 15px rgba(0, 240, 255, 0.5)); }
}

/* ===== 更大字体覆盖 ===== */
.page-header h1 {
    font-size: 1.75rem;
}

.page-header .subtitle {
    font-size: 0.98rem;
}

.card-title {
    font-size: 1rem;
}

.cyber-btn {
    font-size: 1.05rem;
    min-height: 58px;
}

/* ===== 响应式 ===== */
@media (min-width: 481px) {
    .main-container {
        max-width: 480px;
    }
}

@media (max-width: 380px) {
    html { font-size: 16px; }
    .page-header h1 { font-size: 1.5rem; }
    .cyber-card { padding: 18px; }
    .band-grid { grid-template-columns: repeat(3, 1fr); }
    .tool-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .tool-item { padding: 18px 10px; min-height: 100px; }
}

/* ===== 隐藏滚动条但保持功能（移动端） ===== */
.hide-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}
.hide-scrollbar::-webkit-scrollbar {
    display: none;
}

/* ===== 玻璃态提示框 ===== */
.toast {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, calc(-50% + 20px));
    background: rgba(14, 14, 24, 0.95);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(0, 240, 255, 0.2);
    border-radius: var(--radius-md);
    padding: 14px 24px;
    font-size: 0.9rem;
    color: var(--text-primary);
    z-index: 3000;
    opacity: 0;
    transition: all 0.3s ease;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    white-space: normal;
    width: calc(100% - 40px);
    max-width: 440px;
    text-align: center;
    pointer-events: none;
}

.toast.show {
    opacity: 1;
    transform: translate(-50%, -50%);
}

.toast.success { border-color: rgba(0, 255, 136, 0.3); color: var(--neon-green); }
.toast.error { border-color: rgba(255, 0, 170, 0.3); color: var(--neon-pink); }
.toast.warn { border-color: rgba(255, 234, 0, 0.3); color: var(--neon-yellow); }

/* ===== 赛博风格下拉框 ===== */
.cyber-select {
    width: 100%;
    padding: 14px 16px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 1rem;
    font-family: inherit;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23606880' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 40px;
}
.cyber-select:focus {
    border-color: var(--neon-cyan);
    box-shadow: 0 0 15px rgba(0,240,255,0.1);
}
.cyber-select option {
    background: var(--dark-card);
    color: var(--text-primary);
    padding: 10px;
}

/* ===== 启动加载遮罩 ===== */
.splash-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(7, 7, 12, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

.splash-overlay.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.splash-spinner {
    width: 90px;
    height: 90px;
    border: 5px solid rgba(0, 240, 255, 0.12);
    border-top-color: var(--neon-cyan);
    border-right-color: var(--neon-purple);
    border-radius: 50%;
    animation: splashSpin 1s linear infinite;
    box-shadow: 0 0 40px rgba(0, 240, 255, 0.2), inset 0 0 25px rgba(0, 240, 255, 0.08);
    margin-bottom: 32px;
}

@keyframes splashSpin {
    to { transform: rotate(360deg); }
}

.splash-text {
    font-family: 'Orbitron', 'Noto Sans SC', sans-serif;
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--neon-cyan);
    text-shadow: 0 0 20px rgba(0, 240, 255, 0.3);
    letter-spacing: 2px;
    text-align: center;
    line-height: 1.8;
}

.splash-dots::after {
    content: '';
    animation: splashDots 1.5s steps(4, end) infinite;
}

@keyframes splashDots {
    0%   { content: ''; }
    25%  { content: '.'; }
    50%  { content: '..'; }
    75%  { content: '...'; }
    100% { content: ''; }
}
