/* ========================================
   GALGAME Engine - Character Stand Display Styles
   角色立绘展示样式 - 左信息右立绘
   ======================================== */

/* --------------------
   游戏体验区域
   -------------------- */
section#game.game-section {
    padding: 0 !important;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 1;
}

#game.game-section .section-header {
    margin-bottom: 0;
    padding: 40px 20px 20px;
    flex-shrink: 0;
}

/* --------------------
   游戏容器基础
   -------------------- */
.galgame-wrapper {
    width: 100%;
    flex: 1;
    min-height: 500px;
    margin: 0;
    padding: 0;
    position: relative;
}

.galgame-container {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 500px;
    border-radius: 0;
    overflow: hidden;
    box-shadow: none;
}

/* --------------------
   角色展示主界面 - 左右布局
   -------------------- */
.character-display-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: row;
}

/* 背景 */
.display-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(ellipse at 30% 50%, rgba(155, 89, 182, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 50%, rgba(52, 152, 219, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

/* --------------------
   左侧信息面板
   -------------------- */
.info-panel {
    flex: 0 0 45%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 60px;
    position: relative;
    z-index: 2;
}

.char-name {
    font-family: var(--font-serif);
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 8px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.char-name-en {
    color: rgba(255, 255, 255, 0.5);
    font-size: 16px;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    margin-bottom: 30px;
}

.char-details {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 25px;
    padding: 20px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
    font-size: 15px;
}

.detail-label {
    color: rgba(255, 255, 255, 0.5);
}

.detail-value {
    font-weight: 500;
}

.char-personality {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 25px;
}

.personality-tag {
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
}

/* 描述容器 - 固定高度防止立绘移动 */
.char-desc-container {
    min-height: 140px;
    padding: 20px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    position: relative;
}

.char-desc {
    color: rgba(255, 255, 255, 0.85);
    font-size: 16px;
    line-height: 1.9;
    margin: 0;
    display: inline;
}

/* 打字机光标 */
.typing-cursor {
    display: none;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 300;
    animation: cursor-blink 0.8s infinite;
    margin-left: 2px;
}

@keyframes cursor-blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

/* 角色选择器 */
.char-selector {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.selector-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.selector-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.selector-dots {
    display: flex;
    gap: 12px;
}

.selector-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
}

.selector-dot.active {
    transform: scale(1.3);
    background: white;
}

/* --------------------
   右侧立绘面板
   -------------------- */
.stand-panel {
    flex: 0 0 55%;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    position: relative;
    z-index: 2;
    padding-bottom: 60px;
}

.stand-container {
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    height: 100%;
    width: 100%;
}

.stand-container img {
    max-height: 100vh;
    max-width: 90%;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.5));
    transition: opacity 0.15s ease;
}

/* GALGAME风格表情切换淡入淡出 */
.expression-fade {
    opacity: 0.3;
    transform: scale(0.98);
    filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.5)) brightness(0.8);
}

.stand-glow {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    width: 70%;
    height: 80px;
    background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.25) 0%, transparent 70%);
    filter: blur(40px);
    animation: glow-pulse 4s ease-in-out infinite;
    pointer-events: none;
}

@keyframes glow-pulse {
    0%, 100% { opacity: 0.4; transform: translateX(-50%) scale(1); }
    50% { opacity: 0.7; transform: translateX(-50%) scale(1.1); }
}

/* --------------------
   响应式适配
   -------------------- */
@media (max-width: 1024px) {
    .info-panel {
        padding: 40px;
    }
    
    .info-content {
        padding: 30px;
    }
    
    .char-name {
        font-size: 36px;
    }
}

@media (max-width: 768px) {
    #game.game-section .section-header {
        padding: 20px 15px 15px;
    }
    
    #game.game-section .section-title {
        font-size: 24px;
    }
    
    .character-display-wrapper {
        flex-direction: column-reverse;
    }
    
    .info-panel {
        flex: 0 0 auto;
        padding: 20px;
    }
    
    .info-content {
        padding: 25px;
    }
    
    .char-name {
        font-size: 32px;
    }
    
    .char-name-en {
        font-size: 14px;
    }
    
    .char-details {
        padding: 15px;
    }
    
    .detail-row {
        font-size: 14px;
    }
    
    .char-desc {
        font-size: 14px;
        padding: 15px;
    }
    
    .stand-panel {
        flex: 1;
        padding-bottom: 20px;
        min-height: 50vh;
    }
    
    .stand-container img {
        max-height: 50vh;
    }
    
    .char-selector {
        margin-top: 20px;
    }
    
    .selector-btn {
        width: 44px;
        height: 44px;
        font-size: 16px;
    }
}
