/* ===== 第1关：林间·养育 ===== */
.level1-container {
    background: transparent;
}

.level1-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 20px;
    overflow-y: auto;
}

/* 开场 */
.level1-intro {
    text-align: center;
    padding: 40px 20px;
    animation: fadeIn 1s ease;
}

.level1-intro h2 {
    font-size: 24px;
    font-weight: 300;
    letter-spacing: 6px;
    margin-bottom: 20px;
}

.level1-intro p {
    color: var(--text-secondary);
    line-height: 1.8;
    max-width: 500px;
    margin: 0 auto 30px;
}

.forest-icon {
    font-size: 80px;
    margin-bottom: 20px;
    animation: sway 4s ease-in-out infinite;
}

@keyframes sway {
    0%, 100% { transform: rotate(-2deg); }
    50% { transform: rotate(2deg); }
}

/* ===== 背景故事 ===== */
.backstory-scene {
    max-width: 500px;
    margin: 40px auto;
    text-align: center;
    animation: fadeIn 0.8s ease;
}

.backstory-image {
    font-size: 100px;
    margin-bottom: 30px;
    animation: float 3s ease-in-out infinite;
}

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

.backstory-title {
    font-size: 20px;
    font-weight: 300;
    letter-spacing: 4px;
    margin-bottom: 20px;
    color: var(--accent-green);
}

.backstory-text {
    color: var(--text-secondary);
    line-height: 2;
    font-size: 15px;
    margin-bottom: 30px;
}

.backstory-progress {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 30px;
}

.progress-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.progress-dot.active {
    background: var(--accent-green);
    transform: scale(1.3);
}

.progress-dot.done {
    background: var(--accent-green);
    opacity: 0.5;
}

/* ===== 养育界面 v2 ===== */
.raising-v2 {
    display: grid;
    grid-template-columns: 1fr 1.2fr 1fr;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    animation: fadeIn 0.6s ease;
}

@media (max-width: 900px) {
    .raising-v2 {
        grid-template-columns: 1fr;
    }
}

.pet-area-v2 {
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-lg);
    padding: 24px;
    border: 1px solid rgba(42, 157, 143, 0.2);
}

.pet-display-v2 {
    text-align: center;
    margin-bottom: 20px;
}

.pet-character-v2 {
    font-size: 80px;
    margin-bottom: 16px;
    transition: all 0.5s ease;
}

.pet-happy {
    animation: bounce 1s ease-in-out infinite;
}

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

.pet-sad {
    filter: grayscale(50%);
    transform: scale(0.9);
}

.pet-scared {
    transform: scale(0.8);
    opacity: 0.7;
}

.mood-happy {
    animation: happyBounce 1s ease-in-out infinite;
}

.mood-pleased {
    animation: gentleSway 2s ease-in-out infinite;
}

.mood-neutral {
    animation: neutralBreath 3s ease-in-out infinite;
}

.mood-sad {
    filter: grayscale(40%);
    animation: sadShake 3s ease-in-out infinite;
}

.mood-very-sad {
    filter: grayscale(70%);
    transform: scale(0.9);
    animation: cryTremble 1.5s ease-in-out infinite;
}

.mood-loved {
    animation: lovedPulse 1.2s ease-in-out infinite;
}

@keyframes happyBounce {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-12px) rotate(-3deg); }
    75% { transform: translateY(-12px) rotate(3deg); }
}

@keyframes gentleSway {
    0%, 100% { transform: rotate(-2deg); }
    50% { transform: rotate(2deg); }
}

@keyframes neutralBreath {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.03); }
}

@keyframes sadShake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-3px); }
    75% { transform: translateX(3px); }
}

@keyframes cryTremble {
    0%, 100% { transform: scale(0.9) translateY(0); }
    50% { transform: scale(0.92) translateY(-2px); }
}

@keyframes lovedPulse {
    0%, 100% { 
        transform: scale(1);
        filter: drop-shadow(0 0 10px rgba(244, 162, 97, 0.5));
    }
    50% { 
        transform: scale(1.08);
        filter: drop-shadow(0 0 20px rgba(244, 162, 97, 0.8));
    }
}

.pet-mood-emoji {
    font-size: 24px;
    margin-bottom: 8px;
    transition: all 0.3s ease;
}

.pet-mood-bubble {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: white;
    color: var(--bg-dark);
    padding: 8px 14px;
    border-radius: 18px;
    font-size: 13px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: 10;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.pet-mood-bubble::before {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid white;
}

.pet-mood-bubble.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.pet-interact-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 15px;
}

.interact-btn {
    padding: 10px 16px;
    background: rgba(107, 127, 215, 0.2);
    border: 1px solid rgba(107, 127, 215, 0.4);
    border-radius: 12px;
    color: var(--text-primary);
    cursor: pointer;
    font-size: 13px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.interact-btn:hover {
    background: rgba(107, 127, 215, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(107, 127, 215, 0.3);
}

.interact-btn:active {
    transform: translateY(0);
}

.interact-btn .btn-icon {
    font-size: 18px;
}

.pet-display-wrapper {
    position: relative;
    display: inline-block;
}

.pet-info-v2 {
    text-align: center;
}

.pet-name-v2 {
    font-size: 18px;
    color: var(--text-primary);
    letter-spacing: 2px;
    margin-bottom: 4px;
}

.pet-age-v2 {
    font-size: 12px;
    color: var(--text-muted);
}

.pet-tags {
    margin-bottom: 20px;
    text-align: center;
}

.tags-label {
    font-size: 11px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.trait-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    justify-content: center;
}

.trait-tag {
    padding: 4px 10px;
    background: rgba(244, 162, 97, 0.15);
    border: 1px solid rgba(244, 162, 97, 0.3);
    border-radius: 12px;
    font-size: 11px;
    color: var(--accent-warm);
}

.pet-stats-v2 {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.stat-item {
    display: grid;
    grid-template-columns: 60px 1fr 40px;
    align-items: center;
    gap: 10px;
    font-size: 12px;
}

.stat-item span:first-child {
    color: var(--text-secondary);
}

.stat-item span:last-child {
    color: var(--accent-green);
    text-align: right;
    font-weight: 500;
}

.stat-bar {
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
}

.stat-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 0.5s ease;
}

.stat-fill.happy {
    background: linear-gradient(90deg, #f4a261, #e9c46a);
}

.stat-fill.trust {
    background: linear-gradient(90deg, #2a9d8f, #83c5be);
}

.stat-fill.independent {
    background: linear-gradient(90deg, #6b7fd7, #8b9fe8);
}

/* ===== 年度时间线 ===== */
.year-area {
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-lg);
    padding: 24px;
    border: 1px solid rgba(107, 127, 215, 0.2);
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.year-timeline {
    position: relative;
}

.year-label {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.year-track {
    position: relative;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.year-progress {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    background: linear-gradient(90deg, var(--accent-green), var(--primary-color));
    border-radius: 4px;
    transition: width 0.8s ease;
}

.year-marker {
    position: absolute;
    top: -8px;
    transform: translateX(-50%);
    background: var(--accent-green);
    color: white;
    font-size: 11px;
    padding: 4px 8px;
    border-radius: 12px;
    font-weight: 500;
    transition: left 0.8s ease;
    white-space: nowrap;
}

.stage-desc-card {
    background: rgba(42, 157, 143, 0.08);
    border-radius: var(--radius-md);
    padding: 16px;
    border-left: 3px solid var(--accent-green);
}

.stage-desc-card h4 {
    color: var(--accent-green);
    font-size: 13px;
    margin-bottom: 6px;
    letter-spacing: 1px;
}

.stage-desc-card p {
    color: var(--text-secondary);
    font-size: 12px;
    line-height: 1.6;
    margin: 0;
}

.interaction-buttons-v2 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.interact-btn-v2 {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 12px 6px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid transparent;
    border-radius: var(--radius-md);
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 11px;
}

.interact-btn-v2:hover {
    background: rgba(42, 157, 143, 0.1);
    border-color: var(--accent-green);
    transform: translateY(-2px);
}

.interact-btn-v2:active {
    transform: translateY(0);
}

.btn-emoji {
    font-size: 24px;
}

.next-year-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, var(--accent-green), var(--primary-color));
    border: none;
    border-radius: var(--radius-md);
    color: white;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 2px;
    font-weight: 500;
}

.next-year-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(42, 157, 143, 0.3);
}

.next-year-btn:active {
    transform: translateY(0);
}

/* ===== 大五人格面板 ===== */
.personality-panel {
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-lg);
    padding: 24px;
    border: 1px solid rgba(244, 162, 97, 0.2);
}

.personality-panel h4 {
    color: var(--accent-warm);
    font-size: 14px;
    margin-bottom: 6px;
    letter-spacing: 2px;
    text-align: center;
}

.panel-hint {
    color: var(--text-muted);
    font-size: 11px;
    text-align: center;
    margin-bottom: 20px;
}

.big-five-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.big-five-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.big-five-header {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
}

.big-five-label {
    color: var(--text-secondary);
}

.big-five-value {
    color: var(--accent-warm);
    font-weight: 500;
}

.big-five-bar {
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.big-five-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-warm), #e76f51);
    border-radius: 4px;
    transition: width 0.5s ease;
}

/* ===== 事件场景 ===== */
.event-scene {
    max-width: 600px;
    margin: 40px auto;
    animation: fadeIn 0.6s ease;
}

.event-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-lg);
    padding: 32px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
}

.event-badge {
    position: absolute;
    top: -12px;
    left: 32px;
    background: var(--accent-purple);
    color: white;
    font-size: 12px;
    padding: 4px 16px;
    border-radius: 20px;
    letter-spacing: 1px;
}

.event-title {
    font-size: 22px;
    font-weight: 300;
    letter-spacing: 3px;
    margin-bottom: 16px;
    margin-top: 10px;
}

.event-desc {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 30px;
    font-size: 15px;
}

.event-choices {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.event-choice-btn {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
    font-size: 14px;
}

.event-choice-btn:hover {
    background: rgba(107, 127, 215, 0.1);
    border-color: var(--primary-color);
    transform: translateX(5px);
}

.choice-letter {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 600;
    flex-shrink: 0;
}

.choice-text {
    flex: 1;
    line-height: 1.5;
}

/* ===== 生态系统 v2 ===== */
.systems-view-v2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: center;
}

@media (max-width: 700px) {
    .systems-view-v2 {
        grid-template-columns: 1fr;
    }
}

.systems-diagram-v2 {
    position: relative;
    width: 300px;
    height: 300px;
    margin: 0 auto;
    cursor: pointer;
}

.system-ring-v2 {
    position: absolute;
    border: 2px solid;
    border-radius: 50%;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 10px;
    font-size: 11px;
    text-align: center;
    transition: all 0.4s ease;
    cursor: pointer;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.system-ring-v2:hover {
    transform: translate(-50%, -50%) scale(1.05);
    filter: brightness(1.2);
}

.ring-label {
    font-weight: 500;
    letter-spacing: 1px;
}

.macro-ring {
    width: 280px;
    height: 280px;
    border-color: var(--accent-purple);
    color: var(--accent-purple);
    background: rgba(155, 93, 229, 0.05);
}

.exo-ring {
    width: 220px;
    height: 220px;
    border-color: var(--accent-warm);
    color: var(--accent-warm);
    background: rgba(244, 162, 97, 0.05);
}

.meso-ring {
    width: 160px;
    height: 160px;
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: rgba(107, 127, 215, 0.05);
}

.micro-ring {
    width: 100px;
    height: 100px;
    border-color: var(--accent-green);
    color: var(--accent-green);
    background: rgba(42, 157, 143, 0.08);
}

.chrono-ring {
    width: 300px;
    height: 300px;
    border-color: rgba(255, 255, 255, 0.3);
    color: var(--text-muted);
    background: transparent;
    border-style: dashed;
}

.system-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 24px;
    text-align: center;
    line-height: 1.2;
    color: var(--text-primary);
    font-size: 12px;
}

.system-info-v2 {
    min-height: 200px;
}

.system-detail {
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
    padding: 20px;
    animation: fadeIn 0.4s ease;
}

.system-detail-icon {
    font-size: 36px;
    margin-bottom: 12px;
}

.system-detail h5 {
    color: var(--text-primary);
    font-size: 16px;
    margin-bottom: 10px;
}

.system-detail p {
    color: var(--text-secondary);
    font-size: 13px;
    line-height: 1.7;
}

.system-example {
    margin-top: 16px;
    padding: 12px;
    background: rgba(42, 157, 143, 0.08);
    border-radius: var(--radius-sm);
    border-left: 3px solid var(--accent-green);
    font-size: 12px;
}

.system-example strong {
    color: var(--accent-green);
    display: block;
    margin-bottom: 4px;
}

/* ===== 结局 v2 ===== */
.level1-ending-v2 {
    max-width: 700px;
    margin: 0 auto;
    padding: 20px;
    text-align: center;
    animation: fadeIn 1s ease;
}

.ending-pet-v2 {
    font-size: 100px;
    margin-bottom: 20px;
    animation: float 3s ease-in-out infinite;
}

.ending-title {
    font-size: 24px;
    font-weight: 300;
    letter-spacing: 6px;
    margin-bottom: 10px;
}

.ending-subtitle {
    color: var(--text-secondary);
    margin-bottom: 30px;
    font-size: 14px;
}

.ending-section {
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 24px;
    text-align: left;
}

.ending-section h3 {
    color: var(--accent-warm);
    font-size: 16px;
    margin-bottom: 6px;
    letter-spacing: 2px;
    text-align: center;
}

.section-hint {
    color: var(--text-muted);
    font-size: 12px;
    text-align: center;
    margin-bottom: 20px;
}

.final-bigfive-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.final-bigfive-item {
    display: grid;
    grid-template-columns: 70px 1fr 40px;
    align-items: center;
    gap: 12px;
    font-size: 12px;
}

.fb-label {
    color: var(--text-secondary);
}

.fb-bar {
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.fb-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-warm), #e76f51);
    border-radius: 4px;
}

.fb-value {
    color: var(--accent-warm);
    font-weight: 500;
    text-align: right;
}

.personality-traits-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

@media (max-width: 500px) {
    .personality-traits-grid {
        grid-template-columns: 1fr;
    }
}

.personality-trait-card {
    background: rgba(244, 162, 97, 0.08);
    border-radius: var(--radius-md);
    padding: 14px;
    border-left: 3px solid var(--accent-warm);
}

.personality-trait-card h5 {
    color: var(--accent-warm);
    font-size: 13px;
    margin-bottom: 6px;
}

.personality-trait-card p {
    color: var(--text-secondary);
    font-size: 12px;
    line-height: 1.5;
    margin: 0;
}

.parenting-style-card {
    background: rgba(42, 157, 143, 0.08);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 24px;
    border-left: 4px solid var(--accent-green);
    text-align: left;
}

.parenting-style-card h3 {
    color: var(--accent-green);
    margin-bottom: 12px;
    font-size: 18px;
}

.parenting-style-card p {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 14px;
}

.attachment-style {
    background: rgba(107, 127, 215, 0.1);
    border-radius: var(--radius-md);
    padding: 20px;
    margin-bottom: 24px;
    text-align: left;
}

.attachment-style h4 {
    color: var(--primary-light);
    margin-bottom: 8px;
    font-size: 14px;
    letter-spacing: 2px;
}

.attachment-style p {
    color: var(--text-secondary);
    font-size: 13px;
    line-height: 1.6;
}

.reflection-prompt {
    background: rgba(244, 162, 97, 0.1);
    border-radius: var(--radius-md);
    padding: 20px;
    margin-bottom: 24px;
    text-align: left;
}

.reflection-prompt h4 {
    color: var(--accent-warm);
    margin-bottom: 12px;
    font-size: 14px;
    letter-spacing: 2px;
}

.reflection-prompt p {
    color: var(--text-secondary);
    font-size: 13px;
    line-height: 1.7;
    font-style: italic;
}

.knowledge-gained {
    background: rgba(155, 93, 229, 0.08);
    border-radius: var(--radius-md);
    padding: 20px;
    text-align: left;
}

.knowledge-gained h4 {
    color: var(--accent-purple);
    margin-bottom: 12px;
    font-size: 14px;
    letter-spacing: 2px;
}

.knowledge-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.knowledge-list li {
    color: var(--text-secondary);
    font-size: 13px;
    padding: 6px 0;
    padding-left: 20px;
    position: relative;
}

.knowledge-list li::before {
    content: '✦';
    position: absolute;
    left: 0;
    color: var(--accent-purple);
}

/* ===== 宠物展示区（旧版保留兼容） ===== */
.pet-area {
    display: flex;
    gap: 30px;
    max-width: 900px;
    margin: 0 auto;
    width: 100%;
    flex-wrap: wrap;
    justify-content: center;
}

.pet-display {
    width: 280px;
    height: 350px;
    background: rgba(255, 255, 255, 0.03);
    border: 2px solid rgba(42, 157, 143, 0.3);
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.pet-character {
    font-size: 100px;
    text-align: center;
    position: relative;
    z-index: 2;
    transition: all 0.5s ease;
}

.pet-name {
    margin-top: 20px;
    font-size: 16px;
    color: var(--text-primary);
    letter-spacing: 2px;
}

.pet-stage {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 4px;
}

.pet-mood {
    display: flex;
    gap: 16px;
    margin-top: 16px;
}

.mood-item {
    text-align: center;
}

.mood-label {
    font-size: 11px;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.mood-bar {
    width: 60px;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
}

.mood-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 0.5s ease;
}

.mood-fill.happiness {
    background: linear-gradient(90deg, #f4a261, #e9c46a);
}

.mood-fill.trust {
    background: linear-gradient(90deg, #2a9d8f, #83c5be);
}

.mood-fill.independence {
    background: linear-gradient(90deg, #6b7fd7, #8b9fe8);
}

/* ===== 养育控制面板（旧版） ===== */
.raising-panel {
    flex: 1;
    min-width: 280px;
    max-width: 450px;
}

.raising-stage-info {
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
    padding: 16px;
    margin-bottom: 20px;
}

.raising-stage-info h4 {
    color: var(--accent-green);
    margin-bottom: 8px;
    font-size: 14px;
    letter-spacing: 2px;
}

.raising-stage-info p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.slider-group {
    margin-bottom: 24px;
}

.slider-item {
    margin-bottom: 20px;
}

.slider-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

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

.slider-value {
    font-size: 13px;
    color: var(--accent-green);
    font-weight: 500;
}

.slider {
    -webkit-appearance: none;
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.1);
    outline: none;
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--accent-green);
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(42, 157, 143, 0.4);
    transition: var(--transition);
}

.slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

.slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--accent-green);
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 8px rgba(42, 157, 143, 0.4);
}

.slider-desc {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 6px;
    line-height: 1.5;
}

.interaction-buttons {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.interact-btn {
    flex: 1;
    min-width: 80px;
    padding: 12px 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid transparent;
    border-radius: var(--radius-md);
    color: var(--text-primary);
    cursor: pointer;
    transition: var(--transition);
    font-size: 12px;
    text-align: center;
}

.interact-btn:hover {
    background: rgba(42, 157, 143, 0.1);
    border-color: var(--accent-green);
}

.interact-btn .btn-emoji {
    font-size: 24px;
    display: block;
    margin-bottom: 4px;
}

.stage-nav {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
}

.stage-tab {
    flex: 1;
    padding: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid transparent;
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
    font-size: 12px;
    text-align: center;
}

.stage-tab.active {
    background: rgba(42, 157, 143, 0.2);
    border-color: var(--accent-green);
    color: var(--text-primary);
}

.stage-tab.locked {
    opacity: 0.4;
    cursor: not-allowed;
}

/* ===== 系统视角（旧版） ===== */
.systems-view {
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-top: 20px;
}

.systems-view h4 {
    color: var(--accent-purple);
    margin-bottom: 16px;
    font-size: 14px;
    letter-spacing: 2px;
    text-align: center;
}

.systems-diagram {
    position: relative;
    width: 200px;
    height: 200px;
    margin: 0 auto 20px;
}

.system-ring {
    position: absolute;
    border: 2px solid;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
}

.system-ring:hover {
    transform: scale(1.05);
}

.system-micro {
    width: 60px;
    height: 60px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-color: var(--accent-green);
    color: var(--accent-green);
    background: rgba(42, 157, 143, 0.1);
    z-index: 4;
}

.system-meso {
    width: 100px;
    height: 100px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: rgba(107, 127, 215, 0.05);
    z-index: 3;
}

.system-exo {
    width: 150px;
    height: 150px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-color: var(--accent-warm);
    color: var(--accent-warm);
    background: rgba(244, 162, 97, 0.05);
    z-index: 2;
}

.system-macro {
    width: 200px;
    height: 200px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-color: var(--accent-purple);
    color: var(--accent-purple);
    background: rgba(155, 93, 229, 0.05);
    z-index: 1;
}

.system-info {
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
    padding: 16px;
    margin-top: 16px;
    min-height: 80px;
}

.system-info h5 {
    color: var(--text-primary);
    margin-bottom: 8px;
    font-size: 14px;
}

.system-info p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ===== 关卡结局（旧版） ===== */
.level1-ending {
    text-align: center;
    padding: 20px;
    animation: fadeIn 1s ease;
    max-width: 600px;
    margin: 0 auto;
}

.ending-pet {
    font-size: 100px;
    margin-bottom: 20px;
}

.next-stage-btn {
    text-align: center;
    margin-top: 20px;
}

/* ===== v3 三栏布局 ===== */
.raising-v3 {
    display: grid;
    grid-template-columns: 280px 1fr 280px;
    gap: 20px;
    padding: 20px;
    height: 100%;
    overflow-y: auto;
}

@media (max-width: 1100px) {
    .raising-v3 {
        grid-template-columns: 1fr;
        max-width: 600px;
        margin: 0 auto;
    }
}

.pet-area-v3 {
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-lg);
    padding: 24px;
    border: 1px solid rgba(42, 157, 143, 0.2);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.pet-display-v3 {
    text-align: center;
    padding: 20px 0;
    background: rgba(0, 0, 0, 0.2);
    border-radius: var(--radius-md);
    position: relative;
    overflow: hidden;
}

.pet-character-v3 {
    font-size: 72px;
    margin-bottom: 8px;
    transition: all 0.5s ease;
    filter: drop-shadow(0 0 10px rgba(42, 157, 143, 0.3));
}

.pet-character-v3.pet-golden {
    filter: drop-shadow(0 0 20px rgba(255, 215, 0, 0.6));
    animation: pet-glow 2s ease-in-out infinite;
}

.pet-character-v3.pet-warm {
    filter: drop-shadow(0 0 15px rgba(244, 162, 97, 0.5));
}

.pet-character-v3.pet-gray {
    filter: grayscale(80%) brightness(0.7);
    transform: scale(0.9);
}

.pet-character-v3.pet-dim {
    filter: brightness(0.6) saturate(0.5);
}

.pet-character-v3.pet-bright {
    animation: pet-bounce 0.8s ease-in-out infinite;
    filter: drop-shadow(0 0 15px rgba(239, 71, 111, 0.4));
}

.pet-character-v3.pet-faded {
    filter: grayscale(100%) opacity(0.6);
}

.pet-character-v3.pet-cautious {
    animation: pet-sway 2s ease-in-out infinite;
}

@keyframes pet-glow {
    0%, 100% { filter: drop-shadow(0 0 15px rgba(255, 215, 0, 0.4)); }
    50% { filter: drop-shadow(0 0 30px rgba(255, 215, 0, 0.8)); }
}

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

@keyframes pet-sway {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(5px); }
}

.pet-mood-state {
    font-size: 11px;
    color: var(--text-muted);
    font-style: italic;
    margin-bottom: 8px;
}

.pet-info-v3 {
    text-align: center;
}

.pet-name-v3 {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 4px;
}

.pet-age-v3 {
    font-size: 12px;
    color: var(--text-muted);
}

.pet-stats-v3 {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.stat-item {
    display: grid;
    grid-template-columns: 60px 1fr 35px;
    align-items: center;
    gap: 8px;
    font-size: 12px;
}

.stat-bar {
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.stat-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.5s ease;
}

.stat-fill.happy {
    background: linear-gradient(90deg, #f4a261, #e9c46a);
}

.stat-fill.trust {
    background: linear-gradient(90deg, #2a9d8f, #83c5be);
}

.stat-fill.independent {
    background: linear-gradient(90deg, #6b7fd7, #8b9fe8);
}

.parenting-style-badge {
    text-align: center;
    padding: 10px;
    background: rgba(107, 127, 215, 0.1);
    border-radius: var(--radius-md);
    font-size: 12px;
    color: var(--text-secondary);
    border: 1px solid rgba(107, 127, 215, 0.2);
}

.parenting-style-badge strong {
    color: var(--primary-light);
    font-size: 13px;
}

.attachment-badge {
    text-align: center;
    padding: 8px;
    background: rgba(155, 93, 229, 0.15);
    border-radius: var(--radius-md);
    font-size: 12px;
    color: var(--accent-purple);
    border: 1px solid rgba(155, 93, 229, 0.3);
}

/* ===== 中间区域 ===== */
.center-area {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.parenting-sliders-section {
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-lg);
    padding: 20px;
    border: 1px solid rgba(107, 127, 215, 0.15);
}

.parenting-sliders-section h4 {
    color: var(--primary-light);
    font-size: 14px;
    margin-bottom: 4px;
    letter-spacing: 2px;
    text-align: center;
}

.sliders-hint {
    color: var(--text-muted);
    font-size: 11px;
    text-align: center;
    margin-bottom: 16px;
}

.parenting-slider {
    margin-bottom: 14px;
}

.parenting-slider:last-child {
    margin-bottom: 0;
}

.parenting-slider .slider-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
    font-size: 12px;
}

.parenting-slider .slider-label {
    color: var(--text-primary);
    font-weight: 500;
}

.parenting-slider .slider-value {
    color: var(--primary-light);
    font-weight: 500;
}

.slider-track-container {
    display: flex;
    align-items: center;
    gap: 8px;
}

.slider-end {
    font-size: 10px;
    color: var(--text-muted);
    white-space: nowrap;
    min-width: 30px;
}

.slider-end.slider-left {
    text-align: right;
}

.slider-end.slider-right {
    text-align: left;
}

.slider-input {
    flex: 1;
    -webkit-appearance: none;
    height: 6px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.1);
    outline: none;
    cursor: pointer;
}

.slider-input::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(107, 127, 215, 0.4);
    transition: all 0.2s ease;
}

.slider-input::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

.slider-input::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 8px rgba(107, 127, 215, 0.4);
}

.interaction-buttons-v3 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.interact-btn-v3 {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 12px 6px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid transparent;
    border-radius: var(--radius-md);
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 11px;
    font-family: inherit;
}

.interact-btn-v3:hover {
    background: rgba(42, 157, 143, 0.1);
    border-color: var(--accent-green);
    transform: translateY(-2px);
}

.interact-btn-v3:active {
    transform: translateY(0);
}

.stranger-trigger-btn {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, var(--accent-purple), var(--primary-color));
    border: none;
    border-radius: var(--radius-md);
    color: white;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    animation: pulse-glow 2s ease-in-out infinite;
}

.stranger-trigger-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(155, 93, 229, 0.3);
}

.stranger-trigger-btn:active {
    transform: translateY(0);
}

/* ===== 右侧人格面板 ===== */
.personality-panel-v3 {
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-lg);
    padding: 24px;
    border: 1px solid rgba(244, 162, 97, 0.2);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.personality-panel-v3 h4 {
    color: var(--accent-warm);
    font-size: 14px;
    margin-bottom: 4px;
    letter-spacing: 2px;
    text-align: center;
}

.knowledge-count {
    text-align: center;
    padding: 10px;
    background: rgba(155, 93, 229, 0.1);
    border-radius: var(--radius-md);
    font-size: 12px;
    color: var(--accent-purple);
    border: 1px solid rgba(155, 93, 229, 0.2);
    margin-top: auto;
}

/* ===== 知识点卡片弹窗 ===== */
.knowledge-card-popup {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--bg-medium);
    border-radius: var(--radius-lg);
    padding: 20px 24px;
    max-width: 420px;
    width: 90%;
    z-index: 1500;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-left: 4px solid var(--primary-color);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.knowledge-card-popup.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.knowledge-card-popup.kc-correct {
    border-left-color: var(--accent-green);
}

.knowledge-card-popup.kc-warning {
    border-left-color: var(--accent-warm);
}

.kc-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.kc-icon {
    font-size: 20px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(107, 127, 215, 0.2);
    border-radius: 50%;
}

.kc-correct .kc-icon {
    background: rgba(42, 157, 143, 0.2);
}

.kc-warning .kc-icon {
    background: rgba(244, 162, 97, 0.2);
}

.kc-title {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-primary);
}

.kc-content {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ===== 陌生人事件弹窗 ===== */
.stranger-event-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    animation: fadeIn 0.3s ease;
}

.stranger-event-content {
    background: var(--bg-medium);
    border-radius: var(--radius-lg);
    padding: 40px;
    max-width: 550px;
    width: 90%;
    border: 2px solid rgba(155, 93, 229, 0.3);
    animation: scaleIn 0.4s ease;
}

.stranger-scene {
    text-align: center;
}

.stranger-icon {
    font-size: 64px;
    margin-bottom: 20px;
    animation: float 3s ease-in-out infinite;
}

.stranger-scene h3 {
    font-size: 22px;
    font-weight: 300;
    letter-spacing: 4px;
    margin-bottom: 20px;
    color: var(--accent-purple);
}

.stranger-scene p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 16px;
    font-size: 14px;
}

.stranger-choices {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 30px;
}

@media (max-width: 500px) {
    .stranger-choices {
        grid-template-columns: 1fr;
    }
}

.stranger-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 16px 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    text-align: center;
}

.stranger-btn:hover {
    background: rgba(155, 93, 229, 0.15);
    border-color: var(--accent-purple);
    transform: translateY(-3px);
}

.stranger-btn:active {
    transform: translateY(0);
}

.sb-icon {
    font-size: 28px;
}

.sb-text {
    font-size: 14px;
    font-weight: 500;
}

.sb-desc {
    font-size: 11px;
    color: var(--text-muted);
    line-height: 1.4;
}

/* ===== 养育界面 v4 - 单屏布局 ===== */
.raising-v4 {
    display: grid;
    grid-template-rows: auto 1fr auto;
    grid-template-columns: 1fr 1.2fr;
    gap: 16px;
    height: calc(100vh - 120px);
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    padding: 16px;
    box-sizing: border-box;
    overflow: hidden;
}

@media (max-width: 900px) {
    .raising-v4 {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto 1fr auto auto;
        height: auto;
        overflow-y: auto;
    }
}

/* 顶部区域 */
.raising-header {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-md);
    flex-wrap: wrap;
}

.stage-badge {
    background: linear-gradient(135deg, var(--accent-green), var(--primary-color));
    padding: 8px 16px;
    border-radius: 20px;
}

.stage-name {
    color: white;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 1px;
}

.header-pet {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-pet-icon {
    font-size: 36px;
    filter: drop-shadow(0 0 10px rgba(42, 157, 143, 0.4));
}

.header-pet-info {
    display: flex;
    flex-direction: column;
}

.header-pet-name {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-primary);
}

.header-pet-mood {
    font-size: 11px;
    color: var(--text-muted);
}

.header-traits {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.traits-label {
    font-size: 11px;
    color: var(--text-muted);
}

/* 左侧区域 */
.raising-left {
    display: flex;
    flex-direction: column;
    gap: 12px;
    overflow-y: auto;
}

.pet-display-v3 {
    text-align: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: var(--radius-md);
    position: relative;
    overflow: visible;
}

.pet-character-large {
    font-size: 72px;
    margin-bottom: 8px;
    transition: all 0.5s ease;
    filter: drop-shadow(0 0 10px rgba(42, 157, 143, 0.3));
}

.pet-mood-bubble {
    position: absolute;
    top: 10px;
    right: 10px;
    background: white;
    color: var(--bg-dark);
    padding: 6px 12px;
    border-radius: 12px;
    font-size: 12px;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.3s ease;
}

.pet-mood-bubble.show {
    opacity: 1;
    transform: scale(1);
}

.mood-status-area {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-sm);
}

.mood-emoji {
    font-size: 28px;
}

.mood-message {
    font-size: 12px;
    color: var(--text-secondary);
    font-style: italic;
}

.progress-bars-area {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.progress-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.progress-label {
    font-size: 11px;
    color: var(--text-secondary);
    width: 50px;
}

.progress-bar {
    flex: 1;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.progress-value {
    font-size: 11px;
    color: var(--accent-green);
    font-weight: 500;
    width: 25px;
    text-align: right;
}

.parenting-style-small {
    text-align: center;
    padding: 8px;
    background: rgba(107, 127, 215, 0.1);
    border-radius: var(--radius-sm);
    font-size: 12px;
    color: var(--primary-light);
}

/* 右侧区域 */
.raising-right {
    display: flex;
    flex-direction: column;
    gap: 12px;
    overflow-y: auto;
}

.year-indicator {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    background: rgba(42, 157, 143, 0.1);
    border-radius: var(--radius-sm);
    border-left: 3px solid var(--accent-green);
}

.year-label {
    font-size: 12px;
    color: var(--text-muted);
}

.year-value {
    font-size: 14px;
    font-weight: 500;
    color: var(--accent-green);
}

.narrative-card {
    padding: 14px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-sm);
    border-left: 3px solid var(--accent-warm);
}

.narrative-card p {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

.sliders-section {
    padding: 14px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-sm);
}

.sliders-header {
    font-size: 12px;
    color: var(--primary-light);
    margin-bottom: 12px;
    font-weight: 500;
}

.parenting-slider {
    margin-bottom: 12px;
}

.parenting-slider:last-child {
    margin-bottom: 0;
}

.parenting-slider .slider-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 4px;
    font-size: 11px;
}

.parenting-slider .slider-label {
    color: var(--text-primary);
    font-weight: 500;
}

.parenting-slider .slider-value {
    color: var(--primary-light);
    font-weight: 500;
}

.slider-track-container {
    display: flex;
    align-items: center;
    gap: 6px;
}

.slider-end {
    font-size: 9px;
    color: var(--text-muted);
    white-space: nowrap;
    min-width: 24px;
}

.slider-end.slider-left {
    text-align: right;
}

.slider-end.slider-right {
    text-align: left;
}

.slider-input {
    flex: 1;
    -webkit-appearance: none;
    height: 4px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.1);
    outline: none;
    cursor: pointer;
}

.slider-input::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(107, 127, 215, 0.4);
}

.slider-input::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

.slider-input::-moz-range-thumb {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
    border: none;
}

/* 互动按钮 */
.interaction-buttons-v4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.interact-btn-v4 {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 10px 4px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid transparent;
    border-radius: var(--radius-md);
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 11px;
    font-family: inherit;
}

.interact-btn-v4:hover {
    transform: translateY(-2px);
}

.interact-btn-v4.feed:hover {
    background: rgba(76, 175, 80, 0.15);
    border-color: #4CAF50;
}

.interact-btn-v4.play:hover {
    background: rgba(255, 152, 0, 0.15);
    border-color: #FF9800;
}

.interact-btn-v4.talk:hover {
    background: rgba(33, 150, 243, 0.15);
    border-color: #2196F3;
}

.interact-btn-v4.discipline:hover {
    background: rgba(156, 39, 176, 0.15);
    border-color: #9C27B0;
}

.interact-btn-v4.bug:hover {
    background: rgba(139, 195, 74, 0.15);
    border-color: #8BC34A;
}

.interact-btn-v4:active {
    transform: translateY(0);
}

.btn-icon {
    font-size: 22px;
}

.btn-label {
    font-size: 11px;
}

/* 底部区域 */
.raising-footer {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-md);
}

.footer-hint {
    font-size: 11px;
    color: var(--text-muted);
}

.next-year-btn-v4 {
    padding: 12px 32px;
    background: linear-gradient(135deg, var(--accent-green), var(--primary-color));
    border: none;
    border-radius: var(--radius-md);
    color: white;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    letter-spacing: 2px;
}

.next-year-btn-v4:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(42, 157, 143, 0.3);
}

.next-year-btn-v4:active {
    transform: translateY(0);
}

/* 动画效果 */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-5px); }
    40% { transform: translateX(5px); }
    60% { transform: translateX(-5px); }
    80% { transform: translateX(5px); }
}

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

/* ===== 事件场景 v2 ===== */
.event-scene-v2 {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 70vh;
    padding: 20px;
}

.event-card-v2 {
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-lg);
    padding: 32px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    max-width: 600px;
    width: 100%;
    animation: fadeIn 0.6s ease;
}

.event-header-v2 {
    text-align: center;
    margin-bottom: 24px;
}

.event-age-badge {
    display: inline-block;
    background: var(--accent-purple);
    color: white;
    font-size: 12px;
    padding: 4px 16px;
    border-radius: 20px;
    margin-bottom: 12px;
}

.event-title-v2 {
    font-size: 22px;
    font-weight: 300;
    letter-spacing: 3px;
    margin: 0;
    color: var(--text-primary);
}

.event-desc-v2 {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 30px;
    font-size: 15px;
    text-align: center;
}

.event-choices-v2 {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.event-choice-btn-v2 {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
    font-size: 14px;
    font-family: inherit;
}

.event-choice-btn-v2:hover {
    background: rgba(107, 127, 215, 0.1);
    border-color: var(--primary-color);
    transform: translateX(5px);
}

.choice-letter-v2 {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 600;
    flex-shrink: 0;
}

.choice-text-v2 {
    flex: 1;
    line-height: 1.5;
}

/* ===== 选择影响弹窗 ===== */
.choice-impact-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.choice-impact-overlay.show {
    opacity: 1;
}

.choice-impact-modal {
    background: var(--bg-medium);
    border-radius: var(--radius-lg);
    padding: 32px;
    max-width: 500px;
    width: 90%;
    border: 2px solid rgba(244, 162, 97, 0.3);
    animation: scaleIn 0.4s ease;
    text-align: center;
}

.impact-header {
    font-size: 18px;
    font-weight: 500;
    color: var(--accent-warm);
    margin-bottom: 20px;
    letter-spacing: 2px;
}

.impact-desc {
    margin-bottom: 20px;
}

.impact-desc p {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
    font-style: italic;
}

.impact-explanation {
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-md);
    padding: 16px;
    margin-bottom: 20px;
    text-align: left;
}

.impact-item {
    color: var(--text-secondary);
    font-size: 13px;
    line-height: 1.8;
    padding: 4px 0;
}

.impact-changes {
    color: var(--accent-green);
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 24px;
    padding: 12px;
    background: rgba(42, 157, 143, 0.1);
    border-radius: var(--radius-sm);
}

.impact-continue-btn {
    padding: 12px 32px;
    background: linear-gradient(135deg, var(--accent-green), var(--primary-color));
    border: none;
    border-radius: var(--radius-md);
    color: white;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.impact-continue-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(42, 157, 143, 0.3);
}

/* ===== 系统视图点击状态 ===== */
.system-ring-v2.active {
    transform: translate(-50%, -50%) scale(1.08);
    filter: brightness(1.3);
    box-shadow: 0 0 20px currentColor;
}
