:root {
  --mic-blue: #31516f;
  --mic-blue-dark: #24425f;
  --page-bg: #f2f6f9;
  --panel: #ffffff;
  --line: #e1e7ec;
  --text: #333333;
  --muted: #888888;
  --soft: #f7f9fb;
  --red: #e94b4b;
  --green: #18a66a;
  --amber: #d99513;
  --blue: #1683d8;
  --gray: #8a96a3;
  --shadow: 0 8px 22px rgba(31, 58, 82, 0.14);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--page-bg);
  font-family: "Segoe UI", "Microsoft YaHei", sans-serif;
  font-size: 13px;
}

button,
a {
  font: inherit;
}

.topbar {
  height: 84px;
  background: #fff;
  border-top: 3px solid #202b35;
  display: grid;
  grid-template-columns: 280px 1fr auto;
  align-items: end;
  padding: 0 calc((100vw - 1380px) / 2);
  position: sticky;
  top: 0;
  z-index: 10;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.08);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 0 15px 18px;
}

.brand-mark {
  width: 42px;
  height: 31px;
  color: #d7302f;
  font-size: 39px;
  line-height: 34px;
  font-weight: 900;
  font-style: italic;
  letter-spacing: -5px;
}

.brand strong {
  display: block;
  font-size: 21px;
  line-height: 1;
}

.brand span {
  display: block;
  color: #697888;
  font-size: 10px;
  margin-top: 4px;
}

.main-nav {
  align-self: end;
  height: 34px;
  background: var(--mic-blue);
  display: flex;
  align-items: center;
  padding-left: 10px;
  margin-left: -18px;
}

.main-nav a {
  color: #fff;
  text-decoration: none;
  min-width: 70px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: default;
}

.main-nav a.active {
  background: var(--mic-blue-dark);
  font-weight: 700;
}

.user-tools {
  position: absolute;
  right: max(30px, calc((100vw - 1380px) / 2 + 18px));
  top: 22px;
  color: #536372;
  font-size: 12px;
  display: flex;
  gap: 18px;
}

.user-tools b {
  background: #e65959;
  color: #fff;
  border-radius: 12px;
  padding: 1px 7px;
}

.shell {
  display: grid;
  grid-template-columns: 190px 1fr;
  max-width: 1380px;
  margin: 0 auto;
}

.sidebar {
  background: #fff;
  min-height: calc(100vh - 84px);
  border-right: 1px solid var(--line);
  padding-top: 18px;
}

.sidebar section {
  padding: 0 0 16px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.sidebar h2 {
  font-size: 13px;
  font-weight: 500;
  color: #9aa6b2;
  margin: 0 0 6px;
  padding: 0 24px;
}

.sidebar a {
  display: block;
  padding: 8px 24px;
  color: #3f4c59;
  text-decoration: none;
}

.sidebar a.selected {
  background: #e3ebf2;
  color: #172a3f;
  font-weight: 700;
  border-left: 3px solid var(--mic-blue);
  padding-left: 21px;
}

.help-card {
  margin: 22px;
  padding: 14px 0;
  background: #e8f1ff;
  border: 1px solid #d3e5ff;
}

.help-card a {
  color: #2577c7;
  padding: 6px 14px;
}

.page {
  padding: 22px 22px 34px;
}

.page-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 14px;
}

.breadcrumb {
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 7px;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  font-size: 18px;
  margin-bottom: 0;
}

.guide-link {
  color: #1683d8;
  font-weight: 700;
  text-decoration: none;
  margin-top: 20px;
}

.state-badge,
.tag {
  display: inline-flex;
  align-items: center;
  border-radius: 3px;
  padding: 2px 7px;
  font-size: 12px;
  border: 1px solid currentColor;
  margin-left: 8px;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
}

.state-badge.green,
.tag.green {
  color: var(--green);
  background: #eefaf5;
}

.state-badge.amber,
.tag.amber {
  color: var(--amber);
  background: #fff8e8;
}

.state-badge.red,
.tag.red {
  color: var(--red);
  background: #fff1f1;
}

.state-badge.blue,
.tag.blue {
  color: var(--blue);
  background: #eef7ff;
}

.state-badge.gray,
.tag.gray {
  color: var(--gray);
  background: #f3f5f7;
}

.scenario-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.scenario,
.filter,
.secondary,
.primary,
.icon-button {
  border: 1px solid var(--line);
  background: #fff;
  color: #374655;
  border-radius: 4px;
  cursor: pointer;
}

.scenario {
  padding: 7px 12px;
}

.scenario.active,
.filter.active {
  background: var(--mic-blue);
  border-color: var(--mic-blue);
  color: #fff;
}

.notice {
  display: none;
  padding: 10px 14px;
  margin-bottom: 12px;
  border: 1px solid;
}

.notice.show {
  display: block;
}

.notice.info {
  color: #23649c;
  background: #e7f3ff;
  border-color: #cfe6fb;
}

.notice.warn {
  color: #805409;
  background: #fff5d9;
  border-color: #f0dca2;
}

.notice.danger {
  color: #a73232;
  background: #fff0f0;
  border-color: #f1c4c4;
}

.summary-panel,
.status-overview,
.process-card,
.side-panel,
.faq,
.legacy-promo {
  background: var(--panel);
  border: 1px solid var(--line);
}

.summary-panel {
  min-height: 148px;
  display: grid;
  grid-template-columns: 190px 1fr 270px;
  align-items: center;
  margin-bottom: 16px;
  overflow: hidden;
}

.intro-art {
  height: 116px;
  margin-left: 20px;
  width: 150px;
  border: 2px dashed #c7cdd3;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fbfdff;
}

.phone-card {
  width: 64px;
  height: 84px;
  border-radius: 9px;
  background: linear-gradient(145deg, #7466f0, #33b5d8);
  position: relative;
  box-shadow: 13px 10px 0 rgba(62, 177, 216, 0.12);
}

.phone-card::before {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: 5px;
  background: #fff;
}

.screen-line {
  position: absolute;
  z-index: 1;
  left: 18px;
  top: 25px;
  width: 30px;
  height: 5px;
  border-radius: 5px;
  background: #e64d62;
}

.screen-line.short {
  top: 39px;
  width: 22px;
  background: #9cd8ea;
}

.coin {
  position: absolute;
  bottom: -8px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #ffb333;
  border: 2px solid #ffd685;
  z-index: 2;
}

.coin-a {
  left: 4px;
}

.coin-b {
  left: 22px;
  bottom: -13px;
}

.shield {
  position: absolute;
  right: -24px;
  top: 30px;
  width: 30px;
  height: 38px;
  border-radius: 16px 16px 20px 20px;
  background: #ffa726;
  color: #fff;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
}

.summary-copy {
  padding: 24px 20px;
}

.kicker {
  color: #466987;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1px;
  margin-bottom: 9px;
}

.summary-copy h2 {
  color: #8a8a8a;
  font-size: 16px;
  line-height: 1.8;
  font-weight: 600;
  margin-bottom: 4px;
  max-width: 720px;
}

.summary-copy p {
  color: var(--muted);
  line-height: 1.9;
  max-width: 760px;
}

.summary-actions {
  display: flex;
  flex-direction: row;
  gap: 10px;
  align-items: flex-end;
  justify-content: center;
  padding-right: 34px;
  flex-wrap: nowrap;
}

.primary,
.secondary {
  min-height: 32px;
  padding: 0 18px;
  font-weight: 700;
  border-radius: 2px;
  min-width: 116px;
}

.primary {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}

.secondary.ghost {
  color: #2577c7;
}

.status-overview {
  padding: 18px;
  margin-bottom: 16px;
}

.section-title {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 18px;
}

.section-title.compact {
  display: block;
}

.section-title h2 {
  font-size: 17px;
  margin-bottom: 5px;
}

.section-title p {
  color: var(--muted);
  margin-bottom: 0;
}

.section-title h2 span {
  color: #b5b5b5;
  font-size: 13px;
  font-weight: 500;
  margin-left: 8px;
}

.filter-tabs {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

.filter {
  padding: 6px 10px;
}

.channel-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.channel-card {
  border: 1px solid var(--line);
  background: #fbfcfd;
  padding: 12px;
  min-height: 166px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
}

.channel-card.attention {
  border-color: #f2c8c8;
  background: #fff9f9;
}

.channel-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}

.tag-stack {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  flex-shrink: 0;
}

.account-tag {
  color: #466987;
  background: #edf4fa;
  border: 1px solid #d2e2ef;
  border-radius: 3px;
  padding: 2px 6px;
  font-size: 12px;
  white-space: nowrap;
}

.channel-title {
  font-weight: 800;
  line-height: 1.45;
  font-size: 13px;
}

.channel-meta {
  color: var(--muted);
  font-size: 12px;
}

.channel-info {
  display: grid;
  gap: 6px;
  margin-top: auto;
  font-size: 12px;
  color: #536372;
}

.channel-info b {
  color: #2d3c4b;
}

.channel-info span:last-child {
  line-height: 1.55;
}

.card-actions {
  display: flex;
  gap: 8px;
  margin-top: 4px;
}

.card-actions button {
  height: 28px;
  padding: 0 10px;
  border-radius: 3px;
  border: 1px solid var(--line);
  background: #fff;
  cursor: pointer;
}

.workbench {
  display: none;
}

.process-card,
.side-panel,
.faq {
  padding: 18px;
}

.process-card {
  margin-bottom: 16px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin: 18px 0;
}

.step {
  background: #f3f6f9;
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid var(--line);
}

.step span {
  width: 26px;
  height: 26px;
  border-radius: 2px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  color: #526474;
  border: 1px solid var(--line);
  font-weight: 800;
}

.step.active span {
  color: #fff;
  background: var(--red);
  border-color: var(--red);
}

.materials {
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.materials h3 {
  font-size: 14px;
}

.materials ul {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px 24px;
  padding-left: 18px;
  margin-bottom: 0;
  color: #666;
}

.legacy-promo {
  padding: 18px;
  margin-bottom: 16px;
}

.promo-head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 16px;
}

.promo-head strong {
  font-size: 16px;
}

.promo-head span {
  color: #999;
}

.promo-band {
  min-height: 240px;
  background: linear-gradient(180deg, #f5fbff 0%, #e5f4ff 100%);
  border: 1px solid #e5f1fb;
  display: grid;
  grid-template-columns: repeat(3, 1fr) 182px;
  grid-template-rows: repeat(2, 1fr);
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 28px 240px 28px 54px;
}

.promo-band::before {
  content: "";
  position: absolute;
  inset: -80px 260px auto auto;
  width: 560px;
  height: 300px;
  border-radius: 50%;
  border: 42px solid rgba(211, 241, 255, 0.65);
}

.promo-band div {
  position: relative;
  z-index: 1;
  border-right: 1px solid rgba(255, 255, 255, 0.9);
  min-height: 76px;
  padding-left: 20px;
}

.promo-band b {
  color: #0043b5;
  font-size: 30px;
  line-height: 1;
}

.promo-band span {
  display: block;
  color: #445261;
  margin-top: 10px;
  font-size: 15px;
}

.promo-band aside {
  position: absolute;
  right: 70px;
  top: 34px;
  width: 150px;
  background: #fff;
  box-shadow: 0 12px 26px rgba(49, 81, 111, 0.18);
  border-radius: 4px;
  padding: 16px 18px;
  z-index: 2;
}

.promo-band aside p {
  font-weight: 800;
  margin-bottom: 12px;
  padding-left: 18px;
  position: relative;
}

.promo-band aside p::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 1px;
  width: 12px;
  height: 12px;
  border: 1px solid #ff7481;
  color: #ff7481;
  border-radius: 50%;
  font-size: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.promo-band aside em {
  display: block;
  color: #777;
  font-style: normal;
  font-weight: 500;
  margin-top: 3px;
}

.channel-note {
  background: #fff;
  border: 1px solid #d7e8f8;
  color: #4b6b87;
  padding: 10px 14px;
  margin-bottom: 16px;
  line-height: 1.7;
}

.side-panel h2 {
  font-size: 18px;
}

.principle {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 12px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.principle span {
  color: var(--blue);
  font-weight: 900;
}

.principle p {
  margin-bottom: 0;
  line-height: 1.65;
}

.faq details {
  border-top: 1px solid var(--line);
  padding: 14px 0;
}

.faq summary {
  cursor: pointer;
  font-weight: 800;
}

.faq p {
  color: var(--muted);
  margin: 10px 0 0;
}

.drawer {
  position: fixed;
  inset: 0;
  background: rgba(20, 34, 48, 0.34);
  z-index: 30;
  display: none;
  justify-content: flex-end;
}

.drawer.open {
  display: flex;
}

.drawer-panel {
  width: 560px;
  height: 100%;
  background: #fff;
  box-shadow: var(--shadow);
  padding: 24px;
  overflow: auto;
}

.drawer-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 18px;
  margin-bottom: 18px;
}

.icon-button {
  width: 34px;
  height: 34px;
}

.account-fields {
  display: grid;
  gap: 10px;
}

.field-row {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 14px;
  padding: 12px;
  background: #f7fafc;
  border: 1px solid var(--line);
}

.field-row b {
  color: #536372;
}

.field-row span {
  overflow-wrap: anywhere;
}

.drawer-actions {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 42px;
  transform: translateX(-50%) translateY(20px);
  background: #1f2d3a;
  color: #fff;
  border-radius: 4px;
  padding: 11px 18px;
  opacity: 0;
  pointer-events: none;
  transition: 0.2s ease;
  z-index: 50;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

@media (max-width: 1180px) {
  .topbar {
    grid-template-columns: 240px 1fr;
    padding: 0 20px;
  }

  .user-tools {
    display: none;
  }

  .shell {
    grid-template-columns: 190px minmax(0, 1fr);
  }

  .summary-panel,
  .workbench {
    grid-template-columns: 1fr;
  }

  .channel-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .topbar {
    height: auto;
    display: block;
    padding: 12px;
  }

  .main-nav {
    margin: 10px -12px -12px;
    overflow-x: auto;
  }

  .shell {
    display: block;
  }

  .sidebar {
    display: none;
  }

  .page {
    padding: 14px;
  }

  .page-head,
  .section-title {
    display: block;
  }

  .filter-tabs {
    margin-top: 12px;
    flex-wrap: wrap;
  }

  .summary-copy {
    padding: 20px;
  }

  .summary-copy h2 {
    font-size: 22px;
  }

  .summary-metrics,
  .channel-grid,
  .steps,
  .materials ul {
    grid-template-columns: 1fr;
  }

  .drawer-panel {
    width: 100%;
  }
}
