:root {
  color-scheme: light;
  --ink: #10213d;
  --muted: #697893;
  --line: #dfe6f0;
  --bg: #f4f7fb;
  --surface: #ffffff;
  --surface-soft: #f8faff;
  --nav: #0d1728;
  --nav-soft: #17253d;
  --primary: #2463e8;
  --primary-dark: #194fc8;
  --primary-soft: #eaf1ff;
  --cyan: #1598ae;
  --violet: #7455d9;
  --green: #188a5b;
  --danger: #bd3127;
  --warning: #bb7514;
  --shadow: 0 16px 44px rgba(24, 46, 86, .075);
  --console-header-height: 55px;
  --console-sidebar-width: 230px;
  font-family: Inter, "Segoe UI", "Microsoft YaHei", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--bg); }
body { margin: 0; overflow-x: hidden; color: var(--ink); background: var(--bg); }
button, input, select { font: inherit; }
button { cursor: pointer; }
a { color: inherit; }
[hidden] { display: none !important; }

/* 身份检查期间保持单一过渡画面，避免登录页和控制台相互闪现 */
.auth-checking .auth-shell,
.auth-pending .console-header,
.auth-pending .console-shell { visibility: hidden; opacity: 0; }
.auth-checking #globalLoadingDialog { display: grid !important; }
.auth-pending #globalLoadingDialog { display: grid !important; }
@keyframes auth-loading { to { transform: rotate(360deg); } }

.brand-lockup { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; }
.brand-lockup > span:last-child { display: grid; line-height: 1.1; }
.brand-lockup strong { font-size: 19px; letter-spacing: -.03em; }
.brand-lockup small { margin-top: 4px; color: #7b879b; font-size: 10px; letter-spacing: .14em; }
.brand-mark { display: block; width: 40px; height: 40px; border-radius: 12px; box-shadow: 0 8px 20px rgba(36, 99, 232, .24); object-fit: contain; }
.brand-lockup.light { color: #fff; }
.brand-lockup.light small { color: rgba(255,255,255,.62); }

.button { min-height: 38px; padding: 7px 14px; border: 1px solid #d6dfed; border-radius: 9px; background: #fff; color: var(--ink); font-size: 12px; font-weight: 700; transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease, background .18s ease; }
.button:hover { border-color: #bdc8db; transform: translateY(-1px); box-shadow: 0 6px 14px rgba(27, 45, 81, .08); }
.button:disabled { cursor: wait; opacity: .65; transform: none; }
.button.primary { border-color: var(--primary); color: #fff; background: linear-gradient(135deg, #2d6cf0, #2258d3); box-shadow: 0 9px 22px rgba(36, 99, 232, .22); }
.button.primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); }
.button.large { min-height: 46px; font-size: 14px; }
.button.small { min-height: 34px; padding: 6px 11px; font-size: 12px; }
.button.danger-outline { color: var(--danger); border-color: #f1c9c5; background: #fff8f7; }
.text-button { padding: 5px 0; border: 0; color: var(--primary); background: transparent; font-size: 13px; font-weight: 700; }
.text-button.danger { color: var(--danger); }

.field { display: grid; gap: 8px; color: #53627c; font-size: 12px; font-weight: 700; }
.field input, .field select { width: 100%; min-height: 42px; padding: 8px 12px; border: 1px solid #d7e0ed; border-radius: 9px; outline: none; background: #fbfcff; color: var(--ink); font-weight: 450; transition: border-color .18s ease, box-shadow .18s ease, background .18s ease; }
.field input::placeholder { color: #a2adbd; }
.field input:focus, .field select:focus { border-color: var(--primary); background: #fff; box-shadow: 0 0 0 4px rgba(36, 99, 232, .1); }
.message { min-height: 20px; margin: 12px 0 0; color: var(--danger); font-size: 14px; }
.message.success { color: var(--green); }
.eyebrow { margin: 0 0 7px; color: var(--primary); font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }

/* 独立登录与注册 */
.auth-body { min-height: 100vh; background: #fff; }
.auth-shell { min-height: 100vh; display: grid; grid-template-columns: minmax(440px, .9fr) 1.1fr; }
.auth-hero { position: relative; isolation: isolate; display: flex; flex-direction: column; min-height: 100vh; padding: 42px clamp(44px, 5.2vw, 78px); overflow: hidden; color: #fff; background: linear-gradient(145deg, #0b1428 0%, #112854 54%, #174495 100%); }
.auth-hero::before, .auth-hero::after { content: ""; position: absolute; z-index: -1; border-radius: 50%; filter: blur(2px); }
.auth-hero::before { width: 520px; height: 520px; right: -240px; top: 9%; background: radial-gradient(circle, rgba(67,134,255,.4), rgba(31,80,172,.03) 70%); }
.auth-hero::after { width: 360px; height: 360px; left: -190px; bottom: -110px; border: 1px solid rgba(255,255,255,.12); box-shadow: 0 0 0 42px rgba(255,255,255,.025), 0 0 0 84px rgba(255,255,255,.02); }
.register-hero { background: linear-gradient(145deg, #0c1729 0%, #142c58 58%, #3159aa 100%); }
.auth-hero-copy { margin: auto 0; max-width: 620px; }
.hero-kicker { display: inline-flex; margin-bottom: 22px; padding: 6px 11px; border: 1px solid rgba(255,255,255,.19); border-radius: 999px; background: rgba(255,255,255,.07); color: #bfd2ff; font-size: 11px; font-weight: 700; letter-spacing: .08em; }
.auth-hero h1 { max-width: 620px; margin: 0 0 23px; font-size: clamp(38px, 4vw, 56px); line-height: 1.16; letter-spacing: -.045em; }
.auth-body[data-auth-page="login"] .auth-hero h1{font-size:clamp(32px,3vw,44px);line-height:1.12}
.auth-hero-copy > p { max-width: 570px; margin: 0; color: rgba(255,255,255,.68); font-size: 14px; line-height: 1.85; }
.trust-list { display: flex; flex-wrap: wrap; gap: 10px 24px; color: rgba(255,255,255,.68); font-size: 11px; }
.register-steps { display: grid; gap: 11px; margin-top: 28px; }
.register-steps p { display: flex; align-items: center; gap: 12px; margin: 0; color: rgba(255,255,255,.78); }
.register-steps b { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: rgba(255,255,255,.12); color: #fff; }
.auth-form-side { display: grid; place-items: center; padding: 48px clamp(28px, 6vw, 96px); background: radial-gradient(circle at 85% 10%, #f2f6ff 0, transparent 34%), #f8fafe; }
.auth-form-wrap { width: min(480px, 100%); padding: 40px 42px 34px; border: 1px solid #e4e9f2; border-radius: 20px; background: rgba(255,255,255,.96); box-shadow: 0 24px 70px rgba(25, 43, 77, .1); }
.auth-form-wrap h2 { margin: 0; font-size: 29px; letter-spacing: -.03em; }
.auth-lead { margin: 9px 0 27px; color: var(--muted); font-size: 13px; line-height: 1.65; }
.auth-form { display: grid; gap: 18px; }
.auth-form .field { font-size: 12px; }
.auth-form .field input { min-height: 48px; font-size: 14px; }
.auth-password-wrap{position:relative;width:100%}
.auth-password-wrap input{width:100%;padding-right:46px!important}
.auth-password-toggle{position:absolute;right:6px;top:50%;display:grid;place-items:center;width:34px;height:34px;padding:0;border:0;border-radius:8px;color:#78879e;background:transparent;transform:translateY(-50%);cursor:pointer}
.auth-password-toggle:hover,.auth-password-toggle.active{color:var(--primary);background:#edf4ff}
.auth-password-toggle svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8}
.auth-form .button.large { min-height: 48px; font-size: 14px; }
.register-page{overflow:hidden}
.register-page .auth-shell{grid-template-columns:minmax(360px,.72fr) minmax(620px,1.28fr);height:100vh;min-height:620px}
.register-page .auth-hero{min-height:620px;padding:30px clamp(34px,4vw,66px)}
.register-page .auth-hero-copy{margin:auto 0}
.register-page .auth-hero h1{margin-bottom:17px;font-size:clamp(30px,2.8vw,42px);line-height:1.1}
.register-page .register-steps{gap:8px;margin-top:20px}
.register-page .register-steps b{width:25px;height:25px}
.register-form-side{padding:18px clamp(22px,4vw,60px);overflow:auto}
.register-form-wrap{width:min(720px,100%);padding:24px 30px 20px;border-radius:18px}
.register-form-wrap h2{font-size:26px}
.register-form-wrap .auth-lead{margin:6px 0 16px}
.register-form{grid-template-columns:repeat(2,minmax(0,1fr));gap:11px 14px}
.register-form .field{display:grid;align-content:start;gap:6px}
.register-form .field>span{line-height:1.2}
.register-form .field input,.register-form .field select{min-height:42px;height:42px}
.register-form .field:nth-child(3){grid-column:1/-1}
.register-form.sms-required .password-field{grid-column:1/-1}
.register-form .auth-agreement,.register-form>.button{grid-column:1/-1}
.register-form .button.large{min-height:42px}
.register-form-wrap .auth-switch{margin-top:13px}
.register-form-wrap .legal-note{margin-top:10px;line-height:1.5}
.register-form-wrap .message{min-height:0;margin:8px 0 0}
.auth-switch { margin: 24px 0 0; color: var(--muted); text-align: center; font-size: 13px; }
.auth-switch a { color: var(--primary); font-weight: 700; text-decoration: none; }
.legal-note { margin: 27px auto 0; max-width: 380px; color: #9aa4b5; text-align: center; font-size: 10px; line-height: 1.65; }

/* 控制台框架 */
.console-body { min-height: 100vh; }
.console-header { position: sticky; z-index: 20; top: 0; height: var(--console-header-height); display: grid; grid-template-columns: var(--console-sidebar-width) minmax(0, 1fr); align-items: stretch; padding: 0; border-bottom: 1px solid rgba(218,226,239,.9); background: rgba(255,255,255,.94); box-shadow: 0 4px 20px rgba(27,48,84,.025); backdrop-filter: blur(18px); }
.console-header > .brand-lockup { height: var(--console-header-height); padding: 0 18px; color: #fff; background: #0c1627; border-right: 1px solid rgba(255,255,255,.055); border-bottom: 1px solid rgba(255,255,255,.065); }
.console-header > .brand-lockup small { color: #8393ad; }
.console-header .brand-mark { width: 32px; height: 32px; border-radius: 9px; }
.console-header .brand-lockup { gap: 10px; }
.console-header .brand-lockup strong { font-size: 16px; }
.console-header .brand-lockup small { margin-top: 2px; font-size: 8px; }
.header-status { display: flex; align-items: center; justify-content: flex-end; gap: 12px; padding: 6px 22px; }
.platform-status { display: inline-flex; align-items: center; gap: 8px; padding: 7px 10px; border-radius: 999px; color: #64728a; background: #f5f8fc; font-size: 11px; font-weight: 650; }
.platform-status i { width: 7px; height: 7px; border-radius: 50%; background: #22a873; box-shadow: 0 0 0 4px #ddf5ea; }
.user-pill { display: flex; align-items: center; gap: 9px; min-width: 0; height: 43px; padding: 3px 10px 3px 4px; border: 1px solid #e5eaf2; border-radius: 12px; background: #fff; color: var(--ink); text-align: left; transition: border-color .18s, box-shadow .18s; }
.user-pill:hover { border-color: #cfd9e8; background: #fff; box-shadow: 0 6px 18px rgba(28,50,88,.08); }
.avatar, .large-avatar { display: grid; place-items: center; border-radius: 10px; color: #fff; background: linear-gradient(145deg, #3d70e2, #254eb4); font-weight: 800; }
.avatar { width: 30px; height: 30px; }
.user-pill-copy { display: grid; max-width: 210px; }
.user-pill-copy strong, .user-pill-copy small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-pill-copy strong { font-size: 12px; }
.user-pill-copy small { margin-top: 3px; color: var(--muted); font-size: 10px; }
.console-shell { display: grid; grid-template-columns: var(--console-sidebar-width) minmax(0, 1fr); min-height: calc(100vh - var(--console-header-height)); }
.sidebar { position: sticky; top: var(--console-header-height); height: calc(100vh - var(--console-header-height)); display: flex; flex-direction: column; justify-content: space-between; padding: 26px 15px 19px; color: #bcc6d8; background: linear-gradient(180deg, #0c1627 0%, #0e1b31 100%); border-right: 1px solid rgba(255,255,255,.045); box-shadow: 12px 0 30px rgba(14,29,52,.045); }
.sidebar-nav { display: grid; gap: 6px; }
.nav-item { display: grid; grid-template-columns: 25px 1fr auto; align-items: center; gap: 10px; width: 100%; min-height: 42px; padding: 6px 12px; border: 0; border-radius: 10px; color: #aebbd0; background: transparent; text-align: left; font-size: 12px; font-weight: 680; transition: color .16s, background .16s, transform .16s; }
.nav-item:hover { color: #fff; background: rgba(255,255,255,.055); transform: translateX(1px); }
.nav-item.active { color: #fff; background: linear-gradient(90deg, rgba(51,102,200,.42), rgba(45,82,148,.3)); box-shadow: inset 3px 0 #6091ff, 0 7px 20px rgba(0,0,0,.08); }
.nav-item b { min-width: 23px; padding: 3px 6px; border-radius: 999px; color: #b9c8e5; background: rgba(255,255,255,.08); text-align: center; font-size: 10px; }
.nav-icon { color: #7893bf; font-size: 17px; text-align: center; }
.nav-item.active .nav-icon { color: #78a2ff; }
.nav-divider { height: 1px; margin: 14px 10px; background: rgba(255,255,255,.08); }
.sidebar-foot { padding: 14px 12px 4px; border-top: 1px solid rgba(255,255,255,.08); }
.mvp-tag { display: inline-flex; padding: 4px 7px; border-radius: 6px; color: #9db9f7; background: rgba(81,129,225,.15); font-size: 10px; font-weight: 800; }
.sidebar-foot p { margin: 7px 0 0; color: #718099; font-size: 11px; }
.console-main { min-width: 0; padding: 24px clamp(22px, 2.7vw, 40px) 46px; background: radial-gradient(circle at 95% 0, rgba(66,126,237,.055), transparent 28%), var(--bg); }
.site-legal-footer{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:6px 14px;max-width:1420px;margin:28px auto -24px;padding:16px 10px 0;border-top:1px solid #dfe6f0;color:#7b879a;font-size:11px;line-height:1.6;text-align:center}
.site-legal-footer[hidden]{display:none}.site-legal-footer a{color:#627591;text-decoration:none}.site-legal-footer a:hover{color:var(--primary)}
.auth-site-footer{margin:14px 0 0;padding-top:12px}
.console-view { display: none; max-width: 1420px; margin: 0 auto; animation: view-in .2s ease; }
.console-view.active { display: block; }
@keyframes view-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.page-title-row { display: flex; align-items: center; justify-content: space-between; gap: 22px; margin-bottom: 19px; }
.page-title-row h1 { margin: 0; font-size: 16px; line-height: 1.3; letter-spacing: -.02em; }
.page-title-row > div > p:last-child { margin: 6px 0 0; color: var(--muted); font-size: 12px; line-height: 1.5; }

.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 14px; }
.metric-card { position: relative; overflow: hidden; display: flex; align-items: center; gap: 9px; min-height: 48px; padding: 5px 12px; border: 1px solid rgba(221,228,239,.95); border-radius: 12px; background: rgba(255,255,255,.96); box-shadow: 0 6px 18px rgba(29,52,92,.035); transition: transform .18s, box-shadow .18s; }
.metric-card:hover { transform: translateY(-2px); box-shadow: 0 16px 36px rgba(29,52,92,.08); }
.metric-icon { display: grid; place-items: center; flex: 0 0 auto; width: 30px; height: 30px; border-radius: 9px; font-size: 13px; font-weight: 800; }
.metric-icon.blue { color: var(--primary); background: var(--primary-soft); }
.metric-icon.cyan { color: var(--cyan); background: #e6f7f8; }
.metric-icon.violet { color: var(--violet); background: #f0ecff; }
.metric-icon.green { color: var(--green); background: #e8f7f0; }
.metric-card p { margin: 0; color: var(--muted); font-size: 9px; line-height: 1.15; }
.metric-card strong { display: inline-block; margin-right: 6px; font-size: 18px; line-height: 1.15; letter-spacing: -.03em; }
.metric-card .metric-word { font-size: 16px; }
.metric-card small { color: #9aa4b4; font-size: 9px; line-height: 1.15; }
.content-grid { display: grid; gap: 15px; }
.overview-grid { grid-template-columns: 1.04fr .96fr; }
.panel { min-width: 0; padding: 20px; border: 1px solid rgba(218,226,239,.92); border-radius: 16px; background: rgba(255,255,255,.98); box-shadow: var(--shadow); }
.section-heading { display: flex; align-items: start; justify-content: space-between; gap: 14px; margin-bottom: 14px; }
.section-heading h2 { margin: 0 0 6px; font-size: 16px; letter-spacing: -.02em; }
.section-heading p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.55; }
.list-summary { color: var(--muted); font-size: 12px; white-space: nowrap; }
.step-list { display: grid; gap: 10px; }
.step-card { display: grid; grid-template-columns: 39px 1fr auto; align-items: center; gap: 13px; width: 100%; padding: 14px; border: 1px solid transparent; border-radius: 12px; background: #f7f9fd; color: var(--ink); text-align: left; transition: border-color .18s, background .18s, transform .18s; }
.step-card:hover { border-color: #d2dff2; background: #f2f6fd; transform: translateX(2px); }
.step-card > span { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; color: var(--primary); background: var(--primary-soft); font-size: 11px; font-weight: 800; }
.step-card strong { font-size: 13px; }
.step-card p { margin: 3px 0 0; color: var(--muted); font-size: 11px; }
.step-card > b { color: #99a5b7; font-size: 22px; font-weight: 400; }
.activity-list { display: grid; }
.activity-item { display: grid; grid-template-columns: 10px 1fr auto; align-items: center; gap: 11px; padding: 11px 0; border-bottom: 1px solid #edf0f5; }
.activity-item:last-child { border-bottom: 0; }
.activity-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px #e8f7f0; }
.activity-dot.failed { background: var(--danger); box-shadow: 0 0 0 4px #ffedeb; }
.activity-item strong { font-size: 12px; }
.activity-item p, .activity-item > span:last-child { margin: 3px 0 0; color: var(--muted); font-size: 10px; }
.security-banner { display: flex; align-items: center; gap: 12px; margin-top: 14px; padding: 13px 16px; border: 1px solid #d4e1f9; border-radius: 12px; background: linear-gradient(90deg, #edf4ff, #f9fbff); }
.security-banner > span { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; color: var(--primary); background: #dfe9ff; font-size: 11px; font-weight: 800; }
.security-banner strong { font-size: 13px; }
.security-banner p { margin: 4px 0 0; color: var(--muted); font-size: 12px; }

/* 总览步骤、用量图表与动态分页 */
.quick-start-panel { margin-bottom: 14px; padding: 14px 16px; }
.overview-guide-status { display: inline-flex; padding: 5px 9px; border-radius: 999px; color: #409eff; background: #ecf5ff; font-size: 10px; font-weight: 700; }
.overview-step-nav { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; padding: 0; }
.overview-step-nav::before { content: ""; position: absolute; z-index: 0; top: 23px; right: 16.66%; left: 16.66%; height: 2px; background: linear-gradient(90deg, #a0cfff, #dcdfe6); }
.overview-step { position: relative; z-index: 1; display: grid; grid-template-columns: 32px minmax(0, 1fr); align-items: center; gap: 9px; min-width: 0; min-height: 46px; padding: 6px 10px; border: 1px solid #ebeef5; border-radius: 10px; color: #606266; background: #fafafa; text-align: left; transition: border-color .18s, background .18s, box-shadow .18s, transform .18s; }
.overview-step > span { position: relative; display: grid; place-items: center; width: 28px; height: 28px; border: 3px solid #fff; border-radius: 50%; color: #909399; background: #f2f3f5; box-shadow: 0 0 0 2px #dcdfe6; font-size: 10px; font-weight: 800; transition: color .2s, background .2s, box-shadow .2s, transform .2s; }
.overview-step > div { width: 100%; min-width: 0; min-height: 0; margin: 0; padding: 0; border: 0; background: transparent; transition: none; }
.overview-step:hover > span { transform: translateY(-2px); }
.overview-step:hover { border-color: #c6e2ff; background: #f5f9ff; box-shadow: 0 7px 18px rgba(64,158,255,.08); transform: translateY(-1px); }
.overview-step:hover > div { border: 0; background: transparent; box-shadow: none; transform: none; }
.overview-step strong { display: block; overflow: hidden; color: #303133; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; line-height: 1.2; }
.overview-step p { overflow: hidden; margin: 2px 0 0; color: #909399; text-overflow: ellipsis; white-space: nowrap; font-size: 9px; line-height: 1.25; }
.overview-step.current > span { color: #fff; background: #409eff; box-shadow: 0 0 0 2px #b3d8ff, 0 7px 16px rgba(64,158,255,.25); }
.overview-step.current { border-color: #c6e2ff; background: #f5f9ff; }
.overview-step.completed > span { color: #fff; background: #67c23a; box-shadow: 0 0 0 2px #c2e7b0; }
.overview-step.completed { border-color: #d1edc4; background: #f6fbf3; }
.overview-analytics-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(300px, .7fr); gap: 14px; margin-bottom: 14px; }
.usage-trend-panel, .usage-summary-panel { min-height: 250px; }
.chart-period { padding: 5px 9px; border: 1px solid #dcdfe6; border-radius: 6px; color: #606266; background: #fff; font-size: 10px; }
.usage-trend-chart { position: relative; display: grid; grid-template-columns: repeat(7, minmax(34px, 1fr)); align-items: end; gap: clamp(8px, 2vw, 24px); min-height: 150px; padding: 12px 12px 0; border-bottom: 1px solid #ebeef5; background: repeating-linear-gradient(to bottom, transparent 0, transparent 35px, #f0f2f5 36px); }
.trend-column { display: grid; grid-template-rows: 16px 96px 22px; justify-items: center; align-items: end; height: 134px; }
.trend-column > strong { color: #606266; font-size: 10px; }
.trend-column > span { align-self: center; color: #909399; font-size: 9px; }
.trend-bars { display: block; width: min(32px, 72%); height: 96px; overflow: visible; }
.trend-bars .success { fill: #409eff; }
.trend-bars .failed { fill: #f89898; }
.chart-empty { grid-column: 1 / -1; align-self: center; color: #a8abb2; text-align: center; font-size: 12px; }
.chart-legend { display: flex; justify-content: center; gap: 20px; padding-top: 10px; color: #909399; font-size: 9px; }
.chart-legend span { display: inline-flex; align-items: center; gap: 6px; }
.chart-legend i { width: 8px; height: 8px; border-radius: 2px; }
.chart-legend i.success { background: #409eff; }
.chart-legend i.failed { background: #f89898; }
.usage-summary-content { display: grid; justify-items: center; gap: 14px; }
.usage-success-ring { position: relative; display: grid; place-items: center; width: 108px; height: 108px; }
.usage-success-ring > svg { grid-area: 1 / 1; width: 108px; height: 108px; transform: rotate(-90deg); }
.usage-success-ring circle { fill: none; stroke-width: 4; }
.usage-success-ring circle.track { stroke: #ebeef5; }
.usage-success-ring circle.value { stroke: #67c23a; stroke-linecap: round; transition: stroke-dasharray .25s; }
.usage-success-ring > div { z-index: 1; grid-area: 1 / 1; display: grid; justify-items: center; }
.usage-success-ring strong { font-size: 20px; }
.usage-success-ring span { margin-top: 3px; color: #909399; font-size: 10px; }
.usage-summary-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; margin: 0; }
.usage-summary-list > div { min-width: 0; padding: 0 10px; border-left: 1px solid #ebeef5; text-align: center; }
.usage-summary-list > div:first-child { border-left: 0; }
.usage-summary-list dt { color: #909399; font-size: 9px; }
.usage-summary-list dd { overflow: hidden; margin: 5px 0 0; color: #303133; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; font-weight: 700; }
.service-ranking-panel { margin-bottom: 14px; }
.ranking-head, .ranking-row { display: grid; grid-template-columns: minmax(220px, 1.35fr) minmax(180px, 1fr) 100px 120px; gap: 18px; align-items: center; }
.ranking-head { padding: 10px 13px; color: #909399; background: #f5f7fa; font-size: 10px; }
.service-usage-ranking { display: grid; }
.ranking-row { padding: 13px; border-bottom: 1px solid #ebeef5; color: #606266; font-size: 11px; }
.ranking-row:last-child { border-bottom: 0; }
.ranking-row > div:first-child { display: grid; gap: 3px; min-width: 0; }
.ranking-row strong { overflow: hidden; color: #303133; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.ranking-row small { color: #909399; font-size: 9px; }
.ranking-row > div:nth-child(2) { display: grid; grid-template-columns: 35px 1fr; align-items: center; gap: 8px; }
.ranking-row b { color: #303133; font-size: 11px; }
.ranking-bar { width: 100%; height: 6px; overflow: hidden; border: 0; border-radius: 999px; background: #ebeef5; appearance: none; }
.ranking-bar::-webkit-progress-bar { border-radius: inherit; background: #ebeef5; }
.ranking-bar::-webkit-progress-value { border-radius: inherit; background: #409eff; }
.ranking-bar::-moz-progress-bar { border-radius: inherit; background: #409eff; }
.ranking-rate { color: #67c23a; font-weight: 700; }
.ranking-rate.warning { color: #e6a23c; }
.overview-activity-panel { margin-top: 14px; padding: 0; overflow: hidden; }
.overview-activity-panel > .section-heading { padding: 22px 24px 18px; margin: 0; }
.overview-activity-head, .overview-activity-row { display: grid; grid-template-columns: 150px minmax(150px, .9fr) minmax(160px, 1fr) minmax(170px, 1fr) minmax(260px, 1.8fr); gap: 16px; align-items: center; }
.overview-activity-head { padding: 11px 20px; color: #909399; background: #f5f7fa; font-size: 10px; }
.overview-activity-row { min-height: 54px; padding: 11px 20px; border-bottom: 1px solid #ebeef5; color: #606266; font-size: 10px; }
.overview-activity-row:hover { background: #fafcff; }
.overview-activity-row time { color: #909399; white-space: nowrap; }
.overview-activity-row strong { display: flex; align-items: center; gap: 9px; color: #303133; font-size: 11px; }
.overview-activity-row .activity-dot { flex: 0 0 auto; }
.activity-details { overflow: hidden; color: #606266; text-overflow: ellipsis; white-space: nowrap; }
.pagination { display: flex; align-items: center; justify-content: flex-end; gap: 12px; padding: 14px 20px; color: #909399; background: #fafafa; font-size: 10px; }
.pagination button { min-height: 30px; padding: 5px 11px; border: 1px solid #dcdfe6; border-radius: 6px; color: #606266; background: #fff; font-size: 10px; }
.pagination button:hover:not(:disabled) { color: #409eff; border-color: #c6e2ff; background: #ecf5ff; }
.pagination button:disabled { cursor: not-allowed; color: #c0c4cc; background: #f5f7fa; }

.connector-intro { position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(280px, .82fr) 1.18fr; gap: 34px; align-items: center; margin-bottom: 20px; padding: 26px 28px; border: 1px solid #d8e4fa; border-radius: 18px; background: linear-gradient(120deg, #edf4ff 0%, #f8fbff 56%, #eef5ff 100%); box-shadow: 0 10px 30px rgba(39,79,148,.045); }
.connector-intro::after { content: ""; position: absolute; width: 220px; height: 220px; right: -110px; top: -125px; border-radius: 50%; background: rgba(71,129,237,.08); }
.connector-copy { position: relative; z-index: 1; }
.connector-badge { display: inline-flex; margin-bottom: 12px; padding: 5px 9px; border-radius: 7px; color: var(--primary); background: #dce8ff; font-size: 10px; font-weight: 800; }
.connector-copy h2 { margin: 0 0 10px; font-size: 20px; letter-spacing: -.025em; }
.connector-copy p { max-width: 500px; margin: 0; color: #60708c; font-size: 12px; line-height: 1.8; }
.connector-flow { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; align-items: center; gap: 9px; }
.connector-flow > div { display: grid; justify-items: center; min-width: 0; padding: 16px 8px; border: 1px solid #d8e2f2; border-radius: 13px; background: rgba(255,255,255,.92); box-shadow: 0 7px 20px rgba(38,67,115,.045); text-align: center; }
.connector-flow > div > span { display: grid; place-items: center; width: 36px; height: 36px; margin-bottom: 9px; border-radius: 10px; color: var(--primary); background: var(--primary-soft); font-size: 11px; font-weight: 800; }
.connector-flow strong { font-size: 11px; }
.connector-flow small { margin-top: 4px; color: var(--muted); font-size: 9px; }
.connector-flow > b { color: #7285a8; font-size: 9px; font-weight: 700; white-space: nowrap; }
.install-guide { margin-bottom: 20px; }
.download-agent { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; white-space: nowrap; }
.connector-downloads { display: grid; grid-template-columns: repeat(3, 1fr); gap: 13px; margin-bottom: 21px; }
.connector-downloads article { position: relative; display: grid; grid-template-columns: 44px 1fr; gap: 12px; align-items: center; min-width: 0; padding: 17px; border: 1px solid #dfe6f1; border-radius: 14px; background: linear-gradient(145deg, #fff, #f7f9fd); transition: border-color .18s, transform .18s, box-shadow .18s; }
.connector-downloads article:hover { border-color: #c8d7f3; transform: translateY(-2px); box-shadow: 0 12px 26px rgba(28,56,105,.075); }
.connector-downloads .os-icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; color: var(--primary); background: linear-gradient(145deg, #eef4ff, #e1ebff); font-size: 10px; font-weight: 850; letter-spacing: -.02em; }
.connector-downloads strong { display: block; font-size: 13px; }
.connector-downloads p { margin: 5px 0 0; color: var(--muted); font-size: 10px; line-height: 1.55; }
.connector-downloads .button { grid-column: 1 / -1; width: 100%; margin-top: 4px; }
.install-steps { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.install-steps::before { content: ""; position: absolute; left: 16.66%; right: 16.66%; top: 30px; height: 1px; background: #dce5f3; }
.install-steps article { position: relative; z-index: 1; display: grid; grid-template-columns: 34px 1fr; align-items: start; gap: 11px; padding: 16px; border: 1px solid var(--line); border-radius: 13px; background: #f8faff; }
.install-steps article > span { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; color: #fff; background: linear-gradient(145deg, #3475f1, #2259d6); box-shadow: 0 6px 14px rgba(36,99,232,.2); font-size: 11px; font-weight: 800; }
.install-steps strong { font-size: 12px; }
.install-steps p { margin: 6px 0 0; color: var(--muted); font-size: 10px; line-height: 1.65; }
.install-steps a { display: inline-block; margin-top: 6px; color: var(--primary); text-decoration: none; font-size: 10px; font-weight: 700; }
.install-steps code, .install-note code { color: #384f78; font-family: ui-monospace, Consolas, monospace; }
.install-note { display: flex; gap: 9px; margin-top: 13px; padding: 12px 14px; border: 1px solid #e2e9f3; border-radius: 10px; color: #5d6c87; background: #f3f6fb; font-size: 10px; line-height: 1.65; }
.install-note strong { flex: 0 0 auto; color: var(--ink); }
.enrollment-panel { margin-bottom: 20px; padding: 22px; border: 1px solid #ceddf9; border-radius: 16px; background: linear-gradient(135deg, #f2f6ff, #f8faff); box-shadow: 0 10px 28px rgba(40,76,139,.055); }
.enrollment-panel > div:first-child { position: relative; padding-left: 18px; }
.enrollment-panel p { margin: 5px 0 0; color: var(--muted); font-size: 12px; }
.status-dot { position: absolute; left: 0; top: 6px; width: 8px; height: 8px; border-radius: 50%; }
.status-dot.warning { background: var(--warning); }
.connection-values { display: grid; grid-template-columns: .8fr 1.2fr; gap: 10px; margin: 16px 0; }
.connection-values > div { min-width: 0; padding: 12px 13px; border: 1px solid #d8e0ef; border-radius: 10px; background: #fff; }
.connection-values span { display: block; margin-bottom: 6px; color: var(--muted); font-size: 9px; }
.connection-values code { display: block; color: #243653; overflow-wrap: anywhere; font-size: 11px; line-height: 1.5; }
.enrollment-actions { display: flex; align-items: center; justify-content: space-between; gap: 16px; color: var(--muted); font-size: 11px; }
.advanced-install { margin-top: 14px; padding-top: 13px; border-top: 1px solid #d7e0f0; color: #61708a; font-size: 10px; }
.advanced-install summary { cursor: pointer; font-weight: 700; }
.advanced-install > code { display: block; margin: 10px 0 4px; padding: 11px 12px; border: 1px solid #d8e0ef; border-radius: 9px; background: #fff; color: #243653; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 10px; line-height: 1.55; }
.device-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 13px; }
.device-card { padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: linear-gradient(145deg, #fbfcff, #f5f8fd); transition: border-color .18s, box-shadow .18s; }
.device-card:hover { border-color: #cfd9ea; box-shadow: 0 10px 25px rgba(30,54,96,.065); }
.device-head { display: flex; align-items: center; justify-content: space-between; }
.device-icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; color: var(--primary); background: var(--primary-soft); }
.device-card h3 { margin: 14px 0 5px; font-size: 15px; }
.device-card > p { margin: 0; color: var(--muted); font-size: 11px; }
.device-foot { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin-top: 17px; padding-top: 13px; border-top: 1px solid var(--line); color: var(--muted); font-size: 10px; }
.device-foot strong { color: var(--ink); font-size: 11px; font-weight: 600; }
.badge { display: inline-flex; padding: 4px 8px; border-radius: 999px; color: #7b8598; background: #eef1f5; font-size: 10px; font-weight: 750; white-space: nowrap; }
.badge.online, .badge.success { color: var(--green); background: #e5f6ee; }

.service-tab-panels { min-width: 0; }
.service-tabs { position: relative; display: flex; align-items: flex-end; gap: 32px; min-height: 54px; margin-bottom: 0; padding: 0 22px; border: 1px solid #dcdfe6; border-radius: 8px 8px 0 0; background: #fff; box-shadow: 0 8px 22px rgba(30,52,90,.035); }
.service-tabs::after { content: ""; position: absolute; right: 0; bottom: 0; left: 0; height: 1px; background: #e4e7ed; }
.service-tab { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 7px; height: 53px; padding: 0 2px; border: 0; color: #606266; background: transparent; font-size: 14px; font-weight: 500; white-space: nowrap; transition: color .2s; }
.service-tab::after { content: ""; position: absolute; right: 0; bottom: 0; left: 0; height: 2px; border-radius: 2px 2px 0 0; background: #409eff; transform: scaleX(0); transition: transform .2s ease; }
.service-tab:hover { color: #409eff; }
.service-tab.active { color: #409eff; font-weight: 600; }
.service-tab.active::after { transform: scaleX(1); }
.service-tab b { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; color: #409eff; background: #ecf5ff; text-align: center; font-size: 11px; font-weight: 600; line-height: 20px; }
.service-tab-panels > .panel { border-top: 0; border-radius: 0 0 8px 8px; border-color: #dcdfe6; box-shadow: 0 8px 22px rgba(30,52,90,.045); }
.publish-panel { position: static; }
.publish-panel #serviceForm { position: relative; grid-template-columns: minmax(0, 1fr); gap: 16px; width: 100%; margin: 0; padding-left: 48px; }
.publish-panel #serviceForm > .form-section { position: relative; grid-column: 1; min-height: 0; padding: 21px 22px; border-color: #dfe5ee; border-radius: 8px; background: #fff; box-shadow: 0 4px 12px rgba(31,45,61,.035); transition: border-color .2s, box-shadow .2s; }
.publish-panel #serviceForm > .form-section:hover { border-color: #c6d4e5; box-shadow: 0 8px 20px rgba(31,45,61,.06); }
.publish-panel #serviceForm > .form-section:nth-of-type(1)::after,
.publish-panel #serviceForm > .form-section:nth-of-type(2)::after { content: ""; position: absolute; z-index: 0; left: -33px; top: 25px; bottom: -18px; width: 2px; border-radius: 2px; background: linear-gradient(180deg, #409eff, #b8d9fb); }
.publish-panel #credentialsFields, .publish-panel .create-service-button { grid-column: 1; }
.publish-panel .form-section-title { position: relative; padding-bottom: 15px; }
.publish-panel .form-section-title > b { position: absolute; z-index: 2; left: -68px; top: -1px; width: 28px; height: 28px; border: 3px solid #fff; border-radius: 50%; background: #409eff; box-shadow: 0 0 0 2px #c6e2ff, 0 5px 12px rgba(64,158,255,.22); }
.publish-panel .form-section-title strong { font-size: 14px; }
.publish-panel .form-section-title small { font-size: 10px; }
.publish-panel .create-service-button { width: 100%; margin: 2px 0 0; background: #409eff; border-color: #409eff; box-shadow: 0 8px 18px rgba(64,158,255,.2); }
.publish-panel .create-service-button:hover { background: #337ecc; border-color: #337ecc; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.full { grid-column: 1 / -1; }
.subgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.service-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 13px; }
.service-list.empty { grid-template-columns: 1fr; }
.service-row { position: relative; overflow: hidden; padding: 12px 13px; border: 1px solid var(--line); border-radius: 14px; background: linear-gradient(150deg, #fff 0%, #fbfcff 100%); transition: border-color .18s, box-shadow .18s, transform .18s; }
.service-row:hover { border-color: #c7d5e9; box-shadow: 0 15px 34px rgba(27,50,89,.08); transform: translateY(-1px); }
.service-row-top { display: flex; align-items: start; justify-content: space-between; gap: 12px; }
.service-name { display: flex; align-items: center; min-width: 0; gap: 11px; }
.service-protocol { display: grid; place-items: center; flex: 0 0 auto; width: 38px; height: 30px; border-radius: 8px; color: var(--primary); background: var(--primary-soft); font-size: 9px; font-weight: 800; }
.service-name h3 { margin: 0; font-size: 16px; letter-spacing: -.015em; }
.service-name p { margin: 4px 0 0; color: var(--muted); font-size: 11px; }
.endpoint-link { display: block; margin: 14px 0 11px; padding: 11px 12px; border: 1px solid #e4eaf4; border-radius: 9px; color: #315bb4; background: #f5f8fd; overflow-wrap: anywhere; text-decoration: none; font-family: ui-monospace, Consolas, monospace; font-size: 11px; }
.service-row-actions { display: flex; flex-wrap: wrap; gap: 6px; padding-top: 8px; border-top: 1px solid #edf1f6; }
.api-token-panel { margin-bottom: 22px; }
.api-token-list { display: grid; gap: 5px; margin: 5px 0 7px; }
.api-token-item { display: flex; align-items: center; justify-content: space-between; gap: 9px; padding: 6px 8px; border-radius: 8px; background: #f4f7fc; color: var(--muted); font-size: 10px; }
.api-token-item strong { color: var(--ink); }
.api-token-item code { color: #315caa; }
.api-token-empty { margin: 5px 0 7px; color: var(--muted); font-size: 10px; line-height: 1.35; }

.info-callout { margin-bottom: 20px; padding: 16px 18px; border-left: 3px solid var(--primary); border-radius: 0 11px 11px 0; background: var(--primary-soft); }
.info-callout strong { font-size: 13px; }
.info-callout p { margin: 5px 0 0; color: #61708e; font-size: 12px; line-height: 1.6; }
.domain-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(310px, 1fr)); gap: 16px; }
.domain-card { min-width: 0; padding: 21px; border: 1px solid var(--line); border-radius: 17px; background: #fff; box-shadow: var(--shadow); transition: transform .18s, box-shadow .18s; }
.domain-card:hover { transform: translateY(-2px); box-shadow: 0 18px 40px rgba(25,48,87,.1); }
.domain-card-head { display: flex; align-items: start; justify-content: space-between; gap: 13px; margin-bottom: 18px; }
.domain-card-head span:first-child { color: var(--muted); font-size: 10px; }
.domain-card h3 { margin: 4px 0 0; font-size: 16px; }
.domain-card > .button { width: 100%; margin-top: 12px; }
.bound-domain { display: flex; align-items: center; gap: 13px; padding: 14px; border-radius: 11px; background: #f2f7ff; }
.bound-domain > span { color: var(--primary); font-size: 24px; }
.bound-domain strong { font-size: 14px; overflow-wrap: anywhere; }
.bound-domain p { margin: 4px 0 0; color: var(--muted); font-size: 11px; }
.domain-target { display: grid; gap: 4px; margin-top: 17px; padding-top: 14px; border-top: 1px solid var(--line); }
.domain-target span { color: var(--muted); font-size: 10px; }
.domain-target a { color: var(--primary); overflow-wrap: anywhere; font-size: 11px; }
.dns-instructions { margin-top: 13px; padding: 13px; border: 1px solid #d9e2f3; border-radius: 10px; background: #f7f9fd; font-size: 11px; overflow-wrap: anywhere; }
.dns-instructions p { margin: 7px 0; color: #59667c; }
.domain-quota { margin-left: auto; padding: 7px 11px; border: 1px solid #d8e3f4; border-radius: 999px; color: #315caa; background: #f2f7ff; font-size: 10px; font-weight: 750; white-space: nowrap; }
.domain-check-list { display: grid; gap: 1px; margin-top: 12px; overflow: hidden; border: 1px solid #e1e7f0; border-radius: 10px; background: #e1e7f0; }
.domain-check-list > div { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 9px 11px; background: #fafbfe; font-size: 10px; }
.domain-check-list span { color: var(--muted); }
.domain-check-list strong { color: #a76813; font-weight: 700; text-align: right; }
.domain-check-list .verified strong { color: var(--green); }
.domain-check-list .failed strong,.domain-check-list .error strong,.domain-check-list .unfiled strong { color: #c45656; }
.domain-error { margin: 9px 0 0; padding: 8px 10px; border-radius: 8px; color: #9d5c16; background: #fff7e8; font-size: 10px; line-height: 1.5; }
.domain-actions { display: flex; gap: 8px; margin-top: 11px; }
.domain-actions .button { flex: 1; }

.table-panel { padding: 0; overflow: hidden; }
.audit-head, .audit-row { display: grid; grid-template-columns: 170px 1.1fr 1fr 1fr; gap: 18px; align-items: center; }
.audit-head { padding: 14px 20px; border-bottom: 1px solid var(--line); color: #8290a5; background: #f6f8fc; font-size: 10px; font-weight: 750; }
.audit-row { padding: 14px 20px; border-bottom: 1px solid #edf0f4; font-size: 11px; transition: background .16s; }
.audit-row:hover { background: #fafbfe; }
.audit-row:last-child { border-bottom: 0; }
.audit-row time, .audit-row span { color: var(--muted); }

.account-grid { grid-template-columns: minmax(270px, .65fr) 1.35fr; align-items: start; }
.profile-card { position: relative; overflow: hidden; text-align: center; background: linear-gradient(160deg, #fff 58%, #f4f8ff); }
.profile-card::before { content: ""; position: absolute; width: 180px; height: 180px; right: -95px; top: -105px; border-radius: 50%; background: rgba(36,99,232,.075); }
.profile-kicker { position: relative; display: inline-flex; margin-bottom: 16px; padding: 5px 9px; border-radius: 999px; color: var(--primary); background: var(--primary-soft); font-size: 9px; font-weight: 800; }
.large-avatar { position: relative; width: 70px; height: 70px; margin: 0 auto 14px; border-radius: 20px; font-size: 25px; box-shadow: 0 12px 26px rgba(36,78,180,.24); }
.profile-card h2 { margin: 0; font-size: 16px; overflow-wrap: anywhere; }
.profile-card > p { margin: 6px 0 22px; color: var(--muted); font-size: 12px; }
.profile-list { margin: 0; text-align: left; }
.profile-list > div { display: grid; grid-template-columns: 90px 1fr; gap: 12px; padding: 11px 0; border-top: 1px solid var(--line); }
.profile-list dt { color: var(--muted); font-size: 11px; }
.profile-list dd { margin: 0; overflow-wrap: anywhere; font-size: 11px; font-weight: 650; }
.account-details { background: linear-gradient(180deg, #fff, #fbfcff); }
.platform-notice{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:14px;padding:12px 16px;border:1px solid #cfe0ff;border-radius:12px;background:linear-gradient(90deg,#edf5ff,#f8fbff);box-shadow:0 8px 22px rgba(36,99,232,.06)}
.platform-notice[hidden]{display:none}.platform-notice div{display:flex;align-items:center;gap:12px;min-width:0}.platform-notice span{flex:0 0 auto;padding:4px 9px;border-radius:999px;color:#2463e8;background:#dceaff;font-size:11px;font-weight:700}.platform-notice p{margin:0;color:#4d607c;font-size:12px;line-height:1.6}.platform-notice button{flex:0 0 auto;padding:7px 12px;border:1px solid #bdd3fb;border-radius:8px;color:#2463e8;background:#fff;cursor:pointer}
.support-card { grid-column: 1 / -1; background: linear-gradient(135deg, #fff 45%, #f3f8ff); }
.support-contact-text{margin:0 0 12px;padding:10px 12px;border-radius:9px;color:#52657f;background:#f4f7fb;font-size:12px;line-height:1.6}
.support-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
.support-item { display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 12px 14px; border: 1px solid #e0e8f4; border-radius: 13px; color: var(--text); background: rgba(255,255,255,.82); text-decoration: none; }
.support-item:hover { border-color: #a9cbff; box-shadow: 0 8px 20px rgba(64,158,255,.08); }
.support-item > span { display: grid; place-items: center; width: 34px; height: 34px; flex: 0 0 34px; border-radius: 10px; color: #2463e8; background: #eaf2ff; font-weight: 800; }
.support-item.wechat > span { color: #12915f; background: #e8f8f0; }
.support-item div { min-width: 0; display: grid; gap: 3px; }
.support-item strong { font-size: 13px; }
.support-item small { color: var(--muted); font-size: 11px; overflow-wrap: anywhere; }
.support-item b { margin-left: auto; color: #2463e8; font-size: 11px; white-space: nowrap; }
.setting-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 10px; padding: 16px 17px; border: 1px solid #e5eaf2; border-radius: 13px; background: #f9fbfe; }
.setting-row:first-of-type { margin-top: 0; }
.setting-row strong { font-size: 13px; }
.setting-row p { margin: 5px 0 0; color: var(--muted); font-size: 11px; }
.enterprise-upgrade-row{border-color:#bdd4ff;background:#f3f7ff}
.enterprise-upgrade-form{display:flex;align-items:center;gap:10px;min-width:min(100%,430px)}
.enterprise-upgrade-form input{min-width:240px;height:38px;padding:0 11px;border:1px solid #cbd8ec;border-radius:9px;background:#fff;color:var(--text);outline:none}
.enterprise-upgrade-form input:focus{border-color:#4b83ef;box-shadow:0 0 0 3px rgba(36,99,232,.1)}
.empty { min-height: 110px; display: grid; place-items: center; color: #97a2b3; text-align: center; font-size: 12px; }
.toast { position: fixed; z-index: 120; top: 20px; left: 50%; display: flex; align-items: center; gap: 10px; min-width: 300px; max-width: min(520px, calc(100vw - 32px)); padding: 12px 16px; border: 1px solid #ebeef5; border-radius: 8px; color: #606266; background: #f4f4f5; box-shadow: 0 8px 24px rgba(0, 0, 0, .12); font-size: 14px; line-height: 1.45; transform: translateX(-50%); }
.toast.success { color: #529b2e; border-color: #e1f3d8; background: #f0f9eb; }
.toast.warning { color: #b88230; border-color: #faecd8; background: #fdf6ec; }
.toast.error { color: #c45656; border-color: #fde2e2; background: #fef0f0; }
.toast.info { color: #73767a; border-color: #e9e9eb; background: #f4f4f5; }
.toast-icon { flex: 0 0 18px; display: inline-grid; place-items: center; width: 18px; height: 18px; border: 2px solid currentColor; border-radius: 50%; font-size: 11px; font-weight: 900; line-height: 1; }
.toast-content { min-width: 0; overflow-wrap: anywhere; }

/* 0.8 控制台视觉与交互升级 */
.icon-button { display: inline-flex; align-items: center; gap: 8px; }
.icon-button > span { color: var(--primary); font-size: 17px; line-height: 1; }
.service-page-title { margin-bottom: 20px; }
.service-title-actions { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.service-create-cta { min-height: 38px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 7px 14px; border-radius: 9px; font-size: 12px; box-shadow: 0 9px 22px rgba(36,99,232,.22); }
.service-create-cta > span { font-size: 16px; font-weight: 400; line-height: 1; }
.service-create-cta:hover { box-shadow: 0 11px 25px rgba(36,99,232,.28); }
.service-overview { display: grid; grid-template-columns: repeat(3, minmax(140px, .62fr)) minmax(300px, 1.45fr); gap: 12px; margin-bottom: 22px; }
.service-overview > div { min-width: 0; min-height: 84px; display: flex; align-items: center; gap: 13px; padding: 16px 18px; border: 1px solid #dde5f0; border-radius: 17px; background: rgba(255,255,255,.94); box-shadow: 0 8px 24px rgba(28,52,93,.04); }
.service-overview p { display: grid; gap: 3px; margin: 0; color: var(--muted); font-size: 11px; }
.service-overview p strong { color: var(--ink); font-size: 23px; letter-spacing: -.04em; }
.overview-icon { display: grid; place-items: center; flex: 0 0 auto; width: 40px; height: 40px; border-radius: 12px; font-size: 14px; font-weight: 850; }
.overview-icon.blue { color: var(--primary); background: var(--primary-soft); }
.overview-icon.green { color: var(--green); background: #e7f7ef; }
.overview-icon.violet { color: var(--violet); background: #f0edff; }
.service-overview .service-security-note { color: #4f5d73; border-color: #d8dee8; background: linear-gradient(135deg, #f1f3f6, #e7ebf0); box-shadow: 0 8px 22px rgba(47,58,77,.07); }
.service-security-note > span { display: grid; place-items: center; flex: 0 0 auto; width: 42px; height: 42px; border: 1px solid #cfd6e1; border-radius: 13px; background: #fff; color: #5e6c80; font-size: 11px; font-weight: 800; }
.service-security-note p strong { color: #2f3b4d; font-size: 13px; letter-spacing: 0; }
.service-security-note p small { color: #788599; font-size: 10px; line-height: 1.45; }
.publish-heading > div, .service-list-panel .section-heading > div { position: relative; padding-left: 42px; }
.section-number { position: absolute; left: 0; top: -2px; display: grid; place-items: center; width: 31px; height: 31px; border-radius: 10px; color: var(--primary); background: var(--primary-soft); font-size: 10px; font-weight: 850; }
.secure-label { display: inline-flex; align-items: center; gap: 5px; padding: 5px 9px; border-radius: 999px; color: var(--green); background: #e7f7ef; font-size: 10px; font-weight: 800; white-space: nowrap; }
.secure-label::before { content: "●"; font-size: 7px; }
.form-section { display: grid; gap: 14px; padding: 16px; border: 1px solid #e3e9f2; border-radius: 14px; background: #fafcff; }
.form-section-title { display: flex; align-items: center; gap: 10px; padding-bottom: 12px; border-bottom: 1px solid #e8edf5; }
.form-section-title > b { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; color: #fff; background: linear-gradient(145deg, #3574ef, #2358d1); box-shadow: 0 6px 14px rgba(36,99,232,.18); font-size: 10px; }
.form-section-title > span { display: grid; gap: 2px; }
.form-section-title strong { color: var(--ink); font-size: 12px; }
.form-section-title small { color: var(--muted); font-size: 9px; font-weight: 500; }
.create-service-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 13px; }
.create-service-button span { font-size: 18px; font-weight: 400; }
.service-toolbar, .table-toolbar { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; padding: 10px; border: 1px solid #e2e8f1; border-radius: 13px; background: #f8faff; }
.search-box { display: flex; align-items: center; flex: 1; min-width: 0; gap: 9px; height: 38px; padding: 0 11px; border: 1px solid transparent; border-radius: 9px; background: #fff; color: #8a98ad; transition: border-color .18s, box-shadow .18s; }
.search-box:focus-within { border-color: #aac3f5; box-shadow: 0 0 0 3px rgba(36,99,232,.08); }
.search-box input { min-width: 0; width: 100%; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 11px; }
.service-toolbar select, .table-toolbar select { height: 38px; padding: 0 30px 0 11px; border: 1px solid #dfe6f0; border-radius: 9px; outline: 0; color: #53627a; background: #fff; font-size: 11px; }
.service-title-line { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.access-mode-tag { display: inline-flex; padding: 3px 7px; border-radius: 999px; font-size: 9px; font-weight: 800; }
.access-mode-tag.sso { color: #1d65d8; background: #e9f1ff; }
.access-mode-tag.legacy { color: #a35c0c; background: #fff3df; }
.access-mode-tag.public { color: #7a4fc0; background: #f2ebff; }
.service-status { display: inline-flex; align-items: center; gap: 6px; padding: 5px 9px; border-radius: 999px; font-size: 10px; font-weight: 800; }
.service-status i { width: 7px; height: 7px; border-radius: 50%; }
.service-status.online { color: var(--green); background: #e8f7ef; }
.service-status.online i { background: #1eaa70; box-shadow: 0 0 0 3px rgba(30,170,112,.12); }
.service-status.offline { color: #7d8798; background: #f0f2f5; }
.service-status.offline i { background: #9ca6b5; }
.service-detail-row { display: grid; grid-template-columns: 1.05fr 1fr; gap: 8px; margin: 9px 0 6px; }
.service-meta-grid { display: grid; grid-template-columns: 1.35fr 1fr .55fr; gap: 5px; margin: 0; }
.service-meta-grid > div { min-width: 0; padding: 6px 7px; border-radius: 8px; background: #f6f8fc; }
.service-meta-grid span { display: block; margin-bottom: 2px; color: #8a96a8; font-size: 8px; }
.service-meta-grid strong { display: block; color: #34445f; overflow-wrap: anywhere; font-size: 10px; }
.endpoint-box { display: flex; align-items: center; gap: 8px; margin: 0; padding: 6px 7px; border: 1px solid #dce6f5; border-radius: 9px; background: linear-gradient(90deg, #f0f5ff, #f7faff); }
.endpoint-box > div { min-width: 0; flex: 1; }
.endpoint-box span { display: block; margin-bottom: 2px; color: #7888a1; font-size: 8px; }
.endpoint-box a { display: block; color: #2459bc; overflow-wrap: anywhere; text-decoration: none; font: 10px ui-monospace, Consolas, monospace; }
.mini-icon-button { flex: 0 0 auto; padding: 4px 7px; border: 1px solid #cad9f2; border-radius: 7px; color: var(--primary); background: #fff; font-size: 9px; font-weight: 800; }
.action-button { min-height: 27px; padding: 4px 8px; border: 1px solid #dfe5ee; border-radius: 8px; color: #53627a; background: #fff; font-size: 9px; font-weight: 750; transition: border-color .16s, background .16s, color .16s; }
.action-button:hover { color: var(--primary); border-color: #bed0f1; background: #f5f8ff; }
.action-button.primary-soft { color: var(--primary); border-color: #cbdaf5; background: #eef4ff; }
.action-button.danger { margin-left: auto; color: var(--danger); border-color: #f0d5d2; background: #fffafa; }
.empty-state { display: grid; justify-items: center; max-width: 320px; padding: 28px 18px; }
.empty-state > span { display: grid; place-items: center; width: 46px; height: 46px; margin-bottom: 12px; border-radius: 14px; color: var(--primary); background: var(--primary-soft); font-size: 20px; }
.empty-state strong { color: #42516a; font-size: 13px; }
.empty-state p { margin: 6px 0 0; color: var(--muted); font-size: 11px; line-height: 1.6; }
.table-toolbar { margin: 0; padding: 13px 16px; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; }
.enrollment-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding-left: 0 !important; }
.enrollment-head h2 { margin: 5px 0 0; font-size: 18px; }
.step-label { display: inline-flex; padding: 4px 8px; border-radius: 7px; color: var(--primary); background: #e1ebff; font-size: 9px; font-weight: 850; }
.connection-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 17px 0; }
.connection-grid > div { min-width: 0; padding: 12px 13px; border: 1px solid #d9e2f0; border-radius: 11px; background: #fff; }
.connection-grid span { display: block; margin-bottom: 6px; color: var(--muted); font-size: 9px; }
.connection-grid strong, .connection-grid code { display: block; overflow-wrap: anywhere; color: #2e405f; font-size: 10px; line-height: 1.55; }
.button-row { display: flex; flex-wrap: wrap; gap: 9px; }
.button.secondary { color: var(--primary); border-color: #c9d8f2; background: #f4f7ff; }
.page-stats-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 20px; }
.page-stats-strip > div { display: flex; align-items: center; gap: 13px; min-width: 0; padding: 15px 17px; border: 1px solid #dfe6f0; border-radius: 15px; background: rgba(255,255,255,.95); box-shadow: 0 8px 24px rgba(28,52,93,.04); }
.page-stats-strip p { display: grid; gap: 2px; margin: 0; color: var(--muted); font-size: 10px; }
.page-stats-strip p strong { color: var(--ink); font-size: 21px; letter-spacing: -.035em; }
.overview-icon.gray { color: #68758a; background: #eef1f5; }
.domain-toolbar { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; padding: 10px; border: 1px solid #e2e8f1; border-radius: 13px; background: rgba(255,255,255,.88); box-shadow: 0 8px 22px rgba(30,52,90,.035); }
.domain-toolbar select { height: 38px; padding: 0 30px 0 11px; border: 1px solid #dfe6f0; border-radius: 9px; outline: 0; color: #53627a; background: #fff; font-size: 11px; }
.domain-stats { max-width: 760px; }
.domain-card .badge.online::before { content: "●"; margin-right: 5px; font-size: 7px; }
.audit-list:not(.empty) { background: #fff; }
.audit-row strong { color: #364762; }

/* 套餐与账单 */
.billing-title-row { align-items: flex-end; }
.billing-cycle-switch { display: inline-flex; padding: 4px; border: 1px solid #d8e2f1; border-radius: 11px; background: #fff; box-shadow: 0 6px 18px rgba(34,63,108,.05); }
.billing-cycle-switch button { min-height: 34px; padding: 6px 14px; border: 0; border-radius: 8px; color: #687790; background: transparent; font-size: 11px; font-weight: 750; }
.billing-cycle-switch button.active { color: #fff; background: #409eff; box-shadow: 0 5px 13px rgba(64,158,255,.22); }
.billing-summary-grid { display: grid; grid-template-columns: minmax(220px,.75fr) minmax(320px,1.25fr) minmax(340px,1fr); gap: 12px; margin-bottom: 14px; }
.billing-summary-grid .panel { min-height: 112px; padding: 18px 20px; }
.billing-current-card { display: flex; align-items: center; gap: 14px; }
.billing-summary-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; color: #fff; background: linear-gradient(145deg,#4e89f8,#2463e8); box-shadow: 0 9px 20px rgba(36,99,232,.2); font-size: 13px; font-weight: 850; }
.billing-current-card div { display: grid; gap: 3px; }
.billing-current-card small, .billing-usage-heading span, .billing-resource-card span { color: var(--muted); font-size: 10px; }
.billing-current-card strong { font-size: 20px; }
.billing-current-card p, .billing-usage-card p { margin: 0; color: #8b97aa; font-size: 9px; }
.billing-usage-card { display: grid; align-content: center; gap: 10px; }
.billing-usage-heading { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.billing-usage-heading b { color: #34445e; font-size: 11px; }
.billing-progress { width: 100%; height: 8px; overflow: hidden; border: 0; border-radius: 999px; background: #edf1f6; appearance: none; }
.billing-progress::-webkit-progress-bar { border-radius: inherit; background: #edf1f6; }
.billing-progress::-webkit-progress-value { border-radius: inherit; background: linear-gradient(90deg,#409eff,#67c23a); }
.billing-progress::-moz-progress-bar { border-radius: inherit; background: linear-gradient(90deg,#409eff,#67c23a); }
.billing-progress.warning::-webkit-progress-value { background: linear-gradient(90deg,#e6a23c,#f56c6c); }
.billing-progress.warning::-moz-progress-bar { background: linear-gradient(90deg,#e6a23c,#f56c6c); }
.billing-resource-card { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); align-items: center; gap: 8px; }
.billing-resource-card > div { display: grid; gap: 5px; padding-left: 13px; border-left: 1px solid #e7ebf2; }
.billing-resource-card > div:first-child { padding-left: 0; border-left: 0; }
.billing-resource-card strong { color: #2e405f; font-size: 14px; }
.billing-plans-panel, .billing-orders-panel, .billing-ledger-panel { margin-bottom: 14px; }
.billing-payment-error { margin: 0 0 14px; padding: 12px 14px; border: 1px solid #f2c4c4; border-radius: 10px; color: #b42318; background: #fff5f5; font-size: 11px; line-height: 1.65; overflow-wrap: anywhere; }
.billing-payment-error[hidden] { display: none; }
.billing-price-note { padding: 5px 9px; border-radius: 999px; color: #188a5b; background: #e8f7ef; font-size: 9px; font-weight: 800; }
.billing-plan-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(205px,1fr)); gap: 11px; }
.billing-plan-card { position: relative; display: flex; flex-direction: column; min-height: 390px; padding: 19px; border: 1px solid #e0e7f1; border-radius: 15px; background: #fff; transition: transform .18s,border-color .18s,box-shadow .18s; }
.billing-plan-card:hover { transform: translateY(-2px); border-color: #bfd6ff; box-shadow: 0 12px 26px rgba(44,77,126,.08); }
.billing-plan-card.featured { border-color: #8fc4ff; background: linear-gradient(180deg,#f5f9ff,#fff 42%); box-shadow: 0 10px 28px rgba(64,158,255,.1); }
.billing-plan-card.current { box-shadow: inset 0 3px #67c23a; }
.billing-recommended { position: absolute; top: 0; right: 16px; padding: 4px 9px; border-radius: 0 0 8px 8px; color: #fff; background: #409eff; font-size: 9px; font-weight: 800; }
.billing-plan-name { display: flex; align-items: center; gap: 7px; color: #273954; font-size: 16px; font-weight: 850; }
.billing-plan-name b { padding: 3px 6px; border-radius: 999px; color: #188a5b; background: #e8f7ef; font-size: 8px; }
.billing-account-type { align-self: flex-start; padding: 3px 7px; border-radius: 999px; color: #315c9b; background: #eef5ff; font-size: 9px; }
.billing-account-type.incompatible { color: #a06a18; background: #fff6df; }
.billing-plan-card > p { min-height: 35px; margin: 7px 0 13px; color: var(--muted); font-size: 10px; line-height: 1.6; }
.billing-plan-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px; min-height: 52px; padding-bottom: 14px; border-bottom: 1px solid #edf0f5; }
.billing-plan-price strong { color: #10213d; font-size: 25px; letter-spacing: -.04em; }
.billing-plan-price span, .billing-plan-price small { color: #8995a7; font-size: 9px; }
.billing-plan-price small { flex-basis: 100%; }
.billing-plan-card ul { display: grid; gap: 8px; flex: 1; margin: 14px 0 16px; padding: 0; list-style: none; }
.billing-plan-card li { position: relative; padding-left: 16px; color: #56657b; font-size: 10px; line-height: 1.4; }
.billing-plan-card li::before { content: "✓"; position: absolute; left: 0; color: #409eff; font-weight: 900; }
.billing-plan-card .button { width: 100%; }
.billing-config-notice { grid-column: 1/-1; margin: 0; padding: 11px 13px; border: 1px solid #f5dab1; border-radius: 10px; color: #9b6418; background: #fff8eb; font-size: 10px; }
.billing-order-head, .billing-order-row { display: grid; grid-template-columns: minmax(190px,1.35fr) 1fr .55fr .65fr .65fr minmax(140px,.9fr); gap: 13px; align-items: center; }
.billing-order-head { padding: 10px 13px; color: #909399; background: #f5f7fa; font-size: 9px; }
.billing-order-row { min-height: 52px; padding: 10px 13px; border-bottom: 1px solid #ebeef5; color: #606266; font-size: 10px; }
.billing-order-row code { overflow: hidden; color: #33527f; text-overflow: ellipsis; white-space: nowrap; }
.billing-order-row strong { color: #303133; }
.billing-order-row time { color: #909399; }
.billing-order-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 5px; }
.billing-order-actions time { flex-basis: 100%; }
.billing-order-actions button { min-height: 25px; padding: 3px 8px; border: 1px solid #dcdfe6; border-radius: 5px; color: #606266; background: #fff; font-size: 9px; }
.billing-order-actions button.primary { border-color: #409eff; color: #409eff; }
.billing-order-actions button.danger { border-color: #fbc4c4; color: #f56c6c; }
.billing-status { justify-self: start; padding: 4px 8px; border-radius: 999px; color: #7b8798; background: #f0f2f5; font-size: 9px; font-weight: 800; }
.billing-status.pending { color: #a76813; background: #fff2df; }
.billing-status.paid { color: #188a5b; background: #e8f7ef; }
.billing-status.failed, .billing-status.expired { color: #bd3127; background: #fff0ef; }
.billing-status.cancelled { color: #737f91; background: #eef1f5; }
.billing-ledger-head, .billing-ledger-row { display: grid; grid-template-columns: minmax(145px,.8fr) minmax(220px,1.4fr) minmax(190px,1fr) .55fr; gap: 14px; align-items: center; }
.billing-ledger-head { padding: 10px 13px; color: #909399; background: #f5f7fa; font-size: 9px; }
.billing-ledger-row { min-height: 48px; padding: 10px 13px; border-bottom: 1px solid #ebeef5; color: #606266; font-size: 10px; }
.billing-ledger-row code { color: #33527f; overflow-wrap: anywhere; }
.billing-ledger-row b { color: #188a5b; }
.el-dialog-mask { position: fixed; z-index: 120; inset: 0; display: grid; place-items: center; padding: 20px; background: rgba(0,0,0,.5); animation: el-mask-in .16s ease-out; }
.el-dialog-mask[hidden] { display: none; }
.el-dialog-card { width: min(440px, calc(100vw - 32px)); overflow: hidden; border: 1px solid #e4e7ed; border-radius: 8px; background: #fff; box-shadow: 0 16px 48px rgba(0,0,0,.18); animation: el-dialog-in .18s ease-out; }
.el-dialog-card header { display: grid; grid-template-columns: 24px 1fr 24px; align-items: center; gap: 10px; padding: 20px 20px 12px; }
.el-dialog-icon { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; color: #fff; background: #e6a23c; font-size: 13px; font-weight: 800; }
.el-dialog-icon.danger { background: #f56c6c; }
.el-dialog-icon.info { background: #409eff; }
.el-dialog-card header h2 { margin: 0; color: #303133; font-size: 16px; font-weight: 600; }
.el-dialog-card header button { width: 24px; height: 24px; border: 0; color: #909399; background: transparent; font-size: 20px; line-height: 1; cursor: pointer; }
.el-dialog-card > p { margin: 0; padding: 0 20px 0 54px; color: #606266; font-size: 13px; line-height: 1.7; }
.el-dialog-detail { margin: 14px 20px 0 54px; padding: 11px 12px; border: 1px solid #ebeef5; border-radius: 6px; color: #606266; background: #f5f7fa; font-size: 11px; line-height: 1.65; }
.el-dialog-card footer { display: flex; justify-content: flex-end; gap: 10px; padding: 22px 20px 20px; }
.el-dialog-card footer .button { min-width: 72px; border-radius: 4px; }
.el-form-dialog { width: min(680px, calc(100vw - 32px)); max-height: calc(100vh - 40px); overflow: auto; }
.el-dialog-form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; padding: 8px 20px 20px; }
.el-dialog-form .full { grid-column: 1 / -1; }
.el-dialog-form .el-dialog-form { padding: 0; }
.el-dialog-form-note { margin: 0; padding: 10px 12px; border-radius: 6px; color: #606266; background: #f5f7fa; font-size: 12px; line-height: 1.6; }
.el-dialog-form footer { display: flex; justify-content: flex-end; gap: 10px; padding: 8px 0 0; }
.el-loading-mask { z-index: 1600; }
.el-loading-card { display: grid; justify-items: center; width: min(360px, calc(100vw - 32px)); padding: 30px 28px; text-align: center; }
.el-loading-card h2 { margin: 16px 0 7px; color: #303133; font-size: 17px; }
.el-loading-card p { margin: 0; color: #909399; font-size: 13px; line-height: 1.6; }
.el-loading-spinner { width: 38px; height: 38px; border: 4px solid #d9ecff; border-top-color: #409eff; border-radius: 50%; animation: auth-loading .72s linear infinite; }
@keyframes el-mask-in { from { opacity: 0; } }
@keyframes el-dialog-in { from { opacity: 0; transform: translateY(-12px) scale(.98); } }
.payment-modal { position: fixed; z-index: 1000; inset: 0; display: grid; place-items: center; padding: 20px; background: rgba(0,0,0,.5); }
.payment-modal-card { position: relative; display: grid; justify-items: center; width: min(420px,100%); padding: 30px 34px; border:1px solid #e4e7ed; border-radius: 8px; background: #fff; box-shadow: 0 16px 48px rgba(0,0,0,.18); text-align: center; }
.payment-modal-close { position: absolute; top: 13px; right: 14px; width: 32px; height: 32px; border: 0; border-radius: 9px; color: #8a96a8; background: #f3f5f8; font-size: 22px; }
.payment-wechat-mark { padding: 5px 9px; border-radius: 999px; color: #16875d; background: #e6f7ef; font-size: 10px; font-weight: 800; }
.payment-modal-card h2 { margin: 12px 0 5px; font-size: 23px; }
.payment-modal-card > p { margin: 0 0 14px; color: var(--muted); font-size: 11px; }
.payment-qr-wrap { display: grid; place-items: center; width: 220px; height: 220px; padding: 10px; border: 1px solid #dae4f2; border-radius: 17px; background: #fff; }
.payment-qr-wrap img { width: 100%; height: 100%; }
.payment-modal-card > strong { margin-top: 13px; color: #1a3155; font-size: 24px; }
.payment-modal-card > code { margin: 4px 0 10px; color: #8b97a8; font-size: 9px; }
.payment-state { display: inline-flex; align-items: center; gap: 7px; margin-bottom: 13px; color: #a76813; font-size: 10px; font-weight: 750; }
.payment-state i { width: 7px; height: 7px; border-radius: 50%; background: #e6a23c; box-shadow: 0 0 0 4px #fdf2df; }
.payment-modal-card.paid .payment-state { color: #188a5b; }
.payment-modal-card.paid .payment-state i { background: #25a86f; box-shadow: 0 0 0 4px #e2f6ec; }
.payment-modal-card.failed .payment-state { color: #bd3127; }
.payment-modal-card.failed .payment-state i { background: #f56c6c; box-shadow: 0 0 0 4px #fde9e9; }
.payment-modal-card > .button { width: 100%; }
.payment-modal-card > small { margin-top: 13px; color: #929dae; font-size: 9px; line-height: 1.6; }

/* 控制台标题字号统一，正文、数字指标和按钮不受影响。 */
.console-main h1,
.console-main h2,
.console-main h3 { font-size: 16px; }

@media (max-width: 1100px) {
  .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .overview-grid { grid-template-columns: 1fr; }
  .overview-analytics-grid { grid-template-columns: 1fr; }
  .usage-summary-panel { min-height: 0; }
  .usage-summary-content { grid-template-columns: 150px minmax(0, 1fr); align-items: center; justify-items: stretch; }
  .usage-success-ring { justify-self: center; }
  .service-overview { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .service-overview .service-security-note { grid-column: 1 / -1; }
  .publish-panel { position: static; }
  .publish-panel #serviceForm { grid-template-columns: 1fr; }
  .publish-panel #serviceForm > .form-section, .publish-panel #credentialsFields, .publish-panel .create-service-button { grid-column: 1; }
  .connector-intro { grid-template-columns: 1fr; }
  .service-list { grid-template-columns: 1fr; }
  .billing-summary-grid { grid-template-columns: 1fr 1fr; }
  .billing-resource-card { grid-column: 1/-1; }
}

@media (max-width: 820px) {
  .auth-shell { grid-template-columns: 1fr; }
  .auth-hero { min-height: 390px; padding: 28px; }
  .auth-hero-copy { margin: 62px 0 48px; }
  .auth-hero h1 { font-size: 38px; }
  .auth-form-side { padding: 48px 24px 70px; }
  .auth-form-wrap { padding: 32px 28px 28px; }
  .register-page{overflow:auto}
  .register-page .auth-shell{display:block;height:auto;min-height:100vh}
  .register-page .auth-hero{min-height:280px;padding:25px 28px}
  .register-page .auth-hero-copy{margin:42px 0 25px}
  .register-page .register-form-side{padding:28px 20px 48px;overflow:visible}
  .register-form-wrap{padding:25px 24px 22px}
  .console-header { display: flex; align-items: center; justify-content: space-between; padding: 0 14px; background: rgba(255,255,255,.96); }
  .console-header > .brand-lockup { height: auto; padding: 0; color: var(--ink); background: transparent; border: 0; }
  .console-header > .brand-lockup small { color: var(--muted); }
  .header-status { padding: 0; }
  .console-shell { display: block; }
  .sidebar { position: sticky; z-index: 15; top: var(--console-header-height); width: 100%; height: auto; padding: 8px 12px; overflow-x: auto; }
  .sidebar-nav { display: flex; min-width: max-content; }
  .nav-item { display: flex; width: auto; min-height: 39px; padding: 7px 11px; }
  .nav-item b, .nav-icon, .nav-divider, .sidebar-foot { display: none; }
  .nav-item.active { box-shadow: inset 0 -2px #6c97ff; }
  .console-main { padding: 20px 14px 38px; }
  .account-grid { grid-template-columns: 1fr; }
  .support-grid { grid-template-columns: 1fr; }
  .platform-notice,.platform-notice div{align-items:flex-start;flex-direction:column}.platform-notice button{width:100%}
  .overview-step-nav { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; padding-right: 0; padding-left: 0; }
  .overview-step-nav::before { top: 27px; right: 16.66%; bottom: auto; left: 16.66%; width: auto; height: 2px; }
  .overview-step { padding: 0; }
  .ranking-head, .ranking-row { min-width: 720px; }
  .service-ranking-panel { overflow-x: auto; }
  .overview-activity-head, .overview-activity-row { min-width: 980px; }
  .overview-activity-panel { overflow-x: auto; }
  .service-overview { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .service-overview .service-security-note { grid-column: 1 / -1; }
  .page-stats-strip { grid-template-columns: repeat(3, minmax(150px, 1fr)); overflow-x: auto; padding-bottom: 3px; }
  .billing-order-head, .billing-order-row { min-width: 850px; }
  .billing-orders-panel { overflow-x: auto; }
  .connector-downloads { grid-template-columns: 1fr; }
  .install-steps { grid-template-columns: 1fr; }
  .audit-head { display: none; }
  .audit-row { grid-template-columns: 130px 1fr; gap: 5px 14px; }
}

@media (max-width: 580px) {
  .console-header { padding: 0 14px; }
  .platform-status, .user-pill-copy, .brand-lockup small { display: none; }
  .page-title-row { align-items: start; flex-direction: column; margin-bottom: 22px; }
  .console-view { width: calc(100vw - 32px); margin: 0; }
  .page-title-row > div, .connector-copy { min-width: 0; width: 100%; }
  .page-title-row h1 { font-size: 16px; }
  .page-title-row p, .connector-copy p { overflow-wrap: anywhere; }
  .metric-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .metric-card { min-height: 48px; padding: 5px 10px; gap: 8px; }
  .metric-icon { width: 28px; height: 28px; }
  .metric-card strong { font-size: 17px; }
  .metric-card .metric-word { font-size: 16px; }
  .quick-start-panel { padding: 14px; }
  .overview-step-nav { gap: 8px; }
  .overview-step-nav::before { top: 22px; }
  .overview-step { grid-template-columns: 28px minmax(0, 1fr); min-height: 44px; gap: 7px; padding: 6px 8px; }
  .overview-step > span { width: 26px; height: 26px; border-width: 3px; font-size: 10px; }
  .overview-step > div { min-height: 0; margin: 0; padding: 0; }
  .overview-step strong { font-size: 14px; line-height: 1.2; }
  .overview-step p { font-size: 9px; }
  .usage-trend-panel, .usage-summary-panel { min-height: 0; }
  .usage-trend-chart { gap: 5px; padding-right: 0; padding-left: 0; }
  .trend-bars { width: min(26px, 78%); }
  .usage-summary-content { grid-template-columns: 1fr; }
  .usage-summary-list { margin-top: 2px; }
  .overview-activity-panel > .section-heading { padding: 17px; }
  .pagination { justify-content: center; min-width: 360px; }
  .panel { padding: 17px; }
  .service-overview { grid-template-columns: 1fr 1fr; gap: 9px; }
  .service-tabs { gap: 24px; min-height: 50px; padding: 0 16px; overflow-x: auto; }
  .service-tab { height: 49px; font-size: 13px; }
  .service-overview > div { min-height: 76px; padding: 13px; }
  .service-overview .service-security-note { grid-column: 1 / -1; }
  .service-security-note p small { display: block; }
  .page-stats-strip { grid-template-columns: 1fr; overflow: visible; }
  .page-stats-strip > div { min-height: 74px; }
  .service-toolbar, .table-toolbar, .domain-toolbar { align-items: stretch; flex-direction: column; }
  .service-toolbar select, .table-toolbar select, .domain-toolbar select { width: 100%; }
  .service-row { padding: 11px; }
  .service-row-top { align-items: flex-start; }
  .service-name { align-items: flex-start; }
  .service-protocol { width: 38px; }
  .service-detail-row { grid-template-columns: 1fr; }
  .service-meta-grid { grid-template-columns: 1fr 1fr; }
  .service-meta-grid > div:first-child { grid-column: 1 / -1; }
  .endpoint-box { align-items: stretch; flex-direction: column; gap: 8px; }
  .mini-icon-button { align-self: flex-start; }
  .action-button { flex: 1 1 calc(50% - 8px); }
  .action-button.danger { margin-left: 0; }
  .publish-heading { align-items: flex-start; flex-direction: column; }
  .publish-heading > div { width: 100%; }
  .publish-panel #serviceForm { padding-left: 38px; }
  .publish-panel #serviceForm > .form-section { padding: 17px; }
  .publish-panel #serviceForm > .form-section:nth-of-type(1)::after,
  .publish-panel #serviceForm > .form-section:nth-of-type(2)::after { left: -25px; }
  .publish-panel .form-section-title > b { left: -55px; }
  .connection-grid { grid-template-columns: 1fr; }
  .connection-grid .full { grid-column: 1; }
  .enrollment-head { flex-direction: column; }
  .profile-list > div { grid-template-columns: 82px minmax(0, 1fr); }
  .form-grid, .subgrid { grid-template-columns: 1fr; }
  .field, .full { grid-column: 1; }
  .domain-grid, .device-grid { grid-template-columns: 1fr; }
  .audit-row { grid-template-columns: 1fr; }
  .setting-row { align-items: start; flex-direction: column; }
  .enterprise-upgrade-form{width:100%;align-items:stretch;flex-direction:column}.enterprise-upgrade-form input{width:100%;min-width:0}
  .connector-flow { grid-template-columns: 1fr; }
  .connector-intro { gap: 20px; padding: 20px; }
  .connector-copy h2 { font-size: 18px; }
  .connector-flow > b { justify-self: center; transform: none; font-size: 0; }
  .connector-flow > b::after { content: "↓"; color: #7185aa; font-size: 16px; }
  .connection-values { grid-template-columns: 1fr; }
  .install-note { flex-direction: column; }
  .page-title-row > .button { width: 100%; }
  .service-title-actions { width: 100%; align-items: stretch; flex-direction: column; }
  .service-title-actions > .button { width: 100%; }
  .trust-list { display: none; }
  .billing-cycle-switch { width: 100%; }
  .billing-cycle-switch button { flex: 1; }
  .billing-summary-grid { grid-template-columns: 1fr; }
  .billing-resource-card { grid-column: auto; }
  .billing-plan-grid { grid-template-columns: 1fr; }
  .billing-plan-card { min-height: 0; }
}

.auth-code-row { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.auth-code-row .button { min-width: 108px; white-space: nowrap; }
.auth-agreement { display: flex; align-items: flex-start; gap: 8px; color: #6d7a91; font-size: 11px; line-height: 1.6; cursor: pointer; }
.auth-agreement input { margin-top: 2px; }
@media (max-width: 520px) {
  .register-form{grid-template-columns:1fr}
  .register-form .field,.register-form .field:nth-child(3),.register-form.sms-required .password-field,.register-form .auth-agreement,.register-form>.button{grid-column:1}
  .auth-code-row { grid-template-columns: 1fr; }
  .auth-code-row .button { width: 100%; }
}
