/* AI自测工具 - 样式 */

* {
    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;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
}

/* Logo */
.logo-container {
    margin-bottom: 30px;
}

.logo-img {
    max-width: 200px;
    height: auto;
    display: block;
    margin: 0 auto;
}

.wechat-logo {
    max-width: 150px;
    height: auto;
    display: block;
    margin: 0 auto 20px;
}

.wechat-section {
    text-align: center;
}

/* 页面切换 */
.page {
    display: none;
}

.page.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

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

/* 欢迎页 */
#welcome {
    text-align: center;
    padding: 60px 20px;
}

#welcome h1 {
    font-size: 2.5rem;
    color: #fff;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

#welcome .subtitle {
    font-size: 1.3rem;
    color: rgba(255,255,255,0.9);
    margin-bottom: 40px;
}

.stats {
    background: rgba(255,255,255,0.2);
    border-radius: 20px;
    padding: 15px 30px;
    margin-bottom: 40px;
    display: inline-block;
}

.stats strong {
    color: #fff;
    font-size: 1.5rem;
}

.features {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-bottom: 50px;
}

.feature {
    background: rgba(255,255,255,0.9);
    padding: 15px 25px;
    border-radius: 30px;
    font-size: 1rem;
    color: #333;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.btn-primary {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: #fff;
    border: none;
    padding: 18px 50px;
    font-size: 1.2rem;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(240,147,251,0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(240,147,251,0.5);
}

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

.btn-secondary {
    background: rgba(255,255,255,0.3);
    color: #fff;
    border: 2px solid rgba(255,255,255,0.5);
    padding: 12px 30px;
    font-size: 1rem;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: rgba(255,255,255,0.4);
}

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

.btn-large {
    padding: 20px 60px;
    font-size: 1.3rem;
}

.note {
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
    margin-top: 20px;
}

/* 进度条 */
.progress-bar {
    background: rgba(255,255,255,0.3);
    border-radius: 10px;
    height: 8px;
    margin-bottom: 30px;
    overflow: hidden;
}

.progress {
    background: linear-gradient(90deg, #f093fb, #f5576c);
    height: 100%;
    border-radius: 10px;
    transition: width 0.3s ease;
    width: 0%;
}

/* 问卷页 */
#question .question-card {
    background: #fff;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    margin-bottom: 30px;
}

.category-tag {
    display: inline-block;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    margin-bottom: 15px;
}

#question h2 {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 10px;
}

#question p {
    color: #666;
    margin-bottom: 30px;
}

.options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.option {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 18px 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 1rem;
}

.option:hover {
    border-color: #667eea;
    background: #f0f4ff;
}

.option.selected {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-color: transparent;
    color: #fff;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255,255,255,0.2);
    padding: 20px 30px;
    border-radius: 20px;
}

.nav span {
    color: #fff;
    font-size: 1rem;
}

/* 报告页 */
#report h1 {
    color: #fff;
    text-align: center;
    font-size: 2rem;
    margin-bottom: 30px;
}

.score-card {
    background: #fff;
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    margin-bottom: 25px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
}

.score-main {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
}

.score-circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.score-circle.large {
    width: 150px;
    height: 150px;
    font-size: 3rem;
    font-weight: bold;
}

.score-circle .unit {
    font-size: 1rem;
    margin-top: 10px;
}

.score-info {
    text-align: left;
}

.level-badge {
    background: linear-gradient(135deg, #f093fb, #f5576c);
    color: #fff;
    padding: 8px 20px;
    border-radius: 25px;
    font-size: 1.3rem;
    display: inline-block;
    margin-bottom: 10px;
}

.level-desc {
    color: #666;
    font-size: 1rem;
}

/* 统计卡片 */
.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 25px;
}

.stat-card {
    background: rgba(255,255,255,0.95);
    border-radius: 16px;
    padding: 25px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.stat-card.highlight {
    background: linear-gradient(135deg, #f093fb, #f5576c);
    color: #fff;
}

.stat-card .stat-content {
    display: flex;
    flex-direction: column;
}

.stat-icon {
    font-size: 2.5rem;
}

.stat-value {
    font-size: 1.8rem;
    font-weight: bold;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* 报告区块 */
.report-section {
    background: #fff;
    border-radius: 16px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.report-section h3 {
    font-size: 1.3rem;
    color: #333;
    margin-bottom: 8px;
}

.section-desc {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 20px;
}

/* 工具卡片 */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.tool-card {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    border: 1px solid #e9ecef;
    transition: all 0.2s ease;
}

.tool-card:hover {
    border-color: #667eea;
    transform: translateY(-2px);
}

.tool-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.tool-icon {
    font-size: 1.5rem;
}

.tool-name {
    font-size: 1.1rem;
    font-weight: bold;
    color: #333;
}

.tool-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 10px;
    font-size: 0.85rem;
    color: #666;
}

.tool-desc {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 10px;
}

.tool-link {
    color: #667eea;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
}

.tool-link:hover {
    text-decoration: underline;
}

/* 时间轴 */
.timeline {
    position: relative;
    padding-left: 30px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 10px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, #667eea, #764ba2);
}

.timeline-item {
    position: relative;
    padding-bottom: 25px;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-dot {
    position: absolute;
    left: -24px;
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 50%;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: bold;
}

.timeline-content {
    background: #f8f9fa;
    padding: 15px 20px;
    border-radius: 12px;
}

.timeline-content h4 {
    color: #333;
    margin-bottom: 5px;
}

.timeline-content p {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 8px;
}

.timeline-time {
    font-size: 0.85rem;
    color: #667eea;
}

/* 学习卡片 */
.learning-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 15px;
}

.learning-card {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    padding: 20px;
    border-radius: 12px;
    text-align: center;
}

.learn-tag {
    display: inline-block;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    margin-bottom: 10px;
}

.learning-card p {
    color: #333;
    font-size: 0.95rem;
}

/* FAQ */
.faq-item {
    border-bottom: 1px solid #e9ecef;
    padding: 15px 0;
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-item summary {
    cursor: pointer;
    font-weight: 500;
    color: #333;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-item summary::after {
    content: '+';
    font-size: 1.5rem;
    color: #667eea;
}

.faq-item[open] summary::after {
    content: '-';
}

.faq-item p {
    color: #666;
    margin-top: 10px;
    padding-left: 10px;
    border-left: 3px solid #667eea;
}

/* 提示词卡片 */
.prompt-grid {
    display: grid;
    gap: 12px;
}

.prompt-card {
    background: #f0f4ff;
    border: 1px solid #d0d8ff;
    border-radius: 10px;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

.prompt-text {
    flex: 1;
    font-size: 0.95rem;
    color: #333;
    font-style: italic;
}

.copy-btn {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.85rem;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.copy-btn:hover {
    transform: scale(1.05);
}

/* 公众号引流卡片 */
.wechat-card {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 16px;
    padding: 30px;
    color: #fff;
    text-align: center;
}

.wechat-card h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
}

.wechat-name {
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.wechat-keyword {
    font-size: 1rem;
    opacity: 0.95;
    margin-bottom: 20px;
}

.benefit-list {
    list-style: none;
    text-align: left;
    margin: 20px 0;
}

.benefit-list li {
    padding: 8px 0;
    border-bottom: 1px solid rgba(255,255,255,0.2);
    font-size: 0.95rem;
}

.benefit-list li:last-child {
    border-bottom: none;
}

.qr-placeholder {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.3);
}

.qr-logo {
    max-width: 100px;
    height: auto;
    display: block;
    margin: 0 auto 15px;
    opacity: 0.9;
}

.qr-placeholder p {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-bottom: 15px;
}

.qr-box {
    width: 140px;
    height: 140px;
    background: #fff;
    border-radius: 12px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #667eea;
    font-size: 1rem;
}
}

.qr-placeholder {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.3);
}

.qr-box {
    width: 150px;
    height: 150px;
    background: #fff;
    border-radius: 12px;
    margin: 15px auto 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-size: 0.9rem;
}

/* CTA区域 */
.cta-section {
    text-align: center;
    padding: 30px 20px;
    background: rgba(255,255,255,0.1);
    border-radius: 16px;
    margin-top: 20px;
}

.cta-note {
    color: rgba(255,255,255,0.8);
    font-size: 0.9rem;
    margin-top: 10px;
}

/* 留资页 */
.lead-container {
    max-width: 500px;
    margin: 0 auto;
}

.lead-container h1 {
    color: #fff;
    text-align: center;
    margin-bottom: 10px;
}

.lead-container .subtitle {
    color: rgba(255,255,255,0.8);
    text-align: center;
    margin-bottom: 30px;
}

.benefits-preview {
    background: rgba(255,255,255,0.95);
    border-radius: 16px;
    padding: 25px;
    margin-bottom: 25px;
}

.benefits-preview h4 {
    color: #333;
    margin-bottom: 15px;
}

.benefits-preview ul {
    list-style: none;
}

.benefits-preview li {
    padding: 8px 0;
    color: #666;
    font-size: 0.95rem;
}

.benefits-preview li::before {
    content: '✓';
    color: #28a745;
    margin-right: 10px;
    font-weight: bold;
}

#lead-form {
    background: #fff;
    border-radius: 16px;
    padding: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    color: #333;
    font-weight: 500;
    margin-bottom: 8px;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 15px;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.2s ease;
}

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

#lead-form .btn-primary {
    width: 100%;
}

.privacy {
    text-align: center;
    color: rgba(255,255,255,0.6);
    font-size: 0.85rem;
    margin-top: 15px;
}

.success-box {
    background: #fff;
    border-radius: 16px;
    padding: 40px;
    text-align: center;
}

.success-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

.success-box h2 {
    color: #28a745;
    margin-bottom: 10px;
}

.success-box p {
    color: #666;
}

.bonus {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
}

.bonus h4 {
    color: #333;
    margin-bottom: 10px;
}

.hidden {
    display: none !important;
}

/* 响应式 */
@media (max-width: 600px) {
    .container {
        padding: 15px;
    }
    
    #welcome h1 {
        font-size: 1.8rem;
    }
    
    .features {
        flex-direction: column;
        align-items: center;
    }
    
    .score-main {
        flex-direction: column;
        text-align: center;
    }
    
    .score-info {
        text-align: center;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .stat-card {
        flex-direction: column;
        text-align: center;
    }
    
    .nav {
        padding: 15px 20px;
    }
    
    .prompt-card {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .copy-btn {
        align-self: flex-end;
    }
}
