﻿/* Design contract: 克制的运营控制台；暖雾白工作面、墨曜黑导航、海松绿正向状态、陶土橙提醒。 */
/* 设计基准：克制的运营控制台。表格操作采用两列高频入口、低频辅助与独立危险操作的层级，海松绿表示安全确认，红色仅保留给破坏性操作。 */
:root {
  --ink: #1a83eb;
  --ink-soft: #293038;
  --pine: #0d8a6a;
  --pine-dark: #087258;
  --pine-wash: #e6f4ef;
  --terracotta: #d87945;
  --terracotta-wash: #fff2ea;
  --canvas: #f7f7f4;
  --paper: #ffffff;
  --mist: #eef0ec;
  --line: #e8eae5;
  --line-dark: #d9ddd5;
  --muted: #7b848a;
  --muted-strong: #596167;
  --danger: #c84643;
  --danger-wash: #fff0ef;
  --shadow-sm: 0 1px 2px rgba(16, 24, 30, .04), 0 1px 6px rgba(16, 24, 30, .03);
  --shadow-md: 0 18px 45px rgba(27, 33, 34, .10), 0 4px 12px rgba(27, 33, 34, .05);
  --ease-out: cubic-bezier(.23, 1, .32, 1);
  --sidebar-width: 244px;
  color: var(--ink);
  background: var(--canvas);
  font-family: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  font-synthesis: none;
}
* { box-sizing: border-box; }
html { min-width: 320px; background: var(--canvas); }
body { min-height: 100vh; margin: 0; background: var(--canvas); color: var(--ink); }
button, input, select, textarea { font: inherit; }
button { border: 0; }
button:not(:disabled), a, select, input[type='checkbox'], input[type='radio'] { cursor: pointer; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid rgba(13, 138, 106, .28); outline-offset: 2px; }
button:disabled, input:disabled, select:disabled { cursor: not-allowed; opacity: .58; }
img { display: block; max-width: 100%; }
#app { min-height: 100vh; }
.mono { font-family: 'IBM Plex Mono', ui-monospace, monospace; }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 800; letter-spacing: -.03em; }
.brand-mark { width: 36px; height: 36px; border-radius: 11px; box-shadow: 0 4px 13px rgba(20,24,27,.14); }
.brand-mark--lg { width: 54px; height: 54px; border-radius: 16px; }
.brand-name { font-size: 15px; }
.brand-subline { display: block; margin-top: 1px; color: var(--muted); font-size: 10px; font-weight: 600; letter-spacing: .06em; }

/* Public home */
.public-shell { min-height: 100vh; background: var(--canvas); }
.public-nav { display: flex; align-items: center; justify-content: space-between; width: min(1240px, calc(100% - 48px)); height: 82px; margin: 0 auto; }
.public-nav__links { display: flex; align-items: center; gap: 30px; margin-left: auto; margin-right: 28px; }
.public-nav__links button { padding: 8px 0; background: transparent; color: var(--muted-strong); font-size: 13px; font-weight: 700; transition: color 160ms var(--ease-out); }
.public-nav__links button:hover { color: var(--pine); }
.public-hero { position: relative; isolation: isolate; overflow: hidden; width: min(1240px, calc(100% - 48px)); min-height: 530px; padding: 76px 72px; margin: 0 auto 44px; border: 1px solid rgba(255,255,255,.06); border-radius: 16px; background: var(--ink); box-shadow: 0 18px 44px rgba(21,23,25,.12); color: #fff; }
.public-hero::after { position: absolute; z-index: -1; inset: 0; background: linear-gradient(90deg, rgba(21,23,25,.98), rgba(21,23,25,.76) 52%, rgba(21,23,25,.28)); content: ''; }
.public-hero__art { position: absolute; z-index: -2; inset: 0 0 0 auto; width: 64%; height: 100%; background: url('/assets/yuelian-empty-state.webp') center / cover no-repeat; opacity: .9; }
.public-eyebrow { display: inline-flex; align-items: center; gap: 7px; margin-bottom: 22px; color: #bdebdc; font-size: 12px; font-weight: 700; letter-spacing: .1em; }
.public-eyebrow::before { width: 18px; height: 1px; background: var(--pine); content: ''; }
.public-hero h1 { max-width: 590px; margin: 0; font-size: clamp(38px, 5vw, 64px); line-height: 1.12; letter-spacing: -.06em; }
.public-hero p { max-width: 505px; margin: 25px 0 34px; color: #c7cfce; font-size: 16px; line-height: 1.85; }
.public-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.public-ops-index { width: min(1240px, calc(100% - 48px)); margin: 0 auto 72px; border-top: 1px solid var(--line-dark); border-bottom: 1px solid var(--line-dark); background: linear-gradient(90deg, rgba(13,138,106,.035), transparent 38%, rgba(216,121,69,.045)); }
.ops-index__head { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 13px 0; border-bottom: 1px solid var(--line); color: var(--muted-strong); font-size: 11px; font-weight: 700; letter-spacing: .02em; }
.ops-index__head .mono { color: var(--pine-dark); font-size: 11px; letter-spacing: .08em; }
.ops-index__rows { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ops-index__row { position: relative; display: grid; grid-template-columns: 30px 1fr auto; align-items: center; gap: 10px; min-height: 86px; padding: 0 18px; border-right: 1px solid var(--line); background-image: radial-gradient(circle at 14px 18px, rgba(13,138,106,.3) 1px, transparent 1.5px); background-size: 12px 12px; }
.ops-index__row:first-child { border-left: 1px solid var(--line); }
.ops-index__row .mono { align-self: start; padding-top: 20px; color: var(--pine); font-size: 11px; font-weight: 700; }
.ops-index__row strong { font-size: 14px; letter-spacing: -.025em; }
.ops-index__row em { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 11px; font-style: normal; white-space: nowrap; }
.ops-index__row em i { width: 7px; height: 7px; border-radius: 50%; background: var(--pine); box-shadow: 0 0 0 4px var(--pine-wash); }
.ops-index__row em i.is-warm { background: var(--terracotta); box-shadow: 0 0 0 4px var(--terracotta-wash); }
.public-features, .public-about { width: min(1240px, calc(100% - 48px)); margin: 0 auto 80px; }
.section-intro { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 26px; }
.section-intro h2 { margin: 0; font-size: 28px; letter-spacing: -.05em; }
.section-intro p { max-width: 460px; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.75; }
.feature-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.feature-card { position: relative; min-height: 210px; padding: 24px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); box-shadow: var(--shadow-sm); overflow: hidden; }
.feature-card::after { position: absolute; top: 20px; right: 20px; width: 26px; height: 26px; background-image: radial-gradient(circle, rgba(13,138,106,.48) 1.4px, transparent 1.7px); background-size: 8px 8px; content: ''; opacity: .56; }
.feature-card__number { display: block; margin-bottom: 54px; color: var(--pine); font-family: 'IBM Plex Mono', monospace; font-size: 12px; font-weight: 600; }
.feature-card h3 { margin: 0 0 8px; font-size: 16px; letter-spacing: -.03em; }
.feature-card p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.75; }
.about-band { display: grid; grid-template-columns: 1.1fr .9fr; gap: 36px; padding: 42px; border: 1px solid var(--line-dark); border-radius: 12px; background: #ecefe9; }
.about-band h2 { margin: 0 0 14px; font-size: 30px; letter-spacing: -.05em; }
.about-band p { margin: 0; color: var(--muted-strong); font-size: 14px; line-height: 1.85; }
.about-points { display: grid; gap: 10px; }
.about-point { display: flex; align-items: center; justify-content: space-between; padding: 15px 17px; border: 1px solid rgba(255,255,255,.7); border-radius: 6px; background: rgba(255,255,255,.78); font-size: 13px; font-weight: 700; }
.about-point:nth-child(2) .mono { color: var(--terracotta); }
.public-footer { display: flex; align-items: center; justify-content: space-between; width: min(1240px, calc(100% - 48px)); padding: 28px 0 36px; margin: 0 auto; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }

/* Login and registration */
.auth-page { display: grid; min-height: 100vh; grid-template-columns: minmax(360px, 44%) 1fr; background: var(--canvas); }
.login-story { position: relative; z-index: 0; display: flex; flex-direction: column; justify-content: space-between; isolation: isolate; overflow: hidden; padding: 42px 50px; background: var(--ink); color: #fff; }
.login-story::before { position: absolute; z-index: -2; inset: 0; background: url('/assets/yuelian-empty-state.webp') center / cover no-repeat; content: ''; opacity: .83; }
.login-story::after { position: absolute; z-index: -1; inset: 0; background: linear-gradient(180deg, rgba(21,23,25,.24), rgba(21,23,25,.95) 78%); content: ''; }
.login-story .brand { color: #fff; }
.login-story .brand-subline { color: #a9b5b4; }
.login-copy { max-width: 430px; margin-bottom: 10vh; }
.login-copy__kicker { display: inline-flex; padding: 7px 10px; margin-bottom: 22px; border: 1px solid rgba(255,255,255,.12); border-radius: 999px; background: rgba(255,255,255,.08); color: #bfeade; font-family: 'IBM Plex Mono', monospace; font-size: 11px; }
.login-copy h1 { margin: 0; font-size: clamp(42px, 4.1vw, 64px); line-height: 1.12; letter-spacing: -.07em; }
.login-copy p { max-width: 360px; margin: 21px 0 0; color: #c7cfce; font-size: 15px; line-height: 1.8; }
.login-story__footer { display: flex; align-items: center; gap: 12px; color: #a9b5b4; font-family: 'IBM Plex Mono', monospace; font-size: 11px; }
.login-story__footer::before { width: 36px; height: 1px; background: #4d5c5b; content: ''; }
.auth-main { display: grid; place-items: center; padding: 50px 34px; }
.auth-card { width: min(100%, 430px); }
.auth-back { display: inline-flex; align-items: center; gap: 7px; padding: 0; margin-bottom: 40px; background: transparent; color: var(--muted-strong); font-size: 13px; font-weight: 700; }
.auth-card__title { margin: 0; font-size: 30px; letter-spacing: -.055em; }
.auth-card__subtitle { margin: 9px 0 28px; color: var(--muted); font-size: 13px; }
.auth-tabs { display: flex; gap: 22px; margin-bottom: 26px; border-bottom: 1px solid var(--line); }
.auth-tab { position: relative; padding: 0 0 12px; background: none; color: var(--muted); font-size: 14px; font-weight: 700; }
.auth-tab.is-active { color: var(--ink); }
.auth-tab.is-active::after { position: absolute; right: 0; bottom: -1px; left: 0; height: 2px; background: var(--pine); content: ''; }

/* Buttons and fields */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 38px; padding: 0 14px; border: 1px solid transparent; border-radius: 10px; background: var(--ink); color: #fff; font-size: 13px; font-weight: 700; line-height: 1; transition: transform 150ms var(--ease-out), background 150ms var(--ease-out), border-color 150ms var(--ease-out), color 150ms var(--ease-out), box-shadow 150ms var(--ease-out); }
.btn:hover { background: #262b2e; box-shadow: 0 8px 18px rgba(21,23,25,.13); }
.btn:active { transform: scale(.97); }
.btn--primary { background: var(--pine); }
.btn--primary:hover { background: var(--pine-dark); box-shadow: 0 8px 18px rgba(13,138,106,.18); }
.btn--ghost { border-color: var(--line-dark); background: transparent; color: var(--ink-soft); }
.btn--ghost:hover { border-color: #cfd5cd; background: #f0f2ee; box-shadow: none; }
.btn--soft { background: var(--pine-wash); color: var(--pine-dark); }
.btn--soft:hover { background: #d9eee6; box-shadow: none; }
.btn--danger { background: var(--danger-wash); color: var(--danger); }
.btn--danger:hover { background: #fee2e0; box-shadow: none; }
.btn--small { min-height: 31px; padding: 0 10px; border-radius: 8px; font-size: 12px; }
.btn--wide { width: 100%; min-height: 46px; }
.icon-btn { display: inline-grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); color: var(--muted-strong); transition: color 160ms var(--ease-out), border-color 160ms var(--ease-out), background 160ms var(--ease-out), transform 150ms var(--ease-out); }
.icon-btn:hover { border-color: #cdd4cd; background: #f7f9f6; color: var(--pine); }
.icon-btn:active { transform: scale(.97); }
.field { display: grid; gap: 8px; }
.field + .field { margin-top: 18px; }
.field > label, .field-label { color: var(--ink-soft); font-size: 12px; font-weight: 800; }
.field-hint { color: var(--muted); font-size: 11px; line-height: 1.6; }
.input, .select, .textarea { width: 100%; min-height: 42px; padding: 0 12px; border: 1px solid var(--line-dark); border-radius: 10px; outline: none; background: var(--paper); color: var(--ink); font-size: 13px; transition: border-color 150ms var(--ease-out), box-shadow 150ms var(--ease-out); }
.textarea { min-height: 94px; padding-top: 11px; resize: vertical; }
.input::placeholder, .textarea::placeholder { color: #aab1b0; }
.input:focus, .select:focus, .textarea:focus { border-color: rgba(13,138,106,.72); box-shadow: 0 0 0 3px rgba(13,138,106,.12); }
.input-with-icon { position: relative; }
.input-with-icon svg { position: absolute; top: 50%; left: 12px; color: #96a09d; transform: translateY(-50%); }
.input-with-icon .input { padding-left: 37px; }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.form-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 26px; }
.divider { height: 1px; margin: 22px 0; background: var(--line); }
.check-row { display: flex; align-items: center; gap: 8px; margin-top: 16px; color: var(--muted-strong); font-size: 12px; }
.check-row input { width: 15px; height: 15px; accent-color: var(--pine); }

/* Admin shell */
.admin-shell { min-height: 100vh; background: var(--canvas); }
.sidebar { position: fixed; z-index: 30; inset: 0 auto 0 0; display: flex; flex-direction: column; width: var(--sidebar-width); padding: 24px 14px 18px; border-right: 1px solid var(--line); background: var(--paper); }
.sidebar__brand { padding: 0 11px; margin-bottom: 33px; }
.sidebar__nav { display: grid; gap: 5px; }
.nav-item { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 45px; padding: 0 14px; border-radius: 12px; background: transparent; color: #626b70; text-align: left; font-size: 13px; font-weight: 700; transition: background 160ms var(--ease-out), color 160ms var(--ease-out), transform 160ms var(--ease-out); }
.nav-item svg { width: 17px; height: 17px; stroke-width: 1.9; }
.nav-item:hover { background: #f1f3f0; color: var(--ink); }
.nav-item:active { transform: translateX(2px); }
.nav-item.is-active { background: var(--ink); color: #fff; box-shadow: 0 9px 18px #a9d8f2; }
.sidebar__footer { padding: 16px 11px 0; margin-top: auto; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; line-height: 1.65; }
.sidebar__footer strong { display: block; color: var(--ink-soft); font-size: 12px; }
.content-shell { min-height: 100vh; padding-left: var(--sidebar-width); }
.topbar { position: sticky; z-index: 20; top: 0; display: flex; align-items: center; justify-content: space-between; height: 70px; padding: 0 32px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.9); backdrop-filter: blur(18px); }
.topbar__title { margin: 0; font-size: 16px; font-weight: 800; letter-spacing: -.04em; }
.topbar__right { display: flex; align-items: center; gap: 10px; }
.account-chip { display: flex; align-items: center; gap: 9px; padding: 6px 8px 6px 10px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--muted-strong); font-size: 12px; box-shadow: var(--shadow-sm); }
.account-chip__user { color: var(--ink); font-weight: 800; }
.account-chip__divide { width: 1px; height: 14px; background: var(--line-dark); }
.account-chip button { padding: 0; background: none; color: inherit; font-size: inherit; }
.account-chip button:hover { color: var(--pine); }
.mobile-menu { display: none; }
.main { width: min(100%, 1580px); padding: 34px 32px 54px; margin: 0 auto; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.page-head h1 { margin: 0; font-size: 30px; line-height: 1; letter-spacing: -.06em; }
.page-head p { margin: 8px 0 0; color: var(--muted); font-size: 13px; }
.page-head__actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }

/* Dashboard */
.metrics { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
.metric-card { position: relative; min-height: 132px; padding: 19px; overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: var(--paper); box-shadow: var(--shadow-sm); }
.metric-card::after { position: absolute; right: -18px; bottom: -25px; width: 92px; height: 92px; border-radius: 50%; background: var(--metric-wash, #f3f4f2); content: ''; }
.metric-card__icon { position: relative; z-index: 1; display: grid; place-items: center; width: 34px; height: 34px; margin-left: auto; border-radius: 10px; background: var(--metric-wash, #f3f4f2); color: var(--metric-color, var(--ink)); }
.metric-card__label { position: relative; z-index: 1; display: block; margin-top: -26px; color: var(--muted); font-size: 12px; font-weight: 700; }
.metric-card__value { position: relative; z-index: 1; display: block; margin-top: 11px; color: var(--ink); font-family: 'IBM Plex Mono', monospace; font-size: 27px; font-weight: 600; letter-spacing: -.06em; }
.metric-card__note { position: relative; z-index: 1; display: block; margin-top: 4px; color: var(--muted); font-size: 10px; }
.dashboard-grid { display: grid; grid-template-columns: 1.3fr .7fr; gap: 14px; margin-top: 14px; }
.panel { overflow: hidden; border: 1px solid var(--line); border-radius: 17px; background: var(--paper); box-shadow: var(--shadow-sm); }
.panel__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.panel__title { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 15px; letter-spacing: -.025em; }
.panel__title-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--pine); box-shadow: 0 0 0 5px var(--pine-wash); }
.notice { position: relative; min-height: 245px; padding: 24px 226px 25px 24px; background: #fbfcfa; }
.notice__label { color: var(--pine); font-family: 'IBM Plex Mono', monospace; font-size: 11px; font-weight: 600; letter-spacing: .08em; }
.notice h3 { max-width: 500px; margin: 11px 0 10px; font-size: 21px; letter-spacing: -.055em; }
.notice p { max-width: 585px; margin: 0; color: var(--muted-strong); font-size: 13px; line-height: 1.8; }
.notice__art { position: absolute; top: 0; right: 0; bottom: 0; width: 38%; background: url('/assets/yuelian-dashboard-routes_da3def6c.png') center / cover no-repeat; opacity: .92; }
.notice__contact { display: inline-flex; align-items: center; gap: 7px; padding: 7px 10px; margin-top: 18px; border: 1px solid var(--line); border-radius: 9px; background: #fff; color: var(--ink-soft); font-size: 12px; font-weight: 700; }
.notice__contact:hover { border-color: #cfd5ce; color: var(--pine); }
.quick-panel { display: grid; grid-template-rows: 1fr 1fr; gap: 14px; }
.quick-action { display: flex; align-items: center; gap: 14px; width: 100%; padding: 23px; border: 1px solid var(--line); border-radius: 17px; background: var(--paper); color: inherit; text-align: left; box-shadow: var(--shadow-sm); transition: transform 170ms var(--ease-out), box-shadow 170ms var(--ease-out), border-color 170ms var(--ease-out); }
.quick-action:hover { border-color: #ccd7d2; box-shadow: 0 16px 28px rgba(28,39,36,.09); transform: translateY(-2px); }
.quick-action__icon { display: grid; flex: 0 0 auto; place-items: center; width: 44px; height: 44px; border-radius: 13px; background: #def2ed; color: var(--pine); }
.quick-action:nth-child(2) .quick-action__icon { background: #fcece3; color: var(--terracotta); }
.quick-action strong { display: block; font-size: 14px; }
.quick-action span { display: block; margin-top: 4px; color: var(--muted); font-size: 12px; }
.quick-action__arrow { margin-left: auto; color: var(--muted); }

/* Work surfaces */
.work-panel { border: 1px solid var(--line); border-radius: 17px; background: var(--paper); box-shadow: var(--shadow-sm); }
.work-panel__tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.tool-group { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.filter-bar { display: grid; grid-template-columns: minmax(180px, 1.2fr) repeat(2, minmax(140px, .75fr)) auto; gap: 10px; padding: 16px 20px; border-bottom: 1px solid var(--line); background: #fbfcfa; }
.filter-bar--visitors { grid-template-columns: repeat(4, minmax(130px, 1fr)); }
.filter-bar .input, .filter-bar .select { min-height: 38px; }
.switch-row { display: flex; flex-wrap: wrap; gap: 11px 18px; padding: 14px 20px; border-bottom: 1px solid var(--line); background: #fff; }
.switch-label { display: inline-flex; align-items: center; gap: 7px; color: var(--muted-strong); font-size: 12px; font-weight: 700; }
.switch { position: relative; flex: 0 0 auto; width: 31px; height: 18px; border-radius: 999px; background: #d6dbd5; transition: background 160ms var(--ease-out); }
.switch::after { position: absolute; top: 3px; left: 3px; width: 12px; height: 12px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.18); content: ''; transition: transform 160ms var(--ease-out); }
.switch.is-on { background: var(--pine); }
.switch.is-on::after { transform: translateX(13px); }
.table-wrap { overflow-x: auto; }
.data-table { width: 100%; min-width: 940px; border-spacing: 0; border-collapse: collapse; text-align: left; }
.data-table th { padding: 13px 14px; border-bottom: 1px solid var(--line); color: var(--muted); background: #fbfcfa; font-size: 11px; font-weight: 800; white-space: nowrap; }
.data-table td { padding: 15px 14px; border-bottom: 1px solid #eef0ed; color: var(--ink-soft); font-size: 12px; vertical-align: middle; }
.data-table tr:last-child td { border-bottom: 0; }
.data-table tbody tr { transition: background 150ms var(--ease-out); }
.data-table tbody tr:hover { background: #fafcf9; }
.table-primary { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); font-weight: 800; }
.drag-dot { width: 6px; height: 15px; background: radial-gradient(circle, #a5ada8 1.2px, transparent 1.5px) 0 0 / 6px 6px; opacity: .85; }
.table-sub { display: flex; flex-wrap: wrap; gap: 4px; max-width: 240px; margin-top: 4px; }
.tag { display: inline-flex; align-items: center; gap: 3px; padding: 2px 8px; border-radius: 10px; font-size: 11px; font-weight: 600; line-height: 1.5; white-space: nowrap; }
.tag::before { content: ''; width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }
.tag-success { background: #e9f3eb; color: #22763d; }
.tag-success::before { background: #3cba5a; }
.tag-danger { background: #fdf0ee; color: #b74538; }
.tag-danger::before { background: #e05547; }
.tag-default { background: #f3f5f4; color: #6f7b75; }
.tag-default::before { background: #a5ada8; }
.table-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.table-action-cell { min-width: 248px; }
.status-cell { display: flex; flex-direction: column; align-items: flex-start; gap: 7px; }
.status-cell__toggle { min-width: 54px; }
.code-actions { display: grid; min-width: 238px; gap: 7px; }
.code-actions__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.code-actions__utility { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px; padding-top: 7px; border-top: 1px dashed var(--line-dark); }
.code-action { width: 100%; min-height: 31px; padding: 0 9px; letter-spacing: -.01em; }
.code-action svg { flex: 0 0 auto; }
.code-action--utility { justify-content: flex-start; }
.code-action--danger { min-width: 70px; }
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 4px 8px; border-radius: 999px; background: #eff1ee; color: var(--muted-strong); font-size: 10px; font-weight: 800; white-space: nowrap; }
.badge::before { width: 5px; height: 5px; border-radius: 50%; background: currentColor; content: ''; }
.badge--success { background: var(--pine-wash); color: var(--pine-dark); }
.badge--warning { background: var(--terracotta-wash); color: #ad572b; }
.badge--danger { background: var(--danger-wash); color: var(--danger); }
.badge--muted { background: #eef0ef; color: #78817f; }
.pagination { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 15px 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.pagination__actions { display: flex; align-items: center; gap: 7px; }
.empty-state { display: grid; place-items: center; min-height: 300px; padding: 40px; text-align: center; }
.empty-state img { width: 116px; margin-bottom: 13px; }
.empty-state h3 { margin: 0 0 7px; font-size: 15px; letter-spacing: -.03em; }
.empty-state p { max-width: 310px; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.75; }
.qr-preview { display: grid; grid-template-columns: 166px minmax(0, 1fr); align-items: center; gap: 22px; }
.qr-preview__matrix { display: grid; grid-template-columns: repeat(21, minmax(0, 1fr)); gap: 0; width: 166px; padding: 10px; border: 1px solid var(--line-dark); border-radius: 14px; background: #fff; box-shadow: var(--shadow-sm); }
.qr-cell { aspect-ratio: 1; background: #fff; }
.qr-cell.is-dark { background: var(--ink); }
.qr-preview__eyebrow { display: block; color: var(--pine); font-family: 'IBM Plex Mono', monospace; font-size: 10px; font-weight: 700; letter-spacing: .08em; }
.qr-preview__copy h3 { margin: 8px 0 8px; color: var(--ink); font-size: 18px; letter-spacing: -.04em; }
.qr-preview__copy p { margin: 0; color: var(--muted-strong); font-size: 12px; line-height: 1.75; }
.qr-preview__copy code { display: block; overflow: hidden; padding: 9px 10px; margin-top: 14px; border: 1px solid var(--line); border-radius: 9px; background: #f7f8f6; color: var(--ink-soft); font-family: 'IBM Plex Mono', monospace; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }

/* Inventory and cards */
.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.package-card { position: relative; display: flex; flex-direction: column; min-height: 248px; padding: 24px; overflow: hidden; border: 1px solid var(--line); border-radius: 17px; background: var(--paper); box-shadow: var(--shadow-sm); transition: transform 170ms var(--ease-out), border-color 170ms var(--ease-out), box-shadow 170ms var(--ease-out); }
.package-card:hover { border-color: #b5cbc2; box-shadow: 0 14px 32px rgba(28,39,36,.09); transform: translateY(-3px); }
.package-card.is-selected { border-color: var(--pine); box-shadow: 0 0 0 3px rgba(13,138,106,.11); }
.package-card__number { color: var(--muted); font-family: 'IBM Plex Mono', monospace; font-size: 11px; }
.package-card h3 { margin: 32px 0 5px; font-size: 17px; letter-spacing: -.04em; }
.package-card p { min-height: 42px; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.7; }
.package-price { margin: auto 0 5px; color: var(--pine); font-family: 'IBM Plex Mono', monospace; font-size: 30px; font-weight: 600; letter-spacing: -.07em; }
.package-meta { color: var(--muted); font-size: 11px; }
.summary-strip { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; margin-bottom: 16px; }
.summary-card { padding: 22px; border-radius: 16px; background: linear-gradient(135deg, #f8fffc, #e7f5ef); border: 1px solid #d5ede3; }
.summary-card:nth-child(2) { background: linear-gradient(135deg, #fffaf6, #fff0e8); border-color: #f7dfce; }
.summary-card span { display: block; color: var(--muted-strong); font-size: 12px; font-weight: 700; }
.summary-card strong { display: block; margin-top: 11px; color: var(--ink); font-family: 'IBM Plex Mono', monospace; font-size: 29px; letter-spacing: -.06em; }
.amount-preset { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 10px; }
.preset { min-height: 36px; border: 1px solid var(--line-dark); border-radius: 9px; background: #fff; color: var(--muted-strong); font-family: 'IBM Plex Mono', monospace; font-size: 12px; font-weight: 600; }
.preset:hover, .preset.is-active { border-color: var(--pine); background: var(--pine-wash); color: var(--pine-dark); }
.recharge-layout { display: grid; grid-template-columns: 1.2fr .8fr; gap: 14px; }
.recharge-card { padding: 24px; border: 1px solid var(--line); border-radius: 17px; background: var(--paper); box-shadow: var(--shadow-sm); }
.recharge-card h2 { margin: 0 0 8px; font-size: 17px; letter-spacing: -.04em; }
.recharge-card p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.7; }
.tip { padding: 10px 12px; margin: 18px 0; border: 1px solid #d9ede5; border-radius: 10px; background: #f2fbf7; color: var(--pine-dark); font-size: 11px; line-height: 1.65; }
.subtabs { display: inline-flex; gap: 2px; padding: 4px; border-radius: 11px; background: #eef1ee; }
.subtab { padding: 8px 12px; border-radius: 8px; background: transparent; color: var(--muted-strong); font-size: 12px; font-weight: 800; }
.subtab.is-active { background: #fff; color: var(--ink); box-shadow: 0 1px 4px rgba(21,23,25,.1); }

/* Modal, dropdown, toast */
.modal-backdrop { position: fixed; z-index: 80; inset: 0; display: grid; place-items: center; padding: 24px; background: rgba(21,23,25,.42); backdrop-filter: blur(4px); }
.modal { width: min(100%, 620px); max-height: min(760px, calc(100vh - 48px)); overflow: auto; border: 1px solid rgba(255,255,255,.82); border-radius: 18px; background: #fff; box-shadow: var(--shadow-md); animation: modal-in 220ms var(--ease-out); }
.modal--sm { width: min(100%, 430px); }
.modal__head { display: flex; align-items: center; justify-content: space-between; padding: 19px 20px; border-bottom: 1px solid var(--line); }
.modal__head h2 { margin: 0; font-size: 17px; letter-spacing: -.04em; }
.modal__body { padding: 20px; }
.modal__close { display: grid; place-items: center; width: 30px; height: 30px; padding: 0; border-radius: 8px; background: transparent; color: var(--muted); }
.modal__close:hover { background: #f1f3f0; color: var(--ink); }
.radio-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 8px; margin-top: 8px; }
.radio-card { position: relative; min-height: 77px; padding: 12px; border: 1px solid var(--line-dark); border-radius: 11px; background: #fff; text-align: left; }
.radio-card:hover { border-color: #bcd0c7; }
.radio-card.is-selected { border-color: var(--pine); background: var(--pine-wash); box-shadow: inset 0 0 0 1px var(--pine); }
.radio-card strong { display: block; font-size: 12px; }
.radio-card span { display: block; margin-top: 4px; color: var(--muted); font-size: 10px; line-height: 1.45; }
.picker-row { display: flex; align-items: center; justify-content: space-between; padding: 11px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fbfcfa; }
.picker-row + .picker-row { margin-top: 8px; }
.picker-row.is-selected { border-color: var(--pine); background: var(--pine-wash); }
.picker-row__info strong { display: block; font-size: 12px; }
.picker-row__info span { display: block; max-width: 360px; overflow: hidden; margin-top: 3px; color: var(--muted); font-size: 16px; text-overflow: ellipsis; white-space: nowrap; }
.toast-stack { position: fixed; z-index: 100; right: 20px; top: 20px; display: grid; gap: 9px; width: min(360px, calc(100vw - 40px)); }
.toast { display: flex; align-items: flex-start; gap: 10px; padding: 13px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.97); box-shadow: 0 12px 28px rgba(24,29,31,.15); animation: toast-in 200ms var(--ease-out); }
.toast__mark { display: grid; flex: 0 0 auto; place-items: center; width: 23px; height: 23px; border-radius: 50%; background: var(--pine-wash); color: var(--pine); }
.toast--danger .toast__mark { background: var(--danger-wash); color: var(--danger); }
.toast strong { display: block; font-size: 12px; }
.toast span { display: block; margin-top: 3px; color: var(--muted); font-size: 11px; line-height: 1.55; }
.user-menu { position: absolute; z-index: 50; top: 58px; right: 32px; width: 190px; padding: 7px; border: 1px solid var(--line); border-radius: 13px; background: #fff; box-shadow: var(--shadow-md); animation: modal-in 160ms var(--ease-out); }
.user-menu button { display: flex; align-items: center; gap: 9px; width: 100%; min-height: 36px; padding: 0 10px; border-radius: 8px; background: transparent; color: var(--ink-soft); text-align: left; font-size: 12px; font-weight: 700; }
.user-menu button:hover { background: #f1f3f0; }
.user-menu button:last-child { color: var(--danger); }
.no-scroll { overflow: hidden; }
@keyframes modal-in { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes toast-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 1240px) {
  .metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .dashboard-grid { grid-template-columns: 1fr; }
  .quick-panel { grid-template-columns: 1fr 1fr; grid-template-rows: none; }
  .card-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 980px) {
  .sidebar { transform: translateX(-102%); transition: transform 220ms var(--ease-out); box-shadow: var(--shadow-md); }
  .sidebar.is-open { transform: translateX(0); }
  .content-shell { padding-left: 0; }
  .topbar { padding: 0 20px; }
  .mobile-menu { display: inline-grid; }
  .main { padding: 28px 20px 48px; }
  .topbar__right > .btn--ghost { display: none; }
  .filter-bar, .filter-bar--visitors { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .data-table { min-width: 1080px; }
  .recharge-layout { grid-template-columns: 1fr; }
  .auth-page { grid-template-columns: 1fr; }
  .login-story { min-height: 310px; padding: 28px; }
  .login-copy { margin: 38px 0 0; }
  .login-copy h1 { max-width: 510px; font-size: 44px; }
  .login-story__footer { display: none; }
}
@media (max-width: 680px) {
  .public-nav, .public-hero, .public-features, .public-about, .public-footer { width: min(100% - 30px, 1240px); }
  .public-nav { height: 69px; }
  .public-nav__links { display: none; }
  .public-hero { min-height: 480px; padding: 48px 26px; border-radius: 20px; }
  .public-hero__art { width: 100%; opacity: .5; }
  .public-hero::after { background: rgba(21,23,25,.75); }
  .ops-index__rows, .feature-grid, .about-band { grid-template-columns: 1fr; }
  .ops-index__row, .ops-index__row:first-child { border-right: 0; border-left: 0; border-bottom: 1px solid var(--line); }
  .ops-index__row:last-child { border-bottom: 0; }
  .section-intro, .public-footer { align-items: flex-start; flex-direction: column; }
  .about-band { padding: 27px; }
  .auth-main { padding: 38px 22px; }
  .login-story { min-height: 270px; }
  .login-copy h1 { font-size: 37px; }
  .topbar { height: 62px; padding: 0 14px; }
  .topbar__title { display: none; }
  .topbar__right { margin-left: auto; }
  .account-chip { padding: 5px 8px; }
  .account-chip__divide, .account-chip__balance { display: none; }
  .main { padding: 24px 14px 38px; }
  .page-head { align-items: flex-start; flex-direction: column; gap: 13px; }
  .page-head h1 { font-size: 27px; }
  .page-head__actions { justify-content: flex-start; }
  .metrics { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; }
  .metric-card { min-height: 118px; padding: 15px; }
  .metric-card__value { font-size: 23px; }
  .notice { min-height: 280px; padding: 22px; }
  .notice__art { width: 50%; opacity: .27; }
  .quick-panel { grid-template-columns: 1fr; }
  .work-panel__tools, .filter-bar, .filter-bar--visitors { padding: 14px; }
  .filter-bar, .filter-bar--visitors { grid-template-columns: 1fr; }
  .switch-row { padding: 14px; }
  .pagination { align-items: flex-start; flex-direction: column; padding: 14px; }
  .summary-strip, .card-grid, .form-row { grid-template-columns: 1fr; }
  .package-card { min-height: 222px; }
  .amount-preset { grid-template-columns: repeat(2, 1fr); }
  .modal-backdrop { padding: 14px; }
  .modal { max-height: calc(100vh - 28px); border-radius: 15px; }
  .radio-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .qr-preview { grid-template-columns: 1fr; justify-items: center; gap: 17px; }
  .qr-preview__copy { width: 100%; }
  .qr-preview__copy .form-actions { margin-top: 18px; }
  .code-actions { min-width: 232px; }
  .user-menu { top: 54px; right: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}


/* 活码管理截图重构：克制运营控制台——高频数据保持紧凑，危险操作独立强调，弹窗使用左右分栏完成选择与预览。 */
.btn--danger-outline { border: 1px solid #f1cdcb; background: #fff8f7; color: var(--danger); }
.btn--danger-outline:hover { border-color: #e5a7a2; background: #fff0ef; }
.code-workspace { overflow: visible; }
.code-workspace__notice { display: flex; align-items: center; gap: 14px; margin: 14px 20px 0; padding: 12px 14px; border: 1px solid #bee7ef; border-radius: 12px; background: #effaff; color: #34758a; font-size: 12px; line-height: 1.55; }
.code-workspace__notice strong { color: #1d657c; font-size: 12px; white-space: nowrap; }
.code-workspace__tools { position: relative; margin-top: 0; }
.code-workspace__actions { position: relative; }
.bulk-actions { position: relative; }
.bulk-menu { position: absolute; z-index: 32; top: calc(100% + 8px); right: 0; display: grid; width: 150px; padding: 6px; border: 1px solid var(--line-dark); border-radius: 11px; background: #fff; box-shadow: var(--shadow-md); transform-origin: top right; animation: modal-in 160ms var(--ease-out); }
.bulk-menu button { width: 100%; min-height: 35px; padding: 0 10px; border-radius: 7px; background: transparent; color: var(--ink-soft); text-align: left; font-size: 12px; font-weight: 700; }
.bulk-menu button:hover { background: var(--pine-wash); color: var(--pine-dark); }
.code-filter-bar { grid-template-columns: minmax(180px, 1.25fr) repeat(2, minmax(130px, .78fr)) auto auto; }
.code-switch-row { gap: 15px 28px; }
.code-switch-row .switch-label { color: #6f7876; }
.access-pill { display: inline-flex; align-items: center; padding: 4px 8px; border-radius: 999px; background: #e9f9f2; color: #19815f; font-size: 10px; font-weight: 800; white-space: nowrap; }
.table-number { color: var(--ink); font-family: 'IBM Plex Mono', monospace; font-size: 13px; font-weight: 700; }
.table-number--blue { color: #5089c7; }
.table-number--warning { color: #d67a3b; }
.code-data-table { min-width: 1240px; }
.code-check-cell { text-align: center; vertical-align: middle !important; }
.code-check-cell input { width: 18px; height: 18px; accent-color: var(--pine); cursor: pointer; }
.code-data-table th, .code-data-table td { padding-right: 11px; padding-left: 11px; }
.code-data-table th:first-child, .code-data-table td:first-child { padding-left: 20px; }
.code-data-table th:last-child, .code-data-table td:last-child { padding-right: 20px; }
.code-data-table .table-action-cell { min-width: 220px; }
.code-actions--screenshot { min-width: 194px; gap: 6px; }
.code-actions--screenshot .code-actions__utility { padding-top: 0; border-top: 0; }
.code-actions__utility--single { display: flex; justify-content: flex-start; }
.code-actions__utility--single .code-action--danger { width: 78px; }
.modal--code { width: min(100%, 1120px); }
.modal--code .modal__body { padding: 0; }
.code-modal-form { display: flex; flex-direction: column; min-height: 520px; }
.code-modal-grid { display: grid; grid-template-columns: minmax(280px, .42fr) minmax(0, .78fr); gap: 24px; padding: 22px 20px 18px; }
.code-modal__left { display: grid; align-content: start; gap: 13px; }
.code-modal__left .field { margin-bottom: 0; }
.code-modal__right { min-width: 0; }
.inner-picker__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 9px; }
.inner-picker__head strong { color: var(--ink); font-size: 13px; }
.inner-picker__head span { color: var(--muted); font-size: 11px; }
.inner-picker-list { display: grid; gap: 8px; max-height: 170px; overflow: auto; padding: 10px; border: 1px solid var(--line); border-radius: 12px; background: #fcfdfb; }
.internal-choice { display: grid; grid-template-columns: 17px minmax(0,1fr); align-items: start; gap: 9px; padding: 10px; border: 1px solid transparent; border-radius: 9px; background: #fff; cursor: pointer; transition: border-color 160ms var(--ease-out), background 160ms var(--ease-out); }
.internal-choice:hover { border-color: #c9d9d0; }
.internal-choice.is-selected { border-color: #9ccbb7; background: var(--pine-wash); }
.internal-choice input { position: absolute; opacity: 0; pointer-events: none; }
.internal-choice__check { display: grid; place-items: center; width: 16px; height: 16px; margin-top: 1px; border: 1px solid #bfc8c2; border-radius: 4px; background: #fff; color: transparent; }
.internal-choice.is-selected .internal-choice__check { border-color: var(--pine); background: var(--pine); color: #fff; }
.internal-choice__content strong, .internal-choice__content small { display: block; }
.internal-choice__content strong { color: var(--ink); font-size: 12px; }
.internal-choice__content small { overflow: hidden; margin-top: 4px; color: var(--muted); font-size: 10px; line-height: 1.4; text-overflow: ellipsis; white-space: nowrap; }
.internal-preview { margin-top: 14px; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.internal-preview__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 14px; border-bottom: 1px solid var(--line); background: #fbfcfa; }
.internal-preview__head strong { color: var(--ink); font-size: 12px; }
.internal-preview__head span { color: var(--muted); font-size: 11px; }
.inner-preview-table { width: 100%; min-width: 570px; border-collapse: collapse; text-align: left; }
.inner-preview-table th { padding: 11px 14px; color: var(--muted); background: #fff; font-size: 10px; font-weight: 800; white-space: nowrap; }
.inner-preview-table td { padding: 12px 14px; border-top: 1px solid #eef0ed; color: var(--ink-soft); font-size: 11px; vertical-align: top; }
.inner-preview-table .table-sub { max-width: 156px; margin: 0; }
.inner-preview-table__empty { color: var(--muted) !important; text-align: center; }
.modal-switch-row { display: flex; align-items: center; justify-content: space-between; min-height: 36px; color: var(--ink-soft); font-size: 12px; font-weight: 700; }
.modal-switch-row > span:last-child { display: inline-flex; align-items: center; gap: 7px; }
.modal-switch-row input { position: absolute; opacity: 0; }
.modal-switch-row i { position: relative; width: 31px; height: 18px; border-radius: 999px; background: #d6dbd5; transition: background 160ms var(--ease-out); }
.modal-switch-row i::after { position: absolute; top: 3px; left: 3px; width: 12px; height: 12px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.18); content: ''; transition: transform 160ms var(--ease-out); }
.modal-switch-row input:checked + i { background: var(--pine); }
.modal-switch-row input:checked + i::after { transform: translateX(13px); }
.modal-switch-row em { min-width: 36px; color: var(--muted); font-size: 11px; font-style: normal; font-weight: 600; }
.code-modal__foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: auto; padding: 16px 20px; border-top: 1px solid var(--line); background: #fff; }
.code-modal__foot .tip { margin: 0; flex: 1; font-size: 11px; }
.code-modal__foot .form-actions { margin: 0; flex: 0 0 auto; }
.bulk-modal-copy { margin: 0 0 16px; color: var(--muted-strong); font-size: 12px; line-height: 1.7; }
.empty-inline { padding: 16px; color: var(--muted); font-size: 12px; text-align: center; }
@media (max-width: 980px) {
  .code-filter-bar { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .modal--code { width: min(100%, 820px); }
  .code-modal-grid { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .code-workspace__notice { align-items: flex-start; flex-direction: column; gap: 4px; margin: 12px 14px 0; }
  .code-workspace__tools { align-items: flex-start; flex-direction: column; }
  .code-workspace__actions { width: 100%; }
  .code-workspace__actions .btn { flex: 1 1 auto; }
  .code-workspace__actions .bulk-actions { flex: 1 1 auto; }
  .code-workspace__actions .bulk-actions > .btn { width: 100%; }
  .bulk-menu { left: 0; right: auto; width: 100%; }
  .code-filter-bar { grid-template-columns: 1fr; }
  .code-modal-grid { padding: 16px 14px; gap: 18px; }
  .inner-picker__head, .code-modal__foot { align-items: flex-start; flex-direction: column; }
  .code-modal__foot .form-actions { width: 100%; }
  .code-modal__foot .form-actions .btn { flex: 1; }
}


/* 访问记录弹窗：延续克制运营控制台的海松绿层级，强调本地演示与隐私脱敏边界。 */
.modal--visitors { width: min(100%, 1180px); }
.modal--visitors .modal__body { padding: 0; background: #fff; }
.visitor-modal { overflow: hidden; }
.visitor-modal__context { display: flex; align-items: flex-start; justify-content: space-between; gap: 22px; padding: 18px 20px; border-bottom: 1px solid var(--line); background: #fff; }
.visitor-modal__eyebrow { display: block; margin-bottom: 5px; color: var(--pine); font-family: 'IBM Plex Mono', monospace; font-size: 10px; font-weight: 700; letter-spacing: .09em; }
.visitor-modal__context h3 { margin: 0; color: var(--ink); font-size: 16px; letter-spacing: -.035em; }
.visitor-modal__context p { margin: 6px 0 0; color: var(--muted); font-size: 11px; line-height: 1.65; }
.visitor-modal__actions { display: flex; flex: 0 0 auto; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.visitor-filter-bar { display: grid; grid-template-columns: minmax(250px, 1.4fr) minmax(165px, .75fr) auto auto; align-items: end; gap: 10px; padding: 15px 20px; border-bottom: 1px solid var(--line); background: #fbfcfa; }
.visitor-filter-field { display: grid; gap: 6px; min-width: 0; }
.visitor-filter-field > span { color: var(--muted-strong); font-size: 11px; font-weight: 800; }
.visitor-filter-field .input, .visitor-filter-field .select { min-width: 0; min-height: 38px; }
.visitor-filter-bar .btn { min-height: 38px; white-space: nowrap; }
.visitor-records-summary { display: grid; grid-template-columns: 1.08fr 1.55fr repeat(2, minmax(150px, .92fr)); gap: 10px; padding: 16px 20px; border-bottom: 1px solid var(--line); background: #fff; }
.visitor-stat { min-height: 104px; padding: 16px; border: 1px solid var(--line); border-radius: 13px; background: #fbfcfa; }
.visitor-stat > span { display: block; color: var(--muted-strong); font-size: 11px; font-weight: 800; }
.visitor-stat > strong { display: block; margin-top: 12px; color: var(--ink); font-family: 'IBM Plex Mono', monospace; font-size: 29px; line-height: .95; letter-spacing: -.075em; }
.visitor-stat > small { display: block; margin-top: 8px; color: var(--muted); font-size: 10px; line-height: 1.35; }
.visitor-stat--total { border-color: #cbe5da; background: linear-gradient(135deg, #f7fffb, #e9f7f0); }
.visitor-stat--total > strong { color: var(--pine-dark); }
.visitor-stat--systems { border-color: #d9e2f0; background: linear-gradient(135deg, #fbfdff, #f0f5fb); }
.visitor-stat__systems { display: flex; flex-wrap: nowrap; gap: 70px; margin-top: 16px; }
.visitor-stat__systems span { display: grid; gap: 2px; min-width: 0; color: #6a7888; font-size: 10px; font-weight: 700; white-space: nowrap; }
.visitor-stat__systems b { color: #3d5d80; font-family: 'IBM Plex Mono', monospace; font-size: 19px; letter-spacing: -.05em; }
.visitor-stat--entered { border-color: #d6ebdf; background: #f8fdf9; }
.visitor-stat--entered > strong { color: var(--pine-dark); }
.visitor-stat--blocked { border-color: #f2dfcf; background: #fffaf6; }
.visitor-stat--blocked > strong { color: #bc7040; }
.visitor-records { background: #fff; }
.visitor-records__headline { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 20px 11px; }
.visitor-records__headline h3 { margin: 0; color: var(--ink); font-size: 13px; letter-spacing: -.02em; }
.visitor-records__headline h3::before { display: inline-block; width: 7px; height: 7px; margin: 0 8px 1px 0; border-radius: 50%; background: var(--pine); content: ''; }
.visitor-records__headline span { display: block; margin-top: 4px; color: var(--muted); font-size: 11px; }
.visitor-records__headline .visitor-records__notice { margin: 0; padding: 5px 8px; border: 1px solid #e2e8e4; border-radius: 999px; background: #fafcfb; color: #74807b; font-size: 10px; font-weight: 700; white-space: nowrap; }
.visitor-records__table { min-width: 950px; }
.visitor-records__table th { background: #fafbf9; }
.visitor-records__table th:first-child, .visitor-records__table td:first-child { padding-left: 20px; }
.visitor-records__table th:last-child, .visitor-records__table td:last-child { padding-right: 20px; }
.visitor-record__index { color: var(--muted-strong); font-size: 11px; }
.visitor-record__time, .visitor-record__system, .visitor-record__ip { display: block; max-width: 210px; overflow: hidden; color: var(--ink-soft); font-size: 12px; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.visitor-record__ip { max-width: 190px; font-weight: 700; }
.visitor-empty { display: grid; place-items: center; gap: 6px; min-height: 190px; padding: 30px; border-top: 1px solid var(--line); color: var(--muted); text-align: center; }
.visitor-empty strong { color: var(--ink-soft); font-size: 13px; }
.visitor-empty span { max-width: 320px; font-size: 11px; line-height: 1.65; }
.visitor-modal__pagination { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; }
.visitor-modal__pagination .pagination__actions { flex-wrap: wrap; }
.visitor-page-button, .visitor-page-number { display: grid; place-items: center; min-width: 29px; height: 29px; padding: 0 8px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--muted-strong); font-family: 'IBM Plex Mono', monospace; font-size: 11px; font-weight: 700; transition: border-color 150ms var(--ease-out), background 150ms var(--ease-out), color 150ms var(--ease-out), transform 150ms var(--ease-out); }
.visitor-page-button:hover:not(:disabled), .visitor-page-number:hover, .visitor-page-number.is-active { border-color: var(--pine); background: var(--pine-wash); color: var(--pine-dark); }
.visitor-page-button:disabled { border-color: #edf0ec; background: #fafbfa; color: #b8c0bc; }
.visitor-page-button:active:not(:disabled), .visitor-page-number:active { transform: scale(.97); }

@media (max-width: 980px) {
  .modal--visitors { width: min(100%, 860px); }
  .visitor-records-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .visitor-filter-bar { grid-template-columns: minmax(0, 1fr) minmax(150px, .7fr) auto auto; }
}
@media (max-width: 680px) {
  .visitor-modal__context { align-items: flex-start; flex-direction: column; padding: 15px 14px; }
  .visitor-modal__actions { width: 100%; justify-content: stretch; }
  .visitor-modal__actions .btn { flex: 1; }
  .visitor-filter-bar { grid-template-columns: 1fr; padding: 14px; }
  .visitor-filter-bar .btn { width: 100%; }
  .visitor-records-summary { grid-template-columns: 1fr; padding: 14px; }
  .visitor-stat { min-height: 92px; }
  .visitor-records__headline { align-items: flex-start; flex-direction: column; padding: 15px 14px 10px; }
  .visitor-modal__pagination { align-items: flex-start; flex-direction: column; padding: 14px; }
}


/* 二维码弹窗重构：以“入口调度工作区”为设计重点，沿用海松绿运营控制台层级，使用浅色风险提示、渠道胶囊与双二维码卡片支撑高频操作。 */
.modal--qr { width: min(100%, 1180px); }
.modal--qr .modal__body { padding: 0; background: #fff; }
.qr-modal { overflow: hidden; background: #fff; }
.qr-modal__warning { display: flex; align-items: flex-start; gap: 10px; margin: 18px 20px 0; padding: 12px 14px; border: 1px solid #f0df9c; border-radius: 12px; background: #fffbea; color: #9b6b0d; }
.qr-modal__warning-icon-svg { flex: 0 0 auto; margin-top: 1px; }
.qr-modal__warning p { margin: 0; font-size: 12px; line-height: 1.7; white-space: pre-line; }
.qr-modal__warning strong { margin-right: 7px; color: #855805; }
.qr-modal__entries { display: flex; flex-wrap: wrap; gap: 8px; padding: 15px 20px 13px; border-bottom: 1px solid var(--line); }
.qr-entry { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 0 14px; border: 1px solid currentColor; border-radius: 999px; background: transparent; color: inherit; font-size: 12px; font-weight: 700; line-height: 1; cursor: pointer; transition: transform 150ms var(--ease-out), background 150ms var(--ease-out), color 150ms var(--ease-out), box-shadow 150ms var(--ease-out); }
.qr-entry:hover { transform: translateY(-1px); }
.qr-entry:active { transform: scale(.97); }
.qr-entry__mark { width: 9px; height: 9px; border-radius: 3px; background: currentColor; opacity: .86; }
/* 微信 — 绿底 */
.qr-entry--wechat { border-color: rgba(7, 193, 96, .2); background: #e7f8ee; color: #07c160; }
.qr-entry--wechat:hover { background: #d5f3e2; }
.qr-entry--wechat.is-selected { border-color: #07c160; background: #07c160; color: #fff; box-shadow: 0 4px 12px rgba(7, 193, 96, .26); }
/* QQ — 蓝底 */
.qr-entry--qq { border-color: rgba(18, 150, 219, .2); background: #e3f2fd; color: #1296db; }
.qr-entry--qq:hover { background: #d5eafa; }
.qr-entry--qq.is-selected { border-color: #1296db; background: #1296db; color: #fff; box-shadow: 0 4px 12px rgba(18, 150, 219, .24); }
/* 抖音 — 深灰底 */
.qr-entry--douyin { border-color: rgba(17, 17, 17, .2); background: #f1f1f1; color: #111; }
.qr-entry--douyin:hover { background: #e6e6e6; }
.qr-entry--douyin.is-selected { border-color: #111; background: #111; color: #fff; box-shadow: 0 4px 12px rgba(17, 17, 17, .22); }
.qr-modal__cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; padding: 16px 20px 20px; }
.qr-card { display: flex; min-width: 0; flex-direction: column; padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: #fff; box-shadow: 0 8px 20px rgba(20, 39, 32, .035); }
.qr-card--force { border-color: #eadbdc; background: linear-gradient(180deg, #fff 0%, #fffafa 100%); }
.qr-card__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.qr-card__head strong { color: var(--ink); font-size: 14px; letter-spacing: -.02em; }
.qr-card__head em { color: #c64f5a; font-style: normal; }
.qr-card__head .btn { flex: 0 0 auto; }
.qr-card__link { min-height: 49px; margin-top: 14px; padding: 9px 10px; overflow: hidden; border-radius: 9px; background: #f7f8f6; color: var(--muted-strong); }
.qr-card--force .qr-card__link { background: #fff4f4; }
.qr-card__link code { display: -webkit-box; overflow: hidden; font-family: 'IBM Plex Mono', monospace; font-size: 10px; line-height: 1.55; text-overflow: ellipsis; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.qr-card__matrix { display: grid; grid-template-columns: repeat(21, minmax(0, 1fr)); gap: 0; align-self: center; width: min(100%, 222px); margin: 15px auto 12px; padding: 13px; border: 1px solid #e4e8e5; border-radius: 12px; background: #fff; box-shadow: 0 6px 16px rgba(22, 31, 27, .055); }
.qr-card__matrix .qr-cell { aspect-ratio: 1; background: #fff; }
.qr-card__matrix .qr-cell.is-dark { background: #151719; }
.qr-card__foot { display: flex; align-items: center; justify-content: center; gap: 8px; }
.qr-card__foot > span { color: var(--muted); font-family: 'IBM Plex Mono', monospace; font-size: 10px; }
.qr-modal__footer { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 14px 20px; border-top: 1px solid var(--line); background: #fff; }
.qr-modal__footer-note { display: grid; gap: 3px; }
.qr-modal__footer-note > span { color: var(--ink-soft); font-size: 11px; font-weight: 800; }
.qr-modal__footer-note small { color: var(--muted); font-size: 10px; }
.qr-modal__footer-actions { display: flex; flex: 0 0 auto; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.qr-modal__footer-actions .btn { white-space: nowrap; }
@media (max-width: 980px) {
  .modal--qr { width: min(100%, 850px); }
  .qr-modal__cards { grid-template-columns: 1fr; }
  .qr-card { max-width: 580px; width: 100%; margin-inline: auto; }
}
@media (max-width: 680px) {
  .modal--qr .modal__head { padding: 16px 14px; }
  .qr-modal__warning { margin: 14px 14px 0; padding: 11px 12px; }
  .qr-modal__entries { gap: 7px; padding: 13px 14px 12px; }
  .qr-entry { min-height: 29px; padding: 0 9px; font-size: 11px; }
  .qr-modal__cards { gap: 12px; padding: 14px; }
  .qr-card { padding: 14px; }
  .qr-card__head { align-items: flex-start; flex-direction: column; }
  .qr-card__head .btn { width: 100%; }
  .qr-card__matrix { width: min(100%, 212px); }
  .qr-modal__footer { align-items: flex-start; flex-direction: column; padding: 14px; }
  .qr-modal__footer-actions { width: 100%; justify-content: stretch; }
  .qr-modal__footer-actions .btn { flex: 1 1 100%; }
}

/* 二维码弹窗新增：异常入口状态、remark 说明、footer 异常徽标 */
.qr-entry--abnormal { border-color: rgba(217, 45, 32, .25); background: #fff5f5; color: #d92d20; }
.qr-entry--abnormal:hover { background: #ffe8e8; }
.qr-entry--abnormal.is-selected { border-color: #d92d20; background: #d92d20; color: #fff; box-shadow: 0 4px 12px rgba(217, 45, 32, .28); }
.qr-entry__status-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #d92d20; margin-left: 2px; flex: 0 0 auto; }
.qr-modal__status-warning { display: flex; align-items: center; gap: 9px; margin: 12px 20px 0; padding: 10px 14px; border: 1px solid #f4c2c2; border-radius: 10px; background: #fff5f5; color: #d92d20; font-size: 13px; font-weight: 700; }
.qr-modal__status-warning svg { flex: 0 0 auto; }
.qr-modal__remark { display: flex; align-items: center; gap: 8px; padding: 10px 20px; border-bottom: 1px solid var(--line); background: #fbfdfc; color: var(--ink-soft); font-size: 12px; font-weight: 700; }
.qr-footer-status-badge { display: inline; color: #d92d20; font-size: 10px; font-style: normal; font-weight: 800; margin-left: 4px; padding: 2px 6px; border-radius: 4px; background: #fff5f5; }
@media (max-width: 680px) {
  .qr-modal__status-warning { margin: 10px 14px 0; padding: 9px 12px; font-size: 12px; }
  .qr-modal__remark { padding: 9px 14px; }
}

/* 内码管理表格：以「轻卡片 + 高可读表格」对齐参考图，保留克制运营控制台的海松绿与危险红层级。 */
.internal-workspace {
  padding: 22px;
  overflow: hidden;
  border: 1px solid rgba(217, 221, 213, .78);
  border-radius: 18px;
  background: rgba(255,255,255,.98);
  box-shadow: var(--shadow-sm);
}
.internal-toolbar,
.internal-table-meta,
.internal-table-footer {
  display: flex;
  align-items: center;
  gap: 14px;
}
.internal-toolbar {
  justify-content: space-between;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
.internal-search-fields {
  display: grid;
  grid-template-columns: minmax(154px, .78fr) minmax(260px, 2.2fr) auto;
  flex: 1 1 520px;
  gap: 12px;
  max-width: 785px;
}
.internal-search-fields .input {
  min-width: 0;
  height: 48px;
  border-color: #e8ebe6;
  border-radius: 11px;
  background: #fff;
  box-shadow: inset 0 1px 2px rgba(20, 29, 25, .015);
}
.internal-search-fields .input::placeholder { color: #a0a6a3; }
.internal-toolbar__actions {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}
.internal-toolbar__actions .btn,
.internal-search-fields .btn {
  min-height: 48px;
  padding-inline: 17px;
  border-radius: 11px;
  white-space: nowrap;
}
.internal-workspace .btn--primary {
  border-color: #151918;
  background: #151918;
  color: #fff;
  box-shadow: 0 8px 18px rgba(21, 25, 24, .14);
}
.internal-workspace .btn--primary:hover { background: #29302d; }
.internal-workspace .btn--soft {
  border: 1px solid #a9d8f2;
  background: #f9fdff;
  color: #1873b2;
}
.internal-workspace .btn--soft:hover { border-color: #6db9e3; background: #f0faff; }
.internal-workspace .btn--danger {
  border-color: #ed5658;
  background: #ec4548;
  color: #fff;
  box-shadow: 0 8px 18px rgba(204, 58, 61, .12);
}
.internal-workspace .btn--danger:hover { background: #d83b3e; }
.internal-table-meta {
  justify-content: space-between;
  min-height: 50px;
  padding: 13px 2px 13px;
}
.internal-table-meta__filters {
  display: flex;
  gap: 9px;
  align-items: center;
}
.internal-table-meta .select {
  width: auto;
  min-width: 132px;
  height: 34px;
  padding-block: 5px;
  border-color: #e7ebe6;
  border-radius: 9px;
  color: var(--muted-strong);
  background-color: #fbfcfb;
}
.internal-selected-count {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}
.internal-table-wrap {
  margin-inline: -2px;
  border: 1px solid #edf0eb;
  border-radius: 12px 12px 0 0;
  background: #fff;
}
.internal-data-table {
  min-width: 1370px;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
}
.internal-data-table thead th {
  height: 55px;
  padding: 0 16px;
  border-bottom: 1px solid #e8ece8;
  background: #f6f8f6;
  color: #59615e;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .01em;
  white-space: nowrap;
}
.internal-data-table tbody tr {
  transition: background-color 160ms var(--ease-out);
}
.internal-data-table tbody tr:hover { background: #fbfdfb; }
.internal-data-table tbody td {
  height: 108px;
  padding: 17px 16px;
  border-bottom: 1px solid #ecefea;
  color: #343a38;
  font-size: 14px;
  vertical-align: top;
}
.internal-data-table th:nth-child(1), .internal-data-table td:nth-child(1) { width: 48px; }
.internal-data-table th:nth-child(2), .internal-data-table td:nth-child(2) { width: 112px; }
.internal-data-table th:nth-child(3), .internal-data-table td:nth-child(3) { width: 78px; }
.internal-data-table th:nth-child(4), .internal-data-table td:nth-child(4) { width: min(29vw, 350px); }
.internal-data-table th:nth-child(5), .internal-data-table td:nth-child(5) { width: 116px; }
.internal-data-table th:nth-child(6), .internal-data-table td:nth-child(6) { width: 102px; }
.internal-data-table th:nth-child(7), .internal-data-table td:nth-child(7) { width: 110px; }
.internal-data-table th:nth-child(8), .internal-data-table td:nth-child(8),
.internal-data-table th:nth-child(9), .internal-data-table td:nth-child(9) { width: 120px; }
.internal-data-table th:nth-child(10), .internal-data-table td:nth-child(10) { width: 176px; }
.internal-check-cell { padding-inline: 14px !important; text-align: center; vertical-align: middle !important; }
.internal-check-cell input { width: 18px; height: 18px; accent-color: var(--pine); }
.inner-code-name { margin-top: 2px; font-size: 15px; color: #202624; }
.internal-data-table .table-sub { max-width: 100%; margin-top: 7px; overflow: hidden; color: #8d9691; text-overflow: ellipsis; white-space: nowrap; }
.internal-image-empty { display: inline-flex; align-items: center; justify-content: center; min-width: 28px; height: 26px; color: #9aa29e; }
.internal-link {
  display: -webkit-box;
  overflow: hidden;
  color: #69716e;
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 12px;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow-wrap: anywhere;
}
.access-pill--manual {
  border-color: #f4df98;
  background: #fff9e8;
  color: #b47a13;
}
.internal-status {
  min-width: 64px;
  height: 31px;
  padding: 0 10px;
  border: 1px solid #ecd1cf;
  border-radius: 999px;
  background: #fff7f6;
  color: #b65855;
  font-size: 12px;
  font-weight: 700;
  transition: transform 140ms var(--ease-out), background-color 160ms var(--ease-out), border-color 160ms var(--ease-out);
}
.internal-status:active { transform: scale(.97); }
.internal-status.is-active { border-color: #bbe1d3; background: #edf9f4; color: #17765a; }
.internal-date { padding-top: 22px !important; color: #8d9592 !important; font-size: 12px !important; white-space: nowrap; }
.internal-row-actions { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 0; }
.internal-row-actions .btn { min-height: 38px; padding-inline: 12px; border-radius: 9px; }
.internal-table-footer {
  justify-content: space-between;
  min-height: 82px;
  padding: 19px 5px 0;
  color: #717a76;
  font-size: 13px;
}
.internal-table-footer .pagination__actions { gap: 8px; }
.internal-table-footer .select,
.internal-table-footer .btn,
.internal-page-current {
  height: 39px;
  min-width: 68px;
  border-radius: 8px;
}
.internal-table-footer .select { width: 103px; padding-block: 6px; border-color: #e5e9e4; background-color: #fff; }
.internal-table-footer .btn { padding-inline: 10px; color: #a0a7a3; }
.internal-page-current { display: inline-flex; align-items: center; justify-content: center; border: 1px solid #e6eae5; color: #626a66; background: #fff; }
@media (max-width: 1160px) {
  .internal-toolbar { align-items: stretch; flex-direction: column; }
  .internal-search-fields { max-width: none; }
  .internal-toolbar__actions { justify-content: flex-start; }
}
@media (max-width: 720px) {
  .internal-workspace { padding: 14px; border-radius: 14px; }
  .internal-search-fields { grid-template-columns: 1fr; }
  .internal-toolbar__actions { display: grid; grid-template-columns: 1fr 1fr; }
  .internal-toolbar__actions .btn:last-child { grid-column: span 2; }
  .internal-table-meta, .internal-table-footer { align-items: flex-start; flex-direction: column; }
  .internal-table-meta__filters { width: 100%; overflow-x: auto; padding-bottom: 3px; }
  .internal-table-footer { gap: 13px; }
  .internal-table-footer .pagination__actions { overflow-x: auto; max-width: 100%; padding-bottom: 2px; }
}

/* 内码新增/编辑弹窗：复刻参考图的白底双栏表单工作区，强调上传预览与清晰字段层级。 */
.modal--internal { width: min(100%, 1240px); }
.modal--internal .modal__body { padding: 0; overflow: hidden; }
.internal-modal-form { display: flex; min-height: 548px; flex-direction: column; background: #fff; }
.internal-modal-grid { display: grid; grid-template-columns: minmax(300px, 380px) minmax(0, 1fr); gap: 36px; padding: 26px 30px 22px; }
.internal-modal__media { min-width: 0; }
.internal-modal__main { min-width: 0; }
.internal-modal__media > .field-label { display: block; margin-bottom: 14px; color: var(--ink-soft); font-size: 14px; font-weight: 800; }
.internal-upload { display: block; cursor: pointer; }
.internal-upload__input { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; clip-path: inset(50%); }
.internal-upload__preview { display: flex; min-height: 144px; align-items: center; justify-content: center; flex-direction: column; gap: 8px; overflow: hidden; border: 1px dashed #cfd8d4; border-radius: 20px; background: linear-gradient(145deg, #fbfcfb 0%, #f6f8f7 100%); color: #8b9692; transition: border-color 180ms var(--ease-out), background 180ms var(--ease-out), transform 180ms var(--ease-out); }
.internal-upload:hover .internal-upload__preview, .internal-upload:focus-within .internal-upload__preview { border-color: var(--pine); background: #f6fbf8; transform: translateY(-1px); }
.internal-upload__preview.has-image { display: block; border-style: solid; background: #f7f8f7; }
.internal-upload__preview img { display: block; width: 100%; height: 344px; object-fit: cover; }
.internal-upload__icon { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 4px; border-radius: 14px; background: #eaf4ee; color: var(--pine); }
.internal-upload__preview strong { color: var(--ink-soft); font-size: 14px; font-weight: 750; }
.internal-upload__preview small { color: var(--muted); font-size: 11px; letter-spacing: .02em; }
.internal-image-url-field { margin-top: 22px; }
.internal-image-url-field label span { margin-left: 4px; color: var(--muted); font-size: 11px; font-weight: 600; }
.internal-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 21px 22px; }
.internal-form-grid .field { margin: 0; }
.internal-form-grid .field--wide { grid-column: 1 / -1; }
.internal-form-grid .field > label { display: inline-block; margin-bottom: 8px; color: var(--ink-soft); font-size: 14px; }
.internal-form-grid .input, .internal-form-grid .select { min-height: 54px; border-color: #dce3df; border-radius: 15px; background: #fff; font-size: 14px; }
.internal-form-grid .field-hint { display: block; margin-top: 8px; color: #98a3a0; font-size: 11px; }
.internal-modal__tip { margin: 18px 0 0; color: var(--muted); font-size: 11px; line-height: 1.7; }
.internal-modal__foot { display: flex; align-items: center; justify-content: flex-end; min-height: 98px; margin-top: auto; padding: 18px 30px; border-top: 1px solid var(--line); background: rgba(255,255,255,.97); }
.internal-modal__foot .form-actions { margin: 0; }
.internal-modal__foot .btn { min-width: 92px; min-height: 46px; }
.internal-image-thumb { display: block; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 9px; object-fit: cover; background: #f6f8f7; }
.access-pill--auto { border-color: #c6e7d5; background: #effaf3; color: #16805b; }
@media (max-width: 980px) {
  .modal--internal { width: min(100%, 820px); }
  .internal-modal-form { min-height: auto; }
  .internal-modal-grid { grid-template-columns: 1fr; gap: 24px; padding: 22px 22px 18px; }
  .internal-modal__media { display: grid; grid-template-columns: minmax(220px, .62fr) minmax(0, 1fr); align-items: end; column-gap: 20px; }
  .internal-modal__media > .field-label { grid-column: 1 / -1; }
  .internal-upload__preview { min-height: 250px; }
  .internal-upload__preview img { height: 250px; }
  .internal-image-url-field { margin-top: 0; }
}
@media (max-width: 680px) {
  .modal--internal .modal__head { padding: 16px 14px; }
  .internal-modal-grid { gap: 20px; padding: 18px 14px 16px; }
  .internal-modal__media { display: block; }
  .internal-modal__media > .field-label { margin-bottom: 11px; }
  .internal-upload__preview { min-height: 228px; border-radius: 15px; }
  .internal-upload__preview img { height: 228px; }
  .internal-image-url-field { margin-top: 16px; }
  .internal-form-grid { grid-template-columns: 1fr; gap: 16px; }
  .internal-form-grid .field--wide { grid-column: auto; }
  .internal-form-grid .input, .internal-form-grid .select { min-height: 48px; border-radius: 12px; }
  .internal-modal__foot { padding: 15px 14px; }
  .internal-modal__foot .form-actions { width: 100%; }
  .internal-modal__foot .btn { flex: 1; }
}


/* 访客记录工作区：延续海松绿运营控制台，以高密度筛选、脱敏字段和细粒度状态呈现为核心。 */
.visitor-page__head-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.visitor-workspace { overflow: hidden; }
.visitor-workspace__tools { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 17px 20px; border-bottom: 1px solid var(--line); background: #fff; }
.visitor-workspace__count { color: var(--muted); font-family: 'IBM Plex Mono', monospace; font-size: 10px; font-weight: 700; }
.visitor-page-filter { display: grid; grid-template-columns: repeat(6, minmax(126px, 1fr)); align-items: end; gap: 13px 10px; padding: 17px 20px 19px; border-bottom: 1px solid var(--line); background: #fbfcfa; }
.visitor-page-filter__field { display: grid; min-width: 0; gap: 6px; }
.visitor-page-filter__field > span { color: var(--muted-strong); font-size: 11px; font-weight: 800; }
.visitor-page-filter__field .input, .visitor-page-filter__field .select { min-width: 0; min-height: 38px; background: #fff; }
.visitor-page-filter__actions { display: flex; grid-column: 5 / span 2; justify-content: flex-end; gap: 8px; padding-top: 4px; }
.visitor-page-filter__actions .btn { min-height: 38px; min-width: 76px; }
.visitor-data-table { min-width: 1480px; }
.visitor-data-table th { background: #fbfcfa; }
.visitor-data-table th:first-child, .visitor-data-table td:first-child { padding-left: 20px; }
.visitor-data-table th:last-child, .visitor-data-table td:last-child { padding-right: 20px; }
.visitor-data-table td { padding-top: 13px; padding-bottom: 13px; }
.visitor-record-id { color: #a4ada9; font-size: 11px; font-weight: 700; }
.visitor-record-ip, .visitor-record-time { display: block; color: var(--ink-soft); font-size: 11px; font-weight: 700; white-space: nowrap; }
.visitor-record-region { display: block; min-width: 116px; color: var(--ink-soft); font-size: 12px; white-space: nowrap; }
.visitor-source, .visitor-client, .visitor-landing { display: inline-flex; align-items: center; justify-content: center; min-height: 23px; padding: 3px 8px; border-radius: 7px; background: #f1f3f2; color: #73807a; font-size: 10px; font-weight: 800; white-space: nowrap; }
.visitor-source--wechat { background: #e7faf0; color: #18805e; }
.visitor-client { border: 1px solid #edf0ed; background: #fafbfa; color: #7b8681; text-transform: none; }
.visitor-landing--entered { background: #e6faee; color: #1d8c61; }
.visitor-landing--missed { background: #fff1e8; color: #b66b3a; }
.visitor-entry { display: block; max-width: 220px; overflow: hidden; color: #76807c; font-family: 'IBM Plex Mono', monospace; font-size: 10px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.visitor-detail-button { color: var(--pine-dark); }
.visitor-workspace__footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 20px; border-top: 1px solid var(--line); background: #fff; color: var(--muted); font-size: 11px; }
.visitor-workspace__footer .pagination__actions { flex-wrap: wrap; }
.visitor-page-current { display: grid; place-items: center; min-width: 41px; height: 31px; border-radius: 8px; background: var(--pine-wash); color: var(--pine-dark); font-family: 'IBM Plex Mono', monospace; font-size: 10px; font-weight: 800; }
.modal--visitor-detail { width: min(100%, 680px); }
.modal--visitor-detail .modal__body { padding: 0; }
.visitor-detail__intro { padding: 20px 22px 18px; border-bottom: 1px solid var(--line); background: linear-gradient(135deg, #f8fdf9 0%, #f4f8f5 100%); }
.visitor-detail__intro > span { display: block; color: var(--pine); font-family: 'IBM Plex Mono', monospace; font-size: 10px; font-weight: 800; letter-spacing: .1em; }
.visitor-detail__intro h3 { margin: 7px 0 0; color: var(--ink); font-size: 19px; letter-spacing: -.04em; }
.visitor-detail__intro p { max-width: 520px; margin: 7px 0 0; color: var(--muted); font-size: 11px; line-height: 1.65; }
.visitor-detail__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0; padding: 17px 22px 20px; }
.visitor-detail__item { min-width: 0; padding: 11px 12px; border: 1px solid #ebefeb; border-radius: 10px; background: #fff; }
.visitor-detail__item dt { margin: 0 0 6px; color: var(--muted); font-size: 10px; font-weight: 800; }
.visitor-detail__item dd { overflow: hidden; margin: 0; color: var(--ink-soft); font-family: 'IBM Plex Mono', monospace; font-size: 11px; font-weight: 700; line-height: 1.45; text-overflow: ellipsis; white-space: nowrap; }
.visitor-detail__item:nth-child(8) { grid-column: 1 / -1; }

@media (max-width: 1180px) {
  .visitor-page-filter { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .visitor-page-filter__actions { grid-column: 2 / span 2; }
}
@media (max-width: 680px) {
  .visitor-page__head-actions { width: 100%; justify-content: stretch; }
  .visitor-page__head-actions .btn { flex: 1; }
  .visitor-workspace__tools { align-items: flex-start; flex-direction: column; padding: 14px; }
  .visitor-page-filter { grid-template-columns: 1fr; padding: 14px; }
  .visitor-page-filter__actions { grid-column: auto; justify-content: stretch; }
  .visitor-page-filter__actions .btn { flex: 1; }
  .visitor-workspace__footer { align-items: flex-start; flex-direction: column; padding: 14px; }
  .visitor-detail__intro { padding: 17px 14px 15px; }
  .visitor-detail__grid { grid-template-columns: 1fr; padding: 14px; }
  .visitor-detail__item:nth-child(8) { grid-column: auto; }
}


/* 余额充值工作区：参考图的高密度双卡片秩序，保留匠心活码的松绿运营感。 */
.recharge-workspace { display: grid; gap: 18px; max-width: 1120px; }
.recharge-panel { position: relative; overflow: hidden; padding: 28px; border: 1px solid var(--line); border-radius: 22px; background: rgba(255,255,255,.96); box-shadow: 0 12px 28px rgba(25,38,31,.055); }
.recharge-panel::after { content: ''; position: absolute; inset: auto 26px 0; height: 2px; background: linear-gradient(90deg, transparent, rgba(20,141,105,.16), transparent); }
.recharge-panel--topup { background: linear-gradient(135deg, rgba(255,255,255,.98), rgba(246,250,252,.92)); padding: 20px; }
.recharge-panel--topup .recharge-panel__head { margin-bottom: 14px; }
.recharge-panel--topup h2 { font-size: 20px; }
.recharge-panel--topup .recharge-message { padding: 10px 14px; margin-bottom: 14px; }
.recharge-panel--topup .recharge-message p { font-size: 12px; line-height: 1.5; }
.recharge-panel--topup .recharge-field > label { margin-bottom: 6px; font-size: 13px; }
.recharge-panel--topup .recharge-input-wrap { min-height: 50px; }
.recharge-panel--topup .recharge-amount-input { padding: 10px 56px 10px 14px; font-size: 18px; }
.recharge-panel--topup .recharge-presets { margin: 12px 0 14px; gap: 10px; }
.recharge-panel--topup .recharge-preset { min-height: 42px; font-size: 15px; }
.recharge-panel--topup .btn--recharge { min-height: 44px; font-size: 14px; }
.recharge-panel--points { background: linear-gradient(135deg, rgba(255,255,255,.98), rgba(244,252,248,.92)); }
.recharge-panel__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.recharge-kicker { display: inline-block; margin-bottom: 7px; color: #4f78a9; font-family: 'IBM Plex Mono', monospace; font-size: 10px; font-weight: 700; letter-spacing: .11em; }
.recharge-kicker--mint { color: var(--pine); }
.recharge-panel h2 { margin: 0; color: var(--ink); font-size: 25px; letter-spacing: -.055em; }
.recharge-balance-chip { min-width: 135px; padding: 10px 12px; border: 1px solid #d8e8f9; border-radius: 12px; background: rgba(238,247,255,.72); text-align: right; }
.recharge-balance-chip--mint { border-color: #d2ecdf; background: rgba(236,250,243,.78); }
.recharge-balance-chip span { display: block; color: var(--muted); font-size: 10px; font-weight: 700; }
.recharge-balance-chip strong { display: block; margin-top: 4px; color: var(--ink); font-family: 'IBM Plex Mono', monospace; font-size: 15px; letter-spacing: -.04em; }
.recharge-message { display: flex; align-items: flex-start; gap: 11px; padding: 15px 17px; margin-bottom: 25px; border: 1px solid; border-radius: 13px; }
.recharge-message--blue { border-color: #bbd8f6; background: linear-gradient(100deg, #eff8ff, #f8fcff); color: #2764ac; }
.recharge-message--mint { border-color: #abead1; background: linear-gradient(100deg, #effdf7, #f7fffb); color: #0b7e5e; }
.recharge-message svg { flex: 0 0 auto; margin-top: 1px; }
.recharge-message p { margin: 0; font-size: 13px; line-height: 1.65; }
.recharge-message strong { font-weight: 800; }
.recharge-message small { display: block; margin-top: 2px; opacity: .78; font-size: 11px; }
.recharge-field { margin-top: 0; }
.recharge-field > label { display: block; margin-bottom: 10px; color: var(--ink); font-size: 14px; font-weight: 800; letter-spacing: -.02em; }
.recharge-input-wrap { position: relative; display: flex; align-items: center; min-height: 66px; border: 1px solid #d9dfdf; border-radius: 14px; background: #fff; box-shadow: inset 0 1px 2px rgba(16,24,20,.025); transition: border-color 160ms var(--ease-out), box-shadow 160ms var(--ease-out); }
.recharge-input-wrap:focus-within { border-color: var(--pine); box-shadow: 0 0 0 3px rgba(20,141,105,.11); }
.recharge-amount-input { width: 100%; min-width: 0; padding: 16px 64px 16px 18px; border: 0; outline: 0; background: transparent; color: var(--ink); font-family: 'IBM Plex Mono', monospace; font-size: 22px; font-weight: 600; letter-spacing: -.06em; }
.recharge-amount-input::placeholder { color: #aeb7b2; opacity: 1; }
.recharge-input-wrap > span { position: absolute; right: 18px; color: #9da6aa; font-size: 15px; font-weight: 700; }
.recharge-field__hint { display: block; margin-top: 8px; color: var(--muted); font-size: 11px; }
.recharge-presets { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; margin: 20px 0 22px; }
.recharge-preset { min-height: 54px; border: 1px solid #d9dfe0; border-radius: 14px; background: rgba(255,255,255,.74); color: var(--ink); font-family: 'IBM Plex Mono', monospace; font-size: 17px; font-weight: 700; letter-spacing: -.045em; transition: transform 160ms var(--ease-out), border-color 160ms var(--ease-out), background 160ms var(--ease-out), color 160ms var(--ease-out), box-shadow 160ms var(--ease-out); }
.recharge-preset:hover { transform: translateY(-1px); border-color: #7ba9dc; background: #f7fbff; }
.recharge-preset:active { transform: scale(.97); }
.recharge-preset.is-active { border-color: #3d8be4; background: #edf6ff; box-shadow: inset 0 0 0 1px rgba(61,139,228,.12); color: #236ec7; }
.recharge-exchange-preview { display: flex; align-items: center; gap: 8px; margin-top: 11px; color: var(--muted); font-size: 11px; }
.recharge-exchange-preview strong { color: var(--pine-dark); font-family: 'IBM Plex Mono', monospace; font-size: 13px; }
.recharge-exchange-preview > span:last-child { margin-left: auto; color: var(--muted); }
.btn--recharge, .btn--points { min-height: 57px; border-radius: 14px; font-size: 16px; font-weight: 800; letter-spacing: .01em; }
.btn--recharge { background: #1b1d1d; color: #fff; box-shadow: 0 10px 19px rgba(23,27,25,.14); }
.btn--recharge:hover { background: #0e1010; }
.btn--points { background: #099b72; color: #fff; box-shadow: 0 10px 19px rgba(9,155,114,.18); }
.btn--points:hover { background: #057a59; }
.btn--recharge:active, .btn--points:active { transform: scale(.97); }

@media (max-width: 680px) {
  .recharge-panel { padding: 20px 16px; border-radius: 18px; }
  .recharge-panel__head { gap: 12px; margin-bottom: 18px; }
  .recharge-panel h2 { font-size: 21px; }
  .recharge-balance-chip { min-width: 102px; padding: 8px 9px; }
  .recharge-message { padding: 13px; margin-bottom: 20px; }
  .recharge-message p { font-size: 12px; }
  .recharge-presets { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 9px; margin: 16px 0 18px; }
  .recharge-preset { min-height: 48px; font-size: 15px; }
  .recharge-input-wrap { min-height: 58px; }
  .recharge-amount-input { padding: 14px 54px 14px 14px; font-size: 19px; }
  .recharge-exchange-preview { align-items: flex-start; flex-wrap: wrap; }
  .recharge-exchange-preview > span:last-child { width: 100%; margin-left: 0; }
}


/* 我的域名工作区：以参考图的浅灰数据表、深墨统计切换与海松绿本地操作作为核心层级。 */
.domain-workspace { overflow: hidden; }
.domain-workspace__header { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; min-height: 86px; padding: 0 20px; border-bottom: 1px solid var(--line); background: #fff; }
.domain-tabs { display: flex; align-items: flex-end; gap: 15px; min-width: 0; align-self: stretch; }
.domain-tab { position: relative; height: 100%; padding: 0 2px 17px; color: var(--ink); font-size: 15px; font-weight: 800; letter-spacing: -.025em; }
.domain-tab::after { position: absolute; right: 0; bottom: -1px; left: 0; height: 3px; border-radius: 3px 3px 0 0; background: var(--ink); content: ''; }
.domain-tab__note { padding-bottom: 18px; color: var(--muted); font-size: 11px; white-space: nowrap; }
.domain-toolbar { display: flex; align-items: center; gap: 12px; padding-bottom: 13px; }
.domain-periods { display: inline-flex; align-items: center; gap: 6px; padding: 4px; border: 1px solid #edf0ed; border-radius: 999px; background: #fafcfa; }
.domain-period { min-width: 46px; height: 30px; padding: 0 12px; border-radius: 999px; color: var(--muted-strong); font-size: 12px; font-weight: 800; transition: transform 160ms var(--ease-out), background 160ms var(--ease-out), color 160ms var(--ease-out); }
.domain-period:hover { background: #f0f4f1; color: var(--ink); }
.domain-period:active { transform: scale(.97); }
.domain-period.is-active { background: #1a293d; color: #fff; box-shadow: 0 3px 8px rgba(26, 41, 61, .18); }
.domain-refresh { min-height: 38px; padding-inline: 13px; background: #fff; }
.domain-workspace__context { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 20px; border-bottom: 1px solid #edf0ed; background: #fbfcfa; color: var(--muted); font-size: 11px; font-weight: 700; }
.domain-workspace__context span:last-child { color: var(--pine-dark); }
.domain-table-wrap { background: #fff; }
.domain-data-table { min-width: 1180px; }
.domain-data-table th { height: 56px; padding: 0 15px; background: #f7f9f7; color: #59615e; font-size: 12px; }
.domain-data-table td { min-height: 80px; padding: 16px 15px; }
.domain-data-table th:first-child, .domain-data-table td:first-child { padding-left: 20px; }
.domain-data-table th:last-child, .domain-data-table td:last-child { padding-right: 20px; }
.domain-data-table th:nth-child(1), .domain-data-table td:nth-child(1) { width: 52px; }
.domain-data-table th:nth-child(2), .domain-data-table td:nth-child(2) { min-width: 240px; }
.domain-data-table th:nth-child(3), .domain-data-table td:nth-child(3), .domain-data-table th:nth-child(4), .domain-data-table td:nth-child(4) { width: 110px; }
.domain-data-table th:nth-child(5), .domain-data-table td:nth-child(5) { width: 112px; }
.domain-data-table th:nth-child(6), .domain-data-table td:nth-child(6), .domain-data-table th:nth-child(7), .domain-data-table td:nth-child(7) { width: 130px; }
.domain-data-table th:nth-child(8), .domain-data-table td:nth-child(8) { min-width: 294px; }
.domain-check-cell { text-align: center; vertical-align: middle !important; }
.domain-check-cell input { width: 17px; height: 17px; cursor: pointer; accent-color: var(--pine); }
.domain-name { font-size: 13px; }
.domain-data-table .table-sub { max-width: 255px; margin-top: 5px; color: #89918c; }
.domain-date { color: #68716d; font-size: 11px; white-space: nowrap; }
.domain-action-cell { min-width: 294px; }
.domain-actions { display: grid; grid-template-columns: repeat(4, auto); justify-content: start; gap: 6px; }
.domain-actions .btn { min-width: 58px; padding-inline: 9px; }
.domain-actions .btn--danger { min-width: 62px; }
.domain-table-empty { padding: 30px 12px; color: var(--muted); font-size: 12px; text-align: center; }
.domain-route-panel { display: grid; gap: 13px; }
.domain-route-panel__eyebrow { color: var(--pine); font-family: 'IBM Plex Mono', monospace; font-size: 10px; font-weight: 800; letter-spacing: .11em; }
.domain-route-panel h3 { margin: 0; color: var(--ink); font-size: 20px; letter-spacing: -.045em; }
.domain-route-panel p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.75; }
.domain-route-panel__url { display: flex; align-items: center; gap: 9px; min-width: 0; padding: 12px 13px; border: 1px solid #d7e7de; border-radius: 10px; background: #f3fbf7; color: var(--pine-dark); }
.domain-route-panel__url code { overflow: hidden; font-family: 'IBM Plex Mono', monospace; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 980px) {
  .domain-workspace__header { align-items: flex-start; flex-direction: column; gap: 12px; padding: 16px 16px 0; }
  .domain-tabs { width: 100%; min-height: 42px; }
  .domain-tab__note { margin-left: auto; }
  .domain-toolbar { width: 100%; justify-content: space-between; padding-bottom: 15px; }
}
@media (max-width: 680px) {
  .domain-workspace__header { padding: 14px 14px 0; }
  .domain-tabs { align-items: center; }
  .domain-tab { height: auto; padding: 0 2px 13px; }
  .domain-tab__note { padding-bottom: 13px; overflow: hidden; text-overflow: ellipsis; }
  .domain-toolbar { align-items: stretch; flex-direction: column; gap: 10px; padding-bottom: 14px; }
  .domain-periods { width: 100%; justify-content: space-between; }
  .domain-period { flex: 1 1 0; min-width: 0; padding-inline: 6px; }
  .domain-refresh { width: 100%; }
  .domain-workspace__context { align-items: flex-start; flex-direction: column; padding: 10px 14px; }
  .domain-data-table { min-width: 1120px; }
  .domain-data-table th:first-child, .domain-data-table td:first-child { padding-left: 14px; }
  .domain-data-table th:last-child, .domain-data-table td:last-child { padding-right: 14px; }
}


/* 跳转配置工作区：以浅色数据面、青蓝类型选中态和固定底部操作区呈现清晰的本地配置流程。 */
.redirect-workspace { overflow: hidden; }
.redirect-workspace__bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 20px; border-bottom: 1px solid var(--line); background: linear-gradient(90deg, #ffffff 0%, #fbfcfb 100%); }
.redirect-workspace__bar > div { display: grid; gap: 4px; }
.redirect-workspace__bar strong { color: var(--ink); font-size: 14px; letter-spacing: -.02em; }
.redirect-workspace__eyebrow { color: var(--pine); font-family: 'IBM Plex Mono', monospace; font-size: 10px; font-weight: 800; letter-spacing: .12em; }
.redirect-table { min-width: 1080px; }
.redirect-table th:first-child { min-width: 170px; }
.redirect-table th:nth-child(2) { min-width: 112px; }
.redirect-table th:nth-child(3) { min-width: 138px; }
.redirect-table th:nth-child(4) { min-width: 120px; }
.redirect-name-cell { display: grid; justify-items: start; gap: 7px; }
.redirect-type-pill { display: inline-flex; align-items: center; min-height: 24px; padding: 0 9px; border: 1px solid #d9e3df; border-radius: 999px; background: #f6faf8; color: #386258; font-size: 11px; font-weight: 800; white-space: nowrap; }
.redirect-code { display: inline-flex; align-items: center; min-height: 26px; padding: 0 8px; border: 1px solid #dde4e1; border-radius: 7px; background: #f7f9f8; color: #4d5d57; font-family: 'IBM Plex Mono', monospace; font-size: 11px; font-weight: 700; white-space: nowrap; }
.redirect-target { max-width: 260px; margin: 0; font-family: 'IBM Plex Mono', monospace; line-height: 1.5; }
.redirect-actions { display: flex; flex-wrap: wrap; gap: 6px; min-width: 254px; }
.redirect-page-tip { margin-top: 14px; }

/* 跳转配置弹窗：保持表单纵向阅读流，类型网格使用与参考图一致的明亮蓝色选中态。 */
.modal--redirect { width: min(100%, 980px); }
.modal--redirect .modal__body { padding: 0; overflow: hidden; }
.redirect-modal-form { display: flex; min-height: 628px; flex-direction: column; background: #fff; }
.redirect-modal__content { display: grid; gap: 22px; padding: 26px 30px 22px; }
.redirect-form-field { display: grid; gap: 9px; }
.redirect-form-field label, .redirect-section-label { color: var(--ink-soft); font-size: 14px; font-weight: 800; }
.redirect-form-field label span { color: var(--muted); font-size: 12px; font-weight: 600; }
.redirect-form-field .input, .redirect-form-field .select { min-height: 54px; border-color: #dbe2df; border-radius: 15px; background: #fff; font-size: 14px; }
.redirect-form-field.is-muted { opacity: .6; }
.redirect-type-section { display: grid; gap: 12px; }
.redirect-type-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.redirect-type-card { display: grid; min-height: 108px; place-items: center; gap: 9px; padding: 12px 8px; border: 1px solid #dce3e1; border-radius: 16px; background: #fff; color: #505b5c; font-size: 14px; font-weight: 800; line-height: 1; transition: border-color 170ms var(--ease-out), background 170ms var(--ease-out), color 170ms var(--ease-out), transform 170ms var(--ease-out), box-shadow 170ms var(--ease-out); }
.redirect-type-card:hover { border-color: #7dc7e8; background: #f7fcff; transform: translateY(-1px); }
.redirect-type-card:active { transform: scale(.97); }
.redirect-type-card.is-selected { border-color: #20a2d8; background: #eaf7ff; box-shadow: inset 0 0 0 1px #20a2d8; color: #1478b6; }
.redirect-type-card__icon { display: grid; place-items: center; min-height: 34px; font-size: 27px; line-height: 1; filter: saturate(.9); }
.redirect-form-split { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1fr); gap: 20px; }
.redirect-image-section { display: block; }
.redirect-image-url-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; margin-top: 15px; }
.redirect-image-url-input { min-height: 48px; border-color: #dbe2df; border-radius: 14px; background: #fff; font-size: 13px; }
.redirect-image-preview-btn { min-width: 104px; }
.redirect-visibility-switch { display: flex; align-items: center; gap: 13px; min-height: 86px; padding: 16px 18px; border: 1px solid #e6ebe8; border-radius: 15px; background: #fafcfb; cursor: pointer; }
.redirect-visibility-switch input { position: absolute; width: 1px; height: 1px; overflow: hidden; opacity: 0; }
.redirect-visibility-switch i { position: relative; flex: 0 0 auto; width: 48px; height: 26px; border-radius: 999px; background: #cfd8d5; box-shadow: inset 0 1px 2px rgba(21, 43, 36, .1); transition: background 170ms var(--ease-out); }
.redirect-visibility-switch i::after { position: absolute; top: 4px; left: 4px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .2); content: ''; transition: transform 170ms var(--ease-out); }
.redirect-visibility-switch input:checked + i { background: var(--pine); }
.redirect-visibility-switch input:checked + i::after { transform: translateX(22px); }
.redirect-visibility-switch > span { display: grid; gap: 5px; }
.redirect-visibility-switch strong { color: var(--ink); font-size: 14px; }
.redirect-visibility-switch small { color: #c94f44; font-size: 11px; font-weight: 700; }
.redirect-modal__notice { margin: -3px 0 0; color: var(--muted); font-size: 11px; line-height: 1.7; }
.redirect-modal__footer { display: flex; align-items: center; justify-content: flex-end; min-height: 92px; margin-top: auto; padding: 18px 30px; border-top: 1px solid var(--line); background: #fff; }
.redirect-modal__footer .form-actions { margin: 0; }
.redirect-save-button { min-width: 116px; }

@media (max-width: 680px) {
  .redirect-workspace__bar { align-items: flex-start; flex-direction: column; padding: 15px 14px; }
  .redirect-modal-form { min-height: 0; }
  .redirect-modal__content { gap: 19px; padding: 20px 16px 18px; }
  .redirect-type-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .redirect-type-card { min-height: 92px; border-radius: 14px; font-size: 13px; }
  .redirect-type-card__icon { min-height: 29px; font-size: 23px; }
  .redirect-form-split { grid-template-columns: 1fr; gap: 18px; }
  .redirect-visibility-switch { min-height: 78px; padding: 14px; }
  .redirect-modal__footer { min-height: 78px; padding: 14px 16px; }
  .redirect-modal__footer .form-actions { width: 100%; }
  .redirect-modal__footer .btn { flex: 1; }
}


/* 安全设置：静谧的浅灰防护面板，以状态、输入和动作建立清晰的敏感操作层级。 */
.security-workspace {
  display: grid;
  gap: 22px;
  max-width: 1180px;
}
.security-status-card,
.security-form-card,
.security-preferences {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--paper);
  box-shadow: var(--shadow-sm);
}
.security-status-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 24px 28px;
  background: linear-gradient(125deg, rgba(242, 246, 249, 0.96), rgba(251, 252, 253, 0.98));
}
.security-status-card.is-enabled {
  border-color: rgba(10, 151, 112, 0.28);
  background: linear-gradient(125deg, rgba(232, 249, 241, 0.96), rgba(250, 253, 251, 0.98));
}
.security-status-card__icon {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  color: var(--muted-strong);
  border-radius: 16px;
  background: rgba(255,255,255,.8);
  box-shadow: inset 0 0 0 1px rgba(26, 41, 58, .06);
}
.security-status-card.is-enabled .security-status-card__icon { color: var(--pine); }
.security-status-card__title {
  color: var(--ink);
  font-size: 18px;
  font-weight: 720;
  letter-spacing: -.02em;
}
.security-status-card__title strong { color: var(--muted-strong); }
.security-status-card.is-enabled .security-status-card__title strong { color: var(--pine); }
.security-status-card p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 14px;
}
.security-status-card__badge,
.security-kicker {
  color: var(--pine);
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 10px;
  font-weight: 760;
  letter-spacing: .12em;
}
.security-status-card__badge {
  padding: 8px 10px;
  border: 1px solid rgba(9, 122, 96, .16);
  border-radius: 999px;
  background: rgba(255,255,255,.78);
  white-space: nowrap;
}
.security-form-card { padding: 34px; }
.security-form-card__heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
}
.security-form-card__heading h2 {
  margin: 7px 0 8px;
  color: var(--ink);
  font-size: 24px;
  letter-spacing: -.035em;
}
.security-form-card__heading p {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}
.security-form-card__lock {
  display: grid;
  width: 45px;
  height: 45px;
  flex: 0 0 auto;
  place-items: center;
  color: var(--ink);
  border-radius: 14px;
  background: var(--pine-wash);
}
.security-form {
  display: grid;
  max-width: 860px;
  gap: 22px;
  padding-top: 28px;
}
.security-form__field { gap: 9px; }
.security-form__field label {
  color: var(--ink);
  font-size: 16px;
  font-weight: 720;
}
.security-form__field .input {
  min-height: 60px;
  padding-inline: 18px;
  font-size: 16px;
  border-radius: 14px;
}
.security-form__hint {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}
.security-form__actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  padding-top: 4px;
}
.security-form__actions .btn {
  min-height: 54px;
  padding-inline: 24px;
  border-radius: 14px;
  font-size: 16px;
}
.security-form__actions > span {
  color: var(--muted);
  font-size: 12px;
}
.security-enabled-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 28px;
  padding: 22px;
  border: 1px solid rgba(9, 122, 96, .15);
  border-radius: 16px;
  background: rgba(236, 250, 244, .72);
}
.security-enabled-panel > div { display: grid; gap: 5px; }
.security-enabled-panel strong { color: var(--pine); font-size: 16px; }
.security-enabled-panel span { color: var(--muted); font-size: 13px; }
.security-preferences {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  overflow: hidden;
}
.security-preference-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 148px;
  padding: 26px;
  border-right: 1px solid var(--line);
}
.security-preference-card:last-child { border-right: 0; }
.security-preference-card h3 {
  margin: 7px 0 7px;
  color: var(--ink);
  font-size: 17px;
  letter-spacing: -.02em;
}
.security-preference-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}
.security-preference-card--action .btn { flex: 0 0 auto; }
@media (max-width: 900px) {
  .security-preferences { grid-template-columns: 1fr; }
  .security-preference-card { min-height: auto; border-right: 0; border-bottom: 1px solid var(--line); }
  .security-preference-card:last-child { border-bottom: 0; }
}
@media (max-width: 640px) {
  .security-workspace { gap: 15px; }
  .security-status-card { grid-template-columns: auto minmax(0, 1fr); gap: 13px; padding: 18px; }
  .security-status-card__badge { grid-column: 1 / -1; justify-self: start; }
  .security-status-card__icon { width: 46px; height: 46px; border-radius: 13px; }
  .security-form-card { padding: 22px 18px; }
  .security-form-card__heading { padding-bottom: 20px; }
  .security-form-card__heading h2 { font-size: 21px; }
  .security-form-card__lock { display: none; }
  .security-form { gap: 18px; padding-top: 20px; }
  .security-form__field .input { min-height: 54px; }
  .security-form__actions { align-items: stretch; }
  .security-form__actions .btn { width: 100%; }
  .security-enabled-panel { align-items: flex-start; flex-direction: column; padding: 18px; }
  .security-preference-card { min-height: 122px; padding: 20px 18px; }
}

/* USDT 充值订单弹窗：延续海松绿运营台的克制层级，以白底信息面板承载本地演示支付流程。 */
.modal--usdt-order { width: min(100%, 780px); }
.modal--usdt-order .modal__body { padding: 0; }
.usdt-order { background: #fff; }
.usdt-order__status { display: flex; align-items: center; gap: 12px; min-height: 74px; padding: 15px 22px; border-bottom: 1px solid var(--line); background: linear-gradient(110deg, #f3faf7 0%, #fbfcfa 66%, #fff8f3 100%); }
.usdt-order__status-icon { display: grid; flex: 0 0 auto; place-items: center; width: 39px; height: 39px; border: 1px solid #c8e7da; border-radius: 12px; background: #e4f5ee; color: var(--pine-dark); }
.usdt-order__status > div { display: grid; min-width: 0; gap: 3px; }
.usdt-order__status > div > span { color: var(--pine-dark); font-family: 'IBM Plex Mono', monospace; font-size: 10px; font-weight: 700; letter-spacing: .055em; }
.usdt-order__status strong { color: var(--ink); font-size: 13px; letter-spacing: -.01em; }
.usdt-order__timer { min-width: 74px; margin-left: auto; color: var(--terracotta); font-family: 'IBM Plex Mono', monospace; font-size: 24px; font-weight: 700; letter-spacing: -.08em; text-align: right; }
.usdt-order__status.is-expired { background: #fff5f2; }
.usdt-order__status.is-expired .usdt-order__status-icon { border-color: #f0c6bb; background: #ffebe5; color: var(--danger); }
.usdt-order__status.is-expired > div > span, .usdt-order__status.is-expired .usdt-order__timer { color: var(--danger); }
.usdt-order__content { display: grid; grid-template-columns: 228px minmax(0, 1fr); }
.usdt-order__qr-area { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 300px; padding: 26px 20px; border-right: 1px solid var(--line); background: #fafcfb; text-align: center; }
.usdt-order__qr-matrix { display: grid; grid-template-columns: repeat(21, minmax(0, 1fr)); gap: 0; width: 168px; padding: 10px; margin-bottom: 13px; border: 1px solid #d7e1db; border-radius: 14px; background: #fff; box-shadow: 0 10px 24px rgba(28, 52, 42, .08); }
.usdt-order__usdt-amount { color: #d92d20; font-family: 'IBM Plex Mono', monospace; font-size: 24px; font-weight: 700; letter-spacing: -.04em; margin: 6px 0 4px; }
.usdt-order__qr-area > small { margin-top: 5px; color: var(--muted); font-size: 11px; line-height: 1.55; }
.usdt-order__details { padding: 27px 25px 24px; }
.usdt-order__eyebrow { display: block; margin-bottom: 15px; color: var(--pine); font-family: 'IBM Plex Mono', monospace; font-size: 10px; font-weight: 700; letter-spacing: .08em; }
.usdt-order__info-list { display: grid; gap: 0; margin: 0; }
.usdt-order__info-list > div { display: grid; grid-template-columns: 82px minmax(0, 1fr); gap: 12px; padding: 13px 0; border-top: 1px dashed #dce4df; }
.usdt-order__info-list > div:first-child { border-top: 0; padding-top: 0; }
.usdt-order__info-list dt { padding-top: 2px; color: var(--muted); font-size: 12px; }
.usdt-order__info-list dd { min-width: 0; margin: 0; }
.usdt-order__info-list code { display: block; overflow: hidden; color: var(--ink-soft); font-family: 'IBM Plex Mono', monospace; font-size: 16px; line-height: 1.55; text-overflow: ellipsis; white-space: nowrap; }
.usdt-order__info-list dd > strong { display: block; color: var(--terracotta); font-family: 'IBM Plex Mono', monospace; font-size: 19px; letter-spacing: -.06em; }
.usdt-order__info-list dd > small { display: block; margin-top: 4px; color: var(--muted); font-size: 14px; line-height: 1.55; }
.usdt-order__address { display: flex; align-items: center; gap: 8px; min-width: 0; }
.usdt-order__address code { flex: 1; min-width: 0; padding: 7px 8px; border: 1px solid #dce4df; border-radius: 8px; background: #fafcfb; }
.usdt-order__address .btn { flex: 0 0 auto; }
.usdt-order__notice { display: flex; align-items: flex-start; gap: 9px; margin: 0 20px 20px; padding: 11px 13px; border: 1px solid #f0ddc7; border-radius: 11px; background: #fff9f1; color: #8d5a32; }
.usdt-order__notice > span { display: grid; flex: 0 0 auto; place-items: center; width: 17px; height: 17px; margin-top: 1px; border-radius: 50%; background: #f1b675; color: #fff; font-family: Georgia, serif; font-size: 12px; font-weight: 700; }
.usdt-order__notice p { margin: 0; font-size: 14px; line-height: 1.72; }
.usdt-order__notice b { color: #a7532b; }
.usdt-order__footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 15px 20px; border-top: 1px solid var(--line); background: #fbfcfa; }
.usdt-order__footer > span { color: var(--muted); font-size: 14px; line-height: 1.55; }
.usdt-order__footer .form-actions { flex: 0 0 auto; margin: 0; }
@media (max-width: 620px) {
  .modal--usdt-order { width: min(100%, 520px); }
  .usdt-order__status { align-items: flex-start; min-height: 0; padding: 14px; }
  .usdt-order__timer { min-width: 59px; font-size: 20px; }
  .usdt-order__content { grid-template-columns: 1fr; }
  .usdt-order__qr-area { min-height: 0; padding: 22px 18px; border-right: 0; border-bottom: 1px solid var(--line); }
  .usdt-order__details { padding: 21px 18px; }
  .usdt-order__notice { margin: 0 18px 18px; }
  .usdt-order__footer { align-items: stretch; flex-direction: column; padding: 14px 18px; }
  .usdt-order__footer .form-actions { width: 100%; }
  .usdt-order__footer .form-actions .btn { flex: 1; }
}
@media (max-width: 400px) {
  .usdt-order__status-icon { display: none; }
  .usdt-order__info-list > div { grid-template-columns: 1fr; gap: 5px; }
  .usdt-order__info-list dt { padding-top: 0; }
  .usdt-order__address { align-items: stretch; flex-direction: column; }
  .usdt-order__address .btn { width: 100%; justify-content: center; }
}

/* 批量替换内码弹窗：参考 test.html 的多选列表布局 */
.modal--bulk-internal { width: min(100%, 620px); }
.modal--bulk-internal .modal__body { padding: 20px 20px 0; }
.bulk-internal-hint {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 18px; margin-bottom: 18px;
  border: 1px solid #e2e8f0; border-radius: 10px;
  background: #f8fafc; font-size: 13px; color: #334155; line-height: 1.55;
}
.bulk-internal-hint svg { flex: 0 0 auto; }
.bulk-internal-hint b { color: #1e293b; }
.bulk-internal-list {
  max-height: 400px; overflow-y: auto;
  border: 1px solid #e5e7eb; border-radius: 10px;
}
.bulk-internal-item {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px; border-bottom: 1px solid #f5f5f5;
  cursor: pointer; transition: background 0.15s; background: #fff;
}
.bulk-internal-item:hover { background: #fafafa; }
.bulk-internal-item:last-child { border-bottom: 0; }
.bulk-internal-item input[type="checkbox"] {
  cursor: pointer; width: 16px; height: 16px;
  accent-color: #1e293b; flex-shrink: 0;
}
.bulk-internal-item__icon {
  width: 40px; height: 40px; border-radius: 6px;
  background: #f1f5f9; display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; border: 1px solid #e5e7eb;
}
.bulk-internal-item__info { flex: 1; min-width: 0; }
.bulk-internal-item__name {
  display: block; font-size: 13px; font-weight: 500; color: #1f2937;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.bulk-internal-item__link {
  display: block; font-size: 11px; color: #9ca3af; margin-top: 2px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.bulk-internal-empty {
  padding: 40px; text-align: center; color: #9ca3af; font-size: 12px;
}
.bulk-internal-tools {
  display: flex; align-items: center; gap: 8px; margin-top: 12px;
}
.bulk-internal-tool-btn {
  padding: 4px 10px; border-radius: 5px; font-size: 12px; cursor: pointer;
  border: 1px solid #cbd5e1; background: #fff; color: #334155;
}
.bulk-internal-tool-btn:hover { background: #f1f5f9; }
.bulk-internal-tool-btn--muted {
  border-color: #e5e7eb; color: #6b7280;
}
.bulk-internal-count {
  font-size: 12px; color: #9ca3af; margin-left: auto;
}
.bulk-internal-footer {
  display: flex; justify-content: flex-end; gap: 10px;
  padding: 16px 20px; border-top: 1px solid #e2e8f0;
}

/* ============================================================
   积分明细 & 余额明细页
   ============================================================ */
.scorelog-summary,
.moneylog-summary {
  display: flex; gap: 24px; flex-wrap: wrap;
  padding: 16px 20px; background: #f8fafc;
  border: 1px solid #e2e8f0; border-radius: 8px;
  margin-bottom: 20px;
}
.scorelog-summary__item,
.moneylog-summary__item {
  font-size: 13px; color: #64748b;
  display: flex; flex-direction: column; gap: 4px;
}
.scorelog-summary__in  { color: #0d8a6a; font-size: 18px; }
.scorelog-summary__out { color: #d55e3a; font-size: 18px; }
.moneylog-summary__in  { color: #0d8a6a; font-size: 18px; }
.moneylog-summary__out { color: #d55e3a; font-size: 18px; }

.amount--credit { color: #0d8a6a; font-weight: 600; }
.amount--debit  { color: #d55e3a; font-weight: 600; }

.scorelog-table th,
.moneylog-table th {
  white-space: nowrap;
}
.scorelog-table td,
.moneylog-table td {
  vertical-align: middle;
}

/* ============================================================
   活码分享弹窗
   ============================================================ */
.modal--share { max-width: 520px; }
.share-dialog { display: flex; flex-direction: column; gap: 16px; }
.share-loading { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 40px 20px; color: var(--muted); font-size: 13px; }
.share-loading__spinner { animation: spin 1s linear infinite; }
.share-placeholder { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 32px 20px; text-align: center; }
.share-placeholder h3 { margin: 0; font-size: 15px; color: var(--ink); }
.share-placeholder p { margin: 0; font-size: 13px; color: var(--muted); }
.share-enable-row { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; background: #fafbf9; border: 1px solid var(--line); border-radius: 12px; }
.share-enable-row__title { font-size: 13px; font-weight: 600; color: var(--ink-soft); }
.share-enable-row__desc { margin-top: 2px; font-size: 11px; color: var(--muted); }
.share-toggle { position: relative; width: 44px; height: 24px; flex-shrink: 0; cursor: pointer; }
.share-toggle input { opacity: 0; width: 0; height: 0; position: absolute; }
.share-toggle__slider { position: absolute; inset: 0; background: #d4d9d2; border-radius: 999px; transition: background 180ms var(--ease-out); }
.share-toggle__slider::after { content: ''; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.16); transition: transform 180ms var(--ease-out); }
.share-toggle input:checked + .share-toggle__slider { background: var(--pine); }
.share-toggle input:checked + .share-toggle__slider::after { transform: translateX(20px); }
.field-required { color: var(--danger); }
.share-password-hint { margin: 4px 0 0; font-size: 11px; color: var(--muted); }
.share-link-section { display: flex; flex-direction: column; gap: 8px; }
.share-link-row { display: flex; gap: 8px; align-items: center; }
.share-link-input { flex: 1; background: #f8faf9 !important; font-size: 12px !important; color: var(--muted-strong) !important; }
.share-link-footer { display: flex; justify-content: space-between; align-items: center; }
.share-link-tip { margin: 0; font-size: 11px; color: var(--muted); }
.btn-reset-link { background: none; border: none; color: var(--danger); font-size: 11px; cursor: pointer; padding: 0; text-decoration: underline; }
.btn-reset-link:hover { color: #a83530; }
.share-meta { margin: 0; font-size: 10px; color: var(--muted); }
.share-amber-tip { padding: 10px 14px; border: 1px solid #f0d78c; border-radius: 10px; background: #fffbeb; font-size: 12px; color: #8a6d14; line-height: 1.65; }
.share-modal__footer { padding: 14px 20px; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; }
@keyframes spin { to { transform: rotate(360deg); } }
