@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@300;400;500;700&display=swap');

/* 自定义字体声明 */
@font-face {
    font-family: 'SourceHanSerifCN-Bold';
    src: url('font/SourceHanSerifCN-Bold-2.otf') format('opentype');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'SourceHanSerifCN-ExtraLight';
    src: url('font/SourceHanSerifCN-ExtraLight-3.otf') format('opentype');
    font-weight: 200;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'SourceHanSerifCN-Regular';
    src: url('font/SourceHanSerifCN-Regular-1.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'AlimamaShuhei';
    src: url('font/alimamashuheiti.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'PingFang SC', 'Microsoft YaHei', 'Noto Sans SC', sans-serif;
}

body {
    background-color: #f9f9f9;
    color: #333;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    height: 100vh;
    overflow: hidden;
}

#app {
    max-width: 500px;
    margin: 0 auto;
    padding: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
}

.screen {
    background-color: #fff;
    border-radius: 0;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: all 0.3s ease;
    width: 100%;
    height: 100%;
}

/* 欢迎屏幕 - 宇宙风格 */
.welcome-screen {
    text-align: center;
    padding: 0;
    display: flex;
    flex-direction: column;
    box-shadow: none;
    background: linear-gradient(135deg, #16112b, #2a1a5e, #3a1f8f);
    position: relative;
    overflow: hidden;
}

/* 星空背景效果 */
.welcome-screen::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background-image: 
        radial-gradient(circle at 25% 15%, rgba(255, 255, 255, 0.05) 1px, transparent 5px),
        radial-gradient(circle at 50% 45%, rgba(255, 255, 255, 0.1) 1px, transparent 4px),
        radial-gradient(circle at 75% 35%, rgba(255, 255, 255, 0.08) 1px, transparent 6px),
        radial-gradient(circle at 15% 70%, rgba(255, 255, 255, 0.07) 1px, transparent 5px),
        radial-gradient(circle at 65% 85%, rgba(255, 255, 255, 0.09) 1px, transparent 4px),
        radial-gradient(circle at 90% 10%, rgba(255, 255, 255, 0.1) 1px, transparent 5px);
    animation: starTwinkle 10s linear infinite;
    z-index: 0;
}

/* 星星闪烁动画 */
@keyframes starTwinkle {
    0% { opacity: 0.5; }
    50% { opacity: 1; }
    100% { opacity: 0.5; }
}

/* 水彩笔触效果 */
.watercolor-brush {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 1;
    opacity: 0.15;
}

.brush-stroke {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle at center, rgba(197, 108, 240, 0.8) 0%, rgba(162, 94, 234, 0.6) 35%, rgba(138, 43, 226, 0.4) 60%, transparent 70%);
    filter: blur(10px);
    opacity: 0.6;
    animation: brushFloat 20s infinite ease-in-out;
}

.brush-stroke:nth-child(1) {
    width: 200px;
    height: 200px;
    top: 10%;
    left: -50px;
    animation-delay: 0s;
}

.brush-stroke:nth-child(2) {
    width: 150px;
    height: 150px;
    top: 60%;
    right: -30px;
    background: radial-gradient(circle at center, rgba(147, 112, 219, 0.8) 0%, rgba(123, 97, 255, 0.6) 35%, rgba(106, 90, 205, 0.4) 60%, transparent 70%);
    animation-delay: 3s;
}

.brush-stroke:nth-child(3) {
    width: 180px;
    height: 180px;
    bottom: 20%;
    left: 50%;
    transform: translateX(-50%);
    background: radial-gradient(circle at center, rgba(238, 130, 238, 0.8) 0%, rgba(218, 112, 214, 0.6) 35%, rgba(186, 85, 211, 0.4) 60%, transparent 70%);
    animation-delay: 5s;
}

@keyframes brushFloat {
    0% { transform: rotate(0deg) scale(1) translate(0, 0); opacity: 0.6; }
    25% { transform: rotate(3deg) scale(1.05) translate(10px, -10px); opacity: 0.7; }
    50% { transform: rotate(-2deg) scale(0.95) translate(-5px, 5px); opacity: 0.5; }
    75% { transform: rotate(1deg) scale(1.02) translate(-10px, -5px); opacity: 0.6; }
    100% { transform: rotate(0deg) scale(1) translate(0, 0); opacity: 0.6; }
}

/* 增强星空效果 */
.shooting-star {
    position: absolute;
    height: 2px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 1) 50%, rgba(255, 255, 255, 0) 100%);
    transform: rotate(-45deg);
    opacity: 0;
    z-index: 2;
    animation: shootingStar 6s linear infinite;
    box-shadow: 0 0 5px 1px rgba(255, 255, 255, 0.5);
}

.shooting-star:nth-child(1) {
    width: 150px;
    top: 15%;
    left: -80px;
    animation-delay: 2s;
}

.shooting-star:nth-child(2) {
    width: 100px;
    top: 30%;
    left: -50px;
    animation-delay: 8s;
}

.shooting-star:nth-child(3) {
    width: 120px;
    top: 60%;
    left: -70px;
    animation-delay: 15s;
}

@keyframes shootingStar {
    0% { 
        transform: translateX(0) translateY(0) rotate(-45deg); 
        opacity: 0;
    }
    5% { opacity: 1; }
    20% { 
        transform: translateX(calc(100vw + 100px)) translateY(calc(100vw + 100px)) rotate(-45deg); 
        opacity: 0;
    }
    100% { 
        transform: translateX(calc(100vw + 100px)) translateY(calc(100vw + 100px)) rotate(-45deg); 
        opacity: 0;
    }
}

/* 改进星云效果 */
.welcome-screen::after {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    top: -50%;
    left: -50%;
    background: 
        radial-gradient(ellipse at center, rgba(147, 112, 219, 0.2) 0%, 
        rgba(138, 43, 226, 0.15) 30%, 
        rgba(106, 90, 205, 0.1) 60%, 
        transparent 70%),
        radial-gradient(ellipse at 70% 65%, rgba(238, 130, 238, 0.15) 0%, 
        rgba(218, 112, 214, 0.1) 30%, 
        rgba(186, 85, 211, 0.05) 60%, 
        transparent 70%);
    z-index: 0;
    animation: nebula 20s ease infinite alternate;
}

/* 星云漂浮动画 */
@keyframes nebula {
    0% { transform: rotate(0deg) scale(1); opacity: 0.5; }
    50% { transform: rotate(5deg) scale(1.1); opacity: 0.7; }
    100% { transform: rotate(0deg) scale(1); opacity: 0.5; }
}

.welcome-header {
    background: linear-gradient(135deg, #9768d9, #7e49c3, #6028ad);
    color: white;
    padding: 40px 20px;
    text-align: center;
    position: relative;
    box-shadow: 0 5px 15px rgba(151, 104, 217, 0.5);
    z-index: 2;
    overflow: hidden;
}

/* 水彩溅墨效果 */
.welcome-header::before {
    content: '';
    position: absolute;
    top: -20%;
    left: -20%;
    width: 140%;
    height: 140%;
    background-image: url("data:image/svg+xml,%3Csvg width='100%25' height='100%25' xmlns='http://www.w3.org/2000/svg'%3E%3Cdefs%3E%3ClinearGradient id='a' gradientUnits='userSpaceOnUse' x1='0' x2='0' y1='0' y2='100%25' gradientTransform='rotate(240)'%3E%3Cstop offset='0' stop-color='%23ffffff' stop-opacity='0.1'/%3E%3Cstop offset='1' stop-color='%23c56cf0' stop-opacity='0.1'/%3E%3C/linearGradient%3E%3Cpattern patternUnits='userSpaceOnUse' id='b' width='300' height='250' x='0' y='0' viewBox='0 0 1080 900'%3E%3Cg fill-opacity='0.05'%3E%3Cpolygon fill='%23444' points='90 150 0 300 180 300'/%3E%3Cpolygon points='90 150 180 0 0 0'/%3E%3Cpolygon fill='%23AAA' points='270 150 360 0 180 0'/%3E%3Cpolygon fill='%23DDD' points='450 150 360 300 540 300'/%3E%3Cpolygon fill='%23999' points='450 150 540 0 360 0'/%3E%3Cpolygon points='630 150 540 300 720 300'/%3E%3Cpolygon fill='%23DDD' points='630 150 720 0 540 0'/%3E%3Cpolygon fill='%23444' points='810 150 720 300 900 300'/%3E%3Cpolygon fill='%23FFF' points='810 150 900 0 720 0'/%3E%3Cpolygon fill='%23DDD' points='990 150 900 300 1080 300'/%3E%3Cpolygon fill='%23444' points='990 150 1080 0 900 0'/%3E%3Cpolygon fill='%23DDD' points='90 450 0 600 180 600'/%3E%3Cpolygon points='90 450 180 300 0 300'/%3E%3Cpolygon fill='%23666' points='270 450 180 600 360 600'/%3E%3Cpolygon fill='%23AAA' points='270 450 360 300 180 300'/%3E%3Cpolygon fill='%23DDD' points='450 450 360 600 540 600'/%3E%3Cpolygon fill='%23999' points='450 450 540 300 360 300'/%3E%3Cpolygon fill='%23999' points='630 450 540 600 720 600'/%3E%3Cpolygon fill='%23FFF' points='630 450 720 300 540 300'/%3E%3Cpolygon points='810 450 720 600 900 600'/%3E%3Cpolygon fill='%23DDD' points='810 450 900 300 720 300'/%3E%3Cpolygon fill='%23AAA' points='990 450 900 600 1080 600'/%3E%3Cpolygon fill='%23444' points='990 450 1080 300 900 300'/%3E%3Cpolygon fill='%23222' points='90 750 0 900 180 900'/%3E%3Cpolygon points='270 750 180 900 360 900'/%3E%3Cpolygon fill='%23DDD' points='270 750 360 600 180 600'/%3E%3Cpolygon points='450 750 540 600 360 600'/%3E%3Cpolygon points='630 750 540 900 720 900'/%3E%3Cpolygon fill='%23444' points='630 750 720 600 540 600'/%3E%3Cpolygon fill='%23AAA' points='810 750 720 900 900 900'/%3E%3Cpolygon fill='%23666' points='810 750 900 600 720 600'/%3E%3Cpolygon fill='%23999' points='990 750 900 900 1080 900'/%3E%3Cpolygon fill='%23999' points='180 0 90 150 270 150'/%3E%3Cpolygon fill='%23444' points='360 0 270 150 450 150'/%3E%3Cpolygon fill='%23FFF' points='540 0 450 150 630 150'/%3E%3Cpolygon points='900 0 810 150 990 150'/%3E%3Cpolygon fill='%23222' points='0 300 -90 450 90 450'/%3E%3Cpolygon fill='%23FFF' points='0 300 90 150 -90 150'/%3E%3Cpolygon fill='%23FFF' points='180 300 90 450 270 450'/%3E%3Cpolygon fill='%23666' points='180 300 270 150 90 150'/%3E%3Cpolygon fill='%23222' points='360 300 270 450 450 450'/%3E%3Cpolygon fill='%23FFF' points='360 300 450 150 270 150'/%3E%3Cpolygon fill='%23444' points='540 300 450 450 630 450'/%3E%3Cpolygon fill='%23222' points='540 300 630 150 450 150'/%3E%3Cpolygon fill='%23AAA' points='720 300 630 450 810 450'/%3E%3Cpolygon fill='%23666' points='720 300 810 150 630 150'/%3E%3Cpolygon fill='%23FFF' points='900 300 810 450 990 450'/%3E%3Cpolygon fill='%23999' points='900 300 990 150 810 150'/%3E%3Cpolygon points='0 600 -90 750 90 750'/%3E%3Cpolygon fill='%23666' points='0 600 90 450 -90 450'/%3E%3Cpolygon fill='%23AAA' points='180 600 90 750 270 750'/%3E%3Cpolygon fill='%23444' points='180 600 270 450 90 450'/%3E%3Cpolygon fill='%23444' points='360 600 270 750 450 750'/%3E%3Cpolygon fill='%23999' points='360 600 450 450 270 450'/%3E%3Cpolygon fill='%23666' points='540 600 630 450 450 450'/%3E%3Cpolygon fill='%23222' points='720 600 630 750 810 750'/%3E%3Cpolygon fill='%23FFF' points='900 600 810 750 990 750'/%3E%3Cpolygon fill='%23222' points='900 600 990 450 810 450'/%3E%3Cpolygon fill='%23DDD' points='0 900 90 750 -90 750'/%3E%3Cpolygon fill='%23444' points='180 900 270 750 90 750'/%3E%3Cpolygon fill='%23FFF' points='360 900 450 750 270 750'/%3E%3Cpolygon fill='%23AAA' points='540 900 630 750 450 750'/%3E%3Cpolygon fill='%23FFF' points='720 900 810 750 630 750'/%3E%3Cpolygon fill='%23222' points='900 900 990 750 810 750'/%3E%3Cpolygon fill='%23222' points='1080 300 990 450 1170 450'/%3E%3Cpolygon fill='%23FFF' points='1080 300 1170 150 990 150'/%3E%3Cpolygon points='1080 600 990 750 1170 750'/%3E%3Cpolygon fill='%23666' points='1080 600 1170 450 990 450'/%3E%3Cpolygon fill='%23DDD' points='1080 900 1170 750 990 750'/%3E%3C/g%3E%3C/pattern%3E%3C/defs%3E%3Crect x='0' y='0' fill='url(%23a)' width='100%25' height='100%25'/%3E%3Crect x='0' y='0' fill='url(%23b)' width='100%25' height='100%25'/%3E%3C/svg%3E");
    opacity: 0.6;
    animation: watercolor 15s ease-in-out infinite alternate;
    z-index: -1;
}

@keyframes watercolor {
    0% { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(3deg) scale(1.05); }
    100% { transform: rotate(-2deg) scale(1.02); }
}

.welcome-header h1 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    font-family: 'SourceHanSerifCN-Bold', serif;
}

.welcome-header h1 .rainbow-icon {
    margin-right: 10px;
    font-size: 32px;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.welcome-header p {
    font-family: 'AlimamaShuhei', sans-serif;
    font-size: 16px;
    color: rgba(255, 255, 255, 0.9);
}

.welcome-body {
    padding: 40px 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow-y: auto;
    position: relative;
    z-index: 2;
    background: rgba(42, 26, 94, 0.2);
    backdrop-filter: blur(5px);
}

.welcome-text {
    margin-bottom: 30px;
    position: relative;
    z-index: 3;
}

.welcome-text p {
    margin-bottom: 20px;
    font-size: 17px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    font-family: 'SourceHanSerifCN-Regular', serif;
}

.welcome-text .highlight {
    color: #e2bcfd;
    font-weight: 600;
    display: inline-block;
    position: relative;
    z-index: 1;
    font-family: 'SourceHanSerifCN-Bold', serif;
}

.welcome-text .highlight::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 8px;
    background-color: rgba(151, 104, 217, 0.3);
    z-index: -1;
}

.welcome-text .emoji-bullet {
    display: inline-block;
    width: 25px;
    text-align: center;
    margin-right: 5px;
    animation: float 3s ease-in-out infinite;
}

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

/* 漂浮星星效果 */
.floating-stars {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
    pointer-events: none;
}

.star {
    position: absolute;
    background-color: white;
    border-radius: 50%;
    opacity: 0.7;
    animation: twinkle var(--duration, 4s) ease-in-out infinite var(--delay, 0s);
}

@keyframes twinkle {
    0%, 100% { opacity: 0.2; transform: scale(0.8); }
    50% { opacity: 0.8; transform: scale(1.2); }
}

.welcome-footer {
    padding: 30px 20px 50px;
    position: relative;
    z-index: 2;
}

.start-button {
    background: linear-gradient(135deg, #c56cf0, #a55eea, #8638e6);
    color: white;
    border: none;
    border-radius: 50px;
    padding: 18px 40px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(151, 104, 217, 0.5), 0 0 20px rgba(197, 108, 240, 0.3);
    width: 100%;
    max-width: 280px;
    position: relative;
    overflow: hidden;
    font-family: 'AlimamaShuhei', sans-serif;
}

.start-button::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: 0.5s;
}

.start-button:hover::after {
    left: 100%;
}

.start-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(151, 104, 217, 0.6), 0 0 30px rgba(197, 108, 240, 0.4);
}

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

/* 宇宙星光点缀 */
.cosmic-dust {
    position: absolute;
    width: 2px;
    height: 2px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 0 10px 2px rgba(255, 255, 255, 0.8);
    opacity: 0.7;
    z-index: 1;
}

/* 问题屏幕 - 新设计 */
.question-screen {
    padding: 30px 20px;
    background: #fff;
    border-radius: 0;
    position: relative;
    display: flex;
    flex-direction: column;
}

.question-screen::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 8px;
    background: linear-gradient(135deg, #16112b, #2a1a5e, #3a1f8f);
    border-radius: 0;
}

.progress-container {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
}

.progress-bar {
    flex-grow: 1;
    height: 10px;
    background-color: #f0f0f0;
    border-radius: 50px;
    overflow: hidden;
    margin-right: 15px;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

.progress-bar-inner {
    height: 100%;
    background: linear-gradient(to right, #16112b, #3a1f8f);
    border-radius: 50px;
    transition: width 0.5s cubic-bezier(0.65, 0, 0.35, 1);
}

.question-counter {
    font-size: 14px;
    color: #888;
    font-weight: 500;
    background: #f5f7fa;
    padding: 5px 12px;
    border-radius: 50px;
    font-family: 'AlimamaShuhei', sans-serif;
}

.question-text {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 35px;
    text-align: center;
    color: #444;
    line-height: 1.5;
    position: relative;
    padding-bottom: 15px;
    font-family: 'SourceHanSerifCN-Bold', serif;
}

.question-text::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(to right, #16112b, #3a1f8f);
    border-radius: 3px;
}

.options {
    list-style: none;
    display: grid;
    grid-gap: 15px;
    overflow-y: auto;
    flex: 1;
    padding-bottom: 10px;
}

.option-button {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 18px 20px;
    border: 1px solid #eee;
    border-radius: 15px;
    background-color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.03);
    position: relative;
    overflow: hidden;
}

.option-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    opacity: 0.6;
    transition: all 0.3s ease;
}

.option-button[data-color="红"]::before { background-color: #e5110e; }
.option-button[data-color="橙"]::before { background-color: #f2700e; }
.option-button[data-color="黄"]::before { background-color: #f5f360; }
.option-button[data-color="绿"]::before { background-color: #269120; }
.option-button[data-color="蓝"]::before { background-color: #1b42b9; }
.option-button[data-color="紫"]::before { background-color: #7a29ac; }
.option-button[data-color="淡蓝"]::before { background-color: #33acce; }
.option-button[data-color="白"]::before { background-color: #f2eee3; }
.option-button[data-color="粉"]::before { background-color: #fb79b5; }

.option-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    border-color: rgba(127, 127, 213, 0.3);
}

.option-button:hover::before {
    width: 8px;
}

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

.option-icon-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 15px;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
    background: #f5f7fa;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05);
}

.option-icon {
    display: none;
}

.option-icon-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.8;
    z-index: 1;
}

.option-button[data-color="红"] .option-icon-bg { background-color: #e5110e; }
.option-button[data-color="橙"] .option-icon-bg { background-color: #f2700e; }
.option-button[data-color="黄"] .option-icon-bg { background-color: #f5f360; }
.option-button[data-color="绿"] .option-icon-bg { background-color: #269120; }
.option-button[data-color="蓝"] .option-icon-bg { background-color: #1b42b9; }
.option-button[data-color="紫"] .option-icon-bg { background-color: #7a29ac; }
.option-button[data-color="淡蓝"] .option-icon-bg { background-color: #33acce; }
.option-button[data-color="白"] .option-icon-bg { background-color: #f2eee3; }
.option-button[data-color="粉"] .option-icon-bg { background-color: #fb79b5; }

.option-text {
    flex-grow: 1;
    font-size: 16px;
    line-height: 1.5;
    color: #444;
    font-family: 'SourceHanSerifCN-Regular', serif;
}

/* 结果屏幕 - 全新设计 */
.result-screen {
    padding: 0;
    background-color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    border-radius: 0;
    overflow: hidden;
    height: 100%;
}

.result-container {
    width: 100%;
    max-width: 500px;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
    overflow: hidden;
    padding: 0;
    position: relative;
}

.result-header {
    width: 100%;
    text-align: center;
    padding: 10px 20px 6px;
    background: linear-gradient(135deg, rgba(127, 127, 213, 0.1), rgba(134, 168, 231, 0.1));
    position: relative;
    flex-shrink: 0;
}

.result-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 3px;
    background: linear-gradient(to right, #7f7fd5, #86a8e7);
    border-radius: 3px;
}

.result-title {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin: 0;
    position: relative;
    display: inline-block;
    letter-spacing: 1px;
    font-family: 'SourceHanSerifCN-Bold', serif;
}

.result-title::before,
.result-title::after {
    content: '✦';
    font-size: 16px;
    opacity: 0.6;
    position: relative;
    top: -2px;
}

.result-title::before {
    margin-right: 10px;
}

.result-title::after {
    margin-left: 10px;
}

.result-image-container {
    width: 100%;
    position: relative;
    height: 55vh;
    overflow: hidden;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
    margin: 0;
    flex-shrink: 0;
}

.result-image {
    width: 100%;
    height: auto;
    max-height: 55vh;
    object-fit: contain;
    display: block;
    transition: transform 0.5s ease;
}

.back-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* 图片翻转提示 */
.image-flip-hint {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    background: linear-gradient(45deg, rgba(40, 40, 40, 0.3), rgba(80, 80, 80, 0.3));
    color: white;
    padding: 8px 16px;
    border-radius: 12px;
    font-size: 14px;
    backdrop-filter: blur(3px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 10;
    animation: glow 2.5s infinite alternate;
}

.flip-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 8px;
    font-size: 16px;
    transition: transform 0.4s ease;
}

.image-flip-hint:hover .flip-icon {
    transform: rotate(180deg);
}

.flip-text {
    font-weight: 500;
    font-family: 'AlimamaShuhei', sans-serif;
}

@keyframes glow {
    from {
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1), 0 0 5px rgba(255, 255, 255, 0.1);
    }
    to {
        box-shadow: 0 4px 25px rgba(0, 0, 0, 0.2), 0 0 15px rgba(255, 255, 255, 0.25);
    }
}

.result-content {
    padding: 10px 0;
    width: 100%;
    background-color: white;
    position: absolute;
    z-index: 2;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: fit-content;
    max-height: 50vh;
    flex: 1;
    bottom: 0px;
}

.result-section {
    margin-bottom: 10px;
    padding: 12px;
    background-color: #fff;
    border-radius: 18px;
    position: relative;
    border: 1px solid #f0f0f0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border-left-width: 5px;
    border-left-color: #ccc;
    width: 92%;
    max-width: 92%;
    flex-shrink: 0;
}

.result-section:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

.result-section h3 {
    font-size: 17px;
    font-weight: 700;
    color: #333;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    font-family: 'SourceHanSerifCN-Bold', serif;
}

.section-icon {
    margin-right: 10px;
    font-size: 22px;
    color: #888;
    width: 30px;
    text-align: center;
    flex-shrink: 0;
}

.result-section p {
    font-size: 15px;
    line-height: 1.7;
    color: #555;
    margin: 0;
    padding-left: 40px;
    text-align: justify;
    word-break: break-word;
    font-family: 'SourceHanSerifCN-Regular', serif;
}

.button-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px 0 15px;
    margin-top: 0;
    margin-bottom: 10px;
    width: 92%;
    flex-shrink: 0;
}

.course-button {
    font-size: 16px;
    font-weight: 600;
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    background-size: 200% auto;
    width: 100%;
    max-width: 100%;
    text-align: center;
    position: relative;
    overflow: hidden;
    animation: pulse 2s infinite;
    font-family: 'AlimamaShuhei', sans-serif;
}

.course-button::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: 0.5s;
}

.course-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    background-position: right center;
}

.course-button:hover::after {
    left: 100%;
}

@keyframes pulse {
    0% { box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15); }
    50% { box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25); }
    100% { box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15); }
}

.result-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    width: 100%;
    margin-top: 10px;
}

.result-button {
    padding: 12px 20px;
    border: none;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    max-width: 300px;
    text-align: center;
}

.result-button.primary-button {
    background: linear-gradient(135deg, #7f7fd5, #86a8e7);
    color: white;
    box-shadow: 0 5px 15px rgba(127, 127, 213, 0.3);
}

.result-button.primary-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(127, 127, 213, 0.4);
}

.result-button.secondary-button {
    background-color: #f5f7fa;
    color: #444;
    border: 1px solid #e8edf2;
    display: flex;
    align-items: center;
    justify-content: center;
}

.result-button.secondary-button:hover {
    background-color: #e8edf2;
}

/* 图片翻转动画 */
.flip-front {
    animation: flipOut 0.6s ease forwards;
}

.flip-back {
    animation: flipIn 0.6s ease forwards;
}

@keyframes flipOut {
    0% {
        transform: rotateY(0deg);
        opacity: 1;
    }
    100% {
        transform: rotateY(90deg);
        opacity: 0;
    }
}

@keyframes flipIn {
    0% {
        transform: rotateY(-90deg);
        opacity: 0;
    }
    100% {
        transform: rotateY(0deg);
        opacity: 1;
    }
}

/* 颜色特定样式 */
.红-bg .result-section { border-left-color: #e5110e; }
.红-bg .section-icon { color: #e5110e; }

.橙-bg .result-section { border-left-color: #f2700e; }
.橙-bg .section-icon { color: #f2700e; }

.黄-bg .result-section { border-left-color: #f5f360; }
.黄-bg .section-icon { color: #f5f360; }

.绿-bg .result-section { border-left-color: #269120; }
.绿-bg .section-icon { color: #269120; }

.蓝-bg .result-section { border-left-color: #1b42b9; }
.蓝-bg .section-icon { color: #1b42b9; }

.紫-bg .result-section { border-left-color: #7a29ac; }
.紫-bg .section-icon { color: #7a29ac; }

.淡蓝-bg .result-section { border-left-color: #33acce; }
.淡蓝-bg .section-icon { color: #33acce; }

.白-bg .result-section { border-left-color: #f2eee3; }
.白-bg .section-icon { color: #f2eee3; }

.粉-bg .result-section { border-left-color: #fb79b5; }
.粉-bg .section-icon { color: #fb79b5; }

/* 媒体查询 */
@media (max-width: 480px) {
    #app {
        padding: 0;
    }
    
    .result-content {
        max-height: 50vh;
        padding: 8px 0;
    }
    
    .result-image-container {
        height: 45vh;
    }
    
    .result-image {
        max-height: 45vh;
    }
    
    .question-text {
        font-size: 20px;
    }
    
    .option-button {
        padding: 15px;
    }
    
    .option-text {
        font-size: 15px;
    }
    
    .result-header {
        padding: 8px 20px 5px;
    }
    
    .result-title {
        font-size: 18px;
    }
    
    .result-title::before,
    .result-title::after {
        font-size: 14px;
        margin: 0 6px;
    }
    
    .result-section {
        padding: 10px;
        margin-bottom: 8px;
        width: 94%;
    }
    
    .result-section h3 {
        font-size: 15px;
        margin-bottom: 6px;
    }
    
    .result-section p {
        font-size: 14px;
        padding-left: 38px;
        text-align: justify;
    }
    
    .button-container {
        gap: 8px;
        margin-top: 0;
        padding: 8px 0 12px;
        width: 94%;
    }
    
    .course-button {
        font-size: 15px;
        padding: 10px 16px;
    }
    
    .welcome-header h1 {
        font-size: 24px;
    }
    
    .welcome-text p {
        font-size: 16px;
    }
    
    .image-flip-hint {
        bottom: 10px;
        padding: 6px 12px;
        font-size: 12px;
    }
}

/* 动态按钮颜色 */
.btn-红 { background: linear-gradient(135deg, #e5110e, #c50e0c) !important; box-shadow: 0 5px 15px rgba(229, 17, 14, 0.4) !important; }
.btn-橙 { background: linear-gradient(135deg, #f2700e, #d6630c) !important; box-shadow: 0 5px 15px rgba(242, 112, 14, 0.4) !important; }
.btn-黄 { background: linear-gradient(135deg, #f5f360, #e6e450) !important; box-shadow: 0 5px 15px rgba(245, 243, 96, 0.4) !important; }
.btn-绿 { background: linear-gradient(135deg, #269120, #1f7d1a) !important; box-shadow: 0 5px 15px rgba(38, 145, 32, 0.4) !important; }
.btn-蓝 { background: linear-gradient(135deg, #1b42b9, #16379d) !important; box-shadow: 0 5px 15px rgba(27, 66, 185, 0.4) !important; }
.btn-紫 { background: linear-gradient(135deg, #7a29ac, #672390) !important; box-shadow: 0 5px 15px rgba(122, 41, 172, 0.4) !important; }
.btn-淡蓝 { background: linear-gradient(135deg, #33acce, #2c94b0) !important; box-shadow: 0 5px 15px rgba(51, 172, 206, 0.4) !important; }
.btn-白 { background: linear-gradient(135deg, #f2eee3, #e8e4d9) !important; box-shadow: 0 5px 15px rgba(242, 238, 227, 0.5) !important; color: #576574 !important; }
.btn-粉 { background: linear-gradient(135deg, #fb79b5, #e66da3) !important; box-shadow: 0 5px 15px rgba(251, 121, 181, 0.4) !important; } 