:root {
    --primary: #4a6cf7;
    --primary-dark: #3a5ce5;
    --secondary: #6a11cb;
    --text: #333;
    --text-light: #666;
    --bg: #f8f9fa;
    --card-bg: #fff;
    --border: #e9ecef;
    --success: #28a745;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: linear-gradient(135deg, #fef5f0 0%, #faf8f5 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.container {
    background-color: var(--card-bg);
    border-radius: 20px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 600px;
    padding: 40px;
    text-align: center;
}

h1 {
    color: var(--text);
    margin-bottom: 10px;
    font-weight: 600;
}

.subtitle {
    color: var(--text-light);
    margin-bottom: 30px;
    font-size: 16px;
}

.generator-card {
    background-color: var(--bg);
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border);
}

.result-row {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.result-label {
    font-weight: 600;
    color: var(--text);
    width: 80px;
    text-align: left;
    font-size: 15px;
}

.result-value {
    flex: 1;
    background-color: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 12px 15px;
    font-family: monospace;
    font-size: 16px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.copy-btn {
    background-color: var(--primary);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 12px 15px;
    margin-left: 10px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 80px;
}

.copy-btn:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
}

.copy-btn:active {
    transform: translateY(0);
}

.copy-btn i {
    margin-right: 5px;
}

.copy-btn.copied {
    background-color: var(--success);
}

.test-btn {
    background-color: #ff9800;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 12px 15px;
    margin-left: 10px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 80px;
}

.test-btn:hover {
    background-color: #f57c00;
    transform: translateY(-2px);
}

.test-btn:active {
    transform: translateY(0);
}

.test-btn i {
    margin-right: 5px;
}

.test-btn.testing {
    background-color: #2196f3;
    opacity: 0.7;
    cursor: not-allowed;
}

.test-btn.success {
    background-color: var(--success);
}

.test-btn.error {
    background-color: #dc3545;
}

.generate-btn {
    background: linear-gradient(to right, var(--secondary), var(--primary));
    color: white;
    border: none;
    border-radius: 50px;
    padding: 15px 40px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(106, 17, 203, 0.3);
    width: 100%;
}

.generate-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(106, 17, 203, 0.4);
}

.generate-btn:active {
    transform: translateY(0);
}

.register-btn {
    background: linear-gradient(to right, #ff9a56, #ff7e5f);
    color: white;
    border: none;
    padding: 12px 30px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    margin-top: 12px;
    width: 100%;
    transition: all 0.3s ease;
}

.register-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 126, 95, 0.4);
}

.register-btn:active {
    transform: translateY(0);
}

.strength-indicator {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
}

.strength-bar {
    height: 5px;
    flex: 1;
    margin: 0 2px;
    border-radius: 5px;
    background-color: var(--border);
}

.strength-bar.active {
    background-color: var(--success);
}

.strength-text {
    font-size: 14px;
    margin-top: 5px;
    color: var(--text-light);
}

.info-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.info-item {
    text-align: center;
    flex: 1;
    padding: 10px;
    background-color: var(--card-bg);
    border-radius: 8px;
    margin: 0 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.info-value {
    font-weight: bold;
    font-size: 18px;
    color: var(--primary);
}

.info-label {
    font-size: 12px;
    color: var(--text-light);
    margin-top: 5px;
}

.uniqueness-indicator {
    margin-top: 15px;
    padding: 10px;
    background-color: rgba(40, 167, 69, 0.1);
    border-radius: 8px;
    color: var(--success);
    font-size: 14px;
}

.verification-card {
    background-color: var(--bg);
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border);
}

.test-card {
    background-color: var(--bg);
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border);
}

.test-input-row {
    display: flex;
    gap: 10px;
    align-items: center;
}

.test-email-input {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 14px;
    font-family: monospace;
    transition: all 0.3s ease;
}

.test-email-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(74, 108, 247, 0.1);
}

.test-email-input::placeholder {
    color: #999;
}

.test-result {
    padding: 12px;
    border-radius: 8px;
    border-left: 4px solid #17a2b8;
}

.test-result.success {
    background: #f0fff4;
    border-left-color: #28a745;
    color: #155724;
}

.test-result.error {
    background: #fff5f5;
    border-left-color: #dc3545;
    color: #721c24;
}

.test-result-text {
    font-size: 14px;
    line-height: 1.5;
}

.register-btn {
    background-color: #17a2b8;
    color: white;
    border: none;
    border-radius: 50px;
    padding: 15px 40px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(23, 162, 184, 0.3);
    width: 100%;
    margin-top: 20px;
}

.register-btn:hover {
    background-color: #138496;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(23, 162, 184, 0.4);
}

.register-btn:active {
    transform: translateY(0);
}

.download-btn {
    background-color: #28a745;
    color: white;
    border: none;
    border-radius: 50px;
    padding: 15px 40px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(40, 167, 69, 0.3);
    width: 100%;
    margin-top: 10px;
}

.download-btn:hover {
    background-color: #218838;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(40, 167, 69, 0.4);
}

.download-btn:active {
    transform: translateY(0);
}

.save-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #28a745;
    color: white;
    padding: 10px 15px;
    border-radius: 5px;
    font-size: 14px;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    animation: slideIn 0.3s ease-out, fadeOut 0.3s ease-in 2.7s forwards;
}

.monitoring-status {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #007bff;
    color: white;
    padding: 10px 15px;
    border-radius: 5px;
    font-size: 14px;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

@media (max-width: 600px) {
    .container {
        padding: 25px;
    }
    
    .generator-card {
        padding: 20px;
    }
    
    .result-row {
        flex-direction: column;
        align-items: stretch;
    }
    
    .result-label {
        width: 100%;
        margin-bottom: 5px;
    }
    
    .copy-btn {
        margin-left: 0;
        margin-top: 10px;
        width: 100%;
    }
    
    .info-row {
        flex-direction: column;
    }
    
    .info-item {
        margin: 5px 0;
    }
}

/* 验证码监控进度条样式 */
.monitoring-progress {
    margin-top: 20px;
    padding: 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    border: 1px solid #dee2e6;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.progress-status {
    font-weight: 600;
    font-size: 16px;
    color: #495057;
}

.progress-timer {
    font-family: monospace;
    font-size: 14px;
    color: #6c757d;
    background: #fff;
    padding: 4px 8px;
    border-radius: 4px;
    border: 1px solid #dee2e6;
}

.progress-bar {
    width: 100%;
    height: 12px;
    background: #e9ecef;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #17a2b8 0%, #20c997 100%);
    border-radius: 6px;
    width: 0%;
    transition: width 0.3s ease;
    position: relative;
}

.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: shimmer 2s infinite;
}

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

@keyframes verification-flash {
    0%,
    100% {
        opacity: 1;
    }
    50% {
        opacity: 0.35;
    }
}

.verification-waiting {
    animation: verification-flash 1s ease-in-out infinite;
    color: #d63384;
}

.progress-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    font-size: 14px;
    color: #6c757d;
}

.progress-count {
    font-weight: 500;
}

.progress-percentage {
    font-weight: 600;
    color: #17a2b8;
}

.progress-details {
    font-size: 13px;
    color: #495057;
    margin-bottom: 15px;
    padding: 8px 12px;
    background: #fff;
    border-radius: 6px;
    border: 1px solid #dee2e6;
}

.progress-details span {
    font-weight: 600;
    color: #17a2b8;
}

.stop-monitoring-btn {
    background-color: #dc3545;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.stop-monitoring-btn:hover {
    background-color: #c82333;
    transform: translateY(-1px);
}

.stop-monitoring-btn:active {
    transform: translateY(0);
}

.stop-monitoring-btn i {
    margin-right: 5px;
}

/* 监控状态颜色 */
.monitoring-progress.monitoring-active {
    border-color: #17a2b8;
    background: linear-gradient(135deg, #f0f9ff 0%, #e6f7ff 100%);
}

.monitoring-progress.monitoring-success {
    border-color: #28a745;
    background: linear-gradient(135deg, #f0fff4 0%, #e6ffe6 100%);
}

.monitoring-progress.monitoring-error {
    border-color: #dc3545;
    background: linear-gradient(135deg, #fff5f5 0%, #ffe6e6 100%);
}

/* 日志面板样式 */
.logs-panel {
    background-color: var(--bg);
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border);
}

.logs-container {
    background-color: #1e1e1e;
    border-radius: 8px;
    padding: 15px;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    color: #d4d4d4;
    max-height: 400px;
    overflow-y: auto;
    line-height: 1.6;
}

.logs-container::-webkit-scrollbar {
    width: 8px;
}

.logs-container::-webkit-scrollbar-track {
    background: #2d2d2d;
    border-radius: 4px;
}

.logs-container::-webkit-scrollbar-thumb {
    background: #555;
    border-radius: 4px;
}

.logs-container::-webkit-scrollbar-thumb:hover {
    background: #777;
}

.log-entry {
    margin-bottom: 8px;
    padding: 4px 0;
}

.log-entry.info {
    color: #4ec9b0;
}

.log-entry.error {
    color: #f48771;
}

.log-entry-time {
    color: #858585;
    margin-right: 10px;
}

.log-entry-level {
    display: inline-block;
    width: 50px;
    margin-right: 10px;
    font-weight: bold;
}

.log-entry.info .log-entry-level {
    color: #4ec9b0;
}

.log-entry.error .log-entry-level {
    color: #f48771;
}

.log-btn {
    background-color: #6c757d;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 8px 12px;
    margin-left: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 12px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.log-btn:hover {
    background-color: #5a6268;
    transform: translateY(-1px);
}

.log-btn:active {
    transform: translateY(0);
}

.log-btn i {
    font-size: 12px;
}