:root {
  --bg: #ffffff;
  --ink: #102033;
  --muted: #637083;
  --line: #dce5ef;
  --soft: #f6f9fc;
  --soft-blue: #eef5ff;
  --blue: #1768e8;
  --blue-dark: #0f4fb4;
  --green: #15936a;
  --amber: #b7791f;
  --danger: #b42318;
  --radius: 8px;
  --shadow: 0 24px 70px rgba(16, 32, 51, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

body,
button,
input {
  letter-spacing: 0;
}

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

img {
  display: block;
  max-width: 100%;
}

button,
input {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding: 0 clamp(20px, 6vw, 84px);
  border-bottom: 1px solid rgba(220, 229, 239, 0.92);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
}

.brand,
.header-actions,
.hero-actions,
.hero-checks,
.contact-panel,
.site-footer,
.form-row,
.check-line {
  display: flex;
  align-items: center;
}

.brand {
  gap: 12px;
  min-width: 190px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 2px solid var(--blue);
  border-radius: var(--radius);
  color: var(--blue);
  font-weight: 900;
}

.brand strong {
  display: block;
  font-size: 17px;
  line-height: 1.2;
}

.brand small {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.nav {
  display: flex;
  gap: 24px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
}

.nav a:hover {
  color: var(--blue);
}

.header-actions {
  gap: 10px;
}

.text-action,
.solid-action,
.primary-action,
.secondary-action,
.plan-card a,
.mail-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 850;
}

.text-action,
.secondary-action,
.plan-card a,
.mail-action {
  border: 1px solid rgba(23, 104, 232, 0.34);
  color: var(--blue);
  background: #fff;
}

.solid-action,
.primary-action,
.featured a {
  border: 1px solid var(--blue);
  color: #fff;
  background: var(--blue);
}

.primary-action:hover,
.solid-action:hover,
.featured a:hover {
  background: var(--blue-dark);
}

.menu-button,
.mobile-nav {
  display: none;
}

.section-band {
  padding: 84px clamp(20px, 6vw, 84px);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 0.8fr);
  gap: clamp(36px, 6vw, 76px);
  align-items: start;
  min-height: auto;
  background:
    linear-gradient(180deg, #f7fbff 0%, #ffffff 62%),
    #fff;
}

.section-label {
  display: inline-flex;
  margin: 0 0 14px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 900;
}

.hero h1,
.login-copy h1 {
  max-width: 760px;
  margin-bottom: 22px;
  font-size: clamp(36px, 4.2vw, 58px);
  line-height: 1.08;
}

.hero-lead,
.login-copy p,
.section-heading span,
.plan-card p,
.plan-card li,
.faq-list p,
.policy-grid p,
.contact-panel span,
.security-note span,
.login-card-heading p,
.login-footnote,
.site-footer {
  color: var(--muted);
}

.hero-lead,
.login-copy p {
  max-width: 730px;
  margin-bottom: 30px;
  font-size: 16px;
}

.login-copy p {
  font-size: 18px;
}

.hero-actions {
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.hero-checks {
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hero-checks li {
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: #334155;
  font-size: 13px;
  font-weight: 760;
}

.hero-visual {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}

.hero-visual img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.hero-visual figcaption {
  display: grid;
  gap: 4px;
  padding: 18px;
  border-top: 1px solid var(--line);
}

.hero-visual figcaption span {
  color: var(--muted);
  font-size: 14px;
}

.section-heading {
  max-width: 780px;
  margin-bottom: 34px;
}

.section-heading h2 {
  margin-bottom: 12px;
  font-size: clamp(30px, 3.2vw, 46px);
  line-height: 1.16;
}

.explain-grid,
.plan-grid,
.policy-grid {
  display: grid;
  gap: 18px;
}

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

.explain-grid article,
.plan-card,
.policy-grid article,
.faq-list details,
.login-card,
.security-note {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.explain-grid article,
.plan-card,
.policy-grid article {
  padding: 24px;
}

.explain-grid article span {
  color: var(--green);
  font-weight: 900;
}

.explain-grid h3,
.plan-card h3,
.policy-grid h3 {
  margin: 10px 0 8px;
  font-size: 20px;
}

.explain-grid p,
.policy-grid p {
  margin-bottom: 0;
  color: var(--muted);
}

.intro,
.help,
.partners {
  background: var(--soft);
}

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

.plan-card {
  display: grid;
  gap: 14px;
  align-content: start;
}

.plan-card.featured {
  border-color: rgba(23, 104, 232, 0.55);
  box-shadow: 0 18px 45px rgba(23, 104, 232, 0.12);
}

.plan-card strong {
  font-size: 36px;
  line-height: 1;
}

.plan-card ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 18px;
}

.plan-card a {
  margin-top: 6px;
}

.plans .section-label {
  font-size: 12px;
}

.plans .section-heading {
  max-width: 720px;
  margin-bottom: 28px;
}

.plans .section-heading h2 {
  font-size: clamp(26px, 2.7vw, 38px);
  line-height: 1.18;
}

.plans .section-heading span {
  font-size: 14px;
  line-height: 1.65;
}

.plans .plan-card {
  gap: 12px;
}

.plans .plan-card h3 {
  font-size: 18px;
}

.plans .plan-card strong {
  font-size: 30px;
}

.plans .plan-card p,
.plans .plan-card li {
  font-size: 14px;
  line-height: 1.7;
}

.plans .plan-card a {
  min-height: 42px;
  font-size: 13px;
}

.faq-list {
  display: grid;
  gap: 12px;
  max-width: 900px;
}

.faq-list details {
  padding: 18px 20px;
}

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

.faq-list p {
  margin: 12px 0 0;
}

.help .section-label {
  font-size: 12px;
}

.help .section-heading {
  max-width: 720px;
  margin-bottom: 28px;
}

.help .section-heading h2 {
  font-size: clamp(26px, 2.7vw, 38px);
  line-height: 1.18;
}

.help .section-heading span {
  font-size: 14px;
  line-height: 1.65;
}

.help .faq-list {
  max-width: 860px;
  gap: 10px;
}

.help .faq-list details {
  padding: 15px 18px;
}

.help .faq-list summary {
  font-size: 15px;
  line-height: 1.45;
}

.help .faq-list p {
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.7;
}

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

.about .section-label {
  font-size: 12px;
}

.about .section-heading {
  max-width: 720px;
  margin-bottom: 28px;
}

.about .section-heading h2 {
  font-size: clamp(26px, 2.7vw, 38px);
  line-height: 1.18;
}

.about .section-heading span {
  font-size: 14px;
  line-height: 1.65;
}

.about .policy-grid {
  gap: 16px;
}

.about .policy-grid article {
  padding: 20px;
}

.about .policy-grid h3 {
  font-size: 18px;
}

.about .policy-grid p {
  font-size: 14px;
  line-height: 1.7;
}

.contact-panel {
  justify-content: space-between;
  gap: 24px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.contact-panel h2 {
  margin-bottom: 8px;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.16;
}

.partners .contact-panel {
  gap: 20px;
  padding: 24px;
}

.partners .section-label {
  font-size: 12px;
}

.partners .contact-panel h2 {
  font-size: clamp(24px, 2.4vw, 34px);
  line-height: 1.18;
}

.partners .contact-panel span {
  font-size: 14px;
  line-height: 1.65;
}

.partners .mail-action {
  min-height: 38px;
  padding: 0 16px;
  font-size: 13px;
}

.mail-action {
  min-width: 230px;
}

.site-footer {
  justify-content: space-between;
  gap: 16px;
  padding: 26px clamp(20px, 6vw, 84px);
  border-top: 1px solid var(--line);
  font-size: 13px;
}

.site-toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 50;
  max-width: min(420px, calc(100vw - 40px));
  padding: 14px 16px;
  border: 1px solid rgba(21, 147, 106, 0.28);
  border-radius: var(--radius);
  color: #0f513c;
  background: #ecfdf5;
  box-shadow: 0 18px 45px rgba(16, 32, 51, 0.16);
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.site-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.login-page {
  min-height: 100vh;
  background:
    linear-gradient(120deg, #f7fbff 0%, #ffffff 54%, #eef7f4 100%),
    #fff;
}

.login-header {
  position: static;
}

.login-shell {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 440px);
  gap: clamp(34px, 6vw, 80px);
  align-items: center;
  min-height: calc(100vh - 145px);
  padding: 72px clamp(20px, 6vw, 84px);
}

.login-copy h1 {
  font-size: clamp(38px, 4.8vw, 64px);
}

.security-note {
  display: grid;
  gap: 6px;
  max-width: 680px;
  padding: 18px;
  border-color: rgba(183, 121, 31, 0.3);
  background: #fffaf0;
}

.security-note strong {
  color: var(--amber);
}

.login-card {
  padding: 26px;
  box-shadow: var(--shadow);
}

.login-card-heading {
  margin-bottom: 22px;
}

.login-card-heading h2 {
  margin-bottom: 8px;
  font-size: 28px;
}

.login-card-heading p {
  margin-bottom: 0;
  padding: 10px 12px;
  border-radius: var(--radius);
  background: var(--soft-blue);
  font-size: 14px;
}

.login-card form {
  display: grid;
  gap: 16px;
}

.login-card label {
  display: grid;
  gap: 8px;
  color: #1f2a37;
  font-size: 14px;
  font-weight: 800;
}

.login-card input[type="email"],
.login-card input[type="password"] {
  width: 100%;
  min-height: 46px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  outline: none;
  background: #fff;
  color: var(--ink);
}

.login-card input:focus {
  border-color: rgba(23, 104, 232, 0.8);
  box-shadow: 0 0 0 3px rgba(23, 104, 232, 0.12);
}

.form-row {
  justify-content: space-between;
  gap: 12px;
  font-size: 14px;
}

.check-line {
  grid-template-columns: auto 1fr;
  gap: 8px;
  color: var(--muted);
  font-weight: 700;
}

.check-line input {
  width: 16px;
  height: 16px;
}

.form-row a,
.login-footnote a {
  color: var(--blue);
  font-weight: 850;
}

.full-width {
  width: 100%;
  border: 0;
  cursor: pointer;
}

.login-footnote {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
  font-size: 14px;
}

.login-demo-link {
  display: flex;
  justify-content: center;
  margin-top: 14px;
  color: var(--blue);
  font-size: 14px;
  font-weight: 850;
}

.dashboard-page {
  min-height: 100vh;
  background: var(--soft);
}

.dashboard-shell {
  display: grid;
  grid-template-columns: 264px minmax(0, 1fr);
  min-height: 100vh;
}

.dashboard-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 22px 18px;
  border-right: 1px solid var(--line);
  background: #fff;
}

.dashboard-brand {
  min-width: 0;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.dashboard-nav {
  display: grid;
  gap: 6px;
}

.dashboard-nav button {
  width: 100%;
  min-height: 42px;
  padding: 0 12px;
  border: 0;
  border-radius: var(--radius);
  color: #27364a;
  background: transparent;
  cursor: pointer;
  font-size: 14px;
  font-weight: 840;
  text-align: left;
}

.dashboard-nav button:hover,
.dashboard-nav button.is-active {
  color: var(--blue);
  background: var(--soft-blue);
}

.sidebar-note {
  display: grid;
  gap: 6px;
  margin-top: auto;
  padding: 14px;
  border: 1px solid rgba(23, 104, 232, 0.18);
  border-radius: var(--radius);
  background: var(--soft-blue);
  font-size: 13px;
}

.sidebar-note span {
  color: var(--muted);
}

.dashboard-main {
  min-width: 0;
  padding: 28px clamp(20px, 4vw, 48px) 48px;
}

.dashboard-topbar,
.notice-bar,
.panel-heading,
.ticket-toolbar {
  display: flex;
  align-items: center;
}

.dashboard-topbar {
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 18px;
}

.dashboard-topbar h1 {
  margin-bottom: 6px;
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1.12;
}

.dashboard-topbar span,
.panel-heading span,
.notice-bar span,
.metric-card small,
.info-list dt,
.client-grid span,
.category-row span {
  color: var(--muted);
}

.dashboard-top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.dashboard-top-actions select {
  display: none;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  font-weight: 800;
}

.notice-bar {
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  padding: 14px 16px;
  border: 1px solid rgba(23, 104, 232, 0.18);
  border-radius: var(--radius);
  background: #fff;
}

.dashboard-tabs {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.dashboard-tabs button {
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  font-size: 14px;
  font-weight: 840;
}

.dashboard-tabs button:hover,
.dashboard-tabs button.is-active {
  color: var(--blue);
  border-color: rgba(23, 104, 232, 0.2);
  background: var(--soft-blue);
}

.notice-bar button,
.table-wrap button,
.dashboard-panel button,
.tutorial-list button {
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid rgba(23, 104, 232, 0.28);
  border-radius: var(--radius);
  color: var(--blue);
  background: #fff;
  cursor: pointer;
  font-size: 14px;
  font-weight: 820;
}

.dashboard-view {
  display: grid;
  gap: 18px;
  min-width: 0;
}

.dashboard-view[hidden] {
  display: none;
}

.metric-grid,
.dashboard-grid,
.action-grid,
.client-grid,
.category-row {
  display: grid;
  gap: 14px;
}

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

.metric-card,
.dashboard-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  min-width: 0;
}

.metric-card {
  display: grid;
  gap: 8px;
  padding: 20px;
}

.metric-card span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 820;
}

.metric-card strong {
  font-size: 30px;
  line-height: 1.1;
}

.plan-status {
  background: linear-gradient(135deg, #fff, #eef5ff);
}

.success-text {
  color: var(--green);
}

.two-column {
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
}

.dashboard-panel {
  padding: 22px;
}

.panel-heading {
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.panel-heading h2 {
  margin-bottom: 0;
  font-size: 24px;
}

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

.action-grid .danger-action,
.danger-action {
  border-color: rgba(180, 35, 24, 0.3);
  color: var(--danger);
}

.tutorial-list {
  display: grid;
  gap: 10px;
}

.tutorial-list.compact {
  grid-template-columns: 1fr;
}

.segment-control {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--soft);
}

.segment-control button {
  border-color: transparent;
  background: transparent;
  color: var(--muted);
}

.segment-control button.is-selected {
  color: var(--blue);
  background: #fff;
  border-color: rgba(23, 104, 232, 0.22);
  box-shadow: 0 8px 22px rgba(16, 32, 51, 0.08);
}

.dashboard-plans {
  margin-top: 6px;
}

.rule-mode-control {
  margin-bottom: 16px;
}

.lifecycle-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.lifecycle-card {
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 16px;
  border: 1px solid rgba(23, 104, 232, 0.16);
  border-radius: var(--radius);
  background: linear-gradient(180deg, #fff, #f7fbff);
}

.lifecycle-card span {
  color: var(--blue);
  font-size: 13px;
  font-weight: 860;
}

.lifecycle-card strong {
  line-height: 1.35;
}

.lifecycle-card p {
  margin: 0;
  color: var(--muted);
}

.sync-flow {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 18px;
}

.sync-flow span {
  display: grid;
  min-height: 52px;
  place-items: center;
  padding: 10px;
  border: 1px solid rgba(23, 104, 232, 0.16);
  border-radius: var(--radius);
  background: var(--soft-blue);
  color: #214a84;
  font-size: 13px;
  font-weight: 840;
  text-align: center;
}

.routing-grid,
.audit-grid {
  display: grid;
  gap: 14px;
  margin-bottom: 18px;
}

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

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

.rule-card,
.audit-card {
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--soft);
}

.rule-card span {
  font-size: 13px;
  font-weight: 860;
}

.rule-card strong,
.audit-card strong {
  color: var(--ink);
  line-height: 1.35;
}

.rule-card p,
.audit-card p,
.rule-note p {
  margin: 0;
  color: var(--muted);
}

.rule-card.direct span {
  color: var(--green);
}

.rule-card.proxy span {
  color: var(--blue);
}

.rule-card.block span {
  color: var(--danger);
}

.rule-card.default span {
  color: var(--amber);
}

.routing-detail {
  align-items: start;
}

.routing-detail > article {
  min-width: 0;
}

.compact-heading {
  align-items: flex-start;
  margin-bottom: 12px;
}

.compact-heading h3 {
  margin: 0;
  font-size: 18px;
}

.rule-table {
  min-width: 680px;
}

.rule-table td:first-child {
  color: var(--muted);
  font-weight: 860;
}

.support-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

.support-chips span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--soft);
  color: #334155;
  font-size: 13px;
  font-weight: 820;
}

.rule-note {
  display: grid;
  gap: 6px;
  margin-bottom: 16px;
  padding: 14px;
  border: 1px solid rgba(23, 104, 232, 0.18);
  border-radius: var(--radius);
  background: var(--soft-blue);
}

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

.audit-banner {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
  padding: 16px 18px;
  border: 1px dashed rgba(23, 104, 232, 0.45);
  border-radius: var(--radius);
  background: var(--soft-blue);
}

.audit-banner strong {
  color: #214a84;
  font-size: 18px;
}

.audit-banner p {
  margin: 0;
  color: var(--muted);
}

.audit-rule-list {
  display: grid;
  gap: 12px;
}

.audit-rule-list article {
  display: grid;
  grid-template-columns: 58px minmax(140px, 0.2fr) minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.audit-rule-list span {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 12px;
  background: var(--soft-blue);
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
}

.audit-rule-list strong {
  color: #334155;
  font-weight: 860;
}

.audit-rule-list p {
  margin: 0;
  color: var(--muted);
}

.audit-table {
  min-width: 760px;
}

.strategy-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 18px;
  align-items: start;
}

.strategy-editor-panel,
.strategy-group-panel,
.audit-target-panel {
  padding: 0;
  overflow: hidden;
}

.strategy-heading,
.audit-target-heading {
  padding: 22px 24px 16px;
}

.strategy-heading h2,
.audit-target-heading h2 {
  margin: 0;
  color: #07182d;
  font-size: 24px;
  line-height: 1.2;
}

.strategy-heading p,
.audit-target-heading p {
  margin: 10px 0 0;
  color: var(--muted);
}

.strategy-form-section {
  border-top: 1px solid #eef2f7;
  padding: 18px 24px 24px;
}

.strategy-section-head,
.strategy-foot {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.strategy-section-head {
  margin-bottom: 12px;
}

.strategy-section-head h3 {
  margin: 0;
  color: #07182d;
  font-size: 16px;
  line-height: 1.3;
}

.strategy-section-head p,
.strategy-examples span,
.strategy-foot span {
  color: #7a8798;
  font-size: 13px;
}

.strategy-section-head p {
  margin: 6px 0 0;
}

.strategy-section-head button,
.strategy-foot button {
  flex: 0 0 auto;
  min-height: 36px;
  border: 1px solid var(--blue-dark);
  border-radius: 6px;
  background: var(--blue-dark);
  color: #fff;
  cursor: pointer;
  font-size: 14px;
  font-weight: 840;
  padding: 0 14px;
}

.strategy-section-head button:hover,
.strategy-foot button:hover {
  border-color: var(--blue);
  background: var(--blue);
}

.strategy-form-section textarea {
  width: 100%;
  min-height: 178px;
  resize: vertical;
  border: 1px solid #e3e8ef;
  border-radius: 6px;
  background: #f7f7f8;
  color: var(--ink);
  font: 14px/1.7 ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  outline: none;
  padding: 16px;
}

.strategy-form-section textarea:focus {
  border-color: var(--blue);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(23, 104, 232, 0.12);
}

.strategy-form-section textarea::placeholder {
  color: #a7b0bd;
}

.strategy-examples {
  display: grid;
  gap: 4px;
  margin: 0 0 12px;
}

.strategy-foot {
  align-items: center;
  border-top: 1px solid #eef2f7;
  padding: 16px 24px 20px;
}

.strategy-group-panel .rule-mode-control {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  border-top: 1px solid #eef2f7;
  margin: 0;
  padding: 14px 16px;
}

.strategy-group-panel .rule-mode-control button {
  min-height: 36px;
  padding: 0 10px;
  font-size: 14px;
}

.strategy-group-list {
  padding: 0 16px 18px;
}

.strategy-group-row {
  width: 100%;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 42px;
  align-items: center;
  gap: 12px;
  min-height: 50px;
  border: 0;
  border-bottom: 1px solid #edf1f5;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  text-align: left;
  padding: 0;
}

.strategy-group-row:last-child {
  border-bottom: 0;
}

.strategy-product-icon {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  background: #eef3f8;
  color: #9aa6b4;
  font-size: 11px;
  font-weight: 900;
}

.product-icon svg {
  width: 20px;
  height: 20px;
  display: block;
}

.product-icon-apple {
  background: #f1f4f8;
  color: #111827;
}

.product-icon-bilibili {
  background: #fff0f6;
  color: #fb7299;
}

.product-icon-disney {
  background: #eef5ff;
  color: #2457d6;
}

.product-icon-youtube {
  background: #fff1f1;
  color: #ff0033;
}

.product-icon-hbo {
  background: #eef1f5;
  color: #111827;
}

.product-icon-microsoft {
  background: #f4f8ff;
  color: #2563eb;
}

.product-icon-netflix {
  background: #fff1f1;
  color: #e50914;
}

.product-icon-openai {
  background: #edf7f4;
  color: #10a37f;
}

.product-icon-paypal {
  background: #eef5ff;
  color: #003087;
}

.product-icon-steam {
  background: #eef3f8;
  color: #171a21;
}

.product-icon-telegram {
  background: #eef8ff;
  color: #229ed9;
}

.product-icon-tiktok {
  background: #f3f6f9;
  color: #111827;
}

.strategy-group-row strong {
  overflow: hidden;
  color: #1b2d45;
  font-size: 14px;
  font-weight: 820;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.strategy-group-row i {
  position: relative;
  width: 40px;
  height: 22px;
  border-radius: 999px;
  background: #c9cdd3;
  transition: background-color 0.18s ease;
}

.strategy-group-row i::after {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 4px rgba(16, 32, 51, 0.2);
  content: "";
  transition: transform 0.18s ease;
}

.strategy-group-row.is-on .strategy-product-icon {
  background: var(--soft-blue);
  color: var(--blue);
}

.strategy-group-row.is-on .product-icon-bilibili {
  background: #fff0f6;
  color: #fb7299;
}

.strategy-group-row.is-on .product-icon-youtube {
  background: #fff1f1;
  color: #ff0033;
}

.strategy-group-row.is-on .product-icon-openai {
  background: #edf7f4;
  color: #10a37f;
}

.strategy-group-row.is-on .product-icon-telegram {
  background: #eef8ff;
  color: #229ed9;
}

.strategy-group-row.is-on i {
  background: var(--blue-dark);
}

.strategy-group-row.is-on i::after {
  transform: translateX(18px);
}

.audit-target-panel {
  margin-bottom: 18px;
}

.audit-target-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}

.audit-target-table th,
.audit-target-table td {
  border-bottom: 1px solid #eef2f7;
  text-align: left;
  vertical-align: middle;
}

.audit-target-table th {
  color: #07182d;
  font-size: 14px;
  font-weight: 900;
  padding: 14px 20px;
}

.audit-target-table td {
  padding: 12px 20px;
}

.audit-target-table td:first-child {
  width: 260px;
}

.audit-target-table span {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  margin-right: 12px;
  border-radius: 8px;
  background: var(--soft-blue);
  color: var(--blue);
  font-size: 11px;
  font-weight: 900;
  vertical-align: middle;
}

.audit-target-table strong {
  color: #07182d;
  font-size: 14px;
  font-weight: 820;
  vertical-align: middle;
}

.audit-target-table code {
  display: inline-block;
  width: min(100%, 760px);
  border: 1px solid #dfe5ee;
  border-radius: 6px;
  background: #f6f8fb;
  color: #68768b;
  font: 12px/1.7 ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  overflow-wrap: anywhere;
  padding: 10px 12px;
}

.info-list {
  display: grid;
  gap: 10px;
  margin: 0 0 18px;
}

.info-list div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.info-list dd,
.info-list dt {
  margin: 0;
}

.info-list dd {
  font-weight: 860;
}

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

.client-grid span,
.category-row span {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--soft);
  font-weight: 760;
}

.traffic-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 26px;
  align-items: center;
}

.traffic-ring {
  display: grid;
  place-items: center;
  width: 210px;
  height: 210px;
  border-radius: 50%;
  color: var(--blue);
  background:
    radial-gradient(circle at center, #fff 56%, transparent 57%),
    conic-gradient(var(--blue) 0 83%, #e6eef8 83% 100%);
  font-size: 42px;
  font-weight: 950;
}

.table-wrap {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
}

table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
}

th,
td {
  padding: 13px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  font-size: 14px;
}

th {
  color: #334155;
  background: var(--soft);
  font-weight: 880;
}

.status {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 850;
}

.status.success {
  color: #087443;
  background: #eaf8f1;
}

.status.warning {
  color: var(--amber);
  background: #fff7e8;
}

.status.muted {
  color: var(--muted);
  background: var(--soft);
}

.ticket-toolbar {
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.settings-list {
  display: grid;
  gap: 12px;
  margin-bottom: 18px;
}

.settings-list label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-weight: 820;
}

.settings-list input {
  width: 18px;
  height: 18px;
}

.notice-list {
  display: grid;
  gap: 12px;
}

.notice-list article {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--soft);
}

.notice-list strong {
  color: var(--blue);
  font-size: 13px;
}

.notice-list h3 {
  margin: 6px 0;
}

.notice-list p {
  margin-bottom: 0;
  color: var(--muted);
}

@media (max-width: 1120px) {
  .nav,
  .site-header .header-actions {
    display: none;
  }

  .menu-button {
    display: grid;
    gap: 5px;
    width: 42px;
    height: 42px;
    place-content: center;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
  }

  .menu-button span {
    display: block;
    width: 18px;
    height: 2px;
    background: var(--ink);
  }

  .mobile-nav.is-open {
    position: fixed;
    top: 72px;
    right: 20px;
    left: 20px;
    z-index: 25;
    display: grid;
    gap: 2px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow);
  }

  .mobile-nav a {
    padding: 12px;
    border-radius: var(--radius);
    font-weight: 820;
  }

  .mobile-nav a:hover {
    background: var(--soft);
  }

  .hero,
  .login-shell {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    max-width: 720px;
  }

  .explain-grid,
  .plan-grid,
  .policy-grid,
  .metric-grid,
  .lifecycle-grid,
  .routing-grid,
  .audit-grid,
  .two-column,
  .dashboard-plans,
  .sync-flow {
    grid-template-columns: 1fr 1fr;
  }

  .dashboard-shell {
    grid-template-columns: 1fr;
  }

  .dashboard-sidebar {
    position: static;
    height: auto;
    padding: 18px 20px;
  }

  .dashboard-nav,
  .sidebar-note {
    display: none;
  }

  .dashboard-top-actions select {
    display: inline-flex;
  }

  .dashboard-main {
    padding-top: 22px;
  }

  .strategy-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .site-header {
    min-height: 66px;
    padding: 0 16px;
  }

  .brand {
    min-width: 0;
  }

  .brand small {
    display: none;
  }

  .mobile-nav.is-open {
    top: 66px;
    right: 12px;
    left: 12px;
  }

  .section-band,
  .login-shell {
    padding: 52px 16px;
  }

  .hero {
    min-height: auto;
  }

  .hero h1 {
    font-size: 34px;
  }

  .login-copy h1 {
    font-size: 40px;
  }

  .hero-lead,
  .login-copy p {
    font-size: 16px;
  }

  .plans .section-heading h2 {
    font-size: 28px;
  }

  .plans .section-heading span,
  .plans .plan-card p,
  .plans .plan-card li {
    font-size: 13px;
  }

  .plans .plan-card strong {
    font-size: 28px;
  }

  .help .section-heading h2 {
    font-size: 28px;
  }

  .help .section-heading span,
  .help .faq-list p {
    font-size: 13px;
  }

  .help .faq-list summary {
    font-size: 14px;
  }

  .about .section-heading h2 {
    font-size: 28px;
  }

  .about .section-heading span,
  .about .policy-grid p {
    font-size: 13px;
  }

  .about .policy-grid h3 {
    font-size: 17px;
  }

  .partners .contact-panel h2 {
    font-size: 26px;
  }

  .partners .contact-panel span,
  .partners .mail-action {
    font-size: 13px;
  }

  .hero-actions,
  .contact-panel,
  .site-footer,
  .form-row,
  .login-footnote {
    align-items: stretch;
    flex-direction: column;
  }

  .primary-action,
  .secondary-action,
  .solid-action,
  .text-action,
  .mail-action {
    width: 100%;
  }

  .explain-grid,
  .plan-grid,
  .policy-grid,
  .metric-grid,
  .two-column,
  .dashboard-plans,
  .lifecycle-grid,
  .routing-grid,
  .audit-grid,
  .action-grid,
  .rule-actions,
  .sync-flow,
  .client-grid,
  .category-row,
  .traffic-layout {
    grid-template-columns: 1fr;
  }

  .audit-rule-list article {
    grid-template-columns: 48px minmax(0, 1fr);
  }

  .audit-rule-list article p {
    grid-column: 1 / -1;
  }

  .strategy-section-head,
  .strategy-foot {
    display: block;
  }

  .strategy-section-head button,
  .strategy-foot button {
    width: 100%;
    margin-top: 12px;
  }

  .strategy-heading,
  .audit-target-heading,
  .strategy-form-section,
  .strategy-foot {
    padding-right: 16px;
    padding-left: 16px;
  }

  .strategy-group-panel .rule-mode-control {
    grid-template-columns: 1fr;
  }

  .audit-target-table {
    min-width: 640px;
  }

  .contact-panel,
  .login-card,
  .dashboard-panel {
    padding: 20px;
  }

  .strategy-editor-panel,
  .strategy-group-panel,
  .audit-target-panel {
    padding: 0;
  }

  .dashboard-sidebar {
    padding: 14px 16px;
  }

  .dashboard-main {
    padding: 18px 16px 34px;
  }

  .dashboard-topbar,
  .notice-bar,
  .panel-heading,
  .ticket-toolbar,
  .dashboard-top-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .dashboard-top-actions select {
    width: 100%;
  }

  .dashboard-tabs {
    display: grid;
    grid-template-columns: 1fr;
  }

  .traffic-ring {
    width: 180px;
    height: 180px;
    justify-self: center;
  }

  .site-footer {
    padding: 22px 16px;
  }
}
