/* ============================================================================
   NexusIDC — StarFishCloud 客户中心深色科技风主题
   Load order: bootstrap.css -> bootstrap-responsive.css -> [toastr|fullcalendar] -> idc-theme.css
   本文件覆盖 Bootstrap 2 基础组件，不要调整加载顺序。
   ========================================================================== */

/* ---------------------------------------------------------------- 1. Tokens */
:root {
  /* Canvas */
  --bg-base: #05080F;
  --bg-deep: #070C17;
  --bg-panel: #0B1222;
  --bg-panel-2: #0E1730;
  --bg-elev: #111C36;

  /* Glass surfaces */
  --glass-1: rgba(255, 255, 255, .040);
  --glass-2: rgba(255, 255, 255, .062);
  --glass-3: rgba(255, 255, 255, .095);
  --line-1: rgba(255, 255, 255, .085);
  --line-2: rgba(255, 255, 255, .150);
  --line-3: rgba(255, 255, 255, .240);

  /* Text */
  --tx-1: #F3F7FF;
  --tx-2: rgba(233, 241, 255, .74);
  --tx-3: rgba(212, 226, 249, .50);
  --tx-4: rgba(198, 214, 242, .32);

  /* Brand */
  --cy: #22D3EE;
  --cy-2: #67E8F9;
  --blue: #3B82F6;
  --indigo: #6366F1;
  --violet: #8B5CF6;

  --brand: var(--cy);
  --grad-brand: linear-gradient(135deg, #22D3EE 0%, #3B82F6 58%, #6366F1 100%);
  --grad-brand-2: linear-gradient(135deg, #67E8F9 0%, #22D3EE 45%, #3B82F6 100%);
  --grad-soft: linear-gradient(135deg, rgba(34, 211, 238, .16), rgba(99, 102, 241, .14));

  /* Semantic */
  --ok: #34D399;
  --ok-bg: rgba(52, 211, 153, .13);
  --ok-ln: rgba(52, 211, 153, .34);
  --warn: #FBBF24;
  --warn-bg: rgba(251, 191, 36, .13);
  --warn-ln: rgba(251, 191, 36, .34);
  --err: #F87171;
  --err-bg: rgba(248, 113, 113, .13);
  --err-ln: rgba(248, 113, 113, .34);
  --info: #60A5FA;
  --info-bg: rgba(96, 165, 250, .13);
  --info-ln: rgba(96, 165, 250, .34);
  --mute: #94A3B8;
  --mute-bg: rgba(148, 163, 184, .12);
  --mute-ln: rgba(148, 163, 184, .30);

  /* Geometry */
  --r-card: 16px;
  --r-panel: 18px;
  --r-btn: 10px;
  --r-input: 10px;
  --r-sm: 8px;
  --r-pill: 999px;

  /* Depth */
  --sh-1: 0 1px 2px rgba(0, 0, 0, .45);
  --sh-2: 0 10px 30px -10px rgba(0, 0, 0, .70);
  --sh-3: 0 24px 60px -20px rgba(0, 0, 0, .80);
  --sh-glow: 0 10px 34px -8px rgba(34, 211, 238, .26);
  --sh-glow-2: 0 16px 44px -10px rgba(59, 130, 246, .32);
  --hair-top: inset 0 1px 0 rgba(255, 255, 255, .07);

  /* Type */
  --font-sans: "Inter", "PingFang SC", "HarmonyOS Sans SC", "Noto Sans SC",
    "Microsoft YaHei UI", "Microsoft YaHei", system-ui, -apple-system,
    "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "JetBrains Mono", "IBM Plex Mono", ui-monospace, SFMono-Regular,
    Menlo, Consolas, "Courier New", monospace;

  --topbar-h: 62px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ------------------------------------------------------------------ 2. Base */
html { -webkit-text-size-adjust: 100%; }

body.idc {
  margin: 0 !important;
  padding: 0 !important;
  background-color: var(--bg-base) !important;
  color: var(--tx-2) !important;
  font-family: var(--font-sans) !important;
  font-size: 14px !important;
  line-height: 1.6 !important;
  font-weight: 400;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.idc p { font-size: 14px; color: var(--tx-2); margin: 0 0 .8em; }
body.idc p.sub { color: var(--tx-3); font-size: 13px; }

/* 旧模板把标题全大写 + 极细字重，这里整体重置 */
body.idc h1, body.idc h2, body.idc h3,
body.idc h4, body.idc h5, body.idc h6 {
  text-transform: none !important;
  font-weight: 600 !important;
  color: var(--tx-1) !important;
  letter-spacing: -.012em;
  margin: 0 0 .5em;
  line-height: 1.25;
}
body.idc h1 { font-size: 26px; letter-spacing: -.022em; }
body.idc h2 { font-size: 22px; }
body.idc h3 { font-size: 17px; }
body.idc h4 { font-size: 15px; }
body.idc h5 { font-size: 13px; }
body.idc h6 { font-size: 12px; color: var(--tx-3) !important; }

body.idc a { color: var(--cy); text-decoration: none; transition: color .16s var(--ease); }
body.idc a:hover { color: var(--cy-2); text-decoration: none; }

body.idc strong, body.idc b { color: var(--tx-1); font-weight: 600; }
body.idc small { font-size: 12px; color: var(--tx-3); }
body.idc hr {
  border: 0; border-top: 1px solid var(--line-1);
  margin: 20px 0; height: 0; box-sizing: content-box;
}
body.idc code, body.idc pre, body.idc kbd, body.idc samp, body.idc tt {
  font-family: var(--font-mono) !important;
  font-size: 12.5px;
  color: var(--cy-2);
  background: rgba(34, 211, 238, .08);
  border: 1px solid rgba(34, 211, 238, .16);
  border-radius: 6px;
  padding: 1px 6px;
}
body.idc ::selection { background: rgba(34, 211, 238, .30); color: #fff; }
body.idc blockquote {
  border-left: 3px solid rgba(34, 211, 238, .45);
  background: var(--glass-1);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  margin: 0; padding: 12px 16px; color: var(--tx-2);
}

/* 数字统一等宽，金额/流量/版本号对齐 */
body.idc .num, body.idc .stat h2, body.idc .stat-num,
body.idc table .mono, body.idc .mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}

/* 滚动条 */
body.idc ::-webkit-scrollbar { width: 10px; height: 10px; }
body.idc ::-webkit-scrollbar-track { background: transparent; }
body.idc ::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, .13);
  border: 3px solid transparent; background-clip: content-box; border-radius: 99px;
}
body.idc ::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, .24); background-clip: content-box; }

/* --------------------------------------------------------- 3. Ambient 光晕层 */
.ambient {
  position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden;
  background:
    radial-gradient(1100px 520px at 50% -8%, rgba(34, 211, 238, .16), transparent 62%),
    radial-gradient(900px 520px at 8% 108%, rgba(99, 102, 241, .15), transparent 60%),
    radial-gradient(760px 460px at 96% 84%, rgba(59, 130, 246, .12), transparent 62%);
}
.ambient::after {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .028) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(1000px 620px at 50% 0%, #000 0%, transparent 78%);
  mask-image: radial-gradient(1000px 620px at 50% 0%, #000 0%, transparent 78%);
}
.amb-orb { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .5; }
.amb-orb--a {
  width: 560px; height: 560px; top: -260px; left: 50%; transform: translateX(-50%);
  background: radial-gradient(circle, rgba(34, 211, 238, .40), transparent 70%);
}
.amb-orb--b {
  width: 520px; height: 520px; bottom: -300px; right: -120px; opacity: .38;
  background: radial-gradient(circle, rgba(99, 102, 241, .42), transparent 70%);
}

/* ------------------------------------------------------------ 4. 布局容器 */
body.idc .container,
body.idc .container-fluid {
  width: auto !important;
  max-width: 1280px;
  margin: 0 auto !important;
  padding: 0 28px;
  box-sizing: border-box;
}
body.idc .container::before, body.idc .container::after,
body.idc .row::before, body.idc .row::after { display: none !important; content: none !important; }

body.idc .row, body.idc .row-fluid {
  display: flex !important;
  flex-wrap: wrap;
  gap: 24px;
  margin-left: 0 !important;
  width: auto !important;
}
body.idc .row-fluid { gap: 16px; }
body.idc [class*="span"] {
  float: none !important;
  margin-left: 0 !important;
  width: auto !important;
  min-width: 0;
  box-sizing: border-box;
}
body.idc .row > .span3 { flex: 0 0 292px; max-width: 292px; }
body.idc .row > .span6 { flex: 1 1 0%; }
body.idc .row > .span9 { flex: 1 1 0%; }
body.idc .row > .span12 { flex: 1 1 100%; }

body.idc .row-fluid > .span12 { flex: 1 1 100%; }
body.idc .row-fluid > .span9 { flex: 1 1 calc(75% - 12px); }
body.idc .row-fluid > .span8 { flex: 1 1 calc(66.6% - 11px); }
body.idc .row-fluid > .span6 { flex: 1 1 calc(50% - 8px); }
body.idc .row-fluid > .span4 { flex: 1 1 calc(33.33% - 11px); }
body.idc .row-fluid > .span3 { flex: 1 1 calc(25% - 12px); }
body.idc .row-fluid > .span2 { flex: 1 1 calc(16.66% - 14px); }

@media (max-width: 1180px) {
  body.idc .row > .span3 { flex: 0 0 250px; max-width: 250px; }
}
@media (max-width: 1080px) {
  body.idc .row, body.idc .row-fluid { flex-direction: column; gap: 18px; }
  body.idc .row > [class*="span"], body.idc .row-fluid > [class*="span"] { flex: 1 1 100% !important; max-width: 100%; }
  body.idc .container { padding: 0 18px; }
}
@media (max-width: 1080px) {
  body.idc .topbar__inner { gap: 12px; }
  body.idc .page-head { padding: 22px 0 16px; }
  body.idc .page-title { font-size: 22px; }
}
/* 620px 以下移动端细节统一放文件末尾响应式区（避免被后部基础规则按源码顺序覆盖） */

/* 页面骨架 */
body.idc .page {
  position: relative; z-index: 1;
  width: auto !important; margin: 0 !important;
  background: none !important; box-shadow: none !important; border-radius: 0 !important;
  padding: 0 !important;
  padding-bottom: 72px !important;
}
body.idc .page-container { padding: 0 !important; }

/* 页头标题区 */
body.idc .page-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 20px; flex-wrap: wrap;
  padding: 34px 0 22px;
}
body.idc .eyebrow {
  display: flex; align-items: center; gap: 8px;
  margin: 0 0 10px; font-size: 11px; font-weight: 600;
  letter-spacing: .10em; text-transform: uppercase; color: var(--tx-4);
}
body.idc .eyebrow .ico { width: 13px; height: 13px; color: var(--cy); opacity: .8; }
body.idc .page-title {
  display: flex; align-items: center; gap: 12px;
  margin: 0; font-size: 26px; font-weight: 650 !important;
  letter-spacing: -.024em; color: #fff !important;
}
body.idc .page-title .ico { width: 24px; height: 24px; color: var(--cy); }
body.idc .page-sub { margin: 8px 0 0; font-size: 13px; color: var(--tx-3); max-width: 62ch; }
body.idc .page-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

/* 旧 `.header` 兼容：作为区块标题 */
/* 注意：jquery.tablesorter 会给每个 <th> 加 class="header"，
   因此 .header 必须排除表格单元格，否则会把表头打成纵向堆叠 */
body.idc h4.header, body.idc .header:not(th):not(td):not(tr) {
  display: flex; align-items: center; gap: 10px;
  border: 0 !important; margin: 0 0 16px !important; padding: 0 !important;
  font-size: 16px; font-weight: 600; color: #fff;
  letter-spacing: -.01em;
}
body.idc h4.header .ico { width: 18px; height: 18px; color: var(--cy); }
body.idc h4.small-divide {
  border: 0 !important; margin: 30px 0 16px !important; padding: 26px 0 0 !important;
  border-top: 1px solid var(--line-1) !important;
  position: relative; font-size: 15px;
}
body.idc h4.small-divide::after {
  content: ""; position: absolute; top: -1px; left: 0;
  width: 44px; height: 2px; border-radius: 2px; background: var(--grad-brand);
}

/* ------------------------------------------------------------- 5. 顶部导航 */
body.idc .topbar {
  position: sticky; top: 0; z-index: 1030;
  background: rgba(6, 10, 20, .74);
  -webkit-backdrop-filter: blur(22px) saturate(170%);
  backdrop-filter: blur(22px) saturate(170%);
  border-bottom: 1px solid var(--line-1);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .03), 0 12px 40px -22px rgba(0, 0, 0, .9);
}
body.idc .topbar__inner {
  display: flex; align-items: center; gap: 22px;
  height: var(--topbar-h);
}

/* 品牌 */
body.idc #logo, body.idc .brand {
  display: flex; align-items: center; gap: 11px;
  color: #fff !important; text-decoration: none !important;
  flex: 0 0 auto; margin: 0 !important;
}
body.idc .brand__mark {
  position: relative; width: 36px; height: 36px; flex: 0 0 36px;
  display: grid; place-items: center; border-radius: 11px;
  background: var(--grad-brand);
  box-shadow: 0 6px 18px -4px rgba(34, 211, 238, .5), var(--hair-top);
}
body.idc .brand__mark svg { width: 20px; height: 20px; color: #06121F; }
body.idc .brand__mark::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  background: linear-gradient(180deg, rgba(255, 255, 255, .35), transparent 55%);
  mix-blend-mode: overlay;
}
body.idc .brand__text { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
body.idc .brand__text b {
  font-size: 15px; font-weight: 650; color: #fff;
  letter-spacing: -.01em; white-space: nowrap;
  max-width: 220px; overflow: hidden; text-overflow: ellipsis;
}
body.idc .brand__text i {
  font-style: normal; font-size: 10px; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--tx-4); white-space: nowrap;
}
body.idc .brand h4 { margin: 0 !important; font-size: 15px !important; color: #fff !important; }

/* 主导航 */
body.idc .mainnav { display: flex; align-items: center; gap: 4px; flex: 1 1 auto; }
body.idc .mainnav__item {
  position: relative; display: flex; align-items: center; gap: 8px;
  padding: 9px 14px; border-radius: var(--r-btn);
  color: var(--tx-2); font-size: 13.5px; font-weight: 500;
  white-space: nowrap; transition: all .18s var(--ease);
}
body.idc .mainnav__item .ico { width: 16px; height: 16px; opacity: .75; }
body.idc .mainnav__item:hover { background: var(--glass-2); color: #fff; }
body.idc .mainnav__item:hover .ico { opacity: 1; color: var(--cy); }
body.idc .mainnav__item.is-active {
  background: var(--glass-2); color: #fff;
  box-shadow: inset 0 0 0 1px var(--line-2), var(--hair-top);
}
body.idc .mainnav__item.is-active .ico { color: var(--cy); opacity: 1; }
body.idc .mainnav__item.is-active::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: -1px;
  height: 2px; border-radius: 2px; background: var(--grad-brand);
  box-shadow: 0 0 14px rgba(34, 211, 238, .8);
}
body.idc .mainnav__badge {
  font-family: var(--font-mono); font-size: 10px; font-weight: 600;
  padding: 1px 6px; border-radius: var(--r-pill);
  background: var(--err-bg); color: var(--err);
  box-shadow: inset 0 0 0 1px var(--err-ln);
}

/* 顶栏右侧 */
body.idc .topbar__right { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
body.idc .lang-form { margin: 0; display: flex; align-items: center; }
body.idc .lang-form select {
  height: 34px; padding: 0 30px 0 12px; font-size: 12.5px;
  border-radius: var(--r-btn); width: auto; min-width: 0;
  background-color: var(--glass-1);
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23B9CBEA' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 10px center;
  border: 1px solid var(--line-1); color: var(--tx-2);
  -webkit-appearance: none; appearance: none; cursor: pointer;
}
body.idc .lang-form select:hover { border-color: var(--line-2); }

/* 顶栏图形按钮（服务单入口） */
body.idc .topbar__ico {
  width: 34px; height: 34px; flex: 0 0 34px;
  display: grid; place-items: center; border-radius: var(--r-btn);
  background: var(--glass-1); box-shadow: inset 0 0 0 1px var(--line-1);
  color: var(--tx-3); transition: all .28s var(--ease); position: relative;
}
body.idc .topbar__ico .ico { width: 16px; height: 16px; }

/* 移动端导航开关：桌面隐藏，1080px 以下显示（见文末响应式段落） */
body.idc .nav-toggle {
  display: none;
  width: 36px; height: 36px; flex: 0 0 36px;
  padding: 0; border: 0; border-radius: var(--r-btn);
  background: var(--glass-1); box-shadow: inset 0 0 0 1px var(--line-1);
  cursor: pointer;
  flex-direction: column; align-items: center; justify-content: center; gap: 4px;
}
body.idc .nav-toggle span {
  display: block; width: 16px; height: 2px; border-radius: 2px;
  background: var(--tx-2); transition: transform .28s var(--ease), opacity .2s;
}
body.idc .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
body.idc .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
body.idc .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
body.idc .topbar__ico:hover {
  background: var(--glass-3); box-shadow: inset 0 0 0 1px var(--line-2); color: var(--cy);
}
body.idc .topbar__ico.is-active {
  color: var(--cy); background: rgba(34, 211, 238, .12);
  box-shadow: inset 0 0 0 1px rgba(34, 211, 238, .34);
}

body.idc .userchip {
  display: flex; align-items: center; gap: 9px;
  padding: 5px 12px 5px 5px; border-radius: var(--r-pill);
  background: var(--glass-2); box-shadow: inset 0 0 0 1px var(--line-1);
  color: var(--tx-1) !important; font-size: 12.5px; position: relative;
}
body.idc .userchip:hover { background: var(--glass-3); box-shadow: inset 0 0 0 1px var(--line-2); }
body.idc .userchip__av {
  width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  background: var(--grad-brand); color: #06121F;
  font-family: var(--font-mono); font-size: 11px; font-weight: 700;
  flex: 0 0 26px;
}
body.idc .userchip__meta { display: flex; flex-direction: column; line-height: 1.2; }
body.idc .userchip__meta b { font-size: 12.5px; font-weight: 600; color: #fff; }
body.idc .userchip__meta i {
  font-style: normal; font-family: var(--font-mono); font-size: 10px;
  color: var(--cy); font-variant-numeric: tabular-nums;
}
body.idc .userchip--ghost { padding: 7px 15px; background: var(--glass-1); }

/* 顶部登录/注册（未登录） */
body.idc .topbar__auth { display: flex; align-items: center; gap: 8px; }
body.idc .topbar__auth .sep { color: var(--tx-4); }

/* ------------------------------------------------------------- 6. 按钮体系 */
body.idc .btn,
body.idc input[type="submit"].btn,
body.idc input[type="reset"].btn,
body.idc button.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  height: 38px; padding: 0 16px;
  font-family: var(--font-sans) !important;
  font-size: 13.5px !important; font-weight: 550 !important;
  line-height: 1 !important; letter-spacing: -.005em;
  color: var(--tx-1) !important;
  background: var(--glass-2) !important;
  background-image: none !important;
  border: 1px solid var(--line-1) !important;
  border-radius: var(--r-btn) !important;
  box-shadow: var(--hair-top) !important;
  text-shadow: none !important;
  cursor: pointer; white-space: nowrap;
  transition: all .17s var(--ease);
  -webkit-appearance: none; appearance: none;
}
body.idc .btn .ico { width: 16px; height: 16px; opacity: .85; }
body.idc .btn:hover {
  background: var(--glass-3) !important;
  border-color: var(--line-2) !important;
  color: #fff !important;
  transform: translateY(-1px);
}
body.idc .btn:active { transform: translateY(0); }
body.idc .btn:focus { outline: none; box-shadow: 0 0 0 3px rgba(34, 211, 238, .18) !important; }
body.idc .btn:disabled, body.idc .btn.disabled {
  opacity: .45; cursor: not-allowed; transform: none;
}

/* 主按钮（原 .btn.active 及新 .btn--primary）
   注意：写成 .btn.btn--primary 以压过 body.idc button.btn 的玻璃底色 */
body.idc .btn.btn.active,
body.idc .btn.btn-primary,
body.idc .btn.btn--primary {
  background: var(--grad-brand) !important;
  color: #04131F !important;
  border-color: transparent !important;
  font-weight: 650 !important;
  box-shadow: 0 8px 24px -8px rgba(34, 211, 238, .62), var(--hair-top) !important;
}
body.idc .btn.active .ico, body.idc .btn-primary .ico { opacity: .95; }
body.idc .btn.btn.active:hover,
body.idc .btn.btn-primary:hover,
body.idc .btn.btn--primary:hover {
  color: #04131F !important;
  filter: brightness(1.07);
  box-shadow: 0 12px 30px -8px rgba(34, 211, 238, .78) !important;
}

/* 危险 / 幽灵 / 小尺寸 */
body.idc .btn.btn--danger {
  background: var(--err-bg) !important; color: var(--err) !important;
  border-color: var(--err-ln) !important;
}
body.idc .btn.btn--danger:hover { background: rgba(248, 113, 113, .2) !important; color: #FCA5A5 !important; }
body.idc .btn.btn--ghost { background: transparent !important; border-color: var(--line-1) !important; }
body.idc .btn.btn--ghost:hover { background: var(--glass-2) !important; }
body.idc .btn--sm, body.idc .btn-mini, body.idc .btn-small { height: 32px !important; padding: 0 12px !important; font-size: 12.5px !important; }
body.idc .btn--lg { height: 44px !important; padding: 0 22px !important; font-size: 14.5px !important; }
body.idc .btn--block { width: 100%; }

/* 按钮组 */
body.idc .btn-group {
  display: inline-flex; align-items: center; gap: 0;
  vertical-align: middle; position: relative; font-size: 0;
}
body.idc .btn-group > .btn {
  border-radius: 0 !important; margin-left: -1px !important; position: relative;
}
body.idc .btn-group > .btn:first-child { border-radius: var(--r-btn) 0 0 var(--r-btn) !important; margin-left: 0 !important; }
body.idc .btn-group > .btn:last-child { border-radius: 0 var(--r-btn) var(--r-btn) 0 !important; }
body.idc .btn-group > .btn:hover { z-index: 2; }
body.idc .btn-group > .btn.active { z-index: 3; }
body.idc .btn-group + .btn-group { margin-left: 10px; }
body.idc .btn-group.pull-right { margin-left: 12px; }

/* 表单内操作按钮组 */
body.idc .form-actions {
  background: none !important; border: 0 !important;
  padding: 4px 0 0 !important; margin: 0 !important;
}

/* ------------------------------------------------------- 7. 标签 / 状态徽标 */
body.idc .label, body.idc .badge {
  display: inline-flex; align-items: center; gap: 6px;
  height: 22px; padding: 0 10px;
  font-family: var(--font-sans); font-size: 11.5px; font-weight: 600;
  line-height: 1; letter-spacing: .01em;
  text-shadow: none !important;
  border-radius: var(--r-pill);
  background: var(--mute-bg) !important; color: var(--mute) !important;
  box-shadow: inset 0 0 0 1px var(--mute-ln);
  vertical-align: middle;
}
body.idc .label::before, body.idc .badge::before {
  content: ""; width: 5px; height: 5px; border-radius: 50%;
  background: currentColor; flex: 0 0 5px;
}
body.idc .label:empty::before, body.idc .badge:empty::before { display: none; }

body.idc .label-success, body.idc .badge-success, body.idc .badge-ok {
  background: var(--ok-bg) !important; color: var(--ok) !important; box-shadow: inset 0 0 0 1px var(--ok-ln);
}
body.idc .label-warning, body.idc .badge-warning {
  background: var(--warn-bg) !important; color: var(--warn) !important; box-shadow: inset 0 0 0 1px var(--warn-ln);
}
body.idc .label-important, body.idc .label-error, body.idc .badge-important {
  background: var(--err-bg) !important; color: var(--err) !important; box-shadow: inset 0 0 0 1px var(--err-ln);
}
body.idc .label-info, body.idc .badge-info {
  background: var(--info-bg) !important; color: var(--info) !important; box-shadow: inset 0 0 0 1px var(--info-ln);
}
body.idc .label-inverse, body.idc .badge-inverse {
  background: rgba(139, 92, 246, .14) !important; color: #C4B5FD !important;
  box-shadow: inset 0 0 0 1px rgba(139, 92, 246, .36);
}

/* 序号徽标（快速导航里的 1-5） */
body.idc .label.num-badge, body.idc .num-badge {
  width: 22px; height: 22px; padding: 0; justify-content: center;
  font-family: var(--font-mono); font-size: 11px;
  background: var(--glass-2) !important; color: var(--cy) !important;
  box-shadow: inset 0 0 0 1px var(--line-2); flex: 0 0 22px;
}
body.idc .num-badge::before { display: none; }

/* 服务器状态点 */
body.idc .dot {
  display: inline-block; width: 8px; height: 8px; border-radius: 50%;
  background: var(--mute); flex: 0 0 8px; position: relative;
}
body.idc .dot--ok { background: var(--ok); box-shadow: 0 0 0 3px rgba(52, 211, 153, .16); }
body.idc .dot--warn { background: var(--warn); box-shadow: 0 0 0 3px rgba(251, 191, 36, .16); }
body.idc .dot--err { background: var(--err); box-shadow: 0 0 0 3px rgba(248, 113, 113, .16); }
body.idc .dot--ok { animation: pulse-ok 2.6s var(--ease) infinite; }
@keyframes pulse-ok {
  0%, 100% { box-shadow: 0 0 0 3px rgba(52, 211, 153, .16); }
  50% { box-shadow: 0 0 0 6px rgba(52, 211, 153, .05); }
}

/* --------------------------------------------------------- 8. 卡片 / 面板 */
body.idc .widget,
body.idc .table-panel,
body.idc .card {
  position: relative;
  background: var(--glass-1) !important;
  border: 1px solid var(--line-1) !important;
  border-radius: var(--r-card) !important;
  box-shadow: var(--hair-top), 0 18px 44px -26px rgba(0, 0, 0, .85) !important;
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  backdrop-filter: blur(18px) saturate(150%);
  padding: 20px !important;
  margin-bottom: 0 !important;
  box-sizing: border-box;
}
body.idc .widget > table, body.idc .widget table { margin-bottom: 0; }

/* ---------------------------------------------------------- 8b. 首屏 Hero */
body.idc .dash-hero {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: minmax(0, 1fr) auto;
  gap: 34px; align-items: center;
  padding: 30px 32px; border-radius: 22px; margin-bottom: 22px;
  background: linear-gradient(135deg, rgba(34, 211, 238, .11), rgba(59, 130, 246, .07) 45%, rgba(99, 102, 241, .10));
  border: 1px solid rgba(255, 255, 255, .10);
  box-shadow: var(--hair-top), 0 30px 70px -40px rgba(0, 0, 0, .95);
}
body.idc .dash-hero::before {
  content: ""; position: absolute; top: -130px; right: -70px;
  width: 360px; height: 360px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(34, 211, 238, .24), transparent 70%);
}
body.idc .dash-hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, .038) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .038) 1px, transparent 1px);
  background-size: 30px 30px;
  -webkit-mask-image: radial-gradient(620px 320px at 78% 0%, #000, transparent 76%);
  mask-image: radial-gradient(620px 320px at 78% 0%, #000, transparent 76%);
}
body.idc .dash-hero > * { position: relative; z-index: 1; }
body.idc .dash-hero h1 {
  font-size: 31px !important; letter-spacing: -.032em;
  margin: 0 0 10px !important; line-height: 1.14;
}
body.idc .dash-hero__sub {
  font-size: 13.5px; color: var(--tx-3); max-width: 58ch; margin: 0; line-height: 1.65;
}
body.idc .dash-hero__actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; }

body.idc .dash-kpi { display: flex; gap: 12px; flex-wrap: wrap; justify-content: flex-end; }
body.idc .dash-kpi__box {
  display: flex; align-items: center; gap: 13px;
  padding: 15px 20px 15px 16px; border-radius: 16px;
  background: rgba(4, 8, 16, .42); border: 1px solid var(--line-1);
  box-shadow: var(--hair-top); min-width: 178px;
}
body.idc .dash-kpi__ico {
  width: 36px; height: 36px; flex: 0 0 36px; border-radius: 11px;
  display: grid; place-items: center;
  background: var(--grad-brand); color: #04131F;
  box-shadow: 0 8px 20px -8px rgba(34, 211, 238, .7);
}
body.idc .dash-kpi__ico svg { width: 18px; height: 18px; }
body.idc .dash-kpi__ico--ghost {
  background: var(--glass-3); color: var(--cy);
  box-shadow: inset 0 0 0 1px var(--line-2);
}
body.idc .dash-kpi__box b {
  display: block; font-family: var(--font-mono); font-size: 24px; font-weight: 700;
  color: #fff; letter-spacing: -.025em; line-height: 1.15;
  font-variant-numeric: tabular-nums;
}
body.idc .dash-kpi__box b small {
  font-family: var(--font-sans); font-size: 12px; font-weight: 500;
  color: var(--tx-3); margin-left: 4px; letter-spacing: 0;
}

@media (max-width: 1080px) {
  body.idc .dash-hero { grid-template-columns: 1fr; gap: 22px; }
  body.idc .dash-kpi { justify-content: flex-start; }
}
@media (max-width: 620px) {
  body.idc .dash-hero { padding: 22px 18px; }
  body.idc .dash-hero h1 { font-size: 24px !important; }
}

/* --------------------------------------------------------- 8c. 章节标题 */
body.idc .section-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px; flex-wrap: wrap; margin: 26px 0 16px;
}
body.idc .section-head h4 {
  display: flex; align-items: center; gap: 9px;
  margin: 0 !important; font-size: 15px !important; font-weight: 600 !important;
}
body.idc .section-head h4 .ico { width: 17px; height: 17px; color: var(--cy); }
body.idc .section-head .hint { font-size: 12.5px; color: var(--tx-4); }

/* ------------------------------------------------------- 8d. 公告条目链接 */
body.idc .news-link {
  display: inline-flex; align-items: center; gap: 9px;
  color: var(--tx-1) !important; font-weight: 500;
}
body.idc .news-link::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%; flex: 0 0 6px;
  background: var(--cy); box-shadow: 0 0 10px rgba(34, 211, 238, .9);
}
body.idc .news-link:hover { color: var(--cy) !important; }

/* --------------------------------------------------------- 8e. 表格卡片 */
body.idc .table-panel {
  position: relative;
  background: var(--glass-1) !important;
  border: 1px solid var(--line-1) !important;
  border-radius: var(--r-card) !important;
  box-shadow: var(--hair-top), 0 18px 44px -26px rgba(0, 0, 0, .85) !important;
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  backdrop-filter: blur(18px) saturate(150%);
  padding: 0 !important; overflow: hidden; margin-bottom: 0 !important;
}
body.idc .table-panel > h4,
body.idc .table-panel > .panel-head { padding: 18px 20px 0; margin-bottom: 14px !important; }
body.idc .table-panel > .table { margin: 0 !important; }

body.idc .panel-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px; flex-wrap: wrap; margin-bottom: 16px;
}
body.idc .panel-head h4 { margin: 0 !important; }
body.idc .panel-foot {
  padding: 14px 20px; border-top: 1px solid var(--line-1);
  background: rgba(0, 0, 0, .16);
}

/* 悬浮高亮 */
body.idc .card--hover { transition: all .22s var(--ease); }
body.idc .card--hover:hover {
  transform: translateY(-3px);
  border-color: var(--line-2) !important;
  background: var(--glass-2) !important;
  box-shadow: var(--hair-top), 0 26px 60px -28px rgba(0, 0, 0, .9), 0 0 0 1px rgba(34, 211, 238, .12) !important;
}

/* 顶部渐变描边卡片 */
body.idc .card--accent::before {
  content: ""; position: absolute; top: -1px; left: 18px; right: 18px; height: 2px;
  border-radius: 2px; background: var(--grad-brand);
  box-shadow: 0 0 18px rgba(34, 211, 238, .55);
}

/* 统计数字块（原 .stats / .stat） */
body.idc .stats { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 20px; }
body.idc .stats > .row-fluid { flex: 1 1 100%; }
body.idc .stat {
  position: relative; overflow: hidden;
  background: var(--glass-1); border: 1px solid var(--line-1);
  border-radius: var(--r-card); padding: 18px 20px;
  box-shadow: var(--hair-top);
  transition: all .2s var(--ease);
  min-height: 84px; box-sizing: border-box;
  display: flex; flex-direction: column; justify-content: center;
}
body.idc .stat h2 {
  font-family: var(--font-mono); font-size: 24px; font-weight: 700;
  font-variant-numeric: tabular-nums; letter-spacing: -.02em;
  margin: 0 0 4px; color: #fff; line-height: 1.1;
}
body.idc .stat h4, body.idc .stat h5 {
  margin: 0; font-size: 12px; font-weight: 500; color: var(--tx-3);
  text-transform: none; letter-spacing: .01em;
}
body.idc .stat:hover { border-color: var(--line-2); background: var(--glass-2); }
body.idc .stat.inverse h2 { color: #fff; }
body.idc .stat.active {
  background: var(--grad-soft); border-color: rgba(34, 211, 238, .34);
  box-shadow: var(--hair-top), 0 14px 40px -18px rgba(34, 211, 238, .5);
}
body.idc .stat.active h2 { color: var(--cy-2); }
body.idc .stat.info { border-left: 2px solid var(--info); }
body.idc .stat.success { border-left: 2px solid var(--ok); }
body.idc .stat.warning { border-left: 2px solid var(--warn); }
body.idc .stat.danger { border-left: 2px solid var(--err); }

/* 可点击的 stat 卡（首页功能入口） */
body.idc a .stat, body.idc .stat--link { cursor: pointer; }
body.idc a .stat:hover,
body.idc .stat--link:hover { transform: translateY(-3px); background: var(--glass-2); }

/* 首页功能宫格 */
body.idc .stat-list {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px;
}
body.idc .stat-list > li { display: flex; min-width: 0; }
body.idc .stat-list .sl {
  position: relative; display: flex; flex: 1 1 auto; align-items: center;
  gap: 14px; padding: 16px; min-width: 0;
  background: var(--glass-1); border: 1px solid var(--line-1);
  border-radius: var(--r-card); box-shadow: var(--hair-top);
  transition: all .22s var(--ease); overflow: hidden;
  color: var(--tx-2) !important;
}
body.idc .stat-list .sl::after {
  content: ""; position: absolute; right: -30px; top: -30px;
  width: 90px; height: 90px; border-radius: 50%;
  background: radial-gradient(circle, rgba(34, 211, 238, .16), transparent 70%);
  opacity: 0; transition: opacity .25s var(--ease);
}
body.idc .stat-list .sl:hover {
  transform: translateY(-3px); border-color: var(--line-2);
  background: var(--glass-2);
  box-shadow: var(--hair-top), 0 22px 50px -26px rgba(0, 0, 0, .95);
}
body.idc .stat-list .sl:hover::after { opacity: 1; }
body.idc .stat-list .sl:hover .sl-ico { color: #04131F; background: var(--grad-brand); box-shadow: 0 8px 20px -8px rgba(34, 211, 238, .8); }
body.idc .stat-list .sl:hover .sl-arrow { color: var(--cy); transform: translateX(3px); }

body.idc .stat-list .sl-ico {
  flex: 0 0 42px; width: 42px; height: 42px; border-radius: 12px;
  display: grid; place-items: center; margin: 0;
  background: var(--glass-3); color: var(--cy);
  transition: all .22s var(--ease);
}
body.idc .stat-list .sl-ico svg { width: 20px; height: 20px; }
body.idc .stat-list .sl-ico--info { color: var(--info); }
body.idc .stat-list .sl-ico--ok { color: var(--ok); }
body.idc .stat-list .sl-ico--warn { color: var(--warn); }
body.idc .stat-list .sl-ico--err { color: var(--err); }
body.idc .stat-list .sl-ico--violet { color: #C4B5FD; }
body.idc .stat-list .sl-body { min-width: 0; flex: 1 1 auto; }
body.idc .stat-list h4 {
  margin: 0 !important; font-size: 14px !important; font-weight: 600 !important;
  color: var(--tx-1); letter-spacing: -.005em;
}
body.idc .stat-list h4.sub {
  font-size: 12px !important; font-weight: 400 !important;
  color: var(--tx-3) !important; margin-top: 3px !important; line-height: 1.4;
}
body.idc .stat-list .sl-arrow {
  flex: 0 0 auto; color: var(--tx-4); transition: all .22s var(--ease);
}
body.idc .stat-list .sl-arrow svg { width: 16px; height: 16px; }

@media (max-width: 640px) {
  body.idc .stat-list { grid-template-columns: 1fr; }
}

/* ------------------------------------------------------------- 9. 数据表格 */
body.idc table.table, body.idc .table {
  width: 100%; border-collapse: separate; border-spacing: 0;
  background: none !important; margin-bottom: 0;
  font-size: 13.5px; color: var(--tx-2);
}
/* 双保险：表格单元格必须保持 table-cell，不被任何通用类（如 tablesorter 的 .header）改写 */
body.idc .table thead th, body.idc .table tbody th, body.idc .table tfoot th,
body.idc .table td { display: table-cell; }
body.idc .table th, body.idc .table td {
  border: 0 !important; border-bottom: 1px solid var(--line-1) !important;
  padding: 13px 16px !important; text-align: left;
  vertical-align: middle; background: none !important;
  line-height: 1.5;
}
body.idc .table thead th {
  position: sticky; top: 0; z-index: 2;
  background: rgba(9, 14, 26, .92) !important;
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  font-size: 11px !important; font-weight: 600 !important;
  letter-spacing: .075em; text-transform: uppercase;
  color: var(--tx-3) !important; white-space: nowrap;
  padding: 12px 16px !important;
  border-bottom: 1px solid var(--line-2) !important;
}
body.idc .table tbody tr { transition: background .16s var(--ease); }
body.idc .table tbody tr:hover { background: rgba(255, 255, 255, .035); }
body.idc .table tbody tr:last-child td { border-bottom: 0 !important; }
body.idc .table td:first-child, body.idc .table th:first-child { padding-left: 20px !important; }
body.idc .table td:last-child, body.idc .table th:last-child { padding-right: 20px !important; }

/* 斑马纹改成极淡的玻璃层 */
body.idc .table-striped tbody > tr:nth-child(odd) > td,
body.idc .table-striped tbody > tr:nth-child(odd) > th {
  background: rgba(255, 255, 255, .018) !important;
}
body.idc .table-bordered { border: 0 !important; border-radius: 0 !important; }
body.idc .table-bordered th, body.idc .table-bordered td { border-left: 0 !important; border-right: 0 !important; }

/* 表格内的表单控件收紧 */
body.idc .table td input[type="text"],
body.idc .table td input[type="password"],
body.idc .table td select { margin-bottom: 0; }

/* 键值表（详情页用） */
body.idc .table--kv td:first-child, body.idc .table--kv th:first-child {
  width: 200px; color: var(--tx-3); font-weight: 500;
  font-size: 12.5px; background: rgba(255, 255, 255, .022) !important;
}
body.idc .table--kv td:last-child { color: var(--tx-1); }
body.idc .table--kv tbody tr:hover { background: transparent; }

/* 服务器状态表：9 列较宽，允许横向滚动并固定首列宽度 */
body.idc .status-table { min-width: 980px; }
body.idc .status-table th:first-child, body.idc .status-table td:first-child { min-width: 170px; }
body.idc .status-table th:nth-child(n+2), body.idc .status-table td:nth-child(n+2) { text-align: center; }
body.idc .status-table th:last-child, body.idc .status-table td:last-child { min-width: 130px; }
body.idc .kv-mono {
  font-family: var(--font-mono); font-size: 12.5px;
  color: var(--cy-2); word-break: break-all;
}
body.idc .kv-secret {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 12.5px; color: var(--cy-2);
  background: rgba(34, 211, 238, .07); border: 1px solid rgba(34, 211, 238, .16);
  border-radius: 6px; padding: 2px 8px;
}
body.idc .kv-secret .eye { color: var(--tx-4); cursor: pointer; display: inline-flex; }
body.idc .kv-secret .eye:hover { color: var(--cy); }
body.idc .kv-secret .eye svg { width: 13px; height: 13px; }
body.idc .kv-mask { filter: blur(4.5px); transition: filter .22s var(--ease); }
body.idc .kv-mask.is-shown { filter: none; }

/* 排序表头（tablesorter 注入的 class） */
body.idc .table thead th.header { cursor: pointer; user-select: none; }
body.idc .table thead th.header::after {
  content: "↕"; margin-left: 6px; opacity: .35; font-size: 10px;
}
body.idc .table thead th.headerSortDown::after { content: "↓"; opacity: .9; color: var(--cy); }
body.idc .table thead th.headerSortUp::after { content: "↑"; opacity: .9; color: var(--cy); }

/* 分页条（原模板里是一串裸 .btn） */
body.idc .pager-bar {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 14px 20px; border-top: 1px solid var(--line-1);
  font-size: 12.5px; color: var(--tx-3); font-family: var(--font-mono);
}

/* 空状态 */
body.idc .empty {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 12px; padding: 56px 24px; text-align: center;
}
body.idc .empty__ico {
  width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center;
  background: var(--glass-2); box-shadow: inset 0 0 0 1px var(--line-1); color: var(--tx-3);
}
body.idc .empty__ico svg { width: 24px; height: 24px; }
body.idc .empty h4 { margin: 0 !important; font-size: 14px; }
body.idc .empty p { margin: 0; font-size: 12.5px; color: var(--tx-3); }

/* --------------------------------------------------------------- 10. 表单 */
body.idc input[type="text"], body.idc input[type="password"],
body.idc input[type="email"], body.idc input[type="number"],
body.idc input[type="search"], body.idc input[type="tel"],
body.idc input[type="url"], body.idc textarea, body.idc select {
  box-sizing: border-box;
  height: 42px; padding: 0 14px;
  font-family: var(--font-sans) !important;
  font-size: 13.5px !important; line-height: 40px !important;
  color: var(--tx-1) !important;
  background: rgba(255, 255, 255, .035) !important;
  border: 1px solid var(--line-1) !important;
  border-radius: var(--r-input) !important;
  box-shadow: none !important;
  text-shadow: none !important;
  transition: all .17s var(--ease);
  -webkit-appearance: none; appearance: none;
  vertical-align: middle; margin-bottom: 0;
}
body.idc textarea {
  height: auto !important; min-height: 110px;
  line-height: 1.6 !important; padding: 12px 14px !important; resize: vertical;
}
body.idc input::placeholder, body.idc textarea::placeholder { color: var(--tx-4); }
body.idc input:focus, body.idc textarea:focus, body.idc select:focus {
  outline: none !important;
  background: rgba(255, 255, 255, .055) !important;
  border-color: rgba(34, 211, 238, .55) !important;
  box-shadow: 0 0 0 3px rgba(34, 211, 238, .14), 0 0 20px -6px rgba(34, 211, 238, .5) !important;
}
body.idc input:disabled, body.idc select:disabled, body.idc textarea:disabled {
  opacity: .5; cursor: not-allowed;
}
body.idc select {
  padding-right: 34px;
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23B9CBEA' stroke-width='2.4' 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 12px center !important;
  cursor: pointer;
}
body.idc select option { background: #0B1222; color: var(--tx-1); }
body.idc input[type="radio"], body.idc input[type="checkbox"] {
  width: 16px; height: 16px; min-width: 16px; accent-color: #22D3EE;
  vertical-align: -3px; margin: 0 4px 0 0;
}
body.idc input[type="file"] { height: auto; padding: 8px 12px; line-height: 1.4 !important; }

/* 表单行 */
body.idc .form-horizontal { margin: 0; }
body.idc .form-horizontal .control-group {
  display: flex; align-items: flex-start; gap: 18px;
  margin: 0 0 16px !important;
}
body.idc .form-horizontal .control-label {
  flex: 0 0 148px; width: 148px !important; text-align: left !important;
  float: none !important; padding: 11px 0 0 !important;
  font-size: 13px !important; font-weight: 500 !important;
  color: var(--tx-2) !important; line-height: 1.4 !important;
}
body.idc .form-horizontal .controls { flex: 1 1 auto; margin: 0 !important; min-width: 0; }
body.idc .form-horizontal .controls > input,
body.idc .form-horizontal .controls > select,
body.idc .form-horizontal .controls > textarea { width: 100% !important; box-sizing: border-box; }
body.idc .form-horizontal .controls .help-inline,
body.idc .help-inline {
  display: block; margin: 6px 0 0 !important; padding: 0 !important;
  font-size: 11.5px; color: var(--tx-4); font-style: normal;
}
body.idc .help-block { font-size: 11.5px; color: var(--tx-4); margin: 6px 0 0; }

/* 垂直表单 */
body.idc .form-vertical .control-group { margin-bottom: 16px; }
body.idc .form-vertical label { display: block; margin-bottom: 7px; font-size: 13px; color: var(--tx-2); }
body.idc .form-vertical .grid2 .control-group,
body.idc .form-vertical .grid3 .control-group { margin-bottom: 0 !important; }
body.idc .form-vertical .controls > input,
body.idc .form-vertical .controls > select,
body.idc .form-vertical .controls > textarea { width: 100% !important; box-sizing: border-box; }

body.idc .auth-wrap--wide { grid-template-columns: minmax(0, .72fr) minmax(0, 1.28fr); }
body.idc .auth-wrap--wide .auth-panel { max-width: 660px; }

/* 输入框 + 按钮组合 */
body.idc .input-append, body.idc .input-prepend {
  display: flex; align-items: stretch; gap: 0; width: 100%; max-width: 460px;
}
body.idc .input-append input, body.idc .input-prepend input {
  flex: 1 1 auto; border-radius: var(--r-input) 0 0 var(--r-input) !important;
}
body.idc .input-append .btn, body.idc .input-prepend .btn {
  border-radius: 0 var(--r-btn) var(--r-btn) 0 !important;
  margin-left: -1px !important; height: auto; min-height: 42px;
}
body.idc .input-append .add-on, body.idc .input-prepend .add-on {
  display: grid; place-items: center; min-width: 42px; padding: 0 12px;
  background: var(--glass-2); border: 1px solid var(--line-1); color: var(--tx-3);
  font-size: 12.5px;
}

/* 搜索框 */
body.idc .searchbox { position: relative; max-width: 340px; width: 100%; }
body.idc .searchbox .ico {
  position: absolute; left: 13px; top: 50%; transform: translateY(-50%);
  width: 15px; height: 15px; color: var(--tx-4); pointer-events: none; z-index: 2;
}
body.idc .searchbox input { padding-left: 38px !important; }
body.idc .form-eye {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  width: 32px; height: 32px; display: grid; place-items: center;
  border: 0; background: transparent; border-radius: 8px;
  color: var(--tx-4); cursor: pointer; padding: 0;
  transition: all .15s var(--ease);
}
body.idc .form-eye:hover { background: var(--glass-2); color: var(--tx-2); }
body.idc .form-eye svg { width: 16px; height: 16px; }

/* 分段选择（周期切换） */
body.idc .segmented {
  display: inline-flex; gap: 3px; padding: 3px;
  background: rgba(0, 0, 0, .28); border: 1px solid var(--line-1);
  border-radius: var(--r-pill);
}
body.idc .segmented__item {
  padding: 7px 15px; border-radius: var(--r-pill);
  font-size: 12.5px; font-weight: 550; color: var(--tx-3);
  background: none; border: 0; cursor: pointer;
  transition: all .17s var(--ease); white-space: nowrap;
}
body.idc .segmented__item:hover { color: #fff; background: var(--glass-2); }
body.idc .segmented__item.is-active {
  background: var(--grad-brand); color: #04131F; font-weight: 650;
  box-shadow: 0 4px 14px -4px rgba(34, 211, 238, .6);
}

/* -------------------------------------------------------- 11. 提示条 Alert */
body.idc .alert {
  position: relative; display: flex; align-items: flex-start; gap: 10px;
  padding: 13px 44px 13px 16px !important;
  margin: 0 0 16px !important;
  font-size: 13px; line-height: 1.55;
  color: var(--tx-2) !important;
  background: var(--glass-1) !important;
  border: 1px solid var(--line-1) !important;
  border-left-width: 3px !important;
  border-radius: var(--r-btn) !important;
  text-shadow: none !important;
  box-shadow: var(--hair-top);
}
body.idc .alert strong { color: inherit; }
body.idc .alert .close {
  position: absolute; top: 8px; right: 10px; float: none !important;
  width: 26px; height: 26px; display: grid; place-items: center;
  border-radius: 8px; background: transparent; border: 0;
  font-size: 18px; line-height: 1; color: inherit; opacity: .55;
  text-shadow: none; cursor: pointer; transition: all .16s var(--ease);
}
body.idc .alert .close:hover { opacity: 1; background: rgba(255, 255, 255, .08); }
body.idc .alert-info { background: var(--info-bg) !important; border-color: var(--info-ln) !important; color: #BFDBFE !important; }
body.idc .alert-success { background: var(--ok-bg) !important; border-color: var(--ok-ln) !important; color: #A7F3D0 !important; }
body.idc .alert-warning { background: var(--warn-bg) !important; border-color: var(--warn-ln) !important; color: #FDE68A !important; }
body.idc .alert-error, body.idc .alert-danger { background: var(--err-bg) !important; border-color: var(--err-ln) !important; color: #FECACA !important; }

/* ------------------------------------------------- 12. 下拉 / 模态 / 提示泡 */
body.idc .dropdown-menu {
  min-width: 190px; padding: 6px !important; margin: 8px 0 0 !important;
  background: rgba(11, 18, 34, .97) !important;
  -webkit-backdrop-filter: blur(24px) saturate(160%); backdrop-filter: blur(24px) saturate(160%);
  border: 1px solid var(--line-2) !important;
  border-radius: 14px !important;
  box-shadow: 0 26px 70px -22px rgba(0, 0, 0, .95), var(--hair-top) !important;
  list-style: none;
}
body.idc .dropdown-menu::before, body.idc .dropdown-menu::after { display: none !important; }
body.idc .dropdown-menu > li > a,
body.idc .dropdown-menu a {
  display: flex; align-items: center; gap: 9px;
  padding: 9px 12px !important; border-radius: 9px;
  font-size: 13px; color: var(--tx-2) !important;
  transition: all .15s var(--ease); background: none !important;
}
body.idc .dropdown-menu > li > a:hover,
body.idc .dropdown-menu a:hover { background: var(--glass-3) !important; color: #fff !important; }
body.idc .dropdown-menu .divider {
  height: 1px !important; margin: 6px 4px !important;
  background: var(--line-1) !important; border: 0 !important;
}

body.idc .modal {
  background: rgba(11, 18, 34, .98) !important;
  border: 1px solid var(--line-2) !important;
  border-radius: var(--r-panel) !important;
  box-shadow: 0 40px 100px -30px rgba(0, 0, 0, .95), var(--hair-top) !important;
  color: var(--tx-2);
}
body.idc .modal-header { border-bottom: 1px solid var(--line-1) !important; padding: 18px 22px !important; }
body.idc .modal-header h3 { margin: 0 !important; font-size: 16px !important; }
body.idc .modal-header .close {
  float: none; position: absolute; right: 16px; top: 16px;
  width: 28px; height: 28px; display: grid; place-items: center;
  border-radius: 8px; color: var(--tx-3); opacity: 1; font-size: 18px;
  text-shadow: none; cursor: pointer;
}
body.idc .modal-header .close:hover { background: var(--glass-3); color: #fff; }
body.idc .modal-body { padding: 20px 22px !important; }
body.idc .modal-footer {
  padding: 14px 22px !important; border-top: 1px solid var(--line-1) !important;
  background: rgba(0, 0, 0, .22) !important; border-radius: 0 0 var(--r-panel) var(--r-panel);
}
body.idc .modal-backdrop, body.idc .modal-backdrop.fade.in { background-color: rgba(3, 6, 12, .78) !important; }

body.idc .tooltip-inner {
  background: rgba(11, 18, 34, .98); color: var(--tx-1); font-size: 12px;
  border: 1px solid var(--line-2); border-radius: 8px; padding: 6px 10px;
  box-shadow: var(--sh-2);
}
body.idc .popover {
  background: rgba(11, 18, 34, .98); border: 1px solid var(--line-2);
  border-radius: 12px; box-shadow: var(--sh-2); color: var(--tx-2);
}
body.idc .popover-title { background: var(--glass-2); border-bottom: 1px solid var(--line-1); font-size: 13px; }

/* ------------------------------------------------------------ 13. 侧边栏 */
body.idc .side-col { display: flex; flex-direction: column; gap: 18px; }
body.idc .side-card {
  background: var(--glass-1); border: 1px solid var(--line-1);
  border-radius: var(--r-card); box-shadow: var(--hair-top);
  padding: 18px; box-sizing: border-box;
  -webkit-backdrop-filter: blur(18px) saturate(150%); backdrop-filter: blur(18px) saturate(150%);
}
body.idc .side-card > h4 {
  display: flex; align-items: center; gap: 9px;
  margin: 0 0 14px !important; font-size: 12px !important; font-weight: 600 !important;
  letter-spacing: .085em; text-transform: uppercase; color: var(--tx-4) !important;
}
body.idc .side-card > h4 .ico { width: 14px; height: 14px; color: var(--cy); }

/* 侧栏快捷列表 */
body.idc .quicklist { list-style: none; margin: 0; padding: 0; }
body.idc .quicklist li { margin: 0 0 3px !important; }
body.idc .quicklist a {
  display: flex; align-items: center; gap: 11px;
  padding: 9px 11px; border-radius: var(--r-sm);
  font-size: 13px; color: var(--tx-2) !important;
  transition: all .16s var(--ease);
}
body.idc .quicklist a:hover { background: var(--glass-2); color: #fff !important; }
body.idc .quicklist a.is-active { background: var(--glass-3); color: #fff !important; box-shadow: inset 0 0 0 1px var(--line-2); }
body.idc .quicklist .num-badge {
  width: 20px; height: 20px; flex: 0 0 20px; border-radius: 6px;
  display: grid; place-items: center;
  font-family: var(--font-mono); font-size: 10.5px; font-weight: 600;
  background: var(--glass-2); color: var(--cy);
  box-shadow: inset 0 0 0 1px var(--line-2);
}
body.idc .quicklist .lbl { flex: 1 1 auto; }
body.idc .quicklist .ico { width: 15px; height: 15px; color: var(--tx-4); }

/* 侧栏账户信息 */
body.idc .metarow {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 9px 0; border-bottom: 1px dashed rgba(255, 255, 255, .07);
  font-size: 12.5px;
}
body.idc .metarow:last-child { border-bottom: 0; }
body.idc .metarow dt { color: var(--tx-4); margin: 0; font-weight: 400; flex: 0 0 auto; }
body.idc .metarow dd { margin: 0; color: var(--tx-1); text-align: right; word-break: break-all; }
body.idc .metarow dd.mono { font-family: var(--font-mono); font-size: 12px; }
body.idc .metarow dt .ico { color: var(--tx-4); display: block; }
body.idc .metarow--hl {
  margin-top: 12px; padding: 11px 12px; border: 0; border-radius: var(--r-sm);
  background: var(--grad-soft); box-shadow: inset 0 0 0 1px rgba(34, 211, 238, .26);
}
body.idc .metarow--hl dt .ico { color: var(--cy); }
body.idc .metarow--hl dd { color: var(--cy-2) !important; font-weight: 600; }

/* 用户中心左侧资料卡 */
body.idc .profile-sidebar {
  background: var(--glass-1); border: 1px solid var(--line-1);
  border-radius: var(--r-card); padding: 22px 18px; text-align: center;
  box-shadow: var(--hair-top); position: relative; overflow: hidden;
}
body.idc .profile-sidebar::before {
  content: ""; position: absolute; top: -60px; left: 50%; transform: translateX(-50%);
  width: 200px; height: 130px; border-radius: 50%;
  background: radial-gradient(circle, rgba(34, 211, 238, .22), transparent 70%);
}
body.idc .profile-sidebar > h4 {
  position: relative; margin: 0 0 4px !important;
  font-size: 14px !important; letter-spacing: .02em;
}
body.idc .avatar-ring {
  position: relative; width: 66px; height: 66px; margin: 6px auto 14px;
  border-radius: 50%; display: grid; place-items: center;
  background: var(--grad-brand); color: #06121F;
  font-family: var(--font-mono); font-size: 22px; font-weight: 700;
  box-shadow: 0 0 0 4px rgba(34, 211, 238, .14), 0 12px 30px -10px rgba(34, 211, 238, .6);
}
body.idc .profile-sidebar .pull-right { float: none !important; }
body.idc .rating-star, body.idc .half-star, body.idc .no-star {
  display: inline-block; width: 14px; height: 14px; margin: 0 1px 14px;
  background: none !important; position: relative;
}
body.idc .rating-star::before, body.idc .half-star::before, body.idc .no-star::before {
  content: "★"; font-size: 13px; line-height: 1; color: var(--warn);
}
body.idc .half-star::before {
  background: linear-gradient(90deg, var(--warn) 50%, rgba(255, 255, 255, .16) 50%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
body.idc .no-star::before { color: rgba(255, 255, 255, .16); }
body.idc .profile-sidebar > p {
  margin: 0 0 10px !important; font-family: var(--font-mono);
  font-size: 11.5px; color: var(--tx-4);
}
body.idc .profile-sidebar ul { list-style: none; margin: 16px 0 0; padding: 0; text-align: left; }
body.idc .profile-sidebar ul li { margin: 0 0 3px; }
body.idc .profile-sidebar ul li a {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: var(--r-sm);
  font-size: 13px; color: var(--tx-2) !important; transition: all .16s var(--ease);
}
body.idc .profile-sidebar ul li a:hover { background: var(--glass-2); color: #fff !important; }
body.idc .profile-sidebar ul li a .ico { width: 15px; height: 15px; color: var(--cy); opacity: .85; }

/* ----------------------------------------------------- 14. 登录 / 注册页 */
body.idc .auth-wrap {
  min-height: calc(100vh - var(--topbar-h));
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  align-items: center; gap: 0;
}
body.idc .auth-hero { padding: 60px 64px 60px 0; }
body.idc .auth-hero__badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: var(--r-pill);
  background: var(--glass-2); box-shadow: inset 0 0 0 1px var(--line-2);
  font-size: 11.5px; font-weight: 600; letter-spacing: .06em;
  text-transform: uppercase; color: var(--cy); margin-bottom: 26px;
}
body.idc .auth-hero__badge .dot--ok { width: 6px; height: 6px; flex: 0 0 6px; }
body.idc .auth-hero h1 {
  font-size: 46px !important; font-weight: 700 !important;
  letter-spacing: -.035em; line-height: 1.1; margin: 0 0 18px !important;
  background: linear-gradient(180deg, #FFFFFF 20%, rgba(197, 220, 255, .62) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent !important;
}
body.idc .auth-hero h1 em {
  font-style: normal;
  background: var(--grad-brand-2);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
body.idc .auth-hero > p { font-size: 15px; color: var(--tx-3); max-width: 46ch; line-height: 1.7; }

body.idc .auth-feats { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
body.idc .auth-feat {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: var(--r-pill);
  background: var(--glass-1); box-shadow: inset 0 0 0 1px var(--line-1);
  font-size: 12.5px; color: var(--tx-2);
}
body.idc .auth-feat .ico { width: 14px; height: 14px; color: var(--ok); }

body.idc .auth-metrics {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px; margin-top: 36px; max-width: 520px;
}
body.idc .auth-metric {
  padding: 16px; border-radius: 14px; background: var(--glass-1);
  border: 1px solid var(--line-1); box-shadow: var(--hair-top);
}
body.idc .auth-metric b {
  display: block; font-family: var(--font-mono); font-size: 22px;
  font-weight: 700; color: #fff; font-variant-numeric: tabular-nums;
  letter-spacing: -.02em;
}
body.idc .auth-metric span { font-size: 11.5px; color: var(--tx-3); }

body.idc .auth-panel {
  background: var(--glass-2); border: 1px solid var(--line-1);
  border-radius: 22px; padding: 36px 34px;
  box-shadow: 0 40px 90px -36px rgba(0, 0, 0, .95), var(--hair-top);
  -webkit-backdrop-filter: blur(24px) saturate(160%); backdrop-filter: blur(24px) saturate(160%);
  max-width: 460px; width: 100%; justify-self: end;
}
body.idc .auth-panel__head { margin-bottom: 26px; }
body.idc .auth-panel__head h2 { font-size: 23px !important; margin: 0 0 6px !important; letter-spacing: -.022em; }
body.idc .auth-panel__head p { margin: 0; font-size: 13px; color: var(--tx-3); }
body.idc .auth-panel .control-group { margin-bottom: 15px !important; }
body.idc .auth-panel .form-actions { margin-top: 22px; }
body.idc .auth-panel .btn--primary { width: 100%; height: 46px; font-size: 14.5px !important; }
body.idc .auth-foot {
  margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line-1);
  text-align: center; font-size: 13px; color: var(--tx-3);
}
body.idc .auth-foot a { font-weight: 550; }

@media (max-width: 1020px) {
  body.idc .auth-wrap { grid-template-columns: 1fr; }
  body.idc .auth-hero { padding: 36px 0 0; }
  body.idc .auth-hero h1 { font-size: 34px !important; }
  body.idc .auth-metrics { grid-template-columns: repeat(3, 1fr); }
  body.idc .auth-panel { justify-self: stretch; max-width: 100%; margin-top: 28px; }
}
@media (max-width: 560px) {
  body.idc .auth-panel { padding: 26px 20px; }
  body.idc .auth-metrics { grid-template-columns: 1fr; }
}

/* ---------------------------------------------------- 15. 产品 / 套餐卡片 */
body.idc .plan-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px; margin-bottom: 20px;
}
body.idc .plan {
  position: relative; display: flex; flex-direction: column;
  background: var(--glass-1); border: 1px solid var(--line-1);
  border-radius: var(--r-card); padding: 22px;
  box-shadow: var(--hair-top); transition: all .24s var(--ease);
  overflow: hidden;
}
body.idc .plan::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(34, 211, 238, .5), transparent);
  opacity: 0; transition: opacity .24s var(--ease);
}
body.idc .plan:hover {
  transform: translateY(-4px); border-color: rgba(34, 211, 238, .32);
  background: var(--glass-2);
  box-shadow: var(--hair-top), 0 30px 66px -30px rgba(0, 0, 0, .95), 0 0 0 1px rgba(34, 211, 238, .1);
}
body.idc .plan:hover::before { opacity: 1; }
body.idc .plan__head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 12px;
  margin-bottom: 6px;
}
body.idc .plan__name {
  margin: 0 !important; font-size: 17px !important; font-weight: 600 !important;
  letter-spacing: -.015em; color: #fff !important;
}
body.idc .plan__stock {
  display: inline-flex; align-items: center; gap: 6px; flex: 0 0 auto;
  font-family: var(--font-mono); font-size: 11px; font-weight: 600;
  color: var(--ok); background: var(--ok-bg);
  box-shadow: inset 0 0 0 1px var(--ok-ln);
  padding: 3px 9px; border-radius: var(--r-pill);
}
body.idc .plan__stock.is-low { color: var(--warn); background: var(--warn-bg); box-shadow: inset 0 0 0 1px var(--warn-ln); }
body.idc .plan__stock.is-out { color: var(--err); background: var(--err-bg); box-shadow: inset 0 0 0 1px var(--err-ln); }
body.idc .plan__desc {
  font-size: 12.5px; color: var(--tx-3); line-height: 1.65; margin: 4px 0 16px;
  border: 0; padding: 0;
}
body.idc .plan__desc img { max-width: 100%; border-radius: 8px; }
body.idc .plan__desc table { width: 100%; font-size: 12.5px; }
body.idc .plan__desc td { border: 0 !important; padding: 3px 0 !important; color: var(--tx-3); }
body.idc .plan__specs {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px; background: var(--line-1); border-radius: 12px;
  overflow: hidden; margin-bottom: 18px;
}
body.idc .plan__spec {
  background: rgba(0, 0, 0, .26); padding: 12px 10px; text-align: center;
}
body.idc .plan__spec b {
  display: block; font-family: var(--font-mono); font-size: 15px;
  font-weight: 700; color: #fff; font-variant-numeric: tabular-nums;
  letter-spacing: -.02em;
}
body.idc .plan__spec span { font-size: 10.5px; color: var(--tx-4); letter-spacing: .02em; }
body.idc .plan__foot {
  margin-top: auto; display: flex; align-items: flex-end;
  justify-content: space-between; gap: 14px; flex-wrap: wrap;
}
body.idc .price { display: flex; align-items: baseline; gap: 3px; line-height: 1; }
body.idc .price__cur { font-size: 15px; font-weight: 600; color: var(--cy); }
body.idc .price__val {
  font-family: var(--font-mono); font-size: 30px; font-weight: 700;
  color: #fff; font-variant-numeric: tabular-nums; letter-spacing: -.03em;
}
body.idc .price__per { font-size: 12px; color: var(--tx-4); margin-left: 3px; }
body.idc .price--free .price__val { font-size: 22px; color: var(--ok); }

/* 旧 buy.tpl 用的表格行卡片 */
body.idc .widget table tr td .stat { display: inline-flex; vertical-align: middle; width: auto; }

/* ---------------------------------------------------- 16. 购物车 / 结算 */
body.idc .steps {
  display: flex; align-items: center; gap: 0; margin-bottom: 26px; flex-wrap: wrap;
}
body.idc .step { display: flex; align-items: center; gap: 10px; }
body.idc .step__no {
  width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--font-mono); font-size: 12px; font-weight: 700;
  background: var(--glass-2); color: var(--tx-4);
  box-shadow: inset 0 0 0 1px var(--line-2);
}
body.idc .step__tx { font-size: 13px; color: var(--tx-4); font-weight: 550; white-space: nowrap; }
body.idc .step.is-done .step__no { background: var(--ok-bg); color: var(--ok); box-shadow: inset 0 0 0 1px var(--ok-ln); }
body.idc .step.is-done .step__tx { color: var(--tx-2); }
body.idc .step.is-active .step__no { background: var(--grad-brand); color: #04131F; box-shadow: 0 6px 18px -6px rgba(34, 211, 238, .7); }
body.idc .step.is-active .step__tx { color: #fff; }
body.idc .step__line {
  flex: 1 1 40px; min-width: 24px; height: 1px; margin: 0 14px;
  background: var(--line-2); position: relative;
}
body.idc .step.is-done .step__line { background: linear-gradient(90deg, rgba(52, 211, 153, .5), var(--line-2)); }

body.idc .order-summary {
  background: var(--glass-2); border: 1px solid var(--line-1);
  border-radius: var(--r-card); padding: 20px; box-shadow: var(--hair-top);
}
body.idc .order-total {
  display: flex; align-items: baseline; justify-content: space-between;
  padding-top: 14px; margin-top: 6px; border-top: 1px solid var(--line-2);
}
body.idc .order-total b {
  font-family: var(--font-mono); font-size: 26px; font-weight: 700;
  color: var(--cy-2); font-variant-numeric: tabular-nums;
}

/* 选项组（radio 卡片） */
body.idc .opt-list { display: flex; flex-direction: column; gap: 10px; }
body.idc .opt {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 14px 16px; border-radius: var(--r-btn);
  background: var(--glass-1); border: 1px solid var(--line-1);
  cursor: pointer; transition: all .18s var(--ease);
}
body.idc .opt:hover { background: var(--glass-2); border-color: var(--line-2); }
body.idc .opt input { margin-top: 2px; }
body.idc .opt__body { flex: 1 1 auto; min-width: 0; }
body.idc .opt__title { font-size: 13.5px; color: var(--tx-1); font-weight: 550; }
body.idc .opt__sub { font-size: 12px; color: var(--tx-3); margin-top: 3px; }
body.idc .opt:has(input:checked) {
  background: var(--grad-soft); border-color: rgba(34, 211, 238, .42);
  box-shadow: 0 0 0 1px rgba(34, 211, 238, .16), 0 10px 30px -16px rgba(34, 211, 238, .5);
}

/* 域名配置行 */
body.idc .domain-line {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  font-family: var(--font-mono); font-size: 13px; color: var(--tx-2);
}
body.idc .domain-line input { max-width: 220px; }
body.idc .domain-line input.sld { max-width: 260px; }
body.idc .domain-line input.tld { max-width: 110px; }
body.idc .domain-line select { max-width: 170px; }
body.idc .domain-preview {
  font-family: var(--font-mono); font-size: 12px; color: var(--tx-4);
  padding: 8px 12px; border-radius: 8px; background: rgba(0, 0, 0, .28);
  box-shadow: inset 0 0 0 1px var(--line-1); margin-top: 12px;
}

/* ---------------------------------------------------------- 17. 服务器状态 */
body.idc .metric {
  display: flex; flex-direction: column; gap: 6px; min-width: 78px;
}
body.idc .metric__tx {
  font-family: var(--font-mono); font-size: 12.5px; font-weight: 600;
  color: var(--tx-1); font-variant-numeric: tabular-nums;
}
body.idc .metric__bar {
  height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .09);
  overflow: hidden; position: relative; width: 68px;
}
body.idc .metric__bar i {
  position: absolute; inset: 0 auto 0 0; border-radius: 4px;
  background: var(--grad-brand); box-shadow: 0 0 10px rgba(34, 211, 238, .6);
}
body.idc .metric__bar i.warn { background: linear-gradient(90deg, #F59E0B, #FBBF24); box-shadow: 0 0 10px rgba(251, 191, 36, .6); }
body.idc .metric__bar i.err { background: linear-gradient(90deg, #EF4444, #F87171); box-shadow: 0 0 10px rgba(248, 113, 113, .6); }
body.idc .svc {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--font-mono); font-size: 11.5px; font-weight: 600;
  padding: 3px 10px; border-radius: var(--r-pill);
  background: var(--ok-bg); color: var(--ok); box-shadow: inset 0 0 0 1px var(--ok-ln);
}
body.idc .svc.is-down { background: var(--err-bg); color: var(--err); box-shadow: inset 0 0 0 1px var(--err-ln); }
body.idc .svc.is-wait { background: var(--mute-bg); color: var(--tx-3); box-shadow: inset 0 0 0 1px var(--mute-ln); }
body.idc .spinner {
  width: 13px; height: 13px; border-radius: 50%; display: inline-block;
  border: 2px solid rgba(34, 211, 238, .25); border-top-color: var(--cy);
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* 状态总览三格 */
body.idc .status-strip {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px; margin-bottom: 22px;
}
body.idc .status-tile {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 18px; border-radius: var(--r-card);
  background: var(--glass-1); border: 1px solid var(--line-1);
  box-shadow: var(--hair-top); transition: all .2s var(--ease);
  color: var(--tx-2) !important;
}
body.idc .status-tile:hover { transform: translateY(-2px); background: var(--glass-2); border-color: var(--line-2); }
body.idc .status-tile__ico {
  width: 40px; height: 40px; flex: 0 0 40px; border-radius: 12px;
  display: grid; place-items: center; background: var(--glass-3);
}
body.idc .status-tile__ico svg { width: 19px; height: 19px; }
body.idc .status-tile b {
  display: block; font-family: var(--font-mono); font-size: 20px;
  font-weight: 700; color: #fff; line-height: 1.15;
  font-variant-numeric: tabular-nums;
}
body.idc .status-tile span { font-size: 11.5px; color: var(--tx-3); }
body.idc .status-tile--err .status-tile__ico { background: var(--err-bg); color: var(--err); }
body.idc .status-tile--err b { color: var(--err); }
body.idc .status-tile--info .status-tile__ico { background: var(--info-bg); color: var(--info); }
body.idc .status-tile--ok .status-tile__ico { background: var(--ok-bg); color: var(--ok); }
body.idc .status-tile--ok b { color: var(--ok); }
body.idc .status-tile--plan .status-tile__ico { background: rgba(139, 92, 246, .14); color: #C4B5FD; }

/* 故障公告条目 */
body.idc .issue {
  border-left: 2px solid var(--warn-ln); background: var(--glass-1);
  border-radius: 0 var(--r-card) var(--r-card) 0;
  padding: 18px 20px; margin-bottom: 14px;
  box-shadow: var(--hair-top);
}
body.idc .issue--ok { border-left-color: var(--ok-ln); }
body.idc .issue--err { border-left-color: var(--err-ln); }
body.idc .issue__head {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 8px;
}
body.idc .issue__head h4 { margin: 0 !important; font-size: 15px !important; }
body.idc .issue__meta {
  display: flex; gap: 16px; flex-wrap: wrap; margin-top: 12px;
  font-family: var(--font-mono); font-size: 11.5px; color: var(--tx-4);
}

/* -------------------------------------------------------- 18. 工单会话流 */
body.idc .ticket-head {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 16px; flex-wrap: wrap; padding: 18px 20px;
  border-bottom: 1px solid var(--line-1); background: rgba(0, 0, 0, .18);
}
body.idc .ticket-head h3 { margin: 0 0 6px !important; font-size: 16px !important; }
body.idc .ticket-head .meta {
  font-family: var(--font-mono); font-size: 11.5px; color: var(--tx-4);
  display: flex; gap: 14px; flex-wrap: wrap;
}
body.idc .thread { padding: 20px; display: flex; flex-direction: column; gap: 16px; }
body.idc .msg { display: flex; gap: 12px; max-width: 88%; }
body.idc .msg--me { margin-left: auto; flex-direction: row-reverse; }
body.idc .msg__av {
  width: 34px; height: 34px; flex: 0 0 34px; border-radius: 11px;
  display: grid; place-items: center; font-family: var(--font-mono);
  font-size: 12px; font-weight: 700;
}
body.idc .msg--staff .msg__av { background: var(--grad-brand); color: #04131F; }
body.idc .msg--me .msg__av { background: var(--glass-3); color: var(--tx-2); box-shadow: inset 0 0 0 1px var(--line-2); }
body.idc .msg__body { min-width: 0; }
body.idc .msg__meta {
  display: flex; align-items: center; gap: 9px; margin-bottom: 6px;
  font-size: 11.5px; color: var(--tx-4);
}
body.idc .msg--me .msg__meta { justify-content: flex-end; }
body.idc .msg__meta b { color: var(--tx-2); font-weight: 600; font-size: 12.5px; }
body.idc .msg__bubble {
  padding: 13px 16px; border-radius: 4px 14px 14px 14px;
  background: var(--glass-2); border: 1px solid var(--line-1);
  font-size: 13.5px; line-height: 1.7; color: var(--tx-2);
  word-break: break-word;
}
body.idc .msg__bubble p:last-child { margin-bottom: 0; }
body.idc .msg--me .msg__bubble {
  border-radius: 14px 4px 14px 14px;
  background: rgba(34, 211, 238, .10); border-color: rgba(34, 211, 238, .24);
}
body.idc .msg--staff .msg__bubble { background: var(--glass-2); }
body.idc .reply-box {
  padding: 20px; border-top: 1px solid var(--line-1); background: rgba(0, 0, 0, .16);
}
body.idc .reply-box textarea { width: 100%; }

/* ------------------------------------------------------ 19. 帮助 / FAQ 手风琴 */
body.idc .qa {
  background: var(--glass-1); border: 1px solid var(--line-1);
  border-radius: var(--r-card); margin-bottom: 10px !important;
  box-shadow: var(--hair-top); overflow: hidden; transition: all .2s var(--ease);
}
body.idc .qa:hover { border-color: var(--line-2); }
body.idc .qa h4 {
  margin: 0 !important; font-size: 14px !important; font-weight: 550 !important;
}
body.idc .qa h4 a {
  display: flex; align-items: center; gap: 11px;
  padding: 16px 18px; color: var(--tx-1) !important;
}
body.idc .qa h4 a::before {
  content: ""; width: 20px; height: 20px; flex: 0 0 20px; border-radius: 6px;
  background: var(--glass-3) url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2322D3EE' stroke-width='3' stroke-linecap='round'%3E%3Cline x1='12' y1='5' x2='12' y2='19'/%3E%3Cline x1='5' y1='12' x2='19' y2='12'/%3E%3C/svg%3E") center/12px no-repeat;
  box-shadow: inset 0 0 0 1px var(--line-2);
}
body.idc .qa.is-open h4 a::before {
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2322D3EE' stroke-width='3' stroke-linecap='round'%3E%3Cline x1='5' y1='12' x2='19' y2='12'/%3E%3C/svg%3E");
  background-color: rgba(34, 211, 238, .14);
}
body.idc .qa p {
  margin: 0 !important; padding: 0 18px 18px 49px;
  font-size: 13px; color: var(--tx-2); line-height: 1.75;
}

/* --------------------------------------------------------- 20. 公告 / 文章 */
body.idc .article { padding: 4px 2px; }
body.idc .article__head {
  padding-bottom: 18px; margin-bottom: 22px; border-bottom: 1px solid var(--line-1);
}
body.idc .article__head h1 { font-size: 24px !important; margin: 0 0 10px !important; }
body.idc .article__meta {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  font-family: var(--font-mono); font-size: 12px; color: var(--tx-4);
}
body.idc .article__meta span { display: inline-flex; align-items: center; gap: 6px; }
body.idc .article__meta .ico { width: 13px; height: 13px; }
body.idc .article__body { font-size: 14px; line-height: 1.85; color: var(--tx-2); }
body.idc .article__body img { max-width: 100%; height: auto; border-radius: 12px; border: 1px solid var(--line-1); }
body.idc .article__body h1, body.idc .article__body h2, body.idc .article__body h3 { margin-top: 1.4em; }
body.idc .article__body table { width: 100%; }
body.idc .article__body ul, body.idc .article__body ol { padding-left: 22px; color: var(--tx-2); }

/* 公告列表条目 */
body.idc .news-list { list-style: none; margin: 0; padding: 0; }
body.idc .news-list li { border-bottom: 1px solid var(--line-1); }
body.idc .news-list li:last-child { border-bottom: 0; }
body.idc .news-list a {
  display: flex; align-items: center; gap: 14px;
  padding: 15px 20px; color: var(--tx-1) !important;
  transition: all .16s var(--ease);
}
body.idc .news-list a:hover { background: rgba(255, 255, 255, .035); padding-left: 24px; }
body.idc .news-list .news-ico {
  width: 30px; height: 30px; flex: 0 0 30px; border-radius: 9px;
  display: grid; place-items: center;
  background: var(--glass-3); color: var(--cy);
}
body.idc .news-list .news-ico svg { width: 15px; height: 15px; }
body.idc .news-list .news-tx { flex: 1 1 auto; min-width: 0; font-size: 13.5px; }
body.idc .news-list time {
  flex: 0 0 auto; font-family: var(--font-mono);
  font-size: 11.5px; color: var(--tx-4);
}
body.idc .news-list .ico-arrow { color: var(--tx-4); }
body.idc .news-list .ico-arrow svg { width: 15px; height: 15px; }
body.idc .news-list a:hover .ico-arrow { color: var(--cy); }

/* ------------------------------------------------------------ 21. 账单页 */
body.idc .invoice-shell {
  display: flex; justify-content: center; padding: 34px 0 60px;
}
body.idc .invoice-paper {
  width: 100%; max-width: 780px;
  background: #FFFFFF; color: #1E293B;
  border-radius: 18px; overflow: hidden;
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .9);
}
body.idc .invoice-paper__top {
  padding: 30px 38px; color: #fff;
  background: linear-gradient(135deg, #0F172A 0%, #16243F 55%, #0B3A4A 100%);
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 20px; flex-wrap: wrap;
}
body.idc .invoice-paper__top h1 { color: #fff !important; font-size: 22px !important; margin: 0 0 6px !important; }
body.idc .invoice-paper__top p { color: rgba(255, 255, 255, .68); font-size: 12.5px; margin: 0; }
body.idc .invoice-paper__no {
  font-family: var(--font-mono); font-size: 12px; text-align: right;
  color: rgba(255, 255, 255, .8);
}
body.idc .invoice-paper__no b { display: block; font-size: 18px; color: #67E8F9; letter-spacing: .02em; }
body.idc .invoice-paper__body { padding: 32px 38px; }
body.idc .invoice-paper__body h4,
body.idc .invoice-paper__body h3 { color: #0F172A !important; }
body.idc .invoice-paper__body p { color: #475569; }
body.idc .invoice-paper__body a { color: #0E7490; font-weight: 600; }
body.idc .invoice-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px; margin-bottom: 28px;
}
body.idc .invoice-field label {
  display: block; font-size: 10.5px; font-weight: 700; letter-spacing: .09em;
  text-transform: uppercase; color: #94A3B8; margin-bottom: 5px;
}
body.idc .invoice-field div { font-size: 13.5px; color: #1E293B; }
body.idc .invoice-lines { width: 100%; border-collapse: collapse; margin-bottom: 24px; }
body.idc .invoice-lines th {
  text-align: left; font-size: 10.5px; font-weight: 700; letter-spacing: .09em;
  text-transform: uppercase; color: #94A3B8;
  padding: 0 0 10px; border-bottom: 1px solid #E2E8F0;
}
body.idc .invoice-lines td {
  padding: 14px 0; border-bottom: 1px solid #F1F5F9;
  font-size: 13.5px; color: #334155; vertical-align: top;
}
body.idc .invoice-lines td.mono { font-family: var(--font-mono); }
body.idc .invoice-lines td:last-child, body.idc .invoice-lines th:last-child { text-align: right; }
body.idc .invoice-sum {
  margin-left: auto; max-width: 300px; padding-top: 8px;
}
body.idc .invoice-sum__row {
  display: flex; justify-content: space-between; gap: 20px;
  padding: 7px 0; font-size: 13.5px; color: #475569;
}
body.idc .invoice-sum__row.total {
  margin-top: 8px; padding-top: 14px; border-top: 2px solid #0F172A;
  font-size: 15px; font-weight: 700; color: #0F172A;
}
body.idc .invoice-sum__row.total b {
  font-family: var(--font-mono); font-size: 22px; color: #0E7490;
}

/* 账单是白纸背景，必须压掉全局深色主题的 strong/b/.strong/.dim 近白色 */
body.idc .invoice-paper strong,
body.idc .invoice-paper b,
body.idc .invoice-paper .strong { color: #0F172A !important; }
body.idc .invoice-paper .dim,
body.idc .invoice-paper .muted { color: #94A3B8 !important; }
/* 上面两条会波及深色渐变抬头与合计高亮，这里恢复 */
body.idc .invoice-paper__no b { color: #67E8F9 !important; }
body.idc .invoice-paper .invoice-sum__row.total b { color: #0E7490 !important; }

/* 白纸上的表单控件改为浅色描边 */
body.idc .invoice-paper input[type="text"],
body.idc .invoice-paper input[type="number"],
body.idc .invoice-paper input[type="password"],
body.idc .invoice-paper select,
body.idc .invoice-paper textarea {
  color: #0F172A !important; background: #FFFFFF !important;
  border: 1px solid #CBD5E1 !important; height: 40px; line-height: 38px !important;
}
body.idc .invoice-paper input:focus,
body.idc .invoice-paper select:focus,
body.idc .invoice-paper textarea:focus {
  border-color: #0E7490 !important;
  box-shadow: 0 0 0 3px rgba(14, 116, 144, .14) !important;
}
/* 白纸上的幽灵按钮（← 回到客户中心）改为浅色描边 */
body.idc .invoice-paper .btn.btn--ghost {
  background: #FFFFFF !important; color: #0F172A !important;
  border-color: #CBD5E1 !important;
}
body.idc .invoice-paper .btn.btn--ghost:hover {
  background: #F1F5F9 !important; color: #0E7490 !important;
  border-color: #94A3B8 !important;
}
body.idc .invoice-paper__foot {
  padding: 22px 38px; background: #F8FAFC; border-top: 1px solid #E2E8F0;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap; font-size: 12px; color: #94A3B8;
}
body.idc .pay-cta {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 30px; border-radius: 12px; cursor: pointer;
  background: linear-gradient(135deg, #06B6D4, #0E7490);
  color: #fff !important; font-size: 14.5px; font-weight: 650;
  box-shadow: 0 12px 30px -10px rgba(6, 182, 212, .7);
  transition: all .2s var(--ease); border: 0;
}
body.idc .pay-cta:hover { filter: brightness(1.08); transform: translateY(-1px); color: #fff !important; }

/* ------------------------------------------------------------ 22. 页脚 */
body.idc .site-foot {
  position: relative; z-index: 1;
  border-top: 1px solid var(--line-1);
  background: rgba(4, 7, 14, .6);
  padding: 30px 0;
  margin-top: 40px;
}
body.idc .site-foot__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 18px; flex-wrap: wrap;
}
body.idc .site-foot p { margin: 0; font-size: 12.5px; color: var(--tx-4); }
body.idc .site-foot__links { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
body.idc .site-foot__links a { font-size: 12.5px; color: var(--tx-3); }
body.idc .site-foot__links a:hover { color: var(--cy); }
body.idc .site-foot__status {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--font-mono); font-size: 11.5px; color: var(--ok);
}

/* 旧 footer 标签兜底 */
body.idc footer {
  border-top: 1px solid var(--line-1); margin-top: 40px; padding: 26px 0;
  color: var(--tx-4); font-size: 12.5px;
}
body.idc footer p { margin: 0; color: var(--tx-4); }

/* ------------------------------------------------------- 23. 工具类 / 图标 */
body.idc .ico {
  width: 18px; height: 18px; flex: 0 0 auto;
  fill: none; stroke: currentColor; stroke-width: 1.75;
  stroke-linecap: round; stroke-linejoin: round;
  vertical-align: middle;
}
body.idc .ico--sm { width: 14px; height: 14px; }
body.idc .ico--lg { width: 22px; height: 22px; }
body.idc svg.ico-fill { fill: currentColor; stroke: none; }

body.idc .muted { color: var(--tx-3) !important; }
body.idc .dim { color: var(--tx-4) !important; }
body.idc .strong { color: var(--tx-1) !important; }
body.idc .mono { font-family: var(--font-mono) !important; font-variant-numeric: tabular-nums; }
body.idc .tr { text-align: right !important; }
body.idc .tc { text-align: center !important; }
body.idc .nowrap { white-space: nowrap; }
body.idc .mt0 { margin-top: 0 !important; }
body.idc .mt8 { margin-top: 8px !important; }
body.idc .mt16 { margin-top: 16px !important; }
body.idc .mt24 { margin-top: 24px !important; }
body.idc .mb0 { margin-bottom: 0 !important; }
body.idc .mb16 { margin-bottom: 16px !important; }
body.idc .mb24 { margin-bottom: 24px !important; }
body.idc .flex { display: flex; align-items: center; gap: 10px; }
body.idc .flex-wrap { flex-wrap: wrap; }
body.idc .between { justify-content: space-between; }
body.idc .grow { flex: 1 1 auto; min-width: 0; }
body.idc .grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
body.idc .grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
body.idc .grid4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
body.idc .span-all { grid-column: 1 / -1; }
@media (max-width: 940px) {
  body.idc .grid3, body.idc .grid4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  body.idc .grid2, body.idc .grid3, body.idc .grid4 { grid-template-columns: 1fr; }
  body.idc .status-strip { grid-template-columns: 1fr; }
}
body.idc .pull-right { float: right !important; }
body.idc .pull-left { float: left !important; }
body.idc .hide { display: none !important; }
body.idc .text-info { color: var(--info) !important; }
body.idc .text-success { color: var(--ok) !important; }
body.idc .text-warning { color: var(--warn) !important; }
body.idc .text-error { color: var(--err) !important; }

/* toastr 提示 */
body.idc #toast-container > div {
  border-radius: 12px; box-shadow: var(--sh-3) !important; opacity: 1 !important;
  background-position: 15px center; padding: 14px 18px 14px 48px;
  border: 1px solid var(--line-2); font-size: 13px;
}
body.idc #toast-container > .toast-success { background-color: #0C2A24; border-color: var(--ok-ln); }
body.idc #toast-container > .toast-error { background-color: #2A1216; border-color: var(--err-ln); }
body.idc #toast-container > .toast-info { background-color: #0D1D33; border-color: var(--info-ln); }
body.idc #toast-container > .toast-warning { background-color: #2A2210; border-color: var(--warn-ln); }

/* fullcalendar 深色化 */
body.idc .fc { color: var(--tx-2); }
body.idc .fc-header-title h2 { font-size: 16px !important; }
body.idc .fc-widget-header, body.idc .fc-widget-content { border-color: var(--line-1) !important; }
body.idc .fc-border-separate th, body.idc .fc-border-separate td { border-color: var(--line-1) !important; }
body.idc .fc-day-number { color: var(--tx-3); font-size: 12px; }
body.idc .fc-button { background: var(--glass-2) !important; border-color: var(--line-1) !important; color: var(--tx-1) !important; }

/* ------------------------------------------------------ 25. 插件输出容器 */
/* StarFishCloud 插件普遍输出 Bootstrap 浅色组件（白底深字），直接丢进深色主题会变成
   白底白字。.plug-panel 把插件输出隔离在一张"浅色纸张"上，与账单页同一设计语言。 */
body.idc .plug-panel {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 14px;
  padding: 18px 20px;
  margin: 16px 0;
  color: #1E293B;
  font-size: 13.5px;
  line-height: 1.6;
  overflow: hidden;
}
body.idc .plug-panel:empty { display: none; }
/* 还原浅色环境下的文字可读性（用 !important 压过主题全局色） */
body.idc .plug-panel h1, body.idc .plug-panel h2, body.idc .plug-panel h3,
body.idc .plug-panel h4, body.idc .plug-panel h5, body.idc .plug-panel h6,
body.idc .plug-panel p, body.idc .plug-panel span, body.idc .plug-panel li,
body.idc .plug-panel label, body.idc .plug-panel strong, body.idc .plug-panel b,
body.idc .plug-panel small, body.idc .plug-panel dt, body.idc .plug-panel dd {
  color: #1E293B !important;
}
body.idc .plug-panel div, body.idc .plug-panel td, body.idc .plug-panel th {
  color: #334155;
}
body.idc .plug-panel a { color: #0369A1 !important; }
body.idc .plug-panel a:hover { color: #075985 !important; }
body.idc .plug-panel .muted, body.idc .plug-panel .dim,
body.idc .plug-panel .text-muted { color: #64748B !important; }
body.idc .plug-panel .text-error, body.idc .plug-panel .text-danger { color: #B91C1C !important; }
body.idc .plug-panel .text-success { color: #15803D !important; }
body.idc .plug-panel .text-warning { color: #B45309 !important; }
/* 表格还原浅色 */
body.idc .plug-panel table { width: 100%; border-collapse: collapse; margin-bottom: 8px; }
body.idc .plug-panel table th, body.idc .plug-panel table td {
  border: 0 !important; border-bottom: 1px solid #E2E8F0 !important;
  background: none !important; padding: 9px 10px !important; text-align: left;
}
body.idc .plug-panel table th { color: #64748B !important; font-weight: 600; font-size: 12px; }
body.idc .plug-panel table tr:last-child td { border-bottom: 0 !important; }
body.idc .plug-panel table tbody tr:nth-child(even) td { background: #F8FAFC !important; }
/* 表单还原浅色 */
body.idc .plug-panel input[type="text"], body.idc .plug-panel input[type="password"],
body.idc .plug-panel input[type="number"], body.idc .plug-panel input[type="email"],
body.idc .plug-panel select, body.idc .plug-panel textarea {
  background: #FFFFFF !important; color: #1E293B !important;
  border: 1px solid #CBD5E1 !important; border-radius: 8px;
  padding: 8px 12px; box-shadow: none !important;
}
body.idc .plug-panel input:focus, body.idc .plug-panel select:focus, body.idc .plug-panel textarea:focus {
  border-color: #0EA5E9 !important;
  box-shadow: 0 0 0 3px rgba(14, 165, 233, .18) !important; outline: none;
}
body.idc .plug-panel input::placeholder { color: #94A3B8; }
/* Bootstrap 按钮本来就是浅色系组件，保留其本色，仅统一圆角 */
body.idc .plug-panel .btn { border-radius: 8px; }
body.idc .plug-panel .btn-primary {
  background: linear-gradient(135deg, #0EA5E9, #2563EB) !important;
  border-color: transparent !important; color: #FFFFFF !important;
}
body.idc .plug-panel .btn-inverse {
  background: #1E293B !important; color: #F1F5F9 !important; border-color: #1E293B !important;
}
/* radio / checkbox 行 */
body.idc .plug-panel label { display: inline-block; margin: 4px 0; }
body.idc .plug-panel .radio, body.idc .plug-panel .checkbox { display: block; }

/* ------------------------------------------------------ 24. 动效 & 响应式 */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}
body.idc .anim { animation: fade-up .5s var(--ease) both; }
body.idc .anim-1 { animation-delay: .04s; }
body.idc .anim-2 { animation-delay: .08s; }
body.idc .anim-3 { animation-delay: .12s; }
body.idc .anim-4 { animation-delay: .16s; }
@media (prefers-reduced-motion: reduce) {
  body.idc *, body.idc *::before, body.idc *::after {
    animation-duration: .001ms !important; animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}

/* —— 移动端抽屉导航 ——
   注意：必须放在 .mainnav 桌面基础规则之后（同特异性靠源码顺序取胜） */
@media (max-width: 1080px) {
  body.idc .nav-toggle { display: flex; }
  body.idc .mainnav {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0; z-index: 40;
    flex-direction: column; gap: 4px;
    padding: 12px 16px 16px;
    background: rgba(7, 12, 24, .96);
    -webkit-backdrop-filter: blur(22px) saturate(170%);
    backdrop-filter: blur(22px) saturate(170%);
    border-bottom: 1px solid var(--line-1);
    box-shadow: 0 30px 60px -24px rgba(0, 0, 0, .8);
  }
  body.idc .mainnav.is-open { display: flex; }
  body.idc .mainnav__item {
    width: 100%; padding: 13px 14px; border-radius: 10px;
    font-size: 14.5px;
  }
  body.idc .mainnav__item .ico { width: 18px; height: 18px; }
}

/* —— 620px 以下移动端细节 ——（置于所有基础规则之后，确保覆盖生效） */
@media (max-width: 620px) {
  body.idc .container { padding: 0 12px; }
  body.idc .brand__text i { display: none; }
  body.idc .brand__text b { font-size: 15px; }
  body.idc .userchip__meta { display: none; }
  body.idc .userchip { padding: 5px; }
  body.idc .topbar__right { gap: 7px; }
  body.idc .topbar__ico, body.idc .nav-toggle { width: 32px; height: 32px; flex-basis: 32px; }
  body.idc .lang-form { display: none; } /* 语言切换低频，为顶栏按钮让位（可在页脚或桌面端操作） */
  body.idc .btn { padding: 0 13px; font-size: 13px; }
  body.idc .btn--sm { height: 30px; }
  body.idc .page-title { font-size: 20px; }
  body.idc .page-actions .btn--ghost { padding: 0 11px; }
  body.idc .table-panel { overflow-x: auto; }
  body.idc .table-panel .table, body.idc .table-scroll .table { min-width: 560px; }
  body.idc .stat.active { padding: 16px 18px; }
  body.idc .stat.active h2 { font-size: 26px; }
  body.idc .card { padding: 18px 16px; }
  body.idc .modal { width: 92% !important; margin-left: -46% !important; top: 8%; }
  body.idc .site-foot__links { flex-wrap: wrap; gap: 10px 14px; }
}

/* 表格横向滚动包裹层 */
body.idc .table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
body.idc .table-scroll .table { min-width: 660px; }

/* 账单页移动端：双列信息收成单列，纸张内边距收窄 */
@media (max-width: 620px) {
  body.idc .invoice-shell { padding: 16px 10px 40px; }
  body.idc .invoice-paper { border-radius: 14px; }
  body.idc .invoice-grid { grid-template-columns: 1fr; gap: 14px; }
  body.idc .invoice-lines th, body.idc .invoice-lines td { padding: 10px 10px !important; }
  body.idc .pay-cta { flex-direction: column; align-items: stretch; gap: 10px; }
  body.idc .pay-cta .btn { width: 100%; justify-content: center; }
}

/* 打印：账单只留纸面 */
@media print {
  body.idc { background: #fff !important; }
  body.idc .ambient, body.idc .topbar, body.idc .site-foot { display: none !important; }
  body.idc .invoice-paper { box-shadow: none; max-width: 100%; border-radius: 0; }
  body.idc .no-print { display: none !important; }
}
