* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
}

body {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #333;
    line-height: 1.5;
    min-height: 100vh;
    padding: 15px;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(102, 126, 234, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(118, 75, 162, 0.1) 0%, transparent 50%);
    z-index: 1;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    box-shadow: 
        0 12px 30px rgba(0, 0, 0, 0.1),
        0 4px 12px rgba(0, 0, 0, 0.07);
    padding: 24px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: slideIn 0.6s ease-out;
    position: relative;
    z-index: 2;
}

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

/* 头部样式 */
header {
    text-align: center;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
    position: relative;
}

header::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    border-radius: 2px;
}

h1 {
    color: #2c3e50;
    margin-bottom: 10px;
    font-size: 1.8rem;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
    position: relative;
    padding: 0 12px;
}

h1 i {
    margin-right: 10px;
    font-size: 2rem;
    display: inline-block;
    animation: float 3s ease-in-out infinite;
}

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

.subtitle {
    color: #64748b;
    font-size: 0.9rem;
    margin-top: 6px;
    font-weight: 500;
}

.subtitle a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    padding: 3px 8px;
    border-radius: 5px;
    background: rgba(102, 126, 234, 0.1);
    margin-left: 4px;
}

.subtitle a:hover {
    background: #667eea;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(102, 126, 234, 0.3);
}

/* 内容区域 */
.content-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    margin-bottom: 24px;
}

.input-section, .status-section {
    flex: 1;
    min-width: 280px;
    background: white;
    border-radius: 14px;
    padding: 22px;
    border: 1px solid #e2e8f0;
    box-shadow: 
        0 8px 20px rgba(0, 0, 0, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
    position: relative;
    overflow: visible; /* 修改这里：从 hidden 改为 visible */
}

.input-section::before, .status-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
}

.input-section:hover, .status-section:hover {
    transform: translateY(-4px);
    box-shadow: 
        0 16px 35px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    border-color: #cbd5e1;
}

.section-title {
    font-size: 1.2rem;
    color: #2c3e50;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #f1f5f9;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}

.section-title i {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
}

/* 输入组样式 */
.input-group {
    margin-bottom: 20px;
    position: relative;
}

label {
    display: flex;
    margin-bottom: 8px;
    font-weight: 600;
    color: #334155;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    gap: 8px;
}

.input-label i {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6C63FF;
    font-size: 1rem;
}

.required {
    color: #ef4444;
    font-weight: bold;
}

.optional {
    color: #64748b;
    font-weight: normal;
    font-size: 0.75rem;
    text-transform: none;
    margin-left: 4px;
}

.input-wrapper {
    position: relative;
}

input {
    width: 100%;
    padding: 12px 14px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    background: white;
    color: #334155;
    font-weight: 500;
}

input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 
        0 0 0 3px rgba(102, 126, 234, 0.1),
        0 3px 10px rgba(102, 126, 234, 0.1);
    transform: translateY(-1px);
}

.input-valid {
    border-color: #10b981;
    background: linear-gradient(to right, rgba(16, 185, 129, 0.02), white);
}

.input-invalid {
    border-color: #ef4444;
    background: linear-gradient(to right, rgba(239, 68, 68, 0.02), white);
}

.input-optional {
    border-color: #94a3b8;
}

.input-readonly {
    border-color: #cbd5e1;
    background: linear-gradient(to right, #f8fafc, white);
    color: #64748b;
}

.input-icon {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1rem;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.valid-icon {
    color: #10b981;
    background: rgba(16, 185, 129, 0.1);
}

.invalid-icon {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
}

.optional-icon {
    color: #94a3b8;
    background: rgba(148, 163, 184, 0.1);
}

.hint {
    font-size: 0.8rem;
    margin-top: 6px;
    padding: 8px 10px;
    border-radius: 7px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
}

.valid-hint {
    color: #059669;
    background: linear-gradient(to right, rgba(16, 185, 129, 0.05), #f0fdf4);
    border-color: #bbf7d0;
}

.invalid-hint {
    color: #dc2626;
    background: linear-gradient(to right, rgba(239, 68, 68, 0.05), #fef2f2);
    border-color: #fecaca;
}

.optional-hint {
    color: #475569;
    background: #f8fafc;
    border-color: #e2e8f0;
}

.warning-hint {
    color: #d97706;
    background: linear-gradient(to right, rgba(245, 158, 11, 0.05), #fffbeb);
    border-color: #fde68a;
    font-weight: 600;
}

/* 状态容器 - 修改布局 */
.status-container {
    display: flex;
    flex-direction: column;
    min-height: 400px; /* 设置最小高度 */
}

.current-status {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 18px;
    border-radius: 10px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    margin-bottom: 18px;
    color: white;
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.3);
    position: relative;
    z-index: 3;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 10px;
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: white;
    position: relative;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
}

.status-dot.ready {
    background-color: #10b981;
    box-shadow: 0 0 12px rgba(16, 185, 129, 0.7);
}

.status-dot.processing {
    background-color: #3b82f6;
    box-shadow: 0 0 12px rgba(59, 130, 246, 0.7);
    animation: pulse 1.5s infinite;
}

.status-dot.error {
    background-color: #ef4444;
    box-shadow: 0 0 12px rgba(239, 68, 68, 0.7);
}

.status-dot.running {
    background-color: #10b981;
    box-shadow: 0 0 12px rgba(16, 185, 129, 0.7);
    animation: pulse 2s infinite;
}

.status-dot.warning {
    background-color: #f59e0b;
    box-shadow: 0 0 12px rgba(245, 158, 11, 0.7);
}

.status-dot.refresh {
    background-color: #8b5cf6;
    box-shadow: 0 0 12px rgba(139, 92, 246, 0.7);
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.15); opacity: 0.8; }
    100% { transform: scale(1); opacity: 1; }
}

.status-box {
    flex-grow: 1;
    background: #f8fafc;
    border-radius: 10px;
    padding: 18px;
    margin-bottom: 18px;
    overflow-y: auto;
    max-height: 180px; /* 减小高度，给转发信息留出空间 */
    border: 2px solid #e2e8f0;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 #f1f5f9;
    position: relative;
    z-index: 2;
}

.status-box::-webkit-scrollbar {
    width: 5px;
}

.status-box::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 3px;
}

.status-box::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 3px;
}

.status-box::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #5a6fd9 0%, #6a419c 100%);
}

.status-item {
    padding: 12px 14px;
    margin-bottom: 10px;
    border-radius: 8px;
    background: white;
    border-left: 4px solid #667eea;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
    animation: fadeInUp 0.4s ease-out;
}

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

.status-item:hover {
    transform: translateX(4px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.status-item.success {
    border-left-color: #10b981;
    background: linear-gradient(to right, rgba(16, 185, 129, 0.05), white);
}

.status-item.error {
    border-left-color: #ef4444;
    background: linear-gradient(to right, rgba(239, 68, 68, 0.05), white);
}

.status-item.warning {
    border-left-color: #f59e0b;
    background: linear-gradient(to right, rgba(245, 158, 11, 0.05), white);
}

.status-item.info {
    border-left-color: #3b82f6;
    background: linear-gradient(to right, rgba(59, 130, 246, 0.05), white);
}

.status-item.running {
    border-left-color: #10b981;
    background: linear-gradient(to right, rgba(16, 185, 129, 0.1), white);
}

.status-time {
    font-size: 0.75rem;
    color: #64748b;
    margin-top: 5px;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* 转发信息 - 修改布局，确保完全显示 */
.forwarding-container {
    display: none; /* 默认隐藏 */
    animation: slideUp 0.5s ease-out;
    margin-top: 5px;
}

.forwarding-info {
    padding: 18px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 14px;
    color: white;
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
    position: relative;
    overflow: hidden;
}

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

.forwarding-info::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 30%,
        rgba(255, 255, 255, 0.1) 50%,
        transparent 70%
    );
    animation: shimmer 3s infinite linear;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.forwarding-info h3 {
    color: white;
    margin-bottom: 16px;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
    z-index: 1;
}

.forwarding-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
}

.detail-item {
    background: rgba(255, 255, 255, 0.15);
    padding: 14px;
    border-radius: 10px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.detail-label {
    font-size: 0.8rem;
    opacity: 0.9;
    margin-bottom: 6px;
}

.detail-value {
    font-size: 1rem;
    font-weight: 700;
    word-break: break-all;
    color: white;
}

.duration {
    font-size: 1.5rem;
    font-weight: 800;
    text-align: center;
    padding: 14px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    font-family: 'JetBrains Mono', 'Monaco', monospace;
    letter-spacing: 1px;
    margin-bottom: 10px;
    position: relative;
    z-index: 1;
    backdrop-filter: blur(10px);
}

.refresh-info {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.9);
    text-align: center;
    padding: 10px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    position: relative;
    z-index: 1;
}

/* 按钮样式 */
.action-buttons {
    display: flex;
    gap: 14px;
    margin-top: 24px;
}

button {
    padding: 14px 24px;
    border: none;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    letter-spacing: 0.4px;
    position: relative;
    overflow: hidden;
    min-width: 110px;
}

button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
}

button:hover::before {
    left: 100%;
}

.open-btn {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    flex: 2;
    box-shadow: 0 6px 16px rgba(16, 185, 129, 0.3);
}

.open-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 12px 25px rgba(16, 185, 129, 0.4);
}

.open-btn:disabled {
    background: #cbd5e1;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
    opacity: 0.7;
}

.close-btn {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    flex: 1;
    box-shadow: 0 6px 16px rgba(239, 68, 68, 0.3);
}

.close-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 12px 25px rgba(239, 68, 68, 0.4);
}

.close-btn:disabled {
    background: #cbd5e1;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
    opacity: 0.7;
}

button i {
    font-size: 1rem;
}

/* 页脚 */
footer {
    text-align: center;
    margin-top: 30px;
    padding: 18px;
    color: #64748b;
    font-size: 0.85rem;
    border-top: 2px solid #f1f5f9;
    position: relative;
}

footer p {
    opacity: 0.9;
}

footer::before {
    content: '';
    position: absolute;
    top: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 70px;
    height: 3px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    border-radius: 2px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        padding: 18px;
        margin: 8px;
    }
    
    .content-wrapper {
        flex-direction: column;
        gap: 18px;
    }
    
    .input-section, .status-section {
        min-width: 100%;
        padding: 18px;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .forwarding-details {
        grid-template-columns: 1fr;
    }
    
    h1 {
        font-size: 1.6rem;
    }
    
    .section-title {
        font-size: 1.1rem;
    }
    
    .status-box {
        max-height: 150px; /* 移动端减小更多 */
    }
    
    button {
        width: 100%;
    }
}

/* 微妙的背景动画 */
@keyframes bgPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.95; }
}

.container {
    animation: bgPulse 10s ease-in-out infinite;
}

.code { background-color: #c8c9fa; padding: 0.2rem 0.4rem; border-radius: 6px; font-family: monospace; }

