/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #ff2e63;
    --primary-light: #ff6b9d;
    --primary-dark: #d32f2f;
    --secondary-color: #2196F3;
    --success-color: #4CAF50;
    --warning-color: #FFC107;
    --danger-color: #F44336;
    --light-bg: #fff5f7;
    --card-bg: #ffffff;
    --text-dark: #333333;
    --text-medium: #555555;
    --text-light: #888888;
    --border-color: #ffe6ee;
    --shadow-color: rgba(255, 20, 80, 0.1);
}

body {
    font-family: 'Noto Sans SC', 'Poppins', sans-serif;
    background-color: var(--light-bg);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-tap-highlight-color: transparent;
}

.container {
    max-width: 100%;
    min-height: 100vh;
    background: linear-gradient(135deg, var(--light-bg) 0%, #ffeef2 100%);
}

/* 小红书风格顶部 */
.xiaohongshu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background-color: var(--card-bg);
    box-shadow: 0 2px 10px var(--shadow-color);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
    background-color: rgba(255, 255, 255, 0.95);
}

.xhs-logo {
    display: flex;
    align-items: center;
    font-weight: 700;
    color: var(--primary-color);
    font-size: 18px;
}

.xhs-logo i {
    margin-right: 8px;
    font-size: 22px;
}

.xhs-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.xhs-actions i, .xhs-actions a {
    font-size: 20px;
    color: var(--text-medium);
    cursor: pointer;
    transition: color 0.3s ease;
}

.xhs-actions a:hover {
    color: var(--primary-color);
}

.progress-text-mobile {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-color);
}

.restart-icon {
    text-decoration: none;
    color: var(--text-medium);
}

.restart-icon:hover {
    color: var(--primary-color);
}

/* 主内容区 */
.main-content {
    padding: 20px;
    max-width: 800px;
    margin: 0 auto;
}

/* 测试介绍卡片 */
.test-intro-card {
    background-color: var(--card-bg);
    border-radius: 20px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 10px 30px var(--shadow-color);
    border: 1px solid var(--border-color);
    animation: fadeInUp 0.6s ease;
}

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

.test-badge {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    padding: 8px 15px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 20px;
}

.test-badge i {
    margin-right: 8px;
}

.test-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 10px;
    line-height: 1.3;
}

.test-subtitle {
    font-size: 16px;
    color: var(--primary-color);
    margin-bottom: 25px;
    font-weight: 500;
}

.test-image {
    margin: 25px 0;
    text-align: center;
}

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

.image-container i {
    font-size: 60px;
    color: var(--primary-color);
    opacity: 0.8;
    transition: all 0.3s ease;
    animation: float 3s ease-in-out infinite;
}

.image-container i:nth-child(1) {
    animation-delay: 0s;
}

.image-container i:nth-child(2) {
    color: var(--primary-light);
    font-size: 70px;
    animation-delay: 0.5s;
}

.image-container i:nth-child(3) {
    color: var(--primary-dark);
    animation-delay: 1s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-15px);
    }
}

.test-stats {
    display: flex;
    justify-content: space-around;
    margin: 25px 0;
    padding: 15px 0;
    border-top: 1px solid #f0f0f0;
    border-bottom: 1px solid #f0f0f0;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
}

.stat-label {
    font-size: 14px;
    color: var(--text-light);
}

.test-description {
    font-size: 15px;
    color: var(--text-medium);
    margin-bottom: 25px;
    line-height: 1.7;
}

.test-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
}

.tag {
    background-color: #ffeef2;
    color: var(--primary-color);
    padding: 8px 15px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.tag:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

/* 按钮样式 */
.start-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    padding: 18px;
    border-radius: 15px;
    font-size: 18px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    margin-bottom: 15px;
    box-shadow: 0 5px 15px rgba(255, 46, 99, 0.3);
    border: none;
    cursor: pointer;
}

.start-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 46, 99, 0.4);
}

.start-btn.clicked {
    transform: scale(0.98);
}

.start-btn i {
    margin-left: 10px;
    transition: transform 0.3s ease;
}

.start-btn:hover i {
    transform: translateX(5px);
}

.result-btn {
    background: linear-gradient(135deg, #2196F3, #21CBF3);
    box-shadow: 0 5px 15px rgba(33, 150, 243, 0.3);
}

.result-btn:hover {
    box-shadow: 0 8px 20px rgba(33, 150, 243, 0.4);
}

.restart-btn {
    background: linear-gradient(135deg, #9C27B0, #E040FB);
    box-shadow: 0 5px 15px rgba(156, 39, 176, 0.3);
}

.restart-btn:hover {
    box-shadow: 0 8px 20px rgba(156, 39, 176, 0.4);
}

.test-tips {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f9f9f9;
    padding: 15px;
    border-radius: 12px;
    font-size: 14px;
    color: var(--text-medium);
    margin-top: 10px;
}

.test-tips i {
    color: var(--warning-color);
    margin-right: 10px;
    font-size: 16px;
}

/* 用户评价区 */
.reviews-section {
    background-color: var(--card-bg);
    border-radius: 20px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 10px 30px var(--shadow-color);
    border: 1px solid var(--border-color);
    animation: fadeInUp 0.6s ease 0.1s both;
}

.reviews-section h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-dark);
    display: flex;
    align-items: center;
}

.reviews-section h3 i {
    color: var(--warning-color);
    margin-right: 10px;
}

.reviews {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.review {
    padding-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
    animation: fadeInUp 0.6s ease both;
}

.review:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.review-header {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
}

.review-avatar {
    width: 45px;
    height: 45px;
    background-color: #ffeef2;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin-right: 12px;
}

.review-info {
    flex-grow: 1;
}

.review-name {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.review-rating {
    color: var(--warning-color);
}

.review-text {
    font-size: 15px;
    color: var(--text-medium);
    line-height: 1.6;
}

/* 特点部分 */
.features-section {
    background-color: var(--card-bg);
    border-radius: 20px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 10px 30px var(--shadow-color);
    border: 1px solid var(--border-color);
    animation: fadeInUp 0.6s ease 0.2s both;
}

.features-section h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 25px;
    color: var(--text-dark);
    display: flex;
    align-items: center;
}

.features-section h3 i {
    color: var(--primary-color);
    margin-right: 10px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.feature-card {
    background-color: #f9f9f9;
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
    animation: fadeInUp 0.6s ease both;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    background-color: #ffeef2;
}

.feature-icon {
    font-size: 40px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.feature-card h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-dark);
}

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

/* 题目页样式 */
.test-container {
    background-color: var(--card-bg);
    border-radius: 20px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 10px 30px var(--shadow-color);
    border: 1px solid var(--border-color);
    animation: fadeInUp 0.6s ease;
}

.test-progress {
    margin-bottom: 25px;
}

.progress-text {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 14px;
    color: var(--text-light);
}

.progress-bar {
    height: 8px;
    background-color: #f0f0f0;
    border-radius: 10px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: 10px;
    transition: width 0.5s ease;
}

.question-number {
    font-size: 14px;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 10px;
}

.question-text {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 30px;
    line-height: 1.5;
}

.options {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
}

.option {
    background-color: #f9f9f9;
    border: 2px solid #f0f0f0;
    border-radius: 15px;
    padding: 18px 20px;
    font-size: 16px;
    color: var(--text-dark);
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    animation: fadeInUp 0.6s ease both;
}

.option:hover {
    background-color: #ffeef2;
    border-color: #ffc2d6;
}

.option.selected {
    background-color: #ffeef2;
    border-color: var(--primary-color);
    color: var(--primary-color);
    font-weight: 500;
}

.option input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.option-text {
    flex-grow: 1;
}

.option-check {
    opacity: 0;
    color: var(--primary-color);
    transition: opacity 0.3s ease;
}

.option.selected .option-check {
    opacity: 1;
}

.next-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    padding: 18px;
    border-radius: 15px;
    font-size: 18px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(255, 46, 99, 0.3);
}

.next-btn:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 46, 99, 0.4);
}

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

/* 测试导航 */
.test-navigation {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 25px;
}

.nav-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px 25px;
    background-color: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: 15px;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-medium);
    text-decoration: none;
    transition: all 0.3s ease;
    flex: 1;
}

.nav-btn:hover {
    background-color: #ffeef2;
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
}

.nav-btn i {
    margin: 0 8px;
}

/* 进度指示器 */
.progress-indicator {
    background-color: var(--card-bg);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.indicator-dots {
    display: grid;
    grid-template-columns: repeat(10, 1fr);
    gap: 8px;
}

.dot {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: #f0f0f0;
    color: var(--text-light);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.dot:hover {
    background-color: #ffeef2;
    color: var(--primary-color);
    transform: scale(1.1);
}

.dot.completed {
    background-color: var(--success-color);
    color: white;
}

.dot.current {
    background-color: var(--primary-color);
    color: white;
    transform: scale(1.1);
    box-shadow: 0 0 0 3px rgba(255, 46, 99, 0.3);
}

.dot.answered {
    background-color: var(--warning-color);
    color: white;
}

/* 结果页样式 */
.result-container {
    background-color: var(--card-bg);
    border-radius: 20px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 10px 30px var(--shadow-color);
    border: 1px solid var(--border-color);
    animation: fadeInUp 0.6s ease;
}

.result-header {
    text-align: center;
    margin-bottom: 30px;
}

.result-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.result-score {
    font-size: 60px;
    font-weight: 700;
    color: var(--primary-color);
    margin: 20px 0;
    text-shadow: 0 5px 10px rgba(255, 46, 99, 0.2);
}

.result-max {
    font-size: 30px;
    color: var(--text-light);
}

.result-level {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    padding: 10px 25px;
    border-radius: 50px;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
}

.result-description {
    font-size: 16px;
    color: var(--text-medium);
    line-height: 1.7;
    margin-bottom: 20px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.result-meta {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text-light);
}

.meta-item i {
    color: var(--primary-color);
}

/* 优点和挑战 */
.strengths-challenges {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.strengths, .challenges {
    background-color: #f9f9f9;
    border-radius: 15px;
    padding: 20px;
}

.strengths h4, .challenges h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.strengths h4 i {
    color: var(--success-color);
}

.challenges h4 i {
    color: var(--warning-color);
}

.strength-list, .challenge-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.strength-tag {
    background-color: #e8f5e9;
    color: #2e7d32;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
}

.challenge-tag {
    background-color: #fff3e0;
    color: #f57c00;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
}

/* 雷达图容器 */
.radar-chart-container {
    margin: 30px 0;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 15px;
}

.radar-chart-container h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 10px;
}

.radar-chart-container h3 i {
    color: var(--primary-color);
}

.chart-container {
    position: relative;
    height: 300px;
    width: 100%;
}

.chart-legend {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text-medium);
}

.legend-color {
    width: 20px;
    height: 10px;
    border-radius: 2px;
}

/* 详细分析部分 */
.detailed-analysis {
    margin-top: 30px;
}

.analysis-section {
    background-color: var(--card-bg);
    border-radius: 20px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 10px 30px var(--shadow-color);
    border: 1px solid var(--border-color);
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.analysis-section.animated {
    opacity: 1;
    transform: translateY(0);
}

.analysis-section h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 25px;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 12px;
}

.analysis-section h3 i {
    color: var(--primary-color);
    font-size: 22px;
}

/* 维度卡片样式 */
.dimension-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.dimension-card {
    background-color: #f9f9f9;
    border-radius: 15px;
    padding: 20px;
    transition: transform 0.3s ease;
}

.dimension-card:hover {
    transform: translateY(-5px);
}

.dimension-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.dimension-header h4 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-dark);
}

.dimension-score {
    font-size: 24px;
    font-weight: 700;
}

.dimension-level {
    margin-bottom: 15px;
}

.level-badge {
    display: inline-block;
    padding: 5px 12px;
    background-color: #ffeef2;
    color: var(--primary-color);
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
}

.dimension-desc {
    font-size: 14px;
    color: var(--text-medium);
    margin-bottom: 10px;
    line-height: 1.6;
}

.dimension-impact {
    font-size: 13px;
    color: var(--text-medium);
    margin-bottom: 15px;
    line-height: 1.5;
}

.dimension-advice {
    display: flex;
    align-items: flex-start;
    padding: 12px;
    background-color: var(--card-bg);
    border-radius: 10px;
    border-left: 4px solid var(--warning-color);
}

.dimension-advice i {
    color: var(--warning-color);
    margin-right: 10px;
    font-size: 16px;
    margin-top: 2px;
}

.dimension-advice span {
    font-size: 14px;
    color: var(--text-medium);
    line-height: 1.5;
}

/* 附件风格卡片 */
.attachment-style-card {
    background: linear-gradient(135deg, #fff5f7, #ffeef2);
    border-radius: 15px;
    padding: 25px;
    border: 2px solid #ffd6e0;
}

.attachment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.attachment-header h4 {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-dark);
}

.attachment-emoji {
    font-size: 40px;
}

.attachment-desc {
    font-size: 16px;
    color: var(--text-medium);
    margin-bottom: 25px;
    line-height: 1.7;
}

.attachment-traits h5 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-dark);
}

.traits-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 25px;
}

.trait-tag {
    background-color: var(--card-bg);
    border: 1px solid #ffd6e0;
    color: var(--primary-color);
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
}

.attachment-origin, .attachment-impact {
    margin-bottom: 20px;
}

.attachment-origin h5, .attachment-impact h5 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 10px;
}

.attachment-origin h5 i, .attachment-impact h5 i {
    color: var(--primary-color);
}

.attachment-origin p, .attachment-impact p {
    font-size: 15px;
    color: var(--text-medium);
    line-height: 1.6;
}

/* 优先级卡片 */
.priority-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.priority-card {
    background-color: var(--card-bg);
    border-radius: 15px;
    padding: 20px;
    position: relative;
    overflow: hidden;
}

.priority-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
}

.priority-card.priority-首要关注::before {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
}

.priority-card.priority-次要关注::before {
    background: linear-gradient(135deg, var(--warning-color), #ffb74d);
}

.priority-card.priority-你的优势::before {
    background: linear-gradient(135deg, var(--success-color), #8BC34A);
}

.priority-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.priority-header h4 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
}

.priority-badge {
    padding: 5px 12px;
    background-color: #ffeef2;
    color: var(--primary-color);
    border-radius: 15px;
    font-size: 14px;
    font-weight: 500;
}

.priority-score {
    text-align: center;
    margin-bottom: 20px;
}

.score-circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    border: 4px solid;
    border-radius: 50%;
    font-size: 24px;
    font-weight: 700;
    color: var(--text-dark);
}

.priority-content h5 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 8px;
}

.priority-content h5 i {
    font-size: 16px;
}

.priority-content p {
    font-size: 14px;
    color: var(--text-medium);
    line-height: 1.5;
    margin-bottom: 15px;
}

/* 建议卡片 */
.advice-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.advice-card {
    display: flex;
    background-color: var(--card-bg);
    border-radius: 15px;
    padding: 20px;
    border: 1px solid #f0f0f0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.advice-card:hover {
    transform: translateY(-5px);
}

.advice-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    border-radius: 50%;
    font-size: 18px;
    font-weight: 700;
    margin-right: 15px;
    flex-shrink: 0;
}

.advice-content {
    flex-grow: 1;
}

.advice-category {
    display: inline-flex;
    align-items: center;
    background-color: #ffeef2;
    color: var(--primary-color);
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 15px;
    gap: 6px;
}

.advice-category i {
    font-size: 12px;
}

.advice-content h5 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 15px;
    line-height: 1.5;
}

.advice-action {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    background-color: #f9f9f9;
    border-radius: 10px;
    border-left: 3px solid var(--success-color);
    gap: 10px;
}

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

.advice-action span {
    font-size: 14px;
    color: var(--text-medium);
    line-height: 1.5;
}

/* 练习卡片 */
.practice-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.practice-card {
    background-color: var(--card-bg);
    border-radius: 15px;
    padding: 20px;
    border: 1px solid #e8f5e9;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.practice-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f5f5f5;
}

.practice-header h4 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-dark);
}

.practice-duration {
    display: flex;
    align-items: center;
    font-size: 14px;
    color: var(--text-medium);
    gap: 6px;
}

.practice-duration i {
    color: var(--success-color);
}

.practice-steps, .practice-effect {
    margin-bottom: 20px;
}

.practice-steps h5, .practice-effect h5 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 8px;
}

.practice-steps h5 i, .practice-effect h5 i {
    color: var(--success-color);
}

.practice-steps p, .practice-effect p {
    font-size: 14px;
    color: var(--text-medium);
    line-height: 1.5;
}

/* 百分位卡片 */
.percentile-card {
    background-color: var(--card-bg);
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 30px;
    border: 2px solid #e3f2fd;
}

.percentile-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.percentile-header h4 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
}

.percentile-badge {
    padding: 8px 20px;
    background: linear-gradient(135deg, var(--secondary-color), #21CBF3);
    color: white;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
}

.percentile-bar {
    margin-bottom: 25px;
}

.percentile-scale {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 14px;
    color: var(--text-medium);
}

.percentile-track {
    height: 10px;
    background: linear-gradient(90deg, var(--success-color), var(--warning-color), var(--danger-color));
    border-radius: 5px;
    position: relative;
}

.percentile-indicator {
    position: absolute;
    top: -15px;
    transform: translateX(-50%);
    text-align: center;
}

.indicator-dot {
    width: 24px;
    height: 24px;
    background-color: var(--text-dark);
    border-radius: 50%;
    margin: 0 auto 5px;
    border: 3px solid white;
    box-shadow: 0 0 0 3px var(--text-dark);
}

.indicator-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    white-space: nowrap;
}

.comparison-text {
    text-align: center;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 12px;
}

.comparison-text p {
    font-size: 16px;
    color: var(--text-medium);
    margin-bottom: 10px;
    line-height: 1.6;
}

/* 预测卡片 */
.prediction-cards {
    background-color: var(--card-bg);
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 30px;
    border: 2px solid #f3e5f5;
}

.prediction-cards h4 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 25px;
    text-align: center;
}

.prediction-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.prediction-card {
    background-color: #f9f9f9;
    border-radius: 12px;
    padding: 20px;
    border: 1px solid #f0f0f0;
}

.prediction-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.prediction-header h5 {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-dark);
}

.prediction-score {
    font-size: 24px;
    font-weight: 700;
}

.prediction-level {
    margin-bottom: 20px;
    text-align: center;
}

.level-indicator {
    display: inline-block;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
}

.level-高 {
    background-color: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #a5d6a7;
}

.level-中 {
    background-color: #fff3e0;
    color: #f57c00;
    border: 1px solid #ffcc80;
}

.level-低 {
    background-color: #ffebee;
    color: #c62828;
    border: 1px solid #ef9a9a;
}

.prediction-factors {
    margin-bottom: 20px;
}

.prediction-factors h6 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-medium);
    margin-bottom: 10px;
}

.factors-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.factor-tag {
    padding: 4px 10px;
    background-color: var(--card-bg);
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    font-size: 12px;
    color: var(--text-medium);
}

.prediction-gauge {
    margin-top: 15px;
}

.gauge-track {
    height: 8px;
    background-color: #f0f0f0;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 8px;
}

.gauge-fill {
    height: 100%;
    border-radius: 4px;
}

.gauge-labels {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #999;
}

/* 趋势分析 */
.trend-analysis {
    background-color: var(--card-bg);
    border-radius: 15px;
    padding: 25px;
    border: 2px solid #e8f5e9;
}

.trend-analysis h4 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 25px;
    text-align: center;
}

.trend-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.trend-card {
    display: flex;
    align-items: flex-start;
    background-color: #f9f9f9;
    border-radius: 12px;
    padding: 20px;
    border-left: 4px solid var(--success-color);
    gap: 15px;
}

.trend-icon {
    color: var(--success-color);
    font-size: 24px;
    flex-shrink: 0;
}

.trend-card p {
    font-size: 15px;
    color: var(--text-medium);
    line-height: 1.6;
}

/* 资源卡片 */
.resource-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.resource-card {
    background-color: var(--card-bg);
    border-radius: 15px;
    padding: 20px;
    border: 1px solid #f0f0f0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.resource-card:hover {
    transform: translateY(-5px);
}

.resource-type {
    margin-bottom: 15px;
}

.type-badge {
    display: inline-block;
    padding: 5px 12px;
    background-color: #e3f2fd;
    color: var(--secondary-color);
    border-radius: 15px;
    font-size: 13px;
    font-weight: 500;
}

.resource-card h4 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 10px;
    line-height: 1.4;
}

.resource-author {
    display: flex;
    align-items: center;
    font-size: 14px;
    color: var(--text-medium);
    margin-bottom: 20px;
    gap: 8px;
}

.resource-author i {
    color: var(--text-medium);
}

.resource-reason h5 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 8px;
}

.resource-reason h5 i {
    color: var(--primary-color);
}

.resource-reason p {
    font-size: 14px;
    color: var(--text-medium);
    line-height: 1.5;
}

/* 行动按钮 */
.action-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin: 30px 0;
    justify-content: center;
}

.action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px 25px;
    background-color: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: 15px;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-medium);
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 160px;
    gap: 10px;
}

.action-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.action-btn.restart-btn {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.action-btn.restart-btn:hover {
    background-color: #ffeef2;
}

.action-btn.share-btn {
    border-color: var(--secondary-color);
    color: var(--secondary-color);
}

.action-btn.share-btn:hover {
    background-color: #e3f2fd;
}

.action-btn.save-btn {
    border-color: var(--success-color);
    color: var(--success-color);
}

.action-btn.save-btn:hover {
    background-color: #e8f5e9;
}

/* 模态框 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    animation: fadeIn 0.3s ease;
}

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

.modal-content {
    position: relative;
    background-color: var(--card-bg);
    margin: 10% auto;
    padding: 0;
    width: 90%;
    max-width: 500px;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    animation: slideUp 0.3s ease;
}

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

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid #f0f0f0;
}

.modal-header h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-dark);
}

.close-modal {
    font-size: 28px;
    font-weight: 300;
    color: var(--text-light);
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-modal:hover {
    color: var(--primary-color);
}

.modal-body {
    padding: 25px;
}

.share-preview {
    margin-bottom: 25px;
}

.preview-card {
    background: linear-gradient(135deg, #fff5f7, #ffeef2);
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    border: 2px solid #ffd6e0;
}

.preview-badge {
    display: inline-block;
    padding: 5px 15px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 15px;
}

.preview-card h4 {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.preview-score {
    font-size: 40px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.preview-desc {
    font-size: 14px;
    color: var(--text-medium);
    margin-bottom: 15px;
    line-height: 1.5;
}

.preview-tag {
    display: inline-block;
    padding: 5px 15px;
    background-color: #ffeef2;
    color: var(--primary-color);
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
}

.share-options p {
    font-size: 16px;
    color: var(--text-medium);
    margin-bottom: 20px;
    text-align: center;
}

.share-buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.share-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px 15px;
    background-color: #f9f9f9;
    border: 2px solid #f0f0f0;
    border-radius: 15px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    cursor: pointer;
    transition: all 0.3s ease;
    gap: 8px;
}

.share-btn i {
    font-size: 24px;
    margin-bottom: 5px;
}

.share-btn.wechat {
    color: #09bb07;
    border-color: #c5e1a5;
}

.share-btn.wechat:hover {
    background-color: #f1f8e9;
}

.share-btn.xiaohongshu {
    color: var(--primary-color);
    border-color: #ffc2d6;
}

.share-btn.xiaohongshu:hover {
    background-color: #ffeef2;
}

.share-btn.copy-text {
    color: #2196F3;
    border-color: #bbdefb;
}

.share-btn.copy-text:hover {
    background-color: #e3f2fd;
}

.share-btn.screenshot {
    color: #9C27B0;
    border-color: #e1bee7;
}

.share-btn.screenshot:hover {
    background-color: #f3e5f5;
}

/* 页脚 */
.footer {
    text-align: center;
    padding: 25px 20px;
    color: var(--text-light);
    font-size: 14px;
}

.footer-note {
    margin-top: 10px;
    font-size: 13px;
    color: #aaa;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .main-content {
        padding: 15px;
    }
    
    .test-intro-card,
    .test-container,
    .result-container,
    .reviews-section,
    .features-section,
    .analysis-section {
        padding: 20px;
        border-radius: 15px;
    }
    
    .test-title {
        font-size: 24px;
    }
    
    .image-container {
        gap: 20px;
    }
    
    .image-container i {
        font-size: 50px;
    }
    
    .result-score {
        font-size: 50px;
    }
    
    .question-text {
        font-size: 18px;
    }
    
    .dimension-cards,
    .priority-cards,
    .advice-cards,
    .practice-cards,
    .prediction-grid,
    .trend-cards,
    .resource-cards {
        grid-template-columns: 1fr;
    }
    
    .strengths-challenges {
        grid-template-columns: 1fr;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .indicator-dots {
        grid-template-columns: repeat(5, 1fr);
    }
    
    .share-buttons {
        grid-template-columns: 1fr;
    }
    
    .action-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .action-btn {
        width: 100%;
        max-width: 300px;
    }
    
    .test-navigation {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .test-title {
        font-size: 22px;
    }
    
    .result-title {
        font-size: 24px;
    }
    
    .result-level {
        font-size: 18px;
        padding: 8px 20px;
    }
    
    .image-container {
        flex-direction: column;
        gap: 15px;
    }
    
    .image-container i {
        font-size: 45px;
    }
    
    .test-stats {
        flex-direction: column;
        gap: 15px;
    }
    
    .modal-content {
        width: 95%;
        margin: 5% auto;
    }
}

/* 打印样式 */
@media print {
    .xiaohongshu-header,
    .action-buttons,
    .test-tips,
    .footer,
    .modal {
        display: none !important;
    }
    
    .main-content {
        padding: 0;
    }
    
    .result-container,
    .analysis-section {
        box-shadow: none;
        border: 1px solid #ddd;
        page-break-inside: avoid;
    }
    
    body {
        background-color: white;
        color: black;
    }
}