/* ============================================
   狱国争霸 - 游戏UI样式
   风格：深色古风 + 金色点缀
   ============================================ */

/* ========== 基础重置 ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

html, body {
    width: 100%;
    max-width: 100%;
    min-height: 100%;
    overflow-x: hidden;
    font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
    font-size: 14px;
    color: #f5deb3;
    background: #1a0f08;
    overflow-x: hidden;
}

body {
    background: linear-gradient(135deg, #0d0705 0%, #1a0f08 50%, #2d1810 100%);
}

/* ========== 游戏容器 ========== */
.game-container {
    width: 100%;
    max-width: 420px;
    min-height: 100vh;
    margin: 0 auto;
    background: linear-gradient(180deg, #1a0f08 0%, #2d1810 50%, #1a0f08 100%);
    position: relative;
    border-left: 2px solid #8b5a2b;
    border-right: 2px solid #8b5a2b;
}

/* ========== 战斗主页特殊布局 ========== */
.battle-home {
    background: 
        radial-gradient(ellipse at center top, rgba(251, 191, 36, 0.1) 0%, transparent 50%),
        linear-gradient(180deg, #0d0705 0%, #1a0f08 30%, #2d1810 70%, #1a0f08 100%);
}

/* ========== 顶部栏 ========== */
.battle-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 12px 15px;
    background: linear-gradient(180deg, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.4) 100%);
    border-bottom: 1px solid rgba(139, 90, 43, 0.5);
    position: relative;
    z-index: 10;
}

.top-left, .top-right {
    display: flex;
    flex-direction: column;
}

/* 用户信息紧凑版 */
.user-info-compact {
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-avatar-lg {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #8b5a2b, #d4a574);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    border: 2px solid #fbbf24;
    box-shadow: 0 0 10px rgba(251, 191, 36, 0.5);
}

.user-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.user-name-lg {
    font-size: 14px;
    font-weight: bold;
    color: #fbbf24;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
}

.user-resources {
    display: flex;
    gap: 12px;
}

.res-item {
    display: flex;
    align-items: center;
    gap: 4px;
}

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

.res-num {
    font-size: 13px;
    font-weight: bold;
    color: #fff;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
}

/* 赛季信息 */
.season-info {
    text-align: right;
}

.season-level {
    font-size: 12px;
    color: #fbbf24;
    font-weight: bold;
    margin-bottom: 4px;
}

.season-exp-bar {
    width: 100px;
    height: 8px;
    background: rgba(0,0,0,0.5);
    border-radius: 4px;
    border: 1px solid #8b5a2b;
    overflow: hidden;
}

.season-exp-fill {
    height: 100%;
    background: linear-gradient(90deg, #fbbf24, #f59e0b);
    border-radius: 3px;
    transition: width 0.3s ease;
}

/* ========== 侧边按钮 ========== */
.side-buttons {
    position: absolute;
    top: 80px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 5;
}

.left-side {
    left: 10px;
}

.right-side {
    right: 10px;
}

.side-btn {
    width: 55px;
    height: 55px;
    background: linear-gradient(135deg, #3d2817, #5c3a21);
    border: 2px solid #8b5a2b;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    cursor: pointer;
    position: relative;
    box-shadow: 0 2px 8px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.1);
    transition: all 0.2s ease;
}

.side-btn:active {
    transform: scale(0.95);
    box-shadow: 0 1px 4px rgba(0,0,0,0.5);
}

.side-btn.highlight {
    border-color: #fbbf24;
    box-shadow: 0 0 15px rgba(251, 191, 36, 0.4), 0 2px 8px rgba(0,0,0,0.5);
}

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

.side-btn-text {
    font-size: 10px;
    color: #f5deb3;
    font-weight: bold;
}

.side-btn-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: #fff;
    font-size: 9px;
    padding: 2px 5px;
    border-radius: 8px;
    font-weight: bold;
    border: 1px solid #fff;
}

/* ========== 中间主区域 ========== */
.battle-main-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 20px 60px 30px;
    position: relative;
    z-index: 2;
}

/* 段位大展示 */
.rank-display {
    text-align: center;
    margin-top: 30px;
}

.rank-big-icon {
    font-size: 80px;
    margin-bottom: 10px;
    filter: drop-shadow(0 0 20px rgba(251, 191, 36, 0.6));
    animation: rankGlow 2s ease-in-out infinite;
}

@keyframes rankGlow {
    0%, 100% { filter: drop-shadow(0 0 20px rgba(251, 191, 36, 0.6)); }
    50% { filter: drop-shadow(0 0 30px rgba(251, 191, 36, 0.9)); }
}

.rank-name-big {
    font-size: 28px;
    font-weight: bold;
    color: #fbbf24;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8), 0 0 20px rgba(251, 191, 36, 0.5);
    margin-bottom: 8px;
}

.rank-stars-big {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    margin-bottom: 15px;
}

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

.star-count {
    font-size: 18px;
    font-weight: bold;
    color: #fff;
}

.rank-progress-bar {
    width: 200px;
    height: 12px;
    background: rgba(0,0,0,0.6);
    border-radius: 6px;
    border: 2px solid #8b5a2b;
    overflow: hidden;
    margin: 0 auto;
}

.rank-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #fbbf24, #f59e0b, #fbbf24);
    border-radius: 4px;
    transition: width 0.5s ease;
}

/* 中间四个小图标横排 */
.middle-icons-row {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.mid-icon-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    position: relative;
    padding: 8px;
    border-radius: 10px;
    transition: all 0.2s ease;
}

.mid-icon-btn:active {
    transform: scale(0.9);
}

.mid-icon {
    font-size: 28px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5));
}

.mid-icon-text {
    font-size: 11px;
    color: #f5deb3;
    font-weight: bold;
}

.mid-icon-dot {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 8px;
    height: 8px;
    background: #ef4444;
    border-radius: 50%;
    border: 1px solid #fff;
}

/* 战斗按钮行 */
.battle-actions-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-top: auto;
    margin-bottom: 10px;
}

.battle-btn-secondary {
    width: 80px;
    height: 60px;
    background: linear-gradient(180deg, #5c3a21, #3d2817);
    border: 2px solid #8b5a2b;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    cursor: pointer;
    color: #f5deb3;
    font-weight: bold;
    box-shadow: 0 4px 8px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.1);
    transition: all 0.2s ease;
}

.battle-btn-secondary:active {
    transform: translateY(2px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.battle-btn-icon {
    font-size: 20px;
}

.battle-btn-text {
    font-size: 12px;
}

.battle-btn-primary {
    width: 140px;
    height: 75px;
    background: linear-gradient(180deg, #fbbf24, #d97706);
    border: 3px solid #fef3c7;
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    cursor: pointer;
    color: #451a03;
    font-weight: bold;
    box-shadow: 
        0 6px 12px rgba(0,0,0,0.5),
        0 0 20px rgba(251, 191, 36, 0.4),
        inset 0 2px 0 rgba(255,255,255,0.3);
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.battle-btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: btnShine 3s ease-in-out infinite;
}

@keyframes btnShine {
    0% { left: -100%; }
    50%, 100% { left: 100%; }
}

.battle-btn-primary:active {
    transform: translateY(3px);
    box-shadow: 
        0 2px 4px rgba(0,0,0,0.5),
        0 0 10px rgba(251, 191, 36, 0.4),
        inset 0 2px 0 rgba(255,255,255,0.3);
}

.battle-btn-icon-big {
    font-size: 26px;
}

.battle-btn-text-big {
    font-size: 16px;
}

.battle-btn-sub {
    font-size: 10px;
    opacity: 0.8;
}

/* ========== 底部导航栏 ========== */
.bottom-nav {
    display: flex;
    background: linear-gradient(180deg, #3d2817, #1a0f08);
    border-top: 2px solid #8b5a2b;
    padding: 8px 0;
    padding-bottom: calc(8px + env(safe-area-inset-bottom));
    position: relative;
    z-index: 20;
}

.nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    text-decoration: none;
    color: #8b7355;
    padding: 5px 0;
    transition: all 0.2s ease;
    position: relative;
}

.nav-item.active {
    color: #fbbf24;
}

.nav-item.active::before {
    content: '';
    position: absolute;
    top: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 3px;
    background: #fbbf24;
    border-radius: 0 0 3px 3px;
    box-shadow: 0 0 10px rgba(251, 191, 36, 0.6);
}

.nav-icon {
    font-size: 22px;
    transition: transform 0.2s ease;
}

.nav-item.active .nav-icon {
    transform: scale(1.1);
    filter: drop-shadow(0 0 5px rgba(251, 191, 36, 0.6));
}

.nav-text {
    font-size: 10px;
    font-weight: bold;
}

/* ========== 通用页面样式 ========== */
.page-header {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    background: linear-gradient(180deg, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.4) 100%);
    border-bottom: 1px solid rgba(139, 90, 43, 0.5);
    position: relative;
}

.back-btn {
    width: 32px;
    height: 32px;
    background: rgba(139, 90, 43, 0.5);
    border: 1px solid #8b5a2b;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 16px;
    color: #f5deb3;
    margin-right: 10px;
}

.page-title {
    flex: 1;
    text-align: center;
    font-size: 18px;
    font-weight: bold;
    color: #fbbf24;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
}

.page-content {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
    -webkit-overflow-scrolling: touch;
}

/* ========== 卡片样式 ========== */
.card {
    background: linear-gradient(180deg, #3d2817, #2d1810);
    border: 2px solid #8b5a2b;
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 15px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.05);
}

.card-title {
    font-size: 16px;
    font-weight: bold;
    color: #fbbf24;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(139, 90, 43, 0.5);
}

/* ========== 按钮样式 ========== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.btn:active {
    transform: translateY(1px);
}

.btn-primary {
    background: linear-gradient(180deg, #fbbf24, #d97706);
    color: #451a03;
    border: 2px solid #fef3c7;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.3);
}

.btn-secondary {
    background: linear-gradient(180deg, #5c3a21, #3d2817);
    color: #f5deb3;
    border: 2px solid #8b5a2b;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.1);
}

.btn-danger {
    background: linear-gradient(180deg, #ef4444, #dc2626);
    color: #fff;
    border: 2px solid #fca5a5;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.2);
}

.btn-large {
    padding: 14px 30px;
    font-size: 16px;
}

.btn-block {
    display: flex;
    width: 100%;
}

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

/* ========== 品质颜色 ========== */
.quality-white { color: #9ca3af; border-color: #9ca3af; }
.quality-green { color: #22c55e; border-color: #22c55e; }
.quality-blue { color: #3b82f6; border-color: #3b82f6; }
.quality-purple { color: #a855f7; border-color: #a855f7; }
.quality-gold { color: #fbbf24; border-color: #fbbf24; }

/* 品质边框发光效果 */
.quality-gold-border {
    border: 2px solid #fbbf24;
    box-shadow: 0 0 15px rgba(251, 191, 36, 0.4);
    animation: goldGlow 2s ease-in-out infinite;
}

@keyframes goldGlow {
    0%, 100% { box-shadow: 0 0 15px rgba(251, 191, 36, 0.4); }
    50% { box-shadow: 0 0 25px rgba(251, 191, 36, 0.7); }
}

.quality-purple-border {
    border: 2px solid #a855f7;
    box-shadow: 0 0 10px rgba(168, 85, 247, 0.3);
}

.quality-blue-border {
    border: 2px solid #3b82f6;
    box-shadow: 0 0 8px rgba(59, 130, 246, 0.3);
}

.quality-green-border {
    border: 2px solid #22c55e;
}

.quality-white-border {
    border: 2px solid #9ca3af;
}

/* ========== 兵种卡片 ========== */
.soldier-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.soldier-card {
    background: linear-gradient(180deg, #3d2817, #2d1810);
    border: 2px solid #8b5a2b;
    border-radius: 10px;
    padding: 10px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.soldier-card:active {
    transform: scale(0.95);
}

.soldier-avatar-frame {
    width: 70px;
    height: 70px;
    margin: 0 auto 8px;
    border-radius: 50%;
    background: linear-gradient(135deg, #5c3a21, #3d2817);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    border: 3px solid #8b5a2b;
    overflow: hidden;
}

.soldier-avatar-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.soldier-name {
    font-size: 12px;
    font-weight: bold;
    color: #f5deb3;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.soldier-level {
    font-size: 11px;
    color: #fbbf24;
}

.soldier-stars {
    font-size: 10px;
    color: #fbbf24;
    margin-top: 2px;
}

/* ========== 标签页 ========== */
.tab-bar {
    display: flex;
    background: rgba(0,0,0,0.3);
    border-radius: 8px;
    padding: 4px;
    margin-bottom: 15px;
}

.tab-item {
    flex: 1;
    padding: 8px 12px;
    text-align: center;
    font-size: 13px;
    font-weight: bold;
    color: #8b7355;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.tab-item.active {
    background: linear-gradient(180deg, #fbbf24, #d97706);
    color: #451a03;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

/* ========== 表单样式 ========== */
.form-group {
    margin-bottom: 15px;
}

.form-label {
    display: block;
    font-size: 13px;
    color: #f5deb3;
    margin-bottom: 6px;
    font-weight: bold;
}

.form-input {
    width: 100%;
    padding: 10px 12px;
    background: rgba(0,0,0,0.4);
    border: 2px solid #8b5a2b;
    border-radius: 8px;
    color: #f5deb3;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease;
}

.form-input:focus {
    border-color: #fbbf24;
}

.form-input::placeholder {
    color: #6b5b47;
}

/* ========== Toast提示 ========== */
.toast {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0,0,0,0.9);
    color: #fff;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    z-index: 9999;
    animation: toastIn 0.3s ease;
    border: 1px solid #8b5a2b;
}

@keyframes toastIn {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.8);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

/* ========== 弹窗 ========== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background: linear-gradient(180deg, #3d2817, #2d1810);
    border: 2px solid #8b5a2b;
    border-radius: 16px;
    width: 90%;
    max-width: 360px;
    max-height: 80vh;
    overflow-y: auto;
    animation: modalIn 0.3s ease;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}

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

.modal-header {
    padding: 15px;
    border-bottom: 1px solid rgba(139, 90, 43, 0.5);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-title {
    font-size: 16px;
    font-weight: bold;
    color: #fbbf24;
}

.modal-close {
    width: 28px;
    height: 28px;
    background: rgba(139, 90, 43, 0.5);
    border: 1px solid #8b5a2b;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #f5deb3;
    font-size: 14px;
}

.modal-body {
    padding: 15px;
}

.modal-footer {
    padding: 15px;
    border-top: 1px solid rgba(139, 90, 43, 0.5);
    display: flex;
    gap: 10px;
}

.modal-footer .btn {
    flex: 1;
}

/* ========== 兵种详情页 ========== */
.soldier-detail {
    text-align: center;
}

.soldier-detail-img {
    width: 200px;
    height: 280px;
    margin: 0 auto 15px;
    border-radius: 12px;
    background: linear-gradient(135deg, #5c3a21, #3d2817);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 100px;
    border: 3px solid #8b5a2b;
    overflow: hidden;
    position: relative;
}

.soldier-detail-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.soldier-detail-name {
    font-size: 22px;
    font-weight: bold;
    color: #fbbf24;
    margin-bottom: 8px;
}

.soldier-detail-stars {
    font-size: 18px;
    color: #fbbf24;
    margin-bottom: 15px;
}

.soldier-attrs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 15px;
}

.attr-item {
    background: rgba(0,0,0,0.3);
    padding: 10px;
    border-radius: 8px;
    border: 1px solid rgba(139, 90, 43, 0.5);
}

.attr-label {
    font-size: 11px;
    color: #8b7355;
    margin-bottom: 4px;
}

.attr-value {
    font-size: 16px;
    font-weight: bold;
    color: #f5deb3;
}

.skill-list {
    margin-bottom: 15px;
}

.skill-item {
    display: flex;
    gap: 10px;
    padding: 10px;
    background: rgba(0,0,0,0.2);
    border-radius: 8px;
    margin-bottom: 8px;
    border: 1px solid rgba(139, 90, 43, 0.3);
}

.skill-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #fbbf24, #d97706);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.skill-info {
    flex: 1;
}

.skill-name {
    font-size: 13px;
    font-weight: bold;
    color: #fbbf24;
    margin-bottom: 3px;
}

.skill-desc {
    font-size: 11px;
    color: #8b7355;
    line-height: 1.4;
}

/* ========== 招募页面 ========== */
.recruit-banner {
    background: linear-gradient(135deg, #7c2d12, #431407);
    border: 2px solid #fbbf24;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
}

.recruit-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(251, 191, 36, 0.1) 0%, transparent 70%);
    animation: recruitPulse 3s ease-in-out infinite;
}

@keyframes recruitPulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 1; }
}

.recruit-title {
    font-size: 20px;
    font-weight: bold;
    color: #fbbf24;
    margin-bottom: 8px;
    position: relative;
    z-index: 1;
}

.recruit-subtitle {
    font-size: 12px;
    color: #f5deb3;
    position: relative;
    z-index: 1;
}

.recruit-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 20px;
}

.recruit-btn {
    flex: 1;
    padding: 15px;
    background: linear-gradient(180deg, #fbbf24, #d97706);
    border: 2px solid #fef3c7;
    border-radius: 12px;
    color: #451a03;
    font-weight: bold;
    cursor: pointer;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    transition: all 0.2s ease;
}

.recruit-btn:active {
    transform: translateY(2px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.recruit-btn-cost {
    font-size: 12px;
    margin-top: 4px;
    opacity: 0.8;
}

/* ========== 商城页面 ========== */
.shop-item {
    display: flex;
    align-items: center;
    padding: 12px;
    background: linear-gradient(180deg, #3d2817, #2d1810);
    border: 2px solid #8b5a2b;
    border-radius: 10px;
    margin-bottom: 10px;
}

.shop-item-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #5c3a21, #3d2817);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin-right: 12px;
    border: 2px solid #8b5a2b;
}

.shop-item-info {
    flex: 1;
}

.shop-item-name {
    font-size: 14px;
    font-weight: bold;
    color: #f5deb3;
    margin-bottom: 4px;
}

.shop-item-desc {
    font-size: 11px;
    color: #8b7355;
}

.shop-item-buy {
    padding: 8px 15px;
    background: linear-gradient(180deg, #fbbf24, #d97706);
    border: 2px solid #fef3c7;
    border-radius: 8px;
    color: #451a03;
    font-size: 12px;
    font-weight: bold;
    cursor: pointer;
}

/* ========== 天赋页面 ========== */
.talent-tree {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 0;
}

.talent-node {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #5c3a21, #3d2817);
    border: 3px solid #8b5a2b;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 5px;
    position: relative;
}

.talent-node.unlocked {
    border-color: #fbbf24;
    box-shadow: 0 0 15px rgba(251, 191, 36, 0.5);
    background: linear-gradient(135deg, #fbbf24, #d97706);
}

.talent-node-icon {
    font-size: 22px;
}

.talent-node-level {
    font-size: 10px;
    font-weight: bold;
    color: #f5deb3;
}

.talent-node.unlocked .talent-node-level {
    color: #451a03;
}

.talent-line {
    width: 3px;
    height: 20px;
    background: #8b5a2b;
    margin-bottom: 5px;
}

.talent-line.active {
    background: #fbbf24;
    box-shadow: 0 0 5px rgba(251, 191, 36, 0.5);
}

/* ========== 登录注册页面 ========== */
.auth-container {
    width: 100%;
    max-width: 420px;
    height: 100vh;
    max-height: 900px;
    background: 
        radial-gradient(ellipse at center top, rgba(251, 191, 36, 0.15) 0%, transparent 50%),
        linear-gradient(180deg, #0d0705 0%, #1a0f08 50%, #2d1810 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px;
    border-left: 2px solid #8b5a2b;
    border-right: 2px solid #8b5a2b;
}

.auth-logo {
    font-size: 60px;
    margin-bottom: 10px;
    filter: drop-shadow(0 0 20px rgba(251, 191, 36, 0.6));
}

.auth-title {
    font-size: 28px;
    font-weight: bold;
    color: #fbbf24;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8), 0 0 20px rgba(251, 191, 36, 0.5);
    margin-bottom: 5px;
}

.auth-subtitle {
    font-size: 14px;
    color: #8b7355;
    margin-bottom: 40px;
}

.auth-form {
    width: 100%;
    max-width: 320px;
}

.auth-form .form-group {
    margin-bottom: 20px;
}

.auth-form .btn {
    width: 100%;
    padding: 14px;
    font-size: 16px;
    margin-top: 10px;
}

.auth-links {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
    font-size: 13px;
}

.auth-links a {
    color: #fbbf24;
    text-decoration: none;
}

.auth-guest {
    margin-top: 30px;
    text-align: center;
}

.auth-guest a {
    color: #8b7355;
    text-decoration: none;
    font-size: 13px;
}

/* ========== 邮箱页面 ========== */
.mail-item {
    display: flex;
    padding: 12px;
    background: linear-gradient(180deg, #3d2817, #2d1810);
    border: 2px solid #8b5a2b;
    border-radius: 10px;
    margin-bottom: 10px;
    cursor: pointer;
    position: relative;
}

.mail-item.unread {
    border-color: #fbbf24;
    background: linear-gradient(180deg, #4a341f, #3d2817);
}

.mail-icon {
    font-size: 28px;
    margin-right: 12px;
    flex-shrink: 0;
}

.mail-content {
    flex: 1;
    min-width: 0;
}

.mail-title {
    font-size: 14px;
    font-weight: bold;
    color: #f5deb3;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mail-item.unread .mail-title {
    color: #fbbf24;
}

.mail-summary {
    font-size: 11px;
    color: #8b7355;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mail-time {
    font-size: 10px;
    color: #6b5b47;
    margin-top: 4px;
}

.mail-red-dot {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 8px;
    height: 8px;
    background: #ef4444;
    border-radius: 50%;
}

/* ========== 工会页面 ========== */
.guild-header {
    text-align: center;
    padding: 20px;
    background: linear-gradient(135deg, #7c2d12, #431407);
    border: 2px solid #fbbf24;
    border-radius: 12px;
    margin-bottom: 15px;
}

.guild-name {
    font-size: 20px;
    font-weight: bold;
    color: #fbbf24;
    margin-bottom: 8px;
}

.guild-notice {
    font-size: 12px;
    color: #f5deb3;
    line-height: 1.5;
}

.guild-stats {
    display: flex;
    justify-content: space-around;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(139, 90, 43, 0.5);
}

.guild-stat-item {
    text-align: center;
}

.guild-stat-value {
    font-size: 18px;
    font-weight: bold;
    color: #fbbf24;
}

.guild-stat-label {
    font-size: 11px;
    color: #8b7355;
    margin-top: 2px;
}

/* ========== 战令页面 ========== */
.battlepass-header {
    text-align: center;
    padding: 20px;
    background: linear-gradient(135deg, #1e3a5f, #0f1f3d);
    border: 2px solid #3b82f6;
    border-radius: 12px;
    margin-bottom: 15px;
}

.battlepass-level {
    font-size: 32px;
    font-weight: bold;
    color: #60a5fa;
    margin-bottom: 8px;
}

.battlepass-exp-bar {
    height: 10px;
    background: rgba(0,0,0,0.5);
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 8px;
}

.battlepass-exp-fill {
    height: 100%;
    background: linear-gradient(90deg, #3b82f6, #60a5fa);
    border-radius: 5px;
}

.battlepass-exp-text {
    font-size: 11px;
    color: #93c5fd;
}

/* ========== 全局悬浮聊天窗口 ========== */
.chat-float-btn {
    position: fixed;
    right: 15px;
    bottom: 80px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #fbbf24, #d97706);
    border: 2px solid #fef3c7;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    cursor: pointer;
    z-index: 100;
    box-shadow: 0 4px 12px rgba(0,0,0,0.4), 0 0 15px rgba(251, 191, 36, 0.4);
    transition: all 0.2s ease;
}

.chat-float-btn:active {
    transform: scale(0.9);
}

.chat-float-badge {
    position: absolute;
    top: -3px;
    right: -3px;
    min-width: 18px;
    height: 18px;
    background: #ef4444;
    color: #fff;
    font-size: 10px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
    border: 2px solid #fff;
    font-weight: bold;
}

.chat-window {
    position: fixed;
    right: 10px;
    bottom: 130px;
    width: 220px;
    max-width: 70vw;
    height: 260px;
    max-height: 50vh;
    background: linear-gradient(180deg, #3d2817, #2d1810);
    border: 2px solid #8b5a2b;
    border-radius: 10px;
    z-index: 101;
    display: none;
    flex-direction: column;
    box-shadow: 0 6px 20px rgba(0,0,0,0.5);
    overflow: hidden;
}

.chat-window.open {
    display: flex;
    animation: chatSlideIn 0.3s ease;
}

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

.chat-header {
    padding: 6px 10px;
    background: linear-gradient(180deg, #5c3a21, #3d2817);
    border-bottom: 1px solid #8b5a2b;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
}

.chat-tabs {
    display: flex;
    gap: 6px;
}

.chat-tab {
    font-size: 11px;
    color: #8b7355;
    cursor: pointer;
    padding: 3px 6px;
    border-radius: 4px;
    font-weight: bold;
}

.chat-tab.active {
    color: #fbbf24;
    background: rgba(251, 191, 36, 0.1);
}

.chat-close {
    font-size: 14px;
    color: #8b7355;
    cursor: pointer;
    padding: 1px 4px;
    line-height: 1;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 8px;
    -webkit-overflow-scrolling: touch;
}

.chat-msg {
    margin-bottom: 6px;
    font-size: 11px;
    line-height: 1.3;
}

.chat-msg-user {
    color: #fbbf24;
    font-weight: bold;
    margin-right: 3px;
    font-size: 10px;
}

.chat-msg-content {
    color: #f5deb3;
    word-break: break-all;
}

.chat-input-area {
    padding: 6px 8px;
    border-top: 1px solid #8b5a2b;
    display: flex;
    gap: 6px;
    flex-shrink: 0;
}

.chat-input {
    flex: 1;
    padding: 6px 8px;
    background: rgba(0,0,0,0.4);
    border: 1px solid #8b5a2b;
    border-radius: 4px;
    color: #f5deb3;
    font-size: 11px;
    outline: none;
    height: 28px;
}

.chat-send-btn {
    padding: 0 10px;
    background: linear-gradient(180deg, #fbbf24, #d97706);
    border: none;
    border-radius: 4px;
    color: #451a03;
    font-size: 11px;
    font-weight: bold;
    cursor: pointer;
    height: 28px;
}

/* ========== 兵种特效动画 ========== */
.soldier-card.quality-gold-border {
    animation: soldierFloat 3s ease-in-out infinite;
}

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

/* 升级成功动画 */
.level-up-effect {
    animation: levelUpFlash 0.5s ease;
}

@keyframes levelUpFlash {
    0% { filter: brightness(1); }
    50% { filter: brightness(2); }
    100% { filter: brightness(1); }
}

/* 数字跳动动画 */
.number-bounce {
    animation: numberBounce 0.3s ease;
}

@keyframes numberBounce {
    0% { transform: scale(1); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

/* ========== 无障碍支持 ========== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

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

::-webkit-scrollbar-track {
    background: rgba(0,0,0,0.2);
}

::-webkit-scrollbar-thumb {
    background: #8b5a2b;
    border-radius: 2px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a0623a;
}

/* ========================================
   战斗主页 - 新版布局（严格对齐参考图）
   ======================================== */

.battle-page {
    margin: 0;
    padding: 0;
    background: linear-gradient(180deg, #1a0f08 0%, #2d1810 50%, #1a0f08 100%);
    min-height: 100vh;
    font-family: 'Microsoft YaHei', sans-serif;
    color: #f5deb3;
    overflow-x: hidden;
}

.game-container {
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
    min-height: 100vh;
    position: relative;
    padding-bottom: 70px;
    box-sizing: border-box;
}

/* ---------- 1. 最顶部状态栏 ---------- */
.top-status-bar {
    height: 44px;
    background: linear-gradient(180deg, #3d2817 0%, #2a1a0f 100%);
    border-bottom: 2px solid #5c3a1e;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 10px;
    position: relative;
    z-index: 100;
}

.status-left {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
}

.user-avatar-small {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #8b5a2b 0%, #5c3a1e 100%);
    border: 2px solid #d4a574;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    cursor: pointer;
    flex-shrink: 0;
}

.user-name-text {
    font-size: 12px;
    color: #f5deb3;
    font-weight: bold;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 60px;
    flex-shrink: 0;
}

.status-resources {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
}

.status-res-item {
    display: flex;
    align-items: center;
    gap: 3px;
    background: rgba(0, 0, 0, 0.3);
    padding: 3px 8px;
    border-radius: 12px;
    border: 1px solid #5c3a1e;
}

.res-icon-small {
    font-size: 14px;
}

.res-num-small {
    font-size: 12px;
    color: #fbbf24;
    font-weight: bold;
    min-width: 30px;
    text-align: right;
}

.status-right {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.status-icon-btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid #5c3a1e;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    cursor: pointer;
    color: #d4a574;
}

/* ---------- 2. 赛季等级条 ---------- */
.season-bar {
    height: 36px;
    background: linear-gradient(90deg, #2d1810 0%, #3d2817 50%, #2d1810 100%);
    border-bottom: 1px solid #5c3a1e;
    display: flex;
    align-items: center;
    padding: 0 12px;
    gap: 10px;
}

.season-bar-left {
    flex-shrink: 0;
}

.season-title {
    font-size: 11px;
    color: #d4a574;
    font-weight: bold;
}

.season-bar-center {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
}

.season-level-num {
    font-size: 12px;
    color: #fbbf24;
    font-weight: bold;
    flex-shrink: 0;
}

.season-exp-bar-wrap {
    flex: 1;
    height: 8px;
    background: #1a0f08;
    border-radius: 4px;
    border: 1px solid #5c3a1e;
    overflow: hidden;
}

.season-exp-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #fbbf24 0%, #f59e0b 100%);
    border-radius: 3px;
    transition: width 0.3s ease;
}

.season-bar-right {
    flex-shrink: 0;
}

.season-claim-btn {
    display: flex;
    align-items: center;
    gap: 3px;
    background: linear-gradient(180deg, #fbbf24 0%, #d97706 100%);
    padding: 4px 10px;
    border-radius: 12px;
    border: 1px solid #92400e;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.claim-icon {
    font-size: 12px;
}

.claim-text {
    font-size: 11px;
    color: #7c2d12;
    font-weight: bold;
}

/* ---------- 3. 中间主区域 + 左右侧按钮 ---------- */
.main-content-area {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 15px 5px;
    min-height: 280px;
    position: relative;
}

.side-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 55px;
    flex-shrink: 0;
    padding-top: 20px;
}

.side-left {
    align-items: flex-start;
    padding-left: 5px;
}

.side-right {
    align-items: flex-end;
    padding-right: 5px;
}

.side-btn-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    position: relative;
}

.side-btn-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: linear-gradient(180deg, #5c3a1e 0%, #3d2817 100%);
    border: 2px solid #8b5a2b;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.4);
}

.side-btn-label {
    font-size: 10px;
    color: #d4a574;
    font-weight: bold;
    text-align: center;
}

.side-btn-hot .side-btn-icon {
    background: linear-gradient(180deg, #dc2626 0%, #991b1b 100%);
    border-color: #fca5a5;
}

.hot-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ff4444;
    color: white;
    font-size: 8px;
    padding: 1px 4px;
    border-radius: 6px;
    font-weight: bold;
}

/* ---------- 中间大区域 ---------- */
.center-main-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0 10px;
}

.big-dragon-icon {
    font-size: 100px;
    line-height: 1;
    margin-bottom: 10px;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.5));
    animation: dragonFloat 3s ease-in-out infinite;
}

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

.rank-name-large {
    font-size: 28px;
    font-weight: bold;
    color: #fbbf24;
    text-shadow: 0 2px 4px rgba(0,0,0,0.8), 0 0 20px rgba(251, 191, 36, 0.3);
    margin-bottom: 8px;
    letter-spacing: 4px;
}

.rank-stars-display {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 12px;
}

.star-icon-big {
    font-size: 22px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5));
}

.star-count-text {
    font-size: 18px;
    color: #fbbf24;
    font-weight: bold;
}

.rank-progress-wrap {
    width: 100%;
    max-width: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.rank-progress-bar {
    width: 100%;
    height: 10px;
    background: #1a0f08;
    border-radius: 5px;
    border: 2px solid #5c3a1e;
    overflow: hidden;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.5);
}

.rank-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #fbbf24 0%, #f59e0b 50%, #fbbf24 100%);
    border-radius: 3px;
    box-shadow: 0 0 10px rgba(251, 191, 36, 0.5);
    transition: width 0.5s ease;
}

.rank-progress-text {
    font-size: 11px;
    color: #d4a574;
}

/* ---------- 4. 中间下方四个小图标横排 ---------- */
.middle-icons-row {
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 10px 20px;
    margin: 10px 0;
}

.mid-icon-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    position: relative;
}

.mid-icon {
    font-size: 26px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5));
}

.mid-icon-label {
    font-size: 11px;
    color: #d4a574;
    font-weight: bold;
}

.red-dot {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 8px;
    height: 8px;
    background: #ff4444;
    border-radius: 50%;
    border: 1px solid #fff;
}

/* ---------- 5. 底部操作区三个按钮 ---------- */
.bottom-action-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
}

.action-btn {
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-family: inherit;
    transition: all 0.2s ease;
}

.action-btn:active {
    transform: scale(0.95);
}

.action-btn-small {
    width: 70px;
    height: 60px;
    border-radius: 12px;
    background: linear-gradient(180deg, #5c3a1e 0%, #3d2817 100%);
    border: 2px solid #8b5a2b;
    gap: 2px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.4);
}

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

.action-btn-text {
    font-size: 12px;
    color: #f5deb3;
    font-weight: bold;
}

.action-btn-large {
    width: 140px;
    height: 75px;
    border-radius: 15px;
    background: linear-gradient(180deg, #fbbf24 0%, #d97706 50%, #b45309 100%);
    border: 3px solid #92400e;
    gap: 2px;
    box-shadow: 0 6px 12px rgba(0,0,0,0.5), inset 0 2px 4px rgba(255,255,255,0.3);
    position: relative;
}

.action-btn-large::before {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    right: 3px;
    height: 40%;
    background: linear-gradient(180deg, rgba(255,255,255,0.3) 0%, transparent 100%);
    border-radius: 12px 12px 0 0;
    pointer-events: none;
}

.action-btn-icon-large {
    font-size: 26px;
    position: relative;
    z-index: 1;
}

.action-btn-text-large {
    font-size: 16px;
    color: #7c2d12;
    font-weight: bold;
    position: relative;
    z-index: 1;
}

.action-btn-sub-text {
    font-size: 10px;
    color: #92400e;
    position: relative;
    z-index: 1;
}

/* ---------- 6. 最底部导航栏 ---------- */
.bottom-nav-bar {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 420px;
    height: 60px;
    background: linear-gradient(180deg, #3d2817 0%, #2a1a0f 100%);
    border-top: 2px solid #5c3a1e;
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 200;
    padding-bottom: env(safe-area-inset-bottom);
}

.nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    text-decoration: none;
    color: #8b5a2b;
    cursor: pointer;
    position: relative;
    height: 100%;
    transition: all 0.2s ease;
}

.nav-icon {
    font-size: 22px;
    transition: all 0.2s ease;
}

.nav-label {
    font-size: 10px;
    font-weight: bold;
    transition: all 0.2s ease;
}

.nav-item.nav-active {
    color: #fbbf24;
}

.nav-item.nav-active .nav-icon {
    transform: scale(1.1);
    filter: drop-shadow(0 0 6px rgba(251, 191, 36, 0.6));
}

.nav-item.nav-active .nav-label {
    color: #fbbf24;
}

.nav-indicator {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 3px;
    background: linear-gradient(90deg, transparent 0%, #fbbf24 50%, transparent 100%);
    border-radius: 0 0 3px 3px;
}

/* ---------- 用户菜单弹窗 ---------- */
.user-menu-popup {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 50px 10px;
    z-index: 1000;
}

.popup-content {
    background: linear-gradient(180deg, #3d2817 0%, #2a1a0f 100%);
    border: 2px solid #8b5a2b;
    border-radius: 12px;
    min-width: 150px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0,0,0,0.6);
}

.popup-item {
    padding: 12px 16px;
    font-size: 14px;
    color: #f5deb3;
    cursor: pointer;
    border-bottom: 1px solid #5c3a1e;
    display: flex;
    align-items: center;
    gap: 10px;
}

.popup-item:last-child {
    border-bottom: none;
}

.popup-item:active {
    background: rgba(251, 191, 36, 0.1);
}

.popup-cancel {
    color: #fbbf24;
    text-align: center;
    justify-content: center;
    font-weight: bold;
}

/* 响应式适配 */
@media (max-width: 375px) {
    .big-dragon-icon {
        font-size: 80px;
    }
    .rank-name-large {
        font-size: 24px;
    }
    .action-btn-large {
        width: 120px;
        height: 65px;
    }
}

@media (min-width: 420px) {
    .game-container {
        border-left: 1px solid #5c3a1e;
        border-right: 1px solid #5c3a1e;
    }
}

/* ========== 兵种列表页 ========== */
.soldiers-list-page {
    padding: 10px;
    padding-bottom: 80px;
}

.soldier-category-tabs {
    display: flex;
    gap: 5px;
    margin-bottom: 15px;
    background: rgba(0, 0, 0, 0.3);
    padding: 5px;
    border-radius: 8px;
}

.cat-tab {
    flex: 1;
    text-align: center;
    padding: 8px 5px;
    font-size: 13px;
    color: #9ca3af;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.cat-tab.active {
    background: linear-gradient(180deg, #d4a017, #b8860b);
    color: #fff;
    font-weight: bold;
    box-shadow: 0 2px 8px rgba(212, 160, 23, 0.4);
}

.soldiers-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.soldier-card {
    background: linear-gradient(135deg, #2d1810, #3d2817);
    border-radius: 10px;
    padding: 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    border: 2px solid #5c3a1e;
}

.soldier-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.soldier-card.quality-border-1 {
    border-color: #9ca3af;
}

.soldier-card.quality-border-2 {
    border-color: #22c55e;
}

.soldier-card.quality-border-3 {
    border-color: #3b82f6;
}

.soldier-card.quality-border-4 {
    border-color: #a855f7;
}

.soldier-card.quality-border-5 {
    border-color: #fbbf24;
    box-shadow: 0 0 10px rgba(251, 191, 36, 0.3);
}

.soldier-card.soldier-locked {
    opacity: 0.5;
}

.soldier-card-inner {
    position: relative;
    margin-bottom: 5px;
}

.soldier-card-avatar {
    width: 60px;
    height: 60px;
    margin: 0 auto;
    border-radius: 50%;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}

.soldier-sprite-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-placeholder {
    font-size: 28px;
}

.soldier-card-level {
    position: absolute;
    top: 0;
    left: 0;
    background: rgba(0, 0, 0, 0.7);
    color: #fbbf24;
    font-size: 10px;
    padding: 2px 5px;
    border-radius: 0 0 6px 0;
}

.soldier-card-stars {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    font-size: 9px;
    color: #fbbf24;
    text-align: center;
    background: rgba(0, 0, 0, 0.5);
    padding: 1px 0;
}

.soldier-card-locked-tag {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.7);
    color: #9ca3af;
    font-size: 10px;
    padding: 3px 8px;
    border-radius: 4px;
}

.soldier-card-name {
    font-size: 11px;
    font-weight: bold;
    margin-top: 3px;
}

/* ========== 兵种详情页 ========== */
.soldier-detail-page {
    padding-bottom: 120px;
}

.detail-top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 15px;
    background: rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid #5c3a1e;
}

.detail-back-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 18px;
    cursor: pointer;
}

.detail-star-display {
    flex: 1;
    text-align: center;
    font-size: 14px;
}

.star-icon-gold {
    color: #fbbf24;
}

.star-icon-gray {
    color: #4b5563;
}

.detail-soldier-name {
    font-size: 18px;
    font-weight: bold;
    text-align: right;
    flex: 1;
}

.detail-portrait-area {
    padding: 20px;
    text-align: center;
    position: relative;
}

.detail-portrait-frame {
    width: 200px;
    height: 280px;
    margin: 0 auto;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    border: 3px solid #5c3a1e;
    background: linear-gradient(135deg, #1a0f08, #2d1810);
}

.detail-portrait-frame.quality-border-1 {
    border-color: #9ca3af;
}

.detail-portrait-frame.quality-border-2 {
    border-color: #22c55e;
}

.detail-portrait-frame.quality-border-3 {
    border-color: #3b82f6;
}

.detail-portrait-frame.quality-border-4 {
    border-color: #a855f7;
}

.detail-portrait-frame.quality-border-5 {
    border-color: #fbbf24;
    box-shadow: 0 0 20px rgba(251, 191, 36, 0.4);
}

.soldier-portrait-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.portrait-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 80px;
}

.battle-tag {
    position: absolute;
    top: 10px;
    right: 10px;
    background: linear-gradient(180deg, #ef4444, #dc2626);
    color: #fff;
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 4px;
    font-weight: bold;
}

.detail-stats-area {
    display: flex;
    justify-content: space-around;
    padding: 15px 20px;
    background: rgba(0, 0, 0, 0.2);
    margin: 0 15px;
    border-radius: 10px;
    border: 1px solid #5c3a1e;
}

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

.stat-label {
    font-size: 12px;
    color: #9ca3af;
    margin-bottom: 3px;
}

.stat-value {
    font-size: 20px;
    font-weight: bold;
    color: #fbbf24;
}

.stat-hp {
    color: #22c55e;
}

.stat-atk {
    color: #ef4444;
}

.detail-tabs {
    display: flex;
    margin: 15px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    padding: 3px;
}

.detail-tab {
    flex: 1;
    text-align: center;
    padding: 10px;
    font-size: 14px;
    color: #9ca3af;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.detail-tab.active {
    background: linear-gradient(180deg, #d4a017, #b8860b);
    color: #fff;
    font-weight: bold;
}

.detail-tab-content {
    padding: 0 15px;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

.skill-list {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    padding: 10px;
    border: 1px solid #5c3a1e;
}

.skill-item {
    display: flex;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(92, 58, 30, 0.5);
}

.skill-item:last-child {
    border-bottom: none;
}

.skill-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: linear-gradient(135deg, #d4a017, #b8860b);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.skill-item.skill-locked .skill-icon {
    background: #374151;
    opacity: 0.5;
}

.skill-info {
    flex: 1;
}

.skill-name {
    font-size: 14px;
    font-weight: bold;
    color: #fff;
    margin-bottom: 3px;
}

.skill-level-badge {
    display: inline-block;
    background: rgba(212, 160, 23, 0.3);
    color: #fbbf24;
    font-size: 10px;
    padding: 1px 6px;
    border-radius: 4px;
    margin-left: 5px;
}

.skill-item.skill-locked .skill-name {
    color: #6b7280;
}

.skill-desc {
    font-size: 12px;
    color: #9ca3af;
    line-height: 1.4;
}

.skill-item.skill-locked .skill-desc {
    color: #4b5563;
}

.no-skills {
    text-align: center;
    color: #6b7280;
    padding: 20px;
    font-size: 14px;
}

.level-up-info,
.star-up-info {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    padding: 15px;
    border: 1px solid #5c3a1e;
}

.level-current,
.star-current {
    font-size: 14px;
    color: #fff;
    margin-bottom: 10px;
    text-align: center;
}

.level-num,
.star-num {
    color: #fbbf24;
    font-size: 18px;
    font-weight: bold;
}

.level-progress-bar {
    height: 8px;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 10px;
}

.level-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #d4a017, #fbbf24);
    border-radius: 4px;
    transition: width 0.3s;
}

.level-up-cost,
.star-up-cost {
    text-align: center;
    font-size: 13px;
    color: #9ca3af;
}

.cost-copper {
    color: #fbbf24;
    margin: 0 5px;
}

.cost-bingfu {
    color: #3b82f6;
    margin: 0 5px;
}

.cost-fragment {
    color: #a855f7;
    margin: 0 5px;
}

.star-display-big {
    text-align: center;
    font-size: 24px;
    margin: 15px 0;
}

.star-big-gold {
    color: #fbbf24;
}

.star-big-gray {
    color: #4b5563;
}

.star-fragment-count {
    text-align: center;
    font-size: 12px;
    color: #a855f7;
    margin-top: 10px;
}

.detail-action-bar {
    display: flex;
    gap: 10px;
    padding: 15px;
    position: fixed;
    bottom: 60px;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.8);
    border-top: 1px solid #5c3a1e;
}

.btn-upgrade,
.btn-star-up {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.btn-upgrade {
    background: linear-gradient(180deg, #fbbf24, #d97706);
    color: #fff;
    box-shadow: 0 2px 8px rgba(251, 191, 36, 0.4);
}

.btn-star-up {
    background: linear-gradient(180deg, #a855f7, #7c3aed);
    color: #fff;
    box-shadow: 0 2px 8px rgba(168, 85, 247, 0.4);
}

.btn-upgrade-text,
.btn-star-text {
    font-size: 14px;
}

.btn-upgrade-cost,
.btn-star-cost {
    font-size: 11px;
    opacity: 0.9;
}

/* ========== 兵种小卡片高密度布局 ========== */
.soldiers-compact .soldier-category-tabs.compact-tabs {
    padding: 3px;
    margin-bottom: 8px;
}

.soldiers-compact .cat-tab {
    padding: 5px 3px;
    font-size: 12px;
}

.soldiers-grid-compact {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    padding: 5px;
}

.soldier-card-compact {
    background: linear-gradient(135deg, #2d1810, #3d2817);
    border-radius: 6px;
    padding: 4px;
    cursor: pointer;
    transition: transform 0.2s;
    position: relative;
    border: 2px solid #5c4033;
}

.soldier-card-compact:hover {
    transform: scale(1.05);
}

.soldier-card-avatar-compact {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 4px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}

.soldier-sprite-img-compact {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.avatar-placeholder-compact {
    font-size: 24px;
}

.soldier-card-level-compact {
    position: absolute;
    top: 2px;
    right: 2px;
    background: rgba(0, 0, 0, 0.7);
    color: #fbbf24;
    font-size: 10px;
    padding: 1px 3px;
    border-radius: 3px;
}

.soldier-card-locked-tag-compact {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 16px;
    opacity: 0.8;
}

.soldier-card-name-compact {
    text-align: center;
    font-size: 11px;
    margin-top: 3px;
    font-weight: bold;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 品质边框 - 小卡片 */
.soldier-card-compact.quality-border-1 { border-color: #9ca3af; }
.soldier-card-compact.quality-border-2 { border-color: #22c55e; }
.soldier-card-compact.quality-border-3 { border-color: #3b82f6; }
.soldier-card-compact.quality-border-4 { border-color: #a855f7; }
.soldier-card-compact.quality-border-5 { 
    border-color: #fbbf24;
    box-shadow: 0 0 8px rgba(251, 191, 36, 0.5);
}

/* ========== 招募页面紧凑布局 ========== */
.recruit-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.recruit-tab {
    flex: 1;
    padding: 8px;
    text-align: center;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    color: #9ca3af;
    border: 1px solid transparent;
}

.recruit-tab.active {
    background: linear-gradient(180deg, #fbbf24, #d97706);
    color: white;
    border-color: #fbbf24;
}

.pool-title {
    font-size: 18px;
    font-weight: bold;
    color: #fbbf24;
    text-align: center;
    margin-bottom: 8px;
}

.pool-desc {
    font-size: 12px;
    color: #9ca3af;
    text-align: center;
    margin-bottom: 10px;
}

.featured-soldiers {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 15px;
}

.featured-item {
    width: 80px;
    text-align: center;
}

.featured-img {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid;
    margin-bottom: 5px;
}

.featured-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.featured-name {
    font-size: 12px;
    font-weight: bold;
}

.recruit-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 10px;
}

.recruit-btn {
    flex: 1;
    max-width: 150px;
    padding: 10px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    color: white;
    font-weight: bold;
}

.recruit-btn.single {
    background: linear-gradient(180deg, #3b82f6, #2563eb);
}

.recruit-btn.ten {
    background: linear-gradient(180deg, #fbbf24, #d97706);
}

.btn-icon {
    font-size: 20px;
    margin-bottom: 3px;
}

.btn-text {
    font-size: 14px;
    margin-bottom: 2px;
}

.btn-cost {
    font-size: 11px;
    opacity: 0.9;
}

.recruit-tip {
    font-size: 11px;
    color: #9ca3af;
    text-align: center;
    padding: 8px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 6px;
}

.normal-pool-info {
    text-align: center;
    padding: 15px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    margin-bottom: 15px;
    font-size: 13px;
    color: #d1d5db;
}

/* ============================================
   兵种页面 - 专业游戏风格
   ============================================ */

/* ========== 列表页通用 ========== */
.soldiers-list-page {
    padding: 10px;
    min-height: calc(100vh - 120px);
}

.page-title-bar {
    text-align: center;
    padding: 15px 0 10px;
}

.page-main-title {
    font-size: 22px;
    font-weight: bold;
    color: #fbbf24;
    margin: 0 0 5px 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.page-sub-title {
    font-size: 12px;
    color: #9ca3af;
    margin: 0;
}

/* ========== 分类标签 ========== */
.category-tabs-wrap {
    margin-bottom: 15px;
    padding: 0 5px;
}

.category-tabs {
    display: flex;
    background: linear-gradient(180deg, #2d1810, #1a0f08);
    border-radius: 8px;
    padding: 4px;
    border: 1px solid #5c4033;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.cat-tab-item {
    flex: 1;
    text-align: center;
    padding: 8px 4px;
    font-size: 13px;
    color: #9ca3af;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 500;
}

.cat-tab-item:hover {
    color: #d1d5db;
    background: rgba(255, 255, 255, 0.05);
}

.cat-tab-item.active {
    background: linear-gradient(180deg, #fbbf24, #d97706);
    color: #1a0f08;
    font-weight: bold;
    box-shadow: 0 2px 8px rgba(251, 191, 36, 0.4);
}

/* ========== 兵种网格 - 3列 ========== */
.soldiers-grid-3col {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    padding: 5px;
}

/* ========== 兵种卡片 - 专业版 ========== */
.soldier-card-pro {
    background: linear-gradient(180deg, #2d1810 0%, #1a0f08 100%);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.25s ease;
    position: relative;
    overflow: hidden;
    border: 2px solid #5c4033;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.soldier-card-pro:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
}

.card-frame {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
}

/* 品质边框颜色 */
.soldier-card-pro.quality-1 { border-color: #9ca3af; }
.soldier-card-pro.quality-2 { border-color: #22c55e; }
.soldier-card-pro.quality-3 { border-color: #3b82f6; }
.soldier-card-pro.quality-4 { border-color: #a855f7; }
.soldier-card-pro.quality-5 { 
    border-color: #fbbf24;
    box-shadow: 0 0 15px rgba(251, 191, 36, 0.4), 0 4px 12px rgba(0, 0, 0, 0.4);
}

/* 等级标签 */
.card-level-badge {
    position: absolute;
    top: 6px;
    left: 6px;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.6));
    color: #fbbf24;
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: bold;
    z-index: 2;
    border: 1px solid rgba(251, 191, 36, 0.3);
}

/* 出战标签 */
.card-battle-badge {
    position: absolute;
    top: 6px;
    right: 6px;
    background: linear-gradient(180deg, #ef4444, #dc2626);
    color: white;
    font-size: 10px;
    padding: 2px 5px;
    border-radius: 4px;
    font-weight: bold;
    z-index: 2;
}

/* 锁定遮罩 */
.card-lock-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 3;
    backdrop-filter: blur(2px);
}

.lock-icon {
    font-size: 28px;
    margin-bottom: 5px;
    opacity: 0.8;
}

.lock-text {
    font-size: 11px;
    color: #9ca3af;
}

.soldier-card-pro.soldier-locked {
    opacity: 0.85;
}

/* 图片区域 */
.card-image-wrap {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.05) 0%, transparent 70%);
}

.card-image-inner {
    width: 80%;
    height: 80%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-soldier-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.soldier-card-pro:hover .card-soldier-img {
    transform: scale(1.08);
}

.img-placeholder {
    font-size: 40px;
    opacity: 0.5;
}

/* 品质光效 */
.card-quality-glow {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.soldier-card-pro:hover .card-quality-glow {
    opacity: 1;
}

.glow-quality-5 {
    background: radial-gradient(ellipse at center, rgba(251, 191, 36, 0.3) 0%, transparent 60%);
    animation: goldGlow 2s ease-in-out infinite;
}

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

/* 卡片底部信息栏 */
.card-info-bar {
    padding: 8px 6px;
    background: linear-gradient(180deg, #1a0f08, #0d0705);
    border-top: 1px solid #3d2817;
}

.card-name {
    font-size: 12px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-stars {
    text-align: center;
    font-size: 10px;
}

.mini-star {
    color: #fbbf24;
    margin: 0 1px;
}

.quality-text {
    color: #9ca3af;
    font-size: 10px;
}

/* ============================================
   兵种详情页
   ============================================ */

.soldier-detail-page {
    padding-bottom: 80px;
}

/* 顶部栏 */
.detail-top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 15px;
    background: linear-gradient(180deg, #2d1810, #1a0f08);
    border-bottom: 1px solid #5c4033;
    position: relative;
}

.detail-back-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s;
}

.detail-back-btn:hover {
    background: rgba(255, 255, 255, 0.15);
}

.back-icon {
    font-size: 24px;
    color: #fbbf24;
    font-weight: bold;
    line-height: 1;
}

.detail-star-display {
    flex: 1;
    text-align: center;
}

.star-icon-gold {
    color: #fbbf24;
    font-size: 16px;
    margin: 0 1px;
    text-shadow: 0 0 8px rgba(251, 191, 36, 0.6);
}

.star-icon-gray {
    color: #4b5563;
    font-size: 16px;
    margin: 0 1px;
}

.detail-soldier-name {
    font-size: 18px;
    font-weight: bold;
    color: #fbbf24;
    min-width: 80px;
    text-align: right;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* 大图区域 */
.detail-portrait-area {
    padding: 20px 30px;
    display: flex;
    justify-content: center;
}

.detail-portrait-frame {
    position: relative;
    width: 220px;
    height: 280px;
    border-radius: 12px;
    overflow: hidden;
    border: 3px solid;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.quality-frame-1 { border-color: #9ca3af; }
.quality-frame-2 { border-color: #22c55e; }
.quality-frame-3 { border-color: #3b82f6; }
.quality-frame-4 { border-color: #a855f7; }
.quality-frame-5 { 
    border-color: #fbbf24;
    box-shadow: 0 0 30px rgba(251, 191, 36, 0.3), 0 10px 30px rgba(0, 0, 0, 0.5);
    animation: frameGlow 3s ease-in-out infinite;
}

@keyframes frameGlow {
    0%, 100% { box-shadow: 0 0 20px rgba(251, 191, 36, 0.2), 0 10px 30px rgba(0, 0, 0, 0.5); }
    50% { box-shadow: 0 0 40px rgba(251, 191, 36, 0.4), 0 10px 30px rgba(0, 0, 0, 0.5); }
}

.portrait-inner {
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, #2d1810 0%, #1a0f08 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.portrait-inner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at center top, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.soldier-portrait-img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    animation: portraitFloat 3s ease-in-out infinite;
}

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

.portrait-placeholder {
    font-size: 80px;
    opacity: 0.5;
}

/* 出战标签 */
.battle-tag {
    position: absolute;
    top: 12px;
    right: 12px;
    background: linear-gradient(180deg, #ef4444, #dc2626);
    color: white;
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 4px;
    font-weight: bold;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.4);
}

/* 品质徽章 */
.quality-badge {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    padding: 4px 16px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: bold;
    z-index: 2;
}

.quality-badge.quality-1 { background: #6b7280; color: white; }
.quality-badge.quality-2 { background: #22c55e; color: white; }
.quality-badge.quality-3 { background: #3b82f6; color: white; }
.quality-badge.quality-4 { background: #a855f7; color: white; }
.quality-badge.quality-5 { 
    background: linear-gradient(180deg, #fbbf24, #d97706); 
    color: #1a0f08;
    box-shadow: 0 2px 8px rgba(251, 191, 36, 0.5);
}

/* 属性区域 */
.detail-stats-area {
    display: flex;
    justify-content: center;
    gap: 15px;
    padding: 0 20px 20px;
}

.stat-card {
    flex: 1;
    max-width: 100px;
    background: linear-gradient(180deg, #2d1810, #1a0f08);
    border: 1px solid #5c4033;
    border-radius: 10px;
    padding: 12px 8px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.stat-icon {
    font-size: 24px;
    margin-bottom: 6px;
}

.stat-label {
    font-size: 11px;
    color: #9ca3af;
    margin-bottom: 4px;
}

.stat-value {
    font-size: 18px;
    font-weight: bold;
    color: #fbbf24;
}

.stat-hp { color: #ef4444; }
.stat-atk { color: #f59e0b; }
.stat-level { color: #22c55e; }

/* 标签页切换 */
.detail-tabs {
    display: flex;
    background: linear-gradient(180deg, #2d1810, #1a0f08);
    border-top: 1px solid #5c4033;
    border-bottom: 1px solid #5c4033;
}

.detail-tab {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 5px;
    cursor: pointer;
    position: relative;
    transition: all 0.2s;
}

.detail-tab .tab-icon {
    font-size: 18px;
    margin-bottom: 3px;
}

.detail-tab .tab-text {
    font-size: 12px;
    color: #9ca3af;
}

.detail-tab.active {
    background: rgba(251, 191, 36, 0.1);
}

.detail-tab.active .tab-text {
    color: #fbbf24;
    font-weight: bold;
}

.detail-tab.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 20%;
    right: 20%;
    height: 3px;
    background: linear-gradient(90deg, transparent, #fbbf24, transparent);
    border-radius: 2px;
}

/* 标签内容 */
.detail-tab-content {
    padding: 15px;
    min-height: 200px;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

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

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

.skill-item {
    display: flex;
    gap: 12px;
    padding: 12px;
    background: linear-gradient(180deg, #2d1810, #1a0f08);
    border: 1px solid #3d2817;
    border-radius: 8px;
    transition: all 0.2s;
}

.skill-item.skill-unlocked {
    border-color: #5c4033;
}

.skill-item.skill-locked {
    opacity: 0.6;
}

.skill-icon-wrap {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(251, 191, 36, 0.1);
    border-radius: 8px;
    flex-shrink: 0;
}

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

.skill-info {
    flex: 1;
    min-width: 0;
}

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

.skill-name {
    font-size: 14px;
    font-weight: bold;
    color: #fbbf24;
}

.skill-level-badge {
    font-size: 10px;
    padding: 2px 6px;
    background: rgba(251, 191, 36, 0.2);
    color: #fbbf24;
    border-radius: 4px;
}

.skill-desc {
    font-size: 12px;
    color: #9ca3af;
    line-height: 1.5;
}

/* 等级信息面板 */
.level-info-panel,
.star-info-panel {
    background: linear-gradient(180deg, #2d1810, #1a0f08);
    border: 1px solid #5c4033;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.level-current-display,
.star-current-display {
    text-align: center;
    padding-bottom: 20px;
    border-bottom: 1px solid #3d2817;
    margin-bottom: 20px;
}

.level-big-num {
    font-size: 48px;
    font-weight: bold;
    color: #22c55e;
    line-height: 1;
    text-shadow: 0 0 20px rgba(34, 197, 94, 0.3);
}

.level-label-text {
    font-size: 13px;
    color: #9ca3af;
    margin-top: 5px;
}

.star-big-display {
    margin-bottom: 10px;
}

.big-star-gold {
    color: #fbbf24;
    font-size: 24px;
    margin: 0 2px;
    text-shadow: 0 0 10px rgba(251, 191, 36, 0.5);
}

.big-star-gray {
    color: #4b5563;
    font-size: 24px;
    margin: 0 2px;
}

.star-label-text {
    font-size: 13px;
    color: #9ca3af;
}

.section-title {
    font-size: 14px;
    font-weight: bold;
    color: #fbbf24;
    margin-bottom: 12px;
}

.cost-items {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.cost-item {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
}

.cost-item .cost-icon {
    font-size: 20px;
}

.cost-item .cost-name {
    font-size: 12px;
    color: #9ca3af;
}

.cost-item .cost-value {
    font-size: 16px;
    font-weight: bold;
    color: #fbbf24;
    margin-left: auto;
}

.fragments-owned {
    text-align: right;
    font-size: 12px;
    color: #9ca3af;
    margin-bottom: 15px;
}

.fragments-num {
    color: #a855f7;
    font-weight: bold;
}

.level-tips,
.star-tips {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.tip-item {
    font-size: 12px;
    color: #6b7280;
    padding-left: 5px;
}

/* 底部操作栏 */
.detail-bottom-bar {
    position: fixed;
    bottom: 60px;
    left: 0;
    right: 0;
    display: flex;
    gap: 10px;
    padding: 12px 15px;
    background: linear-gradient(180deg, transparent, #0d0705 30%);
    z-index: 100;
    max-width: 420px;
    margin: 0 auto;
}

.detail-action-btn {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    color: white;
    font-weight: bold;
    transition: all 0.2s;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.detail-action-btn:active {
    transform: scale(0.98);
}

.detail-btn-upgrade {
    background: linear-gradient(180deg, #fbbf24 0%, #d97706 100%);
    color: #1a0f08;
}

.detail-btn-starup {
    background: linear-gradient(180deg, #a855f7 0%, #7c3aed 100%);
}

.btn-icon-wrap {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 8px;
}

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

.btn-content {
    flex: 1;
    text-align: left;
}

.btn-title {
    font-size: 15px;
    font-weight: bold;
    margin-bottom: 2px;
}

.btn-cost {
    display: flex;
    gap: 8px;
    font-size: 11px;
    opacity: 0.9;
}

.cost-mini {
    white-space: nowrap;
}

/* 空状态提示 */
.empty-tip {
    text-align: center;
    padding: 40px 20px;
    color: #6b7280;
    font-size: 14px;
}

/* ============================================
   兵种图鉴 - 单页面布局
   ============================================ */

.soldiers-page-single {
    padding: 8px;
    padding-bottom: 70px;
}

/* ========== 立绘大图区域 ========== */
.soldier-detail-section {
    display: flex;
    gap: 12px;
    padding: 12px;
    background: linear-gradient(180deg, #2d1810 0%, #1a0f08 100%);
    border-radius: 10px;
    border: 1px solid #5c4033;
    margin-bottom: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.detail-left {
    flex-shrink: 0;
}

.detail-portrait-frame {
    position: relative;
    width: 120px;
    height: 150px;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.detail-portrait-frame.quality-frame-1 { border-color: #9ca3af; }
.detail-portrait-frame.quality-frame-2 { border-color: #22c55e; }
.detail-portrait-frame.quality-frame-3 { border-color: #3b82f6; }
.detail-portrait-frame.quality-frame-4 { border-color: #a855f7; }
.detail-portrait-frame.quality-frame-5 { 
    border-color: #fbbf24;
    box-shadow: 0 0 15px rgba(251, 191, 36, 0.3), 0 4px 12px rgba(0, 0, 0, 0.4);
}

.portrait-inner {
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, #2d1810 0%, #1a0f08 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.soldier-portrait-img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

.portrait-placeholder {
    font-size: 48px;
    opacity: 0.5;
}

.quality-badge {
    position: absolute;
    bottom: 6px;
    left: 50%;
    transform: translateX(-50%);
    padding: 2px 10px;
    border-radius: 10px;
    font-size: 10px;
    font-weight: bold;
    z-index: 2;
}

.quality-badge.quality-1 { background: #6b7280; color: white; }
.quality-badge.quality-2 { background: #22c55e; color: white; }
.quality-badge.quality-3 { background: #3b82f6; color: white; }
.quality-badge.quality-4 { background: #a855f7; color: white; }
.quality-badge.quality-5 { 
    background: linear-gradient(180deg, #fbbf24, #d97706); 
    color: #1a0f08;
}

/* 右侧信息区 */
.detail-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-width: 0;
}

.detail-name-row {
    margin-bottom: 8px;
}

.detail-soldier-name {
    font-size: 18px;
    font-weight: bold;
    margin: 0 0 6px 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.detail-star-display {
    font-size: 0;
}

.star-icon-gold {
    color: #fbbf24;
    font-size: 13px;
    margin-right: 1px;
    display: inline-block;
}

.star-icon-gray {
    color: #4b5563;
    font-size: 13px;
    margin-right: 1px;
    display: inline-block;
}

/* 属性行 */
.detail-stats-row {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
}

.mini-stat {
    flex: 1;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 6px;
    padding: 6px 4px;
    text-align: center;
    border: 1px solid #3d2817;
}

.mini-stat-icon {
    font-size: 14px;
    display: block;
    margin-bottom: 2px;
}

.mini-stat-label {
    font-size: 10px;
    color: #9ca3af;
    display: block;
    margin-bottom: 2px;
}

.mini-stat-value {
    font-size: 13px;
    font-weight: bold;
    color: #fbbf24;
    display: block;
}

/* 操作按钮行 */
.detail-action-row {
    display: flex;
    gap: 8px;
}

.mini-action-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 8px 6px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    color: white;
    font-size: 12px;
    font-weight: bold;
    transition: all 0.2s;
}

.mini-action-btn:active {
    transform: scale(0.97);
}

.mini-action-btn .btn-icon {
    font-size: 14px;
}

.btn-upgrade {
    background: linear-gradient(180deg, #fbbf24 0%, #d97706 100%);
    color: #1a0f08;
}

.btn-starup {
    background: linear-gradient(180deg, #a855f7 0%, #7c3aed 100%);
}

/* ========== 分类标签 ========== */
.category-tabs-wrap {
    margin-bottom: 8px;
}

.category-tabs {
    display: flex;
    background: linear-gradient(180deg, #2d1810, #1a0f08);
    border-radius: 8px;
    padding: 3px;
    border: 1px solid #5c4033;
}

.cat-tab-item {
    flex: 1;
    text-align: center;
    padding: 6px 3px;
    font-size: 12px;
    color: #9ca3af;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 500;
}

.cat-tab-item:hover {
    color: #d1d5db;
}

.cat-tab-item.active {
    background: linear-gradient(180deg, #fbbf24, #d97706);
    color: #1a0f08;
    font-weight: bold;
}

/* ========== 兵种小卡片网格 ========== */
.soldiers-grid-mini {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 6px;
}

/* 小卡片 */
.soldier-card-mini {
    background: linear-gradient(180deg, #2d1810 0%, #1a0f08 100%);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
    border: 2px solid #5c4033;
    padding: 3px;
}

.soldier-card-mini:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
}

.soldier-card-mini.selected {
    border-color: #fbbf24;
    box-shadow: 0 0 10px rgba(251, 191, 36, 0.5);
    transform: scale(1.02);
}

/* 品质边框颜色 */
.soldier-card-mini.quality-1 { border-color: #9ca3af; }
.soldier-card-mini.quality-2 { border-color: #22c55e; }
.soldier-card-mini.quality-3 { border-color: #3b82f6; }
.soldier-card-mini.quality-4 { border-color: #a855f7; }
.soldier-card-mini.quality-5 { 
    border-color: #fbbf24;
    box-shadow: 0 0 8px rgba(251, 191, 36, 0.3);
}

.soldier-card-mini.quality-5.selected {
    box-shadow: 0 0 15px rgba(251, 191, 36, 0.6);
}

.mini-card-frame {
    position: relative;
    aspect-ratio: 1;
    border-radius: 4px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.2);
}

.mini-lock-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 20px;
    z-index: 2;
    opacity: 0.8;
}

.soldier-card-mini.soldier-locked {
    opacity: 0.7;
}

.mini-card-img {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mini-card-img img {
    max-width: 85%;
    max-height: 85%;
    object-fit: contain;
}

.mini-placeholder {
    font-size: 24px;
    opacity: 0.5;
}

.mini-card-name {
    font-size: 10px;
    font-weight: bold;
    text-align: center;
    margin-top: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 0 2px;
}

/* ========== 兵种页面 - 参考图布局 ========== */
.soldiers-ref-page {
    width: 100%;
    padding: 10px;
    box-sizing: border-box;
}

.soldier-big-display {
    display: flex;
    gap: 15px;
    padding: 15px;
    background: rgba(45, 24, 16, 0.9);
    border: 2px solid #8b5a2b;
    border-radius: 10px;
    margin-bottom: 12px;
    align-items: center;
}

.big-img-wrap {
    position: relative;
    flex-shrink: 0;
}

.big-img-frame {
    width: 120px;
    height: 150px;
    border-radius: 8px;
    overflow: hidden;
    border: 3px solid #fbbf24;
    background: #1a0f08;
    display: flex;
    align-items: center;
    justify-content: center;
}

.big-portrait-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.big-img-placeholder {
    font-size: 48px;
    color: #8b5a2b;
}

.quality-tag {
    position: absolute;
    top: 5px;
    right: 5px;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: bold;
    color: #fff;
    background: rgba(0,0,0,0.7);
}

.quality-tag-1 { background: #6b7280; }
.quality-tag-2 { background: #16a34a; }
.quality-tag-3 { background: #2563eb; }
.quality-tag-4 { background: #9333ea; }
.quality-tag-5 { background: #d97706; }

.big-info-wrap {
    flex: 1;
    min-width: 0;
}

.big-soldier-name {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 8px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.big-stars {
    margin-bottom: 10px;
    font-size: 14px;
}

.star-gold {
    color: #fbbf24;
    text-shadow: 0 0 5px rgba(251, 191, 36, 0.5);
}

.star-gray {
    color: #555;
}

.big-stats {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.big-stat-item {
    background: rgba(26, 15, 8, 0.8);
    padding: 6px 10px;
    border-radius: 6px;
    border: 1px solid #5c3a1e;
    text-align: center;
    min-width: 60px;
}

.big-stat-label {
    display: block;
    font-size: 11px;
    color: #a08060;
    margin-bottom: 2px;
}

.big-stat-value {
    display: block;
    font-size: 14px;
    font-weight: bold;
    color: #f5deb3;
}

.big-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.big-btn {
    flex: 1;
    min-width: 80px;
    padding: 8px 10px;
    border: none;
    border-radius: 6px;
    font-size: 12px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    color: #fff;
    text-shadow: 1px 1px 1px rgba(0,0,0,0.3);
}

.btn-upgrade-big {
    background: linear-gradient(180deg, #fbbf24 0%, #d97706 100%);
    border: 2px solid #92400e;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.3);
}

.btn-starup-big {
    background: linear-gradient(180deg, #a855f7 0%, #7c3aed 100%);
    border: 2px solid #5b21b6;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.3);
}

.big-btn-icon {
    font-size: 16px;
}

.big-btn-text {
    font-size: 12px;
}

.big-btn-cost {
    font-size: 10px;
    opacity: 0.9;
}

.ref-category-tabs {
    display: flex;
    gap: 5px;
    margin-bottom: 12px;
    background: rgba(45, 24, 16, 0.8);
    padding: 8px;
    border-radius: 8px;
    border: 1px solid #5c3a1e;
}

.ref-cat-tab {
    flex: 1;
    padding: 6px 4px;
    text-align: center;
    font-size: 12px;
    color: #a08060;
    background: rgba(26, 15, 8, 0.6);
    border-radius: 5px;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.2s;
    font-weight: bold;
}

.ref-cat-tab:hover {
    color: #f5deb3;
    background: rgba(92, 58, 30, 0.6);
}

.ref-cat-tab.active {
    color: #fbbf24;
    background: rgba(139, 90, 43, 0.8);
    border-color: #fbbf24;
    box-shadow: 0 0 8px rgba(251, 191, 36, 0.3);
}

.ref-soldiers-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
    padding: 10px;
    background: rgba(45, 24, 16, 0.7);
    border-radius: 8px;
    border: 1px solid #5c3a1e;
}

.ref-soldier-card {
    aspect-ratio: 1;
    border-radius: 6px;
    border: 2px solid #555;
    background: rgba(26, 15, 8, 0.8);
    overflow: hidden;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
    display: flex;
    flex-direction: column;
}

.ref-soldier-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.4);
}

.ref-soldier-card.selected {
    border-color: #fbbf24;
    box-shadow: 0 0 10px rgba(251, 191, 36, 0.5);
}

.ref-soldier-card.locked {
    opacity: 0.5;
}

.ref-soldier-card.quality-border-1 { border-color: #9ca3af; }
.ref-soldier-card.quality-border-2 { border-color: #22c55e; }
.ref-soldier-card.quality-border-3 { border-color: #3b82f6; }
.ref-soldier-card.quality-border-4 { border-color: #a855f7; }
.ref-soldier-card.quality-border-5 { 
    border-color: #fbbf24;
    box-shadow: 0 0 8px rgba(251, 191, 36, 0.4);
}

.ref-soldier-card.quality-border-5.selected {
    box-shadow: 0 0 15px rgba(251, 191, 36, 0.7);
}

.ref-card-img {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.ref-card-img img {
    width: 80%;
    height: 80%;
    object-fit: contain;
}

.ref-card-placeholder {
    font-size: 24px;
    color: #5c3a1e;
}

.ref-lock-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 20px;
    z-index: 2;
}

.ref-card-name {
    font-size: 10px;
    text-align: center;
    padding: 3px 2px;
    color: #f5deb3;
    background: rgba(0,0,0,0.5);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: bold;
}

@media (max-width: 360px) {
    .ref-soldiers-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .soldier-big-display {
        flex-direction: column;
        text-align: center;
    }
    
    .big-info-wrap {
        width: 100%;
    }
    
    .big-stats {
        justify-content: center;
    }
    
    .big-buttons {
        justify-content: center;
    }
}

@media (max-width: 320px) {
    .ref-soldiers-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 6px;
    }
}

/* 响应式调整 */
@media (max-width: 360px) {
    .soldiers-grid-mini {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .detail-portrait-frame {
        width: 100px;
        height: 130px;
    }
}
