/* ============================================================
   GEO 文章管理系統 · 潮汐控制台主題 (Tide Console Theme)
   ------------------------------------------------------------
   · 覆蓋 TDesign CSS 變量實現全局換膚（品牌電光紫 #6C4BF4）
   · 框架級佈局類：.app-stage / .g-sidebar / .g-header / .g-content
   · 頁面範式類：.geo-page-head / .g-card / .geo-toolbar / .g-table
   · 看板專用：.dash-hero / .dash-kw-tags / .dash-shot-grid
   · 登錄頁專用：.login-stage / .login-hero / .login-panel
   引入順序：必須置於 tdesign.min.css 之後
   ============================================================ */
:root {
    /* 品牌色 */
    --geo-brand: #6C4BF4;
    --geo-brand-hover: #8267F7;
    --geo-brand-active: #5438D8;
    --geo-brand-light: #F0EDFE;
    --geo-brand-light-hover: #E4DEFC;
    --geo-grad: linear-gradient(135deg, #E8556D 0%, #8B5CF6 52%, #6C4BF4 100%);
    --geo-grad-soft: linear-gradient(135deg, rgba(232,85,109,.14), rgba(139,92,246,.18));
    /* 墨色（側欄/登錄品牌區） */
    --geo-ink: #14172B;
    --geo-ink-2: #1B1F3A;
    --geo-ink-3: #232850;
    /* 中性 */
    --geo-bg: #F6F7FB;
    --geo-text: #1B1F33;
    --geo-text-2: #6B7187;
    --geo-border: #E7E9F2;
    --geo-card: #FFFFFF;
    /* 圓角 */
    --geo-radius: 10px;
    --geo-radius-sm: 6px;
    /* 陰影 */
    --geo-shadow: 0 1px 2px rgba(23, 26, 61, .04), 0 4px 16px rgba(23, 26, 61, .06);
    --geo-shadow-pop: 0 8px 28px rgba(23, 26, 61, .12);

    /* ==== 覆蓋 TDesign 令牌，全局換膚 ==== */
    --td-brand-color: #6C4BF4;
    --td-brand-color-hover: #8267F7;
    --td-brand-color-active: #5438D8;
    --td-brand-color-disabled: #C3B8FA;
    --td-brand-color-light: #F0EDFE;
    --td-brand-color-light-hover: #E4DEFC;
    --td-brand-color-focus: #6C4BF4;
    --td-radius-medium: 6px;
    --td-radius-large: 8px;
    --td-radius-round: 999px;
    --td-comp-shadow-1: 0 1px 2px rgba(23,26,61,.04), 0 4px 16px rgba(23,26,61,.06);
    --td-comp-shadow-2: 0 8px 28px rgba(23,26,61,.12);
    --td-font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { height: 100%; }
body {
    font-family: var(--td-font-family);
    color: var(--geo-text);
    background: var(--geo-bg);
    -webkit-font-smoothing: antialiased;
}

/* ============ 登錄頁 ============ */
.login-stage { height: 100%; display: flex; background: var(--geo-ink); position: relative; overflow: hidden; }
/* 品牌左欄 */
.login-hero {
    flex: 1.15; position: relative; overflow: hidden;
    display: flex; flex-direction: column; justify-content: space-between;
    padding: 48px 56px; color: #fff;
    background: radial-gradient(1200px 600px at -10% -20%, rgba(139,92,246,.35), transparent 60%),
               radial-gradient(900px 500px at 110% 120%, rgba(232,85,109,.25), transparent 55%),
               var(--geo-ink);
}
.login-hero svg.tide { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 46%; opacity: .9; }
.login-hero .top { display: flex; align-items: center; gap: 12px; position: relative; z-index: 2; }
.login-hero .top .mark {
    width: 40px; height: 40px; border-radius: 11px; background: #fff; padding: 4px;
    display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 16px;
    box-shadow: 0 6px 20px rgba(124, 76, 244, .4);
}
.login-hero .top .corp b { display: block; font-size: 16px; font-weight: 700; letter-spacing: 2px; }
.login-hero .top .corp span { display: block; font-size: 11px; color: rgba(255,255,255,.45); letter-spacing: 4px; margin-top: 2px; }
.login-hero .mid { position: relative; z-index: 2; max-width: 480px; }
.login-hero .mid .kicker {
    display: inline-flex; align-items: center; gap: 8px; font-size: 12px; color: #C9C3FF;
    background: rgba(124,76,244,.14); border: 1px solid rgba(139,92,246,.35);
    padding: 6px 14px; border-radius: 999px; margin-bottom: 22px;
}
.login-hero .mid .kicker i { width: 6px; height: 6px; border-radius: 50%; background: #8B5CF6; box-shadow: 0 0 10px #8B5CF6; }
.login-hero .mid h1 { font-size: 40px; font-weight: 700; line-height: 1.25; letter-spacing: 1px; }
.login-hero .mid h1 em { font-style: normal; background: var(--geo-grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.login-hero .mid p { margin-top: 16px; font-size: 14px; color: rgba(255,255,255,.55); line-height: 1.9; }
.login-hero .stats { display: flex; gap: 14px; margin-top: 34px; }
.login-hero .stat {
    flex: 1; max-width: 150px; padding: 14px 16px; border-radius: 12px;
    background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); backdrop-filter: blur(6px);
}
.login-hero .stat b { display: block; font-size: 22px; font-weight: 700; }
.login-hero .stat b i { font-style: normal; font-size: 13px; color: rgba(255,255,255,.5); margin-left: 2px; }
.login-hero .stat span { display: block; font-size: 11px; color: rgba(255,255,255,.45); margin-top: 3px; }
.login-hero .foot { position: relative; z-index: 2; font-size: 11px; color: rgba(255,255,255,.3); letter-spacing: 1px; }
/* 表單右欄 */
.login-panel { width: 480px; flex-shrink: 0; background: #fff; display: flex; flex-direction: column; justify-content: center; padding: 60px 64px; position: relative; }
.login-panel .form-head .hi { font-size: 24px; font-weight: 700; }
.login-panel .form-head .sub { color: var(--geo-text-2); font-size: 13px; margin-top: 8px; margin-bottom: 34px; }
.login-panel .captcha-img {
    height: 32px; width: 104px; cursor: pointer; border-radius: 4px; object-fit: cover;
}
.login-panel .aux-row { display: flex; justify-content: space-between; align-items: center; margin: 4px 0 22px; }
.login-panel .btn-login {
    width: 100%; height: 44px; font-size: 15px; font-weight: 600; letter-spacing: 6px;
    border: none; color: #fff; cursor: pointer; border-radius: 999px;
    background: var(--geo-grad); background-size: 160% 100%; transition: all .25s;
    box-shadow: 0 8px 24px rgba(124,76,244,.32); font-family: inherit;
}
.login-panel .btn-login:hover { background-position: 100% 0; box-shadow: 0 10px 30px rgba(124,76,244,.45); transform: translateY(-1px); }
.login-panel .copyright { margin-top: 40px; text-align: center; color: #A6AABE; font-size: 11px; line-height: 2; }
.login-panel .copyright a { color: #A6AABE; text-decoration: none; }
.login-panel .copyright a:hover { text-decoration: underline; }
/* 小屏适配：窄屏隐藏品牌左栏 */
@media (max-width: 900px) {
    .login-hero { display: none; }
    .login-panel { width: 100%; }
}

/* ============ 應用框架 ============ */
.app-stage { height: 100%; display: flex; background: var(--geo-bg); overflow: hidden; }
.g-sidebar {
    width: 232px; flex-shrink: 0; background: var(--geo-ink); display: flex; flex-direction: column;
    transition: width .25s; position: relative; z-index: 10;
}
.g-sidebar.collapsed { width: 64px; }
.g-side-head { height: 60px; display: flex; align-items: center; gap: 10px; padding: 0 18px; flex-shrink: 0; overflow: hidden; }
.g-side-head .mark {
    width: 34px; height: 34px; border-radius: 9px; background: #fff; flex-shrink: 0; padding: 3px;
    display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; font-size: 14px;
    box-shadow: 0 4px 14px rgba(124,76,244,.4);
}
.g-side-head .tt { white-space: nowrap; }
.g-side-head .tt b { display: block; color: #fff; font-size: 14px; font-weight: 600; letter-spacing: .5px; }
.g-side-head .tt span { display: block; font-size: 10px; color: rgba(255,255,255,.35); letter-spacing: 2.5px; margin-top: 1px; }
.g-side-scroll { flex: 1; overflow-y: auto; overflow-x: hidden; padding: 6px 12px 12px; }
.g-sidebar.collapsed .g-side-scroll { padding-left: 8px; padding-right: 8px; }
.g-side-scroll::-webkit-scrollbar { width: 4px; }
.g-side-scroll::-webkit-scrollbar-thumb { background: rgba(255,255,255,.12); border-radius: 4px; }
.g-menu { border: none; background: transparent !important; }
/* 覆蓋 TDesign menu 深色主題 */
.g-menu.t-menu { --td-menu-color: rgba(255,255,255,.55); background: transparent; color: rgba(255,255,255,.55); }
.g-menu.t-menu .t-menu__item { color: rgba(255,255,255,.65); border-radius: 8px; margin: 2px 0; height: 40px; }
.g-menu.t-menu .t-menu__item:hover { background: rgba(255,255,255,.07); color: #fff; }
.g-menu.t-menu .t-menu__item.t-is-active {
    background: linear-gradient(90deg, rgba(124,76,244,.28), rgba(124,76,244,.14));
    color: #fff;
}
.g-menu.t-menu .t-menu__item.t-is-active .t-icon { color: #A78BFA; }
.g-menu.t-menu .t-submenu .t-submenu__title { color: rgba(255,255,255,.65); border-radius: 8px; }
.g-menu.t-menu .t-submenu .t-submenu__title:hover { background: rgba(255,255,255,.07); color: #fff; }
.g-menu.t-menu .t-menu__submenu .t-menu__item { padding-left: 44px !important; }
.g-menu.t-menu .t-submenu.t-is-opened .t-submenu__title { color: #fff; }
.g-side-foot { flex-shrink: 0; padding: 10px 12px; border-top: 1px solid rgba(255,255,255,.07); }
.g-side-user { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; cursor: pointer; transition: background .18s; overflow: hidden; }
.g-side-user:hover { background: rgba(255,255,255,.07); }
.g-side-user .ava {
    width: 34px; height: 34px; border-radius: 50%; flex-shrink: 0;
    background: var(--geo-grad); color: #fff; font-size: 13px; font-weight: 600;
    display: flex; align-items: center; justify-content: center;
}
.g-side-user .info { white-space: nowrap; }
.g-side-user .info b { display: block; color: #fff; font-size: 13px; font-weight: 600; }
.g-side-user .info span { display: block; font-size: 11px; color: rgba(255,255,255,.35); margin-top: 1px; }
.g-side-user .exit { margin-left: auto; color: rgba(255,255,255,.35); display: flex; }
.g-side-user:hover .exit { color: #FF8A9B; }
.g-sidebar.collapsed .g-side-user .info, .g-sidebar.collapsed .g-side-user .exit, .g-sidebar.collapsed .g-side-head .tt { display: none; }
.g-sidebar.collapsed .g-side-user { justify-content: center; }
/* 頂欄 */
.g-main { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.g-header {
    height: 56px; flex-shrink: 0; background: #fff; border-bottom: 1px solid var(--geo-border);
    display: flex; align-items: center; gap: 16px; padding: 0 24px;
}
.g-header .crumb { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--geo-text-2); }
.g-header .crumb b { color: var(--geo-text); font-weight: 600; }
.g-header .crumb .sep { color: #C6C9D9; }
.g-header .spacer { flex: 1; }
.g-header .hbtn {
    width: 34px; height: 34px; border-radius: 8px; border: none; background: transparent;
    color: #6B7187; cursor: pointer; display: flex; align-items: center; justify-content: center;
    transition: all .18s; position: relative; font-family: inherit;
}
.g-header .hbtn:hover { background: var(--geo-bg); color: var(--geo-brand); }
.g-header .hbtn .dot { position: absolute; top: 7px; right: 8px; width: 6px; height: 6px; border-radius: 50%; background: #E8556D; box-shadow: 0 0 0 2px #fff; }
.g-header .hdiv { width: 1px; height: 20px; background: var(--geo-border); }
.g-header .huser { display: flex; align-items: center; gap: 9px; padding: 5px 8px; border-radius: 10px; cursor: pointer; }
.g-header .huser:hover { background: var(--geo-bg); }
.g-header .huser .ava {
    width: 30px; height: 30px; border-radius: 50%; background: var(--geo-grad); color: #fff;
    font-size: 12px; font-weight: 600; display: flex; align-items: center; justify-content: center;
}
.g-header .huser span { font-size: 13px; font-weight: 500; }
.g-content { flex: 1; overflow-y: auto; padding: 20px 24px 28px; }
.g-content::-webkit-scrollbar { width: 8px; }
.g-content::-webkit-scrollbar-thumb { background: #D9DCE8; border-radius: 8px; border: 2px solid var(--geo-bg); }

/* 主內容默認/加載狀態 */
.default-content, .loading-content {
    min-height: 320px; display: flex; align-items: center; justify-content: center;
    flex-direction: column; color: #A6AABE; gap: 12px;
}

/* ============ 頁面通用結構 ============ */
.geo-page-head { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 18px; gap: 16px; flex-wrap: wrap; }
.geo-page-head .l h1 { font-size: 20px; font-weight: 700; letter-spacing: .3px; display: flex; align-items: center; gap: 10px; }
.geo-page-head .l h1 .count {
    font-size: 11px; font-weight: 600; color: var(--geo-brand);
    background: var(--geo-brand-light); border-radius: 999px; padding: 2px 10px;
}
.geo-page-head .l p { font-size: 12.5px; color: var(--geo-text-2); margin-top: 6px; }
.geo-page-head .r { display: flex; gap: 10px; }

/* 卡片 */
.g-card { background: var(--geo-card); border-radius: var(--geo-radius); box-shadow: var(--geo-shadow); border: 1px solid rgba(23,26,61,.04); }
.g-card .g-card-hd { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px 0; }
.g-card .g-card-hd .t { font-size: 15px; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.g-card .g-card-hd .t::before { content: ""; width: 3.5px; height: 14px; border-radius: 4px; background: var(--geo-grad); }
.g-card .g-card-hd .extra { font-size: 12px; color: var(--geo-text-2); display: flex; align-items: center; gap: 8px; }
.g-card .g-card-bd { padding: 16px 20px 20px; }

/* ============ 看板 ============ */
.dash-hero {
    position: relative; overflow: hidden; border-radius: 14px; color: #fff; padding: 26px 28px;
    background: radial-gradient(700px 320px at 88% -40%, rgba(232,85,109,.5), transparent 60%),
                radial-gradient(700px 360px at 55% 160%, rgba(108,75,244,.55), transparent 62%),
                var(--geo-ink);
    box-shadow: 0 12px 36px rgba(20,23,43,.35);
    margin-bottom: 16px;
}
.dash-hero::after {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background-image: radial-gradient(rgba(255,255,255,.08) 1px, transparent 1px);
    background-size: 22px 22px; opacity: .35;
}
.dash-hero .row1 { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; position: relative; z-index: 2; flex-wrap: wrap; }
.dash-hero .brandline { display: flex; align-items: center; gap: 10px; font-size: 13px; color: rgba(255,255,255,.75); margin-bottom: 10px; }
.dash-hero .brandline .mark { width: 22px; height: 22px; border-radius: 6px; background: #fff; padding: 2px; display: flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 700; }
.dash-hero h1 { font-size: 22px; font-weight: 700; letter-spacing: .5px; }
.dash-hero .desc { font-size: 12.5px; color: rgba(255,255,255,.5); margin-top: 6px; }
.dash-hero .filters { display: flex; gap: 10px; align-items: center; }
.dash-hero .kpis { display: flex; gap: 14px; margin-top: 24px; position: relative; z-index: 2; flex-wrap: wrap; }
.dash-hero .kpi {
    flex: 1; min-width: 170px; padding: 16px 18px; border-radius: 12px;
    background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1);
    display: flex; align-items: center; gap: 14px; backdrop-filter: blur(4px);
}
.dash-hero .kpi .ic {
    width: 42px; height: 42px; border-radius: 11px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, rgba(232,85,109,.9), rgba(139,92,246,.9));
    box-shadow: 0 6px 16px rgba(124,76,244,.35);
}
.dash-hero .kpi .ic.c2 { background: linear-gradient(135deg, #38BDF8, #6C4BF4); box-shadow: 0 6px 16px rgba(56,189,248,.3); }
.dash-hero .kpi .ic.c3 { background: linear-gradient(135deg, #34D399, #10B981); box-shadow: 0 6px 16px rgba(52,211,153,.3); }
.dash-hero .kpi .ic.c4 { background: linear-gradient(135deg, #FBBF24, #F59E0B); box-shadow: 0 6px 16px rgba(251,191,36,.3); }
.dash-hero .kpi .tx b { display: block; font-size: 24px; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: .5px; }
.dash-hero .kpi .tx b i { font-style: normal; font-size: 13px; color: rgba(255,255,255,.5); margin-left: 3px; }
.dash-hero .kpi .tx span { display: block; font-size: 11.5px; color: rgba(255,255,255,.5); margin-top: 3px; }
.dash-hero .kpi .up { color: #4ADE80 !important; }
.dash-kw-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.dash-kw-tags .kw {
    display: inline-flex; align-items: center; gap: 7px; padding: 7px 14px; border-radius: 999px;
    border: 1px solid var(--geo-border); background: #fff; font-size: 13px; cursor: pointer;
    transition: all .18s; color: var(--geo-text);
}
.dash-kw-tags .kw .rank { font-size: 11px; color: #A6AABE; font-family: ui-monospace, Consolas, monospace; font-weight: 700; }
.dash-kw-tags .kw:hover { border-color: var(--geo-brand-hover); color: var(--geo-brand); box-shadow: 0 2px 10px rgba(108,75,244,.12); }
.dash-kw-tags .kw.on {
    background: linear-gradient(135deg, #E8556D, #6C4BF4); color: #fff; border-color: transparent;
    box-shadow: 0 4px 14px rgba(124,76,244,.35);
}
.dash-kw-tags .kw.on .rank { color: rgba(255,255,255,.75); }
#trendChart { width: 100%; height: 300px; }
.dash-shot-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.dash-shot {
    border: 1px solid var(--geo-border); border-radius: 10px; overflow: hidden; background: #fff;
    transition: all .2s; cursor: pointer;
}
.dash-shot:hover { box-shadow: var(--geo-shadow-pop); transform: translateY(-2px); border-color: #D9D3FC; }
.dash-shot .ph {
    height: 128px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
    color: #fff; font-size: 12px;
    background: radial-gradient(400px 160px at 30% -20%, rgba(255,255,255,.25), transparent 55%), linear-gradient(135deg, #2A2E52, #171A38);
}
.dash-shot .ph .p-tag { font-size: 10px; padding: 2px 8px; border-radius: 999px; background: rgba(255,255,255,.16); letter-spacing: 1px; }
.dash-shot .ph.p2 { background: radial-gradient(400px 160px at 70% -20%, rgba(255,255,255,.22), transparent 55%), linear-gradient(135deg, #3B2A52, #1D1438); }
.dash-shot .ph.p3 { background: radial-gradient(400px 160px at 40% -20%, rgba(255,255,255,.24), transparent 55%), linear-gradient(135deg, #23365A, #101A38); }
.dash-shot .ph.p4 { background: radial-gradient(400px 160px at 60% -20%, rgba(255,255,255,.2), transparent 55%), linear-gradient(135deg, #46293F, #1F1028); }
.dash-shot .ft { display: flex; justify-content: space-between; align-items: center; padding: 9px 12px; font-size: 11px; color: var(--geo-text-2); }
.dash-shot .ft .link { color: var(--geo-brand); font-weight: 500; }

/* ============================================================
   列表全系統（表頭/表體/斑馬紋/懸停/選中/固定列/分頁/空數據）
   適用於全站所有 .t-table（含彈窗內表格）
   ============================================================ */
/* -- 外框：圓角細邊容器 -- */
.t-table__content { border-radius: 10px; border: 1px solid #ECEDF4; overflow: hidden; background: #fff; }
.t-table--bordered::after { display: none; }

/* -- 表頭：淺灰底、深灰粗體、去豎線 -- */
.t-table thead th {
    background: #F7F8FC !important;
    font-weight: 600 !important; font-size: 12.5px !important; color: #4B5068 !important;
    letter-spacing: .3px; white-space: nowrap;
    border-right: none !important;
    border-bottom: 1px solid #E9EBF3 !important;
}

/* -- 表體：細底線、去豎線 -- */
.t-table tbody td {
    font-size: 13.5px; color: #1B1F33;
    border-right: none !important;
    border-bottom: 1px solid #F1F2F7;
    transition: background-color .18s ease;
}
.t-table tbody tr:last-child td { border-bottom: none; }
.t-table--striped:not(.t-table--bordered) tbody td { border-bottom: 1px solid #F1F2F7; }
.t-table--striped:not(.t-table--bordered) tbody tr:last-child td { border-bottom: none; }

/* -- 行間隔色（斑馬紋，全表格統一生效）：先中和 TDesign stripe 的 tr 底色，再統一上色 -- */
.t-table--striped.t-table--header-fixed > .t-table__content > table > tbody tr:nth-of-type(2n),
.t-table--striped:not(.t-table--header-fixed) > .t-table__content > table > tbody > tr:nth-of-type(odd):not(.t-table__expanded-row) { background-color: transparent; }
.t-table tbody tr:nth-of-type(even) td { background: #FAFBFD; }

/* -- 懸停動效：淡紫底 + 平滑過渡 -- */
.t-table tbody tr { transition: background-color .18s ease; }
.t-table tbody tr:hover td { background: #F4F1FE !important; }

/* -- 選中（勾選行 / active 行）：品牌淺紫 + 左側品牌光條 -- */
.t-table__row--active td, .t-table__row--active-single td, .t-table__row--active-multiple td,
.t-table tbody tr:has(td .t-checkbox.t-is-checked) td { background: #EFEBFE !important; }
.t-table__row--active td:first-child, .t-table__row--active-single td:first-child,
.t-table__row--active-multiple td:first-child,
.t-table tbody tr:has(td .t-checkbox.t-is-checked) td:first-child { box-shadow: inset 3px 0 0 0 var(--geo-brand); }

/* -- 固定列：不透明底色同步行狀態 + 邊緣投影 -- */
.t-table td.t-table__cell--fixed-left, .t-table td.t-table__cell--fixed-right { background: #fff; }
.t-table thead th.t-table__cell--fixed-left, .t-table thead th.t-table__cell--fixed-right { background: #F7F8FC !important; }
.t-table tbody tr:nth-of-type(even) td.t-table__cell--fixed-left,
.t-table tbody tr:nth-of-type(even) td.t-table__cell--fixed-right { background: #FAFBFD; }
.t-table tbody tr:hover td.t-table__cell--fixed-left,
.t-table tbody tr:hover td.t-table__cell--fixed-right { background: #F4F1FE !important; }
.t-table__row--active td.t-table__cell--fixed-left, .t-table__row--active td.t-table__cell--fixed-right,
.t-table tbody tr:has(td .t-checkbox.t-is-checked) td.t-table__cell--fixed-left,
.t-table tbody tr:has(td .t-checkbox.t-is-checked) td.t-table__cell--fixed-right { background: #EFEBFE !important; }
td.t-table__cell--fixed-left-last { box-shadow: 8px 0 10px -8px rgba(23, 26, 61, .14); }
td.t-table__cell--fixed-right-first { box-shadow: -8px 0 10px -8px rgba(23, 26, 61, .14); }

/* -- 分頁區域 -- */
.t-pagination { margin-top: 16px; flex-wrap: wrap; row-gap: 8px; }
.t-pagination__total { font-size: 12.5px; color: #6B7187; }
.t-pagination__btn, .t-pagination__number {
    border-radius: 7px; border-color: #E7E9F2; background: #fff; color: #4B5068;
    transition: all .15s;
}
.t-pagination__btn:hover, .t-pagination__number:hover { color: var(--geo-brand); border-color: #C9BCFA; }
.t-pagination__number.t-is-current {
    background: var(--geo-brand) !important; border-color: var(--geo-brand) !important;
    color: #fff !important; font-weight: 600;
    box-shadow: 0 3px 10px rgba(108, 75, 244, .32);
}
.t-pagination__btn.t-is-disabled { background: #F7F8FA; border-color: #EDEEF2; color: #C1C6D6; }
.t-pagination__jump .t-input__inner { text-align: center; }

/* -- 空數據 -- */
.t-table__empty { padding: 52px 0 48px; }
.t-empty__image { font-size: 46px; color: #D4D8E7; }
.t-empty__title { font-size: 13px; color: #98A0B3; }

/* ============ 列表頁工具欄（查詢面板） ============ */
.geo-toolbar {
    display: flex; align-items: center; justify-content: space-between; gap: 14px;
    padding: 13px 16px; margin-bottom: 16px; flex-wrap: wrap;
    background: #F8F9FD; border: 1px solid #EEF0F6; border-radius: 10px;
}
.geo-toolbar .filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.geo-toolbar .ops { display: flex; gap: 10px; }

/* ============ 全局滾動條 ============ */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: #D9DCE8; border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: #C3C7D9; }
::-webkit-scrollbar-track { background: transparent; }


/* ================= 全局按钮流行化改造（胶囊圆角 + 渐变 + 柔和阴影 + 微动效） ================= */
.t-button {
    border-radius: 999px !important;
    font-weight: 500;
    letter-spacing: .3px;
    transition: transform .18s cubic-bezier(.34, 1.56, .64, 1), box-shadow .22s ease, background-color .22s ease, color .22s ease, border-color .22s ease, filter .22s ease;
}
.t-button:hover { transform: translateY(-1.5px); }
.t-button:active { transform: translateY(0); transition-duration: .06s; }

/* primary 实底：品牌渐变 + 悬浮光晕 */
.t-button--theme-primary.t-button--variant-base {
    background: linear-gradient(135deg, #8B5CF6 0%, #6C4BF4 60%, #5E3BE8 100%);
    border: none;
    color: #fff;
    box-shadow: 0 4px 12px rgba(108, 75, 244, .32), inset 0 1px 0 rgba(255, 255, 255, .18);
}
.t-button--theme-primary.t-button--variant-base:hover {
    background: linear-gradient(135deg, #9B73FF 0%, #7C5FFB 60%, #6C4BF4 100%);
    color: #fff;
    box-shadow: 0 7px 20px rgba(108, 75, 244, .42), inset 0 1px 0 rgba(255, 255, 255, .22);
}
.t-button--theme-primary.t-button--variant-base:active {
    background: linear-gradient(135deg, #7C5FFB 0%, #6C4BF4 60%, #5335D6 100%);
    box-shadow: 0 2px 8px rgba(108, 75, 244, .4);
}

/* danger / success / warning 实底渐变 */
.t-button--theme-danger.t-button--variant-base {
    background: linear-gradient(135deg, #FF6B81 0%, #F03E52 100%);
    border: none; color: #fff;
    box-shadow: 0 4px 12px rgba(240, 62, 82, .3);
}
.t-button--theme-danger.t-button--variant-base:hover { filter: brightness(1.06); box-shadow: 0 7px 20px rgba(240, 62, 82, .4); }
.t-button--theme-success.t-button--variant-base {
    background: linear-gradient(135deg, #3DD68C 0%, #17B26A 100%);
    border: none; color: #fff;
    box-shadow: 0 4px 12px rgba(23, 178, 106, .3);
}
.t-button--theme-success.t-button--variant-base:hover { filter: brightness(1.06); box-shadow: 0 7px 20px rgba(23, 178, 106, .4); }
.t-button--theme-warning.t-button--variant-base {
    background: linear-gradient(135deg, #FFB65C 0%, #F59E0B 100%);
    border: none; color: #fff;
    box-shadow: 0 4px 12px rgba(245, 158, 11, .3);
}
.t-button--theme-warning.t-button--variant-base:hover { filter: brightness(1.06); box-shadow: 0 7px 20px rgba(245, 158, 11, .4); }

/* default 实底：白底胶囊 + hover 品牌光晕 */
.t-button--theme-default.t-button--variant-base {
    background: #fff;
    border: 1px solid var(--td-border-level-2-color, #E7E7E7);
    box-shadow: 0 1px 3px rgba(29, 33, 41, .06);
}
.t-button--theme-default.t-button--variant-base:hover {
    color: var(--geo-brand, #6C4BF4);
    border-color: rgba(108, 75, 244, .45);
    background: #FBFAFF;
    box-shadow: 0 4px 14px rgba(108, 75, 244, .16);
}

/* outline / dashed：hover 淡填充 */
.t-button--variant-outline.t-button--theme-default:hover,
.t-button--variant-dashed.t-button--theme-default:hover {
    color: var(--geo-brand, #6C4BF4);
    border-color: rgba(108, 75, 244, .45);
    background: #F4F1FE;
    box-shadow: 0 4px 14px rgba(108, 75, 244, .12);
}
.t-button--variant-outline.t-button--theme-primary,
.t-button--variant-dashed.t-button--theme-primary { color: var(--geo-brand, #6C4BF4); border-color: rgba(108, 75, 244, .5); }
.t-button--variant-outline.t-button--theme-primary:hover,
.t-button--variant-dashed.t-button--theme-primary:hover { background: #F4F1FE; }
.t-button--variant-outline.t-button--theme-danger,
.t-button--variant-dashed.t-button--theme-danger { color: #F03E52; border-color: rgba(240, 62, 82, .5); }
.t-button--variant-outline.t-button--theme-danger:hover,
.t-button--variant-dashed.t-button--theme-danger:hover { background: #FFF1F3; }
.t-button--variant-outline.t-button--theme-success,
.t-button--variant-dashed.t-button--theme-success { color: #17B26A; border-color: rgba(23, 178, 106, .5); }
.t-button--variant-outline.t-button--theme-success:hover,
.t-button--variant-dashed.t-button--theme-success:hover { background: #EDFBF4; }
.t-button--variant-outline.t-button--theme-warning,
.t-button--variant-dashed.t-button--theme-warning { color: #F59E0B; border-color: rgba(245, 158, 11, .5); }
.t-button--variant-outline.t-button--theme-warning:hover,
.t-button--variant-dashed.t-button--theme-warning:hover { background: #FFF7EA; }

/* text 变体：hover 淡底 */
.t-button--variant-text:hover { background: rgba(108, 75, 244, .06); }
.t-button--variant-text.t-button--theme-primary { color: var(--geo-brand, #6C4BF4); }
.t-button--variant-text.t-button--theme-danger { color: #F03E52; }

/* 小尺寸按钮收敛阴影 */
.t-size-s.t-button--theme-primary.t-button--variant-base { box-shadow: 0 2px 8px rgba(108, 75, 244, .26); }
.t-size-s.t-button--theme-danger.t-button--variant-base { box-shadow: 0 2px 8px rgba(240, 62, 82, .24); }
.t-size-s.t-button--theme-success.t-button--variant-base { box-shadow: 0 2px 8px rgba(23, 178, 106, .24); }
.t-size-s.t-button--theme-warning.t-button--variant-base { box-shadow: 0 2px 8px rgba(245, 158, 11, .24); }

/* Element Plus 按钮同步流行化（ElMessageBox 等） */
.el-button {
    border-radius: 999px;
    font-weight: 500;
    transition: transform .18s cubic-bezier(.34, 1.56, .64, 1), box-shadow .22s ease, background-color .22s ease, color .22s ease, border-color .22s ease;
}
.el-button:hover { transform: translateY(-1.5px); }
.el-button:active { transform: translateY(0); }
.el-button--primary {
    background: linear-gradient(135deg, #8B5CF6 0%, #6C4BF4 60%, #5E3BE8 100%);
    border: none;
    box-shadow: 0 4px 12px rgba(108, 75, 244, .32);
}
.el-button--primary:hover, .el-button--primary:focus {
    background: linear-gradient(135deg, #9B73FF 0%, #7C5FFB 60%, #6C4BF4 100%);
    box-shadow: 0 7px 20px rgba(108, 75, 244, .42);
}
.el-button--default:hover, .el-button--default:focus {
    color: var(--geo-brand, #6C4BF4);
    border-color: rgba(108, 75, 244, .45);
    background: #F4F1FE;
}

/* ==================== GeoIcons 图标 ==================== */
img.mark { object-fit: contain; display: block; }
.geo-ic { display: inline-flex; align-items: center; justify-content: center; flex: none; }

/* 侧边菜单图标配色 */
.g-menu .geo-ic { color: rgba(255, 255, 255, .62); transition: color .2s, filter .2s; }
.g-menu .t-menu__item:hover .geo-ic,
.g-menu .t-submenu:hover .geo-ic { color: #fff; }
.g-menu .t-is-active .geo-ic,
.g-menu .t-is-opened .geo-ic { color: #A78BFA; filter: drop-shadow(0 0 6px rgba(139, 92, 246, .55)); }

/* ==================== 右上角用户下拉 ==================== */
.g-header .huser { position: relative; cursor: pointer; }
.huser-pop {
    position: absolute; top: calc(100% + 10px); right: 0; min-width: 168px;
    background: #fff; border-radius: 12px; border: 1px solid rgba(20, 23, 43, .06);
    box-shadow: 0 12px 32px rgba(20, 23, 43, .14); padding: 6px; z-index: 900;
    transform-origin: top right; animation: geoPopIn .18s ease both;
}
@keyframes geoPopIn { from { opacity: 0; transform: translateY(-6px) scale(.96); } to { opacity: 1; transform: none; } }
.huser-pop .pop-head { padding: 10px 12px 8px; border-bottom: 1px solid rgba(20, 23, 43, .06); margin-bottom: 4px; }
.huser-pop .pop-head b { display: block; font-size: 14px; color: var(--geo-ink, #14172B); }
.huser-pop .pop-head span { font-size: 12px; color: #9CA0B8; }
.huser-pop .pop-item {
    display: flex; align-items: center; gap: 8px; padding: 9px 12px;
    border-radius: 8px; font-size: 13px; color: var(--geo-ink, #14172B); cursor: pointer;
}
.huser-pop .pop-item:hover { background: #F4F1FE; color: var(--geo-brand, #6C4BF4); }
.huser-pop .pop-item.danger { color: #E8556D; }
.huser-pop .pop-item.danger:hover { background: #FEF1F3; color: #E8556D; }

/* ==================== 选择企业按钮 ==================== */
.geo-company-btn {
    display: inline-flex; align-items: center; gap: 8px; min-width: 220px; height: 32px;
    padding: 0 12px; background: #fff; border: 1px solid rgba(20, 23, 43, .14);
    border-radius: 8px; cursor: pointer; font-size: 13px; color: var(--geo-ink, #14172B);
    transition: border-color .2s, box-shadow .2s; vertical-align: middle;
}
.geo-company-btn:hover { border-color: rgba(108, 75, 244, .55); box-shadow: 0 0 0 3px rgba(108, 75, 244, .1); }
.geo-company-btn .ic { color: #8B5CF6; display: inline-flex; }
.geo-company-btn .val { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.geo-company-btn .ph { color: #9CA0B8; font-weight: 400; }
.geo-company-btn .caret { margin-left: auto; color: #9CA0B8; display: inline-flex; }
.geo-company-btn.on-dark {
    background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .22);
    color: #fff; backdrop-filter: blur(6px);
}
.geo-company-btn.on-dark:hover { border-color: rgba(255, 255, 255, .5); box-shadow: 0 0 0 3px rgba(255, 255, 255, .08); }
.geo-company-btn.on-dark .ic { color: #C4B5FD; }
.geo-company-btn.on-dark .ph { color: rgba(255, 255, 255, .6); }
.geo-company-btn.on-dark .caret { color: rgba(255, 255, 255, .6); }

/* ==================== 企业选择弹窗 ==================== */
.cp-overlay {
    position: fixed; inset: 0; z-index: 5200; display: none;
    align-items: flex-start; justify-content: center;
    background: rgba(20, 23, 43, .45); backdrop-filter: blur(2px);
}
.cp-overlay.show { display: flex; }
.cp-modal {
    margin-top: 10vh; width: 460px; max-width: calc(100vw - 32px); max-height: 76vh;
    background: #fff; border-radius: 14px; box-shadow: 0 24px 64px rgba(20, 23, 43, .24);
    display: flex; flex-direction: column; overflow: hidden; animation: cpPop .22s cubic-bezier(.34, 1.4, .64, 1) both;
}
@keyframes cpPop { from { opacity: 0; transform: translateY(14px) scale(.97); } to { opacity: 1; transform: none; } }
.cp-head { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid rgba(20, 23, 43, .06); }
.cp-head b { font-size: 15px; color: var(--geo-ink, #14172B); }
.cp-logo {
    width: 30px; height: 30px; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center;
    background: var(--geo-grad, linear-gradient(135deg, #E8556D, #8B5CF6, #6C4BF4)); color: #fff; flex: none;
}
.cp-logo svg { width: 16px; height: 16px; }
.cp-close { margin-left: auto; width: 28px; height: 28px; border: none; background: transparent; border-radius: 7px; color: #9CA0B8; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.cp-close:hover { background: #F4F1FE; color: var(--geo-brand, #6C4BF4); }
.cp-close svg { width: 15px; height: 15px; }
.cp-search { display: flex; align-items: center; gap: 8px; margin: 12px 16px 0; padding: 0 10px; height: 36px; border: 1px solid rgba(20, 23, 43, .14); border-radius: 9px; transition: border-color .2s, box-shadow .2s; }
.cp-search:focus-within { border-color: rgba(108, 75, 244, .6); box-shadow: 0 0 0 3px rgba(108, 75, 244, .12); }
.cp-search svg { width: 15px; height: 15px; color: #9CA0B8; flex: none; }
.cp-search input { flex: 1; height: 100%; border: none; outline: none; font-size: 13px; color: var(--geo-ink, #14172B); background: transparent; }
.cp-meta { padding: 8px 18px 0; font-size: 12px; color: #9CA0B8; }
.cp-list { flex: 1; overflow-y: auto; margin: 8px 8px 0; padding-bottom: 8px; }
.cp-list:focus { outline: none; }
.cp-row {
    display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 9px;
    cursor: pointer; user-select: none;
}
.cp-row:hover { background: #F4F1FE; }
.cp-row.active { background: #EDE8FE; }
.cp-ava {
    width: 30px; height: 30px; border-radius: 9px; flex: none; display: inline-flex; align-items: center; justify-content: center;
    background: var(--geo-grad, linear-gradient(135deg, #E8556D, #8B5CF6, #6C4BF4));
    color: #fff; font-size: 13px; font-weight: 700;
}
.cp-name { flex: 1; font-size: 13px; color: var(--geo-ink, #14172B); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cp-name .hl { color: var(--geo-brand, #6C4BF4); background: rgba(108, 75, 244, .12); border-radius: 3px; padding: 0 1px; font-weight: 700; }
.cp-check { width: 18px; height: 18px; flex: none; color: var(--geo-brand, #6C4BF4); opacity: 0; transform: scale(.5); transition: opacity .15s, transform .15s; }
.cp-row.selected .cp-check { opacity: 1; transform: scale(1); }
.cp-status { padding: 28px 0; text-align: center; font-size: 13px; color: #9CA0B8; }
.cp-status .cp-retry { margin-left: 8px; border: 1px solid rgba(108, 75, 244, .45); background: #fff; color: var(--geo-brand, #6C4BF4); border-radius: 6px; padding: 3px 12px; cursor: pointer; font-size: 12px; }
.cp-empty { padding: 40px 0; text-align: center; color: #9CA0B8; }
.cp-empty svg { width: 34px; height: 34px; margin-bottom: 8px; opacity: .5; }
.cp-empty p { font-size: 13px; }
.cp-foot { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-top: 1px solid rgba(20, 23, 43, .06); }
.cp-sel { font-size: 12px; color: #9CA0B8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 180px; }
.cp-clear { border: none; background: transparent; color: #9CA0B8; font-size: 12px; cursor: pointer; padding: 4px 0; }
.cp-clear:hover { color: #E8556D; }
.cp-btn { height: 30px; padding: 0 16px; border-radius: 8px; border: 1px solid rgba(20, 23, 43, .14); background: #fff; font-size: 13px; color: var(--geo-ink, #14172B); cursor: pointer; }
.cp-btn:hover { border-color: rgba(108, 75, 244, .45); color: var(--geo-brand, #6C4BF4); }
.cp-btn.primary { background: var(--geo-grad, linear-gradient(135deg, #E8556D, #8B5CF6, #6C4BF4)); border: none; color: #fff; }
.cp-btn.primary:hover { opacity: .9; color: #fff; }
