/* ===================== 全局基础样式 ===================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Microsoft Yahei", SimHei, "PingFang SC", sans-serif;
}

html,
body {
    background: #f9fafb;
    color: #333;
    font-size: 16px;
    line-height: 1.7;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: #333;
}

/* ===================== 整体布局容器 ===================== */
.container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 20px 15px;
}

.main-content {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.06);
    padding: 30px;
    min-height: calc(100vh - 140px);
}

/* ===================== 标题样式 ===================== */
h1 {
    font-size: 24px;
    font-weight: 700;
    color: #1D2129;
    padding-bottom: 10px;
    border-bottom: 2px solid #0070b8;
    margin-bottom: 20px;
}

h2 {
    font-size: 22px;
    font-weight: 600;
    color: #1D2129;
    margin: 30px 0 15px;
    padding-left: 10px;
    border-left: 4px solid #0070b8;
}

h3 {
    font-size: 20px;
    font-weight: 600;
    margin: 20px 0 10px;
}

p {
    margin-bottom: 15px;
    text-align: justify;
}

ul {
    margin: 15px 0 15px 20px;
    list-style: disc;
}

ul li {
    margin-bottom: 8px;
    line-height: 1.7;
}

/* ===================== 测试卡片网格 ===================== */
.test-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.test-card {
    display: block;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 20px;
    transition: all 0.2s;
    text-decoration: none;
    color: inherit;
}

.test-card:hover {
    box-shadow: 0 4px 12px rgba(0, 112, 184, 0.12);
    border-color: #0070b8;
    transform: translateY(-2px);
}

.test-card .test-icon {
    font-size: 2rem;
    margin-bottom: 10px;
}

.test-card h3 {
    color: #1D2129;
    margin: 0 0 8px 0;
    font-size: 1.15rem;
}

.test-card p {
    color: #666;
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.5;
}

.test-card .test-meta {
    margin-top: 12px;
    font-size: 0.8rem;
    color: #999;
}

/* ===================== 按钮样式 ===================== */
.primary-btn {
    display: inline-block;
    padding: 14px 40px;
    background: #0070b8;
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    border: none;
    transition: all 0.3s;
    text-decoration: none;
    text-align: center;
}

.primary-btn:hover {
    background: #00558c;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0, 112, 184, 0.2);
}

.primary-btn:disabled {
    background: #999;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* ===================== 答题页样式 ===================== */
.quiz-progress {
    height: 6px;
    background: #e5e7eb;
    border-radius: 3px;
    margin: 20px 0;
    overflow: hidden;
}

.quiz-progress-bar {
    height: 100%;
    background: #0070b8;
    border-radius: 3px;
    transition: width 0.3s;
}

.quiz-question {
    font-size: 1.2rem;
    font-weight: 600;
    color: #1D2129;
    margin: 20px 0;
    line-height: 1.6;
}

.quiz-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 20px 0;
}

.quiz-option {
    padding: 14px 18px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    background: #fff;
    font-size: 1rem;
}

.quiz-option:hover {
    border-color: #0070b8;
    background: #f0f7ff;
}

.quiz-option.selected {
    border-color: #0070b8;
    background: #e6f4ff;
    color: #0070b8;
    font-weight: 500;
}

/* ===================== 结果页样式 ===================== */
.result-badge {
    text-align: center;
    padding: 30px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border-radius: 12px;
    margin: 20px 0;
}

.result-badge .band-name {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.result-badge .band-score {
    font-size: 1.2rem;
    opacity: 0.9;
}

.result-hook-line {
    text-align: center;
    font-size: 1.1rem;
    color: #555;
    margin: 15px 0 25px;
    line-height: 1.6;
}

.paywall-box {
    background: #fffbe6;
    border: 1px solid #ffe58f;
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    margin: 20px 0;
}

.paywall-box h3 {
    color: #d48806;
    margin-bottom: 10px;
}

/* 雷达图容器 */
.radar-container {
    width: 100%;
    max-width: 400px;
    margin: 20px auto;
}

/* ===================== 页脚 ===================== */
.footer {
    text-align: center;
    color: #999;
    font-size: 0.85rem;
    padding: 30px 20px;
}

.footer p {
    text-align: center;
}

/* ===================== 面包屑 ===================== */
.breadcrumb {
    margin-bottom: 20px;
    font-size: 0.9rem;
    color: #666;
}

.breadcrumb a {
    color: #666;
    text-decoration: none;
}

.breadcrumb a:hover {
    color: #0070b8;
    text-decoration: underline;
}

.breadcrumb .current {
    color: #0070b8;
}

/* ===================== 手机端适配 ===================== */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }

    .main-content {
        padding: 20px;
        border-radius: 0;
        box-shadow: none;
    }

    h1 {
        font-size: 20px;
    }

    .test-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .result-badge .band-name {
        font-size: 1.5rem;
    }

    .primary-btn {
        width: 100%;
        padding: 14px;
        font-size: 16px;
    }
}
