:root {
    /* 核心色板 - Cyberpunk Neon */
    --bg-dark: #050510;
    /* 深空黑 */
    --bg-panel: rgba(20, 20, 30, 0.6);
    /* 玻璃面板底色 */

    /* 霓虹主色 */
    --neon-cyan: #00f3ff;
    /* 青色 - 主交互/高亮 */
    --neon-pink: #ff00ff;
    /* 粉色 - 强调/边界 */
    --neon-yellow: #fcee0a;
    /* 黄色 - 警告/注意 */

    /* 状态色 */
    --success: #00ff9d;
    /* 荧光绿 */
    --danger: #ff2a2a;
    /* 警报红 */

    /* 文本色 */
    --text-main: #e0e0e0;
    /* 亮灰 */
    --text-dim: #8892b0;
    /* 暗灰 */

    /* 特效参数 */
    --glass-blur: 12px;
    --border-glow: 0 0 10px rgba(0, 243, 255, 0.3);
    --panel-border: 1px solid rgba(255, 255, 255, 0.1);
}

* {
    box-sizing: border-box;
}

body {
    background-color: var(--bg-dark);
    background-image:
        radial-gradient(circle at 10% 20%, rgba(0, 243, 255, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(255, 0, 255, 0.1) 0%, transparent 40%),
        linear-gradient(rgba(0, 0, 0, 0.7) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 0, 0, 0.7) 1px, transparent 1px);
    background-size: 100% 100%, 100% 100%, 40px 40px, 40px 40px;
    background-position: 0 0, 0 0, -1px -1px, -1px -1px;

    color: var(--text-main);
    font-family: 'Inter', 'Segoe UI', sans-serif;
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    /* 改为纵向排列 */
    align-items: center;
    /* 居中对齐 */
    padding: 20px;
    overflow-x: hidden;
}

/* 扫描线特效层 - 仅在主应用区显示，不覆盖 Hero */
body::after {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: repeating-linear-gradient(0deg,
            transparent,
            transparent 2px,
            rgba(0, 0, 0, 0.2) 3px);
    pointer-events: none;
    z-index: 100;
    /* 降低 z-index，让 Hero 内容可以在其上方 */
    opacity: 0;
    /* 默认隐藏 */
    transition: opacity 0.5s;
}

/* ============ Hero Section ============ */
/* ============ Hero Section ============ */
.hero-section {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 60px 0 40px;
    /* 移除左右内边距，让视频通栏 */
    background: linear-gradient(180deg, var(--bg-dark), rgba(5, 5, 16, 0.95));
}

/* 标题区 */
.hero-header {
    text-align: center;
    max-width: 800px;
    margin-bottom: 40px;
    padding: 0 20px;
    /* 增加内边距防止贴边 */
}

/* 视频展示区 - 大气全屏 (通栏) */
.hero-video-wrapper {
    width: 100%;
    max-width: none;
    /* 移除最大宽度限制 */
    margin: 0 0 40px;
    border-radius: 0;
    /* 移除圆角，通栏显示 */
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    /* 调整阴影 */
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    border-left: none;
    border-right: none;
}

.hero-video {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

/* 废弃的背景视频相关样式 */
.hero-overlay {
    display: none;
}

.hero-content {
    display: none;
}

.hero-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 20px 0;
    line-height: 1.3;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.title-line {
    display: block;
    opacity: 0.9;
}

.title-highlight {
    display: block;
    color: var(--neon-cyan);
    font-size: 3rem;
    text-shadow: 0 0 20px var(--neon-cyan), 0 0 40px rgba(0, 243, 255, 0.3);
    animation: glow-pulse 3s ease-in-out infinite;
}

@keyframes glow-pulse {

    0%,
    100% {
        text-shadow: 0 0 20px var(--neon-cyan), 0 0 40px rgba(0, 243, 255, 0.3);
    }

    50% {
        text-shadow: 0 0 30px var(--neon-cyan), 0 0 60px rgba(0, 243, 255, 0.5);
    }
}

.hero-desc {
    font-size: 1.1rem;
    color: var(--text-dim);
    margin-bottom: 30px;
    line-height: 1.6;
}

/* 流程简化图 */
.hero-flow-wrapper {
    width: 100%;
    max-width: 900px;
    margin: 0 auto 40px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 25px;
    backdrop-filter: blur(10px);
    /* 确保在宽屏下也有边距 */
    box-sizing: border-box;
}

/* 确保 flow wrapper 在移动端两侧有空隙 */
@media (min-width: 920px) {
    .hero-flow-wrapper {
        width: calc(100% - 40px);
    }
}

.hero-flow-image {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease;
}

.hero-flow-image:hover {
    transform: scale(1.01);
}

.flow-caption {
    display: block;
    margin-bottom: 15px;
    margin-top: 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--neon-yellow);
    text-shadow: 0 0 5px rgba(252, 238, 10, 0.3);
    text-align: center;
    /* 改回居中对齐 */
    letter-spacing: 1px;
}

/* CTA 区域 + 滚动提示 */
.hero-cta-wrapper {
    text-align: center;
    margin-top: 20px;
    padding: 0 20px;
    /* 防止贴边 */
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 18px 50px;
    background: linear-gradient(135deg, var(--neon-cyan), var(--neon-pink));
    border: none;
    border-radius: 50px;
    color: #fff;
    font-size: 1.2rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 0 25px rgba(0, 243, 255, 0.4), 0 0 50px rgba(255, 0, 255, 0.2);
    transition: all 0.3s ease;
}

.hero-cta:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 0 35px var(--neon-cyan), 0 0 70px rgba(255, 0, 255, 0.4);
}

/* 滚动提示 */
.scroll-indicator {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--text-dim);
    font-size: 0.9rem;
}

.scroll-arrow {
    font-size: 1.5rem;
    color: var(--neon-cyan);
    animation: scroll-bounce 2s infinite;
}

@keyframes scroll-bounce {

    0%,
    100% {
        transform: translateY(0);
        opacity: 1;
    }

    50% {
        transform: translateY(10px);
        opacity: 0.5;
    }
}

/* 移动端适配 */
@media (max-width: 768px) {
    .hero-title {
        font-size: 1.8rem;
    }

    .title-highlight {
        font-size: 2.2rem;
    }

    .hero-desc {
        font-size: 1rem;
    }

    .hero-cta {
        padding: 12px 30px;
        font-size: 1rem;
    }
}

/* ============ 品牌 Logo 区域 ============ */
.site-header {
    text-align: center;
    margin-bottom: 25px;
    position: relative;
    z-index: 10;
}

.glitch-logo {
    font-family: 'Orbitron', 'sans-serif';
    font-size: 3.5rem;
    font-weight: 800;
    color: #fff;
    position: relative;
    display: inline-block;
    margin: 0;
    text-shadow: 0 0 10px rgba(0, 243, 255, 0.5);
    letter-spacing: 4px;
}

/* Glitch 故障效果 */
.glitch-logo::before,
.glitch-logo::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-dark);
    /* 与背景同色遮挡 */
}

.glitch-logo::before {
    color: #ff00ff;
    z-index: -1;
    text-shadow: 2px 0 #00f3ff;
    animation: glitch-anim-1 2.5s infinite linear alternate-reverse;
}

.glitch-logo::after {
    color: #00f3ff;
    z-index: -2;
    text-shadow: -2px 0 #ff00ff;
    animation: glitch-anim-2 3s infinite linear alternate-reverse;
}

.subtitle {
    font-family: 'Share Tech Mono', monospace;
    color: var(--neon-cyan);
    font-size: 0.9rem;
    letter-spacing: 6px;
    margin-top: 5px;
    opacity: 0.8;
    text-shadow: 0 0 8px var(--neon-cyan);
    position: relative;
    display: inline-block;
}

.subtitle::before,
.subtitle::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 30px;
    height: 1px;
    background: var(--neon-cyan);
    box-shadow: 0 0 5px var(--neon-cyan);
}

.subtitle::before {
    left: -45px;
}

.subtitle::after {
    right: -45px;
}

@keyframes glitch-anim-1 {
    0% {
        clip-path: inset(20% 0 80% 0);
        transform: translate(-2px, 1px);
    }

    20% {
        clip-path: inset(60% 0 10% 0);
        transform: translate(2px, -1px);
    }

    40% {
        clip-path: inset(40% 0 50% 0);
        transform: translate(-2px, 2px);
    }

    60% {
        clip-path: inset(80% 0 5% 0);
        transform: translate(2px, -2px);
    }

    80% {
        clip-path: inset(10% 0 60% 0);
        transform: translate(-1px, 1px);
    }

    100% {
        clip-path: inset(30% 0 20% 0);
        transform: translate(1px, -1px);
    }
}

@keyframes glitch-anim-2 {
    0% {
        clip-path: inset(10% 0 60% 0);
        transform: translate(2px, -1px);
    }

    20% {
        clip-path: inset(80% 0 5% 0);
        transform: translate(-2px, 2px);
    }

    40% {
        clip-path: inset(30% 0 20% 0);
        transform: translate(2px, 1px);
    }

    60% {
        clip-path: inset(15% 0 90% 0);
        transform: translate(-1px, -2px);
    }

    80% {
        clip-path: inset(55% 0 10% 0);
        transform: translate(1px, 2px);
    }

    100% {
        clip-path: inset(40% 0 40% 0);
        transform: translate(-2px, 1px);
    }
}

/* 容器布局 */
.container {
    display: flex;
    flex-direction: column;
    /* 改为垂直布局 */
    gap: 20px;
    width: 100%;
    max-width: 1200px;
    /* height: calc(100vh - 40px); 取消固定高度，让内容撑开 */
    padding-bottom: 40px;
}

/* 顶部指引面板 */
.guide-panel {
    width: 100%;
    flex-shrink: 0;
}

/* 底部工作区 (左右分栏) */
.work-area {
    display: flex;
    gap: 20px;
    width: 100%;
    flex: 1;
    /* 占据剩余空间 */
    min-height: 500px;
    /* 给一个最小高度 */
}

/* 玻璃面板通用样式 */
.panel {
    background: var(--bg-panel);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: var(--panel-border);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.5);
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.panel:hover {
    box-shadow: 0 8px 32px 0 rgba(0, 243, 255, 0.1);
    border-color: rgba(0, 243, 255, 0.3);
}

.input-panel {
    flex: 1;
    min-width: 350px;
}

.result-panel {
    flex: 1.2;
    min-width: 350px;
}

/* 面板头部 */
.panel-header {
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0, 0, 0, 0.2);
}

.panel-header h2 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: 1px;
    color: var(--neon-cyan);
    text-shadow: 0 0 5px rgba(0, 243, 255, 0.5);
    display: flex;
    align-items: center;
    gap: 10px;
}

/* 状态徽章 */
.status-badge {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

.status-dot {
    width: 8px;
    height: 8px;
    background-color: var(--text-dim);
    border-radius: 50%;
    box-shadow: 0 0 5px currentColor;
    transition: background-color 0.3s, box-shadow 0.3s;
}

/* 状态变化类 - JS 会用到 */
.status-badge.ready .status-dot {
    background-color: var(--success);
    box-shadow: 0 0 8px var(--success);
}

.status-badge.working .status-dot {
    background-color: var(--neon-yellow);
    box-shadow: 0 0 8px var(--neon-yellow);
}

.status-badge.error .status-dot {
    background-color: var(--danger);
    box-shadow: 0 0 8px var(--danger);
}

/* 面板主体 */
.panel-body {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    gap: 20px;
}

/* API Key 区域 */
.api-key-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.03);
    padding: 12px;
    border-radius: 8px;
    border: 1px dashed rgba(255, 255, 255, 0.1);
}

.api-key-status {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    color: var(--text-dim);
}

.api-key-status.set {
    color: var(--success);
    text-shadow: 0 0 5px rgba(0, 255, 157, 0.4);
}

/* 按钮样式体系 */
.btn {
    padding: 8px 16px;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

/* 按钮发光特效 */
.btn::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: rotate(45deg) translate(-100%, -100%);
    transition: transform 0.4s;
}

.btn:hover::after {
    transform: rotate(45deg) translate(0, 0);
}

.btn-primary {
    background: rgba(0, 243, 255, 0.1);
    border: 1px solid var(--neon-cyan);
    color: var(--neon-cyan);
    box-shadow: 0 0 8px rgba(0, 243, 255, 0.2);
}

.btn-primary:hover {
    background: var(--neon-cyan);
    color: #000;
    box-shadow: 0 0 15px var(--neon-cyan);
}

.btn-secondary {
    background: transparent;
    border: 1px solid var(--text-dim);
    color: var(--text-dim);
}

.btn-secondary:hover {
    border-color: var(--text-main);
    color: var(--text-main);
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.2);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--neon-pink);
    color: var(--neon-pink);
}

.btn-outline:hover {
    background: var(--neon-pink);
    color: #fff;
    box-shadow: 0 0 10px var(--neon-pink);
}

.btn-danger {
    background: rgba(255, 42, 42, 0.1);
    border: 1px solid var(--danger);
    color: var(--danger);
}

.btn-danger:hover {
    background: var(--danger);
    color: #fff;
    box-shadow: 0 0 15px var(--danger);
}

.btn-sm {
    padding: 6px 12px;
    font-size: 0.8rem;
}

/* 输入区域 */
.input-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

textarea {
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 15px;
    color: var(--text-main);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    resize: none;
    outline: none;
    transition: border-color 0.3s, box-shadow 0.3s;
}

textarea:focus {
    border-color: var(--neon-cyan);
    box-shadow: 0 0 10px rgba(0, 243, 255, 0.2) inset;
}

textarea::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.input-hint {
    font-size: 0.8rem;
    color: var(--neon-yellow);
    opacity: 1;
    text-shadow: 0 0 5px rgba(252, 238, 10, 0.3);
}

.input-example {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.4);
    margin-top: 5px;
    font-family: 'JetBrains Mono', monospace;
    word-break: break-all;
}

/* ============ 新版引导流程 CSS ============ */
/* ============ 新版引导流程 CSS ============ */
.steps-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    /*稍微调小最小宽度，适应4个卡片*/
    gap: 15px;
    margin-bottom: 20px;
}

.step-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 15px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.step-card:hover {
    background: rgba(255, 255, 255, 0.06);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* 序号背景 - 独立配色 */
.step-num {
    position: absolute;
    top: -5px;
    right: 5px;
    font-size: 3.5rem;
    font-weight: 800;
    opacity: 0.15;
    /* 统一基础透明度 */
    font-family: 'Orbitron', monospace;
    pointer-events: none;
    z-index: 0;
    transition: all 0.3s;
}

/* 步骤 1 (蓝色) */
.steps-container .step-card:nth-child(1) .step-num {
    color: var(--neon-cyan);
}

.steps-container .step-card:nth-child(1):hover .step-num {
    opacity: 0.3;
    text-shadow: 0 0 15px var(--neon-cyan);
}

/* 步骤 2 (红色 - 危险区) */
.steps-container .step-card:nth-child(2) .step-num {
    color: var(--danger);
}

.steps-container .step-card:nth-child(2):hover .step-num {
    opacity: 0.3;
    text-shadow: 0 0 15px var(--danger);
}

/* 步骤 3 (绿色 - 验证) */
.steps-container .step-card:nth-child(3) .step-num {
    color: var(--success);
}

.steps-container .step-card:nth-child(3):hover .step-num {
    opacity: 0.3;
    text-shadow: 0 0 15px var(--success);
}


.step-content {
    position: relative;
    z-index: 1;
    /* 确保文字在序号上方 */
}

.step-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--neon-cyan);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
    text-shadow: 0 0 5px rgba(0, 243, 255, 0.3);
}

.step-desc {
    font-size: 0.85rem;
    color: var(--text-dim);
    line-height: 1.5;
}

/* 步骤 1: 链接按钮 (已移除，CSS保留以免报错，可清理) */
.btn-link-neon {
    display: none;
}

/* 步骤 2: 危险区域 (Danger Zone) */
.step-card.danger-zone {
    border-color: rgba(255, 42, 42, 0.4);
    background: linear-gradient(145deg, rgba(255, 42, 42, 0.05), transparent);
}

.danger-zone .step-title {
    color: #ff2a2a;
    /* 亮红 */
    text-shadow: 0 0 8px rgba(255, 42, 42, 0.5);
}

.link-highlight {
    color: var(--neon-cyan);
    font-weight: bold;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.link-highlight:hover {
    color: #fff;
    text-shadow: 0 0 8px var(--neon-cyan);
}

.action-highlight {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    padding: 0 4px;
    border-radius: 3px;
    font-weight: 600;
}

.step-warning {
    margin-top: 8px;
    font-size: 0.8rem;
    color: #ff2a2a;
    font-weight: 700;
    background: rgba(0, 0, 0, 0.3);
    padding: 4px 8px;
    border-radius: 4px;
    display: inline-block;
    border: 1px dashed rgba(255, 42, 42, 0.5);
}

/* 教程卡片 (Tutorial Card) */
.tutorial-card {
    background: linear-gradient(135deg, rgba(0, 132, 255, 0.1), rgba(0, 243, 255, 0.05));
    border: 1px solid rgba(0, 243, 255, 0.3);
    text-decoration: none;
    /* 去除链接下划线 */
    cursor: pointer;
    display: flex;
    /* 确保 flex 布局生效 */
    flex-direction: column;
    justify-content: center;
}

/* 成功提示横幅 */
/* 成功提示横幅 */
.success-hint-banner {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 20px;
    background: rgba(0, 255, 157, 0.1);
    border: 1px solid rgba(0, 255, 157, 0.3);
    border-radius: 8px;
    margin-top: 20px;
    margin-bottom: 20px;
    /* 原有 bottom margin */
    color: var(--text-main);
    animation: slideDown 0.5s ease-out;
}

/* 失败提示横幅 (新增) */
.failure-hint-banner {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 20px;
    background: rgba(255, 42, 42, 0.1);
    border: 1px solid rgba(255, 42, 42, 0.3);
    border-radius: 8px;
    margin-top: 20px;
    margin-bottom: 20px;
    color: var(--text-main);
    animation: slideDown 0.5s ease-out;
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hint-icon {
    font-size: 1.5rem;
}

.hint-text {
    font-size: 0.95rem;
    line-height: 1.5;
}

.highlight-text {
    color: var(--success);
    font-weight: bold;
    border-bottom: 1px dashed var(--success);
}

.highlight-error {
    color: var(--danger);
    font-weight: bold;
    text-decoration: underline;
    text-underline-offset: 4px;
    text-shadow: 0 0 5px rgba(255, 42, 42, 0.4);
}

.link-error {
    color: var(--neon-yellow);
    text-decoration: underline;
    font-weight: bold;
}


.tutorial-card:hover {
    background: linear-gradient(135deg, rgba(0, 132, 255, 0.2), rgba(0, 243, 255, 0.1));
    border-color: var(--neon-cyan);
}

.tutorial-card .step-content {
    display: flex;
    align-items: center;
    gap: 10px;
}

.tutorial-icon {
    font-size: 2rem;
}

.tutorial-text {
    flex: 1;
}

/* 链接组样式 */
.link-group {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 5px;
    font-size: 0.9rem;
}

.help-link {
    color: var(--neon-cyan);
    text-decoration: none;
    transition: all 0.2s;
    font-weight: 500;
    padding-bottom: 2px;
    border-bottom: 1px dashed transparent;
}

.help-link:hover {
    color: #fff;
    text-shadow: 0 0 8px var(--neon-cyan);
    border-bottom-color: var(--neon-cyan);
}

.divider {
    color: rgba(255, 255, 255, 0.2);
    font-size: 0.8rem;
}

.tutorial-card .step-title {
    color: #fff;
    margin-bottom: 2px;
}

.tutorial-arrow {
    font-size: 1.2rem;
    color: var(--neon-cyan);
    font-weight: bold;
    transform: translateX(0);
    transition: transform 0.3s;
}

.tutorial-card:hover .tutorial-arrow {
    transform: translateX(5px);
}

.blink-warning {
    animation: blink 1s infinite alternate;
}

@keyframes blink {
    from {
        opacity: 1;
        transform: scale(1);
    }

    to {
        opacity: 0.5;
        transform: scale(1.1);
    }
}

/* 适配移动端 */
@media (max-width: 600px) {
    .steps-container {
        grid-template-columns: 1fr;
    }
}

/* API Key 按钮组 */
.api-key-buttons {
    display: flex;
    gap: 10px;
    align-items: center;
}

/* 获取 API Key 按钮 - 小型化设计 */
.btn-get-key {
    background: rgba(255, 193, 7, 0.1);
    border: 1px solid rgba(255, 193, 7, 0.4);
    color: #ffc107;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 10px;
    /* 减小内边距 */
    font-size: 0.8rem;
    /* 减小字体 */
    border-radius: 4px;
    transition: all 0.2s;
}

.btn-get-key:hover {
    background: rgba(255, 193, 7, 0.2);
    box-shadow: 0 0 10px rgba(255, 193, 7, 0.2);
    transform: translateY(-1px);
}

/* ⚠️ 警告横幅 */
.warning-banner {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    background: rgba(255, 42, 42, 0.1);
    border: 1px solid rgba(255, 42, 42, 0.4);
    border-left: 4px solid var(--danger);
    border-radius: 8px;
    margin-bottom: 10px;
}

.warning-icon {
    font-size: 1.4rem;
    flex-shrink: 0;
    animation: warningPulse 2s infinite;
}

@keyframes warningPulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.7;
        transform: scale(1.1);
    }
}

.warning-content {
    font-size: 0.85rem;
    line-height: 1.6;
    color: var(--text-main);
}

.warning-content a {
    color: var(--neon-cyan);
    text-decoration: underline;
}

.warning-content a:hover {
    color: #fff;
    text-shadow: 0 0 5px var(--neon-cyan);
}

.warning-highlight {
    color: var(--danger);
    font-weight: 700;
    text-shadow: 0 0 8px rgba(255, 42, 42, 0.5);
}

/* 详细教程链接 */
.tutorial-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 15px;
    padding-top: 12px;
    border-top: 1px dashed rgba(255, 255, 255, 0.1);
    font-size: 0.85rem;
    color: var(--text-dim);
}

.tutorial-icon {
    font-size: 1.1rem;
}

.tutorial-link a {
    color: var(--neon-cyan);
    text-decoration: none;
    transition: all 0.2s;
}

.tutorial-link a:hover {
    color: #fff;
    text-shadow: 0 0 8px var(--neon-cyan);
}

/* 统计和操作栏 */
/* 统计和操作栏 (独立 Footer) */
.panel-footer.action-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.4);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin: 0;
    /* 移除之前的 margin-top */
    flex-shrink: 0;
    /* 防止被挤压 */
    margin-top: auto;
    /* 确保推到底部 */
}

/* 兼容旧的 action-section 类名引用，确保不覆盖不该覆盖的 */
.action-section:not(.panel-footer) {
    /* 如果有其他地方用了 action-section，保持旧样式，但 currently only used here */
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.stats {
    font-size: 0.9rem;
    color: #fff;
    /* 提升亮度 */
}

#idCount {
    color: var(--neon-cyan);
    font-weight: bold;
}

.quota-info {
    margin-left: 10px;
    font-size: 0.8rem;
    opacity: 0.7;
}

.action-buttons {
    display: flex;
    gap: 10px;
}

/* 结果面板特定样式 */
.result-actions {
    display: flex;
    gap: 8px;
}

/* 进度条 */
.progress-section {
    margin-bottom: 20px;
}

.progress-bar {
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
    position: relative;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--neon-cyan), var(--neon-pink));
    width: 0%;
    transition: width 0.3s ease;
    box-shadow: 0 0 10px var(--neon-cyan);
}

.progress-text {
    text-align: right;
    font-size: 0.8rem;
    color: var(--text-dim);
    margin-top: 5px;
    font-family: 'JetBrains Mono', monospace;
}

/* 统计卡片 (Success/Failed/Total) */
.stats-cards {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 15px;
    margin-bottom: 20px;
}

.stat-card {
    background: rgba(255, 255, 255, 0.03);
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    border: 1px solid transparent;
    transition: all 0.3s;
}

.stat-card.stat-success {
    border-color: rgba(0, 255, 157, 0.3);
}

.stat-card.stat-failed {
    border-color: rgba(255, 42, 42, 0.3);
}

.stat-card.stat-total {
    border-color: rgba(255, 255, 255, 0.1);
}

.stat-number {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 5px;
    font-family: 'Orbitron', sans-serif;
    /* 假设引入了这个字体，或者回退 */
}

.stat-success .stat-number {
    color: var(--success);
    text-shadow: 0 0 10px rgba(0, 255, 157, 0.5);
}

.stat-failed .stat-number {
    color: var(--danger);
    text-shadow: 0 0 10px rgba(255, 42, 42, 0.5);
}

.stat-total .stat-number {
    color: var(--text-main);
}

.stat-label {
    font-size: 0.75rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* 结果列表 */
.results-container {
    flex: 1;
    overflow-y: hidden;
    /* 由 inner list 滚动 */
    display: flex;
    flex-direction: column;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.results-list {
    flex: 1;
    overflow-y: auto;
    padding: 10px;
}

/* 结果条目 */
.result-item {
    background: rgba(255, 255, 255, 0.02);
    margin-bottom: 8px;
    padding: 12px 15px;
    border-radius: 6px;
    border-left: 3px solid transparent;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 15px;
    /* 增加间距 */
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.result-item.success {
    border-left-color: var(--success);
    background: linear-gradient(90deg, rgba(0, 255, 157, 0.05), transparent);
}

.result-item.error {
    border-left-color: var(--danger);
    background: linear-gradient(90deg, rgba(255, 42, 42, 0.05), transparent);
}

/* ID 样式：截断过长 ID */
.result-id {
    color: var(--text-main);
    font-weight: 500;
    max-width: 40%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 消息样式：改为胶囊 Badge，允许换行显示全称 */
.result-message {
    font-size: 0.8rem;
    padding: 4px 10px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-dim);
    margin-left: auto;
    /* 推到右侧 */
    max-width: 70%;
    /* 允许占据更多宽度，防止挤压 */
    text-align: right;
    white-space: normal;
    /* 允许换行 */
    word-break: break-word;
    /* 防止长单词溢出 */
    line-height: 1.4;
}

/* 状态特定 Badge 样式 */
.result-item.success .result-message {
    background: rgba(0, 255, 157, 0.1);
    color: var(--success);
    border: 1px solid rgba(0, 255, 157, 0.2);
}

.result-item.error .result-message {
    background: rgba(255, 42, 42, 0.1);
    color: var(--danger);
    border: 1px solid rgba(255, 42, 42, 0.2);
}

.result-item.processing .result-message {
    background: rgba(252, 238, 10, 0.1);
    color: var(--neon-yellow);
    border: 1px solid rgba(252, 238, 10, 0.2);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        opacity: 0.6;
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0.6;
    }
}

.result-status {
    /* 之前的样式，现在在 HTML 里被 .result-message 替代了部分功能，但 .result-badge 还在 */
    font-size: 0.8rem;
}

.result-badge {
    /* 图标 */
    font-size: 1.1rem;
    margin-left: 5px;
}

/* 空状态 */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--text-dim);
    opacity: 0.8;
    /* 提升不透明度 */
}

.empty-icon {
    font-size: 3rem;
    margin-bottom: 10px;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
}

/* 滚动条美化 */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--neon-cyan);
}

/* 模态框 (Modal) */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-backdrop {
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    background: #0a0a1a;
    border: 1px solid var(--neon-pink);
    border-radius: 12px;
    padding: 0;
    width: 90%;
    max-width: 500px;
    position: relative;
    z-index: 1001;
    box-shadow: 0 0 40px rgba(255, 0, 255, 0.2);
    transform: scale(0.9);
    transition: transform 0.3s;
}

.modal.active .modal-content {
    transform: scale(1);
}

.modal-header {
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    color: var(--neon-pink);
    text-shadow: 0 0 5px rgba(255, 0, 255, 0.4);
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-dim);
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.2s;
}

.modal-close:hover {
    color: #fff;
}

.modal-body {
    padding: 25px;
}

.input-field {
    width: 100%;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 12px;
    border-radius: 4px;
    color: #fff;
    font-family: 'JetBrains Mono', monospace;
    margin-top: 10px;
    margin-bottom: 20px;
}

.input-field:focus {
    border-color: var(--neon-pink);
    outline: none;
    box-shadow: 0 0 10px rgba(255, 0, 255, 0.2);
}

.modal-footer {
    padding: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    background: rgba(0, 0, 0, 0.2);
}

.highlight-success {
    color: var(--success);
    font-weight: bold;
}

/* 响应式适配 */
@media (max-width: 768px) {

    /* Hero 区域适配 */
    .hero-section {
        padding: 40px 15px 30px;
        min-height: auto;
        /* 移动端不强制满屏，允许自然高度 */
    }

    /* 工作区适配 */
    .work-area {
        flex-direction: column;
        height: auto;
    }

    .input-panel,
    .result-panel {
        min-width: 100%;
        width: 100%;
    }

    .hero-title {
        font-size: 1.8rem;
    }

    .title-highlight {
        font-size: 2.2rem;
        /* 稍微调小 */
    }

    .hero-desc {
        font-size: 1rem;
        padding: 0 10px;
    }

    .hero-video-wrapper {
        margin: 0 0 30px;
        border-radius: 12px;
    }

    .hero-flow-wrapper {
        padding: 15px;
        margin: 0 0 30px;
    }

    .hero-cta {
        padding: 14px 35px;
        font-size: 1rem;
        width: 100%;
        /*按钮全宽更易点击*/
        justify-content: center;
    }

    /* 主应用区域适配 */
    .container {
        flex-direction: column;
        height: auto;
        padding: 10px;
        /* 减少内边距 */
        width: 100%;
        max-width: 100%;
    }

    .panel {
        min-width: 100%;
        /* 确保面板占满屏幕宽度 */
        width: 100%;
        margin-bottom: 20px;
        height: auto;
        /* 高度自适应 */
        min-height: auto;
    }

    .panel-body {
        padding: 15px;
        /* 减少面板内边距 */
    }

    /* API Key 按钮组适配 */
    .api-key-buttons {
        flex-direction: column;
        align-items: stretch;
        /* 按钮拉伸 */
    }

    /* 移动端大幅减小输入框高度，给按钮留出空间 */
    .input-section textarea {
        height: 150px !important;
        /* 强制高度 */
        min-height: 150px;
    }

    .btn {
        width: 100%;
        /* 按钮全宽 */
        justify-content: center;
    }

    .btn-get-key {
        justify-content: center;
    }

    body {
        padding: 0;
        /* 移除 Body 内边距，防止溢出 */
    }
}