/* ========================================
   人生剧本测试 v2.0 - 样式表
   ======================================== */

/* CSS变量 */
:root {
    --bg-primary: #0a0a0f;
    --bg-secondary: #12121a;
    --bg-card: #1a1a25;
    --text-primary: #f5f5f5;
    --text-secondary: #a0a0b0;
    --text-muted: #6a6a7a;
    --accent-gold: #d4af37;
    --accent-gold-light: #e8c547;
    --accent-red: #c94c4c;
    --accent-blue: #4c7ac9;
    --accent-green: #4cc97a;
    --accent-purple: #9c4cc9;
    --film-border: #2a2a35;
    --gradient-gold: linear-gradient(135deg, #d4af37 0%, #f0d878 50%, #d4af37 100%);
    --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.3);
    --shadow-gold: 0 4px 20px rgba(212, 175, 55, 0.2);
}

/* 基础重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
}

/* 屏幕管理 */
.screen {
    display: none;
    min-height: 100vh;
    width: 100%;
    position: relative;
}

.screen.active {
    display: flex;
    flex-direction: column;
}

/* ========================================
   开场动画
   ======================================== */

#intro-screen {
    justify-content: center;
    align-items: center;
    background: 
        radial-gradient(ellipse at center, rgba(212, 175, 55, 0.1) 0%, transparent 70%),
        var(--bg-primary);
    overflow: hidden;
}

.film-grain {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    z-index: 1;
}

.spotlight {
    position: fixed;
    top: -50%;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 150%;
    background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.05) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
}

.intro-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 2rem;
    max-width: 500px;
}

/* 版本徽章 */
.version-badge {
    display: inline-block;
    background: linear-gradient(135deg, #d4af37 0%, #f0d878 100%);
    color: var(--bg-primary);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: 1px;
}

/* v2.0 特性展示 */
.v2-features {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 1.5rem 0;
    flex-wrap: wrap;
}

.v2-feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    padding: 0.8rem 1rem;
    background: rgba(212, 175, 55, 0.1);
    border-radius: 12px;
    border: 1px solid rgba(212, 175, 55, 0.2);
}

.v2-feature-icon {
    font-size: 1.5rem;
}

.v2-feature-text {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

/* 场记板 */
.clapperboard {
    background: var(--bg-card);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    margin-bottom: 2rem;
    transform: perspective(1000px) rotateX(5deg);
    animation: clapper-slam 0.8s ease-out 0.5s both;
}

@keyframes clapper-slam {
    0% {
        transform: perspective(1000px) rotateX(-90deg);
        opacity: 0;
    }
    60% {
        transform: perspective(1000px) rotateX(10deg);
    }
    100% {
        transform: perspective(1000px) rotateX(5deg);
        opacity: 1;
    }
}

.clapper-top {
    background: var(--accent-gold);
    padding: 0.8rem 1.5rem;
    display: flex;
    justify-content: space-between;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--bg-primary);
    letter-spacing: 2px;
}

.clapper-bottom {
    padding: 2rem;
    border: 3px solid var(--accent-gold);
    border-top: none;
}

.clapper-bottom h1 {
    font-family: 'Noto Serif SC', serif;
    font-size: 2.5rem;
    font-weight: 700;
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.clapper-bottom .subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    letter-spacing: 4px;
}

.intro-text {
    margin-bottom: 2.5rem;
    animation: fade-in-up 1s ease-out 1s both;
}

.intro-text p {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 0.8rem;
    line-height: 1.8;
}

@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 按钮样式 */
.btn-primary, .btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 500;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.btn-primary {
    background: var(--gradient-gold);
    color: var(--bg-primary);
    box-shadow: var(--shadow-gold);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(212, 175, 55, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--accent-gold);
    border: 2px solid var(--accent-gold);
}

.btn-secondary:hover {
    background: rgba(212, 175, 55, 0.1);
}

/* 理论介绍 */
.theory-intro {
    background: rgba(26, 26, 37, 0.8);
    border-radius: 16px;
    padding: 1.5rem;
    margin: 1.5rem 0;
    border: 1px solid rgba(212, 175, 55, 0.2);
    animation: fade-in-up 1s ease-out 0.8s both;
}

.theory-intro h3 {
    color: var(--accent-gold);
    font-size: 1.1rem;
    margin-bottom: 1rem;
    text-align: center;
}

.theory-cards {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin-bottom: 1rem;
}

.theory-card {
    background: rgba(18, 18, 26, 0.6);
    border-radius: 12px;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    text-align: left;
    transition: all 0.3s ease;
}

.theory-card:hover {
    background: rgba(18, 18, 26, 0.8);
    transform: translateX(5px);
}

.theory-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.theory-title {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.2rem;
}

.theory-desc {
    color: var(--text-muted);
    font-size: 0.8rem;
    line-height: 1.4;
}

.theory-tip {
    background: rgba(212, 175, 55, 0.1);
    border-radius: 8px;
    padding: 0.8rem;
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.theory-tip strong {
    color: var(--accent-gold);
}

#start-btn {
    animation: fade-in-up 1s ease-out 1.2s both;
}

/* ========================================
   前置问题页面
   ======================================== */

#basic-screen {
    padding: 1.5rem;
    background: var(--bg-primary);
}

.basic-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.basic-header h2 {
    color: var(--accent-gold);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.basic-header p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.basic-progress-bar {
    height: 4px;
    background: rgba(212, 175, 55, 0.2);
    border-radius: 2px;
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.basic-progress-fill {
    height: 100%;
    background: var(--gradient-gold);
    border-radius: 2px;
    transition: width 0.3s ease;
    width: 0%;
}

.basic-container {
    flex: 1;
    max-width: 500px;
    margin: 0 auto;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.basic-question {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 1.5rem;
    border: 1px solid var(--film-border);
    transition: all 0.3s ease;
}

.basic-question.answered {
    border-color: var(--accent-gold);
    background: rgba(212, 175, 55, 0.05);
}

.basic-question-header {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 0.5rem;
}

.basic-question-number {
    width: 28px;
    height: 28px;
    background: var(--accent-gold);
    color: var(--bg-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
}

.basic-question h3 {
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 600;
}

.basic-question-desc {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 1rem;
    margin-left: 2.3rem;
}

.basic-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.6rem;
    margin-left: 2.3rem;
}

.basic-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    padding: 0.8rem 0.5rem;
    background: var(--bg-secondary);
    border: 2px solid transparent;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.basic-option:hover {
    border-color: rgba(212, 175, 55, 0.5);
    transform: translateY(-2px);
}

.basic-option.selected {
    border-color: var(--accent-gold);
    background: rgba(212, 175, 55, 0.1);
}

.option-icon {
    font-size: 1.5rem;
}

.option-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.basic-option.selected .option-label {
    color: var(--accent-gold);
    font-weight: 600;
}

.basic-footer {
    margin-top: 1.5rem;
    text-align: center;
}

#basic-next-btn {
    opacity: 0.5;
    pointer-events: none;
}

#basic-next-btn.active {
    opacity: 1;
    pointer-events: auto;
}

/* ========================================
   测试页面
   ======================================== */

#quiz-screen {
    padding: 1rem;
    background: var(--bg-primary);
}

/* 胶片进度条 */
.film-progress {
    padding: 1rem 0;
    margin-bottom: 1rem;
}

.film-strip {
    position: relative;
    background: var(--film-border);
    padding: 8px 0;
    border-radius: 4px;
}

.film-holes {
    display: flex;
    justify-content: space-around;
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    padding: 0 10px;
    pointer-events: none;
}

.film-holes span {
    width: 6px;
    height: 10px;
    background: var(--bg-primary);
    border-radius: 1px;
}

.progress-bar {
    height: 6px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 3px;
    margin: 0 50px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--gradient-gold);
    border-radius: 3px;
    transition: width 0.5s ease;
    width: 0%;
}

.scene-counter {
    text-align: center;
    margin-top: 0.8rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.scene-counter #current-scene {
    color: var(--accent-gold);
    font-weight: 700;
    font-size: 1.1rem;
}

/* 场景卡片 */
.scene-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 600px;
    margin: 0 auto;
    width: 100%;
}

.scene-card {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: var(--shadow-soft);
    animation: card-enter 0.5s ease-out;
}

@keyframes card-enter {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.scene-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--film-border);
}

.scene-tag {
    background: var(--accent-gold);
    color: var(--bg-primary);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
}

.scene-location {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-family: monospace;
}

/* 对话区域 */
.scene-dialogue {
    margin-bottom: 1.5rem;
}

.dialogue-line {
    margin-bottom: 1rem;
    animation: dialogue-fade 0.4s ease-out;
}

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

.character-name {
    font-weight: 700;
    color: var(--accent-gold);
    font-size: 0.9rem;
    margin-bottom: 0.2rem;
}

.character-line {
    color: var(--text-primary);
    font-size: 1rem;
    line-height: 1.7;
    padding-left: 0.5rem;
    border-left: 2px solid var(--film-border);
}

.narration {
    color: var(--text-secondary);
    font-style: italic;
    font-size: 0.95rem;
    padding: 0.8rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    margin: 1rem 0;
}

/* 选项 */
.choices-container {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.choice-btn {
    background: var(--bg-secondary);
    border: 2px solid var(--film-border);
    border-radius: 12px;
    padding: 1rem 1.2rem;
    text-align: left;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--text-primary);
    font-size: 0.95rem;
    line-height: 1.5;
}

.choice-btn:hover {
    border-color: var(--accent-gold);
    background: rgba(212, 175, 55, 0.05);
    transform: translateX(5px);
}

.choice-btn:active {
    transform: translateX(5px) scale(0.98);
}

.choice-letter {
    display: inline-block;
    width: 24px;
    height: 24px;
    background: var(--film-border);
    border-radius: 50%;
    text-align: center;
    line-height: 24px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-right: 0.8rem;
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.choice-btn:hover .choice-letter {
    background: var(--accent-gold);
    color: var(--bg-primary);
}

/* 导航按钮 */
.quiz-nav {
    display: flex;
    justify-content: center;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--film-border);
}

.btn-nav {
    padding: 0.6rem 1.5rem;
    border-radius: 25px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    background: transparent;
    color: var(--text-muted);
    border: 1px solid var(--film-border);
}

.btn-nav:hover {
    color: var(--accent-gold);
    border-color: var(--accent-gold);
    background: rgba(212, 175, 55, 0.1);
}

/* ========================================
   加载页面
   ======================================== */

#loading-screen {
    justify-content: center;
    align-items: center;
    background: var(--bg-primary);
}

.loading-content {
    text-align: center;
}

.film-reel {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 2rem;
}

.reel {
    width: 60px;
    height: 60px;
    border: 4px solid var(--accent-gold);
    border-radius: 50%;
    position: relative;
    animation: reel-spin 2s linear infinite;
}

.reel::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    background: var(--accent-gold);
    border-radius: 50%;
}

.reel::after {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 8px;
    height: 8px;
    background: var(--bg-primary);
    border-radius: 50%;
    box-shadow: 
        0 18px 0 var(--bg-primary),
        0 36px 0 var(--bg-primary),
        -16px 9px 0 var(--bg-primary),
        16px 9px 0 var(--bg-primary),
        -16px 27px 0 var(--bg-primary),
        16px 27px 0 var(--bg-primary);
}

.reel:nth-child(2) {
    animation-direction: reverse;
}

@keyframes reel-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.loading-content p {
    color: var(--text-secondary);
    font-size: 1rem;
    animation: pulse 1.5s ease-in-out infinite;
}

.loading-sub {
    font-size: 0.85rem !important;
    color: var(--text-muted) !important;
    margin-top: 0.5rem;
    animation: none !important;
}

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

/* ========================================
   结果页面
   ======================================== */

#result-screen {
    padding: 1rem;
    background: var(--bg-primary);
    overflow-y: auto;
}

.result-poster {
    max-width: 500px;
    margin: 0 auto;
    background: var(--bg-card);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

.poster-header {
    background: linear-gradient(180deg, rgba(212, 175, 55, 0.2) 0%, transparent 100%);
    padding: 2rem 1.5rem;
    text-align: center;
    position: relative;
}

.rating-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--accent-gold);
    color: var(--bg-primary);
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
}

.movie-title {
    font-family: 'Noto Serif SC', serif;
    font-size: 1.8rem;
    font-weight: 700;
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.tagline {
    font-size: 0.95rem;
    color: var(--text-secondary);
    font-style: italic;
}

.poster-content {
    padding: 1.5rem;
}

/* v2.0 角色匹配卡片 */
.character-section {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1) 0%, rgba(212, 175, 55, 0.05) 100%);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.character-card-v2 {
    text-align: center;
}

.character-image-placeholder {
    margin-bottom: 1rem;
}

.character-avatar {
    width: 80px;
    height: 80px;
    background: var(--gradient-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
    color: var(--bg-primary);
    margin: 0 auto 0.5rem;
}

.character-work {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.character-name {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--accent-gold);
    margin-bottom: 0.5rem;
}

.mixed-badge {
    display: inline-block;
    background: rgba(212, 175, 55, 0.2);
    color: var(--accent-gold);
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-size: 0.7rem;
    margin-bottom: 0.8rem;
}

.character-quote {
    font-style: italic;
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    padding: 0 1rem;
}

.character-match {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
}

.match-percent {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent-gold);
}

.match-text {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* 匹配度大显示 */
.match-percentage-large {
    text-align: center;
    padding: 1.5rem;
    background: rgba(212, 175, 55, 0.1);
    border-radius: 16px;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(212, 175, 55, 0.2);
}

.match-percentage-large .match-value {
    display: block;
    font-size: 3rem;
    font-weight: 700;
    color: var(--accent-gold);
    line-height: 1;
}

.match-percentage-large .match-label {
    display: block;
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
}

/* 相似点列表 */
.similarity-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.similarity-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.6rem 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.similarity-list li:last-child {
    border-bottom: none;
}

.similarity-dot {
    color: var(--accent-gold);
    font-size: 0.6rem;
    margin-top: 0.3rem;
}

/* 故事文本 */
.story-text {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.8;
}

/* 预测列表 */
.prediction-list {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.prediction-item {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    padding: 0.8rem;
    background: rgba(18, 18, 26, 0.5);
    border-radius: 8px;
}

.prediction-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
}

.prediction-item p {
    color: var(--text-secondary);
    font-size: 0.85rem;
    line-height: 1.5;
    margin: 0;
}

/* 建议框 */
.advice-box {
    background: rgba(76, 201, 122, 0.1);
    border-left: 3px solid var(--accent-green);
    padding: 1rem;
    border-radius: 0 8px 8px 0;
}

.advice-text {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.7;
    margin: 0;
    font-style: italic;
}

/* 原型徽章 */
.archetype-badge {
    text-align: center;
    padding: 1.5rem;
    background: var(--bg-secondary);
    border-radius: 12px;
    margin-bottom: 1.5rem;
    border: 2px solid var(--accent-gold);
}

.archetype-name {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent-gold);
    margin-bottom: 0.3rem;
}

.archetype-subtitle {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* 结果区块 */
.result-section {
    margin-bottom: 1.5rem;
}

.result-section h3,
.result-section h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--accent-gold);
    margin-bottom: 0.8rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--film-border);
}

.section-content {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.8;
}

.section-content p {
    margin-bottom: 0.8rem;
}

/* 卡司表 */
.cast-grid {
    display: grid;
    gap: 0.8rem;
}

.cast-section {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: rgba(18, 18, 26, 0.5);
    border-radius: 12px;
    border: 1px solid var(--film-border);
}

.cast-section h4 {
    color: var(--accent-gold);
    font-size: 1rem;
    margin-bottom: 0.5rem;
    border-bottom: none;
    padding-bottom: 0;
}

.cast-intro {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
    font-style: italic;
}

.cast-list {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.cast-item-detailed {
    padding: 0.8rem;
    background: rgba(26, 26, 37, 0.6);
    border-radius: 8px;
    border-left: 3px solid var(--accent-gold);
}

.cast-item-detailed .cast-name {
    font-weight: 600;
    color: var(--text-primary);
    display: block;
    margin-bottom: 0.3rem;
}

.cast-item-detailed p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin: 0;
}

/* 行动计划 */
.action-plan {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.action-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem;
    background: var(--bg-secondary);
    border-radius: 8px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.action-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
}

/* 雷达图 */
.radar-container {
    display: flex;
    justify-content: center;
    margin-bottom: 0.5rem;
}

/* 雷达图解读说明 */
.radar-legend {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1rem;
    padding: 0.8rem;
    background: rgba(212, 175, 55, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(212, 175, 55, 0.1);
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.legend-icon {
    font-size: 0.9rem;
}

#radar-chart {
    max-width: 100%;
    height: auto;
}

.dimension-tags {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.6rem;
}

.dimension-tag {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.6rem 0.8rem;
    background: var(--bg-secondary);
    border-radius: 6px;
    font-size: 0.85rem;
}

.dimension-tag .dim-name {
    color: var(--text-secondary);
}

.dimension-tag .dim-value {
    color: var(--accent-gold);
    font-weight: 600;
}

/* 海报底部 */
.poster-footer {
    background: var(--bg-secondary);
    padding: 1rem;
    text-align: center;
}

.director-credit {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.3rem;
}

.studio-logo {
    font-size: 0.75rem;
    color: var(--accent-gold);
    letter-spacing: 2px;
    font-weight: 600;
}

/* 结果操作按钮 */
.result-actions {
    max-width: 500px;
    margin: 1.5rem auto;
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.result-actions button {
    flex: 1;
    max-width: 200px;
}

/* ========================================
   分享模态框
   ======================================== */

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    padding: 1rem;
}

.modal.active {
    display: flex;
}

.modal-content {
    position: relative;
    max-width: 400px;
    width: 100%;
    text-align: center;
}

.close-btn {
    position: absolute;
    top: -40px;
    right: 0;
    font-size: 2rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: color 0.3s;
}

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

#share-poster-container {
    background: var(--bg-card);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.share-tip {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* ========================================
   Toast 提示
   ======================================== */

.toast {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    font-size: 0.9rem;
    z-index: 2000;
    animation: toast-in 0.3s ease-out;
}

@keyframes toast-in {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

/* ========================================
   响应式适配
   ======================================== */

@media (max-width: 480px) {
    html {
        font-size: 14px;
    }
    
    .clapper-bottom h1 {
        font-size: 2rem;
    }
    
    .scene-card {
        padding: 1rem;
    }
    
    .choice-btn {
        padding: 0.8rem 1rem;
    }
    
    .movie-title {
        font-size: 1.5rem;
    }
    
    .archetype-name {
        font-size: 1.6rem;
    }
    
    .dimension-tags {
        grid-template-columns: 1fr;
    }
    
    .result-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .result-actions button {
        width: 100%;
        max-width: 280px;
    }
    
    .basic-options {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 768px) {
    .scene-card {
        padding: 2rem;
    }
    
    .poster-content {
        padding: 2rem;
    }
    
    .basic-options {
        grid-template-columns: repeat(6, 1fr);
    }
}

/* ========================================
   动画工具类
   ======================================== */

.fade-in {
    animation: fade-in 0.5s ease-out;
}

.slide-up {
    animation: slide-up 0.5s ease-out;
}

@keyframes fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

/* 高亮效果 */
.highlight {
    color: var(--accent-gold);
    font-weight: 600;
}

/* 引用样式 */
.quote {
    border-left: 3px solid var(--accent-gold);
    padding-left: 1rem;
    margin: 1rem 0;
    font-style: italic;
    color: var(--text-secondary);
}

/* ========================================
   四维深度解读样式（新增）
   ======================================== */

.dimension-analysis-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 1rem;
}

.dimension-analysis-item {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 1.25rem;
    border: 1px solid var(--film-border);
    transition: all 0.3s ease;
}

.dimension-analysis-item:hover {
    border-color: var(--accent-gold);
    box-shadow: var(--shadow-gold);
}

.dim-analysis-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--film-border);
}

.dim-analysis-icon {
    font-size: 1.5rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-secondary);
    border-radius: 10px;
}

.dim-analysis-title {
    flex: 1;
}

.dim-analysis-title h4 {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 400;
    margin: 0;
}

.dim-analysis-type {
    font-size: 1.1rem;
    color: var(--accent-gold);
    font-weight: 600;
}

.dim-analysis-score {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--accent-gold);
    background: rgba(212, 175, 55, 0.1);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
}

.dim-analysis-content {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.dim-short-desc {
    font-size: 1rem;
    color: var(--text-primary);
    font-weight: 500;
}

.dim-full-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.dim-daily-scene {
    background: var(--bg-secondary);
    padding: 0.875rem;
    border-radius: 8px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    border-left: 3px solid var(--accent-blue);
    margin-top: 0.5rem;
}

.dim-daily-scene strong {
    color: var(--accent-blue);
}

@media (min-width: 768px) {
    .dimension-analysis-list {
        gap: 2rem;
    }
    
    .dimension-analysis-item {
        padding: 1.5rem;
    }
    
    .dim-analysis-header {
        gap: 1rem;
    }
    
    .dim-analysis-icon {
        width: 48px;
        height: 48px;
        font-size: 1.75rem;
    }
}

/* ========================================
   角色详情扩展 - P2-T1新增
   ======================================== */

.character-extension {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--film-border);
}

.extension-section {
    margin-bottom: 1.5rem;
}

.extension-section:last-child {
    margin-bottom: 0;
}

.extension-section h5 {
    font-size: 1rem;
    color: var(--accent-gold);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.growth-path {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.growth-stage {
    background: var(--bg-secondary);
    padding: 0.75rem 1rem;
    border-radius: 8px;
    border-left: 3px solid var(--accent-gold);
}

.growth-stage .stage-label {
    font-size: 0.75rem;
    color: var(--accent-gold);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.25rem;
    display: block;
}

.growth-stage p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin: 0;
}

.turning-point {
    background: var(--bg-secondary);
    padding: 1rem;
    border-radius: 8px;
}

.turning-point p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.turning-point p:last-child {
    margin-bottom: 0;
}

.real-case {
    background: var(--bg-secondary);
    padding: 1rem;
    border-radius: 8px;
}

.real-case p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
}

.real-case .case-example {
    background: var(--bg-card);
    padding: 0.75rem;
    border-radius: 6px;
    border-left: 3px solid var(--accent-blue);
    font-style: italic;
}

@media (min-width: 768px) {
    .growth-path {
        flex-direction: row;
        gap: 1rem;
    }
    
    .growth-stage {
        flex: 1;
    }
}

/* ========================================
   匹配逻辑解释 - P2-T2新增
   ======================================== */

.match-explanation-card {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 1.5rem;
    margin: 1rem 0;
    border: 1px solid var(--film-border);
}

.match-explanation-card h4 {
    color: var(--accent-gold);
    font-size: 1.1rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.explanation-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.explanation-intro {
    font-size: 1rem;
    color: var(--text-primary);
    line-height: 1.6;
}

.explanation-highlight {
    background: var(--bg-secondary);
    padding: 1rem;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    border-left: 3px solid var(--accent-gold);
}

.highlight-label {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.highlight-value {
    font-size: 1.1rem;
    color: var(--accent-gold);
    font-weight: 600;
}

.explanation-detail {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.explanation-connection {
    background: var(--bg-secondary);
    padding: 1rem;
    border-radius: 8px;
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
}

.connection-icon {
    font-size: 1.25rem;
    flex-shrink: 0;
}

.explanation-connection p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

/* ========================================
   相似角色推荐 - P2-T3新增
   ======================================== */

.similar-intro {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.similar-characters-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.similar-character-card {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 1.25rem;
    border: 1px solid var(--film-border);
    transition: all 0.3s ease;
    cursor: pointer;
}

.similar-character-card:hover {
    border-color: var(--accent-gold);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(212, 175, 55, 0.15);
}

.similar-character-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.similar-type {
    font-size: 0.8rem;
    color: var(--accent-gold);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.similar-match {
    font-size: 0.85rem;
    color: var(--text-muted);
    background: var(--bg-secondary);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}

.similar-character-info {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    margin-bottom: 0.75rem;
}

.similar-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--gradient-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--bg-primary);
    flex-shrink: 0;
}

.similar-details {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.similar-details h5 {
    font-size: 1rem;
    color: var(--text-primary);
    margin: 0;
}

.similar-work {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.similar-archetype {
    font-size: 0.75rem;
    color: var(--accent-gold);
    margin-top: 0.1rem;
}

.similar-reason {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0.5rem 0;
    padding: 0.5rem 0;
    border-top: 1px solid var(--film-border);
    border-bottom: 1px solid var(--film-border);
}

.similar-quote {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-style: italic;
    line-height: 1.4;
}

@media (min-width: 768px) {
    .similar-characters-list {
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .similar-character-card {
        flex: 1;
        min-width: 280px;
    }
}

/* ========================================
   继续测试提示 - 数据持久化新增
   ======================================== */

.continue-prompt {
    margin: 2rem 0;
    animation: fade-in-up 0.5s ease-out;
}

.continue-card {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid var(--accent-gold);
    text-align: center;
}

.continue-card p {
    color: var(--text-primary);
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.continue-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.continue-buttons .btn-secondary {
    background: transparent;
    border: 1px solid var(--text-muted);
    color: var(--text-muted);
}

.continue-buttons .btn-secondary:hover {
    border-color: var(--accent-gold);
    color: var(--accent-gold);
}
