/* 新的AI诊股模板样式 - 蓝色/青色系 */
:root {
    --primary-color: #3b82f6;
    --secondary-color: #06b6d4;
    --accent-color: #14b8a6;
    --success-color: #10b981;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --bg-primary: #f1f5f9;
    --bg-secondary: #ffffff;
    --border-color: #e2e8f0;
    --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: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #3b82f6 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: 45px 35px;
    text-align: center;
    animation: fadeInUp 0.6s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

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

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 35px;
    gap: 15px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.logo-icon {
    width: 55px;
    height: 55px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 28px;
    box-shadow: var(--shadow-md);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.logo-text {
    font-size: 32px;
    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;
    letter-spacing: -0.5px;
}

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: 400;
}

.features {
    display: flex;
    justify-content: space-around;
    margin-bottom: 35px;
    gap: 25px;
    padding: 25px;
    background: var(--bg-primary);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
}

.feature {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    flex: 1;
    padding: 15px;
    background: white;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.feature:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}

.feature i {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 10px;
    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-primary);
}

.step-indicator {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 35px;
    padding: 20px;
    background: var(--bg-primary);
    border-radius: 50px;
    border: 1px solid var(--border-color);
}

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

.step.active {
    background: var(--primary-color);
    transform: scale(1.4);
    box-shadow: 0 0 0 8px rgba(59, 130, 246, 0.1);
}

#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: 18px 24px;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 18px;
    font-weight: 500;
    transition: var(--transition);
    background: var(--bg-primary);
    box-shadow: var(--shadow-sm);
}

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

.code-input:hover {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.05);
}

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

.error-message {
    color: #ef4444;
    font-size: 14px;
    margin-top: 10px;
    text-align: left;
    display: none;
    font-weight: 500;
    padding: 8px 12px;
    background: #fef2f2;
    border-radius: 8px;
    border: 1px solid #fee2e2;
}

.btn {
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    border-radius: var(--border-radius);
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 25px;
    box-shadow: var(--shadow-md);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    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;
}

.btn:hover::before {
    left: 100%;
}

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

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

.btn-whatsapp {
    background: linear-gradient(135deg, #25d366, #128c7e);
    box-shadow: var(--shadow-md);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

.trust-badges {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 35px;
    flex-wrap: wrap;
    padding: 20px;
    background: var(--bg-primary);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    background: white;
    padding: 10px 16px;
    border-radius: 25px;
    border: 1px solid var(--border-color);
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

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

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

.loading-spinner {
    width: 70px;
    height: 70px;
    border: 5px solid var(--bg-primary);
    border-top: 5px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 25px;
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.2);
}

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

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

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

h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--text-primary);
}

/* 新框架结构样式 */
.hero-section {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px 0;
}

.features-section {
    margin-bottom: 30px;
    padding: 20px 0;
    background: var(--bg-primary);
    border-radius: var(--border-radius);
}

.main-content {
    margin-bottom: 30px;
}

.step-content {
    text-align: center;
}

.input-wrapper {
    margin-bottom: 25px;
    padding: 20px;
    background: var(--bg-primary);
    border-radius: var(--border-radius);
    text-align: left;
}

.button-section {
    margin-bottom: 25px;
}

.primary-btn {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.trust-section {
    background: var(--bg-primary);
    padding: 20px;
    border-radius: var(--border-radius);
}

.loading-wrapper {
    text-align: center;
    padding: 40px 20px;
}

.success-wrapper {
    text-align: center;
    padding: 20px;
}

.whatsapp-section {
    margin: 25px 0;
}

.footer-section {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.result-message {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 25px;
    color: var(--text-primary);
    padding: 15px;
    background: var(--bg-primary);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
}

.code-display {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 24px;
    background: white;
    padding: 5px 15px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

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

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

.checkmark__circle {
    stroke: var(--success-color);
    stroke-width: 3;
    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: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
    animation: check 0.8s cubic-bezier(0.65, 0, 0.45, 1) 0.2s 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 {
    font-size: 13px;
    color: var(--text-secondary);
    text-align: center;
    line-height: 1.5;
    margin-top: 30px;
    padding: 20px;
    background: var(--bg-primary);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
}

.hidden {
    display: none;
}

.hidden * {
    display: none;
}

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

/* Modal Styles */
.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);
    animation: fadeIn 0.3s ease;
}

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

.modal-content {
    background-color: var(--bg-secondary);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    max-width: 500px;
    width: 100%;
    margin: 20px;
    overflow: hidden;
    animation: slideInUp 0.3s ease;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

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

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

.close {
    color: white;
    font-size: 30px;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition);
    line-height: 1;
}

.close:hover {
    opacity: 0.8;
    transform: rotate(90deg);
}

.modal-body {
    padding: 25px;
    text-align: left;
    max-height: 60vh;
    overflow-y: auto;
}

.modal-body h3 {
    font-size: 18px;
    margin-top: 20px;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.modal-body p {
    margin-bottom: 15px;
    line-height: 1.6;
    color: var(--text-secondary);
}

.modal-footer {
    padding: 20px 25px;
    text-align: right;
    border-top: 1px solid var(--border-color);
}

.modal-footer .btn {
    width: auto;
    margin-bottom: 0;
    padding: 12px 24px;
}

@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;
    }
    
    .modal-content {
        margin: 10px;
    }
    
    .modal-header {
        padding: 15px 20px;
    }
    
    .modal-header h2 {
        font-size: 20px;
    }
    
    .modal-body {
        padding: 20px;
    }
    
    .modal-footer {
        padding: 15px 20px;
    }
}
