* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    overflow: hidden;
}

.header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px;
    text-align: center;
}

.header h1 {
    font-size: 28px;
    margin-bottom: 10px;
}

.header p {
    opacity: 0.9;
    font-size: 14px;
}

.status-card {
    display: flex;
    justify-content: space-around;
    padding: 20px;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    flex-wrap: wrap;
}

.status-item {
    font-size: 14px;
    padding: 5px 10px;
}

.status-item .label {
    font-weight: 600;
    color: #6c757d;
}

.status-item .value {
    margin-left: 8px;
    color: #495057;
    font-weight: 500;
}

.steps {
    padding: 30px;
}

.step {
    display: flex;
    margin-bottom: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
    transition: all 0.3s;
}

.step.active {
    background: #e7f3ff;
    border-left: 4px solid #667eea;
}

.step-number {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 18px;
    margin-right: 20px;
    flex-shrink: 0;
}

.step-content {
    flex: 1;
}

.step-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #333;
}

.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 500;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.btn-danger {
    background: #dc3545;
    color: white;
}

.btn-danger:hover:not(:disabled) {
    background: #c82333;
    transform: translateY(-2px);
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.phone-display {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.phone-number {
    font-size: 24px;
    font-weight: bold;
    color: #667eea;
    font-family: monospace;
}

.btn-copy {
    padding: 5px 15px;
    background: #28a745;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 12px;
}

.btn-copy:hover {
    background: #218838;
}

.request-id {
    font-size: 12px;
    color: #6c757d;
    margin-top: 5px;
}

.sms-status {
    margin-top: 10px;
}

.status-text {
    margin-bottom: 10px;
    color: #6c757d;
    font-size: 14px;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
    margin: 10px 0;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    width: 0%;
    transition: width 0.3s;
}

.timer-text {
    font-size: 12px;
    color: #6c757d;
    text-align: center;
}

.sms-code {
    margin-top: 15px;
    padding: 15px;
    background: #d4edda;
    border-radius: 8px;
    text-align: center;
    animation: fadeIn 0.5s;
}

.sms-code .label {
    font-weight: 600;
    margin-right: 10px;
}

.code-value {
    font-size: 32px;
    font-weight: bold;
    color: #28a745;
    font-family: monospace;
}

.log-box {
    margin: 20px 30px 30px;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    overflow: hidden;
}

.log-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    font-weight: 600;
}

.btn-clear {
    padding: 5px 15px;
    background: #6c757d;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 12px;
}

.btn-clear:hover {
    background: #5a6268;
}

.log-content {
    height: 200px;
    overflow-y: auto;
    padding: 15px;
    font-size: 13px;
    font-family: monospace;
}

.log-entry {
    padding: 8px;
    margin-bottom: 5px;
    border-left: 3px solid;
    background: #f8f9fa;
    word-break: break-all;
}

.log-entry.info {
    border-left-color: #667eea;
    color: #495057;
}

.log-entry.success {
    border-left-color: #28a745;
    color: #155724;
    background: #d4edda;
}

.log-entry.error {
    border-left-color: #dc3545;
    color: #721c24;
    background: #f8d7da;
}

.log-entry.warning {
    border-left-color: #ffc107;
    color: #856404;
    background: #fff3cd;
}

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

@media (max-width: 600px) {
    .container {
        margin: 0;
    }
    
    .steps {
        padding: 20px;
    }
    
    .step {
        flex-direction: column;
    }
    
    .step-number {
        margin-bottom: 10px;
    }
    
    .phone-number {
        font-size: 18px;
    }
    
    .status-card {
        flex-direction: column;
        gap: 10px;
    }
    
    
}


/* 在原有样式基础上添加以下内容 */

.params-card {
    margin: 0 30px 20px 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
    border: 1px solid #e9ecef;
}

.params-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #667eea;
}

.params-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.form-group label {
    font-size: 13px;
    font-weight: 600;
    color: #495057;
}

.form-group select,
.form-group input {
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    font-family: inherit;
}

.form-group select:focus,
.form-group input:focus {
    outline: none;
    border-color: #667eea;
}

.phone-info {
    margin-bottom: 10px;
}

.phone-details {
    margin-top: 10px;
    padding: 10px;
    background: #e7f3ff;
    border-radius: 8px;
    font-size: 13px;
    line-height: 1.8;
}

.phone-details div {
    margin: 3px 0;
}

@media (max-width: 600px) {
    .params-card {
        margin: 0 20px 20px 20px;
    }
    
    .params-form {
        grid-template-columns: 1fr;
    }
}

/* 添加到 style.css */
.user-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-name {
    color: white;
    font-size: 14px;
    background: rgba(255,255,255,0.2);
    padding: 5px 12px;
    border-radius: 20px;
}

.btn-logout {
    padding: 5px 15px;
    background: rgba(255,255,255,0.2);
    color: white;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 8px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.3s;
}

.btn-logout:hover {
    background: rgba(255,255,255,0.3);
    transform: translateY(-1px);
}