/* 基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans SC', sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #f0f2f5 100%);
    color: #333;
    line-height: 1.6;
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

/* Edge浏览器兼容性修复 */
@supports (-ms-ime-align: auto) {
    .answer-option {
        cursor: pointer;
    }
    
    .answer-option:hover {
        background-color: rgba(255, 107, 139, 0.05);
    }
    
    input[type="radio"] {
        display: none !important;
    }
}

/* 所有浏览器通用修复 */
* {
    -webkit-tap-highlight-color: transparent;
}

.answer-option {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* 心形飘落动画 */
.hearts-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.heart {
    position: absolute;
    color: rgba(255, 107, 139, 0.3);
    font-size: 20px;
    animation: fall linear infinite;
}

.heart:nth-child(1) {
    left: 10%;
    animation-duration: 15s;
    animation-delay: 0s;
}
.heart:nth-child(2) {
    left: 20%;
    animation-duration: 18s;
    animation-delay: 3s;
}
.heart:nth-child(3) {
    left: 50%;
    animation-duration: 12s;
    animation-delay: 6s;
}
.heart:nth-child(4) {
    left: 70%;
    animation-duration: 20s;
    animation-delay: 9s;
}
.heart:nth-child(5) {
    left: 90%;
    animation-duration: 16s;
    animation-delay: 12s;
}

@keyframes fall {
    0% {
        top: -10%;
        transform: translateX(0) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        top: 110%;
        transform: translateX(100px) rotate(360deg);
        opacity: 0;
    }
}

/* 头部样式 */
.header {
    text-align: center;
    margin-bottom: 40px;
    padding: 30px 20px;
    background: linear-gradient(135deg, rgba(255, 107, 139, 0.1) 0%, rgba(156, 39, 176, 0.1) 100%);
    border-radius: 20px;
    border: 1px solid rgba(255, 107, 139, 0.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.header h1 {
    font-family: 'M PLUS Rounded 1c', sans-serif;
    font-size: 2.8rem;
    color: #FF6B8B;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.header .subtitle {
    font-size: 1.2rem;
    color: #666;
    font-weight: 500;
}

/* 介绍卡片 */
.intro-card {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
    margin-bottom: 40px;
    text-align: center;
    border: 1px solid rgba(255, 107, 139, 0.1);
}

.intro-icon {
    font-size: 4rem;
    color: #FF6B8B;
    margin-bottom: 20px;
}

.intro-card h2 {
    font-family: 'M PLUS Rounded 1c', sans-serif;
    font-size: 2.2rem;
    color: #333;
    margin-bottom: 20px;
}

.intro-card p {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* 维度网格 */
.dimensions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 40px 0;
}

.dimension-card {
    background: white;
    border-radius: 15px;
    padding: 25px 20px;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.dimension-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.dim-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-size: 1.8rem;
}

.dim-icon.love {
    background: rgba(255, 107, 139, 0.1);
    color: #FF6B8B;
    border: 2px solid rgba(255, 107, 139, 0.2);
}

.dim-icon.possess {
    background: rgba(156, 39, 176, 0.1);
    color: #9C27B0;
    border: 2px solid rgba(156, 39, 176, 0.2);
}

.dim-icon.emotion {
    background: rgba(33, 150, 243, 0.1);
    color: #2196F3;
    border: 2px solid rgba(33, 150, 243, 0.2);
}

.dim-icon.rational {
    background: rgba(76, 175, 80, 0.1);
    color: #4CAF50;
    border: 2px solid rgba(76, 175, 80, 0.2);
}

.dimension-card h3 {
    font-family: 'M PLUS Rounded 1c', sans-serif;
    font-size: 1.4rem;
    margin-bottom: 10px;
    color: #333;
}

.dimension-card p {
    font-size: 0.9rem;
    color: #666;
}

/* 警告框 */
.warning-box {
    background: rgba(255, 193, 7, 0.1);
    border-left: 4px solid #FFC107;
    padding: 15px 20px;
    margin: 30px 0;
    border-radius: 0 10px 10px 0;
    display: flex;
    align-items: center;
    text-align: left;
}

.warning-box i {
    color: #FFC107;
    font-size: 1.5rem;
    margin-right: 15px;
}

.warning-box p {
    margin: 0;
    color: #795548;
    font-size: 0.95rem;
}

/* 开始按钮 */
.start-button {
    display: inline-block;
    background: linear-gradient(135deg, #FF6B8B 0%, #FF4081 100%);
    color: white;
    font-size: 1.3rem;
    font-weight: 700;
    padding: 18px 50px;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    margin: 20px 0;
    border: none;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(255, 107, 139, 0.3);
}

.start-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 25px rgba(255, 107, 139, 0.4);
}

.start-button:active {
    transform: translateY(-1px);
}

/* 测试信息 */
.test-info {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
}

.test-info p {
    display: flex;
    align-items: center;
    font-size: 0.95rem;
    color: #666;
    margin: 5px 0;
}

.test-info i {
    margin-right: 8px;
    color: #FF6B8B;
}

/* 测试页面样式 */
.test-container {
    max-width: 800px;
}

.progress-section {
    margin-bottom: 30px;
}

.progress-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-weight: 600;
    color: #666;
}

.progress-bar {
    height: 10px;
    background: #e0e0e0;
    border-radius: 5px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #FF6B8B 0%, #FF4081 100%);
    border-radius: 5px;
    transition: width 0.5s ease;
}

/* 问题卡片 */
.question-card {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
    margin-bottom: 30px;
    border: 1px solid rgba(255, 107, 139, 0.1);
}

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

.dimension-tag {
    display: inline-flex;
    align-items: center;
    padding: 8px 15px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
}

.dimension-tag i {
    margin-right: 5px;
}

.恋爱依附力 {
    background: rgba(255, 107, 139, 0.1);
    color: #FF6B8B;
    border: 1px solid rgba(255, 107, 139, 0.2);
}

.独占欲能量 {
    background: rgba(156, 39, 176, 0.1);
    color: #9C27B0;
    border: 1px solid rgba(156, 39, 176, 0.2);
}

.情绪波动率 {
    background: rgba(33, 150, 243, 0.1);
    color: #2196F3;
    border: 1px solid rgba(33, 150, 243, 0.2);
}

.理智临界线 {
    background: rgba(76, 175, 80, 0.1);
    color: #4CAF50;
    border: 1px solid rgba(76, 175, 80, 0.2);
}

.question-number {
    font-size: 1.1rem;
    font-weight: 600;
    color: #666;
}

.question-text h2 {
    font-family: 'M PLUS Rounded 1c', sans-serif;
    font-size: 1.8rem;
    color: #333;
    margin-bottom: 40px;
    line-height: 1.4;
}

/* 答案选项 */
.answer-options {
    margin-bottom: 40px;
}

.answer-option {
    display: block;
    margin-bottom: 15px;
    cursor: pointer;
}

.answer-option input {
    display: none;
}

.option-content {
    padding: 20px 25px;
    border-radius: 15px;
    border: 2px solid #e0e0e0;
    background: white;
    transition: all 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.answer-option:hover .option-content {
    border-color: #FF6B8B;
    background: rgba(255, 107, 139, 0.03);
}

.answer-option.selected .option-content {
    border-color: #FF6B8B;
    background: rgba(255, 107, 139, 0.1);
}

.option-text {
    font-size: 1.1rem;
    font-weight: 500;
    color: #333;
}

.option-value {
    color: #FF6B8B;
    font-size: 1.2rem;
}

/* 导航按钮 */
.navigation-buttons {
    display: flex;
    justify-content: space-between;
}

.nav-button {
    display: inline-flex;
    align-items: center;
    padding: 15px 30px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.prev-button {
    background: #f5f5f5;
    color: #666;
}

.prev-button:hover {
    background: #e0e0e0;
    transform: translateX(-3px);
}

.next-button {
    background: linear-gradient(135deg, #FF6B8B 0%, #FF4081 100%);
    color: white;
    box-shadow: 0 5px 15px rgba(255, 107, 139, 0.3);
}

.next-button:hover {
    transform: translateX(3px);
    box-shadow: 0 8px 20px rgba(255, 107, 139, 0.4);
}

/* 提示框 */
.hint-box {
    background: rgba(33, 150, 243, 0.05);
    border-radius: 15px;
    padding: 20px;
    margin-top: 30px;
    display: flex;
    align-items: center;
}

.hint-box i {
    color: #2196F3;
    font-size: 1.5rem;
    margin-right: 15px;
}

.hint-box p {
    margin: 0;
    color: #555;
    font-size: 0.95rem;
}

/* 迷你进度指示器 */
.mini-progress {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin: 30px 0;
}

.mini-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #e0e0e0;
    display: block;
    transition: all 0.3s ease;
}

.mini-dot.answered {
    background: #4CAF50;
}

.mini-dot.current {
    background: #FF6B8B;
    transform: scale(1.3);
}

/* 测试页脚 */
.test-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

.home-link {
    display: inline-flex;
    align-items: center;
    color: #666;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.home-link:hover {
    color: #FF6B8B;
}

.home-link i {
    margin-right: 8px;
}

.dimension-hint {
    font-size: 0.9rem;
    color: #666;
    max-width: 500px;
}

/* 结果页面样式 */
.result-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 30px 20px;
    background: linear-gradient(135deg, rgba(255, 107, 139, 0.1) 0%, rgba(156, 39, 176, 0.1) 100%);
    border-radius: 20px;
}

.result-header h1 {
    font-family: 'M PLUS Rounded 1c', sans-serif;
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 10px;
}

.result-header .subtitle {
    font-size: 1.1rem;
    color: #666;
}

/* 病娇指数卡片 */
.yandere-index-card {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
    margin-bottom: 40px;
    display: flex;
    align-items: center;
    border: 3px solid;
}

.index-circle {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-right: 40px;
    color: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.index-value {
    font-family: 'M PLUS Rounded 1c', sans-serif;
    font-size: 4rem;
    font-weight: 800;
    line-height: 1;
}

.index-label {
    font-size: 1.2rem;
    font-weight: 500;
    margin-top: 10px;
}

.index-details {
    flex: 1;
}

.index-details h3 {
    font-family: 'M PLUS Rounded 1c', sans-serif;
    font-size: 2.2rem;
    margin-bottom: 20px;
}

.index-details p {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 25px;
}

.character-type {
    background: rgba(0, 0, 0, 0.03);
    border-radius: 15px;
    padding: 20px;
    border-left: 4px solid #FF6B8B;
}

.character-type i {
    color: #FF6B8B;
    margin-right: 10px;
}

.character-type span {
    font-weight: 600;
    color: #333;
}

.type-desc {
    margin-top: 10px;
    font-size: 0.95rem;
    color: #666;
    font-style: italic;
}

/* 雷达图区域 */
.radar-section {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
    margin-bottom: 40px;
}

.radar-section h2 {
    font-family: 'M PLUS Rounded 1c', sans-serif;
    font-size: 2rem;
    color: #333;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
}

.radar-section h2 i {
    margin-right: 15px;
    color: #FF6B8B;
}

.radar-container {
    height: 400px;
    margin: 30px 0;
}

.radar-note {
    text-align: center;
    font-style: italic;
    color: #666;
    margin-top: 20px;
}

/* 维度分析 */
.analysis-section {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
    margin-bottom: 40px;
}

.analysis-section h2 {
    font-family: 'M PLUS Rounded 1c', sans-serif;
    font-size: 2rem;
    color: #333;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
}

.analysis-section h2 i {
    margin-right: 15px;
    color: #4CAF50;
}

.dimension-analysis {
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid #f0f0f0;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.dimension-analysis:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

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

.dim-header h3 {
    font-family: 'M PLUS Rounded 1c', sans-serif;
    font-size: 1.6rem;
    color: #333;
}

.dim-score {
    display: flex;
    align-items: center;
}

.score-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: #333;
}

.score-max {
    font-size: 1.2rem;
    color: #999;
    margin: 0 15px;
}

.score-bar {
    width: 150px;
    height: 10px;
    background: #f0f0f0;
    border-radius: 5px;
    overflow: hidden;
}

.score-fill {
    height: 100%;
    border-radius: 5px;
}

.dim-desc {
    color: #666;
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.dim-analysis-text {
    background: rgba(33, 150, 243, 0.05);
    border-radius: 10px;
    padding: 20px;
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
}

.dim-analysis-text i {
    color: #2196F3;
    margin-right: 15px;
    font-size: 1.2rem;
    margin-top: 2px;
}

.dim-analysis-text p {
    margin: 0;
    color: #555;
}

.warning-tip {
    background: rgba(255, 193, 7, 0.1);
    border-radius: 10px;
    padding: 15px 20px;
    display: flex;
    align-items: center;
}

.warning-tip i {
    color: #FFC107;
    margin-right: 15px;
    font-size: 1.2rem;
}

.warning-tip p {
    margin: 0;
    color: #795548;
    font-size: 0.95rem;
}

/* 建议区域 */
.recommendations-section {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
    margin-bottom: 40px;
}

.recommendations-section h2 {
    font-family: 'M PLUS Rounded 1c', sans-serif;
    font-size: 2rem;
    color: #333;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
}

.recommendations-section h2 i {
    margin-right: 15px;
    color: #9C27B0;
}

.recommendations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.recommend-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid #f0f0f0;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.recommend-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.rec-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.recommend-card:nth-child(1) .rec-icon {
    background: rgba(255, 107, 139, 0.1);
    color: #FF6B8B;
}

.recommend-card:nth-child(2) .rec-icon {
    background: rgba(33, 150, 243, 0.1);
    color: #2196F3;
}

.recommend-card:nth-child(3) .rec-icon {
    background: rgba(76, 175, 80, 0.1);
    color: #4CAF50;
}

.recommend-card:nth-child(4) .rec-icon {
    background: rgba(156, 39, 176, 0.1);
    color: #9C27B0;
}

.recommend-card h3 {
    font-family: 'M PLUS Rounded 1c', sans-serif;
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: #333;
}

.recommend-card p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* 结果操作按钮 */
.result-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
}

.action-button {
    display: inline-flex;
    align-items: center;
    padding: 15px 30px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.action-button {
    background: #f5f5f5;
    color: #666;
}

.action-button:hover {
    background: #e0e0e0;
    transform: translateY(-3px);
}

.print-button {
    background: #2196F3;
    color: white;
}

.share-button {
    background: #4CAF50;
    color: white;
}

/* 结果页脚 */
.result-footer {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #e0e0e0;
    color: #666;
    font-size: 0.9rem;
}

.result-footer p {
    margin-bottom: 10px;
}

.copyright {
    font-size: 0.8rem;
    color: #999;
}

/* 页脚 */
.footer {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
    color: #666;
    font-size: 0.9rem;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .header h1 {
        font-size: 2rem;
    }
    
    .intro-card {
        padding: 25px;
    }
    
    .intro-card h2 {
        font-size: 1.8rem;
    }
    
    .dimensions-grid {
        grid-template-columns: 1fr;
    }
    
    .question-card {
        padding: 25px;
    }
    
    .question-text h2 {
        font-size: 1.5rem;
    }
    
    .yandere-index-card {
        flex-direction: column;
        text-align: center;
        padding: 30px 20px;
    }
    
    .index-circle {
        margin-right: 0;
        margin-bottom: 30px;
        width: 150px;
        height: 150px;
    }
    
    .index-value {
        font-size: 3.5rem;
    }
    
    .result-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .action-button {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
    
    .test-footer {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}