/* ==================== 首尔陷落 - 游戏主界面样式 ==================== */

/* CSS 变量定义 */
:root {
    --bg-primary: #0d0d0d;
    --bg-secondary: #1a1a1a;
    --bg-tertiary: #2a2a2a;
    --text-primary: #ffffff;
    --text-secondary: #b0b0b0;
    --text-muted: #666666;
    --accent-red: #e63946;
    --accent-green: #2a9d8f;
    --accent-yellow: #e9c46a;
    --accent-blue: #457b9d;
    --warning: #f4a261;
    --danger: #e63946;
    --success: #2a9d8f;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Microsoft YaHei', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
}

/* ==================== 游戏主容器 ==================== */
.game-container {
    display: flex;
    flex-direction: column;
    height: 100vh;
    background: linear-gradient(135deg, #0d0d0d 0%, #1a1a2e 100%);
}

/* ==================== 顶部栏 ==================== */
.top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 24px;
    background: rgba(0, 0, 0, 0.5);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.game-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--accent-red);
    letter-spacing: 2px;
    text-shadow: 0 0 20px rgba(230, 57, 70, 0.5);
}

.top-stats {
    display: flex;
    gap: 24px;
}

.top-stat {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
}

.top-stat-label {
    color: var(--text-muted);
}

.top-stat-value {
    font-weight: 600;
    color: var(--text-primary);
}

.phase-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: rgba(230, 57, 70, 0.2);
    border-radius: 20px;
    border: 1px solid rgba(230, 57, 70, 0.3);
}

.phase-dot {
    width: 8px;
    height: 8px;
    background: var(--accent-red);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

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

/* ==================== 主内容区 ==================== */
.main-content {
    display: flex;
    flex: 1;
    overflow: hidden;
    gap: 16px;
    padding: 16px;
}

/* ==================== 面板通用样式 ==================== */
.panel {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    overflow: hidden;
}

.panel-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
}

/* ==================== 左侧面板 ==================== */
.left-panel {
    width: 280px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    overflow-y: auto;
}

.left-panel > .panel:first-child {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.left-panel .stat-list {
    flex: 1;
    overflow-y: auto;
}

/* 角色卡片 */
.character-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
}

.avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--bg-tertiary), var(--bg-secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    border: 3px solid var(--accent-red);
    box-shadow: 0 0 20px rgba(230, 57, 70, 0.3);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    animation: avatarPulse 2s infinite;
}

.avatar:hover {
    transform: scale(1.1);
    box-shadow: 0 0 30px rgba(230, 57, 70, 0.5);
}

.avatar::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 30%,
        rgba(255, 255, 255, 0.1) 50%,
        transparent 70%
    );
    animation: avatarShine 3s infinite;
}

@keyframes avatarPulse {
    0%, 100% {
        box-shadow: 0 0 20px rgba(230, 57, 70, 0.3);
    }
    50% {
        box-shadow: 0 0 30px rgba(230, 57, 70, 0.5);
    }
}

@keyframes avatarShine {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }
    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
}

.character-info h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 4px;
}

.character-role {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.character-location {
    font-size: 11px;
    color: var(--accent-red);
}

/* 状态列表 */
.stat-list {
    padding: 0 12px 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    transition: all 0.3s;
}

.stat-item.stat-warning {
    background: rgba(244, 162, 97, 0.1);
    border: 1px solid rgba(244, 162, 97, 0.3);
}

.stat-item.stat-danger {
    background: rgba(230, 57, 70, 0.1);
    border: 1px solid rgba(230, 57, 70, 0.3);
    animation: danger-pulse 1.5s infinite;
}

@keyframes danger-pulse {
    0%, 100% { box-shadow: 0 0 0 rgba(230, 57, 70, 0); }
    50% { box-shadow: 0 0 10px rgba(230, 57, 70, 0.3); }
}

.stat-icon {
    font-size: 18px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
}

.stat-details {
    flex: 1;
}

.stat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

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

.stat-value {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-secondary);
}

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

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

/* 各状态条颜色 */
.stat-stamina .stat-bar-fill { background: linear-gradient(90deg, #f4a261, #e9c46a); }
.stat-hunger .stat-bar-fill { background: linear-gradient(90deg, #e9c46a, #f4a261); }
.stat-thirst .stat-bar-fill { background: linear-gradient(90deg, #457b9d, #2a9d8f); }
.stat-sanity .stat-bar-fill { background: linear-gradient(90deg, #9b5de5, #f15bb5); }
.stat-infection .stat-bar-fill { background: linear-gradient(90deg, #e63946, #d62828); }
.stat-health .stat-bar-fill { background: linear-gradient(90deg, #2a9d8f, #21867a); }

/* 背包网格 */
.inventory-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
    padding: 12px;
}

.inv-slot {
    aspect-ratio: 1;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 20px;
}

.inv-slot:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

.inv-slot.has-item {
    background: rgba(42, 157, 143, 0.1);
    border-color: rgba(42, 157, 143, 0.3);
}

.inv-slot.has-item:hover {
    background: rgba(42, 157, 143, 0.2);
    transform: scale(1.05);
}

.inv-count {
    position: absolute;
    bottom: 2px;
    right: 2px;
    font-size: 10px;
    background: var(--accent-red);
    color: white;
    padding: 1px 4px;
    border-radius: 4px;
    font-weight: 600;
    min-width: 16px;
    text-align: center;
}

/* 背包物品提示框 */
.inv-tooltip {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    padding: 6px 10px;
    min-width: 100px;
    max-width: 200px;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, visibility 0.2s;
    z-index: 10000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.inv-tooltip-name {
    font-size: 10px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 3px;
    white-space: nowrap;
}

.inv-tooltip-effect {
    font-size: 10px;
    color: var(--accent-green);
    line-height: 1.4;
}

.inv-tooltip-effect.negative {
    color: var(--accent-red);
}

.inv-tooltip-desc {
    font-size: 10px;
    color: var(--text-muted);
    margin-top: 3px;
    line-height: 1.3;
}

/* 调频按钮 tooltip */
.radio-tooltip {
    position: fixed;
    background: rgba(0, 0, 0, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    padding: 6px 10px;
    font-size: 11px;
    color: var(--text-primary);
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, visibility 0.2s;
    z-index: 10000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    display: none;
}

/* 背包整理按钮 */
.sort-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    padding: 4px 8px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}

.sort-btn:hover {
    background: rgba(230, 57, 70, 0.2);
    border-color: var(--accent-red);
    transform: scale(1.1);
}

/* 按钮 tooltip */
.btn-tooltip {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    background: rgba(0, 0, 0, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    padding: 6px 10px;
    font-size: 12px;
    color: var(--text-primary);
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s;
    z-index: 100;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.sort-btn:hover .btn-tooltip {
    opacity: 1;
    visibility: visible;
}

/* 背包分类容器 */
.inventory-categories {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 12px;
    max-height: 300px;
    overflow-y: auto;
}

.inventory-category {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    padding: 8px;
}

.category-header {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 8px;
    padding-bottom: 4px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.category-icon {
    font-size: 14px;
}

.category-name {
    font-weight: 600;
}

.category-count {
    margin-left: auto;
    font-size: 11px;
    color: var(--text-secondary);
}

.category-items {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 6px;
}

/* ==================== 中间面板 ==================== */
.center-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-width: 0;
}

.main-display {
    flex: 1;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* 分类标签 */
.category-tabs {
    display: flex;
    background: rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.tab-btn {
    flex: 1;
    padding: 16px 12px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.3s;
    font-size: 14px;
    position: relative;
}

.tab-btn:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.02);
}

.tab-btn.active {
    color: var(--accent-red);
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 20%;
    right: 20%;
    height: 3px;
    background: var(--accent-red);
    border-radius: 3px 3px 0 0;
}

/* 行动区域 */
.actions-area {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
}

/* 行动网格 */
.action-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
}

.action-card {
    background: linear-gradient(180deg, rgba(31, 31, 46, 0.8) 0%, rgba(26, 26, 46, 0.8) 100%);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 16px;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.action-card:hover {
    transform: translateY(-3px);
    border-color: rgba(230, 57, 70, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(230, 57, 70, 0.1);
}

.action-card.locked {
    opacity: 0.4;
    cursor: not-allowed;
}

.action-card.locked:hover {
    transform: none;
    border-color: rgba(255, 255, 255, 0.05);
    box-shadow: none;
}

.action-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.action-icon {
    font-size: 32px;
}

.action-risks {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

.risk-tag {
    font-size: 12px;
    color: var(--warning);
    letter-spacing: 2px;
}

.action-name {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
}

.action-desc {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 12px;
    line-height: 1.4;
}

.action-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.action-costs {
    display: flex;
    gap: 8px;
}

.cost-pill {
    font-size: 11px;
    padding: 4px 8px;
    background: rgba(233, 196, 106, 0.1);
    border-radius: 4px;
    color: var(--accent-yellow);
}

.cost-pill.danger {
    background: rgba(230, 57, 70, 0.1);
    color: var(--danger);
}

.action-result {
    font-size: 12px;
    color: var(--accent-green);
}

/* 制作列表 */
.crafting-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.craft-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.craft-icon {
    font-size: 32px;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.craft-info {
    flex: 1;
}

.craft-name {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 6px;
}

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

.craft-btn {
    padding: 10px 20px;
    background: var(--accent-green);
    border: none;
    border-radius: 8px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.craft-btn:hover:not(:disabled) {
    background: #21867a;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(42, 157, 143, 0.4);
}

.craft-btn:disabled {
    background: var(--text-muted);
    cursor: not-allowed;
    opacity: 0.5;
}

/* 底部栏 */
.bottom-bar {
    display: flex;
    gap: 12px;
    padding: 16px 20px;
    background: rgba(0, 0, 0, 0.3);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 0 0 12px 12px;
}

.bottom-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s;
    font-size: 13px;
}

.bottom-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    transform: translateY(-2px);
}

.end-day-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    background: linear-gradient(135deg, var(--accent-green), #21867a);
    border: none;
    border-radius: 10px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 14px;
}

.end-day-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(42, 157, 143, 0.4);
}

/* ==================== 右侧面板 ==================== */
.right-panel {
    width: 300px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    overflow-y: auto;
}

/* 日志 */
.log-entry {
    display: flex;
    gap: 10px;
    padding: 10px 12px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    margin-bottom: 8px;
    font-size: 12px;
    border-left: 3px solid transparent;
    animation: fadeIn 0.3s ease;
}

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

.log-time {
    color: var(--text-muted);
    font-size: 11px;
    min-width: 40px;
    font-family: monospace;
}

/* 邻居列表 */
.neighbor-list {
    padding: 12px;
}

.neighbor-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    margin-bottom: 8px;
    transition: all 0.3s;
}

.neighbor-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.neighbor-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.neighbor-info {
    flex: 1;
}

.neighbor-name {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 2px;
}

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

.trust-bar {
    width: 50px;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
}

.trust-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-red), var(--warning), var(--accent-green));
    border-radius: 2px;
    transition: width 0.3s;
}

/* ==================== 弹窗样式 ==================== */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.modal-title {
    font-size: 18px;
    font-weight: 700;
}

.modal-close {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: none;
    border-radius: 8px;
    color: var(--text-muted);
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s;
}

.modal-close:hover {
    background: rgba(230, 57, 70, 0.2);
    color: var(--accent-red);
}

.modal-body {
    padding: 20px;
    overflow-y: auto;
    max-height: 60vh;
}

/* 事件弹窗特殊样式 */
.event-modal .modal-content {
    max-width: 450px;
    text-align: center;
    padding: 30px;
}

.event-icon-large {
    font-size: 64px;
    margin-bottom: 20px;
}

.event-title-large {
    font-size: 24px;
    font-weight: 700;
    color: var(--accent-red);
    margin-bottom: 16px;
}

.event-desc-large {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 24px;
}

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

.choice-btn-large {
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.3s;
    text-align: left;
    font-size: 14px;
}

.choice-btn-large:hover {
    background: rgba(230, 57, 70, 0.1);
    border-color: var(--accent-red);
    transform: translateX(5px);
}

.choice-consequences {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 6px;
}

/* 避难所地图 */
.shelter-map {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.shelter-room {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.shelter-room.active {
    background: rgba(42, 157, 143, 0.1);
    border-color: rgba(42, 157, 143, 0.3);
}

.room-name {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
}

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

/* ==================== 游戏结束画面 ==================== */
.game-over-screen {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 3000;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 40px;
}

.game-over-screen.active {
    display: flex;
}

.game-over-icon {
    font-size: 80px;
    margin-bottom: 24px;
}

.game-over-title {
    font-size: 36px;
    font-weight: 700;
    color: var(--accent-red);
    margin-bottom: 16px;
}

.game-over-reason {
    font-size: 14px;
    color: var(--text-secondary);
    max-width: 500px;
    line-height: 1.6;
    margin-bottom: 32px;
}

.survival-stats {
    display: flex;
    gap: 32px;
    margin-bottom: 32px;
}

.survival-stat {
    text-align: center;
}

.survival-number {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--accent-red), #d62828);
    border-radius: 50%;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
}

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

.start-btn {
    padding: 16px 48px;
    background: linear-gradient(135deg, var(--accent-red), #d62828);
    border: none;
    border-radius: 30px;
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.start-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(230, 57, 70, 0.4);
}

/* ==================== 响应式设计 ==================== */
@media (max-width: 1200px) {
    .left-panel {
        width: 240px;
    }
    .right-panel {
        width: 260px;
    }
}

@media (max-width: 992px) {
    .main-content {
        flex-direction: column;
    }
    .left-panel,
    .right-panel {
        width: 100%;
        flex-direction: row;
        flex-wrap: wrap;
    }
    .left-panel .panel,
    .right-panel .panel {
        flex: 1;
        min-width: 280px;
    }
}

@media (max-width: 768px) {
    .top-bar {
        flex-wrap: wrap;
        gap: 12px;
    }
    .top-stats {
        order: 3;
        width: 100%;
        justify-content: center;
    }
    .action-grid {
        grid-template-columns: 1fr;
    }
    .category-tabs {
        flex-wrap: wrap;
    }
    .tab-btn {
        flex: 1 0 30%;
        padding: 12px 8px;
        font-size: 12px;
    }
}

/* ==================== 滚动条样式 ==================== */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* ==================== 动画效果 ==================== */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.action-card {
    animation: slideIn 0.3s ease;
}

/* ==================== 工具提示 ==================== */
[title] {
    position: relative;
}

[title]:hover::after {
    content: attr(title);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    padding: 6px 12px;
    background: rgba(0, 0, 0, 0.9);
    color: white;
    font-size: 12px;
    border-radius: 6px;
    white-space: nowrap;
    z-index: 1000;
    pointer-events: none;
}

/* ==================== 角色选择页面样式（新版） ==================== */

/* 页面基础 */
.character-select-page {
    min-height: 100vh;
    background: linear-gradient(180deg, #0d0d12 0%, #1a1a24 100%);
    overflow-x: hidden;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Microsoft YaHei', sans-serif;
}

/* 选择容器 */
.select-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* 页面头部 */
.select-header {
    text-align: center;
    padding: 20px 0;
}

.header-logo {
    font-size: 14px;
    color: var(--accent-red);
    letter-spacing: 6px;
    margin-bottom: 16px;
    font-weight: 500;
}

.header-title {
    font-size: 42px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 12px;
    letter-spacing: 4px;
}

.header-subtitle {
    font-size: 13px;
    color: var(--text-muted);
    letter-spacing: 3px;
}

/* 角色卡片行 */
.character-cards-row {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    padding: 10px 0;
}

/* 角色垂直卡片 */
.character-card-vertical {
    width: 140px;
    background: linear-gradient(180deg, #1e1e2e 0%, #16161f 100%);
    border: 2px solid transparent;
    border-radius: 16px;
    padding: 20px 12px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.character-card-vertical:hover {
    transform: translateY(-5px);
    border-color: rgba(230, 57, 70, 0.5);
    box-shadow: 0 10px 30px rgba(230, 57, 70, 0.2);
}

.character-card-vertical.selected {
    border-color: var(--accent-red);
    box-shadow: 0 0 0 2px var(--accent-red), 0 10px 30px rgba(230, 57, 70, 0.3);
}

.character-card-vertical.selected .card-selected-indicator {
    opacity: 1;
    transform: scale(1);
}

.card-selected-indicator {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 24px;
    height: 24px;
    background: var(--accent-red);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: white;
    opacity: 0;
    transform: scale(0);
    transition: all 0.3s ease;
}

.card-mark {
    position: absolute;
    top: 8px;
    left: 8px;
    font-size: 10px;
    padding: 3px 8px;
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
}

.card-mark.ptsd {
    background: rgba(230, 57, 70, 0.9);
    color: white;
}

.card-mark.infected {
    background: rgba(155, 93, 229, 0.9);
    color: white;
}

.card-mark.warning {
    background: rgba(244, 162, 97, 0.9);
    color: #1a1a1a;
}

.card-avatar {
    width: 64px;
    height: 64px;
    margin: 0 auto 12px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2a2a3e, #1e1e2e);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.character-card-vertical.selected .card-avatar {
    border-color: var(--accent-red);
    box-shadow: 0 0 20px rgba(230, 57, 70, 0.4);
}

.card-name {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 6px;
}

.card-role {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.card-stars {
    font-size: 12px;
    color: #f4a261;
    letter-spacing: 2px;
}

/* 角色详情面板 */
.character-detail-panel {
    background: linear-gradient(180deg, #1e1e2e 0%, #16161f 100%);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    overflow: hidden;
}

/* 详情头部 */
.detail-header {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 30px 40px;
    background: linear-gradient(90deg, rgba(230, 57, 70, 0.1) 0%, transparent 50%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.detail-avatar-section {
    position: relative;
}

.detail-avatar-large {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2a2a3e, #1e1e2e);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    border: 3px solid var(--accent-red);
    box-shadow: 0 0 30px rgba(230, 57, 70, 0.3);
}

.avatar-decoration {
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border: 2px solid transparent;
    border-top-color: var(--accent-red);
    border-radius: 50%;
    animation: spin 3s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.detail-title-section {
    flex: 1;
}

.detail-name {
    font-size: 32px;
    font-weight: 700;
    color: #fff;
    margin: 0;
}

.detail-tags-section {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.detail-tag {
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    font-size: 13px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 6px;
}

.detail-tag.tag-gender {
    background: rgba(69, 123, 157, 0.15);
    color: var(--accent-blue);
}

.confirm-select-btn {
    padding: 14px 32px;
    background: linear-gradient(135deg, var(--accent-red), #d62828);
    border: none;
    border-radius: 10px;
    color: white;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.confirm-select-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(230, 57, 70, 0.4);
}

.confirm-select-btn.confirming {
    transform: scale(0.95);
    opacity: 0.8;
}

/* 警告条 */
.warning-strip {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 40px;
    background: rgba(230, 57, 70, 0.15);
    border-left: 4px solid var(--accent-red);
}

.warning-icon {
    font-size: 18px;
}

.warning-text {
    font-size: 14px;
    color: var(--accent-red);
    font-weight: 500;
}

/* 详情内容网格 */
.detail-content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 0;
    padding: 30px 40px;
}

.detail-section {
    padding: 20px;
}

.detail-section.stats-section {
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.detail-section.skills-section {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.detail-section.equipment-section {
    border-right: 1px solid rgba(255, 255, 255, 0.05);
}

.section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section-icon {
    font-size: 16px;
}

/* 属性列表 */
.stats-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.stat-row {
    display: flex;
    align-items: center;
    gap: 16px;
}

.stat-label {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 80px;
    flex-shrink: 0;
}

.stat-icon {
    font-size: 18px;
    width: 28px;
    text-align: center;
}

.stat-name {
    font-size: 14px;
    color: var(--text-secondary);
}

.stat-bar-wrap {
    flex: 1;
    height: 10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 5px;
    overflow: hidden;
}

.stat-progress-bg {
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 5px;
}

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

.stat-progress-fill.red { background: linear-gradient(90deg, #e63946, #ff6b6b); }
.stat-progress-fill.yellow { background: linear-gradient(90deg, #f4a261, #e9c46a); }
.stat-progress-fill.green { background: linear-gradient(90deg, #2a9d8f, #4ecdc4); }
.stat-progress-fill.blue { background: linear-gradient(90deg, #457b9d, #64b5f6); }
.stat-progress-fill.purple { background: linear-gradient(90deg, #9b5de5, #bb86fc); }

.stat-value {
    width: 60px;
    text-align: right;
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 500;
}

/* 技能列表 */
.skills-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.skill-item {
    padding: 16px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    border-left: 3px solid;
}

.skill-item.skill-positive {
    border-left-color: var(--accent-green);
    background: rgba(42, 157, 143, 0.08);
}

.skill-item.skill-negative {
    border-left-color: var(--danger);
    background: rgba(230, 57, 70, 0.08);
}

.skill-item.skill-neutral {
    border-left-color: var(--accent-blue);
    background: rgba(69, 123, 157, 0.08);
}

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

.skill-item-icon {
    font-size: 14px;
}

.skill-item-name {
    font-size: 15px;
    font-weight: 600;
    color: #fff;
}

.skill-item-desc {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0;
}

/* 装备列表 */
.equipment-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.equipment-tag {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    font-size: 13px;
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.equipment-tag:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
}

.equipment-tag-icon {
    font-size: 18px;
}

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

/* 错误消息 */
.error-message {
    text-align: center;
    padding: 40px;
    color: var(--danger);
    font-size: 14px;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .character-cards-row {
        gap: 12px;
    }
    
    .character-card-vertical {
        width: 120px;
        padding: 16px 10px;
    }
    
    .detail-header {
        flex-wrap: wrap;
        padding: 24px;
    }
    
    .detail-content-grid {
        grid-template-columns: 1fr;
        padding: 24px;
    }
    
    .detail-section.stats-section,
    .detail-section.equipment-section {
        border-right: none;
    }
    
    .detail-section.skills-section {
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }
}

@media (max-width: 768px) {
    .header-title {
        font-size: 28px;
    }
    
    .character-card-vertical {
        width: 100px;
        padding: 12px 8px;
    }
    
    .card-avatar {
        width: 48px;
        height: 48px;
        font-size: 24px;
    }
    
    .detail-name {
        font-size: 24px;
    }
    
    .confirm-select-btn {
        width: 100%;
        margin-top: 16px;
    }
}

/* 旧版样式保留（向下兼容） */
.back-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s;
    font-size: 14px;
}

.back-btn:hover {
    background: rgba(230, 57, 70, 0.1);
    border-color: var(--accent-red);
    color: var(--text-primary);
    transform: translateX(-3px);
}

.game-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    font-size: 24px;
    animation: pulse 2s infinite;
}

.logo-text {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 4px;
    color: var(--accent-red);
    text-shadow: 0 0 20px rgba(230, 57, 70, 0.5);
}

.header-placeholder {
    width: 100px;
}

.page-title {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 8px;
    background: linear-gradient(135deg, #fff 0%, var(--accent-red) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-subtitle {
    font-size: 14px;
    color: var(--text-muted);
    letter-spacing: 4px;
}

/* 主内容区 */
.select-main {
    display: flex;
    gap: 24px;
    flex: 1;
    min-height: 0;
}

/* 左侧边栏 - 角色列表 */
.character-sidebar {
    width: 320px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.sidebar-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
}

.character-count {
    font-size: 12px;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.05);
    padding: 4px 10px;
    border-radius: 12px;
}

.character-list {
    flex: 1;
    overflow-y: auto;
    padding: 12px;
}

/* 角色小卡片 */
.character-card-mini {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.character-card-mini:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(230, 57, 70, 0.3);
    transform: translateX(5px);
}

.character-card-mini.selected {
    background: rgba(230, 57, 70, 0.1);
    border-color: var(--accent-red);
    box-shadow: 0 0 20px rgba(230, 57, 70, 0.2);
}

.character-card-mini.selected .selected-indicator {
    opacity: 1;
    transform: scale(1);
}

.mini-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--bg-tertiary), var(--bg-secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s;
}

.character-card-mini:hover .mini-avatar,
.character-card-mini.selected .mini-avatar {
    border-color: var(--accent-red);
    box-shadow: 0 0 15px rgba(230, 57, 70, 0.3);
}

.mini-info {
    flex: 1;
}

.mini-name {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 4px;
}

.mini-role {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.mini-difficulty {
    font-size: 11px;
    color: var(--warning);
    letter-spacing: 2px;
}

.selected-indicator {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%) scale(0);
    width: 24px;
    height: 24px;
    background: var(--accent-red);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    opacity: 0;
    transition: all 0.3s;
}

/* 特殊标记 */
.special-mark {
    position: absolute;
    top: 8px;
    right: 8px;
    font-size: 10px;
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: 600;
}

.special-mark.infected {
    background: rgba(230, 57, 70, 0.3);
    color: var(--danger);
}

.special-mark.ptsd {
    background: rgba(155, 93, 229, 0.3);
    color: #9b5de5;
}

.special-mark.warning {
    background: rgba(244, 162, 97, 0.3);
    color: var(--warning);
}

/* 右侧详情区 */
.character-detail {
    flex: 1;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* 空状态 */
.detail-empty {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    padding: 60px;
}

.empty-icon {
    font-size: 64px;
    margin-bottom: 20px;
    opacity: 0.5;
    animation: bounce 2s infinite;
}

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

/* 详情内容 */
.detail-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

/* 详情头部 */
.detail-hero {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 30px;
    background: linear-gradient(135deg, rgba(230, 57, 70, 0.1) 0%, transparent 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.hero-avatar {
    position: relative;
    width: 100px;
    height: 100px;
}

.hero-avatar span {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--bg-tertiary), var(--bg-secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    border: 3px solid var(--accent-red);
    box-shadow: 0 0 30px rgba(230, 57, 70, 0.4);
}

.avatar-ring {
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border: 2px solid transparent;
    border-top-color: var(--accent-red);
    border-radius: 50%;
    animation: spin 3s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.hero-info {
    flex: 1;
}

.hero-name {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 8px;
}

.hero-role {
    font-size: 16px;
    color: var(--accent-red);
    margin-bottom: 12px;
}

.hero-tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.tag {
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    font-size: 12px;
    color: var(--text-secondary);
}

.tag-gender.male {
    background: rgba(69, 123, 157, 0.2);
    color: var(--accent-blue);
}

.tag-gender.female {
    background: rgba(230, 57, 70, 0.2);
    color: var(--accent-red);
}

.hero-difficulty {
    text-align: center;
    padding: 16px 24px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
}

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

.diff-stars {
    font-size: 18px;
    color: var(--warning);
    letter-spacing: 4px;
}

/* 警告横幅 */
.warning-banner {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 30px;
    background: rgba(230, 57, 70, 0.1);
    border-left: 4px solid var(--accent-red);
    margin: 20px 30px 0;
    border-radius: 0 8px 8px 0;
}

.warning-icon {
    font-size: 20px;
}

.warning-text {
    font-size: 14px;
    color: var(--text-secondary);
}

/* 详情主体 */
.detail-body {
    flex: 1;
    padding: 30px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    overflow-y: auto;
}

.detail-panel {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    overflow: hidden;
}

.panel-title {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
}

.panel-icon {
    font-size: 18px;
}

/* 属性网格 */
.stats-grid {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.stat-box {
    display: flex;
    align-items: center;
    gap: 14px;
}

.stat-box-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    font-size: 20px;
}

.stat-box-info {
    flex: 1;
}

.stat-box-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.stat-box-name {
    font-size: 13px;
    color: var(--text-muted);
}

.stat-box-value {
    font-size: 13px;
    font-weight: 600;
}

.stat-box-value.stat-high { color: var(--accent-green); }
.stat-box-value.stat-mid { color: var(--text-secondary); }
.stat-box-value.stat-low { color: var(--danger); }

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

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

.stat-box-fill.red { background: linear-gradient(90deg, #e63946, #d62828); }
.stat-box-fill.yellow { background: linear-gradient(90deg, #e9c46a, #f4a261); }
.stat-box-fill.green { background: linear-gradient(90deg, #2a9d8f, #21867a); }
.stat-box-fill.blue { background: linear-gradient(90deg, #457b9d, #1d3557); }
.stat-box-fill.purple { background: linear-gradient(90deg, #9b5de5, #7209b7); }

/* 技能列表 */
.skills-list {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.skill-card {
    padding: 16px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    border-left: 3px solid;
}

.skill-card.skill-positive {
    border-left-color: var(--accent-green);
    background: rgba(42, 157, 143, 0.05);
}

.skill-card.skill-negative {
    border-left-color: var(--danger);
    background: rgba(230, 57, 70, 0.05);
}

.skill-card.skill-neutral {
    border-left-color: var(--accent-blue);
    background: rgba(69, 123, 157, 0.05);
}

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

.skill-icon {
    font-size: 16px;
}

.skill-name {
    font-size: 14px;
    font-weight: 600;
    flex: 1;
}

.skill-type {
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
}

.skill-desc {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* 装备网格 */
.equipment-grid {
    padding: 20px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 12px;
}

.equipment-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    transition: all 0.3s;
}

.equipment-card:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(230, 57, 70, 0.3);
    transform: translateY(-3px);
}

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

.equipment-name {
    font-size: 12px;
    color: var(--text-secondary);
    text-align: center;
}

/* 故事面板 */
.story-panel {
    grid-column: 1 / -1;
}

.story-text {
    padding: 20px;
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.8;
    text-align: justify;
}

/* 底部操作栏 */
.detail-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 30px;
    background: rgba(0, 0, 0, 0.2);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    gap: 20px;
}

.footer-tip {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-muted);
}

.confirm-btn {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 40px;
    background: linear-gradient(135deg, var(--accent-red), #d62828);
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s;
}

.confirm-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(230, 57, 70, 0.4);
}

.confirm-btn.confirming {
    transform: scale(0.95);
    opacity: 0.8;
}

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

.confirm-btn:hover .btn-glow {
    left: 100%;
}

/* 加载状态 */
.loading-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top-color: var(--accent-red);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 16px;
}

/* 错误状态 */
.error-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    color: var(--danger);
}

.error-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .select-main {
        flex-direction: column;
    }
    
    .character-sidebar {
        width: 100%;
        max-height: 300px;
    }
    
    .character-list {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .character-card-mini {
        flex: 1;
        min-width: 200px;
        margin-bottom: 0;
    }
    
    .detail-body {
        grid-template-columns: 1fr;
    }
    
    .story-panel {
        grid-column: 1;
    }
}

@media (max-width: 768px) {
    .page-title {
        font-size: 28px;
    }
    
    .header-top {
        flex-wrap: wrap;
        gap: 12px;
    }
    
    .header-placeholder {
        display: none;
    }
    
    .detail-hero {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-tags {
        justify-content: center;
    }
    
    .detail-footer {
        flex-direction: column;
        text-align: center;
    }
    
    .confirm-btn {
        width: 100%;
        justify-content: center;
    }
}
