/*
Theme Name: Flyff Universe
Theme URI: https://example.com/
Author: Deerflow
Author URI: https://deerflow.tech
Description: Flyff Universe 游戏数据库网站主题
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: flyff-universe
Tags: game, database, dark-mode, minimal
*/

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg: #ffffff;
    --bg-hover: #f0f0f0;
    --surface: #f5f5f5;
    --surface-dark: #e8e8e8;
    --surface-hover: #ebebeb;
    --border: #e0e0e0;
    --text: #1a1a1a;
    --text-muted: #666;
    --text-secondary: #888;
    --accent: #ff3366;
    --accent-hover: #ff5588;
    --primary: #ff3366;
    
    /* 浅色模式背景纹理 */
    --bg-pattern: 
        radial-gradient(circle at 20% 30%, rgba(139, 92, 246, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(245, 158, 11, 0.05) 0%, transparent 50%),
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 2px,
            rgba(0, 0, 0, 0.015) 2px,
            rgba(0, 0, 0, 0.015) 4px
        ),
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 2px,
            rgba(0, 0, 0, 0.015) 2px,
            rgba(0, 0, 0, 0.015) 4px
        );
    
    /* 侧边栏全局配置 */
    --sidebar-primary-width: 700px;
    --sidebar-secondary-width: 600px;
    --sidebar-tertiary-width: 500px;
    --sidebar-header-padding: 15px 20px;
    --sidebar-content-padding: 20px;
    
    /* 侧边栏 z-index 层级 */
    --z-sidebar-primary: 2147483646;
    --z-sidebar-primary-overlay: 2147483645;
    --z-sidebar-secondary: 2147483648;
    --z-sidebar-secondary-overlay: 2147483647;
    --z-sidebar-tertiary: 2147483650;
    --z-sidebar-tertiary-overlay: 2147483649;
    
    /* 游戏UI颜色 - 浅色模式 */
    --deerflow-border: rgba(139, 92, 246, 0.3);
    --deerflow-hover-bg: rgba(245, 158, 11, 0.1);
    --deerflow-sidebar-bg: rgba(0, 0, 0, 0.03);
    --deerflow-icon-bg: rgba(255, 255, 255, 0.8);
    --game-tab-text: #334155;
    --game-gold-text: #f59e0b;
    --game-gold-text-light: #fbbf24;
    --game-purple-text: #8b5cf6;
    
    /* 表格颜色 - 浅色模式 */
    --table-header-bg: linear-gradient(90deg, rgba(245, 158, 11, 0.08) 0%, rgba(139, 92, 246, 0.08) 100%);
    --table-row-even-bg: rgba(139, 92, 246, 0.05);
    --table-border-divider: rgba(139, 92, 246, 0.2);
    
    /* 稀有度颜色 - 浅色模式 */
    --rarity-normal: #0077cc;
    --rarity-fine: #8b4513;
    --rarity-rare: #008800;
    --rarity-epic: #cc0000;
    --rarity-legendary: #cc0000;
    --rarity-ultimate: #6600cc;
    /* 稀有度背景色 - 浅色模式 */
    --rarity-normal-bg: rgba(120, 217, 255, 0.15);
    --rarity-fine-bg: rgba(196, 98, 0, 0.15);
    --rarity-rare-bg: rgba(0, 170, 0, 0.15);
    --rarity-epic-bg: rgba(210, 0, 0, 0.15);
    --rarity-legendary-bg: rgba(210, 0, 0, 0.15);
    --rarity-ultimate-bg: rgba(127, 0, 255, 0.15);
    
    /* 文章内容样式 */
    --article-bold-color: #ff3366;
    
    /* 等级颜色 - 浅色模式 */
    --rank-normal: #0077cc;
    --rank-fine: #8b4513;
    --rank-rare: #008800;
    --rank-epic: #cc0000;
    --rank-legendary: #cc0000;
    --rank-ultimate: #6600cc;
    
    /* 怪物等级颜色 - 浅色模式 */
    --monster-rank-normal: #0077aa;
    --monster-rank-small: #666666;
    --monster-rank-elite: #005588;
    --monster-rank-beast: #555555;
    --monster-rank-giant: #008800;
    --monster-rank-purple: #7700cc;
    --monster-rank-boss: #bb0000;
    --monster-rank-worldboss: #ff7700;
    --monster-rank-enhanced: #6600cc;
    /* 怪物等级背景色 - 浅色模式 */
    --monster-rank-normal-bg: rgba(120, 217, 255, 0.15);
    --monster-rank-small-bg: rgba(170, 170, 170, 0.15);
    --monster-rank-elite-bg: rgba(0, 119, 170, 0.15);
    --monster-rank-beast-bg: rgba(136, 136, 136, 0.15);
    --monster-rank-giant-bg: rgba(0, 170, 0, 0.15);
    --monster-rank-purple-bg: rgba(153, 0, 255, 0.15);
    --monster-rank-boss-bg: rgba(210, 0, 0, 0.15);
    --monster-rank-worldboss-bg: rgba(255, 153, 0, 0.15);
    --monster-rank-enhanced-bg: rgba(127, 0, 255, 0.15);
    
    /* 任务类型颜色 - 浅色模式 */
    --quest-type-chain-bg: rgba(139, 92, 246, 0.15);
    --quest-type-chain-text: #7c3aed;
    --quest-type-category-bg: rgba(245, 158, 11, 0.15);
    --quest-type-category-text: #ca8a04;
    --quest-type-repeat-bg: rgba(0, 200, 100, 0.15);
    --quest-type-repeat-text: #059669;
    --quest-type-daily-bg: rgba(200, 100, 200, 0.15);
    --quest-type-daily-text: #a855f7;
    --quest-type-normal-bg: rgba(0, 0, 0, 0.05);
    --quest-type-normal-text: #666666;
    
    /* 任务标签颜色 - 浅色模式 */
    --quest-tag-repeat-bg: #c8e6c9;
    --quest-tag-repeat-text: #2e7d32;
    
    /* 任务奖励颜色 - 浅色模式 */
    --reward-gold-text: #b8860b;
    --reward-exp-text: #2e7d32;
    --reward-sp-text: #7b1fa2;
    --reward-inventory-text: #0097a7;
    --reward-items-text: #0288d1;
    --reward-karma-text: #e64a19;
    --reward-count-text: #2e7d32;
    
    /* 生活技能颜色 - 浅色模式 */
    --lifestyle-tab-text: #334155;
}

html.dark-mode, body.dark-mode {
    --bg: #0a0a0a;
    --bg-hover: #151515;
    --surface: #141414;
    --surface-dark: #1a1a1a;
    --surface-hover: #181818;
    --border: #2a2a2a;
    --text: #e0e0e0;
    --text-muted: #888;
    --text-secondary: #999;
    --accent: #ff3366;
    --accent-hover: #ff5588;
    --primary: #ff3366;
    
    /* 深色模式背景纹理 */
    --bg-pattern: 
        radial-gradient(circle at 20% 30%, rgba(139, 92, 246, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(245, 158, 11, 0.03) 0%, transparent 50%),
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 2px,
            rgba(255, 255, 255, 0.008) 2px,
            rgba(255, 255, 255, 0.008) 4px
        ),
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 2px,
            rgba(255, 255, 255, 0.008) 2px,
            rgba(255, 255, 255, 0.008) 4px
        );
    
    /* 游戏UI颜色 - 深色模式 */
    --deerflow-border: rgba(139, 92, 246, 0.4);
    --deerflow-hover-bg: rgba(245, 158, 11, 0.1);
    --deerflow-sidebar-bg: rgba(255, 255, 255, 0.03);
    --deerflow-icon-bg: rgba(30, 30, 30, 0.8);
    --game-tab-text: #e2e8f0;
    --game-gold-text: #f59e0b;
    --game-gold-text-light: #fbbf24;
    --game-purple-text: #8b5cf6;
    
    /* 表格颜色 - 深色模式 */
    --table-header-bg: linear-gradient(90deg, rgba(245, 158, 11, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
    --table-row-even-bg: rgba(139, 92, 246, 0.1);
    --table-border-divider: rgba(139, 92, 246, 0.3);
    
    /* 稀有度颜色 - 深色模式 */
    --rarity-normal: #78d9ff;
    --rarity-fine: #c46200;
    --rarity-rare: #00aa00;
    --rarity-epic: #d20000;
    --rarity-legendary: #d20000;
    --rarity-ultimate: #7f00ff;
    /* 稀有度背景色 - 深色模式 */
    --rarity-normal-bg: rgba(120, 217, 255, 0.15);
    --rarity-fine-bg: rgba(196, 98, 0, 0.15);
    --rarity-rare-bg: rgba(0, 170, 0, 0.15);
    --rarity-epic-bg: rgba(210, 0, 0, 0.15);
    --rarity-legendary-bg: rgba(210, 0, 0, 0.15);
    --rarity-ultimate-bg: rgba(127, 0, 255, 0.15);
    
    /* 等级颜色 - 深色模式 */
    --rank-normal: #78d9ff;
    --rank-fine: #c46200;
    --rank-rare: #00aa00;
    --rank-epic: #d20000;
    --rank-legendary: #d20000;
    --rank-ultimate: #7f00ff;
    
    /* 怪物等级颜色 - 深色模式 */
    --monster-rank-normal: #78d9ff;
    --monster-rank-small: #aaaaaa;
    --monster-rank-elite: #0077aa;
    --monster-rank-beast: #888888;
    --monster-rank-giant: #00aa00;
    --monster-rank-purple: #9900ff;
    --monster-rank-boss: #d20000;
    --monster-rank-worldboss: #ff9900;
    --monster-rank-enhanced: #7f00ff;
    /* 怪物等级背景色 - 深色模式 */
    --monster-rank-normal-bg: rgba(120, 217, 255, 0.15);
    --monster-rank-small-bg: rgba(170, 170, 170, 0.15);
    --monster-rank-elite-bg: rgba(0, 119, 170, 0.15);
    --monster-rank-beast-bg: rgba(136, 136, 136, 0.15);
    --monster-rank-giant-bg: rgba(0, 170, 0, 0.15);
    --monster-rank-purple-bg: rgba(153, 0, 255, 0.15);
    --monster-rank-boss-bg: rgba(210, 0, 0, 0.15);
    --monster-rank-worldboss-bg: rgba(255, 153, 0, 0.15);
    --monster-rank-enhanced-bg: rgba(127, 0, 255, 0.15);
    
    /* 任务类型颜色 - 深色模式 */
    --quest-type-chain-bg: rgba(139, 92, 246, 0.2);
    --quest-type-chain-text: #a78bfa;
    --quest-type-category-bg: rgba(245, 158, 11, 0.2);
    --quest-type-category-text: #fbbf24;
    --quest-type-repeat-bg: rgba(0, 200, 100, 0.2);
    --quest-type-repeat-text: #4ade80;
    --quest-type-daily-bg: rgba(200, 100, 200, 0.2);
    --quest-type-daily-text: #d8b4fe;
    --quest-type-normal-bg: rgba(255, 255, 255, 0.05);
    --quest-type-normal-text: #9ca3af;
    
    /* 任务标签颜色 - 深色模式 */
    --quest-tag-repeat-bg: #1b5e20;
    --quest-tag-repeat-text: #a5d6a7;
    
    /* 任务奖励颜色 - 深色模式 */
    --reward-gold-text: #ffd700;
    --reward-exp-text: #4caf50;
    --reward-sp-text: #9c27b0;
    --reward-inventory-text: #26c6da;
    --reward-items-text: #38bdf8;
    --reward-karma-text: #ff5722;
    --reward-count-text: #33cc33;
    
    /* 生活技能颜色 - 深色模式 */
    --lifestyle-tab-text: #e2e8f0;
    --lifestyle-stat-label: #94a3b8;
    --lifestyle-yield-text: #cbd5e1;
    --lifestyle-yield-more: #94a3b8;
    --lifestyle-gathering-name: #f59e0b;
    
    /* 工具提示颜色 - 深色模式 */
    --tooltip-rarity-normal-border: #78d9ff;
    --tooltip-rarity-fine-border: #c46200;
    --tooltip-rarity-rare-border: #00aa00;
    --tooltip-rarity-epic-border: #d20000;
    --tooltip-rarity-legendary-border: #d20000;
    --tooltip-rarity-ultimate-border: #7f00ff;
    --tooltip-ability-text: #ffeaa1;
    --tooltip-set-name: #78d9ff;
    --tooltip-set-bonus: #ffeaa1;
    
    /* 能力值颜色 - 深色模式 */
    --ability-value: #ffeaa1;
    
    /* 游戏UI其他颜色 - 深色模式 */
    --select-option-group-header: #0077cc;
    --element-resistance-weak-bg: #ff4444;
    --element-resistance-resist-bg: #008800;
    --boolean-badge-yes-bg: rgba(0, 200, 100, 0.2);
    --boolean-badge-yes-text: #00c864;
    --boolean-badge-yes-border: rgba(0, 200, 100, 0.4);
    --boolean-badge-no-bg: rgba(200, 50, 50, 0.2);
    --boolean-badge-no-text: #c83232;
    --boolean-badge-no-border: rgba(200, 50, 50, 0.4);
    --type-badge-main-bg: rgba(255, 51, 102, 0.2);
    --type-badge-main-text: #ff3366;
    --type-badge-dungeon-bg: rgba(153, 102, 255, 0.2);
    --type-badge-dungeon-text: #9966ff;
    --type-badge-instance-bg: rgba(51, 170, 255, 0.2);
    --type-badge-instance-text: #33aaff;
    --type-badge-prison-bg: rgba(255, 170, 51, 0.2);
    --type-badge-prison-text: #ffaa33;
    --type-badge-event-bg: rgba(51, 204, 153, 0.2);
    --type-badge-event-text: #33cc99;
    --monster-tooltip-rank-normal-border: #888888;
    --monster-tooltip-rank-small-border: #78d9ff;
    --monster-tooltip-rank-elite-border: #ff8800;
    --monster-tooltip-rank-beast-border: #00aa00;
    --monster-tooltip-rank-giant-border: #cc6600;
    --monster-tooltip-rank-purple-border: #9900ff;
    --monster-tooltip-rank-boss-border: #d20000;
    --monster-tooltip-rank-worldboss-border: #ff9900;
    --monster-tooltip-rank-enhanced-border: #7f00ff;
    --select-option-group-header-bg: #f0f0f0;
    --npc-info-text: #94a3b8;
    --npc-info-value: #64b5f6;
    --npc-info-bg: #424242;
    --npc-info-border: #bdbdbd;
    --quest-number-bg: #1e3a5f;
    --quest-number-text: #64b5f6;
    --gathering-stat-text: #8b5cf6;
    --gathering-yield-label: #94a3b8;
    --gathering-yield-text: #cbd5e1;
    --recipe-name: #fbbf24;
    --recipe-value: #a78bfa;
    --recipe-material-text: #e2e8f0;
    --recipe-quantity: #a78bfa;
    --achievement-sidebar-bg-start: #1a1a2e;
    --achievement-sidebar-bg-mid: #16213e;
    --achievement-sidebar-bg-end: #0f0f23;
    --achievement-sidebar-header-bg: #1a1a2e;
    --achievement-close-bg: rgba(0, 0, 0, 0.4);
    --achievement-close-text: #e2e8f0;
    --gathering-detail-name: #f59e0b;
    --gathering-info-label: #94a3b8;
    --gathering-info-value: #8b5cf6;
    --gathering-yield-title: #ffffff;
    --gathering-yield-item: #e2e8f0;
    --gathering-chance: #10b981;
    --gathering-chance-bg: rgba(16, 185, 129, 0.1);
    --gathering-chance-border: rgba(16, 185, 129, 0.3);
    --soul-linked-bg: #3e2723;
    --soul-linked-text: #ffab91;
    
    /* 返回按钮颜色 - 深色模式 */
    --back-button-bg: rgba(0, 0, 0, 0.3);
    
    /* 物品侧边栏颜色 - 深色模式 */
    --item-sidebar-section-border: rgba(139, 92, 246, 0.4);
    --item-sidebar-header-bg: linear-gradient(90deg, rgba(245, 158, 11, 0.15) 0%, rgba(139, 92, 246, 0.15) 100%);
    --item-sidebar-close-bg: rgba(0, 0, 0, 0.2);
    --item-sidebar-close-hover-bg: linear-gradient(135deg, rgba(245, 158, 11, 0.2) 0%, rgba(139, 92, 246, 0.2) 100%);
    --item-sidebar-close-hover-shadow: 0 0 20px rgba(245, 158, 11, 0.3);
    --item-sidebar-image-wrapper-bg: rgba(0, 0, 0, 0.2);
    --item-sidebar-image-shadow: drop-shadow(0 0 15px rgba(245, 158, 11, 0.4));
    --item-sidebar-rarity-bg: rgba(0, 0, 0, 0.2);
    --item-sidebar-stat-group-bg: rgba(0, 0, 0, 0.2);
    --item-sidebar-stat-item-border: rgba(139, 92, 246, 0.3);
    --item-sidebar-ability-item-bg: rgba(0, 0, 0, 0.2);
    --item-sidebar-set-item-bg: rgba(0, 0, 0, 0.2);
    
    /* 成就侧边栏颜色 - 深色模式 */
    --achievement-sidebar-overlay-bg: rgba(0, 0, 0, 0.8);
    --achievement-close-hover-shadow: 0 0 20px rgba(245, 158, 11, 0.3);
    
    /* 收集详情颜色 - 深色模式 */
    --gathering-detail-header-bg: linear-gradient(135deg, rgba(245, 158, 11, 0.1) 0%, rgba(239, 68, 68, 0.1) 100%);
    --gathering-detail-icon-shadow: drop-shadow(0 0 10px rgba(245, 158, 11, 0.5));
    --gathering-detail-name-shadow: 0 0 20px rgba(245, 158, 11, 0.5);
    --gathering-detail-info-icon-bg: linear-gradient(135deg, rgba(245, 158, 11, 0.2) 0%, rgba(139, 92, 246, 0.2) 100%);
    --gathering-yield-divider: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.5), transparent);
    --gathering-yield-item-border: rgba(100, 116, 139, 0.3);
    --gathering-yield-item-hover-shadow: 0 0 20px rgba(245, 158, 11, 0.1);
    --gathering-yield-item-icon-bg: linear-gradient(135deg, rgba(245, 158, 11, 0.2) 0%, rgba(139, 92, 246, 0.2) 100%);
    
    /* 配方侧边栏颜色 - 深色模式 */
    --recipe-detail-header-border: rgba(139, 92, 246, 0.5);
    --recipe-item-hover-shadow: 0 2px 15px rgba(251, 191, 36, 0.2);
    
    /* 生活技能标签颜色 - 深色模式 */
    --lifestyle-tab-hover-bg: linear-gradient(135deg, rgba(245, 158, 11, 0.15) 0%, rgba(139, 92, 246, 0.15) 100%);
    --lifestyle-tab-active-bg: linear-gradient(135deg, rgba(245, 158, 11, 0.2) 0%, rgba(239, 68, 68, 0.2) 100%);
    --gathering-card-bg: linear-gradient(180deg, rgba(245, 158, 11, 0.08) 0%, rgba(139, 92, 246, 0.08) 100%);
    --gathering-card-hover-bg: linear-gradient(180deg, rgba(245, 158, 11, 0.15) 0%, rgba(139, 92, 246, 0.15) 100%);
    --gathering-card-icon-shadow: drop-shadow(0 0 10px rgba(245, 158, 11, 0.5));
    --yield-icon-bg: linear-gradient(135deg, rgba(245, 158, 11, 0.2) 0%, rgba(139, 92, 246, 0.2) 100%);
    
    /* NPC 侧边栏颜色 - 深色模式 */
    --npc-sidebar-bg: #1e1e2e;
    --npc-sidebar-header-bg: #1e1e2e;
    --npc-sidebar-header-border: rgba(139, 92, 246, 0.4);
    
    /* 地牢相关颜色 - 深色模式 */
    --dungeon-name: #fbbf24;
    --dungeon-meta-value: #a78bfa;
    --dungeon-monsters-border: rgba(139, 92, 246, 0.5);
    --dungeon-monster-tag-bg: rgba(0, 0, 0, 0.3);
    --dungeon-monster-tag-border: rgba(139, 92, 246, 0.5);
    --sidebar-dungeon-image-bg: rgba(0, 0, 0, 0.4);
    --sidebar-dungeon-image-border: rgba(139, 92, 246, 0.5);
    --sidebar-dungeon-title: #fbbf24;
    --sidebar-section-title: #fbbf24;
    --sidebar-section-title-border: rgba(139, 92, 246, 0.5);
    --sidebar-info-value: #a78bfa;
    --sidebar-monster-item-bg: rgba(0, 0, 0, 0.3);
    --sidebar-monster-item-border: rgba(139, 92, 246, 0.5);
    --sidebar-mod-item-bg: rgba(0, 0, 0, 0.3);
    --sidebar-mod-item-border: rgba(139, 92, 246, 0.5);
    --sidebar-mod-value: #a78bfa;
    --sidebar-curse-item-bg: rgba(0, 0, 0, 0.3);
    --sidebar-curse-item-border: rgba(139, 92, 246, 0.5);
    --sidebar-curse-name: #fbbf24;
    --sidebar-curse-cost-item: #a78bfa;
    
    /* 地牢难度颜色 - 深色模式 */
    --dungeon-difficulty-story-bg: rgba(59, 130, 246, 0.4);
    --dungeon-difficulty-story-text: #60a5fa;
    --dungeon-difficulty-story-border: rgba(59, 130, 246, 0.6);
    --dungeon-difficulty-normal-bg: rgba(34, 197, 94, 0.4);
    --dungeon-difficulty-normal-text: #34d399;
    --dungeon-difficulty-normal-border: rgba(34, 197, 94, 0.6);
    --dungeon-difficulty-medium-bg: rgba(245, 158, 11, 0.4);
    --dungeon-difficulty-medium-text: #fbbf24;
    --dungeon-difficulty-medium-border: rgba(245, 158, 11, 0.6);
    --dungeon-difficulty-hard-bg: rgba(234, 88, 12, 0.4);
    --dungeon-difficulty-hard-text: #fb923c;
    --dungeon-difficulty-hard-border: rgba(234, 88, 12, 0.6);
    --dungeon-difficulty-extrahard-bg: rgba(220, 38, 38, 0.4);
    --dungeon-difficulty-extrahard-text: #f87171;
    --dungeon-difficulty-extrahard-border: rgba(220, 38, 38, 0.6);
    --dungeon-difficulty-nightmare-bg: rgba(236, 72, 153, 0.4);
    --dungeon-difficulty-nightmare-text: #f472b6;
    --dungeon-difficulty-nightmare-border: rgba(236, 72, 153, 0.6);
    --dungeon-difficulty-cursed-bg: rgba(139, 92, 246, 0.4);
    --dungeon-difficulty-cursed-text: #a78bfa;
    --dungeon-difficulty-cursed-border: rgba(139, 92, 246, 0.6);
    --dungeon-difficulty-infernal-bg: rgba(15, 23, 42, 0.4);
    --dungeon-difficulty-infernal-text: #f1f5f9;
    --dungeon-difficulty-infernal-border: rgba(15, 23, 42, 0.6);
}

/* ========================================
   GAME UI DESIGN SYSTEM - 游戏UI设计系统
   ======================================== */

/* 游戏UI主题变量 */
:root {
    /* 游戏配色 */
    --game-gold: #f59e0b;
    --game-gold-light: #fbbf24;
    --game-purple: #8b5cf6;
    --game-purple-light: #a78bfa;
    --game-red: #ef4444;
    --game-red-light: #f87171;
    --game-green: #059669;
    --game-green-light: #10b981;
    --game-cyan: #00aa00;
    --game-blue: #0077cc;
    --game-blue-light: #78d9ff;
    --game-blue-dark: #0066aa;
    --game-brown: #8b4513;
    --game-amber: #c46200;
    --game-violet: #7f00ff;
    --game-pink: #e91e63;
    --game-teal: #26c6da;
    --game-indigo: #6366f1;
    
    /* 游戏装饰 */
    --game-corner-sm: 8px;
    --game-corner-md: 14px;
    --game-corner-lg: 18px;
    --game-border-thin: 1px;
    --game-border-thick: 1px;
    
    /* 游戏特效 */
    --game-glow-gold: 0 0 20px rgba(245, 158, 11, 0.3);
    --game-glow-purple: 0 0 20px rgba(139, 92, 246, 0.3);
    
    /* 游戏UI颜色 - 浅色模式 */
    --deerflow-border: rgba(139, 92, 246, 0.3);
    --deerflow-hover-bg: rgba(245, 158, 11, 0.05);
    --deerflow-sidebar-bg: rgba(0, 0, 0, 0.03);
    --deerflow-icon-bg: rgba(255, 255, 255, 0.8);
    --game-tab-text: #475569;
    --game-gold-text: #d97706;
    --game-gold-text-light: #f59e0b;
    --game-purple-text: #7c3aed;
    
    /* 表格颜色 - 浅色模式 */
    --table-header-bg: linear-gradient(90deg, rgba(245, 158, 11, 0.05) 0%, rgba(139, 92, 246, 0.05) 100%);
    --table-row-even-bg: rgba(139, 92, 246, 0.03);
    --table-border-divider: rgba(139, 92, 246, 0.2);
    
    /* 稀有度颜色 - 浅色模式 */
    --rarity-normal: #0077cc;
    --rarity-fine: #8b4513;
    --rarity-rare: #008800;
    --rarity-epic: #cc0000;
    --rarity-legendary: #cc0000;
    --rarity-ultimate: #6600cc;
    /* 稀有度背景色 - 浅色模式 */
    --rarity-normal-bg: rgba(0, 119, 204, 0.15);
    --rarity-fine-bg: rgba(139, 69, 19, 0.15);
    --rarity-rare-bg: rgba(0, 136, 0, 0.15);
    --rarity-epic-bg: rgba(204, 0, 0, 0.15);
    --rarity-legendary-bg: rgba(204, 0, 0, 0.15);
    --rarity-ultimate-bg: rgba(102, 0, 204, 0.15);
    
    /* 等级颜色 - 浅色模式 */
    --rank-normal: #0077cc;
    --rank-fine: #8b4513;
    --rank-rare: #008800;
    --rank-epic: #cc0000;
    --rank-legendary: #cc0000;
    --rank-ultimate: #6600cc;
    
    /* 怪物等级颜色 - 浅色模式 */
    --monster-rank-normal: #0077aa;
    --monster-rank-small: #666666;
    --monster-rank-elite: #005588;
    --monster-rank-beast: #555555;
    --monster-rank-giant: #008800;
    --monster-rank-purple: #7700cc;
    --monster-rank-boss: #bb0000;
    --monster-rank-worldboss: #ff7700;
    --monster-rank-enhanced: #6600cc;
    /* 怪物等级背景色 - 浅色模式 */
    --monster-rank-normal-bg: rgba(0, 119, 170, 0.15);
    --monster-rank-small-bg: rgba(102, 102, 102, 0.15);
    --monster-rank-elite-bg: rgba(0, 85, 136, 0.15);
    --monster-rank-beast-bg: rgba(85, 85, 85, 0.15);
    --monster-rank-giant-bg: rgba(0, 136, 0, 0.15);
    --monster-rank-purple-bg: rgba(119, 0, 204, 0.15);
    --monster-rank-boss-bg: rgba(187, 0, 0, 0.15);
    --monster-rank-worldboss-bg: rgba(255, 119, 0, 0.15);
    --monster-rank-enhanced-bg: rgba(102, 0, 204, 0.15);
    
    /* 任务类型颜色 - 浅色模式 */
    --quest-type-chain-bg: rgba(139, 92, 246, 0.1);
    --quest-type-chain-text: #8b5cf6;
    --quest-type-category-bg: rgba(245, 158, 11, 0.1);
    --quest-type-category-text: #f59e0b;
    --quest-type-repeat-bg: rgba(0, 200, 100, 0.1);
    --quest-type-repeat-text: #00c864;
    --quest-type-daily-bg: rgba(200, 100, 200, 0.1);
    --quest-type-daily-text: #c864c8;
    --quest-type-normal-bg: rgba(0, 0, 0, 0.05);
    --quest-type-normal-text: #666666;
    
    /* 任务标签颜色 - 浅色模式 */
    --quest-tag-repeat-bg: #e8f5e9;
    --quest-tag-repeat-text: #388e3c;
    --quest-tag-repeat-dark-bg: #1b5e20;
    --quest-tag-repeat-dark-text: #a5d6a7;
    
    /* 任务奖励颜色 - 浅色模式 */
    --reward-gold-text: #ffd700;
    --reward-exp-text: #4caf50;
    --reward-sp-text: #9c27b0;
    --reward-inventory-text: #2196f3;
    --reward-items-text: #38bdf8;
    --reward-karma-text: #ff5722;
    --reward-count-text: #33cc33;
    
    /* 生活技能颜色 - 浅色模式 */
    --lifestyle-tab-text: #475569;
    --lifestyle-stat-label: #64748b;
    --lifestyle-yield-text: #334155;
    --lifestyle-yield-more: #64748b;
    --lifestyle-gathering-name: #d97706;
    
    /* 工具提示颜色 - 浅色模式 */
    --tooltip-rarity-normal-border: #0077cc;
    --tooltip-rarity-fine-border: #8b4513;
    --tooltip-rarity-rare-border: #008800;
    --tooltip-rarity-epic-border: #cc0000;
    --tooltip-rarity-legendary-border: #cc0000;
    --tooltip-rarity-ultimate-border: #6600cc;
    --tooltip-ability-text: #cc8800;
    --tooltip-set-name: #0066aa;
    --tooltip-set-bonus: #cc8800;
    
    /* 能力值颜色 - 浅色模式 */
    --ability-value: #cc8800;
    
    /* 游戏UI其他颜色 - 浅色模式 */
    --select-option-group-header: #78d9ff;
    --element-resistance-weak-bg: #ff4444;
    --element-resistance-resist-bg: #008800;
    --boolean-badge-yes-bg: rgba(0, 200, 100, 0.2);
    --boolean-badge-yes-text: #00c864;
    --boolean-badge-yes-border: rgba(0, 200, 100, 0.4);
    --boolean-badge-no-bg: rgba(200, 50, 50, 0.2);
    --boolean-badge-no-text: #c83232;
    --boolean-badge-no-border: rgba(200, 50, 50, 0.4);
    --type-badge-main-bg: rgba(255, 51, 102, 0.2);
    --type-badge-main-text: #ff3366;
    --type-badge-dungeon-bg: rgba(153, 102, 255, 0.2);
    --type-badge-dungeon-text: #9966ff;
    --type-badge-instance-bg: rgba(51, 170, 255, 0.2);
    --type-badge-instance-text: #33aaff;
    --type-badge-prison-bg: rgba(255, 170, 51, 0.2);
    --type-badge-prison-text: #ffaa33;
    --type-badge-event-bg: rgba(51, 204, 153, 0.2);
    --type-badge-event-text: #33cc99;
    --monster-tooltip-rank-normal-border: #888888;
    --monster-tooltip-rank-small-border: #0088cc;
    --monster-tooltip-rank-elite-border: #ff8800;
    --monster-tooltip-rank-beast-border: #00aa00;
    --monster-tooltip-rank-giant-border: #cc6600;
    --monster-tooltip-rank-purple-border: #aa00aa;
    --monster-tooltip-rank-boss-border: #cc0000;
    --monster-tooltip-rank-worldboss-border: #ff6600;
    --monster-tooltip-rank-enhanced-border: #aaaa00;
    --select-option-group-header-bg: #f0f0f0;
    --npc-info-text: #64748b;
    --npc-info-value: #1976d2;
    --npc-info-bg: #e0e0e0;
    --npc-info-border: #bdbdbd;
    --quest-number-bg: #e3f2fd;
    --quest-number-text: #1976d2;
    --gathering-stat-text: #7c3aed;
    --gathering-yield-label: #64748b;
    --gathering-yield-text: #334155;
    --recipe-name: #fbbf24;
    --recipe-value: #a78bfa;
    --recipe-material-text: #e2e8f0;
    --recipe-quantity: #a78bfa;
    --achievement-sidebar-bg-start: #f8fafc;
    --achievement-sidebar-bg-mid: #f1f5f9;
    --achievement-sidebar-bg-end: #e2e8f0;
    --achievement-sidebar-header-bg: #f8fafc;
    --achievement-close-bg: rgba(0, 0, 0, 0.05);
    --achievement-close-text: #475569;
    --gathering-detail-name: #d97706;
    --gathering-info-label: #64748b;
    --gathering-info-value: #7c3aed;
    --gathering-yield-title: #1e293b;
    --gathering-yield-item: #334155;
    --gathering-chance: #059669;
    --gathering-chance-bg: rgba(16, 185, 129, 0.1);
    --gathering-chance-border: rgba(16, 185, 129, 0.3);
    --soul-linked-bg: #fff3e0;
    --soul-linked-text: #f57c00;
}

/* 游戏UI装饰基类 - 卡片 */
.game-ui-card {
    position: relative;
    border: var(--game-border-thin) solid rgba(139, 92, 246, 0.3);
    border-radius: 10px;
}

.game-ui-card::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    width: var(--game-corner-md);
    height: var(--game-corner-md);
    border-top: 1px solid var(--game-gold);
    border-left: 1px solid var(--game-gold);
    border-top-left-radius: 10px;
}

.game-ui-card::after {
    content: '';
    position: absolute;
    bottom: -1px;
    right: -1px;
    width: var(--game-corner-md);
    height: var(--game-corner-md);
    border-bottom: 1px solid var(--game-purple);
    border-right: 1px solid var(--game-purple);
    border-bottom-right-radius: 10px;
}

.game-ui-card:hover {
    border-color: var(--game-gold);
    box-shadow: var(--game-glow-gold);
}

/* 游戏UI标题样式 */
.game-ui-title {
    color: var(--game-gold);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* 游戏UI标签/按钮样式 */
.game-ui-tab {
    position: relative;
    padding: 14px 28px;
    background: var(--deerflow-sidebar-bg);
    border: var(--game-border-thin) solid var(--deerflow-border);
    border-radius: 5px;
    cursor: pointer;
    color: var(--game-tab-text);
    font-weight: 700;
    transition: all 0.2s;
}

.game-ui-tab::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    width: var(--game-corner-sm);
    height: var(--game-corner-sm);
    border-top: 1px solid var(--game-purple);
    border-left: 1px solid var(--game-purple);
    border-top-left-radius: 5px;
}

.game-ui-tab::after {
    content: '';
    position: absolute;
    bottom: -1px;
    right: -1px;
    width: var(--game-corner-sm);
    height: var(--game-corner-sm);
    border-bottom: 1px solid var(--game-purple);
    border-right: 1px solid var(--game-purple);
    border-bottom-right-radius: 5px;
}

.game-ui-tab:hover,
.game-ui-tab.active {
    border-color: var(--game-gold);
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
    color: var(--game-gold);
    box-shadow: var(--game-glow-gold);
}

/* 游戏UI图标样式 */
.game-ui-icon {
    filter: drop-shadow(0 0 10px rgba(245, 158, 11, 0.3));
}

/* 游戏UI装饰标题 */
.game-ui-section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--game-gold);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.game-ui-section-title::before,
.game-ui-section-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.4), transparent);
}

/* 游戏UI几率/数值样式 */
.game-ui-stat-value {
    color: var(--game-purple);
    font-weight: 800;
    font-family: monospace;
}

/* 游戏UI几率标签 */
.game-ui-chance-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 0;
    font-size: 12px;
    font-weight: 600;
    color: var(--game-purple);
}

/* 战利品区域样式 */
.deerflow-sidebar-section {
    margin-bottom: 30px;
    padding: 20px;
    background: var(--surface);
    border: 1px solid var(--deerflow-border);
}

.deerflow-section-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--accent);
    border-bottom: 1px solid var(--deerflow-border);
    padding-bottom: 10px;
}

.deerflow-loot-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.deerflow-loot-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--deerflow-sidebar-bg);
    border: 1px solid var(--deerflow-border);
    border-radius: 0;
    transition: all 0.2s;
    cursor: pointer;
}

.deerflow-loot-item:hover {
    border-color: var(--game-gold);
    background: var(--deerflow-hover-bg);
    box-shadow: 0 2px 8px rgba(139, 92, 246, 0.1);
}

.deerflow-loot-icon {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    border: 1px solid var(--deerflow-border);
    border-radius: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--deerflow-icon-bg);
}

.deerflow-loot-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

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

.deerflow-loot-name {
    font-weight: 600;
    margin-bottom: 4px;
    font-size: 0.95rem;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.deerflow-loot-probability {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* 稀有度颜色 */
.deerflow-loot-name.rarity-普通 {
    color: var(--rarity-normal);
}

.deerflow-loot-name.rarity-精良 {
    color: var(--rarity-fine);
}

.deerflow-loot-name.rarity-稀有 {
    color: var(--rarity-rare);
}

.deerflow-loot-name.rarity-传说 {
    color: var(--rarity-legendary);
}

.deerflow-loot-name.rarity-史诗 {
    color: var(--rarity-epic);
}

.deerflow-loot-name.rarity-终极 {
    color: var(--rarity-ultimate);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .deerflow-loot-grid {
        grid-template-columns: 1fr;
    }
    
    .deerflow-loot-item {
        padding: 10px;
    }
    
    .deerflow-loot-icon {
        width: 40px;
        height: 40px;
    }
}

/* 游戏UI几率标签 */
.game-ui-chance-tag {
    color: var(--game-green);
    font-weight: 800;
    font-family: monospace;
    padding: 6px 12px;
    background: var(--gathering-chance-bg);
    border: 1px solid var(--gathering-chance-border);
    border-radius: 4px;
}

body {
    font-family: system-ui, -apple-system, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    background-image: var(--bg-pattern);
    background-attachment: fixed;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.header {
    border: var(--game-border-thin) solid rgba(139, 92, 246, 0.3);
    padding: 20px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    background: var(--surface);
    border-radius: 5px;
}

/* Header 游戏UI装饰 */
.header::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    width: var(--game-corner-md);
    height: var(--game-corner-md);
    border-top: 1px solid var(--game-gold);
    border-left: 1px solid var(--game-gold);
    border-top-left-radius: 5px;
}

.header::after {
    content: '';
    position: absolute;
    bottom: -1px;
    right: -1px;
    width: var(--game-corner-md);
    height: var(--game-corner-md);
    border-bottom: 1px solid var(--game-purple);
    border-right: 1px solid var(--game-purple);
    border-bottom-right-radius: 5px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--game-gold);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-left: 20px;
}

.theme-toggle {
    background: var(--surface);
    border: var(--game-border-thin) solid rgba(139, 92, 246, 0.3);
    color: var(--text);
    padding: 10px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.2s;
    width: 44px;
    height: 44px;
    font-weight: 700;
    margin-right: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-toggle:hover {
    border-color: var(--game-gold);
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
    color: var(--game-gold);
    box-shadow: var(--game-glow-gold);
}

.nav {
    display: flex;
    gap: 30px;
}

.nav a {
    position: relative;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 1em;
    transition: all 0.2s;
    padding: 6px 12px;
    font-weight: 600;
    border: 1px solid transparent;
    border-radius: 5px;
}

.nav a:hover,
.nav a.active {
    color: var(--game-gold);
    border-color: rgba(245, 158, 11, 0.3);
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.08) 0%, rgba(139, 92, 246, 0.08) 100%);
}

/* 导航链接游戏UI装饰 - 已禁用 */

/* 导航下拉菜单 */
.nav-dropdown {
    position: relative;
    display: inline-block;
}

.nav-dropdown > a {
    display: flex;
    align-items: center;
    gap: 5px;
}

.dropdown-arrow {
    font-size: 0.7rem;
    transition: transform 0.2s;
}

.nav-dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}

.nav-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--surface);
    border: var(--game-border-thin) solid rgba(139, 92, 246, 0.3);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    margin-top: 0;
    padding: 4px;
    display: flex;
    flex-direction: column;
    gap: 1px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.15s, visibility 0.15s;
    min-width: 140px;
    width: auto;
}

/* 下拉菜单游戏UI装饰 - 已禁用 */

.nav-dropdown::before {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: 15px;
}

.nav-dropdown:hover .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
}

.nav-dropdown-menu a {
    position: relative;
    display: flex;
    align-items: center;
    padding: 4px 10px;
    color: var(--text-muted);
    text-decoration: none;
    transition: all 0.2s;
    white-space: nowrap;
    border: 1px solid transparent;
    font-weight: 600;
    font-size: 0.9rem;
    gap: 8px;
    border-radius: 5px;
}

.menu-text {
    flex: 1;
    text-align: left;
}

.menu-icon {
    font-size: 1rem;
    width: 20px;
    text-align: center;
    flex-shrink: 0;
}

.nav-dropdown-menu a:hover,
.nav-dropdown-menu a.active {
    color: var(--game-gold);
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
    border-color: rgba(245, 158, 11, 0.3);
}

/* 下拉菜单链接游戏UI装饰 */
/* 菜单项游戏UI装饰 - 已禁用 */

/* 二级菜单容器 */
.nav-dropdown-item {
    position: relative;
    display: block;
}

.nav-dropdown-item::before {
    content: '';
    position: absolute;
    top: 0;
    right: -10px;
    width: 10px;
    height: 100%;
}

.nav-dropdown-item > a {
    display: flex;
    align-items: center;
    gap: 8px;
}

.dropdown-arrow-small {
    font-size: 1rem;
    width: 12px;
    text-align: center;
    flex-shrink: 0;
}

/* 二级子菜单 */
.nav-dropdown-submenu {
    position: absolute;
    top: 0;
    left: 100%;
    margin-left: 4px;
    background: var(--surface);
    border: var(--game-border-thin) solid rgba(139, 92, 246, 0.3);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 1001;
    padding: 4px;
    min-width: 140px;
    width: auto;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.15s, visibility 0.15s;
    display: flex;
    flex-direction: column;
    gap: 1px;
}

/* 二级菜单游戏UI装饰 - 已禁用 */

/* 悬停显示二级菜单 */
.nav-dropdown-item:hover .nav-dropdown-submenu {
    opacity: 1;
    visibility: visible;
}

.nav-dropdown-submenu a {
    position: relative;
    display: flex;
    align-items: center;
    padding: 4px 10px;
    color: var(--text-muted);
    text-decoration: none;
    transition: all 0.2s;
    white-space: nowrap;
    border: 1px solid transparent;
    font-weight: 600;
    font-size: 0.85rem;
    gap: 8px;
    border-radius: 5px;
}

.nav-dropdown-submenu a:hover,
.nav-dropdown-submenu a.active {
    color: var(--game-gold);
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
    border-color: rgba(245, 158, 11, 0.3);
}

/* 二级菜单项游戏UI装饰 - 已禁用 */

.main {
    padding: 20px 0;
}

.main.non-home {
    padding: 2px;
}

.hero {
    text-align: center;
    margin-bottom: 60px;
    padding: 40px;
    position: relative;
    border: var(--game-border-thin) solid rgba(139, 92, 246, 0.3);
    background: linear-gradient(180deg, rgba(245, 158, 11, 0.03) 0%, rgba(139, 92, 246, 0.03) 100%);
    border-radius: 5px;
}

/* Hero 游戏UI装饰 */
.hero::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    width: var(--game-corner-lg);
    height: var(--game-corner-lg);
    border-top: 1px solid var(--game-gold);
    border-left: 1px solid var(--game-gold);
    border-top-left-radius: 5px;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -1px;
    right: -1px;
    width: var(--game-corner-lg);
    height: var(--game-corner-lg);
    border-bottom: 1px solid var(--game-purple);
    border-right: 1px solid var(--game-purple);
    border-bottom-right-radius: 5px;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 15px;
    letter-spacing: 1px;
    color: var(--game-gold);
    text-transform: uppercase;
    text-shadow: 0 0 20px rgba(245, 158, 11, 0.2);
}

.hero p {
    color: var(--text-muted);
    font-size: 1.1rem;
    font-weight: 500;
}

.subtitle {
    text-align: center;
    margin-bottom: 20px;
    padding: 20px;
    position: relative;
}

.subtitle a {
    display: inline-block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--game-gold);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 10px 30px;
    border: var(--game-border-thin) solid rgba(139, 92, 246, 0.3);
    border-radius: 5px;
    background: linear-gradient(180deg, rgba(245, 158, 11, 0.03) 0%, rgba(139, 92, 246, 0.03) 100%);
    position: relative;
    transition: all 0.2s;
}

.subtitle a::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    width: var(--game-corner-md);
    height: var(--game-corner-md);
    border-top: 1px solid var(--game-gold);
    border-left: 1px solid var(--game-gold);
    border-top-left-radius: 5px;
}

.subtitle a::after {
    content: '';
    position: absolute;
    bottom: -1px;
    right: -1px;
    width: var(--game-corner-md);
    height: var(--game-corner-md);
    border-bottom: 1px solid var(--game-purple);
    border-right: 1px solid var(--game-purple);
    border-bottom-right-radius: 5px;
}

.subtitle a:hover {
    border-color: var(--game-gold);
    box-shadow: var(--game-glow-gold);
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.08) 0%, rgba(139, 92, 246, 0.08) 100%);
}

.subtitle-divider {
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(245, 158, 11, 0.5), rgba(139, 92, 246, 0.5), transparent);
    margin: 0 auto 40px;
    max-width: 600px;
    position: relative;
}

.subtitle-divider::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 12px;
    height: 12px;
    background: var(--game-gold);
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.5);
}

.breadcrumb {
    margin: 20px 0;
    font-size: 14px;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    max-width: 1600px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 0px;
    padding-right: 0px;
}

.article-category-content .breadcrumb,
.guide-content .breadcrumb {
    max-width: 1600px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 0px;
    padding-right: 0px;
}

.breadcrumb a {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    background: transparent;
    border: 1px solid transparent;
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 600;
    border-radius: 5px;
    transition: all 0.2s ease;
    position: relative;
}

.breadcrumb a::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    width: 10px;
    height: 10px;
    border-top: 1px solid transparent;
    border-left: 1px solid transparent;
    border-top-left-radius: 5px;
}

.breadcrumb a::after {
    content: '';
    position: absolute;
    bottom: -1px;
    right: -1px;
    width: 10px;
    height: 10px;
    border-bottom: 1px solid transparent;
    border-right: 1px solid transparent;
    border-bottom-right-radius: 5px;
}

.breadcrumb a:hover {
    color: var(--game-gold);
    border-color: rgba(245, 158, 11, 0.3);
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.08) 0%, rgba(139, 92, 246, 0.08) 100%);
}

.breadcrumb a:hover::before {
    border-top: 1px solid var(--game-gold);
    border-left: 1px solid var(--game-gold);
}

.breadcrumb a:hover::after {
    border-bottom: 1px solid var(--game-gold);
    border-right: 1px solid var(--game-gold);
}

.breadcrumb span {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    background: transparent;
    border: 1px solid transparent;
    color: var(--text-muted);
    font-weight: 600;
    border-radius: 0;
    position: relative;
}

.breadcrumb span::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    width: 10px;
    height: 10px;
    border-top: 1px solid transparent;
    border-left: 1px solid transparent;
}

.breadcrumb span::after {
    content: '';
    position: absolute;
    bottom: -1px;
    right: -1px;
    width: 10px;
    height: 10px;
    border-bottom: 1px solid transparent;
    border-right: 1px solid transparent;
}

.breadcrumb span.current,
.breadcrumb a.current {
    color: var(--game-gold);
    border-color: rgba(245, 158, 11, 0.3);
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.08) 0%, rgba(139, 92, 246, 0.08) 100%);
}

.breadcrumb span.current::before,
.breadcrumb a.current::before {
    border-top: 1px solid var(--game-gold);
    border-left: 1px solid var(--game-gold);
}

.breadcrumb span.current::after,
.breadcrumb a.current::after {
    border-bottom: 1px solid var(--game-gold);
    border-right: 1px solid var(--game-gold);
}

/* 页面说明区域 */
.page-description {
    margin: 20px 0;
    max-width: 1600px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 0px;
    padding-right: 0px;
}

.page-description-content {
    background: var(--surface);
    border: 1px solid var(--deerflow-border);
    padding: 25px 30px;
    position: relative;
    transition: all 0.2s;
    color: var(--game-gold);
    border-radius: 5px;
}

/* 页面说明游戏UI装饰 */
.page-description-content::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    width: 12px;
    height: 12px;
    border-top: 1px solid var(--game-gold);
    border-left: 1px solid var(--game-gold);
    border-top-left-radius: 5px;
}

.page-description-content::after {
    content: '';
    position: absolute;
    bottom: -1px;
    right: -1px;
    width: 12px;
    height: 12px;
    border-bottom: 1px solid var(--game-purple);
    border-right: 1px solid var(--game-purple);
    border-bottom-right-radius: 5px;
}

.page-description-content p {
    margin: 0 0 15px 0;
    color: var(--text);
    line-height: 1.8;
    font-size: 0.95rem;
}

.page-description-content p:last-child {
    margin-bottom: 0;
}

.page-description-content h1,
.page-description-content h2,
.page-description-content h3,
.page-description-content h4 {
    color: var(--game-gold);
    margin: 0 0 10px 0;
}

.page-description-content ul,
.page-description-content ol {
    margin: 15px 0;
    padding-left: 25px;
}

.page-description-content li {
    margin: 8px 0;
    color: var(--text);
    line-height: 1.6;
}

.page-description-content a {
    color: var(--accent);
    text-decoration: underline;
    transition: all 0.2s;
}

.page-description-content a:hover {
    color: var(--game-gold);
}

.data-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 15px;
}

.card {
    position: relative;
    background: var(--surface);
    border: var(--game-border-thin) solid rgba(139, 92, 246, 0.3);
    padding: 25px 20px;
    text-align: center;
    text-decoration: none;
    color: var(--text);
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: all 0.2s;
    border-radius: 5px;
}

/* 卡片游戏UI装饰 */
.card::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    width: var(--game-corner-md);
    height: var(--game-corner-md);
    border-top: 1px solid var(--game-gold);
    border-left: 1px solid var(--game-gold);
    border-top-left-radius: 5px;
}

.card::after {
    content: '';
    position: absolute;
    bottom: -1px;
    right: -1px;
    width: var(--game-corner-md);
    height: var(--game-corner-md);
    border-bottom: 1px solid var(--game-purple);
    border-right: 1px solid var(--game-purple);
    border-bottom-right-radius: 5px;
}

.card:hover {
    border-color: var(--game-gold);
    transform: translateY(-2px);
    box-shadow: var(--game-glow-gold);
    background: linear-gradient(180deg, rgba(245, 158, 11, 0.05) 0%, rgba(139, 92, 246, 0.05) 100%);
}

.card .icon {
    font-size: 2.2rem;
    filter: drop-shadow(0 0 10px rgba(245, 158, 11, 0.3));
}

.card .title {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text);
    transition: color 0.2s;
}

.card:hover .title {
    color: var(--game-gold);
}

.footer {
    padding: 30px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Footer 游戏UI装饰 - 已禁用 */

.deerflow-badge {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
}

.deerflow-badge:hover {
    color: var(--text);
}

@media (max-width: 768px) {
    .header {
        flex-direction: column;
        gap: 15px;
    }

    .nav {
        gap: 20px;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .data-grid {
        grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
        gap: 10px;
    }

    .card {
        padding: 20px 15px;
    }

    .footer {
        flex-direction: column;
        gap: 10px;
    }
}

.filters {
    background: var(--surface);
    border: 1px solid var(--deerflow-border);
    padding: 20px;
    margin-bottom: 30px;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    align-items: end;
    position: relative;
    border-radius: 5px;
}

/* 游戏UI装饰 - 筛选器 */
.filters::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    width: 14px;
    height: 14px;
    border-top: 1px solid var(--game-gold);
    border-left: 1px solid var(--game-gold);
    border-top-left-radius: 5px;
}

.filters::after {
    content: '';
    position: absolute;
    bottom: -1px;
    right: -1px;
    width: 14px;
    height: 14px;
    border-bottom: 1px solid var(--game-purple);
    border-right: 1px solid var(--game-purple);
    border-bottom-right-radius: 5px;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.filter-group label {
    font-size: 0.8rem;
    color: var(--game-gold-text);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-group input,
.filter-group select,
.select-header {
    background: var(--bg);
    border: 1px solid var(--deerflow-border);
    color: var(--text);
    padding: 8px 12px;
    font-size: 0.9rem;
    min-width: 150px;
    height: 40px;
    box-sizing: border-box;
    border-radius: 0;
    position: relative;
}

.filter-group input:focus,
.filter-group select:focus {
    outline: none;
    border-color: var(--game-gold);
    box-shadow: var(--game-glow-gold);
}

.clear-btn {
    position: relative;
    background: var(--surface);
    border: 1px solid var(--deerflow-border);
    color: var(--text);
    padding: 8px 20px;
    cursor: pointer;
    transition: all 0.2s;
    border-radius: 0;
    font-weight: 700;
    height: 40px;
}

/* 游戏UI装饰 - 清除按钮 */
.clear-btn::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    width: 10px;
    height: 10px;
    border-top: 1px solid var(--game-purple);
    border-left: 1px solid var(--game-purple);
    border-radius: 0;
}

.clear-btn::after {
    content: '';
    position: absolute;
    bottom: -1px;
    right: -1px;
    width: 10px;
    height: 10px;
    border-bottom: 1px solid var(--game-purple);
    border-right: 1px solid var(--game-purple);
    border-radius: 0;
}

.clear-btn:hover {
    border-color: var(--game-gold);
    background: var(--deerflow-hover-bg);
    color: var(--game-gold);
    box-shadow: var(--game-glow-gold);
}

.results-count {
    color: var(--text-muted);
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.items-table,
.monsters-table,
.worlds-table,
.npcs-table,
.skills-table,
.quests-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--surface);
    table-layout: fixed !important;
}

/* 表格容器 */
.table-container {
    position: relative;
    border: 1px solid var(--deerflow-border);
    border-radius: 5px;
    overflow: hidden;
}

/* 游戏UI装饰 - 表格 */
.table-container::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    width: 14px;
    height: 14px;
    border-top: 1px solid var(--game-gold);
    border-left: 1px solid var(--game-gold);
    border-top-left-radius: 5px;
    z-index: 10;
}

.table-container::after {
    content: '';
    position: absolute;
    bottom: -1px;
    right: -1px;
    width: 14px;
    height: 14px;
    border-bottom: 1px solid var(--game-purple);
    border-right: 1px solid var(--game-purple);
    border-bottom-right-radius: 5px;
    z-index: 10;
}

.items-table th,
.items-table td,
.monsters-table th,
.monsters-table td,
.worlds-table th,
.worlds-table td,
.npcs-table th,
.npcs-table td,
.skills-table th,
.skills-table td,
.quests-table th,
.quests-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid var(--table-border-divider);
}

/* 物品表格 - 为每一列设置明确宽度，确保表头和单元格完美对齐 */
/* 关键修复：确保表头(th)和单元格(td)的所有属性完全一致 */
.items-table th:nth-child(1),
.items-table td:nth-child(1) {
    padding: 5px 8px !important;
    text-align: center !important;
    vertical-align: middle !important;
    width: 90px !important;
    min-width: 90px !important;
    max-width: 90px !important;
    white-space: nowrap !important;
    height: 55px !important;
}

.items-table th:nth-child(1) {
    line-height: normal !important;
    display: table-cell !important;
    vertical-align: middle !important;
}

/* 统一表格行高 */
.items-table tr,
.npcs-table tr {
    height: 55px !important;
}

.items-table th,
.items-table td,
.npcs-table th,
.npcs-table td {
    vertical-align: middle !important;
    display: table-cell !important;
}

/* NPC表格第一列 */
.npcs-table th:nth-child(1),
.npcs-table td:nth-child(1) {
    padding: 5px 8px !important;
    text-align: center !important;
    vertical-align: middle !important;
    width: 90px !important;
    min-width: 90px !important;
    max-width: 90px !important;
    white-space: nowrap !important;
    height: 55px !important;
}

.items-table th:nth-child(2),
.items-table td:nth-child(2) {
    padding: 12px 15px !important;
    text-align: left !important;
    vertical-align: middle !important;
    width: 180px !important;
    min-width: 180px !important;
    max-width: 180px !important;
}

.items-table th:nth-child(3),
.items-table td:nth-child(3) {
    padding: 12px 15px !important;
    text-align: center !important;
    vertical-align: middle !important;
    width: 90px !important;
    min-width: 90px !important;
    max-width: 90px !important;
}

.items-table th:nth-child(4),
.items-table td:nth-child(4) {
    padding: 12px 15px !important;
    text-align: left !important;
    vertical-align: middle !important;
    width: 120px !important;
    min-width: 120px !important;
    max-width: 120px !important;
}

.items-table th:nth-child(5),
.items-table td:nth-child(5) {
    padding: 12px 15px !important;
    text-align: left !important;
    vertical-align: middle !important;
    width: 120px !important;
    min-width: 120px !important;
    max-width: 120px !important;
}

.items-table th:nth-child(6),
.items-table td:nth-child(6) {
    padding: 12px 15px !important;
    text-align: left !important;
    vertical-align: middle !important;
    width: 120px !important;
    min-width: 120px !important;
    max-width: 120px !important;
}

.items-table th:nth-child(7),
.items-table td:nth-child(7) {
    padding: 12px 15px !important;
    text-align: center !important;
    vertical-align: middle !important;
    width: 120px !important;
    min-width: 120px !important;
    max-width: 120px !important;
    white-space: nowrap !important;
}

.items-table th:nth-child(8),
.items-table td:nth-child(8) {
    padding: 12px 15px !important;
    text-align: left !important;
    vertical-align: middle !important;
    width: calc(100% - 840px) !important;
    min-width: 120px !important;
}

/* 隐藏第9列（描述列） */
.items-table th:nth-child(9),
.items-table td:nth-child(9) {
    display: none !important;
}

/* 怪物表格 */
.monsters-table th:nth-child(1),
.monsters-table td:nth-child(1),
.monsters-table td.monster-icon {
    padding: 3px 5px !important;
    text-align: center !important;
    vertical-align: middle !important;
    width: 90px !important;
    min-width: 90px !important;
    max-width: 90px !important;
    height: 55px !important;
}

.monsters-table th:nth-child(2),
.monsters-table td:nth-child(2) {
    padding: 12px 15px !important;
    text-align: left !important;
    vertical-align: middle !important;
}

.monsters-table th:nth-child(3),
.monsters-table td:nth-child(3) {
    padding: 12px 15px !important;
    text-align: center !important;
    vertical-align: middle !important;
    width: 80px !important;
    min-width: 80px !important;
}

.monsters-table th:nth-child(4),
.monsters-table td:nth-child(4) {
    padding: 12px 15px !important;
    text-align: left !important;
    vertical-align: middle !important;
    width: 100px !important;
    min-width: 100px !important;
}

.monsters-table th:nth-child(5),
.monsters-table td:nth-child(5) {
    padding: 12px 15px !important;
    text-align: left !important;
    vertical-align: middle !important;
    width: 80px !important;
    min-width: 80px !important;
}

.monsters-table th:nth-child(6),
.monsters-table td:nth-child(6) {
    padding: 12px 15px !important;
    text-align: left !important;
    vertical-align: middle !important;
    width: 220px !important;
    min-width: 220px !important;
}

.monsters-table th:nth-child(7),
.monsters-table td:nth-child(7) {
    padding: 12px 15px !important;
    text-align: center !important;
    vertical-align: middle !important;
    width: 120px !important;
    min-width: 120px !important;
}

.monsters-table th:nth-child(8),
.monsters-table td:nth-child(8) {
    padding: 12px 15px !important;
    text-align: center !important;
    vertical-align: middle !important;
    width: 140px !important;
    min-width: 140px !important;
}

.monsters-table tr,
.monsters-table .monster-row {
    height: 55px !important;
}

.monsters-table th,
.monsters-table td {
    vertical-align: middle !important;
    display: table-cell !important;
}

/* NPC表格 */
.npcs-table th:nth-child(1),
.npcs-table td:nth-child(1),
.npcs-table td.item-icon {
    padding: 3px 5px !important;
    text-align: center !important;
    vertical-align: middle !important;
    width: 70px !important;
    min-width: 70px !important;
    max-width: 70px !important;
}

/* 技能表格 */
.skills-table th:nth-child(1),
.skills-table td:nth-child(1),
.skills-table td.item-icon {
    padding: 3px 5px !important;
    text-align: center !important;
    vertical-align: middle !important;
    width: 70px !important;
    min-width: 70px !important;
    max-width: 70px !important;
}

.items-table th,
.monsters-table th,
.worlds-table th,
.npcs-table th,
.skills-table th,
.quests-table th {
    background: var(--table-header-bg);
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--game-gold-text);
    cursor: pointer;
    user-select: none;
    white-space: nowrap !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    vertical-align: middle;
}

.items-table th:hover,
.monsters-table th:hover,
.worlds-table th:hover,
.npcs-table th:hover,
.skills-table th:hover,
.quests-table th:hover {
    color: var(--game-gold);
    background: var(--deerflow-hover-bg);
}

.items-table th.sortable::after,
.monsters-table th.sortable::after,
.worlds-table th.sortable::after,
.npcs-table th.sortable::after,
.skills-table th.sortable::after,
.quests-table th.sortable::after {
    content: ' ↕';
    opacity: 0.3;
    font-size: 0.8em;
}

.items-table th.sortable:hover::after,
.monsters-table th.sortable:hover::after,
.worlds-table th.sortable:hover::after,
.npcs-table th.sortable:hover::after,
.skills-table th.sortable:hover::after,
.quests-table th.sortable:hover::after {
    opacity: 0.8;
}

.items-table tr:hover,
.monsters-table tr:hover,
.worlds-table tr:hover,
.npcs-table tr:hover,
.quests-table tr:hover {
    background: var(--deerflow-hover-bg);
}

.items-table tbody tr:nth-child(even),
.monsters-table tbody tr:nth-child(even),
.worlds-table tbody tr:nth-child(even),
.npcs-table tbody tr:nth-child(even),
.quests-table tbody tr:nth-child(even),
.skills-table tbody tr:nth-child(even) {
    background: var(--table-row-even-bg);
}

.items-table tbody tr:nth-child(odd),
.monsters-table tbody tr:nth-child(odd),
.worlds-table tbody tr:nth-child(odd),
.npcs-table tbody tr:nth-child(odd),
.quests-table tbody tr:nth-child(odd),
.skills-table tbody tr:nth-child(odd) {
    background: transparent;
}

.items-table td,
.monsters-table td,
.worlds-table td,
.npcs-table td,
.skills-table td,
.quests-table td {
    font-size: 0.9rem;
}

.npcs-table td.menus-column {
    white-space: nowrap;
    max-width: 400px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.menu-tag {
    display: inline-block;
    background: var(--bg);
    border: 1px solid var(--border);
    padding: 2px 8px;
    margin: 2px;
    border-radius: 4px;
    font-size: 0.8rem;
}

.npc-icon {
    font-size: 1.5rem;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.npc-icon a {
    text-decoration: none;
}

.npc-name-link {
    text-decoration: none;
    color: var(--text);
}

.npc-name-link:hover {
    text-decoration: underline;
}

.npc-name {
    cursor: pointer;
}

/* NPC详情页面样式 */
.npc-detail-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.npc-detail-loading,
.npc-detail-error {
    text-align: center;
    padding: 40px;
    color: var(--text-muted);
}

.npc-detail-content {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 24px;
}

.npc-detail-header {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border);
}

.npc-detail-image {
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
}

.npc-detail-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.npc-detail-info h2 {
    margin: 0 0 16px 0;
    font-size: 1.8rem;
}

.npc-detail-info p {
    margin: 8px 0;
    font-size: 1rem;
}

.npc-detail-section {
    margin-top: 24px;
}

.npc-detail-section h3 {
    margin: 0 0 16px 0;
    font-size: 1.3rem;
    color: var(--text);
}

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

.npc-locations li {
    padding: 12px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 4px;
    margin-bottom: 8px;
}

.shop-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.shop-tab {
    padding: 8px 16px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--text);
    transition: all 0.2s;
}

.shop-tab:hover {
    border-color: var(--accent);
    background: var(--surface);
}

.shop-tab.active {
    background: var(--accent);
    border-color: var(--accent);
    color: white;
}

.shop-category-content {
    display: none;
}

.shop-category-content.active {
    display: block;
}

.shop-category {
    margin-bottom: 24px;
}

.shop-category h4 {
    margin: 0 0 12px 0;
    font-size: 1.1rem;
    color: var(--text);
}

.shop-items {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 12px;
}

.shop-item {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 12px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    display: block;
}

.shop-item:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
    text-decoration: none;
}

.shop-item-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 8px;
}

.shop-item-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.shop-item-name {
    font-size: 0.9rem;
    color: var(--text);
    word-break: break-word;
}

.items-table td.description-column,
.items-table th.description-column,
.skills-table td.description-column,
.skills-table th.description-column {
    white-space: nowrap;
    max-width: 300px;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 世界地图和任务表格的第一列，保持正常样式 */
.worlds-table td:first-child,
.worlds-table th:first-child,
.quests-table td:first-child,
.quests-table th:first-child {
    padding: 12px 15px !important;
    text-align: left !important;
    vertical-align: middle !important;
    width: auto !important;
    min-width: auto !important;
    max-width: none !important;
}

.item-icon,
.monster-icon {
    font-size: 1.5rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.item-image,
.monster-image,
.quest-item-icon,
.npc-image {
    width: 40px;
    height: 40px;
    object-fit: contain;
    cursor: pointer;
    display: inline-block;
    vertical-align: middle;
}

/* 物品表格中的图标专用样式 */
.items-table .item-image {
    width: 32px !important;
    height: 32px !important;
    display: block !important;
    margin: 0 auto !important;
    object-fit: contain !important;
}

.items-table td.item-icon {
    padding: 5px 8px !important;
    text-align: center !important;
    vertical-align: middle !important;
    height: 55px !important;
    display: table-cell !important;
}

/* 任务列表页面图标专用样式 - 高优先级 */
.quests-table .quest-item-icon {
    width: 28px !important;
    height: 28px !important;
    object-fit: contain !important;
    cursor: pointer !important;
}

/* 怪物列表页面怪物图标专用样式 - 高优先级 */
.monsters-table .monster-image {
    width: 32px !important;
    height: 32px !important;
    object-fit: contain !important;
    cursor: pointer !important;
}

/* NPC列表页面NPC图标专用样式 - 高优先级 */
.npcs-table .npc-image {
    width: 32px !important;
    height: 32px !important;
    object-fit: contain !important;
    cursor: pointer !important;
}

/* 任务悬浮提示物品图标专用样式 */
.quest-tooltip-item-icon {
    width: 35px !important;
    height: 35px !important;
    border-radius: 4px !important;
    object-fit: contain !important;
}

.quest-item-icon-wrapper {
    display: inline-block;
    margin-right: 4px;
    cursor: pointer;
    position: relative;
}

.quest-item-icon-wrapper:not(:has(.quest-item-icon)) {
    width: 56px;
    height: 56px;
    background: var(--surface-dark);
    border-radius: 4px;
    vertical-align: middle;
    text-align: center;
    line-height: 56px;
    font-size: 24px;
}

.quest-item-count {
    position: absolute;
    bottom: 0;
    right: 0;
    color: var(--reward-count-text);
    font-size: 0.9rem;
    font-weight: 700;
    white-space: nowrap;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.quest-detail-npc-icon {
    width: 56px;
    height: 56px;
    border-radius: 4px;
    border: 1px solid var(--border);
    object-fit: contain;
}

.quest-detail-item-icon {
    width: 56px;
    height: 56px;
    border-radius: 4px;
    object-fit: contain;
}

.item-name,
.monster-name {
    cursor: pointer;
}

.item-name-link,
.monster-name-link {
    text-decoration: none;
    display: inline-block;
}

.item-name-link:hover .item-name,
.monster-name-link:hover .monster-name {
    text-decoration: underline;
}

.skill-name-link {
    text-decoration: none;
    color: var(--text);
    display: inline-block;
}

.skill-name-link:hover {
    text-decoration: underline;
}

.item-tooltip,
.monster-tooltip {
    position: fixed;
    background: var(--surface);
    border: 1px solid;
    padding: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4), 0 0 0 1px var(--border);
    z-index: 10000;
    min-width: 280px;
    max-width: 350px;
    border-radius: 6px;
}

.monster-tooltip {
    pointer-events: none;
    min-width: 220px;
    max-width: 280px;
    padding: 10px;
}

.tooltip-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
    gap: 10px;
}

.monster-tooltip .tooltip-header {
    flex-direction: column;
    align-items: center;
    margin-bottom: 8px;
    padding-bottom: 8px;
    gap: 8px;
}

.tooltip-header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    gap: 10px;
}

.tooltip-monster-image {
    width: 140px;
    height: 140px;
    object-fit: contain;
}

.tooltip-header-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    gap: 10px;
}

.tooltip-name {
    font-size: 1.1rem;
    font-weight: 700;
    flex: 1;
    word-break: break-word;
}

.monster-tooltip .tooltip-name {
    font-size: 1rem;
}

.tooltip-name-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
}

.tooltip-rarity,
.tooltip-rank {
    font-weight: 600;
    font-size: 0.9rem;
    white-space: nowrap;
    flex-shrink: 0;
}

.monster-tooltip .tooltip-rank {
    font-size: 0.85rem;
}

.ultimate-badge {
    height: 16px;
    margin-bottom: 2px;
}

.tooltip-type {
    color: var(--text-muted);
    font-style: italic;
    margin: 0 0 8px 0;
}

.tooltip-content p {
    margin: 6px 0;
    font-size: 0.95rem;
}

.monster-tooltip .tooltip-content p {
    margin: 3px 0;
    font-size: 0.85rem;
}

.tooltip-content .label {
    color: var(--text-muted);
    margin-right: 5px;
    font-size: 0.9rem;
}

.monster-tooltip .tooltip-content .label {
    margin-right: 3px;
    font-size: 0.85rem;
}

.tooltip-stat {
    font-weight: normal;
}

.stat-value {
    color: inherit;
}

.tooltip-abilities {
    margin-top: 10px;
    padding-top: 8px;
    border-top: 1px solid var(--border);
}

.ability-value {
    color: var(--ability-value);
}

.tooltip-description {
    margin-top: 10px;
    padding-top: 8px;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.4;
}

.tooltip-set {
    margin-top: 10px;
    padding-top: 8px;
    border-top: 1px solid var(--border);
}

.tooltip-set-name {
    font-weight: bold;
    color: var(--tooltip-set-name);
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.tooltip-set-bonuses {
    font-size: 0.9rem;
}

.set-bonus {
    margin: 4px 0;
    color: var(--tooltip-set-bonus);
}

.rarity-普通 { color: var(--rarity-normal); }
.rarity-精良 { color: var(--rarity-fine); }
.rarity-稀有 { color: var(--rarity-rare); }
.rarity-史诗 { color: var(--rarity-epic); }
.rarity-传说 { color: var(--rarity-legendary); }
.rarity-终极 { color: var(--rarity-ultimate); }

.rank-普通 { color: var(--rank-normal); }
.rank-精良 { color: var(--rank-fine); }
.rank-稀有 { color: var(--rank-rare); }
.rank-史诗 { color: var(--rank-epic); }
.rank-传说 { color: var(--rank-legendary); }
.rank-终极 { color: var(--rank-ultimate); }

.tooltip-rarity-普通 { border-color: var(--tooltip-rarity-normal-border); }
.tooltip-rarity-精良 { border-color: var(--tooltip-rarity-fine-border); }
.tooltip-rarity-稀有 { border-color: var(--tooltip-rarity-rare-border); }
.tooltip-rarity-史诗 { border-color: var(--tooltip-rarity-epic-border); }
.tooltip-rarity-传说 { border-color: var(--tooltip-rarity-legendary-border); }
.tooltip-rarity-终极 { border-color: var(--tooltip-rarity-ultimate-border); }

@keyframes rainbow {
    0% { color: #ff0000; }
    25% { color: #ffff00; }
    50% { color: #00ff00; }
    75% { color: #00ffff; }
    100% { color: #7f00ff; }
}

.pagination {
    display: flex;
    gap: 10px;
    margin-top: 30px;
    justify-content: center;
}

.pagination button {
    position: relative;
    background: var(--surface);
    border: 1px solid var(--deerflow-border);
    color: var(--text);
    padding: 8px 18px;
    cursor: pointer;
    transition: all 0.2s;
    border-radius: 5px;
    font-weight: 700;
}

/* 游戏UI装饰 - 分页按钮 */
.pagination button::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    width: 10px;
    height: 10px;
    border-top: 1px solid var(--game-purple);
    border-left: 1px solid var(--game-purple);
    border-top-left-radius: 5px;
}

.pagination button::after {
    content: '';
    position: absolute;
    bottom: -1px;
    right: -1px;
    width: 10px;
    height: 10px;
    border-bottom: 1px solid var(--game-purple);
    border-right: 1px solid var(--game-purple);
    border-bottom-right-radius: 5px;
}

.pagination button:hover:not(:disabled) {
    border-color: var(--game-gold);
    background: var(--deerflow-hover-bg);
    color: var(--game-gold);
    box-shadow: var(--game-glow-gold);
}

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

.pagination button.active,
#dropMonstersTableContainer button[style*="background: var(--accent)"],
#monster-drops-table-container button[style*="background: var(--accent)"] {
    background: var(--deerflow-hover-bg) !important;
    border-color: var(--game-gold) !important;
    color: var(--game-gold) !important;
    box-shadow: var(--game-glow-gold) !important;
}

.element-image {
    width: 24px;
    height: 24px;
    object-fit: contain;
    vertical-align: bottom;
    margin-right: 5px;
}

.element-resistance-cell {
    display: flex;
    gap: 4px;
    align-items: center;
}

.element-resistance-item {
    position: relative;
    display: inline-block;
}

.element-resistance-icon {
    width: 24px;
    height: 24px;
}

.element-resistance-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    font-size: 10px;
    font-weight: bold;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.element-resistance-badge.weak {
    background-color: var(--element-resistance-weak-bg);
}

.element-resistance-badge.resist {
    background-color: var(--element-resistance-resist-bg);
}

/* 类型颜色已移除，使用默认字体颜色 */
.monster-tooltip-rank-普通怪 { border-color: var(--monster-tooltip-rank-normal-border); }
.monster-tooltip-rank-小型怪 { border-color: var(--monster-tooltip-rank-small-border); }
.monster-tooltip-rank-精英怪 { border-color: var(--monster-tooltip-rank-elite-border); }
.monster-tooltip-rank-灵兽怪 { border-color: var(--monster-tooltip-rank-beast-border); }
.monster-tooltip-rank-巨型怪 { border-color: var(--monster-tooltip-rank-giant-border); }
.monster-tooltip-rank-紫圈怪 { border-color: var(--monster-tooltip-rank-purple-border); }
.monster-tooltip-rank-BOSS怪 { border-color: var(--monster-tooltip-rank-boss-border); }
.monster-tooltip-rank-世界BOSS { border-color: var(--monster-tooltip-rank-worldboss-border); }
.monster-tooltip-rank-强化怪 { border-color: var(--monster-tooltip-rank-enhanced-border); }

.boolean-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    border: 1px solid transparent;
    transition: all 0.2s ease;
}

.boolean-badge.yes {
    background: var(--boolean-badge-yes-bg);
    color: var(--boolean-badge-yes-text);
    border-color: var(--boolean-badge-yes-border);
}

.boolean-badge.no {
    background: var(--boolean-badge-no-bg);
    color: var(--boolean-badge-no-text);
    border-color: var(--boolean-badge-no-border);
}

.boolean-badge:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.type-badge {
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: capitalize;
}

.type-badge.main {
    background: var(--type-badge-main-bg);
    color: var(--type-badge-main-text);
}

.type-badge.dungeon {
    background: var(--type-badge-dungeon-bg);
    color: var(--type-badge-dungeon-text);
}

.type-badge.instance {
    background: var(--type-badge-instance-bg);
    color: var(--type-badge-instance-text);
}

.type-badge.prison {
    background: var(--type-badge-prison-bg);
    color: var(--type-badge-prison-text);
}

.type-badge.event {
    background: var(--type-badge-event-bg);
    color: var(--type-badge-event-text);
}

.world-name {
    cursor: pointer;
    font-weight: 500;
}

.world-name-link {
    text-decoration: none;
    color: var(--accent);
}

.world-name-link:hover {
    text-decoration: underline;
}

/* 地图页面名称列左对齐 - 只有在不是图标列时才应用 */
/* 注意：世界地图表格第一列实际上不是图标列，所以保持原样 */



body:not(.dark-mode) #classFilter option:disabled {
    background-color: #e8f4fc;
    color: #0066aa;
}

@media (max-width: 768px) {
    .filters {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-group input,
    .filter-group select {
        min-width: auto;
    }

    .items-table,
    .monsters-table,
    .worlds-table,
    .npcs-table {
        font-size: 0.8rem;
    }

    /* 对普通列设置 padding，但排除有图标列的表格的第一列 */
    .items-table th:not(:first-child),
    .items-table td:not(:first-child),
    .monsters-table th:not(:first-child),
    .monsters-table td:not(:first-child),
    .worlds-table th,
    .worlds-table td,
    .npcs-table th:not(:first-child),
    .npcs-table td:not(:first-child),
    .skills-table th:not(:first-child),
    .skills-table td:not(:first-child),
    .quests-table th,
    .quests-table td {
        padding: 8px 10px;
    }

    /* 保持有图标列的表格的第一列的特殊样式 */
    .items-table th:nth-child(1),
    .items-table td:nth-child(1),
    .monsters-table th:nth-child(1),
    .monsters-table td:nth-child(1),
    .npcs-table th:nth-child(1),
    .npcs-table td:nth-child(1),
    .skills-table th:nth-child(1),
    .skills-table td:nth-child(1) {
        padding: 3px 5px !important;
        text-align: center !important;
        vertical-align: middle !important;
        width: 70px !important;
        min-width: 70px !important;
        max-width: 70px !important;
    }

    /* 在移动设备上调整图标大小，确保完美显示 */
    .items-table .item-image,
    .skills-table .item-image {
        width: 44px !important;
        height: 44px !important;
    }

    .monsters-table .monster-image {
        width: 32px !important;
        height: 32px !important;
    }

    .npcs-table .npc-image {
        width: 30px !important;
        height: 30px !important;
    }
}

/* 平板设备适配 */
@media (min-width: 769px) and (max-width: 1024px) {
    /* 在平板设备上调整图标大小 */
    .items-table .item-image,
    .skills-table .item-image {
        width: 46px !important;
        height: 46px !important;
    }

    .monsters-table .monster-image {
        width: 32px !important;
        height: 32px !important;
    }

    .npcs-table .npc-image {
        width: 31px !important;
        height: 31px !important;
    }
}

/* 确保所有图标都完美居中 - 不破坏表格布局 */
.items-table td:first-child,
.monsters-table td:first-child,
.npcs-table td:first-child,
.skills-table td:first-child {
    line-height: 1;
}



/* 详情页通用样式 */
.back-btn,
.back-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(139, 92, 246, 0.4);
    color: var(--text);
    padding: 10px 20px;
    text-decoration: none;
    margin-top: 20px;
    margin-bottom: 20px;
    transition: all 0.2s;
    border-radius: 5px;
    font-weight: 700;
    position: relative;
}

/* 游戏UI装饰 - 返回按钮 */
.back-btn::before,
.back-button::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    width: 10px;
    height: 10px;
    border-top: 1px solid #f59e0b;
    border-left: 1px solid #f59e0b;
    border-top-left-radius: 5px;
}

.back-btn::after,
.back-button::after {
    content: '';
    position: absolute;
    bottom: -1px;
    right: -1px;
    width: 10px;
    height: 10px;
    border-bottom: 1px solid #8b5cf6;
    border-right: 1px solid #8b5cf6;
    border-bottom-right-radius: 5px;
}

.back-btn:hover,
.back-button:hover {
    border-color: #f59e0b;
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
}

/* 深色主题 - 返回按钮 */
body.dark-mode .back-btn,
body.dark-mode .back-button {
    background: var(--back-button-bg);
    border-color: var(--deerflow-border);
}

body.dark-mode .back-btn:hover,
body.dark-mode .back-button:hover {
    background: var(--deerflow-hover-bg);
    border-color: var(--game-gold-text);
}

/* 物品详情页样式 */
.item-detail-container {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.item-header {
    display: flex;
    gap: 30px;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--border);
}

.item-image-wrapper {
    flex-shrink: 0;
}

.item-detail-container .item-image {
    width: 120px;
    height: 120px;
    object-fit: contain;
    background: var(--surface);
    border: 2px solid var(--border);
    border-radius: 12px;
    padding: 15px;
}

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

.item-title-row {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 15px;
}

.item-detail-container .item-name {
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
}

.item-detail-container .ultimate-badge {
    height: 28px;
    margin-top: 5px;
}

.item-rarity {
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
}

.item-rarity.rarity-普通 { background: var(--rarity-normal-bg); color: var(--rarity-normal); }
.item-rarity.rarity-精良 { background: var(--rarity-fine-bg); color: var(--rarity-fine); }
.item-rarity.rarity-稀有 { background: var(--rarity-rare-bg); color: var(--rarity-rare); }
.item-rarity.rarity-史诗 { background: var(--rarity-epic-bg); color: var(--rarity-epic); }
.item-rarity.rarity-传说 { background: var(--rarity-legendary-bg); color: var(--rarity-legendary); }
.item-rarity.rarity-终极 { background: var(--rarity-ultimate-bg); color: var(--rarity-ultimate); }

.item-description {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.6;
}

.item-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-group {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 20px;
}

.stat-group-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
}

.stat-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
}

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

.stat-label {
    color: var(--text-muted);
    font-weight: 500;
}

.stat-value {
    font-weight: 700;
    color: var(--accent);
}

.abilities-section,
.sets-section {
    margin-top: 30px;
}

.section-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--accent);
}

.ability-item {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 15px 20px;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.ability-value {
    font-weight: 700;
    color: #cc8800;
}

.set-item {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
}

.set-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 15px;
}

.set-bonus {
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
}

.set-bonus:last-child {
    border-bottom: none;
}

/* 升级等级样式 */
.upgrade-levels-section {
    margin-top: 40px;
}

.upgrade-level-item {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
}

.upgrade-level-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 15px;
}

.upgrade-level-bonus {
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
}

.upgrade-level-bonus:last-child {
    border-bottom: none;
}

/* 掉落物品样式 - 物品详情页 */
.drops-section {
    margin-top: 40px;
}

.drops-filters {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.drops-search {
    flex: 1;
    min-width: 250px;
}

.drops-search input {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--bg);
    color: var(--text);
    font-size: 1rem;
}

.drops-search input::placeholder {
    color: var(--text-muted);
}

.drops-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
}

.drops-table th,
.drops-table td {
    padding: 10px 15px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.drops-table th {
    background: var(--bg);
    font-weight: 700;
    color: var(--text-muted);
}

.drops-table tbody tr:hover {
    background: rgba(255, 51, 102, 0.05);
}

.drop-monster {
    display: flex;
    align-items: center;
    gap: 10px;
}

.drop-monster-image {
    width: 40px;
    height: 40px;
    object-fit: contain;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 5px;
}

.drop-monster-name {
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s;
}

.drop-monster-name:hover {
    text-decoration: underline;
}

.drop-probability {
    font-family: monospace;
    color: var(--text-muted);
}

.drop-level {
    font-weight: 600;
}

.drop-area {
    color: var(--text-muted);
}

.no-drops {
    text-align: center;
    padding: 40px;
    color: var(--text-muted);
    font-style: italic;
}

.search-results-info {
    text-align: center;
    margin-top: 10px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* 悬浮图片提示 - 物品详情页 */
.drop-monster {
    position: relative;
}

.monster-tooltip {
    position: absolute;
    z-index: 1000;
    left: 50px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, visibility 0.2s;
    min-width: 120px;
    text-align: center;
}

.drop-monster:hover .monster-tooltip {
    opacity: 1;
    visibility: visible;
}

.monster-tooltip .tooltip-monster-image {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin-bottom: 8px;
}

.monster-tooltip .tooltip-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.monster-tooltip .tooltip-monster-name {
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.monster-tooltip .tooltip-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
}

.monster-tooltip .tooltip-header-info {
    flex: 1;
}

.monster-tooltip .tooltip-name {
    font-size: 1rem;
    font-weight: 700;
    display: block;
    margin-bottom: 4px;
}

.monster-tooltip .tooltip-rank {
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-block;
}

.monster-tooltip .tooltip-monster-image {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

.monster-tooltip .tooltip-content {
    font-size: 0.85rem;
    line-height: 1.5;
}

.monster-tooltip .tooltip-content p {
    margin: 4px 0;
    display: flex;
    align-items: center;
}

.monster-tooltip .tooltip-content .label {
    font-weight: 600;
    margin-right: 8px;
    min-width: 60px;
}

/* 怪物详情页样式 */
.monster-detail-container {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.monster-header {
    display: flex;
    gap: 30px;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--border);
}

.monster-image-wrapper {
    flex-shrink: 0;
}

.monster-detail-container .monster-image {
    width: 150px;
    height: 150px;
    object-fit: contain;
    background: var(--surface);
    border: 2px solid var(--border);
    border-radius: 12px;
    padding: 15px;
}

.monster-info-main {
    flex: 1;
}

.monster-title-row {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 15px;
}

.monster-detail-container .monster-name {
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
}

.monster-rank {
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
}

.monster-rank.rank-普通怪 { background: var(--monster-rank-normal-bg); color: var(--monster-rank-normal); }
.monster-rank.rank-小型怪 { background: var(--monster-rank-small-bg); color: var(--monster-rank-small); }
.monster-rank.rank-精英怪 { background: var(--monster-rank-elite-bg); color: var(--monster-rank-elite); }
.monster-rank.rank-灵兽怪 { background: var(--monster-rank-beast-bg); color: var(--monster-rank-beast); }
.monster-rank.rank-巨型怪 { background: var(--monster-rank-giant-bg); color: var(--monster-rank-giant); }
.monster-rank.rank-紫圈怪 { background: var(--monster-rank-purple-bg); color: var(--monster-rank-purple); }
.monster-rank.rank-BOSS怪 { background: var(--monster-rank-boss-bg); color: var(--monster-rank-boss); }
.monster-rank.rank-世界BOSS { background: var(--monster-rank-worldboss-bg); color: var(--monster-rank-worldboss); }
.monster-rank.rank-强化怪 { background: var(--monster-rank-enhanced-bg); color: var(--monster-rank-enhanced); }

.monster-basic-info {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 15px;
}

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

.info-label {
    font-weight: 600;
    color: var(--text-muted);
}

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

.monster-section {
    margin-bottom: 30px;
}

.monster-section .section-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.stats-grid .stat-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 15px;
    background: var(--bg);
    border-radius: 8px;
    border: 1px solid var(--border);
}

.stats-grid .stat-label {
    color: var(--text-muted);
    font-weight: 500;
}

.stats-grid .stat-value {
    font-weight: 600;
}

.element-resistance-section {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.element-resistance-item {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 15px;
    background: var(--bg);
    border-radius: 8px;
    border: 1px solid var(--border);
}

.element-resistance-icon {
    width: 32px;
    height: 32px;
}

.element-resistance-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    font-size: 10px;
    font-weight: bold;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.element-resistance-badge.weak {
    background-color: var(--element-resistance-weak-bg);
}

.element-resistance-badge.resist {
    background-color: var(--element-resistance-resist-bg);
}

.element-resistance-text {
    font-weight: 600;
}

.no-data {
    color: var(--text-muted);
    font-style: italic;
}



/* 掉落物品样式 - 怪物详情页 */
.monster-detail-container .drops-section {
    margin-top: 30px;
}

.monster-detail-container .drops-filters {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.monster-detail-container .drops-search {
    flex: 1;
    min-width: 200px;
}

.monster-detail-container .drops-search input {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--bg);
    color: var(--text);
    font-size: 1rem;
}

.monster-detail-container .drops-search input::placeholder {
    color: var(--text-muted);
}

.drops-rarity-filter {
    min-width: 150px;
}

.drops-rarity-filter select {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--bg);
    color: var(--text);
    font-size: 1rem;
    cursor: pointer;
}

.monster-detail-container .drops-table {
    width: 100%;
    border-collapse: collapse;
}

.monster-detail-container .drops-table th,
.monster-detail-container .drops-table td {
    padding: 6px 15px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.monster-detail-container .drops-table th {
    font-weight: 700;
    background: var(--surface);
    position: sticky;
    top: 0;
}

.monster-detail-container .drops-table tbody tr:hover {
    background: rgba(255, 51, 102, 0.05);
}

.drop-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.drop-item-icon {
    width: 40px;
    height: 40px;
    object-fit: contain;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 5px;
}

.drop-item-name {
    font-weight: 600;
    text-decoration: none;
    color: var(--text);
    transition: color 0.2s;
}

.drop-item-name:hover {
    color: var(--accent);
    text-decoration: underline;
}

.drop-item-icon-wrapper {
    position: relative;
    display: inline-block;
}

.drop-item-icon-link {
    display: inline-block;
    text-decoration: none;
}

.drop-item-tooltip {
    position: absolute;
    z-index: 1000;
    left: 50px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--bg);
    border: 2px solid var(--border);
    border-radius: 8px;
    padding: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, visibility 0.2s;
}

.drop-item-icon-wrapper:hover .drop-item-tooltip {
    opacity: 1;
    visibility: visible;
}

.drop-item-tooltip-image {
    width: 80px;
    height: 80px;
    object-fit: contain;
}

/* 地图详情页样式 */
.map-container {
    background: var(--surface);
    border: 1px solid var(--border);
    position: relative;
    width: 100%;
    height: 600px;
    overflow: hidden;
    margin-bottom: 25px;
}

.map-canvas {
    position: absolute;
    top: 0;
    left: 0;
    cursor: grab;
}

.map-canvas.dragging {
    cursor: grabbing;
}

.map-tile {
    position: absolute;
    background-size: cover;
    background-position: center;
}

.map-controls {
    position: absolute;
    top: 15px;
    right: 15px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 10;
}

.map-control-btn {
    width: 40px;
    height: 40px;
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text);
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.map-control-btn:hover {
    border-color: var(--accent);
    background: var(--bg);
}

.map-info {
    position: absolute;
    bottom: 15px;
    left: 15px;
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 10px 15px;
    font-size: 0.85rem;
    color: var(--text-muted);
    z-index: 10;
}

.toggle-panel {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 15px;
    z-index: 10;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toggle-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    cursor: pointer;
}

.toggle-item input {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.toggle-item label {
    cursor: pointer;
    user-select: none;
}

.map-markers {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 5;
}

.map-marker {
    position: absolute;
    width: 32px;
    height: 32px;
    transform: translate(-50%, -50%);
    pointer-events: auto;
    cursor: pointer;
    z-index: 10;
    transition: transform 0.2s;
}

.map-marker:hover {
    transform: translate(-50%, -50%) scale(1.3);
    z-index: 20;
}

.map-marker-icon {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5));
}

.map-marker-tooltip {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 8px 12px;
    white-space: nowrap;
    font-size: 0.8rem;
    margin-bottom: 8px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s;
    pointer-events: none;
    z-index: 100;
    max-width: 250px;
}

.map-marker:hover .map-marker-tooltip {
    opacity: 1;
    visibility: visible;
}

.map-marker-tooltip-name {
    font-weight: 600;
    margin-bottom: 4px;
}

.map-marker-tooltip-info {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.map-marker-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: var(--border);
}

.map-spawn-range {
    position: absolute;
    border: 2px solid rgba(255, 100, 100, 0.6);
    background: rgba(255, 100, 100, 0.1);
    pointer-events: none;
    z-index: 4;
}

@media (max-width: 768px) {
    .item-header {
        flex-direction: column;
        text-align: center;
    }

    .item-title-row {
        flex-direction: column;
        align-items: center;
    }

    .item-detail-container .item-name {
        font-size: 1.5rem;
    }

    .item-stats-grid {
        grid-template-columns: 1fr;
    }

    .drops-filters {
        flex-direction: column;
    }

    .drops-search {
        min-width: auto;
    }

    .drops-table {
        font-size: 0.9rem;
    }

    .drops-table th,
    .drops-table td {
        padding: 8px 10px;
    }

    .map-container {
        height: 400px;
    }

    .toggle-panel {
        padding: 10px;
    }

    .toggle-item {
        font-size: 0.75rem;
    }
}

/* 自定义下拉框样式 - 全局 */
.custom-select {
    position: relative;
    min-width: 150px;
}

.select-header {
    background: var(--bg);
    border: 1px solid var(--border);
    color: var(--text);
    padding: 8px 12px;
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
    transition: border-color 0.2s;
}

.select-header:hover {
    border-color: var(--accent);
}

.select-arrow {
    margin-left: 8px;
    transition: transform 0.2s;
}

.custom-select.open .select-arrow {
    transform: rotate(180deg);
}

.select-options {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    border: 1px solid var(--border);
    border-top: none;
    max-height: 330px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
}

.custom-select.open .select-options {
    display: block;
}

.select-option {
    padding: 8px 12px;
    cursor: pointer;
    color: var(--text);
    font-size: 0.9rem;
    transition: background-color 0.15s, color 0.15s;
}

.select-option:hover {
    background: var(--accent);
    color: white;
}

.select-option.selected {
    background: var(--accent);
    color: white;
}

.select-option.group-header {
    font-weight: bold;
    color: #78d9ff;
    pointer-events: none;
    cursor: default;
    padding-left: 8px;
}

body:not(.dark-mode) .select-option.group-header {
    color: #0077cc;
    background-color: #f0f0f0;
}

/* 筛选器底部间距 */
.filters {
    margin-bottom: 40px;
    padding-bottom: 20px;
}

/* 返回顶部按钮 */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text);
    width: 50px;
    height: 50px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    border-color: var(--accent);
    background: var(--accent);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(255, 51, 102, 0.3);
}

.back-to-top:active {
    transform: translateY(0);
}

/* 深色主题下商城适配 */
body.dark-mode .item-name,
body.dark-mode .item-price,
body.dark-mode .price-value,
body.dark-mode .price-currency,
body.dark-mode .cart-item-quantity,
body.dark-mode .item-price-single {
    color: var(--text);
}

body.dark-mode .search-input,
body.dark-mode .shop-sidebar,
body.dark-mode .shop-cart,
body.dark-mode .shop-item,
body.dark-mode .cart-item,
body.dark-mode .cart-total,
body.dark-mode .search-container {
    background: var(--deerflow-sidebar-bg);
}

.back-to-top-icon {
    font-weight: bold;
    line-height: 1;
}

/* 技能等级标签样式 */
.skill-level-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.skill-level-tab {
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text);
    padding: 8px 16px;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 6px;
}

.skill-level-tab:hover {
    border-color: var(--accent);
    background: var(--accent);
    color: white;
}

.skill-level-tab.active {
    border-color: var(--accent);
    background: var(--accent);
    color: white;
}

/* 任务页面样式 - 已在游戏UI风格中重新定义 */
/*
.quests-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--surface);
    border: 1px solid var(--border);
    margin-bottom: 30px;
}

.quests-table th,
.quests-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.quests-table th {
    background: var(--bg);
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--text-muted);
    cursor: pointer;
    user-select: none;
    white-space: nowrap;
}

.quests-table th:hover {
    color: var(--text);
}

.quests-table th.sortable::after {
    content: ' ↕';
    opacity: 0.3;
    font-size: 0.8em;
}

.quests-table th.sortable:hover::after {
    opacity: 0.8;
}

.quests-table tr:hover {
    background: var(--bg);
}
*/

.quest-link {
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
}

.quest-link:hover {
    text-decoration: underline;
}

.quest-type {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 0;
    font-size: 0.85rem;
    font-weight: 700;
    border: 1px solid var(--deerflow-border);
    position: relative;
}

.quest-type.type-chain {
    background: var(--quest-type-chain-bg);
    color: var(--quest-type-chain-text);
}

.quest-type.type-category {
    background: var(--quest-type-category-bg);
    color: var(--quest-type-category-text);
}

.quest-type.type-repeat {
    background: var(--quest-type-repeat-bg);
    color: var(--quest-type-repeat-text);
}

.quest-type.type-daily {
    background: var(--quest-type-daily-bg);
    color: var(--quest-type-daily-text);
}

.quest-type.type-normal {
    background: var(--quest-type-normal-bg);
    color: var(--quest-type-normal-text);
}

.repeatable-yes {
    color: var(--quest-type-repeat-text);
    font-weight: 700;
}

.repeatable-no {
    color: var(--text-muted);
}

.reward-gold {
    color: var(--reward-gold-text);
    font-weight: 700;
}

.reward-exp {
    color: var(--reward-exp-text);
    font-weight: 700;
}

.reward-items {
    color: var(--reward-items-text);
    font-weight: 700;
}

.reward-inventory {
    color: var(--reward-inventory-text);
    font-weight: 700;
}

.reward-sp {
    color: var(--reward-sp-text);
    font-weight: 700;
}

/* 任务详情页面样式 */
.quest-detail-container {
    padding: 20px 0;
}

.quest-detail-loading {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

.quest-error {
    text-align: center;
    padding: 60px 20px;
    color: #f44336;
    font-size: 1.1rem;
}

.retry-btn {
    margin-top: 20px;
    padding: 12px 30px;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.retry-btn:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--border);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 20px auto 0;
}

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

.quest-detail-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 30px;
    align-items: start;
}

.quest-detail-main {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 30px;
}

.quest-detail-sidebar {
    position: sticky;
    top: 20px;
}

.series-quests-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 20px;
}

.series-quests-title {
    font-size: 1.2rem;
    margin: 0 0 15px 0;
    color: var(--text);
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
}

.series-quests-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.series-quest-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 6px;
    text-decoration: none;
    color: var(--text);
    transition: all 0.2s ease;
}

.series-quest-item:hover {
    background: var(--bg);
}

.series-quest-item.active {
    background: var(--accent);
    color: white;
}

.series-quest-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--bg);
    font-size: 0.85rem;
    font-weight: 600;
    flex-shrink: 0;
}

.series-quest-item.active .series-quest-number {
    background: rgba(255, 255, 255, 0.2);
}

.series-quest-name {
    font-size: 0.95rem;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.quest-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
    flex-wrap: wrap;
    gap: 20px;
}

.quest-name {
    font-size: 1.8rem;
    margin: 0 0 15px 0;
    color: var(--text);
}

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

.quest-tag {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
}

.quest-tag.repeatable {
    background: var(--quest-tag-repeat-bg);
    color: var(--quest-tag-repeat-text);
}

.quest-level-info {
    text-align: right;
}

.level-range {
    font-size: 1rem;
}

.level-range .label {
    color: var(--text-muted);
    margin-right: 8px;
}

.level-range .value {
    font-weight: 600;
    font-size: 1.1rem;
}

.quest-section {
    margin-bottom: 30px;
}

.section-title {
    font-size: 1.25rem;
    margin-bottom: 15px;
    color: var(--text);
    padding-bottom: 10px;
    border-bottom: 2px solid var(--accent);
    display: inline-block;
}

.quest-description {
    background: var(--bg);
    padding: 20px;
    border-radius: 6px;
    border-left: 4px solid var(--accent);
    line-height: 1.8;
}

.quest-description-complete {
    margin-top: 15px;
    padding: 15px;
    background: var(--bg);
    border-radius: 6px;
    color: var(--text-muted);
}

.npc-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.npc-info-item {
    background: var(--bg);
    padding: 15px;
    border-radius: 6px;
    border: 1px solid var(--border);
}

.npc-info-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.npc-info-value {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--accent);
    text-decoration: none;
}

.npc-info-value:hover {
    text-decoration: underline;
}

.quest-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.quest-link-item {
    display: inline-block;
    padding: 10px 15px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--accent);
    text-decoration: none;
    transition: all 0.2s;
}

.quest-link-item:hover {
    border-color: var(--accent);
    background: var(--surface);
}

.quest-requirements {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.requirement-group {
    background: var(--bg);
    padding: 20px;
    border-radius: 6px;
    border: 1px solid var(--border);
}

.requirement-title {
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: var(--text);
}

.item-list,
.monster-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.item-requirement,
.monster-requirement,
.item-reward {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    background: var(--surface);
    border-radius: 6px;
}

.item-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.item-icon img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.item-name,
.monster-name {
    flex: 1;
    font-weight: 500;
}

.item-name a,
.monster-name a {
    color: var(--accent);
    text-decoration: none;
}

.item-name a:hover,
.monster-name a:hover {
    text-decoration: underline;
}

.item-count,
.monster-count {
    font-weight: 600;
    color: var(--text-muted);
    font-size: 1.1rem;
}

.soul-linked {
    font-size: 0.8rem;
    padding: 3px 8px;
    background: #fff3e0;
    color: #f57c00;
    border-radius: 4px;
}

body.dark-mode .soul-linked {
    background: var(--soul-linked-bg);
    color: var(--soul-linked-text);
}

.quest-rewards {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.rewards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.reward-item {
    background: var(--bg);
    padding: 15px;
    border-radius: 6px;
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.reward-label {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.reward-value {
    font-size: 1.3rem;
    font-weight: 700;
}

.reward-item.reward-gold .reward-value {
    color: #ffd700;
}

.reward-item.reward-exp .reward-value {
    color: #4caf50;
}

.reward-item.reward-sp .reward-value {
    color: #9c27b0;
}

.reward-item.reward-inventory .reward-value {
    color: #2196f3;
}

.reward-item.reward-karma .reward-value {
    color: #ff5722;
}

.rewards-subtitle {
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: var(--text);
}

.item-rewards {
    background: var(--bg);
    padding: 20px;
    border-radius: 6px;
    border: 1px solid var(--border);
}

.quest-dialogs {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.dialog-section {
    background: var(--bg);
    padding: 20px;
    border-radius: 6px;
    border: 1px solid var(--border);
}

.dialog-title {
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: var(--text);
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
}

.dialog-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.dialog-line {
    padding: 12px 15px;
    background: var(--surface);
    border-radius: 6px;
    border-left: 3px solid var(--accent);
    line-height: 1.7;
}

@media (max-width: 768px) {
    .quest-header {
        flex-direction: column;
    }
    
    .quest-level-info {
        text-align: left;
    }
    
    .quest-name {
        font-size: 1.4rem;
    }
    
    .quest-detail-main {
        padding: 20px;
    }
    
    .quest-detail-sidebar {
        display: none;
    }
    
    .quest-detail-layout {
        grid-template-columns: 1fr;
    }
    
    .npc-info-grid {
        grid-template-columns: 1fr;
    }
    
    .rewards-grid {
        grid-template-columns: 1fr;
    }
}

/* 任务对话折叠功能样式 */
.dialog-toggle {
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.dialog-toggle:hover {
    opacity: 0.8;
}

.dialog-toggle-icon {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--accent);
    user-select: none;
    transition: transform 0.2s ease;
}

/* NPC信息样式 */
.npc-info-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: var(--bg);
    border-radius: 8px;
    border: 1px solid var(--border);
    transition: all 0.2s ease;
    position: relative;
}

.npc-info-item:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.npc-icon {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    flex-shrink: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.npc-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.npcs-table td.npc-icon {
    border-bottom: none;
}

.npc-icon-default {
    background: var(--surface);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.npc-icon-default::before {
    content: "👤";
}

.npc-info-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.npc-info-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
}

.npc-info-value {
    font-size: 1rem;
    color: var(--text);
    font-weight: 600;
}

a.npc-info-value {
    text-decoration: none;
    transition: color 0.2s ease;
}

a.npc-info-value:hover {
    color: var(--accent);
}

/* NPC悬浮提示样式 */
.npc-info-item[data-tooltip]:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 0.85rem;
    white-space: pre-line;
    z-index: 1000;
    max-width: 250px;
    word-wrap: break-word;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    pointer-events: none;
}

.npc-info-item[data-tooltip]:hover::before {
    content: "";
    position: absolute;
    bottom: calc(100% - 8px);
    left: 50%;
    transform: translateX(-50%);
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid rgba(0, 0, 0, 0.9);
    z-index: 1001;
    pointer-events: none;
}

/* 怪物小图标样式 */
.monster-requirement {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    background: var(--surface);
    border-radius: 6px;
    border: 1px solid var(--border);
    transition: all 0.2s ease;
    cursor: pointer;
}

.monster-requirement:hover {
    border-color: var(--accent);
    background: var(--bg);
}

.monster-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.monster-icon-small {
    width: 40px;
    height: 40px;
    object-fit: contain;
    border-radius: 6px;
}

.monster-name {
    flex: 1;
    font-size: 0.95rem;
}

.monster-name a {
    color: var(--text);
    text-decoration: none;
    transition: color 0.2s ease;
}

.monster-name a:hover {
    color: var(--accent);
}

.monster-count {
    font-weight: 600;
    color: var(--accent);
    font-size: 0.95rem;
}

/* 物品和怪物悬浮提示的可点击样式 */
.item-requirement,
.item-reward {
    cursor: pointer;
    transition: all 0.2s ease;
}

.item-requirement:hover,
.item-reward:hover {
    border-color: var(--accent);
    background: var(--bg);
}

/* 分类任务页面样式 */
.category-quests-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.category-quest-header {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.category-quest-name {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text);
    margin: 0;
}

.category-quest-info {
    display: flex;
    gap: 15px;
    align-items: center;
}

.quest-count {
    font-size: 0.95rem;
    color: var(--text-muted);
    font-weight: 500;
}

.category-quest-description {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 25px 30px;
    margin-bottom: 20px;
    color: var(--text);
    line-height: 1.6;
    font-size: 1rem;
}

.category-quest-list {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 30px;
}

.quest-list-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.quest-list-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    text-decoration: none;
    color: var(--text);
    transition: all 0.2s ease;
}

.quest-list-item:hover {
    border-color: var(--accent);
    background: var(--surface-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.quest-number {
    flex-shrink: 0;
    width: 30px;
    height: 30px;
    background: var(--accent);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.8rem;
}

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

.quest-title {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text);
    margin-bottom: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.quest-meta {
    display: flex;
    gap: 10px;
    font-size: 0.8rem;
    color: var(--text-muted);
    flex-wrap: wrap;
}

.quest-level {
    font-weight: 500;
}

.quest-type {
    font-weight: 500;
}

/* NPC详情页相关任务 */
.npc-related-quests {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.npc-related-quest {
    display: flex;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 15px;
    text-decoration: none;
    color: var(--text);
    transition: all 0.2s;
}

.npc-related-quest:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.npc-related-quest-info {
    flex: 1;
    min-width: 0;
}

.npc-related-quest-name {
    font-weight: 600;
    font-size: 1rem;
    color: var(--text);
    margin-bottom: 8px;
}

.npc-related-quest-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.npc-related-quest-type,
.npc-related-quest-level,
.npc-related-quest-role {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
}

.npc-related-quest-level {
    background: #e0e0e0;
    color: #616161;
}

.npc-related-quest-role {
    background: #e3f2fd;
    color: #1976d2;
}

body.dark-mode .npc-related-quest-level {
    background: var(--npc-info-bg);
    color: var(--npc-info-border);
}

body.dark-mode .npc-related-quest-role {
    background: var(--quest-number-bg);
    color: var(--quest-number-text);
}

/* 响应式设计 - 分类任务页面 */
@media (max-width: 768px) {
    .category-quests-container {
        padding: 10px;
    }
    
    .category-quest-header {
        padding: 15px;
        flex-direction: column;
        align-items: flex-start;
    }
    
    .category-quest-name {
        font-size: 1.3rem;
    }
    
    .category-quest-description {
        padding: 15px;
        font-size: 0.95rem;
    }
    
    .category-quest-list {
        padding: 15px;
    }
    
    .quest-list-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .quest-list-item {
        padding: 12px;
        gap: 10px;
    }
    
    .quest-number {
        width: 26px;
        height: 26px;
        font-size: 0.75rem;
    }
    
    .quest-title {
        font-size: 0.9rem;
    }
    
    .quest-meta {
        font-size: 0.75rem;
        gap: 8px;
    }
}

/* 生活技能页面样式 - 游戏UI风 */
.lifestyle-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.lifestyle-tab {
    padding: 14px 28px;
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    color: #475569;
    transition: all 0.2s;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
}

.lifestyle-tab::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    width: 10px;
    height: 10px;
    border-top: 1px solid #8b5cf6;
    border-left: 1px solid #8b5cf6;
    border-top-left-radius: 5px;
}

.lifestyle-tab::after {
    content: '';
    position: absolute;
    bottom: -1px;
    right: -1px;
    width: 10px;
    height: 10px;
    border-bottom: 1px solid #8b5cf6;
    border-right: 1px solid #8b5cf6;
    border-bottom-right-radius: 5px;
}

.lifestyle-tab:hover {
    border-color: #f59e0b;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
    color: #d97706;
    box-shadow: 0 0 20px rgba(245, 158, 11, 0.2);
}

.lifestyle-tab.active {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.15) 0%, rgba(239, 68, 68, 0.15) 100%);
    border-color: #f59e0b;
    color: #d97706;
    box-shadow: 0 0 20px rgba(245, 158, 11, 0.3);
}

.lifestyle-tab-icon {
    font-size: 1.5rem;
}

/* 采集点卡片网格 */
.gathering-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.gathering-card {
    background: linear-gradient(180deg, rgba(245, 158, 11, 0.05) 0%, rgba(139, 92, 246, 0.05) 100%);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 5px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.gathering-card::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    width: 14px;
    height: 14px;
    border-top: 1px solid #f59e0b;
    border-left: 1px solid #f59e0b;
    border-top-left-radius: 5px;
}

.gathering-card::after {
    content: '';
    position: absolute;
    bottom: -1px;
    right: -1px;
    width: 14px;
    height: 14px;
    border-bottom: 1px solid #8b5cf6;
    border-right: 1px solid #8b5cf6;
    border-bottom-right-radius: 5px;
}

.gathering-card:hover {
    border-color: #f59e0b;
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(245, 158, 11, 0.2);
    background: linear-gradient(180deg, rgba(245, 158, 11, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
}

.gathering-card-header {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 16px;
}

.gathering-card-icon {
    font-size: 2.8rem;
    flex-shrink: 0;
    filter: drop-shadow(0 0 10px rgba(245, 158, 11, 0.3));
}

.gathering-card-info {
    flex: 1;
}

.gathering-card-name {
    font-size: 1.3rem;
    font-weight: 800;
    margin-bottom: 12px;
    color: #d97706;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.gathering-card-stats {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.gathering-card-stats .stat-item {
    display: flex;
    gap: 10px;
    padding: 0;
    border-bottom: none;
}

.gathering-card-stats .stat-label {
    font-size: 0.85rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 700;
}

.gathering-card-stats .stat-value {
    font-weight: 800;
    color: #7c3aed;
    font-family: monospace;
    font-size: 1rem;
}

.gathering-card-yield {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid rgba(139, 92, 246, 0.2);
}

.yield-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    color: #64748b;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.yield-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.yield-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 6px;
    padding: 8px 14px;
    font-size: 0.9rem;
    color: #334155;
}

.yield-icon {
    width: 30px;
    height: 30px;
    object-fit: contain;
    flex-shrink: 0;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.15) 0%, rgba(139, 92, 246, 0.15) 100%);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: 4px;
    padding: 2px;
}

.yield-text {
    white-space: nowrap;
    font-weight: 600;
}

.yield-more {
    display: inline-flex;
    align-items: center;
    color: #64748b;
    font-size: 0.9rem;
    font-weight: 600;
}

/* 深色主题适配 */
body.dark-mode .lifestyle-tab {
    background: var(--deerflow-sidebar-bg);
    color: var(--lifestyle-tab-text);
}

body.dark-mode .lifestyle-tab:hover {
    background: var(--lifestyle-tab-hover-bg);
    color: var(--lifestyle-gathering-name);
}

body.dark-mode .lifestyle-tab.active {
    background: var(--lifestyle-tab-active-bg);
    color: var(--lifestyle-gathering-name);
}

body.dark-mode .gathering-card {
    background: var(--gathering-card-bg);
}

body.dark-mode .gathering-card:hover {
    background: var(--gathering-card-hover-bg);
}

body.dark-mode .gathering-card-icon {
    filter: var(--gathering-card-icon-shadow);
}

body.dark-mode .gathering-card-name {
    color: var(--lifestyle-gathering-name);
}

body.dark-mode .gathering-card-stats .stat-label {
    color: var(--lifestyle-stat-label);
}

body.dark-mode .gathering-card-stats .stat-value {
    color: var(--gathering-stat-text);
}

body.dark-mode .yield-label {
    color: var(--gathering-yield-label);
}

body.dark-mode .yield-item {
    background: var(--deerflow-sidebar-bg);
    color: var(--lifestyle-yield-text);
}

body.dark-mode .yield-icon {
    background: var(--yield-icon-bg);
}

body.dark-mode .yield-more {
    color: var(--lifestyle-yield-more);
}

/* 物品侧边栏 - 游戏UI风 深色主题适配 */
body.dark-mode .item-sidebar {
    border-left: 1px solid var(--item-sidebar-section-border);
}

body.dark-mode .item-sidebar-header {
    border-bottom: 1px solid var(--item-sidebar-section-border);
    background: var(--item-sidebar-header-bg);
}

body.dark-mode .item-sidebar-close {
    background: var(--item-sidebar-close-bg);
}

body.dark-mode .item-sidebar-close:hover {
    background: var(--item-sidebar-close-hover-bg);
    box-shadow: var(--item-sidebar-close-hover-shadow);
}

body.dark-mode .item-sidebar-content .item-header {
    border-bottom: 1px solid var(--item-sidebar-section-border);
}

body.dark-mode .item-sidebar-content .item-image-wrapper {
    background: var(--item-sidebar-image-wrapper-bg);
}

body.dark-mode .item-sidebar-content .item-image {
    filter: var(--item-sidebar-image-shadow);
}

body.dark-mode .item-sidebar-content .item-name {
    color: var(--game-gold-text);
}

body.dark-mode .item-sidebar-content .item-rarity {
    background: var(--item-sidebar-rarity-bg);
}

body.dark-mode .item-sidebar-content .stat-group {
    background: var(--item-sidebar-stat-group-bg);
}

body.dark-mode .item-sidebar-content .stat-group-title {
    border-bottom: 1px solid var(--item-sidebar-section-border);
    color: var(--game-gold-text);
}

body.dark-mode .item-sidebar-content .stat-item {
    border-bottom: 1px solid var(--item-sidebar-stat-item-border);
}

body.dark-mode .item-sidebar-content .stat-value {
    color: var(--game-purple-text);
}

body.dark-mode .item-sidebar-content .section-title {
    border-bottom: 1px solid var(--item-sidebar-section-border);
    color: var(--game-gold-text);
}

body.dark-mode .item-sidebar-content .ability-item {
    background: var(--item-sidebar-ability-item-bg);
}

body.dark-mode .item-sidebar-content .set-item {
    background: var(--item-sidebar-set-item-bg);
}

body.dark-mode .item-sidebar-content .set-name {
    color: var(--tooltip-set-name);
}

body.dark-mode .item-sidebar-content .set-bonus {
    color: var(--tooltip-set-bonus);
}

/* 侧边栏样式 - 游戏UI风 */
.achievement-sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 2147483646;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.achievement-sidebar-overlay.open {
    opacity: 1;
    visibility: visible;
}

.achievement-sidebar {
    position: fixed;
    top: 0;
    right: -600px;
    width: 600px;
    max-width: 90vw;
    height: 100vh;
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 50%, #e2e8f0 100%);
    border-left: 1px solid rgba(245, 158, 11, 0.3);
    z-index: 2147483647;
    overflow-y: auto;
    transition: right 0.3s ease;
    position: relative;
}

.achievement-sidebar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #f59e0b 0%, #ef4444 50%, #8b5cf6 100%);
}

.achievement-sidebar.open {
    right: 0;
}

.achievement-sidebar-header {
    position: sticky;
    top: 0;
    background: #f8fafc;
    padding: 20px 24px;
    border-bottom: 1px solid rgba(245, 158, 11, 0.2);
    display: flex;
    justify-content: flex-end;
    z-index: 1;
}

.achievement-sidebar-close {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.05);
    border: 2px solid rgba(139, 92, 246, 0.4);
    border-radius: 4px;
    color: #475569;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.achievement-sidebar-close:hover {
    border-color: #f59e0b;
    color: #f59e0b;
    box-shadow: 0 0 20px rgba(245, 158, 11, 0.2);
}

.achievement-sidebar-content {
    padding: 30px;
}

/* 采集详情侧边栏样式 - 游戏UI风 */
.gathering-detail-header {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 30px;
    padding: 20px;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.08) 0%, rgba(239, 68, 68, 0.08) 100%);
    border: 2px solid rgba(245, 158, 11, 0.3);
    border-radius: 8px;
    position: relative;
}

.gathering-detail-header::after {
    content: '';
    position: absolute;
    top: 6px;
    left: 6px;
    right: 6px;
    bottom: 6px;
    border: 1px solid rgba(245, 158, 11, 0.2);
    border-radius: 4px;
    pointer-events: none;
}

.gathering-detail-icon {
    font-size: 3.5rem;
    flex-shrink: 0;
    filter: drop-shadow(0 0 10px rgba(245, 158, 11, 0.3));
}

.gathering-detail-name {
    color: #d97706;
    font-size: 1.6rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 0 20px rgba(245, 158, 11, 0.2);
}

.gathering-detail-info {
    margin-bottom: 30px;
}

.gathering-detail-info .info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 18px;
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 4px;
    margin-bottom: 12px;
    position: relative;
}

.gathering-detail-info .info-row::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    width: 8px;
    height: 8px;
    border-top: 2px solid #8b5cf6;
    border-left: 2px solid #8b5cf6;
}

.gathering-detail-info .info-row::after {
    content: '';
    position: absolute;
    bottom: -1px;
    right: -1px;
    width: 8px;
    height: 8px;
    border-bottom: 2px solid #8b5cf6;
    border-right: 2px solid #8b5cf6;
}

.gathering-detail-info .info-row:last-child {
    margin-bottom: 0;
}

.gathering-detail-info .info-label {
    color: #64748b;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.gathering-detail-info .info-value {
    color: #7c3aed;
    font-weight: 800;
    font-size: 1.1rem;
    font-family: monospace;
    display: flex;
    align-items: center;
    gap: 10px;
}

.gathering-detail-info .info-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.15) 0%, rgba(139, 92, 246, 0.15) 100%);
    border: 2px solid rgba(245, 158, 11, 0.4);
    border-radius: 4px;
    object-fit: contain;
    padding: 4px;
}

/* 采集产出样式 - 游戏UI风 */
.gathering-yield,
.fishing-catches {
    margin-top: 30px;
}

.gathering-yield h3,
.fishing-catches h3 {
    color: #1e293b;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.gathering-yield h3::before,
.fishing-catches h3::before,
.gathering-yield h3::after,
.fishing-catches h3::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.4), transparent);
}

.yield-items,
.catch-items {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.yield-item-card,
.catch-item-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    background: rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(100, 116, 139, 0.2);
    border-radius: 4px;
    position: relative;
    transition: all 0.2s ease;
}

.yield-item-card:hover,
.catch-item-card:hover {
    border-color: rgba(245, 158, 11, 0.5);
    box-shadow: 0 0 20px rgba(245, 158, 11, 0.1);
}

.yield-item-icon,
.catch-item-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.15) 0%, rgba(139, 92, 246, 0.15) 100%);
    border: 2px solid rgba(245, 158, 11, 0.4);
    border-radius: 4px;
    object-fit: contain;
    padding: 6px;
}

.yield-item-name,
.catch-item-name {
    flex: 1;
    color: #334155;
    font-weight: 600;
    font-size: 0.95rem;
}

.yield-item-chance,
.catch-item-chance {
    color: #059669;
    font-weight: 800;
    font-family: monospace;
    font-size: 1rem;
    padding: 6px 12px;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 4px;
}

/* 深色主题适配 */
body.dark-mode .achievement-sidebar-overlay {
    background: var(--achievement-sidebar-overlay-bg);
}

body.dark-mode .achievement-sidebar {
    background: linear-gradient(180deg, var(--achievement-sidebar-bg-start) 0%, var(--achievement-sidebar-bg-mid) 50%, var(--achievement-sidebar-bg-end) 100%);
}

body.dark-mode .achievement-sidebar-header {
    background: var(--achievement-sidebar-header-bg);
}

body.dark-mode .achievement-sidebar-close {
    background: var(--achievement-close-bg);
    color: var(--achievement-close-text);
}

body.dark-mode .achievement-sidebar-close:hover {
    box-shadow: var(--achievement-close-hover-shadow);
}

body.dark-mode .gathering-detail-header {
    background: var(--gathering-detail-header-bg);
}

body.dark-mode .gathering-detail-icon {
    filter: var(--gathering-detail-icon-shadow);
}

body.dark-mode .gathering-detail-name {
    color: var(--gathering-detail-name);
    text-shadow: var(--gathering-detail-name-shadow);
}

body.dark-mode .gathering-detail-info .info-row {
    background: var(--deerflow-sidebar-bg);
}

body.dark-mode .gathering-detail-info .info-value {
    color: var(--gathering-info-value);
}

body.dark-mode .gathering-detail-info .info-icon {
    background: var(--gathering-detail-info-icon-bg);
}

body.dark-mode .gathering-yield h3,
body.dark-mode .fishing-catches h3 {
    color: var(--gathering-yield-title);
}

body.dark-mode .gathering-yield h3::before,
body.dark-mode .fishing-catches h3::before,
body.dark-mode .gathering-yield h3::after,
body.dark-mode .fishing-catches h3::after {
    background: var(--gathering-yield-divider);
}

body.dark-mode .yield-item-card,
body.dark-mode .catch-item-card {
    background: var(--deerflow-sidebar-bg);
    border-color: var(--gathering-yield-item-border);
}

body.dark-mode .yield-item-card:hover,
body.dark-mode .catch-item-card:hover {
    box-shadow: var(--gathering-yield-item-hover-shadow);
}

body.dark-mode .yield-item-icon,
body.dark-mode .catch-item-icon {
    background: var(--gathering-yield-item-icon-bg);
}

body.dark-mode .yield-item-name,
body.dark-mode .catch-item-name {
    color: var(--gathering-yield-item);
}

body.dark-mode .yield-item-chance,
body.dark-mode .catch-item-chance {
    color: var(--gathering-chance);
}

/* 配方侧边栏 - 游戏UI风 深色主题适配 */
body.dark-mode .recipe-detail-header {
    border-bottom: 1px solid var(--recipe-detail-header-border);
}

body.dark-mode .recipe-detail-icon {
    background: var(--deerflow-sidebar-bg);
}

body.dark-mode .recipe-detail-name {
    color: var(--recipe-name);
}

body.dark-mode .info-row {
    background: var(--deerflow-sidebar-bg);
}

body.dark-mode .info-value {
    color: var(--recipe-value);
}

body.dark-mode .recipe-result-options h3,
body.dark-mode .recipe-materials h3 {
    color: var(--recipe-name);
}

body.dark-mode .result-item,
body.dark-mode .material-item {
    background: var(--deerflow-sidebar-bg);
}

body.dark-mode .result-item:hover,
body.dark-mode .material-item:hover {
    box-shadow: var(--recipe-item-hover-shadow);
}

body.dark-mode .result-item-icon,
body.dark-mode .material-icon {
    background: var(--deerflow-sidebar-bg);
}

body.dark-mode .result-item-name,
body.dark-mode .material-name {
    color: var(--recipe-material-text);
}

body.dark-mode .material-quantity {
    color: var(--recipe-quantity);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .lifestyle-tabs {
        flex-direction: column;
    }
    
    .lifestyle-tab {
        width: 100%;
        justify-content: center;
    }
    
    .gathering-grid {
        grid-template-columns: 1fr;
    }
    
    .achievement-sidebar {
        width: 100vw;
        max-width: 100vw;
    }
}

body.dark-mode .reward-inventory {
    color: var(--reward-inventory-text);
}

/* ==================== 物品详情侧边栏样式 ==================== */

#item-sidebar {
    width: 700px !important;
}

.item-sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: var(--z-sidebar-primary-overlay);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.item-sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

.item-sidebar {
    position: fixed;
    top: 0;
    right: 0;
    width: var(--sidebar-primary-width);
    max-width: 100%;
    height: 100%;
    background: var(--bg);
    z-index: var(--z-sidebar-primary);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.3);
    overflow-y: auto;
    border-left: 1px solid rgba(139, 92, 246, 0.3);
}

/* 游戏UI装饰 - 侧边栏顶部和底部 */
.item-sidebar::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 20px;
    height: 20px;
    border-top: 3px solid #f59e0b;
    border-left: 3px solid #f59e0b;
    z-index: 1000;
}

.item-sidebar::after {
    content: '';
    position: fixed;
    bottom: 0;
    right: 0;
    width: 20px;
    height: 20px;
    border-bottom: 3px solid #8b5cf6;
    border-right: 3px solid #8b5cf6;
    z-index: 1000;
}

.item-sidebar.active {
    transform: translateX(0);
}

.item-sidebar-header {
    position: sticky;
    top: 0;
    background: var(--bg);
    padding: var(--sidebar-header-padding);
    border-bottom: 1px solid rgba(139, 92, 246, 0.3);
    display: flex;
    justify-content: flex-end;
    z-index: 10;
    background: linear-gradient(90deg, rgba(245, 158, 11, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
}

.item-sidebar-close {
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(139, 92, 246, 0.3);
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    color: var(--text);
    padding: 8px 16px;
    transition: all 0.2s;
    font-weight: 700;
    position: relative;
}

/* 游戏UI装饰 - 关闭按钮 */
.item-sidebar-close::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    width: 10px;
    height: 10px;
    border-top: 1px solid #8b5cf6;
    border-left: 1px solid #8b5cf6;
}

.item-sidebar-close::after {
    content: '';
    position: absolute;
    bottom: -1px;
    right: -1px;
    width: 10px;
    height: 10px;
    border-bottom: 1px solid #f59e0b;
    border-right: 1px solid #f59e0b;
}

.item-sidebar-close:hover {
    color: #f59e0b;
    border-color: #f59e0b;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
    box-shadow: 0 0 15px rgba(245, 158, 11, 0.2);
}

.item-sidebar-content {
    padding: var(--sidebar-content-padding);
}

/* 响应式设计 - 侧边栏 */
@media (max-width: 768px) {
    .item-sidebar {
        width: 100%;
    }
}

/* 物品详情样式（适配侧边栏） */
.item-sidebar-content .item-header {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(139, 92, 246, 0.3);
}

.item-sidebar-content .item-image-wrapper {
    flex-shrink: 0;
    padding: 10px;
    border: 1px solid rgba(139, 92, 246, 0.3);
    position: relative;
    background: rgba(0, 0, 0, 0.03);
}

/* 游戏UI装饰 - 物品图标框 */
.item-sidebar-content .item-image-wrapper::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    width: 14px;
    height: 14px;
    border-top: 1px solid #f59e0b;
    border-left: 1px solid #f59e0b;
}

.item-sidebar-content .item-image-wrapper::after {
    content: '';
    position: absolute;
    bottom: -1px;
    right: -1px;
    width: 14px;
    height: 14px;
    border-bottom: 1px solid #8b5cf6;
    border-right: 1px solid #8b5cf6;
}

.item-sidebar-content .item-image {
    width: 80px;
    height: 80px;
    object-fit: contain;
    border-radius: 0;
    filter: drop-shadow(0 0 10px rgba(245, 158, 11, 0.2));
}

.item-sidebar-content .item-info-main {
    flex: 1;
}

.item-sidebar-content .item-title-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.item-sidebar-content .item-name {
    font-size: 1.5rem;
    margin: 0;
    font-weight: 800;
    color: #d97706;
}

.item-sidebar-content .item-rarity {
    font-size: 0.9rem;
    padding: 6px 14px;
    border-radius: 0;
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(139, 92, 246, 0.3);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
}

/* 游戏UI装饰 - 稀有度标签 */
.item-sidebar-content .item-rarity::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    width: 8px;
    height: 8px;
    border-top: 1px solid #8b5cf6;
    border-left: 1px solid #8b5cf6;
}

.item-sidebar-content .item-rarity::after {
    content: '';
    position: absolute;
    bottom: -1px;
    right: -1px;
    width: 8px;
    height: 8px;
    border-bottom: 1px solid #f59e0b;
    border-right: 1px solid #f59e0b;
}

.item-sidebar-content .item-description {
    color: var(--text-muted);
    margin: 0;
}

.item-sidebar-content .item-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.item-sidebar-content .stat-group {
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 0;
    padding: 15px;
    position: relative;
}

/* 游戏UI装饰 - 属性统计组 */
.item-sidebar-content .stat-group::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    width: 14px;
    height: 14px;
    border-top: 1px solid #f59e0b;
    border-left: 1px solid #f59e0b;
}

.item-sidebar-content .stat-group::after {
    content: '';
    position: absolute;
    bottom: -1px;
    right: -1px;
    width: 14px;
    height: 14px;
    border-bottom: 1px solid #8b5cf6;
    border-right: 1px solid #8b5cf6;
}

.item-sidebar-content .stat-group-title {
    font-weight: 800;
    font-size: 1rem;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(139, 92, 246, 0.3);
    color: #d97706;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.item-sidebar-content .stat-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid rgba(139, 92, 246, 0.2);
}

.item-sidebar-content .stat-item:last-child {
    border-bottom: none;
}

.item-sidebar-content .stat-label {
    color: var(--text-muted);
}

.item-sidebar-content .stat-value {
    font-weight: 800;
    color: #8b5cf6;
    font-family: monospace;
}

.item-sidebar-content .abilities-section,
.item-sidebar-content .sets-section {
    margin-bottom: 30px;
}

.item-sidebar-content .section-title {
    font-size: 1.2rem;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(139, 92, 246, 0.3);
    color: #d97706;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* 游戏UI装饰 - 章节标题 */
.item-sidebar-content .section-title::before,
.item-sidebar-content .section-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.4), transparent);
}

.item-sidebar-content .ability-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 15px;
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 0;
    margin-bottom: 8px;
    position: relative;
}

/* 游戏UI装饰 - 能力项 */
.item-sidebar-content .ability-item::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    width: 10px;
    height: 10px;
    border-top: 1px solid #8b5cf6;
    border-left: 1px solid #8b5cf6;
}

.item-sidebar-content .ability-item::after {
    content: '';
    position: absolute;
    bottom: -1px;
    right: -1px;
    width: 10px;
    height: 10px;
    border-bottom: 1px solid #f59e0b;
    border-right: 1px solid #f59e0b;
}

.item-sidebar-content .ability-value {
    color: #059669;
    font-weight: 800;
    font-family: monospace;
}

body.dark-mode .item-sidebar-content .ability-value {
    color: var(--ability-value);
}

.item-sidebar-content .set-item {
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 0;
    padding: 15px;
    margin-bottom: 15px;
    position: relative;
}

/* 游戏UI装饰 - 套装项 */
.item-sidebar-content .set-item::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    width: 14px;
    height: 14px;
    border-top: 1px solid #f59e0b;
    border-left: 1px solid #f59e0b;
}

.item-sidebar-content .set-item::after {
    content: '';
    position: absolute;
    bottom: -1px;
    right: -1px;
    width: 14px;
    height: 14px;
    border-bottom: 1px solid #8b5cf6;
    border-right: 1px solid #8b5cf6;
}

.item-sidebar-content .set-name {
    font-weight: 800;
    font-size: 1.1rem;
    margin-bottom: 12px;
    color: #78d9ff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

body.dark-mode .item-sidebar-content .set-name {
    color: var(--tooltip-set-name);
}

.item-sidebar-content .set-bonus {
    padding: 5px 0;
    color: #cc8800;
    font-weight: 600;
}

body.dark-mode .item-sidebar-content .set-bonus {
    color: var(--tooltip-set-bonus);
}

/* ==================== 怪物详情侧边栏样式 ==================== */

.monster-sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: var(--z-sidebar-primary-overlay);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.monster-sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

.monster-sidebar {
    position: fixed;
    top: 0;
    right: 0;
    width: var(--sidebar-primary-width);
    max-width: 100%;
    height: 100%;
    background: var(--bg);
    z-index: var(--z-sidebar-primary);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.3);
    overflow-y: auto;
}

.monster-sidebar.active {
    transform: translateX(0);
}

.monster-sidebar-header {
    position: sticky;
    top: 0;
    background: var(--bg);
    padding: var(--sidebar-header-padding);
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: flex-end;
    z-index: 10;
}

/* 怪物侧边栏关闭按钮 - 继承全局游戏UI风格 */
.monster-sidebar-close {
    /* 这里不需要额外样式，因为按钮使用的是 .sidebar-close-btn 类，
       而 .sidebar-close-btn 已经有完整的游戏UI风格了 */
}

.monster-sidebar-content {
    padding: var(--sidebar-content-padding);
}

/* 响应式设计 - 怪物侧边栏 */
@media (max-width: 768px) {
    .monster-sidebar {
        width: 100%;
    }
}



/* 怪物详情样式（适配侧边栏） */
.monster-sidebar-content .monster-header {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}

.monster-sidebar-content .monster-image-wrapper {
    flex-shrink: 0;
}

.monster-sidebar-content .monster-image {
    width: 80px;
    height: 80px;
    object-fit: contain;
    border-radius: 8px;
}

.monster-sidebar-content .monster-info-main {
    flex: 1;
}

.monster-sidebar-content .monster-title-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.monster-sidebar-content .monster-name {
    font-size: 1.5rem;
    margin: 0;
}

.monster-sidebar-content .monster-rank {
    font-size: 0.9rem;
    padding: 3px 10px;
    border-radius: 4px;
    background: var(--surface);
}

.monster-sidebar-content .monster-basic-info {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.monster-sidebar-content .info-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.monster-sidebar-content .info-label {
    color: var(--text-muted);
}

.monster-sidebar-content .monster-section {
    margin-bottom: 25px;
}

.monster-sidebar-content .section-title {
    font-size: 1.2rem;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
}

.monster-sidebar-content .stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px;
}

.monster-sidebar-content .stat-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 12px;
    background: var(--surface);
    border-radius: 6px;
}

/* ========== NPC侧边栏样式 ========== */
.npc-sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 2000;
}

.npc-sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

.npc-sidebar {
    position: fixed;
    top: 0;
    right: 0;
    width: var(--sidebar-primary-width);
    max-width: 100%;
    height: 100%;
    background: #ffffff !important;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    z-index: 2001;
}

/* 游戏UI装饰 - NPC侧边栏 */
.npc-decoration-corner {
    position: sticky;
    z-index: 1000;
    pointer-events: none;
}

.npc-corner-tl {
    position: absolute;
    top: 0;
    left: 0;
    width: 20px;
    height: 20px;
    border-top: 2px solid #f59e0b;
    border-left: 2px solid #f59e0b;
}

.npc-corner-br {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 20px;
    height: 20px;
    border-bottom: 2px solid #8b5cf6;
    border-right: 2px solid #8b5cf6;
}

body.dark-mode .npc-sidebar {
    background: var(--npc-sidebar-bg) !important;
}

.npc-sidebar.active {
    transform: translateX(0);
}

.npc-sidebar-header {
    position: sticky;
    top: 0;
    background: #ffffff !important;
    padding: var(--sidebar-header-padding);
    display: flex;
    justify-content: flex-end;
    border-bottom: 1px solid rgba(139, 92, 246, 0.3);
    z-index: 10;
}

body.dark-mode .npc-sidebar-header {
    background: var(--npc-sidebar-header-bg) !important;
    border-bottom: 1px solid var(--npc-sidebar-header-border);
}

.npc-sidebar-close {
    font-size: 2rem;
    background: rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(139, 92, 246, 0.3);
    cursor: pointer;
    color: var(--text);
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0;
    transition: all 0.2s ease;
    position: relative;
}

/* 游戏UI装饰 - 关闭按钮 */
.npc-sidebar-close::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    width: 10px;
    height: 10px;
    border-top: 1px solid #f59e0b;
    border-left: 1px solid #f59e0b;
}

.npc-sidebar-close::after {
    content: '';
    position: absolute;
    bottom: -1px;
    right: -1px;
    width: 10px;
    height: 10px;
    border-bottom: 1px solid #8b5cf6;
    border-right: 1px solid #8b5cf6;
}

.npc-sidebar-close:hover {
    background: rgba(245, 158, 11, 0.1);
    border-color: #f59e0b;
    color: #f59e0b;
}

.npc-sidebar-content {
    padding: var(--sidebar-content-padding);
    overflow-y: auto;
    flex: 1;
}

/* NPC侧边栏内部样式 */
.npc-sidebar-content .npc-detail {
    padding: 0;
}

.npc-sidebar-content .npc-detail-header {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(139, 92, 246, 0.3);
    position: relative;
}

/* 游戏UI装饰 - NPC详情头部 */
.npc-sidebar-content .npc-detail-header::before {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, #f59e0b, #8b5cf6);
}

.npc-sidebar-content .npc-detail-image {
    flex-shrink: 0;
    position: relative;
}

/* 游戏UI装饰 - NPC图片容器 */
.npc-sidebar-content .npc-detail-image::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    width: 12px;
    height: 12px;
    border-top: 2px solid #f59e0b;
    border-left: 2px solid #f59e0b;
}

.npc-sidebar-content .npc-detail-image::after {
    content: '';
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 12px;
    height: 12px;
    border-bottom: 2px solid #8b5cf6;
    border-right: 2px solid #8b5cf6;
}

.npc-sidebar-content .npc-detail-image img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    border-radius: 0;
    border: 1px solid rgba(139, 92, 246, 0.3);
    padding: 4px;
}

.npc-sidebar-content .npc-detail-info {
    flex: 1;
    min-width: 0;
}

.npc-sidebar-content .npc-detail-info h2 {
    font-size: 1.5rem;
    margin: 0 0 10px 0;
    color: #f59e0b;
    font-weight: 700;
}

.npc-sidebar-content .npc-detail-info p {
    margin: 5px 0;
    color: var(--text-muted);
}

.npc-sidebar-content .npc-detail-info strong {
    color: #8b5cf6;
    font-weight: 700;
}

.npc-sidebar-content .npc-detail-content {
    margin-top: 25px;
}

.npc-sidebar-content .npc-section {
    margin-bottom: 25px;
}

.npc-sidebar-content .section-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(139, 92, 246, 0.3);
    color: #f59e0b;
    position: relative;
    letter-spacing: 2px;
}

/* 游戏UI装饰 - 区域标题 */
.npc-sidebar-content .section-title::before {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, #f59e0b, #8b5cf6);
}

/* NPC侧边栏相关任务样式 */
.npc-sidebar-content .compact-quest-chain {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.npc-sidebar-content .compact-quest-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: var(--bg);
    border-radius: 8px;
    text-decoration: none;
    color: var(--text);
    transition: all 0.2s;
    border: 1px solid var(--border);
}

.npc-sidebar-content .compact-quest-link:hover {
    border-color: var(--accent);
    background: var(--surface);
}

.npc-sidebar-content .compact-quest-serial-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--accent);
    color: white;
    font-weight: 600;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.npc-sidebar-content .compact-quest-level-text {
    font-weight: 500;
    color: var(--text-secondary);
    flex-shrink: 0;
}

.npc-sidebar-content .compact-quest-name {
    flex: 1;
}

.npc-sidebar-content .npc-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.npc-sidebar-content .stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    background: rgba(0, 0, 0, 0.02);
    border-radius: 0;
    border: 1px solid rgba(139, 92, 246, 0.3);
    position: relative;
}

/* 游戏UI装饰 - 统计项 */
.npc-sidebar-content .stat-item::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    width: 10px;
    height: 10px;
    border-top: 1px solid #f59e0b;
    border-left: 1px solid #f59e0b;
}

.npc-sidebar-content .stat-item::after {
    content: '';
    position: absolute;
    bottom: -1px;
    right: -1px;
    width: 10px;
    height: 10px;
    border-bottom: 1px solid #8b5cf6;
    border-right: 1px solid #8b5cf6;
}

.npc-sidebar-content .stat-label {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.npc-sidebar-content .stat-value {
    font-weight: 700;
    color: #8b5cf6;
}

.npc-sidebar-content .npc-map-container {
    margin-bottom: 25px;
    position: relative;
    width: 100%;
    height: 350px;
    background: #1a1a1a;
    border-radius: 0;
    overflow: hidden;
    border: 1px solid rgba(139, 92, 246, 0.3);
}

/* 游戏UI装饰 - 地图容器 */
.npc-sidebar-content .npc-map-container::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    width: 15px;
    height: 15px;
    border-top: 2px solid #f59e0b;
    border-left: 2px solid #f59e0b;
    z-index: 100;
}

.npc-sidebar-content .npc-map-container::after {
    content: '';
    position: absolute;
    bottom: -1px;
    right: -1px;
    width: 15px;
    height: 15px;
    border-bottom: 2px solid #8b5cf6;
    border-right: 2px solid #8b5cf6;
    z-index: 100;
}

.npc-sidebar-content .npc-map-canvas {
    position: absolute;
    top: 0;
    left: 0;
    cursor: grab;
}

.npc-sidebar-content .npc-map-canvas.dragging {
    cursor: grabbing;
}

.npc-sidebar-content .npc-map-tile {
    position: absolute;
    background-size: cover;
    background-position: center;
}

.npc-sidebar-content .npc-map-markers {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.npc-sidebar-content .npc-map-marker {
    position: absolute;
    pointer-events: auto;
    cursor: pointer;
    transform-origin: center center;
    z-index: 100;
}

.npc-sidebar-content .npc-map-marker-tooltip {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    white-space: nowrap;
    margin-bottom: 8px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, visibility 0.2s;
    z-index: 1000;
}

.npc-sidebar-content .npc-map-marker:hover .npc-map-marker-tooltip {
    opacity: 1;
    visibility: visible;
}

.npc-sidebar-content .npc-map-marker-tooltip-name {
    font-weight: bold;
    margin-bottom: 4px;
}

.npc-sidebar-content .npc-map-marker-tooltip-info {
    opacity: 0.8;
}

.npc-sidebar-content .npc-map-marker-icon {
    width: 40px;
    height: 40px;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
}

.npc-sidebar-content .npc-map-controls {
    position: absolute;
    bottom: 12px;
    right: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    z-index: 200;
}

.npc-sidebar-content .npc-map-control-btn {
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s;
}

.npc-sidebar-content .npc-map-control-btn:hover {
    background: rgba(0, 0, 0, 0.9);
}

/* NPC页面的物品侧边栏样式（备用） */
#item-sidebar {
    width: 700px !important;
}

.item-sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: var(--z-sidebar-secondary-overlay);
}

.item-sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

.item-sidebar {
    position: fixed;
    top: 0;
    right: 0;
    width: var(--sidebar-secondary-width);
    max-width: 100%;
    height: 100%;
    background: var(--bg) !important;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: var(--z-sidebar-secondary);
    overflow-y: auto;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.3);
    border-left: 1px solid rgba(139, 92, 246, 0.3);
    position: relative;
}

/* 游戏UI装饰 - 物品侧边栏 */
.item-sidebar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 20px;
    height: 20px;
    border-top: 3px solid #f59e0b;
    border-left: 3px solid #f59e0b;
    z-index: 1000;
}

.item-sidebar::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 20px;
    height: 20px;
    border-bottom: 3px solid #8b5cf6;
    border-right: 3px solid #8b5cf6;
    z-index: 1000;
}

.item-sidebar.active {
    transform: translateX(0);
}

body.dark-mode .item-sidebar {
    background: #1e1e2e !important;
    border-left: 1px solid rgba(139, 92, 246, 0.4);
}

.item-sidebar-header {
    position: sticky;
    top: 0;
    background: var(--bg) !important;
    padding: 15px 20px;
    display: flex;
    justify-content: flex-end;
    border-bottom: 1px solid rgba(139, 92, 246, 0.3);
    z-index: 10;
    background: linear-gradient(90deg, rgba(245, 158, 11, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
}

body.dark-mode .item-sidebar-header {
    background: #1e1e2e !important;
    border-bottom: 1px solid rgba(139, 92, 246, 0.4);
    background: linear-gradient(90deg, rgba(245, 158, 11, 0.15) 0%, rgba(139, 92, 246, 0.15) 100%);
}

.item-sidebar-close {
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(139, 92, 246, 0.3);
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text);
    line-height: 1;
    padding: 8px 16px;
    width: auto;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0;
    transition: all 0.2s;
    font-weight: 700;
    position: relative;
}

/* 游戏UI装饰 - 关闭按钮 */
.item-sidebar-close::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    width: 10px;
    height: 10px;
    border-top: 1px solid #8b5cf6;
    border-left: 1px solid #8b5cf6;
}

.item-sidebar-close::after {
    content: '';
    position: absolute;
    bottom: -1px;
    right: -1px;
    width: 10px;
    height: 10px;
    border-bottom: 1px solid #f59e0b;
    border-right: 1px solid #f59e0b;
}

.item-sidebar-close:hover {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
    color: #f59e0b;
    border-color: #f59e0b;
    box-shadow: 0 0 15px rgba(245, 158, 11, 0.2);
}

body.dark-mode .item-sidebar-close {
    background: rgba(0, 0, 0, 0.2);
}

body.dark-mode .item-sidebar-close:hover {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.2) 0%, rgba(139, 92, 246, 0.2) 100%);
    box-shadow: 0 0 20px rgba(245, 158, 11, 0.3);
}

.item-sidebar-content {
    padding: 20px;
}

.item-sidebar-content .item-header {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(139, 92, 246, 0.3);
    position: relative;
}

.item-sidebar-content .item-image-wrapper {
    flex-shrink: 0;
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(139, 92, 246, 0.3);
    position: relative;
}

/* 游戏UI装饰 - 物品图标容器 */
.item-sidebar-content .item-image-wrapper::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    width: 15px;
    height: 15px;
    border-top: 1px solid #f59e0b;
    border-left: 1px solid #f59e0b;
}

.item-sidebar-content .item-image-wrapper::after {
    content: '';
    position: absolute;
    bottom: -1px;
    right: -1px;
    width: 15px;
    height: 15px;
    border-bottom: 1px solid #8b5cf6;
    border-right: 1px solid #8b5cf6;
}

.item-sidebar-content .item-image {
    width: 80px;
    height: 80px;
    object-fit: contain;
    border-radius: 0;
    filter: drop-shadow(0 0 10px rgba(245, 158, 11, 0.3));
}

.item-sidebar-content .item-info-main {
    flex: 1;
    min-width: 0;
}

.item-sidebar-content .item-title-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.item-sidebar-content .item-name {
    font-size: 1.5rem;
    margin: 0;
    color: #374151;
    font-weight: 700;
    text-shadow: 0 0 10px rgba(245, 158, 11, 0.1);
}

.item-sidebar-content .item-rarity {
    font-weight: 700;
    font-size: 0.85rem;
    padding: 4px 12px;
    border: 1px solid rgba(139, 92, 246, 0.3);
    background: rgba(0, 0, 0, 0.02);
    letter-spacing: 1px;
}

.item-sidebar-content .ultimate-badge {
    width: 24px;
    height: 24px;
    border-radius: 0;
}

.item-sidebar-content .item-description {
    margin: 5px 0 0 0;
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.5;
}

.item-sidebar-content .item-content {
    margin-bottom: 20px;
}

.item-sidebar-content .item-stats {
    margin-top: 25px;
}

.item-sidebar-content .section-title {
    font-size: 1.1rem;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(139, 92, 246, 0.3);
    color: #f59e0b;
    font-weight: 700;
    letter-spacing: 2px;
    position: relative;
}

/* 游戏UI装饰 - 章节标题 */
.item-sidebar-content .section-title::before {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, #f59e0b, #8b5cf6);
}

.item-sidebar-content .item-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
}

.item-sidebar-content .stat-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 15px;
    background: rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 0;
    font-size: 0.95rem;
    position: relative;
}

/* 游戏UI装饰 - 属性项 */
.item-sidebar-content .stat-item::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    width: 8px;
    height: 8px;
    border-top: 1px solid #f59e0b;
    border-left: 1px solid #f59e0b;
}

.item-sidebar-content .stat-item::after {
    content: '';
    position: absolute;
    bottom: -1px;
    right: -1px;
    width: 8px;
    height: 8px;
    border-bottom: 1px solid #8b5cf6;
    border-right: 1px solid #8b5cf6;
}

.item-sidebar-content .stat-label {
    color: var(--text-muted);
    font-weight: 500;
}

.item-sidebar-content .stat-value {
    font-weight: 700;
    color: #8b5cf6;
    text-shadow: 0 0 5px rgba(139, 92, 246, 0.2);
}

.item-sidebar-content .set-info {
    margin-top: 25px;
}

.item-sidebar-content .set-name {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: #f59e0b;
}

.item-sidebar-content .set-bonuses {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.item-sidebar-content .set-bonus-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 15px;
    background: rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 0;
    font-size: 0.95rem;
    position: relative;
}

/* 游戏UI装饰 - 套装属性项 */
.item-sidebar-content .set-bonus-item::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    width: 8px;
    height: 8px;
    border-top: 1px solid #f59e0b;
    border-left: 1px solid #f59e0b;
}

.item-sidebar-content .set-bonus-item::after {
    content: '';
    position: absolute;
    bottom: -1px;
    right: -1px;
    width: 8px;
    height: 8px;
    border-bottom: 1px solid #8b5cf6;
    border-right: 1px solid #8b5cf6;
}

.item-sidebar-content .set-bonus-count {
    color: var(--text-muted);
    font-weight: 500;
}

.item-sidebar-content .set-bonus-value {
    font-weight: 700;
    color: #8b5cf6;
    text-shadow: 0 0 5px rgba(139, 92, 246, 0.2);
}

.item-sidebar-content .upgrade-levels {
    margin-top: 25px;
}

.item-sidebar-content .upgrade-levels-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
}

.item-sidebar-content .upgrade-level-card {
    background: rgba(0, 0, 0, 0.02);
    border-radius: 0;
    padding: 15px;
    border: 1px solid rgba(139, 92, 246, 0.2);
    position: relative;
}

/* 游戏UI装饰 - 升级等级卡片 */
.item-sidebar-content .upgrade-level-card::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    width: 10px;
    height: 10px;
    border-top: 1px solid #f59e0b;
    border-left: 1px solid #f59e0b;
}

.item-sidebar-content .upgrade-level-card::after {
    content: '';
    position: absolute;
    bottom: -1px;
    right: -1px;
    width: 10px;
    height: 10px;
    border-bottom: 1px solid #8b5cf6;
    border-right: 1px solid #8b5cf6;
}

.item-sidebar-content .upgrade-level-card.max {
    border-color: #f59e0b;
    box-shadow: 0 0 15px rgba(245, 158, 11, 0.2);
}

.item-sidebar-content .upgrade-level-header {
    text-align: center;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(139, 92, 246, 0.2);
}

.item-sidebar-content .upgrade-level-number {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 36px;
    text-align: center;
    border-radius: 0;
    background: linear-gradient(135deg, #f59e0b, #8b5cf6);
    color: white;
    font-weight: bold;
    font-size: 1rem;
    border: 2px solid transparent;
    background-clip: padding-box;
}

.item-sidebar-content .upgrade-level-card.max .upgrade-level-number {
    background: linear-gradient(135deg, #f59e0b, #f59e0b);
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.4);
}

.item-sidebar-content .upgrade-level-stats p {
    margin: 6px 0;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.item-sidebar-content .upgrade-level-stats p span:first-child {
    margin-right: 5px;
}

/* 深色主题适配 - 全局物品侧边栏 */
body.dark-mode .item-sidebar-content .item-header {
    border-bottom: 1px solid rgba(139, 92, 246, 0.4);
}

body.dark-mode .item-sidebar-content .item-image-wrapper {
    background: rgba(0, 0, 0, 0.2);
}

body.dark-mode .item-sidebar-content .item-image {
    filter: drop-shadow(0 0 15px rgba(245, 158, 11, 0.4));
}

body.dark-mode .item-sidebar-content .item-name {
    color: #f59e0b;
}

body.dark-mode .item-sidebar-content .item-rarity {
    background: rgba(0, 0, 0, 0.2);
}

body.dark-mode .item-sidebar-content .stat-item {
    background: rgba(0, 0, 0, 0.2);
}

body.dark-mode .item-sidebar-content .stat-value {
    color: #a78bfa;
}

body.dark-mode .item-sidebar-content .set-bonus-item {
    background: rgba(0, 0, 0, 0.2);
}

body.dark-mode .item-sidebar-content .set-bonus-value {
    color: #a78bfa;
}

body.dark-mode .item-sidebar-content .upgrade-level-card {
    background: rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
    .item-sidebar {
        width: 100%;
    }
    
    .item-sidebar-content {
        padding: 15px;
    }
    
    .item-sidebar-content .item-header {
        flex-direction: column;
        text-align: center;
    }
    
    .item-sidebar-content .item-title-row {
        justify-content: center;
    }
    
    .item-sidebar-content .item-stats-grid,
    .item-sidebar-content .upgrade-levels-grid {
        grid-template-columns: 1fr;
    }
}



.npc-sidebar-content .npc-shop-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.npc-sidebar-content .npc-shop-tab {
    padding: 6px 12px;
    background: rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 0;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.85rem;
    position: relative;
}

/* 游戏UI装饰 - 商店标签 */
.npc-sidebar-content .npc-shop-tab::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    width: 8px;
    height: 8px;
    border-top: 1px solid #8b5cf6;
    border-left: 1px solid #8b5cf6;
}

.npc-sidebar-content .npc-shop-tab::after {
    content: '';
    position: absolute;
    bottom: -1px;
    right: -1px;
    width: 8px;
    height: 8px;
    border-bottom: 1px solid #8b5cf6;
    border-right: 1px solid #8b5cf6;
}

.npc-sidebar-content .npc-shop-tab:hover {
    border-color: #f59e0b;
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
}

.npc-sidebar-content .npc-shop-tab.active {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.15) 0%, rgba(139, 92, 246, 0.15) 100%);
    color: #f59e0b;
    border-color: #f59e0b;
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.2);
}

.npc-sidebar-content .npc-shop-items {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 6px;
}

.npc-sidebar-content .npc-shop-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px 6px;
    background: rgba(0, 0, 0, 0.02);
    border-radius: 0;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid rgba(139, 92, 246, 0.3);
    position: relative;
}

/* 游戏UI装饰 - 商店物品 */
.npc-sidebar-content .npc-shop-item::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    width: 8px;
    height: 8px;
    border-top: 1px solid #f59e0b;
    border-left: 1px solid #f59e0b;
}

.npc-sidebar-content .npc-shop-item::after {
    content: '';
    position: absolute;
    bottom: -1px;
    right: -1px;
    width: 8px;
    height: 8px;
    border-bottom: 1px solid #8b5cf6;
    border-right: 1px solid #8b5cf6;
}

.npc-sidebar-content .npc-shop-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: #f59e0b;
    background: rgba(245, 158, 11, 0.05);
}

.npc-sidebar-content .npc-shop-item-icon {
    width: 36px;
    height: 36px;
    object-fit: contain;
    margin-bottom: 6px;
    filter: drop-shadow(0 0 5px rgba(245, 158, 11, 0.3));
}

.npc-sidebar-content .npc-shop-item-name {
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
}

.npc-sidebar-content .npc-shop-item-price {
    font-size: 0.7rem;
    color: #f59e0b;
    margin-top: 3px;
    font-weight: 600;
}

.npc-sidebar-content .npc-related-quests {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 15px;
}

.npc-sidebar-content .npc-related-quest {
    background: rgba(0, 0, 0, 0.02);
    border-radius: 0;
    padding: 15px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid rgba(139, 92, 246, 0.3);
    position: relative;
}

/* 游戏UI装饰 - 任务卡片 */
.npc-sidebar-content .npc-related-quest::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    width: 12px;
    height: 12px;
    border-top: 1px solid #f59e0b;
    border-left: 1px solid #f59e0b;
}

.npc-sidebar-content .npc-related-quest::after {
    content: '';
    position: absolute;
    bottom: -1px;
    right: -1px;
    width: 12px;
    height: 12px;
    border-bottom: 1px solid #8b5cf6;
    border-right: 1px solid #8b5cf6;
}

.npc-sidebar-content .npc-related-quest:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: #f59e0b;
    background: rgba(245, 158, 11, 0.05);
}

.npc-sidebar-content .quest-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.npc-sidebar-content .quest-icon {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.npc-sidebar-content .quest-info {
    flex: 1;
    min-width: 0;
}

.npc-sidebar-content .quest-name {
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.npc-sidebar-content .quest-meta {
    display: flex;
    gap: 10px;
    margin-top: 5px;
    flex-wrap: wrap;
}

.npc-sidebar-content .quest-level {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 24px;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.2) 0%, rgba(139, 92, 246, 0.2) 100%);
    color: #f59e0b;
    font-size: 0.8rem;
    font-weight: 700;
    border-radius: 0;
    border: 1px solid rgba(139, 92, 246, 0.3);
}

.npc-sidebar-content .quest-type {
    font-size: 0.8rem;
    padding: 3px 8px;
    border-radius: 0;
    background: rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(139, 92, 246, 0.3);
    color: #8b5cf6;
    font-weight: 600;
}

.npc-sidebar-content .quest-role {
    font-size: 0.8rem;
    padding: 3px 8px;
    border-radius: 0;
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
    font-weight: 700;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .npc-sidebar {
        width: 100%;
    }
    
    .npc-sidebar-content .npc-stats-grid {
        grid-template-columns: 1fr;
    }
    
    .npc-sidebar-content .npc-shop-items {
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    }
    
    .npc-sidebar-content .npc-related-quests {
        grid-template-columns: 1fr;
    }
}

/* NPC商店分类容器 - 使用flex布局 */
.npc-sidebar-content .npc-shop-category-container {
    display: flex;
    flex-direction: column;
    max-height: 400px;
}

/* NPC商店物品容器 - 可滚动 */
.npc-sidebar-content .npc-shop-items {
    flex: 1;
    overflow-y: auto;
    padding-right: 5px;
}

.npc-sidebar-content .npc-shop-items::-webkit-scrollbar {
    width: 6px;
}

.npc-sidebar-content .npc-shop-items::-webkit-scrollbar-track {
    background: transparent;
}

.npc-sidebar-content .npc-shop-items::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 3px;
}
/* ========== NPC侧边栏样式 END ========== */

/* ========== 任务侧边栏样式 ========== */
.quest-sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2147483645;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.quest-sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

.quest-sidebar {
    position: fixed;
    top: 0;
    right: 0;
    width: var(--sidebar-primary-width);
    max-width: 100%;
    height: 100vh;
    background: #ffffff;
    z-index: 2147483646;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
}

/* 游戏UI装饰 - 任务侧边栏 */
.quest-sidebar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 20px;
    height: 20px;
    border-top: 2px solid #f59e0b;
    border-left: 2px solid #f59e0b;
    z-index: 1000;
}

.quest-sidebar::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 20px;
    height: 20px;
    border-bottom: 2px solid #8b5cf6;
    border-right: 2px solid #8b5cf6;
    z-index: 1000;
}

.quest-sidebar.active {
    transform: translateX(0);
}

.quest-sidebar-header {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: var(--sidebar-header-padding);
    border-bottom: 1px solid rgba(139, 92, 246, 0.3);
    background: #ffffff;
    flex-shrink: 0;
}

body.dark-mode .quest-sidebar-header {
    background: #1e1e2e;
    border-bottom-color: rgba(139, 92, 246, 0.4);
}

.quest-sidebar-close {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(139, 92, 246, 0.3);
    background: rgba(0, 0, 0, 0.02);
    font-size: 28px;
    cursor: pointer;
    color: var(--text);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0;
    transition: all 0.2s;
    position: relative;
}

/* 游戏UI装饰 - 任务关闭按钮 */
.quest-sidebar-close::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    width: 10px;
    height: 10px;
    border-top: 1px solid #f59e0b;
    border-left: 1px solid #f59e0b;
}

.quest-sidebar-close::after {
    content: '';
    position: absolute;
    bottom: -1px;
    right: -1px;
    width: 10px;
    height: 10px;
    border-bottom: 1px solid #8b5cf6;
    border-right: 1px solid #8b5cf6;
}

.quest-sidebar-close:hover {
    background: rgba(245, 158, 11, 0.1);
    border-color: #f59e0b;
    color: #f59e0b;
}

.quest-sidebar-content {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    min-height: 0;
}

/* 紧凑布局样式 */
.quest-sidebar-compact .quest-section {
    margin-bottom: 5px;
    background: rgba(0, 0, 0, 0.02);
    border-radius: 0;
    padding: 8px;
    border: 1px solid rgba(139, 92, 246, 0.3);
    position: relative;
}

/* 游戏UI装饰 - 任务区域 */
.quest-sidebar-compact .quest-section::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    width: 12px;
    height: 12px;
    border-top: 1px solid #f59e0b;
    border-left: 1px solid #f59e0b;
}

.quest-sidebar-compact .quest-section::after {
    content: '';
    position: absolute;
    bottom: -1px;
    right: -1px;
    width: 12px;
    height: 12px;
    border-bottom: 1px solid #8b5cf6;
    border-right: 1px solid #8b5cf6;
}

.quest-sidebar-compact .section-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: #f59e0b;
    padding-bottom: 6px;
    border-bottom: 1px solid rgba(139, 92, 246, 0.3);
    display: block;
    text-align: center;
    position: relative;
}

/* 游戏UI装饰 - 任务区域标题渐变线 */
.quest-sidebar-compact .section-title::before {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, #f59e0b, #8b5cf6);
}

.quest-sidebar-compact .quest-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 16px;
    background: var(--surface);
    border-radius: 12px;
    padding: 20px 16px;
}

.quest-sidebar-compact .quest-name {
    font-size: 1.25rem;
    margin-bottom: 8px;
}

.quest-sidebar-compact .quest-tags {
    gap: 6px;
}

.quest-sidebar-compact .quest-tag {
    font-size: 0.75rem;
    padding: 4px 10px;
}

.quest-sidebar-compact .quest-level-badge {
    display: inline-block;
    background: var(--accent);
    color: #fff;
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 600;
    margin-bottom: 8px;
}

/* 新头部布局样式 */
.quest-sidebar-compact .quest-new-header {
    position: relative;
    background: rgba(0, 0, 0, 0.02);
    border-radius: 0;
    padding: 8px 16px;
    margin-bottom: 16px;
    text-align: center;
    border: 1px solid rgba(139, 92, 246, 0.3);
}

/* 游戏UI装饰 - 任务头部 */
.quest-sidebar-compact .quest-new-header::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    width: 12px;
    height: 12px;
    border-top: 1px solid #f59e0b;
    border-left: 1px solid #f59e0b;
}

.quest-sidebar-compact .quest-new-header::after {
    content: '';
    position: absolute;
    bottom: -1px;
    right: -1px;
    width: 12px;
    height: 12px;
    border-bottom: 1px solid #8b5cf6;
    border-right: 1px solid #8b5cf6;
}

.quest-sidebar-compact .quest-type-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 10;
}

.quest-sidebar-compact .quest-close-wrapper {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 10;
}

.quest-sidebar-compact .quest-sidebar-close-new {
    width: 32px;
    height: 32px;
    font-size: 24px;
    line-height: 32px;
}

.quest-sidebar-compact .quest-avatar-container {
    margin-top: 10px;
    margin-bottom: 10px;
}

.quest-sidebar-compact .quest-avatar-circle {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto;
    border-radius: 0;
    background: rgba(0, 0, 0, 0.02);
    border: 3px solid #8b5cf6;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 游戏UI装饰 - 任务头像框 */
.quest-sidebar-compact .quest-avatar-circle::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    width: 15px;
    height: 15px;
    border-top: 2px solid #f59e0b;
    border-left: 2px solid #f59e0b;
}

.quest-sidebar-compact .quest-avatar-circle::after {
    content: '';
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 15px;
    height: 15px;
    border-bottom: 2px solid #8b5cf6;
    border-right: 2px solid #8b5cf6;
}

.quest-sidebar-compact .quest-npc-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
}

.quest-sidebar-compact .quest-npc-avatar-default {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
}

.quest-level-overlay {
    position: absolute;
    bottom: 0;
    right: -15px;
    background: linear-gradient(135deg, #f59e0b, #8b5cf6);
    color: #ffffff;
    padding: 2px 8px;
    font-size: 0.85rem;
    font-weight: 700;
    white-space: nowrap;
    z-index: 999;
    border-radius: 0;
    text-shadow: none;
    border: 1px solid #f59e0b;
}

.quest-sidebar-compact .quest-level-overlay {
    position: absolute;
    bottom: 0;
    right: -15px;
    background: linear-gradient(135deg, #f59e0b, #8b5cf6);
    color: #ffffff;
    padding: 2px 8px;
    font-size: 0.85rem;
    font-weight: 700;
    white-space: nowrap;
    z-index: 999;
    border-radius: 0;
    text-shadow: none;
    border: 1px solid #f59e0b;
}

.quest-sidebar-compact .quest-name-centered {
    margin-bottom: 12px;
}

.quest-sidebar-compact .quest-name-bold {
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.3;
    color: #f59e0b;
}

.quest-sidebar-compact .quest-description-header {
    text-align: left;
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-muted);
    padding: 0 8px;
    margin-bottom: 8px;
}

/* 任务列表名称样式 */
.quest-name-text {
    color: var(--text);
    cursor: pointer;
    transition: color 0.2s;
}

.quest-name-text:hover {
    color: var(--text);
    opacity: 0.8;
    text-decoration: underline;
}

/* 怪物侧边栏样式 */
.quest-monster-sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 2147483647;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
}

.quest-monster-sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

.quest-monster-sidebar {
    position: fixed;
    top: 0;
    right: 0;
    width: var(--sidebar-secondary-width);
    max-width: 90vw;
    height: 100%;
    background: var(--bg);
    z-index: 2147483648;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    box-shadow: -4px 0 20px rgba(0,  0,  0, 0.3);
}

.quest-monster-sidebar.active {
    transform: translateX(0);
}

.quest-monster-sidebar-header {
    display: flex;
    justify-content: flex-end;
    padding: var(--sidebar-header-padding);
    border-bottom: 1px solid var(--border);
}

.quest-monster-sidebar-close {
    width: 40px;
    height: 40px;
    border: none;
    background: var(--surface);
    border-radius: 50%;
    font-size: 28px;
    line-height: 40px;
    cursor: pointer;
    color: var(--text);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.quest-monster-sidebar-close:hover {
    background: var(--accent);
    color: #fff;
}

.quest-monster-sidebar-content {
    flex: 1;
    overflow-y: auto;
    padding: var(--sidebar-content-padding);
    min-height: 0;
}

/* 怪物详情样式（适配任务页面的怪物侧边栏） */
.quest-monster-sidebar-content .monster-header {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}

.quest-monster-sidebar-content .monster-image-wrapper {
    flex-shrink: 0;
}

.quest-monster-sidebar-content .monster-image {
    width: 80px;
    height: 80px;
    object-fit: contain;
    border-radius: 8px;
}

.quest-monster-sidebar-content .monster-info-main {
    flex: 1;
}

.quest-monster-sidebar-content .monster-title-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.quest-monster-sidebar-content .monster-name {
    font-size: 1.5rem;
    margin: 0;
}

.quest-monster-sidebar-content .monster-rank {
    font-size: 0.9rem;
    padding: 3px 10px;
    border-radius: 4px;
    background: var(--surface);
}

.quest-monster-sidebar-content .monster-basic-info {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.quest-monster-sidebar-content .info-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.quest-monster-sidebar-content .info-label {
    color: var(--text-muted);
}

.quest-monster-sidebar-content .monster-section {
    margin-bottom: 25px;
}

.quest-monster-sidebar-content .section-title {
    font-size: 1.2rem;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
}

.quest-monster-sidebar-content .stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px;
}

.quest-monster-sidebar-content .monster-stats {
    margin-bottom: 25px;
}

.quest-monster-sidebar-content .stat-label {
    font-size: 1.2rem;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
    display: block;
}

.quest-monster-sidebar-content .stat-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 12px;
    background: var(--surface);
    border-radius: 6px;
    margin-bottom: 8px;
}

.quest-monster-sidebar-content .stat-name {
    color: var(--text-muted);
}

.quest-monster-sidebar-content .stat-value {
    font-weight: 600;
    color: var(--accent);
}

.quest-monster-sidebar-content .drop-items-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.quest-monster-sidebar-content .drop-item-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    background: var(--surface);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.quest-monster-sidebar-content .drop-item-wrapper:hover {
    background: rgba(255, 51, 102, 0.1);
}

.quest-monster-sidebar-content .drop-item-icon {
    width: 40px;
    height: 40px;
    object-fit: contain;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 5px;
}

.quest-monster-sidebar-content .drop-item-info {
    flex: 1;
}

.quest-monster-sidebar-content .drop-item-name {
    font-weight: 600;
    text-decoration: none;
    color: var(--text);
    transition: color 0.2s;
}

.quest-monster-sidebar-content .drop-item-name:hover {
    color: var(--accent);
    text-decoration: underline;
}

.quest-monster-sidebar-content .drop-item-chance {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* 怪物属性网格布局 */
.quest-monster-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.quest-monster-stats-grid .stat-item {
    margin-bottom: 0 !important;
    padding: 6px 10px !important;
}

.quest-monster-stats-grid .stat-name {
    font-size: 0.9rem;
}

.quest-monster-stats-grid .stat-value {
    font-size: 0.9rem;
}

/* 物品侧边栏样式 */
.quest-item-sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 2147483649;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
}

.quest-item-sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

.quest-item-sidebar {
    position: fixed;
    top: 0;
    right: 0;
    width: var(--sidebar-tertiary-width);
    max-width: 90vw;
    height: 100%;
    background: var(--bg);
    z-index: 2147483650;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.3);
}

.quest-item-sidebar.active {
    transform: translateX(0);
}

.quest-item-sidebar-header {
    display: flex;
    justify-content: flex-end;
    padding: var(--sidebar-header-padding);
    border-bottom: 1px solid var(--border);
}

.quest-item-sidebar-close {
    width: 40px;
    height: 40px;
    border: none;
    background: var(--surface);
    border-radius: 50%;
    font-size: 28px;
    line-height: 40px;
    cursor: pointer;
    color: var(--text);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.quest-item-sidebar-close:hover {
    background: var(--accent);
    color: #fff;
}

.quest-item-sidebar-content {
    flex: 1;
    overflow-y: auto;
    padding: var(--sidebar-content-padding);
    min-height: 0;
}

/* 物品详情样式（适配任务页面的物品侧边栏） */
.quest-item-sidebar-content .item-header {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}

.quest-item-sidebar-content .item-image-wrapper {
    flex-shrink: 0;
}

.quest-item-sidebar-content .item-image {
    width: 80px;
    height: 80px;
    object-fit: contain;
    border-radius: 8px;
}

.quest-item-sidebar-content .item-info-main {
    flex: 1;
}

.quest-item-sidebar-content .item-title-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.quest-item-sidebar-content .item-name {
    font-size: 1.5rem;
    margin: 0;
}

.quest-item-sidebar-content .item-rarity {
    font-size: 0.9rem;
    padding: 3px 10px;
    border-radius: 4px;
    background: var(--surface);
}

.quest-item-sidebar-content .item-description {
    color: var(--text-muted);
    margin: 0;
}

.quest-item-sidebar-content .item-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.quest-item-sidebar-content .stat-group {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 15px;
}

.quest-item-sidebar-content .stat-group-title {
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
}

.quest-item-sidebar-content .stat-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
}

.quest-item-sidebar-content .stat-item:last-child {
    border-bottom: none;
}

.quest-item-sidebar-content .stat-label {
    color: var(--text-muted);
}

.quest-item-sidebar-content .stat-value {
    font-weight: 500;
}

.quest-item-sidebar-content .abilities-section,
.quest-item-sidebar-content .sets-section {
    margin-bottom: 30px;
}

.quest-item-sidebar-content .section-title {
    font-size: 1.2rem;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
}

.quest-item-sidebar-content .ability-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 15px;
    background: var(--surface);
    border-radius: 6px;
    margin-bottom: 8px;
}

.quest-item-sidebar-content .ability-value {
    color: #00aa00;
    font-weight: 500;
}

body.dark-mode .quest-item-sidebar-content .ability-value {
    color: #00ff00;
}

.quest-item-sidebar-content .set-item {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
}

.quest-item-sidebar-content .set-name {
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 12px;
    color: #0066aa;
}

body.dark-mode .quest-item-sidebar-content .set-name {
    color: #78d9ff;
}

.quest-item-sidebar-content .set-bonus {
    padding: 5px 0;
    color: #cc8800;
}

body.dark-mode .quest-item-sidebar-content .set-bonus {
    color: #ffeaa1;
}



/* 返回按钮样式 */
.quest-go-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    color: var(--text);
    transition: all 0.2s;
    margin-bottom: 16px;
}

.quest-go-back-btn:hover {
    border-color: var(--accent);
    background: rgba(255, 51, 102, 0.1);
}

/* 提示框样式 */
.quest-toast {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent);
    color: #fff;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    z-index: 12000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(255, 51, 102, 0.4);
}

.quest-toast.show {
    opacity: 1;
    visibility: visible;
    top: 30px;
}

.quest-sidebar-compact .quest-description {
    padding: 12px;
    line-height: 1.6;
    font-size: 0.95rem;
}

.quest-sidebar-compact .compact-rewards-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-bottom: 16px;
}

.quest-sidebar-compact .compact-reward-item {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(0, 0, 0, 0.02);
    padding: 8px 14px;
    border-radius: 0;
    font-size: 0.9rem;
    border: 1px solid rgba(139, 92, 246, 0.3);
    position: relative;
}

/* 游戏UI装饰 - 奖励项 */
.quest-sidebar-compact .compact-reward-item::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    width: 8px;
    height: 8px;
    border-top: 1px solid #f59e0b;
    border-left: 1px solid #f59e0b;
}

.quest-sidebar-compact .compact-reward-item::after {
    content: '';
    position: absolute;
    bottom: -1px;
    right: -1px;
    width: 8px;
    height: 8px;
    border-bottom: 1px solid #8b5cf6;
    border-right: 1px solid #8b5cf6;
}

.quest-sidebar-compact .compact-reward-item-icon {
    font-size: 1.2rem;
}

.quest-sidebar-compact .compact-item-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.quest-sidebar-compact .compact-item-wrapper {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(0, 0, 0, 0.02);
    padding: 8px 12px;
    border-radius: 0;
    border: 1px solid rgba(139, 92, 246, 0.3);
    transition: all 0.2s;
    position: relative;
}

/* 游戏UI装饰 - 物品项 */
.quest-sidebar-compact .compact-item-wrapper::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    width: 8px;
    height: 8px;
    border-top: 1px solid #f59e0b;
    border-left: 1px solid #f59e0b;
}

.quest-sidebar-compact .compact-item-wrapper::after {
    content: '';
    position: absolute;
    bottom: -1px;
    right: -1px;
    width: 8px;
    height: 8px;
    border-bottom: 1px solid #8b5cf6;
    border-right: 1px solid #8b5cf6;
}

.quest-sidebar-compact .compact-item-wrapper:hover {
    border-color: #f59e0b;
    background: rgba(245, 158, 11, 0.1);
}

.quest-sidebar-compact .compact-item-wrapper img {
    width: 28px;
    height: 28px;
    border-radius: 0;
}

.quest-sidebar-compact .compact-item-count {
    font-weight: 700;
    color: #8b5cf6;
}

.quest-sidebar-compact .compact-item-name {
    font-size: 0.9rem;
    color: var(--text);
}

.quest-sidebar-compact .compact-monster-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
}

.quest-sidebar-compact .compact-monster-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bg);
    padding: 10px 16px;
    border-radius: 20px;
    border: 1px solid var(--border);
    width: 100%;
    max-width: 300px;
}

.quest-sidebar-compact .compact-monster-wrapper img {
    width: 32px;
    height: 32px;
    border-radius: 4px;
}

.quest-sidebar-compact .compact-monster-name {
    flex: 1;
    font-weight: 500;
}

.quest-sidebar-compact .compact-monster-count {
    font-weight: 600;
    color: var(--accent);
}

.quest-sidebar-compact .compact-quest-chain {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.quest-sidebar-compact .compact-quest-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: rgba(0, 0, 0, 0.02);
    border-radius: 0;
    text-decoration: none;
    color: var(--text);
    transition: all 0.2s;
    border: 1px solid rgba(139, 92, 246, 0.3);
    position: relative;
}

/* 游戏UI装饰 - 任务链链接 */
.quest-sidebar-compact .compact-quest-link::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    width: 8px;
    height: 8px;
    border-top: 1px solid #f59e0b;
    border-left: 1px solid #f59e0b;
}

.quest-sidebar-compact .compact-quest-link::after {
    content: '';
    position: absolute;
    bottom: -1px;
    right: -1px;
    width: 8px;
    height: 8px;
    border-bottom: 1px solid #8b5cf6;
    border-right: 1px solid #8b5cf6;
}

.quest-sidebar-compact .compact-quest-link:hover {
    border-color: #f59e0b;
    background: rgba(245, 158, 11, 0.1);
}

.quest-sidebar-compact .compact-quest-link.active {
    border-color: #f59e0b;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.15), rgba(139, 92, 246, 0.15));
}

.quest-sidebar-compact .compact-quest-level {
    font-weight: 700;
    color: #8b5cf6;
    min-width: 40px;
}

.quest-sidebar-compact .compact-quest-serial-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 0;
    background: linear-gradient(135deg, #f59e0b, #8b5cf6);
    color: white;
    font-weight: 700;
    font-size: 0.85rem;
    flex-shrink: 0;
    border: 1px solid #f59e0b;
}

.quest-sidebar-compact .compact-quest-level-text {
    font-weight: 500;
    color: var(--text-secondary);
    flex-shrink: 0;
}

.quest-sidebar-compact .compact-quest-name,
.category-quest-list .compact-quest-name {
    flex: 1;
}

.category-quest-list .compact-quest-chain {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 20px;
}

.category-quest-list .compact-quest-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    text-decoration: none;
    color: var(--text);
    transition: all 0.2s ease;
    cursor: pointer;
}

.category-quest-list .compact-quest-link:hover {
    border-color: var(--accent);
    background: var(--bg-hover);
}

.category-quest-list .compact-quest-serial-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--accent);
    color: white;
    font-weight: 600;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.category-quest-list .compact-quest-level-text {
    font-weight: 500;
    color: var(--text-secondary);
    flex-shrink: 0;
}

.quest-sidebar-compact .npc-info-grid {
    gap: 12px;
}

.quest-sidebar-compact .npc-info-item {
    padding: 12px;
}

.quest-sidebar-compact .quest-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.quest-sidebar-compact .quest-link-item {
    padding: 10px 14px;
    background: var(--bg);
    border-radius: 8px;
    border: 1px solid var(--border);
}

.quest-sidebar-compact .quest-link-item:hover {
    border-color: var(--accent);
}

.quest-sidebar-compact .rewards-grid {
    gap: 8px;
}

.quest-sidebar-compact .reward-item {
    padding: 8px 12px;
    font-size: 0.9rem;
}

.quest-sidebar-compact .item-list {
    gap: 8px;
}

.quest-sidebar-compact .item-requirement,
.quest-sidebar-compact .item-reward {
    padding: 8px 12px;
}

.quest-sidebar-compact .monster-list {
    gap: 8px;
}

.quest-sidebar-compact .monster-requirement {
    padding: 8px 12px;
}

.quest-sidebar-compact .quest-detail-sidebar {
    margin-top: 0;
}

.quest-sidebar-compact .series-quests-card {
    margin-top: 16px;
    background: var(--surface);
    border-radius: 12px;
    padding: 16px;
}

.quest-sidebar-compact .series-quests-title {
    font-size: 1rem;
    margin-bottom: 12px;
    text-align: center;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
}

.quest-sidebar-compact .series-quest-item {
    padding: 8px 12px;
    margin-bottom: 4px;
}

/* 任务侧边栏深色主题游戏UI风格 */
body.dark-mode .quest-sidebar {
    background: #1e1e2e;
}

body.dark-mode .quest-sidebar-header {
    background: #1e1e2e;
    border-bottom-color: rgba(139, 92, 246, 0.4);
}

body.dark-mode .quest-sidebar-close {
    background: rgba(0, 0, 0, 0.3);
    border-color: rgba(139, 92, 246, 0.4);
}

body.dark-mode .quest-sidebar-close:hover {
    background: rgba(245, 158, 11, 0.15);
}

body.dark-mode .quest-sidebar-compact .quest-new-header {
    background: rgba(0, 0, 0, 0.3);
    border-color: rgba(139, 92, 246, 0.4);
}

body.dark-mode .quest-sidebar-compact .quest-avatar-circle {
    background: rgba(0, 0, 0, 0.3);
}

body.dark-mode .quest-sidebar-compact .quest-section {
    background: rgba(0, 0, 0, 0.3);
    border-color: rgba(139, 92, 246, 0.4);
}

body.dark-mode .quest-sidebar-compact .section-title {
    border-bottom-color: rgba(139, 92, 246, 0.4);
}

body.dark-mode .quest-sidebar-compact .compact-reward-item {
    background: rgba(0, 0, 0, 0.3);
    border-color: rgba(139, 92, 246, 0.4);
}

body.dark-mode .quest-sidebar-compact .compact-item-wrapper {
    background: rgba(0, 0, 0, 0.3);
    border-color: rgba(139, 92, 246, 0.4);
}

body.dark-mode .quest-sidebar-compact .compact-quest-link {
    background: rgba(0, 0, 0, 0.3);
    border-color: rgba(139, 92, 246, 0.4);
}

body.dark-mode .quest-sidebar-compact .compact-quest-link:hover {
    background: rgba(245, 158, 11, 0.15);
}

body.dark-mode .quest-sidebar-compact .compact-quest-link.active {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(139, 92, 246, 0.2));
}

@media (max-width: 768px) {
    .quest-sidebar {
        width: 100%;
    }
}
/* ========== 任务侧边栏样式 END ========== */

/* ========== 怪物侧边栏地图样式 START ========== */
.monster-sidebar-content .monster-map-container,
.dungeon-sidebar .sidebar-content .monster-map-container {
    width: 100%;
    height: 300px;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #1a1a2e;
    margin-top: 16px;
}

.monster-sidebar-content .monster-map-canvas,
.dungeon-sidebar .sidebar-content .monster-map-canvas {
    position: absolute;
    top: 0;
    left: 0;
    cursor: grab;
    user-select: none;
}

.monster-sidebar-content .monster-map-canvas.dragging,
.dungeon-sidebar .sidebar-content .monster-map-canvas.dragging {
    cursor: grabbing;
}

.monster-sidebar-content .monster-map-tile,
.dungeon-sidebar .sidebar-content .monster-map-tile {
    position: absolute;
    background-size: cover;
    background-position: center;
}

.monster-sidebar-content .monster-map-markers,
.dungeon-sidebar .sidebar-content .monster-map-markers {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.monster-sidebar-content .monster-map-marker,
.dungeon-sidebar .sidebar-content .monster-map-marker {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    pointer-events: auto;
    cursor: pointer;
    transition: transform 0.2s;
    z-index: 10;
}

.monster-sidebar-content .monster-map-marker:hover,
.dungeon-sidebar .sidebar-content .monster-map-marker:hover {
    transform: scale(1.1);
}

.monster-sidebar-content .monster-map-marker-tooltip,
.dungeon-sidebar .sidebar-content .monster-map-marker-tooltip {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.95);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
    margin-bottom: 8px;
    min-width: 150px;
}

.monster-sidebar-content .monster-map-marker:hover .monster-map-marker-tooltip,
.dungeon-sidebar .sidebar-content .monster-map-marker:hover .monster-map-marker-tooltip {
    opacity: 1;
}

.monster-sidebar-content .monster-map-marker-tooltip-name,
.dungeon-sidebar .sidebar-content .monster-map-marker-tooltip-name {
    font-weight: bold;
    margin-bottom: 4px;
    color: #ffd700;
}

.monster-sidebar-content .monster-map-marker-tooltip-info,
.dungeon-sidebar .sidebar-content .monster-map-marker-tooltip-info {
    font-size: 11px;
    color: #ccc;
}

.monster-sidebar-content .monster-map-marker-icon,
.dungeon-sidebar .sidebar-content .monster-map-marker-icon {
    width: 32px;
    height: 32px;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5));
}

.monster-sidebar-content .monster-map-controls,
.dungeon-sidebar .sidebar-content .monster-map-controls {
    position: absolute;
    top: 8px;
    right: 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    z-index: 20;
}

.monster-sidebar-content .monster-map-control-btn,
.dungeon-sidebar .sidebar-content .monster-map-control-btn {
    width: 32px;
    height: 32px;
    border: none;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    border-radius: 4px;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.monster-sidebar-content .monster-map-control-btn:hover,
.dungeon-sidebar .sidebar-content .monster-map-control-btn:hover {
    background: rgba(0, 0, 0, 1);
}

.monster-sidebar-content .monster-map-spawn-area,
.dungeon-sidebar .sidebar-content .monster-map-spawn-area {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 0, 0, 0.2);
    border: 2px solid rgba(255, 0, 0, 0.6);
    pointer-events: none;
    z-index: 5;
}
/* ========== 怪物侧边栏地图样式 END ========== */

/* ========== 全局通用地图样式 START ========== */
.flyff-map-container {
    width: 100%;
    height: 300px;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(139, 92, 246, 0.4);
    border-radius: 0;
    background: #1a1a2e;
    margin-top: 16px;
}

/* 游戏UI装饰 - 地图容器 */
.flyff-map-container::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    width: 15px;
    height: 15px;
    border-top: 2px solid #f59e0b;
    border-left: 2px solid #f59e0b;
    z-index: 100;
}

.flyff-map-container::after {
    content: '';
    position: absolute;
    bottom: -1px;
    right: -1px;
    width: 15px;
    height: 15px;
    border-bottom: 2px solid #8b5cf6;
    border-right: 2px solid #8b5cf6;
    z-index: 100;
}

.flyff-map-canvas {
    position: absolute;
    top: 0;
    left: 0;
    cursor: grab;
    user-select: none;
}

.flyff-map-canvas.dragging {
    cursor: grabbing;
}

.flyff-map-tile {
    position: absolute;
    background-size: cover;
    background-position: center;
}

.flyff-map-markers {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.flyff-map-marker {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    pointer-events: auto;
    cursor: pointer;
    transition: transform 0.2s;
    z-index: 10;
}

.flyff-map-marker:hover {
    transform: scale(1.1);
}

.flyff-map-marker-tooltip {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.95);
    color: white;
    padding: 8px 12px;
    border-radius: 0;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
    margin-bottom: 8px;
    min-width: 150px;
    border: 1px solid #f59e0b;
}

/* 游戏UI装饰 - 地图标记提示 */
.flyff-map-marker-tooltip::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    width: 8px;
    height: 8px;
    border-top: 1px solid #f59e0b;
    border-left: 1px solid #f59e0b;
}

.flyff-map-marker-tooltip::after {
    content: '';
    position: absolute;
    bottom: -1px;
    right: -1px;
    width: 8px;
    height: 8px;
    border-bottom: 1px solid #8b5cf6;
    border-right: 1px solid #8b5cf6;
}

.flyff-map-marker:hover .flyff-map-marker-tooltip {
    opacity: 1;
}

.flyff-map-marker-tooltip-name {
    font-weight: bold;
    margin-bottom: 4px;
    color: #f59e0b;
}

.flyff-map-marker-tooltip-info {
    font-size: 11px;
    color: #a78bfa;
}

.flyff-map-marker-icon {
    width: 32px;
    height: 32px;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5));
}

.flyff-map-controls {
    position: absolute;
    top: 8px;
    right: 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    z-index: 20;
}

.flyff-map-control-btn {
    width: 32px;
    height: 32px;
    border: 1px solid rgba(139, 92, 246, 0.4);
    background: rgba(0, 0, 0, 0.8);
    color: #f59e0b;
    border-radius: 0;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    position: relative;
}

/* 游戏UI装饰 - 地图控制按钮 */
.flyff-map-control-btn::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    width: 6px;
    height: 6px;
    border-top: 1px solid #f59e0b;
    border-left: 1px solid #f59e0b;
}

.flyff-map-control-btn::after {
    content: '';
    position: absolute;
    bottom: -1px;
    right: -1px;
    width: 6px;
    height: 6px;
    border-bottom: 1px solid #8b5cf6;
    border-right: 1px solid #8b5cf6;
}

.flyff-map-control-btn:hover {
    background: rgba(245, 158, 11, 0.2);
    border-color: #f59e0b;
    color: #fbbf24;
}

.flyff-map-spawn-area {
    position: absolute;
    border-radius: 0;
    background: rgba(245, 158, 11, 0.1);
    border: 2px solid rgba(245, 158, 11, 0.6);
    pointer-events: none;
    z-index: 5;
}
/* ========== 全局通用地图样式 END ========== */

/* ========== 地图控制面板游戏UI风格 START ========== */
.map-controls-panel {
    background: rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(139, 92, 246, 0.4);
    border-radius: 0;
    padding: 16px;
    margin-bottom: 16px;
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    position: relative;
}

/* 游戏UI装饰 - 地图控制面板 */
.map-controls-panel::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    width: 12px;
    height: 12px;
    border-top: 1px solid #f59e0b;
    border-left: 1px solid #f59e0b;
}

.map-controls-panel::after {
    content: '';
    position: absolute;
    bottom: -1px;
    right: -1px;
    width: 12px;
    height: 12px;
    border-bottom: 1px solid #8b5cf6;
    border-right: 1px solid #8b5cf6;
}

.control-item {
    display: flex;
    align-items: center;
}

.switch-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
}

.switch-label input[type="checkbox"] {
    display: none;
}

.switch-slider {
    position: relative;
    width: 48px;
    height: 24px;
    background: var(--border);
    border-radius: 12px;
    margin-right: 10px;
    transition: background 0.3s;
}

.switch-slider::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    top: 2px;
    left: 2px;
    transition: transform 0.3s;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.switch-label input[type="checkbox"]:checked + .switch-slider {
    background: var(--accent);
}

.switch-label input[type="checkbox"]:checked + .switch-slider::after {
    transform: translateX(24px);
}

.switch-label input[type="checkbox"]:disabled + .switch-slider {
    background: var(--surface-hover);
    cursor: not-allowed;
}

.switch-label input[type="checkbox"]:disabled + .switch-slider::after {
    background: var(--text-muted);
}

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

.type-badge {
    padding: 4px 10px;
    border-radius: 0;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: capitalize;
    display: inline-block;
    border: 1px solid rgba(139, 92, 246, 0.4);
    position: relative;
}

.type-badge::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    width: 6px;
    height: 6px;
    border-top: 1px solid #f59e0b;
    border-left: 1px solid #f59e0b;
}

.type-badge.main {
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
    border-color: rgba(245, 158, 11, 0.4);
}

.type-badge.dungeon {
    background: rgba(139, 92, 246, 0.15);
    color: #8b5cf6;
    border-color: rgba(139, 92, 246, 0.4);
}

.type-badge.instance {
    background: rgba(59, 130, 246, 0.15);
    color: #3b82f6;
    border-color: rgba(59, 130, 246, 0.4);
}

.type-badge.prison {
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
    border-color: rgba(245, 158, 11, 0.4);
}

.type-badge.event {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
    border-color: rgba(16, 185, 129, 0.4);
}

@media (max-width: 768px) {
    .flyff-map-container {
        height: 400px;
    }
}

/* 地图深色主题适配 */
body.dark-mode .flyff-map-container {
    background: #0f0f1a;
    border-color: rgba(139, 92, 246, 0.5);
}

body.dark-mode .map-controls-panel {
    background: rgba(0, 0, 0, 0.3);
    border-color: rgba(139, 92, 246, 0.5);
}

/* ========== 剧团技能游戏UI风格 ========== */
.theater-skills {
    margin: 10px 0;
    padding: 10px;
    background: rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(139, 92, 246, 0.4);
    border-radius: 5px;
    position: relative;
}

/* 游戏UI装饰 - 剧团技能容器 */
.theater-skills::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    width: 12px;
    height: 12px;
    border-top: 1px solid #f59e0b;
    border-left: 1px solid #f59e0b;
    border-top-left-radius: 5px;
}

.theater-skills::after {
    content: '';
    position: absolute;
    bottom: -1px;
    right: -1px;
    width: 12px;
    height: 12px;
    border-bottom: 1px solid #8b5cf6;
    border-right: 1px solid #8b5cf6;
    border-bottom-right-radius: 5px;
}

.theater-skills-title {
    font-size: 1rem;
    font-weight: 700;
    color: #f59e0b;
    margin-bottom: 10px;
    position: relative;
}

/* 游戏UI装饰 - 标题渐变线 */
.theater-skills-title::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, #f59e0b, #8b5cf6);
}

.theater-skills-icons {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 5px;
}

.theater-skill-icon {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 8px;
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 0;
    cursor: pointer;
    position: relative;
    transition: all 0.2s;
}

/* 游戏UI装饰 - 技能图标 */
.theater-skill-icon::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    width: 6px;
    height: 6px;
    border-top: 1px solid #f59e0b;
    border-left: 1px solid #f59e0b;
}

.theater-skill-icon::after {
    content: '';
    position: absolute;
    bottom: -1px;
    right: -1px;
    width: 6px;
    height: 6px;
    border-bottom: 1px solid #8b5cf6;
    border-right: 1px solid #8b5cf6;
}

.theater-skill-icon:hover {
    border-color: #f59e0b;
    background: rgba(245, 158, 11, 0.1);
}

.theater-skill-icon img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    filter: drop-shadow(0 0 4px rgba(245, 158, 11, 0.3));
}

.theater-skill-name {
    font-size: 0.75rem;
    color: #000000;
    text-align: center;
    white-space: nowrap;
    font-weight: 600;
}

/* 深色主题 - 剧团技能 */
body.dark-mode .theater-skills {
    background: rgba(0, 0, 0, 0.3);
    border-color: rgba(139, 92, 246, 0.5);
}

body.dark-mode .theater-skill-icon {
    background: rgba(0, 0, 0, 0.35);
    border-color: rgba(139, 92, 246, 0.4);
}

body.dark-mode .theater-skill-icon:hover {
    background: rgba(245, 158, 11, 0.15);
    border-color: #f59e0b;
}

body.dark-mode .theater-skill-name {
    color: #ffffff;
}
/* ========== 任务侧边栏样式 END ========== */

/* ========== 怪物侧边栏紧凑样式 START ========== */
/* 专门针对 quest-monster-sidebar-content 的紧凑样式 */
.quest-monster-sidebar-content .monster-header {
    gap: 12px;
    margin-bottom: 16px;
    padding-bottom: 12px;
}

.quest-monster-sidebar-content .monster-image {
    width: 60px;
    height: 60px;
}

.quest-monster-sidebar-content .monster-name {
    font-size: 1.25rem;
    margin-bottom: 4px;
}

.quest-monster-sidebar-content .monster-rank {
    font-size: 0.8rem;
    padding: 2px 8px;
}

.quest-monster-sidebar-content .monster-basic-info {
    gap: 6px;
}

.quest-monster-sidebar-content .info-item {
    font-size: 0.85rem;
}

.quest-monster-sidebar-content .monster-section {
    margin-bottom: 12px;
}

.quest-monster-sidebar-content .section-title,
.quest-monster-sidebar-content .stat-label {
    font-size: 1rem;
    margin-bottom: 8px;
    padding-bottom: 6px;
}

.quest-monster-sidebar-content .quest-monster-stats-grid {
    gap: 4px;
}

.quest-monster-sidebar-content .quest-monster-stats-grid .stat-item {
    padding: 4px 8px !important;
}

.quest-monster-sidebar-content .stat-name {
    font-size: 0.85rem;
}

.quest-monster-sidebar-content .stat-value {
    font-size: 0.85rem;
}

.quest-monster-sidebar-content .monster-loot-item,
.quest-monster-sidebar-content .quest-monster-loot-item {
    padding: 6px 8px !important;
    gap: 8px !important;
}

.quest-monster-sidebar-content .monster-loot-item img,
.quest-monster-sidebar-content .quest-monster-loot-item img {
    width: 32px !important;
    height: 32px !important;
}

.quest-monster-sidebar-content .monster-loot-item div div:first-child,
.quest-monster-sidebar-content .quest-monster-loot-item div div:first-child {
    font-size: 0.85rem !important;
}

.quest-monster-sidebar-content .monster-loot-item div div:last-child,
.quest-monster-sidebar-content .quest-monster-loot-item div div:last-child {
    font-size: 0.75rem !important;
}

/* 战利品网格更紧凑 */
.quest-monster-sidebar-content [style*="grid-template-columns: repeat(auto-fill, minmax(200px, 1fr))"] {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)) !important;
    gap: 6px !important;
}

/* 元素抗性更紧凑 */
.quest-monster-sidebar-content .stat-item span[style*="width: 16px; height: 16px;"] {
    width: 14px !important;
    height: 14px !important;
    margin-right: 3px !important;
}

/* 返回按钮更紧凑 */
.quest-monster-sidebar-content .quest-go-back-btn {
    padding: 4px 10px !important;
    font-size: 0.85rem !important;
    margin-bottom: 8px !important;
}
/* ========== 怪物侧边栏紧凑样式 END ========== */

/* ========== 技能侧边栏样式（与现有页面统一） ========== */
.skill-sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: var(--z-sidebar-primary-overlay);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.skill-sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

.skill-sidebar {
    position: fixed;
    top: 0;
    right: 0;
    width: var(--sidebar-primary-width);
    max-width: 100%;
    height: 100%;
    background: var(--bg);
    z-index: var(--z-sidebar-primary);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.3);
    overflow-y: auto;
}

.skill-sidebar.active {
    transform: translateX(0);
}

.skill-sidebar-header {
    position: sticky;
    top: 0;
    background: var(--bg);
    padding: var(--sidebar-header-padding);
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: flex-end;
    z-index: 10;
}

.skill-sidebar-close {
    background: none;
    border: none;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    color: var(--text);
    padding: 5px 10px;
    transition: color 0.2s;
}

.skill-sidebar-close:hover {
    color: var(--accent);
}

.skill-sidebar-content {
    padding: var(--sidebar-content-padding);
}

/* 响应式设计 - 侧边栏 */
@media (max-width: 768px) {
    .skill-sidebar {
        width: 100%;
    }
}

/* 技能详情样式（适配侧边栏） */
.skill-sidebar-content .skill-header {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}

.skill-sidebar-content .skill-image-wrapper {
    flex-shrink: 0;
}

.skill-sidebar-content .skill-image {
    width: 80px;
    height: 80px;
    object-fit: contain;
    border-radius: 8px;
}

.skill-sidebar-content .skill-info-main {
    flex: 1;
}

.skill-sidebar-content .skill-title-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.skill-sidebar-content .skill-name {
    font-size: 1.5rem;
    margin: 0;
}

.skill-sidebar-content .skill-type {
    font-size: 0.9rem;
    padding: 3px 10px;
    border-radius: 4px;
    background: var(--surface);
}

.skill-sidebar-content .skill-description {
    color: var(--text-muted);
    margin: 0;
}

.skill-sidebar-content .skill-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.skill-sidebar-content .stat-group {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 15px;
}

.skill-sidebar-content .stat-group-title {
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
}

.skill-sidebar-content .stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
}

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

.skill-sidebar-content .stat-label {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.skill-sidebar-content .stat-value {
    font-weight: 600;
    font-size: 0.95rem;
}

/* 技能等级升级区域 */
.skill-sidebar-content .skill-levels-section {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
}

.skill-sidebar-content .skill-levels-title {
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
}

.skill-sidebar-content .skill-levels-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.skill-sidebar-content .skill-level-item {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 10px;
    background: var(--bg);
    border-radius: 6px;
    border: 1px solid var(--border);
}

.skill-sidebar-content .skill-level-label {
    font-weight: 600;
    color: var(--accent);
    min-width: 60px;
}

.skill-sidebar-content .skill-level-stat {
    display: flex;
    gap: 5px;
    font-size: 0.9rem;
}

.skill-sidebar-content .skill-level-stat-label {
    color: var(--text-muted);
}

.skill-sidebar-content .skill-level-stat-value {
    font-weight: 500;
}

/* 技能详情按钮 */
.skill-sidebar-content .skill-detail-btn {
    display: inline-block;
    padding: 10px 20px;
    background: var(--primary);
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    transition: background 0.2s;
}

.skill-sidebar-content .skill-detail-btn:hover {
    background: var(--accent);
}
    color: var(--text);
}



/* ========== 技能侧边栏样式 ========== */
.skill-sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: var(--z-sidebar-primary-overlay);
}

.skill-sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

.skill-sidebar {
    position: fixed;
    top: 0;
    right: 0;
    width: var(--sidebar-primary-width);
    max-width: 100%;
    height: 100%;
    background: var(--bg);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: var(--z-sidebar-primary);
    overflow-y: auto;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
}

body.dark-mode .skill-sidebar {
    background: #1e1e2e !important;
}

.skill-sidebar.active {
    transform: translateX(0);
}

.skill-sidebar-header {
    position: sticky;
    top: 0;
    background: #ffffff !important;
    padding: var(--sidebar-header-padding);
    display: flex;
    justify-content: flex-end;
    border-bottom: 1px solid #e0e0e0;
    z-index: 10;
}

body.dark-mode .skill-sidebar-header {
    background: #1e1e2e !important;
    border-bottom: 1px solid #44475a;
}

.skill-sidebar-close {
    font-size: 2rem;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s ease;
}

.skill-sidebar-close:hover {
    background: var(--surface);
}

.skill-sidebar-content {
    padding: var(--sidebar-content-padding);
}

.skill-sidebar-content .skill-section {
    margin-bottom: 25px;
}

.skill-sidebar-content .section-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary);
    color: var(--text);
}

/* ========== 技能唤醒页面游戏UI风格 ========== */
.awakes-search-bar {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 20px;
}

.awakes-search-input-wrapper {
    flex: 1;
    position: relative;
}

.awakes-search-input-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 10px;
    height: 10px;
    border-top: 1px solid #f59e0b;
    border-left: 1px solid #f59e0b;
    border-top-left-radius: 5px;
    z-index: 10;
}

.awakes-search-input-wrapper::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 10px;
    height: 10px;
    border-bottom: 1px solid #8b5cf6;
    border-right: 1px solid #8b5cf6;
    border-bottom-right-radius: 5px;
    z-index: 10;
}

.awakes-search-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid rgba(139, 92, 246, 0.4);
    border-radius: 5px;
    background: rgba(0, 0, 0, 0.02);
    color: var(--text);
    font-size: 1rem;
    transition: border-color 0.2s ease;
    position: relative;
}

.awakes-search-input:focus {
    outline: none;
    border-color: #f59e0b;
}

.awakes-clear-btn {
    padding: 12px 24px;
    background: rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(139, 92, 246, 0.4);
    border-radius: 5px;
    color: var(--text);
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.awakes-clear-btn::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    width: 8px;
    height: 8px;
    border-top: 1px solid #f59e0b;
    border-left: 1px solid #f59e0b;
    border-top-left-radius: 5px;
}

.awakes-clear-btn::after {
    content: '';
    position: absolute;
    bottom: -1px;
    right: -1px;
    width: 8px;
    height: 8px;
    border-bottom: 1px solid #8b5cf6;
    border-right: 1px solid #8b5cf6;
    border-bottom-right-radius: 5px;
}

.awakes-clear-btn:hover {
    background: rgba(245, 158, 11, 0.1);
    border-color: #f59e0b;
    color: #f59e0b;
}

.weapon-tabs-container {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
    position: relative;
}

.weapon-tab-arrow {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(139, 92, 246, 0.4);
    background: rgba(0, 0, 0, 0.02);
    color: #f59e0b;
    font-size: 1.5rem;
    cursor: pointer;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
    position: relative;
}

.weapon-tab-arrow::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    width: 8px;
    height: 8px;
    border-top: 1px solid #f59e0b;
    border-left: 1px solid #f59e0b;
}

.weapon-tab-arrow::after {
    content: '';
    position: absolute;
    bottom: -1px;
    right: -1px;
    width: 8px;
    height: 8px;
    border-bottom: 1px solid #8b5cf6;
    border-right: 1px solid #8b5cf6;
}

.weapon-tab-arrow:hover {
    background: rgba(245, 158, 11, 0.1);
    border-color: #f59e0b;
}

.weapon-tabs-wrapper {
    flex: 1;
    overflow-x: auto;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

.weapon-tabs-wrapper::-webkit-scrollbar {
    display: none;
}

.weapon-tabs {
    display: flex;
    gap: 8px;
    padding: 4px 0;
}

.weapon-tab {
    padding: 10px 20px;
    background: rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(139, 92, 246, 0.4);
    color: var(--text);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    position: relative;
    transition: all 0.2s ease;
    border-radius: 5px;
}

.weapon-tab::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    width: 8px;
    height: 8px;
    border-top: 1px solid #f59e0b;
    border-left: 1px solid #f59e0b;
    border-top-left-radius: 5px;
}

.weapon-tab::after {
    content: '';
    position: absolute;
    bottom: -1px;
    right: -1px;
    width: 8px;
    height: 8px;
    border-bottom: 1px solid #8b5cf6;
    border-right: 1px solid #8b5cf6;
    border-bottom-right-radius: 5px;
}

.weapon-tab:hover {
    border-color: #f59e0b;
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
}

.weapon-tab.active {
    border-color: #f59e0b;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.15), rgba(139, 92, 246, 0.15));
    color: #f59e0b;
    box-shadow: 0 0 12px rgba(245, 158, 11, 0.3);
}

.skill-awakes-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

@media (max-width: 1200px) {
    .skill-awakes-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .skill-awakes-grid {
        grid-template-columns: 1fr;
    }
}

.skill-awake-card {
    background: rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(139, 92, 246, 0.4);
    border-radius: 5px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: relative;
}

.skill-awake-card::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    width: 12px;
    height: 12px;
    border-top: 1px solid #f59e0b;
    border-left: 1px solid #f59e0b;
    border-top-left-radius: 5px;
}

.skill-awake-card::after {
    content: '';
    position: absolute;
    bottom: -1px;
    right: -1px;
    width: 12px;
    height: 12px;
    border-bottom: 1px solid #8b5cf6;
    border-right: 1px solid #8b5cf6;
    border-bottom-right-radius: 5px;
}

.skill-awake-card-header {
    display: flex;
    gap: 12px;
    align-items: center;
}

.skill-awake-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(139, 92, 246, 0.4);
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.skill-awake-icon::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    width: 6px;
    height: 6px;
    border-top: 1px solid #f59e0b;
    border-left: 1px solid #f59e0b;
}

.skill-awake-icon::after {
    content: '';
    position: absolute;
    bottom: -1px;
    right: -1px;
    width: 6px;
    height: 6px;
    border-bottom: 1px solid #8b5cf6;
    border-right: 1px solid #8b5cf6;
}

.skill-awake-icon.placeholder {
    background: rgba(139, 92, 246, 0.2);
}

.skill-awake-icon img {
    width: 32px;
    height: 32px;
    object-fit: contain;
    filter: drop-shadow(0 0 4px rgba(245, 158, 11, 0.3));
}

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

.skill-awake-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: #f59e0b;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.skill-awake-level {
    font-size: 0.85rem;
    color: #8b5cf6;
    margin: 0;
    font-weight: 600;
}

.skill-awake-card-body {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.skill-awake-rarity {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    font-size: 0.9rem;
    line-height: 1.4;
}

.rarity-label {
    font-weight: 700;
    flex-shrink: 0;
    color: #f59e0b;
}

.rarity-values {
    flex: 1;
    word-break: break-all;
}

.no-results {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.skill-awake-description {
    padding: 12px 16px;
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.4);
    border-radius: 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
    text-align: left;
    position: relative;
}

.skill-awake-description::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    width: 8px;
    height: 8px;
    border-top: 1px solid #f59e0b;
    border-left: 1px solid #f59e0b;
}

.skill-awake-description::after {
    content: '';
    position: absolute;
    bottom: -1px;
    right: -1px;
    width: 8px;
    height: 8px;
    border-bottom: 1px solid #8b5cf6;
    border-right: 1px solid #8b5cf6;
}

.awake-tutorial {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 16px 20px;
    background: rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(139, 92, 246, 0.4);
    border-radius: 5px;
    margin-bottom: 16px;
    position: relative;
}

.awake-tutorial::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    width: 12px;
    height: 12px;
    border-top: 1px solid #f59e0b;
    border-left: 1px solid #f59e0b;
    border-top-left-radius: 5px;
}

.awake-tutorial::after {
    content: '';
    position: absolute;
    bottom: -1px;
    right: -1px;
    width: 12px;
    height: 12px;
    border-bottom: 1px solid #8b5cf6;
    border-right: 1px solid #8b5cf6;
    border-bottom-right-radius: 5px;
}

.awake-tutorial-text {
    flex: 1;
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.8;
}

/* 深色主题 - 技能唤醒页面 */
body.dark-mode .awakes-search-input {
    background: rgba(0, 0, 0, 0.3);
    border-color: rgba(139, 92, 246, 0.5);
}

body.dark-mode .awakes-clear-btn {
    background: rgba(0, 0, 0, 0.3);
    border-color: rgba(139, 92, 246, 0.5);
}

body.dark-mode .weapon-tab-arrow {
    background: rgba(0, 0, 0, 0.3);
    border-color: rgba(139, 92, 246, 0.5);
}

body.dark-mode .weapon-tab {
    background: rgba(0, 0, 0, 0.3);
    border-color: rgba(139, 92, 246, 0.5);
    color: var(--text);
}

body.dark-mode .skill-awake-card {
    background: rgba(0, 0, 0, 0.3);
    border-color: rgba(139, 92, 246, 0.5);
}

body.dark-mode .skill-awake-icon {
    background: rgba(0, 0, 0, 0.3);
    border-color: rgba(139, 92, 246, 0.5);
}

body.dark-mode .skill-awake-name {
    color: #fbbf24;
}

body.dark-mode .skill-awake-level {
    color: #a78bfa;
}

body.dark-mode .skill-awake-description {
    background: rgba(139, 92, 246, 0.2);
    border-color: rgba(139, 92, 246, 0.5);
}

body.dark-mode .awake-tutorial {
    background: rgba(0, 0, 0, 0.3);
    border-color: rgba(139, 92, 246, 0.5);
}

.awake-scroll-icon-inline {
    width: 25px;
    height: 25px;
    object-fit: contain;
    cursor: pointer;
    transition: transform 0.2s;
    vertical-align: middle;
    margin: 0 4px;
    display: inline;
    white-space: nowrap;
}

.awake-scroll-icon-inline:hover {
    transform: scale(1.1);
}

/* 成就侧边栏样式 - 游戏UI风格 */
.achievement-sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: var(--z-sidebar-primary-overlay);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.achievement-sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

.achievement-sidebar {
    position: fixed;
    top: 0;
    right: 0;
    width: var(--sidebar-primary-width);
    max-width: 100%;
    height: 100%;
    background: var(--bg);
    z-index: var(--z-sidebar-primary);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.3);
    overflow-y: auto;
}

.achievement-sidebar.active {
    transform: translateX(0);
}

.achievement-sidebar-header {
    position: sticky;
    top: 0;
    background: #ffffff !important;
    padding: var(--sidebar-header-padding);
    display: flex;
    justify-content: flex-end;
    border-bottom: 1px solid rgba(139, 92, 246, 0.3);
    z-index: 10;
}

body.dark-mode .achievement-sidebar-header {
    background: #1e1e2e !important;
    border-bottom: 1px solid rgba(139, 92, 246, 0.4);
}

.achievement-sidebar-close {
    font-size: 2rem;
    background: rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(139, 92, 246, 0.3);
    cursor: pointer;
    color: var(--text);
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0;
    transition: all 0.2s ease;
    position: relative;
}

/* 游戏UI装饰 - 关闭按钮 */
.achievement-sidebar-close::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    width: 10px;
    height: 10px;
    border-top: 1px solid #f59e0b;
    border-left: 1px solid #f59e0b;
}

.achievement-sidebar-close::after {
    content: '';
    position: absolute;
    bottom: -1px;
    right: -1px;
    width: 10px;
    height: 10px;
    border-bottom: 1px solid #8b5cf6;
    border-right: 1px solid #8b5cf6;
}

.achievement-sidebar-close:hover {
    border-color: #f59e0b;
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
}

.achievement-sidebar-content {
    padding: var(--sidebar-content-padding);
}

/* 成就详情样式 - 游戏UI风格 */
.achievement-detail {
    color: var(--text);
}

.achievement-detail-header {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(139, 92, 246, 0.3);
    align-items: center;
}

.achievement-detail-badge {
    flex-shrink: 0;
}

.achievement-badge-large {
    width: 50px;
    height: 50px;
    object-fit: contain;
    border-radius: 0;
    background: rgba(0, 0, 0, 0.02);
    padding: 8px;
    border: 1px solid rgba(139, 92, 246, 0.4);
    position: relative;
}

/* 游戏UI装饰 - 成就徽章 */
.achievement-badge-large::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    width: 8px;
    height: 8px;
    border-top: 1px solid #f59e0b;
    border-left: 1px solid #f59e0b;
}

.achievement-badge-large::after {
    content: '';
    position: absolute;
    bottom: -1px;
    right: -1px;
    width: 8px;
    height: 8px;
    border-bottom: 1px solid #8b5cf6;
    border-right: 1px solid #8b5cf6;
}

.achievement-detail-header h2 {
    font-size: 1.5rem;
    margin: 0;
    color: #f59e0b;
    font-weight: 700;
}

.achievement-detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: flex-end;
}

.achievement-detail-meta span {
    padding: 2px 10px;
    border-radius: 0;
    font-size: 0.8rem;
    font-weight: 600;
    background: rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(139, 92, 246, 0.4);
    color: #8b5cf6;
    display: inline-flex;
    align-items: center;
    height: fit-content;
    line-height: 1.4;
    position: relative;
}

/* 游戏UI装饰 - 元数据标签 */
.achievement-detail-meta span::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    width: 4px;
    height: 4px;
    border-top: 1px solid #f59e0b;
    border-left: 1px solid #f59e0b;
}

.achievement-detail-meta span::after {
    content: '';
    position: absolute;
    bottom: -1px;
    right: -1px;
    width: 4px;
    height: 4px;
    border-bottom: 1px solid #8b5cf6;
    border-right: 1px solid #8b5cf6;
}

.achievement-detail-description {
    margin-bottom: 20px;
}

.achievement-detail-description p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

/* 成就目标部分 - 游戏UI风格 */
.achievement-target-section {
    background: rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(139, 92, 246, 0.4);
    border-radius: 0;
    padding: 15px;
    margin-bottom: 20px;
    position: relative;
}

/* 游戏UI装饰 - 目标区域 */
.achievement-target-section::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    width: 12px;
    height: 12px;
    border-top: 1px solid #f59e0b;
    border-left: 1px solid #f59e0b;
}

.achievement-target-section::after {
    content: '';
    position: absolute;
    bottom: -1px;
    right: -1px;
    width: 12px;
    height: 12px;
    border-bottom: 1px solid #8b5cf6;
    border-right: 1px solid #8b5cf6;
}

.achievement-target-section .section-title {
    font-weight: 700;
    font-size: 1rem;
    color: #f59e0b;
    margin: 0 0 15px 0;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(139, 92, 246, 0.3);
    position: relative;
}

/* 游戏UI装饰 - 标题渐变线 */
.achievement-target-section .section-title::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, #f59e0b, #8b5cf6);
}

.achievement-target-item {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(139, 92, 246, 0.2);
}

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

.target-icon {
    width: 30px;
    height: 30px;
    object-fit: contain;
    border-radius: 0;
    padding: 2px;
    filter: drop-shadow(0 0 4px rgba(245, 158, 11, 0.3));
}

.target-name {
    font-weight: 600;
    color: var(--text);
}

/* 成就奖励表格 - 游戏UI风格 */
.achievement-rewards-section {
    margin-bottom: 0;
}

.achievement-rewards-section .section-title {
    font-weight: 700;
    font-size: 1rem;
    color: #f59e0b;
    margin: 0 0 15px 0;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(139, 92, 246, 0.3);
    position: relative;
}

/* 游戏UI装饰 - 奖励标题渐变线 */
.achievement-rewards-section .section-title::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, #f59e0b, #8b5cf6);
}

.rewards-table {
    border: 1px solid rgba(139, 92, 246, 0.4);
    border-radius: 0;
    overflow: hidden;
    position: relative;
}

/* 游戏UI装饰 - 奖励表格 */
.rewards-table::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    width: 12px;
    height: 12px;
    border-top: 1px solid #f59e0b;
    border-left: 1px solid #f59e0b;
}

.rewards-table::after {
    content: '';
    position: absolute;
    bottom: -1px;
    right: -1px;
    width: 12px;
    height: 12px;
    border-bottom: 1px solid #8b5cf6;
    border-right: 1px solid #8b5cf6;
}

.rewards-header {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: rgba(0, 0, 0, 0.02);
    color: #f59e0b;
    font-weight: 700;
    font-size: 0.85rem;
    border-bottom: 1px solid rgba(139, 92, 246, 0.3);
}

.rewards-header > span {
    padding: 10px 15px;
    color: #f59e0b;
    font-weight: 700;
}

.rewards-header .rewards-col-reward {
    border-left: 1px solid rgba(139, 92, 246, 0.3);
}

.rewards-body {
    background: var(--bg);
}

.rewards-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-top: 1px solid rgba(139, 92, 246, 0.2);
}

.rewards-row:first-child {
    border-top: none;
}

.rewards-row > span {
    padding: 10px 15px;
    font-size: 0.9rem;
}

.rewards-col-condition {
    color: var(--text);
    font-weight: 600;
}

.rewards-col-reward {
    color: #8b5cf6;
    border-left: 1px solid rgba(139, 92, 246, 0.2);
    font-weight: 600;
}

/* 深色主题 - 成就侧边栏 */
body.dark-mode .achievement-sidebar-close {
    background: rgba(0, 0, 0, 0.3);
    border-color: rgba(139, 92, 246, 0.5);
}

body.dark-mode .achievement-badge-large {
    background: rgba(0, 0, 0, 0.3);
    border-color: rgba(139, 92, 246, 0.5);
}

body.dark-mode .achievement-detail-header h2 {
    color: #fbbf24;
}

body.dark-mode .achievement-detail-meta span {
    background: rgba(0, 0, 0, 0.3);
    border-color: rgba(139, 92, 246, 0.5);
    color: #a78bfa;
}

body.dark-mode .achievement-target-section {
    background: rgba(0, 0, 0, 0.3);
    border-color: rgba(139, 92, 246, 0.5);
}

body.dark-mode .achievement-target-section .section-title {
    color: #fbbf24;
}

body.dark-mode .achievement-rewards-section .section-title {
    color: #fbbf24;
}

body.dark-mode .rewards-table {
    border-color: rgba(139, 92, 246, 0.5);
}

body.dark-mode .rewards-header {
    background: rgba(0, 0, 0, 0.3);
    color: #fbbf24;
}

body.dark-mode .rewards-header > span {
    color: #fbbf24;
}

body.dark-mode .rewards-col-reward {
    color: #a78bfa;
}

/* 响应式设计 - 成就侧边栏 */
@media (max-width: 768px) {
    .achievement-sidebar {
        width: 100%;
    }
}

/* ============================================
   Deerflow 物品侧边栏 - 游戏UI风格
   ============================================ */

/* 侧边栏头部 */
.deerflow-sidebar-header {
    background: linear-gradient(90deg, rgba(245, 158, 11, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
    border-bottom: 1px solid rgba(139, 92, 246, 0.3);
    position: relative;
}

/* 怪物/物品头部容器 */
.deerflow-monster-header {
    display: flex;
    gap: 20px;
    padding: 20px;
    align-items: center;
}

/* 物品图标容器 */
.deerflow-monster-icon-wrapper {
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(139, 92, 246, 0.3);
    position: relative;
}

/* 游戏UI装饰 - 图标容器 */
.deerflow-monster-icon-wrapper::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    width: 15px;
    height: 15px;
    border-top: 1px solid #f59e0b;
    border-left: 1px solid #f59e0b;
}

.deerflow-monster-icon-wrapper::after {
    content: '';
    position: absolute;
    bottom: -1px;
    right: -1px;
    width: 15px;
    height: 15px;
    border-bottom: 1px solid #8b5cf6;
    border-right: 1px solid #8b5cf6;
}

/* 物品图标 */
.deerflow-monster-icon {
    width: 80px;
    height: 80px;
    object-fit: contain;
    filter: drop-shadow(0 0 10px rgba(245, 158, 11, 0.3));
}

/* 物品信息区域 */
.deerflow-monster-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* 名称行 */
.deerflow-monster-name-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

/* 物品名称 */
.deerflow-monster-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: #374151;
    text-shadow: 0 0 10px rgba(245, 158, 11, 0.1);
    margin: 0;
}

/* 稀有度标签 */
.deerflow-monster-rank {
    font-weight: 700;
    font-size: 0.85rem;
    padding: 4px 12px;
    border: 1px solid rgba(139, 92, 246, 0.3);
    background: rgba(0, 0, 0, 0.02);
    letter-spacing: 1px;
    position: relative;
}

/* 游戏UI装饰 - 稀有度标签 */
.deerflow-monster-rank::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    width: 10px;
    height: 10px;
    border-top: 1px solid #f59e0b;
    border-left: 1px solid #f59e0b;
}

.deerflow-monster-rank::after {
    content: '';
    position: absolute;
    bottom: -1px;
    right: -1px;
    width: 10px;
    height: 10px;
    border-bottom: 1px solid #8b5cf6;
    border-right: 1px solid #8b5cf6;
}

/* 物品描述 */
.deerflow-monster-description {
    font-size: 0.9rem;
    color: #6b7280;
    margin-top: 8px;
    line-height: 1.4;
    max-width: 100%;
    overflow-wrap: break-word;
}

body.dark-mode .deerflow-monster-description {
    color: #9ca3af;
}

/* 分隔线 */
.deerflow-sidebar-divider {
    height: 1px;
    background: rgba(139, 92, 246, 0.3);
    margin: 0;
}

/* 侧边栏区域 */
.deerflow-sidebar-section {
    padding: 20px;
}

/* 区域标题 */
.deerflow-section-title {
    font-size: 1.1rem;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(139, 92, 246, 0.3);
    color: #f59e0b;
    font-weight: 700;
    letter-spacing: 2px;
    position: relative;
}

/* 游戏UI装饰 - 区域标题 */
.deerflow-section-title::before {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, #f59e0b, #8b5cf6);
}

/* 属性网格 */
.deerflow-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
}

/* 属性项 */
.deerflow-stat-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 15px;
    background: rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 0;
    font-size: 0.95rem;
    position: relative;
}

/* 游戏UI装饰 - 属性项 */
.deerflow-stat-item::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    width: 8px;
    height: 8px;
    border-top: 1px solid #f59e0b;
    border-left: 1px solid #f59e0b;
}

.deerflow-stat-item::after {
    content: '';
    position: absolute;
    bottom: -1px;
    right: -1px;
    width: 8px;
    height: 8px;
    border-bottom: 1px solid #8b5cf6;
    border-right: 1px solid #8b5cf6;
}

/* 属性标签 */
.deerflow-stat-label {
    color: var(--text-muted);
    font-weight: 500;
}

/* 属性值 */
.deerflow-stat-value {
    font-weight: 700;
    color: #8b5cf6;
    text-shadow: 0 0 5px rgba(139, 92, 246, 0.2);
}

/* 元数据网格（怪物详情） */
.deerflow-monster-meta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
    margin-top: 10px;
}

/* 元数据项 */
.deerflow-meta-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 0;
    position: relative;
}

/* 游戏UI装饰 - 元数据项 */
.deerflow-meta-item::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    width: 8px;
    height: 8px;
    border-top: 1px solid #f59e0b;
    border-left: 1px solid #f59e0b;
}

.deerflow-meta-item::after {
    content: '';
    position: absolute;
    bottom: -1px;
    right: -1px;
    width: 8px;
    height: 8px;
    border-bottom: 1px solid #8b5cf6;
    border-right: 1px solid #8b5cf6;
}

/* 元数据标签 */
.deerflow-meta-label {
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.9rem;
}

/* 元数据值 */
.deerflow-meta-value {
    font-weight: 700;
    color: #8b5cf6;
    text-shadow: 0 0 5px rgba(139, 92, 246, 0.2);
}

/* 元素图标 */
.deerflow-element-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

/* ============================================
   Deerflow 物品侧边栏 - 游戏UI风格 深色主题适配
   ============================================ */

body.dark-mode .deerflow-sidebar-header {
    background: linear-gradient(90deg, rgba(245, 158, 11, 0.15) 0%, rgba(139, 92, 246, 0.15) 100%);
    border-bottom: 1px solid rgba(139, 92, 246, 0.4);
}

body.dark-mode .deerflow-monster-icon-wrapper {
    background: rgba(0, 0, 0, 0.2);
}

body.dark-mode .deerflow-monster-icon {
    filter: drop-shadow(0 0 15px rgba(245, 158, 11, 0.4));
}

body.dark-mode .deerflow-monster-name {
    color: #f59e0b;
}

body.dark-mode .deerflow-monster-rank {
    background: rgba(0, 0, 0, 0.2);
}

body.dark-mode .deerflow-sidebar-divider {
    background: rgba(139, 92, 246, 0.4);
}

body.dark-mode .deerflow-section-title {
    border-bottom: 1px solid rgba(139, 92, 246, 0.4);
}

body.dark-mode .deerflow-stat-item {
    background: rgba(0, 0, 0, 0.2);
}

body.dark-mode .deerflow-stat-value {
    color: #a78bfa;
}

body.dark-mode .deerflow-meta-item {
    background: rgba(0, 0, 0, 0.2);
}

body.dark-mode .deerflow-meta-value {
    color: #a78bfa;
}

/* ============================================
   Deerflow 套装效果 - 游戏UI风格
   ============================================ */

/* 套装效果区域 */
.sets-section {
    padding: 20px;
}

/* 套装效果标题 */
.sets-section .sidebar-section-title {
    font-size: 1.1rem;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(139, 92, 246, 0.3);
    color: #f59e0b;
    font-weight: 700;
    letter-spacing: 2px;
    position: relative;
}

/* 游戏UI装饰 - 套装效果标题 */
.sets-section .sidebar-section-title::before {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, #f59e0b, #8b5cf6);
}

/* 套装项容器 */
.set-item {
    background: rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(139, 92, 246, 0.2);
    padding: 15px;
    border-radius: 0;
    position: relative;
}

/* 游戏UI装饰 - 套装项 */
.set-item::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    width: 12px;
    height: 12px;
    border-top: 1px solid #f59e0b;
    border-left: 1px solid #f59e0b;
}

.set-item::after {
    content: '';
    position: absolute;
    bottom: -1px;
    right: -1px;
    width: 12px;
    height: 12px;
    border-bottom: 1px solid #8b5cf6;
    border-right: 1px solid #8b5cf6;
}

/* 套装名称 */
.set-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: #78d9ff;
    margin-bottom: 12px;
}

/* 套装属性项 */
.set-bonus {
    display: flex;
    justify-content: space-between;
    padding: 8px 12px;
    border-bottom: 1px solid rgba(139, 92, 246, 0.2);
}

.set-bonus:last-child {
    border-bottom: none;
}

/* ============================================
   Deerflow 怪物掉落 - 游戏UI风格
   ============================================ */

/* 怪物掉落区域 */
.abilities-section,
.drop-monsters-section {
    padding: 20px;
}

/* 怪物掉落标题 */
.drop-monsters-section .sidebar-section-title {
    font-size: 1.1rem;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(139, 92, 246, 0.3);
    color: #f59e0b;
    font-weight: 700;
    letter-spacing: 2px;
    position: relative;
}

/* 游戏UI装饰 - 怪物掉落标题 */
.drop-monsters-section .sidebar-section-title::before {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, #f59e0b, #8b5cf6);
}

/* 搜索输入框 */
.drop-monsters-section input[type="text"] {
    border: 1px solid rgba(139, 92, 246, 0.3) !important;
    border-radius: 0 !important;
    background: rgba(0, 0, 0, 0.02) !important;
    position: relative;
    padding: 10px 12px !important;
}

.drop-monsters-section input[type="text"]:focus {
    border-color: #f59e0b !important;
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.2) !important;
    outline: none !important;
}

/* 下拉选择框 */
.drop-monsters-section select {
    border: 1px solid rgba(139, 92, 246, 0.3) !important;
    border-radius: 0 !important;
    background: rgba(0, 0, 0, 0.02) !important;
    position: relative;
    padding: 10px 12px !important;
    cursor: pointer;
}

.drop-monsters-section select:focus {
    border-color: #f59e0b !important;
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.2) !important;
    outline: none !important;
}

/* 怪物掉落表格容器 */
#dropMonstersTableContainer {
    margin-top: 15px;
    position: relative;
}

/* 游戏UI装饰 - 表格容器（只包表格） */
#dropMonstersTableContainer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 20px;
    height: 20px;
    border-top: 1px solid #f59e0b;
    border-left: 1px solid #f59e0b;
    z-index: 10;
    pointer-events: none;
}

#dropMonstersTableContainer::after {
    content: '';
    position: absolute;
    bottom: auto;
    top: 0;
    right: 0;
    width: 20px;
    height: 20px;
    border-top: 1px solid #8b5cf6;
    border-right: 1px solid #8b5cf6;
    z-index: 10;
    pointer-events: none;
}

/* 表格装饰 - 底部两个角 */
#dropMonstersTableContainer table {
    position: relative;
    border: 1px solid rgba(139, 92, 246, 0.3);
    background: rgba(0, 0, 0, 0.02);
}

/* 给表格添加底部装饰 */
#dropMonstersTableContainer table::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 20px;
    height: 20px;
    border-bottom: 1px solid #f59e0b;
    border-left: 1px solid #f59e0b;
    z-index: 10;
    pointer-events: none;
}

#dropMonstersTableContainer table::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 20px;
    height: 20px;
    border-bottom: 1px solid #8b5cf6;
    border-right: 1px solid #8b5cf6;
    z-index: 10;
    pointer-events: none;
}

/* 分页按钮容器 */
#dropMonstersTableContainer > div:last-child {
    margin-top: 15px;
    display: flex;
    gap: 10px;
    justify-content: center;
}

/* 分页按钮样式 - 和列表页一致 */
#dropMonstersTableContainer button {
    position: relative;
    background: var(--surface);
    border: 1px solid rgba(139, 92, 246, 0.3);
    color: var(--text);
    padding: 8px 18px;
    cursor: pointer;
    transition: all 0.2s;
    border-radius: 0;
    font-weight: 700;
}

/* 游戏UI装饰 - 分页按钮 */
#dropMonstersTableContainer button::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    width: 10px;
    height: 10px;
    border-top: 1px solid #8b5cf6;
    border-left: 1px solid #8b5cf6;
}

#dropMonstersTableContainer button::after {
    content: '';
    position: absolute;
    bottom: -1px;
    right: -1px;
    width: 10px;
    height: 10px;
    border-bottom: 1px solid #8b5cf6;
    border-right: 1px solid #8b5cf6;
}

#dropMonstersTableContainer button:hover:not([disabled]) {
    border-color: #f59e0b;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
    color: #f59e0b;
    box-shadow: 0 0 15px rgba(245, 158, 11, 0.2);
}

#dropMonstersTableContainer button[disabled] {
    opacity: 0.5;
    cursor: not-allowed;
}

/* 表格表头 */
#dropMonstersTableContainer thead th {
    border-bottom: 1px solid rgba(139, 92, 246, 0.3) !important;
    padding: 12px 8px !important;
    font-weight: 700 !important;
    color: #f59e0b !important;
    background: rgba(245, 158, 11, 0.05);
}

/* 表格行 */
.drop-monster-item {
    position: relative;
    transition: all 0.2s ease;
}

/* 表格单元格 */
.drop-monster-item td {
    border-bottom: 1px solid rgba(139, 92, 246, 0.2) !important;
    padding: 10px 8px !important;
}

/* 表格行悬浮效果 */
.drop-monster-item:hover {
    background: rgba(245, 158, 11, 0.05) !important;
}

/* 偶数行样式 */
.drop-monster-row-even {
    background: rgba(139, 92, 246, 0.02);
}

/* ============================================
   Deerflow 套装效果和怪物掉落 - 游戏UI风格 深色主题适配
   ============================================ */

body.dark-mode .sets-section .sidebar-section-title {
    border-bottom: 1px solid rgba(139, 92, 246, 0.4);
}

body.dark-mode .set-item {
    background: rgba(0, 0, 0, 0.2);
}

body.dark-mode .set-name {
    color: #78d9ff;
}

body.dark-mode .set-bonus {
    border-bottom-color: rgba(139, 92, 246, 0.3);
}

body.dark-mode .drop-monsters-section .sidebar-section-title {
    border-bottom: 1px solid rgba(139, 92, 246, 0.4);
}

body.dark-mode .drop-monsters-section input[type="text"] {
    background: rgba(0, 0, 0, 0.2) !important;
    border-color: rgba(139, 92, 246, 0.4) !important;
}

body.dark-mode .drop-monsters-section select {
    background: rgba(0, 0, 0, 0.2) !important;
    border-color: rgba(139, 92, 246, 0.4) !important;
}

body.dark-mode #dropMonstersTableContainer table {
    background: rgba(0, 0, 0, 0.2);
    border-color: rgba(139, 92, 246, 0.4);
}

body.dark-mode #dropMonstersTableContainer thead th {
    border-bottom-color: rgba(139, 92, 246, 0.4) !important;
    background: rgba(245, 158, 11, 0.08);
}

body.dark-mode .drop-monster-item td {
    border-bottom-color: rgba(139, 92, 246, 0.3) !important;
}

body.dark-mode .drop-monster-item:hover {
    background: rgba(245, 158, 11, 0.08) !important;
}

body.dark-mode .drop-monster-row-even {
    background: rgba(139, 92, 246, 0.05);
}

/* 深色主题分页按钮 */
body.dark-mode #dropMonstersTableContainer button {
    background: #141414;
    border-color: #2a2a2a;
    color: #e0e0e0;
}

body.dark-mode #dropMonstersTableContainer button:hover:not([disabled]) {
    box-shadow: 0 0 20px rgba(245, 158, 11, 0.3);
}

/* ============================================
   掉落物品区域 - 游戏UI风格
   ============================================ */

/* 掉落物品区域标题 */
.monster-section .section-title {
    font-size: 1.1rem;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(139, 92, 246, 0.3);
    color: #f59e0b;
    font-weight: 700;
    letter-spacing: 2px;
    position: relative;
}

/* 游戏UI装饰 - 标题 */
.monster-section .section-title::before {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, #f59e0b, #8b5cf6);
}

/* 搜索输入框 */
.monster-section input[type="text"] {
    border: 1px solid rgba(139, 92, 246, 0.3) !important;
    border-radius: 0 !important;
    background: rgba(0, 0, 0, 0.02) !important;
    position: relative;
    padding: 10px 12px !important;
}

.monster-section input[type="text"]:focus {
    border-color: #f59e0b !important;
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.2) !important;
    outline: none !important;
}

/* 下拉选择框 */
.monster-section select {
    border: 1px solid rgba(139, 92, 246, 0.3) !important;
    border-radius: 0 !important;
    background: rgba(0, 0, 0, 0.02) !important;
    position: relative;
    padding: 10px 12px !important;
    cursor: pointer;
}

.monster-section select:focus {
    border-color: #f59e0b !important;
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.2) !important;
    outline: none !important;
}

/* 掉落物品表格容器 */
#monster-drops-table-container {
    margin-top: 15px;
    position: relative;
}

/* 游戏UI装饰 - 表格容器（只包表格） */
#monster-drops-table-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 20px;
    height: 20px;
    border-top: 1px solid #f59e0b;
    border-left: 1px solid #f59e0b;
    z-index: 10;
    pointer-events: none;
}

#monster-drops-table-container::after {
    content: '';
    position: absolute;
    bottom: auto;
    top: 0;
    right: 0;
    width: 20px;
    height: 20px;
    border-top: 1px solid #8b5cf6;
    border-right: 1px solid #8b5cf6;
    z-index: 10;
    pointer-events: none;
}

/* 表格装饰 - 底部两个角 */
#monster-drops-table-container table {
    position: relative;
    border: 1px solid rgba(139, 92, 246, 0.3);
    background: rgba(0, 0, 0, 0.02);
}

/* 给表格添加底部装饰 */
#monster-drops-table-container table::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 20px;
    height: 20px;
    border-bottom: 1px solid #f59e0b;
    border-left: 1px solid #f59e0b;
    z-index: 10;
    pointer-events: none;
}

#monster-drops-table-container table::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 20px;
    height: 20px;
    border-bottom: 1px solid #8b5cf6;
    border-right: 1px solid #8b5cf6;
    z-index: 10;
    pointer-events: none;
}

/* 分页按钮容器 */
#monster-drops-table-container > div:last-child {
    margin-top: 15px;
    display: flex;
    gap: 10px;
    justify-content: center;
}

/* 分页按钮样式 - 和列表页一致 */
#monster-drops-table-container button {
    position: relative;
    background: var(--surface);
    border: 1px solid rgba(139, 92, 246, 0.3);
    color: var(--text);
    padding: 8px 18px;
    cursor: pointer;
    transition: all 0.2s;
    border-radius: 0;
    font-weight: 700;
}

/* 游戏UI装饰 - 分页按钮 */
#monster-drops-table-container button::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    width: 10px;
    height: 10px;
    border-top: 1px solid #8b5cf6;
    border-left: 1px solid #8b5cf6;
}

#monster-drops-table-container button::after {
    content: '';
    position: absolute;
    bottom: -1px;
    right: -1px;
    width: 10px;
    height: 10px;
    border-bottom: 1px solid #8b5cf6;
    border-right: 1px solid #8b5cf6;
}

#monster-drops-table-container button:hover:not([disabled]) {
    border-color: #f59e0b;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
    color: #f59e0b;
    box-shadow: 0 0 15px rgba(245, 158, 11, 0.2);
}

#monster-drops-table-container button[disabled] {
    opacity: 0.5;
    cursor: not-allowed;
}

/* 表格表头 */
#monster-drops-table-container thead th {
    border-bottom: 1px solid rgba(139, 92, 246, 0.3) !important;
    padding: 12px 8px !important;
    font-weight: 700 !important;
    color: #f59e0b !important;
    background: rgba(245, 158, 11, 0.05);
}

/* 表格行 */
.monster-drop-item {
    position: relative;
    transition: all 0.2s ease;
}

/* 表格单元格 */
.monster-drop-item td {
    border-bottom: 1px solid rgba(139, 92, 246, 0.2) !important;
    padding: 10px 8px !important;
}

/* 表格行悬浮效果 */
.monster-drop-item:hover {
    background: rgba(245, 158, 11, 0.05) !important;
}

/* ============================================
   掉落物品区域 - 游戏UI风格 深色主题适配
   ============================================ */

body.dark-mode .monster-section .section-title {
    border-bottom: 1px solid rgba(139, 92, 246, 0.4);
    color: #f59e0b;
}

body.dark-mode .monster-section input[type="text"] {
    background: rgba(0, 0, 0, 0.2) !important;
    border-color: rgba(139, 92, 246, 0.4) !important;
}

body.dark-mode .monster-section select {
    background: rgba(0, 0, 0, 0.2) !important;
    border-color: rgba(139, 92, 246, 0.4) !important;
}

body.dark-mode #monster-drops-table-container table {
    background: rgba(0, 0, 0, 0.2);
    border-color: rgba(139, 92, 246, 0.4);
}

body.dark-mode #monster-drops-table-container thead th {
    border-bottom-color: rgba(139, 92, 246, 0.4) !important;
    background: rgba(245, 158, 11, 0.08);
}

body.dark-mode .monster-drop-item td {
    border-bottom-color: rgba(139, 92, 246, 0.3) !important;
}

body.dark-mode .monster-drop-item:hover {
    background: rgba(245, 158, 11, 0.08) !important;
}

/* 深色主题分页按钮 */
body.dark-mode #monster-drops-table-container button {
    background: #141414;
    border-color: #2a2a2a;
    color: #e0e0e0;
}

body.dark-mode #monster-drops-table-container button:hover:not([disabled]) {
    box-shadow: 0 0 20px rgba(245, 158, 11, 0.3);
}

/* ============================================
   NPC侧边栏游戏UI风格 - 深色主题适配
   ============================================ */

body.dark-mode .npc-sidebar {
    background: #141414 !important;
}

body.dark-mode .npc-sidebar-header {
    background: #141414 !important;
    border-bottom: 1px solid rgba(139, 92, 246, 0.4);
}

body.dark-mode .npc-sidebar-close {
    background: rgba(0, 0, 0, 0.3);
    border-color: rgba(139, 92, 246, 0.4);
}

body.dark-mode .npc-sidebar-close:hover {
    background: rgba(245, 158, 11, 0.15);
    border-color: #f59e0b;
}

body.dark-mode .npc-sidebar-content .npc-detail-header {
    border-bottom: 1px solid rgba(139, 92, 246, 0.4);
}

body.dark-mode .npc-sidebar-content .npc-detail-image img {
    background: rgba(0, 0, 0, 0.3);
    border-color: rgba(139, 92, 246, 0.4);
}

body.dark-mode .npc-sidebar-content .npc-detail-info h2 {
    color: #f59e0b;
}

body.dark-mode .npc-sidebar-content .npc-detail-info strong {
    color: #a78bfa;
}

body.dark-mode .npc-sidebar-content .section-title {
    border-bottom: 1px solid rgba(139, 92, 246, 0.4);
    color: #f59e0b;
}

body.dark-mode .npc-sidebar-content .stat-item {
    background: rgba(0, 0, 0, 0.3);
    border-color: rgba(139, 92, 246, 0.4);
}

body.dark-mode .npc-sidebar-content .stat-value {
    color: #a78bfa;
}

body.dark-mode .npc-sidebar-content .npc-map-container {
    background: #0a0a0a;
    border-color: rgba(139, 92, 246, 0.4);
}

body.dark-mode .npc-sidebar-content .npc-shop-tab {
    background: rgba(0, 0, 0, 0.3);
    border-color: rgba(139, 92, 246, 0.4);
}

body.dark-mode .npc-sidebar-content .npc-shop-tab:hover {
    background: rgba(245, 158, 11, 0.15);
}

body.dark-mode .npc-sidebar-content .npc-shop-tab.active {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.2) 0%, rgba(139, 92, 246, 0.2) 100%);
    box-shadow: 0 0 15px rgba(245, 158, 11, 0.3);
}

body.dark-mode .npc-sidebar-content .npc-shop-item {
    background: rgba(0, 0, 0, 0.3);
    border-color: rgba(139, 92, 246, 0.4);
}

body.dark-mode .npc-sidebar-content .npc-shop-item:hover {
    background: rgba(245, 158, 11, 0.08);
}

body.dark-mode .npc-sidebar-content .npc-shop-item-price {
    color: #f59e0b;
}

body.dark-mode .npc-sidebar-content .npc-related-quest {
    background: rgba(0, 0, 0, 0.3);
    border-color: rgba(139, 92, 246, 0.4);
}

body.dark-mode .npc-sidebar-content .npc-related-quest:hover {
    background: rgba(245, 158, 11, 0.08);
}

body.dark-mode .npc-sidebar-content .quest-level {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.25) 0%, rgba(139, 92, 246, 0.25) 100%);
    border-color: rgba(139, 92, 246, 0.4);
}

body.dark-mode .npc-sidebar-content .quest-type {
    background: rgba(0, 0, 0, 0.3);
    border-color: rgba(139, 92, 246, 0.4);
    color: #a78bfa;
}

body.dark-mode .npc-sidebar-content .quest-role {
    background: rgba(245, 158, 11, 0.15);
    border-color: rgba(245, 158, 11, 0.4);
}

/* ============================================
   宠物养成页面样式
   ============================================ */

.pets-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 20px;
}

.pets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

.pet-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.pet-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    border-color: var(--accent);
}

.pet-card-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 16px;
}

.pet-card-icon {
    width: 64px;
    height: 64px;
    object-fit: contain;
    border-radius: 8px;
    background: var(--surface);
    border: 1px solid var(--border);
}

.pet-card-icon-placeholder {
    width: 64px;
    height: 64px;
    border-radius: 8px;
    background: var(--surface);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--text-muted);
}

.pet-card-name {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text);
    margin: 0;
}

.pet-card-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 16px;
}

.pet-card-parameter {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: var(--surface);
    border-radius: 6px;
}

.param-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
}

.param-value {
    font-size: 0.95rem;
    color: var(--accent);
    font-weight: 600;
}

.pet-card-tier-selector {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.tier-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
}

.tier-buttons {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
}

.tier-btn {
    padding: 6px 10px;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text);
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.2s ease;
}

.tier-btn:hover {
    border-color: var(--accent);
    background: var(--surface);
}

.tier-btn.active {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
}

.pet-card-bonus {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    border-radius: 8px;
    border: 1px solid var(--accent);
}

.bonus-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
}

.bonus-value {
    font-size: 1rem;
    color: var(--accent);
    font-weight: 700;
}

/* 宠物侧边栏 */
.pet-sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.pet-sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

.pet-sidebar {
    position: fixed;
    top: 0;
    right: 0;
    width: 700px;
    max-width: 100%;
    height: 100%;
    background: var(--bg);
    z-index: 1000;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.3);
}

.pet-sidebar.active {
    transform: translateX(0);
}

.pet-sidebar-header {
    position: sticky;
    top: 0;
    background: var(--bg);
    padding: 20px;
    border-bottom: 1px solid var(--border);
    z-index: 10;
}

.pet-sidebar-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 36px;
    height: 36px;
    border: none;
    background: transparent;
    color: var(--text);
    font-size: 1.5rem;
    cursor: pointer;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.pet-sidebar-close:hover {
    background: var(--surface);
    color: var(--accent);
}

.pet-sidebar-content {
    padding: 20px;
}

.pet-detail {
    max-width: 100%;
}

.pet-detail-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 24px;
}

.pet-detail-icon {
    width: 100px;
    height: 100px;
    object-fit: contain;
    border-radius: 12px;
    background: var(--surface);
    border: 1px solid var(--border);
}

.pet-detail-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text);
    margin: 0;
}

.pet-detail-info {
    margin-bottom: 24px;
}

.pet-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: var(--surface);
    border-radius: 8px;
    margin-bottom: 8px;
}

.info-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
}

.info-value {
    font-size: 0.95rem;
    color: var(--text);
    font-weight: 600;
}

.pet-detail-tier-section,
.pet-detail-bonus-section,
.pet-detail-table-section {
    margin-bottom: 28px;
}

.section-title {
    font-weight: 600;
    font-size: 1rem;
    color: var(--text);
    margin: 0 0 15px 0;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
}

.tier-selector-large {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.tier-btn-large {
    flex: 1;
    min-width: 60px;
    padding: 12px 16px;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text);
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 700;
    transition: all 0.2s ease;
}

.tier-btn-large:hover {
    border-color: var(--accent);
}

.tier-btn-large.active {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
}

.bonus-display {
    padding: 20px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    border-radius: 12px;
    border: 1px solid var(--accent);
}

.bonus-current {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.bonus-current-label {
    font-size: 0.95rem;
    color: var(--text);
    font-weight: 500;
}

.bonus-current-value {
    font-size: 1.5rem;
    color: var(--accent);
    font-weight: 800;
}

.pet-tiers-table {
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
}

.tiers-table-header {
    display: grid;
    grid-template-columns: 80px 1fr 1fr;
    background: var(--surface);
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.85rem;
    border-bottom: 1px solid var(--border);
}

.tiers-table-header > span {
    padding: 12px 16px;
}

.tiers-table-body {
    background: var(--bg);
}

.tiers-table-row {
    display: grid;
    grid-template-columns: 80px 1fr 1fr;
    border-top: 1px solid var(--border);
    cursor: pointer;
    transition: background 0.2s ease;
}

.tiers-table-row:first-child {
    border-top: none;
}

.tiers-table-row:hover {
    background: var(--surface);
}

.tiers-table-row.active {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    border-left: 3px solid var(--accent);
}

.tiers-table-row > span {
    padding: 12px 16px;
}

.tier-col {
    font-weight: 700;
    font-size: 1rem;
    color: var(--text);
}

.bonus-col {
    font-weight: 600;
    color: var(--accent);
}

.energy-col {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* 响应式设计 - 宠物页面 */
@media (max-width: 768px) {
    .pets-grid {
        grid-template-columns: 1fr;
    }
    
    .pet-sidebar {
        width: 100%;
    }
    
    .tiers-table-header,
    .tiers-table-row {
        grid-template-columns: 60px 1fr 1fr;
    }
    
    .tiers-table-header > span,
    .tiers-table-row > span {
        padding: 10px 12px;
        font-size: 0.85rem;
    }
}

/* ============================================
   宠物养成页面 v2 - 新版布局
   ============================================ */

.pets-container-v2 {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0px 0px;
}

.pets-grid-v2 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.pet-card-v2 {
    background: var(--bg);
    border: 1px solid rgba(139, 92, 246, 0.4);
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.2s ease;
    min-width: 500px;
    position: relative;
}

/* 游戏UI装饰 - 宠物卡片 */
.pet-card-v2::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    width: 15px;
    height: 15px;
    border-top: 1px solid #f59e0b;
    border-left: 1px solid #f59e0b;
    border-top-left-radius: 5px;
    z-index: 10;
}

.pet-card-v2::after {
    content: '';
    position: absolute;
    bottom: -1px;
    right: -1px;
    width: 15px;
    height: 15px;
    border-bottom: 1px solid #8b5cf6;
    border-right: 1px solid #8b5cf6;
    border-bottom-right-radius: 5px;
    z-index: 10;
}

.pet-card-v2:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    border-color: #f59e0b;
}

.pet-card-header-v2 {
    background: linear-gradient(90deg, rgba(245, 158, 11, 0.05), rgba(139, 92, 246, 0.05));
    padding: 12px 16px;
    border-bottom: 1px solid rgba(139, 92, 246, 0.3);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pet-name-v2 {
    font-size: 1rem;
    font-weight: 700;
    color: #f59e0b;
}

.pet-card-content-v2 {
    display: flex;
    padding: 16px 16px 8px 16px;
    gap: 16px;
    overflow: visible;
}

/* 左侧固定区 */
.pet-left-section-v2 {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
}

.pet-avatar-container-v2 {
    width: 120px;
    height: 120px;
    border: 1px solid rgba(139, 92, 246, 0.4);
    border-radius: 0;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.02);
    position: relative;
}

/* 游戏UI装饰 - 宠物头像容器 */
.pet-avatar-container-v2::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    width: 10px;
    height: 10px;
    border-top: 1px solid #f59e0b;
    border-left: 1px solid #f59e0b;
}

.pet-avatar-container-v2::after {
    content: '';
    position: absolute;
    bottom: -1px;
    right: -1px;
    width: 10px;
    height: 10px;
    border-bottom: 1px solid #8b5cf6;
    border-right: 1px solid #8b5cf6;
}

.pet-avatar-v2 {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.pet-avatar-placeholder-v2 {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--text-muted);
}

.pet-skill-info-v2 {
    display: flex;
    flex-direction: column;
    margin: 0px 16px 16px 16px;
    padding: 8px 12px;
    background: rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(139, 92, 246, 0.4);
    border-radius: 0;
    position: relative;
}

/* 游戏UI装饰 - 宠物技能信息 */
.pet-skill-info-v2::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    width: 10px;
    height: 10px;
    border-top: 1px solid #f59e0b;
    border-left: 1px solid #f59e0b;
}

.pet-skill-info-v2::after {
    content: '';
    position: absolute;
    bottom: -1px;
    right: -1px;
    width: 10px;
    height: 10px;
    border-bottom: 1px solid #8b5cf6;
    border-right: 1px solid #8b5cf6;
}

.skill-table-v2 {
    display: flex;
    flex-direction: column;
}

.skill-row {
    display: flex;
    justify-content: space-between;
}

.skill-cell-v2 {
    flex: 1;
    text-align: center;
    font-size: 0.75rem;
    padding: 2px 4px;
}

.skill-header-row-v2 .skill-cell-v2 {
    color: var(--text-muted);
    font-weight: 500;
    border-bottom: 1px solid var(--border);
    padding-bottom: 4px;
}

.skill-data-row-v2 .skill-cell-v2 {
    color: var(--accent);
    font-weight: 600;
    padding-top: 4px;
}

/* 右侧交互区 */
.pet-right-section-v2 {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
    overflow: visible;
}

.pet-info-row-v2 {
    display: flex;
    gap: 24px;
}

.pet-info-item-v2 {
    display: flex;
    align-items: center;
    gap: 8px;
}

.info-label-v2 {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 600;
}

.info-value-v2 {
    font-size: 0.95rem;
    color: #8b5cf6;
    font-weight: 700;
}

/* 品阶锚点区域 */
.pet-tier-anchors-v2 {
    display: flex;
    gap: 2px;
    align-items: flex-end;
    padding: 0;
    background: transparent;
    border-radius: 0;
    border: none;
    position: relative;
    overflow: visible;
}

.tier-anchor-v2,
.tier-anchor-v3 {
    position: relative;
    cursor: pointer;
    opacity: 1;
    transition: all 0.08s ease;
    padding: 1px;
    border-radius: 2px;
}

.tier-anchor-v2.locked,
.tier-anchor-v3.locked {
    opacity: 0.4;
    pointer-events: none;
}

.tier-anchor-v3.available:hover {
    background: rgba(90, 127, 200, 0.04);
    transform: translateY(-1px);
}

.tier-anchor-v3.active {
    background: rgba(90, 127, 200, 0.08);
    transform: translateY(-1px);
}

.tier-anchor-content-v2,
.tier-anchor-content-v3 {
    position: relative;
}

.tier-img-v2,
.tier-img-v3 {
    height: 32px;
    width: auto;
}

.tier-level-img-v2,
.tier-level-img-v3 {
    height: 32px;
    width: auto;
}

.delete-tier-btn-v2,
.delete-tier-btn-v3 {
    position: absolute;
    top: -4px;
    right: -4px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #e74c3c;
    color: white;
    border: 1px solid var(--bg);
    font-size: 10px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    transition: all 0.08s ease;
    z-index: 10;
}

.delete-tier-btn-v2:hover,
.delete-tier-btn-v3:hover {
    background: #c0392b;
    transform: scale(1.1);
}

/* 等级选择区域 */
.pet-level-selector-v2,
.pet-level-selector-v3 {
    display: flex;
    gap: 2px;
    justify-content: center;
    padding: 4px 6px;
    background: var(--bg);
    border-radius: 3px;
    border: 1px solid var(--border);
    min-height: auto;
    align-items: center;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    width: fit-content;
    position: absolute;
    z-index: 100;
    left: 50%;
    transform: translateX(-50%);
    top: 100%;
    margin-top: 2px;
}

.pet-level-selector-v3::before {
    content: '';
    position: absolute;
    top: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-bottom: 4px solid var(--border);
}

.pet-level-selector-v3::after {
    content: '';
    position: absolute;
    top: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 2px solid transparent;
    border-right: 2px solid transparent;
    border-bottom: 2px solid var(--bg);
}

.pet-level-selector-v3.hidden {
    display: none;
}

.pet-level-selector-v3.visible {
    display: flex;
    animation: fadeIn 0.08s ease;
}

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

.level-selector-hint-v3 {
    color: var(--text-muted);
    font-size: 0.8rem;
}

.level-btn-v2,
.level-btn-v3 {
    border: none;
    background: var(--bg);
    padding: 1px 1px;
    cursor: pointer;
    border-radius: 2px;
    transition: all 0.08s ease;
}

.level-btn-v2:hover,
.level-btn-v3:hover {
    background: var(--surface);
    transform: translateY(-1px);
}

.level-btn-v2.locked,
.level-btn-v3.locked {
    opacity: 0.3;
    pointer-events: none;
}

.level-btn-v2.available,
.level-btn-v3.available {
    opacity: 1;
}

.level-btn-v3.selected {
    background: rgba(90, 127, 200, 0.1);
    transform: translateY(-1px);
}

.level-img-v2,
.level-img-v3 {
    height: 28px;
    width: auto;
}

/* 深色主题 - 宠物页面 v2 */
body.dark-mode .pet-card-v2 {
    background: #1e1e2e;
    border-color: rgba(139, 92, 246, 0.5);
}

body.dark-mode .pet-card-header-v2 {
    border-bottom-color: rgba(139, 92, 246, 0.4);
}

body.dark-mode .pet-name-v2 {
    color: #fbbf24;
}

body.dark-mode .pet-avatar-container-v2 {
    background: rgba(0, 0, 0, 0.3);
    border-color: rgba(139, 92, 246, 0.5);
}

body.dark-mode .pet-skill-info-v2 {
    background: rgba(0, 0, 0, 0.3);
    border-color: rgba(139, 92, 246, 0.5);
}

body.dark-mode .info-value-v2 {
    color: #a78bfa;
}

/* 响应式设计 - 宠物页面 v2 */
@media (max-width: 1024px) {
    .pets-grid-v2 {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .pet-card-content-v2 {
        flex-direction: column;
    }
    
    .pet-left-section-v2 {
        display: flex;
        justify-content: center;
    }
    
    .pet-info-row-v2 {
        flex-direction: column;
        gap: 12px;
    }
    
    .pet-tier-anchors-v2 {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .pet-level-selector-v2 {
        flex-wrap: wrap;
    }
}

/* 宠物悬停提示框 */
.pet-tooltip-v3 {
    display: none;
    position: fixed;
    z-index: 9999;
    background: #ffffff;
    border: 2px solid #d0d0d0;
    border-radius: 8px;
    padding: 14px;
    min-width: 220px;
    max-width: 280px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    pointer-events: none;
}

/* ============================================
   装备套装页面 - 游戏UI风格
   ============================================ */
.sets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
}

.set-card {
    background: var(--surface);
    border: 1px solid rgba(139, 92, 246, 0.4);
    padding: 20px;
    border-radius: 5px;
    transition: all 0.2s;
    position: relative;
}

/* 游戏UI装饰 - 套装卡片 */
.set-card::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    width: 12px;
    height: 12px;
    border-top: 1px solid #f59e0b;
    border-left: 1px solid #f59e0b;
    border-top-left-radius: 5px;
    z-index: 10;
}

.set-card::after {
    content: '';
    position: absolute;
    bottom: -1px;
    right: -1px;
    width: 12px;
    height: 12px;
    border-bottom: 1px solid #8b5cf6;
    border-right: 1px solid #8b5cf6;
    border-bottom-right-radius: 5px;
    z-index: 10;
}

.set-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-color: #f59e0b;
}

.set-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(139, 92, 246, 0.3);
}

.set-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: #f59e0b;
}

.set-id {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.set-parts {
    margin-bottom: 15px;
}

.set-parts-title {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 8px;
    font-weight: 600;
}

.set-parts-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.set-part-item {
    display: inline-block;
}

.set-part-link {
    display: inline-block;
    text-decoration: none;
}

.set-part-image {
    width: 40px;
    height: 40px;
    object-fit: contain;
    background: rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(139, 92, 246, 0.4);
    border-radius: 0;
    padding: 4px;
    transition: all 0.2s;
    position: relative;
}

/* 游戏UI装饰 - 套装部件图标 */
.set-part-image::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    width: 6px;
    height: 6px;
    border-top: 1px solid #f59e0b;
    border-left: 1px solid #f59e0b;
}

.set-part-image::after {
    content: '';
    position: absolute;
    bottom: -1px;
    right: -1px;
    width: 6px;
    height: 6px;
    border-bottom: 1px solid #8b5cf6;
    border-right: 1px solid #8b5cf6;
}

.set-part-link:hover .set-part-image {
    transform: scale(1.1);
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
    border-color: #f59e0b;
}

.set-part-id {
    background: rgba(0, 0, 0, 0.02);
    padding: 5px 10px;
    border-radius: 0;
    font-size: 0.85rem;
    color: var(--text);
    border: 1px solid rgba(139, 92, 246, 0.4);
    position: relative;
}

/* 游戏UI装饰 - 套装部件ID */
.set-part-id::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    width: 6px;
    height: 6px;
    border-top: 1px solid #f59e0b;
    border-left: 1px solid #f59e0b;
}

.set-part-id::after {
    content: '';
    position: absolute;
    bottom: -1px;
    right: -1px;
    width: 6px;
    height: 6px;
    border-bottom: 1px solid #8b5cf6;
    border-right: 1px solid #8b5cf6;
}

.set-bonuses {
    margin-top: 15px;
    padding-top: 10px;
    border-top: 1px solid rgba(139, 92, 246, 0.3);
}

.set-bonuses-title {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 8px;
    font-weight: 600;
}

.bonus-item {
    margin: 6px 0;
    padding: 6px 10px;
    background: rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(139, 92, 246, 0.4);
    border-radius: 0;
    font-size: 0.9rem;
    position: relative;
}

/* 游戏UI装饰 - 套装效果项 */
.bonus-item::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    width: 6px;
    height: 6px;
    border-top: 1px solid #f59e0b;
    border-left: 1px solid #f59e0b;
}

.bonus-item::after {
    content: '';
    position: absolute;
    bottom: -1px;
    right: -1px;
    width: 6px;
    height: 6px;
    border-bottom: 1px solid #8b5cf6;
    border-right: 1px solid #8b5cf6;
}

.bonus-equipped {
    font-weight: 600;
    color: var(--accent);
    margin-right: 8px;
}

.bonus-effect {
    color: #00aa00;
}

/* 深色主题 - 装备套装页面 */
body.dark-mode .set-card {
    background: rgba(0, 0, 0, 0.3);
    border-color: rgba(139, 92, 246, 0.5);
}

body.dark-mode .set-name {
    color: #fbbf24;
}

body.dark-mode .set-part-image {
    background: rgba(0, 0, 0, 0.3);
    border-color: rgba(139, 92, 246, 0.5);
}

body.dark-mode .set-part-id {
    background: rgba(0, 0, 0, 0.3);
    border-color: rgba(139, 92, 246, 0.5);
}

body.dark-mode .bonus-item {
    background: rgba(0, 0, 0, 0.3);
    border-color: rgba(139, 92, 246, 0.5);
}

body:not(.dark-mode) .bonus-effect {
    color: #008800;
}

body:not(.dark-mode) .set-card:hover {
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.2);
}

@media (max-width: 768px) {
    .sets-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   职业侧边栏 - 游戏UI风格
   ============================================ */
/* 动态 z-index 管理 */
#class-sidebar-overlay {
    z-index: 2000;
}

#class-sidebar {
    z-index: 2001;
}

#class-sidebar-overlay.dungeon-sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

#class-sidebar-overlay.dungeon-sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

#class-sidebar.dungeon-sidebar {
    position: fixed !important;
    top: 0 !important;
    right: -600px !important;
    width: 600px !important;
    max-width: 100% !important;
    height: 100% !important;
    background: var(--surface) !important;
    overflow-y: auto !important;
    transition: right 0.3s ease !important;
    transform: none !important;
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.2);
    border-left: 1px solid rgba(139, 92, 246, 0.3);
}

#class-sidebar.dungeon-sidebar.active {
    right: 0 !important;
}

#class-sidebar .sidebar-close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(139, 92, 246, 0.4);
    background: rgba(0, 0, 0, 0.02);
    color: var(--text);
    font-size: 1.5rem;
    cursor: pointer;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    z-index: 10;
}

/* 游戏UI装饰 - 关闭按钮 */
#class-sidebar .sidebar-close-btn::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    width: 8px;
    height: 8px;
    border-top: 1px solid #f59e0b;
    border-left: 1px solid #f59e0b;
}

#class-sidebar .sidebar-close-btn::after {
    content: '';
    position: absolute;
    bottom: -1px;
    right: -1px;
    width: 8px;
    height: 8px;
    border-bottom: 1px solid #8b5cf6;
    border-right: 1px solid #8b5cf6;
}

#class-sidebar .sidebar-close-btn:hover {
    background: rgba(245, 158, 11, 0.1);
    border-color: #f59e0b;
    color: #f59e0b;
}

#class-sidebar .sidebar-content {
    padding: 70px 20px 20px 20px;
}

/* 游戏UI风格职业侧边栏样式 */
.deerflow-class-header {
    padding: 24px 24px 20px;
}

.deerflow-class-icon-wrapper {
    width: 80px;
    height: 80px;
    background: rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(139, 92, 246, 0.4);
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    position: relative;
}

/* 游戏UI装饰 - 职业图标容器 */
.deerflow-class-icon-wrapper::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    width: 10px;
    height: 10px;
    border-top: 1px solid #f59e0b;
    border-left: 1px solid #f59e0b;
}

.deerflow-class-icon-wrapper::after {
    content: '';
    position: absolute;
    bottom: -1px;
    right: -1px;
    width: 10px;
    height: 10px;
    border-bottom: 1px solid #8b5cf6;
    border-right: 1px solid #8b5cf6;
}

.deerflow-class-icon {
    width: 64px;
    height: 64px;
    object-fit: contain;
}

.deerflow-class-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: #f59e0b;
    text-align: center;
    margin: 0 0 8px;
}

.deerflow-class-meta-row {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 8px;
}

.deerflow-class-meta {
    font-size: 0.85rem;
    padding: 6px 12px;
    background: rgba(139, 92, 246, 0.15);
    color: #8b5cf6;
    border: 1px solid rgba(139, 92, 246, 0.4);
    border-radius: 0;
    font-weight: 600;
    position: relative;
}

/* 游戏UI装饰 - 职业元数据 */
.deerflow-class-meta::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    width: 6px;
    height: 6px;
    border-top: 1px solid #f59e0b;
    border-left: 1px solid #f59e0b;
}

.deerflow-class-meta::after {
    content: '';
    position: absolute;
    bottom: -1px;
    right: -1px;
    width: 6px;
    height: 6px;
    border-bottom: 1px solid #8b5cf6;
    border-right: 1px solid #8b5cf6;
}

.deerflow-sidebar-divider {
    height: 1px;
    background: rgba(139, 92, 246, 0.3);
    margin: 0 24px;
}

.deerflow-sidebar-section {
    padding: 16px 24px;
}

.deerflow-section-title {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #f59e0b;
    margin-bottom: 12px;
    position: relative;
}

/* 游戏UI装饰 - 标题渐变线 */
.deerflow-section-title::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, #f59e0b, #8b5cf6);
}

.deerflow-lore-text {
    color: var(--text-muted);
    line-height: 1.8;
    font-size: 0.95rem;
}

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

.deerflow-stat-item {
    background: rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(139, 92, 246, 0.4);
    border-radius: 0;
    padding: 14px 16px;
    position: relative;
}

/* 游戏UI装饰 - 属性项 */
.deerflow-stat-item::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    width: 8px;
    height: 8px;
    border-top: 1px solid #f59e0b;
    border-left: 1px solid #f59e0b;
}

.deerflow-stat-item::after {
    content: '';
    position: absolute;
    bottom: -1px;
    right: -1px;
    width: 8px;
    height: 8px;
    border-bottom: 1px solid #8b5cf6;
    border-right: 1px solid #8b5cf6;
}

.deerflow-stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 6px;
    font-weight: 600;
}

.deerflow-stat-value {
    font-size: 1rem;
    font-weight: 700;
    color: #8b5cf6;
}

.deerflow-requirement-box {
    background: rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(139, 92, 246, 0.4);
    border-radius: 0;
    padding: 14px 16px;
    text-align: center;
    font-weight: 700;
    color: #f59e0b;
    position: relative;
}

/* 游戏UI装饰 - 需求盒子 */
.deerflow-requirement-box::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    width: 8px;
    height: 8px;
    border-top: 1px solid #f59e0b;
    border-left: 1px solid #f59e0b;
}

.deerflow-requirement-box::after {
    content: '';
    position: absolute;
    bottom: -1px;
    right: -1px;
    width: 8px;
    height: 8px;
    border-bottom: 1px solid #8b5cf6;
    border-right: 1px solid #8b5cf6;
}

.deerflow-skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 10px;
}

.deerflow-skill-item {
    background: rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(139, 92, 246, 0.4);
    border-radius: 0;
    padding: 12px;
    text-align: center;
    transition: all 0.2s;
    position: relative;
}

/* 游戏UI装饰 - 技能项 */
.deerflow-skill-item::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    width: 6px;
    height: 6px;
    border-top: 1px solid #f59e0b;
    border-left: 1px solid #f59e0b;
}

.deerflow-skill-item::after {
    content: '';
    position: absolute;
    bottom: -1px;
    right: -1px;
    width: 6px;
    height: 6px;
    border-bottom: 1px solid #8b5cf6;
    border-right: 1px solid #8b5cf6;
}

.deerflow-skill-item:hover {
    border-color: #f59e0b;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.2);
}

.deerflow-skill-icon {
    font-size: 1.75rem;
    margin-bottom: 8px;
}

.deerflow-skill-name {
    font-size: 0.85rem;
    color: var(--text);
    font-weight: 600;
}

/* 深色主题 - 职业侧边栏 */
body.dark-mode #class-sidebar.dungeon-sidebar {
    background: rgba(0, 0, 0, 0.3) !important;
}

body.dark-mode #class-sidebar .sidebar-close-btn {
    background: rgba(0, 0, 0, 0.3);
    border-color: rgba(139, 92, 246, 0.5);
}

body.dark-mode .deerflow-class-name {
    color: #fbbf24;
}

body.dark-mode .deerflow-class-icon-wrapper {
    background: rgba(0, 0, 0, 0.3);
    border-color: rgba(139, 92, 246, 0.5);
}

body.dark-mode .deerflow-class-meta {
    background: rgba(139, 92, 246, 0.2);
    border-color: rgba(139, 92, 246, 0.5);
    color: #a78bfa;
}

body.dark-mode .deerflow-stat-item {
    background: rgba(0, 0, 0, 0.3);
    border-color: rgba(139, 92, 246, 0.5);
}

body.dark-mode .deerflow-stat-value {
    color: #a78bfa;
}

body.dark-mode .deerflow-requirement-box {
    background: rgba(0, 0, 0, 0.3);
    border-color: rgba(139, 92, 246, 0.5);
    color: #fbbf24;
}

body.dark-mode .deerflow-skill-item {
    background: rgba(0, 0, 0, 0.3);
    border-color: rgba(139, 92, 246, 0.5);
}

/* 游戏UI签名 */
.deerflow-signature {
    padding: 16px 24px;
    text-align: center;
    border-top: 1px solid rgba(139, 92, 246, 0.3);
}

.deerflow-signature a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    color: var(--text-muted);
    text-decoration: none;
    transition: all 0.2s ease;
}

.deerflow-signature a:hover {
    color: #f59e0b;
}

.deerflow-signature span {
    font-weight: 600;
}

/* ============================================
   情侣系统 - 游戏UI风格
   ============================================ */
.couple-info-card {
    background: rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(139, 92, 246, 0.4);
    padding: 30px;
    margin-bottom: 30px;
    border-radius: 5px;
    position: relative;
}

/* 游戏UI装饰 - 信息卡片 */
.couple-info-card::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    width: 10px;
    height: 10px;
    border-top: 1px solid #f59e0b;
    border-left: 1px solid #f59e0b;
    border-top-left-radius: 5px;
}

.couple-info-card::after {
    content: '';
    position: absolute;
    bottom: -1px;
    right: -1px;
    width: 10px;
    height: 10px;
    border-bottom: 1px solid #8b5cf6;
    border-right: 1px solid #8b5cf6;
    border-bottom-right-radius: 5px;
}

.couple-info-card h2 {
    margin-bottom: 20px;
    font-size: 1.5rem;
    color: #f59e0b;
    font-weight: 700;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.info-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 600;
}

.info-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: #8b5cf6;
}

.couple-section {
    margin-bottom: 40px;
}

.couple-section h2 {
    margin-bottom: 20px;
    font-size: 1.5rem;
    border-bottom: 2px solid rgba(139, 92, 246, 0.4);
    padding-bottom: 10px;
    color: #f59e0b;
    font-weight: 700;
    position: relative;
}

/* 游戏UI装饰 - 章节标题 */
.couple-section h2::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, #f59e0b, #8b5cf6);
}

.couple-table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(0, 0, 0, 0.02);
}

.couple-table th,
.couple-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid rgba(139, 92, 246, 0.3);
}

.couple-table th {
    background: rgba(0, 0, 0, 0.05);
    font-weight: 700;
    color: #f59e0b;
    font-size: 0.9rem;
}

.couple-table tbody tr:hover {
    background: rgba(245, 158, 11, 0.05);
}



.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.skill-card {
    background: rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(139, 92, 246, 0.4);
    padding: 20px;
    border-radius: 5px;
    transition: all 0.2s;
    position: relative;
}

/* 游戏UI装饰 - 技能卡片 */
.skill-card::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    width: 8px;
    height: 8px;
    border-top: 1px solid #f59e0b;
    border-left: 1px solid #f59e0b;
    border-top-left-radius: 5px;
}

.skill-card::after {
    content: '';
    position: absolute;
    bottom: -1px;
    right: -1px;
    width: 8px;
    height: 8px;
    border-bottom: 1px solid #8b5cf6;
    border-right: 1px solid #8b5cf6;
    border-bottom-right-radius: 5px;
}

.skill-card:hover {
    border-color: #f59e0b;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.2);
}

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

.skill-icon {
    width: 48px;
    height: 48px;
    background: rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(139, 92, 246, 0.4);
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
    position: relative;
}

/* 游戏UI装饰 - 技能图标 */
.skill-icon::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    width: 6px;
    height: 6px;
    border-top: 1px solid #f59e0b;
    border-left: 1px solid #f59e0b;
    border-top-left-radius: 5px;
}

.skill-icon::after {
    content: '';
    position: absolute;
    bottom: -1px;
    right: -1px;
    width: 6px;
    height: 6px;
    border-bottom: 1px solid #8b5cf6;
    border-right: 1px solid #8b5cf6;
    border-bottom-right-radius: 5px;
}



.skill-icon img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.skill-info h3 {
    margin: 0;
    font-size: 1.1rem;
    color: #f59e0b;
    font-weight: 700;
}

.skill-requirements {
    display: flex;
    gap: 15px;
    margin-top: 5px;
}

.skill-requirement {
    font-size: 0.85rem;
    color: #8b5cf6;
    background: rgba(139, 92, 246, 0.1);
    padding: 3px 10px;
    border-radius: 0;
    border: 1px solid rgba(139, 92, 246, 0.3);
    position: relative;
}

/* 游戏UI装饰 - 需求标签 */
.skill-requirement::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    width: 4px;
    height: 4px;
    border-top: 1px solid #f59e0b;
    border-left: 1px solid #f59e0b;
}

.skill-requirement::after {
    content: '';
    position: absolute;
    bottom: -1px;
    right: -1px;
    width: 4px;
    height: 4px;
    border-bottom: 1px solid #8b5cf6;
    border-right: 1px solid #8b5cf6;
}

.skill-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 10px;
}

/* 深色主题 - 情侣系统 */
body.dark-mode .couple-info-card {
    background: rgba(0, 0, 0, 0.3);
    border-color: rgba(139, 92, 246, 0.5);
}

body.dark-mode .couple-info-card h2 {
    color: #fbbf24;
}

body.dark-mode .info-value {
    color: #a78bfa;
}

body.dark-mode .couple-section h2 {
    color: #fbbf24;
    border-bottom-color: rgba(139, 92, 246, 0.5);
}

body.dark-mode .couple-table {
    background: rgba(0, 0, 0, 0.3);
    border-color: rgba(139, 92, 246, 0.5);
}

body.dark-mode .couple-table th {
    background: rgba(0, 0, 0, 0.4);
    color: #fbbf24;
}

body.dark-mode .couple-table td {
    border-bottom-color: rgba(139, 92, 246, 0.4);
}



body.dark-mode .skill-card {
    background: rgba(0, 0, 0, 0.3);
    border-color: rgba(139, 92, 246, 0.5);
}

body.dark-mode .skill-card:hover {
    box-shadow: 0 4px 12px rgba(251, 191, 36, 0.2);
}

body.dark-mode .skill-icon {
    background: rgba(0, 0, 0, 0.4);
    border-color: rgba(139, 92, 246, 0.5);
}

body.dark-mode .skill-info h3 {
    color: #fbbf24;
}

body.dark-mode .skill-requirement {
    color: #a78bfa;
    background: rgba(139, 92, 246, 0.2);
    border-color: rgba(139, 92, 246, 0.5);
}

/* ============================================
   副本页面 - 游戏UI风格
   ============================================ */
.dungeons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px;
}

.dungeon-card {
    background: rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(139, 92, 246, 0.4);
    border-radius: 5px;
    overflow: hidden;
    transition: all 0.2s;
    cursor: pointer;
    position: relative;
}

/* 游戏UI装饰 - 副本卡片 */
.dungeon-card::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    width: 10px;
    height: 10px;
    border-top: 1px solid #f59e0b;
    border-left: 1px solid #f59e0b;
    border-top-left-radius: 5px;
}

.dungeon-card::after {
    content: '';
    position: absolute;
    bottom: -1px;
    right: -1px;
    width: 10px;
    height: 10px;
    border-bottom: 1px solid #8b5cf6;
    border-right: 1px solid #8b5cf6;
    border-bottom-right-radius: 5px;
}

.dungeon-card:hover {
    border-color: #f59e0b;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(245, 158, 11, 0.2);
}

.dungeon-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    background: rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
}

.dungeon-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dungeon-content {
    padding: 20px;
}

.dungeon-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
    gap: 15px;
}

.dungeon-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: #f59e0b;
    flex: 1;
}

.dungeon-type-badge {
    background: rgba(139, 92, 246, 0.2);
    color: #8b5cf6;
    padding: 6px 12px;
    border-radius: 0;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    white-space: nowrap;
    border: 1px solid rgba(139, 92, 246, 0.4);
}

.dungeon-type-badge.party { background: rgba(59, 130, 246, 0.2); color: #3b82f6; border-color: rgba(59, 130, 246, 0.4); }
.dungeon-type-badge.guild { background: rgba(139, 92, 246, 0.2); color: #8b5cf6; border-color: rgba(139, 92, 246, 0.4); }
.dungeon-type-badge.solo { background: rgba(34, 197, 94, 0.2); color: #22c55e; border-color: rgba(34, 197, 94, 0.4); }
.dungeon-type-badge.partyorsolo { background: rgba(245, 158, 11, 0.2); color: #f59e0b; border-color: rgba(245, 158, 11, 0.4); }
.dungeon-type-badge.guildorsolo { background: rgba(236, 72, 153, 0.2); color: #ec4899; border-color: rgba(236, 72, 153, 0.4); }

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

.dungeon-meta-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.dungeon-meta-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 600;
}

.dungeon-meta-value {
    font-size: 0.95rem;
    font-weight: 700;
    color: #8b5cf6;
}

.dungeon-difficulty {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 0;
    font-size: 0.8rem;
    font-weight: 700;
    border: 1px solid rgba(139, 92, 246, 0.3);
    background: rgba(0, 0, 0, 0.02);
}

.dungeon-difficulty.story { background: rgba(59, 130, 246, 0.3); color: #1d4ed8; border-color: rgba(59, 130, 246, 0.5); }
.dungeon-difficulty.normal { background: rgba(34, 197, 94, 0.3); color: #059669; border-color: rgba(34, 197, 94, 0.5); }
.dungeon-difficulty.medium { background: rgba(245, 158, 11, 0.3); color: #b45309; border-color: rgba(245, 158, 11, 0.5); }
.dungeon-difficulty.hard { background: rgba(234, 88, 12, 0.3); color: #c2410c; border-color: rgba(234, 88, 12, 0.5); }
.dungeon-difficulty.extrahard { background: rgba(220, 38, 38, 0.3); color: #991b1b; border-color: rgba(220, 38, 38, 0.5); }
.dungeon-difficulty.nightmare { background: rgba(236, 72, 153, 0.3); color: #9f1239; border-color: rgba(236, 72, 153, 0.5); }
.dungeon-difficulty.cursed { background: rgba(139, 92, 246, 0.3); color: #6b21a8; border-color: rgba(139, 92, 246, 0.5); }
.dungeon-difficulty.infernal { background: rgba(15, 23, 42, 0.3); color: #f1f5f9; border-color: rgba(15, 23, 42, 0.5); }

.dungeon-monsters {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(139, 92, 246, 0.3);
}

.dungeon-monsters-title {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 10px;
    font-weight: 600;
}

.dungeon-monsters-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.dungeon-monster-tag {
    background: rgba(0, 0, 0, 0.02);
    padding: 6px 12px;
    border-radius: 0;
    font-size: 0.8rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: default;
    border: 1px solid rgba(139, 92, 246, 0.3);
    position: relative;
}

/* 游戏UI装饰 - 怪物标签 */
.dungeon-monster-tag::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    width: 4px;
    height: 4px;
    border-top: 1px solid #f59e0b;
    border-left: 1px solid #f59e0b;
}

.dungeon-monster-tag::after {
    content: '';
    position: absolute;
    bottom: -1px;
    right: -1px;
    width: 4px;
    height: 4px;
    border-bottom: 1px solid #8b5cf6;
    border-right: 1px solid #8b5cf6;
}

.dungeon-monster-tag.expandable {
    cursor: pointer;
    transition: all 0.2s;
}

.dungeon-monster-tag.expandable:hover {
    background: rgba(245, 158, 11, 0.1);
    border-color: #f59e0b;
    color: #f59e0b;
}

.dungeon-monster-tag img {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.dungeon-level-range {
    display: flex;
    align-items: center;
    gap: 5px;
}

.dungeon-monsters-list .monster-hidden {
    display: none;
}

.dungeon-monsters-list.expanded .monster-hidden {
    display: flex;
}

.dungeon-sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 2000;
}

.dungeon-sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

.dungeon-sidebar {
    position: fixed;
    top: 0;
    right: -600px;
    width: var(--sidebar-secondary-width);
    max-width: 100%;
    height: 100%;
    background: var(--surface);
    overflow-y: auto;
    transition: right 0.3s ease;
    border-left: 1px solid rgba(139, 92, 246, 0.4);
    z-index: 2001;
}

.dungeon-sidebar.active {
    right: 0;
}

.sidebar-close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(139, 92, 246, 0.4);
    background: rgba(0, 0, 0, 0.02);
    color: var(--text);
    font-size: 1.5rem;
    cursor: pointer;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    z-index: 10;
}

/* 游戏UI装饰 - 关闭按钮 */
.sidebar-close-btn::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    width: 8px;
    height: 8px;
    border-top: 1px solid #f59e0b;
    border-left: 1px solid #f59e0b;
}

.sidebar-close-btn::after {
    content: '';
    position: absolute;
    bottom: -1px;
    right: -1px;
    width: 8px;
    height: 8px;
    border-bottom: 1px solid #8b5cf6;
    border-right: 1px solid #8b5cf6;
}

.sidebar-close-btn:hover {
    background: rgba(245, 158, 11, 0.1);
    border-color: #f59e0b;
    color: #f59e0b;
}

.sidebar-content {
    padding: 30px;
}

.sidebar-dungeon-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 0;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 6rem;
    border: 1px solid rgba(139, 92, 246, 0.3);
    position: relative;
}

/* 游戏UI装饰 - 侧边栏图片 */
.sidebar-dungeon-image::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    width: 10px;
    height: 10px;
    border-top: 1px solid #f59e0b;
    border-left: 1px solid #f59e0b;
}

.sidebar-dungeon-image::after {
    content: '';
    position: absolute;
    bottom: -1px;
    right: -1px;
    width: 10px;
    height: 10px;
    border-bottom: 1px solid #8b5cf6;
    border-right: 1px solid #8b5cf6;
}

.sidebar-dungeon-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
}

.sidebar-dungeon-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #f59e0b;
    margin-bottom: 10px;
}

.sidebar-dungeon-type {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 0;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 20px;
    border: 1px solid rgba(139, 92, 246, 0.4);
    background: rgba(139, 92, 246, 0.2) !important;
    color: #8b5cf6 !important;
}

.sidebar-dungeon-type[style*="#3b82f6"] {
    background: rgba(59, 130, 246, 0.2) !important;
    color: #3b82f6 !important;
    border-color: rgba(59, 130, 246, 0.4);
}

.sidebar-dungeon-type[style*="#8b5cf6"] {
    background: rgba(139, 92, 246, 0.2) !important;
    color: #8b5cf6 !important;
    border-color: rgba(139, 92, 246, 0.4);
}

.sidebar-dungeon-type[style*="#22c55e"] {
    background: rgba(34, 197, 94, 0.2) !important;
    color: #22c55e !important;
    border-color: rgba(34, 197, 94, 0.4);
}

.sidebar-dungeon-type[style*="#f59e0b"] {
    background: rgba(245, 158, 11, 0.2) !important;
    color: #f59e0b !important;
    border-color: rgba(245, 158, 11, 0.4);
}

.sidebar-dungeon-type[style*="#ec4899"] {
    background: rgba(236, 72, 153, 0.2) !important;
    color: #ec4899 !important;
    border-color: rgba(236, 72, 153, 0.4);
}

.sidebar-section {
    margin-bottom: 25px;
}

.sidebar-section-title {
    font-size: 1rem;
    font-weight: 700;
    color: #f59e0b;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid rgba(139, 92, 246, 0.4);
    position: relative;
}

/* 游戏UI装饰 - 侧边栏标题 */
.sidebar-section-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, #f59e0b, #8b5cf6);
}

.sidebar-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.sidebar-info-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.sidebar-info-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 600;
}

.sidebar-info-value {
    font-size: 1rem;
    font-weight: 700;
    color: #8b5cf6;
}

.sidebar-monsters-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.sidebar-monster-item {
    background: rgba(0, 0, 0, 0.02);
    padding: 8px 12px;
    border-radius: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(139, 92, 246, 0.3);
    position: relative;
}

/* 游戏UI装饰 - 侧边栏怪物项 */
.sidebar-monster-item::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    width: 4px;
    height: 4px;
    border-top: 1px solid #f59e0b;
    border-left: 1px solid #f59e0b;
}

.sidebar-monster-item::after {
    content: '';
    position: absolute;
    bottom: -1px;
    right: -1px;
    width: 4px;
    height: 4px;
    border-bottom: 1px solid #8b5cf6;
    border-right: 1px solid #8b5cf6;
}

.sidebar-monster-item img {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.sidebar-monster-name {
    font-size: 0.9rem;
    color: var(--text);
    font-weight: 600;
}

.sidebar-mods-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sidebar-mod-item {
    background: rgba(0, 0, 0, 0.02);
    padding: 12px 16px;
    border-radius: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid rgba(139, 92, 246, 0.3);
    position: relative;
}

/* 游戏UI装饰 - 侧边栏加成项 */
.sidebar-mod-item::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    width: 6px;
    height: 6px;
    border-top: 1px solid #f59e0b;
    border-left: 1px solid #f59e0b;
}

.sidebar-mod-item::after {
    content: '';
    position: absolute;
    bottom: -1px;
    right: -1px;
    width: 6px;
    height: 6px;
    border-bottom: 1px solid #8b5cf6;
    border-right: 1px solid #8b5cf6;
}

.sidebar-mod-name {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 600;
}

.sidebar-mod-value {
    font-size: 0.95rem;
    font-weight: 700;
    color: #8b5cf6;
}

.sidebar-curses-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.sidebar-curse-item {
    background: rgba(0, 0, 0, 0.02);
    padding: 16px;
    border-radius: 0;
    border: 1px solid rgba(139, 92, 246, 0.4);
    position: relative;
}

/* 游戏UI装饰 - 侧边栏诅咒项 */
.sidebar-curse-item::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    width: 8px;
    height: 8px;
    border-top: 1px solid #f59e0b;
    border-left: 1px solid #f59e0b;
}

.sidebar-curse-item::after {
    content: '';
    position: absolute;
    bottom: -1px;
    right: -1px;
    width: 8px;
    height: 8px;
    border-bottom: 1px solid #8b5cf6;
    border-right: 1px solid #8b5cf6;
}

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

.sidebar-curse-icon {
    width: 36px;
    height: 36px;
    object-fit: contain;
}

.sidebar-curse-name {
    font-size: 1rem;
    font-weight: 700;
    color: #f59e0b;
}

.sidebar-curse-level {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.sidebar-curse-cost {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-top: 8px;
    border-top: 1px solid rgba(139, 92, 246, 0.3);
}

.sidebar-curse-cost-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 600;
}

.sidebar-curse-cost-item {
    font-size: 0.9rem;
    font-weight: 700;
    color: #8b5cf6;
}

.sidebar-curse-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid rgba(139, 92, 246, 0.3);
    line-height: 1.5;
}

/* 深色主题 - 副本页面 */
body.dark-mode .dungeon-card {
    background: rgba(0, 0, 0, 0.3);
    border-color: rgba(139, 92, 246, 0.5);
}

body.dark-mode .dungeon-name {
    color: var(--dungeon-name);
}

body.dark-mode .dungeon-meta-value {
    color: var(--dungeon-meta-value);
}

body.dark-mode .dungeon-monsters {
    border-top-color: var(--dungeon-monsters-border);
}

body.dark-mode .dungeon-monster-tag {
    background: var(--dungeon-monster-tag-bg);
    border-color: var(--dungeon-monster-tag-border);
}

body.dark-mode .dungeon-difficulty.story { background: var(--dungeon-difficulty-story-bg); color: var(--dungeon-difficulty-story-text); border-color: var(--dungeon-difficulty-story-border); }
body.dark-mode .dungeon-difficulty.normal { background: var(--dungeon-difficulty-normal-bg); color: var(--dungeon-difficulty-normal-text); border-color: var(--dungeon-difficulty-normal-border); }
body.dark-mode .dungeon-difficulty.medium { background: var(--dungeon-difficulty-medium-bg); color: var(--dungeon-difficulty-medium-text); border-color: var(--dungeon-difficulty-medium-border); }
body.dark-mode .dungeon-difficulty.hard { background: var(--dungeon-difficulty-hard-bg); color: var(--dungeon-difficulty-hard-text); border-color: var(--dungeon-difficulty-hard-border); }
body.dark-mode .dungeon-difficulty.extrahard { background: var(--dungeon-difficulty-extrahard-bg); color: var(--dungeon-difficulty-extrahard-text); border-color: var(--dungeon-difficulty-extrahard-border); }
body.dark-mode .dungeon-difficulty.nightmare { background: var(--dungeon-difficulty-nightmare-bg); color: var(--dungeon-difficulty-nightmare-text); border-color: var(--dungeon-difficulty-nightmare-border); }
body.dark-mode .dungeon-difficulty.cursed { background: var(--dungeon-difficulty-cursed-bg); color: var(--dungeon-difficulty-cursed-text); border-color: var(--dungeon-difficulty-cursed-border); }
body.dark-mode .dungeon-difficulty.infernal { background: var(--dungeon-difficulty-infernal-bg); color: var(--dungeon-difficulty-infernal-text); border-color: var(--dungeon-difficulty-infernal-border); }

body.dark-mode .sidebar-dungeon-image {
    background: var(--sidebar-dungeon-image-bg);
    border-color: var(--sidebar-dungeon-image-border);
}

body.dark-mode .sidebar-dungeon-title {
    color: var(--sidebar-dungeon-title);
}

body.dark-mode .sidebar-section-title {
    color: var(--sidebar-section-title);
    border-bottom-color: var(--sidebar-section-title-border);
}

body.dark-mode .sidebar-info-value {
    color: var(--sidebar-info-value);
}

body.dark-mode .sidebar-monster-item {
    background: var(--sidebar-monster-item-bg);
    border-color: var(--sidebar-monster-item-border);
}

body.dark-mode .sidebar-mod-item {
    background: var(--sidebar-mod-item-bg);
    border-color: var(--sidebar-mod-item-border);
}

body.dark-mode .sidebar-mod-value {
    color: var(--sidebar-mod-value);
}

body.dark-mode .sidebar-curse-item {
    background: var(--sidebar-curse-item-bg);
    border-color: var(--sidebar-curse-item-border);
}

body.dark-mode .sidebar-curse-name {
    color: var(--sidebar-curse-name);
}

body.dark-mode .sidebar-curse-cost-item {
    color: var(--sidebar-curse-cost-item);
}

.tooltip-pet-name {
    font-size: 1.1rem;
    font-weight: bold;
    color: #e67e22;
    margin-bottom: 8px;
}

.tooltip-tier-level {
    font-size: 0.95rem;
    color: #27ae60;
    margin-bottom: 4px;
}

.tooltip-bonus {
    font-size: 0.95rem;
    color: #2980b9;
    margin-bottom: 4px;
}

.tooltip-level {
    font-size: 0.9rem;
    color: #f39c12;
    margin-bottom: 4px;
}

.tooltip-exp {
    font-size: 0.9rem;
    color: #f39c12;
    margin-bottom: 4px;
}

.tooltip-energy {
    font-size: 0.9rem;
    color: #27ae60;
    margin-bottom: 4px;
}

.tooltip-rarity {
    font-size: 0.9rem;
    color: #8e44ad;
    margin-bottom: 8px;
}

.tooltip-description {
    font-size: 0.85rem;
    color: #555555;
    line-height: 1.5;
}

.pet-tooltip-name {
    font-size: 1.1rem;
    font-weight: bold;
    color: #e67e22;
    margin-bottom: 4px;
}

.pet-tooltip-status {
    font-size: 0.9rem;
    color: #e67e22;
    margin-bottom: 4px;
}

.pet-tooltip-tier {
    font-size: 0.95rem;
    color: #27ae60;
    margin-bottom: 4px;
}

.pet-tooltip-bonus {
    font-size: 0.95rem;
    color: #2980b9;
    margin-bottom: 4px;
}

.pet-tooltip-lv {
    font-size: 0.9rem;
    color: #f39c12;
    margin-bottom: 4px;
}

.pet-tooltip-exp {
    font-size: 0.9rem;
    color: #f39c12;
    margin-bottom: 4px;
}

.pet-tooltip-energy {
    font-size: 0.9rem;
    color: #27ae60;
    margin-bottom: 4px;
}

.pet-tooltip-rarity {
    font-size: 0.9rem;
    color: #8e44ad;
    margin-bottom: 8px;
}

.pet-tooltip-desc {
    font-size: 0.85rem;
    color: #555555;
    line-height: 1.5;
}

/* 配方页面样式 */
.production-type-icon {
    font-size: 1.5rem;
    display: inline-block;
}

/* 配方侧边栏 open 类 */
.achievement-sidebar-overlay.open {
    opacity: 1;
    visibility: visible;
}

.achievement-sidebar.open {
    transform: translateX(0);
}

/* 配方详情样式 - 游戏UI风格 */
.recipe-detail-header {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(139, 92, 246, 0.4);
    align-items: center;
}

.recipe-detail-icon {
    font-size: 2.5rem;
    flex-shrink: 0;
    padding: 10px;
    border-radius: 0;
    border: 1px solid rgba(139, 92, 246, 0.4);
    background: rgba(0, 0, 0, 0.02);
    position: relative;
}

/* 游戏UI装饰 - 配方图标 */
.recipe-detail-icon::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    width: 5px;
    height: 5px;
    border-top: 1px solid #f59e0b;
    border-left: 1px solid #f59e0b;
}

.recipe-detail-icon::after {
    content: '';
    position: absolute;
    bottom: -1px;
    right: -1px;
    width: 5px;
    height: 5px;
    border-bottom: 1px solid #8b5cf6;
    border-right: 1px solid #8b5cf6;
}

.recipe-detail-name {
    font-size: 1.4rem;
    margin: 0;
    color: #f59e0b;
    font-weight: 700;
}

.recipe-detail-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 25px;
}

.info-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 12px;
    background: rgba(0, 0, 0, 0.02);
    border-radius: 0;
    border: 1px solid rgba(139, 92, 246, 0.4);
    position: relative;
}

/* 游戏UI装饰 - 信息行 */
.info-row::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    width: 4px;
    height: 4px;
    border-top: 1px solid #f59e0b;
    border-left: 1px solid #f59e0b;
}

.info-row::after {
    content: '';
    position: absolute;
    bottom: -1px;
    right: -1px;
    width: 4px;
    height: 4px;
    border-bottom: 1px solid #8b5cf6;
    border-right: 1px solid #8b5cf6;
}

.info-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 600;
}

.info-value {
    font-size: 0.95rem;
    color: #8b5cf6;
    font-weight: 700;
}

.recipe-result-options {
    margin-top: 20px;
}

.recipe-result-options h3 {
    font-size: 1.1rem;
    margin: 0 0 15px 0;
    color: #f59e0b;
    font-weight: 700;
    position: relative;
    padding-bottom: 8px;
}

/* 游戏UI装饰 - 章节标题 */
.recipe-result-options h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, #f59e0b, #8b5cf6);
}

.result-items {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.result-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    background: rgba(0, 0, 0, 0.02);
    border-radius: 0;
    border: 1px solid rgba(139, 92, 246, 0.4);
    transition: all 0.2s ease;
    position: relative;
}

/* 游戏UI装饰 - 结果项 */
.result-item::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    width: 4px;
    height: 4px;
    border-top: 1px solid #f59e0b;
    border-left: 1px solid #f59e0b;
}

.result-item::after {
    content: '';
    position: absolute;
    bottom: -1px;
    right: -1px;
    width: 4px;
    height: 4px;
    border-bottom: 1px solid #8b5cf6;
    border-right: 1px solid #8b5cf6;
}

.result-item:hover {
    border-color: #f59e0b;
    transform: translateX(3px);
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.15);
}

.result-item-icon {
    width: 36px;
    height: 36px;
    object-fit: contain;
    flex-shrink: 0;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0;
    border: 1px solid rgba(139, 92, 246, 0.4);
    background: rgba(0, 0, 0, 0.02);
    position: relative;
}

/* 游戏UI装饰 - 结果图标 */
.result-item-icon::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    width: 3px;
    height: 3px;
    border-top: 1px solid #f59e0b;
    border-left: 1px solid #f59e0b;
}

.result-item-icon::after {
    content: '';
    position: absolute;
    bottom: -1px;
    right: -1px;
    width: 3px;
    height: 3px;
    border-bottom: 1px solid #8b5cf6;
    border-right: 1px solid #8b5cf6;
}

.result-item-name {
    font-size: 0.95rem;
    color: var(--text);
    font-weight: 600;
}

/* 原料样式 - 游戏UI风格 */
.recipe-materials {
    margin-top: 20px;
}

.recipe-materials h3 {
    font-size: 1.1rem;
    margin: 0 0 15px 0;
    color: #f59e0b;
    font-weight: 700;
    position: relative;
    padding-bottom: 8px;
}

/* 游戏UI装饰 - 原料章节标题 */
.recipe-materials h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, #f59e0b, #8b5cf6);
}

.materials-items {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.material-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    background: rgba(0, 0, 0, 0.02);
    border-radius: 0;
    border: 1px solid rgba(139, 92, 246, 0.4);
    transition: all 0.2s ease;
    position: relative;
}

/* 游戏UI装饰 - 原料项 */
.material-item::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    width: 4px;
    height: 4px;
    border-top: 1px solid #f59e0b;
    border-left: 1px solid #f59e0b;
}

.material-item::after {
    content: '';
    position: absolute;
    bottom: -1px;
    right: -1px;
    width: 4px;
    height: 4px;
    border-bottom: 1px solid #8b5cf6;
    border-right: 1px solid #8b5cf6;
}

.material-item:hover {
    border-color: #f59e0b;
    transform: translateX(3px);
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.15);
}

.material-icon {
    width: 36px;
    height: 36px;
    object-fit: contain;
    flex-shrink: 0;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0;
    border: 1px solid rgba(139, 92, 246, 0.4);
    background: rgba(0, 0, 0, 0.02);
    position: relative;
}

/* 游戏UI装饰 - 原料图标 */
.material-icon::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    width: 3px;
    height: 3px;
    border-top: 1px solid #f59e0b;
    border-left: 1px solid #f59e0b;
}

.material-icon::after {
    content: '';
    position: absolute;
    bottom: -1px;
    right: -1px;
    width: 3px;
    height: 3px;
    border-bottom: 1px solid #8b5cf6;
    border-right: 1px solid #8b5cf6;
}

.material-name {
    flex: 1;
    font-size: 0.95rem;
    color: var(--text);
    font-weight: 600;
}

.material-quantity {
    font-size: 0.95rem;
    color: #8b5cf6;
    font-weight: 700;
}

/* ============================================
   住房页面 - 游戏UI风格
   ============================================ */

/* 住房网格 */
.housing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px;
}

/* 住房卡片 */
.housing-card {
    background: var(--surface);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 5px;
    overflow: hidden;
    transition: all 0.2s;
    cursor: pointer;
    position: relative;
}

/* 游戏UI装饰 - 住房卡片 */
.housing-card::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    width: 6px;
    height: 6px;
    border-top: 2px solid #f59e0b;
    border-left: 2px solid #f59e0b;
    border-top-left-radius: 5px;
    z-index: 1;
}

.housing-card::after {
    content: '';
    position: absolute;
    bottom: -1px;
    right: -1px;
    width: 6px;
    height: 6px;
    border-bottom: 2px solid #8b5cf6;
    border-right: 2px solid #8b5cf6;
    border-bottom-right-radius: 5px;
    z-index: 1;
}

.housing-card:hover {
    border-color: #f59e0b;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(245, 158, 11, 0.15);
}

/* 住房图片 */
.housing-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    background: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    border-bottom: 1px solid rgba(139, 92, 246, 0.3);
}

.housing-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 住房内容 */
.housing-content {
    padding: 20px;
}

/* 住房头部 */
.housing-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
    gap: 15px;
}

/* 住房名称 */
.housing-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: #f59e0b;
    flex: 1;
}

/* 住房大小徽章 */
.housing-size-badge {
    background: rgba(139, 92, 246, 0.2);
    color: #8b5cf6;
    padding: 6px 12px;
    border-radius: 0;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    white-space: nowrap;
    border: 1px solid rgba(139, 92, 246, 0.4);
}

.housing-size-badge.small { background: rgba(34, 197, 94, 0.2); color: #22c55e; border-color: rgba(34, 197, 94, 0.4); }
.housing-size-badge.medium { background: rgba(245, 158, 11, 0.2); color: #f59e0b; border-color: rgba(245, 158, 11, 0.4); }
.housing-size-badge.large { background: rgba(59, 130, 246, 0.2); color: #3b82f6; border-color: rgba(59, 130, 246, 0.4); }
.housing-size-badge.huge { background: rgba(139, 92, 246, 0.2); color: #8b5cf6; border-color: rgba(139, 92, 246, 0.4); }

/* 住房元数据 */
.housing-meta {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.housing-meta-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.housing-meta-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 600;
}

.housing-meta-value {
    font-size: 0.95rem;
    font-weight: 700;
    color: #8b5cf6;
}

/* 住房侧边栏遮罩 */
.housing-sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.housing-sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* 住房侧边栏 */
.housing-sidebar {
    position: fixed;
    top: 0;
    right: -500px;
    width: 500px;
    max-width: 100%;
    height: 100%;
    background: var(--surface);
    z-index: 2001;
    overflow-y: auto;
    transition: right 0.3s ease;
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.2);
    border-left: 1px solid rgba(139, 92, 246, 0.3);
}

.housing-sidebar.active {
    right: 0;
}

/* 关闭按钮 */
.sidebar-close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(139, 92, 246, 0.4);
    background: rgba(0, 0, 0, 0.02);
    color: var(--text);
    font-size: 1.5rem;
    cursor: pointer;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    z-index: 10;
}

/* 游戏UI装饰 - 关闭按钮 */
.sidebar-close-btn::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    width: 4px;
    height: 4px;
    border-top: 1px solid #f59e0b;
    border-left: 1px solid #f59e0b;
}

.sidebar-close-btn::after {
    content: '';
    position: absolute;
    bottom: -1px;
    right: -1px;
    width: 4px;
    height: 4px;
    border-bottom: 1px solid #8b5cf6;
    border-right: 1px solid #8b5cf6;
}

.sidebar-close-btn:hover {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
    border-color: #f59e0b;
}

/* 侧边栏内容 */
.sidebar-content {
    padding: 30px;
}

/* 侧边栏住房图片 */
.sidebar-housing-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    background: var(--bg);
    border-radius: 0;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 6rem;
    border: 1px solid rgba(139, 92, 246, 0.4);
    position: relative;
}

/* 游戏UI装饰 - 侧边栏图片 */
.sidebar-housing-image::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    width: 6px;
    height: 6px;
    border-top: 2px solid #f59e0b;
    border-left: 2px solid #f59e0b;
}

.sidebar-housing-image::after {
    content: '';
    position: absolute;
    bottom: -1px;
    right: -1px;
    width: 6px;
    height: 6px;
    border-bottom: 2px solid #8b5cf6;
    border-right: 2px solid #8b5cf6;
}

.sidebar-housing-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
}

/* 侧边栏住房标题 */
.sidebar-housing-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #f59e0b;
    margin-bottom: 10px;
}

/* 侧边栏住房大小 */
.sidebar-housing-size {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 0;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 20px;
    border: 1px solid rgba(139, 92, 246, 0.4);
    background: rgba(139, 92, 246, 0.2) !important;
    color: #8b5cf6 !important;
}

.sidebar-housing-size[style*="#22c55e"] {
    background: rgba(34, 197, 94, 0.2) !important;
    color: #22c55e !important;
    border-color: rgba(34, 197, 94, 0.4);
}

.sidebar-housing-size[style*="#f59e0b"] {
    background: rgba(245, 158, 11, 0.2) !important;
    color: #f59e0b !important;
    border-color: rgba(245, 158, 11, 0.4);
}

.sidebar-housing-size[style*="#3b82f6"] {
    background: rgba(59, 130, 246, 0.2) !important;
    color: #3b82f6 !important;
    border-color: rgba(59, 130, 246, 0.4);
}

.sidebar-housing-size[style*="#8b5cf6"] {
    background: rgba(139, 92, 246, 0.2) !important;
    color: #8b5cf6 !important;
    border-color: rgba(139, 92, 246, 0.4);
}

/* 侧边栏部分 */
.sidebar-section {
    margin-bottom: 25px;
}

.sidebar-section-title {
    font-size: 1rem;
    font-weight: 700;
    color: #f59e0b;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(139, 92, 246, 0.4);
    position: relative;
}

/* 游戏UI装饰 - 侧边栏标题 */
.sidebar-section-title::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, #f59e0b, #8b5cf6);
}

/* 侧边栏信息网格 */
.sidebar-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.sidebar-info-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 10px 12px;
    background: rgba(0, 0, 0, 0.02);
    border-radius: 0;
    border: 1px solid rgba(139, 92, 246, 0.3);
    position: relative;
}

/* 游戏UI装饰 - 信息项 */
.sidebar-info-item::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    width: 4px;
    height: 4px;
    border-top: 1px solid #f59e0b;
    border-left: 1px solid #f59e0b;
}

.sidebar-info-item::after {
    content: '';
    position: absolute;
    bottom: -1px;
    right: -1px;
    width: 4px;
    height: 4px;
    border-bottom: 1px solid #8b5cf6;
    border-right: 1px solid #8b5cf6;
}

.sidebar-info-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 600;
}

.sidebar-info-value {
    font-size: 1rem;
    font-weight: 700;
    color: #8b5cf6;
}

/* 侧边栏物品列表 */
.sidebar-items-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.sidebar-item {
    background: rgba(0, 0, 0, 0.02);
    padding: 8px 12px;
    border-radius: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(139, 92, 246, 0.3);
    position: relative;
}

/* 游戏UI装饰 - 侧边栏物品 */
.sidebar-item::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    width: 3px;
    height: 3px;
    border-top: 1px solid #f59e0b;
    border-left: 1px solid #f59e0b;
}

.sidebar-item::after {
    content: '';
    position: absolute;
    bottom: -1px;
    right: -1px;
    width: 3px;
    height: 3px;
    border-bottom: 1px solid #8b5cf6;
    border-right: 1px solid #8b5cf6;
}

.sidebar-item-name {
    font-size: 0.9rem;
    color: var(--text);
    font-weight: 600;
}

/* 深色主题适配 - 住房页面 */
body.dark-mode .housing-card {
    background: rgba(0, 0, 0, 0.3);
    border-color: rgba(139, 92, 246, 0.5);
}

body.dark-mode .housing-card:hover {
    box-shadow: 0 10px 30px rgba(251, 191, 36, 0.2);
}

body.dark-mode .housing-image {
    background: rgba(0, 0, 0, 0.2);
    border-bottom-color: rgba(139, 92, 246, 0.5);
}

body.dark-mode .housing-name {
    color: #fbbf24;
}

body.dark-mode .housing-meta-value {
    color: #a78bfa;
}

body.dark-mode .housing-sidebar {
    background: linear-gradient(180deg, #1a1a2e 0%, #16213e 50%, #0f0f23 100%);
}

body.dark-mode .sidebar-close-btn {
    background: rgba(0, 0, 0, 0.3);
}

body.dark-mode .sidebar-housing-image {
    background: rgba(0, 0, 0, 0.2);
}

body.dark-mode .sidebar-housing-title {
    color: #fbbf24;
}

body.dark-mode .sidebar-section-title {
    color: #fbbf24;
    border-bottom-color: rgba(139, 92, 246, 0.5);
}

body.dark-mode .sidebar-info-item {
    background: rgba(0, 0, 0, 0.3);
}

body.dark-mode .sidebar-info-value {
    color: #a78bfa;
}

body.dark-mode .sidebar-item {
    background: rgba(0, 0, 0, 0.3);
}

body.dark-mode .sidebar-item-name {
    color: #e2e8f0;
}

/* 文章内容样式 */
.single-post strong,
.single-post b,
.flyff-data-element-name {
    color: var(--article-bold-color) !important;
}

/* 深色模式下的文章加粗字体颜色 */
body.dark-mode .single-post strong,
body.dark-mode .single-post b,
body.dark-mode .flyff-data-element-name {
    color: #ff6699 !important;
}

/* 图片放大功能 */
#image-zoom-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

#image-zoom-overlay.active {
    opacity: 1;
    visibility: visible;
}

.image-zoom-container {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-zoom-img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
    transition: transform 0.2s ease;
    transform-origin: center center;
}

.image-zoom-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: transparent;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    padding: 10px;
    transition: transform 0.2s, color 0.2s;
    line-height: 1;
}

.image-zoom-close:hover {
    transform: scale(1.2);
    color: #ff6699;
}

/* 文章内容中的图片样式 */
.single-post .entry-content img,
.single-post .post-content img,
.single-post article img {
    max-width: 100%;
    height: auto;
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 0;
    transition: transform 0.2s, box-shadow 0.2s;
}

.single-post .entry-content img:hover,
.single-post .post-content img:hover,
.single-post article img:hover {
    transform: scale(1.02);
    box-shadow: 0 5px 20px rgba(139, 92, 246, 0.3);
}

/* WordPress 图片块样式 */
.single-post .entry-content .wp-block-image,
.single-post .post-content .wp-block-image,
.single-post article .wp-block-image {
    margin: 20px 0;
}

.single-post .entry-content .wp-block-image img,
.single-post .post-content .wp-block-image img,
.single-post article .wp-block-image img {
    margin: 0;
}

/* WordPress 画廊块样式 - 支持横向排列 */
.single-post .entry-content .wp-block-gallery,
.single-post .post-content .wp-block-gallery,
.single-post article .wp-block-gallery {
    margin: 20px 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.single-post .entry-content .wp-block-gallery .blocks-gallery-item,
.single-post .post-content .wp-block-gallery .blocks-gallery-item,
.single-post article .wp-block-gallery .blocks-gallery-item {
    flex: 0 0 auto;
    margin: 0;
}

.single-post .entry-content .wp-block-gallery .blocks-gallery-item figure,
.single-post .post-content .wp-block-gallery .blocks-gallery-item figure,
.single-post article .wp-block-gallery .blocks-gallery-item figure {
    margin: 0;
}

.single-post .entry-content .wp-block-gallery .blocks-gallery-item img,
.single-post .post-content .wp-block-gallery .blocks-gallery-item img,
.single-post article .wp-block-gallery .blocks-gallery-item img {
    margin: 0;
}

/* WordPress 列块样式 */
.single-post .entry-content .wp-block-columns,
.single-post .post-content .wp-block-columns,
.single-post article .wp-block-columns {
    margin: 20px 0;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.single-post .entry-content .wp-block-column,
.single-post .post-content .wp-block-column,
.single-post article .wp-block-column {
    flex: 1;
    min-width: 0;
}

/* 支持图片在段落中横向排列 */
.single-post .entry-content p img,
.single-post .post-content p img,
.single-post article p img {
    display: inline-block;
    vertical-align: middle;
    margin: 0 5px;
    max-width: calc(50% - 10px);
}

/* 图片组容器样式 */
.single-post .entry-content .image-group,
.single-post .post-content .image-group,
.single-post article .image-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 20px 0;
    align-items: center;
}

.single-post .entry-content .image-group img,
.single-post .post-content .image-group img,
.single-post article .image-group img {
    margin: 0;
    flex: 0 0 auto;
}

/* 深色模式下的图片放大功能 */
body.dark-mode .image-zoom-close:hover {
    color: #ff6699;
}

body.dark-mode .single-post .entry-content img:hover,
body.dark-mode .single-post .post-content img:hover,
body.dark-mode .single-post article img:hover {
    box-shadow: 0 5px 20px rgba(251, 191, 36, 0.3);
}

/* 文章内容中的表格横向滚动 */
.single-post .entry-content .wp-block-table,
.single-post .post-content .wp-block-table,
.single-post article .wp-block-table {
    position: relative;
    border: 1px solid var(--deerflow-border);
    border-radius: 5px;
    overflow: hidden;
    width: 100%;
    margin: 20px 0;
}

/* ============================================
   捐赠区域 - 游戏UI风格
   ============================================ */
.donation-section {
    margin-top: 40px;
    padding: 20px;
}

.donation-card {
    background: rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(139, 92, 246, 0.4);
    border-radius: 5px;
    padding: 30px;
    position: relative;
    width: 100%;
    margin: 0 auto;
}

/* 游戏UI装饰 - 捐赠卡片 */
.donation-card::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    width: 8px;
    height: 8px;
    border-top: 2px solid #f59e0b;
    border-left: 2px solid #f59e0b;
    border-top-left-radius: 5px;
}

.donation-card::after {
    content: '';
    position: absolute;
    bottom: -1px;
    right: -1px;
    width: 8px;
    height: 8px;
    border-bottom: 2px solid #8b5cf6;
    border-right: 2px solid #8b5cf6;
    border-bottom-right-radius: 5px;
}

.donation-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #f59e0b;
    text-align: center;
    margin-bottom: 20px;
}

.donation-text {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.8;
    text-align: center;
    margin-bottom: 25px;
}

.donation-image-container {
    text-align: center;
    margin-top: 30px;
}

.donation-image {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
    border: 1px solid rgba(139, 92, 246, 0.3);
}

/* 深色主题 - 捐赠区域 */
body.dark-mode .donation-card {
    background: rgba(0, 0, 0, 0.3);
    border-color: rgba(139, 92, 246, 0.5);
}

body.dark-mode .donation-text {
    color: #a0aec0;
}

/* 捐赠页面样式 */
.donation-page {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.donation-page .donation-section {
    margin-top: 0;
    padding: 40px 20px;
}

.donation-page .donation-card {
    padding: 50px;
}

.donation-page .donation-title {
    font-size: 2.25rem;
    margin-bottom: 25px;
}

.donation-page .donation-text {
    font-size: 1.1rem;
    margin-bottom: 30px;
}

/* 导航中的捐赠链接样式 */
.donation-nav-link {
    color: #ff6b6b !important;
}

.donation-nav-link:hover {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1), rgba(245, 158, 11, 0.05)) !important;
    border-color: rgba(245, 158, 11, 0.3) !important;
}

/* 游戏UI装饰 - 文章表格 */
.single-post .entry-content .wp-block-table::before,
.single-post .post-content .wp-block-table::before,
.single-post article .wp-block-table::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    width: 14px;
    height: 14px;
    border-top: 1px solid var(--game-gold);
    border-left: 1px solid var(--game-gold);
    border-top-left-radius: 5px;
    z-index: 10;
}

.single-post .entry-content .wp-block-table::after,
.single-post .post-content .wp-block-table::after,
.single-post article .wp-block-table::after {
    content: '';
    position: absolute;
    bottom: -1px;
    right: -1px;
    width: 14px;
    height: 14px;
    border-bottom: 1px solid var(--game-purple);
    border-right: 1px solid var(--game-purple);
    border-bottom-right-radius: 5px;
    z-index: 10;
}

.single-post .entry-content .wp-block-table table,
.single-post .post-content .wp-block-table table,
.single-post article .wp-block-table table {
    display: table;
    min-width: 100%;
}

.single-post .entry-content table,
.single-post .post-content table,
.single-post article table {
    border-collapse: collapse;
    background: var(--surface);
}

.single-post .entry-content table th,
.single-post .post-content table th,
.single-post article table th {
    background: var(--table-header-bg);
    padding: 10px 12px;
    text-align: left;
    font-weight: 600;
    border-bottom: 1px solid var(--table-border-divider);
    white-space: nowrap;
}

.single-post .entry-content table td,
.single-post .post-content table td,
.single-post article table td {
    padding: 8px 12px;
    border-bottom: 1px solid var(--table-border-divider);
}

.single-post .entry-content table tr:nth-child(even),
.single-post .post-content table tr:nth-child(even),
.single-post article table tr:nth-child(even) {
    background: var(--table-row-even-bg);
}

/* ========================================
   POPUP ANNOUNCEMENT - 弹窗公告
   ======================================== */

.flyff-announcement-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.flyff-announcement-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(2px);
    animation: fadeIn 0.3s ease;
}

.flyff-announcement-container {
    position: relative;
    background: var(--bg);
    border: 1px solid rgba(139, 92, 246, 0.4);
    border-radius: 0;
    max-width: 600px;
    width: 100%;
    max-height: 80vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 0 30px rgba(139, 92, 246, 0.2);
    animation: slideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* 游戏UI装饰 - 弹窗容器 */
.flyff-announcement-container::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    width: 12px;
    height: 12px;
    border-top: 2px solid #f59e0b;
    border-left: 2px solid #f59e0b;
    z-index: 10;
}

.flyff-announcement-container::after {
    content: '';
    position: absolute;
    bottom: -1px;
    right: -1px;
    width: 12px;
    height: 12px;
    border-bottom: 2px solid #8b5cf6;
    border-right: 2px solid #8b5cf6;
    z-index: 10;
}

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

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

.flyff-announcement-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    background: linear-gradient(90deg, rgba(245, 158, 11, 0.08) 0%, rgba(139, 92, 246, 0.08) 100%);
    border-bottom: 1px solid var(--border);
    position: relative;
}

/* 游戏UI装饰 - 头部 */
.flyff-announcement-header::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(245, 158, 11, 0.5), rgba(139, 92, 246, 0.5), transparent);
}

.flyff-announcement-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text);
    background: linear-gradient(135deg, #f59e0b, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.flyff-announcement-close {
    position: relative;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(139, 92, 246, 0.4);
    background: rgba(0, 0, 0, 0.02);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text);
    transition: all 0.2s;
    font-size: 1.5rem;
}

/* 游戏UI装饰 - 关闭按钮 */
.flyff-announcement-close::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    width: 8px;
    height: 8px;
    border-top: 1px solid #f59e0b;
    border-left: 1px solid #f59e0b;
}

.flyff-announcement-close::after {
    content: '';
    position: absolute;
    bottom: -1px;
    right: -1px;
    width: 8px;
    height: 8px;
    border-bottom: 1px solid #8b5cf6;
    border-right: 1px solid #8b5cf6;
}

.flyff-announcement-close:hover {
    background: rgba(245, 158, 11, 0.1);
    border-color: #f59e0b;
    color: #f59e0b;
}

.flyff-announcement-content {
    flex: 1;
    padding: 24px;
    overflow-y: auto;
    color: var(--text);
    line-height: 1.8;
}

.flyff-announcement-content h1,
.flyff-announcement-content h2,
.flyff-announcement-content h3,
.flyff-announcement-content h4 {
    margin: 20px 0 10px;
    color: var(--text);
    font-weight: 600;
}

.flyff-announcement-content h1:first-child,
.flyff-announcement-content h2:first-child,
.flyff-announcement-content h3:first-child,
.flyff-announcement-content h4:first-child {
    margin-top: 0;
}

.flyff-announcement-content p {
    margin: 10px 0;
}

.flyff-announcement-content ul,
.flyff-announcement-content ol {
    margin: 10px 0;
    padding-left: 24px;
}

.flyff-announcement-content li {
    margin: 5px 0;
}

.flyff-announcement-content img {
    max-width: 100%;
    height: auto;
    border-radius: 0;
    margin: 15px 0;
    border: 1px solid rgba(139, 92, 246, 0.3);
    position: relative;
}

/* 游戏UI装饰 - 图片 */
.flyff-announcement-content img::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    width: 6px;
    height: 6px;
    border-top: 1px solid #f59e0b;
    border-left: 1px solid #f59e0b;
}

.flyff-announcement-content img::after {
    content: '';
    position: absolute;
    bottom: -1px;
    right: -1px;
    width: 6px;
    height: 6px;
    border-bottom: 1px solid #8b5cf6;
    border-right: 1px solid #8b5cf6;
}

.flyff-announcement-content a {
    color: var(--accent);
    text-decoration: none;
    position: relative;
    transition: color 0.2s;
}

.flyff-announcement-content a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, #f59e0b, #8b5cf6);
    transition: opacity 0.2s;
}

.flyff-announcement-content a:hover {
    color: #f59e0b;
}

.flyff-announcement-footer {
    padding: 20px 24px;
    border-top: 1px solid var(--border);
    background: var(--surface);
    text-align: center;
    position: relative;
}

/* 游戏UI装饰 - 底部 */
.flyff-announcement-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.5), rgba(245, 158, 11, 0.5), transparent);
}

.flyff-announcement-button {
    position: relative;
    background: transparent;
    color: var(--text);
    border: 1px solid rgba(139, 92, 246, 0.4);
    padding: 12px 40px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

/* 游戏UI装饰 - 按钮 */
.flyff-announcement-button::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    width: 8px;
    height: 8px;
    border-top: 1px solid #f59e0b;
    border-left: 1px solid #f59e0b;
}

.flyff-announcement-button::after {
    content: '';
    position: absolute;
    bottom: -1px;
    right: -1px;
    width: 8px;
    height: 8px;
    border-bottom: 1px solid #8b5cf6;
    border-right: 1px solid #8b5cf6;
}

.flyff-announcement-button:hover {
    background: rgba(245, 158, 11, 0.1);
    border-color: #f59e0b;
    color: #f59e0b;
}

/* 深色模式下的弹窗公告 */
body.dark-mode .flyff-announcement-container {
    box-shadow: 0 0 40px rgba(139, 92, 246, 0.15);
    background: var(--surface);
}

body.dark-mode .flyff-announcement-overlay {
    background: rgba(0, 0, 0, 0.7);
}

body.dark-mode .flyff-announcement-header {
    background: linear-gradient(90deg, rgba(245, 158, 11, 0.05) 0%, rgba(139, 92, 246, 0.05) 100%);
}

body.dark-mode .flyff-announcement-close {
    background: rgba(0, 0, 0, 0.1);
}

body.dark-mode .flyff-announcement-button {
    background: transparent;
}

/* ========================================
   悬浮区域 - Float Area
   ======================================== */

.flyff-float-area {
    position: fixed;
    top: 150px;
    z-index: 1000;
}

.flyff-float-left {
    left: calc((100vw - 1200px) / 2 - 70px);
}

.flyff-float-right {
    right: calc((100vw - 1200px) / 2 - 70px);
}

.flyff-float-items {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 0;
    background: transparent;
    border: none;
}

.flyff-float-item {
    position: relative;
    transition: all 0.3s ease;
}

.flyff-float-item img {
    max-width: 100%;
    height: auto;
    display: block;
    border: none;
    transition: all 0.3s ease;
}

.flyff-float-item a {
    display: block;
    text-decoration: none;
}

.flyff-float-item:hover img {
    transform: scale(1.1);
}

.flyff-float-close {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #ef4444;
    color: white;
    border: none;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    padding: 0;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.flyff-float-item:hover .flyff-float-close {
    opacity: 1;
}

.flyff-float-close:hover {
    background: #dc2626;
    transform: scale(1.1);
}

.flyff-float-item.hidden {
    display: none !important;
}

/* 响应式 */
@media (max-width: 1300px) {
    .flyff-float-left {
        left: 10px;
    }
    
    .flyff-float-right {
        right: 10px;
    }
}

/* 迷你地图样式（用于怪物详情页小地图） */
.mini-flyff-map-container { position: relative; overflow: hidden; cursor: grab; }
.mini-flyff-map-container.dragging { cursor: grabbing; }
.mini-flyff-map-canvas { position: absolute; top: 0; left: 0; transition: none; will-change: transform; }
.mini-flyff-map-tile { position: absolute; background-size: cover; background-position: center; background-repeat: no-repeat; box-sizing: border-box; }
.mini-flyff-map-markers { position: absolute; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; }
.mini-flyff-map-marker { position: absolute; width: 32px; height: 32px; z-index: 20; pointer-events: auto; transform: translate(-50%, -50%); image-rendering: pixelated; image-rendering: crisp-edges; }
.mini-flyff-map-marker-icon { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5)); image-rendering: pixelated; image-rendering: crisp-edges; }
.mini-flyff-map-spawn-area { position: absolute; border-radius: 50%; background: radial-gradient(circle, rgba(255,0,0,0.3) 0%, rgba(255,0,0,0.1) 50%, rgba(255,0,0,0) 100%); pointer-events: none; }
.mini-flyff-map-tooltip { position: absolute; background: rgba(0,0,0,0.95); color: white; padding: 6px 10px; border-radius: 6px; font-size: 12px; white-space: nowrap; z-index: 1000; pointer-events: none; }




