/* =========================================================
   用户中心 + 登录页
========================================================= */

/* —— 登录页 —— */
.login-page {
  min-height: 100vh;
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(520px, 1.15fr) minmax(480px, .85fr);
  overflow: hidden;
  background:
    radial-gradient(700px 520px at 80% 82%, rgba(61, 90, 254, .12), transparent 70%),
    linear-gradient(125deg, rgba(238, 242, 255, .9), rgba(246, 248, 252, .82) 56%, rgba(232, 238, 255, .9));
}
.login-page::before,
.login-page::after {
  content: "";
  position: absolute;
  pointer-events: none;
  z-index: -1;
}
.login-page::before {
  width: 560px;
  height: 560px;
  right: -230px;
  top: -250px;
  border-radius: 120px;
  background: linear-gradient(145deg, rgba(61, 90, 254, .12), rgba(6, 182, 212, .04));
  transform: rotate(30deg);
}
.login-page::after {
  width: 420px;
  height: 420px;
  left: 33%;
  bottom: -320px;
  border-radius: 90px;
  border: 1px solid rgba(61, 90, 254, .09);
  transform: rotate(45deg);
}

.login-showcase {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: min(100%, 900px);
  padding: 62px clamp(48px, 7vw, 132px);
}
.login-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: clamp(44px, 7vh, 78px);
}
.login-brand .iso-logo,
.login-card-brand .mini-logo {
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--grad-electric);
  font-family: var(--font-display);
  font-weight: 700;
  box-shadow: var(--shadow-brand);
}
.login-brand .iso-logo {
  width: 54px;
  height: 54px;
  border-radius: 15px;
  font-size: 23px;
}
.login-brand .meta { line-height: 1.3; }
.login-brand .meta .nm {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  color: var(--text-strong);
  letter-spacing: -.02em;
}
.login-brand .meta .sub {
  margin-top: 4px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .055em;
}
.login-hero { max-width: 670px; }
.login-kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  color: var(--brand-600);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .1em;
}
.login-kicker span {
  width: 34px;
  height: 4px;
  border-radius: 999px;
  background: var(--grad-electric);
}
.login-hero h1 {
  margin: 0;
  color: var(--text-strong);
  font-family: var(--font-display);
  font-size: clamp(42px, 4vw, 66px);
  line-height: 1.18;
  letter-spacing: -.055em;
}
.login-hero p {
  max-width: 580px;
  margin: 24px 0 0;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.9;
}

.delivery-flow {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(118px, 1fr));
  gap: 18px 20px;
  max-width: 760px;
  margin-top: clamp(46px, 7vh, 76px);
}
.flow-line {
  position: absolute;
  inset: 34px 11% 34px 11%;
  z-index: -1;
  border: 2px solid rgba(61, 90, 254, .3);
  border-left-color: rgba(6, 182, 212, .28);
  border-radius: 28px;
}
.flow-card {
  position: relative;
  min-height: 72px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 12px;
  border: 1px solid rgba(255,255,255,.9);
  border-radius: 16px;
  color: var(--text-body);
  background: rgba(255,255,255,.88);
  box-shadow: 0 10px 32px -18px rgba(11,18,48,.22);
  font-size: 13px;
  font-weight: 600;
  backdrop-filter: blur(12px);
}
.flow-no {
  position: absolute;
  top: 5px;
  right: 7px;
  color: var(--brand-400);
  font-family: var(--font-mono);
  font-size: 9px;
}
.flow-icon {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  color: var(--brand-600);
  background: rgba(61,90,254,.1);
}
.flow-icon svg { width: 18px; height: 18px; }
.flow-icon.cyan { color: #0891b2; background: rgba(6,182,212,.1); }
.flow-icon.purple { color: #7c3aed; background: rgba(124,58,237,.09); }
.flow-icon.orange { color: #ea580c; background: rgba(249,115,22,.1); }
.flow-icon.green { color: #059669; background: rgba(16,185,129,.1); }
.showcase-note {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 28px;
  color: var(--text-muted);
  font-size: 12.5px;
  letter-spacing: .05em;
}
.showcase-note svg { width: 15px; height: 15px; color: var(--brand-500); }

.login-panel {
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: 48px clamp(36px, 5vw, 92px);
}
.login-card {
  position: relative;
  width: 100%;
  max-width: 560px;
  padding: clamp(38px, 5vw, 66px);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.9);
  border-radius: 30px;
  background: rgba(255,255,255,.94);
  box-shadow: 0 38px 90px -35px rgba(35, 51, 122, .34);
  backdrop-filter: blur(18px);
}
.login-card::before {
  content: "";
  position: absolute;
  width: 180px;
  height: 180px;
  right: -95px;
  top: -95px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(61,90,254,.12), transparent 70%);
}
.login-card-brand {
  display: none;
  align-items: center;
  gap: 10px;
  margin-bottom: 34px;
  color: var(--text-strong);
  font-family: var(--font-display);
  font-weight: 700;
}
.login-card-brand .mini-logo { width: 34px; height: 34px; border-radius: 9px; }
.login-heading {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 38px;
}
.login-heading-icon {
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  color: var(--brand-600);
  background: linear-gradient(135deg, rgba(61,90,254,.12), rgba(6,182,212,.1));
}
.login-heading-icon svg { width: 23px; height: 23px; }
.login-title {
  margin: 0 0 7px;
  color: var(--text-strong);
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -.035em;
}
.login-sub { margin: 0; color: var(--text-muted); font-size: 13.5px; }
.login-form-row { gap: 9px; margin-bottom: 22px; }
.login-form-row label {
  color: var(--text-body);
  font-size: 13px;
  font-weight: 600;
}
.login-input-wrap { position: relative; }
.login-input-wrap > svg {
  position: absolute;
  left: 16px;
  top: 50%;
  width: 19px;
  height: 19px;
  color: var(--text-faint);
  transform: translateY(-50%);
  pointer-events: none;
}
.login-input-wrap .input {
  height: 56px;
  padding: 0 48px;
  border-color: #dce3f0;
  border-radius: 14px;
  background: #fbfcff;
  font-size: 14px;
}
.login-input-wrap .input::placeholder { color: #a1a9ba; }
.login-input-wrap:focus-within > svg { color: var(--brand-500); }
.password-toggle {
  position: absolute;
  right: 8px;
  top: 50%;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 10px;
  color: var(--text-faint);
  background: transparent;
  transform: translateY(-50%);
}
.password-toggle:hover { color: var(--brand-600); background: var(--brand-50); }
.password-toggle svg { grid-area: 1 / 1; width: 18px; height: 18px; }
.password-toggle .eye-closed { display: none; }
.password-toggle.is-visible .eye-open { display: none; }
.password-toggle.is-visible .eye-closed { display: block; }
.login-card .btn-primary {
  width: 100%;
  min-height: 56px;
  margin-top: 8px;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .16em;
}
.login-card .btn-primary svg { width: 17px; height: 17px; transition: transform .2s var(--ease); }
.login-card .btn-primary:hover svg { transform: translateX(3px); }
.login-error {
  display: none;
  margin: -20px 0 18px;
  padding: 10px 13px;
  border: 1px solid rgba(239,68,68,.14);
  border-radius: 10px;
  color: var(--danger);
  background: var(--danger-bg);
  font-size: 12.5px;
}
.login-error.show { display: block; }
.login-security {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin-top: 28px;
  color: var(--text-faint);
  font-size: 11.5px;
}
.login-security svg { width: 15px; height: 15px; color: var(--success); }
.login-tip {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px dashed var(--border-soft);
  color: var(--text-faint);
  font-family: var(--font-mono);
  font-size: 10.5px;
  text-align: center;
  letter-spacing: .035em;
}

@media (max-width: 1180px) {
  .login-page { grid-template-columns: minmax(460px, 1fr) minmax(440px, .9fr); }
  .login-showcase { padding-inline: 48px; }
  .delivery-flow { grid-template-columns: repeat(2, minmax(150px, 1fr)); max-width: 520px; }
  .flow-line { inset-inline: 16%; }
}

@media (max-width: 900px) {
  .login-page { display: block; min-height: 100vh; overflow: auto; }
  .login-showcase { display: none; }
  .login-panel { min-height: 100vh; padding: 32px 20px; }
  .login-card { max-width: 520px; padding: 42px; border-radius: 24px; }
  .login-card-brand { display: flex; }
}

@media (max-width: 520px) {
  .login-panel { padding: 16px; }
  .login-card { padding: 30px 22px 24px; border-radius: 20px; }
  .login-card-brand { margin-bottom: 28px; }
  .login-heading { align-items: flex-start; margin-bottom: 30px; }
  .login-heading-icon { width: 44px; height: 44px; flex-basis: 44px; border-radius: 13px; }
  .login-title { font-size: 25px; }
  .login-sub { line-height: 1.6; }
}

@media (max-height: 760px) and (min-width: 901px) {
  .login-showcase { padding-block: 34px; }
  .login-brand { margin-bottom: 36px; }
  .delivery-flow { margin-top: 38px; }
  .login-panel { padding-block: 28px; }
  .login-card { padding-block: 42px; }
  .login-heading { margin-bottom: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  .login-card .btn-primary svg { transition: none; }
}

/* —— 用户中心：软件卡片网格 —— */
.sw-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 18px;
}
.sw-card {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: 18px;
  padding: 22px;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  transition: transform .28s var(--ease), box-shadow .28s var(--ease), border-color .28s var(--ease);
  overflow: hidden;
}
.sw-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(420px 200px at -10% -20%, rgba(61,90,254,.08), transparent 60%);
  opacity: 0;
  transition: opacity .28s var(--ease);
  pointer-events: none;
}
.sw-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-brand);
  border-color: rgba(61,90,254,.28);
}
.sw-card:hover::before { opacity: 1; }
.sw-card-head { display: flex; align-items: flex-start; gap: 14px; position: relative; z-index: 1; }
.sw-iso {
  width: 56px; height: 56px; flex-shrink: 0; border-radius: 14px;
  background: var(--grad-iso); border: 1px solid rgba(61,90,254,.18);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.7), 0 6px 14px -6px rgba(61,90,254,.18);
  display: grid; place-items: center; color: var(--brand-600);
}
.sw-iso svg { width: 26px; height: 26px; }
.sw-meta { flex: 1; min-width: 0; }
.sw-meta .nm {
  font-family: var(--font-display); font-weight: 600; font-size: 15px; color: var(--text-strong);
  letter-spacing: -0.01em; line-height: 1.3; margin: 0 0 4px; overflow: hidden; text-overflow: ellipsis;
}
.sw-meta .ver {
  display: inline-flex; align-items: center; gap: 4px; font-family: var(--font-mono);
  font-size: 11.5px; color: var(--brand-600); background: rgba(61,90,254,.08); border-radius: 5px; padding: 1px 7px;
}
.sw-card-desc {
  font-size: 12.8px; color: var(--text-muted); line-height: 1.6; position: relative; z-index: 1;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 36px;
}
.sw-stats {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px 12px; padding: 12px 14px;
  background: var(--bg-elev); border: 1px dashed var(--border-soft); border-radius: 12px; position: relative; z-index: 1;
}
.sw-stat-item { display: flex; flex-direction: column; gap: 2px; }
.sw-stat-item .lbl { font-family: var(--font-mono); font-size: 10.5px; color: var(--text-faint); letter-spacing: 0.06em; }
.sw-stat-item .val { font-family: var(--font-display); font-weight: 600; font-size: 14px; color: var(--text-strong); font-variant-numeric: tabular-nums; }
.sw-stat-item .val.warn { color: var(--warning); }
.sw-stat-item .val.danger { color: var(--danger); }
.sw-actions { display: flex; gap: 8px; position: relative; z-index: 1; }
.sw-actions .btn-primary { flex: 1; }
.sw-card.disabled { opacity: 0.65; }
.sw-card.disabled .btn-primary { background: var(--text-faint); box-shadow: none; }
.sw-card.disabled .btn-primary::after { display: none; }

.plat-chip {
  display: inline-flex; align-items: center; gap: 4px; font-family: var(--font-mono); font-size: 10.5px;
  color: var(--text-muted); background: var(--bg-soft); border-radius: 5px; padding: 1px 6px; letter-spacing: 0.04em; margin-left: 4px;
}

.user-hero {
  background: linear-gradient(135deg, rgba(61,90,254,.08), rgba(6,182,212,.05));
  border: 1px solid rgba(61,90,254,.18); border-radius: 18px; padding: 24px 28px;
  display: flex; align-items: center; gap: 24px; flex-wrap: wrap;
}
.user-hero-iso {
  width: 76px; height: 76px; border-radius: 18px; background: var(--grad-electric); display: grid;
  place-items: center; color: #fff; box-shadow: var(--shadow-brand); flex-shrink: 0;
}
.user-hero-iso svg { width: 36px; height: 36px; }
.user-hero h2 { margin: 0 0 4px; font-family: var(--font-display); font-size: 20px; color: var(--text-strong); letter-spacing: -0.02em; }
.user-hero .desc { font-size: 13px; color: var(--text-muted); margin: 0; }
.user-hero .stats { display: flex; gap: 24px; margin-left: auto; flex-wrap: wrap; }
.user-hero .stat-item .num { font-family: var(--font-display); font-weight: 700; font-size: 28px; color: var(--brand-600); letter-spacing: -0.02em; line-height: 1; }
.user-hero .stat-item .lbl { font-family: var(--font-mono); font-size: 11px; color: var(--text-muted); letter-spacing: 0.06em; margin-top: 4px; }

/* 卡片内模型展开列表 */
.btn-ghost .chevron { transition: transform 0.2s ease; width: 14px; height: 14px; margin-left: 2px; }
.btn-ghost.open .chevron { transform: rotate(180deg); }
.btn-icon { padding: 0; width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; }
.sw-models {
  margin-top: 8px; padding: 10px 12px; background: linear-gradient(180deg, rgba(99,102,241,.04), rgba(99,102,241,.02));
  border: 1px solid rgba(99,102,241,.12); border-radius: 10px;
}
.sw-models-head {
  display: flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--text-muted);
  font-family: var(--font-display); font-weight: 600; letter-spacing: 0.04em; padding-bottom: 8px;
  border-bottom: 1px dashed rgba(99,102,241,.18); margin-bottom: 6px;
}
.sw-models-head i { width: 13px; height: 13px; color: #6366f1; }
.model-row { display: flex; align-items: center; gap: 10px; padding: 8px 4px; border-bottom: 1px dashed rgba(99,102,241,.10); }
.model-row:last-child { border-bottom: 0; }
.model-info { flex: 1; min-width: 0; }
.model-name { font-size: 13px; font-weight: 600; color: var(--text-strong); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.model-name .model-ver { font-family: var(--font-mono); font-size: 11px; font-weight: normal; color: var(--text-faint); margin-left: 4px; }
.model-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 2px; font-size: 11.5px; color: var(--text-faint); align-items: center; }
.model-fmt { background: rgba(99,102,241,.12); color: #4f46e5; font-weight: 600; padding: 1px 7px; border-radius: 4px; font-family: var(--font-mono); font-size: 10.5px; }
.model-remain { font-family: var(--font-mono); padding: 1px 8px; border-radius: 4px; background: rgba(16,185,129,.10); color: #047857; font-weight: 600; }
.model-remain.warn { background: rgba(245,158,11,.10); color: #b45309; }
.model-remain.danger { background: rgba(239,68,68,.10); color: #b91c1c; }
.btn-sm { padding: 4px 10px; font-size: 12px; height: 28px; }
.model-row .btn-sm i { width: 13px; height: 13px; }

/* 使用说明：下载前确认 */
.usage-confirm-modal { max-width: 600px; width: calc(100% - 24px); }
.usage-confirm-title { display: flex; align-items: flex-start; gap: 12px; flex: 1; min-width: 0; }
.usage-confirm-icon,
.models-modal-icon {
  width: 38px; height: 38px; border-radius: 10px; background: linear-gradient(135deg, #6366f1, #8b5cf6);
  display: grid; place-items: center; flex-shrink: 0; box-shadow: 0 6px 14px -4px rgba(99,102,241,.45);
}
.usage-confirm-icon i, .models-modal-icon i { width: 18px; height: 18px; color: #fff; }
.usage-confirm-title h3 { margin: 0; font-family: var(--font-display); font-size: 16px; font-weight: 700; color: var(--text-strong); word-break: break-all; }
.usage-confirm-sub { margin: 2px 0 0; font-size: 12.5px; color: var(--text-muted); word-break: break-all; }
.usage-confirm-body {
  padding: 0 24px 4px; flex: 1 1 auto; min-height: 0; overflow-y: auto; font-size: 14px; color: var(--text-body); line-height: 1.75;
}
.usage-confirm-body h1, .usage-confirm-body h2, .usage-confirm-body h3 { font-family: var(--font-display); color: var(--text-strong); margin: 16px 0 8px; font-weight: 700; }
.usage-confirm-body h1 { font-size: 17px; }
.usage-confirm-body h2 { font-size: 15.5px; }
.usage-confirm-body h3 { font-size: 14px; }
.usage-confirm-body h2:first-child, .usage-confirm-body h3:first-child, .usage-confirm-body h1:first-child { margin-top: 4px; }
.usage-confirm-body p { margin: 6px 0; }
.usage-confirm-body ul, .usage-confirm-body ol { margin: 6px 0 8px; padding-left: 22px; }
.usage-confirm-body li { margin: 3px 0; }
.usage-confirm-body code { background: rgba(0,0,0,.06); padding: 1px 6px; border-radius: 4px; font-family: var(--font-mono); font-size: 12.5px; color: #be123c; }
.usage-confirm-body pre { background: #1e293b; color: #e2e8f0; padding: 12px 14px; border-radius: 8px; overflow-x: auto; font-family: var(--font-mono); font-size: 12.5px; margin: 10px 0; }
.usage-confirm-body strong { color: var(--text-strong); }
.usage-confirm-empty { padding: 30px 24px; text-align: center; flex-shrink: 0; }
.usage-confirm-empty i { width: 32px; height: 32px; color: var(--text-faint); margin-bottom: 8px; }
.usage-confirm-empty p { margin: 4px 0; font-size: 14px; color: var(--text-muted); }
.usage-confirm-empty p.hint { font-size: 12px; color: var(--text-faint); margin-top: 8px; }
.usage-confirm-hint { margin: 8px 24px 0; padding: 10px 12px; background: rgba(245,158,11,.06); border-left: 3px solid #f59e0b; border-radius: 4px; display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: #92400e; flex-shrink: 0; }
.usage-confirm-hint i { width: 14px; height: 14px; flex-shrink: 0; }

.sw-actions-secondary { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.sw-actions-secondary .btn { flex: 1 1 auto; min-width: 0; justify-content: center; }
.sw-actions-secondary .btn span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sw-actions-primary { margin-top: 8px; }
.btn-block { width: 100%; display: flex; align-items: center; justify-content: center; gap: 6px; padding: 10px 16px; font-size: 14px; font-weight: 600; }
.btn-block i { width: 16px; height: 16px; }

/* 大模型清单 */
.models-modal { max-width: 620px; width: calc(100% - 24px); }
.models-modal-title { display: flex; align-items: flex-start; gap: 12px; flex: 1; min-width: 0; }
.models-modal-title h3 { margin: 0; font-family: var(--font-display); font-size: 16px; font-weight: 700; color: var(--text-strong); }
.models-modal-sub { margin: 2px 0 0; font-size: 12.5px; color: var(--text-muted); }
.models-modal-body { padding: 4px 24px 8px; flex: 1 1 auto; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; }
.model-modal-row { display: flex; align-items: center; gap: 14px; padding: 14px 16px; background: linear-gradient(135deg, rgba(99,102,241,.04), rgba(99,102,241,.02)); border: 1px solid rgba(99,102,241,.15); border-radius: 10px; transition: all 0.15s ease; }
.model-modal-row:hover { border-color: rgba(99,102,241,.35); box-shadow: 0 4px 12px -4px rgba(99,102,241,.20); }
.model-modal-row.exhausted { opacity: 0.7; filter: grayscale(0.4); }
.model-modal-icon { width: 36px; height: 36px; border-radius: 8px; background: rgba(99,102,241,.12); box-shadow: none; }
.model-modal-icon i { width: 16px; height: 16px; color: #6366f1; }
.model-modal-info { flex: 1; min-width: 0; }
.model-modal-name { font-size: 14px; font-weight: 600; color: var(--text-strong); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.model-modal-name .model-ver { font-family: var(--font-mono); font-size: 11px; font-weight: normal; color: var(--text-faint); background: rgba(0,0,0,.05); padding: 1px 6px; border-radius: 4px; }
.model-modal-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 5px; font-size: 11.5px; color: var(--text-muted); align-items: center; }
.model-modal-meta .model-fmt { background: rgba(99,102,241,.15); color: #4f46e5; font-weight: 600; padding: 1px 7px; border-radius: 4px; font-family: var(--font-mono); font-size: 10.5px; }
.model-modal-meta .model-remain { font-family: var(--font-mono); padding: 1px 8px; border-radius: 4px; background: rgba(16,185,129,.10); color: #047857; font-weight: 600; }
.model-modal-meta .model-remain.warn { background: rgba(245,158,11,.10); color: #b45309; }
.model-modal-meta .model-remain.danger { background: rgba(239,68,68,.10); color: #b91c1c; }
.model-modal-meta .model-remain.info { background: rgba(59,130,246,.10); color: #1d4ed8; }
.model-modal-meta .model-used { color: var(--text-faint); }
.model-modal-row .btn-sm { flex-shrink: 0; padding: 6px 14px; font-size: 12.5px; height: 32px; }

#detail-container > .card, #detail-container > .detail-hero { margin-bottom: 22px; }
#detail-container > .card:last-child, #detail-container > .detail-hero:last-child { margin-bottom: 0; }

/* 客户端投放任务区 */
.my-svc-section-head { display: flex; align-items: center; gap: 8px; padding: 10px 14px 6px; }
.my-svc-section-head h3 { margin: 0; font-size: 14px; color: var(--text-strong); }
.dist-task-card { padding: 12px 14px; background: var(--bg-card); border: 1px solid var(--border-soft); border-radius: 8px; margin-bottom: 8px; }
.dist-task-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.dist-task-name { font-weight: 600; font-size: 13.5px; color: var(--text-strong); }
.dist-task-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 14px; margin-bottom: 8px; padding: 8px 12px; background: var(--bg-soft); border-radius: 6px; }
.dist-task-field { display: flex; flex-direction: column; gap: 2px; font-size: 12px; }
.dist-task-field-label { color: var(--text-faint); font-size: 11px; }
.dist-task-field-value { color: var(--text-strong); word-break: break-word; }
.dist-task-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }

/* 渠道端业务卡片 */
.my-dist-biz-card { display: flex; align-items: center; gap: 16px; padding: 18px 22px; background: var(--bg-card); border: 1px solid var(--border-soft); border-radius: 10px; text-decoration: none; color: var(--text-strong); margin-bottom: 10px; transition: all 0.15s; }
.my-dist-biz-card:hover { background: var(--bg-soft); border-color: var(--brand-500); transform: translateY(-1px); }
.my-dist-biz-icon { width: 44px; height: 44px; border-radius: 10px; background: linear-gradient(135deg, var(--brand-500), var(--brand-600)); display: flex; align-items: center; justify-content: center; color: white; flex-shrink: 0; }
.my-dist-biz-info { flex: 1; min-width: 0; }
.my-dist-biz-name { font-size: 15px; font-weight: 600; color: var(--text-strong); margin-bottom: 4px; }
.my-dist-biz-meta { font-size: 12px; color: var(--text-faint); display: flex; gap: 6px; }
.my-dist-biz-arrow { color: var(--text-faint); }

/* 客户资料板块 */
.cb-status-banner { margin: 0 0 18px 0; }
.cb-section .my-svc-section-head { padding-bottom: 4px; }
.cb-banner { display: flex; align-items: stretch; gap: 16px; padding: 16px 20px; border-radius: 12px; border-left: 4px solid; }
.cb-banner-pending_submit { background: rgba(245,158,11,.08); border-left-color: #f59e0b; }
.cb-banner-pending_confirm { background: rgba(59,130,246,.08); border-left-color: #3b82f6; }
.cb-banner-needs_revision { background: rgba(239,68,68,.08); border-left-color: #ef4444; }
.cb-banner-confirmed { background: rgba(16,185,129,.08); border-left-color: #10b981; }
.cb-banner-icon { width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: white; flex-shrink: 0; box-shadow: 0 1px 3px rgba(0,0,0,.06); }
.cb-banner-pending_submit .cb-banner-icon { color: #f59e0b; }
.cb-banner-pending_confirm .cb-banner-icon { color: #3b82f6; }
.cb-banner-needs_revision .cb-banner-icon { color: #ef4444; }
.cb-banner-confirmed .cb-banner-icon { color: #10b981; }
.cb-banner-icon i { width: 22px; height: 22px; }
.cb-banner-body { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: center; gap: 4px; }
.cb-banner-title { display: flex; align-items: baseline; gap: 10px; }
.cb-banner-label { font-size: 11px; color: var(--text-faint); letter-spacing: 0.5px; text-transform: uppercase; }
.cb-banner-status { font-size: 18px; font-weight: 600; }
.cb-banner-pending_submit .cb-banner-status { color: #b45309; }
.cb-banner-pending_confirm .cb-banner-status { color: #1d4ed8; }
.cb-banner-needs_revision .cb-banner-status { color: #b91c1c; }
.cb-banner-confirmed .cb-banner-status { color: #047857; }
.cb-banner-tip { font-size: 13px; color: var(--text-soft); line-height: 1.5; }
.cb-banner-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.cb-banner-actions .btn { white-space: nowrap; }
.cb-files-section { margin-top: 18px; padding: 14px 16px; background: var(--bg-soft); border-radius: 10px; border: 1px solid var(--border-soft); }
.cb-files-head { display: flex; align-items: center; gap: 10px; padding: 6px 4px 10px; margin-bottom: 10px; border-bottom: 1px solid var(--border-soft); }
.cb-files-head-left { display: flex; align-items: center; gap: 8px; }
.cb-files-title { margin: 0; font-size: 14px; font-weight: 600; }
.cb-files-count { font-size: 11.5px; color: var(--text-faint); padding: 2px 8px; background: var(--bg-card); border-radius: 10px; }
.cb-files-hint { display: flex; align-items: center; gap: 4px; font-size: 11.5px; color: var(--text-faint); margin-bottom: 8px; padding: 0 4px; }
.cb-files-list { display: flex; flex-direction: column; gap: 6px; }
.cb-files-empty { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 24px 12px; color: var(--text-faint); font-size: 12.5px; }

@media (max-width: 720px) {
  .cb-banner { flex-direction: column; gap: 12px; }
  .cb-banner-actions { flex-wrap: wrap; }
}
