/* Extracted from the original single-file 每日摸鱼 page. */
:root {
            --bg-color: #f4f6f9;
            --card-bg: #ffffff;
            --border-color: #e5e9f0;
            --text-primary: #1e293b;
            --text-secondary: #64748b;
            --accent-blue: #3b82f6;
            --accent-green: #10b981;
            --accent-red: #ef4444;
            --gold: #d97706;
            --gold-light: #fef3c7;
        }

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

        body {
            font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
            background-color: var(--bg-color);
            color: var(--text-primary);
            min-height: 100vh;
            display: flex;
            justify-content: center;
            align-items: center;
            padding: 20px;
        }

        #coin-container {
            position: fixed;
            top: 0; left: 0;
            width: 100vw; height: 100vh;
            pointer-events: none;
            z-index: 90;
            overflow: hidden;
        }

        .coin {
            position: absolute;
            font-size: 28px;
            will-change: transform;
            top: -50px;
        }

        .container {
            width: 100%;
            max-width: 1100px;
            display: flex;
            flex-direction: column;
            gap: 20px;
        }

        .header-bar {
            display: flex;
            justify-content: space-between;
            align-items: center;
            background: var(--card-bg);
            padding: 16px 24px;
            border-radius: 16px;
            border: 1px solid var(--border-color);
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
        }

        .title {
            font-size: 20px;
            font-weight: 800;
            color: var(--text-primary);
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .status-tag {
            padding: 6px 14px;
            border-radius: 20px;
            font-size: 13px;
            font-weight: 600;
            background: #e0f2fe;
            color: var(--accent-blue);
        }

        .status-tag.slacking {
            background: #d1fae5;
            color: var(--accent-green);
            animation: pulse-green 1.5s infinite;
        }

        .slogan {
            font-size: 12px;
            font-weight: 500;
            color: var(--text-secondary);
            margin-left: 10px;
            padding-left: 10px;
            border-left: 1px solid var(--border-color);
            letter-spacing: 0.5px;
            white-space: nowrap;
        }

        @media (max-width: 640px) {
            .slogan { display: none; }
        }

        .report-modal { text-align: center; max-width: 380px; }

        .mr-salary-box {
            background: linear-gradient(135deg, #ecfdf5, #f0f9ff);
            border-radius: 14px;
            padding: 18px;
            margin: 14px 0 10px;
        }
        .mr-actual-label { font-size: 13px; color: var(--text-secondary); }
        .mr-actual { font-size: 34px; font-weight: 800; color: var(--accent-green); line-height: 1.2; margin: 2px 0 6px; }
        .mr-nominal-line { font-size: 13px; color: var(--text-secondary); }
        .mr-perk-line { font-size: 12px; color: var(--text-secondary); margin-top: 4px; }
        .mr-period, .report-date-line { font-size: 11px; color: var(--text-secondary); margin-top: 4px; }
        .mr-tip { font-size: 12px; color: var(--text-secondary); line-height: 1.6; margin-bottom: 14px; }
        .mr-stats-title {
            font-size: 11px; font-weight: 700; color: #92400e;
            text-transform: uppercase; letter-spacing: 1px;
            text-align: left; margin-bottom: 8px;
        }
        .mr-stats { text-align: left; margin-bottom: 16px; }
        .mr-stat-row {
            padding: 8px 12px; background: #f8fafc; border-radius: 8px;
            margin-bottom: 6px; font-size: 14px;
        }

        .report-badge {
            font-size: 46px;
            line-height: 1;
            animation: report-pop 0.7s cubic-bezier(.2,1.5,.4,1) both;
        }

        @keyframes report-pop {
            0% { transform: scale(0.2) rotate(-30deg); opacity: 0; }
            60% { transform: scale(1.2) rotate(8deg); }
            100% { transform: scale(1) rotate(0); opacity: 1; }
        }

        .report-title {
            font-size: 15px;
            font-weight: 700;
            color: var(--text-primary);
            margin-top: 8px;
            letter-spacing: 0.5px;
        }

        .report-pct {
            font-size: 52px;
            font-weight: 800;
            color: var(--accent-green);
            line-height: 1;
            margin-top: 10px;
        }
        .report-pct-unit { font-size: 24px; margin-left: 2px; }
        .report-pct-label { font-size: 11px; color: var(--text-secondary); margin-top: 2px; }

        .report-bar {
            height: 10px;
            background: #e2e8f0;
            border-radius: 10px;
            overflow: hidden;
            margin-top: 16px;
        }
        .report-bar-fill {
            height: 100%;
            width: 0;
            border-radius: 10px;
            background: linear-gradient(90deg, var(--gold), var(--accent-green));
            transition: width 1.1s cubic-bezier(.2,.9,.3,1);
        }

        .report-stats {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 8px;
            margin-top: 16px;
        }
        .report-stats > div {
            background: #f8fafc;
            border-radius: 9px;
            padding: 9px 4px;
        }
        .report-stats b { display: block; font-size: 17px; font-weight: 800; color: var(--text-primary); }
        .report-stats span { font-size: 10px; color: var(--text-secondary); }

        .report-text {
            margin-top: 16px;
            padding: 13px 14px;
            background: #f0fdf4;
            border: 1px solid #bbf7d0;
            border-radius: 10px;
            font-size: 12.5px;
            line-height: 1.85;
            color: #166534;
            text-align: left;
            white-space: pre-line;
        }

        .perk-card { padding: 16px 18px; }

        .perk-head {
            display: flex;
            justify-content: space-between;
            align-items: baseline;
            gap: 12px;
        }

        .perk-total {
            font-size: 15px;
            font-weight: 700;
            color: #0ea5e9;
        }

        .perk-sub {
            font-size: 11px;
            color: var(--text-secondary);
            margin-top: 2px;
        }

        .perk-summary-strip {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 8px;
            margin: 10px 0;
        }
        .perk-summary-strip > div {
            min-width: 0;
            padding: 7px 9px;
            background: #f8fafc;
            border: 1px solid var(--border-color);
            border-radius: 8px;
        }
        .perk-summary-strip span {
            display: block;
            font-size: 10px;
            color: var(--text-secondary);
            margin-bottom: 2px;
        }
        .perk-summary-strip b {
            display: block;
            font-size: 11px;
            font-weight: 700;
            color: var(--text-primary);
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        .perk-rows { margin-top: 10px; display: flex; flex-direction: column; gap: 7px; }

        .perk-row {
            display: flex;
            align-items: center;
            gap: 9px;
            padding: 7px 9px;
            background: #f0f9ff;
            border: 1px solid #e0f2fe;
            border-radius: 8px;
            min-height: 44px;
        }

        .perk-ico { font-size: 18px; flex-shrink: 0; }
        .perk-info { flex: 1; min-width: 0; }
        .perk-name { font-size: 12.5px; font-weight: 600; color: var(--text-primary); }
        .perk-name b { color: #0284c7; font-size: 14px; }
        .perk-meta { font-size: 10.5px; color: var(--text-secondary); margin-top: 1px; }

        .perk-btns { display: flex; gap: 5px; flex-shrink: 0; }

        .perk-btn {
            width: 26px; height: 26px;
            border-radius: 7px;
            border: 1px solid #bae6fd;
            background: #fff;
            color: #0284c7;
            font-size: 15px;
            font-weight: 700;
            cursor: pointer;
            line-height: 1;
            display: flex; align-items: center; justify-content: center;
            transition: 0.15s;
        }
        .perk-btn:hover { background: #e0f2fe; transform: translateY(-1px); }

        .perk-other-head {
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        .perk-other-head.compact {
            margin-top: 10px;
            padding-top: 10px;
            border-top: 1px dashed var(--border-color);
        }
        .perk-manage-btn {
            font-size: 11px;
            padding: 4px 10px;
            border: 1px solid var(--border-color);
            border-radius: 6px;
            background: #f8fafc;
            color: var(--text-secondary);
            cursor: pointer;
        }
        .perk-manage-btn:hover { background: #e2e8f0; }
        .perk-other-sub { font-size: 11px; color: var(--text-secondary); margin: 4px 0 10px; }
        .perk-shortcut-grid {
            display: flex;
            flex-direction: column;
            gap: 7px;
        }
        .perk-btn.plus { background: #0ea5e9; color: #fff; border-color: #0ea5e9; }
        .perk-btn.plus:hover { background: #0284c7; }

        .perk-switch { position: relative; display: inline-block; width: 38px; height: 21px; cursor: pointer; }
        .perk-switch input { opacity: 0; width: 0; height: 0; }
        .perk-switch span {
            position: absolute; inset: 0;
            background: #cbd5e1;
            border-radius: 21px;
            transition: 0.2s;
        }
        .perk-switch span::before {
            content: "";
            position: absolute;
            width: 15px; height: 15px;
            left: 3px; top: 3px;
            background: #fff;
            border-radius: 50%;
            transition: 0.2s;
        }
        .perk-switch input:checked + span { background: #0ea5e9; }
        .perk-switch input:checked + span::before { transform: translateX(17px); }

        .perk-fun {
            margin-top: 10px;
            padding: 9px 10px;
            background: #ecfeff;
            border-radius: 8px;
            font-size: 11.5px;
            color: #0e7490;
            line-height: 1.6;
            text-align: center;
        }

        .mr-history-nav {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 10px;
            margin-bottom: 12px;
        }

        .status-tag.off {
            background: #f1f5f9;
            color: var(--text-secondary);
        }

        @keyframes pulse-green {
            0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4); }
            70% { box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
            100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
        }

        .main-layout {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 20px;
            align-items: start;
        }

        @media (max-width: 850px) {
            .main-layout { grid-template-columns: 1fr; }
        }

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

        .card {
            background: var(--card-bg);
            border: 1px solid var(--border-color);
            border-radius: 16px;
            padding: 24px;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
        }

        .main-display { text-align: center; }

        .amount-label {
            font-size: 12px;
            font-weight: 600;
            color: var(--text-secondary);
            letter-spacing: 1.5px;
            margin-bottom: 8px;
        }

        .amount-value {
            font-family: "Courier New", Courier, monospace;
            font-size: 48px;
            font-weight: 800;
            color: var(--gold);
            margin-bottom: 12px;
            transition: color 0.4s ease;
        }

        .progress-wrapper {
            margin-top: 15px;
            background: #f1f5f9;
            border-radius: 10px;
            height: 10px;
            overflow: hidden;
            display: flex;
        }

        .progress-bar-labor {
            height: 100%;
            background: var(--gold);
            transition: width 0.3s ease;
        }

        .progress-bar-slacking {
            height: 100%;
            background: var(--accent-green);
            transition: width 0.3s ease;
        }

        .income-breakdown {
            display: flex;
            justify-content: center;
            flex-wrap: wrap;
            gap: 8px 16px;
            margin-top: 12px;
            font-size: 13px;
            color: var(--text-secondary);
        }

        .dot {
            width: 8px; height: 8px;
            border-radius: 50%;
            display: inline-block;
            margin-right: 5px;
        }

        .dot.labor { background: var(--gold); }
        .dot.slacking { background: var(--accent-green); }
        .dot.overtime { background: var(--accent-red); }
        .breakdown-overtime { color: var(--accent-red); font-weight: 700; }

        .fish-quote {
            margin-top: 16px;
            font-size: 13px;
            color: var(--accent-green);
            font-style: italic;
            background: #ecfdf5;
            padding: 10px;
            border-radius: 8px;
        }

        .btn-slack-toggle {
            width: 100%;
            padding: 16px;
            font-size: 16px;
            font-weight: 700;
            border: none;
            border-radius: 12px;
            cursor: pointer;
            transition: all 0.2s ease;
            display: flex;
            justify-content: center;
            align-items: center;
            gap: 8px;
        }

        .btn-slack-toggle.start {
            background: #ecfdf5;
            border: 2px solid var(--accent-green);
            color: var(--accent-green);
        }

        .btn-slack-toggle.start:hover {
            background: var(--accent-green);
            color: #ffffff;
        }

        .btn-slack-toggle.stop {
            background: #fef2f2;
            border: 2px solid var(--accent-red);
            color: var(--accent-red);
        }

        .btn-slack-toggle.stop:hover {
            background: var(--accent-red);
            color: #ffffff;
        }

        .btn-fish-escaped {
            width: 100%;
            margin-top: 10px;
            padding: 11px;
            font-size: 14px;
            font-weight: 600;
            border: 1px dashed #f59e0b;
            border-radius: 10px;
            background: #fffbeb;
            color: #b45309;
            cursor: pointer;
            transition: all 0.2s;
        }
        .btn-fish-escaped:hover { background: #fef3c7; }

        .work-action-triplet {
            display: grid;
            grid-template-columns: repeat(3, minmax(0, 1fr));
            gap: 8px;
            margin-top: 10px;
        }

        .btn-work-action {
            width: 100%;
            min-height: 48px;
            padding: 10px 8px;
            font-size: 13px;
            font-weight: 700;
            border: 2px solid transparent;
            border-radius: 12px;
            cursor: pointer;
            transition: all 0.2s;
            line-height: 1.25;
        }

        .btn-work-action.early-start {
            border-color: #14b8a6;
            background: #f0fdfa;
            color: #0f766e;
        }
        .btn-work-action.early-start:hover,
        .btn-work-action.early-start.active {
            background: #14b8a6;
            color: #fff;
        }

        .btn-work-action.early-leave {
            border-color: #0ea5e9;
            background: #f0f9ff;
            color: #0369a1;
        }
        .btn-work-action.early-leave:hover { background: #0ea5e9; color: #fff; }
        .btn-work-action.early-leave.done {
            border-color: #94a3b8;
            background: #f1f5f9;
            color: #64748b;
        }
        .btn-work-action.early-leave.done:hover { background: #e2e8f0; color: #475569; }

        .btn-work-action.overtime {
            border-color: #7c3aed;
            background: #f5f3ff;
            color: #6d28d9;
        }
        .btn-work-action.overtime:hover,
        .btn-work-action.overtime.active {
            background: #7c3aed;
            color: #fff;
        }

        .btn-quick.danger-soft {
            border-color: #fecaca;
            background: #fef2f2;
            color: #dc2626;
            font-weight: 700;
        }
        .btn-quick.danger-soft:hover { background: #fee2e2; }

        @media (max-width: 420px) {
            .work-action-triplet { grid-template-columns: 1fr; }
            .btn-work-action { min-height: 44px; }
        }

        .quick-actions-grid {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 10px;
            margin-top: 12px;
        }

        .btn-quick {
            padding: 10px;
            background: #f8fafc;
            border: 1px solid var(--border-color);
            border-radius: 8px;
            color: var(--text-primary);
            font-size: 13px;
            cursor: pointer;
            font-weight: 500;
            transition: all 0.2s;
        }

        .btn-quick:hover { background: #e2e8f0; }

        .shortcut-row {
            display: flex;
            gap: 8px;
            margin-bottom: 8px;
            align-items: center;
        }
        .shortcut-row input {
            padding: 8px;
            border: 1px solid var(--border-color);
            border-radius: 8px;
            font-size: 14px;
        }
        .shortcut-row .sc-icon { width: 44px; text-align: center; }
        .shortcut-row .sc-label { flex: 1; min-width: 0; }
        .shortcut-row .sc-min { width: 56px; text-align: center; }
        .shortcut-row .sc-del {
            width: 32px; height: 32px;
            border: none; border-radius: 8px;
            background: #fef2f2; color: var(--accent-red);
            cursor: pointer; font-size: 14px; flex-shrink: 0;
        }
        .shortcut-row .sc-del:hover { background: #fee2e2; }

        .heat-card { padding: 20px; }

        .heat-head {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 12px;
        }
        .heat-head-toggle { cursor: pointer; user-select: none; }

        .heat-nav {
            display: flex;
            align-items: center;
            gap: 6px;
            font-size: 13px;
            font-weight: 700;
            color: var(--text-secondary);
        }

        .heat-btn {
            border: 1px solid var(--border-color);
            background: #fff;
            width: 22px; height: 22px;
            border-radius: 6px;
            cursor: pointer;
            color: var(--text-secondary);
            font-size: 14px;
            line-height: 1;
            display: flex; align-items: center; justify-content: center;
            transition: 0.15s;
        }
        .heat-btn:hover { background: var(--bg-color); color: var(--accent-blue); }

        .heat-weekdays, .heat-grid {
            display: grid;
            grid-template-columns: repeat(7, 1fr);
            gap: 5px;
        }

        .heat-weekdays {
            margin-bottom: 5px;
            font-size: 10px;
            color: var(--text-secondary);
            text-align: center;
        }

        .heat-cell {
            aspect-ratio: 1;
            border-radius: 5px;
            background: #eef1f5;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 10px;
            font-weight: 600;
            color: #94a3b8;
            cursor: pointer;
            transition: transform 0.12s, box-shadow 0.12s;
            position: relative;
            border: none;
            font-family: inherit;
            padding: 0;
        }

        .heat-cell.empty { background: transparent; cursor: default; }
        .heat-cell:not(.empty):hover { transform: scale(1.18); box-shadow: 0 2px 8px rgba(0,0,0,.18); z-index: 5; }

        .heat-cell.lv0 { background: #eef1f5; }
        .heat-cell.lv1 { background: #bbf7d0; color: #15803d; }
        .heat-cell.lv2 { background: #6ee7b7; color: #065f46; }
        .heat-cell.lv3 { background: #10b981; color: #fff; }
        .heat-cell.lv4 { background: #047857; color: #fff; }

        .heat-cell.today { box-shadow: 0 0 0 2px var(--gold); }
        .heat-cell.weekend { opacity: 0.55; }

        .heat-legend {
            display: flex;
            align-items: center;
            gap: 4px;
            margin-top: 12px;
            font-size: 10px;
            color: var(--text-secondary);
        }
        .heat-legend .heat-cell { width: 12px; height: 12px; aspect-ratio: auto; cursor: default; }
        .heat-tip { margin-left: auto; font-size: 11px; }

        .heat-summary {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 8px;
            margin-top: 14px;
            padding-top: 14px;
            border-top: 1px solid var(--border-color);
        }

        .heat-sum-item { text-align: center; }
        .heat-sum-num { font-size: 18px; font-weight: 800; color: var(--accent-green); }
        .heat-sum-label { font-size: 10px; color: var(--text-secondary); margin-top: 2px; }

        .heat-actions {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 8px;
            margin-top: 14px;
        }
        .heat-actions .btn-quick { width: 100%; }

        .catch-headline {
            display: flex;
            align-items: baseline;
            gap: 6px;
            margin-top: 6px;
        }

        .catch-count {
            font-size: 32px;
            font-weight: 800;
            color: var(--gold);
            line-height: 1;
        }

        .catch-unit { font-size: 14px; color: #92400e; font-weight: 600; }

        .catch-rank {
            margin-left: auto;
            font-size: 12px;
            font-weight: 700;
            color: #92400e;
            background: rgba(255,255,255,0.6);
            padding: 4px 12px;
            border-radius: 20px;
        }

        .fish-tank {
            display: flex;
            flex-wrap: wrap;
            gap: 6px;
            margin-top: 10px;
            min-height: 30px;
            align-items: center;
        }

        .fish-tank:empty::before {
            content: "鱼篓还是空的，去摸一会儿吧";
            font-size: 12px;
            color: #b45309;
            opacity: 0.7;
        }

        .fish {
            font-size: 21px;
            animation: fish-in 0.45s cubic-bezier(.2,1.4,.4,1) both;
        }

        .fish.swim { animation: fish-in 0.45s cubic-bezier(.2,1.4,.4,1) both, swim 3.4s ease-in-out infinite 0.5s; }

        @keyframes fish-in {
            from { opacity: 0; transform: scale(0.3) translateY(8px); }
            to   { opacity: 1; transform: scale(1) translateY(0); }
        }

        @keyframes swim {
            0%, 100% { transform: translateX(0) rotate(0deg); }
            50%      { transform: translateX(4px) rotate(-6deg); }
        }

        .catch-progress-text {
            font-size: 12px;
            color: #92400e;
            margin-top: 9px;
            line-height: 1.5;
        }

        .medal-row {
            display: flex;
            gap: 8px;
            margin-top: 8px;
            flex-wrap: wrap;
        }

        .medal {
            width: 38px;
            height: 38px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 18px;
            background: rgba(255,255,255,0.5);
            border: 2px dashed #fcd34d;
            filter: grayscale(1);
            opacity: 0.4;
            transition: all 0.3s ease;
            position: relative;
        }

        .medal.earned {
            filter: none;
            opacity: 1;
            border-style: solid;
            border-color: var(--gold);
            background: #fff;
            box-shadow: 0 3px 10px rgba(217,119,6,0.25);
        }

        .medal.earned.just-earned { animation: medal-pop 0.6s cubic-bezier(.2,1.5,.4,1) both; }

        @keyframes medal-pop {
            0%   { transform: scale(0.4) rotate(-25deg); }
            60%  { transform: scale(1.15) rotate(6deg); }
            100% { transform: scale(1) rotate(0deg); }
        }

        .rate-compare-inline {
            margin-top: 16px;
            padding-top: 16px;
            border-top: 1px dashed var(--border-color);
        }

        .rate-compare {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 8px;
            margin-top: 6px;
        }

        .rate-side { flex: 1; text-align: center; }

        .rate-label {
            font-size: 11px;
            color: var(--text-secondary);
            margin-bottom: 3px;
        }

        .rate-num { font-size: 21px; font-weight: 800; }
        .rate-num.nominal { color: var(--text-secondary); }
        .rate-num.real { color: var(--accent-green); }

        .rate-foot {
            font-size: 11px;
            color: var(--text-secondary);
            margin-top: 2px;
        }

        .rate-arrow {
            font-size: 17px;
            color: var(--accent-green);
            font-weight: 700;
            flex-shrink: 0;
        }

        .help-icon {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 15px;
            height: 15px;
            border-radius: 50%;
            background: #cbd5e1;
            color: #fff;
            font-size: 10px;
            font-weight: 700;
            cursor: help;
            margin-left: 4px;
            position: relative;
            vertical-align: middle;
            outline: none;
        }

        .help-icon:hover, .help-icon:focus { background: var(--accent-blue); }

        .help-tip {
            visibility: hidden;
            opacity: 0;
            position: fixed;
            width: 240px;
            max-width: calc(100vw - 24px);
            background: #1e293b;
            color: #f1f5f9;
            font-size: 11.5px;
            font-weight: 400;
            line-height: 1.6;
            letter-spacing: 0.2px;
            padding: 9px 11px;
            border-radius: 8px;
            box-shadow: 0 6px 20px rgba(0,0,0,0.22);
            transition: opacity 0.18s ease, visibility 0.18s ease;
            z-index: 9999;
            text-align: left;
            pointer-events: none;
            white-space: normal;
        }

        .help-icon:hover .help-tip,
        .help-icon:focus .help-tip { visibility: visible; opacity: 1; }

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

        .stat-card {
            background: #f8fafc;
            border: 1px solid var(--border-color);
            border-radius: 12px;
            padding: 14px 10px;
        }

        .stat-title { font-size: 11px; color: var(--text-secondary); margin-bottom: 6px; font-weight: 500; }
        .stat-value { font-size: 20px; font-weight: 700; color: var(--text-primary); }
        .stat-sub { font-size: 10px; color: var(--text-secondary); margin-top: 4px; }

        /* 摸鱼成就卡片群 */
        .achievement-card {
            background: linear-gradient(135deg, #fef3c7, #ecfdf5);
            border: 1px solid #fde68a;
            border-radius: 12px;
            padding: 16px;
            display: flex;
            flex-direction: column;
            gap: 12px;
        }

        .voyage-box {
            display: flex;
            justify-content: space-between;
            align-items: center;
            background: #f0f9ff;
            border-radius: 10px;
            padding: 10px 14px;
            margin: 6px 0;
        }
        .voyage-tier { font-size: 15px; font-weight: 700; color: #0369a1; }
        .voyage-miles { font-size: 20px; font-weight: 800; color: #0ea5e9; }

        .achievement-section-title {
            font-size: 11px;
            font-weight: 700;
            color: #92400e;
            text-transform: uppercase;
            letter-spacing: 1px;
        }

        .achievement-title {
            font-size: 13px;
            font-weight: 700;
            color: #b45309;
            display: flex;
            align-items: center;
            gap: 6px;
        }

        .achievement-desc {
            font-size: 12px;
            color: #78350f;
            margin-top: 2px;
            line-height: 1.4;
        }

        #milestone-banner {
            position: fixed;
            top: -80px;
            left: 50%;
            transform: translateX(-50%);
            background: #10b981;
            color: #ffffff;
            font-weight: 700;
            font-size: 15px;
            padding: 12px 24px;
            border-radius: 30px;
            box-shadow: 0 10px 25px rgba(16, 185, 129, 0.3);
            z-index: 100;
            transition: top 0.4s ease;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        #milestone-banner.show { top: 20px; }

        .modal-overlay {
            position: fixed;
            top: 0; left: 0; width: 100vw; height: 100vh;
            background: rgba(15, 23, 42, 0.4);
            backdrop-filter: blur(4px);
            z-index: 200;
            display: none;
            justify-content: center;
            align-items: center;
        }

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

        .modal {
            background: var(--card-bg);
            border-radius: 16px;
            padding: 24px;
            width: 90%;
            max-width: 460px;
            box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
            max-height: 90vh;
            overflow-y: auto;
        }

        .modal-title {
            font-size: 16px;
            font-weight: 700;
            margin-bottom: 16px;
            color: var(--text-primary);
        }

        .input-group {
            display: flex;
            flex-direction: column;
            gap: 6px;
            margin-bottom: 12px;
        }

        .input-group label { font-size: 12px; color: var(--text-secondary); font-weight: 500; }
        .input-group input,
        .input-group select {
            background: #f8fafc;
            border: 1px solid var(--border-color);
            border-radius: 8px;
            padding: 10px 12px;
            color: var(--text-primary);
            font-size: 14px;
            outline: none;
        }

        .input-group select { cursor: pointer; appearance: auto; }

        .input-row { display: flex; gap: 10px; }
        .input-row .input-group { flex: 1; }

        .checkbox-group {
            display: flex;
            align-items: center;
            gap: 8px;
            margin-bottom: 12px;
            font-size: 13px;
        }

        .checkbox-group input { cursor: pointer; }

        .btn-save {
            width: 100%;
            padding: 12px;
            background: var(--accent-blue);
            color: #ffffff;
            font-weight: 600;
            border: none;
            border-radius: 8px;
            cursor: pointer;
            margin-top: 10px;
        }

        .btn-save:hover { background: #2563eb; }

        .btn-settings-icon {
            background: #f1f5f9;
            border: none;
            color: var(--text-secondary);
            padding: 6px 12px;
            border-radius: 8px;
            cursor: pointer;
            font-size: 13px;
            font-weight: 500;
        }

        .btn-settings-icon:hover { color: var(--text-primary); background: #e2e8f0; }
