/* ============================================================
   账单管理系统 · 全局样式
   风格：简洁 · 大气 · 专业（深海军蓝 + 金点缀）
   ============================================================ */
:root {
    --navy: #16283c;
    --navy-2: #1d3a5f;
    --navy-3: #2a4a75;
    --gold: #c8a24a;
    --gold-soft: #e8d9b0;
    --bg: #f2f4f7;
    --card: #ffffff;
    --ink: #22303f;
    --ink-2: #5a6b7c;
    --ink-3: #93a1b0;
    --line: #e4e9ef;
    --danger: #d64545;
    --ok: #2e9e5b;
    --radius: 14px;
    --shadow: 0 6px 24px rgba(22, 40, 60, .08);
    --shadow-lift: 0 14px 34px rgba(22, 40, 60, .14);
    --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
            "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--ink);
    font-size: 15px;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a { color: var(--navy-3); text-decoration: none; }
a:hover { opacity: .85; }

img { max-width: 100%; display: block; }

/* ---------- 顶栏 ---------- */
.site-header {
    background: linear-gradient(130deg, #131f30 0%, var(--navy-2) 60%, #24507f 100%);
    color: #fff;
    padding: 22px 0 20px;
    position: relative;
    overflow: hidden;
}
.site-header::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    opacity: .9;
}
.site-header .wrap {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    position: relative;
    z-index: 1;
}
.site-title {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 2px;
    display: flex;
    align-items: center;
    gap: 12px;
}
.site-title .logo {
    width: 40px; height: 40px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--gold), #a8812f);
    display: inline-flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: 20px; color: #1a2634;
    box-shadow: 0 4px 12px rgba(0,0,0,.25);
}
.site-tagline { color: rgba(255,255,255,.72); font-size: 13px; letter-spacing: 1px; margin-top: 4px; }

.header-actions { display: flex; gap: 10px; }
.btn-ghost {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 8px 18px;
    border: 1px solid rgba(255,255,255,.38);
    border-radius: 999px;
    color: #fff; font-size: 13px;
    background: rgba(255,255,255,.06);
    transition: all .2s;
}
.btn-ghost:hover { background: rgba(255,255,255,.16); opacity: 1; }

/* ---------- 布局 ---------- */
.wrap {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
}
.page-main { flex: 1; padding: 36px 0 60px; }

.page-head { margin-bottom: 28px; }
.page-head h1 { font-size: 22px; font-weight: 700; color: var(--navy); }
.page-head .sub { color: var(--ink-2); font-size: 14px; margin-top: 4px; }

/* ---------- 便利贴首页 ---------- */
.notes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 28px 22px;
    padding: 6px 6px 20px;
}
.note {
    position: relative;
    background: linear-gradient(165deg, #fffdf3 0%, #fdf3c8 100%);
    border: 1px solid #eedfae;
    border-radius: 6px 6px 10px 10px;
    padding: 34px 20px 18px;
    box-shadow: 0 8px 20px rgba(120, 100, 40, .12);
    transform: rotate(var(--rot, 0deg));
    transition: transform .25s, box-shadow .25s;
    display: flex;
    flex-direction: column;
    min-height: 178px;
    color: var(--ink);
}
.notes-grid .note:nth-child(4n+1) { --rot: -1.1deg; }
.notes-grid .note:nth-child(4n+2) { --rot: 1.2deg; }
.notes-grid .note:nth-child(4n+3) { --rot: .6deg; }
.notes-grid .note:nth-child(4n+4) { --rot: -1.6deg; }
.note:hover {
    transform: rotate(0) translateY(-6px);
    box-shadow: 0 18px 36px rgba(120, 100, 40, .22);
    z-index: 2;
}
.note::before {  /* 顶部胶带 */
    content: "";
    position: absolute;
    top: -12px; left: 50%;
    transform: translateX(-50%) rotate(-2deg);
    width: 84px; height: 24px;
    background: rgba(255,255,255,.55);
    border: 1px solid rgba(0,0,0,.05);
    box-shadow: 0 2px 5px rgba(0,0,0,.08);
    backdrop-filter: blur(1px);
}
.note-title {
    font-size: 16px;
    font-weight: 700;
    color: #3d3620;
    line-height: 1.45;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.note-desc {
    font-size: 13px;
    color: #776e4d;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.note-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px dashed rgba(140, 120, 60, .35);
    margin-top: 12px;
    padding-top: 10px;
    font-size: 12.5px;
    color: #8a7a45;
}
.note-meta .amount { font-weight: 700; color: #b8860b; font-size: 14px; }
.note-count { background: rgba(140,120,60,.14); padding: 1px 8px; border-radius: 999px; }

.empty-state {
    text-align: center;
    color: var(--ink-3);
    padding: 90px 20px;
    font-size: 15px;
}
.empty-state .big { font-size: 44px; margin-bottom: 14px; opacity: .55; }

/* ---------- 卡片与统计条 ---------- */
.card {
    background: var(--card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 24px;
}

.project-hero { margin-bottom: 24px; }
.project-hero .name { font-size: 24px; font-weight: 700; color: var(--navy); }
.project-hero .desc { color: var(--ink-2); margin-top: 6px; font-size: 14.5px; }
.project-hero .meta-chips { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 5px 14px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid var(--line);
    font-size: 13px;
    color: var(--ink-2);
    box-shadow: 0 2px 6px rgba(22,40,60,.05);
}
.chip b { color: var(--ink); font-weight: 700; }

.summary-strip {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 14px;
    margin-bottom: 34px;
}
.sum-item {
    background: var(--card);
    border-radius: 12px;
    padding: 16px 18px;
    box-shadow: var(--shadow);
    border-left: 4px solid var(--gold);
}
.sum-item.total { border-left-color: var(--navy-3); background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%); color: #fff; }
.sum-item.total .num { color: #fff; }
.sum-item.total .label { color: rgba(255,255,255,.7); }
.sum-item .label { font-size: 12px; color: var(--ink-3); letter-spacing: 1px; }
.sum-item .num { font-size: 20px; font-weight: 800; color: var(--navy); margin-top: 2px; }

/* ---------- 弯曲时间线 ---------- */
.tl-wrap { position: relative; padding: 16px 0 6px; }
.tl-wave {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    pointer-events: none;
    z-index: 0;
}
.tl-wave path {
    fill: none;
    stroke: url(#waveGrad);
    stroke-width: 3.5;
    stroke-linecap: round;
    filter: drop-shadow(0 2px 4px rgba(22,40,60,.18));
}

.tl-item { position: relative; padding: 12px 0; z-index: 1; }
.tl-item .tl-card {
    width: calc(50% - 46px);
    margin-left: auto;
}
.tl-item.left .tl-card { margin-left: 0; margin-right: auto; }

.tl-node {
    position: absolute;
    top: 50%; left: var(--nx, 50%);
    transform: translate(-50%, -50%);
    width: 26px; height: 26px;
    border-radius: 50%;
    background: var(--nc, var(--navy-3));
    border: 4px solid #fff;
    box-shadow: 0 0 0 3px var(--nc, var(--navy-3)), 0 4px 10px rgba(22,40,60,.25);
    z-index: 2;
}
.tl-node::after {
    content: "";
    position: absolute;
    inset: 6px;
    border-radius: 50%;
    background: #fff;
    opacity: .9;
}

.tl-card {
    background: var(--card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 18px 20px;
    transition: box-shadow .2s, transform .2s;
    border-top: 3px solid var(--nc, var(--navy-3));
    position: relative;
}
.tl-card:hover { box-shadow: var(--shadow-lift); transform: translateY(-2px); }

.tl-card .row1 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}
.badge {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 12.5px; font-weight: 700;
    padding: 3px 12px;
    border-radius: 999px;
    color: var(--nc, var(--navy-3));
    background: color-mix(in srgb, var(--nc, var(--navy-3)) 12%, #fff);
    letter-spacing: 1px;
}
.amount {
    font-size: 21px;
    font-weight: 800;
    color: var(--nc, var(--navy-3));
    letter-spacing: .5px;
    white-space: nowrap;
}
.amount.negative { color: var(--danger); }
.money-cell.negative { color: var(--danger); }
.sum-amt.neg { color: var(--danger); }
.tl-date {
    display: flex; align-items: center; gap: 8px;
    color: var(--ink-2);
    font-size: 13.5px;
    margin-bottom: 8px;
}
.tl-date .dot-sep { width: 4px; height: 4px; border-radius: 50%; background: var(--line); }
.foreign-amt {
    font-size: 12px;
    color: var(--ink-3);
    background: #f1f4f9;
    border: 1px dashed #d4dce6;
    border-radius: 6px;
    padding: 1px 8px;
    letter-spacing: .3px;
}
.tl-people { display: flex; flex-wrap: wrap; gap: 14px; font-size: 13px; color: var(--ink-2); margin-bottom: 6px; }
.tl-people span b { color: var(--ink); font-weight: 600; margin-right: 4px; }
.tl-note {
    font-size: 13.5px;
    color: var(--ink-2);
    background: #f7f9fc;
    border-radius: 8px;
    padding: 8px 12px;
    margin: 8px 0;
    border-left: 3px solid var(--nc, var(--navy-3));
    white-space: pre-wrap;
    word-break: break-all;
}

/* 附件 */
.attach-list { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.attach {
    display: inline-flex; align-items: center; gap: 8px;
    border: 1px solid var(--line);
    background: #fbfcfe;
    border-radius: 10px;
    padding: 6px 12px;
    font-size: 12.5px;
    color: var(--ink-2);
    transition: all .18s;
    cursor: pointer;
    max-width: 100%;
}
.attach:hover { border-color: var(--navy-3); color: var(--navy); box-shadow: 0 3px 10px rgba(22,40,60,.1); }
.attach .ic { font-size: 15px; flex-shrink: 0; }
.attach .fn {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 180px;
}
.attach .tag {
    font-size: 11px;
    background: #eef2f8;
    color: var(--ink-3);
    padding: 1px 7px;
    border-radius: 999px;
    flex-shrink: 0;
}
.attach-thumb {
    display: inline-flex; align-items: center; gap: 8px;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 5px 12px 5px 5px;
    background: #fbfcfe;
    cursor: pointer;
    transition: all .18s;
}
.attach-thumb:hover { border-color: var(--navy-3); box-shadow: 0 3px 10px rgba(22,40,60,.12); }
.attach-thumb img { width: 34px; height: 34px; object-fit: cover; border-radius: 7px; }
.attach-thumb .fn { font-size: 12.5px; color: var(--ink-2); max-width: 170px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- 底部汇总节点 ---------- */
.tl-item.summary { margin-top: 40px; padding-top: 40px; }   /* 顶部留出节点位 */
.tl-item.summary .tl-card { width: 100%; margin: 0; }
.tl-item.summary .tl-node {
    top: 0;                          /* 节点位于区块顶部中间 */
    width: 34px; height: 34px;
    border: 4px solid #fff;
    box-shadow: 0 0 0 3px var(--gold), 0 6px 16px rgba(200,162,74,.45);
    background: linear-gradient(135deg, #d9b45c, #a8812f);
}
.tl-item.summary .tl-node::after { inset: 5px; background: #fff8e0; }
.summary-card {
    background: linear-gradient(180deg, #fffdf4 0%, #ffffff 60%);
    border-top: 3px solid var(--gold);
}
.sum-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.sum-total { font-size: 26px; font-weight: 800; color: var(--navy); letter-spacing: .5px; }
.sum-meta { color: var(--ink-3); font-size: 13px; margin-top: 4px; }
.sum-foreign-hint {
    margin-top: 12px;
    font-size: 12.8px;
    color: #7c6118;
    background: #fbf3dc;
    border: 1px solid #eeddab;
    border-radius: 9px;
    padding: 8px 14px;
    line-height: 1.7;
}
.sum-breakdown { margin-top: 18px; display: flex; flex-direction: column; gap: 11px; }
.sum-row {
    display: grid;
    grid-template-columns: 12px 96px 58px 50px 1fr 118px;
    align-items: center;
    gap: 12px;
    font-size: 13.5px;
}
.sum-row .dot { width: 11px; height: 11px; border-radius: 50%; }
.sum-name { font-weight: 600; color: var(--ink); }
.sum-count { color: var(--ink-3); font-size: 12.5px; }
.sum-pct { color: var(--ink-3); font-size: 12.5px; text-align: right; }
.sum-bar { height: 7px; background: #eef1f5; border-radius: 99px; overflow: hidden; }
.sum-bar i { display: block; height: 100%; border-radius: 99px; min-width: 2px; }
.sum-amt { font-weight: 700; color: var(--navy); text-align: right; white-space: nowrap; }
.summary-card .tl-note { margin-top: 18px; }

/* ---------- 弹窗 / 灯箱 ---------- */
.modal-mask {
    position: fixed; inset: 0;
    background: rgba(10, 18, 28, .82);
    backdrop-filter: blur(3px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 30px;
}
.modal-mask.show { display: flex; }
.modal-box {
    background: #fff;
    border-radius: 14px;
    max-width: min(1020px, 100%);
    max-height: 92vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0,0,0,.5);
}
.modal-head {
    display: flex; align-items: center; justify-content: space-between;
    padding: 12px 18px;
    background: var(--navy);
    color: #fff;
    font-size: 14px;
}
.modal-head .close { cursor: pointer; font-size: 20px; line-height: 1; padding: 0 6px; color: rgba(255,255,255,.8); }
.modal-head .close:hover { color: #fff; }
.modal-body { padding: 0; overflow: auto; background: #1c2430; display: flex; align-items: center; justify-content: center; }
.modal-body img { max-width: 100%; max-height: calc(92vh - 46px); margin: auto; }
.modal-body iframe { width: 100%; height: calc(92vh - 46px); border: 0; background: #fff; }
.modal-body .dl-hint { color: #fff; padding: 40px; text-align: center; }
.modal-body .dl-hint a { color: var(--gold-soft); text-decoration: underline; }

/* ---------- 后台 ---------- */
.admin-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 22px; }

.btn {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 9px 20px;
    border-radius: 10px;
    border: 0;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    background: var(--navy-2);
    color: #fff;
    transition: all .18s;
    font-family: var(--font);
}
.btn:hover { background: var(--navy-3); opacity: 1; }
.btn.gold { background: linear-gradient(135deg, var(--gold), #a8812f); color: #1a2634; }
.btn.gold:hover { filter: brightness(1.06); }
.btn.ghost2 { background: #fff; color: var(--ink-2); border: 1px solid var(--line); }
.btn.ghost2:hover { border-color: var(--navy-3); color: var(--navy); background: #f7f9fc; }
.btn.danger { background: #fff; color: var(--danger); border: 1px solid #f0c8c8; }
.btn.danger:hover { background: #fdf1f1; }
.btn.sm { padding: 5px 12px; font-size: 12.5px; border-radius: 8px; }

/* 表单 */
.form-card { max-width: 760px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 22px; }
.form-grid .full { grid-column: 1 / -1; }
.field label { display: block; font-size: 13px; color: var(--ink-2); margin-bottom: 7px; font-weight: 600; }
.field input[type="text"],
.field input[type="date"],
.field input[type="number"],
.field input[type="password"],
.field select,
.field textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--line);
    border-radius: 10px;
    font-size: 14.5px;
    font-family: var(--font);
    background: #fff;
    color: var(--ink);
    outline: none;
    transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .field select:focus, .field textarea:focus {
    border-color: var(--navy-3);
    box-shadow: 0 0 0 3px rgba(42, 74, 117, .12);
}
.field textarea { min-height: 84px; resize: vertical; }
.field .hint { font-size: 12px; color: var(--ink-3); margin-top: 6px; }

/* 上传区 */
.upload-zone {
    border: 2px dashed #cfd8e3;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    color: var(--ink-3);
    cursor: pointer;
    transition: all .18s;
    background: #fbfcfe;
    font-size: 13.5px;
}
.upload-zone:hover { border-color: var(--navy-3); background: #f4f8ff; }
.upload-zone .u-ic { font-size: 26px; margin-bottom: 6px; }
.upload-zone input[type="file"] { display: none; }
.upload-zone.file-selected { border-color: var(--ok); color: var(--ok); background: #f2fbf5; }
.upload-group { margin-bottom: 8px; }
.upload-group .u-label {
    font-size: 13px; font-weight: 700; color: var(--ink);
    display: flex; align-items: center; gap: 8px; margin-bottom: 8px;
}
.upload-group .u-label .tag { font-size: 11px; background: #eef2f8; color: var(--ink-3); padding: 1px 8px; border-radius: 999px; font-weight: 500; }

/* 已传文件列表（编辑时） */
.existing-files { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.existing-files .row {
    display: flex; align-items: center; gap: 10px;
    background: #f7f9fc;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 8px 12px;
    font-size: 13px;
}
.existing-files .row .name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink-2); }
.existing-files .row .t { font-size: 11px; background: #eef2f8; color: var(--ink-3); padding: 1px 8px; border-radius: 999px; }
.existing-files .row img { width: 34px; height: 34px; object-fit: cover; border-radius: 7px; }

/* 数据表 */
.table-card { overflow: hidden; }
table.data { width: 100%; border-collapse: collapse; font-size: 14px; }
table.data th {
    text-align: left;
    padding: 12px 16px;
    background: #f6f8fb;
    color: var(--ink-3);
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: 1px;
    border-bottom: 1px solid var(--line);
    white-space: nowrap;
}
table.data td {
    padding: 13px 16px;
    border-bottom: 1px solid var(--line);
    vertical-align: middle;
}
table.data tr:last-child td { border-bottom: 0; }
table.data tr:hover td { background: #fafcff; }
.money-cell { font-weight: 700; color: var(--navy); white-space: nowrap; }

/* Flash 消息 */
.flash {
    max-width: 1180px;
    margin: 18px auto 0;
    padding: 12px 20px;
    border-radius: 10px;
    font-size: 14px;
    display: flex; align-items: center; gap: 10px;
    animation: flash-in .3s ease;
}
.flash.ok { background: #e9f8ef; color: #1f7a45; border: 1px solid #c2e8d0; }
.flash.err { background: #fdeeee; color: #b33434; border: 1px solid #f3cdcd; }
@keyframes flash-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

/* 登录页 */
.login-body {
    min-height: 100vh;
    display: flex; align-items: center; justify-content: center;
    background:
        radial-gradient(900px 400px at 20% -10%, rgba(200,162,74,.18), transparent),
        linear-gradient(140deg, #131f30, #1d3a5f 70%, #24507f);
    padding: 20px;
}
.login-card {
    width: 100%; max-width: 400px;
    background: #fff;
    border-radius: 18px;
    padding: 40px 38px;
    box-shadow: 0 30px 80px rgba(0,0,0,.4);
}
.login-card .logo { width: 54px; height: 54px; border-radius: 14px; background: linear-gradient(135deg, var(--gold), #a8812f); display: flex; align-items: center; justify-content: center; font-size: 26px; font-weight: 800; color: #1a2634; margin: 0 auto 18px; }
.login-card h1 { text-align: center; font-size: 20px; color: var(--navy); letter-spacing: 2px; }
.login-card .sub { text-align: center; color: var(--ink-3); font-size: 13px; margin: 6px 0 26px; }
.login-card .field { margin-bottom: 18px; }
.login-card .btn { width: 100%; justify-content: center; padding: 12px; }
.login-err { background: #fdeeee; color: #b33434; border: 1px solid #f3cdcd; border-radius: 10px; padding: 10px 14px; font-size: 13.5px; margin-bottom: 16px; text-align: center; }

/* 返回链接 */
.back-link { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; color: var(--ink-2); margin-bottom: 16px; }
.back-link:hover { color: var(--navy); }

/* ---------- 前台访问密码：毛玻璃锁屏 ---------- */
body.is-locked .site-header,
body.is-locked .page-main,
body.is-locked .site-footer {
    filter: blur(9px) saturate(.75);
    pointer-events: none;
    user-select: none;
}
.frost-mask {
    position: fixed; inset: 0; z-index: 950;
    display: flex; align-items: center; justify-content: center;
    background: rgba(16, 26, 40, .35);
    backdrop-filter: blur(7px);
    -webkit-backdrop-filter: blur(7px);
    padding: 20px;
}
.frost-card {
    width: 100%; max-width: 380px;
    background: rgba(255, 255, 255, .94);
    border-radius: 18px;
    padding: 34px 32px 28px;
    box-shadow: 0 30px 80px rgba(10, 18, 30, .45);
    text-align: center;
    border-top: 3px solid var(--gold);
}
.frost-card .lock-ic { font-size: 34px; margin-bottom: 8px; }
.frost-card h2 { font-size: 18px; color: var(--navy); letter-spacing: 1px; }
.frost-card .sub { font-size: 12.5px; color: var(--ink-3); margin: 6px 0 20px; line-height: 1.7; }
.frost-card input[type="password"] {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--line);
    border-radius: 12px;
    font-size: 15px;
    text-align: center;
    letter-spacing: 3px;
    outline: none;
    font-family: var(--font);
    transition: border-color .15s, box-shadow .15s;
}
.frost-card input[type="password"]:focus {
    border-color: var(--navy-3);
    box-shadow: 0 0 0 3px rgba(42, 74, 117, .12);
}
.frost-card .btn { width: 100%; justify-content: center; padding: 12px; margin-top: 14px; }
.frost-err {
    color: #b33434;
    background: #fdeeee;
    border: 1px solid #f3cdcd;
    border-radius: 10px;
    padding: 9px 12px;
    font-size: 13px;
    margin-bottom: 14px;
}
.frost-hint { margin-top: 16px; font-size: 12px; color: var(--ink-3); }

/* 页脚 */
.site-footer {
    border-top: 1px solid var(--line);
    padding: 20px 0;
    text-align: center;
    color: var(--ink-3);
    font-size: 12.5px;
    background: #fff;
}

/* 响应式 */
@media (max-width: 900px) {
    .tl-item .tl-card { width: calc(100% - 60px); }
    .tl-item.left .tl-card { margin-left: auto; }
    .form-grid { grid-template-columns: 1fr; }
    .site-title { font-size: 20px; }
    .site-tagline { display: none; }
    .sum-row { grid-template-columns: 12px 1fr 52px 1fr 100px; }
    .sum-pct { display: none; }
    .sum-total { font-size: 22px; }
}
