/* 存证管家 · 用户端 PC 统一框架样式
   设计规范：Arco Design System（尺寸 / 圆角 / 描边 / 字阶 / 中性色阶）
   主题色：品牌绿，按 Arco 色阶逻辑派生 10 档，全站单主题
   所有 /pc/*.html 共用 */

:root {
    /* 主色阶（Arco primary-1 ~ primary-10） */
    --primary-1: #E8F7F3; --primary-2: #C7EDE3; --primary-3: #A3E2D3; --primary-4: #7BD4C0;
    --primary-5: #50C4AC; --primary-6: #0FA98F; --primary-7: #0C8F79; --primary-8: #097563;
    --primary-9: #065C4D; --primary-10: #03443A;

    /* 中性色阶（Arco neutral / text） */
    --text-1: #14161A; --text-2: #4B5563; --text-3: #8A93A0; --text-4: #C9CDD4;
    --border-1: #E4E7EC; --border-2: #C9CDD4; --border-3: #86909C;
    --fill-1: #F4F5F7; --fill-2: #EDF0F4; --fill-3: #E4E7EC;
    --bg-page: #F2F3F6;

    /* 主题深色侧栏（青绿深调渐变底 + 主题色胶囊选中 + 彩色线性图标） */
    --sidebar-bg: #0B4A3E; --sidebar-bg-2: #05302A; --sidebar-bg-elev: rgba(255, 255, 255, .07);
    --sidebar-line: rgba(255, 255, 255, .10);
    --sidebar-text: rgba(228, 246, 240, .90); --sidebar-text-strong: #FFFFFF; --sidebar-text-dim: rgba(196, 231, 221, .68);
    --sidebar-hover: rgba(255, 255, 255, .09);
    --sidebar-ico: #C4CFCC; --sidebar-ico-hover: #E8F1EE;
    --sidebar-active-bg: linear-gradient(135deg, #12B096 0%, #097561 100%); --sidebar-active: #FFFFFF;
    /* 菜单字体：微软雅黑 */
    --font-menu: "Microsoft YaHei", "微软雅黑", "PingFang SC", "Hiragino Sans GB", "Helvetica Neue", Arial, sans-serif;

    /* 语义色（Arco success / warning / danger / link） */
    --success: #00B42A; --success-bg: #E8FFEA;
    --warning: #FF7D00; --warning-bg: #FFF7E8;
    --danger: #F53F3F; --danger-bg: #FFECE8;
    --info: #165DFF; --info-bg: #E8F3FF;

    /* 圆角（Arco radius-small / medium / large） */
    --radius-sm: 2px; --radius-md: 4px; --radius-lg: 8px;

    /* 兼容旧变量名，供页面内联样式继续引用 */
    --brand: #0FA98F; --brand-2: #0FA98F; --brand-deep: #0C8F79; --brand-dark: #14161A;
    --ink: var(--text-1); --ink-2: var(--text-2); --sub: var(--text-3); --muted: var(--text-3);
    --line: var(--border-1); --line-2: var(--fill-2); --soft: var(--fill-1); --bg: var(--bg-page);
    --orange: #FF7D00; --blue: #165DFF; --purple: #722ED1;
    --shadow: 0 1px 2px rgba(0, 0, 0, .03);
    --shadow-lg: 0 4px 16px rgba(0, 0, 0, .1);
    /* 无边框卡片：靠极浅投影 + 页面底色区分层次 */
    --shadow-card: 0 1px 2px rgba(16, 24, 40, .04);
    --shadow-card-hover: 0 4px 14px rgba(16, 24, 40, .08);
    --card-radius: 8px;
    --r: 4px;
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { min-height: 100%; }
body {
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "微软雅黑", "Segoe UI", Arial, sans-serif;
    background: var(--bg-page); color: var(--text-1);
    -webkit-font-smoothing: antialiased; font-size: 14px; line-height: 1.5715;
}
button, input, select, textarea { font-family: inherit; font-size: inherit; }
button { cursor: pointer; }
input[type="radio"], input[type="checkbox"] { accent-color: var(--primary-6); cursor: pointer; }
a { text-decoration: none; color: inherit; }
svg { display: block; }
.hidden { display: none !important; }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: #D9DCE3; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--border-2); }
::-webkit-scrollbar-track { background: transparent; }

/* ===== 布局骨架 ===== */
.app { display: flex; min-height: 100vh; }
.main-wrap { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.content { width: 100%; max-width: 1600px; margin: 0 auto 0 0; padding: 12px 14px 18px; flex: 1; display: flex; flex-direction: column; }
.scrim { display: none; position: fixed; inset: 0; background: rgba(0, 0, 0, .45); z-index: 55; }
.scrim.show { display: block; }

/* ===== 侧边栏（主题青绿深色底 + 彩色线性图标 + 主题色胶囊选中） ===== */
.sidebar {
    position: sticky; top: 0; z-index: 60; height: 100vh; width: 208px; flex: none;
    display: flex; flex-direction: column;
    background:
        radial-gradient(120% 52% at 2% 0%, rgba(31, 215, 180, .18) 0%, rgba(31, 215, 180, 0) 62%),
        linear-gradient(178deg, var(--sidebar-bg) 0%, var(--sidebar-bg-2) 100%);
    border-right: 1px solid rgba(255, 255, 255, .07);
    box-shadow: 2px 0 22px rgba(3, 30, 25, .26);
    transition: width .2s ease, transform .2s ease;
}
.sb-head { height: 60px; flex: none; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 0 16px; border-bottom: 1px solid var(--sidebar-line); }
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.brand .logo {
    display: grid; width: 32px; height: 32px; flex: none; place-items: center;
    background: #fff; border-radius: 8px; overflow: hidden; color: #fff;
}
.brand .logo svg { width: 18px; height: 18px; }
.brand .logo .brand-owl { width: 100%; height: 100%; }
.brand .logo img { width: 100%; height: 100%; object-fit: contain; display: block; background: #fff; }

/* 动态品牌猫头鹰（侧边栏小尺寸，幅度克制的循环动画） */
.brand-owl .owl-anim { transform-box: fill-box; transform-origin: center 70%; animation: owl-breathe 2.8s ease-in-out infinite; }
.brand-owl .owl-eyes { transform-box: fill-box; transform-origin: center; animation: owl-blink 3.4s ease-in-out infinite; }
.brand-owl .owl-wing-l { transform-box: fill-box; transform-origin: right 80%; animation: owl-wingL 2.8s ease-in-out infinite; }
.brand-owl .owl-wing-r { transform-box: fill-box; transform-origin: left 80%; animation: owl-wingR 2.8s ease-in-out infinite; }
.brand-owl .owl-contract { transform-box: fill-box; transform-origin: center top; animation: owl-contract 2.8s ease-in-out infinite; }
@keyframes owl-breathe { 0%,100% { transform: scale(1); } 50% { transform: scale(1.04); } }
@keyframes owl-blink { 0%,90%,100% { transform: scaleY(1); } 94% { transform: scaleY(.08); } }
@keyframes owl-wingL { 0%,100% { transform: rotate(-5deg); } 50% { transform: rotate(7deg); } }
@keyframes owl-wingR { 0%,100% { transform: rotate(5deg); } 50% { transform: rotate(-7deg); } }
@keyframes owl-contract { 0%,100% { transform: rotate(-3deg) translateY(0); } 50% { transform: rotate(3deg) translateY(-2px); } }
.brand .txt { min-width: 0; }
.brand .name { font-family: var(--font-menu); font-size: 15px; font-weight: 700; letter-spacing: .01em; white-space: nowrap; color: var(--sidebar-text-strong); }
.brand .sub { margin-top: 1px; font-size: 10px; font-weight: 500; letter-spacing: .06em; color: var(--sidebar-text-dim); white-space: nowrap; }
.collapse-btn { display: grid; width: 24px; height: 24px; flex: none; place-items: center; border: none; border-radius: var(--radius-sm); background: transparent; color: var(--sidebar-text-dim); }
.collapse-btn:hover { background: var(--sidebar-hover); color: var(--sidebar-text-strong); }
.collapse-btn svg { width: 14px; height: 14px; transition: transform .2s; }
.sidebar.collapsed { width: 64px; }
.sidebar.collapsed .collapse-btn svg { transform: rotate(180deg); }
.sidebar.collapsed .brand .txt, .sidebar.collapsed .sb-user, .sidebar.collapsed .sb-foot,
.sidebar.collapsed .group-title, .sidebar.collapsed .nav-label, .sidebar.collapsed .nav-badge,
.sidebar.collapsed .nav-new, .sidebar.collapsed .group-arrow { display: none; }
.sidebar.collapsed .sb-head { padding: 0 16px; }
.sidebar.collapsed .nav-item { justify-content: center; margin: 2px 8px; padding: 0; }
.sidebar.collapsed .nav-item .nav-ico { margin: 0; }
.sidebar.collapsed .sb-nav { padding: 8px 0; }
.sb-nav { flex: 1; overflow-y: auto; padding: 6px 0; }
.sb-nav::-webkit-scrollbar { width: 6px; }
.sb-nav::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .16); }
.sb-nav::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, .28); }
.nav-group { margin-bottom: 2px; }
.group-title {
    display: flex; align-items: center; justify-content: space-between; padding: 4px 16px 2px;
    font-family: var(--font-menu); font-size: 12px; font-weight: 700; letter-spacing: .04em;
    color: var(--sidebar-text-dim); line-height: 1.2; cursor: pointer; user-select: none;
}
.group-title:hover { color: var(--sidebar-text); }
.group-arrow { width: 12px; height: 12px; opacity: .65; transition: transform .2s; }
.nav-group.closed .group-arrow { transform: rotate(-90deg); }
.nav-group.closed .nav-list { display: none; }
.nav-item {
    display: flex; align-items: center; gap: 11px; height: 34px; margin: 1px 8px; padding: 0 12px;
    border-radius: 8px; color: var(--sidebar-text);
    font-family: var(--font-menu); font-size: 13.5px; font-weight: 700; letter-spacing: .01em;
    transition: background .15s, color .15s; position: relative;
}
.nav-item:hover { background: var(--sidebar-hover); color: var(--sidebar-text-strong); }
/* 选中态：不用整条色块，仅文字/图标变亮主题色 */
.nav-item.active {
    background: transparent; color: #3BE8C5;
    text-shadow: 0 0 12px rgba(59, 232, 197, .30);
}
/* 线性图标：统一浅灰细线，仅靠描边表达 */
.nav-ico {
    width: 19px; height: 19px; flex: none; display: grid; place-items: center;
    color: var(--sidebar-ico);
    transition: color .15s ease, transform .15s ease;
}
.nav-ico .ni-svg { width: 19px; height: 19px; stroke-width: 1.55; overflow: visible; }
.nav-item:hover .nav-ico { color: var(--sidebar-ico-hover); transform: translateY(-1px); }
.nav-item.active .nav-ico { color: #3BE8C5; filter: drop-shadow(0 0 5px rgba(59, 232, 197, .35)); }
.nav-label { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav-badge {
    flex: none; min-width: 16px; height: 16px; padding: 0 5px; border-radius: 8px;
    background: var(--danger); color: #fff; font-size: 12px; line-height: 16px;
    font-weight: 400; display: grid; place-items: center; transform: scale(.92);
}
/* 新功能标记：菜单项右侧的绿色小胶囊 */
.nav-new {
    flex: none; height: 15px; padding: 0 5px; border-radius: 4px;
    background: #16C2A3; color: #03302A;
    font-size: 10px; line-height: 15px; font-weight: 700; letter-spacing: .02em;
}
.nav-item:hover .nav-new { background: #2BD7B8; }
.nav-item.active .nav-new { background: rgba(255, 255, 255, .92); color: #0A6555; }
.nav-item.active .nav-badge { background: #FFFFFF; color: #D92D20; }
.sb-user {
    flex: none; display: block; margin: 8px; padding: 12px; border-radius: 10px;
    background: var(--sidebar-bg-elev); border: 1px solid var(--sidebar-line);
    transition: background .15s, border-color .15s;
}
.sb-user:hover { background: rgba(255, 255, 255, .12); border-color: rgba(94, 234, 212, .34); }
.sb-user.active { border-color: rgba(45, 212, 191, .52); background: rgba(255, 255, 255, .12); }
.sb-user.active .nm { color: #5EEAD4; }
.sb-user:hover .sb-go { color: var(--sidebar-active); transform: rotate(-90deg) translateX(2px); }
.sb-id { flex: 1; min-width: 0; }
.sb-go { width: 13px; height: 13px; flex: none; color: var(--sidebar-text-dim); transform: rotate(-90deg); transition: color .15s, transform .15s; }
.sb-user .row { display: flex; align-items: center; gap: 9px; }
.sb-user .av {
    width: 32px; height: 32px; flex: none; border-radius: 50%; display: grid; place-items: center;
    background: rgba(255, 255, 255, .16); color: #EAFBF6; font-weight: 700; font-size: 13px; overflow: hidden;
}
.sb-user .av img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; display: block; }
.sb-user .nm { font-family: var(--font-menu); font-size: 13px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--sidebar-text-strong); }
.sb-user .ph { margin-top: 2px; font-size: 12px; color: var(--sidebar-text-dim); }
.sb-user .quota { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--sidebar-line); display: flex; justify-content: space-between; font-size: 12px; color: var(--sidebar-text-dim); }
.sb-user .quota b { color: #5EEAD4; font-weight: 700; }
.sb-foot { flex: none; padding: 10px 16px 14px; border-top: 1px solid var(--sidebar-line); font-size: 12px; color: var(--sidebar-text-dim); display: flex; justify-content: space-between; gap: 8px; }
.sb-beian { color: var(--sidebar-text-dim); text-decoration: none; font-size: 11px; }
.sb-beian:hover { color: var(--sidebar-text-2, var(--sidebar-text-dim)); }

/* ===== 顶栏（Arco Layout Header 60px） ===== */
.topbar {
    position: sticky; top: 0; z-index: 40; height: 60px; flex: none;
    display: flex; align-items: center; padding: 0;
    background: #fff; border-bottom: 1px solid var(--border-1);
}
/* 与 .content 同宽同内边距，保证欢迎语与内容卡片左对齐 */
.topbar-inner {
    width: 100%; max-width: 1600px; margin: 0 auto 0 0; height: 100%;
    display: flex; align-items: center; gap: 12px; padding: 0 14px;
}
.hamburger { display: none; width: 32px; height: 32px; place-items: center; border: 1px solid var(--border-1); border-radius: var(--radius-sm); background: #fff; }
/* 顶栏左侧欢迎语：深绿色 */
.top-hi { font-size: 13.5px; color: var(--primary-9); white-space: nowrap; flex: none; max-width: 320px; overflow: hidden; text-overflow: ellipsis; }
.top-hi b { font-weight: 700; color: var(--primary-10); }
.top-spacer { flex: 1; }
/* 顶栏「我的好友」入口（搜索框左侧）：浅绿底卡片 + 投影 + 主色文字 */
.top-link {
    display: inline-flex; align-items: center; gap: 6px; flex: none;
    height: 32px; padding: 0 11px; border-radius: 6px;
    font-size: 14px; font-weight: 700; color: var(--primary-7); white-space: nowrap;
    background: var(--primary-1); border: 1px solid rgba(15, 169, 143, .14);
    box-shadow: 0 1px 2px rgba(6, 92, 77, .10), 0 2px 8px rgba(15, 169, 143, .12);
    transition: background .15s, color .15s, box-shadow .15s, border-color .15s;
}
.top-link svg { width: 17px; height: 17px; color: var(--primary-6); transition: color .15s; }
.top-link:hover {
    background: var(--primary-2); color: var(--primary-8); border-color: rgba(15, 169, 143, .34);
    box-shadow: 0 2px 4px rgba(6, 92, 77, .13), 0 4px 12px rgba(15, 169, 143, .18);
}
.top-link:hover svg { color: var(--primary-8); }
.top-link.active {
    background: var(--primary-2); color: var(--primary-8); font-weight: 700;
    border-color: rgba(15, 169, 143, .38);
    box-shadow: inset 0 0 0 1px rgba(15, 169, 143, .18), 0 1px 3px rgba(6, 92, 77, .10);
}
.top-link.active svg { color: var(--primary-8); }
/* 好友申请数徽标：白圈改成与浅绿底同色，避免出现白边 */
.top-link .top-badge { box-shadow: 0 0 0 2px var(--primary-1); }
.top-link:hover .top-badge, .top-link.active .top-badge { box-shadow: 0 0 0 2px var(--primary-2); }
.dot-num {
    min-width: 16px; height: 16px; margin-left: 5px; padding: 0 5px; border-radius: 8px;
    background: var(--danger); color: #fff; font-size: 11px; line-height: 16px; font-weight: 500;
    display: inline-grid; place-items: center;
}
.top-badge {
    margin-left: 5px; height: 16px; min-width: 16px; padding: 0 5px; border-radius: 8px;
    font-size: 11px; line-height: 16px; font-weight: 500; box-shadow: 0 0 0 2px #fff;
}
.search-box { position: relative; width: 250px; flex: none; }
.search-box input {
    width: 100%; height: 34px; padding: 0 16px 0 34px; border: 1px solid transparent;
    border-radius: 17px; background: var(--fill-2); outline: none; cursor: pointer;
    color: var(--text-1); font-size: 13.5px; transition: .15s;
}
.search-box input::placeholder { color: var(--text-3); }
.search-box input:hover { background: var(--fill-3); }
.search-box input:focus { background: #fff; border-color: var(--primary-6); box-shadow: 0 0 0 3px var(--primary-1); cursor: pointer; }
.search-box .ico { position: absolute; left: 11px; top: 9px; width: 16px; height: 16px; color: var(--text-3); pointer-events: none; }
.icon-btn {
    position: relative; width: 32px; height: 32px; flex: none; display: grid; place-items: center;
    border: none; border-radius: var(--radius-sm); background: transparent; color: var(--text-2);
}
.icon-btn:hover { background: var(--fill-2); color: var(--text-1); }
.icon-btn svg { width: 17px; height: 17px; }
.icon-btn .dot {
    position: absolute; top: 2px; right: 2px; min-width: 15px; height: 15px; padding: 0 4px;
    border-radius: 8px; background: var(--danger); color: #fff; font-size: 11px; line-height: 15px;
    font-weight: 400; display: grid; place-items: center; transform: scale(.9);
    border: 1px solid #fff;
}
.top-user {
    display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 8px 0 4px;
    border: 1px solid transparent; border-radius: var(--radius-sm); background: transparent;
}
.top-user:hover { background: var(--fill-2); }
.top-user .av {
    width: 26px; height: 26px; flex: none; border-radius: 50%; display: grid; place-items: center;
    background: var(--primary-1); color: var(--primary-7); font-size: 12px; font-weight: 500;
    overflow: hidden;
}
.top-user .av img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; display: block; }
.top-user .nm { font-size: 14px; color: var(--text-1); max-width: 96px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dropdown { position: relative; }
.drop-menu {
    position: absolute; right: 0; top: 40px; min-width: 168px; padding: 4px;
    border: 1px solid var(--border-1); border-radius: var(--radius-md); background: #fff;
    box-shadow: var(--shadow-lg); display: none; z-index: 90;
}
.drop-menu.show { display: block; }
.drop-menu a, .drop-menu button {
    display: flex; align-items: center; gap: 8px; width: 100%; height: 34px; padding: 0 10px;
    border: none; border-radius: var(--radius-sm); background: transparent;
    color: var(--text-2); font-size: 14px; text-align: left;
}
.drop-menu a:hover, .drop-menu button:hover { background: var(--fill-2); color: var(--text-1); }

/* ===== 全局搜索弹层 ===== */
.search-modal { position: fixed; inset: 0; z-index: 200; background: rgba(4, 40, 33, .42); backdrop-filter: blur(2px); display: none; align-items: flex-start; justify-content: center; padding-top: 12vh; }
.search-modal.show { display: flex; }
.search-panel {
    width: min(640px, 92vw); border-radius: 16px; background: #fff; overflow: hidden;
    border: 1px solid rgba(16, 24, 40, .05);
    box-shadow: 0 24px 64px rgba(4, 41, 35, .28), 0 4px 16px rgba(16, 24, 40, .08);
    animation: spIn .18s ease;
}
@keyframes spIn { from { opacity: 0; transform: translateY(-12px) scale(.98); } to { opacity: 1; transform: none; } }

.search-panel .sp-head { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--border-1); }
.sp-ico {
    width: 36px; height: 36px; flex: none; border-radius: 10px; display: grid; place-items: center;
    background: var(--primary-1); color: var(--primary-7);
}
.sp-ico svg { width: 18px; height: 18px; }
.search-panel .sp-head input { flex: 1; border: none; outline: none; font-size: 15px; background: transparent; color: var(--text-1); }
.search-panel .sp-head input::placeholder { color: var(--text-3); }
.sp-esc { flex: none; height: 24px; padding: 0 10px; border: 1px solid var(--border-1); border-radius: 6px; background: var(--fill-1); color: var(--text-3); font-size: 11px; font-weight: 500; line-height: 22px; cursor: pointer; transition: .12s; }
.sp-esc:hover { background: var(--fill-2); color: var(--text-2); }

.sp-body { max-height: 400px; overflow-y: auto; padding: 8px; }
.sp-group { padding: 12px 12px 6px; font-size: 11.5px; font-weight: 600; letter-spacing: .04em; color: var(--text-3); }
.sp-item { display: flex; align-items: center; gap: 12px; min-height: 46px; padding: 6px 10px; border-radius: 10px; font-size: 14px; color: var(--text-1); transition: background .12s; }
.sp-item:hover { background: var(--primary-1); }
.sp-item .sp-ic {
    width: 34px; height: 34px; flex: none; border-radius: 9px; display: grid; place-items: center;
    background: #fff; color: var(--primary-7);
    box-shadow: inset 0 0 0 1px rgba(16, 24, 40, .07), 0 1px 2px rgba(16, 24, 40, .05);
}
.sp-item .sp-ic.c-blue { color: #2A61D6; }
.sp-item .sp-ic.c-amber { color: #C07515; }
.sp-item .sp-ic svg { width: 17px; height: 17px; }
.sp-item .sp-main { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sp-tag { flex: none; height: 22px; padding: 0 9px; border-radius: 6px; background: var(--fill-2); color: var(--text-3); font-size: 11.5px; line-height: 22px; white-space: nowrap; }
.sp-item:hover .sp-tag { background: #fff; color: var(--primary-7); }

.sp-empty { padding: 34px 0 30px; text-align: center; }
.sp-empty .e-ico { width: 46px; height: 46px; margin: 0 auto 12px; border-radius: 12px; display: grid; place-items: center; background: var(--primary-1); color: var(--primary-7); }
.sp-empty .e-ico svg { width: 22px; height: 22px; }
.sp-empty .e-t { font-size: 13.5px; font-weight: 500; color: var(--text-2); }
.sp-empty .e-s { margin-top: 4px; font-size: 12px; color: var(--text-3); }

.sp-foot { padding: 10px 18px; border-top: 1px solid var(--border-1); font-size: 12px; color: var(--text-3); display: flex; gap: 18px; align-items: center; }
.sp-foot kbd {
    font-family: inherit; font-size: 11px; color: var(--text-2);
    border: 1px solid var(--border-1); border-bottom-width: 2px; border-radius: 5px;
    padding: 1px 6px; background: #fff; margin-right: 5px;
}

/* ===== 页头（简约：仅保留标题与副标题，无右侧操作区） ===== */
.page-head { margin-bottom: 14px; }
/* 无页头的页面（如工作台）顶部留一点呼吸空间 */
.content.no-head { padding-top: 16px; }
/* 页面固定标题：统一加粗 + 主题色 */
.page-title { font-size: 20px; font-weight: 700; color: var(--primary-7); letter-spacing: 0; }
.page-sub { margin-top: 4px; font-size: 13px; color: var(--text-3); }

/* ===== 卡片（Arco Card：1px 描边、4px 圆角、无阴影） ===== */
/* 卡片：纯白无边框，仅靠浅投影与页面底色分层 */
.card { background: #fff; border: none; border-radius: var(--card-radius); box-shadow: var(--shadow-card); }
.card-pad { padding: 16px 20px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 20px; height: 50px; }
/* 卡片 / 区块固定标题：与页面标题同一主题色，字重收一档避免小字发糊 */
.card-title { font-size: 14px; font-weight: 600; color: var(--primary-7); display: flex; align-items: center; gap: 8px; }
.card-title .bar { width: 3px; height: 14px; border-radius: 1px; background: var(--primary-6); }
/* 标题后的说明文字（当前显示 N 项等）保持中性灰，不跟随标题染绿 */
.card-title .muted,
.card-title .sub,
.card-title .sub-text,
.card-title small { color: var(--text-3); font-weight: 400; }
.card-more { font-size: 13px; color: var(--primary-7); font-weight: 400; }
.card-more:hover { color: var(--primary-8); }
.card-body { padding: 20px; }
.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.g6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.split { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 16px; align-items: start; }
.split-sm { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 16px; align-items: start; }
/* 网格子项默认 min-width:auto 会被宽表格撑破，改为可收缩，让 .table-wrap 内部横向滚动 */
.split > *, .split-sm > * { min-width: 0; }
.row { display: flex; align-items: center; gap: 10px; }
.row-wrap { flex-wrap: wrap; }
.spacer { flex: 1; }

/* ===== 按钮（Arco Button：32px 高、2px 圆角、纯色无渐变） ===== */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    height: 32px; padding: 0 15px; border: 1px solid var(--border-1);
    border-radius: var(--radius-sm); background: #fff; color: var(--text-2);
    font-size: 14px; font-weight: 400; white-space: nowrap;
    transition: background .15s, border-color .15s, color .15s;
}
.btn:hover { border-color: var(--border-2); color: var(--text-1); background: var(--fill-1); }
.btn:active { background: var(--fill-2); }
.btn svg { width: 14px; height: 14px; }
.btn-primary { background: var(--primary-6); border-color: var(--primary-6); color: #fff; }
.btn-primary:hover { background: var(--primary-5); border-color: var(--primary-5); color: #fff; }
.btn-primary:active { background: var(--primary-7); border-color: var(--primary-7); }
.btn-soft { background: var(--primary-1); border-color: transparent; color: var(--primary-7); }
.btn-soft:hover { background: var(--primary-2); border-color: transparent; color: var(--primary-8); }
.btn-danger { background: var(--danger-bg); border-color: transparent; color: var(--danger); }
.btn-danger:hover { background: #FFE3DD; border-color: transparent; color: #CB272D; }
.btn-sm { height: 28px; padding: 0 11px; font-size: 13px; }
.btn-lg { height: 38px; padding: 0 20px; font-size: 15px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .5; pointer-events: none; }
.link { color: var(--primary-7); font-weight: 400; cursor: pointer; }
.link:hover { color: var(--primary-5); }

/* ===== 标签（Arco Tag：2px 圆角、小号） ===== */
.tag {
    display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 8px;
    border-radius: var(--radius-sm); font-size: 12px; font-weight: 400; white-space: nowrap;
}
.tag-ok { background: var(--success-bg); color: #009A29; }
.tag-warn { background: var(--warning-bg); color: #D25F00; }
.tag-info { background: var(--info-bg); color: #165DFF; }
.tag-danger { background: var(--danger-bg); color: #CB272D; }
.tag-muted { background: var(--fill-2); color: var(--text-3); }
.tag-brand { background: var(--primary-1); color: var(--primary-7); }

/* ===== 头像 ===== */
.avatar {
    width: 36px; height: 36px; flex: none; border-radius: 50%; display: grid; place-items: center;
    background: var(--primary-1); color: var(--primary-7); font-weight: 500; font-size: 14px;
    overflow: hidden; border: 1px solid var(--primary-2);
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar.sm { width: 28px; height: 28px; font-size: 12px; }
.avatar.lg { width: 64px; height: 64px; font-size: 22px; }

/* ===== 指标卡（扁平化着色 + 语义彩色图标） ===== */
/* 色调令牌：浅色底 + 同色系饱和图标色，无边框无阴影 */
.st-green  { --st-bg:#E9F8F2; --st-bg-h:#DCF3EA; --st-ink:#0B8C6A; }
.st-blue   { --st-bg:#EAF1FE; --st-bg-h:#DBE8FD; --st-ink:#2A61D6; }
.st-amber  { --st-bg:#FFF4E5; --st-bg-h:#FDE9CE; --st-ink:#C07515; }
.st-violet { --st-bg:#F2EEFD; --st-bg-h:#E7DFFC; --st-ink:#6B49D6; }
.st-cyan   { --st-bg:#E8F6FA; --st-bg-h:#D5EDF5; --st-ink:#0E7891; }
.st-rose   { --st-bg:#FDEDF1; --st-bg-h:#FADCE5; --st-ink:#C13A63; }
.st-slate  { --st-bg:#F1F3F7; --st-bg-h:#E7EAF1; --st-ink:#5A6473; }

.stat {
    background: var(--st-bg, var(--fill-1)); border: none; border-radius: 10px;
    padding: 15px 17px; display: flex; align-items: center; gap: 13px;
    box-shadow: none; transition: background .15s ease, transform .15s ease;
}
a.stat:hover { background: var(--st-bg-h, var(--fill-2)); }
a.stat:active { transform: scale(.996); }
.stat .ico {
    width: 40px; height: 40px; flex: none; border-radius: 10px; display: grid; place-items: center;
    background: rgba(255, 255, 255, .78); color: var(--st-ink, var(--primary-7));
}
.stat .ico svg { width: 20px; height: 20px; }
.stat .lbl { font-size: 12.5px; font-weight: 500; color: var(--st-ink, var(--text-3)); }
.stat .num { margin-top: 2px; font-size: 24px; font-weight: 600; color: var(--text-1); font-variant-numeric: tabular-nums; line-height: 1.3; }
.stat .num small { font-size: 13px; font-weight: 400; color: var(--text-3); margin-left: 4px; }
/* 可点击统计卡（带右侧行动提示） */
.stat.is-link { cursor: pointer; }
.stat .stat-go { margin-left: auto; display: inline-flex; align-items: center; gap: 2px; font-size: 12px; color: var(--st-ink, var(--primary-7)); opacity: .85; }
.stat.is-link:hover .stat-go { opacity: 1; }
.stat .stat-go svg { width: 11px; height: 11px; }

/* ===== 空态 ===== */
.empty { padding: 48px 20px; text-align: center; color: var(--text-3); }
.empty .eico { width: 56px; height: 56px; margin: 0 auto 12px; border-radius: 50%; display: grid; place-items: center; background: var(--fill-2); color: var(--text-4); }
.empty .eico svg { width: 26px; height: 26px; }
.empty .etitle { font-size: 14px; font-weight: 400; color: var(--text-2); }
.empty .edesc { margin-top: 4px; font-size: 13px; color: var(--text-3); }
.empty .ebtn { margin-top: 16px; display: flex; justify-content: center; gap: 8px; }

/* ===== 表格（Arco Table：表头浅灰底、行高 48px、横向细线） ===== */
.table-wrap { width: 100%; overflow-x: auto; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
table.tbl th {
    padding: 0 16px; height: 44px; text-align: left; font-weight: 500; font-size: 13px;
    color: var(--text-3); background: var(--fill-1); border-bottom: 1px solid var(--border-1);
    white-space: nowrap;
}
table.tbl td { padding: 12px 16px; border-bottom: 1px solid var(--border-1); color: var(--text-2); vertical-align: middle; }
table.tbl tr:last-child td { border-bottom: none; }
table.tbl tbody tr:hover { background: var(--fill-1); }
table.tbl td .strong { font-weight: 500; color: var(--text-1); }
table.tbl td .sub { font-size: 12px; color: var(--text-3); margin-top: 2px; }
table.tbl td.num { font-variant-numeric: tabular-nums; font-weight: 500; color: var(--text-1); }
.tbl-ops { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.tbl-ops .link { font-size: 14px; }

/* ===== 表单（Arco Input：32px 高、2px 圆角） ===== */
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 20px; }
.form-row.one { grid-template-columns: 1fr; }
.form-row.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 14px; font-weight: 400; color: var(--text-2); }
.field label .req { color: var(--danger); margin-left: 2px; }
.field .hint { font-size: 12px; color: var(--text-3); }
.field .err { font-size: 12px; color: var(--danger); min-height: 0; }
.input, .select, .textarea {
    width: 100%; min-height: 32px; padding: 5px 11px; border: 1px solid var(--border-1);
    border-radius: var(--radius-sm); background: #fff; color: var(--text-1);
    outline: none; font-size: 14px; transition: border-color .15s, box-shadow .15s;
}
.input:hover, .select:hover, .textarea:hover { border-color: var(--border-2); }
.input:focus, .select:focus, .textarea:focus { border-color: var(--primary-6); box-shadow: 0 0 0 3px var(--primary-1); }
.input::placeholder, .textarea::placeholder { color: var(--text-4); }
.textarea { min-height: 88px; resize: vertical; line-height: 1.5715; }
.input[readonly] { background: var(--fill-1); color: var(--text-3); }
.input[readonly]:focus { box-shadow: none; border-color: var(--border-1); }
.input-prefix { display: flex; align-items: center; gap: 0; }
.input-prefix .pre {
    padding: 0 11px; min-height: 32px; display: grid; place-items: center;
    border: 1px solid var(--border-1); border-right: none; border-radius: var(--radius-sm) 0 0 var(--radius-sm);
    background: var(--fill-1); color: var(--text-3); font-size: 14px;
}
.input-prefix .input { border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.seg { display: inline-flex; padding: 2px; border-radius: var(--radius-sm); background: var(--fill-2); gap: 2px; }
.seg button {
    min-width: 72px; height: 28px; border: none; border-radius: var(--radius-sm);
    background: transparent; color: var(--text-2); font-size: 13px; font-weight: 400;
}
.seg button:hover { color: var(--text-1); }
.seg button.on { background: #fff; color: var(--primary-7); font-weight: 500; box-shadow: 0 1px 2px rgba(0, 0, 0, .06); }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
    height: 30px; padding: 0 12px; border: 1px solid var(--border-1); border-radius: var(--radius-sm);
    background: #fff; color: var(--text-2); font-size: 13px; font-weight: 400;
}
.chip:hover { border-color: var(--border-2); color: var(--text-1); }
.chip.on { background: var(--primary-1); border-color: var(--primary-2); color: var(--primary-7); font-weight: 500; }
.check-line { display: flex; align-items: flex-start; gap: 8px; font-size: 13px; color: var(--text-2); line-height: 1.5715; }
.check-line input { margin-top: 3px; accent-color: var(--primary-6); }

/* ===== Tabs（Arco Tabs：下划线型） ===== */
.tabs { display: flex; gap: 24px; border-bottom: 1px solid var(--border-1); margin-bottom: 16px; }
.tabs button {
    padding: 10px 0; border: none; background: transparent; color: var(--text-2);
    font-size: 14px; font-weight: 400; border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.tabs button:hover { color: var(--primary-6); }
.tabs button.on { color: var(--primary-7); border-bottom-color: var(--primary-6); font-weight: 500; }

/* ===== 列表条目 ===== */
.list-item { display: flex; align-items: center; gap: 12px; padding: 13px 20px; border-bottom: 1px solid var(--border-1); }
.list-item:last-child { border-bottom: none; }
.list-item:hover { background: var(--fill-1); }
.li-main { flex: 1; min-width: 0; }
.li-title { font-size: 14px; font-weight: 400; color: var(--text-1); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.li-sub { margin-top: 2px; font-size: 12px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.li-right { flex: none; text-align: right; }

/* ===== 进度条（Arco Progress：细轨道、方角） ===== */
.progress { height: 6px; border-radius: 2px; background: var(--fill-3); overflow: hidden; }
.progress > i { display: block; height: 100%; border-radius: 2px; background: var(--primary-6); transition: width .3s; }

/* ===== 时间线 ===== */
.timeline { padding-left: 2px; }
.tl-item { display: flex; gap: 12px; padding-bottom: 18px; position: relative; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before { content: ''; position: absolute; left: 4px; top: 16px; bottom: -2px; width: 1px; background: var(--border-1); }
.tl-item:last-child::before { display: none; }
.tl-dot { width: 9px; height: 9px; flex: none; margin-top: 5px; border-radius: 50%; background: var(--primary-6); z-index: 1; }
.tl-item.muted .tl-dot { background: var(--border-2); }
.tl-title { font-size: 14px; font-weight: 400; color: var(--text-1); }
.tl-time { font-size: 12px; color: var(--text-3); margin-left: 8px; font-weight: 400; }
.tl-desc { margin-top: 2px; font-size: 13px; color: var(--text-3); }

/* ===== 弹层（Arco Modal：4px 圆角、标题 16px 500） ===== */
.modal-mask { position: fixed; inset: 0; z-index: 180; background: rgba(0, 0, 0, .45); display: none; align-items: center; justify-content: center; padding: 20px; }
.modal-mask.show { display: flex; }
.modal { width: min(520px, 96vw); max-height: 86vh; display: flex; flex-direction: column; border-radius: var(--radius-lg); background: #fff; box-shadow: var(--shadow-lg); overflow: hidden; }
.modal.wide { width: min(760px, 96vw); }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--border-1); }
.modal-head h3 { font-size: 16px; font-weight: 600; color: var(--primary-7); }
.modal-close {
    width: 26px; height: 26px; border: none; border-radius: var(--radius-sm); background: transparent;
    color: var(--text-3); font-size: 18px; line-height: 1; display: grid; place-items: center;
}
.modal-close:hover { background: var(--fill-2); color: var(--text-1); }
.modal-body { padding: 20px; overflow-y: auto; }
.modal-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 12px 20px; border-top: 1px solid var(--border-1); background: #fff; }

/* ===== Toast（Arco Message：白底卡片、顶部居中） ===== */
#pc-toast {
    position: fixed; left: 50%; top: 20px; transform: translateX(-50%) translateY(-8px); z-index: 300;
    min-width: 200px; max-width: 80vw; padding: 10px 16px 10px 14px;
    border: 1px solid var(--border-1); border-left: 3px solid var(--primary-6);
    border-radius: var(--radius-md); background: #fff; color: var(--text-1);
    font-size: 14px; font-weight: 400; line-height: 1.5; box-shadow: var(--shadow-lg);
    opacity: 0; pointer-events: none; transition: opacity .18s, transform .18s; text-align: left;
}
#pc-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
#pc-toast.ok { border-left-color: var(--success); }
#pc-toast.err { border-left-color: var(--danger); }
#pc-toast.warn { border-left-color: var(--warning); }

/* ===== 加载遮罩 ===== */
#pc-loading { position: fixed; inset: 0; z-index: 290; background: rgba(255, 255, 255, .6); display: none; place-items: center; }
#pc-loading.show { display: grid; }
.spinner { width: 28px; height: 28px; border: 2px solid var(--primary-2); border-top-color: var(--primary-6); border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.skeleton { height: 14px; border-radius: var(--radius-sm); background: var(--fill-2); position: relative; overflow: hidden; }
.skeleton::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .7), transparent); animation: sk 1.4s infinite; }
@keyframes sk { from { transform: translateX(-100%); } to { transform: translateX(100%); } }

/* ===== 提示条（Arco Alert：浅底 + 描边） ===== */
.alert { display: flex; gap: 10px; padding: 11px 14px; border-radius: var(--radius-md); font-size: 13px; line-height: 1.5715; border: 1px solid transparent; }
.alert-warn { background: var(--warning-bg); border-color: #FFE4BA; color: #9F5200; }
.alert-info { background: var(--primary-1); border-color: var(--primary-2); color: var(--primary-8); }
.alert-ok { background: var(--success-bg); border-color: #BBF7C2; color: #007A1F; }
.alert-danger { background: var(--danger-bg); border-color: #FFD2C8; color: #B32A26; }

/* ===== 欢迎条 ===== */
.banner { position: relative; overflow: hidden; border-radius: var(--radius-md); padding: 22px 24px; color: #fff; background: var(--primary-9); }
.banner h2 { font-size: 18px; font-weight: 500; }
.banner p { margin-top: 6px; font-size: 13px; opacity: .8; }
.banner .b-actions { margin-top: 16px; display: flex; gap: 8px; position: relative; z-index: 1; }
.banner .btn { background: transparent; border-color: rgba(255, 255, 255, .3); color: #fff; }
.banner .btn:hover { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .5); color: #fff; }
.banner .btn-white { background: #fff; color: var(--primary-8); border-color: #fff; }
.banner .btn-white:hover { background: var(--primary-1); color: var(--primary-8); border-color: var(--primary-1); }

/* ===== 快速发起 ===== */
.quick-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.quick-item {
    display: flex; align-items: center; gap: 12px; padding: 14px 16px;
    border: none; border-radius: var(--card-radius); background: var(--fill-1);
    transition: background .15s;
}
.quick-item:hover { background: var(--primary-1); }
.quick-item .qi { width: 38px; height: 38px; flex: none; border-radius: var(--radius-md); display: grid; place-items: center; }
.quick-item .qi svg { width: 19px; height: 19px; }
.quick-item .qt { font-size: 14px; font-weight: 500; color: var(--text-1); }
.quick-item .qd { margin-top: 2px; font-size: 12px; color: var(--text-3); }

/* ===== 服务宫格 ===== */
.svc-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.svc-item {
    display: flex; align-items: center; gap: 10px; padding: 11px 12px;
    border: none; border-radius: 6px; background: var(--fill-1);
    transition: background .15s;
}
.svc-item:hover { background: var(--primary-1); }
.svc-item .si { width: 32px; height: 32px; flex: none; border-radius: var(--radius-md); display: grid; place-items: center; }
.svc-item .si svg { width: 17px; height: 17px; }
.svc-item .sn { font-size: 14px; font-weight: 400; color: var(--text-1); }
.svc-item .sd { margin-top: 1px; font-size: 12px; color: var(--text-3); }

/* ===== 页脚 / 键值对 ===== */
.page-foot {
    margin-top: auto; display: flex; align-items: center; justify-content: space-between;
    gap: 12px; flex-wrap: wrap; padding: 24px 2px 6px; font-size: 12px; color: var(--text-3);
}
.kv { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border-1); font-size: 14px; }
.kv:last-child { border-bottom: none; }
.kv .k { color: var(--text-3); }
.kv .v { font-weight: 400; color: var(--text-1); text-align: right; word-break: break-all; }
.money { font-variant-numeric: tabular-nums; font-weight: 500; color: var(--text-1); }
.money.big { font-size: 20px; }
.muted { color: var(--text-3); }
.sub-text { color: var(--text-3); }
.danger-text { color: var(--danger); }
.brand-text { color: var(--primary-7); }
.nowrap { white-space: nowrap; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.divider { height: 1px; background: var(--border-1); margin: 16px 0; }

/* ===== 分页（Arco Pagination：方形按钮） ===== */
.pager { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 20px; border-top: 1px solid var(--border-1); font-size: 13px; color: var(--text-3); flex-wrap: wrap; }
.pager .pg-btns { display: flex; gap: 4px; }
.pager .pg-btns button {
    min-width: 30px; height: 30px; padding: 0 8px; border: 1px solid var(--border-1);
    border-radius: var(--radius-sm); background: #fff; font-size: 13px; color: var(--text-2);
}
.pager .pg-btns button:hover { border-color: var(--primary-6); color: var(--primary-6); }
.pager .pg-btns button.on { background: var(--primary-6); border-color: var(--primary-6); color: #fff; }
.pager .pg-btns button[disabled] { opacity: .4; pointer-events: none; }

/* ===== 详情页 ===== */
.detail-hero { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.detail-hero .dh-main { flex: 1; min-width: 220px; }
.detail-hero .dh-amount { font-size: 28px; font-weight: 500; letter-spacing: 0; font-variant-numeric: tabular-nums; }
.detail-hero .dh-amount small { font-size: 15px; font-weight: 400; margin-right: 2px; }
.party-card { padding: 14px 16px; border: none; border-radius: 6px; background: var(--fill-1); }
.party-card .role { font-size: 12px; color: var(--text-3); }
.party-card .pname { margin-top: 4px; font-size: 15px; font-weight: 500; color: var(--text-1); }
.party-card .pmeta { margin-top: 2px; font-size: 13px; color: var(--text-3); }

/* ===== 聊天（AI 助手） ===== */
.chat-wrap { display: flex; flex-direction: column; height: min(62vh, 620px); }
.chat-body { flex: 1; overflow-y: auto; padding: 20px; background: #fff; }
.chat-msg { display: flex; gap: 10px; margin-bottom: 18px; }
.chat-msg .bubble {
    max-width: 76%; padding: 10px 14px; border-radius: var(--radius-md); font-size: 14px;
    line-height: 1.5715; white-space: pre-wrap; word-break: break-word;
}
.chat-msg.bot .bubble { background: var(--fill-1); border: 1px solid var(--border-1); color: var(--text-1); }
.chat-msg.me { flex-direction: row-reverse; }
.chat-msg.me .bubble { background: var(--primary-6); color: #fff; }
.chat-msg .cav {
    width: 30px; height: 30px; flex: none; border-radius: var(--radius-md); display: grid;
    place-items: center; color: #fff; font-size: 12px; font-weight: 500; background: var(--primary-6);
}
.chat-msg.me .cav { background: var(--fill-2); color: var(--text-2); }
.chat-input { display: flex; gap: 8px; padding: 12px 16px; border-top: 1px solid var(--border-1); background: #fff; align-items: flex-end; }
.chat-input textarea {
    flex: 1; min-height: 36px; max-height: 110px; padding: 8px 11px;
    border: 1px solid var(--border-1); border-radius: var(--radius-sm); resize: none; outline: none; font-size: 14px;
}
.chat-input textarea:focus { border-color: var(--primary-6); box-shadow: 0 0 0 3px var(--primary-1); }
.chat-quick { display: flex; gap: 8px; flex-wrap: wrap; padding: 12px 16px 0; background: #fff; }
.chat-quick button {
    height: 28px; padding: 0 12px; border: 1px solid var(--border-1); border-radius: var(--radius-sm);
    background: #fff; font-size: 13px; color: var(--text-2);
}
.chat-quick button:hover { border-color: var(--primary-6); color: var(--primary-6); }

/* ===== 签名画布 ===== */
.sign-canvas { width: 100%; height: 220px; border: 1px dashed var(--border-2); border-radius: var(--radius-md); background: #fff; touch-action: none; cursor: crosshair; display: block; }
.sign-tools { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.color-dot { width: 24px; height: 24px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--border-1); }
.color-dot.on { box-shadow: 0 0 0 2px var(--primary-6); }

/* ===== 签署弹窗：手写签名板 ===== */
.sign-summary {
    display: flex; flex-wrap: wrap; gap: 10px 22px;
    padding: 12px 14px; margin-bottom: 12px;
    background: var(--fill-1); border-radius: 10px;
}
.sign-summary .k { display: block; font-size: 12px; color: var(--text-3); margin-bottom: 2px; }
.sign-summary b { font-size: 14px; font-weight: 600; color: var(--text-1); }
.sign-board { position: relative; }
.sign-pad {
    display: block; width: 100%; height: 210px;
    background: #fff; border: 1.5px dashed var(--border-2); border-radius: 10px;
    touch-action: none; cursor: crosshair;
}
.sign-ph {
    position: absolute; inset: 0; display: grid; place-items: center;
    font-size: 13px; color: var(--text-4); pointer-events: none; user-select: none;
}
/* 签署进度：签名微缩图（固定尺寸，点击可放大） */
.sign-row { display: flex; align-items: center; gap: 9px; padding: 7px 0; min-width: 0; }
.sign-row > svg { flex: none; }
.sign-row .sign-lb { white-space: nowrap; }
.sign-row .tag { flex: none; }
.sign-thumb-btn {
    flex: none; display: block; line-height: 0; margin-left: 2px; padding: 0;
    background: none; border: 0; border-radius: 6px; cursor: zoom-in;
}
.sign-thumb {
    display: block; width: 104px; height: 36px; box-sizing: border-box;
    padding: 2px 5px; object-fit: contain;
    background: #fff; border: 1px solid var(--border-1); border-radius: 6px;
    transition: border-color .15s, box-shadow .15s;
}
.sign-thumb-btn:hover .sign-thumb { border-color: var(--primary-6); box-shadow: 0 0 0 2px var(--primary-1); }
.sign-thumb-btn:focus-visible { outline: none; }
.sign-thumb-btn:focus-visible .sign-thumb { border-color: var(--primary-6); box-shadow: 0 0 0 2px var(--primary-1); }
/* 签名放大预览 */
.sign-zoom { display: grid; place-items: center; padding: 12px; background: var(--fill-1); border-radius: 10px; }
.sign-zoom img {
    display: block; max-width: 100%; max-height: 300px; object-fit: contain;
    box-sizing: content-box; padding: 12px 16px; background: #fff;
    border: 1px solid var(--border-1); border-radius: 8px;
}
.sign-zoom-cap { margin-top: 10px; font-size: 12px; color: var(--text-3); text-align: center; }
/* 已有手写签名预览（签署确认弹窗） */
.sign-preview {
    border: 1px solid var(--border-1); border-radius: 10px;
    background: #fff; padding: 14px 16px 12px;
}
.sign-preview .sp-title { font-size: 12px; color: var(--text-3); margin-bottom: 8px; }
.sign-preview .sp-img {
    height: 132px; display: grid; place-items: center;
    background: #fff; border-radius: 8px; overflow: hidden;
    box-shadow: inset 0 0 0 1px var(--border-1);
}
.sign-preview .sp-img img { max-width: 100%; max-height: 116px; object-fit: contain; }
.sign-preview .sp-tip { margin-top: 10px; font-size: 12px; color: var(--text-3); text-align: center; }

/* ===== 二维码 ===== */
.qr-box { width: 216px; height: 216px; margin: 0 auto; padding: 12px; border: 1px solid var(--border-1); border-radius: var(--radius-md); background: #fff; position: relative; }
.qr-box img, .qr-box canvas { width: 100%; height: 100%; display: block; }
.qr-logo {
    position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
    width: 36px; height: 36px; border-radius: var(--radius-md); background: var(--primary-6);
    color: #fff; display: grid; place-items: center; font-size: 16px; font-weight: 500;
    border: 3px solid #fff;
}

/* ===== 响应式 ===== */
@media (max-width: 1240px) {
    .split, .split-sm { grid-template-columns: 1fr; }
    .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .g6 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1080px) {
    .sidebar { width: 64px; }
    .sidebar .brand .txt, .sidebar .sb-user, .sidebar .sb-foot, .sidebar .group-title,
    .sidebar .nav-label, .sidebar .nav-badge, .sidebar .nav-new, .sidebar .group-arrow { display: none; }
    .sidebar .nav-item { justify-content: center; padding: 0; margin: 2px 8px; }
    .sidebar .nav-item .nav-ico { margin: 0; }
    .sidebar .sb-head { padding: 0 16px; }
    .sidebar .collapse-btn { display: none; }
    .content { padding: 10px 14px 16px; }
    .topbar-inner { padding: 0 14px; }
}
@media (max-width: 900px) {
    .sidebar { position: fixed; left: 0; top: 0; width: 224px; transform: translateX(-100%); transition: transform .2s ease; }
    .sidebar.open { transform: translateX(0); box-shadow: var(--shadow-lg); }
    .sidebar .brand .txt, .sidebar .nav-label, .sidebar .nav-badge, .sidebar .nav-new, .sidebar .group-arrow { display: initial; }
    .sidebar .sb-user, .sidebar .sb-foot { display: block; }
    .sidebar .group-title { display: flex; }
    .sidebar .nav-item { justify-content: flex-start; margin: 1px 8px; padding: 0 12px; }
    .sidebar .collapse-btn { display: none; }
    .sidebar .sb-head { padding: 0 16px; }
    .hamburger { display: grid; }
    .top-hi { display: none; }
    .search-box { width: 180px; }
}
@media (max-width: 680px) {
    .content { padding: 10px 10px 16px; }
    .content.no-head { padding-top: 12px; }
    .topbar-inner { padding: 0 12px; gap: 8px; }
    .search-box { display: none; }
    .form-row, .form-row.three, .g2, .g3 { grid-template-columns: 1fr; }
    .g4, .g6, .quick-grid, .svc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .stat { padding: 12px 14px; gap: 10px; }
    .stat .ico { width: 34px; height: 34px; }
    .stat .num { font-size: 20px; }
    table.tbl { min-width: 1000px; }
    .page-title { font-size: 18px; }
    .top-user .nm { display: none; }
    .top-link .tl-text { display: none; }
    .top-link { padding: 0 8px; }
    table.tbl th, table.tbl td { padding: 10px 12px; }
    .card-head { padding: 0 14px; }
    .card-body { padding: 16px 14px; }
}
