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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: linear-gradient(180deg, #050b14 0%, #0a1629 50%, #050b14 100%);
    color: #f1f5f9;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* 动态背景粒子效果 */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background: 
        radial-gradient(circle at 20% 20%, rgba(59, 130, 246, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(245, 158, 11, 0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
    animation: bgPulse 8s ease-in-out infinite;
}

@keyframes bgPulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

/* 六边形网格动画 */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    background-image: 
        repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(245, 158, 11, 0.03) 2px, rgba(245, 158, 11, 0.03) 4px),
        repeating-linear-gradient(90deg, transparent, transparent 2px, rgba(59, 130, 246, 0.03) 2px, rgba(59, 130, 246, 0.03) 4px);
    pointer-events: none;
    z-index: 0;
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

#app {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.page {
    display: none;
    flex: 1;
    padding: 2rem 1rem;
    animation: pageEnter 0.5s ease-out;
}

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

.page.active {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.container {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
}

/* Home Page Styles */
.title-section {
    text-align: center;
    margin-bottom: 3rem;
    animation: titleFloat 3s ease-in-out infinite;
}

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

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: 50px;
    color: #fcd34d;
    font-size: 0.75rem;
    font-weight: bold;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    box-shadow: 0 0 20px rgba(245, 158, 11, 0.2);
    animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {
    0%, 100% { box-shadow: 0 0 20px rgba(245, 158, 11, 0.2); }
    50% { box-shadow: 0 0 30px rgba(245, 158, 11, 0.4); }
}

.main-title {
    font-size: 4rem;
    font-weight: bold;
    background: linear-gradient(180deg, #fef3c7 0%, #fcd34d 50%, #f59e0b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
    text-shadow: 0 5px 10px rgba(0,0,0,0.5);
    filter: drop-shadow(0 0 10px rgba(245, 158, 11, 0.3));
}

.sub-title {
    font-size: 2rem;
    color: #cbd5e1;
    letter-spacing: 0.5em;
    margin-bottom: 1.5rem;
    text-shadow: 0 0 10px rgba(59, 130, 246, 0.5);
    animation: subtitleGlow 3s ease-in-out infinite;
}

@keyframes subtitleGlow {
    0%, 100% { text-shadow: 0 0 10px rgba(59, 130, 246, 0.5); }
    50% { text-shadow: 0 0 20px rgba(59, 130, 246, 0.8); }
}

.description {
    color: #94a3b8;
    font-size: 1rem;
    line-height: 1.8;
    max-width: 600px;
    margin: 0 auto;
}

.highlight {
    color: rgba(245, 158, 11, 0.8);
    font-weight: bold;
}

/* Gender Selection - 王者荣耀风格 */
.gender-selection {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.gender-card {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.4) 0%, rgba(15, 23, 42, 0.6) 100%);
    border: 2px solid rgba(71, 85, 105, 0.5);
    border-radius: 1rem;
    padding: 2rem;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* 卡片背景光效 */
.gender-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.gender-card:hover::before {
    opacity: 1;
    animation: cardShine 1.5s ease-in-out;
}

@keyframes cardShine {
    0% { transform: translate(-50%, -50%) scale(0); }
    100% { transform: translate(-50%, -50%) scale(1); }
}

.gender-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: #64748b;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.gender-card.selected[data-gender="male"] {
    border-color: #3b82f6;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.3) 0%, rgba(30, 64, 175, 0.4) 100%);
    box-shadow: 
        0 0 40px rgba(59, 130, 246, 0.4),
        inset 0 0 20px rgba(59, 130, 246, 0.2);
    animation: cardSelectBlue 0.6s ease-out;
}

.gender-card.selected[data-gender="female"] {
    border-color: #ec4899;
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.3) 0%, rgba(157, 23, 77, 0.4) 100%);
    box-shadow: 
        0 0 40px rgba(236, 72, 153, 0.4),
        inset 0 0 20px rgba(236, 72, 153, 0.2);
    animation: cardSelectPink 0.6s ease-out;
}

@keyframes cardSelectBlue {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1.02); }
}

@keyframes cardSelectPink {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1.02); }
}

.gender-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.3));
    animation: iconFloat 2s ease-in-out infinite;
}

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

/* 王者荣耀风格的性别文字 */
.gender-label {
    font-size: 2rem;
    font-weight: 900;
    margin-bottom: 0.5rem;
    position: relative;
    display: inline-block;
    letter-spacing: 0.1em;
}

.gender-card[data-gender="male"] .gender-label {
    background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 50%, #2563eb 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 8px rgba(59, 130, 246, 0.6));
}

.gender-card[data-gender="female"] .gender-label {
    background: linear-gradient(135deg, #f9a8d4 0%, #ec4899 50%, #db2777 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 8px rgba(236, 72, 153, 0.6));
}

.gender-card.selected[data-gender="male"] .gender-label {
    animation: textGlowBlue 1.5s ease-in-out infinite;
}

.gender-card.selected[data-gender="female"] .gender-label {
    animation: textGlowPink 1.5s ease-in-out infinite;
}

@keyframes textGlowBlue {
    0%, 100% { filter: drop-shadow(0 0 8px rgba(59, 130, 246, 0.6)); }
    50% { filter: drop-shadow(0 0 16px rgba(59, 130, 246, 1)); }
}

@keyframes textGlowPink {
    0%, 100% { filter: drop-shadow(0 0 8px rgba(236, 72, 153, 0.6)); }
    50% { filter: drop-shadow(0 0 16px rgba(236, 72, 153, 1)); }
}

.gender-path {
    font-size: 0.75rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-weight: 600;
}

.gender-card.selected .gender-path {
    color: #94a3b8;
}

/* Buttons */
.primary-btn {
    width: 100%;
    max-width: 500px;
    padding: 1rem 2rem;
    font-size: 1.125rem;
    font-weight: bold;
    letter-spacing: 0.2em;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    border: 2px solid rgba(245, 158, 11, 0.5);
    border-radius: 0.5rem;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    display: block;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.primary-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.primary-btn:hover::before {
    width: 300px;
    height: 300px;
}

.primary-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(245, 158, 11, 0.4);
}

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

.status-text {
    text-align: center;
    margin-top: 1rem;
    font-size: 0.75rem;
    color: #475569;
    font-family: monospace;
    animation: statusBlink 2s ease-in-out infinite;
}

@keyframes statusBlink {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

/* Quiz Page */
.progress-bar {
    margin-bottom: 2rem;
}

.progress-info {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    font-weight: bold;
    color: rgba(245, 158, 11, 0.8);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
}

.progress-track {
    height: 8px;
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid rgba(71, 85, 105, 0.5);
    border-radius: 50px;
    overflow: hidden;
    position: relative;
}

.progress-track::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: progressShine 2s linear infinite;
}

@keyframes progressShine {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #f59e0b 0%, #fcd34d 50%, #f59e0b 100%);
    border-radius: 50px;
    transition: width 0.5s ease;
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.5);
    position: relative;
}

.question-card {
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(71, 85, 105, 0.5);
    border-radius: 1rem;
    padding: 3rem 2rem;
    backdrop-filter: blur(10px);
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
    animation: cardPulse 3s ease-in-out infinite;
}

@keyframes cardPulse {
    0%, 100% { box-shadow: 0 0 50px rgba(0, 0, 0, 0.5); }
    50% { box-shadow: 0 0 60px rgba(59, 130, 246, 0.2); }
}

.question-text {
    font-size: 1.5rem;
    font-weight: 500;
    text-align: center;
    margin-bottom: 2rem;
    line-height: 1.6;
    color: #f1f5f9;
    animation: questionFade 0.5s ease-out;
}

@keyframes questionFade {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.options-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 700px;
    margin: 0 auto;
}

.option-btn {
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid #475569;
    border-left: 3px solid #475569;
    border-radius: 0.5rem;
    padding: 1.25rem;
    text-align: left;
    color: #cbd5e1;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    animation: optionSlide 0.5s ease-out backwards;
}

.option-btn:nth-child(1) { animation-delay: 0.1s; }
.option-btn:nth-child(2) { animation-delay: 0.2s; }

@keyframes optionSlide {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.option-btn::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 0;
    background: linear-gradient(90deg, rgba(245, 158, 11, 0.1), transparent);
    transition: width 0.3s ease;
}

.option-btn:hover::before {
    width: 100%;
}

.option-btn:hover {
    background: rgba(30, 41, 59, 0.8);
    border-color: #f59e0b;
    border-left-color: #f59e0b;
    color: #fef3c7;
    transform: translateX(5px);
    box-shadow: 0 5px 20px rgba(245, 158, 11, 0.2);
}

/* Result Page */
.result-container {
    display: flex;
    flex-direction: column;
    height: 100vh;
    max-width: 1000px;
    margin: 0 auto;
    width: 100%;
}

.result-content {
    flex: 1;
    overflow-y: auto;
    padding: 2rem 1rem;
}

.result-content::-webkit-scrollbar {
    width: 8px;
}

.result-content::-webkit-scrollbar-track {
    background: #0f172a;
}

.result-content::-webkit-scrollbar-thumb {
    background: #334155;
    border-radius: 4px;
}

.hero-header {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.5) 0%, rgba(15, 23, 42, 0.8) 100%);
    border: 1px solid rgba(71, 85, 105, 0.5);
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
    margin-bottom: 1.5rem;
    animation: heroReveal 0.8s ease-out;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

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

.hero-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(120, 53, 15, 0.3);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: 50px;
    color: #fbbf24;
    font-size: 0.75rem;
    font-weight: bold;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 1rem;
    animation: badgeFloat 3s ease-in-out infinite;
}

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

.hero-name {
    font-size: 3rem;
    font-weight: 900;
    background: linear-gradient(180deg, #ffffff 0%, #cbd5e1 50%, #64748b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
    filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.3));
    animation: heroNameGlow 3s ease-in-out infinite;
}

@keyframes heroNameGlow {
    0%, 100% { filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.3)); }
    50% { filter: drop-shadow(0 0 30px rgba(255, 255, 255, 0.5)); }
}

.hero-title {
    font-size: 1.5rem;
    color: #fef3c7;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.hero-keywords {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.keyword-tag {
    padding: 0.5rem 1rem;
    background: rgba(30, 41, 59, 0.8);
    border: 1px solid #475569;
    border-radius: 50px;
    font-size: 0.75rem;
    color: #cbd5e1;
    animation: tagPop 0.5s ease-out backwards;
}

.keyword-tag:nth-child(1) { animation-delay: 0.1s; }
.keyword-tag:nth-child(2) { animation-delay: 0.2s; }
.keyword-tag:nth-child(3) { animation-delay: 0.3s; }

@keyframes tagPop {
    from {
        opacity: 0;
        transform: scale(0);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.radar-chart {
    margin: 1.5rem auto;
    max-width: 250px;
    animation: radarSpin 1s ease-out;
}

@keyframes radarSpin {
    from {
        opacity: 0;
        transform: rotate(-180deg) scale(0.5);
    }
    to {
        opacity: 1;
        transform: rotate(0deg) scale(1);
    }
}

.info-section {
    background: rgba(15, 23, 42, 0.4);
    border: 1px solid rgba(71, 85, 105, 0.5);
    border-radius: 0.75rem;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    animation: sectionSlide 0.6s ease-out backwards;
    transition: all 0.3s ease;
}

.info-section:hover {
    transform: translateX(5px);
    border-color: rgba(245, 158, 11, 0.3);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.info-section:nth-child(1) { animation-delay: 0.1s; }
.info-section:nth-child(2) { animation-delay: 0.2s; }
.info-section:nth-child(3) { animation-delay: 0.3s; }
.info-section:nth-child(4) { animation-delay: 0.4s; }
.info-section:nth-child(5) { animation-delay: 0.5s; }
.info-section:nth-child(6) { animation-delay: 0.6s; }
.info-section:nth-child(7) { animation-delay: 0.7s; }

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

.info-section.quote {
    border-left: 4px solid #f59e0b;
    background: rgba(30, 41, 59, 0.2);
}

.info-section.strengths {
    background: rgba(5, 46, 22, 0.1);
    border-color: rgba(34, 197, 94, 0.2);
}

.info-section.weaknesses {
    background: rgba(69, 10, 10, 0.1);
    border-color: rgba(239, 68, 68, 0.2);
}

.info-section.love {
    background: rgba(76, 5, 25, 0.1);
    border-color: rgba(236, 72, 153, 0.2);
}

.info-section.work {
    background: rgba(7, 12, 59, 0.1);
    border-color: rgba(59, 130, 246, 0.2);
}

.info-section.money {
    background: rgba(69, 26, 3, 0.1);
    border-color: rgba(245, 158, 11, 0.2);
}

.section-title {
    color: #f59e0b;
    font-size: 0.875rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.section-content {
    color: #cbd5e1;
    font-size: 0.875rem;
    line-height: 1.8;
    text-align: left;
    white-space: pre-line;
}

.section-content ul {
    list-style: none;
    padding: 0;
}

.section-content li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.section-content li::before {
    content: '⭐';
    flex-shrink: 0;
}

.weaknesses .section-content li::before {
    content: '🛡️';
}

.quote-text {
    font-size: 1.125rem;
    font-style: italic;
    color: #cbd5e1;
    line-height: 1.6;
}

/* Action Bar */
.action-bar {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(5, 11, 20, 0.9);
    backdrop-filter: blur(10px);
}

.btn-outline, .btn-primary {
    flex: 1;
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
    font-weight: bold;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid;
    position: relative;
    overflow: hidden;
}

.btn-outline::before,
.btn-primary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.5s, height 0.5s;
}

.btn-outline:hover::before,
.btn-primary:hover::before {
    width: 300px;
    height: 300px;
}

.btn-outline {
    background: transparent;
    border-color: #475569;
    color: #cbd5e1;
}

.btn-outline:hover {
    border-color: #64748b;
    background: rgba(71, 85, 105, 0.2);
    transform: translateY(-2px);
}

.btn-primary {
    background: #f59e0b;
    border-color: #f59e0b;
    color: white;
}

.btn-primary:hover {
    background: #d97706;
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(245, 158, 11, 0.4);
}

/* Footer */
footer {
    position: relative;
    z-index: 1;
    padding: 1rem;
    text-align: center;
    font-size: 0.75rem;
    color: #475569;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(5, 11, 20, 0.8);
}

/* Responsive */
@media (max-width: 768px) {
    .main-title {
        font-size: 2.5rem;
    }
    
    .sub-title {
        font-size: 1.5rem;
    }
    
    .gender-selection {
        grid-template-columns: 1fr;
    }
    
    .question-text {
        font-size: 1.25rem;
    }
    
    .hero-name {
        font-size: 2rem;
    }
}
