/* ===== 传功阁 ===== */
.transmit-hint {
    color: var(--text-muted);
    font-size: 12px;
    padding: 8px 12px;
    margin: 0;
    border-bottom: 1px solid var(--border-main);
}

.transmit-item {
    background: var(--bg-card);
    border: 1px solid var(--border-main);
    border-radius: var(--radius-md);
    padding: 8px 10px;
    margin-bottom: 8px;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s, box-shadow 0.2s;
}

.transmit-item:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
    border-color: var(--accent-gold-dim);
}

.transmit-item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 6px;
    margin-bottom: 6px;
    padding-bottom: 6px;
    border-bottom: none;
}

.transmit-header-left {
    display: flex;
    align-items: center;
    gap: 6px;
}

.transmit-item-name {
    font-weight: 600;
    font-size: 14px;
}

.transmit-type-badge {
    font-size: 10px;
    padding: 2px 4px;
    border-radius: 4px;
    background: rgba(186, 150, 83, 0.1);
    border: 1px solid var(--accent-gold-dim);
    color: var(--accent-gold);
    white-space: nowrap;
}

.transmit-item-desc {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 8px;
    line-height: 1.4;
    word-break: break-all;
}

.transmit-item-footer {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: var(--text-muted);
    background: var(--bg-main);
    padding: 4px 8px;
    border-radius: 4px;
    margin-bottom: 8px;
}

.transmit-item-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.transmit-price {
    color: var(--accent-gold);
    font-weight: 600;
    font-size: 14px;
    display: flex;
    align-items: baseline;
    gap: 2px;
}

.transmit-price::after {
    content: '灵石';
    font-size: 11px;
    font-weight: normal;
    color: var(--text-muted);
}

.transmit-seller {
    font-size: 11px;
    color: var(--text-secondary);
}

.transmit-time {
    font-size: 11px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 4px;
}

.transmit-mine-tag {
    font-size: 11px;
    color: var(--accent-gold);
    padding: 2px 8px;
    background: rgba(186, 150, 83, 0.1);
    border: 1px solid var(--accent-gold-dim);
    border-radius: 4px;
    font-style: italic;
}

/* 传功确认弹窗 */
.transmit-confirm-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.transmit-confirm-box {
    background: var(--bg-card);
    border: 1px solid var(--border-main);
    border-radius: 8px;
    padding: 20px;
    max-width: 360px;
    width: 90%;
}

.transmit-confirm-box h4 {
    margin: 0 0 12px 0;
    color: var(--text-primary);
    font-size: 16px;
}

.transmit-confirm-info {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.transmit-confirm-info p {
    margin: 4px 0;
}

.transmit-confirm-warn {
    background: rgba(255, 152, 0, 0.1);
    border: 1px solid rgba(255, 152, 0, 0.3);
    border-radius: 4px;
    padding: 8px 10px;
    font-size: 12px;
    color: #ff9800;
    margin-bottom: 12px;
    line-height: 1.5;
}

.transmit-price-input {
    margin-bottom: 14px;
}

.transmit-price-input label {
    display: block;
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.transmit-price-input input {
    width: 100%;
    padding: 6px 10px;
    background: var(--bg-main);
    border: 1px solid var(--border-main);
    border-radius: 4px;
    color: var(--text-primary);
    font-size: 14px;
    box-sizing: border-box;
}

.transmit-confirm-buttons {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.text-danger {
    color: #f44336;
}


/* -- 坊市聚合 -- */
.market-group-summary {
    cursor: pointer;
    transition: background 0.2s;
}
.market-group-summary:hover {
    background: rgba(255,255,255,0.04);
}
.market-group-lowest {
    color: var(--accent-gold);
    font-weight: bold;
}
.market-group-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 4px;
    font-size: 11px;
    color: var(--text-secondary);
}
.market-group-toggle {
    color: var(--text-jade);
    font-size: 11px;
}
.market-group-listings {
    display: none;
    flex-direction: column;
    gap: 8px;
    padding-left: 12px;
    border-left: 2px solid var(--accent-gold);
    margin-left: 4px;
}

/* ===== 道友货架头部 ===== */
.market-shelf-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    margin-bottom: 8px;
    background: color-mix(in srgb, var(--accent-purple) 8%, transparent);
    border: none;
    border-radius: var(--radius-md);
    font-family: var(--font-serif);
    font-size: 14px;
    color: var(--accent-purple);
    letter-spacing: 1px;
}

.market-shelf-header button {
    padding: 3px 10px;
    font-size: 11px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.15s;
    font-family: var(--font-serif);
}

.market-shelf-header button:hover {
    background: var(--bg-card-hover);
    color: var(--text-primary);
}

/* ===== 反馈点赞/反对功能 ===== */
.feedback-votes {
    display: flex;
    gap: 8px;
    margin-top: 8px;
    flex-wrap: wrap;
}

.btn-vote {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 4px 12px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 4px;
}

.btn-vote:hover {
    color: var(--text-primary);
    border-color: rgba(255, 255, 255, 0.3);
}

.btn-vote.btn-vote-active.btn-vote-up {
    color: var(--accent-jade, #47bd95);
    border-color: var(--accent-jade, #47bd95);
    background: rgba(71, 189, 149, 0.1);
}

.btn-vote.btn-vote-active.btn-vote-down {
    color: var(--accent-crimson, #e06060);
    border-color: var(--accent-crimson, #e06060);
    background: rgba(224, 96, 96, 0.1);
}

.feedback-votes-static {
    display: flex;
    gap: 12px;
    margin-top: 8px;
    font-size: 12px;
    color: var(--text-muted);
}
.vote-static {
    display: flex;
    align-items: center;
}
.vote-static-up { color: var(--accent-jade, #47bd95); }
.vote-static-down { color: var(--accent-crimson, #e06060); }

/* ===== 宗门药田 ===== */
.garden-batch-actions {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
    grid-column: 1 / -1;
}

.garden-pot {
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    padding: 8px;
    border-radius: 4px;
    text-align: center;
}
.garden-pot-title {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 4px;
}
.garden-seed-name {
    margin-bottom: 8px;
}
.garden-seed-name.mature {
    color: var(--text-gold);
    font-weight: bold;
}
.garden-seed-name.growing {
    color: var(--text-secondary);
    font-weight: bold;
}
.garden-pot-status {
    color: var(--text-gold);
    font-size: 12px;
    margin-bottom: 8px;
    font-weight: bold;
}
.garden-timer-val {
    font-family: monospace;
    font-size: 12px;
    margin-bottom: 8px;
    color: var(--text-primary);
}
.garden-idle-text {
    color: var(--text-muted);
    margin-bottom: 8px;
    font-size: 12px;
}

/* ===== 世界 Boss 面板 ===== */
.world-boss-panel {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 20px;
    background:
        radial-gradient(ellipse at 50% 0%, rgba(185, 48, 48, 0.12), transparent 55%),
        var(--bg-card);
    border: 1px solid var(--border-gold);
    border-radius: var(--radius-lg);
    flex: 1;
    min-height: 0;
    overflow-y: auto;
}

/* --- 惩罚横幅 (顶部醒目) --- */
.wb-penalty-banner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    background: linear-gradient(135deg, rgba(139, 0, 0, 0.3), rgba(80, 0, 0, 0.2));
    border: 1px solid rgba(255, 60, 60, 0.25);
    border-radius: var(--radius-md);
    color: var(--text-red);
    font-size: 13px;
    font-weight: 600;
    animation: wb-penalty-pulse 3s ease-in-out infinite;
}
@keyframes wb-penalty-pulse {
    0%, 100% { border-color: rgba(255, 60, 60, 0.25); }
    50% { border-color: rgba(255, 60, 60, 0.5); }
}

/* --- 标题区 --- */
.wb-header {
    text-align: center;
    padding-bottom: 12px;
    border-bottom: none;
}
.wb-title-row {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}
.wb-name {
    color: var(--text-red);
    font-size: 22px;
    font-family: var(--font-display);
    text-shadow: 0 0 12px rgba(224, 96, 96, 0.25);
    letter-spacing: 2px;
}
.wb-phase {
    display: inline-block;
    background: rgba(201, 153, 58, 0.1);
    color: var(--text-gold);
    padding: 3px 14px;
    border-radius: 20px;
    font-size: 12px;
    border: 1px solid var(--border-color);
    letter-spacing: 1px;
}

/* --- 背景故事 --- */
.wb-lore {
    padding: 14px 16px;
    background: rgba(0, 0, 0, 0.2);
    border-left: 3px solid rgba(224, 96, 96, 0.35);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    line-height: 1.9;
}
.wb-lore-text {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 6px;
}
.wb-lore-text:last-child {
    margin-bottom: 0;
}
.wb-lore-danger {
    color: var(--text-red);
}

/* --- 悬赏掉落区 --- */
.wb-reward-section {
    margin: 12px 0;
    background: var(--bg-card);
    padding: 12px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}
.wb-reward-header {
    color: var(--text-gold);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 10px;
    border-bottom: 1px dashed var(--border-color);
    padding-bottom: 6px;
    letter-spacing: 1px;
}
.wb-reward-row {
    margin-top: 4px;
    padding: 4px 6px;
    background: transparent;
    border: none;
    border-radius: 4px;
    transition: background 0.2s;
}
.wb-reward-row:hover {
    background: rgba(255, 255, 255, 0.05);
}
.wb-reward-label {
    min-width: 65px;
}
.tag-red { color: var(--text-red) !important; }
.tag-gold { color: var(--text-gold) !important; }
.tag-gold-border { 
    color: var(--text-gold);
    border-color: rgba(201, 153, 58, 0.5); 
    background: rgba(201, 153, 58, 0.1); 
}

/* --- 血条区 --- */
.wb-hp-section {
    padding: 4px 0;
}
.wb-hp-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
    font-size: 13px;
    color: var(--text-secondary);
}
.wb-hp-text {
    font-size: 13px;
    color: #ffcccb;
    font-family: 'Courier New', monospace;
    letter-spacing: 0.5px;
}
.wb-hp-bar {
    height: 18px;
    background: var(--bg-secondary);
    border: 1px solid rgba(224, 96, 96, 0.2);
    border-radius: 9px;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.4);
}
.wb-hp-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-crimson), #e04040);
    border-radius: 9px;
    transition: width 0.5s ease;
    box-shadow: 0 0 8px rgba(185, 48, 48, 0.4);
    position: relative;
}
.wb-hp-fill::after {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    width: 30px;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15));
    animation: wb-hp-glow 2s ease-in-out infinite;
}
@keyframes wb-hp-glow {
    0%, 100% { opacity: 0.2; }
    50% { opacity: 0.7; }
}

/* --- 伤害统计 --- */
.wb-info-row {
    display: flex;
    gap: 10px;
}
.wb-stat-card {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 10px 12px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
}
.wb-stat-label {
    font-size: 12px;
    color: var(--text-muted);
}
.wb-stat-value {
    font-size: 20px;
    font-weight: 700;
    color: var(--accent-gold);
    font-family: 'Courier New', monospace;
}

/* --- 挑战按钮 --- */
.wb-btn-challenge {
    width: 100%;
    height: 44px;
    font-size: 15px;
    background: linear-gradient(135deg, var(--accent-crimson), #cc3333) !important;
    border-color: rgba(224, 96, 96, 0.4) !important;
    color: #fff !important;
    letter-spacing: 3px;
    font-weight: 700;
}
.wb-btn-challenge:hover:not(:disabled) {
    background: linear-gradient(135deg, #c03030, #e04040) !important;
    box-shadow: 0 0 20px rgba(224, 96, 96, 0.3);
    transform: translateY(-1px);
}
.wb-btn-challenge:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

/* --- 排行榜 --- */
.wb-leaderboard {
    padding: 12px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}
.wb-rank-item {
    display: flex;
    justify-content: space-between;
    padding: 5px 4px;
    font-size: 13px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.wb-rank-item:last-child {
    border-bottom: none;
}
.wb-rank-1 { color: #f1c40f; font-weight: bold; }
.wb-rank-2 { color: #7f8c8d; font-weight: bold; }
.wb-rank-3 { color: #cd7f32; font-weight: bold; }

/* --- 黑市兑换 --- */
.wb-exchange-section {
    border-top: 1px solid var(--border-color);
    padding-top: 6px;
}
.wb-exchange-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 0;
    font-size: 13px;
    color: var(--text-gold);
    font-weight: 600;
    cursor: pointer;
    transition: color 0.2s;
    letter-spacing: 1px;
}
.wb-exchange-header:hover {
    color: var(--accent-gold);
}
.wb-exchange-arrow {
    transition: transform 0.2s;
}
.wb-exchange-list {
    padding: 6px;
    background: rgba(0, 0, 0, 0.15);
    border-radius: var(--radius-md);
    margin-top: 6px;
    border: 1px solid var(--border-color);
}
.wb-exchange-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    gap: 10px;
    border-radius: var(--radius-sm);
    transition: background 0.15s;
}
.wb-exchange-item:last-child { border-bottom: none; }
.wb-exchange-item:hover { background: rgba(201, 153, 58, 0.05); }
.wb-exchange-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
    min-width: 0;
}
.wb-exchange-name {
    color: var(--text-gold);
    font-size: 13px;
    font-weight: 600;
}
.wb-exchange-desc {
    color: var(--text-muted);
    font-size: 11px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.wb-exchange-btn {
    background: var(--bg-card);
    border: 1px solid var(--border-gold);
    color: var(--text-gold);
    padding: 5px 14px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-family: var(--font-serif);
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
}
.wb-exchange-btn:hover {
    background: var(--bg-card-hover);
    border-color: var(--accent-gold);
    box-shadow: var(--shadow-glow-gold);
}

/* --- 底部提示 --- */
.wb-footer-hint {
    text-align: center;
    font-size: 11px;
    color: var(--text-muted);
    letter-spacing: 0.5px;
    padding-top: 4px;
    border-top: 1px dashed var(--border-color);
}

/* --- 排行榜内部元素 --- */
.wb-rank-empty {
    text-align: center;
    color: var(--text-muted);
    font-size: 13px;
    padding: 10px;
}
.wb-rank-title {
    margin-bottom: 8px;
    font-size: 13px;
    color: var(--text-gold);
    font-weight: 600;
    text-align: center;
    letter-spacing: 1px;
}

/* ===== NPC 面板 (天烬仙庐) ===== */
.npc-panel {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 20px;
    background:
        radial-gradient(ellipse at 50% 0%, rgba(61, 171, 151, 0.1), transparent 55%),
        var(--bg-card);
    border: 1px solid var(--border-gold);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md), inset 0 1px 0 rgba(201, 153, 58, 0.08);
    flex: 1;
    overflow-y: auto;
}

/* --- NPC 标题 --- */
.npc-header {
    text-align: center;
    padding-bottom: 12px;
    border-bottom: none;
    position: relative;
}
.npc-close-btn {
    position: absolute;
    top: -5px;
    right: -10px;
    background: transparent;
    border: none;
    font-size: 24px;
    color: var(--text-gray);
    cursor: pointer;
    line-height: 1;
}
.npc-close-btn:hover {
    color: var(--text-gold);
}
.npc-title-row {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}
.npc-name {
    color: var(--accent-jade);
    font-size: 22px;
    font-family: var(--font-display);
    text-shadow: 0 0 12px rgba(61, 171, 151, 0.2);
    letter-spacing: 2px;
}
.npc-realm {
    display: inline-block;
    background: rgba(61, 171, 151, 0.1);
    color: var(--text-jade);
    padding: 3px 14px;
    border-radius: 20px;
    font-size: 12px;
    border: 1px solid rgba(61, 171, 151, 0.2);
    letter-spacing: 1px;
}

/* --- NPC 立绘区 --- */
.npc-portrait {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 0;
    background: rgba(0, 0, 0, 0.15);
    border-radius: var(--radius-md);
    border: 1px dashed rgba(61, 171, 151, 0.2);
}
.npc-portrait-text {
    font-family: var(--font-display);
    font-size: 28px;
    color: var(--text-gold);
    letter-spacing: 6px;
    text-shadow: 0 0 20px rgba(201, 153, 58, 0.15);
}

/* --- NPC 对话 --- */
.npc-dialogue {
    padding: 14px 16px;
    background: rgba(0, 0, 0, 0.2);
    border-left: 3px solid rgba(61, 171, 151, 0.35);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    line-height: 1.9;
}
.npc-dialogue-text {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}
.npc-dialogue-text:last-child {
    margin-bottom: 0;
}
.npc-dialogue-hint {
    color: var(--text-jade);
}

/* --- NPC 兑换区 --- */
.npc-exchange-section {
    border-top: 1px solid var(--border-color);
    padding-top: 6px;
}
.npc-exchange-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 0;
    font-size: 13px;
    color: var(--text-jade);
    font-weight: 600;
    cursor: pointer;
    transition: color 0.2s;
    letter-spacing: 1px;
}
.npc-exchange-header:hover {
    color: var(--accent-jade);
}
.npc-exchange-arrow {
    transition: transform 0.2s;
}

/* --- NPC 底部提示 --- */
.npc-footer-hint {
    text-align: center;
    font-size: 11px;
    color: var(--text-muted);
    letter-spacing: 0.5px;
    padding-top: 4px;
    border-top: 1px dashed var(--border-color);
}

/* === 《孤辰散仙·叶天烬》生平决卷 弹窗 === */
/* 叶天烬人物志比默认 modal--lg 更宽，保证长篇幅更易阅读 */
.lore-modal {
    max-width: 600px;
}

/* 主体可滚动区 —— modal--decorated 的 flex 列布局下自动占满剩余空间 */
.lore-body {
    flex: 1 1 auto;
    min-height: 0;
    max-height: 65vh;
}

/* 章节标题 */
.lore-chapter-title {
    color: var(--accent-jade);
    margin: 0 0 8px;
    font-size: 15px;
    letter-spacing: 1px;
}

/* 正文段落 */
.lore-paragraph {
    font-size: 14px;
    line-height: 1.75;
    color: var(--text-primary);
    margin: 0 0 12px;
    text-align: justify;
    text-indent: 2em;
}

/* 章节末尾段落额外空隙 */
.lore-paragraph--gap {
    margin-bottom: 22px;
}

/* 合上绝卷 —— 底部按钮行固定在可视区，不随正文滚动 */
.lore-footer {
    flex-shrink: 0;
    padding: 12px 20px 16px;
    margin-top: 0;
    border-top: 1px solid var(--border-color);
    background: var(--bg-panel);
}

/* === 副本预告轮播条 === */
.dungeon-notice-container {
    background: linear-gradient(90deg, transparent, rgba(61, 171, 151, 0.15) 20%, rgba(201, 153, 58, 0.15) 80%, transparent);
    border-bottom: 1px solid rgba(201, 153, 58, 0.3);
    border-top: 1px solid rgba(61, 171, 151, 0.3);
    display: flex;
    align-items: center;
    padding: 4px 12px;
    height: 32px;
    position: relative;
    overflow: hidden;
}
.dungeon-notice-container.hidden {
    display: none !important;
}
.dungeon-notice-icon {
    font-size: 13px;
    color: var(--accent-gold);
    margin-right: 8px;
    white-space: nowrap;
    text-shadow: 0 0 5px rgba(201, 153, 58, 0.5);
    z-index: 2;
    background: var(--bg-body); /* 遮挡左侧滚动文字 */
    padding-right: 8px;
}
.dungeon-notice-wrap {
    flex: 1;
    overflow: hidden;
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}
.dungeon-notice-marquee {
    white-space: nowrap;
    font-size: 13px;
    color: var(--text-color);
    position: absolute;
    left: 100%;
}
.dungeon-notice-marquee.marquee-active {
    animation: marqueeAnim 18s linear infinite;
}
@keyframes marqueeAnim {
    0% { left: 100%; }
    100% { left: -150%; } /* 假设文本长度较长 */
}
.btn-close-dungeon-notice {
    font-size: 18px;
    color: var(--text-gray);
    margin-left: 8px;
    z-index: 2;
    background: var(--bg-body);
    padding-left: 8px;
}
.btn-close-dungeon-notice:hover {
    color: var(--accent-red);
}

/* === 副本奖励掉落标签 === */
.dungeon-reward-row {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
    background: rgba(0, 0, 0, 0.2);
    padding: 8px 10px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.05);
}
.dungeon-reward-label {
    font-size: 13px;
    color: var(--text-gold);
    margin-right: 4px;
    font-weight: bold;
}
.dungeon-reward-tag {
    font-size: 12px;
    padding: 3px 8px;
    border-radius: var(--radius-sm);
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    white-space: nowrap;
    letter-spacing: 0.5px;
}
.dungeon-reward-tag.tag-exp { color: var(--text-jade); border-color: rgba(61, 171, 151, 0.4); background: rgba(61, 171, 151, 0.15); }
.dungeon-reward-tag.tag-stone { color: var(--text-blue); border-color: rgba(96, 160, 224, 0.4); background: rgba(96, 160, 224, 0.15); }
.dungeon-reward-tag.tag-item { color: var(--text-primary); border-color: var(--border-gold); background: rgba(201, 153, 58, 0.15); }

/* ===== 传送符/神行符 - 区域选择器 ===== */
.teleport-picker-title {
    font-family: var(--font-serif);
    font-size: 16px;
    color: var(--text-gold);
    text-align: center;
    margin-bottom: 4px;
}
/* 传送选择器增宽弹窗 */
.game-dialog:has(.teleport-picker-title) {
    max-width: 400px;
    width: 90vw;
}
.teleport-picker-hint {
    font-size: 12px;
    color: var(--text-muted);
    text-align: center;
    margin-bottom: 12px;
}
.teleport-region-label {
    font-family: var(--font-serif);
    font-size: 13px;
    color: var(--text-jade);
    padding: 6px 0 4px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 6px;
}
.teleport-area-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 6px;
    margin-bottom: 10px;
}
.teleport-area-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px 6px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s ease;
}
.teleport-area-btn:hover:not(.disabled) {
    background: var(--bg-card-hover);
    border-color: var(--border-gold);
    box-shadow: 0 0 8px rgba(201, 153, 58, 0.2);
}
.teleport-area-btn:active:not(.disabled) {
    transform: scale(0.97);
}
.teleport-area-btn.disabled {
    opacity: 0.4;
    cursor: not-allowed;
}
.teleport-area-name {
    font-size: 13px;
    color: var(--text-primary);
    font-family: var(--font-serif);
}
.teleport-area-realm {
    font-size: 10px;
    color: var(--text-muted);
    margin-top: 2px;
}
.teleport-picker-empty {
    text-align: center;
    color: var(--text-muted);
    padding: 20px 0;
    font-size: 13px;
}

@media (max-width: 500px) {
    .teleport-area-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 4px;
    }
    .teleport-area-btn {
        padding: 6px 4px;
    }
    .teleport-area-name {
        font-size: 12px;
    }
}

/* ===== 拍卖物品详情弹窗 ===== */
.auction-detail-modal {
    max-width: 380px;
    width: 92vw;
    max-height: 85vh;
    overflow-y: auto;
}

.auction-item-clickable {
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.auction-item-clickable:hover {
    border-color: var(--border-gold);
    box-shadow: 0 0 8px rgba(201, 153, 58, 0.15);
}

.auction-detail-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 10px 0 8px;
}

.auction-detail-name {
    font-size: 18px;
    font-weight: 700;
    font-family: var(--font-serif);
    letter-spacing: 1px;
    text-shadow: 0 0 8px currentColor;
}

.auction-detail-rarity {
    font-size: 12px;
    opacity: 0.85;
    font-family: var(--font-serif);
}

.auction-detail-desc {
    text-align: center;
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.7;
    padding: 8px 12px;
    margin: 4px 0 8px;
    background: linear-gradient(135deg, rgba(201, 153, 58, 0.05), rgba(201, 153, 58, 0.02));
    border: 1px solid rgba(201, 153, 58, 0.12);
    border-radius: 6px;
    font-family: var(--font-serif);
    letter-spacing: 0.5px;
}

.auction-detail-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    margin: 6px 0 10px;
}

.auction-detail-stat {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 10px;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 6px;
}

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

.auction-detail-stat-val {
    font-size: 13px;
    font-weight: 600;
}

.auction-detail-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-gold), transparent);
    margin: 6px 0 10px;
    opacity: 0.4;
}

.auction-detail-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.auction-detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 8px;
    border-radius: 4px;
    transition: background 0.15s;
}

.auction-detail-row:hover {
    background: rgba(255, 255, 255, 0.025);
}

.auction-detail-label {
    font-size: 12px;
    color: var(--text-muted);
    font-family: var(--font-serif);
}

.auction-detail-val {
    font-size: 13px;
    color: var(--text-primary);
    font-weight: 500;
}

.auction-detail-price {
    color: var(--text-gold);
    font-weight: 700;
    font-size: 15px;
    text-shadow: 0 0 6px rgba(201, 153, 58, 0.3);
}

/* ===== 全局搜索与过滤控件 ===== */
.global-filter-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.global-filter-row {
    display: flex;
    align-items: center;
    gap: 6px;
    width: 100%;
}
.global-search-input {
    width: 100%;
    font-size: 13px;
    padding: 6px 12px;
    background: var(--bg-card);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    outline: none;
    transition: all 0.2s ease;
}
.global-search-input:focus {
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 2px rgba(33, 150, 243, 0.2);
}
.global-filter-select {
    font-size: 13px;
    padding: 6px 10px;
    background: var(--bg-card);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    outline: none;
    cursor: pointer;
    transition: all 0.2s ease;
}
.global-filter-select:focus,
.global-filter-select:hover {
    border-color: var(--accent-blue);
}

/* ===== 天烬仙庐 · 上届战报 ===== */
.wb-last-result {
    border: 1px solid var(--border-gold);
    border-radius: var(--radius-md);
    background: linear-gradient(180deg, rgba(201, 153, 58, 0.06), rgba(0, 0, 0, 0.2));
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.wb-last-result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    padding-bottom: 6px;
    cursor: pointer;
    user-select: none;
}
.wb-last-result:not(.wb-last-result--collapsed) .wb-last-result-header {
    border-bottom: 1px dashed rgba(201, 153, 58, 0.3);
}
.wb-last-result-arrow {
    color: var(--text-gold);
    transition: transform 0.2s ease;
    flex-shrink: 0;
}
.wb-last-result--collapsed .wb-last-result-arrow {
    transform: rotate(-90deg);
}
.wb-last-result-body {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.wb-last-result--collapsed .wb-last-result-body {
    display: none;
}
.wb-last-result-title {
    color: var(--text-gold);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1px;
}
.wb-last-result-meta {
    color: var(--text-gray);
    font-size: 11px;
}
.wb-last-result-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.wb-rank-row {
    display: grid;
    grid-template-columns: 28px 1fr auto;
    align-items: center;
    gap: 8px;
    padding: 6px 8px;
    border-radius: 4px;
    font-size: 12px;
    background: rgba(255, 255, 255, 0.02);
}
.wb-rank-row.wb-rank-top1 {
    background: rgba(255, 215, 0, 0.08);
    border-left: 2px solid var(--text-gold);
}
.wb-rank-row.wb-rank-top3 {
    background: rgba(255, 215, 0, 0.04);
}
.wb-rank-num {
    color: var(--text-gold);
    font-weight: 700;
    text-align: center;
}
.wb-rank-name {
    color: var(--text-light);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.wb-rank-killer-tag {
    display: inline-block;
    margin-left: 6px;
    padding: 1px 6px;
    font-size: 10px;
    color: #ffd27a;
    background: rgba(255, 140, 0, 0.2);
    border: 1px solid rgba(255, 140, 0, 0.4);
    border-radius: 3px;
}
.wb-rank-dmg {
    color: var(--accent-jade);
    font-variant-numeric: tabular-nums;
    font-weight: 600;
}
.wb-rank-reward {
    grid-column: 2 / -1;
    color: var(--text-gray);
    font-size: 11px;
    margin-top: 2px;
}
.wb-last-result-legend {
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-size: 10px;
    color: var(--text-gray);
    border-top: 1px dashed rgba(201, 153, 58, 0.2);
    padding-top: 6px;
}

/* ===== 灵石财报 ===== */
.ledger-modal-wrapper {
    padding: 10px;
    animation: modalFadeIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.ledger-modal-wrapper .ledger-tabs {
    background: rgba(0, 0, 0, 0.2);
    padding: 6px;
    border-radius: var(--radius-lg);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
}
.ledger-tabs .task-tab {
    padding: 8px 18px;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.ledger-tabs .task-tab:hover {
    color: var(--text-primary);
}
.ledger-tabs .task-tab.active {
    background: linear-gradient(135deg, rgba(201, 153, 58, 0.2), rgba(201, 153, 58, 0.05));
    color: var(--accent-gold);
    box-shadow: 0 2px 8px rgba(0,0,0,0.15), inset 0 1px 0 rgba(255,255,255,0.05);
}
.ledger-sections {
    display: flex;
    gap: 12px;
}
@media (max-width: 600px) {
    .ledger-sections {
        flex-direction: column;
        gap: 10px;
    }
}
.ledger-section {
    flex: 1;
    min-width: 0;
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 10px 12px;
}
.ledger-bar-item {
    margin-bottom: 8px;
    padding: 4px 6px;
    border-radius: var(--radius-sm);
}
.ledger-bar-label {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--text-primary);
    margin-bottom: 8px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}
.ledger-bar-label span:last-child {
    font-weight: bold;
    font-family: var(--font-mono);
}
.ledger-bar-bg {
    width: 100%;
    height: 8px;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 4px;
    overflow: hidden;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.3);
}
.ledger-bar-fill {
    height: 100%;
    border-radius: 4px;
    animation: ledgerBarFillAnim 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) backwards;
    transform-origin: left center;
}
@keyframes ledgerBarFillAnim {
    from { transform: scaleX(0); }
    to { transform: scaleX(1); }
}
