/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 变量定义 */
:root {
    --primary-color: #00ff88;
    --secondary-color: #00d4ff;
    --background-color: #0a0e27;
    --card-background: #12183e;
    --text-primary: #ffffff;
    --text-secondary: #b0b8d4;
    --error-color: #ff4757;
    --success-color: #2ed573;
    --border-color: #2c3e50;
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    --glow: 0 0 20px rgba(0, 255, 136, 0.5);
}

/* 全局样式 */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, var(--background-color) 0%, #1a1f3a 100%);
    color: var(--text-primary);
    line-height: 1.6;
    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% 50%, rgba(0, 255, 136, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(0, 212, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(255, 71, 87, 0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

/* 容器样式 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* 头部样式 */
.header {
    text-align: center;
    margin-bottom: 40px;
    padding: 30px 0;
    background: rgba(18, 24, 62, 0.8);
    border-radius: 16px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: var(--shadow);
}

.title {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
    animation: glow 2s ease-in-out infinite alternate;
}

.subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    font-weight: 300;
}

/* 主要内容 */
.main-content {
    display: grid;
    gap: 30px;
}

/* 输入区域 */
.input-section {
    background: var(--card-background);
    padding: 40px;
    border-radius: 16px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.input-title {
    font-size: 1.5rem;
    margin-bottom: 25px;
    color: var(--text-primary);
    text-align: center;
    font-weight: 600;
}

.input-container {
    margin-bottom: 30px;
}

.account-input {
    width: 100%;
    padding: 18px 24px;
    font-size: 1.1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-primary);
    transition: all 0.3s ease;
    outline: none;
}

.account-input:focus {
    border-color: var(--primary-color);
    box-shadow: var(--glow);
    background: rgba(255, 255, 255, 0.08);
}

.account-input::placeholder {
    color: var(--text-secondary);
    opacity: 0.7;
}

/* 按钮组 */
.button-group {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 16px 32px;
    font-size: 1.1rem;
    font-weight: 600;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
}

.btn::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.5s ease;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(45deg, var(--primary-color), #00cc77);
    color: #000;
    box-shadow: 0 4px 15px rgba(0, 255, 136, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 255, 136, 0.4);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.btn-secondary {
    background: linear-gradient(45deg, var(--error-color), #ff3742);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 71, 87, 0.3);
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 71, 87, 0.4);
}

.btn-secondary:active {
    transform: translateY(0);
}

.btn-secondary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* 目标网站信息 */
.target-section {
    background: var(--card-background);
    padding: 25px;
    border-radius: 16px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.target-info {
    color: var(--text-secondary);
    font-size: 1rem;
}

.target-url {
    color: var(--secondary-color);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
}

.target-url:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

/* 结果区域 */
.results-section {
    background: var(--card-background);
    padding: 40px;
    border-radius: 16px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.results-title {
    font-size: 1.5rem;
    color: var(--text-primary);
    font-weight: 600;
}

.status {
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.status.ready {
    background: rgba(46, 213, 115, 0.2);
    color: var(--success-color);
}

.status.running {
    background: rgba(0, 255, 136, 0.2);
    color: var(--primary-color);
    animation: pulse 1.5s ease-in-out infinite;
}

.status.stopped {
    background: rgba(255, 71, 87, 0.2);
    color: var(--error-color);
}

/* 结果容器 */
.results-container {
    max-height: 500px;
    overflow-y: auto;
    padding: 20px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.results-container::-webkit-scrollbar {
    width: 8px;
}

.results-container::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

.results-container::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
    transition: background 0.3s ease;
}

.results-container::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

.initial-message {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1.1rem;
    font-style: italic;
    padding: 40px 20px;
}

/* 测试结果项 */
.test-item {
    padding: 16px 20px;
    margin-bottom: 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border-left: 4px solid var(--error-color);
    transition: all 0.3s ease;
    animation: slideIn 0.3s ease-out;
}

.test-item:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateX(5px);
}

.test-item:last-child {
    margin-bottom: 0;
}

.test-number {
    font-weight: 700;
    color: var(--primary-color);
    margin-right: 15px;
}

.test-password {
    color: var(--text-primary);
    font-family: 'Courier New', monospace;
    margin-right: 15px;
}

.test-time {
    color: var(--secondary-color);
    font-size: 0.9rem;
    margin-right: 15px;
}

.test-status {
    color: var(--error-color);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
}

/* 正在尝试消息 */
.attempting-message {
    padding: 16px 20px;
    margin-bottom: 20px;
    background: rgba(0, 255, 136, 0.1);
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
    color: var(--primary-color);
    font-weight: 600;
    text-align: center;
    animation: pulse 1.5s ease-in-out infinite;
}

/* 页脚 */
.footer {
    text-align: center;
    margin-top: 50px;
    padding: 30px 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
    background: rgba(18, 24, 62, 0.8);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: var(--shadow);
}

/* 动画效果 */
@keyframes glow {
    from {
        filter: drop-shadow(0 0 5px rgba(0, 255, 136, 0.5));
    }
    to {
        filter: drop-shadow(0 0 20px rgba(0, 255, 136, 0.8));
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    .title {
        font-size: 2rem;
    }
    
    .subtitle {
        font-size: 1rem;
    }
    
    .input-section,
    .results-section {
        padding: 30px 20px;
    }
    
    .button-group {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
    }
    
    .results-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .results-container {
        max-height: 400px;
    }
}

@media (max-width: 480px) {
    .title {
        font-size: 1.8rem;
    }
    
    .input-title,
    .results-title {
        font-size: 1.3rem;
    }
    
    .account-input {
        padding: 15px 20px;
        font-size: 1rem;
    }
    
    .btn {
        padding: 14px 28px;
        font-size: 1rem;
    }
}