/**
 * FubiIP Unified Design System (v5 Clean Architecture)
 * Unified Dual-Theme: Dark (Aurora Obsidian) & Light (Ceramic SaaS)
 * Zero cascading conflicts, clean CSS custom properties, responsive grid constraints.
 */

/* ==========================================================================
   1. Design Tokens & Theme Variables
   ========================================================================== */
:root,
[data-theme="dark"] {
  /* Surfaces — V4 温润暖炭黑体系（零背景光斑 · 单一 #131518 焦点面） */
  --bg-app: #0D0E10;
  --page-bg: none;
  --bg-sidebar: #0A0B0D;
  --bg-header: #0D0E10;
  --bg-card: #131518;
  --bg-card-subtle: #0F1114;
  --bg-card-hover: #191C21;
  --bg-input: #08090B;
  --line: rgba(255, 255, 255, 0.07);
  --line-2: rgba(255, 255, 255, 0.135);

  /* Borders */
  --border-subtle: rgba(255, 255, 255, 0.07);
  --border-card: rgba(255, 255, 255, 0.135);
  --border-hover: rgba(217, 119, 54, 0.42);
  --border-focus: #D97736;

  /* Typography — 暖象牙白三级字阶 */
  --text-primary: #EBE7E0;
  --text-secondary: #9E9990;
  --text-muted: #68645D;
  --text-faint: #5B5750;
  --font-sans: "Plus Jakarta Sans", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "HarmonyOS Sans SC", "MiSans", "Hiragino Sans GB", "Noto Sans SC", "Source Han Sans SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;

  /* Brand Accents — 克制陶土橙 + 翡翠纯绿 */
  --accent: #D97736;
  --accent-hover: #E5894B;
  --accent-active: #BE5E24;
  --accent-ink: #E0864B;
  --accent-subtle: rgba(217, 119, 54, 0.11);
  --accent-border: rgba(217, 119, 54, 0.34);
  --accent-gradient: #D97736;
  --accent-gradient-hover: #E5894B;
  --cta-shadow: none;
  --cta-hover-shadow: none;

  /* Selected States */
  --selected-bg: rgba(217, 119, 54, 0.08);
  --selected-border: rgba(217, 119, 54, 0.58);
  --selected-shadow: none;
  --energy-bar: #D97736;
  --energy-glow: none;

  /* Semantic Statuses */
  --status-online: #10B981;
  --status-online-bg: rgba(16, 185, 129, 0.10);
  --status-warning: #F59E0B;
  --status-warning-bg: rgba(245, 158, 11, 0.10);
  --status-danger: #EF4444;
  --status-danger-bg: rgba(239, 68, 68, 0.10);
  --status-info: #9E9990;
  --status-info-bg: rgba(255, 255, 255, 0.05);

  /* Shadows & Glows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.28);
  --shadow-md: 0 8px 24px -8px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 18px 42px -12px rgba(0, 0, 0, 0.62);
  --glow-accent: none;
  --grid-pattern: transparent;

  /* 代码块 */
  --bg-code: #08090B;

  /* Framework Sizing — 4K@150% (2560x1440) 全宽大气骨架 */
  --sidebar-w: clamp(252px, 13vw, 333px);
  --sidebar-collapsed-w: 76px;
  --header-h: clamp(60px, 2.5vw, 66px);
  --content-max-w: none;

  /* Radii */
  --radius-sm: 0px;
  --radius-md: 0px;
  --radius-lg: 0px;
  --radius-xl: 0px;
  --radius-pill: 0px;

  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-smooth: 0.24s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-theme="light"] {
  /* Surfaces — V4 日间纯白底 (#FFFFFF) + 暖米白侧栏/焦点面板 (#FAF7F2) */
  --bg-app: #FFFFFF;
  --page-bg: none;
  --bg-sidebar: #FAF7F2;
  --bg-header: #FFFFFF;
  --bg-card: #FAF7F2;
  --bg-card-subtle: #F5F1EA;
  --bg-card-hover: #EFEAE0;
  --bg-input: #F5F1EA;
  --line: rgba(24, 23, 21, 0.08);
  --line-2: rgba(24, 23, 21, 0.15);

  /* Borders */
  --border-subtle: rgba(24, 23, 21, 0.08);
  --border-card: rgba(24, 23, 21, 0.15);
  --border-hover: rgba(181, 84, 30, 0.40);
  --border-focus: #B5541E;

  /* Typography */
  --text-primary: #181715;
  --text-secondary: #57534E;
  --text-muted: #8C867D;
  --text-faint: #8C867D;

  /* Brand Accents — 深陶土铜 + 深翡翠绿 */
  --accent: #B5541E;
  --accent-hover: #9E4716;
  --accent-active: #873B10;
  --accent-ink: #B5541E;
  --accent-subtle: rgba(181, 84, 30, 0.09);
  --accent-border: rgba(181, 84, 30, 0.28);
  --accent-gradient: #B5541E;
  --accent-gradient-hover: #9E4716;
  --cta-shadow: none;
  --cta-hover-shadow: none;

  /* Selected States */
  --selected-bg: rgba(181, 84, 30, 0.06);
  --selected-border: #B5541E;
  --selected-shadow: none;
  --energy-bar: #B5541E;
  --energy-glow: none;

  /* Semantic Statuses */
  --status-online: #059669;
  --status-online-bg: rgba(5, 150, 105, 0.08);
  --status-warning: #B45309;
  --status-warning-bg: rgba(180, 83, 9, 0.08);
  --status-danger: #DC2626;
  --status-danger-bg: rgba(220, 38, 38, 0.08);
  --status-info: #57534E;
  --status-info-bg: rgba(24, 23, 21, 0.05);

  /* Shadows & Glows */
  --shadow-sm: 0 1px 2px rgba(24, 23, 21, 0.04);
  --shadow-md: 0 8px 24px -8px rgba(24, 23, 21, 0.08);
  --shadow-lg: 0 18px 42px -12px rgba(24, 23, 21, 0.14);
  --glow-accent: none;
  --grid-pattern: transparent;

  /* 代码块：日间暖米灰 */
  --bg-code: #F5F1EA;
}

/* ==========================================================================
   2. Reset & Global Styles
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: var(--font-sans);
  background-color: var(--bg-app);
  color: var(--text-primary);
  line-height: 1.5;
  scrollbar-gutter: stable;
  overflow-y: scroll;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}

body {
  min-height: 100vh;
  background-color: var(--bg-app);
  background-image: var(--page-bg);
  background-repeat: no-repeat;
  background-size: 100% 100%;
  color: var(--text-primary);
  overflow-x: clip;
}

a {
  color: inherit;
  text-decoration: none;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

code, kbd, samp, pre {
  font-family: var(--font-mono);
}

::selection {
  background: var(--accent-subtle);
  color: var(--accent);
}
/* v4.0 审计：浅色模式选中高亮 —— 实色琥珀底 + 深色字，避免「浅橙底 + 橙字」看不清 */
[data-theme="light"] ::selection {
  background: rgba(180, 83, 9, 0.24);
  color: #1C1917;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: var(--border-card);
  border-radius: 0px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--text-faint);
}

/* ==========================================================================
   3. Application Shell Layout (Sidebar, Header, Main)
   ========================================================================== */
.miya-layout {
  display: flex;
  min-height: 100vh;
  background-color: var(--bg-app);
}

/* ---- Sidebar ---- */
.miya-sidebar {
  width: var(--sidebar-w);
  background-color: var(--bg-sidebar);
  border-right: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 50;
  transition: width var(--transition-smooth), transform var(--transition-smooth);
}

.sidebar-header {
  height: var(--header-h);
  padding: 0 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-subtle);
}

.miya-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  user-select: none;
}

/* Logo 标记：现在承载内联 SVG，不再用文字 */
.logo-mark {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  display: block;
  line-height: 0;
}
.logo-mark svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* 品牌文字：FubiIP；i 的点用品牌橙（与 logo 的“伏笔”节点呼应） */
.logo-text {
  display: inline-flex;
  align-items: baseline;
  gap: 0;
  font-family: Bahnschrift, "DIN Alternate", "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.004em;
  color: var(--text-primary);
  white-space: nowrap;
  line-height: 1;
}
.logo-text .logo-i {
  display: inline-block;
  width: .34em;
  height: .78em;
  margin: 0 .02em;
  flex: none;
}
.logo-text .logo-i svg {
  display: block;
  width: 100%;
  height: 100%;
}
/* “IP” 的 I：深橙 → 浅橙渐隐，像一条埋下、尚未兑现的线 */
.logo-text .logo-I {
  display: inline-block;
  width: .18em;
  height: .72em;
  margin: 0 .045em 0 .03em;
  flex: none;
}
.logo-text .logo-I svg {
  display: block;
  width: 100%;
  height: 100%;
}
/* 展开时 logo 标记放进字标中间当分隔；收起时只用标记 */
.miya-logo .logo-mark { display: none; }
[data-sidebar="collapsed"] .miya-logo .logo-mark { display: block; }
.logo-text .logo-sep {
  display: inline-block;
  width: .60em;
  height: .60em;
  margin: 0 .16em;
  align-self: center;
  flex: none;
}
.logo-text .logo-sep svg {
  display: block;
  width: 100%;
  height: 100%;
}
.logo-text strong {
  color: var(--accent);
  font-weight: 600;
  letter-spacing: .03em;
  margin-left: .03em;
}

/* 侧边栏头部间距（宽度加大后微调） */
.sidebar-header {
  padding: 16px 16px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.miya-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
  text-decoration: none;
}
.miya-logo:hover .logo-text {
  color: var(--accent);
}

.sidebar-toggle {
  width: 26px;
  height: 26px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-card);
  background: var(--bg-card-subtle);
  color: var(--text-muted);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background-color var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast), transform var(--transition-fast), opacity var(--transition-fast);
  font-size: 14px;
}
.sidebar-toggle:hover {
  border-color: var(--accent-border);
  background: var(--accent-subtle);
  color: var(--accent);
}

.sidebar-nav {
  flex: 1;
  padding: 14px 10px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 11px 16px;
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-size: 15px;
  font-weight: 500;
  transition: background-color var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast), transform var(--transition-fast), opacity var(--transition-fast);
  user-select: none;
}
.nav-item:hover {
  background: var(--bg-card-hover);
  color: var(--text-primary);
}
.nav-item.active {
  background: var(--accent-subtle);
  color: var(--accent);
  font-weight: 600;
}

.nav-icon {
  font-size: 16px;
  width: 20px;
  text-align: center;
  flex-shrink: 0;
}

.nav-label {
  flex: 1;
  white-space: nowrap;
}

.nav-group-header {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  margin-top: 10px;
  border-radius: var(--radius-md);
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  user-select: none;
  transition: background-color var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast), transform var(--transition-fast), opacity var(--transition-fast);
  text-align: left;
}
.nav-group-header:hover {
  background: var(--bg-card-subtle);
  color: var(--text-primary);
}

.arrow-indicator {
  font-size: 11px;
  color: var(--text-faint);
  transition: transform var(--transition-smooth);
}
.nav-group-header[aria-expanded="false"] .arrow-indicator {
  transform: rotate(-90deg);
}

.nav-sub-menu {
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow: hidden;
  transition: max-height var(--transition-smooth);
}
.nav-sub-menu.is-collapsed {
  max-height: 0 !important;
}

.sub-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 16px 9px 50px;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
  transition: background-color var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast), transform var(--transition-fast), opacity var(--transition-fast);
  user-select: none;
  position: relative;
}
.sub-item::before {
  content: "";
  position: absolute;
  left: 28px;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 4px;
  border-radius: 0px;
  background: var(--text-faint);
  transition: background-color var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast), transform var(--transition-fast), opacity var(--transition-fast);
}
.sub-item:hover {
  background: var(--bg-card-hover);
  color: var(--text-primary);
}
.sub-item.active {
  color: var(--accent);
  background: var(--accent-subtle);
  font-weight: 600;
}
.sub-item.active::before {
  background: var(--accent);
  box-shadow: 0 0 6px var(--accent);
  transform: translateY(-50%) scale(1.4);
}
.sub-item .cross-icon {
  margin-left: auto;
  opacity: 0.45;
  display: inline-flex;
  align-items: center;
}
.sub-item .cross-icon .ic {
  width: 14px;
  height: 14px;
}
.sub-item:hover .cross-icon {
  opacity: 0.9;
  color: var(--accent);
}

.sidebar-footer {
  padding: 14px 18px;
  border-top: 1px solid var(--border-subtle);
}
.help-doc-link {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 13px;
  transition: color var(--transition-fast);
}
.help-doc-link:hover {
  color: var(--accent);
}

/* Collapsed Sidebar Mode */
[data-sidebar="collapsed"] .miya-sidebar {
  width: var(--sidebar-collapsed-w);
}
[data-sidebar="collapsed"] .logo-text,
[data-sidebar="collapsed"] .nav-label,
[data-sidebar="collapsed"] .arrow-indicator,
[data-sidebar="collapsed"] .sub-label,
[data-sidebar="collapsed"] .help-doc-link span:not(.icon) {
  display: none !important;
}
[data-sidebar="collapsed"] .sidebar-header {
  flex-direction: column;
  padding: 12px 0 10px;
  height: auto;
  gap: 8px;
  justify-content: center;
}
[data-sidebar="collapsed"] .sidebar-toggle {
  transform: rotate(180deg);
}
[data-sidebar="collapsed"] .nav-item,
[data-sidebar="collapsed"] .nav-group-header,
[data-sidebar="collapsed"] .sub-item {
  padding: 10px 0 !important;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin: 2px auto;
}
[data-sidebar="collapsed"] .sub-item::before {
  display: none;
}
[data-sidebar="collapsed"] .nav-sub-menu {
  display: none;
}
[data-sidebar="collapsed"] .sidebar-footer {
  display: none;
}

/* ---- Main & Header ---- */
.miya-main {
  flex: 1;
  margin-left: var(--sidebar-w);
  display: flex;
  flex-direction: column;
  min-width: 0;
  transition: margin-left var(--transition-smooth);
}
[data-sidebar="collapsed"] .miya-main {
  margin-left: var(--sidebar-collapsed-w);
}

.miya-header {
  height: var(--header-h);
  background-color: var(--bg-header);
  border-bottom: 1px solid var(--border-subtle);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}
.sidebar-toggle-inline {
  display: none;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-card);
  background: var(--bg-card-subtle);
  color: var(--text-primary);
  font-size: 16px;
  cursor: pointer;
  place-items: center;
}
.page-title {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.status-indicator {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-muted);
}
.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--status-online);
  box-shadow: 0 0 6px var(--status-online);
}

.header-link {
  font-size: 13px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
  transition: color var(--transition-fast);
}
.header-link:hover {
  color: var(--text-primary);
}

.wallet-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 0px;
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-card);
  color: var(--text-secondary);
  font-size: 13px;
  cursor: pointer;
  transition: background-color var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast), transform var(--transition-fast), opacity var(--transition-fast);
}
.wallet-pill:hover {
  border-color: var(--accent-border);
  background: var(--accent-subtle);
}
.wallet-pill strong {
  color: var(--text-primary);
  font-weight: 700;
  font-family: var(--font-mono);
}

.btn-recharge {
  padding: 6px 16px;
  border-radius: 0px;
  background: var(--accent-gradient);
  border: none;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: background-color var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast), transform var(--transition-fast), opacity var(--transition-fast);
}
.btn-recharge:hover {
  opacity: 0.92;
  transform: translateY(-1px);
}

.theme-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 0px;
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-card);
  color: var(--text-secondary);
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast), transform var(--transition-fast), opacity var(--transition-fast);
}
.theme-toggle:hover {
  border-color: var(--border-hover);
  color: var(--text-primary);
}

.user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 0px;
  background: var(--accent-subtle);
  border: 1px solid var(--accent-border);
  color: var(--accent);
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 700;
}

/* ---- Content Area with Max Width Constraint ---- */
.miya-content {
  flex: 1;
  padding: 24px 32px 48px;
}
.miya-content > * {
  max-width: var(--content-max-w);
  margin-left: auto;
  margin-right: auto;
}

/* Page Entrance Animation */
.mx-page-enter > * {
  animation: pageFadeUp 0.35s cubic-bezier(0.16, 1, 0.3, 1) both;
}
@keyframes pageFadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   4. Universal Component Library (Cards, Buttons, Tables, Dropdowns)
   ========================================================================== */
.mx-page {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.mx-phead {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.mx-phead h2 {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}
.mx-phead p {
  font-size: 14px;
  color: var(--text-muted);
}

.mx-panel,
.wizard-step-card,
.order-summary-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}
.mx-panel:hover,
.wizard-step-card:hover {
  border-color: var(--border-hover);
}

.mx-panel-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}
.mx-panel-sub {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.mx-btn-s,
.btn-tool {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-card);
  background: var(--bg-card-subtle);
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast), transform var(--transition-fast), opacity var(--transition-fast);
  white-space: nowrap;
}
.mx-btn-s:hover,
.btn-tool:hover {
  background: var(--bg-card-hover);
  color: var(--text-primary);
  border-color: var(--text-faint);
}
.mx-btn-s.primary,
.btn-tool-primary {
  background: var(--accent-gradient);
  border-color: var(--accent);
  color: #fff;
  font-weight: 600;
}
.mx-btn-s.primary:hover,
.btn-tool-primary:hover {
  opacity: 0.92;
  transform: translateY(-1px);
}
.mx-btn-s:disabled,
.btn-tool:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.mx-input,
.miya-input {
  width: 100%;
  padding: 9px 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-card);
  background: var(--bg-input);
  color: var(--text-primary);
  font-size: 13px;
  outline: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}
.mx-input:focus,
.miya-input:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px var(--accent-subtle);
}

/* Tabs */
.mx-tabs,
.tab-pill-bar {
  display: inline-flex;
  gap: 6px;
  padding: 4px;
  border-radius: var(--radius-md);
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-subtle);
  width: fit-content;
}
.mx-tab,
.tab-pill {
  padding: 6px 16px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  transition: background-color var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast), transform var(--transition-fast), opacity var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.mx-tab:hover,
.tab-pill:hover {
  color: var(--text-primary);
}
.mx-tab.active,
.tab-pill.active {
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  box-shadow: var(--shadow-sm);
}

/* Tables */
.mx-table-wrap,
.table-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.mx-table-head {
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-subtle);
}
.mx-table,
.miya-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 13px;
  text-align: left;
}
.mx-table thead th,
.miya-table thead th {
  background: var(--bg-card-subtle);
  padding: 12px 16px;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-bottom: 1px solid var(--border-card);
  white-space: nowrap;
}
.mx-table tbody td,
.miya-table tbody td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  vertical-align: middle;
}
.mx-table tbody tr:last-child td,
.miya-table tbody tr:last-child td {
  border-bottom: none;
}
.mx-table tbody tr:hover,
.miya-table tbody tr:hover {
  background: var(--accent-subtle);
}
.mx-table tbody tr:hover td,
.miya-table tbody tr:hover td {
  color: var(--text-primary);
}

/* Badges */
.mx-badge,
.status-badge-inline {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  border-radius: 0px; font-variant-numeric: tabular-nums;
  font-size: 11.5px;
  font-weight: 600;
  white-space: nowrap;
}
.mx-badge.green,
.status-badge-inline.online {
  background: var(--status-online-bg);
  color: var(--status-online);
}
.mx-badge.warn {
  background: var(--status-warning-bg);
  color: var(--status-warning);
}
.mx-badge.danger {
  background: var(--status-danger-bg);
  color: var(--status-danger);
}
.mx-badge.accent {
  background: var(--accent-subtle);
  color: var(--accent);
}
.mx-badge .dot,
.status-badge-inline .dot-small {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

/* Custom Dropdown (.mx-dd) */
.mx-dd {
  position: relative;
  display: inline-block;
}
/* 20261103：展开中的下拉自身抬层，压住同排其它下拉/按钮 */
.mx-dd.is-open {
  z-index: 60;
}
.mx-dd-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-card);
  background: var(--bg-card-subtle);
  color: var(--text-secondary);
  font-size: 13px;
  cursor: pointer;
  transition: background-color var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast), transform var(--transition-fast), opacity var(--transition-fast);
  white-space: nowrap;
}
.mx-dd-trigger:hover,
.mx-dd.is-open .mx-dd-trigger {
  border-color: var(--accent);
  color: var(--text-primary);
}
.mx-dd-caret {
  font-size: 11px;
  color: var(--text-muted);
  transition: transform var(--transition-fast);
}
.mx-dd.is-open .mx-dd-caret {
  transform: rotate(180deg);
}
.mx-dd-panel {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 220px;
  max-height: 320px;
  overflow-y: auto;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  z-index: 100;
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  opacity: 0;
  transform: translateY(-6px) scale(0.98);
  pointer-events: none;
  transition: opacity 0.16s ease, transform 0.16s ease;
}
.mx-dd.is-open .mx-dd-panel {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
.mx-dd-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 13px;
  text-align: left;
  cursor: pointer;
  transition: background var(--transition-fast);
}
.mx-dd-item:hover {
  background: var(--bg-card-hover);
  color: var(--text-primary);
}
.mx-dd-item.is-selected {
  background: var(--accent-subtle);
  color: var(--accent);
  font-weight: 600;
}
.mx-dd-check {
  margin-left: auto;
  opacity: 0;
  font-size: 12px;
}
.mx-dd-item.is-selected .mx-dd-check {
  opacity: 1;
}
.mx-dd-group-title {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 6px 10px 2px;
}
.mx-dd-divider {
  height: 1px;
  background: var(--border-subtle);
  margin: 4px 6px;
}

/* SVG Flags */
.region-flag {
  display: inline-flex;
  width: 24px;
  height: 16px;
  border-radius: 0px;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  flex-shrink: 0;
}
.region-flag svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* ==========================================================================
   5. Page Specific: Buy Wizard (`#/buy`)
   ========================================================================== */
.buy-layout-container {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 24px;
  align-items: start;
}

.buy-wizard-main {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.yellow-alert-strip {
  background: var(--status-warning-bg);
  border: 1px solid var(--status-warning);
  color: var(--status-warning);
  border-radius: var(--radius-md);
  padding: 12px 18px;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}
.yellow-alert-strip a {
  font-weight: 700;
  text-decoration: underline;
}

.step-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}
.step-num-pill {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-sm);
  background: var(--accent-subtle);
  color: var(--accent);
  border: 1px solid var(--accent-border);
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 700;
  font-family: var(--font-mono);
}
.step-title-box h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
}
.step-title-box p {
  font-size: 12.5px;
  color: var(--text-muted);
}

/* Region selection grid */
.region-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
}
.region-select-card {
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  cursor: pointer;
  transition: background-color var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast), transform var(--transition-fast), opacity var(--transition-fast);
  position: relative;
}
.region-select-card:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
}
.region-select-card.active {
  border-color: var(--accent);
  background: var(--accent-subtle);
  box-shadow: 0 0 0 1px var(--accent);
}
.region-meta strong {
  display: block;
  font-size: 14px;
  color: var(--text-primary);
}
.region-meta small {
  font-size: 11px;
  color: var(--text-muted);
}
.region-check-tick {
  position: absolute;
  top: 10px;
  right: 10px;
  color: var(--accent);
  font-weight: 700;
}
.region-select-card.is-soon {
  opacity: 0.5;
  cursor: not-allowed;
}
.region-select-card.is-soon:hover {
  transform: none;
  border-color: var(--border-card);
  background: var(--bg-card-subtle);
}

/* Network selection grid */
.network-type-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.net-type-card {
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  transition: background-color var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast), transform var(--transition-fast), opacity var(--transition-fast);
  position: relative;
}
.net-type-card:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
}
.net-type-card.active {
  border-color: var(--accent);
  background: var(--accent-subtle);
  box-shadow: 0 0 0 1px var(--accent);
}
.net-type-card.disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Line cards & Bill mode cards */
.line-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 320px));
  gap: 12px;
}
.bill-mode-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}
.line-select-card,
.bill-mode-card {
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 14px;
  cursor: pointer;
  transition: background-color var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast), transform var(--transition-fast), opacity var(--transition-fast);
}
.line-select-card:hover,
.bill-mode-card:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
}
.line-select-card.active,
.bill-mode-card.active {
  border-color: var(--accent);
  background: var(--accent-subtle);
  box-shadow: 0 0 0 1px var(--accent);
}

/* Quantity config box (Step 05) */
.amount-config-box {
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.config-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.config-header-row strong {
  font-size: 15px;
  color: var(--text-primary);
}
.period-tag {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 0px;
  background: var(--accent-subtle);
  color: var(--accent);
}
.stepper-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.stepper-btn {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  color: var(--text-primary);
  font-size: 18px;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background-color var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast), transform var(--transition-fast), opacity var(--transition-fast);
}
.stepper-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.stepper-input {
  width: 80px;
  height: 36px;
  text-align: center;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-card);
  background: var(--bg-input);
  color: var(--text-primary);
  font-size: 15px;
  font-weight: 700;
  font-family: var(--font-mono);
  outline: none;
}
.quick-amount-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.amount-chip {
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  color: var(--text-secondary);
  font-size: 12px;
  cursor: pointer;
  transition: background-color var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast), transform var(--transition-fast), opacity var(--transition-fast);
}
.amount-chip:hover {
  border-color: var(--text-muted);
}
.amount-chip.active {
  border-color: var(--accent);
  background: var(--accent-subtle);
  color: var(--accent);
  font-weight: 600;
}
.price-preview-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding: 14px;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
}
.price-col small {
  display: block;
  font-size: 11px;
  color: var(--text-muted);
}
.price-col strong {
  font-size: 16px;
  font-family: var(--font-mono);
  color: var(--text-primary);
}
.price-col.total strong {
  color: var(--accent);
}
.features-check-line {
  display: flex;
  gap: 16px;
  font-size: 12px;
  color: var(--text-muted);
  flex-wrap: wrap;
}
.features-check-line span::before {
  content: "";
  color: var(--status-online);
}
.btn-add-cart {
  padding: 12px;
  border-radius: var(--radius-md);
  background: var(--accent-gradient);
  border: none;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: var(--shadow-sm);
  transition: background-color var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast), transform var(--transition-fast), opacity var(--transition-fast);
}
.btn-add-cart:hover {
  opacity: 0.92;
  transform: translateY(-1px);
}

/* Sticky Order Summary Card */
.buy-summary-sidebar {
  position: sticky;
  top: calc(var(--header-h) + 20px);
}
.order-summary-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.summary-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 12px;
}
.summary-eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  text-transform: uppercase;
}
.cart-count-badge {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 0px; font-variant-numeric: tabular-nums;
  background: var(--accent-subtle);
  color: var(--accent);
  font-weight: 700;
}
.cart-empty-box {
  text-align: center;
  padding: 30px 0;
  color: var(--text-muted);
  font-size: 13px;
}
.summary-total-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-top: 1px solid var(--border-subtle);
  padding-top: 14px;
}
.summary-total-row strong {
  font-size: 24px;
  font-weight: 800;
  font-family: var(--font-mono);
  color: var(--accent);
}
.balance-preview-box {
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
}
.balance-preview-row {
  display: flex;
  justify-content: space-between;
  color: var(--text-muted);
}
.balance-preview-row strong {
  color: var(--text-primary);
  font-family: var(--font-mono);
}
.btn-checkout-now {
  padding: 12px;
  border-radius: var(--radius-md);
  background: var(--accent-gradient);
  border: none;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: background-color var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast), transform var(--transition-fast), opacity var(--transition-fast);
}
.btn-checkout-now:hover:not(:disabled) {
  opacity: 0.92;
  transform: translateY(-1px);
}
.btn-checkout-now:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ==========================================================================
   6. Page Specific: Proxies (`#/static-proxies`) & Generator
   ========================================================================== */
.generator-box {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.generator-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.generator-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
}
.generator-format-selector {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.format-chip-btn {
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-card);
  background: var(--bg-card-subtle);
  color: var(--text-secondary);
  font-size: 12.5px;
  cursor: pointer;
  transition: background-color var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast), transform var(--transition-fast), opacity var(--transition-fast);
}
.format-chip-btn:hover {
  border-color: var(--text-muted);
}
.format-chip-btn.active {
  border-color: var(--accent);
  background: var(--accent-subtle);
  color: var(--accent);
  font-weight: 600;
}
.generator-preview-row {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}
.generator-preview-input {
  flex: 1 1 340px;
  min-width: 0;
  padding: 9px 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-card);
  background: var(--bg-input);
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 12.5px;
  outline: none;
}
.generator-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.filter-toolbar,
.mx-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
/* 20261103 层级修复：工具栏与表格都带 mwRise 入场动画（fill: both），各自形成 z-index:auto 的层叠上下文，
   DOM 靠后的 .mx-table-wrap 会整块盖住工具栏里的 .mx-dd-panel（panel 的 z-index:100 被困在工具栏内部）。
   给工具栏显式抬层（30：高于表格 1 / 粘性表头 2，低于粘性顶栏 .miya-header 的 40，滚动时不会盖住顶栏）。 */
.mx-toolbar,
.sp-toolbar {
  position: relative;
  z-index: 30;
  overflow: visible !important;
}
.sp-page .mx-table-wrap {
  position: relative;
  z-index: 1;
}
.filter-left,
.mx-toolbar-side {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.mx-region-cell {
  display: flex;
  align-items: center;
  gap: 8px;
}
.mx-region-txt {
  display: flex;
  flex-direction: column;
}
.mx-region-txt strong {
  font-size: 13px;
  color: var(--text-primary);
}
.mx-region-txt small {
  font-size: 11px;
  color: var(--text-muted);
}

/* ==========================================================================
   7. Page Specific: Billings (`#/billings`)
   ========================================================================== */
.billing-grid-4,
.mx-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}
.billing-stat-card,
.mx-stat {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform var(--transition-fast), border-color var(--transition-fast);
}
.billing-stat-card:hover,
.mx-stat:hover {
  transform: translateY(-2px);
  border-color: var(--border-hover);
}
.billing-stat-head,
.mx-stat-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--text-muted);
}
.billing-stat-val,
.mx-stat-val {
  font-size: 26px;
  font-weight: 800;
  font-family: var(--font-mono);
  color: var(--text-primary);
}
.billing-stat-val.accent { color: var(--accent); }
.billing-stat-val.green { color: var(--status-online); }
.billing-stat-sub,
.mx-stat-sub {
  font-size: 12px;
  color: var(--text-faint);
}

.deposit-panel {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 24px;
}
.deposit-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}
.deposit-chips-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.deposit-chip {
  padding: 12px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-card);
  background: var(--bg-card-subtle);
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast), transform var(--transition-fast), opacity var(--transition-fast);
}
.deposit-chip:hover {
  border-color: var(--accent);
}
.deposit-chip.active {
  border-color: var(--accent);
  background: var(--accent-subtle);
  color: var(--accent);
}
.deposit-channel-tabs {
  display: flex;
  gap: 8px;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 12px;
  margin-bottom: 14px;
}
.channel-tab-btn {
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: 12.5px;
  cursor: pointer;
  transition: background-color var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast), transform var(--transition-fast), opacity var(--transition-fast);
}
.channel-tab-btn.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  font-weight: 600;
}
.channel-detail-card {
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 18px;
}

/* ==========================================================================
   8. Page Specific: Overview (`#/dashboard`) Aurora Modern
   ========================================================================== */
.mx-aurora,
.wb-hero-section {
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.mx-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 460px;
  gap: 36px;
  align-items: center;
  padding: 32px 0;
}
.mx-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px;
  border-radius: 0px;
  background: var(--accent-subtle);
  border: 1px solid var(--accent-border);
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 16px;
}
.mx-tag i {
  width: 6px;
  height: 6px;
  border-radius: 0px;
  background: var(--status-online);
}
.mx-hero h1 {
  font-size: clamp(32px, 3.6vw, 48px);
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin-bottom: 16px;
}
.mx-hero h1 em {
  font-style: normal;
  color: var(--accent);
}
.mx-hero-sub {
  font-size: 17.5px;
  color: var(--text-muted);
  line-height: 1.8;
  max-width: 600px;
  margin-bottom: 30px;
}
.mx-cta-row {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 32px;
}
.mx-btn {
  /* v1.9.1：显式 inline-flex 居中。原先无 display，<a> 落在 flex 容器里被块化成 display:block，
     一旦固定 height + padding:0（如底部 CTA），文字就贴在顶部行盒、下半截空橙底 */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  box-sizing: border-box;
  padding: 10px 22px;
  border-radius: 0px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast), transform var(--transition-fast), opacity var(--transition-fast);
}
.mx-btn-primary {
  background: var(--accent-gradient);
  color: #fff;
  border: none;
  box-shadow: var(--shadow-sm);
}
.mx-btn-primary:hover {
  transform: translateY(-1px);
  opacity: 0.94;
}
.mx-btn-ghost {
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-card);
  color: var(--text-primary);
}
.mx-btn-ghost:hover {
  background: var(--bg-card-hover);
}
/* v3.4：Hero 琥珀流光特性铭牌带（纯视觉、不可点击；取代原 .mx-hero-stats / .mx-hero-snapshot） */
.mx-hero-ribbon {
  --rb-line: rgba(226, 139, 78, 0.34);
  --rb-bg: linear-gradient(135deg, rgba(226, 139, 78, 0.14), rgba(245, 196, 120, 0.06) 55%, rgba(226, 139, 78, 0.10));
  --rb-text: #F3D2AE;
  --rb-ic: #F0A868;
  position: relative;
  display: inline-flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 0;
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
  border-radius: 0px;
  border: 1px solid var(--rb-line);
  background: var(--rb-bg);
  box-shadow: inset 0 1px 0 rgba(255, 236, 210, 0.08), 0 10px 28px -18px rgba(226, 139, 78, 0.55);
  overflow: hidden;
  pointer-events: none;
  user-select: none;
  isolation: isolate;
}
.mx-hero-ribbon::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(105deg, transparent 30%, rgba(255, 214, 160, 0.16) 48%, transparent 66%);
  transform: translateX(-100%);
  animation: mxRibbonSheen 6.5s cubic-bezier(0.45, 0, 0.25, 1) 1.2s infinite;
}
@keyframes mxRibbonSheen { 0% { transform: translateX(-100%); } 38%, 100% { transform: translateX(100%); } }
@media (prefers-reduced-motion: reduce) { .mx-hero-ribbon::after { animation: none; opacity: 0; } }
.mx-hero-ribbon li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--rb-text);
  white-space: nowrap;
}
.mx-hero-ribbon li + li { border-left: 1px solid var(--rb-line); }
.mx-rb-ic {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 0px;
  color: var(--rb-ic);
  background: radial-gradient(circle at 30% 25%, rgba(255, 220, 170, 0.28), rgba(226, 139, 78, 0.10) 70%);
  box-shadow: 0 0 0 1px rgba(226, 139, 78, 0.28), 0 0 12px -2px rgba(240, 168, 104, 0.45);
}
.mx-rb-ic svg { width: 13px; height: 13px; }
[data-theme="light"] .mx-hero-ribbon {
  --rb-line: rgba(194, 103, 47, 0.26);
  --rb-bg: linear-gradient(135deg, #FFF4E6, #FFFAF3 55%, #FDEBD6);
  --rb-text: #7A4319;
  --rb-ic: #C2672F;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 10px 24px -18px rgba(194, 103, 47, 0.45);
}
[data-theme="light"] .mx-hero-ribbon::after {
  background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, 0.75) 48%, transparent 66%);
}
[data-theme="light"] .mx-rb-ic {
  background: radial-gradient(circle at 30% 25%, #FFFFFF, rgba(194, 103, 47, 0.10) 75%);
  box-shadow: 0 0 0 1px rgba(194, 103, 47, 0.22);
}
@media (max-width: 640px) {
  .mx-hero-ribbon { display: flex; flex-direction: column; }
  .mx-hero-ribbon li + li { border-left: 0; border-top: 1px solid var(--rb-line); }
}

/* Floating Mockup Card */
.mx-mock {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-xl);
  padding: 20px;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.mx-mock-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 10px;
}
.mx-mock-bar i {
  width: 8px;
  height: 8px;
  border-radius: 0px;
  background: var(--border-card);
}
.mx-mock-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  background: var(--bg-card-subtle);
  border-radius: var(--radius-sm);
  font-size: 13px;
}
.mx-pill.up {
  color: var(--status-online);
  background: var(--status-online-bg);
  padding: 2px 8px;
  border-radius: 0px;
  font-size: 11px;
  font-weight: 600;
}
.mx-pill.warn {
  color: var(--status-warning);
  background: var(--status-warning-bg);
  padding: 2px 8px;
  border-radius: 0px;
  font-size: 11px;
  font-weight: 600;
}
.mx-spark {
  height: 80px;
}
.mx-spark svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}
/* 走势图下的面积填充：必须显式接渐变，否则 SVG 默认填充色是纯黑 */
.mx-spark .area {
  fill: url(#mxSparkGrad);
  stroke: none;
}
.mx-spark .line {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Bento Cards */
.mx-sec-head {
  margin-bottom: 24px;
}
.mx-kicker {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--accent);
  text-transform: uppercase;
}
.mx-sec-head h2 {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-top: 4px;
}
.mx-sec-head p {
  color: var(--text-muted);
  font-size: 14px;
  margin-top: 4px;
}
.mx-bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
}
.mx-c4 { grid-column: span 4; }
.mx-c6 { grid-column: span 6; }
.mx-c12 { grid-column: span 12; }
.mx-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: background-color var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast), transform var(--transition-fast), opacity var(--transition-fast);
}
.mx-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
}
.mx-card-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--accent-subtle), rgba(249, 115, 22, 0.04));
  color: var(--accent);
  border: 1px solid var(--accent-border);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
/* 线条图标：必须显式 fill:none，否则 <path> 默认实心填充，线稿会被涂成色块 */
.mx-card-icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.mx-card h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-primary);
}
.mx-card p {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.6;
}
.mx-dlist {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: auto;
}
.mx-dl {
  display: flex;
  justify-content: space-between;
  padding: 8px 12px;
  background: var(--bg-card-subtle);
  border-radius: var(--radius-sm);
  font-size: 12.5px;
}
.mx-dl b {
  color: var(--text-primary);
}
.mx-gauge {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: auto;
}
.mx-ring {
  width: 76px;
  height: 76px;
  flex-shrink: 0;
}
/* 环形进度条：SVG 圆默认会被填充成黑色，必须显式 fill:none */
.mx-ring circle {
  fill: none;
  stroke-width: 6;
}
.mx-ring .bg {
  stroke: var(--accent-subtle);
}
.mx-ring .fg {
  stroke: var(--accent);
  stroke: url(#mxRingGrad);
  stroke-linecap: round;
  transition: stroke-dashoffset 1.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.mx-card.mx-in .mx-ring .fg {
  stroke-dashoffset: 0.1;
}
.mx-gauge .num {
  font-size: 28px;
  font-weight: 800;
  font-family: var(--font-mono);
  color: var(--accent);
}
.mx-gauge small {
  font-size: 12px;
  color: var(--text-muted);
  display: block;
}
.mx-stream {
  overflow: hidden;
  padding: 8px 0;
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.mx-stream-track {
  display: flex;
  gap: 12px;
  white-space: nowrap;
  animation: streamMarquee 24s linear infinite;
}
@keyframes streamMarquee {
  to { transform: translateX(-50%); }
}
.mx-stream-track span {
  padding: 4px 12px;
  background: var(--bg-card-subtle);
  border-radius: 0px;
  font-size: 12px;
  font-family: var(--font-mono);
  color: var(--text-muted);
}

/* CTA Box */
.mx-cta-wrap {
  margin-top: 12px;
}
.mx-cta-box {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-xl);
  padding: 48px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.mx-cta-box h2 {
  font-size: 28px;
  font-weight: 800;
  color: var(--text-primary);
}
.mx-cta-box p {
  color: var(--text-muted);
  max-width: 500px;
  font-size: 14px;
}

/* ==========================================================================
   9. Modals & Toasts
   ========================================================================== */
.miya-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--bg-card);
  color: var(--text-primary);
  padding: 12px 20px;
  border-radius: var(--radius-md);
  font-size: 13.5px;
  border-left: 4px solid var(--status-online);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.22s ease, transform 0.22s ease;
  z-index: 1000;
  pointer-events: none;
}
.miya-toast.show {
  opacity: 1;
  transform: translateY(0);
}

.miya-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
}
.miya-modal-backdrop.hidden {
  display: none;
}
.miya-modal-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  width: 100%;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.modal-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.modal-header h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
}
.modal-close {
  background: transparent;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: var(--text-muted);
}
.modal-body {
  padding: 20px;
}
.recharge-chip {
  padding: 12px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-card);
  background: var(--bg-card-subtle);
  color: var(--text-primary);
  font-weight: 600;
  cursor: pointer;
}
.recharge-chip.active {
  border-color: var(--accent);
  background: var(--accent-subtle);
  color: var(--accent);
}
.btn-renew-pill {
  padding: 5px 12px;
  border-radius: 0px;
  background: var(--accent-subtle);
  border: 1px solid var(--accent-border);
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast), transform var(--transition-fast), opacity var(--transition-fast);
}
.btn-renew-pill:hover {
  background: var(--accent);
  color: #fff;
}
.btn-copy-pure {
  padding: 5px 10px;
  border-radius: var(--radius-sm);
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-card);
  color: var(--text-secondary);
  font-size: 12px;
  cursor: pointer;
}
.btn-copy-pure:hover {
  background: var(--bg-card-hover);
  color: var(--text-primary);
}
.btn-refresh-port {
  padding: 5px 10px;
  border-radius: var(--radius-sm);
  background: var(--status-info-bg);
  border: 1px solid var(--status-info);
  color: var(--status-info);
  font-size: 12px;
  cursor: pointer;
  margin-right: 4px;
}

/* ==========================================================================
   10. Responsive Media Queries
   ========================================================================== */
@media (max-width: 1200px) {
  .buy-layout-container {
    grid-template-columns: 1fr;
  }
  .buy-summary-sidebar {
    position: static;
  }
  .mx-hero {
    grid-template-columns: 1fr;
  }
  .mx-c4, .mx-c6 {
    grid-column: span 12;
  }
}

@media (max-width: 768px) {
  .miya-sidebar {
    transform: translateX(-100%);
    max-width: 86vw;
  }
  .miya-main {
    margin-left: 0 !important;
  }
  .sidebar-toggle-inline {
    display: grid;
  }
  .deposit-layout {
    grid-template-columns: 1fr;
  }
  .network-type-grid {
    grid-template-columns: 1fr;
  }
  .miya-content {
    padding: 16px;
  }
  .miya-header {
    padding: 0 16px;
  }
}

/* ==========================================================================
   11. Extended Component Architecture (Auth, Summary Bars, Duo Panels, Steppers)
   ========================================================================== */

/* Summary Bar：基础样式见下方「统计卡片（两页共用 mx-summary-bar）」，此处重复定义已删除 */
.mx-summary-cell {
  background: var(--bg-card);
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.mx-summary-label {
  font-size: 12px;
  color: var(--text-muted);
}
.mx-summary-val {
  font-size: 19px;
  font-weight: 700;
  font-family: var(--font-mono);
  color: var(--text-primary);
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.mx-summary-val.accent { color: var(--accent); }
.mx-summary-val.green { color: var(--status-online); }
.mx-summary-val.warn { color: var(--status-warning); }
.mx-summary-val.danger { color: var(--status-danger); }
.mx-summary-hint {
  font-size: 11.5px;
  color: var(--text-faint);
  line-height: 1.35;
}

/* Duo 2-Column Info & Guides Block */
.mx-duo {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 20px;
  margin-top: 20px;
}
@media (max-width: 960px) {
  .mx-duo { grid-template-columns: 1fr; }
}
.mx-title-ico {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-sm);
  background: var(--accent-subtle);
  color: var(--accent);
  display: grid;
  place-items: center;
  font-size: 14px;
}

/* Step Guides */
.mx-steps {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.mx-step {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.mx-step-num {
  width: 22px;
  height: 22px;
  border-radius: 0px;
  background: var(--accent-subtle);
  border: 1px solid var(--accent-border);
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  margin-top: 2px;
}
.mx-step-body strong {
  display: block;
  font-size: 13.5px;
  color: var(--text-primary);
  margin-bottom: 2px;
}
.mx-step-body span {
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Key-Value Lists */
.mx-kv-list {
  display: flex;
  flex-direction: column;
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.mx-kv {
  display: flex;
  justify-content: space-between;
  padding: 10px 14px;
  font-size: 13px;
  border-bottom: 1px solid var(--border-subtle);
}
.mx-kv:last-child {
  border-bottom: none;
}
.mx-kv-key {
  color: var(--text-muted);
}
.mx-kv-val {
  color: var(--text-primary);
  font-weight: 600;
  font-family: var(--font-mono);
}
.mx-kv-val.accent { color: var(--accent); }
.mx-kv-val.green { color: var(--status-online); }

/* Progress Bar */
.mx-progress {
  height: 6px;
  border-radius: 0px;
  background: var(--bg-card-hover);
  overflow: hidden;
  margin-top: 8px;
}
.mx-progress-fill {
  height: 100%;
  border-radius: 0px;
  background: var(--accent-gradient);
  transition: width 0.4s ease;
}

/* Spending Bars (Billings 7-day trend) */
.mx-bars {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 80px;
  padding-top: 10px;
}
.mx-bar-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  height: 100%;
  justify-content: flex-end;
}
.mx-bar {
  width: 100%;
  max-width: 24px;
  border-radius: 0px;
  background: var(--accent-gradient);
  min-height: 4px;
  transition: opacity var(--transition-fast);
}
.mx-bar-col:hover .mx-bar {
  opacity: 0.8;
}
.mx-bar-col.empty .mx-bar {
  background: var(--border-card);
  opacity: 0.4;
}
.mx-bar-label {
  font-size: 10px;
  color: var(--text-faint);
  font-family: var(--font-mono);
}

/* Auth Layout (Split 2-Column for Login/Register) */
.mx-auth-layout {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: center;
  max-width: 1080px;
  margin: 30px auto;
  padding: 0 16px;
}
@media (max-width: 900px) {
  .mx-auth-layout { grid-template-columns: 1fr; gap: 24px; }
}
.mx-auth-aside h1,
.mx-auth-aside h2.mx-auth-h {
  font-size: 32px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 12px;
}
.mx-auth-aside h1 em,
.mx-auth-aside h2.mx-auth-h em {
  font-style: normal;
  color: var(--accent);
}
.mx-auth-aside p {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 24px;
}
.mx-auth-points {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 30px;
}
.mx-auth-point {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--text-secondary);
}
.mx-auth-point span {
  color: var(--status-online);
  font-weight: 700;
}
.mx-auth-metrics {
  display: flex;
  gap: 32px;
  border-top: 1px solid var(--border-subtle);
  padding-top: 18px;
}
.mx-auth-metrics b {
  font-size: 20px;
  font-family: var(--font-mono);
  color: var(--text-primary);
}
.mx-auth-metrics span {
  font-size: 12px;
  color: var(--text-muted);
  display: block;
}
.mx-auth-wrap {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-xl);
  padding: 36px 32px;
  box-shadow: var(--shadow-lg);
  max-width: 440px;
  width: 100%;
}
.mx-auth-wrap h2 {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 4px;
}
.mx-auth-wrap .sub {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 24px;
}
.mx-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}
.mx-field label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
}
.mx-auth-foot {
  margin-top: 20px;
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
}
.mx-auth-foot a {
  color: var(--accent);
  font-weight: 600;
}

/* Skeleton Loading Screens */
.mx-loading-shell {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.mx-loading-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}
.mx-loading-card {
  height: 96px;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  position: relative;
  overflow: hidden;
}
.mx-loading-block {
  height: 280px;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  position: relative;
  overflow: hidden;
}
.mx-loading-card::after,
.mx-loading-block::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
  animation: shimmerAnim 1.6s infinite;
}
@keyframes shimmerAnim {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* Empty States */
.mx-empty {
  text-align: center;
  padding: 48px 20px !important;
  color: var(--text-muted);
  font-size: 14px;
}
.mx-empty-ico {
  font-size: 32px;
  display: block;
  margin-bottom: 8px;
  opacity: 0.6;
}

/* Cart Item Detail & Breakdown in Sticky Card */
.cart-item-detail {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  background: var(--bg-card-subtle);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
}
.cart-item-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
}
.cart-item-sub {
  font-size: 11px;
  color: var(--text-muted);
}
.cart-item-price {
  font-size: 14px;
  font-weight: 700;
  font-family: var(--font-mono);
  color: var(--accent);
}
.checkout-guarantee-hint {
  font-size: 11px;
  color: var(--text-faint);
  text-align: center;
  margin-top: 4px;
}


/* ============================================================
 * 管理控制台专属样式 (Admin Console)
 * ============================================================ */
.admin-page {
  padding: 24px;
  max-width: 1280px;
  margin: 0 auto;
}
.admin-header-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}
.admin-header-title {
  display: flex;
  align-items: center;
  gap: 10px;
}
.admin-header-title h2 {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
}
.admin-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}
.admin-stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 0px;
  padding: 20px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.03);
}
.admin-stat-label {
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 600;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.admin-stat-val {
  font-size: 28px;
  font-weight: 800;
  font-family: var(--font-mono);
  color: var(--text-primary);
  line-height: 1.1;
  margin-bottom: 6px;
}
.admin-stat-val.accent {
  color: #10b981;
}
.admin-stat-hint {
  font-size: 12px;
  color: var(--text-muted);
}
.admin-panel-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 0px;
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.03);
}
.admin-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-card);
}
.admin-panel-header h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}
.admin-chip-group {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 6px;
  margin-bottom: 12px;
}
.admin-chip-btn {
  padding: 6px 14px;
  border-radius: 0px;
  border: 1px solid var(--border-card);
  background: var(--bg-card-subtle);
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
}
.admin-chip-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.admin-chip-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.admin-input-group {
  margin-bottom: 16px;
}
.admin-input-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 6px;
}
.admin-input {
  width: 100%;
  max-width: 400px;
  padding: 10px 14px;
  border: 1px solid var(--border-card);
  border-radius: 0px;
  background: var(--bg-card-subtle);
  color: var(--text-primary);
  font-size: 14px;
  box-sizing: border-box;
}
.admin-input:focus {
  outline: none;
  border-color: var(--accent);
}
.admin-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 18px;
  border-radius: 0px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.2s ease;
}
.admin-btn-primary {
  background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
  color: #fff;
}
.admin-btn-primary:hover {
  opacity: 0.92;
  transform: translateY(-1px);
}
.admin-btn-secondary {
  background: var(--bg-card-subtle);
  border-color: var(--border-card);
  color: var(--text-primary);
}
.admin-btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.admin-btn-danger {
  background: #fee2e2;
  border-color: #fecaca;
  color: #ef4444;
}
.admin-btn-danger:hover {
  background: #ef4444;
  color: #fff;
}
.admin-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 0px;
  font-size: 12px;
  font-weight: 600;
}
.admin-badge-unused {
  background: #dcfce7;
  color: #15803d;
}
.admin-badge-redeemed {
  background: #e0e7ff;
  color: #4338ca;
}
.admin-badge-voided {
  background: #f1f5f9;
  color: #64748b;
}
.admin-table-wrap {
  width: 100%;
  overflow-x: auto;
}
.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  text-align: left;
}
.admin-table th {
  padding: 12px 14px;
  background: var(--bg-card-subtle);
  color: var(--text-secondary);
  font-weight: 600;
  border-bottom: 1px solid var(--border-card);
  white-space: nowrap;
}
.admin-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border-card);
  color: var(--text-primary);
  white-space: nowrap;
}
.admin-table tr:hover td {
  background: rgba(99, 102, 241, 0.03);
}
.admin-filter-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 14px;
}
.admin-tabs {
  display: flex;
  gap: 6px;
}
.admin-tab-btn {
  padding: 6px 14px;
  border-radius: 0px;
  border: 1px solid transparent;
  background: transparent;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
}
.admin-tab-btn.active {
  background: var(--accent-subtle, rgba(99, 102, 241, 0.1));
  color: var(--accent, #6366f1);
}
.admin-code-cell {
  font-family: var(--font-mono);
  font-weight: 700;
  letter-spacing: 0.5px;
}

/* ==========================================================================
   语言切换控件（替代原「产品状态」指示）
   ========================================================================== */
.lang-switch {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 10px;
  border-radius: 0px;
  border: 1px solid var(--border-card);
  background: var(--bg-card);
  color: var(--text-secondary);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color var(--transition-fast), color var(--transition-fast), background-color var(--transition-fast);
  white-space: nowrap;
}
.lang-btn:hover {
  border-color: var(--border-hover);
  color: var(--text-primary);
  background: var(--bg-card-hover);
}
.lang-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.lang-globe {
  font-size: 13px;
  line-height: 1;
}
.lang-current {
  line-height: 1;
}
.lang-caret {
  font-size: 10px;
  color: var(--text-muted);
  line-height: 1;
  transition: transform var(--transition-fast);
}
.lang-switch.is-open .lang-caret {
  transform: rotate(180deg);
}

.lang-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 132px;
  padding: 5px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-card);
  background: var(--bg-card);
  box-shadow: var(--shadow-lg);
  z-index: 60;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.lang-menu.hidden {
  display: none;
}

.lang-option,
a.lang-option,
a.lang-option:visited {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 8px 10px;
  border: none;
  border-radius: var(--radius-sm);
  box-sizing: border-box;
  background: transparent;
  color: var(--text-secondary);
  font: inherit;
  font-size: 13px;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--transition-fast), color var(--transition-fast);
}
.lang-option:hover,
a.lang-option:hover {
  background: var(--bg-card-hover);
  color: var(--text-primary);
  text-decoration: none;
}
.lang-option.active,
a.lang-option.active {
  background: var(--accent-subtle);
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}
a.lang-option:focus {
  text-decoration: none;
}
/* 选中项左侧打一个点，避免只靠颜色区分 */
.lang-option.active::before {
  content: "•";
  font-size: 15px;
  line-height: 1;
}
.lang-option:not(.active)::before {
  content: "";
  width: 6px;
}

@media (max-width: 640px) {
  .lang-current { display: none; }
  .lang-btn { padding: 0 8px; }
}

/* ==========================================================================
   购买页 UI 统一 · 对齐首页 Ceramic 风格
   --------------------------------------------------------------------------
   设计规范（与首页一致）：
     · 卡片：白底 + 1px 细描边 + 8px 圆角，不用灰底
     · 选中态：描边变橙 + 淡橙背景（12% 透明度），不用实心色块
     · 编号：细描边圆形数字，不用实心方块
     · 数字：等宽字体，金额独立成行
     · 按钮：纯橙实底，无渐变、无 emoji 堆砌
   ========================================================================== */

/* ---------- 主容器 ---------- */
.buy-layout-container {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 24px;
  align-items: start;
}
@media (max-width: 1100px) {
  .buy-layout-container {
    grid-template-columns: 1fr;
  }
  .buy-summary-sidebar {
    position: static;
  }
}

.buy-wizard-main {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* ---------- 步骤卡片：白底 + 细描边 ---------- */
.wizard-step-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  transition: border-color var(--transition-fast);
}
.wizard-step-card:hover {
  border-color: var(--border-card); /* 去掉 hover 变橙，避免整页乱闪 */
}

/* ---------- 步骤编号：细描边圆环 ---------- */
.step-header {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 18px;
}
.step-num-pill {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 0px;
  background: transparent;
  border: 1.5px solid var(--accent-border);
  color: var(--accent);
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 700;
  font-family: var(--font-mono);
  line-height: 1;
  margin-top: 1px;
}
.step-title-box h3 {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}
.step-title-box p {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--text-muted);
}

/* ---------- 国家卡片 ---------- */
.region-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
  gap: 10px;
}
.region-select-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 13px 14px;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  position: relative;
  transition: border-color var(--transition-fast), background-color var(--transition-fast);
}
.region-select-card:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-subtle);
}
.region-select-card.active {
  border-color: var(--accent);
  background: var(--accent-subtle);
}
.region-select-card.is-soon {
  opacity: 0.5;
  cursor: not-allowed;
}
.region-select-card.is-soon:hover {
  border-color: var(--border-card);
  background: var(--bg-card);
}
.region-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.region-meta strong {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.region-meta small {
  font-size: 11px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.region-check-tick {
  position: absolute;
  top: 8px;
  right: 9px;
  color: var(--accent);
  font-weight: 700;
  font-size: 12px;
  line-height: 1;
}

/* ---------- 网络类型卡片 ---------- */
.network-type-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
@media (max-width: 700px) {
  .network-type-grid { grid-template-columns: 1fr; }
}
.net-type-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  position: relative;
  transition: border-color var(--transition-fast), background-color var(--transition-fast);
}
.net-type-card:hover {
  border-color: var(--border-hover);
}
.net-type-card.active {
  border-color: var(--accent);
  background: var(--accent-subtle);
}
.net-type-card.disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.net-type-card.disabled:hover {
  border-color: var(--border-card);
}
.net-icon {
  font-size: 18px;
  line-height: 1;
  flex-shrink: 0;
}
.net-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.net-meta strong {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-primary);
}
.net-meta small {
  font-size: 11.5px;
  color: var(--text-muted);
}

/* ---------- 线路卡片 ---------- */
.line-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
}
.line-select-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 13px 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  cursor: pointer;
  transition: border-color var(--transition-fast), background-color var(--transition-fast);
}
.line-select-card:hover {
  border-color: var(--border-hover);
}
.line-select-card.active {
  border-color: var(--accent);
  background: var(--accent-subtle);
}
.line-select-card strong {
  font-size: 13px !important;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.line-badge-avail {
  flex-shrink: 0;
  font-size: 10.5px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 0px; font-variant-numeric: tabular-nums;
  background: var(--status-online-bg);
  color: var(--status-online);
  white-space: nowrap;
  line-height: 1.4;
}

/* ---------- 计费模式卡片 ---------- */
.billing-mode-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
@media (max-width: 700px) {
  .billing-mode-grid { grid-template-columns: 1fr; }
}
.bill-mode-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  position: relative;
  transition: border-color var(--transition-fast), background-color var(--transition-fast);
}
.bill-mode-card:hover {
  border-color: var(--border-hover);
}
.bill-mode-card.active {
  border-color: var(--accent);
  background: var(--accent-subtle);
}
.bill-mode-card > div {
  min-width: 0;
  flex: 1;
}
.bill-mode-card strong {
  font-size: 13.5px !important;
  display: block;
  margin-bottom: 3px !important;
  font-weight: 600;
  color: var(--text-primary);
}
.bill-mode-card small {
  font-size: 11.5px !important;
  color: var(--text-muted) !important;
  line-height: 1.55 !important;
  display: block;
}

/* ---------- 配置区 ---------- */
.amount-config-box {
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.config-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.config-header-row strong {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-primary);
}
.period-tag {
  font-size: 10.5px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 0px;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  color: var(--text-muted);
  white-space: nowrap;
}
.config-sub-rule {
  font-size: 11.5px;
  line-height: 1.6;
  color: var(--text-muted);
}

/* ---------- 数量步进器 ---------- */
.stepper-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.stepper-btn {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  color: var(--text-secondary);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: border-color var(--transition-fast), color var(--transition-fast);
  line-height: 1;
}
.stepper-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.stepper-input {
  width: 72px;
  height: 32px;
  text-align: center;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 600;
}
.stepper-input:focus {
  outline: none;
  border-color: var(--accent);
}
.stepper-unit {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
}

/* ---------- 快捷数量 ---------- */
.quick-amount-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.amount-chip {
  padding: 6px 14px;
  border-radius: 0px; font-variant-numeric: tabular-nums;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color var(--transition-fast), color var(--transition-fast), background-color var(--transition-fast);
  white-space: nowrap;
}
.amount-chip:hover {
  border-color: var(--accent-border);
  color: var(--accent);
}
.amount-chip.active {
  background: var(--accent-subtle);
  border-color: var(--accent);
  color: var(--accent);
}

/* ---------- 价格预览 ---------- */
.price-preview-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
}
@media (max-width: 640px) {
  .price-preview-grid { grid-template-columns: 1fr; }
}
.price-col {
  background: var(--bg-card);
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.price-col small {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 500;
}
.price-col strong {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  font-family: var(--font-mono);
  letter-spacing: -0.02em;
}
.price-col.total strong {
  color: var(--accent);
  font-size: 18px;
}

/* ---------- 特性勾选行 ---------- */
.features-check-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  padding-top: 2px;
}
.features-check-line span {
  font-size: 11.5px;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.features-check-line span::before {
  content: "";
  color: var(--status-online);
  font-weight: 700;
  font-size: 11px;
}

/* ---------- 加入订单按钮 ---------- */
.btn-add-cart {
  width: 100%;
  padding: 12px;
  border-radius: var(--radius-md);
  background: var(--accent);
  border: none;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background-color var(--transition-fast);
}
.btn-add-cart:hover {
  background: var(--accent-hover);
  transform: none;
}
.btn-add-cart:active {
  background: var(--accent-active);
}

/* ---------- 右侧订单摘要 ---------- */
.buy-summary-sidebar {
  position: sticky;
  top: calc(var(--header-h) + 20px);
}
.order-summary-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: var(--shadow-sm);
}
.summary-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 14px;
}
.summary-eyebrow {
  display: none; /* 去掉英文小标，与首页风格统一 */
}
.summary-header h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
}
.cart-count-badge {
  min-width: 22px;
  height: 22px;
  padding: 0 7px;
  border-radius: 0px; font-variant-numeric: tabular-nums;
  background: var(--accent-subtle);
  color: var(--accent);
  font-size: 11.5px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* 空购物车 */
.cart-empty-box {
  padding: 28px 16px;
  text-align: center;
  border: 1px dashed var(--border-card);
  border-radius: var(--radius-md);
  background: transparent;
}
.cart-empty-box .icon {
  font-size: 26px;
  opacity: 0.35;
  margin-bottom: 10px;
}
.cart-empty-box strong {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 4px;
}
.cart-empty-box p {
  margin: 0;
  font-size: 11.5px;
  color: var(--text-muted);
}

/* 已加入的条目 */
.cart-item-detail {
  padding: 14px;
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
}
.cart-item-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
  line-height: 1.4;
}
.cart-item-sub {
  font-size: 11.5px;
  color: var(--text-muted);
  line-height: 1.5;
}
.cart-item-price {
  font-size: 18px;
  font-weight: 700;
  font-family: var(--font-mono);
  color: var(--accent);
  margin-top: 10px;
  letter-spacing: -0.02em;
}

/* 合计行 */
.summary-total-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-top: 14px;
  border-top: 1px solid var(--border-subtle);
}
.summary-total-row > span {
  font-size: 12.5px !important;
  color: var(--text-muted) !important;
}
.summary-total-row strong {
  font-size: 24px;
  font-weight: 800;
  font-family: var(--font-mono);
  color: var(--accent);
  letter-spacing: -0.03em;
  line-height: 1.1;
}

/* 余额预览 */
.balance-preview-box {
  padding: 13px 14px;
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.balance-preview-box > div:first-child {
  font-size: 10.5px !important;
  color: var(--text-muted) !important;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin-bottom: 2px !important;
}
.balance-preview-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
}
.balance-preview-row span {
  color: var(--text-muted);
}
.balance-preview-row strong {
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--text-primary);
  font-size: 12.5px;
}

/* 结算按钮 */
.btn-checkout-now {
  width: 100%;
  padding: 12px;
  border-radius: var(--radius-md);
  background: var(--accent);
  border: none;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color var(--transition-fast), opacity var(--transition-fast);
}
.btn-checkout-now:hover:not(:disabled) {
  background: var(--accent-hover);
}
.btn-checkout-now:disabled {
  background: var(--bg-card-hover);
  color: var(--text-faint);
  cursor: not-allowed;
}
.checkout-guarantee-hint {
  font-size: 10.5px;
  color: var(--text-faint);
  text-align: center;
  line-height: 1.5;
}

/* ---------- 顶部警示条：改为细描边，不用通栏色块 ---------- */
.yellow-alert-strip {
  background: var(--bg-card);
  border: 1px solid var(--status-warning);
  border-left-width: 3px;
  color: var(--text-secondary);
  border-radius: var(--radius-md);
  padding: 11px 16px;
  font-size: 12.5px;
  line-height: 1.55;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}
.yellow-alert-strip strong {
  color: var(--text-primary);
  font-weight: 600;
}
.yellow-alert-strip a {
  flex-shrink: 0;
  font-weight: 600;
  text-decoration: none;
  color: var(--accent);
  white-space: nowrap;
  font-size: 12px;
}
.yellow-alert-strip a:hover {
  text-decoration: underline;
}
@media (max-width: 640px) {
  .yellow-alert-strip {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}

/* ---------- 页面标题区 ---------- */
.mx-phead {
  margin-bottom: 20px;
}
.mx-phead h2 {
  margin: 0 0 6px;
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}
.mx-phead p {
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-muted);
}

/* ---------- 内联样式清理后新增的小类 ---------- */
.card-check-tick {
  color: var(--accent);
  font-weight: 800;
  margin-left: auto;
  font-size: 13px;
  line-height: 1;
}
.bill-mode-icon {
  font-size: 18px;
  line-height: 1;
  flex-shrink: 0;
}
.price-unit {
  font-size: 11px;
  font-weight: 400;
  color: var(--text-muted);
}
.balance-preview-after {
  border-top: 1px dashed var(--border-card);
  padding-top: 8px;
  margin-top: 4px;
}
.deduct-amount {
  color: var(--status-danger);
  font-family: var(--font-mono);
  font-weight: 600;
}
.region-select-card.is-soon .region-check-tick { display: none; }
.net-type-card.active .net-icon { filter: none; }

/* ==========================================================================
   订单历史 + 账单财务 页 UI 统一 · 对齐首页 Ceramic 规范
   --------------------------------------------------------------------------
   只做「细节收敛」，不动已有结构：
     · 统计卡片：图标统一橙色描边风，数字统一等宽字体
     · 表格：表头与行高统一，金额列右对齐等宽
     · 按钮：宽度收敛，不再全宽拉满
     · 趋势图：柱子换成品牌橙渐变
   ========================================================================== */

/* ---------- 统计卡片（两页共用 mx-summary-bar） ---------- */
.mx-summary-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1px;
  background: var(--border-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
}
.mx-summary-cell {
  background: var(--bg-card);
  padding: 15px 18px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  position: relative;
}
.mx-summary-label {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
  letter-spacing: 0.01em;
}
.mx-summary-val {
  font-size: 19px;
  font-weight: 700;
  font-family: var(--font-mono);
  color: var(--text-primary);
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.mx-summary-val.accent { color: var(--accent); }
.mx-summary-val.green  { color: var(--status-online); }
.mx-summary-val.warn   { color: var(--status-warning); }
.mx-summary-val.danger { color: var(--status-danger); }
.mx-summary-hint {
  font-size: 11px;
  color: var(--text-faint);
  line-height: 1.4;
}

/* ---------- 表格统一 ---------- */
.mx-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 13px;
  text-align: left;
}
.mx-table thead th {
  background: var(--bg-card-subtle);
  padding: 11px 16px;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--border-card);
  white-space: nowrap;
}
.mx-table tbody td {
  padding: 13px 16px;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  vertical-align: middle;
  font-size: 12.5px;
}
.mx-table tbody tr:last-child td {
  border-bottom: none;
}
.mx-table tbody tr:hover {
  background: var(--accent-subtle);
}
.mx-table tbody tr:hover td {
  color: var(--text-primary);
}

/* 空状态：统一留白与图标透明度 */
.mx-empty {
  padding: 40px 16px !important;
  text-align: center;
  color: var(--text-muted) !important;
  font-size: 12.5px;
  line-height: 1.7;
}
.mx-empty-ico {
  display: block;
  font-size: 28px;
  opacity: 0.3;
  margin-bottom: 10px;
}

/* ---------- 表格头部（有多少条 / 刷新按钮） ---------- */
.mx-table-head {
  padding: 15px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--border-subtle);
}
.mx-table-title {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-primary);
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

/* ---------- 小按钮统一 ---------- */
.mx-btn-s {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-card);
  background: var(--bg-card);
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: border-color var(--transition-fast), color var(--transition-fast), background-color var(--transition-fast);
  white-space: nowrap;
}
.mx-btn-s:hover {
  border-color: var(--accent-border);
  color: var(--accent);
  background: var(--accent-subtle);
}
.mx-btn-s.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.mx-btn-s.primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: #fff;
}

/* ---------- 面板（消费构成 / 常见问题 / 账单要点） ---------- */
.mx-panel {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 20px;
}
.mx-panel-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}
.mx-title-ico {
  font-size: 14px;
  line-height: 1;
  opacity: 0.85;
}
.mx-panel-sub {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 14px;
}

/* 键值列表（消费构成 / 账单要点） */
.mx-kv-list {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--border-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.mx-kv {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  background: var(--bg-card);
  padding: 11px 15px;
}
.mx-kv-key {
  font-size: 12.5px;
  color: var(--text-muted);
}
.mx-kv-val {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  font-family: var(--font-mono);
  white-space: nowrap;
}

/* 进度条 */
.mx-progress,
.mx-bar-track {
  height: 6px;
  border-radius: 0px;
  background: var(--bg-card-subtle);
  overflow: hidden;
  margin-top: 10px;
}
.mx-progress-fill,
.mx-bar-fill {
  height: 100%;
  border-radius: 0px;
  background: var(--accent);
  transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- 近 7 天趋势图 ---------- */
.mx-chart-bars {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px;
  height: 90px;
  padding: 0 4px;
  margin-top: 8px;
}
.mx-chart-bar,
.bill-trend-bar {
  flex: 1;
  min-height: 4px;
  border-radius: 0px;
  background: var(--accent);
  opacity: 0.85;
  transition: opacity var(--transition-fast);
}
.mx-chart-bar:hover,
.bill-trend-bar:hover {
  opacity: 1;
}
.mx-chart-labels {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-top: 8px;
  padding: 0 4px;
}
.mx-chart-labels span {
  flex: 1;
  text-align: center;
  font-size: 10.5px;
  color: var(--text-faint);
  font-family: var(--font-mono);
}

/* ---------- 卡密兑换按钮：收敛宽度 ---------- */
.mx-redeem-btn {
  max-width: 260px;
  width: 100%;
  padding: 11px 20px;
  border-radius: var(--radius-md);
  background: var(--accent);
  border: none;
  color: #fff;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color var(--transition-fast), opacity var(--transition-fast);
}
.mx-redeem-btn:hover:not(:disabled) {
  background: var(--accent-hover);
}
.mx-redeem-btn:disabled {
  background: var(--bg-card-hover);
  color: var(--text-faint);
  cursor: not-allowed;
}

/* ---------- 充值渠道切换 ---------- */
.deposit-channel-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}
.channel-tab-btn {
  padding: 6px 13px;
  border-radius: 0px;
  border: 1px solid var(--border-card);
  background: var(--bg-card);
  color: var(--text-secondary);
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color var(--transition-fast), color var(--transition-fast), background-color var(--transition-fast);
  white-space: nowrap;
}
.channel-tab-btn:hover {
  border-color: var(--accent-border);
  color: var(--accent);
}
.channel-tab-btn.active {
  background: var(--accent-subtle);
  border-color: var(--accent);
  color: var(--accent);
}

.channel-detail-card {
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px;
}

/* ---------- 充值说明步骤 ---------- */
.mx-steps {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.mx-step {
  display: flex;
  gap: 11px;
  align-items: flex-start;
}
.mx-step-num {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border-radius: 0px;
  border: 1.5px solid var(--accent-border);
  color: var(--accent);
  display: grid;
  place-items: center;
  font-size: 10px;
  font-weight: 700;
  font-family: var(--font-mono);
  line-height: 1;
  margin-top: 1px;
}
.mx-step-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.mx-step-body strong {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-primary);
}
.mx-step-body span {
  font-size: 11.5px;
  color: var(--text-muted);
  line-height: 1.55;
}

/* ---------- FAQ 条目 ---------- */
.mx-faq-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 9px 0;
}
.mx-faq-item + .mx-faq-item {
  border-top: 1px solid var(--border-subtle);
}
.mx-faq-q {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  border-radius: 0px;
  background: var(--accent-subtle);
  color: var(--accent);
  display: grid;
  place-items: center;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  margin-top: 1px;
}
.mx-faq-body {
  min-width: 0;
}
.mx-faq-body strong {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 2px;
  line-height: 1.45;
}
.mx-faq-body p {
  margin: 0;
  font-size: 11.5px;
  color: var(--text-muted);
  line-height: 1.55;
}

/* ---------- 双栏布局 ---------- */
.mx-duo {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 20px;
  margin-top: 20px;
}
@media (max-width: 960px) {
  .mx-duo {
    grid-template-columns: 1fr;
  }
}

/* ---------- 页面标题 ---------- */
.mx-page {
  max-width: var(--content-max-w);
}
.mx-phead h2,
.mx-page > h2 {
  margin: 0 0 6px;
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}
.mx-phead p,
.mx-page > p {
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-muted);
}

/* ---------- 徽标 mx-badge ---------- */
.mx-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 8px;
  border-radius: 0px; font-variant-numeric: tabular-nums;
  font-size: 10.5px;
  font-weight: 600;
  white-space: nowrap;
  line-height: 1.5;
}
.mx-badge .dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}
.mx-badge.green {
  background: var(--status-online-bg);
  color: var(--status-online);
}
.mx-badge.accent {
  background: var(--accent-subtle);
  color: var(--accent);
}
.mx-badge.info {
  background: var(--status-info-bg);
  color: var(--status-info);
}
.mx-badge.warn {
  background: var(--status-warning-bg);
  color: var(--status-warning);
}
.mx-badge.danger {
  background: var(--status-danger-bg);
  color: var(--status-danger);
}

/* ---------- 充值区域布局 ---------- */
.deposit-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 14px;
}
@media (max-width: 860px) {
  .deposit-layout {
    grid-template-columns: 1fr;
  }
}
.deposit-sec-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

/* ---------- 近 7 天趋势柱状图 ---------- */
/*
  实测数据（2026-10-19）：
    .mx-bars   → 110px
    .mx-bar-col → 100px
    .mx-bar-wrap → 82px
    .mx-bar (height:5%) → 4px  ← 太矮，且颜色 #e2e8f0 在白底几乎不可见
  解决：空数据用 10px 最小高度 + 明显的浅灰，保证「看得见是一条柱子」
*/
.mx-bars {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
  height: 110px;
  padding: 10px 4px 0;
  position: relative;
}
/* 三条横向参考线 */
.mx-bars::before,
.mx-bars::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--border-subtle);
  pointer-events: none;
}
.mx-bars::before { top: 33%; }
.mx-bars::after  { top: 66%; }
.mx-bar-col {
  flex: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  min-width: 0;
}
.mx-bar-wrap {
  width: 100%;
  height: 82px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.mx-bar {
  width: 100%;
  max-width: 34px;
  border-radius: 0px;
  background: var(--accent);
  opacity: 0.92;
  transition: opacity var(--transition-fast);
}
.mx-bar-col:hover .mx-bar {
  opacity: 1;
}
/* 无支出的日子：10px 浅灰条，明显可见但不抢眼 */
.mx-bar-col.empty .mx-bar {
  background: var(--border-card);
  opacity: 1;
  min-height: 10px;
  max-height: 10px;
}
.mx-bar-label {
  font-size: 10px;
  color: var(--text-faint);
  font-family: var(--font-mono);
  white-space: nowrap;
  line-height: 1;
}

/* 财务页趋势图下方的说明行（拆成独立片段以便翻译） */
.bill-sub-line {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px;
  line-height: 1.7;
}
.bill-sub-line span {
  font-size: 12px;
  color: var(--text-muted);
}
.bill-sub-line strong {
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 600;
}

/* ==========================================================================
   主站购买卡密入口
   ========================================================================== */
.main-site-buy-btn {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 12px 16px;
  margin: 14px 0 18px;
  border-radius: var(--radius-md);
  background: var(--accent-subtle);
  border: 1px solid var(--accent-border);
  color: var(--accent);
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color var(--transition-fast), border-color var(--transition-fast);
}
.main-site-buy-btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.main-site-buy-btn .ext-arrow {
  margin-left: auto;
  font-size: 13px;
  opacity: 0.7;
}
.main-site-buy-btn:hover .ext-arrow {
  opacity: 1;
}
/* 主站未配置时的提示态 */
.main-site-buy-btn[data-unconfigured="1"] {
  opacity: 0.6;
  cursor: not-allowed;
}
/* 购卡双入口：国内（支付宝/微信）/ 海外（外币卡/Crypto），推荐渠道排第一并高亮 */
.topup-channels {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 10px;
  margin: 14px 0 18px;
}
.topup-channel {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-card);
  background: var(--bg-card-subtle);
  color: var(--text-primary);
  text-decoration: none;
  transition: background-color var(--transition-fast), border-color var(--transition-fast);
}
.topup-channel:hover { border-color: var(--accent); background: var(--accent-subtle); }
.topup-channel.is-recommended { border-color: var(--accent-border); background: var(--accent-subtle); }
.topup-channel-ico { display: inline-flex; color: var(--accent); }
.topup-channel-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.topup-channel-body strong { font-size: 13.5px; font-weight: 600; }
.topup-channel-body small { font-size: 12px; color: var(--text-muted); }
.topup-channel-tag {
  margin-left: auto;
  padding: 2px 8px;
  border-radius: 0px;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}
.topup-channel .ext-arrow { margin-left: auto; opacity: 0.7; color: var(--text-muted); }
.topup-channel-tag + .ext-arrow { margin-left: 0; }
.topup-channel[data-unconfigured="1"] { opacity: 0.6; cursor: not-allowed; }
/* 收银台带卡密跳转过来：自动填入后高亮兑换框 */
#deposit-card-input.is-prefilled {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-subtle);
}
/* 单列布局（右侧渠道移除后） */
.deposit-layout {
  grid-template-columns: 1fr;
  max-width: 460px;
}

/* ===== MOBILE FIX 2026-10-19 ===== */
/* 目标：顶栏单行不换行 / 表格卡片化 / 内容留白收紧 */

@media (max-width: 700px) {

  /* ---------------- 顶栏 ---------------- */
  .miya-header {
    padding: 0 10px !important;
    gap: 5px;
  }

  .header-left {
    flex: 1 1 auto;
    min-width: 0;
    gap: 8px;
  }

  .page-title {
    font-size: 15px;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
    max-width: 100%;
    flex: 1 1 auto;
  }

  .header-right {
    flex: 0 0 auto;
    gap: 5px;
    min-width: 0;
  }

  .header-link { display: none !important; }

  .lang-btn {
    width: 30px;
    height: 30px;
    padding: 0 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
  }
  .lang-current, .lang-caret { display: none !important; }
  .lang-globe { font-size: 13px; line-height: 1; }

  .theme-toggle {
    width: 30px !important;
    height: 30px !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 0;
  }
  .theme-toggle [data-theme-label],
  .theme-toggle .theme-label { display: none !important; }
  .theme-toggle [data-theme-icon] { font-size: 13px; line-height: 1; }

  .wallet-pill {
    padding: 5px 8px !important;
    font-size: 11.5px !important;
    gap: 3px !important;
    flex-shrink: 0;
    white-space: nowrap;
  }
  .wallet-pill > span[data-i18n="balance"] { display: none !important; }
  .wallet-pill .wallet-icon { display: none !important; }
  .wallet-pill strong { font-size: 12px; white-space: nowrap; }

  .btn-recharge {
    padding: 6px 10px !important;
    font-size: 12px !important;
    white-space: nowrap;
    flex-shrink: 0;
  }

  .user-avatar {
    width: 26px !important;
    height: 26px !important;
    font-size: 10px !important;
    flex-shrink: 0;
  }

  .sidebar-toggle-inline {
    width: 30px !important;
    height: 30px !important;
    font-size: 15px !important;
    flex-shrink: 0;
  }

  /* ---------------- 内容区留白 ---------------- */
  .miya-content {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }

  /* ---------------- 表格：先保证能横向滚 ---------------- */
  .mx-table-wrap,
  .table-card {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
  }

  /* ---------------- 表格：卡片化堆叠 ---------------- */
  .mx-table,
  .miya-table {
    display: block;
    width: 100%;
    min-width: 0 !important;
  }
  .mx-table thead,
  .miya-table thead { display: none; }

  .mx-table tbody,
  .miya-table tbody {
    display: block;
    width: 100%;
  }

  .mx-table tbody tr,
  .miya-table tbody tr {
    display: block;
    padding: 8px 0;
    border-bottom: 1px solid var(--border-subtle);
  }
  .mx-table tbody tr:last-child,
  .miya-table tbody tr:last-child { border-bottom: none; }

  .mx-table tbody td,
  .miya-table tbody td {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    width: auto !important;
    max-width: none !important;
    padding: 6px 16px !important;
    border: none !important;
    text-align: right;
    font-size: 13px;
    white-space: normal;
  }

  .mx-table tbody td::before,
  .miya-table tbody td::before {
    content: attr(data-label);
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 500;
    text-align: left;
    flex-shrink: 0;
    line-height: 1.4;
  }

  .mx-table tbody td:not([data-label])::before,
  .miya-table tbody td:not([data-label])::before { content: none; }

  /* 空状态 / colspan 行：居中整行 */
  .mx-table tbody td[colspan],
  .miya-table tbody td[colspan] {
    display: block;
    text-align: center;
  }
  .mx-table tbody td[colspan]::before,
  .miya-table tbody td[colspan]::before { content: none; }

  /* 长内容（IPv6 地址等）允许断行，避免被裁 */
  .mx-table tbody td,
  .miya-table tbody td {
    overflow-wrap: anywhere;
    word-break: break-word;
  }
  .mx-table tbody td > * {
    max-width: 100%;
  }

  /* 表格里的按钮组靠右排 */
  .mx-table tbody td .mx-btn-s,
  .miya-table tbody td .mx-btn-s { margin-left: auto; }

  /* ---------------- 弹窗全屏化 ---------------- */
  .miya-modal-card {
    width: calc(100vw - 24px) !important;
    max-width: none !important;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
  }
}

/* 超窄屏 */
@media (max-width: 380px) {
  .wallet-pill { display: none !important; }
  .page-title { font-size: 14px; }
  .header-right { gap: 4px; }
}

/* ===== TRAFFIC USAGE CARD 2026-10-19 ===== */
/* 流量用量卡片（流量计费用户才显示） */
.tu-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
}

.tu-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.tu-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
}

.tu-status {
  font-size: 12.5px;
  font-weight: 600;
}

.tu-bar {
  height: 8px;
  border-radius: 0px;
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-card);
  overflow: hidden;
  margin-bottom: 14px;
}

.tu-fill {
  height: 100%;
  border-radius: 0px;
  transition: width 0.4s ease;
  min-width: 2px;
}

.tu-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.tu-cell {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.tu-label {
  font-size: 11.5px;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

.tu-val {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  font-family: var(--font-mono);
}

.tu-val.accent {
  color: var(--accent);
}

.tu-foot {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--border-subtle);
  font-size: 11.5px;
  color: var(--text-muted);
  line-height: 1.6;
}

@media (max-width: 700px) {
  .tu-card {
    padding: 14px 14px;
  }
  .tu-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .tu-val {
    font-size: 14px;
  }
}

/* ==========================================================================
   B6 设计层（2026-10-19）
   只在文件末尾叠加覆盖，不改前面的规则，回滚只需删掉本段。
   品牌基线不变：主橙 #f97316 / 辅 #fbbf24 / 深 #ea580c，前缀 miya-* / mx-* 保留。
   ========================================================================== */

/* ---- 1. 令牌：4/8 间距、字号层级、双层阴影、120–180ms 过渡 ---- */
:root,
[data-theme="dark"] {
  --sp-1: 4px; --sp-2: 8px; --sp-3: 12px; --sp-4: 16px; --sp-5: 20px; --sp-6: 24px; --sp-8: 32px; --sp-10: 40px;
  --fs-12: 12px; --fs-14: 14px; --fs-16: 16px; --fs-20: 20px; --fs-28: 28px;
  --radius-lg: 0px;
  --control-h: 40px;
  --gutter: 32px;
  --font-sans: "Plus Jakarta Sans", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "HarmonyOS Sans SC", "MiSans", "Hiragino Sans GB", "Noto Sans SC", "Source Han Sans SC", "Microsoft YaHei", system-ui, sans-serif;
  --shadow-card: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 1px 2px rgba(0, 0, 0, 0.32), 0 12px 28px -14px rgba(0, 0, 0, 0.60);
  --shadow-card-hover: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 2px 4px rgba(0, 0, 0, 0.36), 0 16px 34px -14px rgba(0, 0, 0, 0.72);
  --focus-ring: 0 0 0 3px rgba(223, 126, 62, 0.34);
  --zebra: rgba(255, 255, 255, 0.020);
  --row-hover: rgba(226, 139, 78, 0.075);
  --transition-fast: 150ms ease;
}
[data-theme="light"] {
  --shadow-card: inset 0 1px 0 #FFFFFF, 0 2px 6px rgba(68, 46, 26, 0.04), 0 14px 32px -16px rgba(68, 46, 26, 0.10);
  --shadow-card-hover: inset 0 1px 0 #FFFFFF, 0 4px 10px rgba(68, 46, 26, 0.05), 0 18px 36px -16px rgba(140, 82, 38, 0.16);
  --focus-ring: 0 0 0 3px rgba(212, 118, 59, 0.24);
  --zebra: rgba(120, 86, 52, 0.024);
  --row-hover: rgba(212, 118, 59, 0.065);
}

/* ---- 2. 字体与数字 ---- */
html { text-rendering: optimizeLegibility; }
body { font-size: var(--fs-14); line-height: 1.6; }
.mx-summary-val, .mx-stat-val, .billing-stat-val, .admin-stat-val, .tu-val,
.mx-table td, .miya-table td, .admin-table td, .wallet-pill, .summary-total,
.price-col, .mx-mono, .mono {
  font-variant-numeric: tabular-nums;
}
.mx-phead h2, .mx-page > h2 { font-size: var(--fs-20); line-height: 1.35; }
.mx-phead p, .mx-page > p { font-size: var(--fs-14); }
.mx-panel-title, .admin-panel-header h3 { font-size: var(--fs-16); }

/* ---- 3. 页面左右留白统一；管理页与其它页同一条对齐线 ---- */
.miya-content { padding: var(--sp-6) var(--gutter) var(--sp-10); }
.admin-page { padding: 0; max-width: var(--content-max-w); }
.admin-stats-grid { gap: var(--sp-4); margin-bottom: var(--sp-6); }
.admin-header-bar { margin-bottom: var(--sp-6); }

/* ---- 4. 卡片：14px 圆角 + 双层阴影 ---- */
.mx-panel, .wizard-step-card, .order-summary-card, .mx-card, .mx-stat, .billing-stat-card,
.admin-panel-card, .admin-stat-card, .tu-card, .mx-summary-bar, .mx-table-wrap, .table-card {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}
.admin-panel-card { padding: var(--sp-6); margin-bottom: var(--sp-6); }
.admin-stat-card { padding: var(--sp-5); }
.mx-stat:hover, .billing-stat-card:hover, .mx-card:hover { box-shadow: var(--shadow-card-hover); }
.mx-stat-ico {
  display: inline-grid; place-items: center;
  width: 28px; height: 28px; border-radius: 0px;
  background: var(--accent-subtle); font-size: 14px; line-height: 1;
}

/* ---- 5. 按钮四态 + 统一焦点环 ---- */
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}
.mx-btn-s, .btn-tool, .admin-btn, .mx-btn, .admin-chip-btn, .admin-tab-btn, .mx-tab, .tab-pill {
  transition: background-color var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast), box-shadow var(--transition-fast), transform var(--transition-fast), opacity var(--transition-fast);
}
.mx-btn-s, .btn-tool, .admin-btn { min-height: 36px; border-radius: var(--radius-md); max-width: 100%; }
.mx-btn-s:active:not(:disabled), .btn-tool:active:not(:disabled), .admin-btn:active:not(:disabled),
.mx-btn:active, .admin-chip-btn:active, .btn-checkout:active:not(:disabled) { transform: translateY(1px) scale(0.985); }
.mx-btn-s:disabled, .btn-tool:disabled, .admin-btn:disabled, .btn-checkout:disabled { opacity: 0.48; cursor: not-allowed; transform: none; box-shadow: none; }

/* 管理端：去掉不属于品牌的靛紫色，统一橙色 */
.admin-btn-primary { background: var(--accent-gradient); border-color: transparent; color: #fff; box-shadow: var(--cta-shadow); }
.admin-btn-primary:hover:not(:disabled) { background: var(--accent-gradient-hover); opacity: 1; transform: translateY(-1px); box-shadow: var(--cta-hover-shadow); }
.admin-btn-secondary { background: var(--bg-card-subtle); }
.admin-btn-secondary:hover:not(:disabled) { background: var(--bg-card-hover); }
.admin-btn-danger { background: var(--status-danger-bg); border-color: rgba(239, 68, 68, 0.35); color: var(--status-danger); }
.admin-btn-danger:hover:not(:disabled) { background: var(--status-danger); border-color: var(--status-danger); color: #fff; }
.admin-chip-btn { background: var(--bg-card-subtle); min-height: 32px; }
.admin-tab-btn.active { background: var(--accent-subtle); color: var(--accent); }
.admin-tab-btn:hover:not(.active) { color: var(--text-primary); background: var(--bg-card-subtle); }
.admin-stat-val { font-size: var(--fs-28); }
.admin-stat-val.accent { color: var(--status-online); }

/* 徽标：深色底下用半透明底 + 亮色字，不再是浅色贴纸 */
.admin-badge { padding: 2px 10px; border-radius: 0px; font-variant-numeric: tabular-nums; border: 1px solid transparent; line-height: 1.6; white-space: nowrap; }
.admin-badge-unused { background: var(--status-online-bg); color: var(--status-online); border-color: rgba(16, 185, 129, 0.28); }
.admin-badge-redeemed { background: var(--accent-subtle); color: var(--accent); border-color: var(--accent-border); }
.admin-badge-voided { background: rgba(148, 163, 184, 0.12); color: var(--text-muted); border-color: rgba(148, 163, 184, 0.24); }

/* 链接：正文里的链接 hover 下划线 */
.link, .mx-link { color: var(--accent); }
.link, .mx-link, .miya-content p a:not([class]), .miya-content td a:not([class]) {
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
.miya-content p a:not([class]):hover, .miya-content td a:not([class]):hover, .link:hover, .mx-link:hover,
.header-link:hover { text-decoration: underline; }

/* ---- 6. 输入框：统一高度 40px 与聚焦环 ---- */
.mx-input, .miya-input, .admin-input {
  min-height: var(--control-h);
  border-radius: var(--radius-md);
  font-size: var(--fs-14);
}
.admin-input { background: var(--bg-input); padding: 0 var(--sp-3); max-width: 100%; }
.mx-input:focus, .miya-input:focus, .admin-input:focus,
.miya-content input:focus-visible, .miya-content select:focus-visible, .miya-content textarea:focus-visible {
  border-color: var(--border-focus);
  box-shadow: var(--focus-ring);
  outline: none;
}
.miya-content input::placeholder, .miya-content textarea::placeholder { color: var(--text-faint); opacity: 1; }

/* ---- 7. 表格：斑马纹、悬停、粘性表头、移动端横向滚动 ---- */
.mx-table-wrap, .table-card, .admin-table-wrap { overflow: clip; }
.mx-table thead th, .miya-table thead th, .admin-table th {
  position: sticky;
  top: var(--header-h);
  z-index: 2;
  background: var(--bg-card-subtle);
  font-size: var(--fs-12);
}
.mx-table tbody tr:nth-child(even) td, .miya-table tbody tr:nth-child(even) td, .admin-table tbody tr:nth-child(even) td { background: var(--zebra); }
.mx-table tbody td, .miya-table tbody td, .admin-table td { transition: background-color var(--transition-fast); }
.mx-table tbody tr:hover td, .miya-table tbody tr:hover td, .admin-table tbody tr:hover td { background: var(--row-hover); }
.mx-table tbody tr:hover, .miya-table tbody tr:hover { background: transparent; }
.admin-table th, .admin-table td { padding: var(--sp-3) var(--sp-4); }
.admin-table th { color: var(--text-muted); }

/* ---- 8. 图标（.ic 线性 SVG） ---- */
.ic { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; vertical-align: -3px; }

/* 外壳图标：侧栏/页头统一线性 SVG，替换原先 emoji 与字符混用 */
.nav-icon { display: inline-grid; place-items: center; width: 20px; height: 20px; }
.nav-icon .ic { width: 18px; height: 18px; vertical-align: 0; }
.arrow-indicator { display: inline-grid; place-items: center; }
.arrow-indicator .ic { width: 14px; height: 14px; vertical-align: 0; }
.sidebar-toggle .ic { width: 14px; height: 14px; vertical-align: 0; }
.sidebar-toggle-inline .ic { width: 18px; height: 18px; vertical-align: 0; }
.help-doc-link .icon, .header-link .icon, .wallet-icon, .lang-globe { display: inline-grid; place-items: center; }
.help-doc-link .icon .ic, .header-link .icon .ic { width: 16px; height: 16px; vertical-align: 0; }
.wallet-icon .ic { width: 15px; height: 15px; vertical-align: 0; color: var(--accent); }
.lang-globe .ic { width: 15px; height: 15px; vertical-align: 0; }
.sidebar-footer { display: flex; flex-direction: column; gap: var(--sp-2); }
.help-doc-link { min-height: 28px; }
.help-doc-link:hover span:not(.icon) { text-decoration: underline; text-underline-offset: 3px; }

/* 内容区图标位：emoji 换成 SVG 后的统一尺寸与配色 */
.mx-title-ico, .mx-stat-ico, .net-icon, .bill-mode-icon, .mx-dd-ico { display: inline-grid; place-items: center; flex: none; }
.mx-title-ico {
  width: 28px; height: 28px; border-radius: 0px; opacity: 1;
  background: var(--accent-subtle); color: var(--accent);
}
.mx-title-ico .ic, .mx-stat-ico .ic { width: 16px; height: 16px; vertical-align: 0; }
.mx-stat-ico { color: var(--accent); }
.net-icon, .bill-mode-icon {
  width: 36px; height: 36px; border-radius: 0px;
  background: var(--accent-subtle); color: var(--accent);
}
.net-icon .ic, .bill-mode-icon .ic { width: 20px; height: 20px; vertical-align: 0; }
.mx-empty-ico { display: grid; place-items: center; opacity: 1; color: var(--text-faint); margin: 0 auto var(--sp-3); }
.mx-empty-ico .ic { width: 32px; height: 32px; stroke-width: 1.5; }
.mx-dd-ico .ic { width: 15px; height: 15px; vertical-align: 0; }
.mx-summary-label, .admin-stat-label, .mx-table-title { display: inline-flex; align-items: center; gap: 6px; }
.mx-summary-label .ic, .admin-stat-label .ic { width: 14px; height: 14px; vertical-align: 0; color: var(--accent); }
.admin-header-title h2, .admin-panel-header h3 { display: flex; align-items: center; gap: var(--sp-2); }
.admin-header-title h2 .ic { width: 22px; height: 22px; color: var(--accent); }
.admin-panel-header h3 .ic, .mx-table-title .ic { color: var(--accent); }
.mx-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; flex: none; }
.mx-dot.ok { background: var(--status-online); box-shadow: 0 0 0 3px var(--status-online-bg); }
.mx-dot.warn { background: var(--status-warning); box-shadow: 0 0 0 3px var(--status-warning-bg); }
.mx-dot.bad { background: var(--status-danger); box-shadow: 0 0 0 3px var(--status-danger-bg); }
.admin-badge { gap: 6px; }
.admin-badge-failed { background: var(--status-danger-bg); color: var(--status-danger); border-color: rgba(239, 68, 68, 0.3); }
.admin-badge::before { content: ""; width: 6px; height: 6px; border-radius: 0px; background: currentColor; }

/* 选购页：卡片文字换行显示完整，不再省略号截断 */
.region-cards-grid { grid-template-columns: repeat(auto-fill, minmax(176px, 1fr)); gap: var(--sp-3); }
.region-meta strong, .region-meta small, .line-select-card strong {
  white-space: normal; overflow: visible; text-overflow: clip; overflow-wrap: anywhere; line-height: 1.45;
}
.region-select-card, .line-select-card { border-radius: var(--radius-md); align-items: center; }
.region-select-card .region-meta { padding-right: var(--sp-3); }
.cart-empty-box .icon { opacity: 1; color: var(--text-faint); display: grid; place-items: center; margin-bottom: var(--sp-3); }
.cart-empty-box .icon .ic { width: 32px; height: 32px; stroke-width: 1.5; }
.mx-tech-badge {
  font-size: var(--fs-12); font-weight: 600; padding: 2px 10px; border-radius: 0px; font-variant-numeric: tabular-nums;
  background: var(--status-online-bg); color: var(--status-online); border: 1px solid rgba(16, 185, 129, 0.28);
}

/* ---- 9. 空态 / 错误态（纯内联 SVG） ---- */
.mx-state {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  gap: var(--sp-2); padding: var(--sp-10) var(--sp-6);
}
.mx-state.is-compact { padding: var(--sp-6) var(--sp-4); }
.mx-state-art { width: 120px; height: 88px; margin-bottom: var(--sp-2); }
.mx-state.is-compact .mx-state-art { width: 96px; height: 70px; }
.mx-state-art .a-base { fill: var(--bg-card-subtle); }
.mx-state-art .a-line { fill: none; stroke: var(--text-faint); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.mx-state-art .a-accent { fill: none; stroke: var(--accent); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.mx-state-art .a-dot { fill: var(--status-danger-bg); stroke: var(--status-danger); stroke-width: 2; }
.mx-state-art .a-mark { fill: none; stroke: var(--status-danger); stroke-width: 2.6; stroke-linecap: round; }
.mx-state-title { font-size: var(--fs-16); font-weight: 700; color: var(--text-primary); }
.mx-state-desc { font-size: var(--fs-14); color: var(--text-muted); max-width: 46ch; line-height: 1.6; }
.mx-state-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--sp-2); margin-top: var(--sp-3); }
.mx-state-error .mx-state-title { color: var(--status-danger); }

/* ---- 10. 骨架屏 ---- */
.mx-skeleton { gap: var(--sp-5); }
.sk { display: block; border-radius: 0px; background: var(--bg-card-subtle); position: relative; overflow: hidden; }
.sk::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
  transform: translateX(-100%);
  animation: skShimmer 1.4s ease-in-out infinite;
}
[data-theme="light"] .sk::after { background: linear-gradient(90deg, transparent, rgba(15, 23, 42, 0.05), transparent); }
@keyframes skShimmer { to { transform: translateX(100%); } }
.sk-head { display: flex; flex-direction: column; gap: var(--sp-2); }
.sk-title { height: 24px; width: 220px; max-width: 60%; }
.sk-line { height: 12px; }
.sk-num { height: 28px; width: 55%; }
.sk-block { height: 140px; }
.sk-cell { height: 14px; }
.sk-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: var(--sp-4); }
.sk-card {
  background: var(--bg-card); border: 1px solid var(--border-card); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card); padding: var(--sp-5); display: flex; flex-direction: column; gap: var(--sp-3);
}
.sk-row { display: flex; gap: var(--sp-4); padding: var(--sp-3) 0; border-top: 1px solid var(--border-subtle); }
.w10 { width: 10%; } .w15 { width: 15%; } .w20 { width: 20%; } .w25 { width: 25%; } .w30 { width: 30%; }
.w40 { width: 40%; } .w60 { width: 60%; } .w70 { width: 70%; } .w80 { width: 80%; }

/* ---- 11. Toast：错误态 ---- */
.miya-toast { max-width: min(420px, calc(100vw - 32px)); line-height: 1.5; }
.miya-toast.is-error { border-left-color: var(--status-danger); }

/* ---- 12. 管理端凭据卡 ---- */
.admin-gate { max-width: 440px; margin: var(--sp-10) auto; }
.admin-gate-card { display: flex; flex-direction: column; padding: var(--sp-8); }
.admin-gate-icon {
  width: 52px; height: 52px; border-radius: 0px; display: grid; place-items: center; margin: 0 auto var(--sp-4);
  color: var(--accent); background: var(--accent-subtle); border: 1px solid var(--accent-border);
}
.admin-gate-title { text-align: center; font-size: var(--fs-20); font-weight: 700; margin: 0 0 var(--sp-1); color: var(--text-primary); }
.admin-gate-sub { text-align: center; font-size: var(--fs-14); color: var(--text-muted); margin: 0 0 var(--sp-3); }
.admin-gate-label { font-size: 13px; font-weight: 600; color: var(--text-secondary); margin: var(--sp-3) 0 6px; }
.admin-gate-hint { font-size: var(--fs-12); color: var(--text-faint); margin: var(--sp-3) 0 0; }
.admin-gate-err {
  margin-top: var(--sp-3); padding: var(--sp-2) var(--sp-3); border-radius: var(--radius-md);
  background: var(--status-danger-bg); color: var(--status-danger); font-size: 13px;
}
.admin-gate-err[hidden] { display: none; }
.admin-gate-btn { width: 100%; justify-content: center; margin-top: var(--sp-5); min-height: var(--control-h); font-size: var(--fs-14); }

/* ---- 13. 长英文不撑破 ---- */
.mx-hero > *, .mx-duo > *, .buy-layout-container > *, .mx-auth-layout > * { min-width: 0; }
@media (max-width: 1200px) { .mx-hero { grid-template-columns: minmax(0, 1fr); } }
.mx-hero-snapshot { max-width: 100%; flex-wrap: wrap; row-gap: var(--sp-2); }
@media (max-width: 1024px) { .mx-hero-snapshot { border-radius: var(--radius-lg); } }
.mx-phead h2, .mx-panel-title, .admin-panel-header h3, .mx-stat-head, .billing-stat-head,
.admin-stat-label, .mx-summary-label, .mx-state-desc, .tu-label { overflow-wrap: anywhere; }
.admin-panel-header { flex-wrap: wrap; gap: var(--sp-3); }
.admin-filter-bar .admin-tabs { flex-wrap: wrap; }

/* ---- 14. ≤1024px：侧栏变抽屉（汉堡在页头），不加任何悬浮元素 ---- */
.sidebar-mask { display: none; }
@media (max-width: 1024px) {
  :root { --gutter: 16px; }
  .miya-sidebar {
    width: var(--sidebar-w) !important;
    max-width: 86vw;
    transform: translateX(-100%);
    transition: transform 180ms ease, box-shadow 180ms ease;
    z-index: 60;
  }
  [data-drawer-open] .miya-sidebar { transform: translateX(0); box-shadow: 0 0 0 1px var(--border-card), 24px 0 48px -12px rgba(0, 0, 0, 0.6); }
  [data-drawer-open] body { overflow: hidden; }
  .sidebar-mask {
    display: block; position: fixed; inset: 0; z-index: 55;
    background: rgba(5, 8, 14, 0.56); backdrop-filter: blur(2px);
    opacity: 0; visibility: hidden; transition: opacity 180ms ease, visibility 180ms;
  }
  .sidebar-mask.show { opacity: 1; visibility: visible; }
  .miya-main, [data-sidebar="collapsed"] .miya-main { margin-left: 0 !important; }
  .sidebar-toggle-inline { display: grid; width: 36px; height: 36px; }
  .miya-header { padding: 0 var(--gutter); }
  .miya-content { padding: var(--sp-5) var(--gutter) var(--sp-8); }
  .mx-panel, .admin-panel-card { padding: var(--sp-5) var(--sp-4); }
  .admin-gate-card { padding: var(--sp-6) var(--sp-5); }
  /* 表格：容器内横向滚动，不缩字号 */
  .mx-table, .miya-table, .admin-table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; white-space: nowrap; }
  .mx-table thead th, .miya-table thead th, .admin-table th { position: static; }
  .admin-stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-3); }
  .admin-stat-val { font-size: var(--fs-20); }
  .mx-stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: var(--sp-3); }
  .mx-stats-grid .mx-stat { padding: var(--sp-4); gap: var(--sp-2); }
  .mx-stats-grid .mx-stat-val { font-size: var(--fs-20); }
  .mx-stats-grid .mx-stat-ico { width: 24px; height: 24px; }
}

/* ---- 15. 减少动态效果 (仅保留轻量化降级，不强制清空核心动效) ---- */

/* ==========================================================================
   16. 第四批：图标 20px 网格 / 结算单重设计
   ========================================================================== */

/* ---- 图标：viewBox 2 2 20 20 = 20px 网格；线宽统一 1.6px，不随尺寸缩放 ---- */
.ic { stroke-width: 1.6; }
.ic * { vector-effect: non-scaling-stroke; }
.nav-icon .ic { width: 20px; height: 20px; }
.arrow-indicator .ic, .sidebar-toggle .ic { width: 16px; height: 16px; }
.help-doc-link .icon .ic, .header-link .icon .ic, .lang-globe .ic { width: 18px; height: 18px; }
.wallet-icon .ic { width: 17px; height: 17px; }
.theme-toggle [data-theme-icon] { display: inline-grid; place-items: center; }
.theme-toggle [data-theme-icon] .ic { width: 18px; height: 18px; vertical-align: 0; }
.mx-card-icon svg { stroke-width: 1.6; }
.mx-card-icon .ic { width: 20px; height: 20px; vertical-align: 0; }
.lang-caret, .mx-dd-caret { display: inline-grid; place-items: center; font-size: 0; }
.lang-caret .ic { width: 14px; height: 14px; vertical-align: 0; }
.mx-dd-caret .ic { width: 16px; height: 16px; vertical-align: 0; }
.modal-close { display: inline-grid; place-items: center; width: 32px; height: 32px; padding: 0; border-radius: var(--radius-sm); }
.modal-close:hover { background: var(--bg-card-hover); color: var(--text-primary); }
.modal-close .ic { width: 20px; height: 20px; vertical-align: 0; }
.stepper-btn .ic { width: 16px; height: 16px; vertical-align: 0; }
.mx-step-num.is-ico { border: 0; background: var(--accent-subtle); }
.mx-step-num.is-ico .ic { width: 14px; height: 14px; vertical-align: 0; }
.admin-gate-icon .ic { width: 26px; height: 26px; vertical-align: 0; }
.mx-empty-ico .ic, .cart-empty-box .icon .ic { stroke-width: 1.6; }
.mx-state-art .a-line { stroke-width: 1.6; }
.mx-state-art .a-accent { stroke-width: 1.8; }

/* ---- 字符图标退役：✓ / • 改为 CSS 绘制 ---- */
.features-check-line span { display: inline-flex; align-items: center; gap: 6px; }
.features-check-line span::before {
  content: ""; width: 14px; height: 14px; flex: none;
  background: var(--status-online);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='2 2 20 20' fill='none' stroke='%23000' stroke-width='2.3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5.5 12.5l4.2 4.2 8.8-9.2'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='2 2 20 20' fill='none' stroke='%23000' stroke-width='2.3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5.5 12.5l4.2 4.2 8.8-9.2'/%3E%3C/svg%3E") center / contain no-repeat;
}
.lang-option.active::before { content: ""; width: 6px; height: 6px; border-radius: 0px; background: currentColor; flex: none; }

/* ---- 选购页右栏：结算单（选择 → 配置 → 结算） ---- */
.buy-layout-container { grid-template-columns: minmax(0, 1fr) 352px; }
.buy-summary-sidebar { scroll-margin-top: calc(var(--header-h) + 12px); }
@media (max-width: 1200px) {
  .buy-layout-container { grid-template-columns: minmax(0, 1fr); }
  .buy-summary-sidebar { position: static; }
}
.order-summary-card.mx-co {
  position: relative; display: flex; flex-direction: column; gap: 0; padding: 0;
  background: var(--bg-card); border: 1px solid var(--border-card);
}
.mx-co > * { padding-left: 20px; padding-right: 20px; }

.mx-co-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding-top: 18px; padding-bottom: 16px; }
.mx-co-kicker { display: block; font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.mx-co-head h3 { margin: 3px 0 0; font-size: 18px; font-weight: 700; color: var(--text-primary); line-height: 1.3; }
.mx-co-count {
  flex: none; font-size: 12px; font-weight: 600; line-height: 1; padding: 6px 10px; border-radius: 0px; font-variant-numeric: tabular-nums;
  background: var(--bg-card-subtle); color: var(--text-faint); border: 1px solid var(--border-card);
}
.mx-co-count.is-on { background: var(--accent-subtle); color: var(--accent); border-color: var(--accent-border); }

/* 步骤条：圆点 + 连线，已完成实心橙、当前描边橙、未到灰 */
.mx-co-steps { list-style: none; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); padding-bottom: 18px; }
.mx-co-step { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; color: var(--text-faint); }
.mx-co-step::before { content: ""; position: absolute; top: 11px; right: calc(50% + 16px); width: calc(100% - 32px); height: 2px; border-radius: 0px; background: var(--border-card); }
.mx-co-step:first-child::before { display: none; }
.mx-co-step.is-done::before, .mx-co-step.is-now::before { background: var(--accent); }
.mx-co-step i {
  width: 24px; height: 24px; border-radius: 0px; display: grid; place-items: center;
  font-style: normal; font-size: 12px; font-family: var(--font-mono); line-height: 1;
  background: var(--bg-card); border: 1.6px solid var(--border-card); color: var(--text-faint);
}
.mx-co-step i .ic { width: 14px; height: 14px; vertical-align: 0; }
.mx-co-step.is-done, .mx-co-step.is-now { color: var(--text-primary); }
.mx-co-step.is-done i { background: var(--accent); border-color: var(--accent); color: #fff; }
.mx-co-step.is-now i { border-color: var(--accent); color: var(--accent); box-shadow: 0 0 0 4px var(--accent-subtle); }

/* 当前选择：键值行 */
.mx-co-spec { margin: 0; display: grid; gap: 10px; padding-top: 14px; padding-bottom: 14px; border-top: 1px solid var(--border-subtle); }
.mx-co-spec > div { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; font-size: 13px; }
.mx-co-spec dt { display: inline-flex; align-items: center; gap: 8px; color: var(--text-muted); flex: none; align-self: center; }
.mx-co-spec dt .ic { width: 16px; height: 16px; vertical-align: 0; color: var(--text-faint); }
.mx-co-spec dd { margin: 0; min-width: 0; text-align: right; color: var(--text-primary); font-weight: 600; overflow-wrap: anywhere; }
.mx-co-spec dd small { margin-left: 6px; font-size: 12px; font-weight: 500; color: var(--text-faint); }

/* 空态 / 价格拆分 */
.mx-co-empty { padding-top: 16px; padding-bottom: 6px; text-align: center; border-top: 1px dashed var(--border-card); }
.mx-co-art { display: block; width: 120px; height: 84px; margin: 0 auto 10px; }
.mx-co-art .a-paper { fill: var(--bg-card-subtle); stroke: var(--text-faint); stroke-width: 1.6; stroke-linejoin: round; }
.mx-co-art .a-rule { fill: none; stroke: var(--text-faint); stroke-width: 1.6; stroke-linecap: round; opacity: .45; }
.mx-co-art .a-dash { stroke: var(--accent); opacity: .9; stroke-dasharray: 3 4; }
.mx-co-art .a-node { fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; }
.mx-co-art .a-dot { fill: var(--accent); }
.mx-co-empty strong { display: block; font-size: 14px; font-weight: 700; color: var(--text-primary); }
.mx-co-empty p { margin: 4px auto 0; max-width: 24em; font-size: 12.5px; line-height: 1.6; color: var(--text-muted); }

.mx-co-lines { display: grid; gap: 9px; padding-top: 14px; border-top: 1px dashed var(--border-card); }
.mx-co-line { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--text-muted); }
.mx-co-line b { order: 2; margin-left: auto; font-family: var(--font-mono); font-weight: 600; color: var(--text-primary); }
.mx-co-line.is-sub { padding-top: 10px; margin-top: 2px; border-top: 1px solid var(--border-subtle); color: var(--text-secondary); font-weight: 600; }
.mx-co-clear {
  order: 1; padding: 2px 8px; border: 0; border-radius: var(--radius-sm); background: transparent;
  font-size: 12px; color: var(--text-faint); cursor: pointer; transition: color var(--transition-fast), background-color var(--transition-fast);
}
.mx-co-clear:hover { color: var(--status-danger); background: var(--status-danger-bg); }
.mx-co-note {
  display: flex; align-items: flex-start; gap: 8px; margin-top: 12px; padding: 10px 12px; border-radius: var(--radius-md);
  background: var(--status-warning-bg); color: var(--status-warning); font-size: 12.5px; line-height: 1.5;
}
.mx-co-note .ic { width: 16px; height: 16px; margin-top: 1px; vertical-align: 0; flex: none; }

/* 撕线：虚线 + 两侧半圆缺口（缺口盖住卡片边框，像一张结算小票） */
.mx-co > .mx-co-tear { position: relative; height: 28px; margin-top: 8px; padding: 0; }
.mx-co-tear::before { content: ""; position: absolute; left: 18px; right: 18px; top: 50%; border-top: 1.5px dashed var(--border-card); }
.mx-co-tear::after {
  /* 左右各一块 12px 宽的底：圆心落在卡片外边框上，只画卡片内侧那半圆 */
  content: ""; position: absolute; top: 0; bottom: 0; left: -1px; right: -1px;
  background:
    radial-gradient(circle at 0 50%, var(--bg-app) 10px, var(--border-card) 10.5px, var(--border-card) 11.2px, transparent 11.7px) left center / 12px 100% no-repeat,
    radial-gradient(circle at 100% 50%, var(--bg-app) 10px, var(--border-card) 10.5px, var(--border-card) 11.2px, transparent 11.7px) right center / 12px 100% no-repeat;
  pointer-events: none;
}

/* 合计：品牌橙大字 */
.mx-co-total { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; padding-top: 2px; padding-bottom: 14px; }
.mx-co-total > span { display: flex; flex-direction: column; gap: 3px; font-size: 14px; font-weight: 700; color: var(--text-primary); }
.mx-co-total small { font-size: 12px; font-weight: 500; color: var(--text-faint); }
.mx-co-total strong { font-family: var(--font-mono); font-size: 30px; line-height: 1; font-weight: 700; letter-spacing: -0.02em; color: var(--accent); }

.mx-co > .mx-co-wallet {
  display: grid; gap: 7px; margin: 0 20px; padding: 12px 14px; border-radius: var(--radius-md);
  background: var(--bg-card-subtle); border: 1px solid var(--border-subtle);
}
.mx-co-wallet > div { display: flex; justify-content: space-between; gap: 12px; font-size: 12.5px; color: var(--text-muted); }
.mx-co-wallet b { font-family: var(--font-mono); font-weight: 600; color: var(--text-secondary); }
.mx-co-wallet > div:last-child { padding-top: 7px; border-top: 1px dashed var(--border-card); }
.mx-co-wallet > div:last-child b { color: var(--text-primary); }
.mx-co-wallet.is-short > div:last-child b { color: var(--status-danger); }

/* 结算按钮：可点 = 实心橙；禁用 = 虚线占位，不像可点击 */
.mx-co > .mx-co-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px; margin: 14px 20px 0; padding: 0 16px; height: 46px;
  border: 1px solid transparent; border-radius: var(--radius-md); background: var(--accent); color: #fff;
  font-size: 15px; font-weight: 700; cursor: pointer; box-shadow: 0 1px 2px rgba(0, 0, 0, .16);
  transition: background-color var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
}
.mx-co-btn .ic { width: 18px; height: 18px; vertical-align: 0; transition: transform var(--transition-fast); }
.mx-co-btn:hover:not(:disabled) { background: var(--accent-hover); transform: translateY(-1px); }
.mx-co-btn:hover:not(:disabled) .ic { transform: translateX(2px); }
.mx-co-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.mx-co > .mx-co-btn:disabled { background: transparent; color: var(--text-faint); border: 1px dashed var(--border-card); box-shadow: none; cursor: not-allowed; font-weight: 600; font-size: 14px; }
.mx-co-btn:disabled .ic { display: none; }
.mx-co-foot { display: flex; align-items: flex-start; justify-content: center; gap: 6px; padding-top: 12px; padding-bottom: 18px; font-size: 12px; line-height: 1.5; color: var(--text-faint); }
.mx-co-foot .ic { width: 14px; height: 14px; margin-top: 2px; vertical-align: 0; color: var(--status-online); flex: none; }

@media (max-width: 600px) {
  .mx-co > * { padding-left: 16px; padding-right: 16px; }
  .mx-co > .mx-co-wallet, .mx-co > .mx-co-btn { margin-left: 16px; margin-right: 16px; }
  .mx-co-total strong { font-size: 26px; }
}

/* ---- 教程步骤号 / 流量卡标题图标 ---- */
.mx-dl b { display: inline-flex; align-items: center; gap: 10px; }
.mx-step-no {
  width: 22px; height: 22px; border-radius: 0px; display: inline-grid; place-items: center; flex: none;
  font-style: normal; font-family: var(--font-mono); font-size: 12px; font-weight: 700; line-height: 1;
  color: var(--accent); background: var(--accent-subtle); border: 1px solid var(--accent-border);
}
.tu-title { display: inline-flex; align-items: center; gap: 8px; }
.tu-title .ic { width: 18px; height: 18px; vertical-align: 0; color: var(--accent); }

/* ==================== 品牌展示牌（总览页） ==================== */
.mx-brandshow { margin: 72px 0 10px; display: flex; justify-content: center; }
.mx-brandshow-card {
  position: relative;
  width: 100%;
  max-width: 900px;
  padding: 54px 40px 46px;
  border-radius: 0px;
  text-align: center;
  overflow: hidden;
  background:
    radial-gradient(120% 150% at 50% -20%, rgba(249, 115, 22, .16), transparent 58%),
    var(--bg-card);
  border: 1px solid var(--border-card);
  box-shadow: 0 30px 70px -40px rgba(0, 0, 0, .65);
}
[data-theme="light"] .mx-brandshow-card {
  background:
    radial-gradient(120% 150% at 50% -20%, rgba(249, 115, 22, .12), transparent 58%),
    #ffffff;
  box-shadow: 0 30px 70px -44px rgba(15, 23, 42, .25);
}
.mx-brandshow-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(249, 115, 22, .55), rgba(249, 115, 22, 0) 38%, rgba(249, 115, 22, 0) 62%, rgba(251, 191, 36, .55));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.mx-brandshow-badge {
  width: 132px;
  height: 132px;
  margin: 0 auto 22px;
  border-radius: 0px;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, rgba(249, 115, 22, .18), rgba(249, 115, 22, .04));
  border: 1px solid rgba(249, 115, 22, .38);
  box-shadow: 0 16px 40px -16px rgba(249, 115, 22, .5), inset 0 1px 0 rgba(255, 255, 255, .08);
}
.mx-brandshow-badge svg { width: 78px; height: 78px; display: block; }
.bs-word {
  display: inline-flex;
  align-items: baseline;
  font-family: Bahnschrift, "DIN Alternate", "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 40px;
  font-weight: 600;
  letter-spacing: .004em;
  line-height: 1;
  color: var(--text-primary);
  white-space: nowrap;
}
.bs-word .bs-i { display: inline-block; width: .34em; height: .78em; margin: 0 .02em; }
.bs-word .bs-i svg { display: block; width: 100%; height: 100%; }
.bs-word .bs-sep { display: inline-block; width: .58em; height: .58em; margin: 0 .16em; align-self: center; }
.bs-word .bs-sep svg { display: block; width: 100%; height: 100%; }
.bs-word strong { color: #f97316; font-weight: 600; letter-spacing: .03em; margin-left: .03em; }
.bs-word .bs-I { display: inline-block; width: .18em; height: .72em; margin: 0 .045em 0 .03em; }
.bs-word .bs-I svg { display: block; width: 100%; height: 100%; }
.mx-brandshow-tag {
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .34em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.mx-brandshow-sub {
  margin: 10px 0 0;
  font-size: 12.5px;
  letter-spacing: .06em;
  color: var(--text-muted);
  opacity: .8;
}
@media (max-width: 700px) {
  .mx-brandshow { margin: 44px 0 6px; }
  .mx-brandshow-card { padding: 36px 20px 32px; border-radius: 0px; }
  .mx-brandshow-badge { width: 104px; height: 104px; border-radius: 0px; margin-bottom: 18px; }
  .mx-brandshow-badge svg { width: 62px; height: 62px; }
  .bs-word { font-size: 30px; }
  .mx-brandshow-tag { letter-spacing: .24em; }
}

/* ==========================================================================
   选购页 · Step 01 地区双卡 + Step 04 计费卡卖点（现货 / 筹备中）
   ========================================================================== */
[data-theme="dark"] {
  --badge-live-border: rgba(16, 185, 129, 0.32);
  --badge-soon-border: rgba(245, 158, 11, 0.32);
  --tag-rotate: #38bdf8;
  --tag-rotate-bg: rgba(56, 189, 248, 0.12);
  --tag-rotate-border: rgba(56, 189, 248, 0.3);
}
[data-theme="light"] {
  --badge-live-border: rgba(5, 150, 105, 0.26);
  --badge-soon-border: rgba(217, 119, 6, 0.26);
  --tag-rotate: #0369a1;
  --tag-rotate-bg: rgba(2, 132, 199, 0.08);
  --tag-rotate-border: rgba(2, 132, 199, 0.24);
}

.region-cards-grid.region-cards-duo {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--sp-3);
}
.region-select-card.region-card-xl {
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  padding: 16px 18px 18px;
  min-height: 136px;
  background: var(--bg-card-subtle);
}
.region-select-card.region-card-xl.active {
  background: linear-gradient(135deg, var(--accent-subtle) 0%, transparent 72%), var(--bg-card-subtle);
}
.region-select-card.region-card-xl:focus-visible {
  outline: none;
  box-shadow: 0 0 0 1px var(--accent), var(--focus-ring);
}
.region-card-top {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.region-card-top .region-meta { padding-right: 30px; }
.region-card-xl .region-meta strong { font-size: 15px; font-weight: 650; }
.region-card-xl .region-meta small { font-size: 12px; letter-spacing: 0.02em; }
.region-flag.region-flag-lg { width: 36px; height: 24px; border-radius: 0px; }
.region-card-xl .region-check-tick {
  top: 14px;
  right: 14px;
  width: 22px;
  height: 22px;
  border-radius: 0px;
  display: grid;
  place-items: center;
  background: var(--accent);
  color: #fff;
}
.region-card-xl .region-check-tick .ic { width: 13px; height: 13px; vertical-align: 0; stroke-width: 2.6; }

.region-badge {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  max-width: 100%;
  padding: 3px 11px;
  border-radius: 0px; font-variant-numeric: tabular-nums;
  border: 1px solid transparent;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.55;
}
.region-badge > i {
  position: relative;
  width: 7px;
  height: 7px;
  border-radius: 0px;
  background: currentColor;
  flex: none;
}
.region-badge.is-live {
  color: var(--status-online);
  background: var(--status-online-bg);
  border-color: var(--badge-live-border);
}
.region-badge.is-live > i::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 0px;
  background: currentColor;
  animation: region-live-pulse 1.8s ease-out infinite;
}
.region-badge.is-soon {
  color: var(--status-warning);
  background: var(--status-warning-bg);
  border-color: var(--badge-soon-border);
}
@keyframes region-live-pulse {
  0% { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(2.6); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .region-badge.is-live > i::after { animation: none; }
}
.region-desc {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--text-secondary);
  overflow-wrap: anywhere;
}

/* 筹备中：不可下单，但保持完整可读，不做"死灰"处理 */
.region-select-card.region-card-xl.is-soon {
  opacity: 1;
  cursor: not-allowed;
  border-style: dashed;
  background: var(--bg-card-subtle);
}
.region-select-card.region-card-xl.is-soon:hover {
  transform: none;
  border-color: var(--border-card);
  background: var(--bg-card-subtle);
}
.region-card-xl.is-soon .region-flag-lg { filter: grayscale(0.5); opacity: 0.78; }
.region-card-xl.is-soon .region-meta strong { color: var(--text-secondary); }
.region-card-xl.is-soon .region-desc { color: var(--text-muted); }

/* 计费卡：标杆特性标签 + 卖点 + 单价 */
.bill-mode-card > div > strong { padding-right: 18px; }
.bill-mode-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  max-width: 100%;
  margin: 3px 0 8px;
  padding: 2px 10px;
  border-radius: 0px;
  border: 1px solid transparent;
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1.6;
}
.bill-mode-tag .ic { width: 12px; height: 12px; vertical-align: 0; flex: none; }
.bill-mode-tag.is-fixed {
  color: var(--accent);
  background: var(--accent-subtle);
  border-color: var(--accent-border);
}
.bill-mode-tag.is-rotate {
  color: var(--tag-rotate);
  background: var(--tag-rotate-bg);
  border-color: var(--tag-rotate-border);
}
.bill-mode-card > div > small {
  color: var(--text-secondary) !important;
  font-size: 12.5px !important;
  line-height: 1.6 !important;
  margin-left: 0;
}
.bill-mode-price {
  display: block;
  margin-top: 10px;
  padding-top: 9px;
  border-top: 1px dashed var(--border-card);
  font-size: 11.5px;
  line-height: 1.55;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}

@media (max-width: 640px) {
  .region-cards-grid.region-cards-duo { grid-template-columns: 1fr; }
  .region-select-card.region-card-xl { min-height: 0; padding: 14px 16px 16px; }
}

/* ---------- 购买端阶梯价格（买多省多） ---------- */
.tier-ladder-wrap {
  display: grid;
  gap: 10px;
  padding: 12px 14px 14px;
  border: 1px solid var(--accent-border);
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, var(--accent-subtle) 0%, transparent 100%);
}
.tier-ladder-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px 12px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-primary);
}
.tier-ladder-head > span { display: inline-flex; align-items: center; gap: 6px; }
.tier-ladder-head .ic { width: 15px; height: 15px; color: var(--accent); }
.tier-next {
  font-style: normal;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
}
.tier-ladder {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(96px, 1fr));
  gap: 8px;
}
.tier-step {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 9px 10px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}
.tier-range { font-size: 11px; font-weight: 600; color: var(--text-muted); }
.tier-step b {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}
.tier-step b .price-unit { font-size: 11px; font-weight: 500; color: var(--text-faint); }
.tier-tag { font-size: 11px; font-weight: 600; color: var(--text-faint); }
.tier-tag.is-off { color: var(--status-online); }
.tier-step.is-active {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent) inset, 0 4px 14px var(--accent-subtle);
}
.tier-step.is-active b { color: var(--accent); }
.tier-step.is-active::after {
  content: "";
  position: absolute;
  top: 8px;
  right: 8px;
  width: 6px;
  height: 6px;
  border-radius: 0px;
  background: var(--accent);
}

/* 预计金额 / 单价：原价划线 + 已省 */
.price-was {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
  font-size: 11.5px;
  font-family: var(--font-mono);
}
.price-was del { color: var(--text-faint); }
.price-was em {
  font-style: normal;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 0px;
  color: var(--status-online);
  background: var(--status-online-bg);
}

/* 结算单：阶梯优惠行 + 立省提示 */
.mx-co-was { margin-right: 6px; font-weight: 500; color: var(--text-faint); }
.mx-co-line.is-save { color: var(--status-online); font-weight: 600; }
.mx-co-line.is-save b { color: var(--status-online); }
.mx-co > .mx-co-saved {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: -4px 20px 14px;
  padding: 9px 12px;
  border-radius: var(--radius-md);
  background: var(--status-online-bg);
  color: var(--status-online);
  font-size: 12.5px;
  font-weight: 600;
}
.mx-co-saved .ic { width: 15px; height: 15px; flex: none; }
.mx-co-saved b { font-family: var(--font-mono); }
.mx-co-saved del { margin-left: auto; font-family: var(--font-mono); font-weight: 500; color: var(--text-faint); }
@media (max-width: 640px) {
  .tier-ladder { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .mx-co > .mx-co-saved { margin-left: 16px; margin-right: 16px; }
}

/* ==========================================================================
   20261025e：版本标识 + 我的代理页（静态代理）
   ========================================================================== */
.app-version {
  position: fixed;
  right: 14px;
  bottom: 8px;
  z-index: 40;
  font-size: 11px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color: var(--text-muted);
  opacity: 0.32;
  letter-spacing: 0.02em;
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
}
.sidebar-footer .fubi-ver {
  margin-top: 2px;
  opacity: 0.32;
  pointer-events: none;
  user-select: none;
}
@media print { .app-version { display: none; } }

.sp-page .mx-summary-cell.is-clickable { cursor: pointer; transition: background .15s; }
.sp-page .mx-summary-cell.is-clickable:hover { background: var(--bg-card-subtle, var(--bg-card)); }
.sp-page .mx-summary-cell.is-clickable:focus-visible { outline: none; box-shadow: inset var(--focus-ring, 0 0 0 2px var(--accent)); }
.sp-fmt-label { font-size: 12px; font-weight: 600; color: var(--text-muted); margin-right: 2px; }
.sp-port { color: var(--accent); font-size: 13.5px; font-family: var(--font-mono); }
.sp-ip { font-size: 11.5px; word-break: break-all; }
.sp-exp { display: block; font-family: var(--font-mono); font-size: 11.5px; color: var(--text-muted); }
.sp-remain { font-size: 10.5px; color: var(--text-muted); }
.sp-ops { text-align: right; white-space: nowrap; }
.sp-ops .sp-row-btn + .sp-row-btn { margin-left: 6px; }
.sp-row-btn { padding: 5px 11px; font-size: 12px; }
.sp-row-btn[disabled] { opacity: .45; cursor: not-allowed; }
.sp-links { display: flex; gap: 9px; margin-top: 18px; flex-wrap: wrap; }
.sp-cover-row { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--text-muted); margin-bottom: 6px; }
.sp-search {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 10px;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  background: var(--bg-input);
  color: var(--text-muted);
}
.sp-search:focus-within { border-color: var(--border-focus, var(--accent)); }
.sp-search input {
  width: 190px;
  border: 0 !important;
  outline: 0;
  background: transparent !important;
  box-shadow: none !important;
  padding: 0 !important;
  color: var(--text-primary);
  font-size: 12.5px;
}
.sp-code {
  margin: 0;
  background: #0f172a;
  color: #38bdf8;
  padding: 14px;
  border-radius: 0px;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.6;
  overflow-x: auto;
  white-space: pre;
}
@media (max-width: 700px) {
  .app-version { font-size: 10px; right: 8px; bottom: 4px; }
  .sp-page .mx-toolbar-side { width: 100%; }
  .sp-search { flex: 1; }
  .sp-search input { width: 100%; }
  .sp-page .generator-actions { width: 100%; }
  .sp-page .generator-actions .mx-btn-s { flex: 1 1 auto; justify-content: center; }
  .sp-page .sp-ops { justify-content: flex-end; }
}

/* ---------- v1.8.2：选购页三站点卡片（德国 → 美国 → 意大利） ----------
   宽容器三列等宽；容器变窄（侧栏展开 / 平板 / 手机）时整列纵向堆叠，美国卡片紧贴在德国卡片下方，
   避免两列布局里第三张卡片孤零零掉到下一行。用容器查询按卡片区实际宽度切换，不受侧栏状态影响。 */
.wizard-step-card:has(> .region-cards-trio) { container-type: inline-size; container-name: region-step; }
.region-cards-grid.region-cards-duo.region-cards-trio {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
}
.region-cards-trio .region-select-card.region-card-xl { min-width: 0; height: 100%; }
.region-cards-trio .region-card-top .region-meta strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.region-cards-trio .region-badge { white-space: normal; }
@container region-step (max-width: 700px) {
  .region-cards-grid.region-cards-duo.region-cards-trio { grid-template-columns: 1fr; }
  .region-cards-trio .region-select-card.region-card-xl { min-height: 0; }
}
@media (max-width: 640px) {
  .region-cards-grid.region-cards-duo.region-cards-trio { grid-template-columns: 1fr; }
}

/* v1.8.4：首屏/登录页指标块不换行（「无限」/ ∞ 与数字对齐） */
.mx-hero-stats div b, .mx-auth-metrics b { white-space: nowrap; }
.mx-hero-stats div span, .mx-auth-metrics span { white-space: nowrap; }

/* v1.8.5：网络类型定级（ISP 住宅 / 机房）—— 当前地区无此类型现货的提示 + 已购列表网络类型标签 */
.net-type-card.disabled .net-type-off {
  display: inline-block;
  margin-top: 4px;
  font-style: normal;
  font-size: 11px;
  color: var(--text-muted);
}
.mx-region-txt small.mx-region-net[data-net="isp"] { color: #16a34a; }

/* ==========================================================================
   v1.9.0 · CC v2（20261027v2）视觉层
   对照 F:\咨询杂要\fubiip-cc-v2 原型落地；只追加覆盖，不改动既有选择器/ID/data-*
   ========================================================================== */

/* ---------- 顶栏：语言按钮 / 下拉 SVG 国旗 ---------- */
.lang-flag {
  display: inline-flex;
  width: 20px;
  height: 14px;
  flex: none;
  border-radius: 0px;
  overflow: hidden;
  box-shadow: 0 0 0 1px var(--border-card);
  vertical-align: -2px;
}
.lang-flag svg { width: 100%; height: 100%; display: block; }
.lang-current { display: inline-flex; align-items: center; gap: 7px; }
.lang-option { display: flex; align-items: center; gap: 10px; }
.lang-option .lang-flag { order: 0; }
.lang-option .lang-name { flex: 1; }
.lang-option.active::before { order: 2; margin-left: auto; }
.lang-option:not(.active)::before { order: 2; }

/* ---------- 总览：控制台模型卡 LIVE + 底部品牌行 ---------- */
.mx-mock-bar .cc2-live {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 8px;
  border-radius: 0px;
  background: var(--status-online-bg);
  color: var(--status-online);
  font-weight: 700;
  letter-spacing: 0.06em;
}
.mx-mock-bar .cc2-live b {
  width: 6px;
  height: 6px;
  border-radius: 0px;
  background: currentColor;
  box-shadow: 0 0 0 3px var(--status-online-bg);
  animation: cc2Pulse 2s ease-in-out infinite;
}
@keyframes cc2Pulse { 50% { box-shadow: 0 0 0 6px transparent; } }
.cc2-mock-foot {
  margin-top: 2px;
  padding-top: 10px;
  border-top: 1px solid var(--border-subtle);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--text-faint);
}

/* ---------- 总览：通道健康度 99.9% + 30 天在线脉冲条 ---------- */
.cc2-uptime { margin-top: 14px; }
.cc2-uptime-num {
  font-family: var(--font-mono);
  font-size: 40px;
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--status-online);
}
.cc2-uptime small {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: var(--text-faint);
}
.cc2-uptime-bars { display: flex; gap: 3px; margin-top: 14px; }
.cc2-uptime-bars i {
  flex: 1;
  height: 26px;
  border-radius: 0px;
  background: var(--status-online);
  opacity: 0.85;
  transform-origin: bottom;
  animation: cc2Bar 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.cc2-uptime-bars i.is-dip { opacity: 0.55; }
.cc2-uptime-bars i:nth-child(4n+1) { animation-delay: 0.04s; }
.cc2-uptime-bars i:nth-child(4n+2) { animation-delay: 0.08s; }
.cc2-uptime-bars i:nth-child(4n+3) { animation-delay: 0.12s; }
@keyframes cc2Bar { from { transform: scaleY(0.2); opacity: 0; } }
/* v3.4：静态 99.9% + 18 格翠绿满格健康条（零请求） */
.cc2-uptime.is-static .cc2-uptime-num {
  font-size: 44px;
  background: linear-gradient(135deg, #34D399, #10B981 55%, #059669);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: none;
}
.cc2-uptime-bars.is-full { gap: 4px; margin-top: 16px; }
.cc2-uptime-bars.is-full i {
  height: 22px;
  border-radius: 0px;
  opacity: 1;
  background: linear-gradient(180deg, #6EE7B7, #10B981 70%, #059669);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28), 0 0 10px -3px rgba(16, 185, 129, 0.6);
}
[data-theme="light"] .cc2-uptime.is-static .cc2-uptime-num { background: linear-gradient(135deg, #10B981, #047857); -webkit-background-clip: text; background-clip: text; }
[data-theme="light"] .cc2-uptime-bars.is-full i {
  background: linear-gradient(180deg, #A7F3D0, #34D399 60%, #10B981);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

/* ---------- 总览：共享代理 vs 独享通道 ---------- */
.cc2-vs { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.cc2-vs-card {
  padding: 24px;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-card);
  background: var(--bg-card);
}
.cc2-vs-card.is-good {
  border-color: var(--accent);
  background: linear-gradient(180deg, var(--accent-subtle), transparent 70%), var(--bg-card);
  box-shadow: 0 0 0 1px var(--accent-border), 0 18px 50px -20px rgba(249, 115, 22, 0.35);
}
.cc2-vs-card h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
}
.cc2-vs-card h3 .ic { width: 18px; height: 18px; vertical-align: 0; color: var(--text-muted); }
.cc2-vs-card.is-good h3 { color: var(--accent); }
.cc2-vs-card.is-good h3 .ic { color: var(--accent); }
.cc2-vs-row {
  display: grid;
  grid-template-columns: minmax(104px, 150px) 1fr;
  gap: 14px;
  align-items: center;
  padding: 13px 0;
  border-bottom: 1px dashed var(--border-card);
}
.cc2-vs-row:last-child { border-bottom: 0; }
.cc2-vs-row > span { font-size: 12.5px; color: var(--text-faint); line-height: 1.45; }
.cc2-vs-row > b { display: flex; align-items: center; gap: 8px; font-weight: 600; color: var(--text-primary); line-height: 1.45; }
.cc2-vs-card.is-bad .cc2-vs-row > b { color: var(--text-secondary); }
.cc2-x { font-style: normal; font-weight: 700; color: var(--status-danger); width: 16px; text-align: center; flex: none; }
.cc2-ok { display: inline-grid; place-items: center; width: 16px; flex: none; color: var(--status-online); }
.cc2-ok .ic { width: 15px; height: 15px; vertical-align: 0; stroke-width: 2.2; }
@media (max-width: 860px) { .cc2-vs { grid-template-columns: 1fr; } }

/* ---------- 总览：底部 CTA 横向布局 ---------- */
.mx-cta-box.cc2-cta {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  text-align: left;
  padding: 40px 44px;
  border-color: var(--accent-border);
  background: radial-gradient(600px 240px at 100% 0, rgba(249, 115, 22, 0.18), transparent 70%), var(--bg-card);
}
.cc2-cta .cc2-cta-copy { min-width: 0; }
.cc2-cta h2 { line-height: 1.3; letter-spacing: -0.025em; margin: 0; }
.cc2-cta h2 em { font-style: normal; color: var(--accent); }
.cc2-cta p { margin-top: 8px; max-width: 620px; }
.mx-cta-box.cc2-cta .cc2-cta-btn {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 46px;
  margin: 0;
  padding: 0 26px;
  line-height: 1;
  font-size: 14.5px;
  white-space: nowrap;
}
.mx-cta-box.cc2-cta .cc2-cta-btn > span { display: block; line-height: 1; }
.mx-cta-box.cc2-cta .cc2-cta-btn .ic { flex: none; width: 16px; height: 16px; vertical-align: 0; }
@media (max-width: 760px) {
  .mx-cta-box.cc2-cta { flex-direction: column; align-items: flex-start; padding: 28px 22px; }
}

/* ---------- 选购：第 05 步左右双栏 ---------- */
.cc2-qty-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 16px;
  align-items: stretch;
}
.cc2-qty-left,
.cc2-qty-right > .tier-ladder-wrap {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-card);
  background: var(--bg-card);
  min-width: 0;
}
.cc2-qty-right { min-width: 0; display: flex; }
.cc2-qty-right > .tier-ladder-wrap { flex: 1; gap: 10px; }
.cc2-qty-left .stepper-row {
  gap: 0;
  border: 1px solid var(--border-card);
  border-radius: 0px;
  overflow: hidden;
  background: var(--bg-input);
}
.cc2-qty-left .stepper-btn {
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 0;
  background: transparent;
}
.cc2-qty-left .stepper-btn:hover { background: var(--bg-card-hover); }
.cc2-qty-left .stepper-input {
  flex: 1;
  width: auto;
  min-width: 0;
  height: 46px;
  border: 0;
  border-left: 1px solid var(--border-card);
  border-radius: 0;
  background: transparent;
  font-size: 20px;
  font-weight: 750;
}
.cc2-qty-left .stepper-unit {
  align-self: stretch;
  display: flex;
  align-items: center;
  padding: 0 12px;
  border-right: 1px solid var(--border-card);
  white-space: nowrap;
}
.cc2-qty-left .quick-amount-chips { gap: 6px; }
.cc2-qty-left .amount-chip { padding: 5px 11px; border-radius: 0px; }
.cc2-batch-note { display: flex; align-items: center; gap: 7px; }
.cc2-batch-note .ic { width: 14px; height: 14px; flex: none; color: var(--text-faint); vertical-align: 0; }

/* 阶梯价：竖排 5 档对照行 + 橙色降档进度条 */
.cc2-qty-right .tier-ladder-head { flex-direction: column; align-items: flex-start; gap: 6px; }
.cc2-tier-prog { height: 5px; border-radius: 0px; background: var(--bg-card-hover); overflow: hidden; }
.cc2-tier-prog i {
  display: block;
  height: 100%;
  border-radius: 0px;
  background: linear-gradient(90deg, #fb923c, var(--accent));
  transition: width 0.35s ease;
}
.cc2-qty-right .tier-ladder { grid-template-columns: 1fr; gap: 6px; }
.cc2-qty-right .tier-step {
  display: grid;
  grid-template-columns: 1fr auto 64px;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 0px;
}
.cc2-qty-right .tier-range { font-size: 12.5px; color: var(--text-secondary); }
.cc2-qty-right .tier-step b { font-size: 13px; }
.cc2-qty-right .tier-tag { text-align: right; }
.cc2-qty-right .tier-step.is-active { background: var(--accent-subtle); }
.cc2-qty-right .tier-step.is-active::after { display: none; }

/* 横向汇总底栏：单价 / 配置 / 金额 + 加入订单 */
.cc2-sumbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 14px 18px;
  border-radius: 0px;
  border: 1px solid var(--accent-border);
  background: linear-gradient(90deg, var(--accent-subtle), transparent);
}
.cc2-sumbar .price-preview-grid {
  background: transparent;
  border: 0;
  border-radius: 0;
  gap: 16px;
}
.cc2-sumbar .price-col { background: transparent; padding: 0; }
.cc2-sumbar .price-col.total strong { font-size: 24px; }
.cc2-sumbar .btn-add-cart {
  width: auto;
  padding: 0 22px;
  height: 46px;
  border-radius: 0px;
  white-space: nowrap;
}
.amount-config-box .features-check-line { gap: 6px; padding-top: 0; }
.amount-config-box .features-check-line span {
  height: 24px;
  padding: 0 10px;
  border-radius: 0px;
  border: 1px solid var(--border-card);
  background: var(--bg-card);
  font-weight: 600;
  color: var(--text-secondary);
}
.amount-config-box .features-check-line span:first-child {
  border-color: transparent;
  background: var(--accent-subtle);
  color: var(--accent);
}
.amount-config-box .features-check-line span::before { display: none; }
@media (max-width: 900px) {
  .cc2-qty-grid { grid-template-columns: 1fr; }
  .cc2-sumbar { grid-template-columns: 1fr; }
  .cc2-sumbar .btn-add-cart { width: 100%; }
}

/* ---------- 选购：结算单 横向三步进度条 / 余额扣款框 ---------- */
.mx-co-steps { gap: 6px; }
.mx-co-step { align-items: stretch; text-align: left; font-size: 11.5px; }
.mx-co-step::before { display: none; }
.mx-co-step i {
  width: auto !important;
  height: 4px !important;
  min-height: 0;
  border-radius: 0px !important;
  border: 0 !important;
  font-size: 0 !important;
  background: var(--border-card) !important;
  box-shadow: none !important;
  color: transparent !important;
  overflow: hidden;
}
.mx-co-step i .ic { display: none; }
.mx-co-step.is-done i { background: var(--accent) !important; }
.mx-co-step.is-now i { background: linear-gradient(90deg, var(--accent) 50%, var(--border-card) 50%) !important; }
.mx-co-step.is-done { color: var(--text-secondary); }
.mx-co-step.is-now { color: var(--accent); font-weight: 700; }
.cc2-step-n { font-style: normal; }
.mx-co-wallet > div.cc2-wallet-h {
  justify-content: flex-start;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-primary);
  padding-bottom: 2px;
}
.mx-co-wallet .cc2-wallet-h .ic { width: 15px; height: 15px; vertical-align: 0; color: var(--text-muted); }

/* ---------- 已购代理页 ---------- */
.cc2-phead { display: flex; flex-direction: row; align-items: flex-end; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.cc2-phead > div:first-child { flex: 1 1 520px; min-width: 0; max-width: 860px; }
.cc2-phead-acts { display: flex; gap: 10px; flex-wrap: wrap; }

.mx-summary-bar.cc2-kpis {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  background: transparent;
  border: 0;
  border-radius: 0;
  overflow: visible;
  box-shadow: none;
}
.cc2-kpis .mx-summary-cell {
  padding: 16px 18px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-card);
  background: var(--bg-card);
  transition: border-color var(--transition-fast), transform var(--transition-fast);
}
.cc2-kpis .mx-summary-cell.is-clickable:hover { border-color: var(--accent-border); transform: translateY(-1px); }
.cc2-kpis .mx-summary-label { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--text-secondary); }
.cc2-kpis .cc2-kpi-ico { font-style: normal; color: var(--text-faint); display: inline-flex; }
.cc2-kpis .cc2-kpi-ico .ic { width: 16px; height: 16px; color: var(--text-faint); vertical-align: 0; }
.cc2-kpis .mx-summary-val { font-size: 24px; margin-top: 4px; }
.cc2-kpis .mx-summary-hint { font-size: 12px; }
@media (max-width: 900px) { .mx-summary-bar.cc2-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.cc2-px-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 400px);
  gap: 16px;
  align-items: start;
  margin-bottom: 20px;
}
.cc2-px-top > .mx-panel { margin-bottom: 0; min-width: 0; }
@media (max-width: 1180px) { .cc2-px-top { grid-template-columns: 1fr; } }
.cc2-stock-badge { display: inline-flex; align-items: center; gap: 6px; margin-left: auto !important; }
.cc2-stock-badge i { width: 6px; height: 6px; border-radius: 0px; background: var(--status-online); }
.cc2-gen .generator-preview-row { flex-direction: column; align-items: stretch; }
.cc2-preview-box {
  position: relative;
  border-radius: 0px;
  border: 1px solid var(--border-card);
  background: var(--bg-code);
  padding: 8px 0;
}
.cc2-preview-box::after {
  content: "PREVIEW";
  position: absolute;
  right: 12px;
  top: 9px;
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--text-faint);
  pointer-events: none;
}
.cc2-preview-box .generator-preview-input {
  width: 100%;
  border: 0;
  background: transparent;
  padding: 2px 80px 2px 14px;
  font-size: 12px;
  line-height: 1.75;
}
.cc2-preview-more > div {
  padding: 0 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.75;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cc2-ov .mx-kv { padding: 9px 0; border-bottom: 1px dashed var(--border-subtle); }
.cc2-ov .mx-kv:last-child { border-bottom: 0; }
.cc2-cover { margin-top: 14px; }
/* v1.9.1：通道概览留白。根因：上面 .cc2-ov .mx-kv 把行内左右 padding 清成 0，
   而 .mx-kv-list 自带 1px 边框 → 键值文字直接贴在边框上（几何实测 0px） */
.cc2-px-top > .mx-panel.cc2-ov { padding: 22px 24px; }
.cc2-ov .mx-panel-title { margin-bottom: 6px; }
.cc2-ov .mx-panel-sub { margin-bottom: 16px; line-height: 1.6; }
.cc2-ov .mx-kv-list { gap: 0; padding: 4px 16px; background: var(--bg-card-subtle); border-radius: 0px; }
.cc2-ov .mx-kv {
  gap: 16px;
  align-items: baseline;
  padding: 12px 2px;
  background: transparent;
  border-bottom: 1px dashed var(--border-subtle);
}
.cc2-ov .mx-kv:last-child { border-bottom: 0; }
.cc2-ov .mx-kv-key { flex: 0 1 auto; min-width: 0; line-height: 1.45; }
.cc2-ov .mx-kv-val { flex: none; text-align: right; line-height: 1.45; }
.cc2-ov .cc2-cover {
  margin-top: 16px;
  padding: 14px 16px 16px;
  border: 1px solid var(--border-subtle);
  border-radius: 0px;
  background: var(--bg-card-subtle);
}
.cc2-ov .cc2-cover .sp-cover-row { font-size: 12px; margin-bottom: 10px; gap: 12px; align-items: baseline; }
.cc2-ov .cc2-cover .sp-cover-row > span:last-child { color: var(--text-primary); font-weight: 600; font-family: var(--font-mono); }
.cc2-ov .sp-links { margin-top: 18px; gap: 10px; }
.cc2-ov .sp-links .mx-btn-s { flex: 1 1 0; justify-content: center; min-height: 38px; padding: 8px 16px; }

.cc2-px-bottom {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 16px;
  margin: 20px 0;
  align-items: stretch;
}
.cc2-px-bottom.is-single { grid-template-columns: 1fr; }
.cc2-px-bottom > * { margin: 0 !important; min-width: 0; }
@media (max-width: 900px) { .cc2-px-bottom { grid-template-columns: 1fr; } }
.cc2-dist-list { display: flex; flex-direction: column; gap: 12px; margin-top: 12px; }
.cc2-dist-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-areas: "flag name n" "bar bar bar";
  gap: 6px 10px;
  align-items: center;
  font-size: 12.5px;
}
.cc2-dist-row .region-flag { grid-area: flag; }
.cc2-dist-name { grid-area: name; color: var(--text-primary); font-weight: 600; }
.cc2-dist-n { grid-area: n; font-family: var(--font-mono); font-size: 12px; color: var(--text-secondary); }
.cc2-dist-bar { grid-area: bar; height: 5px; border-radius: 0px; background: var(--bg-card-hover); overflow: hidden; }
.cc2-dist-bar i { display: block; height: 100%; border-radius: 0px; background: linear-gradient(90deg, #fb923c, var(--accent)); }

.cc2-steps-panel { margin-bottom: 0; }
.cc2-steps3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 14px; }
.cc2-s3 {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px;
  border-radius: 0px;
  border: 1px solid var(--border-card);
  background: var(--bg-card-subtle);
}
.cc2-s3-n {
  width: 26px;
  height: 26px;
  border-radius: 0px;
  display: grid;
  place-items: center;
  background: var(--accent);
  color: #fff;
  font-weight: 800;
  font-size: 12.5px;
  margin-bottom: 4px;
}
.cc2-s3 strong { font-size: 13.5px; color: var(--text-primary); }
.cc2-s3 > span:last-child { font-size: 12.5px; line-height: 1.6; color: var(--text-secondary); }
@media (max-width: 900px) { .cc2-steps3 { grid-template-columns: 1fr; } }

/* 窄屏沿用原规则：语言按钮只留地球图标 */
@media (max-width: 640px) { .lang-current { display: none; } }

/* CC v2：总览卡片胶囊标签（原先无样式，文字挤成一行） */
.mx-chips { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 14px; }
.mx-chips span {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 11px;
  border-radius: 0px;
  border: 1px solid var(--border-card);
  background: var(--bg-card-subtle);
  font-size: 12.5px;
  color: var(--text-secondary);
}

/* =====================================================================
   v1.9.2 · /#/static-proxies 顶部双栏等高齐平（左「批量提取」 ⇄ 右「概览」）
   根因：.cc2-px-top 为 align-items:start，两卡各按内容取高 → 左卡底部悬空；
   右卡 6 行键值竖排把高度拉长、数字挤在右缘。改为 stretch + 两卡 flex 纵向，
   右卡 2×3 指标小格，按钮栏 margin-top:auto 共同落在底边，高度差 0px。
   ===================================================================== */
.cc2-px-top { align-items: stretch; }
.cc2-px-top > .mx-panel.cc2-gen,
.cc2-px-top > .mx-panel.cc2-ov { display: flex; flex-direction: column; padding: 22px 24px; }
.cc2-gen .mx-panel-title { margin-bottom: 6px; }
.cc2-gen .cc2-gen-sub {
  display: flex; align-items: center; justify-content: space-between;
  gap: 8px 12px; flex-wrap: wrap; margin-bottom: 16px; line-height: 1.6;
}
.cc2-auth-tag {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 10px 3px 8px; border-radius: 0px;
  border: 1px solid var(--accent-border); background: var(--accent-subtle);
  color: var(--accent); font-size: 11.5px; font-weight: 600; line-height: 1.5; white-space: nowrap;
}
.cc2-auth-tag .ic { width: 13px; height: 13px; flex: none; }
.cc2-gen .generator-format-selector { margin-bottom: 14px; }
.cc2-gen .generator-preview-row {
  flex: 1; display: flex; flex-direction: column; align-items: stretch; gap: 0; flex-wrap: nowrap;
}
.cc2-gen .cc2-preview-box {
  flex: 1; display: flex; flex-direction: column; justify-content: flex-start;
  min-height: 112px; padding: 12px 0; margin-bottom: 14px;
}
.cc2-gen .generator-actions {
  margin-top: auto; padding-top: 14px; border-top: 1px solid var(--border-subtle);
}
.cc2-gen .generator-actions .mx-btn-s,
.cc2-ov .sp-links .mx-btn-s { min-height: 38px; }

.cc2-ov .mx-panel-sub { margin-bottom: 14px; }
.cc2-ov .mx-kv-list {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px;
  padding: 0; border: 0; border-radius: 0; background: transparent; overflow: visible;
}
.cc2-ov .mx-kv,
.cc2-ov .mx-kv:last-child {
  flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: 4px;
  padding: 10px 14px; border-radius: 0px;
  border: 1px solid var(--border-subtle); background: var(--bg-card-subtle); min-width: 0;
}
.cc2-ov .mx-kv-key { font-size: 11.5px; line-height: 1.4; color: var(--text-muted); }
.cc2-ov .mx-kv-val {
  font-size: 14px; line-height: 1.35; text-align: left; max-width: 100%;
  overflow-wrap: anywhere; letter-spacing: -0.01em;
}
.cc2-ov .cc2-cover { margin-top: 12px; padding: 12px 14px 14px; border-radius: 0px; }
.cc2-ov .sp-links {
  margin-top: auto; padding-top: 14px; border-top: 1px solid var(--border-subtle);
}
/* 右卡 cover 与按钮栏之间至少留 14px，再由 margin-top:auto 吃掉剩余空间 */
.cc2-ov .cc2-cover { margin-bottom: 14px; }
@media (max-width: 1180px) {
  .cc2-gen .cc2-preview-box { min-height: 0; }
}

/* =====================================================================
   v1.9.2 · 右上角个人中心下拉菜单
   ===================================================================== */
.user-menu-wrap { position: relative; display: inline-flex; }
.user-avatar { transition: box-shadow var(--transition-fast), border-color var(--transition-fast); }
.user-avatar:hover, .user-avatar[aria-expanded="true"] { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-subtle); }
.user-avatar:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--accent-border); }
.user-menu {
  position: absolute; top: calc(100% + 10px); right: 0; z-index: 900;
  width: 304px; max-width: calc(100vw - 24px);
  padding: 8px; border-radius: 0px;
  background: var(--bg-card); border: 1px solid var(--border-card);
  box-shadow: var(--shadow-lg);
  animation: umIn 0.16s cubic-bezier(0.16, 1, 0.3, 1) both;
  transform-origin: top right;
}
.user-menu.hidden { display: none; }
@keyframes umIn { from { opacity: 0; transform: translateY(-4px) scale(0.98); } to { opacity: 1; transform: none; } }
.um-card { display: flex; align-items: center; gap: 12px; padding: 10px 10px 12px; }
.um-avatar {
  width: 42px; height: 42px; flex: none; border-radius: 0px;
  display: grid; place-items: center; font-size: 14px; font-weight: 700; color: #fff;
  background: var(--accent-gradient); box-shadow: var(--glow-accent);
}
.um-id { min-width: 0; flex: 1; }
.um-name-row { display: flex; align-items: center; gap: 8px; min-width: 0; }
.um-name { font-size: 14.5px; font-weight: 700; color: var(--text-primary); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.um-cur {
  flex: none; padding: 1px 7px; border-radius: 0px; font-size: 10.5px; font-weight: 700; letter-spacing: 0.02em;
  color: var(--accent); background: var(--accent-subtle); border: 1px solid var(--accent-border); font-family: var(--font-mono);
}
.um-email { display: flex; align-items: center; gap: 5px; margin-top: 3px; font-size: 12px; color: var(--text-muted); min-width: 0; }
.um-email > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.um-email .ic { width: 13px; height: 13px; flex: none; }
.um-email.unbound { color: var(--status-warning); }
.um-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 0 2px 10px; }
.um-stat {
  display: flex; flex-direction: column; gap: 2px; padding: 8px 12px; border-radius: 0px;
  background: var(--bg-card-subtle); border: 1px solid var(--border-subtle);
}
.um-stat > span { font-size: 11px; color: var(--text-muted); }
.um-stat > b { font-size: 14px; color: var(--text-primary); font-family: var(--font-mono); }
.um-list { display: flex; flex-direction: column; gap: 2px; padding-top: 6px; border-top: 1px solid var(--border-subtle); }
.um-item {
  display: flex; align-items: center; gap: 11px; width: 100%; padding: 9px 10px; border-radius: 0px;
  border: 0; background: transparent; color: var(--text-secondary); text-decoration: none; text-align: left;
  font: inherit; font-size: 13px; cursor: pointer; transition: background-color var(--transition-fast), color var(--transition-fast);
}
.um-item:hover, .um-item:focus-visible { background: var(--bg-card-hover); color: var(--text-primary); outline: none; }
.um-ico {
  width: 30px; height: 30px; flex: none; border-radius: 0px; display: grid; place-items: center;
  background: var(--bg-card-subtle); border: 1px solid var(--border-subtle); color: var(--text-muted);
}
.um-ico .ic { width: 16px; height: 16px; }
.um-item:hover .um-ico { color: var(--accent); border-color: var(--accent-border); background: var(--accent-subtle); }
.um-txt { display: flex; flex-direction: column; gap: 1px; min-width: 0; flex: 1; }
.um-txt b { font-weight: 600; color: inherit; }
.um-txt small { font-size: 11.5px; color: var(--text-faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.um-go { color: var(--text-faint); display: inline-flex; }
.um-go .ic { width: 14px; height: 14px; transform: rotate(-90deg); }
.um-sep { height: 1px; margin: 4px 6px; background: var(--border-subtle); }
.um-item.danger { color: var(--status-danger); }
.um-item.danger .um-ico { color: var(--status-danger); background: var(--status-danger-bg); border-color: transparent; }
.um-item.danger:hover { background: var(--status-danger-bg); color: var(--status-danger); }

/* =====================================================================
   v1.9.2 · 账户与安全设置弹窗
   ===================================================================== */
.acct-modal .acct-card { max-width: 520px; display: flex; flex-direction: column; max-height: calc(100vh - 40px); animation: umIn 0.18s cubic-bezier(0.16, 1, 0.3, 1) both; }
.acct-head { padding: 18px 22px; align-items: flex-start; }
.acct-head-main { display: flex; align-items: center; gap: 12px; min-width: 0; }
.acct-head-ico {
  width: 38px; height: 38px; flex: none; border-radius: 0px; display: grid; place-items: center;
  color: var(--accent); background: var(--accent-subtle); border: 1px solid var(--accent-border);
}
.acct-head-ico .ic { width: 20px; height: 20px; }
.acct-head h3 { font-size: 16px; margin: 0; }
.acct-head-sub { margin: 2px 0 0; font-size: 12px; color: var(--text-muted); line-height: 1.5; }
.acct-head .modal-close { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 0px; flex: none; }
.acct-head .modal-close:hover { background: var(--bg-card-hover); color: var(--text-primary); }
.acct-head .modal-close .ic { width: 18px; height: 18px; }
.acct-tabs {
  display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin: 14px 22px 0; padding: 4px;
  border-radius: 0px; background: var(--bg-card-subtle); border: 1px solid var(--border-subtle);
}
.acct-tab {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-width: 0;
  padding: 8px 10px; border: 0; border-radius: 0px; background: transparent; cursor: pointer;
  color: var(--text-muted); font: inherit; font-size: 12.5px; font-weight: 600;
  transition: background-color var(--transition-fast), color var(--transition-fast);
}
.acct-tab > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acct-tab .ic { width: 15px; height: 15px; flex: none; }
.acct-tab:hover { color: var(--text-primary); }
.acct-tab.active { background: var(--bg-card); color: var(--accent); box-shadow: var(--shadow-sm); }
.acct-body { padding: 18px 22px 22px; overflow-y: auto; }
.acct-pane.hidden { display: none; }
.acct-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; min-width: 0; }
.acct-field > label { font-size: 12px; font-weight: 600; color: var(--text-secondary); }
.acct-pwd { position: relative; }
.acct-pwd .miya-input { padding-right: 42px; }
.acct-eye {
  position: absolute; right: 5px; top: 50%; transform: translateY(-50%);
  width: 30px; height: 30px; display: grid; place-items: center; border: 0; border-radius: 0px;
  background: transparent; color: var(--text-faint); cursor: pointer;
}
.acct-eye:hover, .acct-eye.on { color: var(--accent); background: var(--accent-subtle); }
.acct-eye .ic { width: 16px; height: 16px; }
.acct-strength { display: flex; align-items: center; gap: 10px; }
.acct-strength-bar { flex: 1; display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.acct-strength-bar i { height: 4px; border-radius: 0px; background: var(--border-card); transition: background-color 0.2s; }
.acct-strength-txt { display: inline-flex; gap: 6px; font-size: 11.5px; color: var(--text-faint); white-space: nowrap; }
.acct-strength-txt b { font-weight: 700; color: var(--text-muted); }
.acct-strength[data-level="1"] .acct-strength-bar i:nth-child(1) { background: var(--status-danger); }
.acct-strength[data-level="2"] .acct-strength-bar i:nth-child(-n+2) { background: var(--status-warning); }
.acct-strength[data-level="3"] .acct-strength-bar i:nth-child(-n+3) { background: var(--status-online); }
.acct-strength[data-level="4"] .acct-strength-bar i { background: var(--status-online); }
.acct-strength[data-level="1"] .acct-strength-txt b { color: var(--status-danger); }
.acct-strength[data-level="2"] .acct-strength-txt b { color: var(--status-warning); }
.acct-strength[data-level="3"] .acct-strength-txt b,
.acct-strength[data-level="4"] .acct-strength-txt b { color: var(--status-online); }
.acct-hint { font-size: 11.5px; min-height: 16px; color: var(--text-faint); }
.acct-hint.ok { color: var(--status-online); }
.acct-hint.bad { color: var(--status-danger); }
.acct-check {
  display: flex; align-items: center; gap: 9px; padding: 10px 12px; margin: 2px 0 16px; border-radius: 0px;
  background: var(--bg-card-subtle); border: 1px solid var(--border-subtle);
  font-size: 12.5px; color: var(--text-secondary); cursor: pointer;
}
.acct-check input { width: 16px; height: 16px; accent-color: var(--accent); flex: none; margin: 0; }
.acct-actions { display: flex; justify-content: flex-end; gap: 10px; }
.acct-actions .mx-btn-s { min-height: 38px; padding: 8px 18px; font-size: 13px; }
.acct-actions .mx-btn-s .ic { width: 15px; height: 15px; }
.acct-actions .mx-btn-s.is-busy { opacity: 0.65; cursor: progress; }
#acct-pwd-form .acct-actions .mx-btn-s { width: 100%; justify-content: center; }
.acct-sec { padding: 16px; border-radius: 0px; border: 1px solid var(--border-subtle); background: var(--bg-card-subtle); }
.acct-sec + .acct-sec { margin-top: 14px; }
.acct-sec-title { display: flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 700; color: var(--text-primary); margin-bottom: 12px; }
.acct-sec-title .ic { width: 16px; height: 16px; color: var(--accent); }
.acct-sec .miya-input { background: var(--bg-input); }
.acct-cur {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 12px; margin-bottom: 14px;
  border-radius: 0px; background: var(--bg-card); border: 1px dashed var(--border-card); font-size: 12.5px; color: var(--text-muted);
}
.acct-cur b { font-family: var(--font-mono); font-size: 12.5px; color: var(--text-primary); overflow-wrap: anywhere; text-align: right; }
.acct-cur b.unbound { color: var(--status-warning); font-family: inherit; }
.acct-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.acct-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 10px; }
.acct-stat { display: flex; flex-direction: column; gap: 4px; padding: 10px 12px; border-radius: 0px; background: var(--bg-card); border: 1px solid var(--border-subtle); }
.acct-stat > span { font-size: 11.5px; color: var(--text-muted); }
.acct-stat > b { font-size: 15px; font-family: var(--font-mono); color: var(--text-primary); }
.acct-note { font-size: 12px; line-height: 1.6; color: var(--text-faint); margin: 0 0 12px; }
.mx-btn-s.acct-danger { color: var(--status-danger); border-color: rgba(239, 68, 68, 0.35); background: var(--status-danger-bg); }
.mx-btn-s.acct-danger:hover { color: #fff; background: var(--status-danger); border-color: var(--status-danger); }
@media (max-width: 560px) {
  .acct-grid2, .acct-stats { grid-template-columns: 1fr; }
  .acct-head { padding: 16px; }
  .acct-tabs { margin: 12px 16px 0; }
  .acct-body { padding: 16px; }
}
/* 根因修复：.generator-preview-input 自带 flex:1 1 340px，预览盒改为纵向 flex 后 340px 变成高度 → 预览盒被撑高 */
.cc2-gen .cc2-preview-box .generator-preview-input { flex: none; }
.cc2-gen .cc2-preview-box .cc2-preview-more { flex: none; }

/* ---------- v1.9.3：我的代理 · 备注列 / 购买时间排序 / 删除列 / 站内确认弹窗 ---------- */
.sp-table thead th:first-child, .sp-table tbody td:first-child { padding-left: 14px; }
.sp-table thead th:last-child, .sp-table tbody td:last-child { padding-right: 14px; }
.sp-table .sp-ip { display: inline-block; max-width: 100%; }
.sp-note-wrap {
  position: relative; display: flex; align-items: center; min-width: 0;
}
.sp-note-wrap > .ic {
  position: absolute; left: 8px; width: 13px; height: 13px; color: var(--text-faint); pointer-events: none; transition: color .15s;
}
.sp-note-input {
  width: 100%; min-width: 0; height: 30px; padding: 0 9px 0 26px !important;
  border: 1px dashed var(--border-card) !important; border-radius: 0px !important;
  background: transparent !important; color: var(--text-primary); font-size: 12.5px;
  box-shadow: none !important; outline: none;
  text-overflow: ellipsis; white-space: nowrap; overflow: hidden;
  transition: border-color .18s, box-shadow .25s, background .18s;
}
.sp-note-input::placeholder { color: var(--text-faint); opacity: 1; font-size: 12px; }
.sp-note-input:hover { border-style: solid !important; background: var(--bg-input) !important; }
.sp-note-input:focus {
  border-style: solid !important; border-color: var(--accent) !important; background: var(--bg-input) !important;
  box-shadow: 0 0 0 3px var(--accent-subtle) !important;
}
.sp-note-wrap:focus-within > .ic { color: var(--accent); }
.sp-note-input.is-saving { opacity: .7; }
.sp-note-input.is-saved {
  border-style: solid !important; border-color: #10b981 !important;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, .22), 0 0 12px rgba(16, 185, 129, .35) !important;
}
.sp-note-input.is-error { border-style: solid !important; border-color: var(--status-danger) !important; box-shadow: 0 0 0 3px rgba(239, 68, 68, .18) !important; }
.sp-bought { color: var(--text-secondary); }
.sp-th-sort { cursor: pointer; user-select: none; }
.sp-th-sort:hover, .sp-th-sort.is-sorted { color: var(--text-primary); }
.sp-th-sort:focus-visible { outline: none; box-shadow: inset 0 0 0 2px var(--accent); }
.sp-th-in { display: inline-flex; align-items: center; gap: 5px; }
.sp-sort-arrows { display: inline-flex; flex-direction: column; gap: 2px; }
.sp-sort-arrows i {
  width: 0; height: 0; border-left: 4px solid transparent; border-right: 4px solid transparent; opacity: .35;
}
.sp-sort-arrows i.up { border-bottom: 4px solid currentColor; }
.sp-sort-arrows i.down { border-top: 4px solid currentColor; }
.sp-sort-arrows i.on { opacity: 1; color: var(--accent); }
.sp-del-th, .sp-del-cell { text-align: center; }
.sp-del-btn, .mx-btn-s.sp-del-sel {
  color: var(--status-danger) !important; border-color: rgba(239, 68, 68, .38) !important; background: transparent !important;
}
.sp-del-btn { padding: 5px 11px; font-size: 12px; }
.sp-del-btn:hover, .mx-btn-s.sp-del-sel.is-armed:hover {
  color: #fff !important; background: var(--status-danger) !important; border-color: var(--status-danger) !important;
}
.mx-btn-s.sp-del-sel:not(.is-armed) { opacity: .6; }
.mx-btn-s.sp-del-sel.is-armed { background: var(--status-danger-bg) !important; }
.sp-confirm-card { max-width: 460px; }
.sp-confirm-card .modal-header h3 { display: flex; align-items: center; gap: 10px; }
.sp-confirm-ico {
  display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 0px;
  background: var(--accent-subtle); color: var(--accent);
}
.sp-confirm-card.is-danger .sp-confirm-ico { background: var(--status-danger-bg); color: var(--status-danger); }
.sp-confirm-ico .ic { width: 16px; height: 16px; }
.sp-confirm-msg { margin: 0; font-size: 13.5px; line-height: 1.7; color: var(--text-secondary); }
.sp-confirm-detail {
  margin: 12px 0 0; padding: 8px 10px; border-radius: 0px; background: var(--bg-card-subtle); border: 1px solid var(--border-subtle);
  font-family: var(--font-mono); font-size: 12px; color: var(--text-muted); word-break: break-word;
}
.sp-confirm-acts { display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px; }
.mx-btn-s.sp-btn-danger { color: #fff; background: var(--status-danger); border-color: var(--status-danger); }
.mx-btn-s.sp-btn-danger:hover { filter: brightness(1.08); color: #fff; }
/* 列多了：窄屏桌面（侧栏展开）改为横向滚动，不再裁掉右侧删除列 */
/* 11 列在 1440 宽下也要一屏放下（不横向滚动：表头是 sticky，外层 overflow 会让表头错位） */
.sp-table thead th, .sp-table tbody td { padding-left: 8px; padding-right: 8px; }
.sp-table thead th { white-space: normal; line-height: 1.3; }
.sp-table .sp-ops .sp-row-btn, .sp-table .sp-del-btn { padding: 5px 9px; }
.sp-table .sp-ops .sp-row-btn + .sp-row-btn { margin-left: 4px; }
.sp-table .sp-ip { font-size: 11px; }
/* 20261028v1：筛选 | 操作 | 搜索 三组；全部控件统一 36px 高。
   宽屏（工具栏 ≥ ~1420px）一行排开；较窄时两行：上「筛选 …… 搜索/删除/刷新」，下「格式 + 5 个操作」 */
.sp-toolbar { gap: 10px; flex-wrap: wrap; }
.sp-toolbar > .mx-toolbar-side,
.sp-toolbar > .sp-toolbar-actions { display: flex; align-items: center; gap: 8px; flex-wrap: nowrap; }
.sp-toolbar > .mx-toolbar-side:last-child { margin-left: auto; }
.sp-toolbar .mx-btn-s,
.sp-toolbar .mx-dd-trigger { box-sizing: border-box; height: 36px; min-height: 36px; padding: 0 11px; justify-content: center; }
.sp-toolbar .sp-search { box-sizing: border-box; height: 36px; }
.sp-toolbar .sp-search input { width: 150px; }
.sp-toolbar .mx-btn-s[data-sp="reload"] { width: 36px; padding: 0; }
.sp-toolbar .mx-filter-count { white-space: nowrap; }
/* 外语文案更长，1440 宽也放不下一行 → 始终两行 */
html:not([lang^="zh"]) .sp-toolbar .sp-search input { width: 168px; }
/* 20261103 重构：原先按「视口宽度」@media (max-width:1859px) 切两行，但内容区被 --content-max-w 锁在 1440，
   视口 ≥1860（2560 / 2993 屏）时工具栏仍只有 1440 宽，三组实测需 ~1472px → 第三组（搜索/删除/刷新）
   孤零零折到第二行右侧。改为按工具栏所在容器 .sp-page 的真实宽度（容器查询）切换：
   · 默认（容器 < 1420 或非中文）：结构化双层 —— 第一行「筛选+计数 …… 搜索/删除/刷新」两端对齐，
     第二行「格式 + 6 个操作」，带细分隔线；
   · 中文且容器 ≥ 1420：紧凑单行 nowrap，搜索框弹性收缩吸收余量，绝不意外折行。 */
.sp-page { container-type: inline-size; container-name: sp-page; }
.sp-toolbar > .sp-toolbar-actions { order: 3; flex: 1 0 100%; }
.sp-toolbar .sp-search input { width: 190px; }
@container sp-page (min-width: 701px) {
  .sp-toolbar > .sp-toolbar-actions {
    padding-top: 10px;
    border-top: 1px dashed var(--border-subtle);
  }
}
@container sp-page (max-width: 780px) {
  /* 平板宽度：第一行两组放不下时，搜索组整行铺满，不再半行悬空 */
  .sp-toolbar > .mx-toolbar-side:last-child { flex: 1 1 100%; }
  .sp-toolbar > .mx-toolbar-side:last-child .sp-search { flex: 1 1 auto; }
  .sp-toolbar > .mx-toolbar-side:last-child .sp-search input { width: 100%; min-width: 0; }
  .sp-toolbar > .sp-toolbar-actions { flex-wrap: wrap; }
}
@container sp-page (min-width: 1420px) {
  html[lang^="zh"] .sp-toolbar { flex-wrap: nowrap; gap: 6px; }
  html[lang^="zh"] .sp-toolbar > .mx-toolbar-side,
  html[lang^="zh"] .sp-toolbar > .sp-toolbar-actions { gap: 6px; }
  html[lang^="zh"] .sp-toolbar > .mx-toolbar-side:first-child,
  html[lang^="zh"] .sp-toolbar > .sp-toolbar-actions { flex: 0 0 auto; }
  html[lang^="zh"] .sp-toolbar > .sp-toolbar-actions { order: 0; padding-top: 0; border-top: 0; }
  html[lang^="zh"] .sp-toolbar > .mx-toolbar-side:last-child { flex: 0 1 auto; min-width: 0; }
  html[lang^="zh"] .sp-toolbar > .mx-toolbar-side:last-child .sp-search { flex: 0 1 auto; min-width: 0; }
  html[lang^="zh"] .sp-toolbar .sp-search input { width: clamp(110px, 12vw, 200px); min-width: 0; }
  html[lang^="zh"] .sp-toolbar .mx-btn-s:not([data-sp="reload"]),
  html[lang^="zh"] .sp-toolbar .mx-dd-trigger { padding: 0 10px; }
}
@media (max-width: 1100px) {
  .sp-toolbar > .mx-toolbar-side,
  .sp-toolbar > .sp-toolbar-actions { flex-wrap: wrap; }
}
@media (max-width: 700px) {
  .sp-note-cell .sp-note-wrap { width: 100%; }
  .sp-del-cell { justify-content: flex-end !important; }
}

/* 2026-10-29 Audit Fix: laptop table horizontal scroll & tablet header compact */
@media (max-width: 1439.98px) {
  .sp-page .mx-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .sp-page .mx-table thead th {
    position: static;
  }
}
@media (max-width: 1100px) {
  .header-link,
  .theme-toggle [data-theme-label] {
    display: none !important;
  }
}

/* =====================================================================
   v3.2 · 已购代理列表分页栏（.sp-pager）+ 逐单流量卡片（.tu-ord / .tu-unlimited）
   适配深色（Aurora Obsidian）与浅色（Ceramic SaaS）双主题
   ===================================================================== */
.sp-pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin-top: 12px;
  padding: 10px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.sp-pager[hidden] {
  display: none !important;
}
.sp-pg-info {
  font-size: 12.5px;
  color: var(--text-secondary);
  font-weight: 500;
  white-space: nowrap;
}
.sp-pg-sizes {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border-radius: 0px;
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-subtle);
}
.sp-pg-size {
  appearance: none;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  height: 28px;
  padding: 0 10px;
  border-radius: 0px;
  cursor: pointer;
  white-space: nowrap;
  transition: color var(--transition-fast), background var(--transition-fast), border-color var(--transition-fast);
}
.sp-pg-size:hover {
  color: var(--text-primary);
  background: var(--bg-card-hover);
}
.sp-pg-size.is-active {
  color: var(--accent);
  background: var(--accent-subtle);
  border-color: var(--accent-border);
}
.sp-pg-size:focus-visible,
.sp-pg-btn:focus-visible,
.sp-pg-num:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring, 0 0 0 3px var(--accent-subtle));
}
.sp-pg-nav {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.sp-pg-btn,
.sp-pg-num {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 32px;
  min-width: 32px;
  padding: 0 10px;
  border-radius: 0px;
  border: 1px solid var(--border-card);
  background: var(--bg-card-subtle);
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
  transition: color var(--transition-fast), background var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
}
.sp-pg-num {
  padding: 0 8px;
  font-family: var(--font-mono);
}
.sp-pg-btn:hover:not(:disabled),
.sp-pg-num:hover:not(.is-active) {
  color: var(--text-primary);
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
}
.sp-pg-num.is-active {
  color: #fff;
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 2px 8px -2px rgba(249, 115, 22, 0.45);
}
.sp-pg-btn:disabled {
  opacity: 0.42;
  cursor: not-allowed;
}
.sp-pg-btn .ic {
  width: 14px;
  height: 14px;
  flex: none;
}
.sp-pg-btn.is-prev .ic {
  transform: rotate(90deg);
}
.sp-pg-btn.is-next .ic {
  transform: rotate(-90deg);
}
.sp-pg-gap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 32px;
  color: var(--text-faint);
  font-size: 12.5px;
  user-select: none;
}
@media (max-width: 760px) {
  .sp-pager {
    padding: 10px 12px;
    gap: 8px 10px;
  }
  .sp-pg-info {
    flex: 1 1 auto;
  }
  .sp-pg-nav {
    flex: 1 1 100%;
    justify-content: flex-end;
  }
}

/* ---------- v3.2：流量用量卡片（无限流量态 / 单笔订单 / 多笔订单独立分列） ---------- */
.tu-card {
  display: flex;
  flex-direction: column;
}
.tu-card .tu-foot {
  margin-top: auto;
}
.tu-card .tu-foot b {
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-weight: 700;
}
.tu-status-sum {
  display: inline-flex;
  align-items: center;
  padding: 2px 10px;
  border-radius: 0px;
  background: var(--accent-subtle);
  border: 1px solid var(--accent-border);
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
}
.tu-unlimited .tu-unl-body {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  margin-top: 2px;
  border-radius: 0px;
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-subtle);
}
.tu-unl-mark {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 0px;
  background: var(--status-online-bg);
  border: 1px solid rgba(16, 185, 129, 0.28);
  color: var(--status-online);
  font-size: 24px;
  font-weight: 700;
  line-height: 1;
}
.tu-unl-txt {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.tu-unl-txt strong {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-primary);
}
.tu-unl-txt span {
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--text-secondary);
}
.tu-ord-line {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 10px;
  font-size: 12.5px;
  color: var(--text-secondary);
}
.tu-ord-single {
  padding: 9px 12px;
  margin-bottom: 12px;
  border-radius: 0px;
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-subtle);
}
.tu-ord-tag {
  display: inline-flex;
  align-items: center;
  padding: 1px 7px;
  border-radius: 0px;
  background: var(--accent-subtle);
  border: 1px solid var(--accent-border);
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.tu-ord-id {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--text-primary);
  padding: 1px 7px;
  border-radius: 0px;
  background: var(--bg-code);
  border: 1px solid var(--border-subtle);
}
.tu-ord-plan {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  color: var(--text-primary);
}
.tu-ord-plan b {
  color: var(--accent);
  font-family: var(--font-mono);
  font-weight: 700;
}
.tu-ord-net {
  display: inline-flex;
  align-items: center;
  padding: 1px 7px;
  border-radius: 0px;
  background: var(--bg-card-hover);
  border: 1px solid var(--border-card);
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 600;
}
.tu-ord-ports {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--text-muted);
  font-size: 12px;
}
.tu-ord-ports code {
  padding: 1px 6px;
  border-radius: 0px;
  background: var(--bg-code);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 11px;
}
.tu-ord-exp {
  margin-left: auto;
  color: var(--text-muted);
  font-size: 12px;
  white-space: nowrap;
}
.tu-ord-exp b {
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-weight: 600;
}
.tu-ord-state {
  margin-left: auto;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}
.tu-orders {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 14px;
  margin-bottom: 14px;
  max-height: 360px;
  overflow-y: auto;
  padding-right: 2px;
}
.tu-ord {
  padding: 11px 13px;
  border-radius: 0px;
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-card);
  transition: border-color var(--transition-fast);
}
.tu-ord:hover {
  border-color: var(--border-hover);
}
.tu-ord.is-exhausted {
  border-color: rgba(239, 68, 68, 0.42);
  background: var(--status-danger-bg);
}
.tu-bar-sm {
  height: 6px;
  margin: 8px 0;
}
.tu-ord-nums {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px 14px;
  font-size: 12px;
  color: var(--text-muted);
}
.tu-ord-nums b {
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-weight: 700;
}
.tu-ord-nums b.accent {
  color: var(--accent);
}
@media (max-width: 640px) {
  .tu-ord-exp,
  .tu-ord-state {
    margin-left: 0;
  }
}


/* =====================================================================
   motion-web 动效层 · 代理控制台（2026-10-30）
   只叠加视觉；回滚：删除本段 + index.html 的 motion-fx.js 引用
   ① 重定义 --transition-fast：全站 68 处 var(--transition-fast) 由「150ms ease」统一升级为物理曲线
   ② 页面切换入场沿用既有 .mx-page-enter（每次路由切换由 app.js 触发），这里只把它改成分层交错
   ③ 仅动 transform / opacity；弹窗开合用 @starting-style + allow-discrete，零 JS 改动
   ===================================================================== */
:root, [data-theme] {
  --ease-out-expo: cubic-bezier(.16, 1, .3, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
  --ease-snappy: cubic-bezier(.22, 1, .36, 1);
  --ease-in-expo: cubic-bezier(.7, 0, .84, 0);
  --spring-soft: linear(0, .32 8%, .79 20%, 1.03 30%, 1.01 46%, 1);
  --dur-press: 90ms; --dur-fast: 180ms; --dur-std: 320ms; --dur-med: 460ms; --dur-slow: 700ms;
  --transition-fast: 180ms cubic-bezier(.22, 1, .36, 1);
  --mw-lift: 0 1px 0 rgba(255, 255, 255, .05) inset, 0 2px 4px rgba(0, 0, 0, .32), 0 14px 28px -14px rgba(0, 0, 0, .64), 0 14px 28px -20px rgba(223, 126, 62, .38);
}
[data-theme="light"] { --mw-lift: 0 1px 0 #fff inset, 0 2px 6px rgba(68, 46, 26, .05), 0 14px 30px -14px rgba(140, 82, 38, .18), 0 14px 28px -22px rgba(184, 90, 36, .24); }

/* ---- 1. 路由入场：页头 → KPI → 工具栏 → 表格，逐层交错（替换原来所有子块同时 fade-up） ---- */
@keyframes mwRise { from { opacity: 0; transform: translateY(14px); } }
@keyframes mwKpiIn { from { opacity: 0; transform: translateY(10px) scale(.965); } }
.mx-page-enter > * { animation: pageFadeUp 520ms var(--ease-out-expo) both; }
.mx-page-enter > .mx-page > *, .mx-page-enter > .mx-aurora > * { animation: mwRise 620ms var(--ease-out-expo) both; }
.mx-page-enter > .mx-page > :nth-child(2), .mx-page-enter > .mx-aurora > :nth-child(2) { animation-delay: 70ms; }
.mx-page-enter > .mx-page > :nth-child(3), .mx-page-enter > .mx-aurora > :nth-child(3) { animation-delay: 140ms; }
.mx-page-enter > .mx-page > :nth-child(4), .mx-page-enter > .mx-aurora > :nth-child(4) { animation-delay: 200ms; }
.mx-page-enter > .mx-page > :nth-child(n+5), .mx-page-enter > .mx-aurora > :nth-child(n+5) { animation-delay: 250ms; }
.mx-page-enter .cc2-kpis .mx-summary-cell { animation: mwKpiIn 560ms var(--ease-spring) both; }
.mx-page-enter .cc2-kpis .mx-summary-cell:nth-child(1) { animation-delay: 110ms; }
.mx-page-enter .cc2-kpis .mx-summary-cell:nth-child(2) { animation-delay: 160ms; }
.mx-page-enter .cc2-kpis .mx-summary-cell:nth-child(3) { animation-delay: 210ms; }
.mx-page-enter .cc2-kpis .mx-summary-cell:nth-child(4) { animation-delay: 260ms; }
.mx-page-enter .mx-hero-copy > * { animation: mwRise 700ms var(--ease-out-expo) both; }
.mx-page-enter .mx-hero-copy > :nth-child(2) { animation-delay: 90ms; }
.mx-page-enter .mx-hero-copy > :nth-child(3) { animation-delay: 170ms; }
.mx-page-enter .mx-hero-copy > :nth-child(4) { animation-delay: 240ms; }
.mx-page-enter .mx-hero-copy > :nth-child(n+5) { animation-delay: 300ms; }
@keyframes mwMockIn { from { opacity: 0; transform: translateY(18px) rotate(-1.2deg) scale(.97); } }
.mx-page-enter .mx-mock { animation: mwMockIn 900ms var(--ease-out-expo) 160ms both; }
/* 数据行不做入场：paintRows() 在勾选 / 翻页 / 搜索时整体重绘 tbody，入场会随每次操作重播（已实测代码路径） */

/* ---- 2. KPI 指标卡：物理抬升 + 光斑 + 图标弹簧 ---- */
.cc2-kpis .mx-summary-cell { position: relative; isolation: isolate; transition: transform var(--dur-std) var(--spring-soft), border-color var(--dur-fast) var(--ease-snappy), box-shadow var(--dur-std) var(--ease-out-expo); }
.cc2-kpis .mx-summary-cell::before { content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: -1; pointer-events: none; opacity: 0; background: radial-gradient(200px circle at var(--mw-x, 80%) var(--mw-y, 0%), rgba(249, 115, 22, .12), transparent 65%); transition: opacity var(--dur-std) var(--ease-out-expo); }
.cc2-kpis .mx-summary-cell.is-clickable:hover { transform: translateY(-3px); box-shadow: var(--mw-lift); }
.cc2-kpis .mx-summary-cell.is-clickable:hover::before { opacity: 1; }
.cc2-kpis .mx-summary-cell.is-clickable:active { transform: translateY(-1px) scale(.985); transition-duration: var(--dur-press); }
.cc2-kpis .cc2-kpi-ico { transition: transform var(--dur-med) var(--ease-spring), color var(--dur-fast) linear; }
.cc2-kpis .mx-summary-cell.is-clickable:hover .cc2-kpi-ico { transform: translateY(-2px) rotate(-8deg) scale(1.12); }
.cc2-kpis .mx-summary-cell.is-clickable:hover .cc2-kpi-ico .ic { color: var(--accent); }

/* ---- 3. 代理表格行：不抬升（数据密集区禁止 B1 式统一抬升），改为左缘强调条 + 端口号微位移 ---- */
.mx-table tbody tr td:first-child { box-shadow: inset 0 0 0 transparent; transition: box-shadow var(--dur-fast) var(--ease-snappy), background-color var(--dur-fast) linear; }
.mx-table tbody tr:hover td:first-child { box-shadow: inset 3px 0 0 var(--accent); }
.mx-table .sp-port { display: inline-block; transition: transform var(--dur-std) var(--spring-soft), color var(--dur-fast) linear; }
.mx-table tbody tr:hover .sp-port { transform: translateX(3px); color: var(--accent); }

/* 在线绿灯：柔和呼吸脉冲（伪元素 transform + opacity，合成层完成） */
@keyframes mwPing { 0% { transform: scale(1); opacity: .6; } 70%, 100% { transform: scale(3); opacity: 0; } }
.mx-badge.green .dot, .badge-online .dot { position: relative; }
.mx-badge.green .dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: currentColor; animation: mwPing 2.4s var(--ease-out-expo) infinite; pointer-events: none; }
.mx-table tbody tr:nth-child(3n+2) .mx-badge.green .dot::after { animation-delay: .8s; }
.mx-table tbody tr:nth-child(3n) .mx-badge.green .dot::after { animation-delay: 1.6s; }

/* ---- 4. 导航 / Tab / 筛选 / 复制：弹簧微交互 ---- */
.nav-item .ic, .nav-item svg { transition: transform var(--dur-med) var(--ease-spring); }
.nav-item:hover .ic, .nav-item:hover svg { transform: translateX(2px) scale(1.08); }
.nav-item:active { transform: scale(.97); transition-duration: var(--dur-press); }
@keyframes mwTabOn { 0% { transform: scale(.92); } 60% { transform: scale(1.04); } 100% { transform: scale(1); } }
.mx-tab.active, .tab-pill.active, .nav-item.active { animation: mwTabOn 420ms var(--ease-out-expo); }
.mx-btn-s, .mx-btn, .mx-dd-trigger, .icon-btn, .theme-toggle, .header-btn {
  transition: transform 420ms var(--spring-soft), background-color var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast), box-shadow var(--dur-std) var(--ease-out-expo), opacity var(--transition-fast);
}
.mx-btn-s:active:not(:disabled), .mx-btn:active, .mx-dd-trigger:active, .icon-btn:active, .theme-toggle:active, .header-btn:active { transform: scale(.955); transition-duration: var(--dur-press); transition-timing-function: var(--ease-snappy); }
.mx-btn-s[data-act="copy"] .ic { transition: transform var(--dur-med) var(--ease-spring); }
.mx-btn-s[data-act="copy"]:hover .ic { transform: translateY(-1px) rotate(-8deg); }
.mx-btn-primary { box-shadow: var(--cta-shadow); }
.mx-btn-primary:hover { transform: translateY(-1px); background: var(--accent-gradient-hover); box-shadow: var(--cta-hover-shadow); }
.mx-dd-panel { transition: opacity 200ms var(--ease-out-expo), transform 360ms var(--ease-spring) !important; transform-origin: top center; }

/* ---- 5. 弹窗：物理阻尼缩放开合（.hidden 切 display，靠 allow-discrete 让关闭也有过渡） ---- */
.miya-modal-backdrop { opacity: 1; transition: opacity 240ms var(--ease-out-expo), display 240ms allow-discrete, overlay 240ms allow-discrete; }
.miya-modal-backdrop.hidden { opacity: 0; pointer-events: none; }
@starting-style { .miya-modal-backdrop { opacity: 0; } }
.miya-modal-card { transition: transform 460ms var(--ease-spring), opacity 260ms var(--ease-out-expo); }
.miya-modal-backdrop.hidden .miya-modal-card { transform: translateY(8px) scale(.94); opacity: 0; transition-duration: 200ms; transition-timing-function: var(--ease-in-expo); }
@starting-style { .miya-modal-backdrop .miya-modal-card { transform: translateY(12px) scale(.94); opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  .mx-badge .dot::after, .mx-tab.active, .tab-pill.active, .nav-item.active { animation: none !important; }
  .cc2-kpis .mx-summary-cell.is-clickable:hover, .mx-table tbody tr:hover .sp-port { transform: none; }
  .miya-modal-card, .miya-modal-backdrop { transition: none !important; }
}

/* =====================================================================
   v3.3 · 方案 A 家族美学统一层（暖羊绒米白 / 深邃暖曜石 · 琥珀焦糖渐变 · 0.00px 对称）
   ===================================================================== */

/* 1. 应用背景渐变、温润象牙侧栏与毛玻璃顶栏 */
.miya-layout {
  background-color: transparent;
}
.miya-main {
  background-color: transparent;
}
.miya-sidebar {
  background-color: var(--bg-sidebar);
  border-right: 1px solid var(--border-subtle);
}
[data-theme="light"] .miya-sidebar {
  box-shadow: 1px 0 0 rgba(255, 255, 255, 0.8), 6px 0 24px -18px rgba(68, 46, 26, 0.08);
}
.logo-mark {
  color: var(--accent);
}
.miya-header {
  background: var(--bg-header);
  border-bottom: 1px solid var(--border-subtle);
  backdrop-filter: saturate(160%) blur(16px);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  padding: 0 24px;
  gap: 14px;
}
.header-left {
  gap: 14px;
  min-width: 0;
}
.header-left .page-title {
  white-space: nowrap;
}
.header-right {
  gap: 10px;
  flex-shrink: 0;
}

/* 2. 顶栏家族导航胶囊组 (.tb-eco) */
.tb-eco {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px;
  margin-left: 4px;
  border-radius: 0px;
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-card);
}
.tb-eco-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 30px;
  padding: 0 11px;
  border-radius: 0px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-secondary);
  text-decoration: none !important;
  white-space: nowrap;
  border: 1px solid transparent;
  transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease;
}
.tb-eco-link:hover {
  background: var(--bg-card);
  color: var(--text-primary);
  text-decoration: none !important;
}
.tb-eco-link.is-current {
  background: var(--selected-bg);
  border-color: var(--selected-border);
  color: var(--text-primary);
  box-shadow: 0 2px 8px -3px rgba(212, 118, 59, 0.25);
  cursor: default;
}
[data-theme="light"] .tb-eco-link.is-current {
  color: var(--accent-ink);
}
.eco-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex: none;
}
.eco-dot.store { background: #F97316; }
.eco-dot.ip {
  background: #38BDF8;
  box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.22);
}
.eco-dot.sms { background: #34D399; }
.eco-dot.mail { background: #FACC15; }
.eco-dot.ai, .tb-eco-link[data-site="ai"] .eco-dot { background: #A855F7; }
.eco-dot.cast, .tb-eco-link[data-site="cast"] .eco-dot { background: #FB7185; }
.eco-dot.radar, .tb-eco-link[data-site="radar"] .eco-dot { background: #B5541E; }
.tb-eco-link .eco-arr {
  display: none !important;
}
@media (max-width: 1240px) {
  .header-link span[data-i18n="feedback"] { display: none; }
}

/* 3. 全站主行动按钮统一换装低饱和琥珀焦糖渐变 */
.btn-recharge,
.mx-btn-primary,
.mx-btn-s.primary,
.btn-add-cart,
.btn-checkout-now,
.mx-co-btn:not(:disabled),
.admin-btn-primary {
  background: var(--accent-gradient) !important;
  color: #FFFFFF !important;
  border-color: transparent !important;
  box-shadow: var(--cta-shadow);
}
.btn-recharge:hover:not(:disabled),
.mx-btn-primary:hover:not(:disabled),
.mx-btn-s.primary:hover:not(:disabled),
.btn-add-cart:hover:not(:disabled),
.btn-checkout-now:hover:not(:disabled),
.mx-co-btn:hover:not(:disabled),
.admin-btn-primary:hover:not(:disabled) {
  background: var(--accent-gradient-hover) !important;
  color: #FFFFFF !important;
  border-color: transparent !important;
  box-shadow: var(--cta-hover-shadow);
  opacity: 1;
}

/* 4. 侧栏激活项 & 套餐选购选中卡：暖杏金渐变底纹 + 亮琥珀描边 + 左缘 3px 渐变指示条（上下内缩避开圆角零突刺） */
.nav-item,
.sub-item {
  position: relative;
  border: 1px solid transparent;
}
.nav-item.active,
.sub-item.active {
  background: var(--selected-bg);
  border-color: var(--accent-border);
  color: var(--accent-ink);
  font-weight: 650;
}
[data-theme="dark"] .nav-item.active,
[data-theme="dark"] .sub-item.active {
  color: #F7CFA8;
}
.nav-item.active .nav-icon {
  color: var(--accent);
}
.nav-item.active::after,
.sub-item.active::after {
  content: "";
  position: absolute;
  left: 3px;
  top: 7px;
  bottom: 7px;
  width: 3px;
  border-radius: 0px;
  background: var(--energy-bar);
  box-shadow: var(--energy-glow);
  pointer-events: none;
}
[data-sidebar="collapsed"] .nav-item.active::after {
  left: 2px;
  top: 9px;
  bottom: 9px;
}

.region-select-card,
.region-select-card.region-card-xl,
.net-type-card,
.line-select-card,
.bill-mode-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
}
[data-theme="light"] .wizard-step-card .region-select-card:not(.active):not(.is-soon),
[data-theme="light"] .wizard-step-card .net-type-card:not(.active):not(.disabled),
[data-theme="light"] .wizard-step-card .line-select-card:not(.active),
[data-theme="light"] .wizard-step-card .bill-mode-card:not(.active) {
  background: linear-gradient(180deg, #FFFFFF 0%, #FAF7F2 100%);
}
.region-select-card.active,
.region-select-card.region-card-xl.active,
.net-type-card.active,
.line-select-card.active,
.bill-mode-card.active {
  background: var(--selected-bg) !important;
  border-color: var(--selected-border) !important;
  box-shadow: var(--selected-shadow);
}
.region-select-card.active::before,
.region-select-card.region-card-xl.active::before,
.net-type-card.active::before,
.line-select-card.active::before,
.bill-mode-card.active::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 10px;
  bottom: 10px;
  width: 3px;
  border-radius: 0px;
  background: var(--energy-bar);
  box-shadow: var(--energy-glow);
  pointer-events: none;
}
.region-card-xl .region-check-tick {
  background: var(--accent-gradient);
  box-shadow: 0 2px 6px rgba(184, 90, 36, 0.32);
}

/* 5. 同级板块严格对称对齐（同行卡片高度与顶底边缘 0.00px 误差） */
.mx-summary-bar.cc2-kpis {
  display: grid;
  align-items: stretch;
}
.cc2-kpis .mx-summary-cell {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.cc2-kpis .mx-summary-cell::before {
  background: radial-gradient(200px circle at var(--mw-x, 80%) var(--mw-y, 0%), var(--accent-subtle), transparent 66%);
}

.mx-stats-grid {
  align-items: stretch;
}
.mx-stats-grid > .mx-stat {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.mx-bento {
  align-items: stretch;
}
.mx-bento > .mx-card {
  height: 100%;
  display: flex;
  flex-direction: column;
}
.mx-bento > .mx-card .mx-dlist,
.mx-bento > .mx-card .cc2-uptime,
.mx-bento > .mx-card .mx-chips {
  margin-top: auto;
}

/* #/buy 套餐地区选购卡：宽屏 3 列、常规桌面双栏工作区 2 列对称矩阵、手机端 1 列，同行 100% 等高 */
.region-cards-grid.region-cards-duo.region-cards-trio {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
}
.region-cards-trio .region-select-card.region-card-xl {
  height: 100%;
  display: flex;
  flex-direction: column;
}
.region-cards-trio .region-select-card.region-card-xl .region-desc {
  margin-top: auto;
}
@container region-step (max-width: 740px) {
  .region-cards-grid.region-cards-duo.region-cards-trio {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .region-cards-trio .region-select-card.region-card-xl {
    min-height: 136px;
  }
}
@container region-step (max-width: 460px) {
  .region-cards-grid.region-cards-duo.region-cards-trio {
    grid-template-columns: 1fr;
  }
  .region-cards-trio .region-select-card.region-card-xl {
    min-height: 0;
  }
}
.network-type-grid,
.line-cards-grid,
.billing-mode-grid {
  align-items: stretch;
}
.network-type-grid > .net-type-card,
.line-cards-grid > .line-select-card,
.billing-mode-grid > .bill-mode-card {
  height: 100%;
}

/* =====================================================================
   v3.4 · 手机浏览器全方位精修（2026-10-31 串行第 2 棒 · 桌面端 0 侵入）
   1. 导出预览弹窗（BitBrowser / AdsPower / GoLogin / Dolphin{anty}）全视口通用基础样式
   2. ≤1120px / ≤768px 双层对称顶栏 + 等宽生态导航（.tb-eco）+ sticky 偏移自适应
   3. ≤768px 核心业务表格（已购代理 / 订单历史 / 资金流水 / 白名单）工整对称卡片化（彻底解除 899.98px 横滑覆盖）
   4. ≤768px 总览页、套餐选购页（双列国家网格 + 机房/ISP 双列切换 + 3 档阶梯价对称卡 + 快捷胶囊网格）、登录注册与弹窗适配
   5. ≤768px 全站 input / select / textarea 字号强制 >= 16px，根治 iOS Safari 点击放大
   ===================================================================== */

/* ---- 0. 批量导出与格式预览弹窗（桌面 + 移动通用） ---- */
.sp-export-card .modal-header h3 {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.sp-export-card .modal-header h3 .ic {
  width: 18px;
  height: 18px;
  color: var(--accent);
}
.sp-export-sub {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0 0 12px;
  line-height: 1.55;
}
.sp-export-sub b {
  color: var(--accent);
  font-family: var(--font-mono);
  font-weight: 700;
}
.sp-exp-fmts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}
.sp-exp-fmt {
  appearance: none;
  height: 34px;
  padding: 0 12px;
  border-radius: 0px;
  border: 1px solid var(--border-card);
  background: var(--bg-card-subtle);
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: color 160ms ease, background-color 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}
.sp-exp-fmt:hover {
  color: var(--text-primary);
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
}
.sp-exp-fmt.is-active {
  background: var(--selected-bg);
  border-color: var(--selected-border);
  color: var(--accent-ink);
  box-shadow: var(--selected-shadow);
}
[data-theme="dark"] .sp-exp-fmt.is-active {
  color: #F7CFA8;
}
.sp-export-ta {
  display: block;
  width: 100%;
  min-height: 146px;
  padding: 12px 14px;
  border-radius: 0px;
  border: 1px solid var(--border-card);
  background: var(--bg-code);
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.65;
  resize: vertical;
  outline: none;
}
.sp-export-ta:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-subtle);
}
.sp-export-acts {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 14px;
}
.sp-export-acts .mx-btn-s {
  min-height: 40px;
  padding: 0 16px;
}

/* ---- 1. ≤1120px 双层对称顶栏 + 生态导航 + sticky 偏移同步 ---- */
@media (max-width: 1120px) {
  .miya-main {
    --header-h: 98px;
  }
  .miya-header {
    height: auto !important;
    min-height: 0;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    row-gap: 8px;
    column-gap: 0;
    padding: 10px 16px !important;
  }
  .miya-header .header-left {
    display: contents;
  }
  .miya-header .sidebar-toggle-inline {
    order: 1;
    flex: 0 0 auto;
    margin-right: 8px;
  }
  .miya-header .page-title {
    order: 1;
    flex: 1 1 0%;
    min-width: 0;
    margin-right: 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .miya-header .header-right {
    order: 2;
    flex: 0 0 auto;
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
  }
  .miya-header .tb-eco {
    order: 3;
    flex: 0 0 100%;
    width: 100%;
    margin: 0;
    box-sizing: border-box;
    display: grid !important;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 4px;
    padding: 3px;
    border-radius: 0px;
  }
  .miya-header .tb-eco-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    width: 100%;
    height: 32px;
    padding: 0 6px;
    border-radius: 0px;
    text-align: center;
  }
  .miya-header .tb-eco-link > span:not(.eco-dot) {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

/* ---- 2. ≤1024px 侧边抽屉安全区与顺滑适配 ---- */
@media (max-width: 1024px) {
  .miya-sidebar {
    width: min(276px, calc(100vw - 48px));
    max-width: calc(100vw - 48px);
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }
  .miya-sidebar .sidebar-nav {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .miya-sidebar .sidebar-footer {
    padding-bottom: calc(14px + env(safe-area-inset-bottom, 0px));
  }
  .miya-sidebar .nav-item,
  .miya-sidebar .nav-group-header,
  .miya-sidebar .sub-item {
    min-height: 42px;
  }
}

/* ---- 3. ≤768px 手机浏览器全方位精修 ---- */
@media (max-width: 768px) {
  /* 3.1 根治 iOS Safari 点击输入控件自动放大：所有输入控件计算后字号强制 >= 16px */
  html body input:not([type="checkbox"]):not([type="radio"]):not([type="range"]),
  html body select,
  html body textarea,
  .mx-input,
  .miya-input,
  .sp-note-input,
  .sp-search input,
  .stepper-input,
  .sp-export-ta,
  .generator-preview-input {
    font-size: 16px !important;
  }

  /* 3.2 顶栏第 1 行严格等高 32px 不折行 + 第 2 行导航胶囊严格对称 */
  .miya-main {
    --header-h: 92px;
  }
  .miya-header {
    padding: 8px 12px !important;
    row-gap: 7px;
  }
  .miya-header .sidebar-toggle-inline {
    width: 32px !important;
    height: 32px !important;
    border-radius: 0px;
    margin-right: 8px;
  }
  .miya-header .page-title {
    font-size: 15px !important;
    font-weight: 750;
    line-height: 32px;
    margin-right: 6px;
  }
  .miya-header .header-right {
    gap: 5px !important;
  }
  /* 余额胶囊本身直通 #/billings，手机端隐藏重复的独立充值按钮与反馈链接，确保 375px 下第 1 行永不挤压折行 */
  .miya-header .header-link,
  .miya-header #btn-header-recharge {
    display: none !important;
  }
  .miya-header .wallet-pill,
  #header-wallet-pill.wallet-pill {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    height: 32px !important;
    padding: 0 9px !important;
    border-radius: 0px;
    gap: 4px !important;
    font-size: 12px !important;
    flex-shrink: 0;
  }
  .miya-header .wallet-pill > span[data-i18n="balance"] {
    display: none !important;
  }
  .miya-header .wallet-pill .wallet-icon {
    display: inline-grid !important;
    place-items: center;
    color: var(--accent);
  }
  .miya-header .wallet-pill .wallet-icon .ic {
    width: 14px;
    height: 14px;
  }
  .miya-header .wallet-pill strong {
    font-size: 12px !important;
    margin-left: 0 !important;
    font-variant-numeric: tabular-nums;
  }
  .miya-header .lang-btn,
  .miya-header .theme-toggle {
    width: 32px !important;
    height: 32px !important;
    padding: 0 !important;
    border-radius: 0px;
    display: inline-grid !important;
    place-items: center;
    flex-shrink: 0;
  }
  .miya-header .lang-current,
  .miya-header .lang-caret,
  .miya-header .theme-toggle [data-theme-label],
  .miya-header .theme-toggle .theme-label {
    display: none !important;
  }
  .miya-header .user-avatar {
    width: 32px !important;
    height: 32px !important;
    font-size: 11.5px !important;
    display: inline-grid !important;
    place-items: center;
    flex-shrink: 0;
  }
  .miya-header .lang-menu {
    right: -36px;
    left: auto;
    min-width: 156px;
    max-width: calc(100vw - 24px);
    z-index: 920;
  }
  .miya-header .tb-eco {
    gap: 2px;
    padding: 3px;
  }
  .miya-header .tb-eco-link {
    height: 32px;
    font-size: 11.5px;
    gap: 2.5px;
    padding: 0 2px;
  }
  .miya-header .tb-eco-link .eco-dot {
    width: 5px;
    height: 5px;
  }
  .miya-header .tb-eco-link .eco-arr {
    display: none !important;
  }
  html:not([lang^="zh"]) .miya-header .tb-eco-link {
    font-size: 10.2px;
    gap: 2px;
    padding: 0 1.5px;
  }
  html {
    scrollbar-gutter: auto;
    overflow-y: auto;
  }

  /* 3.3 主内容容器对称留白与防溢出 */
  .miya-content {
    padding: 16px 12px calc(32px + env(safe-area-inset-bottom, 0px)) !important;
    max-width: 100%;
    overflow-x: clip;
  }
  .mx-page,
  .mx-aurora {
    max-width: 100%;
    min-width: 0;
  }

  /* 3.4 统计卡统一 2×2 / 2×3 严格对称等高网格 */
  .mx-stats-grid,
  .mx-summary-bar.cc2-kpis {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    grid-auto-rows: 1fr;
    align-items: stretch;
    gap: 10px !important;
  }
  .mx-summary-bar:not(.cc2-kpis) {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    grid-auto-rows: 1fr;
    gap: 1px;
  }
  .mx-stats-grid > .mx-stat,
  .cc2-kpis > .mx-summary-cell,
  .mx-summary-bar > .mx-summary-cell {
    height: 100%;
    min-width: 0;
    padding: 13px 14px;
  }
  .cc2-kpis .mx-summary-val,
  .mx-stats-grid .mx-stat-val {
    font-size: 21px;
  }

  /* 3.5 总览页（Overview）：双 CTA 等宽对称 + 暖金特性铭牌带对齐 + 模拟终端防溢出 */
  .mx-hero {
    gap: 18px;
  }
  .mx-cta-row {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    width: 100%;
  }
  .mx-cta-row .mx-btn {
    width: 100%;
    min-height: 44px;
    padding: 0 10px;
    font-size: 13.5px;
    justify-content: center;
    text-align: center;
    white-space: nowrap;
  }
  .mx-hero-ribbon {
    display: flex !important;
    flex-direction: column;
    width: 100%;
  }
  .mx-hero-ribbon li {
    width: 100%;
    min-height: 42px;
    padding: 10px 14px;
    white-space: normal;
  }
  .mx-hero-ribbon li + li {
    border-left: 0;
    border-top: 1px solid var(--rb-line);
  }
  .mx-mock {
    padding: 15px 14px;
    min-width: 0;
  }
  .mx-mock-bar {
    flex-wrap: nowrap;
    min-width: 0;
  }
  .mx-mock-bar > span:not(.cc2-live) {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
  }
  .mx-mock-row {
    gap: 8px;
    font-size: 12.5px;
  }
  .mx-mock-row > span:first-child {
    min-width: 0;
    line-height: 1.4;
  }
  .mx-mock-row .mx-pill {
    flex-shrink: 0;
  }
  .mx-cta-box.cc2-cta {
    padding: 22px 18px;
    gap: 16px;
    align-items: stretch;
  }
  .mx-cta-box.cc2-cta .cc2-cta-btn {
    width: 100%;
    min-height: 44px;
    justify-content: center;
  }

  /* 3.6 套餐选购页（#/buy）：双列对称国家网格 + 双列机房/ISP 切换 + 3 档阶梯价卡片 + 快捷数量对称网格 */
  .wizard-step-card {
    padding: 16px 14px;
  }
  .region-cards-grid.region-cards-duo.region-cards-trio {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    grid-auto-rows: 1fr;
    gap: 10px !important;
    align-items: stretch;
  }
  .region-cards-trio .region-select-card.region-card-xl {
    min-height: 112px !important;
    padding: 12px 11px !important;
    gap: 7px;
  }
  .region-cards-trio .region-select-card.region-card-xl:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    min-height: 92px !important;
  }
  .region-cards-trio .region-card-top {
    gap: 7px;
    padding-right: 0;
  }
  .region-cards-trio .region-select-card.active .region-card-top {
    padding-right: 22px;
  }
  .region-cards-trio .region-flag-lg {
    width: 28px !important;
    height: 19px !important;
    flex: none;
  }
  .region-cards-trio .region-badge {
    font-size: 10.5px;
    padding: 3px 7px;
    line-height: 1.35;
    max-width: 100%;
  }
  .region-cards-trio .region-desc {
    font-size: 11.5px;
    line-height: 1.4;
  }

  /* 机房 / 原生 ISP 双列对称等高切换 */
  .network-type-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    grid-auto-rows: 1fr;
    gap: 10px;
  }
  .network-type-grid > .net-type-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 12px;
    min-height: 88px;
  }
  .line-select-card {
    min-height: 46px;
  }
  .bill-mode-card {
    padding: 13px 14px;
  }

  /* 第 05 步：快捷数量 / 流量包双轴对称网格 + 3 档阶梯价卡片对称排列 */
  .amount-config-box {
    padding: 14px 12px;
    gap: 14px;
  }
  .cc2-qty-left,
  .cc2-qty-right > .tier-ladder-wrap {
    padding: 13px 12px;
  }
  .cc2-qty-left .quick-amount-chips {
    display: flex !important;
    flex-wrap: wrap;
    gap: 7px;
  }
  .cc2-qty-left .amount-chip {
    min-height: 40px;
    padding: 0 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    border-radius: 0px;
    font-size: 12.5px;
    flex: 1 1 calc(25% - 6px);
    box-sizing: border-box;
  }
  /* v4.0 审计：弹性换行代替 nth-child 死算 —— 档位增减时末行自动等分铺满、不留缺格 */
  /* 流量包：每行 3 个（5 档 → 3 + 2）；IP 数量：每行 4 个（7 档 → 4 + 3） */
  .cc2-qty-left .amount-chip[data-chip-gb] {
    flex-basis: calc(33.333% - 5px);
  }
  .cc2-qty-left .amount-chip[data-chip-ip] {
    flex-basis: calc(25% - 6px);
  }

  /* 3 档阶梯价：3 列等宽等高卡片矩阵 */
  .cc2-qty-right .tier-ladder {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    grid-auto-rows: 1fr;
    gap: 8px;
  }
  .cc2-qty-right .tier-step {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    text-align: center;
    gap: 5px;
    padding: 10px 6px;
    border-radius: 0px;
    border: 1px solid var(--border-subtle);
    background: var(--bg-card-subtle);
  }
  .cc2-qty-right .tier-step.is-active {
    background: var(--selected-bg);
    border-color: var(--selected-border);
    box-shadow: var(--selected-shadow);
  }
  .cc2-qty-right .tier-range {
    font-size: 11.5px;
    font-weight: 600;
  }
  .cc2-qty-right .tier-step b {
    font-size: 13px;
    line-height: 1.25;
  }
  .cc2-qty-right .tier-tag {
    text-align: center;
    font-size: 11px;
  }

  /* 底部购买汇总栏与结算单对称排版 */
  .cc2-sumbar {
    grid-template-columns: 1fr !important;
    gap: 12px;
    padding: 14px;
  }
  .cc2-sumbar .price-preview-grid {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 8px;
  }
  .cc2-sumbar .price-col {
    align-items: center;
    text-align: center;
    padding: 8px 4px;
    border-radius: 0px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    min-width: 0;
  }
  .cc2-sumbar .price-col strong {
    font-size: 13.5px;
    white-space: nowrap;
  }
  .cc2-sumbar .price-col .price-unit {
    font-size: 11px;
  }
  .cc2-sumbar .price-col.total strong {
    font-size: 16.5px;
  }
  .cc2-sumbar .btn-add-cart {
    width: 100% !important;
    min-height: 46px !important;
    border-radius: 0px;
  }
  .mx-co > .mx-co-btn {
    width: calc(100% - 32px) !important;
    min-height: 46px !important;
    margin-left: 16px !important;
    margin-right: 16px !important;
    border-radius: 0px;
  }

  /* 3.7 核心业务表（.mx-table / .miya-table）卡片化 —— 彻底覆盖 899.98px 横向滚动与 nowrap */
  .mx-table-wrap,
  .table-card {
    overflow: visible !important;
  }
  .mx-table,
  .miya-table {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    overflow: visible !important;
    white-space: normal !important;
  }
  .mx-table thead,
  .miya-table thead {
    display: none !important;
  }
  .mx-table tbody,
  .miya-table tbody {
    display: flex !important;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    padding: 12px;
  }
  .mx-table tbody tr,
  .miya-table tbody tr {
    display: block;
    background: var(--bg-card-subtle);
    border: 1px solid var(--border-card);
    border-radius: 0px;
    padding: 10px 12px;
    box-shadow: none;
  }
  .mx-table tbody tr:nth-child(even) td,
  .miya-table tbody tr:nth-child(even) td,
  .mx-table tbody tr:hover td,
  .miya-table tbody tr:hover td {
    background: transparent !important;
  }
  .mx-table tbody tr td:first-child {
    box-shadow: none !important;
  }
  .mx-table tbody td,
  .miya-table tbody td {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100% !important;
    max-width: 100% !important;
    padding: 6px 2px !important;
    border: 0 !important;
    border-bottom: 1px dashed var(--border-subtle) !important;
    text-align: right;
    font-size: 13px;
    white-space: normal !important;
    overflow-wrap: anywhere;
    word-break: break-word;
  }
  .mx-table tbody td:last-child,
  .miya-table tbody td:last-child {
    border-bottom: 0 !important;
  }
  .mx-table tbody td::before,
  .miya-table tbody td::before {
    content: attr(data-label);
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 500;
    text-align: left;
    flex-shrink: 0;
    line-height: 1.4;
  }
  .mx-table tbody td:not([data-label])::before,
  .miya-table tbody td:not([data-label])::before,
  .mx-table tbody td[data-no-label]::before,
  .mx-table tbody td[colspan]::before {
    content: none !important;
  }
  .mx-table tbody td[colspan],
  .miya-table tbody td[colspan] {
    display: block !important;
    text-align: center !important;
    border-bottom: 0 !important;
    padding: 24px 12px !important;
  }
  .mx-table tbody td code {
    white-space: normal !important;
    word-break: break-all;
  }

  /* 3.7.A 已购静态代理页（#/static-proxies）：工具栏对称网格 + 12 列精工代理卡片 */
  .cc2-phead-acts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    width: 100%;
  }
  .cc2-phead-acts .mx-btn-s {
    justify-content: center;
    min-height: 40px;
  }
  .sp-toolbar {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 12px !important;
  }
  .sp-toolbar > .mx-toolbar-side:first-child {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    width: 100%;
  }
  .sp-toolbar > .mx-toolbar-side:first-child .mx-dd,
  .sp-toolbar > .mx-toolbar-side:first-child .mx-dd-trigger {
    width: 100%;
    min-width: 0;
  }
  .sp-toolbar > .mx-toolbar-side:first-child .mx-dd-trigger {
    min-height: 38px;
    padding: 0 8px;
    justify-content: space-between;
  }
  .sp-toolbar > .mx-toolbar-side:first-child .mx-dd-value {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 12px;
  }
  .sp-toolbar > .mx-toolbar-side:first-child .mx-filter-count {
    grid-column: 1 / -1;
    font-size: 12px;
    text-align: right;
  }
  /* 闭合态下拉面板不占布局宽度，避免右列下拉面板把 scrollWidth 撑出视口 */
  .mx-dd:not(.is-open) .mx-dd-panel {
    display: none !important;
  }
  .mx-dd-panel {
    min-width: 184px;
    max-width: calc(100vw - 32px);
  }
  .mx-dd[data-dd="sort"] .mx-dd-panel {
    left: auto;
    right: 0;
  }
  .mx-dd[data-dd="status"] .mx-dd-panel {
    left: 50%;
    transform: translateX(-50%) !important;
  }

  .sp-toolbar > .sp-toolbar-actions {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    width: 100%;
  }
  .sp-toolbar > .sp-toolbar-actions > .mx-dd[data-dd="fmt"] {
    grid-column: 1 / -1;
    width: 100%;
  }
  .sp-toolbar > .sp-toolbar-actions > .mx-dd[data-dd="fmt"] .mx-dd-trigger {
    width: 100%;
    min-height: 40px;
    justify-content: space-between;
  }
  .sp-toolbar > .sp-toolbar-actions > .mx-btn-s {
    width: 100%;
    min-height: 40px;
    justify-content: center;
    padding: 0 10px;
  }

  .sp-toolbar > .mx-toolbar-side:last-child {
    display: grid !important;
    grid-template-columns: 1fr auto;
    gap: 8px;
    width: 100%;
  }
  .sp-toolbar > .mx-toolbar-side:last-child .sp-search {
    grid-column: 1 / -1;
    width: 100%;
    min-height: 42px;
  }
  .sp-toolbar > .mx-toolbar-side:last-child .sp-search input {
    width: 100% !important;
    height: 42px;
  }
  .sp-toolbar > .mx-toolbar-side:last-child .mx-btn-s {
    min-height: 40px;
    justify-content: center;
  }

  .sp-page .mx-table-wrap {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
  }
  .sp-table tbody {
    padding: 0 !important;
    gap: 12px;
  }
  .sp-table tbody tr:not([data-port]) {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: 0px;
    padding: 16px;
  }
  .sp-table tbody tr[data-port] {
    display: grid !important;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 10px 8px;
    align-items: center;
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: 0px;
    padding: 14px !important;
    box-shadow: var(--shadow-sm);
  }
  .sp-table tbody tr[data-port] td {
    border-bottom: 0 !important;
    padding: 0 !important;
    min-width: 0;
  }
  /* 卡片头部：勾选框 + 国家网络 + 端口胶囊 + 状态胶囊 严格固定在第 1 行 */
  .sp-table tbody tr[data-port] td.sp-td-check {
    grid-column: 1 / 2;
    grid-row: 1;
    justify-content: flex-start;
  }
  .sp-table tbody tr[data-port] td.sp-td-check .cb-proxy-row {
    width: 18px;
    height: 18px;
    accent-color: var(--accent);
  }
  .sp-table tbody tr[data-port] td.sp-td-region {
    grid-column: 2 / 7;
    grid-row: 1;
    justify-content: flex-start;
    text-align: left;
  }
  .sp-table tbody tr[data-port] td.sp-td-region::before,
  .sp-table tbody tr[data-port] td.sp-td-port::before,
  .sp-table tbody tr[data-port] td.sp-td-status::before,
  .sp-table tbody tr[data-port] td.sp-note-cell::before,
  .sp-table tbody tr[data-port] td.sp-td-renew::before,
  .sp-table tbody tr[data-port] td.sp-ops::before,
  .sp-table tbody tr[data-port] td.sp-del-cell::before {
    content: none !important;
  }
  .sp-table tbody tr[data-port] td.sp-td-port {
    grid-column: 7 / 10;
    grid-row: 1;
    justify-content: flex-end;
  }
  .sp-table tbody tr[data-port] td.sp-td-port .sp-port {
    display: inline-flex;
    align-items: center;
    padding: 3px 9px;
    border-radius: 0px;
    background: var(--accent-subtle);
    border: 1px solid var(--accent-border);
    color: var(--accent);
    font-family: var(--font-mono);
    font-size: 13px;
    transform: none !important;
  }
  .sp-table tbody tr[data-port] td.sp-td-port .sp-port::before {
    content: "#";
    opacity: 0.72;
    margin-right: 1px;
  }
  .sp-table tbody tr[data-port] td.sp-td-status {
    grid-column: 10 / 13;
    grid-row: 1;
    justify-content: flex-end;
  }
  /* 第 2 行 独享出口地址框：整行不截断 */
  .sp-table tbody tr[data-port] td.sp-td-ip {
    grid-column: 1 / -1;
    grid-row: 2;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 9px 11px !important;
    border-radius: 0px;
    background: var(--bg-card-subtle) !important;
    border: 1px solid var(--border-subtle) !important;
    text-align: left;
  }
  .sp-table tbody tr[data-port] td.sp-td-ip::before {
    font-size: 11px;
  }
  .sp-table tbody tr[data-port] td.sp-td-ip .sp-ip {
    font-size: 12px;
    line-height: 1.45;
    word-break: break-all;
    white-space: normal !important;
    color: var(--text-primary);
  }
  /* 第 3 行 购买时间 / 到期时间：左右 50% / 50% 严格对称等高双格 */
  .sp-table tbody tr[data-port] td.sp-td-bought,
  .sp-table tbody tr[data-port] td.sp-td-exp {
    grid-row: 3;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    align-self: stretch;
    gap: 3px;
    padding: 8px 10px !important;
    border-radius: 0px;
    background: var(--bg-card-subtle) !important;
    border: 1px solid var(--border-subtle) !important;
    text-align: left;
  }
  .sp-table tbody tr[data-port] td.sp-td-bought {
    grid-column: 1 / 7;
  }
  .sp-table tbody tr[data-port] td.sp-td-exp {
    grid-column: 7 / 13;
  }
  .sp-table tbody tr[data-port] td.sp-td-bought::before,
  .sp-table tbody tr[data-port] td.sp-td-exp::before {
    font-size: 11px;
  }
  .sp-table tbody tr[data-port] .sp-time-box {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 2px 6px;
  }
  /* 第 4 行 备注输入框：整行 40px 触控热区 + 16px 字号 */
  .sp-table tbody tr[data-port] td.sp-note-cell {
    grid-column: 1 / -1;
    grid-row: 4;
  }
  .sp-table tbody tr[data-port] .sp-note-wrap {
    width: 100%;
  }
  .sp-table tbody tr[data-port] .sp-note-input {
    height: 40px !important;
    padding: 0 10px 0 28px !important;
    border-radius: 0px !important;
  }
  /* 第 5 行 卡片底栏操作键：3 键（复制 / 续费 / 删除）严格 33.3% 等宽；4 键（换IP / 复制 / 续费 / 删除）严格 25% 等宽 */
  .sp-table tbody tr[data-port]:not([data-can-refresh="1"]) td.sp-ops {
    grid-column: 1 / 5;
    grid-row: 5;
  }
  .sp-table tbody tr[data-port]:not([data-can-refresh="1"]) td.sp-td-renew {
    grid-column: 5 / 9;
    grid-row: 5;
  }
  .sp-table tbody tr[data-port]:not([data-can-refresh="1"]) td.sp-del-cell {
    grid-column: 9 / 13;
    grid-row: 5;
  }
  .sp-table tbody tr[data-port][data-can-refresh="1"] td.sp-ops {
    grid-column: 1 / 7;
    grid-row: 5;
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .sp-table tbody tr[data-port][data-can-refresh="1"] td.sp-td-renew {
    grid-column: 7 / 10;
    grid-row: 5;
  }
  .sp-table tbody tr[data-port][data-can-refresh="1"] td.sp-del-cell {
    grid-column: 10 / 13;
    grid-row: 5;
  }
  .sp-table tbody tr[data-port] td.sp-ops .mx-btn-s,
  .sp-table tbody tr[data-port] td.sp-td-renew .mx-btn-s,
  .sp-table tbody tr[data-port] td.sp-del-cell .mx-btn-s {
    width: 100% !important;
    min-height: 40px;
    margin: 0 !important;
    padding: 0 8px !important;
    justify-content: center;
    font-size: 12.5px;
    border-radius: 0px;
  }

  /* 分页栏在 375px 下居中对称排布 */
  .sp-pager {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }
  .sp-pg-info {
    text-align: center;
  }
  .sp-pg-sizes {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
  }
  .sp-pg-size {
    height: 34px;
    text-align: center;
  }
  .sp-pg-nav {
    justify-content: center;
  }

  /* 3.7.B 订单历史表（.ord-table）与资金流水表（.txn-table）卡片头部优化 */
  .ord-table tbody tr,
  .txn-table tbody tr {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0 10px;
    padding: 12px 14px;
  }
  /* v4.0 审计：长订单号 / 流水号在窄屏卡片内断词换行（覆盖行内 nowrap），状态标签始终留在卡片内 */
  .ord-table tbody td.ord-td-id,
  .txn-table tbody td.txn-td-id {
    min-width: 0;
  }
  .ord-table .ord-id-code,
  .txn-table td.txn-td-id code {
    white-space: normal !important;
    overflow-wrap: anywhere;
    word-break: break-all;
  }
  .ord-table tbody td.ord-td-status,
  .txn-table tbody td.txn-td-type {
    justify-self: end;
    white-space: nowrap;
  }
  .ord-table .ord-ports-txt {
    overflow-wrap: anywhere;
  }
  .ord-table tbody tr:has(td[colspan]),
  .txn-table tbody tr:has(td[colspan]) {
    display: block !important;
  }
  .ord-table tbody td,
  .txn-table tbody td {
    grid-column: 1 / -1;
  }
  /* 卡片顶部：左单号 / 流水号 + 右状态胶囊 */
  .ord-table tbody td.ord-td-id,
  .txn-table tbody td.txn-td-id {
    grid-column: 1 / 2;
    grid-row: 1;
    justify-content: flex-start;
    text-align: left;
    padding-bottom: 8px !important;
  }
  .ord-table tbody td.ord-td-status,
  .txn-table tbody td.txn-td-type {
    grid-column: 2 / 3;
    grid-row: 1;
    justify-content: flex-end;
    width: auto !important;
    padding-bottom: 8px !important;
  }
  .ord-table tbody td.ord-td-id::before,
  .ord-table tbody td.ord-td-status::before,
  .txn-table tbody td.txn-td-id::before,
  .txn-table tbody td.txn-td-type::before {
    content: none !important;
  }
  .txn-sum-box {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    text-align: left;
    min-width: 0;
    overflow-wrap: anywhere;
  }

  /* 3.8 登录 / 注册页（#/login & #/register）：表单置顶居中 + 44px 触控热区 */
  .mx-auth-layout {
    margin: 8px auto 20px;
    padding: 0;
    gap: 18px;
  }
  .mx-auth-wrap {
    order: 1;
    padding: 22px 18px;
    border-radius: 0px;
  }
  .mx-auth-aside {
    order: 2;
    padding: 18px 16px;
    border-radius: 0px;
    background: var(--bg-card);
    border: 1px solid var(--border-card);
  }
  .mx-auth-aside h1,
  .mx-auth-aside h2.mx-auth-h {
    font-size: 22px;
  }
  .mx-auth-aside p {
    font-size: 13.5px;
    margin-bottom: 14px;
  }
  .mx-auth-points {
    margin-bottom: 16px;
    gap: 8px;
  }
  .mx-auth-point {
    font-size: 13px;
  }
  .mx-auth-metrics {
    gap: 20px;
    padding-top: 14px;
  }
  .mx-auth-wrap .mx-input {
    min-height: 44px;
  }
  .mx-auth-wrap button[type="submit"],
  #m-reg-send,
  #btn-submit-deposit,
  #btn-submit-add-ip,
  #btn-copy-contact-wx {
    min-height: 44px;
  }
  #add-ip-input {
    min-width: 0 !important;
    max-width: none !important;
    width: 100%;
    min-height: 44px;
  }

  /* 3.9 全部弹窗（账户安全 / 导出格式预览 / 续费与删除确认 / 代码示例）375px 安全视口适配 */
  .miya-modal-backdrop {
    padding: 12px !important;
    align-items: center;
  }
  .miya-modal-card,
  .acct-modal .acct-card,
  .sp-export-card,
  .sp-confirm-card {
    width: calc(100vw - 24px) !important;
    max-width: calc(100vw - 24px) !important;
    max-height: calc(100dvh - 24px) !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
    border-radius: 0px;
  }
  .modal-header {
    padding: 14px 16px;
  }
  .modal-body {
    padding: 16px;
  }
  .sp-exp-fmts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }
  .sp-exp-fmt {
    height: 38px;
    padding: 0 8px;
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .sp-exp-fmt:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }
  .sp-export-acts,
  .sp-confirm-acts {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .sp-export-acts .mx-btn-s,
  .sp-confirm-acts .mx-btn-s {
    width: 100%;
    min-height: 42px;
    justify-content: center;
  }
}

/* ==========================================================================
   v3.6 · 跨站动态公告容器对齐 + 交付免责声明卡 + 三级等高客服矩阵（双色自适应）
   ========================================================================== */
.miya-ann-wrap {
  width: 100%;
  padding: 18px var(--gutter, 24px) 0;
  box-sizing: border-box;
}
.miya-ann-wrap:has(> .fubi-ann[hidden]),
.miya-ann-wrap:has(> .fubi-ann:empty) {
  display: none !important;
}
.miya-ann-wrap > .fubi-ann:not(.fa-pop-mask) {
  max-width: var(--content-max-w, 1440px);
  margin: 0 auto;
  padding: 0;
}
.miya-ann-wrap:not(:has(> .fubi-ann[hidden])):not(:has(> .fubi-ann:empty)) + .miya-content {
  padding-top: 16px;
}

/* 1. 套餐选购结算单：防风控退款扯皮暖琥珀镶边免责声明卡 */
.v36-ip-disclaimer {
  position: relative;
  margin: 12px 0 12px;
  padding: 12px 13px;
  border-radius: 0px;
  background: linear-gradient(165deg, rgba(226, 139, 78, 0.13) 0%, rgba(226, 139, 78, 0.05) 100%);
  border: 1px solid rgba(226, 139, 78, 0.34);
  box-shadow: inset 0 1px 0 rgba(255, 224, 189, 0.10);
  text-align: left;
  box-sizing: border-box;
}
[data-theme="light"] .v36-ip-disclaimer {
  background: linear-gradient(180deg, #FFF9F2 0%, #FDF4E9 100%);
  border-color: rgba(194, 103, 47, 0.30);
  box-shadow: inset 0 1px 0 #FFFFFF;
}
.v36-ip-disc-h {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--accent, #E28B4E);
  margin-bottom: 5px;
  line-height: 1.35;
}
.v36-ip-disc-h .ic {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  color: var(--accent, #E28B4E);
}
.v36-ip-disclaimer p {
  margin: 0;
  font-size: 11.8px;
  line-height: 1.58;
  color: var(--text-secondary, #C5CBD6);
  word-break: break-word;
}
[data-theme="light"] .v36-ip-disclaimer p {
  color: #4A433D;
}

/* 2. 账单与充值卡密兑换区：即时交付数字储值免责条 */
.v36-deposit-disclaimer {
  margin: 10px 0 0;
  padding: 8px 11px;
  border-radius: 0px;
  background: rgba(226, 139, 78, 0.08);
  border: 1px solid rgba(226, 139, 78, 0.22);
  font-size: 12px;
  line-height: 1.55;
  color: var(--text-muted, #94A3B8);
  word-break: break-word;
}
[data-theme="light"] .v36-deposit-disclaimer {
  background: #FCF7F0;
  border-color: rgba(194, 103, 47, 0.22);
  color: #6B6056;
}

/* 3. #/contact 联系客服页：Telegram 主推 + Gmail 官方四色 M + 备用 QQ 严格等高三卡 */
.v36-contact-head-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.v36-sup-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}
.v36-sup-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 272px;
  padding: 22px 20px 20px;
  border-radius: 0px;
  background: var(--bg-card, #141923);
  border: 1px solid var(--border-card, rgba(255, 255, 255, 0.09));
  box-shadow: var(--shadow-card, 0 12px 32px -16px rgba(0, 0, 0, 0.45));
  transition: transform 200ms cubic-bezier(.22, 1, .36, 1), border-color 180ms ease, box-shadow 200ms ease;
  box-sizing: border-box;
}
.v36-sup-card::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 4%, rgba(226, 139, 78, 0.55) 28%, #F4C797 50%, rgba(226, 139, 78, 0.55) 72%, transparent 96%);
  opacity: 0.85;
  pointer-events: none;
}
.v36-sup-card.is-tg {
  border-color: rgba(226, 139, 78, 0.36);
}
.v36-sup-card.is-tg::before {
  height: 2px;
  opacity: 1;
}
.v36-sup-card:hover {
  transform: translateY(-1px);
  border-color: rgba(226, 139, 78, 0.45);
}
.v36-sup-h {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 46px;
}
.v36-sup-ico {
  width: 44px;
  height: 44px;
  border-radius: 0px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.v36-sup-ico .v36-bi {
  width: 24px;
  height: 24px;
  display: block;
}
.v36-sup-ico.is-tg {
  background: linear-gradient(135deg, rgba(38, 165, 228, 0.22), rgba(38, 165, 228, 0.06));
  box-shadow: inset 0 0 0 1px rgba(38, 165, 228, 0.32);
}
.v36-sup-ico.is-wx {
  background: linear-gradient(135deg, rgba(7, 193, 96, 0.22), rgba(7, 193, 96, 0.06));
  box-shadow: inset 0 0 0 1px rgba(7, 193, 96, 0.32);
}
.v36-sup-ht {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.v36-sup-ht h3 {
  margin: 0;
  font-size: 15.5px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3;
}
.v36-sup-ht span {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.35;
}
.v36-sup-val {
  min-height: 58px;
  padding: 8px 12px 8px 14px;
  border-radius: 0px;
  background: var(--bg-card-subtle, rgba(255, 255, 255, 0.04));
  border: 1px solid var(--border-card, rgba(255, 255, 255, 0.08));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-family: var(--font-mono, ui-monospace, SFMono-Regular, Menlo, Consolas, monospace);
  font-size: 15.5px;
  font-weight: 700;
  color: var(--text-primary);
  box-sizing: border-box;
}
.v36-sup-val > span {
  min-width: 0;
  overflow-wrap: anywhere;
}
.v36-qr-thumb {
  width: 42px;
  height: 42px;
  padding: 3px;
  border-radius: 0px;
  background: #FFFFFF;
  border: 1px solid rgba(226, 139, 78, 0.36);
  box-shadow: 0 2px 8px -2px rgba(0, 0, 0, 0.26);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  cursor: pointer;
  transition: transform 180ms cubic-bezier(.2, .9, .3, 1.2), border-color 160ms ease;
}
.v36-qr-thumb:hover {
  transform: scale(1.06);
  border-color: var(--accent, #E28B4E);
}
.v36-qr-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 0px;
}
.v36-sup-desc {
  margin: 0;
  flex: 1;
  font-size: 12.8px;
  line-height: 1.6;
  color: var(--text-muted);
}
.v36-sup-acts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  margin-top: auto;
}
.v36-sup-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 38px;
  min-width: 0;
  padding: 0 10px;
  border-radius: 0px;
  border: 1px solid var(--border-card, rgba(255, 255, 255, 0.12));
  background: var(--bg-card-subtle, rgba(255, 255, 255, 0.04));
  color: var(--text-primary) !important;
  font: inherit;
  font-size: 12.8px;
  font-weight: 600;
  text-decoration: none !important;
  cursor: pointer;
  transition: background-color 160ms ease, border-color 160ms ease, transform 160ms ease;
  box-sizing: border-box;
}
.v36-sup-btn:hover {
  border-color: rgba(226, 139, 78, 0.45);
  background: rgba(226, 139, 78, 0.10);
}
.v36-sup-btn.pri {
  background: linear-gradient(135deg, #DF8142 0%, #B85A24 100%);
  border-color: transparent;
  color: #FFFFFF !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .16);
}
.v36-sup-btn.pri:hover {
  filter: brightness(1.06);
}
.v36-sup-btn .ic {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.v36-sup-btn > span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* 服务条款与退款政策说明卡 */
.v36-policy-panel {
  padding: 20px 22px;
}
.v36-policy-list {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.v36-policy-list li {
  position: relative;
  padding-left: 14px;
  font-size: 13px;
  line-height: 1.65;
  color: var(--text-secondary, #C5CBD6);
}
[data-theme="light"] .v36-policy-list li {
  color: #4A433D;
}
.v36-policy-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 5px;
  height: 5px;
  border-radius: 0px;
  background: var(--accent, #E28B4E);
}
.v36-policy-list li strong {
  color: var(--text-primary);
  font-weight: 700;
}

/* Telegram 高清二维码弹窗 */
.v36-qr-backdrop {
  z-index: 2200;
  padding: 16px;
}
.v36-qr-dialog {
  width: 100%;
  max-width: 370px;
  border-radius: 0px;
  background: var(--bg-card, #141923);
  border: 1px solid rgba(226, 139, 78, 0.34);
  box-shadow: 0 24px 64px -20px rgba(0, 0, 0, 0.65);
  overflow: hidden;
  box-sizing: border-box;
}
.v36-qr-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 16px 20px 13px;
  border-bottom: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.08));
}
.v36-qr-head h3 {
  margin: 0;
  font-size: 15.5px;
  font-weight: 700;
  color: var(--text-primary);
}
.v36-qr-close {
  width: 32px;
  height: 32px;
  border-radius: 0px;
  border: 1px solid var(--border-card, rgba(255, 255, 255, 0.1));
  background: transparent;
  color: var(--text-muted);
  display: grid;
  place-items: center;
  cursor: pointer;
}
.v36-qr-close:hover {
  color: var(--text-primary);
}
.v36-qr-close .ic {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}
.v36-qr-body {
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 13px;
}
.v36-qr-box {
  padding: 14px;
  border-radius: 0px;
  background: #FFFFFF;
  border: 1px solid rgba(226, 139, 78, 0.32);
  box-shadow: 0 0 0 5px rgba(226, 139, 78, 0.08);
  display: grid;
  place-items: center;
}
.v36-qr-box img {
  display: block;
  width: min(216px, 60vw);
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  border-radius: 0px;
}
.v36-qr-cap {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
}
.v36-qr-cap code {
  font-family: var(--font-mono, ui-monospace, monospace);
  font-size: 13.5px;
  font-weight: 700;
  color: var(--accent, #E28B4E);
  background: rgba(226, 139, 78, 0.12);
  border: 1px solid rgba(226, 139, 78, 0.28);
  padding: 2px 12px;
  border-radius: 0px;
}
.v36-qr-open-btn {
  width: 100%;
  min-height: 42px;
  justify-content: center;
  text-decoration: none !important;
}
.v36-qr-open-btn .ic {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (max-width: 1040px) {
  .v36-sup-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .v36-sup-card {
    min-height: 0;
  }
}
@media (max-width: 768px) {
  .miya-ann-wrap {
    padding: 12px 12px 0 !important;
  }
  .miya-ann-wrap:not(:has(> .fubi-ann[hidden])):not(:has(> .fubi-ann:empty)) + .miya-content {
    padding-top: 12px !important;
  }
  .v36-sup-card {
    padding: 18px 16px;
  }
  .v36-policy-panel {
    padding: 16px;
  }
}

/* v4.0 审计：≤420px 超窄屏价格预览 —— 3 列压缩字号、合计列加宽，金额不折行 */
@media (max-width: 420px) {
  .cc2-sumbar .price-preview-grid {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 0.9fr) minmax(0, 1.2fr) !important;
    gap: 6px;
  }
  .cc2-sumbar .price-col {
    padding: 8px 2px;
  }
  .cc2-sumbar .price-col strong {
    font-size: 12px;
    letter-spacing: -0.01em;
  }
  .cc2-sumbar .price-col.total strong {
    font-size: 14.5px;
  }
  .cc2-sumbar .price-col .price-unit {
    font-size: 10px;
  }
}

/* ==========================================================================
   v5 旗舰 · 欧洲边缘节点遥测星图 + 实时节点通行证 + 移动端扫码直连（20261102）
   动效只动 transform / opacity；后台标签页 / 离屏自动暂停；prefers-reduced-motion 全量降级
   ========================================================================== */
.edge-hero {
  --edge-ink: #F4C797;
  --edge-pulse: #F2B36F;
  --edge-pulse-dim: rgba(148, 163, 184, 0.55);
  --edge-grid: rgba(244, 199, 151, 0.075);
  --edge-grid-t: rgba(244, 199, 151, 0.32);
  --edge-star: rgba(241, 245, 249, 0.55);
  --edge-mesh: rgba(244, 199, 151, 0.11);
  --edge-bg-a: #171D2B;
  --edge-bg-b: #07090E;
  --edge-live: #34D399;
  --edge-glass: rgba(10, 13, 20, 0.62);
  --edge-glass-b: rgba(244, 199, 151, 0.16);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 352px;
  gap: 24px;
  margin-bottom: 24px;
  align-items: stretch;
}
[data-theme="light"] .edge-hero {
  --edge-ink: #1F3A5F;
  --edge-pulse: #B45309;
  --edge-pulse-dim: rgba(31, 58, 95, 0.38);
  --edge-grid: rgba(31, 58, 95, 0.08);
  --edge-grid-t: rgba(31, 58, 95, 0.42);
  --edge-star: rgba(31, 58, 95, 0.28);
  --edge-mesh: rgba(31, 58, 95, 0.13);
  --edge-bg-a: #FCF9F2;
  --edge-bg-b: #EFE6D4;
  --edge-live: #0F8A65;
  --edge-glass: rgba(255, 252, 245, 0.78);
  --edge-glass-b: rgba(31, 58, 95, 0.14);
}

/* ---- 星图舞台 ---- */
.edge-stage-wrap {
  position: relative;
  min-height: 316px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-card);
  overflow: hidden;
  isolation: isolate;
  background: var(--edge-bg-b);
  box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.edge-stage { position: absolute; inset: 0; }
.edge-stage .edge-map, .edge-stage .edge-pulses { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.edge-stage .edge-pulses { pointer-events: none; }
.edge-map .vg-a { stop-color: var(--edge-bg-a); }
.edge-map .vg-b { stop-color: var(--edge-bg-b); }
.edge-map .sw-a { stop-color: var(--edge-pulse); stop-opacity: 0; }
.edge-map .sw-b { stop-color: var(--edge-pulse); stop-opacity: 0.32; }
.edge-grat path { stroke: var(--edge-grid); stroke-width: 0.6; fill: none; }
.edge-grat text { fill: var(--edge-grid-t); font: 500 6.5px var(--font-mono); letter-spacing: 0.04em; }
.edge-stars circle { fill: var(--edge-star); }
.edge-stars .tw { animation: edge-twinkle 4.2s ease-in-out infinite; }
.edge-mesh path { fill: none; stroke: var(--edge-mesh); stroke-width: 0.7; }
.edge-mesh path.is-far { stroke-dasharray: 2 4; }
.edge-arc { fill: none; stroke: var(--edge-pulse-dim); stroke-width: 0.9; stroke-dasharray: 3 3; opacity: 0; animation: edge-arc-in 0.7s var(--ease-out-expo, ease-out) forwards; }
.edge-arc.is-live { stroke: var(--edge-pulse); stroke-width: 1.15; stroke-dasharray: none; }
.edge-hub { cursor: default; }
.edge-hub.is-live { cursor: pointer; }
.edge-hub-hit { fill: transparent; }
.edge-hub-halo { fill: var(--edge-pulse-dim); opacity: 0.22; transition: opacity 0.3s ease, transform 0.45s var(--ease-spring, ease); }
.edge-hub-core { fill: var(--edge-pulse-dim); transition: transform 0.45s var(--ease-spring, ease); }
.edge-hub.is-live .edge-hub-core { fill: var(--edge-pulse); }
.edge-hub.is-live .edge-hub-halo { fill: var(--edge-pulse); opacity: 0.2; }
.edge-hub.is-live:hover .edge-hub-halo { opacity: 0.42; transform: scale(1.35); }
.edge-hub.is-focus .edge-hub-core { transform: scale(1.45); fill: var(--edge-pulse); }
.edge-hub.is-focus .edge-hub-halo { opacity: 0.38; }
.edge-hub-t { fill: var(--edge-ink); font: 700 8px var(--font-mono); letter-spacing: 0.08em; opacity: 0.62; transition: opacity 0.3s ease; }
.edge-hub.is-focus .edge-hub-t, .edge-hub.is-live:hover .edge-hub-t { opacity: 1; }
.edge-focus { transform: translate(326.5px, 133.4px); }
.edge-stage.is-ready .edge-focus { transition: transform 0.95s var(--ease-out-expo, cubic-bezier(.16, 1, .3, 1)); }
.edge-sweep { animation: edge-spin 6.5s linear infinite; }
.edge-ring { fill: none; stroke: var(--edge-pulse); stroke-width: 0.8; opacity: 0.75; }
.edge-cross { stroke: var(--edge-pulse); stroke-width: 0.9; opacity: 0.7; }
.edge-ripple { fill: none; stroke: var(--edge-pulse); stroke-width: 0.8; opacity: 0; animation: edge-ripple 3s cubic-bezier(.2, .6, .35, 1) infinite; }
.edge-ripple.d2 { animation-delay: 1s; }
.edge-ripple.d3 { animation-delay: 2s; }
.edge-compass circle { fill: none; stroke: var(--edge-grid-t); stroke-width: 0.6; }
.edge-compass path { fill: var(--edge-grid-t); }
.edge-compass text { fill: var(--edge-grid-t); font: 700 7px var(--font-mono); text-anchor: middle; }
.edge-stage.is-paused * { animation-play-state: paused !important; }

@keyframes edge-twinkle { 0%, 100% { opacity: 0.25; } 50% { opacity: 1; } }
@keyframes edge-arc-in { to { opacity: 1; } }
@keyframes edge-spin { to { transform: rotate(360deg); } }
@keyframes edge-ripple { 0% { transform: scale(0.6); opacity: 0.75; } 100% { transform: scale(4.2); opacity: 0; } }
@keyframes edge-breathe { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(0.72); opacity: 0.55; } }

/* ---- HUD（毛玻璃信息牌） ---- */
.edge-hud {
  position: absolute; z-index: 2; top: 14px; left: 14px;
  display: flex; flex-direction: column; gap: 8px;
  max-width: min(300px, calc(100% - 28px));
  padding: 12px 14px;
  border-radius: 0px;
  background: var(--edge-glass);
  border: 1px solid var(--edge-glass-b);
  -webkit-backdrop-filter: blur(10px) saturate(1.2);
  backdrop-filter: blur(10px) saturate(1.2);
  pointer-events: none;
}
.edge-kicker, .lnp-kicker {
  display: inline-flex; align-items: center; gap: 7px;
  font: 700 10.5px/1.2 var(--font-mono); letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--edge-ink);
}
.edge-live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--edge-live, #34D399); box-shadow: 0 0 0 3px color-mix(in srgb, var(--edge-live, #34D399) 22%, transparent); flex: none; animation: edge-breathe 2.4s ease-in-out infinite; }
.edge-hud-id { display: flex; align-items: center; gap: 10px; min-width: 0; }
.edge-hud-flag { width: 34px !important; height: 23px !important; border-radius: 0px !important; overflow: hidden; flex: none; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.14), 0 4px 10px -4px rgba(0, 0, 0, 0.5); }
.edge-hud-flag svg { width: 100%; height: 100%; display: block; }
.edge-hud-txt { display: flex; flex-direction: column; min-width: 0; }
.edge-hud-txt strong { font-size: 17px; line-height: 1.2; color: var(--text-primary); overflow-wrap: anywhere; }
.edge-hud-txt small { display: flex; gap: 8px; align-items: baseline; font-size: 12px; color: var(--text-muted); flex-wrap: wrap; }
.edge-hud-txt small b { font: 700 11px var(--font-mono); color: var(--edge-ink); letter-spacing: 0.08em; }
.edge-hud-geo { font: 500 11px var(--font-mono); color: var(--text-muted); letter-spacing: 0.03em; }
.edge-route-badge {
  display: inline-flex; align-items: center; gap: 7px; align-self: flex-start; max-width: 100%;
  padding: 4px 10px; border-radius: 0px; font-variant-numeric: tabular-nums;
  font-size: 11.5px; font-weight: 600; line-height: 1.35;
  color: var(--edge-live); background: color-mix(in srgb, var(--edge-live) 13%, transparent);
  border: 1px solid color-mix(in srgb, var(--edge-live) 32%, transparent);
  overflow-wrap: anywhere;
}
.edge-route-badge i { width: 6px; height: 6px; border-radius: 0px; background: currentColor; flex: none; animation: edge-breathe 2.4s ease-in-out infinite; }
.edge-route-badge.is-soon { color: var(--status-warning); background: var(--status-warning-bg); border-color: color-mix(in srgb, var(--status-warning) 30%, transparent); }
.edge-route-badge.is-soon i { animation: none; }

.edge-legend {
  position: absolute; z-index: 2; left: 14px; right: 14px; bottom: 12px;
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px;
  font-size: 11px; color: var(--text-muted); pointer-events: none;
}
.edge-legend > span { display: inline-flex; align-items: center; gap: 6px; }
.edge-legend i { width: 14px; height: 2px; border-radius: 0px; }
.edge-legend .lg-live { background: var(--edge-pulse); }
.edge-legend .lg-soon { background: repeating-linear-gradient(90deg, var(--edge-pulse-dim) 0 3px, transparent 3px 6px); }
.edge-legend-tip { margin-left: auto; color: var(--text-faint); }

/* ---- 实时节点通行证（黑金金属卡 / 浅色象牙铜刻） ---- */
.lnp {
  --lnp-bg: linear-gradient(150deg, #211A10 0%, #0F0D0A 46%, #1D160C 100%);
  --lnp-line: rgba(244, 199, 151, 0.26);
  --lnp-ink: #F6D3A6;
  --lnp-soft: rgba(246, 211, 166, 0.62);
  --lnp-notch: var(--bg-app);
  position: relative; overflow: hidden; isolation: isolate;
  display: flex; flex-direction: column; gap: 12px;
  padding: 18px 18px 16px;
  border-radius: var(--radius-lg);
  background: var(--lnp-bg);
  border: 1px solid var(--lnp-line);
  box-shadow: inset 0 1px 0 rgba(255, 236, 205, 0.12), 0 18px 40px -22px rgba(0, 0, 0, 0.8), var(--glow-accent);
  color: var(--lnp-ink);
}
.lnp::before {   /* 拉丝金属纹 */
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: repeating-linear-gradient(100deg, rgba(255, 255, 255, 0.018) 0 1px, transparent 1px 3px),
    radial-gradient(420px 180px at 100% 0%, rgba(242, 179, 111, 0.16), transparent 70%);
}
[data-theme="light"] .lnp {
  --lnp-bg: linear-gradient(150deg, #FFFDF8 0%, #F6EEDF 55%, #EFE3CC 100%);
  --lnp-line: rgba(154, 72, 23, 0.24);
  --lnp-ink: #3B2A17;
  --lnp-soft: rgba(59, 42, 23, 0.66);
  box-shadow: inset 0 1px 0 #FFFFFF, 0 16px 34px -22px rgba(120, 72, 30, 0.38);
}
[data-theme="light"] .lnp::before {
  background: repeating-linear-gradient(100deg, rgba(120, 86, 52, 0.025) 0 1px, transparent 1px 3px),
    radial-gradient(420px 180px at 100% 0%, rgba(212, 118, 59, 0.10), transparent 70%);
}
.lnp-sheen { position: absolute; inset: -40% -60%; z-index: -1; pointer-events: none; opacity: 0;
  background: linear-gradient(105deg, transparent 40%, rgba(255, 226, 180, 0.16) 50%, transparent 60%);
  transform: translateX(-60%); }
.lnp-sheen.is-run { animation: lnp-sheen 1.1s var(--ease-out-expo, ease-out) 1; }
@keyframes lnp-sheen { 0% { transform: translateX(-60%); opacity: 1; } 100% { transform: translateX(60%); opacity: 0; } }
.lnp-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.lnp-kicker { color: var(--lnp-ink); }
.lnp-serial { font: 600 10.5px var(--font-mono); letter-spacing: 0.08em; color: var(--lnp-soft); }
.lnp-route { display: flex; align-items: center; gap: 12px; }
.lnp-chip { width: 40px; height: 30px; flex: none; }
.lnp-chip svg { width: 100%; height: 100%; display: block; }
.lnp-chip .chip-b { fill: #C99A5B; stroke: rgba(80, 52, 20, 0.55); stroke-width: 1; }
.lnp-chip .chip-l { fill: none; stroke: rgba(70, 44, 14, 0.55); stroke-width: 1; }
.lnp-route-main { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.lnp-route-main b { font: 800 22px/1.1 var(--font-mono); letter-spacing: 0.1em; color: var(--lnp-ink); }
.lnp-route-main b em { font-style: normal; opacity: 0.45; margin: 0 6px; }
.lnp-route-main small { font-size: 12px; color: var(--lnp-soft); overflow-wrap: anywhere; }
.lnp-flag { width: 38px !important; height: 26px !important; border-radius: 0px !important; overflow: hidden; flex: none; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.18), 0 6px 14px -6px rgba(0, 0, 0, 0.6); }
.lnp-flag svg { width: 100%; height: 100%; display: block; }
.lnp-proto { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; font-size: 12px; color: var(--lnp-soft); }
.lnp-proto-badge { font: 800 10.5px var(--font-mono); letter-spacing: 0.12em; padding: 3px 8px; border-radius: 0px; color: #1A120A; background: linear-gradient(135deg, #F7D3A3, #D4894A); }
.lnp-proto > span:nth-child(2) { color: var(--lnp-ink); font-weight: 600; }
.lnp-proto-net { padding: 2px 8px; border-radius: 0px; border: 1px solid var(--lnp-line); }
.lnp-spec { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 14px; margin: 0; }
.lnp-spec > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.lnp-spec dt { font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--lnp-soft); }
.lnp-spec dd { margin: 0; font-size: 13.5px; font-weight: 650; color: var(--lnp-ink); overflow-wrap: anywhere; }
.lnp-spec dd.is-ok { color: var(--edge-live); }
.lnp-spec dd.is-wait { color: var(--status-warning); }
.lnp-perf { position: relative; height: 1px; margin: 2px -18px; background: repeating-linear-gradient(90deg, var(--lnp-line) 0 5px, transparent 5px 10px); }
.lnp-perf::before, .lnp-perf::after { content: ""; position: absolute; top: -8px; width: 16px; height: 16px; border-radius: 0px; background: var(--lnp-notch); border: 1px solid var(--lnp-line); }
.lnp-perf::before { left: -9px; }
.lnp-perf::after { right: -9px; }
.lnp-total { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.lnp-total-main { display: flex; flex-direction: column; overflow: hidden; }
.lnp-total-main small { font-size: 11px; color: var(--lnp-soft); text-transform: uppercase; letter-spacing: 0.08em; }
.lnp-total-main b { font: 800 30px/1.1 var(--font-mono); letter-spacing: -0.01em; color: var(--lnp-ink); font-variant-numeric: tabular-nums; }
.lnp-total-main b.is-tick { animation: lnp-tick 0.48s var(--ease-out-expo, ease-out) 1; }
@keyframes lnp-tick { 0% { transform: translateY(55%); opacity: 0; } 100% { transform: none; opacity: 1; } }
.lnp-unit { font: 600 12px var(--font-mono); color: var(--lnp-soft); padding-bottom: 4px; }
.lnp-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; }
.lnp-bars { height: 22px; flex: 1; min-width: 60px; max-width: 150px; opacity: 0.55; }
.lnp-bars svg { width: 100%; height: 100%; display: block; fill: var(--lnp-ink); }
.lnp-go {
  display: inline-flex; align-items: center; gap: 6px; flex: none;
  padding: 8px 14px; border-radius: 0px; border: 0; cursor: pointer;
  font-size: 13px; font-weight: 700; color: #fff; background: var(--accent-gradient); box-shadow: var(--cta-shadow);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}
.lnp-go:hover { transform: translateY(-1px); box-shadow: var(--cta-hover-shadow); }
.lnp-go:focus-visible { outline: 2px solid var(--border-focus); outline-offset: 2px; }
.lnp-go .ic { width: 15px; height: 15px; }
.lnp.is-soldout .lnp-total-main b { opacity: 0.55; }

/* ---- 已购通道：扫码按钮 + 扫码弹窗 ---- */
.sp-row-btn.sp-qr-btn { padding: 5px 8px; display: inline-flex; align-items: center; justify-content: center; vertical-align: middle; }
.sp-row-btn.sp-qr-btn .ic { width: 15px; height: 15px; margin: 0; }
.qrm-card { max-width: 660px !important; width: calc(100% - 32px); }
.qrm-card .modal-header h3 { display: inline-flex; align-items: center; gap: 8px; }
.qrm-body { display: grid; grid-template-columns: 232px minmax(0, 1fr); gap: 22px; align-items: start; }
.qrm-code { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.qrm-frame {
  position: relative; width: 232px; padding: 12px; border-radius: 0px;
  background: linear-gradient(150deg, #211A10, #0F0D0A 60%, #1D160C);
  box-shadow: inset 0 0 0 1px rgba(244, 199, 151, 0.28), 0 16px 34px -18px rgba(0, 0, 0, 0.7);
}
[data-theme="light"] .qrm-frame { background: linear-gradient(150deg, #FFFDF8, #F1E6D2); box-shadow: inset 0 0 0 1px rgba(154, 72, 23, 0.22), 0 14px 30px -18px rgba(120, 72, 30, 0.35); }
.qrm-svg { width: 100%; height: auto; display: block; border-radius: 0px; }
.qrm-c { position: absolute; width: 16px; height: 16px; border: 2px solid #E9B47A; pointer-events: none; }
.qrm-c.tl { top: 5px; left: 5px; border-right: 0; border-bottom: 0; border-top-left-radius: 0px; }
.qrm-c.tr { top: 5px; right: 5px; border-left: 0; border-bottom: 0; border-top-right-radius: 0px; }
.qrm-c.bl { bottom: 5px; left: 5px; border-right: 0; border-top: 0; border-bottom-left-radius: 0px; }
.qrm-c.br { bottom: 5px; right: 5px; border-left: 0; border-top: 0; border-bottom-right-radius: 0px; }
.qrm-local { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--status-online); text-align: center; line-height: 1.4; }
.qrm-local .ic { width: 13px; height: 13px; flex: none; }
.qrm-info { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.qrm-id { display: flex; align-items: center; gap: 10px; }
.qrm-flag { width: 34px !important; height: 23px !important; border-radius: 0px !important; overflow: hidden; flex: none; }
.qrm-flag svg { width: 100%; height: 100%; display: block; }
.qrm-id strong { display: block; font-size: 16px; color: var(--text-primary); }
.qrm-id small { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 12px; color: var(--text-muted); }
.qrm-id small b { font-family: var(--font-mono); color: var(--accent-ink); }
.qrm-proto { font: 800 10px var(--font-mono); letter-spacing: 0.1em; padding: 2px 7px; border-radius: 0px; color: #1A120A; background: linear-gradient(135deg, #F7D3A3, #D4894A); }
.qrm-spec { margin: 0; display: flex; flex-direction: column; border: 1px solid var(--border-card); border-radius: 0px; overflow: hidden; }
.qrm-spec > div { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 10px; align-items: center; padding: 8px 12px; }
.qrm-spec > div + div { border-top: 1px solid var(--border-subtle); }
.qrm-spec dt { font-size: 12px; color: var(--text-muted); }
.qrm-spec dd { margin: 0; display: flex; align-items: center; gap: 8px; font: 600 12.5px var(--font-mono); color: var(--text-primary); overflow-wrap: anywhere; word-break: break-all; }
.qrm-pw { flex: 1; min-width: 0; }
.qrm-eye { flex: none; font: 600 11px var(--font-sans); padding: 2px 9px; border-radius: 0px; border: 1px solid var(--border-card); background: transparent; color: var(--accent-ink); cursor: pointer; }
.qrm-eye:focus-visible { outline: 2px solid var(--border-focus); outline-offset: 2px; }
.qrm-tip { margin: 0; font-size: 12.5px; line-height: 1.55; color: var(--text-secondary); }
.qrm-warn { margin: 0; display: flex; align-items: flex-start; gap: 6px; font-size: 12px; line-height: 1.5; color: var(--status-warning); }
.qrm-warn .ic { width: 14px; height: 14px; flex: none; margin-top: 2px; }
.qrm-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }

/* ---- 响应式 ---- */
@media (max-width: 1200px) {
  .edge-hero { grid-template-columns: minmax(0, 1fr) minmax(300px, 340px); }
}
@media (max-width: 900px) {
  .edge-hero { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .edge-legend .edge-legend-tip { display: none; }
}
@media (max-width: 768px) {
  .edge-stage-wrap { min-height: 0; display: flex; flex-direction: column; }
  .edge-stage { position: relative; inset: auto; aspect-ratio: 16 / 10; width: 100%; }
  .edge-hud { position: static; max-width: none; border-radius: 0; border: 0; border-top: 1px solid var(--edge-glass-b); background: var(--bg-card); -webkit-backdrop-filter: none; backdrop-filter: none; }
  .edge-legend { position: static; padding: 0 14px 12px; background: var(--bg-card); }
  .lnp { padding: 16px 14px 14px; }
  .lnp-perf { margin: 2px -14px; }
  .lnp-total-main b { font-size: 26px; }
  .qrm-body { grid-template-columns: minmax(0, 1fr); }
  .qrm-code { order: -1; }
  .qrm-frame { width: min(240px, 100%); }
  .qrm-spec > div { grid-template-columns: 80px minmax(0, 1fr); }
  .qrm-actions .mx-btn-s { flex: 1 1 0; justify-content: center; min-height: 40px; }
}

/* 节点脉冲星图与拓扑动效 */

/* ==================== v7 总览旗舰 · 左右等高双舱（左：主视觉/指标/流程 ｜ 右：.sc-showcase 握手舞台 + .sc-ticket 咬口票据）
 * 与主站商城 / 短信站 / AI 站 / 邮箱站 v60 舞台同源；日间暖调羊绒米白、夜间深邃暖曜石
 * ==================================================================================== */
.ovw {
  --edge-live: #34D399;
  --ovx-ok: #34D399;
  --ovx-ok-ink: #6EE7B7;
  --ovx-ok-soft: rgba(52, 211, 153, 0.12);
  --ovx-ok-line: rgba(52, 211, 153, 0.30);
  --sc-gold: #F4C797;
  --hero-grid: rgba(244, 199, 151, 0.05);
  --hero-corner: rgba(244, 199, 151, 0.42);
  --ovx-cab-bg: linear-gradient(165deg, rgba(24, 31, 46, 0.96) 0%, rgba(17, 22, 34, 0.98) 100%);
  --ovx-cab-line: rgba(255, 255, 255, 0.085);
  --ovx-cab-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 24px 48px -30px rgba(0, 0, 0, 0.85);
  --ovx-sub-bg: rgba(10, 14, 22, 0.42);
  --ovx-cell: rgba(255, 255, 255, 0.028);
  --ovx-cell-line: rgba(255, 255, 255, 0.075);
  --tk-bg: linear-gradient(170deg, rgba(30, 38, 55, 0.96) 0%, rgba(20, 26, 39, 0.98) 100%);
  --tk-border: rgba(244, 199, 151, 0.22);
  --tk-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 14px 30px -18px rgba(0, 0, 0, 0.7);
  --tk-cell: rgba(10, 14, 22, 0.5);
  --tk-line: rgba(255, 255, 255, 0.07);
  --tk-dash: rgba(244, 199, 151, 0.34);
  --tk-notch: #131a29;
  --tk-gold: #F4C797;
  --tk-price: #F7CFA4;
  --stage-ring: inset 0 0 0 1px rgba(255, 255, 255, 0.07), 0 14px 30px -20px rgba(0, 0, 0, 0.8);
  --ovb-top: rgba(255, 255, 255, 0.022);
  --ovb-hi: rgba(255, 255, 255, 0.045);
  --ovb-hover-shadow: 0 18px 36px -24px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(226, 139, 78, 0.10);
}
[data-theme="light"] .ovw {
  --edge-live: #0F8A65;
  --ovx-ok: #10A372;
  --ovx-ok-ink: #0B7A55;
  --ovx-ok-soft: rgba(16, 163, 114, 0.10);
  --ovx-ok-line: rgba(16, 163, 114, 0.28);
  --sc-gold: #C98A4B;
  --hero-grid: rgba(168, 120, 72, 0.075);
  --hero-corner: rgba(176, 112, 60, 0.42);
  --ovx-cab-bg: linear-gradient(165deg, #FFFFFF 0%, #FDFAF4 100%);
  --ovx-cab-line: rgba(168, 138, 108, 0.24);
  --ovx-cab-shadow: inset 0 1px 0 #FFFFFF, 0 20px 40px -30px rgba(96, 62, 30, 0.34);
  --ovx-sub-bg: #F8F3EA;
  --ovx-cell: #FCF9F3;
  --ovx-cell-line: rgba(168, 138, 108, 0.22);
  --tk-bg: linear-gradient(170deg, #FFFDF8 0%, #FBF5EA 100%);
  --tk-border: rgba(176, 128, 80, 0.30);
  --tk-shadow: inset 0 1px 0 #FFFFFF, 0 10px 24px -16px rgba(96, 62, 30, 0.22);
  --tk-cell: rgba(255, 255, 255, 0.78);
  --tk-line: rgba(176, 128, 80, 0.20);
  --tk-dash: rgba(168, 112, 62, 0.42);
  --tk-notch: #FCF9F3;
  --tk-gold: #A0612C;
  --tk-price: #9A4817;
  --stage-ring: inset 0 0 0 1px rgba(120, 80, 40, 0.28), 0 14px 30px -20px rgba(96, 62, 30, 0.45);
  --ovb-top: #FFFDF9;
  --ovb-hi: #FFFFFF;
  --ovb-hover-shadow: 0 18px 36px -26px rgba(120, 72, 30, 0.38), 0 0 0 1px rgba(194, 103, 47, 0.08);
}
@keyframes ovx-green { 0%, 100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.45); } 50% { box-shadow: 0 0 0 4px rgba(16, 185, 129, 0); } }
@keyframes ovx-gold { 0%, 100% { box-shadow: 0 0 0 2px rgba(244, 199, 151, 0.16); } 50% { box-shadow: 0 0 0 5px rgba(244, 199, 151, 0.04); } }

/* ---------- 双舱骨架：align-items: stretch 严格等高 ---------- */
.ovx-duo {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.04fr);
  gap: 20px;
  align-items: stretch;
  padding-top: 6px;
}
.ovx-main,
.ovx-side {
  position: relative;
  min-width: 0;
  border-radius: 0px;
  background: var(--ovx-cab-bg);
  border: 1px solid var(--ovx-cab-line);
  box-shadow: var(--ovx-cab-shadow);
}

/* ---------- 左舱 ---------- */
.ovx-main {
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 22px;
  padding: 32px 30px 26px;
}
.ovx-glow {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    radial-gradient(420px 240px at 0% 0%, rgba(226, 139, 78, 0.16), transparent 70%),
    linear-gradient(var(--hero-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--hero-grid) 1px, transparent 1px);
  background-size: auto, 28px 28px, 28px 28px;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, 0.55) 46%, transparent 78%);
  mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, 0.55) 46%, transparent 78%);
}
[data-theme="light"] .ovx-glow { background-image: radial-gradient(420px 240px at 0% 0%, rgba(232, 160, 100, 0.16), transparent 70%), linear-gradient(var(--hero-grid) 1px, transparent 1px), linear-gradient(90deg, var(--hero-grid) 1px, transparent 1px); }
.ovx-vf { position: absolute; inset: 12px; z-index: -1; pointer-events: none; }
.ovx-vf .vf-corner { position: absolute; width: 14px; height: 14px; border: 0 solid var(--hero-corner); }
.ovx-vf .vf-corner:nth-child(1) { left: 0; top: 0; border-left-width: 1.5px; border-top-width: 1.5px; border-top-left-radius: 0px; }
.ovx-vf .vf-corner:nth-child(2) { right: 0; top: 0; border-right-width: 1.5px; border-top-width: 1.5px; border-top-right-radius: 0px; }
.ovx-vf .vf-corner:nth-child(3) { left: 0; bottom: 0; border-left-width: 1.5px; border-bottom-width: 1.5px; border-bottom-left-radius: 0px; }
.ovx-vf .vf-corner:nth-child(4) { right: 0; bottom: 0; border-right-width: 1.5px; border-bottom-width: 1.5px; border-bottom-right-radius: 0px; }

.ovx-copy { display: flex; flex-direction: column; align-items: flex-start; }
.ovx-cap {
  display: inline-flex; align-items: center; gap: 8px; max-width: 100%;
  margin-bottom: 18px; padding: 5px 13px 5px 11px;
  border-radius: 0px;
  font-size: 12px; font-weight: 650; line-height: 1.35;
  color: var(--ovx-ok-ink); background: var(--ovx-ok-soft); border: 1px solid var(--ovx-ok-line);
}
.ovx-cap > span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ovx-cap i { flex: none; width: 7px; height: 7px; border-radius: 0px; background: var(--ovx-ok); animation: ovx-green 2.2s ease-in-out infinite; }
.ovx-cap.is-wait, .ovx-cap.is-idle { color: var(--status-warning); background: var(--status-warning-bg); border-color: color-mix(in srgb, var(--status-warning) 30%, transparent); }
.ovx-cap.is-wait i, .ovx-cap.is-idle i { background: var(--status-warning); animation: none; }
.ovx-main h1 {
  margin: 0 0 14px;
  font-family: var(--font-sans);
  font-size: clamp(28px, 2.45vw, 38px);
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.035em;
  font-feature-settings: "cv02", "cv03", "cv04", "cv11";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  color: var(--text-primary);
}
.ovx-main h1 em {
  font-style: normal;
  background: linear-gradient(120deg, #F4C797 0%, #E28B4E 55%, #C9662B 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
[data-theme="light"] .ovx-main h1 em { background-image: linear-gradient(120deg, #C8743A 0%, #A9531F 60%, #8F4418 100%); }
.ovx-sub { margin: 0; max-width: 34em; font-size: 14.5px; line-height: 1.68; letter-spacing: -0.005em; color: var(--text-muted); }

.ovx-metrics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.ovx-metric {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; gap: 3px; min-width: 0;
  padding: 14px 16px 13px;
  border-radius: 0px;
  background: var(--ovx-cell);
  border: 1px solid var(--ovx-cell-line);
}
.ovx-metric::before {
  content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 2px; border-radius: 0px;
  background: linear-gradient(180deg, #F4C797, #DF7E3E);
  opacity: 0.85;
}
.ovx-metric b { font: 700 20px/1.2 var(--font-sans); letter-spacing: -0.03em; font-feature-settings: "cv11", "ss01"; -webkit-font-smoothing: antialiased; color: var(--text-primary); font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ovx-metric span { font-size: 12px; font-weight: 500; letter-spacing: 0.01em; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.ovx-bottom { display: flex; flex-direction: column; gap: 18px; }
.ovx-flow {
  position: relative;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px;
  margin: 0; padding: 18px 10px 16px; list-style: none;
  border-radius: 0px; background: var(--ovx-sub-bg); border: 1px solid var(--ovx-cell-line);
}
.ovx-flow::before {
  content: ""; position: absolute; left: 19%; right: 19%; top: 39px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--tk-dash) 12%, var(--tk-dash) 88%, transparent);
  -webkit-mask-image: repeating-linear-gradient(90deg, #000 0 5px, transparent 5px 9px);
  mask-image: repeating-linear-gradient(90deg, #000 0 5px, transparent 5px 9px);
}
.ovx-step { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; min-width: 0; text-align: center; }
.ovx-step-ic {
  position: relative; z-index: 1;
  display: grid; place-items: center; width: 42px; height: 42px; border-radius: 0px;
  color: var(--accent-ink);
  background: linear-gradient(180deg, rgba(244, 199, 151, 0.12), rgba(226, 139, 78, 0.05)), var(--bg-card);
  border: 1px solid var(--accent-border);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 8px 18px -12px rgba(212, 118, 59, 0.55);
}
[data-theme="light"] .ovx-step-ic { background: linear-gradient(180deg, #FFFDF9 0%, #F7EFE4 100%); }
.ovx-step-ic .ic { width: 17px; height: 17px; }
.ovx-step-ic b {
  position: absolute; right: -5px; top: -5px;
  display: grid; place-items: center; width: 17px; height: 17px; border-radius: 0px;
  font: 800 9.5px var(--font-mono); color: #1A1206;
  background: linear-gradient(135deg, #F8D4A8 0%, #E58D4E 100%);
  box-shadow: 0 0 0 2px var(--bg-card);
}
.ovx-step-t { display: flex; flex-direction: column; gap: 2px; min-width: 0; max-width: 100%; }
.ovx-step-t strong { font-size: 12.5px; font-weight: 700; line-height: 1.3; color: var(--text-primary); }
.ovx-step-t small { font-size: 11px; line-height: 1.35; color: var(--text-muted); }
.ovx-cta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.ovx-cta .mx-btn { height: 46px; padding: 0 16px; border-radius: 0px; font-size: 14px; }
.ovx-cta .mx-btn-primary { box-shadow: var(--cta-shadow); }
.ovx-cta .mx-btn-primary:hover { box-shadow: var(--cta-hover-shadow); }
.ovx-cta .mx-btn .ic { width: 16px; height: 16px; flex: none; }
.ovx-cta .mx-btn > span { overflow: hidden; text-overflow: ellipsis; }

/* ---------- 右舱 ---------- */
.ovx-side { display: flex; flex-direction: column; padding: 14px; }
.ovx-showcase { flex: 1 1 auto; display: flex; flex-direction: column; gap: 12px; min-height: 0; }
.ovx-showcase .sc-stage-card {
  flex: 1 1 auto; display: flex; flex-direction: column; gap: 10px; min-height: 0;
  padding: 10px; border-radius: 0px;
  border: 1px solid var(--ovx-cell-line); background: var(--ovx-sub-bg);
}
/* v8：顶部栏两行布局 —— 第一行标题 + 网络类型标签，第二行 7 国胶囊自适应网格（容器查询按舱宽切换 4 列 / 7 列竖排 / 7 列横排） */
.ovx-showcase .sc-bar {
  container-type: inline-size; container-name: ovx-bar;
  display: flex; flex-direction: column; align-items: stretch; gap: 8px;
}
.ovx-showcase .sc-bar-title { display: flex; align-items: center; gap: 8px; min-width: 0; min-height: 22px; padding: 0 2px; font-size: 12.5px; font-weight: 700; color: var(--text-secondary); }
.ovx-showcase .sc-bar-name { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ovx-showcase .sc-bar-tag {
  flex: none; display: inline-flex; align-items: center; gap: 5px; height: 20px; padding: 0 9px; margin-left: auto;
  border-radius: 0px; border: 1px solid rgba(244, 199, 151, 0.38);
  background: linear-gradient(135deg, rgba(244, 199, 151, 0.14) 0%, rgba(229, 141, 78, 0.05) 100%);
  color: var(--sc-gold, #E8B27F); font-size: 10.5px; font-weight: 700; letter-spacing: 0.04em; white-space: nowrap;
}
.ovx-showcase .sc-bar-tag::before { content: ""; width: 5px; height: 5px; border-radius: 0px; background: currentColor; opacity: 0.85; }
[data-theme="light"] .ovx-showcase .sc-bar-tag { background: #FFF6EA; border-color: rgba(184, 116, 60, 0.40); color: #8A4A22; }
.ovx-showcase .sc-live-dot { flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--ovx-ok); animation: ovx-green 2.2s ease-in-out infinite; }
.ovx-showcase .sc-pills {
  width: 100%;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; padding: 4px;
  border-radius: 0px; background: var(--bg-input); border: 1px solid var(--ovx-cell-line);
}
.ovx-showcase .sc-pill {
  position: relative;
  display: flex; align-items: center; justify-content: center; gap: 6px; min-width: 0; height: 30px; padding: 0 8px;
  border-radius: 0px; border: 1px solid transparent; background: transparent;
  color: var(--text-muted); font: inherit; font-size: 11.5px; font-weight: 650; cursor: pointer;
  transition: color 180ms ease, border-color 180ms ease, box-shadow 180ms ease, background-color 180ms ease, transform 180ms ease;
}
@container ovx-bar (min-width: 440px) {
  /* 中等舱宽：7 列，旗帜在上、国名在下，舒展不挤压 */
  .ovx-showcase .sc-pills { grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 3px; }
  .ovx-showcase .sc-pill { flex-direction: column; gap: 3px; height: 42px; padding: 0 4px; font-size: 11px; }
}
@container ovx-bar (min-width: 640px) {
  /* 宽舱：7 列横排胶囊 */
  .ovx-showcase .sc-pills { gap: 4px; border-radius: 0px; }
  .ovx-showcase .sc-pill { flex-direction: row; gap: 6px; height: 30px; padding: 0 8px; font-size: 11.5px; border-radius: 0px; }
}
.ovx-showcase .sc-pill > span:not(.ovx-pflag-wrap) { max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ovx-showcase .sc-pill:hover { color: var(--text-primary); background: rgba(244, 199, 151, 0.06); }
.ovx-showcase .sc-pill:focus-visible { outline: none; box-shadow: 0 0 0 2px var(--sc-gold); }
.ovx-showcase .sc-pill.is-active {
  color: var(--text-primary);
  background: linear-gradient(135deg, rgba(244, 199, 151, 0.16) 0%, rgba(229, 141, 78, 0.06) 100%);
  border-color: rgba(244, 199, 151, 0.55);
  box-shadow: 0 2px 10px -4px rgba(212, 118, 59, 0.45);
}
[data-theme="light"] .ovx-showcase .sc-pill.is-active { background: linear-gradient(135deg, #FFF6EA 0%, #FBE9D3 100%); border-color: rgba(184, 116, 60, 0.55); color: #6E3818; }
.ovx-pflag { flex: none; display: block; width: 17px; height: 12px; border-radius: 0px; overflow: hidden; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.18); }
.ovx-pflag svg { display: block; width: 100%; height: 100%; }
.ovx-pflag-wrap { position: relative; flex: none; display: block; }
.ovx-pdot { position: absolute; right: -3px; top: -3px; width: 6px; height: 6px; border-radius: 50%; background: transparent; }
.sc-pill[data-state] .ovx-pdot { box-shadow: 0 0 0 1.5px var(--bg-input); }
.sc-pill[data-state="is-ok"] .ovx-pdot { background: var(--ovx-ok); }
.sc-pill[data-state="is-wait"] .ovx-pdot { background: var(--status-warning); }

/* 深色光学舞台（日夜两套主题下都保持深色，形成视觉焦点） */
.ovx-stage {
  position: relative; flex: 1 1 auto; min-height: 0;
  display: flex; flex-direction: column; justify-content: space-between; gap: 14px;
  padding: 16px 16px 48px;
  border-radius: 0px; overflow: hidden; isolation: isolate;
  background: radial-gradient(120% 90% at 50% 0%, #1D2436 0%, #0D1119 58%, #080A10 100%);
  box-shadow: var(--stage-ring);
  color: #F6EFE6;
  perspective: 1000px;
}
.ovx-aurora {
  position: absolute; inset: -18%; z-index: -1; pointer-events: none;
  background:
    radial-gradient(34% 32% at 28% 30%, rgba(229, 141, 78, 0.26), transparent 70%),
    radial-gradient(30% 30% at 74% 66%, rgba(52, 211, 153, 0.12), transparent 70%);
  animation: ovx-aurora 16s ease-in-out infinite alternate;
}
@keyframes ovx-aurora { from { transform: translate3d(-3%, -2%, 0) scale(1); } to { transform: translate3d(3%, 2%, 0) scale(1.06); } }
.ovx-dots {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, 0.10) 1px, transparent 1.2px);
  background-size: 18px 18px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 0%, transparent 80%);
  mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 0%, transparent 80%);
}

/* 路由拓扑：设备 → 骨干机房 → 静态出口 */
.ovx-topo { display: grid; grid-template-columns: auto minmax(0, 1fr) auto minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 2px 4px 0; }
.ovx-end { display: flex; flex-direction: column; align-items: center; gap: 5px; min-width: 56px; }
.ovx-end small, .ovx-hub small { font-size: 10.5px; font-weight: 600; letter-spacing: 0.02em; color: rgba(246, 239, 230, 0.66); white-space: nowrap; }
.ovx-end-ic {
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 0px;
  color: #F4C797; background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.ovx-end.is-exit .ovx-end-ic { color: #6EE7B7; border-color: rgba(52, 211, 153, 0.35); background: rgba(52, 211, 153, 0.08); }
.ovx-end-ic .ic { width: 16px; height: 16px; }
.ovx-wire {
  position: relative; height: 2px; margin-bottom: 18px;
  background: repeating-linear-gradient(90deg, rgba(244, 199, 151, 0.42) 0 5px, transparent 5px 9px);
}
.ovx-wire.is-out { background: repeating-linear-gradient(90deg, rgba(52, 211, 153, 0.45) 0 5px, transparent 5px 9px); }
.ovx-wire i {
  position: absolute; top: -2px; left: 0; width: 6px; height: 6px; border-radius: 0px;
  background: #F8D4A8; box-shadow: 0 0 8px rgba(244, 199, 151, 0.9);
  animation: ovx-pkt 2.4s linear infinite;
}
.ovx-wire.is-out i { background: #6EE7B7; box-shadow: 0 0 8px rgba(52, 211, 153, 0.9); }
.ovx-wire i:nth-child(2) { animation-delay: 0.8s; }
.ovx-wire i:nth-child(3) { animation-delay: 1.6s; }
@keyframes ovx-pkt { 0% { left: 0; opacity: 0; } 12% { opacity: 1; } 88% { opacity: 1; } 100% { left: calc(100% - 6px); opacity: 0; } }
.ovx-hub { position: relative; display: flex; flex-direction: column; align-items: center; gap: 5px; }
.ovx-hub-core {
  position: relative; z-index: 1;
  display: grid; place-items: center; width: 50px; height: 50px; border-radius: 0px;
  background: radial-gradient(circle at 50% 35%, #2A3247 0%, #141A28 100%);
  border: 1px solid rgba(244, 199, 151, 0.55);
  box-shadow: 0 0 0 4px rgba(244, 199, 151, 0.08), 0 10px 22px -10px rgba(226, 139, 78, 0.7);
}
.ovx-hub-flag { display: block; width: 26px; height: 18px; border-radius: 0px; overflow: hidden; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.2); }
.ovx-hub-flag svg { display: block; width: 100%; height: 100%; }
.ovx-hub-ring {
  position: absolute; left: 50%; top: 25px; width: 50px; height: 50px; margin: -25px 0 0 -25px;
  border-radius: 0px; border: 1px solid rgba(244, 199, 151, 0.45);
  animation: ovx-ring 2.8s ease-out infinite;
}
.ovx-hub-ring.is-2 { animation-delay: 1.4s; }
@keyframes ovx-ring { 0% { transform: scale(1); opacity: 0.8; } 100% { transform: scale(1.9); opacity: 0; } }
.ovx-hub small { font-family: var(--font-mono); letter-spacing: 0.14em; color: #F4C797; }

/* 握手卡片：毛玻璃 + 轻微景深倾角 */
.ovx-hs-wrap { display: flex; justify-content: center; }
.ovx-hs {
  position: relative; overflow: hidden;
  width: min(420px, 100%);
  display: flex; flex-direction: column; gap: 10px;
  padding: 13px 14px 12px;
  border-radius: 0px;
  background: linear-gradient(160deg, rgba(40, 47, 66, 0.86) 0%, rgba(20, 25, 37, 0.92) 100%);
  border: 1px solid rgba(255, 255, 255, 0.13);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 22px 40px -18px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(244, 199, 151, 0.06);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  transform: rotateX(7deg);
  transform-origin: 50% 100%;
}
.ovx-hs-sheen {
  position: absolute; top: 0; bottom: 0; left: -40%; width: 40%; pointer-events: none;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.07), transparent);
  animation: ovx-sheen 6.5s ease-in-out infinite;
}
@keyframes ovx-sheen { 0%, 60% { transform: translateX(0); } 100% { transform: translateX(360%); } }
.ovx-hs-head { display: flex; align-items: center; gap: 10px; min-width: 0; }
.ovx-hs-flag { flex: none; display: block; width: 30px; height: 21px; border-radius: 0px; overflow: hidden; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.18), 0 3px 8px rgba(0, 0, 0, 0.35); }
.ovx-hs-flag svg { display: block; width: 100%; height: 100%; }
.ovx-hs-id { display: flex; flex-direction: column; gap: 3px; flex: 1; min-width: 0; }
.ovx-hs-idrow { display: flex; align-items: center; gap: 7px; min-width: 0; }
.ovx-hs-id b { flex: 0 1 auto; min-width: 0; font: 700 12.5px var(--font-mono); letter-spacing: 0.05em; color: #FFF4E6; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ovx-hs-net-pill {
  flex: none; display: inline-flex; align-items: center; height: 18px; padding: 0 8px;
  border-radius: 0px; border: 1px solid rgba(244, 199, 151, 0.42);
  background: linear-gradient(135deg, rgba(244, 199, 151, 0.20) 0%, rgba(229, 141, 78, 0.08) 100%);
  color: #F8D7B0; font-size: 10.5px; font-weight: 700; letter-spacing: 0.04em; line-height: 1; white-space: nowrap;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.10);
}
.ovx-hs-id small { display: inline-flex; align-items: center; gap: 5px; font-size: 10.5px; font-weight: 600; letter-spacing: 0.02em; color: rgba(246, 239, 230, 0.62); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ovx-hs-id small::before { content: ""; flex: none; width: 5px; height: 5px; border-radius: 0px; background: #F4C797; box-shadow: 0 0 6px rgba(244, 199, 151, 0.7); }
.ovx-ok {
  flex: none; display: inline-flex; align-items: center; gap: 6px; height: 23px; padding: 0 9px;
  border-radius: 0px; font-size: 10.5px; font-weight: 700; white-space: nowrap;
  color: #6EE7B7; background: rgba(52, 211, 153, 0.12); border: 1px solid rgba(52, 211, 153, 0.32);
}
.ovx-ok i { flex: none; width: 6px; height: 6px; border-radius: 0px; background: #34D399; animation: ovx-green 2s ease-in-out infinite; }
.ovx-ok b { font: 800 11px var(--font-mono); color: #A7F3D0; }
.ovx-uri {
  display: block; padding: 8px 10px; border-radius: 0px;
  background: rgba(0, 0, 0, 0.34); border: 1px solid rgba(255, 255, 255, 0.07);
  font: 500 11.5px/1.45 var(--font-mono); color: rgba(246, 239, 230, 0.55);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ovx-uri span { color: rgba(246, 239, 230, 0.42); }
.ovx-uri b { font-weight: 650; color: #F7CFA4; }
.ovx-wave { display: flex; align-items: flex-end; gap: 2px; height: 26px; padding: 0 2px; }
.ovx-wave i {
  flex: 1 1 0; height: var(--h, 50%); border-radius: 0px;
  background: linear-gradient(180deg, #34D399 0%, rgba(52, 211, 153, 0.18) 100%);
  transform-origin: 50% 100%;
  animation: ovx-wave 1.8s ease-in-out var(--d, 0s) infinite;
}
@keyframes ovx-wave { 0%, 100% { transform: scaleY(0.55); opacity: 0.7; } 50% { transform: scaleY(1); opacity: 1; } }
.ovx-hs-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin: 0; padding: 0; list-style: none; }
.ovx-hs-steps li {
  display: flex; align-items: center; gap: 6px; min-width: 0; padding: 6px 7px;
  border-radius: 0px; background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.07);
  font-size: 10.5px; font-weight: 650; color: rgba(246, 239, 230, 0.85);
}
.ovx-hs-steps li span { min-width: 0; line-height: 1.25; overflow-wrap: anywhere; }
.ovx-hs-steps li i { flex: none; display: grid; place-items: center; width: 15px; height: 15px; border-radius: 0px; color: #052E1F; background: #34D399; box-shadow: 0 0 8px rgba(52, 211, 153, 0.55); }
.ovx-hs-steps li i .ic { width: 10px; height: 10px; stroke-width: 3; }
/* 切换机房：三阶段依次点亮 + 卡片轻弹 */
.ovx-stage.is-play .ovx-hs { animation: ovx-hs-in 0.6s cubic-bezier(0.16, 1, 0.3, 1) both; }
.ovx-stage.is-play .ovx-hs-steps li { animation: ovx-step 0.45s ease-out both; }
.ovx-stage.is-play .ovx-hs-steps li:nth-child(1) { animation-delay: 0.15s; }
.ovx-stage.is-play .ovx-hs-steps li:nth-child(2) { animation-delay: 0.45s; }
.ovx-stage.is-play .ovx-hs-steps li:nth-child(3) { animation-delay: 0.75s; }
.ovx-stage.is-play .ovx-ok { animation: ovx-pop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 0.95s both; }
.ovx-stage.is-play .ovx-hub-core { animation: ovx-pop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both; }
@keyframes ovx-hs-in { from { opacity: 0; transform: rotateX(7deg) translate3d(0, 12px, 0); } to { opacity: 1; transform: rotateX(7deg) translate3d(0, 0, 0); } }
@keyframes ovx-step { from { opacity: 0.25; filter: grayscale(1); } to { opacity: 1; filter: none; } }
@keyframes ovx-pop { 0% { transform: scale(0.86); } 60% { transform: scale(1.06); } 100% { transform: scale(1); } }

/* 底部毛玻璃 HUD */
.ovx-hud {
  position: absolute; left: 50%; bottom: 11px; z-index: 5; transform: translateX(-50%);
  display: flex; align-items: center; gap: 8px; max-width: calc(100% - 20px);
  padding: 5px 13px 5px 10px; border-radius: 0px;
  color: #F6EFE6; background: rgba(14, 16, 22, 0.55); border: 1px solid rgba(255, 255, 255, 0.16);
  -webkit-backdrop-filter: blur(10px) saturate(1.2);
  backdrop-filter: blur(10px) saturate(1.2);
  font-size: 10.5px; font-weight: 600; line-height: 1.3; white-space: nowrap;
}
.ovx-hud > span { flex: none; }
.ovx-hud .sc-hud-sep { width: 1px; height: 11px; background: rgba(255, 255, 255, 0.3); }
.ovx-hud-dot { width: 6px; height: 6px; border-radius: 50%; background: #34D399; animation: ovx-green 2s ease-in-out infinite; }
.ovx-hud-c { flex: 0 1 auto !important; min-width: 0; overflow: hidden; text-overflow: ellipsis; color: #FFE0B8; }

/* 半圆咬口实时通道规格票据 */
.ovx-showcase .sc-ticket {
  position: relative; flex: none; padding: 12px 14px; border-radius: 0px; overflow: hidden;
  background: var(--tk-bg); border: 1px solid var(--tk-border); box-shadow: var(--tk-shadow);
}
.ovx-showcase .sc-ticket::before {
  content: ""; position: absolute; left: 14px; right: 14px; top: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--sc-gold), transparent); opacity: 0.75;
}
.ovx-showcase .tk-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 9px; }
.ovx-showcase .tk-kicker { display: inline-flex; align-items: center; gap: 8px; min-width: 0; font-size: 11px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--tk-gold); white-space: nowrap; }
.ovx-showcase .tk-kicker > span:first-child { overflow: hidden; text-overflow: ellipsis; }
.ovx-showcase .tk-live { display: inline-flex; align-items: center; gap: 5px; padding: 2px 8px; border-radius: 0px; font-size: 10px; font-weight: 700; letter-spacing: 0.03em; text-transform: none; color: var(--ovx-ok-ink); background: var(--ovx-ok-soft); }
.ovx-showcase .tk-live i,
.ovx-showcase .tk-state i { flex: none; width: 6px; height: 6px; border-radius: 0px; background: currentColor; }
.ovx-showcase .tk-live i, .ovx-showcase .tk-state.is-ok i { background: var(--ovx-ok); animation: ovx-green 2s ease-in-out infinite; }
.ovx-showcase .tk-no { flex: none; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.06em; color: var(--text-muted); }
.ovx-showcase .tk-dest { display: flex; align-items: center; gap: 11px; margin-bottom: 6px; padding: 9px 10px; border-radius: 0px; background: var(--tk-cell); border: 1px solid var(--tk-line); }
.ovx-showcase .tk-chan { flex: none; display: block; width: 36px; height: 25px; border-radius: 0px; overflow: hidden; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.12), 0 3px 8px rgba(0, 0, 0, 0.22); }
.ovx-showcase .tk-chan svg { display: block; width: 100%; height: 100%; }
.ovx-showcase .tk-dest-main { display: flex; flex-direction: column; gap: 1px; flex: 1; min-width: 0; }
.ovx-showcase .tk-dest-main strong { display: block; font-size: 13px; font-weight: 700; color: var(--text-primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ovx-showcase .tk-state { display: inline-flex; align-items: center; gap: 6px; flex: none; height: 22px; padding: 0 9px; border-radius: 0px; font-size: 10.5px; font-weight: 700; white-space: nowrap; }
.ovx-showcase .tk-state.is-ok { color: var(--ovx-ok-ink); background: var(--ovx-ok-soft); }
.ovx-showcase .tk-state.is-wait { color: var(--status-warning); background: var(--status-warning-bg); }
.ovx-showcase .tk-state.is-soon { color: var(--text-muted); background: var(--ovx-cell); border: 1px solid var(--tk-line); }
.ovx-showcase .tk-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.ovx-showcase .tk-cell { display: flex; flex-direction: column; gap: 2px; min-width: 0; padding: 7px 10px; border-radius: 0px; background: var(--tk-cell); border: 1px solid var(--tk-line); }
.ovx-showcase .tk-cell small,
.ovx-showcase .tk-dest-main small,
.ovx-showcase .tk-price small { font-size: 10px; font-weight: 650; letter-spacing: 0.03em; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ovx-showcase .tk-cell strong { display: block; font-size: 12.4px; font-weight: 700; line-height: 1.35; color: var(--text-primary); overflow-wrap: anywhere; }
.ovx-showcase .tk-perf {
  position: relative; height: 16px; margin: 6px -14px; padding: 0 16px;
  background: linear-gradient(90deg, var(--tk-dash) 55%, transparent 0) center / 9px 1.5px repeat-x;
  background-origin: content-box; background-clip: content-box;
}
.ovx-showcase .tk-perf::before,
.ovx-showcase .tk-perf::after { content: ""; position: absolute; top: 0; width: 16px; height: 16px; border-radius: 0px; background: var(--tk-notch); border: 1px solid var(--tk-border); }
.ovx-showcase .tk-perf::before { left: -9px; }
.ovx-showcase .tk-perf::after { right: -9px; }
.ovx-showcase .tk-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.ovx-showcase .tk-chips { display: flex; flex-wrap: wrap; gap: 5px; min-width: 0; }
.ovx-showcase .tk-chip { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 9px; border-radius: 0px; border: 1px solid var(--tk-line); background: var(--tk-cell); color: var(--text-secondary); font-size: 10.5px; font-weight: 600; white-space: nowrap; }
.ovx-showcase .tk-chip i { flex: none; width: 5px; height: 5px; border-radius: 0px; background: var(--sc-gold); box-shadow: 0 0 6px rgba(244, 199, 151, 0.6); }
.ovx-showcase .tk-price { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.ovx-showcase .tk-price-row { display: inline-flex; align-items: baseline; gap: 5px; }
.ovx-showcase .tk-price strong { font: 800 25px/1.05 var(--font-mono); letter-spacing: -0.02em; color: var(--tk-price); font-variant-numeric: tabular-nums; white-space: nowrap; }
.ovx-showcase .tk-price em { font-style: normal; font-size: 11px; font-weight: 650; color: var(--text-muted); white-space: nowrap; }
.ovx-showcase .tk-price strong.is-bump { animation: ovx-pop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both; }
#ovx-ticket.is-play .tk-dest { animation: ovx-tk-flash 0.7s ease-out both; }
@keyframes ovx-tk-flash { from { box-shadow: 0 0 0 2px rgba(244, 199, 151, 0.45); } to { box-shadow: 0 0 0 0 rgba(244, 199, 151, 0); } }
.ovx-cta-price { font-family: var(--font-mono); color: var(--accent-ink); }

/* ---------- 核心规格矩阵 01 ~ 06 ---------- */
.ovb { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.ovb-card {
  position: relative; overflow: hidden; isolation: isolate;
  display: flex; flex-direction: column; gap: 10px; min-width: 0;
  padding: 22px 22px 18px; border-radius: 0px;
  background: linear-gradient(180deg, var(--ovb-top) 0%, var(--bg-card) 62%);
  border: 1px solid var(--border-card);
  box-shadow: inset 0 1px 0 var(--ovb-hi);
  transition: border-color var(--transition-fast), transform var(--transition-smooth), box-shadow var(--transition-smooth);
}
.ovb-card::before {
  content: ""; position: absolute; left: 22px; right: 22px; top: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--sc-gold), transparent);
  opacity: 0; transition: opacity var(--transition-smooth);
}
.ovb-card::after {
  content: ""; position: absolute; right: -60px; top: -60px; z-index: -1; width: 180px; height: 180px; border-radius: 0px;
  background: radial-gradient(circle, rgba(226, 139, 78, 0.16) 0%, transparent 70%);
  opacity: 0; transition: opacity var(--transition-smooth);
  pointer-events: none;
}
.ovb-card:hover { border-color: var(--border-hover); transform: translateY(-1px); box-shadow: inset 0 1px 0 var(--ovb-hi), var(--ovb-hover-shadow); }
.ovb-card:hover::before, .ovb-card:hover::after { opacity: 1; }
.ovb-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.ovb-ic {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 0px;
  color: var(--accent-ink);
  background: linear-gradient(180deg, rgba(244, 199, 151, 0.14), rgba(226, 139, 78, 0.05));
  border: 1px solid var(--accent-border);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07), 0 8px 18px -14px rgba(212, 118, 59, 0.7);
}
[data-theme="light"] .ovb-ic { background: linear-gradient(180deg, #FFF8EF 0%, #F8ECDC 100%); }
.ovb-ic .ic { width: 19px; height: 19px; }
.ovb-idx {
  display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: 0px;
  font: 700 11px var(--font-mono); letter-spacing: 0.1em; color: var(--tk-gold);
  background: var(--ovx-cell); border: 1px solid var(--tk-line);
}
.ovb-card h3 { margin: 0; font-size: 16px; font-weight: 700; letter-spacing: -0.01em; color: var(--text-primary); }
.ovb-card p { margin: 0; flex: 1; font-size: 13.5px; line-height: 1.7; color: var(--text-muted); }
.ovb-spec {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  margin-top: 6px; padding-top: 12px; border-top: 1px dashed var(--tk-line);
  font-size: 12px; color: var(--text-muted);
}
.ovb-spec b { font-weight: 650; color: var(--text-secondary); text-align: right; }

/* ---------- 响应式 ---------- */
@media (max-width: 1180px) {
  .ovx-duo { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 960px) { .ovb { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) {
  .ovx-duo { gap: 14px; padding-top: 0; }
  .ovx-main { padding: 24px 18px 18px; gap: 18px; border-radius: 0px; }
  .ovx-side { padding: 10px; border-radius: 0px; }
  .ovx-cap { margin-bottom: 14px; font-size: 11.5px; }
  .ovx-sub { font-size: 14px; }
  .ovx-metric { padding: 12px 13px 11px; }
  .ovx-metric b { font-size: 18px; }
  .ovx-flow { padding: 14px 6px 12px; }
  .ovx-step-t small { display: none; }
  .ovx-step-t strong { font-size: 11.5px; }
  .ovx-cta { grid-template-columns: minmax(0, 1fr); }
  .ovx-showcase .sc-bar-tag { padding: 0 7px; font-size: 10px; }
  .ovx-stage { min-height: 0; padding: 14px 10px 48px; }
  .ovx-topo { gap: 6px; padding: 0; }
  .ovx-end { min-width: 48px; }
  .ovx-hs { transform: none; }
  .ovx-hs-net-pill { height: 17px; padding: 0 6px; font-size: 10px; }
  .ovx-showcase .tk-dest { position: relative; align-items: flex-start; }
  .ovx-showcase .tk-dest-main small { line-height: 22px; }
  .ovx-showcase .tk-state { position: absolute; right: 10px; top: 9px; }
  .ovx-stage.is-play .ovx-hs { animation-name: ovx-hs-in-m; }
  @keyframes ovx-hs-in-m { from { opacity: 0; transform: translate3d(0, 10px, 0); } to { opacity: 1; transform: none; } }
  .ovx-hs-steps li { flex-direction: column; text-align: center; gap: 4px; padding: 6px 4px; }
  .ovx-hud > span:nth-child(5), .ovx-hud-c { display: none; }
  .ovx-showcase .tk-foot { flex-direction: column; align-items: stretch; }
  .ovx-showcase .tk-price { flex-direction: row; align-items: center; justify-content: space-between; }
  .ovb { grid-template-columns: minmax(0, 1fr); }
}

/* ==========================================================================
   v3.8 IP 纯净检测舱 .fubi-ipc-*（#fubi-ip-check-dock）— 暖金流光旗舰版
   - 外层 section 复刻 .miya-ann-wrap 的 gutter 留白，内卡 max-width 对齐 .miya-content > *
   - data-mode="compact"（总览首页） / "full"（#/ip-check 独立页）
   - 技术字段（IP / ASN / hosting / proxy）统一走 --ipc-font-num 等宽数字栈
   ========================================================================== */
.fubi-ipc-dock,
.fubi-ipc-guide {
  --ipc-font-num: "JetBrains Mono", "SF Mono", "Cascadia Code", "DIN Alternate", "Inter", system-ui, -apple-system, sans-serif;
  --ipc-gold-line: linear-gradient(90deg, transparent 0%, rgba(244, 199, 151, 0.55) 28%, var(--accent) 50%, rgba(244, 199, 151, 0.55) 72%, transparent 100%);
  --ipc-hl: inset 0 1px 0 rgba(255, 255, 255, 0.055);
}
.fubi-ipc-dock {
  --ipc-h: 40px;
  --ipc-pass: var(--status-online, #10b981);
  --ipc-pass-ink: #6EE7B7;
  --ipc-pass-bg: rgba(16, 185, 129, 0.12);
  --ipc-pass-bd: rgba(16, 185, 129, 0.34);
  --ipc-warn: var(--status-warning, #f59e0b);
  --ipc-warn-ink: #FCD34D;
  --ipc-warn-bg: rgba(245, 158, 11, 0.12);
  --ipc-warn-bd: rgba(245, 158, 11, 0.34);
  --ipc-fail: var(--status-danger, #ef4444);
  --ipc-fail-ink: #FCA5A5;
  --ipc-fail-bg: rgba(239, 68, 68, 0.11);
  --ipc-fail-bd: rgba(239, 68, 68, 0.32);
  display: block;
  width: 100%;
  padding: 18px var(--gutter, 24px) 0;
  box-sizing: border-box;
}
.fubi-ipc-dock[hidden] { display: none !important; }
.fubi-ipc-dock:not([hidden]) + .miya-content { padding-top: 16px; }
.fubi-ipc-dock *, .fubi-ipc-dock *::before, .fubi-ipc-dock *::after,
.fubi-ipc-guide *, .fubi-ipc-guide *::before, .fubi-ipc-guide *::after { box-sizing: border-box; }
.fubi-ipc-dock svg,
.fubi-ipc-guide svg { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.fubi-ipc-dock svg .fill { fill: currentColor; stroke: none; }

.fubi-ipc-card {
  position: relative;
  max-width: var(--content-max-w, 1440px);
  margin: 0 auto;
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  background:
    radial-gradient(640px 220px at 0% 0%, rgba(226, 139, 78, 0.11), transparent 70%),
    radial-gradient(520px 220px at 100% 100%, rgba(226, 139, 78, 0.045), transparent 72%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.018) 0%, transparent 40%),
    var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 0px;
  box-shadow: var(--ipc-hl), 0 1px 2px rgba(0, 0, 0, 0.3), 0 22px 44px -28px rgba(0, 0, 0, 0.7);
  overflow: hidden;
}
/* 顶缘一道克制的暖金流光细线 */
.fubi-ipc-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: var(--ipc-gold-line);
  background-size: 200% 100%;
  animation: fubi-ipc-sheen 7s linear infinite;
  opacity: 0.85;
  pointer-events: none;
}
@keyframes fubi-ipc-sheen { from { background-position: 100% 0; } to { background-position: -100% 0; } }

/* ---------- Header ---------- */
.fubi-ipc-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  flex-wrap: wrap;
}
.fubi-ipc-brand { display: flex; align-items: center; gap: 12px; min-width: 0; flex: 1 1 280px; }
.fubi-ipc-brand-ic {
  width: var(--ipc-h); height: var(--ipc-h);
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  color: var(--accent-ink, var(--accent));
  background: linear-gradient(160deg, rgba(244, 199, 151, 0.20) 0%, rgba(226, 139, 78, 0.06) 100%);
  border: 1px solid var(--accent-border);
  border-radius: 0px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.10), 0 8px 18px -10px rgba(226, 139, 78, 0.6);
}
.fubi-ipc-brand-ic svg { width: 20px; height: 20px; }
.fubi-ipc-brand-ic svg path { transform-origin: 12px 12px; animation: fubi-ipc-sweep 3.2s linear infinite; }
@keyframes fubi-ipc-sweep { to { transform: rotate(360deg); } }
.fubi-ipc-titles { min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.fubi-ipc-title {
  margin: 0;
  font: 650 16.5px/1.25 var(--font-sans);
  letter-spacing: -0.02em;
  color: var(--text-primary);
}
.fubi-ipc-subline { margin: 0; display: flex; align-items: center; gap: 8px 10px; flex-wrap: wrap; }
.fubi-ipc-sub { font-size: 12.5px; font-weight: 450; line-height: 1.45; letter-spacing: 0.005em; color: var(--text-muted); }
.fubi-ipc-pill {
  display: inline-flex; align-items: center; gap: 6px;
  height: 20px; padding: 0 8px;
  font-size: 11px; font-weight: 600; line-height: 1; letter-spacing: 0.01em; white-space: nowrap;
  color: var(--text-secondary);
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: 0px;
  box-shadow: var(--ipc-hl);
}
.fubi-ipc-pill-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--text-faint); }
.fubi-ipc-dock:has(#ipc-body[data-state="ready"] #ipc-grade-badge[data-grade]:not([data-grade=""])) .fubi-ipc-pill-dot {
  background: var(--ipc-pass); box-shadow: 0 0 0 3px var(--ipc-pass-bg);
}
.fubi-ipc-dock:has(#ipc-body[data-state="ready"] #ipc-grade-badge[data-grade="C"]) .fubi-ipc-pill-dot {
  background: var(--ipc-fail); box-shadow: 0 0 0 3px var(--ipc-fail-bg);
}
.fubi-ipc-dock:has(#ipc-body[data-state="ready"] #ipc-grade-badge[data-grade="B"]) .fubi-ipc-pill-dot {
  background: var(--ipc-warn); box-shadow: 0 0 0 3px var(--ipc-warn-bg);
}
.fubi-ipc-dock:has(#ipc-body[data-state="loading"]) .fubi-ipc-pill-dot {
  background: var(--accent); animation: fubi-ipc-blink 1s ease-in-out infinite;
}
.fubi-ipc-dock:has(#ipc-body[data-state="error"]) .fubi-ipc-pill-dot { background: var(--ipc-fail); }
@keyframes fubi-ipc-blink { 50% { opacity: 0.25; } }

/* 表单：输入框与两个按钮同高 var(--ipc-h) 严格水平对齐 */
.fubi-ipc-form { display: flex; align-items: stretch; gap: 8px; flex: 1 1 460px; max-width: 620px; margin: 0; }
.fubi-ipc-field {
  position: relative; flex: 1 1 auto; min-width: 0;
  display: flex; align-items: center;
  height: var(--ipc-h); margin: 0;
}
.fubi-ipc-field-ic { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--text-faint); pointer-events: none; }
.fubi-ipc-input {
  width: 100%; height: 100%; margin: 0;
  padding: 0 12px 0 36px;
  font: 500 13.5px/1 var(--ipc-font-num);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  background: var(--bg-input);
  border: 1px solid var(--border-card);
  border-radius: 0px;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.22);
  outline: none;
  transition: border-color .16s ease, box-shadow .16s ease;
}
.fubi-ipc-input::placeholder { font-family: var(--font-sans); letter-spacing: 0; color: var(--text-faint); }
.fubi-ipc-input:focus { border-color: var(--border-focus); box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.22), 0 0 0 3px var(--accent-subtle); }
.fubi-ipc-field:focus-within .fubi-ipc-field-ic { color: var(--accent); }
.fubi-ipc-btn {
  flex: none;
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  height: var(--ipc-h); padding: 0 15px; margin: 0;
  font: 600 13px/1 var(--font-sans); letter-spacing: 0.005em; white-space: nowrap;
  border-radius: 0px; cursor: pointer;
  transition: background .16s ease, border-color .16s ease, box-shadow .16s ease, transform .12s ease, color .16s ease;
}
.fubi-ipc-btn svg { width: 15px; height: 15px; }
.fubi-ipc-btn:active { transform: translateY(1px); }
.fubi-ipc-btn:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--accent-subtle); }
.fubi-ipc-btn[disabled] { opacity: 0.55; cursor: not-allowed; transform: none; }
.fubi-ipc-btn-primary { color: #fff; background: var(--accent-gradient); border: 1px solid transparent; box-shadow: var(--cta-shadow); }
.fubi-ipc-btn-primary:hover:not([disabled]) { background: var(--accent-gradient-hover, var(--accent-gradient)); box-shadow: var(--cta-hover-shadow, var(--cta-shadow)); }
.fubi-ipc-btn-ghost { color: var(--text-secondary); background: var(--bg-card-subtle); border: 1px solid var(--border-card); box-shadow: var(--ipc-hl); }
.fubi-ipc-btn-ghost:hover:not([disabled]) { color: var(--accent-ink, var(--accent)); border-color: var(--border-hover); background: var(--accent-subtle); }

/* ---------- Body ---------- */
.fubi-ipc-body { display: flex; flex-direction: column; gap: 12px; transition: opacity .2s ease; }
.fubi-ipc-body[data-state="loading"] { opacity: 0.62; pointer-events: none; }
.fubi-ipc-body[data-state="loading"] .fubi-ipc-v,
.fubi-ipc-body[data-state="loading"] .fubi-ipc-ip,
.fubi-ipc-body[data-state="loading"] .fubi-ipc-loc {
  color: transparent !important;
  background: linear-gradient(90deg, var(--bg-card-subtle) 0%, var(--bg-card-hover) 50%, var(--bg-card-subtle) 100%);
  background-size: 200% 100%;
  border-radius: 0px;
  animation: fubi-ipc-shimmer 1.2s ease-in-out infinite;
}
@keyframes fubi-ipc-shimmer { from { background-position: 100% 0; } to { background-position: -100% 0; } }

/* ---------- 主结果横幅：径向光晕 + 双层微光描边，光晕色随评级切换 ---------- */
.fubi-ipc-summary {
  --ipc-halo: rgba(226, 139, 78, 0.10);
  --ipc-halo-line: rgba(244, 199, 151, 0.34);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex; align-items: center; justify-content: space-between; gap: 12px 18px;
  padding: 14px 14px 14px 16px;
  background:
    radial-gradient(380px 150px at 0% 50%, rgba(226, 139, 78, 0.09), transparent 72%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.028) 0%, rgba(255, 255, 255, 0) 100%),
    var(--bg-card-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: 0px;
  box-shadow: var(--ipc-hl), inset 0 0 0 1px rgba(255, 255, 255, 0.012);
  transition: border-color .3s ease;
}
.fubi-ipc-summary::before {
  content: "";
  position: absolute; z-index: -1;
  top: -60%; bottom: -60%; right: -6%; width: 58%;
  background: radial-gradient(closest-side, var(--ipc-halo), transparent);
  pointer-events: none;
  transition: background .3s ease;
}
.fubi-ipc-summary::after {
  content: "";
  position: absolute; left: 14px; right: 14px; top: 0; height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--ipc-halo-line) 50%, transparent 100%);
  pointer-events: none;
}
.fubi-ipc-summary:has(#ipc-grade-badge[data-grade^="A"]) { --ipc-halo: rgba(16, 185, 129, 0.17); --ipc-halo-line: rgba(110, 231, 183, 0.50); border-color: rgba(16, 185, 129, 0.22); }
.fubi-ipc-summary:has(#ipc-grade-badge[data-grade="B"])  { --ipc-halo: rgba(245, 158, 11, 0.15); --ipc-halo-line: rgba(252, 211, 77, 0.45); border-color: rgba(245, 158, 11, 0.22); }
.fubi-ipc-summary:has(#ipc-grade-badge[data-grade="C"])  { --ipc-halo: rgba(249, 115, 22, 0.15); --ipc-halo-line: rgba(253, 164, 120, 0.45); border-color: rgba(249, 115, 22, 0.22); }

.fubi-ipc-target { display: flex; align-items: center; gap: 13px; min-width: 0; flex: 1 1 auto; }
.fubi-ipc-flag {
  width: 40px; height: 28px; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 20px; line-height: 1;
  color: var(--text-faint);
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: 0px;
  overflow: hidden;
}
.fubi-ipc-flag img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fubi-ipc-target-txt { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.fubi-ipc-ip-row { display: flex; align-items: center; gap: 8px; min-width: 0; }
.fubi-ipc-ip {
  min-width: 0;
  font-family: var(--ipc-font-num);
  font-size: clamp(14.5px, 1.15vw, 17px);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.015em;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1, "zero" 0;
  color: var(--text-primary);
  background: none; padding: 0; border: 0; border-radius: 0;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.fubi-ipc-loc {
  font-size: 12.5px; font-weight: 500; line-height: 1.35; letter-spacing: 0.005em;
  color: var(--text-muted);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* 一键复制 IP */
.fubi-ipc-copy {
  flex: none;
  width: 26px; height: 26px; margin: 0; padding: 0;
  display: inline-grid; place-items: center;
  color: var(--text-faint);
  background: transparent;
  border: 1px solid var(--border-subtle);
  border-radius: 0px;
  cursor: pointer;
  transition: color .16s ease, background .16s ease, border-color .16s ease, opacity .16s ease;
}
.fubi-ipc-copy svg { grid-area: 1 / 1; width: 13px; height: 13px; stroke-width: 1.8; transition: opacity .16s ease, transform .2s ease; }
.fubi-ipc-copy .ic-ok { opacity: 0; transform: scale(0.6); stroke-width: 2.2; }
.fubi-ipc-copy:hover:not([disabled]) { color: var(--accent-ink, var(--accent)); background: var(--accent-subtle); border-color: var(--accent-border); }
.fubi-ipc-copy:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--accent-subtle); }
.fubi-ipc-copy[disabled] { opacity: 0; pointer-events: none; }
.fubi-ipc-copy[data-copied] { color: var(--ipc-pass-ink); border-color: var(--ipc-pass-bd); background: var(--ipc-pass-bg); }
.fubi-ipc-copy[data-copied] .ic-copy { opacity: 0; transform: scale(0.6); }
.fubi-ipc-copy[data-copied] .ic-ok { opacity: 1; transform: none; }

/* ---------- 综合评级：铭牌式双栏胶囊（左立体徽标 / 右 GRADE 标签 + 状态短句） ---------- */
.fubi-ipc-grade {
  position: relative;
  flex: none;
  display: inline-flex; align-items: center; gap: 12px;
  min-height: 56px; padding: 5px 16px 5px 5px;
  color: var(--text-muted);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.01) 100%), var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 0px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 10px 22px -16px rgba(0, 0, 0, 0.7);
  transition: background .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.fubi-ipc-grade-val {
  position: relative;
  overflow: hidden;
  min-width: 46px; height: 46px; padding: 0 9px;
  display: inline-flex; align-items: center; justify-content: center;
  font: 800 21px/1 var(--font-sans);
  letter-spacing: -0.045em;
  font-variant-numeric: tabular-nums;
  color: var(--text-faint);
  background: linear-gradient(160deg, var(--bg-card-hover) 0%, var(--bg-card-subtle) 100%);
  border: 1px solid var(--border-subtle);
  border-radius: 0px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
/* 上半部镜面高光 */
.fubi-ipc-grade-val::before {
  content: "";
  position: absolute; inset: 0 0 50% 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.24) 0%, rgba(255, 255, 255, 0) 100%);
  opacity: 0;
  pointer-events: none;
}
/* 斜向流光（仅 A 级） */
.fubi-ipc-grade-val::after {
  content: "";
  position: absolute; top: -20%; bottom: -20%; left: -60%; width: 40%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.38), transparent);
  transform: skewX(-18deg);
  opacity: 0;
  pointer-events: none;
}
.fubi-ipc-grade-meta { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.fubi-ipc-grade-label {
  font: 700 10px/1.2 var(--font-sans);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
  white-space: nowrap;
}
.fubi-ipc-grade-note {
  font: 650 13px/1.3 var(--font-sans);
  letter-spacing: -0.005em;
  color: var(--text-secondary);
  white-space: nowrap;
}

.fubi-ipc-grade[data-grade^="A"] {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.15) 0%, rgba(16, 185, 129, 0.03) 62%), var(--bg-card);
  border-color: rgba(16, 185, 129, 0.32);
  box-shadow: inset 0 1px 0 rgba(167, 243, 208, 0.16), 0 0 0 4px rgba(16, 185, 129, 0.05), 0 12px 28px -16px rgba(16, 185, 129, 0.6);
}
.fubi-ipc-grade[data-grade^="A"] .fubi-ipc-grade-val {
  color: #fff;
  background: linear-gradient(160deg, #34D399 0%, #10B981 46%, #047857 100%);
  border-color: rgba(167, 243, 208, 0.5);
  text-shadow: 0 1px 1px rgba(4, 47, 46, 0.4);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.38), inset 0 -2px 5px rgba(4, 47, 46, 0.28), 0 6px 14px -6px rgba(16, 185, 129, 0.75);
}
.fubi-ipc-grade[data-grade^="A"] .fubi-ipc-grade-val::before { opacity: 1; }
.fubi-ipc-grade[data-grade^="A"] .fubi-ipc-grade-val::after { opacity: 1; animation: fubi-ipc-medal 5.5s ease-in-out infinite; }
.fubi-ipc-grade[data-grade^="A"] .fubi-ipc-grade-note { color: var(--ipc-pass-ink); }
@keyframes fubi-ipc-medal { 0%, 62% { left: -60%; } 100% { left: 130%; } }

.fubi-ipc-grade[data-grade="B"] {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.14) 0%, rgba(245, 158, 11, 0.03) 62%), var(--bg-card);
  border-color: rgba(245, 158, 11, 0.32);
  box-shadow: inset 0 1px 0 rgba(253, 230, 138, 0.14), 0 12px 28px -18px rgba(245, 158, 11, 0.55);
}
.fubi-ipc-grade[data-grade="B"] .fubi-ipc-grade-val {
  color: #fff;
  background: linear-gradient(160deg, #FBBF24 0%, #F59E0B 46%, #B45309 100%);
  border-color: rgba(253, 230, 138, 0.5);
  text-shadow: 0 1px 1px rgba(69, 26, 3, 0.35);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.36), inset 0 -2px 5px rgba(69, 26, 3, 0.25), 0 6px 14px -6px rgba(245, 158, 11, 0.7);
}
.fubi-ipc-grade[data-grade="B"] .fubi-ipc-grade-val::before { opacity: 1; }
.fubi-ipc-grade[data-grade="B"] .fubi-ipc-grade-note { color: var(--ipc-warn-ink); }

.fubi-ipc-grade[data-grade="C"] {
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.14) 0%, rgba(239, 68, 68, 0.03) 62%), var(--bg-card);
  border-color: rgba(249, 115, 22, 0.32);
  box-shadow: inset 0 1px 0 rgba(254, 202, 202, 0.12), 0 12px 28px -18px rgba(249, 115, 22, 0.55);
}
.fubi-ipc-grade[data-grade="C"] .fubi-ipc-grade-val {
  color: #fff;
  background: linear-gradient(160deg, #FB923C 0%, #EA580C 46%, #B91C1C 100%);
  border-color: rgba(254, 215, 170, 0.45);
  text-shadow: 0 1px 1px rgba(69, 10, 10, 0.35);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.34), inset 0 -2px 5px rgba(69, 10, 10, 0.25), 0 6px 14px -6px rgba(234, 88, 12, 0.7);
}
.fubi-ipc-grade[data-grade="C"] .fubi-ipc-grade-val::before { opacity: 1; }
.fubi-ipc-grade[data-grade="C"] .fubi-ipc-grade-note { color: var(--ipc-fail-ink); }

/* ---------- 4 等分指标格：头部（图标+指标名 / 胶囊）→ 渐变分割线 → 主值区垂直居中 ---------- */
.fubi-ipc-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 1fr; gap: 12px; }
.fubi-ipc-cell {
  --ipc-cell-line: rgba(244, 199, 151, 0.26);
  position: relative;
  min-width: 0; min-height: 104px;
  display: flex; flex-direction: column;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.022) 0%, rgba(255, 255, 255, 0) 60%), var(--bg-card-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: 0px;
  box-shadow: var(--ipc-hl);
  overflow: hidden;
  transition: border-color .16s ease, background-color .16s ease;
}
.fubi-ipc-cell::before {
  content: "";
  position: absolute; left: 0; right: 0; top: 0; height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--ipc-cell-line) 50%, transparent 100%);
  pointer-events: none;
}
.fubi-ipc-cell:hover { border-color: var(--border-card); background-color: var(--bg-card-hover); }
.fubi-ipc-cell-head {
  position: relative;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap;
  gap: 6px 8px;
  padding: 11px 12px 10px;
}
.fubi-ipc-cell-head::after {
  content: "";
  position: absolute; left: 12px; right: 12px; bottom: 0; height: 1px;
  background: linear-gradient(90deg, var(--border-card) 0%, var(--border-subtle) 70%, transparent 100%);
}
.fubi-ipc-kw { display: inline-flex; align-items: center; gap: 7px; flex-shrink: 0; min-width: 0; }
.fubi-ipc-k-ic {
  width: 22px; height: 22px; flex: none;
  display: inline-grid; place-items: center;
  color: var(--accent-ink, var(--accent));
  background: linear-gradient(160deg, rgba(244, 199, 151, 0.16) 0%, rgba(226, 139, 78, 0.04) 100%);
  border: 1px solid var(--accent-border);
  border-radius: 0px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.fubi-ipc-k-ic svg { width: 13px; height: 13px; stroke-width: 1.8; }
.fubi-ipc-k, .fubi-ipc-cell-label {
  flex-shrink: 0; white-space: nowrap;
  font-size: 12.5px; font-weight: 600; line-height: 1.2; letter-spacing: 0.005em;
  color: var(--text-secondary);
}
/* 主值：最多两行优雅截断，借助 auto margin 在剩余高度内垂直居中 */
.fubi-ipc-v {
  margin: auto 12px;
  padding: 10px 0 12px;
  font-size: 14px; font-weight: 600; line-height: 1.42; letter-spacing: -0.01em;
  color: var(--text-primary);
  white-space: normal;
  overflow-wrap: anywhere;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
}
.fubi-ipc-asn {
  flex: none;
  display: inline-flex; align-items: center;
  height: 22px; padding: 0 8px;
  font: 600 11.5px/1 var(--ipc-font-num);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
  color: var(--accent-ink, var(--accent));
  white-space: nowrap;
  background: linear-gradient(135deg, rgba(244, 199, 151, 0.16) 0%, rgba(226, 139, 78, 0.05) 100%);
  border: 1px solid var(--accent-border);
  border-radius: 0px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.fubi-ipc-badge {
  flex: none;
  display: inline-flex; align-items: center; gap: 6px;
  height: 22px; padding: 0 8px 0 7px;
  font: 600 11.5px/1 var(--ipc-font-num);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.015em;
  white-space: nowrap;
  color: var(--text-faint);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 0px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
#ipc-geo-badge { font-family: var(--font-sans); letter-spacing: 0; }
.fubi-ipc-badge::before { content: ""; flex: none; width: 6px; height: 6px; border-radius: 0px; background: currentColor; opacity: 0.9; }
.fubi-ipc-badge[data-pass="true"] { color: var(--ipc-pass-ink); background: var(--ipc-pass-bg); border-color: var(--ipc-pass-bd); }
.fubi-ipc-badge[data-pass="true"]::before { background: var(--ipc-pass); box-shadow: 0 0 6px var(--ipc-pass); }
.fubi-ipc-badge[data-pass="false"] { color: var(--ipc-fail-ink); background: var(--ipc-fail-bg); border-color: var(--ipc-fail-bd); }
.fubi-ipc-badge[data-pass="false"]::before { background: var(--ipc-fail); box-shadow: 0 0 6px var(--ipc-fail); }
.fubi-ipc-cell:has(.fubi-ipc-badge[data-pass="true"]) { --ipc-cell-line: rgba(52, 211, 153, 0.5); border-color: rgba(16, 185, 129, 0.18); }
.fubi-ipc-cell:has(.fubi-ipc-badge[data-pass="false"]) { --ipc-cell-line: rgba(248, 113, 113, 0.5); border-color: rgba(239, 68, 68, 0.2); }

/* ---------- 底部诊断结论 + 专线引导横条 ---------- */
.fubi-ipc-verdict {
  display: flex; align-items: center; justify-content: space-between; gap: 10px 16px;
  min-height: 54px; padding: 8px 8px 8px 12px;
  color: var(--text-secondary);
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: 0px;
  box-shadow: var(--ipc-hl);
}
.fubi-ipc-verdict-main { display: flex; align-items: center; gap: 11px; min-width: 0; flex: 1 1 auto; }
.fubi-ipc-verdict-ic {
  width: 30px; height: 30px; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--text-faint);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 0px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.fubi-ipc-verdict-text { font-size: 13px; font-weight: 500; line-height: 1.5; letter-spacing: 0.003em; min-width: 0; }
.fubi-ipc-verdict[data-pass="true"] { background: linear-gradient(90deg, rgba(16, 185, 129, 0.12), rgba(16, 185, 129, 0.04)); border-color: var(--ipc-pass-bd); }
.fubi-ipc-verdict[data-pass="true"] .fubi-ipc-verdict-ic { color: var(--ipc-pass-ink); background: rgba(16, 185, 129, 0.14); border-color: var(--ipc-pass-bd); }
.fubi-ipc-verdict[data-pass="true"] .fubi-ipc-verdict-text { color: var(--text-primary); }
.fubi-ipc-verdict[data-pass="false"] { background: linear-gradient(90deg, rgba(245, 158, 11, 0.12), rgba(245, 158, 11, 0.04)); border-color: var(--ipc-warn-bd); }
.fubi-ipc-verdict[data-pass="false"] .fubi-ipc-verdict-ic { color: var(--ipc-warn-ink); background: rgba(245, 158, 11, 0.14); border-color: var(--ipc-warn-bd); }
.fubi-ipc-verdict[data-pass="false"] .fubi-ipc-verdict-text { color: var(--text-primary); }

.fubi-ipc-cta {
  flex: none;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 38px; padding: 0 16px;
  font-size: 13px; font-weight: 650; line-height: 1; letter-spacing: 0.005em; white-space: nowrap;
  color: var(--accent-ink, var(--accent));
  text-decoration: none;
  background: var(--accent-subtle);
  border: 1px solid var(--accent-border);
  border-radius: 0px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transition: background .16s ease, box-shadow .16s ease, color .16s ease, transform .12s ease;
}
.fubi-ipc-cta::after { content: none; display: none; }
.fubi-ipc-cta:hover { color: #fff; text-decoration: none; background: var(--accent-gradient); border-color: transparent; box-shadow: var(--cta-shadow); }
.fubi-ipc-cta:hover::after { transform: none; }
.fubi-ipc-cta:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--accent-subtle); }
/* 未通过 → CTA 升级为暖金实心渐变突出转化 */
.fubi-ipc-verdict[data-pass="false"] .fubi-ipc-cta,
.fubi-ipc-dock:has(#ipc-grade-badge[data-grade="C"]) .fubi-ipc-cta {
  color: #fff; background: var(--accent-gradient); border-color: transparent; box-shadow: var(--cta-shadow);
}
.fubi-ipc-verdict[data-pass="false"] .fubi-ipc-cta:hover,
.fubi-ipc-dock:has(#ipc-grade-badge[data-grade="C"]) .fubi-ipc-cta:hover {
  background: var(--accent-gradient-hover, var(--accent-gradient)); box-shadow: var(--cta-hover-shadow, var(--cta-shadow));
}

.fubi-ipc-body[data-state="error"] .fubi-ipc-verdict { background: var(--ipc-fail-bg); border-color: var(--ipc-fail-bd); }
.fubi-ipc-body[data-state="error"] .fubi-ipc-verdict-ic { color: var(--ipc-fail-ink); }

/* ---------- full 模式：#/ip-check 独立页，留白舒展、视觉重心突出 ---------- */
.fubi-ipc-dock[data-mode="full"] { --ipc-h: 46px; padding-top: 28px; }
.fubi-ipc-dock[data-mode="full"] .fubi-ipc-card { padding: 28px 28px 26px; gap: 22px; }
.fubi-ipc-dock[data-mode="full"] .fubi-ipc-brand { gap: 14px; }
.fubi-ipc-dock[data-mode="full"] .fubi-ipc-brand-ic { border-radius: 0px; }
.fubi-ipc-dock[data-mode="full"] .fubi-ipc-brand-ic svg { width: 24px; height: 24px; }
.fubi-ipc-dock[data-mode="full"] .fubi-ipc-title { font-size: 24px; line-height: 1.2; }
.fubi-ipc-dock[data-mode="full"] .fubi-ipc-sub { font-size: 13.5px; }
.fubi-ipc-dock[data-mode="full"] .fubi-ipc-form { max-width: 680px; gap: 10px; }
.fubi-ipc-dock[data-mode="full"] .fubi-ipc-input { font-size: 15px; padding-left: 42px; border-radius: 0px; }
.fubi-ipc-dock[data-mode="full"] .fubi-ipc-field-ic { left: 15px; width: 18px; height: 18px; }
.fubi-ipc-dock[data-mode="full"] .fubi-ipc-btn { padding: 0 19px; font-size: 14px; border-radius: 0px; }
.fubi-ipc-dock[data-mode="full"] .fubi-ipc-btn svg { width: 16px; height: 16px; }
.fubi-ipc-dock[data-mode="full"] .fubi-ipc-body { gap: 16px; }
.fubi-ipc-dock[data-mode="full"] .fubi-ipc-summary { padding: 20px 20px 20px 22px; border-radius: 0px; }
.fubi-ipc-dock[data-mode="full"] .fubi-ipc-target { gap: 16px; }
.fubi-ipc-dock[data-mode="full"] .fubi-ipc-flag { width: 52px; height: 36px; font-size: 26px; border-radius: 0px; }
.fubi-ipc-dock[data-mode="full"] .fubi-ipc-target-txt { gap: 6px; }
.fubi-ipc-dock[data-mode="full"] .fubi-ipc-ip { font-size: clamp(15px, 1.45vw, 21px); }
.fubi-ipc-dock[data-mode="full"] .fubi-ipc-copy { width: 28px; height: 28px; }
.fubi-ipc-dock[data-mode="full"] .fubi-ipc-copy svg { width: 14px; height: 14px; }
.fubi-ipc-dock[data-mode="full"] .fubi-ipc-loc { font-size: 13.5px; }
.fubi-ipc-dock[data-mode="full"] .fubi-ipc-grade { min-height: 68px; padding: 6px 20px 6px 6px; gap: 14px; border-radius: 0px; }
.fubi-ipc-dock[data-mode="full"] .fubi-ipc-grade-val { min-width: 56px; height: 56px; font-size: 26px; border-radius: 0px; }
.fubi-ipc-dock[data-mode="full"] .fubi-ipc-grade-label { font-size: 10.5px; }
.fubi-ipc-dock[data-mode="full"] .fubi-ipc-grade-note { font-size: 14.5px; }
.fubi-ipc-dock[data-mode="full"] .fubi-ipc-grid { gap: 14px; }
.fubi-ipc-dock[data-mode="full"] .fubi-ipc-cell { min-height: 124px; border-radius: 0px; }
.fubi-ipc-dock[data-mode="full"] .fubi-ipc-cell-head { padding: 14px 16px 12px; }
.fubi-ipc-dock[data-mode="full"] .fubi-ipc-cell-head::after { left: 16px; right: 16px; }
.fubi-ipc-dock[data-mode="full"] .fubi-ipc-k-ic { width: 24px; height: 24px; }
.fubi-ipc-dock[data-mode="full"] .fubi-ipc-k-ic svg { width: 14px; height: 14px; }
.fubi-ipc-dock[data-mode="full"] .fubi-ipc-k { font-size: 13px; }
.fubi-ipc-dock[data-mode="full"] .fubi-ipc-v { margin: auto 16px; padding: 12px 0 15px; font-size: 15px; }
.fubi-ipc-dock[data-mode="full"] .fubi-ipc-asn,
.fubi-ipc-dock[data-mode="full"] .fubi-ipc-badge { height: 24px; font-size: 12px; }
.fubi-ipc-dock[data-mode="full"] .fubi-ipc-asn { padding: 0 10px; }
.fubi-ipc-dock[data-mode="full"] .fubi-ipc-badge { padding: 0 10px 0 8px; }
.fubi-ipc-dock[data-mode="full"] .fubi-ipc-verdict { min-height: 66px; padding: 10px 10px 10px 14px; border-radius: 0px; }
.fubi-ipc-dock[data-mode="full"] .fubi-ipc-verdict-ic { width: 36px; height: 36px; border-radius: 0px; }
.fubi-ipc-dock[data-mode="full"] .fubi-ipc-verdict-ic svg { width: 18px; height: 18px; }
.fubi-ipc-dock[data-mode="full"] .fubi-ipc-verdict-text { font-size: 14px; }
.fubi-ipc-dock[data-mode="full"] .fubi-ipc-cta { height: 44px; padding: 0 20px; font-size: 14px; border-radius: 0px; }

/* ---------- 浅色 Ceramic：底色干净温和，降低状态色饱和度，高光改为白瓷釉面 ---------- */
[data-theme="light"] .fubi-ipc-dock {
  --ipc-pass: #059669;
  --ipc-pass-ink: #047857;
  --ipc-pass-bg: rgba(16, 185, 129, 0.08);
  --ipc-pass-bd: rgba(5, 150, 105, 0.26);
  --ipc-warn: #d97706;
  --ipc-warn-ink: #b45309;
  --ipc-warn-bg: rgba(245, 158, 11, 0.08);
  --ipc-warn-bd: rgba(217, 119, 6, 0.26);
  --ipc-fail: #dc2626;
  --ipc-fail-ink: #c2410c;
  --ipc-fail-bg: rgba(239, 68, 68, 0.06);
  --ipc-fail-bd: rgba(220, 38, 38, 0.22);
}
[data-theme="light"] .fubi-ipc-dock,
[data-theme="light"] .fubi-ipc-guide { --ipc-hl: inset 0 1px 0 rgba(255, 255, 255, 0.9); }
[data-theme="light"] .fubi-ipc-card {
  background:
    radial-gradient(640px 220px at 0% 0%, rgba(226, 139, 78, 0.075), transparent 70%),
    radial-gradient(520px 220px at 100% 100%, rgba(226, 139, 78, 0.035), transparent 72%),
    var(--bg-card);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 10px 28px -16px rgba(120, 70, 30, 0.18);
}
[data-theme="light"] .fubi-ipc-card::before { opacity: 0.55; }
[data-theme="light"] .fubi-ipc-input { box-shadow: inset 0 1px 2px rgba(120, 86, 52, 0.06); }
[data-theme="light"] .fubi-ipc-input:focus { box-shadow: inset 0 1px 2px rgba(120, 86, 52, 0.06), 0 0 0 3px var(--accent-subtle); }
[data-theme="light"] .fubi-ipc-summary {
  background: radial-gradient(380px 150px at 0% 50%, rgba(226, 139, 78, 0.07), transparent 72%), linear-gradient(180deg, #FFFFFF 0%, var(--bg-card-subtle) 100%);
}
[data-theme="light"] .fubi-ipc-summary:has(#ipc-grade-badge[data-grade^="A"]) { --ipc-halo: rgba(16, 185, 129, 0.10); --ipc-halo-line: rgba(5, 150, 105, 0.35); }
[data-theme="light"] .fubi-ipc-summary:has(#ipc-grade-badge[data-grade="B"])  { --ipc-halo: rgba(245, 158, 11, 0.10); --ipc-halo-line: rgba(217, 119, 6, 0.32); }
[data-theme="light"] .fubi-ipc-summary:has(#ipc-grade-badge[data-grade="C"])  { --ipc-halo: rgba(249, 115, 22, 0.09); --ipc-halo-line: rgba(234, 88, 12, 0.30); }
[data-theme="light"] .fubi-ipc-flag[data-has-flag] { border-color: rgba(15, 23, 42, 0.12); box-shadow: 0 1px 2px rgba(15, 23, 42, 0.10); }
[data-theme="light"] .fubi-ipc-grade { background: linear-gradient(180deg, #FFFFFF 0%, #FBF8F3 100%); box-shadow: inset 0 1px 0 #fff, 0 6px 16px -10px rgba(120, 70, 30, 0.22); }
[data-theme="light"] .fubi-ipc-grade[data-grade^="A"] { background: linear-gradient(135deg, rgba(16, 185, 129, 0.10) 0%, rgba(16, 185, 129, 0.02) 62%), #FFFFFF; box-shadow: inset 0 1px 0 #fff, 0 8px 20px -12px rgba(5, 150, 105, 0.35); }
[data-theme="light"] .fubi-ipc-grade[data-grade="B"] { background: linear-gradient(135deg, rgba(245, 158, 11, 0.10) 0%, rgba(245, 158, 11, 0.02) 62%), #FFFFFF; box-shadow: inset 0 1px 0 #fff, 0 8px 20px -12px rgba(217, 119, 6, 0.32); }
[data-theme="light"] .fubi-ipc-grade[data-grade="C"] { background: linear-gradient(135deg, rgba(249, 115, 22, 0.09) 0%, rgba(239, 68, 68, 0.02) 62%), #FFFFFF; box-shadow: inset 0 1px 0 #fff, 0 8px 20px -12px rgba(234, 88, 12, 0.32); }
[data-theme="light"] .fubi-ipc-cell { background: linear-gradient(180deg, #FFFFFF 0%, var(--bg-card-subtle) 100%); }
[data-theme="light"] .fubi-ipc-cell:hover { background: linear-gradient(180deg, #FFFFFF 0%, var(--bg-card-hover) 100%); }
[data-theme="light"] .fubi-ipc-cell:has(.fubi-ipc-badge[data-pass="true"]) { --ipc-cell-line: rgba(5, 150, 105, 0.38); }
[data-theme="light"] .fubi-ipc-cell:has(.fubi-ipc-badge[data-pass="false"]) { --ipc-cell-line: rgba(220, 38, 38, 0.32); }
[data-theme="light"] .fubi-ipc-badge { background: #FFFFFF; }
[data-theme="light"] .fubi-ipc-badge[data-pass="true"] { background: var(--ipc-pass-bg); }
[data-theme="light"] .fubi-ipc-badge[data-pass="false"] { background: var(--ipc-fail-bg); }
[data-theme="light"] .fubi-ipc-badge::before { box-shadow: none !important; }
[data-theme="light"] .fubi-ipc-verdict-ic { background: #FFFFFF; }
[data-theme="light"] .fubi-ipc-cta { color: var(--accent-active, var(--accent)); }
[data-theme="light"] .fubi-ipc-cta:hover,
[data-theme="light"] .fubi-ipc-verdict[data-pass="false"] .fubi-ipc-cta,
[data-theme="light"] .fubi-ipc-dock:has(#ipc-grade-badge[data-grade="C"]) .fubi-ipc-cta { color: #fff; }

@media (prefers-reduced-motion: reduce) {
  .fubi-ipc-card::before,
  .fubi-ipc-brand-ic svg path,
  .fubi-ipc-pill-dot,
  .fubi-ipc-grade-val::after,
  .fubi-ipc-body[data-state="loading"] .fubi-ipc-v,
  .fubi-ipc-body[data-state="loading"] .fubi-ipc-ip,
  .fubi-ipc-body[data-state="loading"] .fubi-ipc-loc { animation: none !important; }
  .fubi-ipc-grade-val::after { opacity: 0 !important; }
}

/* ---------- 中屏：表单整行下沉，指标格保持 4 等分 ---------- */
@media (max-width: 1100px) {
  .fubi-ipc-form,
  .fubi-ipc-dock[data-mode="full"] .fubi-ipc-form { flex-basis: 100%; max-width: none; }
}

/* ---------- 移动端 <=768px：2×2 对称网格，16px 输入防 iOS 放大，评级铭牌完整保留 ---------- */
@media (max-width: 768px) {
  .fubi-ipc-dock { --ipc-h: 44px; padding: 12px 12px 0 !important; }
  .fubi-ipc-dock[data-mode="full"] { --ipc-h: 46px; padding-top: 16px !important; }
  .fubi-ipc-dock:not([hidden]) + .miya-content { padding-top: 12px !important; }
  .fubi-ipc-card,
  .fubi-ipc-dock[data-mode="full"] .fubi-ipc-card { padding: 14px; gap: 14px; border-radius: 0px; }
  .fubi-ipc-dock[data-mode="full"] .fubi-ipc-title { font-size: 19px; }
  .fubi-ipc-form { flex-wrap: wrap; gap: 8px; }
  .fubi-ipc-field { flex: 1 1 100%; }
  .fubi-ipc-input,
  .fubi-ipc-dock[data-mode="full"] .fubi-ipc-input { font-size: 16px; }
  .fubi-ipc-btn { flex: 1 1 0; min-width: 0; }
  .fubi-ipc-summary,
  .fubi-ipc-dock[data-mode="full"] .fubi-ipc-summary { flex-wrap: wrap; padding: 12px; gap: 12px; }
  .fubi-ipc-target { flex: 1 1 100%; align-items: flex-start; }
  .fubi-ipc-ip-row { align-items: flex-start; }
  /* 长 IPv6 在窄屏优雅折行而非截断 */
  .fubi-ipc-ip,
  .fubi-ipc-dock[data-mode="full"] .fubi-ipc-ip { font-size: 15.5px; line-height: 1.35; white-space: normal; overflow-wrap: anywhere; word-break: break-all; }
  .fubi-ipc-flag,
  .fubi-ipc-dock[data-mode="full"] .fubi-ipc-flag { width: 40px; height: 28px; margin-top: 1px; }
  .fubi-ipc-grade,
  .fubi-ipc-dock[data-mode="full"] .fubi-ipc-grade { flex: 1 1 100%; min-height: 54px; padding: 5px 14px 5px 5px; border-radius: 0px; }
  .fubi-ipc-dock[data-mode="full"] .fubi-ipc-grade-val { min-width: 44px; height: 44px; font-size: 20px; border-radius: 0px; }
  .fubi-ipc-dock[data-mode="full"] .fubi-ipc-grade-note { font-size: 13.5px; }
  .fubi-ipc-grid,
  .fubi-ipc-dock[data-mode="full"] .fubi-ipc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .fubi-ipc-cell,
  .fubi-ipc-dock[data-mode="full"] .fubi-ipc-cell { min-height: 112px; }
  .fubi-ipc-cell-head,
  .fubi-ipc-dock[data-mode="full"] .fubi-ipc-cell-head { flex-direction: column; align-items: flex-start; gap: 7px; padding: 11px 11px 10px; }
  .fubi-ipc-cell-head::after,
  .fubi-ipc-dock[data-mode="full"] .fubi-ipc-cell-head::after { left: 11px; right: 11px; }
  .fubi-ipc-v,
  .fubi-ipc-dock[data-mode="full"] .fubi-ipc-v { margin: auto 11px; padding: 9px 0 11px; font-size: 13.5px; }
  .fubi-ipc-verdict,
  .fubi-ipc-dock[data-mode="full"] .fubi-ipc-verdict { flex-direction: column; align-items: stretch; padding: 12px; }
  .fubi-ipc-verdict-main { align-items: flex-start; }
  .fubi-ipc-cta,
  .fubi-ipc-dock[data-mode="full"] .fubi-ipc-cta { width: 100%; height: 42px; }
}

/* ---------- 检测舱国旗：矢量圆角国旗（替代 Windows 下显示为双字母的 emoji） ---------- */
.fubi-ipc-flag[data-has-flag] {
  background: transparent;
  border-color: rgba(15, 23, 42, 0.14);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06), 0 2px 6px rgba(0, 0, 0, 0.28);
}
.fubi-ipc-flag svg { width: 60%; height: 60%; }
.fubi-ipc-flag[data-has-flag] img { border-radius: inherit; }

/* 检测按钮禁用态（请求进行中） */
#ipc-submit-btn:disabled,
#ipc-self-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
  filter: saturate(0.7);
}

/* ==========================================================================
   #/ip-check 独立页：检测说明 3 步卡 + 底部转化横幅（与上方 .fubi-ipc-card 同宽对齐）
   注：两类卡片同时带 .mx-card（复用滚动浮现动效），此处同权重后置覆盖其 padding / gap
   ========================================================================== */
.fubi-ipc-guide {
  max-width: var(--content-max-w, 1440px);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.fubi-ipc-guide-head { display: flex; flex-direction: column; gap: 6px; padding: 6px 2px 0; }
.fubi-ipc-guide-title { margin: 0; font: 650 19px/1.3 var(--font-sans); letter-spacing: -0.02em; color: var(--text-primary); }
.fubi-ipc-guide-sub { margin: 0; font-size: 13.5px; line-height: 1.55; color: var(--text-muted); }

/* 严格 3 等分对称网格，各卡等高 */
.fubi-ipc-guide-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  align-items: stretch;
}
.fubi-ipc-guide-step {
  position: relative;
  overflow: hidden;
  min-width: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px 20px 18px;
  background:
    radial-gradient(280px 130px at 0% 0%, rgba(226, 139, 78, 0.085), transparent 72%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.02) 0%, transparent 50%),
    var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 0px;
  box-shadow: var(--ipc-hl), var(--shadow-sm);
}
/* 顶部 1px 琥珀金微光高光线 */
.fubi-ipc-guide-step::before {
  content: "";
  position: absolute; left: 0; right: 0; top: 0; height: 1px;
  background: linear-gradient(90deg, rgba(244, 199, 151, 0) 0%, rgba(244, 199, 151, 0.7) 24%, rgba(226, 139, 78, 0.35) 62%, transparent 100%);
  pointer-events: none;
}
.fubi-ipc-guide-step:hover { border-color: var(--border-hover, var(--border-card)); }
.fubi-ipc-guide-step-head { display: flex; align-items: center; gap: 10px; min-width: 0; }
.fubi-ipc-guide-no {
  flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 30px; height: 22px; padding: 0 7px;
  font: 700 11px/1 var(--ipc-font-num);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
  color: var(--accent-ink, var(--accent));
  background: linear-gradient(135deg, rgba(244, 199, 151, 0.24) 0%, rgba(226, 139, 78, 0.06) 100%);
  border: 1px solid var(--accent-border);
  border-radius: 0px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 0 14px -4px rgba(226, 139, 78, 0.55);
}
.fubi-ipc-guide-ic {
  flex: none;
  width: 34px; height: 34px;
  display: inline-grid; place-items: center;
  color: var(--accent-ink, var(--accent));
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: 0px;
  box-shadow: var(--ipc-hl);
}
.fubi-ipc-guide-ic svg { width: 18px; height: 18px; }
.fubi-ipc-guide-step-title { margin: 0; min-width: 0; font: 650 15.5px/1.3 var(--font-sans); letter-spacing: -0.015em; color: var(--text-primary); }
.fubi-ipc-guide-step-desc { margin: 0; flex: 1 1 auto; font-size: 13.5px; line-height: 1.7; color: var(--text-muted); }
.fubi-ipc-guide-tag {
  align-self: flex-start;
  display: inline-flex; align-items: center;
  height: 22px; padding: 0 8px;
  font: 600 11.5px/1 var(--ipc-font-num);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
  color: var(--text-secondary);
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: 0px;
}

/* 旗舰横幅卡：左（暖金盾牌 + 标题/副标题）· 右（暖金实心按钮），两侧垂直居中 */
.fubi-ipc-guide-cta {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 16px 28px;
  padding: 22px 22px 22px 24px;
  text-align: left;
  background:
    radial-gradient(560px 200px at 100% 50%, rgba(226, 139, 78, 0.16), transparent 70%),
    radial-gradient(380px 160px at 0% 0%, rgba(244, 199, 151, 0.07), transparent 70%),
    var(--bg-card);
  border: 1px solid var(--accent-border);
  border-radius: 0px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .16);
}
.fubi-ipc-guide-cta::before {
  content: "";
  position: absolute; left: 0; right: 0; top: 0; height: 1px;
  background: var(--ipc-gold-line);
  pointer-events: none;
}
.fubi-ipc-guide-cta-main { display: flex; align-items: center; gap: 16px; min-width: 0; flex: 1 1 auto; }
.fubi-ipc-guide-cta-ic {
  flex: none;
  width: 46px; height: 46px;
  display: inline-grid; place-items: center;
  color: #fff;
  background: var(--accent-gradient);
  border-radius: 0px;
  box-shadow: var(--cta-shadow);
}
.fubi-ipc-guide-cta-ic svg { width: 22px; height: 22px; stroke-width: 1.8; }
.fubi-ipc-guide-cta-txt { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.fubi-ipc-guide-cta-title { margin: 0; font: 650 17px/1.3 var(--font-sans); letter-spacing: -0.02em; color: var(--text-primary); }
.fubi-ipc-guide-cta-desc { margin: 0; font-size: 13.5px; line-height: 1.6; color: var(--text-muted); }
.fubi-ipc-guide .fubi-ipc-guide-cta-btn,
.fubi-ipc-guide .fubi-ipc-guide-cta-btn:hover,
.fubi-ipc-guide .fubi-ipc-guide-cta-btn:visited { color: #fff; text-decoration: none; }
.fubi-ipc-guide-cta-btn {
  flex: none;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; padding: 0 16px 0 20px;
  font: 650 14px/1 var(--font-sans);
  letter-spacing: 0.005em;
  white-space: nowrap;
  background: var(--accent-gradient);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0px;
  box-shadow: var(--cta-shadow);
  cursor: pointer;
  transition: background .16s ease, box-shadow .16s ease, transform .12s ease;
}
.fubi-ipc-guide-cta-btn svg { width: 16px; height: 16px; stroke-width: 2; transition: transform .18s ease; }
.fubi-ipc-guide-cta-btn:hover { background: var(--accent-gradient-hover, var(--accent-gradient)); box-shadow: var(--cta-hover-shadow, var(--cta-shadow)); transform: translateY(-1px); }
.fubi-ipc-guide-cta-btn:hover svg { transform: translateX(3px); }
.fubi-ipc-guide-cta-btn:active { transform: translateY(0); }
.fubi-ipc-guide-cta-btn:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--accent-subtle), var(--cta-shadow); }

[data-theme="light"] .fubi-ipc-guide-step {
  background: radial-gradient(280px 130px at 0% 0%, rgba(226, 139, 78, 0.06), transparent 72%), var(--bg-card);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 8px 22px -16px rgba(120, 70, 30, 0.18);
}
[data-theme="light"] .fubi-ipc-guide-step::before { background: linear-gradient(90deg, rgba(212, 118, 59, 0) 0%, rgba(212, 118, 59, 0.45) 24%, rgba(212, 118, 59, 0.15) 62%, transparent 100%); }
[data-theme="light"] .fubi-ipc-guide-no { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8); }
[data-theme="light"] .fubi-ipc-guide-ic,
[data-theme="light"] .fubi-ipc-guide-tag { background: #FBF8F3; }
[data-theme="light"] .fubi-ipc-guide-cta {
  background:
    radial-gradient(560px 200px at 100% 50%, rgba(226, 139, 78, 0.11), transparent 70%),
    radial-gradient(380px 160px at 0% 0%, rgba(244, 199, 151, 0.10), transparent 70%),
    var(--bg-card);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .16);
}
[data-theme="light"] .fubi-ipc-guide-cta::before { opacity: 0.6; }

@media (max-width: 1024px) {
  .fubi-ipc-guide-step-head { flex-wrap: wrap; }
}
@media (max-width: 768px) {
  .fubi-ipc-guide { gap: 12px; }
  .fubi-ipc-guide-steps { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .fubi-ipc-guide-step { padding: 16px; gap: 10px; }
  .fubi-ipc-guide-step-head { flex-wrap: nowrap; }
  .fubi-ipc-guide-cta { flex-direction: column; align-items: stretch; gap: 14px; padding: 16px; }
  .fubi-ipc-guide-cta-main { align-items: flex-start; gap: 12px; }
  .fubi-ipc-guide-cta-ic { width: 40px; height: 40px; border-radius: 0px; }
  .fubi-ipc-guide-cta-ic svg { width: 20px; height: 20px; }
  .fubi-ipc-guide-cta-btn { width: 100%; height: 44px; }
}

/* =====================================================================
   v-clean2 · 去卡通 / 去冗余修饰覆盖层（2026-11-05）
   只做减法：去彩虹点、去盒中盒、去取景框/网格/呼吸光斑、去霓虹外发光
   ===================================================================== */
/* 2 · 顶栏导航：去五色糖果点 + 去外层盒子 */
.eco-dot { display: none !important; }
html body .tb-eco { background: transparent !important; border-color: transparent !important; box-shadow: none !important; padding: 0 !important; gap: 4px; }
html body .tb-eco-link { border-radius: 0px !important; box-shadow: none !important; }
html body .tb-eco-link:hover { background: color-mix(in srgb, currentColor 6%, transparent) !important; }
html body .tb-eco-link.is-current { background: color-mix(in srgb, currentColor 6%, transparent) !important; border: 1px solid color-mix(in srgb, currentColor 28%, transparent) !important; box-shadow: none !important; font-weight: 650; }
html body .brand-sms-pill, html body .brand-mail-pill, html body .brand-ai-pill { background: transparent !important; box-shadow: none !important; border: 1px solid color-mix(in srgb, currentColor 32%, transparent) !important; border-radius: 0px !important; }

/* 3 · Hero：去假取景框四角、去网格与呼吸光斑、eyebrow 去盒 */
.ed-hero-grid, .hero-grid, .ed-hero-sheen, .hero-sheen, .ed-hero-glow { display: none !important; animation: none !important; }
.ed-hero-frame .vf-corner, .ed-hero-frame i, .hero-frame i { display: none !important; }
html body .ed-hero-pill, html body .lead-pill, html body .hero-pill, html body .hero-badge { background: transparent !important; border: 0 !important; box-shadow: none !important; padding: 0 !important; height: auto !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
html body .ehp-dot, html body .lead-dot { width: 5px !important; height: 5px !important; box-shadow: none !important; animation: none !important; }

/* 4 · 三步流程：图标框拍平，角标改扁平等宽小标签 */
html body .rf-ic { width: 32px !important; height: 32px !important; border-radius: 0px !important; background: transparent !important; border: 1px solid var(--line-strong, var(--ed-card-border, var(--line, rgba(127, 127, 127, .3)))) !important; box-shadow: none !important; }
html body .rf-ic svg { width: 15px; height: 15px; }
html body .rf-ic b { top: -7px !important; right: -9px !important; width: auto !important; min-width: 15px; height: 14px !important; padding: 0 3px; border-radius: 0px !important; font-size: 9px !important; line-height: 12px; color: var(--muted, var(--text-secondary)) !important; background: var(--card, var(--panel-bg, #fff)) !important; border: 1px solid var(--line-strong, var(--ed-card-border, var(--line, rgba(127, 127, 127, .3)))) !important; box-shadow: none !important; }

/* 4 · 演示舱浮层 / 选择胶囊：克制 2px 技术标签 */
html body .sc-float, html body .sc-float small em { border-radius: 0px !important; }
html body .sc-pill { border-radius: 0px !important; }
html body .sc-pill.is-active { box-shadow: none !important; }

/* ---- ip 专属 ---- */
[data-theme="dark"] { --accent-gradient: linear-gradient(#CF6F31, #CF6F31); --accent-gradient-hover: linear-gradient(#D97A3B, #D97A3B); --cta-shadow: 0 1px 2px rgba(0, 0, 0, .16); --cta-hover-shadow: 0 1px 3px rgba(0, 0, 0, .2); }
[data-theme="light"] { --accent-gradient: linear-gradient(#C2632A, #C2632A); --accent-gradient-hover: linear-gradient(#CC6D33, #CC6D33); --cta-shadow: 0 1px 2px rgba(0, 0, 0, .14); --cta-hover-shadow: 0 1px 3px rgba(0, 0, 0, .18); }
.admin-btn-primary:hover:not(:disabled), .mx-btn-primary:hover { transform: none; }
.sub-item.active::before { box-shadow: none; transform: translateY(-50%); }
/* IP 检测面板：去流光/光晕/勋章高光，徽章细线化 */
.fubi-ipc-card { background: var(--bg-card) !important; }
.fubi-ipc-card::before, .fubi-ipc-cell::before, .fubi-ipc-summary::before { display: none !important; animation: none !important; }
.fubi-ipc-brand-ic { background: transparent !important; box-shadow: none !important; border-radius: 0px !important; }
.fubi-ipc-brand-ic svg path { animation: none !important; }
.fubi-ipc-pill { background: transparent !important; border: 0 !important; box-shadow: none !important; padding: 0 !important; height: auto !important; }
.fubi-ipc-pill-dot, .fubi-ipc-dock .fubi-ipc-pill-dot { width: 5px !important; height: 5px !important; box-shadow: none !important; }
.fubi-ipc-badge, [data-theme="light"] .fubi-ipc-badge, .fubi-ipc-badge[data-pass="true"], .fubi-ipc-badge[data-pass="false"], [data-theme="light"] .fubi-ipc-badge[data-pass="true"] { background: transparent !important; border-radius: 0px !important; box-shadow: none !important; }
.fubi-ipc-badge::before, .fubi-ipc-badge[data-pass="true"]::before, .fubi-ipc-badge[data-pass="false"]::before { width: 5px; height: 5px; box-shadow: none !important; }
.fubi-ipc-grade, .fubi-ipc-grade[data-grade] { box-shadow: none !important; border-radius: 0px !important; }
.fubi-ipc-grade-val, .fubi-ipc-grade[data-grade] .fubi-ipc-grade-val { box-shadow: none !important; text-shadow: none !important; border-radius: 0px !important; }
.fubi-ipc-grade-val::before, .fubi-ipc-grade-val::after, .fubi-ipc-grade[data-grade] .fubi-ipc-grade-val::before, .fubi-ipc-grade[data-grade] .fubi-ipc-grade-val::after { display: none !important; animation: none !important; }
.ovx-step-ic, .ovb-ic, .ovx-hub-core { box-shadow: none !important; }

/* ==== v-sharp3 (2026-11-05)：日间纯白画布 + 暖象牙模块 + 侧栏阴影衔接 + 纯直角 ==== */
[data-theme="light"] {
  --bg-app: #FFFFFF !important;
  --page-bg: none !important;
  --bg-header: rgba(255, 255, 255, 0.96) !important;
  --bg-sidebar: #FDFBF7 !important;
  --bg-card: #FDFBF7 !important;
  --bg-card-subtle: #F7F3EC !important;
}
[data-theme="light"] .miya-card,
[data-theme="light"] .ovx-card,
[data-theme="light"] .ip-check-card,
[data-theme="light"] .fa-card {
  background-color: #FDFBF7;
  border-color: rgba(168, 138, 108, 0.24) !important;
}
.miya-sidebar { z-index: 60; }
[data-theme="light"] .miya-sidebar {
  background-color: #FAF6F0 !important;
  border-right: 1px solid rgba(145, 115, 85, 0.32) !important;
  box-shadow: 1px 0 0 rgba(145, 115, 85, 0.16), 6px 0 16px -2px rgba(24, 18, 10, 0.08), 16px 0 32px -4px rgba(24, 18, 10, 0.06) !important;
}
[data-theme="dark"] .miya-sidebar,
html:not([data-theme="light"]) .miya-sidebar {
  border-right: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 6px 0 20px rgba(0, 0, 0, 0.35);
}
.ovx-vf, .ovx-vf .vf-corner { display: none !important; }
.ovx-step-ic, .ovx-step-ic b {
  border-radius: 0px !important;
  background: var(--bg-card) !important;
  border: 1px solid var(--border-subtle) !important;
  color: var(--text-muted) !important;
  box-shadow: none !important;
}

/* ==== v-sharp5 (2026-11-05 · hy4 审计修复)：小圆点还原正圆 + 侧栏/抽屉/弹窗层级 + 日间表面统一 ==== */
/* P1-1 · 外框保持 0px 直角；≤10px 的 1:1 状态指示点一律正圆（步骤编号框 .ovx-step-ic / .rf-ic 及 A+ 评级框不在此列） */
.fubi-ipc-badge::before, .fubi-ipc-badge[data-pass="true"]::before, .fubi-ipc-badge[data-pass="false"]::before,
.fubi-ipc-badge > i:empty, .fubi-ipc-pill-dot, .fubi-ipc-dock .fubi-ipc-pill-dot, .fubi-ipc-dot,
.ovx-pill > i:empty, .ovx-badge > i:empty, .ovx-live > i:empty, .ovx-tag > i:empty,
.ovx-cap > i:empty, .ovx-wire > i:empty, .ovx-ok > i:empty, .ovx-hs-id small::before,
.ovx-dot, .ovx-pdot, .ovx-hud-dot,
.tk-live > i:empty, .tk-state > i:empty, .tk-chip > i:empty,
.sc-bar-tag::before, .sc-live-dot, .edge-live-dot, .edge-route-badge > i:empty, .cc2-stock-badge > i:empty, .mx-tag > i:empty,
.lang-option::before, .sub-item::before, .region-badge > i:empty,
.badge-dot, .status-dot, .live-dot, .mx-dot, .a-dot, .dot, .dot::after, .dot-small, .ehp-dot, .lead-dot,
[class*="-dot"]:not([class*="-dots"]), [class*="dot-"]:not([class*="dots-"]) {
  border-radius: 50% !important;
}

/* P0-1 · 层级：页头 35 < 桌面侧栏 40（右侧阴影压在主区与页头之上）< 抽屉遮罩 90 < 抽屉侧栏 95 < 弹窗 ≥100 */
.miya-header { z-index: 35; }
.miya-sidebar { z-index: 40; }
@media (max-width: 1024px) {
  .sidebar-mask, .sidebar-backdrop, .sidebar-overlay { z-index: 90 !important; }
  .miya-sidebar, .miya-sidebar.open, .miya-sidebar.active, [data-drawer-open] .miya-sidebar { z-index: 95 !important; }
}
.modal, .modal-overlay, .modal-backdrop, [class*="modal-mask"], .miya-modal { z-index: 1000; }
.miya-modal-backdrop { z-index: 1000; }

/* P1-2 · 日间：纯白画布 + #FAF6F0 象牙侧栏（变量与实色一致）+ #FDFBF7 暖象牙模块卡 */
[data-theme="light"] { --bg-sidebar: #FAF6F0 !important; }
[data-theme="light"],
[data-theme="light"] body,
[data-theme="light"] .miya-main {
  background-color: #FFFFFF !important;
  background-image: none !important;
}
[data-theme="light"] .miya-sidebar { background-color: var(--bg-sidebar) !important; }
[data-theme="light"] .miya-card,
[data-theme="light"] .ovx-card,
[data-theme="light"] .ip-check-card,
[data-theme="light"] .fa-card,
[data-theme="light"] .fubi-ipc-card,
[data-theme="light"] .fubi-ipc-panel {
  background-color: #FDFBF7 !important;
  border-color: rgba(168, 138, 108, 0.24) !important;
}

/* ==========================================================================
   20261106opus1 · 第 2 站精修（直角 / 票据去方坑 / 日间舞台 / 层级 / 选购页）
   ========================================================================== */
/* 内容区独立层叠上下文：展开的 .mx-dd(z60) 不再穿过顶栏 .miya-header(z35) */
.miya-content { position: relative; z-index: 1; }

/* 日间侧栏：清晰边界线 + 右侧柔和阴影衔接主区 */
[data-theme="light"] .miya-sidebar {
  border-right: 1px solid rgba(145, 115, 85, 0.22) !important;
  box-shadow: 4px 0 18px -10px rgba(68, 46, 26, 0.18) !important;
}

/* 票据：去掉方形咬口伪元素，只保留 1px 虚线分割 */
.ovx-showcase .tk-perf::before,
.ovx-showcase .tk-perf::after,
.lnp-perf::before,
.lnp-perf::after { display: none !important; }

/* 去装饰：网格光斑 / 极光 / 点阵 / 扫光；握手卡取消 3D 倾角 */
.ovx-glow, .ovx-aurora, .ovx-dots, .ovx-hs-sheen { display: none !important; }
.ovx-stage { perspective: none; }
.ovx-hs { transform: none !important; }
@keyframes ovx-hs-in { from { opacity: 0; transform: translate3d(0, 12px, 0); } to { opacity: 1; transform: none; } }

/* 日间舞台：死黑 #080A10 → 温润浅暖灰，子元素配色同步翻转 */
html[data-theme="light"] .ovx-stage {
  background: #F5F1E8 !important;
  color: #1F1D1A;
  border: 1px solid rgba(145, 115, 85, 0.22);
  box-shadow: none;
}
html[data-theme="light"] .ovx-end small,
html[data-theme="light"] .ovx-hub small,
html[data-theme="light"] .ovx-hs-id small { color: #6B5E50; }
html[data-theme="light"] .ovx-end-ic { color: #A0612F; background: #FFFFFF; border-color: rgba(145, 115, 85, 0.28); box-shadow: none; }
html[data-theme="light"] .ovx-end.is-exit .ovx-end-ic { color: #047857; border-color: rgba(4, 120, 87, 0.35); background: rgba(16, 185, 129, 0.08); }
html[data-theme="light"] .ovx-wire { background: repeating-linear-gradient(90deg, rgba(160, 97, 47, 0.45) 0 5px, transparent 5px 9px); }
html[data-theme="light"] .ovx-wire.is-out { background: repeating-linear-gradient(90deg, rgba(4, 120, 87, 0.45) 0 5px, transparent 5px 9px); }
html[data-theme="light"] .ovx-wire i { background: #C27A3E; box-shadow: none; }
html[data-theme="light"] .ovx-wire.is-out i { background: #10B981; box-shadow: none; }
html[data-theme="light"] .ovx-hub-core { background: #FFFFFF; border-color: rgba(160, 97, 47, 0.45); box-shadow: 0 6px 16px -10px rgba(96, 62, 30, 0.45); }
html[data-theme="light"] .ovx-hub-ring { border-color: rgba(160, 97, 47, 0.35); }
html[data-theme="light"] .ovx-hub small { color: #A0612F; }
html[data-theme="light"] .ovx-hs {
  background: #FDFBF7 !important;
  border-color: rgba(145, 115, 85, 0.22) !important;
  box-shadow: 0 10px 24px -18px rgba(96, 62, 30, 0.45) !important;
  -webkit-backdrop-filter: none; backdrop-filter: none;
}
html[data-theme="light"] .ovx-hs-id b { color: #1F1D1A; }
html[data-theme="light"] .ovx-hs-id small::before { background: #C27A3E; box-shadow: none; }
html[data-theme="light"] .ovx-hs-net-pill { color: #8A4F22; background: #FAF1E4; border-color: rgba(160, 97, 47, 0.35); box-shadow: none; }
html[data-theme="light"] .ovx-ok { color: #047857; background: rgba(16, 185, 129, 0.10); border-color: rgba(4, 120, 87, 0.28); }
html[data-theme="light"] .ovx-ok b { color: #065F46; }
html[data-theme="light"] .ovx-uri { background: #FFFFFF; border-color: rgba(145, 115, 85, 0.20); color: #6B5E50; }
html[data-theme="light"] .ovx-uri span { color: #8C7F70; }
html[data-theme="light"] .ovx-uri b { color: #8A4F22; }
html[data-theme="light"] .ovx-hs-steps li { background: #FFFFFF; border-color: rgba(145, 115, 85, 0.18); color: #3A332C; }
html[data-theme="light"] .ovx-hud { color: #1F1D1A; background: rgba(253, 251, 247, 0.92); border-color: rgba(145, 115, 85, 0.24); -webkit-backdrop-filter: none; backdrop-filter: none; }
html[data-theme="light"] .ovx-hud .sc-hud-sep { background: rgba(145, 115, 85, 0.35); }
html[data-theme="light"] .ovx-hud-c { color: #8A4F22; }
html[data-theme="light"] .ovx-hub-flag,
html[data-theme="light"] .ovx-hs-flag { box-shadow: 0 0 0 1px rgba(145, 115, 85, 0.25); }

/* 账单页：处理中预扣提示 */
.mx-stat-held { display: inline-block; margin-top: 4px; font-size: 11.5px; color: var(--status-warning); }

/* 已购列表：节点同步中占位 */
.sp-syncing { font-size: 12px; color: var(--status-warning); }

/* 选购页：单线路精简展示 + 德国出口说明 */
.line-cards-grid.is-single .line-select-card { cursor: default; }
.line-de-note {
  display: flex; align-items: flex-start; gap: 6px; margin: 10px 0 0;
  font-size: 12px; line-height: 1.55; color: var(--text-muted);
}
.line-de-note .ic { flex: none; width: 14px; height: 14px; margin-top: 2px; }

/* =====================================================================
   v-radii1 (2026-11-07) · 分级圆角体系「外方内圆 · 骨架硬朗 + 触点温润」
   L0 结构骨架 0px  —— 页面容器 / 面板 / 卡片 / 表格 / 分隔线：沿用上文 v-sharp，本层不触碰
   L1 胶囊 999px    —— 品牌胶囊 / 选择胶囊 / 计数角标
   L2 徽章 4px      —— 矩形状态 / 等级 / 库存标签
   L3 控件 6px      —— 独立小按钮 / chip / 语言·主题切换；分段控件同心：外轨 R，内钮 R − padding
   L4 图标 3px      —— 旗帜 / 品牌小图标；拖拽手柄 / 状态点 / 客服球 50%
   本层位于文件末尾：同权重 !important 后写胜出；整块删除即可回滚至 v-sharp 全直角
   ===================================================================== */
:root { --rd-pill: 999px; --rd-badge: 4px; --rd-ctl: 6px; --rd-thumb: 4px; --rd-track: 8px; --rd-icon: 3px; }
/* L3 · 顶栏生态切换：外轨已去盒（padding 0），链接本身即触点 */
html body .tb-eco-link, html body .tb-eco-link.is-current { border-radius: var(--rd-ctl) !important; }
/* L1 · 品牌胶囊 / 演示舱选择胶囊 / Hero eyebrow */
html body .brand-sms-pill, html body .brand-mail-pill, html body .brand-ai-pill,
html body .sc-pill, html body .lead-pill, html body .ed-hero-pill { border-radius: var(--rd-pill) !important; }
/* L1 · 三步流程角标计数（图标框 .rf-ic 本体保持 0px 骨架） */
html body .rf-ic b { border-radius: var(--rd-pill) !important; }
/* 演示舱浮卡 10px（对齐 sms 舞台几何），内嵌计数 em 胶囊 */
html body .sc-float { border-radius: 10px !important; }
html body .sc-float small em { border-radius: var(--rd-pill) !important; }
/* L1/L2 · 通用状态胶囊与矩形徽章 */
html body .status-pill, html body .badge-pill { border-radius: var(--rd-pill) !important; }
html body .tag, html body .badge, html body .fn-tag { border-radius: var(--rd-badge) !important; }
/* L3 · chip / 筛选 chip / 语言·主题·币种切换 / 小图标按钮 */
html body .chip, html body .filter-chip,
html body .lang-btn, html body .theme-btn, html body .cur-btn, html body .currency-btn,
html body .ico-btn, html body .icon-btn { border-radius: var(--rd-ctl) !important; }
/* ---- ip 专属 ---- */
/* L1 · IP 检测通过/未通过状态胶囊；L2 · A+ 评级方块 6px / 数值 4px 同心 */
html body .fubi-ipc-badge, html body .fubi-ipc-badge[data-pass] { border-radius: var(--rd-pill) !important; }
html body .fubi-ipc-grade, html body .fubi-ipc-grade[data-grade] { border-radius: var(--rd-ctl) !important; }
html body .fubi-ipc-grade-val, html body .fubi-ipc-grade[data-grade] .fubi-ipc-grade-val { border-radius: var(--rd-badge) !important; }
html body .fubi-ipc-brand-ic { border-radius: var(--rd-ctl) !important; }
/* L4 · 国旗 3px */
html body .edge-hud-flag, html body .lnp-flag, html body .qrm-flag,
html body .ovx-hub-flag, html body .ovx-hs-flag { border-radius: var(--rd-icon) !important; }
/* L2 · 小型标签 / 地区与库存徽章；步骤框角标计数胶囊（.ovx-step-ic 本体保持 0px） */
html body .mx-tag, html body .region-badge, html body .cc2-stock-badge, html body .edge-route-badge { border-radius: var(--rd-badge) !important; }
html body .ovx-step-ic b { border-radius: var(--rd-pill) !important; }
/* L3 · 语言下拉选项 */
html body .lang-option { border-radius: var(--rd-badge) !important; }
/* 顶栏右上角操作区按钮统一锁死 6px R 角（对齐 :9102） */
html body .miya-header .header-right :is(.lang-btn, .header-link, .wallet-pill, .btn-recharge, .theme-toggle, .user-avatar, .fa-avatar-btn) { border-radius: var(--rd-ctl) !important; }
/* L3 · 页面内订购/操作按钮统一纳入 6px 自然微圆角（大面板/卡片保持 0px 硬朗骨架） */
html body :is(.btn, .btn-primary, .btn-outline, .btn-sm, .mx-btn, .mx-btn-s, .v36-sup-btn, .probe-btn, .btn-add-cart, .cc2-cta-btn, .mx-co-btn, .ovx-cta, .ovx-copy, .fubi-ipc-btn, .fubi-ipc-cta, .fubi-ipc-copy, .fubi-ipc-guide-cta-btn, .sp-pg-btn, .stepper-btn, .fa-btn) { border-radius: var(--rd-ctl, 6px) !important; }

/* ---------- 20261109v3 全栈下拉框与折叠控件边界缓冲冗余大一统 ---------- */
select:not([multiple]) {
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  appearance: none !important;
  padding-left: 14px !important;
  padding-right: 38px !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2378716c' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 14px center !important;
  background-size: 14px 14px !important;
}
html[data-theme="dark"] select:not([multiple]),
body.theme-dark select:not([multiple]) {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23a8a29e' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") !important;
}
.mx-dd-trigger {
  padding-left: 14px !important;
  padding-right: 14px !important;
}
details > summary {
  padding-left: 14px;
  padding-right: 16px;
}


/* ==========================================================================
   V4 MASTER PRODUCTION ARCHITECTURE (2026-11-12v5)
   4K@150% (2560x1440) Full-Width De-Boxed System · CC Fable 5.2 Warm Linen & Cream
   ========================================================================== */

/* ---- 0. Slow-Network Top Progress Shimmer & SEO-Safe Empty Skeleton ---- */
.v4-top-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 2147483640;
  pointer-events: none;
  opacity: 0;
  transform: scaleX(0.12);
  transform-origin: left center;
  background: linear-gradient(90deg, #10B981 0%, #D97736 52%, #10B981 100%);
  background-size: 200% 100%;
  transition: opacity 0.18s ease, transform 0.36s cubic-bezier(0.16, 1, 0.3, 1);
}
[data-theme="light"] .v4-top-progress {
  background: linear-gradient(90deg, #059669 0%, #B5541E 52%, #059669 100%);
  background-size: 200% 100%;
}
.v4-top-progress.is-active {
  opacity: 1;
  transform: scaleX(0.86);
  animation: v4TopShimmer 1.15s linear infinite;
}
.v4-top-progress.is-active.is-done {
  transform: scaleX(1);
  opacity: 0;
  transition: transform 0.18s ease-out, opacity 0.24s ease 0.06s;
}
@keyframes v4TopShimmer {
  0% { background-position: 200% 0; }
  100% { background-position: 0% 0; }
}

.loading-state:empty {
  display: block;
  width: 100%;
  min-height: 240px;
  margin-top: 32px;
  padding: 28px 0;
  border-top: 1px solid var(--line-2);
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.loading-state:empty::before {
  content: "";
  display: block;
  width: 100%;
  height: 164px;
  background-image:
    linear-gradient(90deg, var(--line-2) 0%, var(--line) 65%, transparent 100%),
    linear-gradient(90deg, var(--line) 0%, var(--line-2) 48%, transparent 88%),
    linear-gradient(90deg, var(--line) 0%, var(--line) 78%, transparent 100%),
    linear-gradient(90deg, var(--line-2) 0%, var(--line) 36%, transparent 70%);
  background-size: 38% 12px, 64% 1px, 100% 1px, 52% 10px;
  background-position: 0 8px, 0 54px, 0 106px, 0 144px;
  background-repeat: no-repeat;
  animation: v4SkelBreath 1.6s ease-in-out infinite;
}
@keyframes v4SkelBreath {
  0%, 100% { opacity: 0.42; }
  50% { opacity: 0.92; }
}
html body .mx-skeleton .sk-card {
  background: transparent !important;
  border: 0 !important;
  border-top: 1px solid var(--line-2) !important;
  box-shadow: none !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/* ---- 1. Pure Flat Canvas & Global Shell (2560x1440 Full-Width + 333px Sidebar · Default Light) ---- */
html[data-theme="dark"] {
  --bg-app: #0D0E10 !important;
  --page-bg: none !important;
  --bg-sidebar: #0A0B0D !important;
  --bg-header: #0D0E10 !important;
  --bg-card: #131518 !important;
  --bg-card-hover: #191C21 !important;
  --bg-card-subtle: #08090B !important;
  --bg-input: #08090B !important;
  --line: rgba(255, 255, 255, 0.07) !important;
  --line-2: rgba(255, 255, 255, 0.135) !important;
  --border-subtle: rgba(255, 255, 255, 0.07) !important;
  --border-card: rgba(255, 255, 255, 0.135) !important;
  --border-hover: rgba(255, 255, 255, 0.22) !important;
  --text-primary: #EBE7E0 !important;
  --text-secondary: #9E9990 !important;
  --text-muted: #948E84 !important;
  --text-faint: #8C867C !important;
  --accent: #D97736 !important;
  --accent-hover: #E58646 !important;
  --accent-gradient: #A64B17 !important;
  --accent-gradient-hover: #BA561D !important;
  --cta-bg: #A64B17 !important;
  --cta-hover: #BA561D !important;
  --accent-ink: #E0864B !important;
  --accent-subtle: rgba(217, 119, 54, 0.12) !important;
  --accent-border: rgba(217, 119, 54, 0.34) !important;
  --status-online: #10B981 !important;
  --status-online-bg: rgba(16, 185, 129, 0.12) !important;
  --status-warning: #F59E0B !important;
  --status-warning-bg: rgba(245, 158, 11, 0.12) !important;
  --status-danger: #F87171 !important;
  --status-danger-bg: rgba(248, 113, 113, 0.12) !important;
}
html[data-theme="light"],
html:not([data-theme="dark"]) {
  --bg-app: #FFFFFF !important;
  --page-bg: none !important;
  --bg-sidebar: #FAF7F2 !important;
  --bg-header: #FFFFFF !important;
  --bg-card: #FAF7F2 !important;
  --bg-card-hover: #F3EFE7 !important;
  --bg-card-subtle: #F5F1EA !important;
  --bg-input: #F5F1EA !important;
  --line: rgba(24, 23, 21, 0.085) !important;
  --line-2: rgba(24, 23, 21, 0.16) !important;
  --border-subtle: rgba(24, 23, 21, 0.085) !important;
  --border-card: rgba(24, 23, 21, 0.16) !important;
  --border-hover: rgba(24, 23, 21, 0.28) !important;
  --text-primary: #181715 !important;
  --text-secondary: #44403C !important;
  --text-muted: #5C564F !important;
  --text-faint: #666059 !important;
  --accent: #AB4D19 !important;
  --accent-hover: #934013 !important;
  --accent-active: #7C350E !important;
  --accent-gradient: #AB4D19 !important;
  --accent-gradient-hover: #934013 !important;
  --accent-ink: #8A3B10 !important;
  --accent-subtle: rgba(171, 77, 25, 0.085) !important;
  --accent-border: rgba(171, 77, 25, 0.28) !important;
  --status-online: #065F46 !important;
  --status-online-bg: rgba(6, 95, 70, 0.09) !important;
  --status-warning: #92400E !important;
  --status-warning-bg: rgba(217, 119, 6, 0.10) !important;
  --status-danger: #B91C1C !important;
  --status-danger-bg: rgba(220, 38, 38, 0.09) !important;
  --tag-rotate: #1E40AF !important;
  --tag-rotate-bg: rgba(37, 99, 235, 0.09) !important;
  --tag-rotate-border: rgba(30, 64, 175, 0.24) !important;
}
html[data-theme="light"] body :is(.bill-mode-tag.is-fixed, .amount-chip.active, .sp-pg-size.is-active, .filter-pill.active, .tab-btn.active),
html:not([data-theme="dark"]) body :is(.bill-mode-tag.is-fixed, .amount-chip.active, .sp-pg-size.is-active, .filter-pill.active, .tab-btn.active) {
  color: var(--accent-ink) !important;
}
html body .sp-pg-num.is-active {
  color: #FFFFFF !important;
}

html,
html body,
html[data-theme="light"],
html[data-theme="light"] body,
html[data-theme="light"] .miya-main {
  background-color: var(--bg-app) !important;
  background-image: none !important;
  color: var(--text-primary);
}
html body::before,
html body::after,
.miya-layout::before,
.miya-layout::after,
.miya-main::before,
.miya-main::after {
  display: none !important;
  background: none !important;
}

html body .miya-sidebar,
html[data-theme="dark"] body .miya-sidebar,
html[data-theme="light"] body .miya-sidebar,
html:not([data-theme="dark"]) body .miya-sidebar {
  width: var(--sidebar-w) !important;
  min-width: var(--sidebar-w) !important;
  background: var(--bg-sidebar) !important;
  border-right: 1px solid var(--line) !important;
  box-shadow: none !important;
}
@media (min-width: 1025px) {
  html:not([data-sidebar="collapsed"]) body .miya-sidebar {
    transform: none !important;
    transition: background-color 0.15s ease, border-color 0.15s ease !important;
  }
}
html[data-sidebar="collapsed"] body .miya-sidebar {
  width: var(--sidebar-collapsed-w) !important;
  min-width: var(--sidebar-collapsed-w) !important;
}
html body .miya-main {
  margin-left: var(--sidebar-w) !important;
  background: var(--bg-app) !important;
  min-width: 0;
}
html[data-sidebar="collapsed"] body .miya-main {
  margin-left: var(--sidebar-collapsed-w) !important;
}

html:not([data-sidebar="collapsed"]) .miya-sidebar .sidebar-header {
  height: var(--header-h) !important;
  padding: 0 clamp(18px, 1.05vw, 26px) !important;
  border-bottom: 1px solid var(--line) !important;
}
html:not([data-sidebar="collapsed"]) .miya-sidebar .miya-logo .logo-mark {
  width: clamp(24px, 1.02vw, 27px);
  height: clamp(24px, 1.02vw, 27px);
}
html:not([data-sidebar="collapsed"]) .miya-sidebar .miya-logo .logo-text {
  font-size: clamp(18px, 0.8vw, 20.5px);
}
html:not([data-sidebar="collapsed"]) .miya-sidebar .sidebar-nav {
  padding: clamp(16px, 0.95vw, 24px) clamp(10px, 0.72vw, 16px) !important;
  gap: 3px;
}
html:not([data-sidebar="collapsed"]) .miya-sidebar .nav-item,
html:not([data-sidebar="collapsed"]) .miya-sidebar .nav-group-header {
  min-height: clamp(38px, 1.65vw, 42px);
  padding: 8px 12px !important;
  font-size: clamp(13.5px, 0.57vw, 14.5px) !important;
  border-radius: 6px !important;
  background: transparent !important;
  border: 1px solid transparent !important;
  box-shadow: none !important;
  color: var(--text-secondary) !important;
}
html:not([data-sidebar="collapsed"]) .miya-sidebar .nav-item:hover,
html:not([data-sidebar="collapsed"]) .miya-sidebar .nav-group-header:hover {
  background: var(--bg-card-hover) !important;
  color: var(--text-primary) !important;
}
html:not([data-sidebar="collapsed"]) .miya-sidebar .nav-item.active {
  background: var(--bg-card) !important;
  border-color: var(--line-2) !important;
  color: var(--text-primary) !important;
  font-weight: 600 !important;
}
html:not([data-sidebar="collapsed"]) .miya-sidebar .nav-item.active .nav-icon {
  color: var(--accent) !important;
}
html:not([data-sidebar="collapsed"]) .miya-sidebar .nav-sub-menu {
  margin: 2px 0 8px 14px !important;
  padding-left: 10px !important;
  border-left: 1px solid var(--line) !important;
}
html:not([data-sidebar="collapsed"]) .miya-sidebar .sub-item {
  min-height: clamp(34px, 1.5vw, 38px);
  padding: 6px 10px !important;
  font-size: clamp(13px, 0.55vw, 14px) !important;
  border-radius: 6px !important;
  color: var(--text-secondary) !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  white-space: nowrap !important;
}
html:not([data-sidebar="collapsed"]) .miya-sidebar .sub-item .sub-label {
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  max-width: none !important;
}
html:not([data-sidebar="collapsed"]) .miya-sidebar .sub-item::before,
.miya-sidebar .nav-item::before {
  display: none !important;
}
html:not([data-sidebar="collapsed"]) .miya-sidebar .sub-item:hover {
  color: var(--text-primary) !important;
  background: var(--bg-card-hover) !important;
}
html:not([data-sidebar="collapsed"]) .miya-sidebar .sub-item.active {
  color: var(--accent-ink) !important;
  background: var(--accent-subtle) !important;
  font-weight: 600 !important;
}
.miya-sidebar .sidebar-footer {
  border-top: 1px solid var(--line) !important;
  background: transparent !important;
  padding: 14px clamp(16px, 0.95vw, 24px) !important;
}

@media (max-width: 1024px) {
  html body .miya-sidebar,
  html[data-theme="dark"] body .miya-sidebar,
  html[data-theme="light"] body .miya-sidebar {
    width: min(300px, 84vw) !important;
    min-width: 0 !important;
    transform: translateX(-100%) !important;
    transition: transform 180ms ease, box-shadow 180ms ease !important;
    z-index: 95 !important;
  }
  html[data-drawer-open] body .miya-sidebar,
  html[data-drawer-open][data-theme="dark"] body .miya-sidebar,
  html[data-drawer-open][data-theme="light"] body .miya-sidebar {
    transform: translateX(0) !important;
    box-shadow: 0 0 0 1px var(--border-card), 24px 0 48px -12px rgba(0, 0, 0, 0.45) !important;
  }
  html body .miya-main,
  html[data-sidebar="collapsed"] body .miya-main {
    margin-left: 0 !important;
  }
  html body .miya-header .sidebar-toggle-inline {
    display: grid !important;
    width: 36px !important;
    height: 36px !important;
  }
}

/* ---- 2. Full-Width Top Header & Ecosystem Bar (Zero Glow / Zero Rainbow Dots) ---- */
html body .miya-header {
  height: var(--header-h) !important;
  padding: 0 clamp(24px, 1.8vw, 48px) !important;
  background: var(--bg-header) !important;
  border-bottom: 1px solid var(--line) !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}
html body .miya-header .page-title {
  font-size: clamp(14.5px, 0.64vw, 16px) !important;
  font-weight: 600 !important;
  color: var(--text-primary) !important;
  letter-spacing: -0.01em;
}
html body .tb-eco {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 0 0 14px !important;
  margin-left: 10px !important;
  border-left: 1px solid var(--line) !important;
  border-radius: 0 !important;
  gap: 4px !important;
}
html body .tb-eco-link {
  height: 30px !important;
  padding: 0 10px !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  color: var(--text-secondary) !important;
  background: transparent !important;
  border: 1px solid transparent !important;
  box-shadow: none !important;
  border-radius: 6px !important;
}
html[data-theme="light"] body .tb-eco-link,
html:not([data-theme="dark"]) body .tb-eco-link {
  color: #332F2A !important;
  font-weight: 600 !important;
}
html[data-theme="light"]:not([data-sidebar="collapsed"]) .miya-sidebar :is(.nav-item, .nav-group-header, .sub-item),
html:not([data-theme="dark"]):not([data-sidebar="collapsed"]) .miya-sidebar :is(.nav-item, .nav-group-header, .sub-item),
html[data-theme="light"] .miya-sidebar .help-doc-link,
html:not([data-theme="dark"]) .miya-sidebar .help-doc-link {
  color: #332F2A !important;
}
html[data-theme="light"]:not([data-sidebar="collapsed"]) .miya-sidebar .sub-item.active,
html:not([data-theme="dark"]):not([data-sidebar="collapsed"]) .miya-sidebar .sub-item.active {
  color: var(--accent-ink) !important;
}
html body .tb-eco-link:hover {
  color: var(--text-primary) !important;
  background: var(--bg-card-hover) !important;
}
html body .tb-eco-link.is-current {
  color: var(--text-primary) !important;
  background: var(--bg-card) !important;
  border-color: var(--line-2) !important;
  font-weight: 600 !important;
}
html[data-theme="light"] body .tb-eco-link.is-current,
html:not([data-theme="dark"]) body .tb-eco-link.is-current {
  color: #181715 !important;
  font-weight: 700 !important;
}
html body .tb-eco-link .eco-dot {
  width: 6px !important;
  height: 6px !important;
  border-radius: 50% !important;
  background: var(--text-muted) !important;
  box-shadow: none !important;
  opacity: 0.65;
}
html body .tb-eco-link.is-current .eco-dot {
  background: var(--accent) !important;
  opacity: 1;
}

html body .miya-header .header-right {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
}
html body .miya-header .header-right :is(.lang-btn, .header-link, .wallet-pill, .theme-toggle) {
  height: 34px !important;
  min-height: 34px !important;
  padding: 0 11px !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  font-size: 12.5px !important;
  font-weight: 500 !important;
  color: var(--text-secondary) !important;
  background: transparent !important;
  border: 1px solid var(--line-2) !important;
  border-radius: 6px !important;
  box-shadow: none !important;
}
html[data-theme="light"] body .miya-header .header-right :is(.lang-btn, .header-link, .wallet-pill, .theme-toggle),
html:not([data-theme="dark"]) body .miya-header .header-right :is(.lang-btn, .header-link, .wallet-pill, .theme-toggle) {
  color: #332F2A !important;
  font-weight: 600 !important;
}
html body .miya-header .header-right :is(.lang-btn, .header-link, .wallet-pill, .theme-toggle):hover {
  color: var(--text-primary) !important;
  background: var(--bg-card) !important;
  border-color: var(--border-hover) !important;
}
html body .miya-header .header-right .wallet-pill strong {
  color: var(--text-primary) !important;
  font-family: var(--font-mono) !important;
  font-weight: 600 !important;
}
html body .miya-header .header-right .btn-recharge {
  height: 34px !important;
  min-height: 34px !important;
  padding: 0 14px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 12.5px !important;
  font-weight: 600 !important;
  background: var(--accent) !important;
  color: #FFFFFF !important;
  border: 1px solid var(--accent) !important;
  border-radius: 6px !important;
  box-shadow: none !important;
}
html body .miya-header .header-right .btn-recharge:hover {
  background: var(--accent-hover) !important;
  border-color: var(--accent-hover) !important;
  transform: none !important;
}
html body .miya-header .header-right .user-avatar {
  width: 34px !important;
  height: 34px !important;
  border-radius: 6px !important;
  background: var(--bg-card) !important;
  border: 1px solid var(--line-2) !important;
  color: var(--text-primary) !important;
  box-shadow: none !important;
}

/* ---- 3. Full-Width Content Container (Zero Centering Desert on 2560x1440) ---- */
/* Hide duplicate floating bottom-right version watermark; keep .sidebar-footer .fubi-ver intact */
html body #app-version,
html body .app-version {
  display: none !important;
}
html body .miya-content {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 clamp(48px, 2.8125vw, 72px) 96px !important;
}
html body .miya-content > * {
  max-width: none !important;
  width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}
html body .miya-main > .fubi-ipc-dock[data-mode="full"]:not([hidden]) {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 20px clamp(48px, 2.8125vw, 72px) 0 !important;
}
html body .miya-main:has(> .fubi-ipc-dock[data-mode="full"]:not([hidden])) .miya-content {
  padding-bottom: 88px !important;
}
@media (max-width: 1180px) {
  html body .miya-content {
    padding: 0 28px 92px !important;
  }
  html body .miya-main > .fubi-ipc-dock[data-mode="full"]:not([hidden]) {
    padding: 16px 28px 0 !important;
  }
}
@media (min-width: 1121px) and (max-width: 1520px) {
  html:not([lang^="zh"]) body .miya-header {
    padding: 0 18px !important;
  }
  html:not([lang^="zh"]) body .miya-header .tb-eco-link {
    padding: 0 7px !important;
    font-size: 12px !important;
  }
}
@media (min-width: 769px) and (max-width: 1120px) {
  html body .miya-header .tb-eco {
    display: grid !important;
    grid-template-columns: repeat(7, minmax(0, 1fr)) !important;
    gap: 4px !important;
    width: 100% !important;
    margin-left: 0 !important;
    padding: 0 !important;
    border-left: 0 !important;
  }
  html body .miya-header .tb-eco-link {
    width: 100% !important;
    min-width: 0 !important;
    padding: 0 4px !important;
    font-size: 12px !important;
    justify-content: center !important;
  }
}
@media (max-width: 768px) {
  html body .miya-header {
    padding: 10px 12px !important;
  }
  html body .miya-header .tb-eco {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 4px !important;
    width: 100% !important;
    min-width: 0 !important;
    margin-left: 0 !important;
    padding: 0 !important;
    border-left: 0 !important;
    overflow: visible !important;
  }
  html body .miya-header .tb-eco > :nth-child(7):last-child {
    grid-column: 1 / -1 !important;
  }
  html body .miya-header .tb-eco-link {
    width: 100% !important;
    min-width: 0 !important;
    height: 30px !important;
    padding: 0 4px !important;
    font-size: 11.5px !important;
    justify-content: center !important;
    flex: none !important;
    white-space: nowrap !important;
  }
  html:not([lang^="zh"]) body .miya-header .tb-eco-link {
    font-size: 10.6px !important;
    padding: 0 3px !important;
    letter-spacing: -0.015em !important;
  }
  html body .miya-header .tb-eco-link > span:not(.eco-dot) {
    overflow: visible !important;
    text-overflow: clip !important;
    white-space: nowrap !important;
  }
  html body .miya-content {
    padding: 0 16px 88px !important;
  }
  html body .miya-main {
    --header-h: 126px;
  }
  html body .miya-header {
    height: auto !important;
    min-height: 126px !important;
  }
  html body .miya-main > .fubi-ipc-dock[data-mode="full"]:not([hidden]) {
    padding: 16px 16px 0 !important;
  }
}

@media (min-width: 1121px) and (max-width: 1620px) {
  html body .miya-header {
    padding: 0 14px !important;
    gap: 10px !important;
  }
  html body .miya-header .header-left {
    flex: 1 1 0 !important;
    min-width: 0 !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    overflow: hidden !important;
  }
  html body .miya-header .page-title {
    flex: 0 1 auto !important;
    min-width: 0 !important;
    font-size: 13.5px !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }
  html body .miya-header .tb-eco {
    flex: 0 0 auto !important;
    margin-left: 0 !important;
    padding: 0 0 0 10px !important;
    gap: 3px !important;
  }
  html body .miya-header .tb-eco-link {
    flex-shrink: 0 !important;
    padding: 0 7px !important;
    font-size: 12px !important;
    white-space: nowrap !important;
  }
  html:not([lang^="zh"]) body .miya-header .tb-eco {
    padding-left: 8px !important;
    gap: 2px !important;
  }
  html:not([lang^="zh"]) body .miya-header .tb-eco-link {
    padding: 0 5.5px !important;
    font-size: 11px !important;
    letter-spacing: -0.015em !important;
  }
  html body .miya-header .header-right {
    flex: 0 0 auto !important;
    gap: 6px !important;
  }
  html body .miya-header .header-right :is(.lang-btn, .header-link, .wallet-pill, .theme-toggle) {
    padding: 0 8px !important;
    gap: 4px !important;
    font-size: 12px !important;
  }
  html body .miya-header .header-right .btn-recharge {
    padding: 0 10px !important;
    font-size: 12px !important;
  }
  html:not([lang^="zh"]) body .miya-header .header-right .lang-globe {
    display: none !important;
  }
  html:not([lang^="zh"]) body .miya-header .header-right .theme-toggle {
    width: 34px !important;
    padding: 0 !important;
    justify-content: center !important;
  }
  html:not([lang^="zh"]) body .miya-header .header-right .theme-toggle [data-theme-label],
  html:not([lang^="zh"]) body .miya-header .header-right .theme-toggle .theme-label {
    display: none !important;
  }
}

/* ---- 4. Overview (#/dashboard) V4 Master Full-Width De-Boxed Architecture ---- */
html body .ovw {
  display: flex !important;
  flex-direction: column !important;
  gap: 0 !important;
  padding: 0 !important;
  background: transparent !important;
}
html body .ovw::before,
html body .ovw::after,
html body .ovx-vf,
html body .ovx-glow,
html body .ovx-aurora,
html body .ovx-dots,
html body .ovx-hs-sheen,
html body .tk-perf {
  display: none !important;
  content: none !important;
}

/* Hero Two-Column */
html body .ovx-duo {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) clamp(472px, 22.8vw, 560px) !important;
  column-gap: clamp(48px, 4.5vw, 108px) !important;
  row-gap: 44px !important;
  align-items: stretch !important;
  padding: clamp(40px, 2.4vw, 58px) 0 clamp(48px, 2.8vw, 68px) !important;
  margin: 0 !important;
}
@media (max-width: 1200px) {
  html body .ovx-duo {
    grid-template-columns: minmax(0, 1fr) !important;
    padding: 32px 0 44px !important;
  }
}

/* Left Hero Column — Pure Frameless Canvas */
html body .ovx-main {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
  border-radius: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  gap: 34px !important;
}
html body .ovx-main::before,
html body .ovx-main::after {
  display: none !important;
}
html body .ovx-copy {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  gap: 14px !important;
}
html body .ovx-cap {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 0 !important;
  height: auto !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  letter-spacing: 0.01em !important;
  color: var(--status-online) !important;
}
html body .ovx-cap i {
  width: 7px !important;
  height: 7px !important;
  border-radius: 50% !important;
  background: var(--status-online) !important;
  box-shadow: none !important;
}
html body .ovx-copy h1,
html body .ovx-copy h2.ovx-hero-h {
  font-size: clamp(32px, 2.15vw, 48px) !important;
  font-weight: 700 !important;
  line-height: 1.18 !important;
  letter-spacing: -0.025em !important;
  color: var(--text-primary) !important;
  margin: 0 !important;
}
html body .ovx-copy h1 em,
html body .ovx-copy h2.ovx-hero-h em {
  font-style: normal !important;
  color: var(--accent-ink) !important;
  background: none !important;
  -webkit-background-clip: border-box !important;
  background-clip: border-box !important;
  -webkit-text-fill-color: currentColor !important;
  text-shadow: none !important;
}
html body .ovx-sub {
  font-size: clamp(14.5px, 0.66vw, 16px) !important;
  line-height: 1.72 !important;
  color: var(--text-secondary) !important;
  max-width: 58ch !important;
  margin: 2px 0 0 !important;
}

/* Compact Left-Aligned 4 KPIs + Space Grotesk Display Typography */
html body .ovx-metrics {
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: flex-start !important;
  align-items: center !important;
  width: fit-content !important;
  max-width: 100% !important;
  gap: 16px 0 !important;
  padding: 10px 0 !important;
  margin: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}
html body .ovx-metric {
  position: relative !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 clamp(22px, 2.2vw, 34px) 0 0 !important;
  margin: 0 clamp(22px, 2.2vw, 34px) 0 0 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  gap: 5px !important;
}
html body .ovx-metric:last-child {
  padding-right: 0 !important;
  margin-right: 0 !important;
}
html body .ovx-metric::before {
  display: none !important;
}
html body .ovx-metric:not(:last-child)::after {
  content: "" !important;
  display: block !important;
  position: absolute !important;
  right: 0 !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  width: 1px !important;
  height: 28px !important;
  background: var(--line-2) !important;
}
html body .ovx-metric:last-child::after {
  display: none !important;
}
html body .ovx-metric b {
  display: inline-flex !important;
  align-items: center !important;
  height: 28px !important;
  font-size: 24px !important;
  font-weight: 500 !important;
  line-height: 1 !important;
  letter-spacing: -0.03em !important;
  color: var(--text-primary) !important;
  font-variant-numeric: tabular-nums !important;
  background: none !important;
  -webkit-text-fill-color: currentColor !important;
}
html body .ovx-metric b .m-lat {
  font-family: "Space Grotesk", "Plus Jakarta Sans", "Inter", sans-serif !important;
  font-style: normal !important;
  font-weight: 500 !important;
  font-size: 25px !important;
  line-height: 1 !important;
  letter-spacing: -0.03em !important;
  color: var(--text-primary) !important;
  display: inline-flex !important;
  align-items: center !important;
}
html body .ovx-metric b .m-cjk {
  font-family: "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei UI", "Microsoft YaHei", system-ui, sans-serif !important;
  font-style: normal !important;
  font-weight: 600 !important;
  font-size: 22px !important;
  line-height: 1 !important;
  letter-spacing: 0.01em !important;
  color: var(--text-primary) !important;
  display: inline-flex !important;
  align-items: center !important;
}
html body .ovx-metric b .m-sep {
  font-family: "Space Grotesk", "Inter", sans-serif !important;
  font-style: normal !important;
  font-weight: 500 !important;
  font-size: 19px !important;
  line-height: 1 !important;
  margin: 0 6px !important;
  color: var(--text-muted) !important;
  display: inline-flex !important;
  align-items: center !important;
}
html body .ovx-metric > span {
  font-size: 12.5px !important;
  line-height: 1.4 !important;
  color: var(--text-muted) !important;
}
html body #ovx-tk-price,
html body .ovx-cta-price,
html body .lnp-total-main b,
html body .mx-co-total b,
html body .cc2-sum-total,
html body #ipc-ip-val,
html body #ipc-grade-val {
  font-family: "Space Grotesk", "JetBrains Mono", "Inter", sans-serif !important;
  font-weight: 500 !important;
  letter-spacing: -0.03em !important;
  font-variant-numeric: tabular-nums !important;
}
html body .lnp-route-main b {
  font-family: "Space Grotesk", var(--font-mono), sans-serif !important;
  font-weight: 600 !important;
  letter-spacing: 0.04em !important;
}
@media (max-width: 680px) {
  html body .ovx-metrics {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    width: 100% !important;
    gap: 18px 20px !important;
    padding: 8px 0 !important;
  }
  html body .ovx-metric {
    padding-right: 12px !important;
    margin-right: 0 !important;
  }
  html body .ovx-metric:nth-child(2n)::after {
    display: none !important;
  }
}

/* 3-Step Hairline Ledger + Action Buttons */
html body .ovx-bottom {
  display: flex !important;
  flex-direction: column !important;
  gap: 28px !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
}
html body .ovx-flow {
  display: flex !important;
  flex-direction: column !important;
  gap: 0 !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
  background: transparent !important;
  border: 0 !important;
}
html body .ovx-flow::before,
html body .ovx-flow::after {
  display: none !important;
  content: none !important;
}
html body .ovx-step {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 12px !important;
  width: 100% !important;
  padding: 13px 0 !important;
  background: transparent !important;
  border: 0 !important;
  border-bottom: 1px solid var(--line) !important;
  box-shadow: none !important;
  border-radius: 0 !important;
}
html body .ovx-step:first-child {
  border-top: 1px solid var(--line) !important;
}
html body .ovx-step::before,
html body .ovx-step::after {
  display: none !important;
}
html body .ovx-step-idx {
  font: 600 12px/1 var(--font-mono) !important;
  color: var(--accent-ink) !important;
  min-width: 22px !important;
  flex: none !important;
}
html body .ovx-step-ic {
  width: 18px !important;
  height: 18px !important;
  min-width: 18px !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  color: var(--text-secondary) !important;
  display: inline-grid !important;
  place-items: center !important;
  flex: none !important;
}
html body .ovx-step-ic svg {
  width: 15px !important;
  height: 15px !important;
}
html body .ovx-step-t {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  gap: 12px !important;
  flex: 1 1 auto !important;
  min-width: 0 !important;
}
html body .ovx-step-t strong {
  font-size: 14px !important;
  font-weight: 600 !important;
  color: var(--text-primary) !important;
  white-space: nowrap !important;
}
html body .ovx-step-leader {
  flex: 1 1 20px !important;
  height: 1px !important;
  min-width: 12px !important;
  border-bottom: 1px dashed var(--line-2) !important;
}
html body .ovx-step-t small {
  font-size: 12.5px !important;
  color: var(--text-muted) !important;
  white-space: nowrap !important;
  margin: 0 !important;
}
@media (max-width: 640px) {
  html body .ovx-step {
    align-items: flex-start !important;
  }
  html body .ovx-step-idx,
  html body .ovx-step-ic {
    margin-top: 2px !important;
  }
  html body .ovx-step-t {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 3px !important;
  }
  html body .ovx-step-t strong,
  html body .ovx-step-t small {
    white-space: normal !important;
  }
  html body .ovx-step-leader {
    display: none !important;
  }
}

html body .ovx-cta {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 12px !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
}
html body .ovx-cta .mx-btn {
  height: 46px !important;
  min-height: 46px !important;
  padding: 0 24px !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  border-radius: 6px !important;
  box-shadow: none !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
}
html body .ovx-cta .mx-btn-primary {
  background: var(--accent) !important;
  border: 1px solid var(--accent) !important;
  color: #FFFFFF !important;
}
html body .ovx-cta .mx-btn-primary:hover {
  background: var(--accent-hover) !important;
  border-color: var(--accent-hover) !important;
  transform: none !important;
}
html body .ovx-cta .mx-btn-ghost {
  background: transparent !important;
  border: 1px solid var(--line-2) !important;
  color: var(--text-primary) !important;
}
html body .ovx-cta .mx-btn-ghost:hover {
  background: var(--bg-card) !important;
  border-color: var(--border-hover) !important;
  transform: none !important;
}

/* Right Hero Column — Single #131518 / #FAF7F2 Focal Panel + Frameless Bottom Spec Ledger */
html body .ovx-side,
html body .ovx-showcase {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  flex: 1 1 auto !important;
  gap: 24px !important;
}
html body .ovx-showcase .sc-stage-card {
  background: var(--bg-card) !important;
  border: 1px solid var(--line-2) !important;
  border-radius: 4px !important;
  box-shadow: none !important;
  padding: 20px 22px 18px !important;
  overflow: hidden !important;
}
html body .ovx-showcase .sc-stage-card::before,
html body .ovx-showcase .sc-stage-card::after {
  display: none !important;
}
html body .ovx-showcase .sc-bar {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  gap: 12px !important;
  padding: 0 0 14px !important;
  margin: 0 !important;
  background: transparent !important;
  border: 0 !important;
  border-bottom: 1px solid var(--line) !important;
}
html body .ovx-showcase .sc-bar-title {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  width: 100% !important;
}
html body .ovx-showcase .sc-live-dot {
  width: 7px !important;
  height: 7px !important;
  border-radius: 50% !important;
  background: var(--status-online) !important;
  box-shadow: none !important;
}
html body .ovx-showcase .sc-bar-name {
  font-size: 13.5px !important;
  font-weight: 600 !important;
  color: var(--text-primary) !important;
}
html body .ovx-showcase .sc-bar-tag {
  margin-left: auto !important;
  font-size: 11.5px !important;
  font-weight: 500 !important;
  color: var(--text-muted) !important;
  background: transparent !important;
  border: 0 !important;
  padding: 0 !important;
}
html body .ovx-showcase .sc-pills {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 4px !important;
  padding: 0 !important;
  width: 100% !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}
@media (min-width: 1200px) {
  html[lang^="zh"] body .ovx-showcase .sc-pills,
  html:not([lang]) body .ovx-showcase .sc-pills {
    flex-wrap: nowrap !important;
    gap: 4px !important;
    justify-content: space-between !important;
  }
}
html body .ovx-showcase .sc-pill {
  flex: 1 1 auto !important;
  flex-direction: row !important;
  min-width: 0 !important;
  height: 28px !important;
  min-height: 28px !important;
  padding: 0 5px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 4px !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  color: var(--text-secondary) !important;
  background: transparent !important;
  border: 1px solid transparent !important;
  border-radius: 5px !important;
  box-shadow: none !important;
  white-space: nowrap !important;
  overflow: visible !important;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease !important;
}
html body .ovx-showcase .ovx-pflag-wrap {
  width: 15px !important;
  height: 11px !important;
  flex: none !important;
  border-radius: 1.5px !important;
  overflow: hidden !important;
  box-shadow: 0 0 0 1px rgba(128, 128, 128, 0.22) !important;
}
html body .ovx-showcase .sc-pill > span:not(.ovx-pflag-wrap) {
  max-width: none !important;
  overflow: visible !important;
  text-overflow: clip !important;
}
html body .ovx-showcase .sc-pill:hover:not(.is-active) {
  color: var(--text-primary) !important;
  background: color-mix(in srgb, var(--text-primary) 5%, transparent) !important;
}
html body .ovx-showcase .sc-pill.is-active,
html[data-theme="dark"] body .ovx-showcase .sc-pill.is-active,
html[data-theme="light"] body .ovx-showcase .sc-pill.is-active {
  background: var(--accent-subtle) !important;
  color: var(--accent-ink) !important;
  font-weight: 600 !important;
  border: 1px solid var(--accent-border) !important;
  box-shadow: none !important;
}
html body .ovx-pdot {
  display: none !important;
}

html body .ovx-stage,
html[data-theme="dark"] body .ovx-stage,
html[data-theme="light"] body .ovx-stage {
  min-height: 0 !important;
  padding: 14px 0 0 !important;
  margin: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  color: var(--text-primary) !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 14px !important;
}
html body .ovx-topo {
  padding: 2px 4px !important;
  margin: 0 !important;
  gap: 10px !important;
}
html body .ovx-end,
html body .ovx-hub {
  gap: 4px !important;
}
html body .ovx-end small,
html[data-theme="light"] body .ovx-end small {
  color: var(--text-secondary) !important;
  font-size: 11px !important;
}
html body .ovx-hub small,
html[data-theme="light"] body .ovx-hub small {
  color: var(--accent-ink) !important;
  font-size: 11px !important;
}
html body .ovx-end-ic,
html[data-theme="light"] body .ovx-end-ic {
  width: 26px !important;
  height: 26px !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 4px !important;
  box-shadow: none !important;
  color: var(--text-secondary) !important;
}
html body .ovx-end-ic .ic {
  width: 17px !important;
  height: 17px !important;
}
html body .ovx-end.is-exit .ovx-end-ic,
html[data-theme="light"] body .ovx-end.is-exit .ovx-end-ic {
  color: var(--status-online) !important;
  border: 0 !important;
  background: transparent !important;
}
html body .ovx-hub-core,
html[data-theme="light"] body .ovx-hub-core {
  width: auto !important;
  height: 26px !important;
  padding: 0 2px !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}
html body .ovx-hub-flag {
  width: 24px !important;
  height: 16px !important;
  border-radius: 2px !important;
  box-shadow: 0 0 0 1px var(--line-2) !important;
}
html body .ovx-wire {
  height: 1px !important;
  margin-bottom: 16px !important;
}
html body .ovx-hub-ring {
  display: none !important;
}
html body .ovx-wire i {
  box-shadow: none !important;
  border-radius: 50% !important;
}

/* Keep outer .ovx-hs divider steady on 4.2s switch; let 26 wave bars, 3-step ticks, ms badge & hub flag animate */
html body .ovx-stage.is-play .ovx-hs {
  animation: none !important;
  opacity: 1 !important;
  filter: none !important;
  transform: none !important;
}

html body .ovx-hs-wrap {
  width: 100% !important;
  max-width: none !important;
  padding: 0 !important;
  margin: 0 !important;
}
html body .ovx-hs,
html[data-theme="dark"] body .ovx-hs,
html[data-theme="light"] body .ovx-hs {
  width: 100% !important;
  max-width: none !important;
  padding: 14px 0 0 !important;
  margin: 0 !important;
  background: transparent !important;
  border: 0 !important;
  border-top: 1px solid var(--line) !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 12px !important;
}
html body .ovx-hs::before,
html body .ovx-hs::after {
  display: none !important;
}
html body .ovx-hs-id b,
html[data-theme="light"] body .ovx-hs-id b {
  color: var(--text-primary) !important;
}
html body .ovx-hs-id small,
html[data-theme="light"] body .ovx-hs-id small {
  color: var(--text-muted) !important;
}
html body .ovx-hs-id small::before,
html[data-theme="light"] body .ovx-hs-id small::before {
  background: var(--accent) !important;
  box-shadow: none !important;
}
html body .ovx-hs-net-pill,
html[data-theme="light"] body .ovx-hs-net-pill {
  background: var(--bg-input) !important;
  border: 1px solid var(--line) !important;
  color: var(--text-secondary) !important;
  border-radius: 4px !important;
  box-shadow: none !important;
}
/* Status Badge: ONLY emerald dot + latency ms (● 18ms) */
html body .ovx-ok,
html[data-theme="dark"] body .ovx-ok,
html[data-theme="light"] body .ovx-ok {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  height: 26px !important;
  padding: 0 10px !important;
  border-radius: 999px !important;
  background: var(--status-online-bg) !important;
  border: 1px solid rgba(16, 185, 129, 0.28) !important;
  color: var(--status-online) !important;
  box-shadow: none !important;
  font: 600 12px/1 var(--font-mono) !important;
}
html[data-theme="light"] body .ovx-ok {
  border-color: rgba(5, 150, 105, 0.26) !important;
}
html body .ovx-ok i {
  width: 6px !important;
  height: 6px !important;
  border-radius: 50% !important;
  background: var(--status-online) !important;
  box-shadow: none !important;
}
html body .ovx-ok b,
html[data-theme="light"] body .ovx-ok b {
  color: var(--status-online) !important;
  font-family: var(--font-mono) !important;
  font-weight: 600 !important;
}

html body .ovx-uri,
html[data-theme="light"] body .ovx-uri {
  background: var(--bg-input) !important;
  border: 1px solid var(--line) !important;
  border-radius: 4px !important;
  padding: 9px 12px !important;
  font-family: var(--font-mono) !important;
  font-size: 12.5px !important;
  color: var(--text-secondary) !important;
  box-shadow: none !important;
}
html body .ovx-uri span,
html[data-theme="light"] body .ovx-uri span {
  color: var(--text-muted) !important;
}
html body .ovx-uri b,
html[data-theme="light"] body .ovx-uri b {
  color: var(--text-primary) !important;
}

/* 26 Pure Emerald Waveform Bars (Zero Brown / Zero Orange) */
html body .ovx-wave {
  display: grid !important;
  grid-template-columns: repeat(26, minmax(0, 1fr)) !important;
  align-items: end !important;
  gap: 3px !important;
  height: 30px !important;
  padding: 2px 0 !important;
  margin: 0 !important;
  background: transparent !important;
  border: 0 !important;
}
html body .ovx-wave i {
  width: 100% !important;
  height: var(--h, 50%) !important;
  border-radius: 1.5px 1.5px 0 0 !important;
  background: rgba(16, 185, 129, 0.42) !important;
  box-shadow: none !important;
  transform-origin: 50% 100% !important;
}
html body .ovx-wave i.lv-mid {
  background: rgba(16, 185, 129, 0.72) !important;
}
html body .ovx-wave i.lv-hi {
  background: #10B981 !important;
}
html[data-theme="light"] body .ovx-wave i {
  background: rgba(5, 150, 105, 0.38) !important;
}
html[data-theme="light"] body .ovx-wave i.lv-mid {
  background: rgba(5, 150, 105, 0.68) !important;
}
html[data-theme="light"] body .ovx-wave i.lv-hi {
  background: #059669 !important;
}
@keyframes ovx-wave {
  0%, 100% { transform: scaleY(0.52); opacity: 0.84; }
  50% { transform: scaleY(1); opacity: 1; }
}

html body .ovx-hs-steps {
  border-top: 1px solid var(--line) !important;
  padding-top: 10px !important;
  margin: 0 !important;
}
html body .ovx-hs-steps li,
html[data-theme="light"] body .ovx-hs-steps li {
  background: transparent !important;
  border: 0 !important;
  padding: 0 !important;
  color: var(--text-secondary) !important;
  font-size: 12px !important;
}
html body .ovx-hs-steps li i,
html[data-theme="light"] body .ovx-hs-steps li i {
  color: var(--status-online) !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

html body .ovx-hud,
html[data-theme="light"] body .ovx-hud {
  position: static !important;
  left: auto !important;
  bottom: auto !important;
  transform: none !important;
  width: 100% !important;
  max-width: none !important;
  justify-content: center !important;
  padding: 11px 0 0 !important;
  margin: 0 !important;
  background: transparent !important;
  border: 0 !important;
  border-top: 1px solid var(--line) !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  font-size: 12px !important;
  color: var(--text-muted) !important;
}
html body .ovx-hud-c,
html[data-theme="light"] body .ovx-hud-c {
  color: var(--accent-ink) !important;
}
@media (max-width: 600px) {
  html body .ovx-uri,
  html[data-theme="light"] body .ovx-uri {
    font-size: 11px !important;
    padding: 8px 9px !important;
  }
  html body .ovx-hs-steps li,
  html[data-theme="light"] body .ovx-hs-steps li {
    font-size: 11px !important;
    justify-content: flex-start !important;
  }
  html[lang^="zh"] body .ovx-hs-steps li span,
  html:not([lang]) body .ovx-hs-steps li span {
    white-space: nowrap !important;
  }
}

/* Frameless Channel Spec Ledger (Bottom-Aligned with Left Hero Buttons) */
html body .sc-ticket {
  margin-top: auto !important;
  padding: 16px 0 0 !important;
  background: transparent !important;
  border: 0 !important;
  border-top: 1px solid var(--line-2) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 0 !important;
}
html body .sc-ticket::before,
html body .sc-ticket::after {
  display: none !important;
}
html body .sc-ticket .tk-head {
  padding: 0 0 10px !important;
  margin: 0 !important;
  background: transparent !important;
  border: 0 !important;
}
html body .sc-ticket .tk-dest {
  padding: 10px 0 !important;
  margin: 0 !important;
  background: transparent !important;
  border: 0 !important;
  border-top: 1px solid var(--line) !important;
  border-radius: 0 !important;
}
html body .sc-ticket .tk-grid {
  display: flex !important;
  flex-direction: column !important;
  gap: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  background: transparent !important;
  border: 0 !important;
}
html body .sc-ticket .tk-cell {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 16px !important;
  padding: 9px 0 !important;
  background: transparent !important;
  border: 0 !important;
  border-top: 1px solid var(--line) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}
html body .sc-ticket .tk-cell small {
  font-size: 12.5px !important;
  color: var(--text-muted) !important;
  flex: none !important;
}
html body .sc-ticket .tk-cell strong {
  font-size: 13px !important;
  font-weight: 500 !important;
  color: var(--text-primary) !important;
  text-align: right !important;
}
html body .sc-ticket .tk-foot {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  padding: 12px 0 0 !important;
  margin: 0 !important;
  background: transparent !important;
  border: 0 !important;
  border-top: 1px solid var(--line-2) !important;
}
html body .sc-ticket .tk-chip {
  background: transparent !important;
  border: 0 !important;
  padding: 0 !important;
  font-size: 12px !important;
  color: var(--text-muted) !important;
}
html body .sc-ticket .tk-price-row strong {
  font-size: 20px !important;
  font-weight: 700 !important;
  font-family: var(--font-mono) !important;
  color: var(--accent-ink) !important;
}

/* ---- 5. Middle IP Purity Check Instrument Strip (100% Transparent Canvas + Top/Bottom 1px Hairlines) ---- */
html body .ovx-ipc-slot {
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}
html body .fubi-ipc-dock {
  --ipc-pass: var(--status-online);
  --ipc-pass-ink: var(--status-online);
  --ipc-pass-bg: var(--status-online-bg);
  --ipc-pass-bd: color-mix(in srgb, var(--status-online) 28%, transparent);
  background: transparent !important;
}
html body #ovx-ipc-slot .fubi-ipc-dock {
  padding: 0 !important;
  margin: 0 !important;
  max-width: none !important;
}
html body .fubi-ipc-card,
html[data-theme="dark"] body .fubi-ipc-card,
html[data-theme="light"] body .fubi-ipc-card {
  max-width: none !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 28px 0 26px !important;
  background: transparent !important;
  background-color: transparent !important;
  border: 0 !important;
  border-top: 1px solid var(--line-2) !important;
  border-bottom: 1px solid var(--line-2) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  gap: 18px !important;
}
html body #ovx-ipc-slot .fubi-ipc-body {
  padding-top: 14px !important;
  gap: 15px !important;
}
html body #ovx-ipc-slot .fubi-ipc-summary {
  padding: 0 0 13px !important;
}
html body #ovx-ipc-slot .fubi-ipc-verdict {
  padding: 13px 0 0 !important;
}
/* Standalone /ip-check (data-mode="full"): max-width 1100px centered + 30%-35% vertical compression */
html body .fubi-ipc-dock[data-mode="full"] > .fubi-ipc-card,
html[data-theme="dark"] body .fubi-ipc-dock[data-mode="full"] > .fubi-ipc-card,
html[data-theme="light"] body .fubi-ipc-dock[data-mode="full"] > .fubi-ipc-card {
  max-width: 1100px !important;
  width: 100% !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding: 18px 0 20px !important;
  gap: 14px !important;
}
html body .fubi-ipc-dock[data-mode="full"] .fubi-ipc-form {
  flex: 0 1 540px !important;
}
html body .fubi-ipc-dock[data-mode="full"] .fubi-ipc-body {
  padding-top: 13px !important;
  gap: 13px !important;
}
html body .fubi-ipc-dock[data-mode="full"] .fubi-ipc-summary {
  padding: 0 0 11px !important;
}
html body .fubi-ipc-dock[data-mode="full"] .fubi-ipc-grid {
  gap: 14px clamp(18px, 1.8vw, 32px) !important;
}
html body .fubi-ipc-dock[data-mode="full"] .fubi-ipc-cell {
  padding: 10px 0 2px !important;
  gap: 6px !important;
}
html body .fubi-ipc-dock[data-mode="full"] .fubi-ipc-verdict {
  padding: 11px 0 0 !important;
}
html body .fubi-ipc-card::before,
html body .fubi-ipc-card::after {
  display: none !important;
}
html body .fubi-ipc-head {
  padding: 0 !important;
  margin: 0 !important;
  background: transparent !important;
  border: 0 !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 18px 28px !important;
}
html body .fubi-ipc-brand-ic {
  width: 34px !important;
  height: 34px !important;
  background: transparent !important;
  border: 1px solid var(--line-2) !important;
  border-radius: 6px !important;
  box-shadow: none !important;
  color: var(--accent-ink) !important;
}
html body .fubi-ipc-brand-ic::before,
html body .fubi-ipc-brand-ic::after {
  display: none !important;
}
html body .fubi-ipc-title {
  font-size: 19px !important;
  font-weight: 700 !important;
  color: var(--text-primary) !important;
  letter-spacing: -0.015em !important;
}
html body .fubi-ipc-sub {
  font-size: 13px !important;
  color: var(--text-muted) !important;
}
html body .fubi-ipc-pill {
  background: transparent !important;
  border: 1px solid var(--line-2) !important;
  box-shadow: none !important;
  border-radius: 999px !important;
  height: 22px !important;
  padding: 0 9px !important;
}
html body .fubi-ipc-form {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  flex: 0 1 620px !important;
}
html body .fubi-ipc-field {
  height: 40px !important;
  background: var(--bg-input) !important;
  border: 1px solid var(--line-2) !important;
  border-radius: 6px !important;
  box-shadow: none !important;
}
html body .fubi-ipc-field:focus-within {
  border-color: var(--accent) !important;
  box-shadow: 0 0 0 2px var(--accent-subtle) !important;
}
html body .fubi-ipc-btn {
  height: 40px !important;
  padding: 0 16px !important;
  border-radius: 6px !important;
  box-shadow: none !important;
  font-size: 13px !important;
  font-weight: 600 !important;
}
html body .fubi-ipc-btn-primary {
  background: var(--accent) !important;
  border: 1px solid var(--accent) !important;
  color: #FFFFFF !important;
}
html body .fubi-ipc-btn-primary:hover {
  background: var(--accent-hover) !important;
  border-color: var(--accent-hover) !important;
}
html body .fubi-ipc-btn-ghost {
  background: transparent !important;
  border: 1px solid var(--line-2) !important;
  color: var(--text-primary) !important;
}
html body .fubi-ipc-btn-ghost:hover {
  background: var(--bg-card) !important;
  border-color: var(--border-hover) !important;
}

/* V4 Open 4-Column Top-2px-Emerald Readout Strip (Zero Dashed Grid / Zero Box Cells) */
html body .fubi-ipc-body {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  gap: 20px !important;
  border-top: 1px solid var(--line) !important;
  padding-top: 18px !important;
  background: transparent !important;
}
html body .fubi-ipc-summary {
  background: transparent !important;
  border: 0 !important;
  border-bottom: 1px solid var(--line) !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  padding: 0 0 16px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 16px !important;
}
html body .fubi-ipc-summary::before,
html body .fubi-ipc-summary::after {
  display: none !important;
}
html body .fubi-ipc-ip {
  font-family: var(--font-mono) !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  color: var(--text-primary) !important;
  white-space: nowrap !important;
}
html body .fubi-ipc-grade,
html body .fubi-ipc-grade[data-grade] {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
  min-height: 0 !important;
  gap: 10px !important;
}
html body .fubi-ipc-grade-val,
html body .fubi-ipc-grade[data-grade] .fubi-ipc-grade-val {
  min-width: 38px !important;
  height: 34px !important;
  padding: 0 8px !important;
  font: 700 15px/1 var(--font-mono) !important;
  border-radius: 4px !important;
  background: var(--bg-card) !important;
  border: 1px solid var(--line-2) !important;
  color: var(--text-primary) !important;
  text-shadow: none !important;
  box-shadow: none !important;
}
html body .fubi-ipc-grade-val::before,
html body .fubi-ipc-grade-val::after {
  display: none !important;
  animation: none !important;
}
html body .fubi-ipc-grade[data-grade^="A"] .fubi-ipc-grade-val {
  background: var(--status-online-bg) !important;
  border-color: rgba(16, 185, 129, 0.34) !important;
  color: var(--status-online) !important;
}
html body .fubi-ipc-grade[data-grade="B"] .fubi-ipc-grade-val {
  background: var(--status-warning-bg) !important;
  border-color: rgba(245, 158, 11, 0.34) !important;
  color: var(--status-warning) !important;
}
html body .fubi-ipc-grade[data-grade="C"] .fubi-ipc-grade-val {
  background: var(--status-danger-bg) !important;
  border-color: rgba(239, 68, 68, 0.34) !important;
  color: var(--status-danger) !important;
}

html body .fubi-ipc-grid,
html body .fubi-ipc-dock[data-mode="full"] .fubi-ipc-grid {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 20px clamp(24px, 2.4vw, 48px) !important;
}
html body .fubi-ipc-cell,
html body .fubi-ipc-dock[data-mode="full"] .fubi-ipc-cell {
  min-height: 0 !important;
  padding: 14px 0 4px !important;
  background: transparent !important;
  border: 0 !important;
  border-top: 2px solid var(--line-2) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  gap: 10px !important;
  transition: border-color 0.2s ease !important;
}
html body .fubi-ipc-body:not([data-state="loading"]) .fubi-ipc-cell:has(.fubi-ipc-badge[data-pass="true"]),
html body .fubi-ipc-body:not([data-state="loading"]):has(#ipc-grade-badge[data-grade^="A"]) .fubi-ipc-cell:has(#ipc-asn-val) {
  border-top-color: var(--status-online) !important;
}
html body .fubi-ipc-body:not([data-state="loading"]):has(#ipc-grade-badge[data-grade="B"]) .fubi-ipc-cell:has(#ipc-asn-val) {
  border-top-color: var(--status-warning) !important;
}
html body .fubi-ipc-body:not([data-state="loading"]) .fubi-ipc-cell:has(.fubi-ipc-badge[data-pass="false"]),
html body .fubi-ipc-body:not([data-state="loading"]):has(#ipc-grade-badge[data-grade="C"]) .fubi-ipc-cell:has(#ipc-asn-val) {
  border-top-color: var(--status-danger) !important;
}
html body .fubi-ipc-cell::before,
html body .fubi-ipc-cell::after,
html body .fubi-ipc-cell-head::after {
  display: none !important;
}
html body .fubi-ipc-cell:hover {
  background: transparent !important;
}
html body .fubi-ipc-cell-head,
html body .fubi-ipc-dock[data-mode="full"] .fubi-ipc-cell-head {
  padding: 0 !important;
  margin: 0 !important;
}
html body .fubi-ipc-k-ic {
  width: 18px !important;
  height: 18px !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  color: var(--text-muted) !important;
}
html body .fubi-ipc-k {
  font-size: 12px !important;
  font-weight: 500 !important;
  color: var(--text-muted) !important;
}
html body .fubi-ipc-v,
html body .fubi-ipc-dock[data-mode="full"] .fubi-ipc-v {
  margin: 0 !important;
  padding: 0 !important;
  font-size: 14.5px !important;
  font-weight: 600 !important;
  color: var(--text-primary) !important;
}
html body .fubi-ipc-asn {
  background: transparent !important;
  border: 1px solid var(--line-2) !important;
  box-shadow: none !important;
  color: var(--accent-ink) !important;
  border-radius: 4px !important;
}
html body .fubi-ipc-badge {
  box-shadow: none !important;
  background: transparent !important;
  border: 1px solid var(--line-2) !important;
  border-radius: 4px !important;
}
html body .fubi-ipc-badge::before {
  border-radius: 50% !important;
  box-shadow: none !important;
}
html body .fubi-ipc-badge[data-pass="true"] {
  background: var(--status-online-bg) !important;
  border-color: rgba(16, 185, 129, 0.28) !important;
  color: var(--status-online) !important;
}
html body .fubi-ipc-badge[data-pass="false"] {
  background: var(--status-danger-bg) !important;
  border-color: rgba(239, 68, 68, 0.28) !important;
  color: var(--status-danger) !important;
}

html body .fubi-ipc-verdict,
html body .fubi-ipc-dock[data-mode="full"] .fubi-ipc-verdict {
  grid-column: 1 / -1 !important;
  min-height: 0 !important;
  padding: 16px 0 0 !important;
  margin: 0 !important;
  background: transparent !important;
  border: 0 !important;
  border-top: 1px solid var(--line) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}
html body .fubi-ipc-verdict-ic {
  width: 22px !important;
  height: 22px !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  color: var(--text-muted) !important;
}
html body .fubi-ipc-verdict[data-pass="true"] .fubi-ipc-verdict-ic {
  color: var(--status-online) !important;
}
html body .fubi-ipc-verdict[data-pass="false"] .fubi-ipc-verdict-ic {
  color: var(--status-warning) !important;
}
html body .fubi-ipc-verdict[data-pass="false"][data-grade="C"] .fubi-ipc-verdict-ic,
html body .fubi-ipc-body[data-state="error"] .fubi-ipc-verdict-ic {
  color: var(--status-danger) !important;
}
html body .fubi-ipc-cta {
  height: 34px !important;
  padding: 0 14px !important;
  font-size: 12.5px !important;
  font-weight: 600 !important;
  background: transparent !important;
  border: 1px solid var(--accent-border) !important;
  color: var(--accent-ink) !important;
  border-radius: 6px !important;
  box-shadow: none !important;
}
html body .fubi-ipc-cta:hover {
  background: var(--accent) !important;
  border-color: var(--accent) !important;
  color: #FFFFFF !important;
}

@media (max-width: 1024px) {
  html body .fubi-ipc-grid,
  html body .fubi-ipc-dock[data-mode="full"] .fubi-ipc-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 20px 24px !important;
  }
}
@media (max-width: 768px) {
  html body .fubi-ipc-form {
    flex: 1 1 100% !important;
    flex-wrap: wrap !important;
  }
  html body .fubi-ipc-field {
    flex: 1 1 100% !important;
  }
  html body .fubi-ipc-btn {
    flex: 1 1 calc(50% - 4px) !important;
  }
  html body .fubi-ipc-summary {
    flex-wrap: wrap !important;
  }
  html body .fubi-ipc-grid,
  html body .fubi-ipc-dock[data-mode="full"] .fubi-ipc-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 18px 16px !important;
  }
  html body .fubi-ipc-verdict,
  html body .fubi-ipc-dock[data-mode="full"] .fubi-ipc-verdict {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 12px !important;
  }
  html body .fubi-ipc-cta {
    width: 100% !important;
    justify-content: center !important;
  }
}

/* Standalone /ip-check Guide Section De-Boxed & Compact 1100px Centered */
html body .fubi-ipc-guide,
html body .miya-content > .fubi-ipc-guide {
  max-width: 1100px !important;
  width: 100% !important;
  padding: 22px 0 4px !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  margin-left: auto !important;
  margin-right: auto !important;
  gap: 14px !important;
}
html body .fubi-ipc-guide-head {
  gap: 3px !important;
  margin-bottom: 2px !important;
}
html body .fubi-ipc-guide-title {
  font-size: 17px !important;
}
html body .fubi-ipc-guide-sub {
  font-size: 12.5px !important;
}
html body .fubi-ipc-guide-steps {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 18px clamp(20px, 2vw, 32px) !important;
}
@media (max-width: 900px) {
  html body .fubi-ipc-guide-steps {
    grid-template-columns: minmax(0, 1fr) !important;
  }
}
html body .fubi-ipc-guide-step {
  background: transparent !important;
  border: 0 !important;
  border-top: 1px solid var(--line-2) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding: 14px 0 0 !important;
  gap: 7px !important;
}
html body .fubi-ipc-guide-step::before,
html body .fubi-ipc-guide-step::after {
  display: none !important;
}
html body .fubi-ipc-guide-ic {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  color: var(--accent-ink) !important;
  width: 20px !important;
  height: 20px !important;
}
html body .fubi-ipc-guide-cta {
  margin-top: 22px !important;
  padding: 18px 0 0 !important;
  background: transparent !important;
  border: 0 !important;
  border-top: 1px solid var(--line-2) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}
html body .fubi-ipc-guide-cta::before,
html body .fubi-ipc-guide-cta::after {
  display: none !important;
}
html body .fubi-ipc-guide-cta-btn {
  background: var(--accent) !important;
  border: 1px solid var(--accent) !important;
  color: #FFFFFF !important;
  box-shadow: none !important;
  height: 40px !important;
  padding: 0 18px !important;
}
html body .fubi-ipc-cross {
  margin-top: 16px !important;
  padding: 13px 0 0 !important;
  border-top: 1px solid var(--line) !important;
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 10px 20px !important;
}
html body .fubi-ipc-cross-kicker {
  font-size: 12px !important;
  font-weight: 600 !important;
  letter-spacing: 0.04em !important;
  color: var(--text-muted) !important;
}
html body .fubi-ipc-cross-links {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 10px 16px !important;
}
html body .fubi-ipc-cross-sep {
  color: var(--line-2) !important;
  font-size: 12px !important;
  user-select: none !important;
}
html body .fubi-ipc-cross-link {
  display: inline-flex !important;
  align-items: center !important;
  gap: 5px !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  color: var(--text-secondary) !important;
  text-decoration: none !important;
  transition: color 0.15s ease !important;
}
html body .fubi-ipc-cross-link svg {
  width: 13px !important;
  height: 13px !important;
  fill: none !important;
  stroke: currentColor !important;
  stroke-width: 1.9 !important;
  stroke-linecap: round !important;
  stroke-linejoin: round !important;
  opacity: 0.72 !important;
  transition: transform 0.15s ease, opacity 0.15s ease !important;
}
html body .fubi-ipc-cross-link:hover {
  color: var(--accent-ink) !important;
}
html body .fubi-ipc-cross-link:hover svg {
  opacity: 1 !important;
  transform: translateX(2px) !important;
}

/* ---- 6. Core Specifications 2x3 Open Hairline Matrix + Closing Action Strip ---- */
html body .ovb-sec {
  display: grid !important;
  grid-template-columns: clamp(236px, 12vw, 308px) minmax(0, 1fr) !important;
  gap: 36px clamp(44px, 4.2vw, 108px) !important;
  align-items: start !important;
  padding: clamp(52px, 3.2vw, 80px) 0 !important;
  margin: 0 !important;
  background: transparent !important;
  border: 0 !important;
}
html body .ovb-sec .mx-sec-head {
  position: sticky !important;
  top: calc(var(--header-h) + 28px) !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  text-align: left !important;
  gap: 10px !important;
  margin: 0 !important;
  padding: 0 !important;
}
html body .ovb-sec .mx-kicker {
  font: 600 11.5px/1.2 var(--font-mono) !important;
  letter-spacing: 0.14em !important;
  text-transform: uppercase !important;
  color: var(--accent-ink) !important;
  background: transparent !important;
  border: 0 !important;
  padding: 0 !important;
}
html body .ovb-sec .mx-sec-head h2 {
  font-size: clamp(24px, 1.45vw, 32px) !important;
  font-weight: 700 !important;
  letter-spacing: -0.02em !important;
  color: var(--text-primary) !important;
}
html body .ovb-sec .mx-sec-head p {
  font-size: 14px !important;
  line-height: 1.7 !important;
  color: var(--text-secondary) !important;
}
html body .ovb {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 40px clamp(36px, 3vw, 76px) !important;
}
@media (max-width: 1080px) {
  html body .ovb-sec {
    grid-template-columns: minmax(0, 1fr) !important;
  }
  html body .ovb-sec .mx-sec-head {
    position: static !important;
  }
}
@media (max-width: 680px) {
  html body .ovb {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 28px !important;
  }
}

html body .ovb-card {
  background: transparent !important;
  border: 0 !important;
  border-top: 1px solid var(--line-2) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding: 20px 0 0 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 10px !important;
}
html body .ovb-card::before,
html body .ovb-card::after {
  display: none !important;
}
html body .ovb-card:hover {
  transform: none !important;
  border-top-color: var(--accent) !important;
}
html body .ovb-head {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  margin-bottom: 2px !important;
}
html body .ovb-ic {
  width: 22px !important;
  height: 22px !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  color: var(--accent-ink) !important;
}
html body .ovb-ic svg {
  width: 18px !important;
  height: 18px !important;
}
html body .ovb-idx {
  font: 600 12px/1 var(--font-mono) !important;
  color: var(--text-muted) !important;
}
html body .ovb-card h3 {
  font-size: 16.5px !important;
  font-weight: 600 !important;
  color: var(--text-primary) !important;
  margin: 0 !important;
}
html body .ovb-card p {
  font-size: 13.5px !important;
  line-height: 1.68 !important;
  color: var(--text-secondary) !important;
  margin: 0 !important;
  flex: 1 1 auto !important;
}
html body .ovb-spec {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  padding: 10px 0 0 !important;
  margin-top: 4px !important;
  background: transparent !important;
  border: 0 !important;
  font-size: 12.5px !important;
}
html body .ovb-spec span {
  color: var(--text-muted) !important;
  flex: none !important;
}
html body .ovb-dots {
  flex: 1 1 20px !important;
  height: 1px !important;
  border-bottom: 1px dashed var(--line-2) !important;
}
html body .ovb-spec b {
  color: var(--text-primary) !important;
  font-weight: 600 !important;
  font-family: var(--font-sans) !important;
  font-variant-numeric: tabular-nums !important;
  flex: none !important;
}

/* Closing Action Strip */
html body .mx-cta-wrap {
  padding: 0 !important;
  margin: 0 !important;
}
html body .cc2-cta {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 24px !important;
  padding: clamp(44px, 2.8vw, 64px) 0 16px !important;
  margin: 0 !important;
  background: transparent !important;
  border: 0 !important;
  border-top: 1px solid var(--line-2) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}
html body .cc2-cta::before,
html body .cc2-cta::after {
  display: none !important;
}
html body .cc2-cta-copy h2 {
  font-size: clamp(22px, 1.4vw, 30px) !important;
  font-weight: 700 !important;
  line-height: 1.28 !important;
  color: var(--text-primary) !important;
}
html body .cc2-cta-copy h2 em {
  font-style: normal !important;
  color: var(--accent-ink) !important;
  background: none !important;
  -webkit-text-fill-color: currentColor !important;
}
html body .cc2-cta-copy p {
  margin-top: 8px !important;
  font-size: 14px !important;
  color: var(--text-secondary) !important;
}
html body .cc2-cta-btn {
  height: 46px !important;
  padding: 0 26px !important;
  background: var(--accent) !important;
  border: 1px solid var(--accent) !important;
  color: #FFFFFF !important;
  border-radius: 6px !important;
  box-shadow: none !important;
  flex: none !important;
}
@media (max-width: 768px) {
  html body .cc2-cta {
    flex-direction: column !important;
    align-items: flex-start !important;
  }
  html body .cc2-cta-btn {
    width: 100% !important;
    justify-content: center !important;
  }
}

/* ---- 7. All Inner Pages & Modals V4 De-Boxed System ---- */
html body .mx-page {
  padding-top: clamp(28px, 1.8vw, 42px) !important;
  gap: 28px !important;
}
html body .mx-phead {
  padding-bottom: 22px !important;
  border-bottom: 1px solid var(--line-2) !important;
  margin-bottom: 0 !important;
}
html body .mx-phead h2 {
  font-size: clamp(24px, 1.45vw, 32px) !important;
  font-weight: 700 !important;
  letter-spacing: -0.02em !important;
  color: var(--text-primary) !important;
}
html body .mx-phead p {
  font-size: 14px !important;
  color: var(--text-secondary) !important;
  margin-top: 6px !important;
}

/* Open KPI Strips (#/static-proxies, #/billings, #/orders) */
html body .mx-summary-bar,
html body .mx-stats-grid {
  background: transparent !important;
  border: 0 !important;
  border-bottom: 1px solid var(--line) !important;
  box-shadow: none !important;
  padding: 0 0 24px !important;
  gap: 20px clamp(20px, 2vw, 40px) !important;
}
html body .mx-summary-cell,
html body .mx-stat {
  background: transparent !important;
  border: 0 !important;
  border-top: 2px solid var(--line-2) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding: 16px 0 0 !important;
}
html body .mx-summary-cell::before,
html body .mx-summary-cell::after,
html body .mx-stat::before,
html body .mx-stat::after {
  display: none !important;
}
html body .mx-summary-cell.is-clickable:hover,
html body .mx-summary-cell.is-active {
  background: transparent !important;
  border-top-color: var(--accent) !important;
}
html body .cc2-kpi-ico,
html body .mx-stat-ico {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  color: var(--text-muted) !important;
}

/* Frameless Full-Width 1px Hairline Tables & Panels */
html body .mx-toolbar.sp-toolbar {
  background: transparent !important;
  border: 0 !important;
  border-bottom: 1px solid var(--line) !important;
  box-shadow: none !important;
  padding: 0 0 18px !important;
}
html body .mx-table-wrap {
  background: transparent !important;
  border: 0 !important;
  border-top: 1px solid var(--line-2) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}
html body .mx-table-head {
  padding: 18px 0 14px !important;
  background: transparent !important;
  border-bottom: 1px solid var(--line) !important;
}
html body .mx-table thead th {
  background: transparent !important;
  border-bottom: 1px solid var(--line-2) !important;
  color: var(--text-muted) !important;
  font-weight: 600 !important;
  font-size: 12px !important;
  padding-top: 13px !important;
  padding-bottom: 13px !important;
}
html body .mx-table tbody tr {
  background: transparent !important;
  border-bottom: 1px solid var(--line) !important;
}
html body .mx-table tbody tr:hover {
  background: var(--bg-card) !important;
}
html body .mx-table tbody td {
  border-bottom: 1px solid var(--line) !important;
}
@media (max-width: 768px) {
  html body .mx-table tbody tr {
    background: var(--bg-card) !important;
    border: 1px solid var(--line-2) !important;
    border-radius: 4px !important;
  }
}

html body .mx-panel {
  background: transparent !important;
  border: 0 !important;
  border-top: 1px solid var(--line-2) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding: 24px 0 0 !important;
}
html body .mx-panel::before,
html body .mx-panel::after {
  display: none !important;
}
html body .mx-panel.mx-gate {
  background: var(--bg-card) !important;
  border: 1px solid var(--line-2) !important;
  border-radius: 4px !important;
  padding: 40px 28px !important;
}
html body .mx-title-ico {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  color: var(--accent-ink) !important;
}
html body .cc2-s3 {
  background: transparent !important;
  border: 0 !important;
  border-top: 1px solid var(--line) !important;
  box-shadow: none !important;
  padding: 16px 0 0 !important;
}

/* #/buy Restored European Edge Telemetry Starfield/Arcs + Live Node Pass — Round-4 Compact 1340px Centered + 4-Col Region Cards */
html body .miya-content > .mx-page.mx-buy-page {
  max-width: 1340px !important;
  width: 100% !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-top: clamp(22px, 1.4vw, 30px) !important;
  gap: 18px !important;
}

/* Route-Aligned Top Announcement Bar (1100px on /ip-check, 1340px on #/buy, 1520px/content-aligned default) */
html body .miya-ann-wrap {
  width: 100% !important;
  margin: 0 !important;
  padding: 0 clamp(48px, 2.8125vw, 72px) !important;
}
html body .miya-ann-wrap :is(.fubi-ann, .fa-bar) {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
}
html body .miya-ann-wrap :is(.fubi-ann, .fa-bar) .fa-card:not(.fa-pop) {
  width: 100% !important;
  max-width: none !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding: 8px 0 !important;
}
html body .miya-main:has(> .fubi-ipc-dock[data-mode="full"]:not([hidden])) .miya-ann-wrap :is(.fubi-ann, .fa-bar) .fa-card:not(.fa-pop) {
  max-width: 1100px !important;
}
html body .miya-main:has(.mx-page.mx-buy-page) .miya-ann-wrap :is(.fubi-ann, .fa-bar) .fa-card:not(.fa-pop) {
  max-width: 1340px !important;
}
@media (max-width: 1180px) {
  html body .miya-ann-wrap {
    padding: 0 28px !important;
  }
}
@media (max-width: 768px) {
  html body .miya-ann-wrap {
    padding: 0 16px !important;
  }
}
html body .mx-buy-page .mx-phead {
  padding-bottom: 16px !important;
}
html body .edge-hero {
  --edge-ink: #8C3D12;
  --edge-pulse: #C2591F;
  --edge-pulse-dim: rgba(120, 102, 84, 0.44);
  --edge-grid: rgba(120, 92, 64, 0.095);
  --edge-grid-t: rgba(96, 76, 56, 0.58);
  --edge-star: rgba(181, 84, 30, 0.28);
  --edge-mesh: rgba(181, 84, 30, 0.18);
  --edge-bg-a: #FFFDF9;
  --edge-bg-b: #F5EFE4;
  --edge-live: #047252;
  --edge-glass: rgba(255, 253, 249, 0.92);
  --edge-glass-b: rgba(181, 84, 30, 0.18);
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 352px !important;
  gap: clamp(20px, 1.8vw, 28px) !important;
  align-items: stretch !important;
  margin-bottom: 6px !important;
}
html[data-theme="dark"] body .edge-hero {
  --edge-ink: #F0C496;
  --edge-pulse: #E58A49;
  --edge-pulse-dim: rgba(168, 162, 154, 0.45);
  --edge-grid: rgba(235, 231, 224, 0.068);
  --edge-grid-t: rgba(235, 231, 224, 0.38);
  --edge-star: rgba(235, 231, 224, 0.48);
  --edge-mesh: rgba(229, 138, 73, 0.15);
  --edge-bg-a: #1A1714;
  --edge-bg-b: #111215;
  --edge-live: #10B981;
  --edge-glass: rgba(19, 21, 24, 0.84);
  --edge-glass-b: rgba(255, 255, 255, 0.12);
}
@media (max-width: 1120px) {
  html body .edge-hero {
    grid-template-columns: minmax(0, 1fr) !important;
  }
}
html body .edge-stage-wrap {
  min-height: 292px !important;
  border-radius: 4px !important;
  border: 1px solid var(--line-2) !important;
  background: var(--edge-bg-b) !important;
  box-shadow: none !important;
}
html body .edge-hud {
  border-radius: 4px !important;
  background: var(--edge-glass) !important;
  border: 1px solid var(--edge-glass-b) !important;
  box-shadow: none !important;
}
html body .edge-hud-flag {
  border-radius: 2px !important;
  box-shadow: 0 0 0 1px var(--line-2) !important;
}
html body .edge-route-badge {
  border-radius: 4px !important;
}
html[data-theme="light"] body .edge-hub-t,
html:not([data-theme="dark"]) body .edge-hub-t {
  fill: #4A3320 !important;
  opacity: 0.82 !important;
}
html[data-theme="light"] body .edge-hub.is-focus .edge-hub-t,
html[data-theme="light"] body .edge-hub.is-live:hover .edge-hub-t,
html:not([data-theme="dark"]) body .edge-hub.is-focus .edge-hub-t,
html:not([data-theme="dark"]) body .edge-hub.is-live:hover .edge-hub-t {
  fill: #8C3D12 !important;
  opacity: 1 !important;
}
html[data-theme="light"] body .edge-legend,
html:not([data-theme="dark"]) body .edge-legend {
  color: #44403C !important;
}
html[data-theme="light"] body .edge-legend-tip,
html:not([data-theme="dark"]) body .edge-legend-tip {
  color: #57534E !important;
}
@media (max-width: 768px) {
  html body .edge-stage-wrap {
    min-height: 0 !important;
    display: flex !important;
    flex-direction: column !important;
  }
  html body .edge-hud {
    border: 0 !important;
    border-top: 1px solid var(--line) !important;
    border-radius: 0 !important;
    background: var(--bg-card) !important;
  }
}

html body .lnp {
  --lnp-bg: linear-gradient(155deg, #FFFDF9 0%, #FAF5EC 58%, #F4ECE0 100%);
  --lnp-line: rgba(181, 84, 30, 0.22);
  --lnp-ink: #181715;
  --lnp-soft: #44403C;
  --lnp-notch: var(--bg-app);
  background-color: #FAF5EC !important;
  background-image: var(--lnp-bg) !important;
  border: 1px solid var(--lnp-line) !important;
  border-radius: 4px !important;
  box-shadow: none !important;
  color: var(--lnp-ink) !important;
  padding: 16px 18px 15px !important;
}
html[data-theme="dark"] body .lnp {
  --lnp-bg: linear-gradient(155deg, #191714 0%, #131518 55%, #171411 100%);
  --lnp-line: rgba(217, 119, 54, 0.28);
  --lnp-ink: #EBE7E0;
  --lnp-soft: #9E9990;
  --lnp-notch: var(--bg-app);
  background-color: #131518 !important;
}
html body .lnp-perf {
  margin: 2px -18px !important;
}
html body .lnp-perf::before,
html body .lnp-perf::after {
  border-radius: 50% !important;
  background: var(--bg-app) !important;
  border-color: var(--lnp-line) !important;
}
html body .lnp-flag {
  border-radius: 2px !important;
  box-shadow: 0 0 0 1px var(--line-2) !important;
}
html body .lnp-proto-badge {
  background: var(--accent-subtle) !important;
  border: 1px solid var(--accent-border) !important;
  color: var(--accent-ink) !important;
  border-radius: 4px !important;
}
html body .lnp-proto-net {
  border-radius: 4px !important;
  border-color: var(--lnp-line) !important;
}
html body .lnp-bars {
  opacity: 0.42 !important;
}
html body .lnp-go {
  height: 36px !important;
  padding: 0 15px !important;
  background: var(--accent) !important;
  border: 1px solid var(--accent) !important;
  color: #FFFFFF !important;
  border-radius: 6px !important;
  box-shadow: none !important;
}
html body .lnp-go:hover {
  background: var(--accent-hover) !important;
  border-color: var(--accent-hover) !important;
  transform: none !important;
}

html body .buy-layout-container {
  grid-template-columns: minmax(0, 1fr) 352px !important;
  gap: clamp(24px, 2vw, 32px) !important;
}
@media (max-width: 1120px) {
  html body .buy-layout-container {
    grid-template-columns: minmax(0, 1fr) !important;
  }
}
html body .buy-wizard-main {
  gap: 0 !important;
}
html body .wizard-step-card {
  background: transparent !important;
  border: 0 !important;
  border-top: 1px solid var(--line-2) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding: 18px 0 16px !important;
  container-type: normal !important;
}
html body .wizard-step-card.buy-step-regions {
  padding-top: 16px !important;
}
html body .wizard-step-card:last-child {
  padding-bottom: 4px !important;
}
html body .wizard-step-card .step-header {
  margin-bottom: 11px !important;
  gap: 10px !important;
}
html body .wizard-step-card .step-title-box h3 {
  font-size: 15px !important;
  line-height: 1.3 !important;
}
html body .wizard-step-card .step-title-box p {
  font-size: 12.5px !important;
  margin-top: 1px !important;
}
html body .wizard-step-card::before,
html body .wizard-step-card::after {
  display: none !important;
}
html body .step-num-pill {
  background: transparent !important;
  border: 1px solid var(--line-2) !important;
  color: var(--accent-ink) !important;
  font-family: var(--font-mono) !important;
  box-shadow: none !important;
  border-radius: 4px !important;
}

/* 01 选择业务地区 — 4-Column Compact Flat Cards (62px-68px height, 2 rows ~140px) */
html body .region-cards-grid.region-cards-duo.region-cards-trio {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 10px !important;
}
@media (max-width: 1280px) {
  html body .region-cards-grid.region-cards-duo.region-cards-trio {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}
@media (max-width: 768px) {
  html body .region-cards-grid.region-cards-duo.region-cards-trio {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
  }
}
@media (max-width: 420px) {
  html body .region-cards-grid.region-cards-duo.region-cards-trio {
    grid-template-columns: minmax(0, 1fr) !important;
  }
}
html body .region-select-card.region-card-xl {
  min-height: 0 !important;
  height: auto !important;
  padding: 10px 12px !important;
  gap: 6px !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-items: stretch !important;
  position: relative !important;
}
html body .region-card-xl .region-card-top {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  min-height: 20px !important;
  min-width: 0 !important;
}
html body .region-card-xl .region-flag.region-flag-lg {
  width: 22px !important;
  height: 15px !important;
  border-radius: 2px !important;
  box-shadow: 0 0 0 1px var(--line-2) !important;
  flex: none !important;
}
html body .region-card-xl .region-card-top .region-meta {
  padding-right: 22px !important;
  min-width: 0 !important;
  flex: 1 1 auto !important;
}
html body .region-card-xl .region-meta strong {
  font-size: 14px !important;
  font-weight: 600 !important;
  line-height: 1.25 !important;
  color: var(--text-primary) !important;
  display: block !important;
}
html body .region-card-xl .region-check-tick {
  position: absolute !important;
  top: 10px !important;
  right: 10px !important;
  width: 18px !important;
  height: 18px !important;
  border-radius: 4px !important;
  background: var(--accent) !important;
  color: #FFFFFF !important;
}
html body .region-card-xl .region-check-tick .ic {
  width: 11px !important;
  height: 11px !important;
}
html body .region-card-xl .region-card-sub {
  display: flex !important;
  align-items: center !important;
  gap: 5px !important;
  min-height: 18px !important;
  min-width: 0 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
}
html body .region-card-xl .region-card-sub .region-badge {
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  font-size: 11.5px !important;
  font-weight: 600 !important;
  line-height: 1.35 !important;
  gap: 5px !important;
  flex: none !important;
}
html body .region-card-xl .region-card-sub .region-badge > i {
  width: 6px !important;
  height: 6px !important;
  border-radius: 50% !important;
}
html body .region-card-xl .region-card-sub .region-badge > i::after {
  border-radius: 50% !important;
}
html body .region-card-xl .region-card-sub .region-sub-dot {
  color: var(--text-muted) !important;
  font-size: 11.5px !important;
  line-height: 1 !important;
  flex: none !important;
}
html body .region-card-xl .region-card-sub .region-desc {
  margin: 0 !important;
  font-size: 11.5px !important;
  line-height: 1.35 !important;
  color: var(--text-secondary) !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

/* 02 - 05 Wizard Steps ~20% Compact Tightening */
html body .mx-buy-page .net-type-card {
  padding: 11px 14px !important;
  min-height: 0 !important;
}
html body .mx-buy-page .line-select-card {
  padding: 10px 14px !important;
  min-height: 0 !important;
}
html body .mx-buy-page .line-de-note {
  margin-top: 7px !important;
  padding: 6px 10px !important;
}
html body .mx-buy-page .bill-mode-card {
  padding: 12px 15px !important;
  min-height: 0 !important;
}
html body .mx-buy-page .bill-mode-tag {
  margin: 2px 0 5px !important;
  border-radius: 4px !important;
}
html body .mx-buy-page .bill-mode-price {
  margin-top: 7px !important;
  padding-top: 7px !important;
}
html body .mx-buy-page .amount-config-box,
html body .mx-buy-page .tier-ladder-wrap {
  padding-top: 12px !important;
  padding-bottom: 8px !important;
}
html body .mx-buy-page .cc2-sumbar {
  padding-top: 12px !important;
  margin-top: 6px !important;
}

html body :is(.region-select-card, .net-type-card, .line-select-card, .bill-mode-card, .tier-step) {
  background: transparent !important;
  border: 1px solid var(--line-2) !important;
  border-radius: 4px !important;
  box-shadow: none !important;
}
html body :is(.region-select-card, .net-type-card, .line-select-card, .bill-mode-card, .tier-step)::before {
  display: none !important;
}
html body :is(.region-select-card, .net-type-card, .line-select-card, .bill-mode-card):hover:not(.is-soon):not(.disabled) {
  background: var(--bg-card) !important;
  border-color: var(--border-hover) !important;
  transform: none !important;
}
html body :is(.region-select-card.active, .net-type-card.active, .line-select-card.active, .bill-mode-card.active, .tier-step.is-active) {
  background: var(--bg-card) !important;
  border-color: var(--accent) !important;
  box-shadow: inset 2px 0 0 var(--accent) !important;
}
html body .amount-config-box,
html body .tier-ladder-wrap,
html body .cc2-sumbar {
  background: transparent !important;
  border: 0 !important;
  border-top: 1px solid var(--line) !important;
  box-shadow: none !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}
/* Checkout Sticky Single Focal Panel */
html body .order-summary-card.mx-co {
  background: var(--bg-card) !important;
  border: 1px solid var(--line-2) !important;
  border-radius: 4px !important;
  box-shadow: none !important;
}
html body .order-summary-card.mx-co::before,
html body .order-summary-card.mx-co::after,
html body .mx-co-tear::before,
html body .mx-co-tear::after {
  display: none !important;
}
html body .mx-co-tear {
  height: 1px !important;
  margin: 14px 0 !important;
  background: none !important;
  border-top: 1px dashed var(--line-2) !important;
}
html body .mx-co-wallet,
html body .v36-ip-disclaimer {
  background: var(--bg-input) !important;
  border: 1px solid var(--line) !important;
  border-radius: 4px !important;
  box-shadow: none !important;
}
html body .mx-co-btn,
html body .mx-btn-s.primary {
  background: var(--accent) !important;
  border-color: var(--accent) !important;
  color: #FFFFFF !important;
  box-shadow: none !important;
}
html body .mx-co-btn:hover:not(:disabled),
html body .mx-btn-s.primary:hover:not(:disabled) {
  background: var(--accent-hover) !important;
  border-color: var(--accent-hover) !important;
  transform: none !important;
}
html body .mx-btn-s:not(.primary) {
  background: transparent !important;
  border: 1px solid var(--line-2) !important;
  color: var(--text-primary) !important;
  box-shadow: none !important;
}
html body .mx-btn-s:not(.primary):hover:not(:disabled) {
  background: var(--bg-card) !important;
  border-color: var(--border-hover) !important;
}

/* #/contact, #/login, #/register & Modals */
html body .v36-sup-card {
  background: var(--bg-card) !important;
  border: 1px solid var(--line-2) !important;
  border-radius: 4px !important;
  box-shadow: none !important;
}
html body .v36-sup-card::before,
html body .v36-sup-card::after {
  display: none !important;
}
html body .v36-sup-btn.pri {
  background: var(--accent) !important;
  border-color: var(--accent) !important;
  color: #FFFFFF !important;
  box-shadow: none !important;
}
html body .mx-auth-aside {
  background: transparent !important;
  border: 0 !important;
  border-right: 1px solid var(--line) !important;
  padding-right: clamp(24px, 2.8vw, 40px) !important;
  box-shadow: none !important;
}
html body .mx-auth-wrap {
  background: var(--bg-card) !important;
  border: 1px solid var(--line-2) !important;
  border-radius: 4px !important;
  box-shadow: none !important;
}
html body .mx-auth-foot a {
  margin-left: 5px;
}
@media (max-width: 900px) {
  html body .mx-auth-aside {
    border-right: 0 !important;
    border-bottom: 1px solid var(--line) !important;
    padding-right: 0 !important;
    padding-bottom: 20px !important;
  }
}

html body .user-menu,
html body .lang-menu,
html body .mx-dd-panel,
html body .miya-modal-card,
html body .v36-qr-dialog {
  background: var(--bg-card) !important;
  border: 1px solid var(--line-2) !important;
  border-radius: 4px !important;
  box-shadow: var(--shadow-lg) !important;
}
html body :is(.mx-input, .miya-input, .sp-search, .mx-dd-trigger) {
  background: var(--bg-input) !important;
  border-color: var(--line-2) !important;
  border-radius: 6px !important;
  box-shadow: none !important;
}

/* Billings chart bars & card redeem input proportion on 2560w */
html body .mx-bar-col .mx-bar {
  max-width: 22px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  border-radius: 2px 2px 0 0 !important;
  box-shadow: none !important;
}
html body #redeem-card-input {
  max-width: 540px !important;
}

/* ==========================================================================
   Wave-2A Dark Mode WCAG AA >= 5.5:1 Solid CTA Contrast & QR Softening (2026-11-13)
   ========================================================================== */
html[data-theme="dark"] body :is(
  #btn-header-recharge,
  .btn-recharge,
  .mx-btn-primary,
  .mx-btn-s.primary,
  .mx-co-btn,
  #ipc-submit-btn,
  .fubi-ipc-btn-primary,
  .fubi-ipc-guide-cta-btn,
  .cc2-cta-btn,
  .lnp-go,
  .v36-sup-btn.pri,
  .ovx-btn-pri,
  .sp-pg-num.is-active,
  .region-card-xl .region-check-tick,
  .admin-btn-primary,
  .admin-chip-btn.active,
  .user-avatar
) {
  background: #A64B17 !important;
  background-image: none !important;
  border-color: #A64B17 !important;
  color: #FFFFFF !important;
}
html[data-theme="dark"] body :is(
  #btn-header-recharge,
  .btn-recharge,
  .mx-btn-primary,
  .mx-btn-s.primary,
  .mx-co-btn,
  #ipc-submit-btn,
  .fubi-ipc-btn-primary,
  .fubi-ipc-guide-cta-btn,
  .cc2-cta-btn,
  .lnp-go,
  .v36-sup-btn.pri,
  .ovx-btn-pri,
  .admin-btn-primary
):hover:not(:disabled):not([disabled]) {
  background: #BA561D !important;
  border-color: #BA561D !important;
  color: #FFFFFF !important;
}
html[data-theme="dark"] body .fubi-ipc-cta:hover {
  background: #A64B17 !important;
  border-color: #A64B17 !important;
  color: #FFFFFF !important;
}
html[data-theme="dark"] body .v36-qr-thumb {
  background: #CFC8BC !important;
  border-color: rgba(255, 255, 255, 0.16) !important;
  box-shadow: none !important;
}

/* ==========================================================================
 * v45 · 64px Topbar Lock + Zero-Overflow + Aa/Aa+/Aa++ Font Scale + SEO Fold
 * ========================================================================== */
html body .miya-header {
  --fubi-font-scale: 1 !important;
  font-size: 14px !important;
}
@media (min-width: 769px) {
  :root {
    --header-h: 64px;
  }
  html body .miya-main {
    --header-h: 64px;
  }
  html body .miya-header {
    height: 64px !important;
    min-height: 64px !important;
    max-height: 64px !important;
  }
}
@media (min-width: 641px) {
  html body .miya-header .header-right :is(
    .lang-btn, .header-link, .wallet-pill, .theme-toggle, .btn-recharge, .user-avatar, .fa-avatar-btn
  ) {
    height: 36px !important;
    min-height: 36px !important;
    box-sizing: border-box !important;
  }
}
@media (min-width: 1121px) and (max-width: 1620px) {
  html body .miya-header {
    padding: 0 12px !important;
    gap: 8px !important;
  }
  html body .miya-header .header-left {
    gap: 8px !important;
  }
  html body .miya-header .tb-eco {
    padding-left: 8px !important;
    gap: 2px !important;
  }
  html body .miya-header .tb-eco-link {
    padding: 0 6px !important;
    font-size: 12px !important;
  }
  html:not([lang^="zh"]) body .miya-header .tb-eco-link {
    padding: 0 4.5px !important;
    font-size: 11px !important;
  }
  html body .miya-header .header-right {
    gap: 5px !important;
  }
  html body .miya-header .header-right :is(.lang-btn, .header-link, .wallet-pill, .theme-toggle) {
    padding: 0 7px !important;
    font-size: 12px !important;
  }
  html body .miya-header .header-right .theme-toggle {
    width: 36px !important;
    min-width: 36px !important;
    height: 36px !important;
    min-height: 36px !important;
    padding: 0 !important;
    justify-content: center !important;
  }
  html body .miya-header .header-right .theme-toggle [data-theme-label],
  html body .miya-header .header-right .theme-toggle .theme-label {
    display: none !important;
  }
}
@media (max-width: 640px) {
  html body .miya-header .header-right :is(
    .lang-btn, .header-link, .wallet-pill, .theme-toggle, .btn-recharge, .user-avatar, .fa-avatar-btn
  ) {
    height: 32px !important;
    min-height: 32px !important;
    box-sizing: border-box !important;
  }
  html body .miya-header .header-right .theme-toggle {
    width: 32px !important;
    min-width: 32px !important;
    flex: 0 0 32px !important;
    padding: 0 !important;
  }
}
@media (max-width: 420px) {
  html body .miya-header {
    padding: 8px 8px !important;
  }
  html body .miya-header .header-right {
    gap: 4px !important;
  }
  html body .miya-header .header-right :is(.lang-btn, .header-link, .wallet-pill, .theme-toggle) {
    height: 32px !important;
    min-height: 32px !important;
    padding: 0 6px !important;
    font-size: 11px !important;
  }
  html body .miya-header .header-right .btn-recharge {
    height: 32px !important;
    min-height: 32px !important;
    padding: 0 7px !important;
    font-size: 11px !important;
  }
  html body .miya-header .header-right .theme-toggle {
    width: 32px !important;
    min-width: 32px !important;
    padding: 0 !important;
  }
}

/* Smooth Aa / Aa+ / Aa++ scaling (--fubi-font-scale = 1 | 1.12 | 1.2) */
html:is([data-font-scale="lg"], [data-font-scale="xl"]) body {
  --fs-12: calc(12px * var(--fubi-font-scale, 1));
  --fs-14: calc(14px * var(--fubi-font-scale, 1));
  --fs-16: calc(16px * var(--fubi-font-scale, 1));
  --fs-20: calc(20px * var(--fubi-font-scale, 1));
  --fs-28: calc(28px * var(--fubi-font-scale, 1));
  font-size: calc(14px * var(--fubi-font-scale, 1));
}
html:is([data-font-scale="lg"], [data-font-scale="xl"]) body .miya-header {
  --fs-12: 12px;
  --fs-14: 14px;
  --fs-16: 16px;
}
html:is([data-font-scale="lg"], [data-font-scale="xl"]) body :is(
  .ovx-sub, .fubi-ipc-sub, .fubi-ipc-verdict, .wizard-step-card .step-title-box p,
  .bill-mode-card small, .sp-toolbar, .mx-panel-sub, .mx-kv, .mx-co-line,
  .mx-co-wallet, .v36-sup-desc, .v36-policy-list li, .v36-ip-disclaimer p,
  .mx-phead p, .mx-page table, .mx-field label, .mx-input
) {
  font-size: calc(13.5px * var(--fubi-font-scale, 1)) !important;
}
html:is([data-font-scale="lg"], [data-font-scale="xl"]) body :is(
  .ovx-cap, .ovx-metric span, .ovx-step-t small, .tk-cell small, .tk-foot,
  .fubi-ipc-cell-sub, .mx-co-foot, .mx-step-body span, .config-sub-rule
) {
  font-size: calc(12px * var(--fubi-font-scale, 1)) !important;
}
html:is([data-font-scale="lg"], [data-font-scale="xl"]) body :is(
  .ovx-step-t strong, .tk-cell strong, .fubi-ipc-cell-val, .bill-mode-card strong,
  .region-select-card strong, .mx-co-spec dd, .mx-btn, .mx-btn-s, .mx-co-btn, .btn-add-cart
) {
  font-size: calc(14px * var(--fubi-font-scale, 1)) !important;
}
html:is([data-font-scale="lg"], [data-font-scale="xl"]) body :is(
  .mx-btn, .mx-btn-s, .v36-sup-btn, .lnp-go, .fubi-ipc-btn, .region-select-card,
  .bill-mode-card, .line-select-card
) {
  height: auto !important;
  min-height: 36px;
}
html body #ovx #ip-seo-fold {
  margin-top: 14px;
}

/* ==========================================================================
 * V-01 · ip.fubiip.com <=768px / 375px Mobile Topbar Zero-Truncation Lock
 * ========================================================================== */
.miya-header .mobile-brand-title {
  display: none;
}
@media (max-width: 768px) {
  html body .miya-header .header-right .header-link {
    display: none !important;
  }
  html body .miya-header .page-title {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
  }
  html body .miya-header .mobile-brand-title {
    order: 1 !important;
    display: inline-flex !important;
    align-items: center !important;
    font-size: 16px !important;
    font-weight: 750 !important;
    letter-spacing: -0.02em;
    color: var(--text-primary) !important;
    line-height: 32px !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
  }
}
@media (max-width: 640px) {
  html body .miya-header .sidebar-toggle-inline,
  html body .miya-header .header-right .user-avatar {
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    min-height: 32px !important;
  }
  html body .miya-header .sidebar-toggle-inline {
    border-radius: 6px !important;
  }
  html body .miya-header .header-right .lang-btn {
    width: 32px !important;
    min-width: 32px !important;
    padding: 0 !important;
    justify-content: center !important;
  }
}

/* ==========================================================================
 * Wave 2C · Footer Minimal Collapsible SEO Comparison & FAQ (#ip-seo-fold)
 * Default collapsed 1-line strip · Zero overflowX across 375 / 1440 / 2560
 * ========================================================================== */
html body .miya-main:has(> .ip-seo-fold-wrap:not([hidden])) > .miya-content {
  padding-bottom: 18px !important;
}
html body .ip-seo-fold-wrap {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin: 0;
  padding: 2px clamp(48px, 2.8125vw, 72px) 68px;
  box-sizing: border-box;
}
html body .ip-seo-fold-wrap[hidden] {
  display: none !important;
}
html body .miya-main:has(> .fubi-ipc-dock[data-mode="full"]:not([hidden])) > .ip-seo-fold-wrap > #ip-seo-fold {
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}
html body #ip-seo-fold.seo-fold {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin: 0;
  padding-top: 12px;
  border-top: 1px solid var(--border-subtle);
  font-size: calc(12px * var(--fubi-font-scale, 1));
  line-height: 1.55;
  color: var(--text-muted);
  box-sizing: border-box;
}
html body #ip-seo-fold > .seo-fold-summary {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  max-width: 100%;
  min-height: 22px;
  padding: 2px 0;
  cursor: pointer;
  list-style: none;
  user-select: none;
  font-size: calc(12px * var(--fubi-font-scale, 1));
  font-weight: 500;
  line-height: 1.45;
  color: var(--text-muted);
  transition: color var(--transition-fast);
}
html body #ip-seo-fold > .seo-fold-summary::-webkit-details-marker,
html body #ip-seo-fold > .seo-fold-summary::marker {
  display: none;
  content: "";
}
html body #ip-seo-fold > .seo-fold-summary::before {
  content: "";
  width: 5px;
  height: 5px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(-45deg);
  transition: transform 0.15s ease;
  flex: none;
}
html body #ip-seo-fold[open] > .seo-fold-summary::before {
  transform: rotate(45deg);
}
html body #ip-seo-fold > .seo-fold-summary:hover,
html body #ip-seo-fold[open] > .seo-fold-summary {
  color: var(--text-secondary);
}
html body #ip-seo-fold > .seo-fold-summary > span {
  min-width: 0;
  overflow-wrap: break-word;
}
html body #ip-seo-fold > .seo-fold-body {
  margin-top: 10px;
  padding: 16px 18px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 0px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-sizing: border-box;
}
html body #ip-seo-fold .seo-cmp-section,
html body #ip-seo-fold .seo-faq-section {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
html body #ip-seo-fold .seo-fold-kicker {
  font-size: calc(12px * var(--fubi-font-scale, 1));
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--text-primary);
  line-height: 1.4;
}
html body #ip-seo-fold .seo-cmp-scroll {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--border-subtle);
  background: var(--bg-app);
  border-radius: 0px;
}
html body #ip-seo-fold .seo-cmp-table {
  width: 100%;
  min-width: 700px;
  border-collapse: collapse;
  font-size: calc(12px * var(--fubi-font-scale, 1));
  line-height: 1.5;
  color: var(--text-secondary);
  text-align: left;
}
html body #ip-seo-fold .seo-cmp-table th,
html body #ip-seo-fold .seo-cmp-table td {
  padding: 9px 12px;
  border-bottom: 1px solid var(--border-subtle);
  vertical-align: top;
}
html body #ip-seo-fold .seo-cmp-table thead th {
  background: var(--bg-card-subtle);
  color: var(--text-primary);
  font-weight: 600;
  white-space: nowrap;
}
html body #ip-seo-fold .seo-cmp-table tbody tr:last-child td {
  border-bottom: 0;
}
html body #ip-seo-fold .seo-cmp-table td.seo-cmp-type {
  color: var(--text-primary);
  font-weight: 600;
  white-space: nowrap;
}
html body #ip-seo-fold .seo-faq-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}
html body #ip-seo-fold .seo-faq-qa {
  min-width: 0;
  padding: 12px 14px;
  background: var(--bg-app);
  border: 1px solid var(--border-subtle);
  border-radius: 0px;
}
html body #ip-seo-fold .seo-faq-q {
  margin: 0 0 5px;
  font-size: calc(12.5px * var(--fubi-font-scale, 1));
  font-weight: 600;
  line-height: 1.45;
  color: var(--text-primary);
  overflow-wrap: break-word;
}
html body #ip-seo-fold .seo-faq-a {
  margin: 0;
  font-size: calc(12px * var(--fubi-font-scale, 1));
  font-weight: 400;
  line-height: 1.65;
  color: var(--text-secondary);
  overflow-wrap: break-word;
}
@media (max-width: 1180px) {
  html body .ip-seo-fold-wrap {
    padding: 2px 28px 64px;
  }
}
@media (max-width: 960px) {
  html body #ip-seo-fold .seo-faq-list {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 768px) {
  html body .miya-main:has(> .ip-seo-fold-wrap:not([hidden])) > .miya-content {
    padding-bottom: 14px !important;
  }
  html body .ip-seo-fold-wrap {
    padding: 2px 16px 68px;
  }
  html body #ip-seo-fold > .seo-fold-body {
    padding: 12px;
    gap: 14px;
  }
  html body #ip-seo-fold .seo-faq-qa {
    padding: 10px 12px;
  }
}

/* ==========================================================================
 * 20261202u1 · ip.fubiip.com Console Refactor (Hero Balance / Slim Views /
 * Mobile Single-Row .tb-eco / Safe 44px Support-Ball Clearance / 160ms Motion)
 * ========================================================================== */

/* 1. Guest Hero: Vertical-Center Two-Column Balance + Pure-Text Core Spec Anchor */
html body .ovx-duo {
  align-items: center !important;
  padding: clamp(32px, 2.2vw, 52px) 0 clamp(36px, 2.4vw, 56px) !important;
}
html body .ovx-main {
  justify-content: center !important;
  gap: 22px !important;
}
html body .ovx-copy {
  gap: 12px !important;
}
html body .ovx-spec-line {
  margin: 2px 0 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  font-size: calc(13.5px * var(--fubi-font-scale, 1)) !important;
  font-weight: 500 !important;
  line-height: 1.55 !important;
  letter-spacing: 0.01em !important;
  color: var(--text-muted) !important;
  font-variant-numeric: tabular-nums !important;
}
html body .ovx-bottom {
  gap: 0 !important;
}
html body .ovx-side,
html body .ovx-showcase {
  justify-content: center !important;
  gap: 0 !important;
}

/* 2. Safe Bottom & Right Clearance for Fixed 44px Support Ball */
html body .miya-content {
  padding-bottom: 88px !important;
}
html body .miya-main:has(> .ip-seo-fold-wrap:not([hidden])) > .miya-content {
  padding-bottom: 24px !important;
}
html body .ip-seo-fold-wrap {
  padding-bottom: 88px !important;
}
@media (max-width: 768px) {
  html body .miya-content {
    padding-bottom: 92px !important;
  }
  html body .ip-seo-fold-wrap {
    padding-bottom: 92px !important;
  }
}

/* 3. #/buy Single-Column Star Map (.edge-hero) & Merged Step 01 Network Section */
html body .edge-hero {
  grid-template-columns: minmax(0, 1fr) !important;
}
html body .buy-net-sub {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
html body .buy-net-sub-label {
  font-size: calc(12.5px * var(--fubi-font-scale, 1));
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 10px;
}

/* 4. #/billings Compact Bottom Bar */
html body .bill-foot-bar {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  flex-wrap: wrap !important;
  gap: 12px 16px !important;
  padding-top: 18px !important;
}
html body .bill-foot-note {
  margin: 0 !important;
  font-size: calc(13px * var(--fubi-font-scale, 1));
  color: var(--text-muted);
}
html body .bill-foot-acts {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

/* 5. #/static-proxies Slim Toolbar — Single-Row Desktop Across All 5 Languages */
.sp-tools-dd .mx-dd-value {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.sp-tools-dd .mx-dd-panel {
  left: auto;
  right: 0;
  min-width: 156px;
}
.sp-tools-dd .mx-dd-item {
  display: flex;
  align-items: center;
  gap: 8px;
}
@container sp-page (min-width: 980px) {
  .sp-toolbar {
    flex-wrap: nowrap !important;
    gap: 8px !important;
  }
  .sp-toolbar > .mx-toolbar-side,
  .sp-toolbar > .sp-toolbar-actions {
    gap: 6px !important;
    flex-wrap: nowrap !important;
  }
  .sp-toolbar > .mx-toolbar-side:first-child,
  .sp-toolbar > .sp-toolbar-actions {
    flex: 0 0 auto !important;
  }
  .sp-toolbar > .sp-toolbar-actions {
    order: 0 !important;
    padding-top: 0 !important;
    border-top: 0 !important;
  }
  .sp-toolbar > .mx-toolbar-side:last-child {
    flex: 0 1 auto !important;
    min-width: 0 !important;
    margin-left: auto !important;
  }
  .sp-toolbar > .mx-toolbar-side:last-child .sp-search {
    flex: 0 1 auto !important;
    min-width: 0 !important;
  }
  .sp-toolbar .sp-search input {
    width: clamp(120px, 13vw, 200px) !important;
    min-width: 0 !important;
  }
  .sp-toolbar .mx-btn-s:not([data-sp="reload"]),
  .sp-toolbar .mx-dd-trigger {
    padding: 0 10px !important;
  }
}
@media (max-width: 768px) {
  .sp-toolbar > .sp-toolbar-actions {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
  .sp-toolbar > .sp-toolbar-actions > .sp-tools-dd,
  .sp-toolbar > .sp-toolbar-actions > .sp-tools-dd .mx-dd-trigger {
    width: 100% !important;
    min-height: 40px !important;
    justify-content: center !important;
  }
}

/* 6. Mobile Topbar (<= 768px): Single-Row Horizontal Scroll .tb-eco (All 7 Links Preserved) */
@media (max-width: 768px) {
  html body .miya-main {
    --header-h: 88px;
  }
  html body .miya-header {
    height: auto !important;
    min-height: 88px !important;
    row-gap: 8px !important;
  }
  html body .miya-header .tb-eco {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    gap: 6px !important;
    width: 100% !important;
    min-width: 0 !important;
    margin-left: 0 !important;
    padding: 2px 0 !important;
    border-left: 0 !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
    overscroll-behavior-x: contain;
  }
  html body .miya-header .tb-eco::-webkit-scrollbar {
    display: none !important;
  }
  html body .miya-header .tb-eco > :nth-child(7):last-child {
    grid-column: auto !important;
  }
  html body .miya-header .tb-eco-link {
    width: auto !important;
    min-width: max-content !important;
    flex: 0 0 auto !important;
    height: 30px !important;
    padding: 0 10px !important;
    font-size: 12px !important;
    justify-content: center !important;
    white-space: nowrap !important;
  }
  html:not([lang^="zh"]) body .miya-header .tb-eco-link {
    font-size: 11.5px !important;
    padding: 0 9px !important;
    letter-spacing: 0 !important;
  }
}

/* 7. Restrained Motion Polish (160ms Route & Modal / 0.985 Button Press / Reduced Motion) */
@keyframes fubiRouteIn {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
html body .mx-page-enter > * {
  animation: fubiRouteIn 160ms cubic-bezier(0.22, 1, 0.36, 1) both !important;
}
html body .mx-page-enter > .mx-page > *,
html body .mx-page-enter > .mx-aurora > *,
html body .mx-page-enter .cc2-kpis .mx-summary-cell,
html body .mx-page-enter .mx-hero-copy > *,
html body .mx-page-enter .mx-mock {
  animation: none !important;
  animation-delay: 0ms !important;
}

html body .miya-modal-backdrop {
  transition: opacity 160ms cubic-bezier(0.22, 1, 0.36, 1), display 160ms allow-discrete, overlay 160ms allow-discrete !important;
}
html body .miya-modal-card {
  transition: opacity 160ms cubic-bezier(0.22, 1, 0.36, 1), transform 160ms cubic-bezier(0.22, 1, 0.36, 1) !important;
}
html body .miya-modal-backdrop.hidden .miya-modal-card {
  opacity: 0 !important;
  transform: translateY(4px) !important;
}
@starting-style {
  html body .miya-modal-backdrop {
    opacity: 0;
  }
  html body .miya-modal-backdrop .miya-modal-card {
    opacity: 0;
    transform: translateY(4px);
  }
}

html body :is(.mx-btn, .mx-btn-s, .mx-co-btn, .fubi-ipc-btn, .btn-recharge, .mx-dd-trigger, .sc-pill) {
  transition: transform 150ms cubic-bezier(0.22, 1, 0.36, 1), background-color 150ms cubic-bezier(0.22, 1, 0.36, 1), border-color 150ms cubic-bezier(0.22, 1, 0.36, 1), color 150ms cubic-bezier(0.22, 1, 0.36, 1), opacity 150ms cubic-bezier(0.22, 1, 0.36, 1) !important;
}
html body :is(.mx-btn, .mx-btn-s, .mx-co-btn, .fubi-ipc-btn, .btn-recharge, .mx-dd-trigger, .sc-pill):active:not(:disabled) {
  transform: scale(0.985) !important;
}

@media (prefers-reduced-motion: reduce) {
  html body .mx-page-enter > *,
  html body .ovx-wire i,
  html body .ovx-hub-ring,
  html body .ovx-wave i,
  html body .ovx-hs-sheen,
  html body .ovx-stage.is-play *,
  html body .edge-sweep,
  html body .edge-arc {
    animation: none !important;
  }
  html body .miya-modal-backdrop,
  html body .miya-modal-card,
  html body :is(.mx-btn, .mx-btn-s, .mx-co-btn, .fubi-ipc-btn, .btn-recharge, .mx-dd-trigger, .sc-pill) {
    transition: none !important;
  }
  html body :is(.mx-btn, .mx-btn-s, .mx-co-btn, .fubi-ipc-btn, .btn-recharge, .mx-dd-trigger, .sc-pill):active:not(:disabled) {
    transform: none !important;
  }
}


