/* 新的AI诊股模板样式 - 现代化设计 */
:root {
    --primary-color: #3b82f6;
    --secondary-color: #10b981;
    --accent-color: #f59e0b;
    --danger-color: #ef4444;
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --bg-primary: #ffffff;
    --bg-secondary: #f3f4f6;
    --border-color: #e5e7eb;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --border-radius: 16px;
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    color: var(--text-primary);
    line-height: 1.6;
}

.container {
    max-width: 550px;
    width: 100%;
}

.card {
    background: var(--bg-primary);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    padding: 40px 30px;
    text-align: center;
    animation: fadeInUp 0.6s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

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

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
    gap: 12px;
}

.logo-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 28px;
    box-shadow: var(--shadow-md);
    border: 3px solid rgba(255, 255, 255, 0.3);
}

.logo-text {
    font-size: 32px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

h1 {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 15px;
    color: var(--text-primary);
    line-height: 1.2;
}

.subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 35px;
    font-weight: 500;
}

.features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 35px;
}

.feature {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 15px;
    background: var(--bg-secondary);
    border-radius: 12px;
    transition: var(--transition);
}

.feature:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.feature i {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 22px;
    box-shadow: var(--shadow-sm);
}

.feature-text {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-secondary);
    text-align: center;
}

.step-indicator {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 35px;
}

.step {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--border-color);
    transition: var(--transition);
    position: relative;
}

.step::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background: transparent;
    border-radius: 50%;
    transition: var(--transition);
}

.step.active {
    background: var(--primary-color);
    transform: scale(1.3);
}

.step.active::before {
    background: white;
}

#step1,
#step2,
#step3 {
    animation: fadeIn 0.5s ease;
}

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

.input-container {
    margin-bottom: 30px;
}

.code-input {
    width: 100%;
    padding: 20px 25px;
    border: 3px solid var(--border-color);
    border-radius: 16px;
    font-size: 18px;
    font-weight: 600;
    transition: var(--transition);
    background: var(--bg-secondary);
    color: var(--text-primary);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
}

.code-input:focus {
    outline: none;
    border-color: var(--primary-color);
    background: white;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
    transform: translateY(-2px);
}

.input-hint {
    font-size: 14px;
    color: var(--text-secondary);
    margin-top: 10px;
    text-align: left;
    font-weight: 500;
}

.error-message {
    color: var(--danger-color);
    font-size: 14px;
    margin-top: 10px;
    text-align: left;
    font-weight: 600;
    display: none;
}

/* 新的按钮样式 */
.btn {
    width: 100%;
    padding: 20px 25px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    border: none;
    border-radius: 16px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 25px;
    box-shadow: var(--shadow-lg);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.15);
    background: linear-gradient(135deg, var(--accent-color), var(--primary-color));
}

.btn:active {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Google跳转按钮样式 */
.btn-google {
    background: linear-gradient(135deg, #4285f4, #34a853, #fbbc05, #ea4335);
    box-shadow: var(--shadow-lg);
    font-weight: 800;
}

.btn-google:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.15);
    background: linear-gradient(135deg, #ea4335, #fbbc05, #34a853, #4285f4);
}

.trust-badges {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-bottom: 35px;
    flex-wrap: wrap;
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-secondary);
    background: var(--bg-secondary);
    padding: 12px 20px;
    border-radius: 25px;
    transition: var(--transition);
    border: 2px solid var(--border-color);
}

.trust-badge:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.trust-badge i {
    color: var(--primary-color);
    font-size: 18px;
}

.loading-spinner {
    width: 80px;
    height: 80px;
    border: 4px solid var(--bg-secondary);
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 25px;
    box-shadow: var(--shadow-md);
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

h2 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.result-message {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 25px;
    color: var(--text-primary);
}

.code-display {
    color: var(--primary-color);
    font-weight: 800;
    font-size: 24px;
    background: var(--bg-secondary);
    padding: 5px 15px;
    border-radius: 8px;
    border: 2px solid var(--primary-color);
}

.success-animation {
    margin-bottom: 35px;
}

.checkmark {
    width: 100px;
    height: 100px;
    margin: 0 auto;
}

.checkmark__circle {
    stroke: var(--secondary-color);
    stroke-width: 3;
    stroke-miterlimit: 10;
    fill: none;
    animation: stroke 0.8s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.checkmark__check {
    transform-origin: 50% 50%;
    stroke: var(--secondary-color);
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
    animation: check 1s cubic-bezier(0.65, 0, 0.45, 1) 0.3s forwards;
    stroke-dasharray: 60;
    stroke-dashoffset: 60;
}

@keyframes stroke {
    0% { stroke-dasharray: 200; stroke-dashoffset: 200; }
    100% { stroke-dashoffset: 0; }
}

@keyframes check {
    to { stroke-dashoffset: 0; }
}

.disclaimer {
    background: linear-gradient(135deg, var(--bg-secondary), rgba(255, 255, 255, 0.8));
    padding: 25px;
    border-radius: 16px;
    border: 3px solid var(--border-color);
    margin-top: 30px;
}

/* 模态框样式优化 */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: var(--bg-primary);
    margin: auto;
    padding: 0;
    border-radius: 20px;
    width: 90%;
    max-width: 600px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header {
    padding: 25px 30px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    border-radius: 20px 20px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    color: white;
    margin: 0;
    font-size: 24px;
}

.close {
    color: white;
    font-size: 32px;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
}

.close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.modal-body {
    padding: 30px;
    max-height: 70vh;
    overflow-y: auto;
}

.modal-footer {
    padding: 20px 30px;
    background: var(--bg-secondary);
    border-radius: 0 0 20px 20px;
    text-align: right;
}

.hidden {
    display: none !important;
}

.fade-in {
    animation: fadeIn 0.5s ease;
}

/* 响应式设计优化 */
@media (max-width: 576px) {
    .card {
        padding: 30px 20px;
    }
    
    h1 {
        font-size: 28px;
    }
    
    .logo-text {
        font-size: 28px;
    }
    
    .features {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .feature {
        flex-direction: row;
        justify-content: flex-start;
        text-align: left;
    }
    
    .trust-badges {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        font-size: 16px;
        padding: 18px 20px;
    }
    
    .code-input {
        font-size: 16px;
        padding: 18px 20px;
    }
}