/* 全新AI诊股模板样式 - 极简现代设计 */
:root {
    /* 新的颜色方案 */
    --primary-color: #0070f3;
    --secondary-color: #1890ff;
    --accent-color: #ff4d4f;
    --success-color: #52c41a;
    --warning-color: #faad14;
    --text-primary: #000000;
    --text-secondary: #666666;
    --bg-primary: #ffffff;
    --bg-secondary: #f0f2f5;
    --bg-tertiary: #e6f7ff;
    --border-color: #d9d9d9;
    --border-radius: 8px;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.09);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
}

/* 全局重置 */
* {
    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;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    color: var(--text-primary);
    line-height: 1.6;
    font-size: 16px;
}

/* 容器样式 */
.container {
    max-width: 600px;
    width: 100%;
    margin: 0 auto;
}

/* 卡片样式 - 全新设计 */
.card {
    background: var(--bg-primary);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    animation: slideUp 0.6s ease-out;
}

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

/* 头部区域 - 全新设计 */
.card-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 32px 24px;
    text-align: center;
}

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

.logo-icon {
    width: 72px;
    height: 72px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 36px;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: var(--transition);
}

.logo-icon:hover {
    transform: rotate(360deg);
    background: rgba(255, 255, 255, 0.3);
}

.logo-text {
    font-size: 36px;
    font-weight: 900;
    letter-spacing: -0.5px;
}

/* 主要内容区域 */
.card-body {
    padding: 32px 24px;
}

/* 标题样式 */
h1 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-primary);
    text-align: center;
}

.subtitle {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 32px;
    text-align: center;
    font-weight: 400;
}

/* 特性区域 - 全新布局 */
.features {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 32px;
    padding: 24px;
    background: var(--bg-secondary);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
}

.feature {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 16px;
    background: var(--bg-primary);
    border-radius: var(--border-radius);
    transition: var(--transition);
    border: 1px solid transparent;
}

.feature:hover {
    transform: translateX(8px);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-sm);
}

.feature i {
    color: var(--primary-color);
    font-size: 24px;
    margin-top: 2px;
    flex-shrink: 0;
}

.feature-content {
    flex: 1;
}

.feature-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.feature-text {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* 步骤指示器 - 全新设计 */
.step-indicator {
    display: flex;
    justify-content: center;
    gap: 32px;
    margin-bottom: 32px;
    padding: 20px 0;
    background: var(--bg-tertiary);
    border-radius: var(--border-radius);
}

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

.step::before {
    content: '';
    position: absolute;
    top: 16px;
    left: 100%;
    width: 32px;
    height: 2px;
    background: var(--border-color);
    z-index: 1;
}

.step:last-child::before {
    display: none;
}

.step-number {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--border-color);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    transition: var(--transition);
    z-index: 2;
}

.step.active .step-number {
    background: var(--primary-color);
    color: white;
    transform: scale(1.2);
    box-shadow: 0 0 0 4px rgba(0, 112, 243, 0.1);
}

.step-text {
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 500;
    text-align: center;
    width: 80px;
}

.step.active .step-text {
    color: var(--primary-color);
}

/* 输入区域 - 全新设计 */
.input-container {
    margin-bottom: 24px;
    padding: 24px;
    background: var(--bg-secondary);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
}

.code-input {
    width: 100%;
    padding: 16px 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);
    color: var(--text-primary);
    outline: none;
}

.code-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(0, 112, 243, 0.1);
}

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

.error-message {
    color: var(--accent-color);
    font-size: 13px;
    margin-top: 8px;
    text-align: center;
    display: none;
    font-weight: 500;
}

/* 按钮样式 - 全新设计 */
.btn {
    width: 100%;
    padding: 16px 24px;
    background: var(--primary-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: 16px;
    outline: none;
    border: 2px solid transparent;
}

.btn:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn:active {
    transform: translateY(0);
    box-shadow: var(--shadow-sm);
}

.btn:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 4px rgba(0, 112, 243, 0.2);
}

/* Google按钮样式 */
.btn-google {
    background: white;
    color: var(--text-primary);
    border: 2px solid var(--border-color);
    font-weight: 700;
}

.btn-google:hover {
    background: #f5f5f5;
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* 信任徽章 - 全新设计 */
.trust-badges {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

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

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

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

/* 加载状态 - 全新设计 */
.loading-spinner {
    width: 64px;
    height: 64px;
    border: 3px solid var(--border-color);
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 24px;
}

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

/* 结果区域 - 全新设计 */
.result-section {
    text-align: center;
    padding: 32px 24px;
    background: var(--bg-tertiary);
    border-radius: var(--border-radius);
    border: 2px solid var(--primary-color);
    margin-bottom: 24px;
}

.result-icon {
    font-size: 64px;
    color: var(--success-color);
    margin-bottom: 16px;
}

.result-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.result-message {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 24px;
    line-height: 1.5;
}

.code-display {
    display: inline-block;
    padding: 8px 16px;
    background: var(--bg-primary);
    color: var(--primary-color);
    font-size: 20px;
    font-weight: 700;
    border-radius: var(--border-radius);
    border: 2px solid var(--primary-color);
    margin: 8px 0;
}

/* 免责声明 - 全新设计 */
.disclaimer {
    background: var(--bg-secondary);
    padding: 24px;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    margin-top: 24px;
}

.disclaimer h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--accent-color);
    margin-bottom: 16px;
    text-align: center;
}

.disclaimer p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 12px;
    text-align: center;
}

.disclaimer ul {
    list-style: none;
    padding: 0;
    margin: 16px 0;
}

.disclaimer li {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 8px;
    text-align: center;
    position: relative;
    padding-left: 0;
}

/* 模态框样式 - 全新设计 */
.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(4px);
}

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

.modal-content {
    background-color: var(--bg-primary);
    border-radius: var(--border-radius);
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow: hidden;
    animation: modalSlideIn 0.3s ease-out;
    box-shadow: var(--shadow-lg);
}

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

.modal-header {
    padding: 20px 24px;
    background: var(--primary-color);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.close {
    color: white;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition);
    width: 32px;
    height: 32px;
    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: 24px;
    overflow-y: auto;
    max-height: 60vh;
}

.modal-footer {
    padding: 16px 24px;
    background: var(--bg-secondary);
    text-align: right;
    border-top: 1px solid var(--border-color);
}

/* 步骤容器 */
#step1,
#step2,
#step3 {
    animation: fadeIn 0.5s ease;
}

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

.hidden {
    display: none !important;
}

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

/* 响应式设计 */
@media (max-width: 768px) {
    .card-body {
        padding: 24px 16px;
    }
    
    .card-header {
        padding: 24px 16px;
    }
    
    .logo-text {
        font-size: 28px;
    }
    
    h1 {
        font-size: 24px;
    }
    
    .features {
        padding: 16px;
    }
    
    .feature {
        padding: 12px;
    }
    
    .step-indicator {
        gap: 16px;
    }
    
    .step::before {
        width: 16px;
    }
    
    .trust-badges {
        gap: 12px;
    }
    
    .trust-badge {
        padding: 8px 12px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    body {
        padding: 16px;
    }
    
    .card-body {
        padding: 20px 12px;
    }
    
    .btn {
        padding: 14px 20px;
        font-size: 15px;
    }
    
    .code-input {
        padding: 14px 16px;
        font-size: 15px;
    }
    
    .step-indicator {
        flex-direction: column;
        gap: 12px;
        padding: 16px;
    }
    
    .step {
        flex-direction: row;
        align-items: center;
    }
    
    .step::before {
        display: none;
    }
    
    .step-text {
        text-align: left;
    }
}