/* 新的AI诊股模板样式 - 绿色系 */
:root {
    --primary-color: #10b981;
    --secondary-color: #06b6d4;
    --accent-color: #3b82f6;
    --success-color: #22c55e;
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --bg-primary: #f9fafb;
    --bg-secondary: #ffffff;
    --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: 12px;
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #10b981 0%, #06b6d4 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: 500px;
    width: 100%;
}

.card {
    background: var(--bg-secondary);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    padding: 40px 30px;
    text-align: center;
    animation: fadeInUp 0.6s ease;
}

@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: 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: 24px;
    box-shadow: var(--shadow-md);
}

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

h1 {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 10px;
    color: var(--text-primary);
}

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

.features {
    display: flex;
    justify-content: space-around;
    margin-bottom: 30px;
    gap: 20px;
}

.feature {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.feature i {
    width: 40px;
    height: 40px;
    background: var(--bg-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 18px;
}

.feature-text {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
}

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

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

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

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

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

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

.code-input {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 16px;
    font-weight: 500;
    transition: var(--transition);
    background: var(--bg-primary);
}

.code-input:focus {
    outline: none;
    border-color: var(--primary-color);
    background: white;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.input-hint {
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 8px;
    text-align: left;
}

.error-message {
    color: #ef4444;
    font-size: 13px;
    margin-top: 8px;
    text-align: left;
    display: none;
}

.btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    border-radius: var(--border-radius);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-md);
}

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

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

.btn-whatsapp {
    background: linear-gradient(135deg, #25d366, #128c7e);
    box-shadow: var(--shadow-md);
}

.btn-whatsapp:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

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

.trust-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    background: var(--bg-primary);
    padding: 8px 12px;
    border-radius: 20px;
}

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

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

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

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

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

.code-display {
    color: var(--primary-color);
    font-weight: 700;
}

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

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

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

.checkmark__check {
    transform-origin: 50% 50%;
    stroke: var(--success-color);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    animation: check 0.8s cubic-bezier(0.65, 0, 0.45, 1) 0.2s forwards;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
}

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

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

.disclaimer {
    font-size: 12px;
    color: var(--text-secondary);
    text-align: center;
    line-height: 1.4;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.hidden {
    display: none;
}

.hidden * {
    display: none;
}

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

@media (max-width: 480px) {
    .card {
        padding: 30px 20px;
    }
    
    h1 {
        font-size: 28px;
    }
    
    .logo-text {
        font-size: 24px;
    }
    
    .features {
        flex-direction: column;
        gap: 15px;
    }
    
    .feature {
        flex-direction: row;
        justify-content: flex-start;
        text-align: left;
    }
    
    .trust-badges {
        flex-direction: column;
        align-items: center;
    }
}
