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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    background: linear-gradient(135deg, #1a1a4e 0%, #2d1b69 25%, #1e3a8a 50%, #1e40af 75%, #3b82f6 100%);
    background-attachment: fixed;
    min-height: 100vh;
    color: #ffffff;
    overflow-x: hidden;
}

.page {
    display: none;
    min-height: 100vh;
    padding: 20px;
    animation: fadeIn 0.5s ease-in;
}

.page.active {
    display: block;
}

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

.container {
    max-width: 600px;
    margin: 0 auto;
}

/* 欢迎页样式 */
.main-title {
    font-size: 32px;
    font-weight: bold;
    text-align: center;
    margin: 40px 0 20px;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

.subtitle {
    text-align: center;
    font-size: 14px;
    opacity: 0.9;
    margin-bottom: 30px;
}

.description {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 30px;
    line-height: 1.8;
}

.description p {
    margin-bottom: 10px;
}

.features {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 40px;
}

.features h3 {
    font-size: 18px;
    margin-bottom: 15px;
}

.features ul {
    list-style: none;
    padding-left: 0;
}

.features li {
    padding: 10px 0;
    padding-left: 25px;
    position: relative;
    line-height: 1.6;
}

.features li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #fbbf24;
    font-weight: bold;
}

/* 按钮样式 */
.btn-primary, .btn-secondary, .btn-cta {
    width: 100%;
    padding: 16px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.btn-primary {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: #1a1a4e;
    box-shadow: 0 4px 15px rgba(251, 191, 36, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(251, 191, 36, 0.6);
}

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

.btn-secondary {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-cta {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
    font-size: 18px;
    padding: 18px;
}

.btn-test {
    width: 100%;
    padding: 14px;
    border: 2px dashed rgba(251, 191, 36, 0.5);
    border-radius: 12px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    background: rgba(251, 191, 36, 0.1);
    color: #fbbf24;
    transition: all 0.3s ease;
}

.btn-test:hover {
    background: rgba(251, 191, 36, 0.2);
    border-color: #fbbf24;
}

/* 进度条 */
.progress-bar {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
    margin-bottom: 30px;
    overflow: hidden;
}

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

/* 表单样式 */
.section-title {
    font-size: 24px;
    margin-bottom: 30px;
    text-align: center;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 500;
}

.required {
    color: #fbbf24;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    color: #ffffff;
    font-size: 16px;
    font-family: inherit;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #fbbf24;
    background: rgba(255, 255, 255, 0.15);
}

/* 日期输入组 */
.date-input-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.date-input-group input {
    flex: 1;
    width: auto;
    text-align: center;
}

.date-separator {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

/* 问卷样式 */
.question-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 25px;
    margin-bottom: 30px;
}

.question-number {
    color: #fbbf24;
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 10px;
}

.question-section {
    color: #93c5fd;
    font-size: 16px;
    margin-bottom: 15px;
    font-weight: 600;
}

.question-text {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 25px;
}

.likert-scale {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    margin-top: 20px;
}

.likert-option {
    flex: 1;
    text-align: center;
}

.likert-option input[type="radio"] {
    display: none;
}

.likert-option label {
    display: block;
    padding: 12px 8px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.likert-option input[type="radio"]:checked + label {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    border-color: #fbbf24;
    color: #1a1a4e;
    font-weight: bold;
    transform: scale(1.05);
}

/* 多选题样式 */
.multiple-choice-options {
    margin-top: 20px;
}

.checkbox-option {
    margin-bottom: 15px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.checkbox-option:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(251, 191, 36, 0.5);
}

.checkbox-option input[type="checkbox"] {
    margin-right: 12px;
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #fbbf24;
}

.checkbox-option label {
    cursor: pointer;
    font-size: 15px;
    line-height: 1.5;
    display: inline;
}

.checkbox-option input[type="checkbox"]:checked + label {
    color: #fbbf24;
    font-weight: 600;
}

.scale-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    font-size: 12px;
    opacity: 0.7;
}

.navigation-buttons {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.navigation-buttons button {
    flex: 1;
}

/* 结果页样式 */
.result-container {
    padding-bottom: 60px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.result-title {
    font-size: 32px;
    text-align: center;
    margin-bottom: 50px;
    color: #4ade80;
    font-weight: bold;
}

/* 提交测评区域 */
.submit-section {
    max-width: 500px;
    width: 100%;
    text-align: center;
}

.btn-submit {
    width: 100%;
    padding: 20px;
    font-size: 20px;
    font-weight: bold;
    color: #fff;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(102, 126, 234, 0.6);
}

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

.btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

#submit-loading {
    display: none;
}

.submit-status {
    margin-top: 20px;
    font-size: 16px;
    font-weight: 500;
    min-height: 24px;
}

.submit-status.success {
    color: #4ade80;
}

.submit-status.error {
    color: #f87171;
}

/* 四宫格布局 */
.report-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.chart-box {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    padding: 20px;
    min-height: 320px;
}

.chart-title {
    font-size: 16px;
    margin-bottom: 15px;
    text-align: center;
    color: #fbbf24;
    font-weight: 600;
}

.chart-wrapper {
    position: relative;
    height: 250px;
}

/* 漏斗图样式 */
.funnel-wrapper {
    position: relative;
    height: 250px;
}

.funnel-label {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 14px;
    color: #fbbf24;
    font-weight: 600;
}

.insight-section {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 25px;
    margin-bottom: 25px;
}

.insight-section.warning {
    border-color: rgba(251, 191, 36, 0.5);
    background: rgba(251, 191, 36, 0.1);
}

.insight-section h3 {
    font-size: 18px;
    margin-bottom: 15px;
    color: #fbbf24;
}

.insight-text {
    line-height: 1.8;
    font-size: 16px;
}

/* 邮件发送区域 */
.email-section {
    background: rgba(251, 191, 36, 0.1);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(251, 191, 36, 0.3);
    border-radius: 16px;
    padding: 25px;
    text-align: center;
    margin-bottom: 25px;
}

.email-hint {
    font-size: 15px;
    color: #fbbf24;
    margin-bottom: 15px;
    font-weight: 500;
}

.btn-send-email {
    width: 100%;
    padding: 16px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: #1a1a4e;
    box-shadow: 0 4px 15px rgba(251, 191, 36, 0.4);
    transition: all 0.3s ease;
}

.btn-send-email:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(251, 191, 36, 0.6);
}

.btn-send-email:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.email-status {
    margin-top: 15px;
    font-size: 14px;
    min-height: 20px;
}

.email-status.success {
    color: #4ade80;
    font-weight: 600;
}

.email-status.error {
    color: #f87171;
    font-weight: 600;
}

.cta-section {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(59, 130, 246, 0.5);
    border-radius: 16px;
    padding: 30px;
    text-align: center;
    margin-top: 40px;
}

.cta-text {
    line-height: 1.8;
    margin-bottom: 20px;
    font-size: 15px;
}

/* 弹窗样式 */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease-in;
}

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

.modal-content {
    background: linear-gradient(135deg, #1e3a8a 0%, #1a1a4e 100%);
    border: 2px solid rgba(251, 191, 36, 0.3);
    border-radius: 24px;
    padding: 0;
    max-width: 520px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}

.close-btn {
    position: absolute;
    right: 15px;
    top: 15px;
    font-size: 28px;
    font-weight: bold;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: all 0.3s ease;
    line-height: 1;
    z-index: 10;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 50%;
}

.close-btn:hover {
    color: #ffffff;
    background: rgba(0, 0, 0, 0.5);
    transform: rotate(90deg);
}

.coach-profile {
    padding: 30px 25px;
}

/* 头像和基本信息 */
.coach-header {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
}

.coach-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid #fbbf24;
    object-fit: cover;
    box-shadow: 0 4px 12px rgba(251, 191, 36, 0.3);
}

.coach-basic {
    flex: 1;
}

.coach-name {
    font-size: 24px;
    color: #fbbf24;
    margin-bottom: 10px;
    font-weight: bold;
}

.coach-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.tag {
    display: inline-block;
    padding: 4px 10px;
    background: rgba(147, 197, 253, 0.2);
    border: 1px solid rgba(147, 197, 253, 0.3);
    border-radius: 12px;
    font-size: 11px;
    color: #93c5fd;
    line-height: 1.4;
}

/* Slogan */
.coach-slogan {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.2), rgba(245, 158, 11, 0.2));
    border-left: 4px solid #fbbf24;
    padding: 15px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    color: #fbbf24;
    line-height: 1.6;
    margin-bottom: 20px;
}

/* 故事卡片 */
.story-card {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 20px;
}

.story-card p {
    font-size: 14px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
}

/* 信念与愿景 */
.belief-section {
    margin-bottom: 20px;
}

.belief-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 12px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
}

.belief-item .label {
    font-size: 14px;
    font-weight: 600;
    color: #fbbf24;
    white-space: nowrap;
}

.belief-item .text {
    font-size: 14px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
}

/* 擅长领域 */
.skills-section {
    margin-bottom: 25px;
}

.skills-title {
    font-size: 15px;
    font-weight: 600;
    color: #fbbf24;
    margin-bottom: 12px;
}

.skills-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.skill-tag {
    padding: 8px 16px;
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.2), rgba(245, 158, 11, 0.2));
    border: 1px solid rgba(251, 191, 36, 0.4);
    border-radius: 20px;
    font-size: 13px;
    color: #fbbf24;
    font-weight: 500;
}

.qr-section {
    text-align: center;
    padding: 20px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    border: 1px solid rgba(251, 191, 36, 0.2);
}

.qr-label {
    font-size: 15px;
    color: #fbbf24;
    margin-bottom: 15px;
    font-weight: 600;
}

.qr-code {
    width: 180px;
    height: 180px;
    border: 3px solid #fbbf24;
    border-radius: 16px;
    padding: 8px;
    background: white;
    box-shadow: 0 4px 12px rgba(251, 191, 36, 0.3);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .report-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .chart-box {
        min-height: 280px;
    }
    
    .chart-wrapper {
        height: 220px;
    }
    
    .funnel-wrapper {
        height: 220px;
    }
}

@media (max-width: 480px) {
    .main-title {
        font-size: 28px;
    }
    
    .likert-scale {
        gap: 5px;
    }
    
    .likert-option label {
        padding: 10px 5px;
        font-size: 12px;
    }
    
    .question-text {
        font-size: 16px;
    }
    
    .result-title {
        font-size: 24px;
    }
    
    .chart-title {
        font-size: 14px;
    }
    
    .coach-avatar {
        width: 70px;
        height: 70px;
    }
    
    .coach-name {
        font-size: 20px;
    }
    
    .tag {
        font-size: 10px;
        padding: 3px 8px;
    }
    
    .coach-slogan {
        font-size: 14px;
    }
    
    .qr-code {
        width: 160px;
        height: 160px;
    }
}
