* { box-sizing: border-box; margin: 0; padding: 0; }
:root { --primary: #1e6fd9; --primary-d: #1557b0; --danger: #d9534f; --warn: #f0a830; --line: #e9edf3; --sub: #8a94a6; --bg: #f3f6fb; }
html, body { min-height: 100%; font: 14px/1.5 "Microsoft YaHei", "PingFang SC", sans-serif; color: #24324a; background: var(--bg); }
a { color: var(--primary); text-decoration: none; cursor: pointer; }

/* 顶部导航 */
.topbar { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.92); backdrop-filter: blur(10px); box-shadow: 0 1px 0 var(--line); }
.topbar-in { max-width: 1320px; margin: 0 auto; height: 64px; padding: 0 24px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.brand span { font-size: 16px; font-weight: 700; color: #1b2a44; white-space: nowrap; }
.brand-sep { width: 1px; height: 18px; background: #d3dae6; margin: 0 4px; }
.brand em { font-style: normal; font-size: 14px; color: #6b778c; white-space: nowrap; }
.board { max-width: 1320px; margin: 20px auto 0; padding: 0 24px; }
.board.no-nav #nav { display: none; }
#nav { display: flex; gap: 6px; background: #fff; padding: 6px; border-radius: 14px; margin-bottom: 18px; box-shadow: 0 4px 18px rgba(20,40,80,.06); overflow-x: auto; scrollbar-width: none; }
#nav::-webkit-scrollbar { display: none; }
#nav a { flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 16px; border-radius: 10px; color: #4a5872; white-space: nowrap; font-size: 15px; transition: all .2s; }
#nav a svg { width: 18px; height: 18px; fill: currentColor; }
#nav a:hover { color: var(--primary); background: #f3f7fe; }
#nav a.on { background: linear-gradient(135deg, #1e6fd9, #4fa3f7); color: #fff; font-weight: 600; box-shadow: 0 4px 12px rgba(30,111,217,.3); }
.top-right { display: flex; align-items: center; gap: 16px; }
.logout-btn { display: flex; align-items: center; gap: 6px; height: 34px; padding: 0 16px; border: 0; border-radius: 17px; background: #1b1f27; color: #fff; font-size: 14px; cursor: pointer; font-family: inherit; transition: background .2s; }
.logout-btn:hover { background: #000; }
.top-btn { display: flex; align-items: center; gap: 6px; height: 34px; padding: 0 16px; border-radius: 17px; background: #eef4fd; color: var(--primary); font-size: 14px; white-space: nowrap; transition: all .2s; }
.top-btn svg { width: 16px; height: 16px; fill: currentColor; }
.top-btn:hover, .top-btn.on { background: var(--primary); color: #fff; }
@media (max-width: 768px) {
  .top-btn { width: 34px; padding: 0; justify-content: center; flex: 0 0 auto; }
  .top-btn .tb-t { display: none; }
  .top-right { gap: 8px; flex: 0 0 auto; }
  #userBox { display: none; }
  .logout-btn { padding: 0 12px; }
}
.logout-btn svg { width: 16px; height: 16px; fill: #fff; }
.user { position: relative; display: flex; align-items: center; gap: 8px; cursor: pointer; flex: 0 0 auto; padding: 6px 0; }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: linear-gradient(135deg, #1e6fd9, #5aa9ff); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; }
.user-menu { display: none; position: absolute; right: 0; top: 100%; background: #fff; border-radius: 10px; box-shadow: 0 8px 28px rgba(20,40,80,.15); padding: 6px; min-width: 130px; }
.user:hover .user-menu { display: block; }
.user-menu a { display: block; padding: 9px 14px; border-radius: 6px; color: #333; }
.user-menu a:hover, .user-menu a.on { background: #eef4fd; color: var(--primary); }

/* 页头横幅 */
.hero { background: #1e6fd9; color: #fff; position: relative; overflow: hidden; }
.hero-in { max-width: 1320px; margin: 0 auto; padding: 24px 24px; position: relative; z-index: 1; display: flex; align-items: center; gap: 28px; }
.hero-text { flex: 0 0 auto; }
.hero-text p { white-space: nowrap; }
.hero h1 { font-size: 24px; font-weight: 700; }
.hero p { opacity: .85; margin-top: 4px; }
.main { max-width: 1320px; margin: 0 auto; padding: 0 24px 40px; }

/* 卡片 */
.panel { background: #fff; border-radius: 14px; padding: 20px 22px; margin-bottom: 18px; box-shadow: 0 4px 18px rgba(20,40,80,.06); }
.panel h3 { font-size: 15px; margin-bottom: 14px; }
.stat-grid { flex: 1; min-width: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; min-height: 60px; }
.stat { background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.22); border-radius: 12px; padding: 10px 12px; display: flex; align-items: center; gap: 10px; backdrop-filter: blur(6px); min-width: 0; }
.stat .ic { width: 34px; height: 34px; border-radius: 9px; display: flex; align-items: center; justify-content: center; flex: 0 0 34px; box-shadow: 0 3px 8px rgba(0,0,0,.15); }
.stat .ic svg { width: 18px; height: 18px; fill: #fff; }
.stat .n { font-size: 20px; font-weight: 700; color: #fff; line-height: 1.2; }
.stat .l { color: rgba(255,255,255,.82); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stat.c0 .ic { background: #1e6fd9; }
.stat.c1 .ic { background: #7b5cf5; }
.stat.c2 .ic { background: #16a37f; }
.stat.c3 .ic { background: #f08a24; }
.stat.c4 .ic { background: #0ea5c6; }
.stat.c5 .ic { background: #e5486b; }

/* 表单控件 */
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 14px; }
.toolbar .sp { flex: 1; }
input:not([type]), input[type=text], input[type=tel], input[type=password], input[type=date], input[type=time], input[type=number], select {
  height: 34px; border: 1px solid #d5dbd9; border-radius: 6px; padding: 0 10px; font-size: 14px; outline: 0; background: #fff; font-family: inherit;
}
input:focus, select:focus { border-color: var(--primary); }
.btn { height: 34px; padding: 0 16px; border: 1px solid transparent; border-radius: 6px; cursor: pointer; font-size: 14px; display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; font-family: inherit; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-d); }
.btn-default { background: #fff; border-color: #d5dbd9; color: #333; }
.btn-default:hover { border-color: var(--primary); color: var(--primary); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-warn { background: var(--warn); color: #fff; }
.btn-sm { height: 28px; padding: 0 10px; font-size: 13px; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.field { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.field > label { width: 90px; color: #555; text-align: right; flex: 0 0 90px; }
.checks label { margin-right: 12px; white-space: nowrap; }
.field-wrap { flex-wrap: wrap; row-gap: 10px; }
.field-label2 { color: #555; margin-left: 28px; margin-right: 4px; white-space: nowrap; }
.periods { flex: 1; min-width: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 18px; }
.period-item { display: flex; align-items: center; gap: 4px; min-width: 0; white-space: nowrap; font-size: 13px; color: #555; }
.period-item input { height: 30px; font-size: 13px; padding: 0 4px; min-width: 0; }
.period-item input[type=time] { flex: 1 1 0; width: 0; max-width: 112px; }
.period-item .tsel { display: inline-flex; align-items: center; gap: 2px; flex: 0 0 auto; color: #888; }
.period-item .tsel select { height: 30px; font-size: 13px; padding: 0 2px 0 6px; width: auto; min-width: 0; }
.period-item .tsel select:disabled { background: #f5f6f8; color: #aaa; }
.period-item input[type=number] { flex: 0 0 auto; width: 58px !important; text-align: center; }
.period-item .pdel { flex: 0 0 auto; margin-left: 2px !important; font-size: 13px; cursor: pointer; }
@media (max-width: 900px) { .field-label2 { margin-left: 0; } }

/* 表格 */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 10px 10px; border-bottom: 1px solid var(--line); text-align: center; vertical-align: middle; white-space: nowrap; }
td .bar { margin: 0 auto; }
th { background: #f7f9f8; color: #556; font-weight: 600; font-size: 13px; }
.dialog.detail { width: 460px; }
.dialog.acc-dialog { width: 1000px; max-height: 88vh; display: flex; flex-direction: column; }
.acc-dialog .table-wrap { flex: 1; overflow-x: hidden; overflow-y: auto; }
.dialog.acc-dialog { width: 1180px; max-width: 96vw; }
.acc-dialog .acc-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.acc-dialog .acc-head h3 { margin: 0; line-height: 34px; }
.acc-dialog th, .acc-dialog td { padding: 8px 6px; font-size: 13px; }
.acc-dialog td.acc-evs { white-space: normal; min-width: 110px; max-width: 220px; }
.acc-dialog td.acc-time { line-height: 1.4; color: #555; }
.acc-dialog td.acc-time small { color: #a0a8b6; font-size: 12px; }
.acc-dialog td.acc-ops { white-space: normal; min-width: 210px; }
.acc-dialog td.acc-ops .btn { margin: 3px 2px; }
.acc-dialog td .btn + .btn { margin-left: 2px; }
@media (max-width: 900px) { .acc-dialog .table-wrap { overflow-x: auto; } }
.acc-evs { max-width: 220px; }
.acc-ev { display: inline-block; margin: 2px 4px 2px 0; padding: 1px 8px; border-radius: 10px; background: #eef4fd; color: var(--primary); font-size: 12px; white-space: nowrap; }
.acc-ev-all { color: #999; font-size: 12px; }
.acc-ev-none { color: #e5484d; font-size: 12px; }
.acc-by { color: #a0a8b6; font-size: 12px; margin-top: 2px; white-space: nowrap; }
.dialog.acc-bind { width: 520px; }
.acc-bind-tip { font-size: 13px; color: #666; line-height: 1.7; margin: 0 0 12px; }
.acc-bind-list { display: flex; flex-wrap: wrap; gap: 8px; max-height: 300px; overflow-y: auto; }
.acc-bind-sum { margin-top: 12px; font-size: 13px; color: var(--primary); }
.detail-row { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-bottom: 1px dashed var(--line); }
.detail-row:last-of-type { border-bottom: 0; }
.detail-row span { color: var(--sub); flex: 0 0 auto; }
.detail-row b { font-weight: 500; text-align: right; word-break: break-all; }
.mono { font-family: Consolas, monospace; }
td.mono { font-family: Consolas, monospace; font-size: 13px; color: #4a5872; }
td.muted { color: #b0b8c6; }
tr:hover td { background: #fafcfb; }
td .btn + .btn { margin-left: 6px; }
.empty-row td { text-align: center; color: var(--sub); padding: 30px; }
.tag { display: inline-block; padding: 0 8px; border-radius: 10px; font-size: 12px; line-height: 20px; }
.tag-0 { background: #fff4e0; color: #c47f00; }
.tag-1 { background: #e3eefc; color: var(--primary); }
.tag-2 { background: #eee; color: #999; }
.tag-off { background: #fde8e7; color: var(--danger); }
.pager { display: flex; justify-content: flex-end; align-items: center; gap: 8px; margin-top: 14px; color: var(--sub); }

/* 进度条 */
.bar { height: 8px; background: #eef1f0; border-radius: 4px; overflow: hidden; min-width: 80px; }
.bar i { display: block; height: 100%; background: var(--primary); }
/* 导出按钮与弹窗 */
.btn-export svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.export-mask { animation: fadeIn .2s ease; }
.export-mask.out { opacity: 0; transition: opacity .25s; }
.export-box { width: 300px; background: #fff; border-radius: 16px; padding: 30px 24px 26px; text-align: center; box-shadow: 0 20px 60px rgba(20,40,80,.25); animation: popIn .3s cubic-bezier(.2,.9,.3,1.3); }
.export-ico { width: 76px; height: 76px; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.export-ico .ring { stroke: #1e6fd9; stroke-width: 2.5; stroke-dasharray: 60 116; transform-origin: 32px 32px; animation: spin 1s linear infinite; }
.export-ico .doc { stroke: #1e6fd9; stroke-width: 2; stroke-dasharray: 90; stroke-dashoffset: 90; animation: draw 1.4s ease-in-out infinite alternate; }
.export-ico .arrow { stroke: #4fa3f7; stroke-width: 2.2; animation: bob 1s ease-in-out infinite; }
.export-ico .check { stroke: #16a37f; stroke-width: 3; stroke-dasharray: 40; stroke-dashoffset: 40; opacity: 0; }
.export-box.done .ring { animation: none; stroke: #16a37f; stroke-dasharray: 176; stroke-dashoffset: 176; animation: drawRing .5s ease forwards; }
.export-box.done .doc, .export-box.done .arrow { display: none; }
.export-box.done .check { opacity: 1; animation: drawCheck .4s .35s ease forwards; }
.export-box.fail .ring { animation: none; stroke: var(--danger); stroke-dasharray: none; }
.export-box.fail .doc, .export-box.fail .arrow { animation: none; stroke: var(--danger); stroke-dashoffset: 0; }
.export-title { font-size: 17px; font-weight: 600; margin-top: 12px; color: #1b2a44; }
.export-sub { font-size: 13px; color: var(--sub); margin-top: 4px; word-break: break-all; }
.export-line { height: 3px; background: #eef2f8; border-radius: 2px; overflow: hidden; margin-top: 18px; }
.export-line i { display: block; width: 40%; height: 100%; border-radius: 2px; background: linear-gradient(90deg, #1e6fd9, #4fa3f7); animation: slide 1.2s ease-in-out infinite; }
.export-box.done .export-line i { width: 100%; animation: none; background: #16a37f; transition: width .3s; }
.export-box.fail .export-line i { width: 100%; animation: none; background: var(--danger); }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes bob { 0%, 100% { transform: translateY(-2px); } 50% { transform: translateY(2px); } }
@keyframes slide { 0% { transform: translateX(-100%); } 100% { transform: translateX(250%); } }
@keyframes drawRing { to { stroke-dashoffset: 0; } }
@keyframes drawCheck { to { stroke-dashoffset: 0; } }
@keyframes fadeIn { from { opacity: 0; } }
@keyframes popIn { from { opacity: 0; transform: scale(.85); } }

/* 回到顶部 */
.back-top { position: fixed; right: 28px; bottom: 40px; z-index: 60; width: 48px; height: 48px; border: 0; border-radius: 50%; cursor: pointer;
  background: linear-gradient(135deg, #1e6fd9, #4fa3f7); box-shadow: 0 6px 18px rgba(30,111,217,.4);
  display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transform: translateY(16px); transition: all .3s; }
.back-top.show { opacity: 1; visibility: visible; transform: none; }
.back-top:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(30,111,217,.5); }
.back-top svg { width: 22px; height: 22px; fill: #fff; }
@media (max-width: 768px) { .back-top { right: 16px; bottom: 24px; width: 42px; height: 42px; } }

/* 弹窗 / 提示 */
.mask { position: fixed; inset: 0; background: rgba(0,0,0,.7); display: flex; align-items: center; justify-content: center; z-index: 100; }
.dialog { background: #fff; border-radius: 10px; width: 420px; max-width: 92%; padding: 22px 24px; }
.dialog h3 { margin-bottom: 16px; }
.dialog .btns { display: flex; justify-content: center; gap: 12px; margin-top: 20px; }
.dialog .btns .btn { min-width: 96px; justify-content: center; }
.toast-mask { z-index: 999; animation: fadeIn .2s ease; cursor: pointer; }
.toast-mask.out { opacity: 0; transition: opacity .25s; }
.toast-box { min-width: 240px; max-width: 360px; background: #fff; border-radius: 16px; padding: 28px 28px 24px; text-align: center; box-shadow: 0 20px 60px rgba(0,0,0,.3); animation: popIn .3s cubic-bezier(.2,.9,.3,1.3); }
.toast-box svg { width: 56px; height: 56px; fill: none; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.toast-box svg circle { stroke-dasharray: 126; stroke-dashoffset: 126; animation: drawRing .5s ease forwards; }
.toast-box svg path { stroke-dasharray: 40; stroke-dashoffset: 40; animation: drawCheck .35s .35s ease forwards; }
.toast-box.success svg { stroke: #16a37f; }
.toast-box.error svg { stroke: var(--danger); }
.toast-box.info svg { stroke: var(--primary); }
.toast-msg { margin-top: 12px; font-size: 15px; color: #1b2a44; line-height: 1.6; word-break: break-all; }

/* 登录页 */
.login-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; background-size: cover; background-position: center; background-color: #0f2a4d; }
.login-card { position: relative; width: 380px; max-width: 92%; background: rgba(255,255,255,.97); border-radius: 14px; padding: 62px 32px 34px; margin-top: 46px; box-shadow: 0 20px 60px rgba(0,0,0,.25); }
.login-logo { position: absolute; left: 50%; top: 0; width: 88px; height: 88px; transform: translate(-50%, -50%); border-radius: 22px; background: #fff; border: 4px solid #fff; box-shadow: 0 10px 28px rgba(15,40,90,.3); object-fit: cover; }
.login-card .head { text-align: center; margin-bottom: 26px; }
.login-card .head h1 { font-size: 20px; }
.login-card .head p { font-size: 12px; color: var(--sub); }
.login-card input { width: 100%; height: 44px; margin-bottom: 14px; font-size: 15px; }
.login-card .btn { width: 100%; height: 44px; justify-content: center; font-size: 16px; }
/* 左图右卡片布局 */
.login-split { display: flex; min-height: 100vh; background: #fff; }
.login-side { position: relative; flex: 0 0 43%; overflow: hidden; background: linear-gradient(160deg, #f4f7fd 0%, #ecf2fc 55%, #e3ecfb 100%); }
/* 铺满左侧区域，按比例裁切多余部分，大屏下不留白边 */
.login-side img { position: absolute; left: 0; top: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; }
.login-main { flex: 1; display: flex; align-items: center; justify-content: center; padding: 40px 20px; }
.login-main .login-card { background: #fff; box-shadow: 0 10px 40px rgba(30,70,140,.12); border: 1px solid #eef1f6; }
.login-main .login-card input { background: #f5f7fa; border-color: #f5f7fa; }
.login-main .login-card input:focus { background: #fff; border-color: var(--primary); }
.login-main .login-card .btn { border-radius: 22px; }
.login-main { position: relative; }
.login-actions { display: flex; gap: 12px; }
.login-actions .btn { flex: 1; width: auto; min-width: 0; }
.login-main .login-card .login-forgot { background: #f0f2f5; border: 1px solid #f0f2f5; color: #6b7280; font-size: 15px; }
.login-main .login-card .login-forgot:hover { background: #e5e8ed; border-color: #e5e8ed; color: #4b5563; }
.forgot-dialog { width: 480px; }
.forgot-tip { margin-bottom: 16px; font-size: 13px; color: var(--sub); line-height: 1.7; }
.forgot-dialog .field { margin-bottom: 14px; }
.forgot-dialog .field input { flex: 1; min-width: 0; height: 40px; font-size: 15px; }
.forgot-dialog .forgot-send { flex: none; height: 40px; min-width: 110px; justify-content: center; }
.about-btn { position: absolute; top: 24px; right: 32px; display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 16px; border-radius: 17px; color: #4a5872; font-size: 14px; transition: all .2s; }
.about-btn svg { width: 16px; height: 16px; fill: currentColor; }
.about-btn:hover { background: #eef4fd; color: var(--primary); }
.about-dialog { width: 640px; padding: 26px 28px 22px; animation: popIn .25s ease; }
.about-head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.about-head img { width: 56px; height: 56px; border-radius: 14px; object-fit: cover; box-shadow: 0 4px 14px rgba(30,111,217,.2); }
.about-head h3 { margin: 0; font-size: 20px; }
.about-head p { font-size: 13px; color: var(--sub); margin-top: 2px; }
.about-intro { font-size: 14px; line-height: 1.8; color: #4a5872; background: #f5f8fd; border-radius: 10px; padding: 12px 14px; margin-bottom: 16px; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.about-item { display: flex; gap: 12px; padding: 12px; border: 1px solid var(--line); border-radius: 10px; transition: all .2s; }
.about-item:hover { border-color: #b9d2f5; background: #fafcff; }
.about-item i { flex: 0 0 38px; height: 38px; border-radius: 10px; background: linear-gradient(135deg, #1e6fd9, #4fa3f7); display: flex; align-items: center; justify-content: center; }
.about-item i svg { width: 20px; height: 20px; fill: #fff; }
.about-item b { display: block; font-size: 14px; color: #1f2d3d; margin-bottom: 3px; }
.about-item span { font-size: 12px; color: var(--sub); line-height: 1.6; }
/* 关于我们轮播 */
.ab-view { overflow: hidden; border-radius: 12px; background: #f5f8fd; aspect-ratio: 16 / 9; max-height: 62vh; }
.ab-track { display: flex; height: 100%; transition: transform .45s ease; }
.ab-slide { flex: 0 0 100%; height: 100%; display: flex; align-items: center; justify-content: center; }
.ab-slide img { width: 100%; height: 100%; object-fit: contain; display: block; }
.ab-card { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 10px; padding: 24px 40px; height: 100%; width: 100%; background: linear-gradient(135deg, #eef5ff, #f8fbff); }
.ab-card i { width: 64px; height: 64px; border-radius: 18px; background: linear-gradient(135deg, #1e6fd9, #4fa3f7); display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 20px rgba(30,111,217,.25); }
.ab-card i svg { width: 34px; height: 34px; fill: #fff; }
.ab-card b { font-size: 20px; color: #1f2d3d; }
.ab-card span { font-size: 14px; color: #5b6b82; line-height: 1.8; max-width: 440px; }
.ab-ctrl { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 14px; }
.ab-arrow { width: 36px; height: 36px; border-radius: 50%; border: 1px solid #d5dde8; background: #fff; color: var(--primary); font-size: 22px; line-height: 32px; padding: 0 0 2px; cursor: pointer; transition: all .15s; }
.ab-arrow:hover { background: var(--primary); border-color: var(--primary); color: #fff; }
.ab-dots { display: flex; gap: 6px; }
.ab-dots i { width: 7px; height: 7px; border-radius: 4px; background: #cfd8e5; cursor: pointer; transition: all .25s; }
.ab-dots i.on { width: 20px; background: var(--primary); }
.about-dialog .btns { margin-top: 12px; }
@media (max-width: 640px) { .about-grid { grid-template-columns: 1fr; } .about-btn { right: 14px; top: 14px; } .about-dialog { max-height: 86vh; overflow-y: auto; } }
.login-tools { position: absolute; top: 24px; right: 32px; display: flex; gap: 6px; }
.login-tools .about-btn { position: static; }
.login-beian { position: absolute; left: 0; right: 0; bottom: 18px; text-align: center; font-size: 12px; color: #9aa3b0; text-decoration: none; }
.login-beian:hover { color: var(--primary); }
/* 系统状态 */
.sys-dialog { width: 600px; }
.sys-topo { display: flex; align-items: flex-start; justify-content: center; padding: 18px 0 10px; }
.sys-node { flex: 0 0 110px; text-align: center; }
.sys-node i { width: 64px; height: 64px; border-radius: 18px; margin: 0 auto 8px; display: flex; align-items: center; justify-content: center; background: #22b573; box-shadow: 0 6px 18px rgba(34,181,115,.35); transition: all .3s; }
.sys-node i svg { width: 32px; height: 32px; fill: #fff; }
.sys-node b { display: block; font-size: 15px; }
.sys-node small { font-size: 12px; color: var(--sub); }
.sys-node.ok small { color: #22a06b; }
.sys-node.bad i { background: var(--danger); box-shadow: 0 6px 18px rgba(217,83,79,.35); animation: sysShake .5s; }
.sys-node.bad small { color: var(--danger); }
.sys-node.unknown i { background: #c4cbd6; box-shadow: none; }
.sys-link { flex: 1; min-width: 60px; height: 64px; display: flex; align-items: center; position: relative; }
.sys-link .l, .sys-link .r { flex: 1; height: 3px; border-radius: 2px; }
.sys-link .x { display: none; }
.sys-link.ok .l, .sys-link.ok .r { background: repeating-linear-gradient(90deg, #22b573 0 10px, #8fe0bb 10px 20px); background-size: 20px 3px; animation: sysFlow .6s linear infinite; }
.sys-link.ok .r { position: relative; }
.sys-link.ok .r::after { content: ""; position: absolute; right: -2px; top: -5px; border: 6.5px solid transparent; border-left: 9px solid #22b573; border-right: 0; }
.sys-link.bad .l, .sys-link.bad .r { background: var(--danger); }
.sys-link.bad .l { margin-right: 10px; }
.sys-link.bad .r { margin-left: 10px; }
.sys-link.bad .x { display: block; color: var(--danger); font-weight: 700; font-size: 16px; }
.sys-link.unknown .l, .sys-link.unknown .r { background: repeating-linear-gradient(90deg, #c4cbd6 0 6px, transparent 6px 12px); }
.sys-okmsg { margin-top: 10px; text-align: center; color: #22a06b; background: #eafaf2; border-radius: 8px; padding: 10px; font-size: 14px; }
.sys-reason { margin-top: 10px; background: #fff3f2; border: 1px solid #f6cfcd; border-radius: 8px; padding: 12px 14px; font-size: 13px; color: #8a3b38; }
.sys-reason b { color: var(--danger); font-size: 14px; }
.sys-reason p { margin-top: 4px; line-height: 1.7; }
.sys-reason .hint { color: #a2625f; }
.sys-time { text-align: center; font-size: 12px; color: var(--sub); margin-top: 10px; }
.sys-loading { text-align: center; padding: 50px 0; color: var(--sub); }
.sys-loading span { display: inline-block; width: 16px; height: 16px; border: 2px solid #cfe0fb; border-top-color: var(--primary); border-radius: 50%; margin-right: 8px; vertical-align: -3px; animation: spin .8s linear infinite; }
@keyframes sysFlow { to { background-position: 20px 0; } }
@keyframes sysShake { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
@media (max-width: 640px) { .sys-node { flex-basis: 80px; } .sys-node i { width: 50px; height: 50px; } .sys-link { min-width: 30px; height: 50px; } .login-tools { right: 10px; top: 12px; } }
@media (max-width: 900px) { .login-side { display: none; } .login-main { background: linear-gradient(160deg, #eef4ff, #fff); } }
@media (max-width: 768px) {
  .login-main { min-width: 0; padding: 70px 16px 56px; background: var(--primary); }
  .login-main .login-card { width: 100%; max-width: 380px; padding: 58px 22px 28px; border: 0; box-shadow: 0 16px 40px rgba(0,30,80,.3); }
  .login-tools .about-btn { color: #fff; background: rgba(255,255,255,.14); }
  .login-tools .about-btn:hover { color: var(--primary); background: #fff; }
  .login-beian { color: rgba(255,255,255,.75); }
  .login-beian:hover { color: #fff; }
}

/* 票务列表 */
#nav a.nav-back { flex: 0 0 auto; color: var(--sub); }
#nav a.nav-back:hover { color: var(--primary); }
.hero h1 { display: flex; align-items: center; gap: 10px; }
.hero-edit { display: inline-flex; width: 30px; height: 30px; border-radius: 50%; align-items: center; justify-content: center; background: rgba(255,255,255,.18); transition: background .2s; }
.hero-edit:hover { background: rgba(255,255,255,.32); }
.hero-edit svg { width: 16px; height: 16px; fill: #fff; }
.ev-count { font-size: 16px; color: #1f2d3d; }
.ev-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.ev-empty { color: var(--sub); padding: 30px; text-align: center; grid-column: 1 / -1; }
.ev-card { border: 1px solid var(--line); border-radius: 14px; padding: 18px; background: linear-gradient(180deg, #f7faff 0, #fff 70px); display: flex; flex-direction: column; gap: 12px; transition: box-shadow .2s, transform .2s; }
.ev-card:hover { box-shadow: 0 10px 26px rgba(20,60,120,.1); transform: translateY(-2px); }
.ev-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ev-head h4 { font-size: 17px; color: #1f2d3d; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ev-date { font-size: 12px; color: var(--sub); margin-top: -6px; }
.ev-nums { display: grid; grid-template-columns: repeat(4, 1fr); background: #f3f7fe; border-radius: 10px; padding: 10px 0; text-align: center; }
.ev-nums b { display: block; font-size: 18px; color: var(--primary); }
.ev-nums span { font-size: 12px; color: var(--sub); }
.ev-link { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--sub); }
.ev-link span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: Consolas, monospace; }
.ev-link a { flex: 0 0 auto; }
.ev-btns { display: flex; gap: 10px; margin-top: auto; }
.ev-btns .btn { flex: 1; justify-content: center; }
.ev-btns .btn svg { width: 15px; height: 15px; fill: currentColor; }
.ev-add { align-items: center; justify-content: center; min-height: 230px; border: 2px dashed #c9d8ee; background: #fafcff; color: var(--primary); font-size: 15px; cursor: pointer; gap: 8px; }
.ev-add i { font-style: normal; width: 52px; height: 52px; border-radius: 50%; background: #e8f1fd; display: flex; align-items: center; justify-content: center; font-size: 30px; line-height: 1; }
.ev-add:hover { border-color: var(--primary); }

/* 分享弹窗 */
.share-dialog { width: 480px; }
.share-tip { font-size: 13px; color: var(--sub); line-height: 1.7; margin-bottom: 14px; }
.share-link { display: flex; gap: 8px; margin-bottom: 14px; }
.share-link input { flex: 1; min-width: 0; font-family: Consolas, monospace; background: #f6f8fb; }
.share-cur { display: flex; align-items: center; gap: 12px; background: #f3f7fe; border-radius: 8px; padding: 12px 14px; margin-bottom: 16px; font-size: 14px; color: #4a5872; }
.share-cur b { font-size: 18px; color: var(--primary); letter-spacing: 1px; font-family: Consolas, monospace; }
.share-cur em { font-style: normal; font-size: 12px; color: var(--sub); }
.share-cur a { margin-left: auto; font-size: 13px; }
.share-ok { text-align: center; margin-bottom: 16px; }
.share-ok svg { width: 56px; height: 56px; fill: none; stroke: var(--primary); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; display: block; margin: 0 auto 8px; }
.share-ok svg circle { stroke-dasharray: 126; stroke-dashoffset: 126; animation: drawRing .6s ease forwards; }
.share-ok svg path { stroke-dasharray: 30; stroke-dashoffset: 30; animation: drawCheck .4s .5s ease forwards; }
.share-ok b { font-size: 17px; }
.share-pwd { text-align: center; font-size: 14px; color: #4a5872; }
.share-pwd b { color: var(--primary); font-size: 16px; letter-spacing: 1px; }
.vt-help-link { display: inline-flex; align-items: center; gap: 5px; margin-left: 10px; padding: 3px 12px 3px 4px; vertical-align: middle; font-size: 12px; font-weight: normal; line-height: 18px; color: var(--primary); background: #eef4fd; border: 1px solid #c6dbf8; border-radius: 999px; cursor: pointer; user-select: none; transition: background .15s, border-color .15s; }
.vt-help-link:hover { background: #e0ecfc; border-color: var(--primary); }
.vt-help-link i { width: 16px; height: 16px; border-radius: 50%; background: var(--primary); color: #fff; font-style: normal; font-weight: bold; font-size: 12px; line-height: 16px; text-align: center; }
.vt-help { width: 640px; max-height: 90vh; overflow-y: auto; }
.vt-help em { font-style: normal; font-weight: bold; color: var(--primary); }
.vt-help .share-tip { margin: 14px 0 0; }

/* 操作说明拓扑图 */
.tp-zone { position: relative; border: 1px dashed #c6dbf8; border-radius: 10px; padding: 26px 14px 14px; background: #fafcff; }
.tp-zone.tp-phone { border-color: #a8e0c8; background: #f6fcf9; }
.tp-zone-t { position: absolute; top: -11px; left: 14px; padding: 0 10px; font-size: 12px; line-height: 20px; color: #fff; background: var(--primary); border-radius: 999px; }
.tp-phone .tp-zone-t { background: #0e9f6e; }
.tp-node { display: flex; gap: 10px; align-items: flex-start; background: #fff; border: 1px solid #dbe6f5; border-radius: 8px; padding: 10px 12px; box-shadow: 0 2px 6px rgba(30,111,217,.06); }
.tp-node > i { flex: none; min-width: 26px; height: 26px; padding: 0 4px; border-radius: 13px; background: var(--primary); color: #fff; font-style: normal; font-weight: bold; font-size: 12px; line-height: 26px; text-align: center; }
.tp-phone .tp-node > i { background: #0e9f6e; }
.tp-node b { font-size: 14px; color: #1f2d3d; }
.tp-node p { margin-top: 3px; font-size: 12.5px; color: #4a5872; line-height: 1.7; }
.tp-arrow { position: relative; height: 26px; display: flex; align-items: center; justify-content: center; }
.tp-arrow::before { content: ''; position: absolute; left: 50%; top: 0; bottom: 6px; border-left: 2px solid #9dbbe6; }
.tp-arrow::after { content: ''; position: absolute; left: calc(50% - 5px); bottom: 0; border: 6px solid transparent; border-top-color: #9dbbe6; border-bottom: 0; margin-left: 1px; }
.tp-arrow span { position: relative; z-index: 1; margin-left: 90px; padding: 1px 8px; font-size: 12px; font-weight: bold; color: #e5484d; background: #fff1f0; border: 1px solid #ffccc7; border-radius: 999px; }
.tp > .tp-arrow { height: 34px; }
.tp-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tp-fork, .tp-join { height: 12px; margin: 0 25%; border: 2px solid #9dbbe6; }
.tp-fork { border-bottom: 0; border-radius: 6px 6px 0 0; }
.tp-join { border-top: 0; border-radius: 0 0 6px 6px; }

@media (max-width: 1200px) {
  .hero-in { flex-direction: column; align-items: stretch; gap: 16px; }
}
@media (max-width: 960px) {
  .stat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 768px) {
  .topbar-in { height: 56px; padding: 0 14px; gap: 10px; }
  .brand { flex: 1 1 auto; min-width: 0; }
  .brand span { font-size: 15px; overflow: hidden; text-overflow: ellipsis; }
  #who { display: none; }
  .brand-sep, .brand em { display: none; }
  .hero-in { padding: 18px 14px 20px; }
  .hero h1 { font-size: 20px; }
  .hero-text p { white-space: normal; }
  .board { padding: 0; margin: 0; }
  .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  #nav { display: none; }
  .main { padding: 14px 14px 90px; }
}

/* ===== 个性设置 ===== */
.panel h3.st-h { color: var(--primary); font-weight: 700; }
.st-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; margin-bottom: 18px; }
.st-row > .panel { margin-bottom: 0; }
@media (max-width: 1000px) { .st-row { grid-template-columns: 1fr; } }
.st-tip { color: #8a94a6; font-size: 13px; margin: -6px 0 14px; line-height: 1.7; }
.st-color { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.st-swatches { display: flex; gap: 10px; }
.st-swatches i { width: 30px; height: 30px; border-radius: 50%; cursor: pointer; box-shadow: 0 0 0 2px #fff, 0 0 0 3px transparent; transition: box-shadow .15s, transform .15s; }
.st-swatches i:hover { transform: scale(1.1); }
.st-swatches i.on { box-shadow: 0 0 0 2px #fff, 0 0 0 4px #1f2a3d; }
.st-picker { display: inline-flex; align-items: center; gap: 6px; color: #555; font-size: 14px; cursor: pointer; }
.st-picker input { width: 34px; height: 34px; padding: 0; border: 1px solid #d5dbd9; border-radius: 6px; background: #fff; cursor: pointer; }
.st-hex, .st-fields input:not([type=checkbox]) { height: 34px; border: 1px solid #d5dbd9; border-radius: 6px; padding: 0 10px; font-size: 14px; outline: 0; background: #fff; font-family: inherit; }
.st-hex { width: 100px; font-family: Consolas, monospace; text-transform: lowercase; }
.st-hex:focus, .st-fields input:focus { border-color: var(--primary); }
.st-fields input:not([type=checkbox]) { width: 100%; min-width: 110px; }
.st-fields input:disabled { background: #f5f6f8; color: #aaa; }
.st-fields select { width: 100%; min-width: 112px; }
.st-ok { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 14px; }
.st-ok .btn-primary { margin-left: auto; min-width: 88px; justify-content: center; }
.st-bnpanel { display: flex; flex-direction: column; }
.st-bnpanel .st-ok { margin-top: auto; padding-top: 14px; }
.st-fields .fr { width: 16px; height: 16px; }
.st-switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-weight: 600; margin-bottom: 14px; }
.st-switch input { display: none; }
.st-switch span { position: relative; width: 40px; height: 22px; border-radius: 11px; background: #cfd5dd; transition: background .2s; }
.st-switch span::after { content: ''; position: absolute; left: 3px; top: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: left .2s; }
.st-switch input:checked + span { background: var(--primary); }
.st-switch input:checked + span::after { left: 21px; }
.st-wxgrid { display: grid; grid-template-columns: 110px minmax(0, 560px); gap: 12px 14px; align-items: center; }
.st-wxgrid.off { opacity: .5; }
.st-wxgrid > label { color: #555; font-size: 14px; text-align: right; }
.st-wxgrid input:not([type=checkbox]) { height: 34px; border: 1px solid #d5dbd9; border-radius: 6px; padding: 0 10px; font-size: 14px; outline: 0; background: #fff; font-family: Consolas, monospace; width: 100%; }
.st-wxgrid input:focus { border-color: var(--primary); }
.st-wxgrid code { background: #f1f4f9; padding: 3px 8px; border-radius: 4px; color: var(--primary); font-weight: 600; }
.st-wxopt { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; }
.st-sub { color: #8a94a6; font-size: 12px; line-height: 1.7; margin-top: 4px; }
.st-wxopt .st-sub { width: 100%; margin-top: 0; }
@media (max-width: 700px) { .st-wxgrid { grid-template-columns: 1fr; } .st-wxgrid > label { text-align: left; } }
.st-sort a { display: inline-block; width: 22px; text-align: center; cursor: pointer; color: var(--primary); font-weight: 700; }
.st-preview { --pc: #1e6fd9; margin-top: 16px; width: 360px; max-width: 100%; border: 1px solid #e6e9ef; border-radius: 12px; overflow: hidden; }
.pv-head { background: #f6f7f9; color: #8a94a6; font-size: 12px; padding: 6px 12px; }
.pv-body { display: flex; flex-wrap: wrap; gap: 10px; padding: 14px; align-items: stretch; }
.pv-date { display: flex; flex-direction: column; align-items: center; width: 72px; padding: 6px 0; border-radius: 10px; border: 1px solid #eee; background: #fafafa; font-weight: 700; font-size: 14px; }
.pv-date small { font-size: 11px; font-weight: 400; color: #888; }
.pv-date.on { background: var(--pc); border-color: var(--pc); color: #fff; }
.pv-date.on small { color: #fff; }
.pv-slot { display: flex; flex-direction: column; justify-content: center; padding: 6px 12px; border-radius: 10px; border: 1px solid var(--pc); font-weight: 600; font-size: 14px; background: #fff; }
.pv-slot small, .pv-date small.pv-c { color: var(--pc); font-weight: 400; font-size: 12px; }
.pv-btn { width: 100%; text-align: center; background: var(--pc); color: #fff; border-radius: 22px; padding: 9px 0; font-weight: 600; }
.st-banners { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 600px) { .st-banners { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.st-bn { position: relative; min-width: 0; aspect-ratio: 75 / 46; border-radius: 10px; overflow: hidden; background: #eef1f5; }
.st-bn img { width: 100%; height: 100%; object-fit: cover; display: block; }
.st-bn-no { position: absolute; left: 4px; top: 4px; min-width: 20px; height: 20px; line-height: 20px; text-align: center; border-radius: 10px; background: rgba(0,0,0,.55); color: #fff; font-size: 12px; }
.st-bn-ops { position: absolute; right: 4px; top: 4px; display: flex; gap: 4px; }
.st-bn-ops a:not([data-bn=del]) { opacity: 0; transition: opacity .2s; }
.st-bn:hover .st-bn-ops a { opacity: 1; }
.st-bn-ops a { width: 22px; height: 22px; line-height: 22px; text-align: center; border-radius: 50%; background: rgba(0,0,0,.6); color: #fff; cursor: pointer; font-size: 12px; }
.st-bn-ops a[data-bn=del] { background: #e5484d; box-shadow: 0 2px 6px rgba(229,72,77,.45); }
.st-bn-ops a[data-bn=del]:hover { background: #c62f34; }
.st-bn-add { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; border: 2px dashed #c9d2df; background: #f8fafc; color: #8a94a6; cursor: pointer; font-size: 12px; white-space: nowrap; }
.st-bn-add b { font-size: 24px; font-weight: 300; line-height: 1; }
.st-bn-add:hover { border-color: var(--primary); color: var(--primary); }
.st-fixed { display: flex; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; align-items: center; }
.st-fixed > b { font-size: 13px; color: #555; font-weight: 600; margin-right: 2px; }
.st-chip { display: inline-flex; align-items: center; gap: 6px; border: 1px solid #d5dbd9; border-radius: 16px; padding: 4px 14px 4px 10px; font-size: 13px; cursor: pointer; user-select: none; transition: all .15s; }
.st-chip input { width: 15px; height: 15px; accent-color: var(--primary); cursor: pointer; }
.st-chip:has(input:checked) { border-color: var(--primary); color: var(--primary); background: #eef4fd; }
.st-warn { background: #fff7e6; border: 1px solid #ffd591; color: #ad6800; border-radius: 8px; padding: 8px 12px; font-size: 13px; margin-bottom: 12px; }
.rec-table .col-hl { color: var(--primary); font-weight: 700; }

/* 富文本编辑器 */
.rte { border: 1px solid #d5dbd9; border-radius: 8px; overflow: hidden; background: #fff; }
.rte:focus-within { border-color: var(--primary); }
.rte-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 2px; padding: 6px 8px; background: #f6f7f9; border-bottom: 1px solid #e6e9ef; user-select: none; }
.rte-bar a, .rte-color { min-width: 30px; height: 28px; padding: 0 7px; display: inline-flex; align-items: center; justify-content: center; border-radius: 5px; color: #444; font-size: 13px; cursor: pointer; }
.rte-bar a:hover, .rte-color:hover { background: #e4e8ee; color: var(--primary); }
.rte-sep { width: 1px; height: 18px; background: #d9dee6; margin: 0 4px; }
.rte-color { --c: #e5484d; position: relative; font-weight: 700; box-shadow: inset 0 -3px 0 -0px var(--c); }
.rte-bg { --c: #fff3a3; }
.rte-color input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; padding: 0; border: 0; }
.rte-bar .rte-reset { margin-left: auto; color: #8a94a6; }
.st-notice { display: flex; flex-direction: column; }
.st-notice .rte { flex: 1; display: flex; flex-direction: column; }
.st-notice .rte-body { flex: 1; }
.rte-body { min-height: 180px; max-height: 420px; overflow-y: auto; padding: 12px 14px; font-size: 14px; color: #444; line-height: 1.8; outline: 0; word-break: break-word; }
.rte-body p, .rte-body div { margin: 0; }
.rte-body ol, .rte-body ul { margin: 0; padding-left: 22px; }
.rte-body h3 { margin: 4px 0; font-size: 16px; color: #222; }
.rte-body hr { border: 0; border-top: 1px dashed #d9dee6; margin: 8px 0; }
.rte-body a { color: var(--primary); }
.rte-foot { text-align: right; font-size: 12px; color: #a0a8b6; padding: 4px 12px 6px; border-top: 1px solid #f0f2f5; }
.rte-foot.over { color: #e5484d; }
.st-save { position: sticky; bottom: 0; display: flex; justify-content: flex-end; gap: 10px; padding: 14px 0; background: linear-gradient(to top, #f4f6fa 70%, rgba(244,246,250,0)); }

/* 时段生成方式 */
.seg { display: inline-flex; background: #eef1f5; border-radius: 8px; padding: 3px; }
.seg a { padding: 5px 16px; border-radius: 6px; font-size: 14px; color: #555; cursor: pointer; user-select: none; }
.seg a.on { background: #fff; color: var(--primary); font-weight: 600; box-shadow: 0 1px 4px rgba(20,40,80,.12); }
.b-sum { font-size: 13px; color: #6b7588; }
.b-sum b { color: var(--primary); font-size: 15px; }
.checks label.off { color: #c0c6d0; }
/* 预约次数限制 */
.slot-row { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 18px; margin-bottom: 18px; align-items: start; }
.slot-row > .panel { margin-bottom: 0; }
@media (max-width: 1100px) { .slot-row { grid-template-columns: 1fr; } }
.lim-opt { display: flex; gap: 10px; align-items: flex-start; border: 1px solid #e3e7ee; border-radius: 10px; padding: 12px 14px; margin-bottom: 12px; cursor: pointer; transition: border-color .15s, background .15s; }
.lim-opt:has(input:checked) { border-color: var(--primary); background: #f3f8ff; }
.lim-opt > input { margin-top: 3px; accent-color: var(--primary); width: 16px; height: 16px; flex: 0 0 auto; }
.lim-opt b { display: block; font-size: 14px; margin-bottom: 6px; }
.lim-opt span { font-size: 13px; color: #555; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.lim-opt .lim-n { width: 70px; height: 30px; text-align: center; }
.lim-tip { font-size: 12px; color: #8a94a6; line-height: 1.7; margin: 2px 0 14px; }
.lim-tip.warn { color: #ad6800; background: #fff7e6; border: 1px solid #ffd591; border-radius: 8px; padding: 8px 10px; }
.b-hint { color: #999; font-size: 12px; padding-left: 98px; }
.fd-req { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.fd-req input { width: 16px; height: 16px; accent-color: var(--primary); }

/* ===== 电脑端：批量生成时段与次数限制卡片等高，时段区域放大 ===== */
@media (min-width: 769px) {
  .slot-row { align-items: stretch; }
  .slot-row .field { margin-bottom: 16px; }
  .periods { grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); gap: 14px 28px; }
  .period-item { gap: 6px; font-size: 14px; }
  .period-item .tsel { gap: 3px; }
  .period-item .tsel select { height: 36px; font-size: 14px; padding: 0 4px 0 8px; }
  .period-item input[type=number] { height: 36px; font-size: 14px; width: 68px !important; }
  .period-item .pdel { font-size: 14px; }
  #bFrom, #bTo, .period-item select, .period-item input { border: 2px solid #6fa4ec; }
  #bFrom:focus, #bTo:focus, .period-item select:focus, .period-item input:focus { border-color: var(--primary); box-shadow: 0 0 0 2px rgba(30,111,217,.15); }
}

/* ===== 手机端 ===== */
.mo { display: none !important; }
.fab { display: none; }
@media (max-width: 768px) {
  .mh { display: none !important; }
  .mo { display: revert !important; }
  .panel { padding: 16px 14px; }
  th, td { padding: 9px 6px; font-size: 13px; }
  .m-tip { font-size: 12px; color: #8a94a6; margin: -4px 0 8px; }

  /* 侧边悬浮导航，点击后扇形展开 */
  .fab { display: block; position: fixed; right: 16px; bottom: 80px; z-index: 70; width: 42px; height: 42px; }
  .board.no-nav .fab { display: none; }
  .fab-btn { position: relative; z-index: 2; width: 42px; height: 42px; border: 0; border-radius: 50%; cursor: pointer; touch-action: none; user-select: none; -webkit-user-select: none;
    background: linear-gradient(135deg, #1e6fd9, #4fa3f7); box-shadow: 0 6px 18px rgba(30,111,217,.4);
    display: flex; align-items: center; justify-content: center; transition: transform .3s;
    color: #fff; font-size: 13px; font-weight: 700; font-family: inherit; letter-spacing: 1px; padding: 0 0 0 1px; }
  .fab.dragging .fab-btn { transform: scale(1.12); box-shadow: 0 10px 26px rgba(30,111,217,.55); }
  .fab.open .fab-btn { transform: scale(1.08); }
  .fab-btn span { pointer-events: none; }
  .fab-btn .fab-x { display: none; font-size: 18px; letter-spacing: 0; line-height: 1; }
  .fab.open .fab-btn .fab-t { display: none; }
  .fab.open .fab-btn .fab-x { display: block; }
  .pv-slot { flex: 0 0 100%; }
  .st-preview { width: 100%; }
  .pv-body { gap: 8px; }
  .pv-date { flex: 1 1 0; width: auto; min-width: 0; }
  .pv-date.mo { display: flex !important; }
  .fab-mask { position: fixed; inset: 0; z-index: 0; background: rgba(15,25,45,.35); backdrop-filter: blur(2px); opacity: 0; visibility: hidden; transition: all .25s; }
  .fab.open .fab-mask { opacity: 1; visibility: visible; }
  .fab-item { position: absolute; z-index: 1; left: -1px; top: -1px; width: 44px; height: 44px; display: flex; flex-direction: column; align-items: center;
    opacity: 0; pointer-events: none; transform: translate(0, 0) scale(.3); transition: transform .3s cubic-bezier(.2,.9,.3,1.25), opacity .2s; }
  .fab.open .fab-item { opacity: 1; pointer-events: auto; transform: translate(var(--x), var(--y)) scale(1); transition-delay: var(--d); }
  .fab-item i { width: 44px; height: 44px; flex: 0 0 44px; border-radius: 50%; background: #fff; color: var(--primary); display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 14px rgba(20,40,80,.25); }
  .fab-item i svg { width: 20px; height: 20px; fill: currentColor; }
  .fab-item.on i { background: linear-gradient(135deg, #1e6fd9, #4fa3f7); color: #fff; }
  .fab-item span { margin-top: 3px; padding: 0 6px; border-radius: 8px; background: rgba(255,255,255,.95); color: #24324a; font-size: 11px; line-height: 17px; white-space: nowrap; box-shadow: 0 2px 6px rgba(20,40,80,.15); }
  .fab-item.on span { color: var(--primary); font-weight: 600; }

  /* 日期筛选：起止日期占一整行 */
  .tb-range { display: flex; align-items: center; gap: 6px; flex: 1 1 100%; min-width: 0; white-space: nowrap; color: #555; }
  .tb-range input { flex: 1 1 0; min-width: 0; width: 0; padding: 0 6px; }
  .toolbar { gap: 8px; }
  .toolbar .sp { display: none; }
  .toolbar #fStatus { flex: 0 0 104px; }
  .toolbar #fKw { flex: 1 1 120px; min-width: 0; width: auto !important; }
  .toolbar .btn-export { flex: 1 1 100%; justify-content: center; }
  .pager { flex-wrap: wrap; justify-content: center; gap: 8px 10px; }
  .pager .pg-t { flex: 0 0 100%; text-align: center; }
  .st-save { justify-content: center; }

  /* 批量生成时段 */
  .slot-row .field { flex-wrap: wrap; gap: 6px 8px; }
  .slot-row .field > label { flex: 0 0 100%; width: auto; text-align: left; color: #333; font-weight: 600; padding-top: 0 !important; }
  .slot-row .field > label:empty { display: none; }
  .periods { flex: 0 0 100%; grid-template-columns: 1fr; gap: 8px; }
  .period-item { flex-wrap: wrap; row-gap: 6px; background: #f7f9fc; border: 1px solid #e9edf3; border-radius: 8px; padding: 8px 10px; }
  .period-item .tsel select { height: 32px; }
  .period-item .pdel { margin-left: auto !important; }
  .b-ops .btn { flex: 1; justify-content: center; margin-left: 0 !important; }
  .b-hint { padding-left: 0; }

  /* 列表 */
  .slot-table tbody tr[data-id] { cursor: pointer; }
  .slot-t { font-size: 12px; color: #8a94a6; margin-top: 2px; }
  .slot-off td { color: #b0b8c6; }
  .rec-table td { white-space: normal; }
  .vt-head { display: flex; align-items: center; gap: 8px; }
  .vt-head .vt-title { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .vt-head .vt-help-link { flex: 0 0 auto; margin-left: 0; padding: 1px 8px 1px 3px; gap: 3px; font-size: 11px; line-height: 16px; }
  .vt-head .vt-help-link i { width: 14px; height: 14px; font-size: 10px; line-height: 14px; }
  .acc-detail .detail-row b { text-align: right; }
  .acc-detail .acc-by { white-space: normal; }
  .dialog .btns.m-btns { flex-wrap: wrap; gap: 8px; }
  .dialog .btns.m-btns .btn, .fd-dialog .btns .btn { min-width: 0; flex: 1 1 40%; }
}