        /* ========== 首页通用模块样式 ========== */
        .home-section {
            background: rgba(255,255,255,0.04);
            border-radius: 14px;
            padding: 18px;
            border: 1px solid rgba(255,255,255,0.08);
            margin-bottom: 14px;
        }
        .home-section-head {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-bottom: 14px;
        }
        .home-section-title {
            display: flex;
            align-items: center;
            gap: 8px;
            font-size: 15px;
            color: #fff;
            font-weight: 600;
        }
        .home-section-title .icon { font-size: 20px; }
        .home-section-more {
            font-size: 11px;
            color: #f0c27f;
            cursor: pointer;
            padding: 4px 10px;
            border-radius: 12px;
            background: rgba(240,194,127,0.1);
        }
        .home-footer-tip {
            text-align: center;
            padding: 20px;
            color: rgba(255,255,255,0.3);
            font-size: 12px;
        }

        /* ========== 首页双栏布局 ========== */
        .home-layout {
            display: block;
        }
        .home-overview { margin-bottom: 18px; }
        .home-main { min-width: 0; }
        .home-sidebar { min-width: 0; }

        @media (min-width: 1024px) {
            .home-layout {
                display: grid;
                grid-template-columns: minmax(0, 1fr) 340px;
                grid-template-areas:
                    "overview overview"
                    "main sidebar";
                gap: 18px;
                align-items: start;
            }
            .home-overview { grid-area: overview; margin-bottom: 0; }
            .home-main { grid-area: main; }
            .home-sidebar {
                grid-area: sidebar;
                position: sticky;
                top: 16px;
                display: flex;
                flex-direction: column;
                gap: 14px;
                max-height: calc(100vh - 32px);
                overflow-y: auto;
                padding-right: 2px;
            }
            .home-sidebar::-webkit-scrollbar { width: 4px; }
            .home-sidebar::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 2px; }
            /* 侧边栏模块去掉外边距，用gap控制 */
            .home-sidebar > div { margin-bottom: 0 !important; }
            /* 侧边栏内快速操作改2列紧凑 */
            .home-sidebar .quick-actions {
                grid-template-columns: 1fr 1fr;
                gap: 8px;
            }
            .home-sidebar .quick-action-card {
                padding: 12px 8px;
            }
            .home-sidebar .quick-action-card .qa-icon { font-size: 22px; margin-bottom: 4px; }
            .home-sidebar .quick-action-card .qa-name { font-size: 12px; }
            .home-sidebar .quick-action-card .qa-desc { font-size: 9px; }
        }

        /* 快速操作卡片通用样式 */
        .quick-actions {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
            gap: 12px;
            margin-bottom: 18px;
        }
        .quick-action-card {
            cursor: pointer;
            padding: 16px;
            border-radius: 14px;
            text-align: center;
            transition: all 0.2s;
            border: 1px solid;
        }
        .quick-action-card:hover { transform: translateY(-2px); }
        .quick-action-card .qa-icon { font-size: 32px; margin-bottom: 6px; }
        .quick-action-card .qa-name { font-size: 13px; font-weight: 600; }
        .quick-action-card .qa-desc { font-size: 10px; color: rgba(255,255,255,0.4); margin-top: 2px; }

        /* 移动端触摸反馈 */
        @media (hover: none) and (pointer: coarse) {
            .btn-add:active,
            .btn-reset:active,
            .btn-export:active,
            .btn-csv:active,
            .btn-import:active,
            .btn-file:active,
            .btn-backup:active,
            .btn-view-toggle:active,
            .tab-btn.active:active,
            .status-toggle:active,
            .gear-card:active,
            .expense-card:active,
            .overview-card:active,
            .summary-item:active,
            .filter-btn.active:active,
            button:active {
                transform: scale(0.96) !important;
                transition: transform 0.1s !important;
            }
            .card-actions,
            .expense-actions {
                opacity: 1 !important;
            }
            .gear-card:hover::before,
            .expense-card:hover::before {
                opacity: 1;
            }
        }


        .toast {
            position: fixed;
            bottom: 30px;
            left: 50%;
            transform: translateX(-50%) translateY(100px);
            background: #1a2332;
            color: #f0c27f;
            padding: 12px 24px;
            border-radius: 12px;
            font-size: 13px;
            border: 1px solid rgba(240,194,127,0.3);
            z-index: 2000;
            transition: transform 0.3s ease;
            pointer-events: none;
            box-shadow: 0 8px 24px rgba(0,0,0,0.3);
            display: flex;
            align-items: center;
            gap: 12px;
            max-width: 90vw;
        }
        .toast.show { transform: translateX(-50%) translateY(0); }
        .toast .toast-undo {
            background: rgba(240,194,127,0.2);
            color: #f0c27f;
            border: 1px solid rgba(240,194,127,0.4);
            padding: 4px 12px;
            border-radius: 6px;
            font-size: 12px;
            cursor: pointer;
            font-family: inherit;
            pointer-events: auto;
            flex-shrink: 0;
        }
        .toast .toast-undo:hover { background: rgba(240,194,127,0.35); }
        /* 自定义动作按钮（如"选中年份不存在，点击切回全部"） */
        .toast .toast-action {
            background: rgba(240,194,127,0.2);
            color: #f0c27f;
            border: 1px solid rgba(240,194,127,0.4);
            padding: 4px 12px;
            border-radius: 6px;
            font-size: 12px;
            cursor: pointer;
            font-family: inherit;
            pointer-events: auto;
            flex-shrink: 0;
        }
        .toast .toast-action:hover { background: rgba(240,194,127,0.35); }

        #file-import { display: none; }

        /* 快捷键帮助 */
        .shortcut-list {
            list-style: none;
            padding: 0;
        }
        .shortcut-list li {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 10px 0;
            border-bottom: 1px solid rgba(255,255,255,0.05);
            font-size: 13px;
            color: #ccc;
        }
        .shortcut-list li:last-child { border-bottom: none; }
        .shortcut-key {
            display: inline-block;
            padding: 3px 10px;
            background: rgba(255,255,255,0.08);
            border: 1px solid rgba(255,255,255,0.15);
            border-radius: 6px;
            font-family: monospace;
            font-size: 12px;
            color: #f0c27f;
        }

        /* 已购总投入统计 */
        .h-stat.investment .num {
            color: #fc5c7d;
        }

        @media (max-width: 768px) {
            .header { padding: 24px 16px 20px; }
            .header-left h1 { font-size: 24px; }
            .header-top { flex-direction: column; align-items: flex-start; }
            .header-stats { width: 100%; }
            .category-overview { grid-template-columns: repeat(2, 1fr); padding: 16px 16px 0; }
            .toolbar { flex-direction: column; align-items: stretch; padding: 16px; }
            .toolbar-right { margin-left: 0; flex-wrap: wrap; }
            .search-box input { width: 100%; }
            .filter-section { flex-direction: column; align-items: stretch; }
            .gear-grid { grid-template-columns: 1fr; }
            .form-row { grid-template-columns: 1fr; }
            .card-actions { opacity: 1 !important; }
            .main { padding: 0 16px 60px; }
            .expense-cats { grid-template-columns: 1fr 1fr; }
            .trend-chart { height: 80px; }
            .modal { padding: 20px; max-height: 85vh; }
            .modal h2 { font-size: 18px; margin-bottom: 16px; }
            .form-group { margin-bottom: 12px; }
            .card-actions button { width: 32px; height: 32px; font-size: 14px; }
            .toolbar .btn { padding: 10px 14px; font-size: 13px; }
            .filter-section { gap: 12px; }
            .filter-tags, .category-tags { gap: 6px; }
            .filter-tags button, .category-tags button { padding: 6px 12px; font-size: 12px; }
            .category-overview { grid-template-columns: repeat(2, 1fr); gap: 10px; }
            .h-stat { padding: 12px 8px; }
            .h-stat .num { font-size: 18px; }

            /* 手机端触摸优化 */
            .form-group input,
            .form-group select,
            .form-group textarea {
                min-height: 48px;       /* iOS 推荐最小触摸高度 */
                font-size: 16px;         /* >=16px 避免 iOS 自动缩放 */
                padding: 12px 14px;
            }
            .form-group textarea { min-height: 80px; }
            .modal button {
                min-height: 48px;
                font-size: 15px;
            }
            .card-actions button {
                width: 40px; height: 40px;   /* 更大触摸目标 */
                font-size: 16px;
            }
            .toolbar .btn,
            .btn-export, .btn-import, .btn-backup, .btn-file, .btn-reset {
                min-height: 44px;       /* Apple HIG 最小触摸目标 */
                padding: 12px 16px;
                font-size: 14px;
            }
            .filter-tags button, .category-tags button {
                min-height: 40px;
                padding: 8px 14px;
            }
            .search-box input { min-height: 44px; }
            .toast {
                font-size: 14px;
                padding: 14px 16px;
                bottom: 80px;
                max-width: calc(100% - 32px);
            }
            .toast button {
                min-height: 40px;
                padding: 8px 16px;
            }
        }
        /* ========== 首页：装备看板 ========== */
        /* 移动端默认单列；桌面端（>=1024px）由上方 @media 切换为"主页 + 右栏"双栏栅格。
           此单列规则限定在 <1024px，避免覆盖桌面端双栏布局。 */
        @media (max-width: 1023px) {
            .home-layout {
                display: flex;
                flex-direction: column;
                gap: 16px;
            }
        }
        .home-main, .home-sidebar { display: flex; flex-direction: column; gap: 14px; }

        /* 总览卡 */
        .home-overview-card {
            background: linear-gradient(135deg, rgba(15,32,39,0.9), rgba(44,83,100,0.9));
            border-radius: 16px;
            padding: 24px;
            border: 1px solid rgba(240,194,127,0.2);
            position: relative;
            overflow: hidden;
        }
        .home-overview-card::after {
            content: '⛰️';
            position: absolute;
            top: -20px; right: -20px;
            font-size: 120px;
            opacity: 0.08;
        }
        .home-overview-card h2 {
            margin: 0 0 16px;
            color: #f0c27f;
            font-size: 20px;
        }
        .home-overview-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
            gap: 16px;
        }
        .home-overview-stat { text-align: center; }
        .home-overview-stat .num {
            font-size: 28px;
            color: #fff;
            font-weight: 700;
        }
        .home-overview-stat .lbl {
            font-size: 12px;
            color: rgba(255,255,255,0.6);
            margin-top: 4px;
        }
        .home-overview-actions {
            margin-top: 14px;
            padding-top: 14px;
            border-top: 1px solid rgba(255,255,255,0.1);
            display: flex;
            gap: 12px;
            flex-wrap: wrap;
        }
        .home-btn-primary {
            background: linear-gradient(135deg, #f0c27f, #fc5c7d);
            color: #0a0e17;
            border: none;
            border-radius: 8px;
            padding: 10px 18px;
            font-size: 13px;
            font-weight: 600;
            cursor: pointer;
            min-height: 44px;
        }
        .home-btn-secondary {
            background: rgba(255,255,255,0.1);
            color: #fff;
            border: 1px solid rgba(255,255,255,0.2);
            border-radius: 8px;
            padding: 10px 18px;
            font-size: 13px;
            cursor: pointer;
            min-height: 44px;
        }

        /* 系统卡 */
        .home-system-card { overflow: hidden; }
        .home-system-head {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-bottom: 8px;
        }
        .home-system-head .sys-icon { font-size: 28px; }
        .home-system-head .sys-name { font-size: 16px; color: #fff; font-weight: 600; }
        .home-system-head .sys-desc {
            font-size: 11px;
            color: rgba(255,255,255,0.4);
        }
        .home-system-progress {
            height: 4px;
            background: rgba(255,255,255,0.08);
            border-radius: 2px;
            margin-bottom: 14px;
            overflow: hidden;
        }
        .home-system-progress-fill {
            height: 100%;
            border-radius: 2px;
            transition: width 0.5s;
        }
        .home-system-items {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
            gap: 10px;
        }
        .home-sys-item {
            background: rgba(255,255,255,0.03);
            border-radius: 10px;
            padding: 12px;
            border-left: 3px solid var(--sys-color, #90a4ae);
        }
        .home-sys-item .item-row1 {
            display: flex;
            align-items: flex-start;
            justify-content: space-between;
            margin-bottom: 6px;
        }
        .home-sys-item .item-name {
            font-size: 13px;
            color: #fff;
            font-weight: 500;
            flex: 1;
            line-height: 1.3;
        }
        .home-sys-item .item-brand {
            font-size: 11px;
            color: rgba(255,255,255,0.5);
            margin-bottom: 4px;
        }
        .home-sys-item .item-spec {
            font-size: 10px;
            color: rgba(255,255,255,0.35);
            margin-bottom: 4px;
        }
        .home-sys-item .item-bottom {
            display: flex;
            align-items: center;
            justify-content: space-between;
        }
        .home-sys-item .item-price {
            font-size: 12px;
            color: #f0c27f;
            font-weight: 600;
        }
        .home-sys-item .item-status {
            font-size: 10px;
        }
        .home-sys-item .item-note {
            font-size: 10px;
            color: rgba(255,255,255,0.3);
            margin-top: 6px;
            padding-top: 6px;
            border-top: 1px solid rgba(255,255,255,0.05);
        }

        /* 首页 section 通用头 */
        .home-section { }
        .home-section-head {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-bottom: 12px;
        }
        .home-section-title {
            font-size: 15px;
            color: #fff;
            font-weight: 600;
            display: flex;
            align-items: center;
            gap: 8px;
        }
        .home-section-title .icon { font-size: 20px; }
        .home-section-more {
            font-size: 12px;
            color: rgba(255,255,255,0.5);
            cursor: pointer;
            transition: color 0.2s;
        }
        .home-section-more:hover { color: #f0c27f; }

        /* 饼图布局 */
        .home-pie-row {
            display: flex;
            align-items: center;
            gap: 20px;
            flex-wrap: wrap;
        }
        .home-pie-legend {
            flex: 1;
            min-width: 140px;
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
            gap: 6px 14px;
        }
        .home-pie-legend-item {
            display: flex;
            align-items: center;
            gap: 8px;
            font-size: 12px;
        }
        .home-pie-legend-dot {
            width: 10px;
            height: 10px;
            border-radius: 3px;
            flex-shrink: 0;
        }
        .home-pie-legend-name { flex: 1; color: rgba(255,255,255,0.85); }
        .home-pie-legend-val { color: #f0c27f; font-weight: 600; }

        /* 快捷操作 */
        .quick-actions {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
            gap: 12px;
        }
        .quick-action-card {
            border-radius: 12px;
            padding: 16px;
            cursor: pointer;
            border: 1px solid;
            transition: transform 0.2s, box-shadow 0.2s;
        }
        .quick-action-card:hover { transform: translateY(-2px); }

        /* 最近行程条目 */
        .recent-exp-list { display: flex; flex-direction: column; gap: 10px; }
        .recent-exp-item {
            cursor: pointer;
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 12px 14px;
            border-radius: 12px;
            background: linear-gradient(135deg, rgba(102,187,106,0.05), rgba(66,165,245,0.05));
            border: 1px solid rgba(255,255,255,0.06);
            transition: all 0.2s;
        }
        .recent-exp-item:hover {
            border-color: rgba(240,194,127,0.3);
            transform: translateY(-1px);
        }
        .recent-exp-icon {
            width: 42px;
            height: 42px;
            border-radius: 10px;
            background: linear-gradient(135deg, rgba(240,194,127,0.2), rgba(252,92,125,0.15));
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 20px;
            flex-shrink: 0;
        }
        .recent-exp-body { flex: 1; min-width: 0; }
        .recent-exp-title {
            font-size: 14px;
            color: #fff;
            font-weight: 600;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }
        .recent-exp-meta {
            display: flex;
            align-items: center;
            gap: 8px;
            font-size: 11px;
            color: rgba(255,255,255,0.4);
            margin-top: 3px;
        }
        .recent-exp-amount {
            font-size: 16px;
            font-weight: 700;
            background: linear-gradient(135deg, #f0c27f, #fc5c7d);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            text-align: right;
            flex-shrink: 0;
        }

        /* 最近装备 */
        .recent-gear-list { display: flex; flex-direction: column; gap: 8px; }
        .recent-gear-item {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 10px 12px;
            border-radius: 10px;
            background: rgba(255,255,255,0.03);
            border: 1px solid rgba(255,255,255,0.05);
        }
        .recent-gear-icon {
            width: 36px;
            height: 36px;
            border-radius: 9px;
            background: rgba(240,194,127,0.1);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 18px;
            flex-shrink: 0;
        }
        .recent-gear-body { flex: 1; min-width: 0; }
        .recent-gear-title-row {
            display: flex;
            align-items: center;
            gap: 6px;
            margin-bottom: 2px;
        }
        .recent-gear-name {
            font-size: 13px;
            color: #fff;
            font-weight: 500;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }
        .recent-gear-meta {
            display: flex;
            align-items: center;
            gap: 8px;
            font-size: 11px;
            color: rgba(255,255,255,0.4);
        }
        .recent-gear-price {
            font-size: 13px;
            color: #f0c27f;
            font-weight: 600;
            text-align: right;
            flex-shrink: 0;
        }
        .recent-gear-status { font-size: 10px; margin-top: 2px; }

        /* 首页底部提示 */
        .home-footer-tip {
            font-size: 12px;
            color: rgba(255,255,255,0.4);
            text-align: center;
            padding: 8px;
        }

        /* 首页空状态 */
        .home-empty {
            text-align: center;
            padding: 40px 20px;
            color: rgba(255,255,255,0.4);
            background: rgba(255,255,255,0.02);
            border-radius: 14px;
            border: 1px dashed rgba(255,255,255,0.06);
        }
        .home-empty .emoji { font-size: 48px; margin-bottom: 12px; }
        .home-empty p { font-size: 14px; margin: 0 0 16px; }
