/* 基础与科技感字体 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Exo 2', sans-serif;
}

body {
    background: linear-gradient(135deg, #0a0a1a 0%, #1a1a2e 50%, #16213e 100%);
    color: #c0c0ff;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 20% 30%, rgba(0, 100, 255, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(255, 0, 200, 0.05) 0%, transparent 50%);
    z-index: -2;
    pointer-events: none;
}

/* 扫描线动画 */
.scan-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, #00f7ff, transparent);
    animation: scan 3s linear infinite;
    z-index: 100;
}

@keyframes scan {
    0% { top: 0%; }
    100% { top: 100%; }
}

/* 主容器 */
.cyber-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
}

/* 头部 */
.cyber-header {
    text-align: center;
    padding: 30px 20px;
    margin-bottom: 30px;
    position: relative;
    border-bottom: 2px solid rgba(0, 247, 255, 0.3);
}

.logo-glitch {
    font-family: 'Orbitron', monospace;
    font-size: 3.5rem;
    font-weight: 900;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 3px;
    position: relative;
    display: inline-block;
    text-shadow:
        0 0 10px #00f7ff,
        0 0 20px #00f7ff,
        0 0 40px #00f7ff;
    animation: glitch 5s infinite;
}

.logo-glitch::before,
.logo-glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.logo-glitch::before {
    animation: glitch-1 2s infinite;
    color: #ff00ff;
    z-index: -1;
}

.logo-glitch::after {
    animation: glitch-2 3s infinite;
    color: #00ffaa;
    z-index: -2;
}

@keyframes glitch {
    0%, 12%, 15%, 52%, 55%, 82%, 85%, 100% { opacity: 1; transform: translateX(0); }
    13% { opacity: 0.8; transform: translateX(-5px); }
    14% { opacity: 0.8; transform: translateX(5px); }
    53% { opacity: 0.6; transform: translateX(3px) translateY(-3px); }
    54% { opacity: 0.6; transform: translateX(-3px) translateY(3px); }
    83% { opacity: 0.9; transform: translateX(2px); }
    84% { opacity: 0.9; transform: translateX(-2px); }
}

.subtitle {
    font-size: 1.2rem;
    margin-top: 10px;
    color: #88ddff;
    font-weight: 300;
}

/* 主网格布局 */
.main-grid {
    display: grid;
    grid-template-columns: 1fr 1.8fr;
    gap: 30px;
    margin-bottom: 40px;
}

@media (max-width: 1200px) {
    .main-grid {
        grid-template-columns: 1fr;
    }
}

/* 控制面板 */
.control-panel {
    background: rgba(10, 15, 30, 0.7);
    border-radius: 16px;
    padding: 25px;
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.neon-border {
    border: 1px solid rgba(0, 247, 255, 0.3);
    box-shadow:
        inset 0 0 20px rgba(0, 247, 255, 0.1),
        0 0 30px rgba(0, 247, 255, 0.2);
}

.control-panel h2 {
    color: #00f7ff;
    font-family: 'Orbitron', sans-serif;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(0, 247, 255, 0.3);
    font-size: 1.8rem;
}

.control-panel h2 i {
    margin-right: 10px;
}

/* 表单样式 */
.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    color: #88ddff;
    font-weight: 600;
    font-size: 1.1rem;
}

.form-group label i {
    margin-right: 8px;
    color: #00f7ff;
}

textarea, select, input[type="text"] {
    width: 100%;
    padding: 15px;
    background: rgba(5, 10, 25, 0.8);
    border: 1px solid rgba(0, 150, 255, 0.5);
    border-radius: 10px;
    color: #fff;
    font-size: 1rem;
    transition: all 0.3s;
    resize: vertical;
}

textarea:focus, select:focus, input[type="text"]:focus {
    outline: none;
    border-color: #00f7ff;
    box-shadow: 0 0 15px rgba(0, 247, 255, 0.5);
}

/* 上传区域 */
.upload-area {
    border: 3px dashed rgba(0, 150, 255, 0.5);
    border-radius: 12px;
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    background: rgba(5, 15, 35, 0.5);
    margin-bottom: 15px;
}

.upload-area:hover {
    border-color: #00f7ff;
    background: rgba(0, 247, 255, 0.05);
}

.upload-area i {
    color: #00aaff;
    margin-bottom: 15px;
    display: block;
    transition: transform 0.3s;
}

.upload-area:hover i {
    transform: scale(1.1);
    color: #00f7ff;
}

.upload-area p {
    margin: 8px 0;
    color: #aaccff;
    transition: color 0.3s;
}

.upload-area:hover p {
    color: #ffffff;
}

.hint {
    font-size: 0.9rem;
    color: #8899cc !important;
}

/* 上传进度样式 */
.upload-progress {
    background: rgba(10, 20, 40, 0.8);
    border: 1px solid rgba(0, 150, 255, 0.5);
    border-radius: 10px;
    padding: 15px;
    margin-top: 20px;
    margin-bottom: 20px;
    display: none;
    backdrop-filter: blur(5px);
}

.progress-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    color: #00aaff;
    font-weight: 600;
}

.progress-header i {
    font-size: 1.2rem;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 8px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #00cc66, #00ffaa);
    width: 0%;
    transition: width 0.3s ease;
    border-radius: 4px;
    position: relative;
    overflow: hidden;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.3) 50%,
        transparent 100%);
    animation: progressShimmer 1.5s infinite;
}

@keyframes progressShimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.progress-text {
    font-size: 0.9rem;
    color: #88ddff;
    text-align: center;
    font-family: 'Courier New', monospace;
}

/* 图片预览 */
.image-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
    min-height: 60px;
    padding: 10px;
    background: rgba(5, 10, 20, 0.5);
    border-radius: 8px;
    border: 1px dashed rgba(0, 150, 255, 0.3);
    transition: all 0.3s;
}

.image-preview:hover {
    border-color: rgba(0, 247, 255, 0.5);
    background: rgba(5, 10, 20, 0.7);
}

.preview-item {
    position: relative;
    width: 60px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid rgba(0, 200, 255, 0.5);
    transition: all 0.3s;
    cursor: pointer;
}

.preview-item:hover {
    transform: scale(1.05);
    border-color: #00f7ff;
    box-shadow: 0 5px 15px rgba(0, 247, 255, 0.3);
}

.preview-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.preview-tooltip {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    font-size: 0.7rem;
    padding: 2px 4px;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    opacity: 0;
    transition: opacity 0.3s;
}

.preview-item:hover .preview-tooltip {
    opacity: 1;
}

.form-hint {
    font-size: 0.9rem;
    color: #8899cc;
    margin-top: 8px;
    padding-left: 5px;
    border-left: 2px solid rgba(0, 150, 255, 0.3);
    transition: all 0.3s;
}

.form-group:focus-within .form-hint {
    color: #aaccff;
    border-left-color: #00aaff;
}

/* 图片URL输入框特定样式 */
.form-group textarea#imageUrlsInput {
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    background: rgba(5, 10, 25, 0.9);
    border: 1px solid rgba(0, 200, 255, 0.5);
    transition: all 0.3s;
}

.form-group textarea#imageUrlsInput:focus {
    border-color: #00f7ff;
    box-shadow: 0 0 15px rgba(0, 247, 255, 0.3);
    background: rgba(5, 10, 30, 0.95);
}

/* 表单行布局优化 */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

/* 按钮 */
.cyber-button {
    background: linear-gradient(135deg, #0066ff 0%, #00ccff 100%);
    color: white;
    border: none;
    padding: 18px 35px;
    font-size: 1.2rem;
    font-weight: 700;
    border-radius: 12px;
    cursor: pointer;
    width: 100%;
    position: relative;
    overflow: hidden;
    transition: all 0.3s;
    margin-top: 20px;
    font-family: 'Orbitron', sans-serif;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.cyber-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 102, 255, 0.5);
    background: linear-gradient(135deg, #0088ff 0%, #00eeff 100%);
}

.cyber-button:active {
    transform: translateY(0);
}

.cyber-button i {
    margin-right: 10px;
}

.btn-lights {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
}

.btn-lights span {
    position: absolute;
    display: block;
    width: 20px;
    height: 100%;
    background: rgba(255, 255, 255, 0.3);
    transform: skewX(-30deg);
    animation: btnLight 2s infinite linear;
}

.btn-lights span:nth-child(1) { left: -20%; animation-delay: 0s; }
.btn-lights span:nth-child(2) { left: 40%; animation-delay: 0.4s; }
.btn-lights span:nth-child(3) { left: 100%; animation-delay: 0.8s; }

@keyframes btnLight {
    0% { left: -20%; }
    100% { left: 120%; }
}

/* 状态面板 */
.status-panel {
    margin-top: 30px;
    padding: 20px;
    background: rgba(5, 10, 25, 0.6);
    border-radius: 12px;
    border-left: 4px solid #00f7ff;
    position: relative;
    overflow: hidden;
}

.status-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent 30%, rgba(0, 247, 255, 0.05) 50%, transparent 70%);
    animation: shine 3s infinite linear;
    z-index: 0;
}

@keyframes shine {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.status-panel h3 {
    color: #00f7ff;
    margin-bottom: 15px;
    font-size: 1.3rem;
    position: relative;
    z-index: 1;
}

.status-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 1;
}

.status-label {
    color: #aaccff;
    font-weight: 500;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
}

.led {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
    position: relative;
}

.led::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: 50%;
    background: radial-gradient(circle at center, currentColor 0%, transparent 70%);
    opacity: 0.5;
    z-index: -1;
}

.led-ok {
    background-color: #00ff00;
    box-shadow: 0 0 10px #00ff00, 0 0 20px #00ff00;
    animation: pulse 1.5s infinite ease-in-out;
}

.led-error {
    background-color: #ff3300;
    box-shadow: 0 0 10px #ff3300;
    animation: pulseError 1.5s infinite;
}

.led-warning {
    background-color: #ff9900;
    box-shadow: 0 0 10px #ff9900;
    animation: pulseWarning 1.5s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        box-shadow: 0 0 10px #00ff00, 0 0 20px #00ff00;
    }
    50% {
        opacity: 0.7;
        box-shadow: 0 0 5px #00ff00, 0 0 10px #00ff00;
    }
}

@keyframes pulseError {
    0%, 100% {
        opacity: 1;
        box-shadow: 0 0 10px #ff3300;
    }
    50% {
        opacity: 0.7;
        box-shadow: 0 0 5px #ff3300;
    }
}

@keyframes pulseWarning {
    0%, 100% {
        opacity: 1;
        box-shadow: 0 0 10px #ff9900;
    }
    50% {
        opacity: 0.7;
        box-shadow: 0 0 5px #ff9900;
    }
}

/* Token 使用量 */
.token-usage {
    margin-top: 20px;
    position: relative;
    z-index: 1;
}

.usage-bar {
    width: 100%;
    height: 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 8px;
    position: relative;
}

.usage-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.1) 50%,
        transparent 100%);
    animation: shimmer 2s infinite linear;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.usage-fill {
    height: 100%;
    background: linear-gradient(90deg, #0066ff, #00ccff, #0066ff);
    background-size: 200% 100%;
    border-radius: 5px;
    width: 0%;
    transition: width 1s cubic-bezier(0.34, 1.56, 0.64, 1);
    animation: gradientMove 3s infinite linear;
    position: relative;
    z-index: 2;
}

@keyframes gradientMove {
    0% { background-position: 0% 0%; }
    100% { background-position: 200% 0%; }
}

.usage-text {
    font-size: 0.9rem;
    color: #88ddff;
    text-align: center;
    font-weight: 500;
}

/* 结果面板 */
.result-panel {
    background: rgba(10, 15, 30, 0.7);
    border-radius: 16px;
    padding: 25px;
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 0, 200, 0.3);
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 0, 200, 0.3);
}

.panel-header h2 {
    color: #ff00cc;
    font-family: 'Orbitron', sans-serif;
    font-size: 1.8rem;
}

.icon-btn {
    background: rgba(255, 0, 200, 0.2);
    color: #ff66cc;
    border: 1px solid rgba(255, 0, 200, 0.5);
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.icon-btn:hover {
    background: rgba(255, 0, 200, 0.4);
    color: #fff;
}

/* 加载动画 */
.loading-container {
    text-align: center;
    padding: 60px 20px;
}

.cyber-loader {
    position: relative;
    display: inline-block;
    text-align: center;
}

.loader-circle {
    width: 100px;
    height: 100px;
    border: 5px solid rgba(0, 247, 255, 0.1);
    border-top: 5px solid #00f7ff;
    border-right: 5px solid rgba(0, 247, 255, 0.5);
    border-bottom: 5px solid rgba(0, 247, 255, 0.3);
    border-radius: 50%;
    animation: spin 1.5s linear infinite;
    margin: 0 auto 30px;
    box-shadow:
        0 0 30px rgba(0, 247, 255, 0.5),
        inset 0 0 20px rgba(0, 247, 255, 0.2);
    position: relative;
}

.loader-circle::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border: 2px solid rgba(0, 247, 255, 0.1);
    border-radius: 50%;
    animation: spinReverse 2s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
        border-top-color: #00f7ff;
        border-right-color: rgba(0, 247, 255, 0.5);
    }
    50% {
        border-top-color: #00ccff;
        border-right-color: rgba(0, 247, 255, 0.8);
    }
    100% {
        transform: rotate(360deg);
        border-top-color: #00f7ff;
        border-right-color: rgba(0, 247, 255, 0.5);
    }
}

@keyframes spinReverse {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(-360deg); }
}

.loader-text {
    font-size: 1.5rem;
    color: #00f7ff;
    margin-bottom: 10px;
    font-family: 'Orbitron', sans-serif;
    text-shadow: 0 0 10px rgba(0, 247, 255, 0.5);
    animation: textGlow 2s infinite alternate;
}

@keyframes textGlow {
    0% { text-shadow: 0 0 10px rgba(0, 247, 255, 0.5); }
    100% { text-shadow: 0 0 20px rgba(0, 247, 255, 0.8), 0 0 30px rgba(0, 247, 255, 0.4); }
}

.loader-subtext {
    color: #88ddff;
    font-size: 1rem;
    margin-bottom: 30px;
    opacity: 0.8;
}

.pulse-dots {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.pulse-dots .dot {
    width: 20px;
    height: 20px;
    background: #00f7ff;
    border-radius: 50%;
    animation: pulseDot 1.5s infinite ease-in-out;
    box-shadow: 0 0 10px #00f7ff;
}

.pulse-dots .dot:nth-child(1) { animation-delay: 0s; }
.pulse-dots .dot:nth-child(2) { animation-delay: 0.2s; }
.pulse-dots .dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes pulseDot {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
        box-shadow: 0 0 10px #00f7ff, 0 0 20px #00f7ff;
    }
    50% {
        transform: scale(1.5);
        opacity: 0.5;
        box-shadow: 0 0 5px #00f7ff, 0 0 10px #00f7ff;
    }
}

/* 结果网格 */
.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    min-height: 300px;
}

.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: #8899cc;
    background: rgba(10, 15, 30, 0.3);
    border-radius: 12px;
    border: 2px dashed rgba(0, 150, 255, 0.3);
    transition: all 0.3s;
}

.empty-state:hover {
    border-color: rgba(0, 247, 255, 0.5);
    background: rgba(10, 15, 30, 0.5);
    transform: translateY(-5px);
}

.empty-state i {
    margin-bottom: 20px;
    color: rgba(0, 150, 255, 0.5);
    transition: all 0.3s;
}

.empty-state:hover i {
    color: rgba(0, 247, 255, 0.7);
    transform: scale(1.1);
}

.empty-state h3 {
    color: #aaccff;
    margin-bottom: 15px;
    font-size: 1.5rem;
    transition: all 0.3s;
}

.empty-state:hover h3 {
    color: #ffffff;
}

/* 图片卡片 */
.image-card {
    background: rgba(15, 20, 40, 0.8);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s;
    border: 1px solid rgba(0, 150, 255, 0.3);
    position: relative;
}

.image-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 100, 255, 0.3);
    border-color: #00f7ff;
}

.card-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
    cursor: pointer;
    transition: transform 0.5s;
}

.card-img:hover {
    transform: scale(1.03);
}

.card-info {
    padding: 15px;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.card-index {
    background: rgba(0, 100, 255, 0.2);
    color: #66aaff;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.card-actions {
    display: flex;
    gap: 8px;
}

.action-btn {
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #aaccff;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.action-btn:hover {
    background: rgba(0, 150, 255, 0.3);
    color: #fff;
    border-color: #00aaff;
}

.card-prompt {
    color: #ccddff;
    font-size: 0.95rem;
    line-height: 1.4;
    max-height: 80px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

/* 错误提示 */
.error-alert {
    background: linear-gradient(135deg, rgba(255, 50, 50, 0.1), rgba(255, 100, 100, 0.1));
    border: 1px solid rgba(255, 50, 50, 0.5);
    color: #ff8888;
    padding: 15px 20px;
    border-radius: 10px;
    margin-top: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    animation: errorPulse 2s infinite;
    backdrop-filter: blur(5px);
}

@keyframes errorPulse {
    0%, 100% {
        border-color: rgba(255, 50, 50, 0.5);
        box-shadow: 0 0 10px rgba(255, 50, 50, 0.1);
    }
    50% {
        border-color: rgba(255, 100, 100, 0.8);
        box-shadow: 0 0 20px rgba(255, 100, 100, 0.3);
    }
}

.error-alert i {
    font-size: 1.5rem;
    color: #ff6666;
}

/* 页脚 */
.cyber-footer {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(0, 150, 255, 0.3);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.tech-stack {
    display: flex;
    gap: 15px;
}

.tech-tag {
    background: rgba(0, 100, 255, 0.2);
    color: #66aaff;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

.copyright {
    color: #8899cc;
    font-size: 0.9rem;
}

.data-stream {
    margin-top: 20px;
    padding: 10px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    overflow: hidden;
    position: relative;
}

.stream-text {
    color: #00ffaa;
    font-family: 'Courier New', monospace;
    white-space: nowrap;
    animation: stream 20s linear infinite;
}

@keyframes stream {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

/* 模态框 */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
}

.modal-content {
    background: linear-gradient(135deg, rgba(10, 15, 30, 0.95), rgba(20, 25, 40, 0.95));
    margin: 5% auto;
    padding: 20px;
    border-radius: 16px;
    width: 90%;
    max-width: 900px;
    border: 2px solid #00f7ff;
    box-shadow:
        0 0 50px rgba(0, 247, 255, 0.5),
        0 0 100px rgba(0, 150, 255, 0.3);
    position: relative;
    animation: modalFade 0.3s ease-out;
    backdrop-filter: blur(10px);
}

@keyframes modalFade {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    color: #ff6666;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    z-index: 1001;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 50, 50, 0.1);
}

.modal-close:hover {
    color: #ffffff;
    background: rgba(255, 50, 50, 0.3);
    transform: rotate(90deg);
}

#modalImage {
    width: 100%;
    max-height: 70vh;
    object-fit: contain;
    border-radius: 10px;
    display: block;
    margin: 0 auto 20px;
    border: 1px solid rgba(0, 247, 255, 0.3);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s;
}

#modalImage:hover {
    transform: scale(1.01);
}

.modal-info {
    padding: 20px;
    background: rgba(5, 10, 25, 0.7);
    border-radius: 10px;
    margin-top: 15px;
    border: 1px solid rgba(0, 150, 255, 0.3);
}

#modalPrompt {
    color: #ccddff;
    line-height: 1.6;
    margin-bottom: 20px;
    padding: 15px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    border-left: 4px solid #00aaff;
}

.download-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(135deg, #00cc66, #00ffaa);
    color: #003311;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.download-btn:hover {
    background: linear-gradient(135deg, #00ff88, #22ffbb);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 255, 170, 0.4);
    color: #001a0d;
}

.download-btn i {
    font-size: 1.1rem;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .cyber-header {
        padding: 20px 10px;
    }

    .logo-glitch {
        font-size: 2.2rem;
    }

    .main-grid {
        gap: 20px;
    }

    .control-panel, .result-panel {
        padding: 20px 15px;
    }

    .results-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .upload-area {
        padding: 30px 15px;
    }

    .upload-area i {
        font-size: 2.5rem;
    }

    .image-preview {
        gap: 8px;
    }

    .preview-item {
        width: 50px;
        height: 50px;
    }

    .form-group textarea#imageUrlsInput {
        font-size: 0.85rem;
        padding: 12px;
    }
}
