/* ==========================================================================
   本域直播 · 官网样式
   纯静态、零构建；字体使用系统字体栈，不引入外部资源。
   ========================================================================== */

:root {
  --brand: #165DFF;
  --brand-dark: #0E4BD8;
  --brand-deep: #0B3AAE;
  --brand-50: #EEF3FF;
  --brand-100: #DCE7FF;
  --ink: #0B2545;
  --ink-2: #243B63;
  --text: #384B6B;
  --muted: #6B7A99;
  --muted-2: #8C99B3;
  --line: #E4EAF5;
  --line-strong: #D3DCEC;
  --bg: #F5F7FB;
  --bg-soft: #FAFBFE;
  --white: #FFFFFF;
  --success: #0E9F6E;
  --danger: #D92D20;
  --warning: #B54708;
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 2px 8px rgba(11, 37, 69, 0.05);
  --shadow: 0 14px 40px rgba(11, 37, 69, 0.09);
  --shadow-lg: 0 30px 80px rgba(11, 37, 69, 0.14);
  --container: 1180px;
  --header-h: 78px;
  --font-sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC",
    system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--text);
  background: var(--white);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
h4,
h5,
p {
  margin: 0;
}

h1,
h2,
h3,
h4,
h5 {
  color: var(--ink);
  font-weight: 700;
  line-height: 1.28;
  letter-spacing: -0.02em;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

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

img {
  height: auto;
}

a {
  color: var(--brand);
  text-decoration: none;
  transition: color 0.18s ease, background-color 0.18s ease, border-color 0.18s ease;
}

a:hover {
  color: var(--brand-dark);
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

[hidden] {
  display: none !important;
}

::selection {
  color: var(--ink);
  background: var(--brand-100);
}

:focus-visible {
  outline: 3px solid rgba(22, 93, 255, 0.32);
  outline-offset: 2px;
}

.skip-link {
  position: fixed;
  top: -80px;
  left: 16px;
  z-index: 200;
  padding: 10px 16px;
  border-radius: 0 0 10px 10px;
  color: var(--white);
  background: var(--ink);
  font-size: 14px;
}

.skip-link:focus {
  top: 0;
  color: var(--white);
}

/* --------------------------------------------------------------------------
   Layout
   -------------------------------------------------------------------------- */

.container {
  width: min(var(--container), calc(100% - 48px));
  margin-inline: auto;
}

.section {
  padding: 92px 0;
}

.section--soft {
  background: var(--bg);
}

.section--tight {
  padding: 64px 0;
}

.section-head {
  max-width: 720px;
  margin-bottom: 44px;
}

.section-head--center {
  margin-inline: auto;
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: var(--brand);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--brand);
  content: "";
}

.section-head h2 {
  font-size: clamp(28px, 3.1vw, 42px);
}

.section-head .lead {
  margin-top: 16px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.8;
}

.section-head--center .eyebrow {
  justify-content: center;
}

.muted {
  color: var(--muted);
}

.text-center {
  text-align: center;
}

.mt-12 {
  margin-top: 12px;
}

.mt-24 {
  margin-top: 24px;
}

.mt-30 {
  margin-top: 30px;
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease,
    border-color 0.18s ease, color 0.18s ease;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  color: var(--white);
  background: var(--brand);
  box-shadow: 0 8px 20px rgba(22, 93, 255, 0.22);
}

.btn-primary:hover {
  color: var(--white);
  background: var(--brand-dark);
  box-shadow: 0 10px 26px rgba(22, 93, 255, 0.28);
}

.btn-success {
  color: var(--white);
  background: var(--success);
  box-shadow: 0 8px 20px rgba(14, 159, 110, 0.22);
}

.btn-success:hover {
  color: var(--white);
  background: #0B8058;
  box-shadow: 0 10px 26px rgba(14, 159, 110, 0.28);
}

.btn-secondary {
  color: var(--white);
  background: var(--ink);
}

.btn-secondary:hover {
  color: var(--white);
  background: #12345f;
}

.btn-outline {
  color: var(--ink);
  background: var(--white);
  border-color: var(--line-strong);
}

.btn-outline:hover {
  color: var(--brand);
  border-color: var(--brand);
}

.btn-ghost {
  color: var(--ink);
  background: transparent;
}

.btn-ghost:hover {
  color: var(--brand);
  background: var(--brand-50);
}

.btn-light {
  color: var(--ink);
  background: var(--white);
}

.btn-light:hover {
  color: var(--brand);
  background: #F3F7FF;
}

.btn-outline-light {
  color: var(--white);
  background: transparent;
  border-color: rgba(255, 255, 255, 0.38);
}

.btn-outline-light:hover {
  color: var(--ink);
  background: var(--white);
  border-color: var(--white);
}

.btn-sm {
  min-height: 38px;
  padding: 0 15px;
  border-radius: 8px;
  font-size: 14px;
}

.btn-lg {
  min-height: 52px;
  padding: 0 28px;
  border-radius: 12px;
  font-size: 16px;
}

.btn-block {
  width: 100%;
}

.btn:disabled,
.btn[aria-disabled="true"] {
  opacity: 0.56;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--brand);
  font-size: 14px;
  font-weight: 600;
}

.link-arrow svg {
  transition: transform 0.18s ease;
}

.link-arrow:hover svg {
  transform: translateX(3px);
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(228, 234, 245, 0.8);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: box-shadow 0.2s ease;
}

.site-header.is-scrolled {
  box-shadow: 0 8px 30px rgba(11, 37, 69, 0.07);
}

.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  height: var(--header-h);
}

.brand {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  color: var(--ink);
}

.brand img {
  width: auto;
  height: 56px;
}

.brand:hover {
  color: var(--ink);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.site-nav .nav-link {
  padding: 8px 13px;
  border-radius: 8px;
  color: #415475;
  font-size: 15px;
  font-weight: 500;
}

.site-nav .nav-link:hover {
  color: var(--brand);
  background: var(--brand-50);
}

.site-nav .nav-link[aria-current="page"] {
  color: var(--brand);
  background: var(--brand-50);
  font-weight: 600;
}

.site-nav .nav-login {
  margin-left: 8px;
  padding: 8px 12px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
}

.site-nav .nav-login:hover {
  color: var(--brand);
}

.site-nav .nav-login[aria-current="page"] {
  color: var(--brand);
}

.site-nav .nav-user {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  margin-left: 8px;
  padding: 4px 11px 4px 5px;
  border-radius: 999px;
  color: var(--ink-2);
  background: var(--brand-50);
  font-size: 13px;
  font-weight: 600;
}

.site-nav .nav-user:hover {
  color: var(--brand);
}

.nav-avatar {
  display: grid;
  flex: 0 0 auto;
  width: 27px;
  height: 27px;
  place-items: center;
  border-radius: 50%;
  color: var(--white);
  background: linear-gradient(145deg, var(--brand), #0B3AAE);
  font-size: 11px;
  font-weight: 700;
}

.nav-user-name {
  overflow: hidden;
  max-width: 112px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.site-nav .nav-cta {
  margin-left: 4px;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-open .nav-toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-open .nav-toggle span:nth-child(2) {
  opacity: 0;
}

.nav-open .nav-toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* --------------------------------------------------------------------------
   Hero (home)
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: 76px 0 72px;
  background:
    radial-gradient(900px 480px at 88% -8%, rgba(22, 93, 255, 0.14), transparent 62%),
    radial-gradient(580px 400px at -8% 30%, rgba(22, 93, 255, 0.07), transparent 70%),
    linear-gradient(180deg, #F7FAFF 0%, #FFFFFF 100%);
}

.hero::after {
  position: absolute;
  top: 0;
  right: 0;
  width: 42%;
  height: 100%;
  background-image: radial-gradient(rgba(22, 93, 255, 0.16) 1px, transparent 1px);
  background-size: 24px 24px;
  mask-image: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.5));
  -webkit-mask-image: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.5));
  content: "";
  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  align-items: center;
  gap: 60px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 22px;
  padding: 7px 13px;
  border: 1px solid #D8E4FF;
  border-radius: 999px;
  color: #2450A8;
  background: rgba(255, 255, 255, 0.76);
  font-size: 13px;
  font-weight: 600;
}

.hero-badge .pulse {
  position: relative;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand);
}

.hero-badge .pulse::after {
  position: absolute;
  inset: -4px;
  border: 1px solid rgba(22, 93, 255, 0.4);
  border-radius: 50%;
  content: "";
  animation: pulse 2.4s ease-out infinite;
}

@keyframes pulse {
  0% {
    opacity: 0.8;
    transform: scale(0.6);
  }
  70%,
  100% {
    opacity: 0;
    transform: scale(1.35);
  }
}

.hero h1 {
  max-width: 680px;
  font-size: clamp(36px, 4.6vw, 62px);
  line-height: 1.16;
  letter-spacing: -0.035em;
}

.hero h1 .brand-name {
  color: var(--ink);
}

.hero h1 .accent {
  color: var(--brand);
}

.hero-sub {
  max-width: 600px;
  margin-top: 22px;
  color: #566A8C;
  font-size: 17px;
  line-height: 1.8;
}

.hero-sub strong {
  color: var(--ink-2);
  font-weight: 600;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.hero-note {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 18px;
  margin-top: 24px;
  color: var(--muted);
  font-size: 13px;
}

.hero-note span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.hero-note svg {
  flex: 0 0 auto;
  color: var(--brand);
}

/* Hero mock stage */
.hero-visual {
  position: relative;
  display: flex;
  min-width: 0;
  justify-content: flex-end;
  padding-left: 18px;
}

.mock-window {
  position: relative;
  width: min(100%, 486px);
  overflow: hidden;
  border: 1px solid rgba(211, 220, 236, 0.9);
  border-radius: 22px;
  background: var(--white);
  box-shadow: var(--shadow-lg);
  transform: rotate(0.5deg);
}

.mock-topbar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid #EDF1F8;
  background: #FBFCFE;
}

.mock-dots {
  display: flex;
  gap: 5px;
}

.mock-dots i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #D9E1EF;
}

.mock-dots i:first-child {
  background: #FFB4A8;
}

.mock-dots i:nth-child(2) {
  background: #FFD48A;
}

.mock-dots i:nth-child(3) {
  background: #9FE0BD;
}

.mock-url {
  flex: 1;
  min-width: 0;
  padding: 5px 11px;
  overflow: hidden;
  border: 1px solid #E8EDF6;
  border-radius: 6px;
  color: #6F7F9C;
  background: var(--white);
  font-size: 11px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 9px;
  border-radius: 5px;
  color: var(--white);
  background: #E5484D;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.live-pill i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--white);
  animation: blink 1.4s ease infinite;
}

@keyframes blink {
  50% {
    opacity: 0.35;
  }
}

.mock-stage {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  color: var(--white);
  background:
    radial-gradient(420px 260px at 78% 8%, rgba(92, 190, 255, 0.6), transparent 64%),
    radial-gradient(360px 300px at 8% 100%, rgba(9, 40, 94, 0.9), transparent 70%),
    linear-gradient(136deg, #0B2545 0%, #164A9B 52%, #165DFF 100%);
}

.mock-stage::before {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.055) 1px, transparent 1px);
  background-size: 34px 34px;
  content: "";
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.8), transparent 82%);
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.8), transparent 82%);
}

.stage-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 18px;
}

.stage-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.stage-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 9px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 6px;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(8, 22, 48, 0.28);
  font-size: 10px;
  backdrop-filter: blur(4px);
}

.stage-play {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  color: var(--white);
  background: rgba(255, 255, 255, 0.16);
  transform: translate(-50%, -52%);
  backdrop-filter: blur(4px);
}

.stage-play svg {
  margin-left: 3px;
}

.stage-bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}

.stage-title {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
}

.stage-sub {
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 10px;
}

.stage-chat {
  width: 132px;
  padding: 9px 10px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 9px;
  background: rgba(5, 20, 48, 0.34);
  font-size: 9px;
  line-height: 1.7;
  backdrop-filter: blur(6px);
}

.stage-chat strong {
  color: #BCD4FF;
  font-weight: 600;
}

.stage-chat p + p {
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.82);
}

.mock-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  padding: 13px 16px 15px;
  background: var(--white);
}

.mock-stat {
  padding: 0 12px;
  border-left: 1px solid #EEF1F7;
}

.mock-stat:first-child {
  border-left: 0;
  padding-left: 0;
}

.mock-stat b {
  display: block;
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
}

.mock-stat span {
  color: var(--muted-2);
  font-size: 9px;
}

.float-card {
  position: absolute;
  bottom: 42px;
  left: -24px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  border: 1px solid #E7EDF8;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 16px 36px rgba(11, 37, 69, 0.14);
  backdrop-filter: blur(8px);
}

.float-icon {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 9px;
  color: var(--brand);
  background: var(--brand-50);
}

.float-card b {
  display: block;
  color: var(--ink);
  font-size: 12px;
  line-height: 1.3;
}

.float-card span {
  color: var(--muted);
  font-size: 10px;
}

/* Trust strip */
.trust-strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--white);
}

.trust-strip .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 0;
}

.trust-label {
  flex: 0 0 auto;
  color: var(--muted-2);
  font-size: 12px;
  letter-spacing: 0.06em;
}

.trust-items {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 32px;
}

.trust-items span {
  color: #56688A;
  font-size: 13px;
  font-weight: 500;
}

/* --------------------------------------------------------------------------
   Value / feature cards
   -------------------------------------------------------------------------- */

.value-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.value-card {
  position: relative;
  padding: 30px 28px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.value-card:hover {
  border-color: #CADBFE;
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.value-icon {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  margin-bottom: 20px;
  border-radius: 12px;
  color: var(--brand);
  background: var(--brand-50);
}

.value-card h3 {
  font-size: 20px;
}

.value-card p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.75;
}

.value-index {
  position: absolute;
  top: 22px;
  right: 24px;
  color: #E7EDF8;
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.04em;
}

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

.feature-card {
  padding: 27px 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.feature-card:hover {
  border-color: #CADBFE;
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.feature-card .icon-box {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  margin-bottom: 18px;
  border-radius: 10px;
  color: var(--brand);
  background: var(--brand-50);
}

.feature-card h3 {
  font-size: 17px;
}

.feature-card p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.75;
}

/* Scenarios */
.scene-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.scene-card {
  position: relative;
  min-height: 196px;
  padding: 30px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.scene-card:hover {
  border-color: #CADBFE;
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.scene-card::after {
  position: absolute;
  right: 18px;
  bottom: -22px;
  color: #F0F4FB;
  font-size: 108px;
  font-weight: 800;
  letter-spacing: -0.06em;
  line-height: 1;
  content: attr(data-index);
  pointer-events: none;
}

.scene-card > * {
  position: relative;
  z-index: 1;
}

.scene-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 10px;
  border-radius: 6px;
  color: var(--brand);
  background: var(--brand-50);
  font-size: 12px;
  font-weight: 600;
}

.scene-card h3 {
  margin-top: 20px;
  font-size: 21px;
}

.scene-card p {
  max-width: 430px;
  margin-top: 9px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.75;
}

/* --------------------------------------------------------------------------
   Pricing cards
   -------------------------------------------------------------------------- */

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

.plan-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 25px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.plan-card:hover {
  border-color: #CADBFE;
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.plan-card.is-featured {
  border-color: var(--brand);
  box-shadow: 0 16px 44px rgba(22, 93, 255, 0.15);
}

.plan-card.is-featured::before {
  position: absolute;
  top: 0;
  right: 22px;
  left: 22px;
  height: 3px;
  border-radius: 0 0 4px 4px;
  background: var(--brand);
  content: "";
}

.plan-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  padding: 4px 11px;
  border-radius: 999px;
  color: var(--white);
  background: var(--brand);
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  transform: translateX(-50%);
}

.plan-name {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 700;
}

.plan-name span {
  padding: 2px 7px;
  border-radius: 5px;
  color: var(--muted);
  background: var(--bg);
  font-size: 10px;
  font-weight: 500;
}

.plan-price {
  display: flex;
  align-items: baseline;
  gap: 2px;
  margin-top: 18px;
  color: var(--ink);
}

.plan-price .currency {
  font-size: 16px;
  font-weight: 700;
}

.plan-price strong {
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
}

.plan-price .suffix {
  margin-left: 4px;
  color: var(--muted);
  font-size: 12px;
}

.plan-traffic {
  margin-top: 8px;
  color: var(--ink-2);
  font-size: 14px;
  font-weight: 600;
}

.plan-unit {
  margin-top: 4px;
  color: var(--muted-2);
  font-size: 12px;
}

.plan-fit {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.plan-card .btn {
  margin-top: 20px;
}

.plan-card--compact {
  padding: 20px 18px;
}

.plan-card--compact .plan-price strong {
  font-size: 29px;
}

.plan-card--compact .plan-fit {
  min-height: 50px;
}

.policy-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 30px;
}

.policy-item {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg-soft);
}

.policy-item svg {
  flex: 0 0 auto;
  margin-top: 2px;
  color: var(--brand);
}

.policy-item b {
  display: block;
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 600;
}

.policy-item span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

/* --------------------------------------------------------------------------
   Page hero (inner pages)
   -------------------------------------------------------------------------- */

.page-hero {
  position: relative;
  overflow: hidden;
  padding: 72px 0 60px;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(700px 340px at 88% -20%, rgba(22, 93, 255, 0.12), transparent 70%),
    linear-gradient(180deg, #F7FAFF, #FFFFFF);
}

.page-hero .container {
  position: relative;
  z-index: 1;
}

.page-hero h1 {
  max-width: 780px;
  font-size: clamp(32px, 3.8vw, 50px);
  line-height: 1.22;
}

.page-hero .lead {
  max-width: 720px;
  margin-top: 18px;
  color: #5D6F8F;
  font-size: 17px;
  line-height: 1.8;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 11px;
  border: 1px solid #DCE6F8;
  border-radius: 999px;
  color: #415A86;
  background: rgba(255, 255, 255, 0.8);
  font-size: 12px;
  font-weight: 500;
}

.chip svg {
  color: var(--brand);
}

/* --------------------------------------------------------------------------
   Product page
   -------------------------------------------------------------------------- */

.notice-banner {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 24px 26px;
  border: 1px solid #D8E4FF;
  border-radius: var(--radius);
  background: linear-gradient(110deg, #F3F7FF, #FAFCFF);
}

.notice-icon {
  display: grid;
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 11px;
  color: var(--brand);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.notice-banner h3 {
  font-size: 17px;
}

.notice-banner p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.75;
}

.notice-banner strong {
  color: var(--ink-2);
  font-weight: 600;
}

.feature-groups {
  border-top: 1px solid var(--line);
}

.feature-group {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 52px;
  padding: 54px 0;
  border-bottom: 1px solid var(--line);
}

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

.feature-group-intro .group-icon {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  margin-bottom: 16px;
  border-radius: 11px;
  color: var(--brand);
  background: var(--brand-50);
}

.feature-group-intro h2 {
  font-size: 22px;
}

.feature-group-intro p {
  margin-top: 9px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.75;
}

.group-count {
  display: inline-block;
  margin-top: 14px;
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
}

.feature-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.feature-item:hover {
  border-color: #C9D9F8;
  box-shadow: var(--shadow-sm);
}

.feature-check {
  display: grid;
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  place-items: center;
  border-radius: 7px;
  color: var(--brand);
  background: var(--brand-50);
}

.feature-item h3 {
  font-size: 14px;
  line-height: 1.5;
}

.feature-item p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.65;
}

/* --------------------------------------------------------------------------
   Pricing page
   -------------------------------------------------------------------------- */

.calc-section {
  background:
    radial-gradient(720px 360px at 12% 0%, rgba(22, 93, 255, 0.07), transparent 66%),
    var(--bg);
}

.calc-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 28px;
  align-items: start;
}

.calc-panel {
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow);
}

.calc-panel h2 {
  font-size: 23px;
}

.calc-panel > p {
  margin-top: 7px;
  color: var(--muted);
  font-size: 13px;
}

.calc-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 24px;
}

.calc-form .form-field:first-child {
  grid-column: 1 / -1;
}

.check-field {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  grid-column: 1 / -1;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg-soft);
  cursor: pointer;
}

.check-field input {
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  accent-color: var(--brand);
  flex: 0 0 auto;
}

.check-field b {
  display: block;
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 600;
}

.check-field span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.calc-results {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.calc-summary {
  padding: 28px 30px;
  border-radius: var(--radius-lg);
  color: var(--white);
  background:
    radial-gradient(320px 220px at 100% 0%, rgba(100, 160, 255, 0.44), transparent 65%),
    linear-gradient(135deg, #0B2545, #123B78);
  box-shadow: var(--shadow);
}

.calc-summary-label {
  color: rgba(255, 255, 255, 0.62);
  font-size: 12px;
  letter-spacing: 0.08em;
}

.calc-summary-value {
  display: flex;
  align-items: baseline;
  gap: 7px;
  margin-top: 8px;
}

.calc-summary-value strong {
  font-size: clamp(36px, 4vw, 48px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.05;
}

.calc-summary-value span {
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
}

.calc-summary-meta {
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.66);
  font-size: 12px;
  line-height: 1.7;
}

.calc-prices {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.calc-price-card {
  position: relative;
  padding: 17px 16px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--white);
}

.calc-price-card.is-best {
  border-color: var(--brand);
  box-shadow: 0 8px 24px rgba(22, 93, 255, 0.13);
}

.best-tag {
  position: absolute;
  top: -9px;
  right: 12px;
  padding: 2px 7px;
  border-radius: 999px;
  color: var(--white);
  background: var(--brand);
  font-size: 9px;
  font-weight: 600;
}

.calc-price-card .label {
  color: var(--muted);
  font-size: 11px;
}

.calc-price-card .amount {
  margin-top: 5px;
  color: var(--ink);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.calc-price-card .packs {
  margin-top: 4px;
  color: var(--muted-2);
  font-size: 10px;
  line-height: 1.5;
}

.calc-note {
  padding: 14px 16px;
  border: 1px dashed #D8E2F3;
  border-radius: 10px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.55);
  font-size: 11px;
  line-height: 1.65;
}

.calc-note strong {
  color: var(--ink-2);
  font-weight: 600;
}

.formula-line {
  margin-top: 15px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.62);
  font-size: 11px;
  line-height: 1.6;
}

/* FAQ */
.faq-list {
  max-width: 900px;
  margin-inline: auto;
  border-top: 1px solid var(--line);
}

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 4px;
  color: var(--ink);
  font-size: 16px;
  font-weight: 600;
  list-style: none;
  cursor: pointer;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  display: grid;
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--muted);
  font-size: 16px;
  font-weight: 400;
  content: "+";
  transition: transform 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.faq-item[open] summary::after {
  border-color: var(--brand);
  color: var(--brand);
  content: "−";
}

.faq-item .faq-answer {
  max-width: 760px;
  padding: 0 4px 24px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.85;
}

.faq-item .faq-answer p + p {
  margin-top: 8px;
}

/* --------------------------------------------------------------------------
   About page
   -------------------------------------------------------------------------- */

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 370px;
  gap: 64px;
  align-items: start;
}

.prose h2 {
  margin-top: 40px;
  font-size: 24px;
}

.prose h2:first-child {
  margin-top: 0;
}

.prose p {
  margin-top: 14px;
  color: var(--text);
  font-size: 15px;
  line-height: 1.9;
}

.prose strong {
  color: var(--ink-2);
  font-weight: 600;
}

.fact-card {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(160deg, #F5F9FF, #FFFFFF);
  box-shadow: var(--shadow-sm);
}

.fact-card h3 {
  font-size: 16px;
}

.fact-list {
  margin-top: 18px;
}

.fact-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 11px 0;
  border-top: 1px solid #E9EFF9;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.fact-list li:first-child {
  border-top: 0;
  padding-top: 0;
}

.fact-list svg {
  flex: 0 0 auto;
  margin-top: 2px;
  color: var(--brand);
}

.fact-list b {
  color: var(--ink-2);
  font-weight: 600;
}

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

.tech-card {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.tech-card .tech-kicker {
  color: var(--brand);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.07em;
}

.tech-card h3 {
  margin-top: 11px;
  font-size: 19px;
}

.tech-card p {
  margin-top: 9px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.75;
}

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

.commit-card {
  padding: 24px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.commit-card .commit-num {
  color: var(--brand);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
}

.commit-card h3 {
  margin-top: 12px;
  font-size: 16px;
}

.commit-card p {
  margin-top: 7px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

.contact-band {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 40px;
  padding: 40px;
  border: 1px solid #D8E4FF;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(440px 260px at 100% 0%, rgba(22, 93, 255, 0.1), transparent 70%),
    linear-gradient(110deg, #F5F9FF, #FFFFFF);
}

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

.contact-band p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}

.contact-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-content: start;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 13px 15px;
  border: 1px solid #E2EAF8;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.75);
}

.contact-item svg {
  flex: 0 0 auto;
  margin-top: 2px;
  color: var(--brand);
}

.contact-item b {
  display: block;
  color: var(--ink-2);
  font-size: 12px;
  font-weight: 600;
}

.contact-item span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.compliance-note {
  padding: 22px 24px;
  border-left: 3px solid var(--brand);
  border-radius: 0 10px 10px 0;
  background: var(--bg-soft);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.8;
}

.compliance-note strong {
  color: var(--ink-2);
}

/* --------------------------------------------------------------------------
   CTA band
   -------------------------------------------------------------------------- */

.cta-band {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
  padding: 52px 56px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  color: var(--white);
  background:
    radial-gradient(520px 360px at 92% -40%, rgba(90, 160, 255, 0.65), transparent 68%),
    radial-gradient(420px 300px at 0% 120%, rgba(30, 90, 200, 0.55), transparent 70%),
    linear-gradient(135deg, #0B2545, #12417F);
}

.cta-band::after {
  position: absolute;
  right: 16%;
  bottom: -110px;
  width: 280px;
  height: 280px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.cta-band > * {
  position: relative;
  z-index: 1;
}

.cta-band h2 {
  max-width: 660px;
  color: var(--white);
  font-size: clamp(24px, 2.8vw, 36px);
}

.cta-band p {
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.66);
  font-size: 14px;
}

.cta-actions {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  gap: 10px;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
  padding: 58px 0 0;
  color: rgba(255, 255, 255, 0.62);
  background: #081C36;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 0.7fr));
  gap: 44px;
  padding-bottom: 44px;
}

.footer-brand img {
  width: auto;
  height: 58px;
  filter: brightness(0) invert(1);
  opacity: 0.96;
}

.footer-brand p {
  max-width: 330px;
  margin-top: 16px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 13px;
  line-height: 1.8;
}

.footer-note {
  display: inline-flex;
  margin-top: 16px;
  padding: 5px 9px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 5px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 11px;
}

.footer-col h4 {
  color: rgba(255, 255, 255, 0.92);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.footer-col ul {
  margin-top: 14px;
}

.footer-col li + li {
  margin-top: 8px;
}

.footer-col a,
.footer-col button {
  padding: 0;
  border: 0;
  color: rgba(255, 255, 255, 0.52);
  background: transparent;
  font-size: 12px;
  text-align: left;
}

.footer-col a:hover,
.footer-col button:hover {
  color: var(--white);
}

.footer-contact {
  color: rgba(255, 255, 255, 0.52);
  font-size: 12px;
  line-height: 1.8;
}

.footer-contact span {
  display: block;
  overflow-wrap: anywhere;
}

.footer-contact b {
  display: block;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 600;
}

.footer-contact .spacer {
  display: block;
  height: 8px;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  color: rgba(255, 255, 255, 0.4);
  font-size: 11px;
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.52);
}

.footer-bottom a:hover {
  color: var(--white);
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
}

/* --------------------------------------------------------------------------
   Authentication
   -------------------------------------------------------------------------- */

.auth-section {
  padding: 54px 0 72px;
  background:
    radial-gradient(780px 420px at 12% 12%, rgba(22, 93, 255, 0.09), transparent 66%),
    radial-gradient(600px 360px at 96% 78%, rgba(22, 93, 255, 0.06), transparent 70%),
    var(--bg);
}

.auth-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.96fr) minmax(0, 1.04fr);
  max-width: 1060px;
  margin-inline: auto;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-lg);
}

.auth-aside {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 38px;
  overflow: hidden;
  padding: 48px 44px;
  color: var(--white);
  background:
    radial-gradient(380px 300px at 90% 0%, rgba(74, 144, 255, 0.55), transparent 64%),
    linear-gradient(145deg, #081C36 0%, #0E3266 58%, #165DFF 145%);
}

.auth-aside::before {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 32px 32px;
  content: "";
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.8), transparent 88%);
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.8), transparent 88%);
}

.auth-aside > * {
  position: relative;
  z-index: 1;
}

.auth-logo img {
  width: auto;
  height: 48px;
  filter: brightness(0) invert(1);
}

.auth-aside h1 {
  color: var(--white);
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.35;
}

.auth-aside .aside-lead {
  margin-top: 14px;
  color: rgba(255, 255, 255, 0.66);
  font-size: 14px;
  line-height: 1.8;
}

.auth-points {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.auth-points li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: rgba(255, 255, 255, 0.75);
  font-size: 13px;
  line-height: 1.65;
}

.auth-points svg {
  flex: 0 0 auto;
  margin-top: 2px;
  color: #84B1FF;
}

.auth-aside-foot {
  color: rgba(255, 255, 255, 0.36);
  font-size: 11px;
  line-height: 1.6;
}

.auth-main {
  padding: 48px 52px;
}

.auth-main .eyebrow {
  margin-bottom: 10px;
}

.auth-main h2 {
  font-size: clamp(26px, 3vw, 32px);
}

.auth-intro {
  margin-top: 9px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 17px;
  margin-top: 28px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 0;
}

.form-field > label,
.form-label {
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 600;
}

.form-hint {
  color: var(--muted-2);
  font-size: 11px;
  line-height: 1.55;
}

.input-wrap {
  display: flex;
  align-items: center;
  min-height: 50px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--white);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.input-wrap:focus-within {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(22, 93, 255, 0.12);
}

.input-wrap .phone-prefix {
  display: inline-flex;
  align-items: center;
  align-self: stretch;
  padding: 0 14px;
  border-right: 1px solid var(--line);
  color: var(--muted);
  background: var(--bg-soft);
  font-size: 14px;
  white-space: nowrap;
}

.input,
input.input {
  width: 100%;
  min-width: 0;
  min-height: 48px;
  padding: 0 14px;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
  font-size: 15px;
}

.input::placeholder {
  color: #A5B1C6;
}

.input-wrap.is-invalid {
  border-color: #E9A6A6;
}

.input-wrap.is-invalid:focus-within {
  box-shadow: 0 0 0 3px rgba(217, 45, 32, 0.1);
}

.code-row {
  display: flex;
  gap: 10px;
  align-items: stretch;
}

.code-row .input-wrap {
  flex: 1;
  min-width: 0;
}

.code-row .btn {
  flex: 0 0 auto;
  min-width: 122px;
  padding: 0 15px;
  font-size: 13px;
}

.form-message {
  padding: 10px 13px;
  border: 1px solid #F1C7C3;
  border-radius: 8px;
  color: #9A2A21;
  background: #FEF4F3;
  font-size: 12px;
  line-height: 1.6;
}

.form-message.is-success {
  border-color: #BCE6D5;
  color: #087A55;
  background: #F1FBF7;
}

.form-message.is-info {
  border-color: #D8E4FF;
  color: #31579B;
  background: #F5F8FF;
}

.mock-code {
  margin-top: -7px;
  color: var(--muted-2);
  font-size: 11px;
  line-height: 1.6;
}

.mock-code code {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
}

.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
  cursor: pointer;
}

.checkbox-row input {
  flex: 0 0 auto;
  width: 17px;
  height: 17px;
  margin: 2px 0 0;
  accent-color: var(--brand);
}

.checkbox-row a {
  color: var(--brand);
  font-weight: 500;
}

.auth-submit {
  margin-top: 2px;
}

.auth-foot-note {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted-2);
  font-size: 11px;
}

.auth-foot-note a {
  color: var(--muted);
}

.auth-foot-note a:hover {
  color: var(--brand);
}

/* --------------------------------------------------------------------------
   Console
   -------------------------------------------------------------------------- */

.console-section {
  min-height: calc(100vh - var(--header-h) - 320px);
  padding: 38px 0 80px;
  background: var(--bg);
}

.console-top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 26px;
}

.console-top .eyebrow {
  margin-bottom: 6px;
}

.console-top h1 {
  font-size: clamp(26px, 3vw, 36px);
}

.console-top .console-desc {
  margin-top: 7px;
  color: var(--muted);
  font-size: 13px;
}

.console-user {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 13px 9px 10px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.console-avatar {
  display: grid;
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 10px;
  color: var(--white);
  background: linear-gradient(145deg, var(--brand), #0B3AAE);
  font-size: 15px;
  font-weight: 700;
}

.console-user-meta {
  min-width: 0;
}

.console-user-meta b {
  display: block;
  overflow: hidden;
  max-width: 180px;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.console-user-meta span {
  display: block;
  color: var(--muted-2);
  font-size: 10px;
}

.console-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 300px;
  color: var(--muted);
  font-size: 13px;
}

.spinner {
  width: 20px;
  height: 20px;
  border: 2px solid #D8E2F5;
  border-top-color: var(--brand);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.console-error {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 26px;
  border: 1px solid #F1C7C3;
  border-radius: var(--radius);
  background: #FFF9F8;
}

.console-error-icon {
  display: grid;
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 10px;
  color: var(--danger);
  background: #FEEDEB;
}

.console-error h2 {
  font-size: 18px;
}

.console-error p {
  margin-top: 5px;
  color: var(--muted);
  font-size: 13px;
}

.console-error-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

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

.panel {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 16px;
  border-bottom: 1px solid #EEF2F9;
}

.panel-head h2 {
  font-size: 17px;
}

.panel-head p {
  margin-top: 4px;
  color: var(--muted-2);
  font-size: 11px;
}

.panel-icon {
  display: grid;
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 9px;
  color: var(--brand);
  background: var(--brand-50);
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  border-radius: 999px;
  color: #087A55;
  background: #ECFAF4;
  font-size: 10px;
  font-weight: 600;
  white-space: nowrap;
}

.status-badge::before {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #0E9F6E;
  content: "";
}

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

.status-badge--muted::before {
  background: var(--muted-2);
}

.panel-body {
  flex: 1;
  padding-top: 18px;
}

.account-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.account-item {
  padding: 13px 14px;
  border: 1px solid #EEF2F9;
  border-radius: 10px;
  background: var(--bg-soft);
}

.account-item span {
  display: block;
  color: var(--muted-2);
  font-size: 10px;
}

.account-item b {
  display: block;
  margin-top: 4px;
  overflow: hidden;
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.panel-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.nickname-editor {
  margin-top: 18px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg-soft);
}

.nickname-editor .form-label {
  display: block;
  margin-bottom: 7px;
}

.nickname-editor .input-wrap {
  background: var(--white);
}

.nickname-editor .form-hint {
  margin-top: 7px;
}

.nickname-editor .form-message {
  margin-top: 10px;
}

.nickname-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 14px;
}

.placeholder-box {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 112px;
  padding: 18px;
  border: 1px dashed #D8E2F3;
  border-radius: 12px;
  background: var(--bg-soft);
}

.placeholder-box strong {
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 600;
}

.placeholder-box p {
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

.placeholder-code {
  display: inline-flex;
  margin-top: 9px;
  padding: 4px 8px;
  border: 1px solid #E2EAF8;
  border-radius: 5px;
  color: var(--muted);
  background: var(--white);
  font-family: var(--font-mono);
  font-size: 11px;
}

.traffic-placeholder {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.traffic-cell {
  padding: 15px;
  border: 1px solid #EEF2F9;
  border-radius: 10px;
  background: var(--bg-soft);
}

.traffic-cell span {
  display: block;
  color: var(--muted-2);
  font-size: 10px;
}

.traffic-cell b {
  display: block;
  margin-top: 5px;
  color: var(--ink);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.traffic-cell small {
  display: block;
  margin-top: 3px;
  color: var(--muted-2);
  font-size: 10px;
}

.traffic-bar {
  height: 7px;
  margin-top: 15px;
  overflow: hidden;
  border-radius: 999px;
  background: #EDF2FB;
}

.traffic-bar i {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--brand), #66A0FF);
}

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 152px;
  padding: 20px;
  border: 1px dashed #D8E2F3;
  border-radius: 12px;
  background: var(--bg-soft);
  text-align: center;
}

.empty-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 11px;
  color: var(--brand);
  background: var(--brand-50);
}

.empty-state strong {
  margin-top: 11px;
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 600;
}

.empty-state p {
  max-width: 280px;
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.7;
}

.empty-state .btn {
  margin-top: 13px;
}

/* --------------------------------------------------------------------------
   Toast
   -------------------------------------------------------------------------- */

.toast-region {
  position: fixed;
  top: 94px;
  right: 20px;
  z-index: 120;
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: min(360px, calc(100vw - 32px));
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--brand);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 12px 36px rgba(11, 37, 69, 0.16);
  color: var(--ink-2);
  font-size: 13px;
  line-height: 1.6;
  pointer-events: auto;
  animation: toast-in 0.22s ease-out;
}

.toast--error {
  border-left-color: var(--danger);
}

.toast--success {
  border-left-color: var(--success);
}

.toast svg {
  flex: 0 0 auto;
  margin-top: 1px;
}

.toast--error svg {
  color: var(--danger);
}

.toast--success svg {
  color: var(--success);
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1120px) {
  .plan-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .hero-grid {
    gap: 38px;
  }

  .float-card {
    left: -10px;
  }

  .footer-grid {
    gap: 30px;
  }
}

@media (max-width: 960px) {
  .container {
    width: min(var(--container), calc(100% - 40px));
  }

  .section {
    padding: 72px 0;
  }

  .nav-toggle {
    display: flex;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 1px);
    right: 0;
    left: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 3px;
    padding: 12px 20px 18px;
    border-bottom: 1px solid var(--line);
    background: var(--white);
    box-shadow: 0 18px 36px rgba(11, 37, 69, 0.1);
  }

  .nav-open .site-nav {
    display: flex;
  }

  .site-nav .nav-link,
  .site-nav .nav-login,
  .site-nav .nav-user {
    margin: 0;
    padding: 11px 12px;
    border-radius: 8px;
  }

  .site-nav .nav-user {
    justify-content: flex-start;
    background: var(--brand-50);
  }

  .nav-user-name {
    max-width: none;
  }

  .site-nav .nav-cta {
    margin: 8px 0 0;
    width: 100%;
  }

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

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

  .hero {
    padding: 58px 0 54px;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 46px;
  }

  .hero h1,
  .hero-sub {
    max-width: 720px;
  }

  .hero-visual {
    justify-content: center;
    padding-left: 0;
  }

  .mock-window {
    width: min(100%, 540px);
  }

  .float-card {
    left: 8px;
    bottom: 24px;
  }

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

  .value-card:last-child {
    grid-column: 1 / -1;
  }

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

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

  .feature-group {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    padding: 40px 0;
  }

  .feature-group-intro {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    column-gap: 14px;
    align-items: start;
  }

  .feature-group-intro .group-icon {
    margin: 0;
  }

  .feature-group-intro p,
  .feature-group-intro .group-count {
    grid-column: 2;
  }

  .feature-group-intro h2 {
    grid-column: 2;
    grid-row: 1;
    align-self: center;
  }

  .calc-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .about-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 36px;
  }

  .fact-card {
    position: static;
  }

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

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

  .contact-band {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    padding: 32px;
  }

  .cta-band {
    align-items: flex-start;
    flex-direction: column;
    padding: 42px 40px;
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 34px;
  }

  .auth-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .auth-aside {
    padding: 38px 40px;
  }

  .auth-points {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
  }

  .auth-main {
    padding: 42px 44px;
  }

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

  .console-top {
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
  }

  .console-user {
    width: 100%;
  }

  .console-user-meta {
    flex: 1;
  }

  .console-user-meta b {
    max-width: none;
  }
}

@media (max-width: 640px) {
  .container {
    width: calc(100% - 32px);
  }

  .section {
    padding: 58px 0;
  }

  .section--tight {
    padding: 48px 0;
  }

  .section-head {
    margin-bottom: 30px;
  }

  .section-head .lead,
  .page-hero .lead {
    font-size: 15px;
  }

  .brand img {
    height: 44px;
  }

  .header-inner {
    height: 66px;
  }

  .site-nav {
    padding-inline: 16px;
  }

  .hero {
    padding: 46px 0 42px;
  }

  .hero h1 {
    font-size: clamp(32px, 9vw, 42px);
  }

  .hero-sub {
    margin-top: 16px;
    font-size: 15px;
  }

  .hero-actions {
    gap: 10px;
    margin-top: 24px;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .hero-note {
    gap: 8px 14px;
    margin-top: 18px;
  }

  .float-card {
    display: none;
  }

  .mock-stage .stage-chat {
    width: 112px;
  }

  .mock-stats {
    padding: 11px 13px 13px;
  }

  .mock-stat b {
    font-size: 12px;
  }

  .mock-stat span {
    font-size: 8px;
  }

  .trust-strip .container {
    align-items: flex-start;
    flex-direction: column;
    gap: 9px;
    padding: 15px 0;
  }

  .trust-items {
    gap: 7px 16px;
  }

  .value-grid,
  .feature-grid,
  .scene-grid,
  .plan-grid,
  .tech-grid,
  .commit-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .value-card:last-child {
    grid-column: auto;
  }

  .value-card,
  .feature-card,
  .scene-card {
    padding: 23px 22px;
  }

  .scene-card {
    min-height: 0;
  }

  .plan-card {
    padding: 24px 22px;
  }

  .page-hero {
    padding: 48px 0 40px;
  }

  .page-hero h1 {
    font-size: clamp(28px, 8vw, 38px);
  }

  .notice-banner {
    padding: 20px;
    gap: 12px;
  }

  .feature-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .feature-group {
    padding: 34px 0;
  }

  .calc-panel {
    padding: 22px 20px;
  }

  .calc-form {
    grid-template-columns: minmax(0, 1fr);
  }

  .calc-form .form-field:first-child,
  .check-field {
    grid-column: auto;
  }

  .calc-summary {
    padding: 24px 22px;
  }

  .calc-prices {
    grid-template-columns: minmax(0, 1fr);
  }

  .faq-item summary {
    padding: 18px 2px;
    font-size: 15px;
  }

  .about-grid {
    gap: 28px;
  }

  .prose h2 {
    margin-top: 30px;
    font-size: 21px;
  }

  .prose p {
    font-size: 14px;
  }

  .contact-band {
    padding: 24px 20px;
  }

  .contact-band h2 {
    font-size: 22px;
  }

  .cta-band {
    padding: 32px 24px;
    border-radius: 18px;
  }

  .cta-actions {
    width: 100%;
  }

  .cta-actions .btn {
    width: 100%;
  }

  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
    padding-bottom: 32px;
  }

  .footer-brand img {
    height: 48px;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .auth-section {
    padding: 26px 0 46px;
  }

  .auth-aside {
    display: none;
  }

  .auth-layout {
    border-radius: 18px;
  }

  .auth-main {
    padding: 30px 22px;
  }

  .auth-form {
    margin-top: 22px;
  }

  .code-row .btn {
    min-width: 108px;
    padding: 0 11px;
    font-size: 12px;
  }

  .auth-foot-note {
    flex-direction: column;
    gap: 7px;
  }

  .console-section {
    padding: 26px 0 56px;
  }

  .console-top h1 {
    font-size: 27px;
  }

  .console-user {
    padding: 8px 10px;
  }

  .console-avatar {
    width: 36px;
    height: 36px;
    font-size: 13px;
  }

  .panel {
    padding: 21px 19px;
  }

  .account-list,
  .traffic-placeholder {
    grid-template-columns: minmax(0, 1fr);
  }

  .toast-region {
    top: 78px;
    right: 12px;
    width: calc(100vw - 24px);
  }
}

/* --------------------------------------------------------------------------
   Motion preferences / print
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media print {
  .site-header,
  .site-footer,
  .cta-band,
  .toast-region,
  .nav-toggle {
    display: none !important;
  }

  body {
    background: #fff;
  }

  .section {
    padding: 24px 0;
  }
}

/* ==========================================================================
   本域直播 · v1.1 控制台 / 观看页 / 协议页
   ========================================================================== */

body.modal-open {
  overflow: hidden;
}

/* Console shell */
.console-top {
  align-items: flex-end;
}

.account-strip {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  margin-bottom: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.account-avatar {
  flex: 0 0 auto;
}

.account-info {
  flex: 1;
  min-width: 0;
}

.account-info strong {
  display: block;
  overflow: hidden;
  color: var(--ink);
  font-size: 15px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-info > span {
  display: block;
  margin-top: 3px;
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.6;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-info i {
  margin: 0 6px;
  color: var(--muted-2);
  font-style: normal;
}

.account-actions {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  gap: 8px;
}

.nickname-editor {
  margin-top: -4px;
}

.console-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 20px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.console-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 18px;
  border: 0;
  border-radius: 9px;
  color: var(--muted);
  background: transparent;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.18s ease, background-color 0.18s ease;
}

.console-tab:hover {
  color: var(--brand);
  background: var(--brand-50);
}

.console-tab.is-active {
  color: var(--white);
  background: var(--brand);
  box-shadow: 0 6px 16px rgba(22, 93, 255, 0.22);
}

.tab-count {
  display: inline-grid;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  place-items: center;
  border-radius: 999px;
  color: var(--muted);
  background: var(--bg);
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
}

.console-tab.is-active .tab-count {
  color: var(--brand);
  background: var(--white);
}

.console-panel {
  min-width: 0;
}

.console-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.console-panel-head h2 {
  font-size: 20px;
}

.console-panel-head p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.console-panel-head .btn {
  flex: 0 0 auto;
}

.console-subhead {
  margin: 26px 0 12px;
  color: var(--ink-2);
  font-size: 15px;
}

.section-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 140px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  background: var(--white);
  font-size: 12px;
}

.in-section-error {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  border: 1px solid #F1C7C3;
  border-radius: var(--radius);
  color: #9A2A21;
  background: #FFF9F8;
  font-size: 13px;
}

.field-inline {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
  flex-wrap: wrap;
}

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

.start-method {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  text-align: left;
  font-family: inherit;
  cursor: pointer;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.start-method:hover {
  border-color: #C9D9F8;
}

.start-method.is-active {
  border-color: var(--brand);
  box-shadow: 0 0 0 2px rgba(22, 93, 255, 0.12);
}

.start-method strong {
  display: block;
  color: var(--ink);
  font-size: 14px;
}

.start-method span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.start-method-panel {
  margin-top: 16px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg-soft);
}

.start-panel-note {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.start-panel-warn {
  color: #9A2A21;
  font-size: 13px;
  line-height: 1.7;
}

.obs-params {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.obs-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.obs-row > span {
  width: 52px;
  color: var(--muted);
  font-size: 12px;
}

.obs-row code {
  flex: 1;
  min-width: 0;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  font-size: 12px;
  word-break: break-all;
}

.start-modal-card {
  max-width: 580px;
}

@media (max-width: 640px) {
  .start-methods {
    grid-template-columns: 1fr;
  }
}

.subaccount-create {
  margin-bottom: 22px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.subaccount-form {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
  gap: 12px;
  align-items: end;
}

.subaccount-form-actions {
  align-self: end;
}

.subaccount-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.subaccount-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
}

.subaccount-info strong {
  display: block;
  font-size: 15px;
}

.subaccount-meta {
  color: var(--muted);
  font-size: 13px;
}

.subaccount-actions {
  display: flex;
  gap: 8px;
}

@media (max-width: 860px) {
  .subaccount-form {
    grid-template-columns: 1fr;
  }

  .subaccount-row {
    flex-direction: column;
    align-items: flex-start;
  }
}

.room-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.room-card {
  display: flex;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.room-card:hover {
  border-color: #C9D9F8;
  box-shadow: var(--shadow);
}

.room-cover {
  position: relative;
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  justify-content: space-between;
  width: 240px;
  height: 135px;
  min-height: 0;
  align-self: center;
  padding: 14px;
  overflow: hidden;
  color: var(--white);
  background:
    radial-gradient(220px 160px at 82% 10%, rgba(111, 172, 255, 0.8), transparent 70%),
    linear-gradient(140deg, #0B2545, #165DFF);
}

.room-cover--portrait {
  width: 240px;
  height: 135px;
  background: #E9EDF3;
}

.room-cover--portrait .room-cover-img {
  object-fit: contain;
}

.room-cover-mode {
  position: relative;
  z-index: 2;
  align-self: flex-start;
  padding: 3px 7px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 4px;
  color: rgba(255, 255, 255, 0.84);
  background: rgba(5, 20, 48, 0.22);
  font-size: 9px;
}

.room-cover-title {
  max-width: 100%;
  overflow: hidden;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.room-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
  padding: 16px 18px 14px;
}

.room-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.room-title-row h3 {
  min-width: 0;
  overflow: hidden;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.45;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.room-meta {
  margin-top: 5px;
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.6;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.room-shortline {
  color: var(--muted-2);
}

.room-shortline a {
  color: var(--brand);
}

.room-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 7px;
  margin-top: auto;
  padding-top: 13px;
}

.room-actions-main,
.room-actions-side {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.room-actions-side {
  margin-left: auto;
}

.room-actions .btn {
  min-height: 32px;
  padding: 0 10px;
  font-size: 11px;
}

.room-delete {
  color: #B42318;
}

.room-delete:hover {
  color: #8F1D14;
  background: #FEF3F2;
}

.status-pill {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 600;
  white-space: nowrap;
}

.status-pill::before {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  content: "";
}

.status-pill--draft {
  color: #667085;
  background: #F2F4F7;
}

.status-pill--live {
  color: #C4320A;
  background: #FFF4ED;
}

.status-pill--live::before {
  animation: blink 1.4s ease infinite;
}

.status-pill--ended {
  color: #475467;
  background: #F2F4F7;
}

.status-pill--order-pending {
  color: #B54708;
  background: #FFFAEB;
}

.status-pill--order-paid {
  color: #087A55;
  background: #ECFAF4;
}

.status-pill--order-cancelled {
  color: #667085;
  background: #F2F4F7;
}

.status-pill--order-refunded {
  color: #344054;
  background: #F2F4F7;
}

.room-empty {
  margin-top: 0;
}

/* Wallet */
.wallet-summary {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 30px;
  border: 1px solid #D8E4FF;
  border-radius: var(--radius);
  background:
    radial-gradient(360px 220px at 100% 0%, rgba(22, 93, 255, 0.1), transparent 70%),
    linear-gradient(120deg, #F5F9FF, #FFFFFF);
}

.wallet-label {
  color: var(--muted);
  font-size: 12px;
}

.wallet-balance {
  display: flex;
  align-items: baseline;
  gap: 7px;
  margin-top: 4px;
}

.wallet-balance strong {
  color: var(--ink);
  font-size: clamp(34px, 4vw, 46px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.1;
}

.wallet-balance span {
  color: var(--muted);
  font-size: 14px;
}

.wallet-hint {
  max-width: 360px;
  color: var(--muted-2);
  font-size: 11px;
  line-height: 1.7;
  text-align: right;
}

.wallet-payment {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 14px;
  padding: 16px 20px;
  border: 1px solid #F5D38A;
  border-radius: 12px;
  background: #FFFAEB;
}

.wallet-payment strong {
  display: block;
  color: #7A3A00;
  font-size: 13px;
}

.wallet-payment p {
  margin-top: 3px;
  color: #936316;
  font-size: 11px;
  line-height: 1.6;
}

.wallet-packs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.wallet-pack {
  display: flex;
  flex-direction: column;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--white);
}

.wallet-pack-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.wallet-pack-head h3 {
  font-size: 14px;
}

.wallet-pack-head span {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 11px;
}

.wallet-pack-price {
  margin-top: 14px;
  color: var(--ink);
  font-size: 25px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.wallet-pack-price small {
  color: var(--muted-2);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0;
}

.wallet-pack-unit {
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
}

.wallet-pack .btn {
  margin-top: 14px;
}

.wallet-logs {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
}

.wallet-log {
  display: grid;
  grid-template-columns: 140px 64px 105px 120px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 12px 16px;
  border-top: 1px solid #EEF2F9;
  color: var(--muted);
  font-size: 11px;
}

.wallet-log:first-child {
  border-top: 0;
}

.log-kind {
  display: inline-flex;
  justify-self: start;
  padding: 2px 7px;
  border-radius: 4px;
  color: #31579B;
  background: var(--brand-50);
  font-size: 10px;
}

.log-kind--consume {
  color: #B54708;
  background: #FFFAEB;
}

.log-kind--adjust {
  color: #475467;
  background: #F2F4F7;
}

.log-gb {
  color: var(--success);
  font-weight: 600;
}

.log-gb.is-negative {
  color: var(--danger);
}

.log-balance {
  color: var(--ink-2);
}

.log-note {
  overflow: hidden;
  color: var(--muted-2);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mini-empty {
  padding: 24px 18px;
  border: 1px dashed #D8E2F3;
  border-radius: 12px;
  color: var(--muted);
  background: var(--bg-soft);
  font-size: 12px;
  text-align: center;
}

/* Orders */
.order-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.order-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 17px 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.order-main {
  min-width: 0;
}

.order-title-row {
  display: flex;
  align-items: center;
  gap: 9px;
}

.order-title-row strong {
  color: var(--ink);
  font-size: 14px;
}

.order-meta {
  margin-top: 4px;
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.6;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.order-card .btn {
  flex: 0 0 auto;
}

/* Modal */
.modal {
  position: fixed;
  inset: 0;
  z-index: 160;
  display: grid;
  place-items: center;
  padding: 24px;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 24, 48, 0.48);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.modal-card {
  position: relative;
  z-index: 1;
  width: min(480px, 100%);
  max-height: calc(100vh - 48px);
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-lg);
}

.modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 26px 18px;
  border-bottom: 1px solid var(--line);
}

.modal-head h2 {
  font-size: 21px;
}

.modal-head p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.modal-close {
  display: grid;
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  padding: 0;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: var(--white);
}

.modal-close:hover {
  color: var(--ink);
  background: var(--bg);
}

.modal-body {
  display: flex;
  flex-direction: column;
  gap: 17px;
  padding: 22px 26px;
}

.modal-foot {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 16px 26px 22px;
  border-top: 1px solid var(--line);
}

.radio-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.radio-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  color: var(--ink-2);
  background: var(--white);
  font-size: 13px;
  cursor: pointer;
}

.radio-pill:has(input:checked) {
  border-color: var(--brand);
  color: var(--brand);
  background: var(--brand-50);
}

.radio-pill input {
  width: 16px;
  height: 16px;
  accent-color: var(--brand);
}

.radio-pill > span {
  white-space: nowrap;
}

.modal .form-message {
  margin: 0;
}

/* Live page */
.live-page {
  min-height: calc(100vh - 78px);
  padding: 28px 0 56px;
  background:
    radial-gradient(760px 420px at 10% 0%, rgba(22, 93, 255, 0.08), transparent 66%),
    var(--bg);
}

.live-header {
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.live-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 72px;
}

.live-header .brand img {
  height: 48px;
}

.live-header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.live-header-label {
  color: var(--muted);
  font-size: 12px;
}

.live-container {
  width: min(1060px, calc(100% - 48px));
  margin-inline: auto;
}

.live-stage-wrap {
  position: relative;
}

.live-stage {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: #06142A;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 16 / 9;
}

.live-stage.is-portrait {
  max-width: 480px;
  margin-inline: auto;
  aspect-ratio: 9 / 16;
}

.live-stage video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: #000;
  object-fit: contain;
}

.live-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: var(--white);
  background:
    radial-gradient(500px 340px at 75% 12%, rgba(92, 190, 255, 0.4), transparent 62%),
    radial-gradient(420px 300px at 8% 100%, rgba(4, 18, 42, 0.9), transparent 70%),
    linear-gradient(135deg, #0B2545, #165DFF);
}

.live-cover-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 1;
}

.live-placeholder::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(5, 15, 35, 0.06), rgba(5, 15, 35, 0.12));
  content: "";
}

.live-placeholder-inner {
  position: relative;
  z-index: 1;
  max-width: 560px;
  padding: 32px;
  text-align: center;
}

.live-placeholder-icon {
  display: grid;
  width: 64px;
  height: 64px;
  margin: 0 auto 18px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  color: var(--white);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(6px);
}

.live-placeholder-state {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
  padding: 4px 10px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 11px;
}

.live-placeholder h2 {
  color: var(--white);
  font-size: clamp(21px, 3vw, 30px);
}

.live-placeholder p {
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.64);
  font-size: 12px;
  line-height: 1.7;
}

.live-placeholder-note {
  display: inline-block;
  margin-top: 16px;
  padding: 5px 10px;
  border-radius: 5px;
  color: rgba(255, 255, 255, 0.62);
  background: rgba(255, 255, 255, 0.08);
  font-size: 10px;
}

.live-info {
  margin-top: 20px;
  padding: 26px 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.live-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.live-title-row h1 {
  font-size: clamp(22px, 3vw, 30px);
}

.live-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 9px;
  color: var(--muted);
  font-size: 12px;
}

.live-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 20px;
}

.live-tip {
  margin-top: 16px;
  padding: 10px 13px;
  border-radius: 8px;
  color: var(--muted);
  background: var(--bg-soft);
  font-size: 11px;
  line-height: 1.65;
}

.live-error-card {
  max-width: 560px;
  margin: 80px auto;
  padding: 34px;
  border: 1px solid #F1C7C3;
  border-radius: var(--radius-lg);
  background: #FFF9F8;
  text-align: center;
}

.live-error-card .empty-icon {
  margin: 0 auto 16px;
  color: var(--danger);
  background: #FEEDEB;
}

.live-error-card h2 {
  font-size: 24px;
}

.live-error-card p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
}

.live-error-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 9px;
  margin-top: 20px;
}

.live-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 400px;
  color: var(--muted);
  font-size: 13px;
}

.live-footer {
  padding: 22px 0;
  color: var(--muted-2);
  font-size: 11px;
  text-align: center;
}

/* Legal pages */
.legal-page {
  padding: 56px 0 72px;
  background: var(--bg);
}

.legal-shell {
  max-width: 900px;
  margin-inline: auto;
  padding: 44px 48px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.legal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 12px;
}

.legal-content {
  margin-top: 30px;
  color: var(--text);
  font-size: 14px;
  line-height: 1.95;
}

.legal-content h2 {
  margin: 34px 0 12px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 18px;
  line-height: 1.4;
}

.legal-content h2:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.legal-content h3 {
  margin: 22px 0 8px;
  color: var(--ink-2);
  font-size: 15px;
}

.legal-content p {
  margin-top: 10px;
}

.legal-content ul,
.legal-content ol {
  margin: 10px 0 0 20px;
  padding: 0;
}

.legal-content li {
  margin-top: 5px;
  list-style: disc;
}

.legal-content strong {
  color: var(--ink-2);
  font-weight: 600;
}

.legal-content .legal-note {
  margin-top: 18px;
  padding: 14px 16px;
  border-left: 3px solid var(--brand);
  border-radius: 0 8px 8px 0;
  color: var(--muted);
  background: var(--bg-soft);
  font-size: 12px;
}

.legal-back {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

/* Responsive additions */
@media (max-width: 960px) {
  .room-list {
    grid-template-columns: minmax(0, 1fr);
  }

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

  .wallet-log {
    grid-template-columns: 120px 60px 95px 110px minmax(0, 1fr);
  }

  .legal-shell {
    padding: 34px 32px;
  }
}

@media (max-width: 640px) {
  .account-strip {
    align-items: flex-start;
    flex-wrap: wrap;
    padding: 14px;
  }

  .account-avatar {
    width: 42px;
    height: 42px;
  }

  .account-info {
    flex-basis: calc(100% - 60px);
  }

  .account-info > span {
    white-space: normal;
  }

  .account-actions {
    width: 100%;
    margin-top: 2px;
  }

  .console-tabs {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .console-tab {
    flex: 0 0 auto;
    padding: 0 13px;
    font-size: 13px;
  }

  .console-panel-head {
    align-items: stretch;
    flex-direction: column;
    padding: 20px;
  }

  .console-panel-head .btn {
    width: 100%;
  }

  .room-card {
    flex-direction: column;
  }

  .room-cover {
    flex: none;
    width: 100%;
    height: auto;
    min-height: 0;
    aspect-ratio: 16 / 9;
    align-self: stretch;
  }

  .room-cover--portrait {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    align-self: stretch;
  }

  .room-cover-title {
    font-size: 20px;
  }

  .room-body {
    padding: 15px;
  }

  .room-actions .btn {
    flex: 1 1 auto;
  }

  .wallet-summary {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
    padding: 22px 20px;
  }

  .wallet-hint {
    max-width: none;
    text-align: left;
  }

  .wallet-packs {
    grid-template-columns: minmax(0, 1fr);
  }

  .wallet-payment {
    align-items: flex-start;
    flex-direction: column;
  }

  .wallet-payment .btn {
    width: 100%;
  }

  .wallet-log {
    grid-template-columns: 1fr auto;
    gap: 4px 12px;
    padding: 12px 14px;
  }

  .wallet-log .log-time {
    grid-column: 1 / -1;
    color: var(--muted-2);
    font-size: 10px;
  }

  .wallet-log .log-kind {
    grid-column: 1;
    justify-self: start;
  }

  .wallet-log .log-gb {
    grid-column: 2;
    justify-self: end;
  }

  .wallet-log .log-balance {
    grid-column: 1;
  }

  .wallet-log .log-note {
    grid-column: 2;
    justify-self: end;
    max-width: 190px;
  }

  .order-card {
    align-items: flex-start;
    flex-direction: column;
  }

  .order-card .btn {
    width: 100%;
  }

  .modal {
    align-items: end;
    padding: 0;
  }

  .modal-card {
    width: 100%;
    max-height: 92vh;
    border-radius: 18px 18px 0 0;
  }

  .modal-head,
  .modal-body,
  .modal-foot {
    padding-inline: 20px;
  }

  .live-page {
    padding: 14px 0 34px;
  }

  .live-header-inner {
    height: 62px;
  }

  .live-header .brand img {
    height: 40px;
  }

  .live-header-label {
    display: none;
  }

  .live-container {
    width: 100%;
  }

  .live-stage {
    border-radius: 0;
  }

  .live-stage.is-portrait {
    max-width: 100%;
    aspect-ratio: 9 / 16;
  }

  .live-info {
    margin: 14px 12px 0;
    padding: 20px;
  }

  .live-title-row {
    flex-direction: column;
    gap: 8px;
  }

  .live-actions .btn {
    flex: 1 1 auto;
  }

  .live-placeholder-inner {
    padding: 22px;
  }

  .live-error-card {
    margin: 36px 16px;
    padding: 26px 20px;
  }

  .legal-page {
    padding: 26px 0 44px;
  }

  .legal-shell {
    padding: 24px 20px;
    border-radius: 16px;
  }

  .legal-content {
    font-size: 13px;
    line-height: 1.9;
  }

  .legal-content h2 {
    font-size: 17px;
  }
}

@media print {
  .modal,
  .console-tabs,
  .live-header-actions,
  .live-actions {
    display: none !important;
  }
}

/* ==========================================================================
   本域直播 · v1.2 系统设置页
   ========================================================================== */

.setting-body {
  min-height: 100vh;
  background: var(--bg);
}

.setting-topbar {
  position: sticky;
  top: 0;
  z-index: 90;
  color: var(--white);
  background: #0B2545;
}

.setting-topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: min(1180px, calc(100% - 48px));
  height: 68px;
  margin-inline: auto;
}

.setting-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  color: var(--white);
}

.setting-brand:hover {
  color: var(--white);
}

.setting-brand img {
  width: auto;
  height: 44px;
  filter: brightness(0) invert(1);
}

.setting-brand span {
  padding-left: 12px;
  border-left: 1px solid rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
}

.setting-topbar-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 10px;
}

.setting-top-link,
.setting-top-btn {
  min-height: 34px;
  padding: 0 13px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.82);
  background: transparent;
  font-family: inherit;
  font-size: 12px;
  font-weight: 500;
}

.setting-top-link {
  display: inline-flex;
  align-items: center;
}

.setting-top-link:hover {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.45);
}

.setting-top-btn:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}

.setting-main {
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
  padding: 34px 0 64px;
}

/* Login */
.setting-login {
  display: grid;
  min-height: calc(100vh - 68px - 68px);
  padding: 24px 0 64px;
  place-items: center;
}

.setting-login-card {
  width: min(440px, 100%);
  padding: 36px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-lg);
}

.setting-login-badge {
  display: inline-flex;
  padding: 4px 9px;
  border-radius: 5px;
  color: var(--brand);
  background: var(--brand-50);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.setting-login-card h1 {
  margin-top: 16px;
  font-size: clamp(26px, 3vw, 32px);
}

.setting-login-card > p {
  margin-top: 9px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.75;
}

.setting-login-card code,
.setting-alert code {
  padding: 1px 5px;
  border-radius: 4px;
  color: var(--ink-2);
  background: var(--bg);
  font-family: var(--font-mono);
  font-size: 0.92em;
}

.setting-login-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 24px;
}

.setting-login-note {
  margin-top: 18px !important;
  color: var(--muted-2) !important;
  font-size: 11px !important;
  line-height: 1.7 !important;
}

.setting-login-back {
  display: inline-flex;
  margin-top: 16px;
  color: var(--muted);
  font-size: 12px;
}

.setting-login-back:hover {
  color: var(--brand);
}

/* Shell */
.setting-app {
  animation: setting-in 0.2s ease-out;
}

@keyframes setting-in {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.setting-page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
}

.setting-page-head h1 {
  font-size: clamp(28px, 3.2vw, 38px);
}

.setting-page-head p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.75;
}

.setting-head-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 14px;
}

.setting-updated {
  color: var(--muted-2);
  font-size: 11px;
  white-space: nowrap;
}

.setting-mode-card {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 16px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.setting-mode-title {
  flex: 0 0 auto;
  padding-right: 24px;
  border-right: 1px solid var(--line);
}

.setting-mode-title strong {
  display: block;
  color: var(--ink);
  font-size: 13px;
}

.setting-mode-title span {
  display: block;
  margin-top: 2px;
  color: var(--muted-2);
  font-size: 10px;
}

.setting-mode-grid {
  display: flex;
  flex: 1;
  flex-wrap: wrap;
  gap: 10px;
}

.setting-mode-item {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 150px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--bg-soft);
}

.setting-mode-dot {
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--muted-2);
}

.setting-mode-item > div span {
  display: block;
  color: var(--muted-2);
  font-size: 9px;
}

.setting-mode-item > div strong {
  display: block;
  margin-top: 1px;
  color: var(--ink-2);
  font-size: 11px;
  font-weight: 600;
}

.setting-mode-item.is-live .setting-mode-dot {
  background: var(--success);
}

.setting-mode-item.is-live {
  border-color: #C6EBDD;
  background: #F2FBF7;
}

.setting-mode-item.is-mock .setting-mode-dot {
  background: var(--warning);
}

.setting-mode-item.is-mock {
  border-color: #F5D38A;
  background: #FFFAEB;
}

.setting-mode-item.is-demo .setting-mode-dot {
  background: var(--brand);
}

.setting-mode-item.is-demo {
  border-color: #D8E4FF;
  background: #F5F9FF;
}

.setting-alert {
  margin-top: 14px;
  padding: 14px 17px;
  border: 1px solid #D8E4FF;
  border-radius: 11px;
  color: #415A86;
  background: #F5F9FF;
  font-size: 12px;
  line-height: 1.75;
}

.setting-save-message {
  margin-top: 14px;
}

.setting-layout {
  display: grid;
  grid-template-columns: 214px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
  margin-top: 20px;
}

.setting-nav {
  position: sticky;
  top: 88px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.setting-nav-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 42px;
  padding: 0 12px;
  border: 0;
  border-radius: 9px;
  color: var(--text);
  background: transparent;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  text-align: left;
}

.setting-nav-btn:hover {
  color: var(--brand);
  background: var(--brand-50);
}

.setting-nav-btn.is-active {
  color: var(--brand);
  background: var(--brand-50);
  font-weight: 600;
}

.setting-nav-btn em {
  display: grid;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  place-items: center;
  border-radius: 999px;
  color: var(--muted);
  background: var(--bg);
  font-size: 9px;
  font-style: normal;
}

.setting-nav-btn.is-active em {
  color: var(--brand);
  background: var(--white);
}

.setting-content {
  min-width: 0;
}

.setting-loading {
  min-height: 300px;
}

.setting-load-error {
  min-height: 80px;
}

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

.setting-group-head h2 {
  font-size: 22px;
}

.setting-group-head p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.65;
}

.setting-group-count {
  flex: 0 0 auto;
  padding-top: 5px;
  color: var(--muted-2);
  font-size: 11px;
  white-space: nowrap;
}

.setting-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 17px 18px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.setting-field {
  min-width: 0;
}

.setting-field--wide {
  grid-column: 1 / -1;
}

.setting-field-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 7px;
}

.setting-field-head label {
  color: var(--ink-2);
  font-size: 12px;
  font-weight: 600;
}

.setting-secret-badge {
  flex: 0 0 auto;
  padding: 2px 6px;
  border-radius: 4px;
  color: #7A3A00;
  background: #FFFAEB;
  font-size: 9px;
  font-weight: 500;
}

.setting-help {
  margin-top: 6px;
  color: var(--muted-2);
  font-size: 10px;
  line-height: 1.6;
}

.setting-select {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, #6B7A99 50%),
    linear-gradient(135deg, #6B7A99 50%, transparent 50%);
  background-position: calc(100% - 18px) 21px, calc(100% - 13px) 21px;
  background-repeat: no-repeat;
  background-size: 5px 5px, 5px 5px;
  padding-right: 34px;
}

.setting-textarea {
  width: 100%;
  min-height: 150px;
  padding: 12px 14px;
  resize: vertical;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  outline: none;
  color: var(--ink);
  background: var(--white);
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.65;
}

.setting-textarea::placeholder {
  color: #A5B1C6;
  font-family: var(--font-sans);
}

.setting-textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(22, 93, 255, 0.12);
}

.setting-textarea:disabled {
  color: var(--muted-2);
  background: var(--bg);
  cursor: not-allowed;
}

.setting-secret-row {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 24px;
  margin-top: 7px;
  color: var(--muted-2);
  font-size: 10px;
}

.setting-secret-dot {
  flex: 0 0 auto;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #A5B1C6;
}

.setting-secret-row.is-configured .setting-secret-dot {
  background: var(--success);
}

.setting-secret-row.is-pending .setting-secret-dot {
  background: var(--warning);
}

.setting-secret-text {
  flex: 1;
  min-width: 0;
}

.setting-clear-btn {
  flex: 0 0 auto;
  padding: 1px 7px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  color: var(--muted);
  background: var(--white);
  font-family: inherit;
  font-size: 9px;
}

.setting-clear-btn:hover:not(:disabled) {
  color: var(--danger);
  border-color: #F1C7C3;
  background: #FFF9F8;
}

.setting-clear-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.setting-switch {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  cursor: pointer;
}

.setting-switch input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
}

.setting-switch-track {
  position: relative;
  display: inline-block;
  width: 42px;
  height: 24px;
  border-radius: 999px;
  background: #D0D5DD;
  transition: background-color 0.18s ease;
}

.setting-switch-track::after {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--white);
  box-shadow: 0 1px 3px rgba(11, 37, 69, 0.25);
  content: "";
  transition: transform 0.18s ease;
}

.setting-switch input:checked + .setting-switch-track {
  background: var(--brand);
}

.setting-switch input:checked + .setting-switch-track::after {
  transform: translateX(18px);
}

.setting-switch input:focus-visible + .setting-switch-track {
  outline: 3px solid rgba(22, 93, 255, 0.3);
  outline-offset: 2px;
}

.setting-switch-label {
  color: var(--muted);
  font-size: 11px;
}

.setting-test-panel {
  margin-top: 18px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.setting-test-head h3 {
  font-size: 16px;
}

.setting-test-head p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.7;
}

.setting-test-row {
  display: flex;
  align-items: stretch;
  gap: 10px;
  margin-top: 15px;
}

.setting-test-row .input-wrap {
  flex: 1;
  max-width: 340px;
}

.setting-test-row .btn {
  flex: 0 0 auto;
}

.setting-test-result {
  margin-top: 15px;
  padding: 15px 17px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg-soft);
}

.setting-result-head {
  display: flex;
  align-items: center;
  gap: 8px;
}

.setting-result-badge {
  display: inline-flex;
  padding: 3px 8px;
  border-radius: 5px;
  color: var(--muted);
  background: var(--bg);
  font-size: 10px;
  font-weight: 600;
}

.setting-result-badge.is-success {
  color: #087A55;
  background: #ECFAF4;
}

.setting-result-badge.is-warning {
  color: #B54708;
  background: #FFFAEB;
}

.setting-result-badge.is-error {
  color: #B42318;
  background: #FEF3F2;
}

.setting-result-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 18px;
  margin-top: 12px;
}

.setting-result-list > div {
  display: flex;
  gap: 10px;
  min-width: 0;
  padding-top: 7px;
  border-top: 1px solid #EEF2F9;
  font-size: 11px;
}

.setting-result-list dt {
  flex: 0 0 auto;
  color: var(--muted-2);
}

.setting-result-list dd {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
  color: var(--ink-2);
}

.setting-result-issues {
  margin-top: 12px;
  color: #B54708;
  font-size: 11px;
}

.setting-result-issues ul {
  margin: 6px 0 0 20px;
  padding: 0;
}

.setting-result-issues li {
  list-style: disc;
}

.setting-result-error {
  margin-top: 10px;
  color: var(--danger);
  font-size: 11px;
}

.setting-save-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 18px;
  padding: 13px 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 10px 30px rgba(11, 37, 69, 0.1);
}

.setting-dirty {
  color: var(--muted);
  font-size: 11px;
}

.setting-dirty.is-dirty {
  color: var(--warning);
  font-weight: 600;
}

.setting-save-bar .btn {
  flex: 0 0 auto;
}

@media (max-width: 960px) {
  .setting-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .setting-nav {
    position: static;
    flex-direction: row;
    overflow-x: auto;
    gap: 4px;
    padding: 6px;
    -webkit-overflow-scrolling: touch;
  }

  .setting-nav-btn {
    flex: 0 0 auto;
    min-height: 38px;
    padding: 0 13px;
    white-space: nowrap;
  }

  .setting-mode-card {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }

  .setting-mode-title {
    padding-right: 0;
    padding-bottom: 10px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    width: 100%;
  }

  .setting-fields {
    grid-template-columns: minmax(0, 1fr);
  }

  .setting-field--wide {
    grid-column: auto;
  }
}

@media (max-width: 640px) {
  .setting-topbar-inner,
  .setting-main {
    width: calc(100% - 32px);
  }

  .setting-topbar-inner {
    height: 62px;
  }

  .setting-brand img {
    height: 38px;
  }

  .setting-brand span {
    padding-left: 9px;
    font-size: 11px;
  }

  .setting-top-link,
  .setting-top-btn {
    padding: 0 10px;
    font-size: 11px;
  }

  .setting-main {
    padding: 24px 0 48px;
  }

  .setting-login {
    min-height: calc(100vh - 62px - 48px);
    padding-bottom: 48px;
  }

  .setting-login-card {
    padding: 26px 22px;
    border-radius: 18px;
  }

  .setting-page-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }

  .setting-head-actions {
    align-items: stretch;
    flex-direction: column;
    width: 100%;
    gap: 8px;
  }

  .setting-head-actions .btn {
    width: 100%;
  }

  .setting-updated {
    text-align: left;
  }

  .setting-mode-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    width: 100%;
  }

  .setting-mode-item {
    min-width: 0;
  }

  .setting-alert {
    font-size: 11px;
  }

  .setting-nav {
    flex-wrap: wrap;
    overflow-x: visible;
  }

  .setting-nav-btn {
    flex: 1 1 auto;
  }

  .setting-fields {
    padding: 18px;
  }

  .setting-test-panel {
    padding: 18px;
  }

  .setting-test-row {
    flex-direction: column;
  }

  .setting-test-row .input-wrap {
    width: 100%;
    max-width: none;
  }

  .setting-test-row .btn {
    width: 100%;
  }

  .setting-result-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .setting-save-bar {
    align-items: stretch;
    flex-direction: column;
    gap: 9px;
  }

  .setting-save-bar .btn {
    width: 100%;
  }
}

/* v1.3 · 全站顶栏账号 */
.nav-console-link {
  display: inline-flex;
  align-items: center;
  height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  color: var(--brand);
  background: var(--brand-50);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  transition: background 0.18s ease;
}

.nav-console-link:hover {
  background: rgba(22, 93, 255, 0.12);
}

@media (max-width: 960px) {
  .header-inner > .nav-account .nav-console-link {
    height: 34px;
    padding: 0 10px;
    font-size: 12px;
  }
}

@media (max-width: 640px) {
  .header-inner > .nav-account .nav-account-name {
    display: none;
  }
}

.nav-account {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 8px;
}

.nav-account-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  max-width: 200px;
  padding: 4px 10px 4px 5px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-2);
  background: var(--white);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.nav-account-toggle:hover,
.nav-account.is-open .nav-account-toggle {
  border-color: #C9D9F8;
  box-shadow: var(--shadow-sm);
}

.nav-account-avatar {
  display: grid;
  flex: 0 0 auto;
  width: 29px;
  height: 29px;
  overflow: hidden;
  place-items: center;
  border-radius: 50%;
  color: var(--white);
  background: linear-gradient(145deg, var(--brand), #0B3AAE);
  font-size: 12px;
  font-weight: 700;
}

.nav-account-avatar.has-image {
  background: var(--bg);
}

.nav-account-avatar img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.nav-account-name {
  overflow: hidden;
  max-width: 126px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav-account-toggle svg {
  flex: 0 0 auto;
  color: var(--muted);
}

.nav-account-menu {
  position: absolute;
  top: calc(100% + 9px);
  right: 0;
  z-index: 90;
  width: 226px;
  padding: 7px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--white);
  box-shadow: var(--shadow-lg);
}

.nav-account-head {
  padding: 9px 10px 11px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 5px;
}

.nav-account-head strong,
.nav-account-head span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav-account-head strong {
  color: var(--ink);
  font-size: 13px;
}

.nav-account-head span {
  margin-top: 2px;
  color: var(--muted-2);
  font-size: 10px;
}

.nav-account-menu a,
.nav-account-menu button {
  display: block;
  width: 100%;
  padding: 9px 10px;
  border: 0;
  border-radius: 7px;
  color: var(--ink-2);
  background: transparent;
  font-family: inherit;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.5;
  text-align: left;
  text-decoration: none;
}

.nav-account-menu a:hover,
.nav-account-menu button:hover {
  color: var(--brand);
  background: var(--brand-50);
}

.nav-account-menu [data-account-logout] {
  color: var(--danger);
}

/* v1.3 · 控制台账号设置 */
.account-orgline {
  color: var(--brand) !important;
}

.account-orgline b {
  font-weight: 600;
}

.account-avatar.has-image {
  overflow: hidden;
  background: var(--bg);
}

.account-avatar img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
}

.account-settings-panel {
  scroll-margin-top: 88px;
  margin-bottom: 20px;
  padding: 24px 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.account-settings-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.account-settings-head h2 {
  font-size: 20px;
}

.account-settings-head p {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
}

.account-settings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px;
  padding-top: 20px;
}

.account-setting-block {
  min-width: 0;
}

.account-setting-block h3 {
  margin-bottom: 13px;
  color: var(--ink);
  font-size: 15px;
}

.account-setting-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 13px;
}

.account-setting-title h3 {
  margin-bottom: 0;
}

.org-editor {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.org-logo-preview {
  display: grid;
  flex: 0 0 auto;
  width: 74px;
  height: 74px;
  overflow: hidden;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--muted-2);
  background: var(--bg-soft);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.org-logo-preview img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.org-logo-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
}

.org-logo-actions .form-hint {
  flex-basis: 100%;
}

.password-form {
  display: flex;
  flex-direction: column;
  gap: 13px;
}

/* v1.3 · 直播间表单增强 */
.form-field--wide {
  grid-column: 1 / -1;
}

.field-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.field-label-row label {
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 600;
}

.form-textarea {
  width: 100%;
  min-height: 96px;
  padding: 12px 14px;
  resize: vertical;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  color: var(--ink);
  background: var(--white);
  font-family: inherit;
  font-size: 13px;
  line-height: 1.7;
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.form-textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(22, 93, 255, 0.12);
}

.char-counter {
  color: var(--muted-2);
  font-size: 10px;
  font-weight: 500;
  white-space: nowrap;
}

.char-counter.is-near-limit {
  color: #B54708;
}

.password-inline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 16px;
  color: var(--muted);
  font-size: 11px;
}

.schedule-fixed {
  margin-top: 10px;
}

.schedule-daily {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
}

.schedule-daily-label {
  color: var(--muted);
  font-size: 12px;
}

.schedule-daily-colon {
  color: var(--muted-2);
  font-weight: 700;
}

.schedule-select {
  width: auto;
  min-width: 84px;
  min-height: 44px;
  padding: 0 32px 0 11px;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  color: var(--ink);
  background-color: var(--white);
  font-family: inherit;
  font-size: 13px;
  cursor: pointer;
}

#room-password-status.is-on {
  color: #087A55;
}

#room-password-status.is-warning {
  color: #B54708;
}

.text-button {
  padding: 0;
  border: 0;
  color: var(--brand);
  background: transparent;
  font-family: inherit;
  font-size: 11px;
  font-weight: 600;
}

.text-button:hover {
  text-decoration: underline;
}

.modal .check-field {
  grid-column: auto;
}

.room-bg-editor {
  display: flex;
  align-items: flex-end;
  gap: 14px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--bg-soft);
}

.room-bg-preview {
  display: grid;
  flex: 0 1 320px;
  min-width: 140px;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  place-items: center;
  border: 1px dashed var(--line-strong);
  border-radius: 9px;
  color: var(--muted-2);
  background: #F2F6FC;
  font-size: 10px;
}

.room-bg-preview.is-portrait {
  flex-basis: 170px;
  max-width: 170px;
  aspect-ratio: 9 / 16;
}

.room-detail-preview {
  aspect-ratio: auto;
  max-height: 240px;
  padding: 8px;
  background: #F7F9FC;
}

.room-detail-preview img {
  max-width: 100%;
  max-height: 224px;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 6px;
}

.room-bg-preview img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.room-bg-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  padding-bottom: 2px;
}

.room-cover-img {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 1;
}

.room-cover-mode,
.room-cover-title {
  position: relative;
  z-index: 2;
  text-shadow: 0 1px 6px rgba(4, 16, 40, 0.65);
}

/* v1.3 · 图片裁剪弹窗 */
.crop-modal {
  z-index: 180;
}

.crop-card {
  width: min(720px, 100%);
}

.crop-body {
  padding: 20px 26px;
}

.crop-stage-wrap {
  display: grid;
  min-height: 220px;
  padding: 16px;
  place-items: center;
  border-radius: 12px;
  background: #0B2545;
}

#crop-canvas {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 56vh;
  border-radius: 3px;
  cursor: grab;
  touch-action: none;
}

#crop-canvas:active {
  cursor: grabbing;
}

.crop-controls {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-top: 15px;
  color: var(--ink-2);
  font-size: 12px;
  font-weight: 600;
}

.crop-controls input[type="range"] {
  flex: 1;
  accent-color: var(--brand);
}

.crop-controls span {
  width: 40px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
  text-align: right;
}

/* v1.3 · 观看页 */
.live-page-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  transition: opacity 0.35s ease;
}

.live-page-bg.has-bg {
  opacity: 0.3;
}

.live-header,
.live-page,
.live-footer {
  position: relative;
  z-index: 1;
}

.live-page-bg.has-bg ~ .live-page {
  background: rgba(246, 248, 252, 0.86);
}

.live-stage.is-locked {
  background: #06142A;
}

.live-lock {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: grid;
  padding: 24px;
  place-items: center;
  background: rgba(5, 15, 35, 0.72);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.live-lock-card {
  width: min(420px, 100%);
  padding: 30px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 15px;
  color: var(--white);
  background: rgba(9, 25, 50, 0.88);
  text-align: center;
}

.live-lock-icon {
  display: grid;
  width: 54px;
  height: 54px;
  margin: 0 auto 14px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.86);
  background: rgba(255, 255, 255, 0.1);
}

.live-lock-card h2 {
  color: var(--white);
  font-size: 22px;
}

.live-lock-card > p {
  margin: 8px 0 18px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 11px;
  line-height: 1.7;
}

.live-lock-card .input-wrap {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
}

.live-lock-card .input {
  color: var(--white);
  background: transparent;
}

.live-lock-card .input::placeholder {
  color: rgba(255, 255, 255, 0.45);
}

.live-lock-card .form-message {
  margin: 10px 0 0;
  color: #FFB4AB;
  font-size: 11px;
  text-align: left;
}

.live-lock-card .btn-block {
  margin-top: 14px;
}

.live-description {
  margin-top: 14px;
  color: var(--ink-2);
  font-size: 13px;
  line-height: 1.8;
  white-space: pre-wrap;
}

.live-notice {
  margin-top: 14px;
  padding: 10px 13px;
  border: 1px solid #F5D5A8;
  border-radius: 8px;
  color: #9A5B00;
  background: #FFF7E8;
  font-size: 11px;
  line-height: 1.6;
}

.live-comments {
  margin-top: 20px;
  padding: 24px 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.live-comments-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.live-comments-head h2 {
  font-size: 20px;
}

.live-comments-head p {
  margin-top: 3px;
  color: var(--muted-2);
  font-size: 10px;
}

.live-comments-count {
  flex: 0 0 auto;
  padding: 3px 8px;
  border-radius: 999px;
  color: var(--muted);
  background: var(--bg);
  font-size: 10px;
}

.live-comment-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-height: 360px;
  margin-top: 16px;
  padding-right: 6px;
  overflow-y: auto;
}

.live-comment {
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

.live-comment-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
}

.live-comment-head strong {
  overflow: hidden;
  color: var(--ink-2);
  font-size: 12px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.live-comment-head time {
  flex: 0 0 auto;
  color: var(--muted-2);
  font-size: 9px;
}

.live-comment > p {
  margin-top: 4px;
  color: var(--ink-2);
  font-size: 12px;
  line-height: 1.7;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.live-comments-empty {
  padding: 20px 0;
  color: var(--muted-2);
  font-size: 11px;
  text-align: center;
}

.live-comment-form {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.live-comment-input-row {
  display: flex;
  align-items: stretch;
  gap: 9px;
}

.live-comment-input-row .input-wrap {
  flex: 1;
  min-width: 0;
}

.live-comment-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 6px;
}

.live-comment-meta .char-counter {
  margin-left: auto;
}

.live-comment-form .form-message {
  margin: 9px 0 0;
}

@media (max-width: 960px) {
  .header-inner > .nav-account {
    position: absolute;
    top: 50%;
    right: 54px;
    z-index: 2;
    margin: 0;
    transform: translateY(-50%);
  }

  .header-inner > .nav-account .nav-account-toggle {
    width: auto;
    max-width: 154px;
    padding: 3px 8px 3px 4px;
    border-radius: 999px;
  }

  .header-inner > .nav-account .nav-account-name {
    max-width: 78px;
    flex: 0 1 auto;
    text-align: left;
  }

  .header-inner > .nav-account .nav-account-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 226px;
    margin-top: 0;
    box-shadow: var(--shadow-lg);
  }

  .site-nav .nav-account {
    width: 100%;
    margin: 5px 0 0;
  }

  .site-nav .nav-account .nav-account-toggle {
    width: 100%;
    max-width: none;
    justify-content: flex-start;
    border-radius: 9px;
  }

  .site-nav .nav-account .nav-account-name {
    max-width: none;
    flex: 1;
    text-align: left;
  }

  .site-nav .nav-account .nav-account-menu {
    position: static;
    width: 100%;
    margin-top: 5px;
    box-shadow: none;
  }

  .account-settings-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }

  .live-comments {
    padding: 20px;
  }
}

@media (max-width: 640px) {
  .account-settings-panel {
    padding: 18px;
  }

  .account-settings-head {
    flex-direction: column;
    gap: 10px;
  }

  .org-editor {
    align-items: flex-start;
  }

  .room-bg-editor {
    align-items: stretch;
    flex-direction: column;
  }

  .room-bg-preview,
  .room-bg-preview.is-portrait {
    flex-basis: auto;
    width: 100%;
    max-width: 260px;
  }

  .crop-body {
    padding: 16px;
  }

  .crop-stage-wrap {
    padding: 10px;
  }

  .crop-controls {
    gap: 9px;
  }

  .live-lock {
    padding: 14px;
  }

  .live-lock-card {
    padding: 22px 18px;
  }

  .live-comments {
    padding: 18px;
  }

  .live-comment-input-row {
    flex-direction: column;
  }

  .live-comment-input-row .btn {
    width: 100%;
  }

  .account-info > span {
    white-space: normal;
  }
}

/* v1.4 · 控制台侧边导航与概览 */
.console-layout {
  display: grid;
  grid-template-columns: 224px minmax(0, 1fr);
  align-items: start;
  gap: 24px;
}

.console-sidebar {
  position: sticky;
  top: 88px;
  min-width: 0;
}

.console-side-card {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.console-side-user {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 2px 2px 15px;
  border-bottom: 1px solid var(--line);
}

.console-side-avatar {
  display: grid;
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  overflow: hidden;
  place-items: center;
  border-radius: 11px;
  color: var(--white);
  background: linear-gradient(145deg, var(--brand), #0B3AAE);
  font-size: 15px;
  font-weight: 700;
}

.console-side-avatar.has-image {
  background: var(--bg);
}

.console-side-avatar img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.console-side-user-info {
  min-width: 0;
}

.console-side-user-info strong,
.console-side-user-info span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.console-side-user-info strong {
  color: var(--ink);
  font-size: 13px;
}

.console-side-user-info span {
  margin-top: 2px;
  color: var(--muted-2);
  font-size: 10px;
}

.console-nav {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-top: 14px;
}

.console-nav-group {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.console-nav-group + .console-nav-group {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.console-nav-btn {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  min-height: 40px;
  padding: 0 10px;
  border: 0;
  border-radius: 8px;
  color: #415475;
  background: transparent;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: color 0.18s ease, background-color 0.18s ease;
}

.console-nav-btn:hover {
  color: var(--brand);
  background: var(--brand-50);
}

.console-nav-btn.is-active {
  color: var(--white);
  background: var(--brand);
  box-shadow: 0 6px 16px rgba(22, 93, 255, 0.18);
}

.console-nav-icon {
  display: inline-grid;
  flex: 0 0 auto;
  width: 18px;
  place-items: center;
  color: currentColor;
  font-size: 14px;
  line-height: 1;
}

.console-nav-btn .tab-count {
  margin-left: auto;
  color: var(--muted);
  background: var(--bg);
}

.console-nav-btn.is-active .tab-count {
  color: var(--white);
  background: rgba(255, 255, 255, 0.2);
}

.console-side-foot {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.console-side-foot a {
  color: var(--muted-2);
  font-size: 11px;
  text-decoration: none;
}

.console-side-foot a:hover {
  color: var(--brand);
}

.console-main {
  min-width: 0;
}

.console-head-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 20px;
  padding: 2px 2px 20px;
  border-bottom: 1px solid var(--line);
}

.console-head-row .eyebrow {
  margin-bottom: 6px;
}

.console-head-row h1 {
  font-size: clamp(25px, 2.8vw, 34px);
}

.console-head-row .console-desc {
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
}

.console-head-tools {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 10px;
}

.console-balance-chip {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid #CFDEFA;
  border-radius: 999px;
  color: var(--brand);
  background: var(--brand-50);
  font-family: inherit;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
}

.console-balance-chip strong {
  font-size: 17px;
  font-weight: 800;
}

.overview-grid {
  display: grid;
  grid-template-columns: 1.35fr repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 16px;
}

.overview-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: 150px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.overview-card--balance {
  border-color: transparent;
  color: var(--white);
  background:
    radial-gradient(220px 160px at 100% 0%, rgba(119, 178, 255, 0.65), transparent 68%),
    linear-gradient(135deg, #0B2545, var(--brand));
}

.overview-card-label {
  color: var(--muted);
  font-size: 11px;
}

.overview-card--balance .overview-card-label {
  color: rgba(255, 255, 255, 0.7);
}

.overview-card-value {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin: 7px 0 auto;
}

.overview-card-value strong {
  color: var(--ink);
  font-size: clamp(27px, 3vw, 37px);
  font-weight: 800;
  letter-spacing: -0.04em;
}

.overview-card--balance .overview-card-value strong {
  color: var(--white);
}

.overview-card-value span {
  color: var(--muted);
  font-size: 11px;
}

.overview-card--balance .overview-card-value span {
  color: rgba(255, 255, 255, 0.7);
}

.overview-card .btn {
  margin-top: 14px;
}

.overview-card--balance .btn-light {
  color: var(--brand);
  background: var(--white);
}

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

.overview-block {
  min-width: 0;
  padding: 19px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.overview-block-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.overview-block-head h2 {
  font-size: 15px;
}

.overview-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.overview-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
}

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

.overview-row > span {
  min-width: 0;
}

.overview-row b,
.overview-row small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.overview-row b {
  color: var(--ink-2);
  font-size: 12px;
  font-weight: 600;
}

.overview-row small {
  margin-top: 2px;
  color: var(--muted-2);
  font-size: 9px;
}

.overview-row strong {
  flex: 0 0 auto;
  font-size: 12px;
  font-weight: 700;
}

.overview-row strong.is-negative {
  color: #B54708;
}

.overview-order-state {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 10px;
  white-space: nowrap;
}

.console-quick-actions {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.quick-action {
  padding: 14px 15px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
  text-align: left;
  cursor: pointer;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.quick-action:hover {
  border-color: #C9D9F8;
  box-shadow: var(--shadow-sm);
}

.quick-action strong,
.quick-action span {
  display: block;
}

.quick-action strong {
  color: var(--ink-2);
  font-size: 12px;
}

.quick-action span {
  margin-top: 3px;
  color: var(--muted-2);
  font-size: 10px;
  line-height: 1.45;
}

/* v1.4 · 配置项 */
.config-intro {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 12px;
  margin-bottom: 16px;
  padding: 14px 16px;
  border: 1px solid #D7E5FF;
  border-radius: 10px;
  color: var(--ink-2);
  background: var(--brand-50);
  font-size: 12px;
}

.config-intro strong {
  color: var(--brand);
}

.config-intro span {
  color: var(--muted);
}

.config-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px 13px;
}

.config-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 58px;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.config-item--switch {
  cursor: pointer;
}

.config-item-text {
  min-width: 0;
}

.config-item-text strong,
.config-item-text > span {
  display: block;
}

.config-item-text strong {
  color: var(--ink-2);
  font-size: 12px;
  font-weight: 600;
}

.config-item-text > span {
  margin-top: 3px;
  color: var(--muted-2);
  font-size: 10px;
  line-height: 1.5;
}

.config-switch {
  position: relative;
  display: inline-flex;
  flex: 0 0 auto;
  width: 42px;
  height: 24px;
}

.config-switch input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.config-switch-track {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: #D7DFEC;
  transition: background-color 0.18s ease;
}

.config-switch-track::after {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--white);
  box-shadow: 0 1px 4px rgba(8, 24, 48, 0.2);
  transition: transform 0.18s ease;
  content: "";
}

.config-switch input:checked + .config-switch-track {
  background: var(--brand);
}

.config-switch input:checked + .config-switch-track::after {
  transform: translateX(18px);
}

.config-switch input:focus-visible + .config-switch-track {
  box-shadow: 0 0 0 3px rgba(22, 93, 255, 0.18);
}

.config-select {
  flex: 0 0 auto;
  width: auto;
  min-width: 112px;
  min-height: 38px;
  padding: 0 27px 0 10px;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  color: var(--ink-2);
  background-color: var(--white);
  font-family: inherit;
  font-size: 11px;
}

.config-save-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 17px;
  padding: 13px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

#defaults-dirty {
  color: var(--muted);
  font-size: 11px;
}

#defaults-dirty.is-dirty {
  color: #B54708;
  font-weight: 600;
}

.config-modal-note {
  padding: 11px 13px;
  border-radius: 8px;
  color: var(--muted);
  background: var(--bg-soft);
  font-size: 11px;
  line-height: 1.65;
}

.room-config-card {
  width: min(860px, 100%);
}

.room-config-fields {
  max-height: min(58vh, 620px);
  padding-right: 4px;
  overflow-y: auto;
}

/* v1.4 · 企业配置 */
.enterprise-layout {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  align-items: start;
  gap: 24px;
}

.enterprise-logo-card {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.enterprise-logo-preview {
  display: grid;
  width: 120px;
  height: 120px;
  margin: 0 auto;
  overflow: hidden;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 16px;
  color: var(--muted-2);
  background: var(--bg-soft);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.enterprise-logo-preview img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.enterprise-logo-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 7px;
  margin-top: 15px;
}

.enterprise-logo-actions .form-hint {
  flex-basis: 100%;
  text-align: center;
}

.enterprise-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 18px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.enterprise-form > .form-field:nth-child(2) {
  grid-column: 1 / -1;
}

.enterprise-form > .form-field:nth-child(2) .char-counter {
  align-self: flex-end;
}

/* v1.6 · 企业配置分组（服务号 / 小程序 / 微信支付） */
.form-field--full {
  grid-column: 1 / -1;
}

.enterprise-section-title {
  margin: 2px 0 0;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 600;
}

/* v1.7 · 企业配置启用开关（勾选后才展开对应配置） */
.enterprise-toggle-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 2px 0 0;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
  color: var(--ink-2);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.enterprise-toggle-row input {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--brand);
}

.enterprise-toggle-row small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
}

.enterprise-toggle-fields {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 18px;
}

.cert-upload-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

/* v1.5 · 企业主页预览 */
.enterprise-home-preview {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.enterprise-home-banner {
  display: flex;
  align-items: center;
  gap: 18px;
}

.enterprise-home-logo {
  display: grid;
  flex: 0 0 auto;
  width: 76px;
  height: 76px;
  overflow: hidden;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--muted-2);
  background: var(--bg-soft);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.enterprise-home-logo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.enterprise-home-identity {
  min-width: 0;
}

.enterprise-home-identity strong {
  display: block;
  color: var(--ink);
  font-size: 20px;
  line-height: 1.35;
}

.enterprise-home-identity p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
  white-space: pre-wrap;
  word-break: break-word;
}

.enterprise-home-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 20px;
  margin: 22px 0 0;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.enterprise-home-meta dt {
  color: var(--muted-2);
  font-size: 12px;
}

.enterprise-home-meta dd {
  margin: 3px 0 0;
  color: var(--ink-2);
  font-size: 14px;
  font-weight: 600;
  word-break: break-all;
}

.enterprise-home-preview .form-hint {
  margin-top: 18px;
}

/* v1.7 · 企业主页：微信/小程序内站点预览 */
.enterprise-site-preview {
  display: flex;
  justify-content: center;
  padding: 26px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, #eef1f7 0%, #e6eaf2 100%);
}

.phone-frame {
  width: 375px;
  max-width: 100%;
  padding: 10px;
  border-radius: 42px;
  background: #111826;
  box-shadow: 0 24px 60px rgba(15, 25, 50, 0.28);
}

.phone-statusbar {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  height: 44px;
  padding: 0 18px;
  border-radius: 32px 32px 0 0;
  color: #101828;
  background: #ffffff;
  font-size: 13px;
  font-weight: 600;
}

.phone-statusbar-dots {
  position: absolute;
  right: 16px;
  letter-spacing: 2px;
  color: var(--muted-2);
}

.phone-viewport {
  max-height: 760px;
  overflow-y: auto;
  border-radius: 0 0 32px 32px;
  background: #f6f7fa;
}

.phone-org-head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 16px 16px;
}

.phone-org-logo {
  display: grid;
  flex: 0 0 auto;
  width: 54px;
  height: 54px;
  overflow: hidden;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 15px;
  color: var(--muted-2);
  background: var(--white);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.phone-org-logo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.phone-org-head strong {
  min-width: 0;
  color: var(--ink);
  font-size: 18px;
  line-height: 1.35;
  word-break: break-word;
}

.phone-live-section {
  padding: 0 16px;
}

.phone-live-carousel {
  position: relative;
  height: 210px;
}

.phone-live-card {
  display: block;
  position: relative;
  height: 210px;
  overflow: hidden;
  border-radius: 16px;
  background: #d9dee9;
}

.phone-live-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.phone-live-card.is-empty {
  cursor: default;
}

.phone-live-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(12, 18, 32, 0.04) 28%, rgba(12, 18, 32, 0.72) 100%);
}

.phone-live-status {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 9px;
  border-radius: 999px;
  color: var(--white);
  background: rgba(16, 24, 40, 0.62);
  font-size: 11px;
  font-weight: 600;
}

.phone-live-status.is-live {
  background: #e5484d;
}

.phone-live-title {
  position: absolute;
  right: 14px;
  bottom: 14px;
  left: 14px;
  color: var(--white);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.35);
  word-break: break-word;
}

.phone-live-nav {
  display: grid;
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 32px;
  height: 32px;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: var(--white);
  background: rgba(16, 24, 40, 0.55);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  transform: translateY(-50%);
}

.phone-live-nav:hover {
  background: rgba(16, 24, 40, 0.78);
}

.phone-live-nav:first-of-type {
  left: 8px;
}

.phone-live-nav:last-of-type {
  right: 8px;
}

.phone-live-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 18px;
  padding-top: 10px;
}

.phone-live-dot {
  width: 6px;
  height: 6px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #c4cad6;
  cursor: pointer;
}

.phone-live-dot.is-active {
  width: 16px;
  border-radius: 999px;
  background: var(--success);
}

.phone-course-section {
  padding: 18px 16px 26px;
}

.phone-course-section h3 {
  margin: 0 0 6px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
}

.phone-course-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.phone-course-item:last-child {
  border-bottom: 0;
}

.phone-course-cover {
  display: grid;
  flex: 0 0 auto;
  width: 58px;
  height: 44px;
  overflow: hidden;
  place-items: center;
  border-radius: 9px;
  background: #dde3ee;
  object-fit: cover;
  font-size: 12px;
  color: var(--muted-2);
}

.phone-course-cover--fallback {
  color: var(--brand);
  background: var(--brand-50);
  font-weight: 600;
}

.phone-course-main {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-width: 0;
  gap: 4px;
}

.phone-course-main strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.phone-course-main small {
  color: var(--muted);
  font-size: 12px;
}

.phone-course-arrow {
  flex: 0 0 auto;
  color: var(--muted-2);
  font-size: 18px;
}

.phone-empty {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 12px;
}

@media (max-width: 640px) {
  .enterprise-home-preview {
    padding: 18px;
  }

  .enterprise-site-preview {
    padding: 14px 10px;
  }

  .phone-frame {
    border-radius: 30px;
  }

  .phone-viewport {
    max-height: none;
    border-radius: 0 0 22px 22px;
  }

  .enterprise-home-banner {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }

  .enterprise-home-meta {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 1100px) {
  .console-layout {
    grid-template-columns: 204px minmax(0, 1fr);
    gap: 18px;
  }

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

  .overview-card--balance {
    grid-column: 1 / -1;
  }

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

@media (max-width: 960px) {
  .console-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

  .console-sidebar {
    position: static;
  }

  .console-side-card {
    padding: 10px;
  }

  .console-side-user,
  .console-side-foot {
    display: none;
  }

  .console-nav {
    flex-direction: row;
    gap: 5px;
    margin-top: 0;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: thin;
  }

  .console-nav-btn {
    flex: 0 0 auto;
    width: auto;
    min-height: 36px;
    padding: 0 12px;
    border-radius: 999px;
    white-space: nowrap;
  }

  .console-nav-btn .console-nav-icon {
    display: none;
  }

  .console-head-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }

  .console-head-tools {
    width: 100%;
    justify-content: space-between;
  }

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

  .overview-card--balance {
    grid-column: auto;
  }

  .config-fields {
    grid-template-columns: minmax(0, 1fr);
  }

  .enterprise-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .enterprise-logo-card {
    display: flex;
    align-items: center;
    gap: 16px;
  }

  .enterprise-logo-preview {
    flex: 0 0 auto;
    width: 86px;
    height: 86px;
    margin: 0;
    border-radius: 12px;
  }

  .enterprise-logo-actions {
    justify-content: flex-start;
    margin-top: 0;
  }
}

@media (max-width: 640px) {
  .console-section {
    padding-top: 24px;
  }

  .console-head-tools {
    align-items: stretch;
    flex-direction: column;
  }

  .console-balance-chip,
  .console-head-tools > .btn {
    justify-content: center;
    width: 100%;
  }

  .overview-card {
    min-height: 136px;
    padding: 17px;
  }

  .overview-block {
    padding: 16px;
  }

  .config-item {
    align-items: flex-start;
    flex-direction: column;
    gap: 9px;
  }

  .config-item .config-select {
    width: 100%;
  }

  .config-save-bar {
    align-items: stretch;
    flex-direction: column;
  }

  .config-save-bar .btn {
    width: 100%;
  }

  .enterprise-form {
    grid-template-columns: minmax(0, 1fr);
    padding: 17px;
  }

  .enterprise-toggle-fields {
    grid-template-columns: minmax(0, 1fr);
  }

  .enterprise-form > .form-field:nth-child(2) {
    grid-column: auto;
  }

  .enterprise-logo-card {
    align-items: flex-start;
    flex-direction: column;
  }

  .room-config-fields {
    max-height: 62vh;
  }

  .modal .config-item {
    align-items: flex-start;
    flex-direction: column;
  }

  .modal .config-item .config-select {
    width: 100%;
  }
}

/* v1.4 · 观看页配置生效 */
.live-start-hint {
  margin-top: 11px;
  padding: 8px 11px;
  border-radius: 7px;
  color: #7A4D00;
  background: #FFF7E8;
  font-size: 11px;
  font-weight: 600;
}

.live-enterprise {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-top: 17px;
  padding: 15px 17px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--bg-soft);
}

.live-enterprise img {
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
  object-fit: cover;
}

.live-enterprise strong {
  display: block;
  color: var(--ink);
  font-size: 13px;
}

.live-enterprise p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.65;
  white-space: pre-wrap;
}

.live-meta b {
  color: var(--ink-2);
  font-weight: 600;
}

@media (max-width: 640px) {
  .live-enterprise {
    gap: 11px;
    padding: 13px;
  }

  .live-enterprise img {
    width: 40px;
    height: 40px;
  }

  .live-stage.is-locked {
    min-height: 360px;
    aspect-ratio: auto;
  }

  .live-lock {
    padding: 12px;
  }

  .live-lock-card {
    padding: 20px 16px;
  }

  .live-lock-card h2 {
    font-size: 20px;
  }

  .live-lock-card > p {
    margin-bottom: 12px;
  }
}

/* v1.6 付费直播 / 企业主页入口 */
.live-topbar-org {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border: 1px solid rgba(22, 93, 255, 0.28);
  border-radius: 999px;
  color: #165dff;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.live-topbar-org:hover {
  background: #eef4ff;
}

.live-lock-card .live-lock-desc {
  margin: 8px 0 18px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 11px;
  line-height: 1.7;
}

.live-pay-price {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 10px;
  margin: 10px 0 4px;
}

.live-pay-price strong {
  color: #ffb4ab;
  font-size: 30px;
  font-weight: 800;
}

.live-pay-price span {
  color: rgba(255, 255, 255, 0.45);
  text-decoration: line-through;
  font-size: 13px;
}

.live-lock-note {
  margin: 12px 0 0;
  color: rgba(255, 255, 255, 0.5);
  font-size: 11px;
  line-height: 1.7;
}

.live-lock-card .btn-block + .btn-block {
  margin-top: 10px;
}

@media (max-width: 640px) {
  .live-topbar-org {
    padding: 4px 9px;
    font-size: 11px;
  }
}

/* v1.6 控制台课程管理与用户订单 */
.course-head-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.course-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.course-admin-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border: 1px solid #e4ebf7;
  border-radius: 14px;
  background: #fff;
  flex-wrap: wrap;
}

.course-admin-main {
  flex: 1;
  min-width: 220px;
}

.course-admin-main strong {
  display: block;
  font-size: 15px;
  color: #14213d;
}

.course-admin-main p {
  margin: 4px 0 0;
  color: #7c8aa5;
  font-size: 12.5px;
}

.course-admin-status {
  padding: 3px 10px;
  border-radius: 999px;
  background: #eef2f9;
  color: #7c8aa5;
  font-size: 12px;
  font-weight: 700;
}

.course-admin-status.is-live {
  background: #e9f8ef;
  color: #1f8a5b;
}

.course-admin-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.course-editor {
  margin: 18px 0 22px;
  padding: 20px;
  border: 1px solid #dfe7f5;
  border-radius: 16px;
  background: #f8fbff;
}

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

.course-editor-head h3 {
  margin: 0;
  font-size: 16px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.form-grid .form-field--wide {
  grid-column: 1 / -1;
}

.form-actions {
  display: flex;
  gap: 8px;
  margin-top: 14px;
  flex-wrap: wrap;
}

.lesson-admin-list {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
}

.lesson-admin-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #eef2f9;
}

.lesson-admin-item:last-child {
  border-bottom: 0;
}

.lesson-admin-index {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: #eef4ff;
  color: #165dff;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}

.lesson-admin-main {
  flex: 1;
  min-width: 0;
}

.lesson-admin-main strong {
  display: block;
  font-size: 14px;
  color: #14213d;
}

.lesson-admin-main span {
  display: block;
  color: #7c8aa5;
  font-size: 12px;
  margin-top: 2px;
}

.orders-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.orders-table th,
.orders-table td {
  padding: 11px 10px;
  border-bottom: 1px solid #eef2f9;
  text-align: left;
  white-space: nowrap;
}

.orders-table th {
  color: #7c8aa5;
  font-weight: 600;
  background: #f8fbff;
}

.order-status {
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  background: #eef2f9;
  color: #7c8aa5;
}

.order-status--paid {
  background: #e9f8ef;
  color: #1f8a5b;
}

.order-status--pending {
  background: #fff4e5;
  color: #b26a00;
}

@media (max-width: 640px) {
  .form-grid {
    grid-template-columns: 1fr;
  }

  .course-admin-card {
    align-items: flex-start;
  }
}

/* 控制台商品管理 */
.product-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.product-admin-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border: 1px solid #e4ebf7;
  border-radius: 14px;
  background: #fff;
  flex-wrap: wrap;
}

.product-admin-thumb {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  overflow: hidden;
  background: #f1f5fc;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}

.product-admin-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.product-thumb-empty {
  color: #9aa8be;
  font-size: 12px;
}

.product-admin-main {
  flex: 1;
  min-width: 220px;
}

.product-admin-main strong {
  display: block;
  font-size: 15px;
  color: #14213d;
}

.product-admin-main p {
  margin: 4px 0 0;
  color: #7c8aa5;
  font-size: 12.5px;
}

.product-admin-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.spec-editor {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.spec-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-height: 28px;
}

.spec-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 999px;
  background: #eef4ff;
  color: #165dff;
  font-size: 12px;
  font-weight: 600;
}

.spec-tag--readonly {
  font-weight: 500;
}

.spec-tag-remove {
  border: 0;
  background: transparent;
  color: inherit;
  font-size: 14px;
  line-height: 1;
  padding: 0 1px;
  cursor: pointer;
}

.spec-empty {
  color: #9aa8be;
  font-size: 12.5px;
}

.spec-add-row {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.spec-add-row .input {
  flex: 1;
  min-width: 200px;
}

.product-image-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

.product-image-empty {
  margin: 0;
  color: #9aa8be;
  font-size: 12.5px;
}

.product-image-item {
  position: relative;
  width: 104px;
  margin: 0;
  border: 1px solid #e4ebf7;
  border-radius: 12px;
  overflow: hidden;
  background: #f8fbff;
}

.product-image-item--detail {
  width: 132px;
}

.product-image-item img {
  display: block;
  width: 100%;
  height: 104px;
  object-fit: cover;
}

.product-image-item--detail img {
  height: 74px;
  object-fit: contain;
  background: #fff;
}

.product-image-badge {
  position: absolute;
  top: 6px;
  left: 6px;
  padding: 1px 7px;
  border-radius: 999px;
  background: rgba(22, 93, 255, 0.92);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}

.product-image-tools {
  display: flex;
  border-top: 1px solid #e4ebf7;
}

.product-image-tool {
  flex: 1;
  border: 0;
  border-right: 1px solid #e4ebf7;
  background: #fff;
  color: #4c5d7a;
  font-size: 12px;
  padding: 5px 0;
  cursor: pointer;
}

.product-image-tool:last-child {
  border-right: 0;
}

.product-image-tool:disabled {
  color: #c3cddb;
  cursor: default;
}

.product-image-tool--danger {
  color: #c63b3b;
}

.product-image-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}

@media (max-width: 640px) {
  .product-admin-card {
    align-items: flex-start;
  }
}

/* 商品编辑：输入框边框与淡灰背景 */
#product-editor .input,
#product-editor .form-textarea {
  border: 1px solid #d8e1f0;
  background: #f7f9fc;
}

#product-editor .input:focus,
#product-editor .form-textarea:focus {
  border-color: #165dff;
  background: #fff;
  outline: none;
}

/* 规格行：名称 + 价格 + 独立库存 */
.spec-rows {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 10px;
}

.spec-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.spec-row .input {
  flex: 1;
  min-width: 100px;
}

.spec-row .spec-row-name {
  flex: 2;
  min-width: 150px;
}

.spec-row .spec-row-price {
  flex: 1.2;
}

.spec-row .spec-row-stock {
  flex: 1;
}

.spec-tag.is-soldout {
  background: #f1f3f7;
  color: #93a0b5;
}

/* 商品预览 / 分享弹层 */
.product-modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.product-modal[hidden] {
  display: none;
}

.product-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(11, 37, 69, 0.55);
}

.product-modal-dialog {
  position: relative;
  width: min(560px, 100%);
  max-height: 90vh;
  overflow: auto;
  padding: 20px;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 24px 60px rgba(15, 25, 50, 0.3);
}

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

.product-modal-head h3 {
  margin: 0;
  font-size: 17px;
}

.product-preview-dialog {
  width: min(430px, 100%);
  background: #eef1f7;
}

.product-preview-phone {
  width: 375px;
  max-width: 100%;
  margin: 0 auto;
  border-radius: 30px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 18px 44px rgba(15, 25, 50, 0.22);
}

.product-preview-statusbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  border-bottom: 1px solid #eef2f9;
  background: #fff;
  color: #101828;
  font-size: 12px;
}

.product-preview-body {
  max-height: 62vh;
  overflow-y: auto;
}

.preview-hero {
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f1f5fc;
}

.preview-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.preview-empty {
  color: #9aa8be;
  font-size: 13px;
}

.preview-thumbs {
  display: flex;
  gap: 6px;
  padding: 8px 12px;
  overflow-x: auto;
}

.preview-thumbs img {
  width: 44px;
  height: 44px;
  flex: none;
  border-radius: 8px;
  object-fit: cover;
}

.preview-info {
  padding: 12px 14px 4px;
}

.preview-org {
  font-size: 11px;
  color: #7c8aa5;
}

.preview-name {
  display: block;
  margin-top: 4px;
  font-size: 16px;
  color: #14213d;
}

.preview-price {
  margin-top: 8px;
  font-size: 22px;
  font-weight: 700;
  color: #e5484d;
}

.preview-stock {
  margin: 4px 0 0;
  font-size: 12px;
  color: #7c8aa5;
}

.preview-spec-title,
.preview-detail-title {
  padding: 10px 14px 6px;
  font-size: 12px;
  font-weight: 700;
  color: #4c5d7a;
}

.preview-spec-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0 14px 10px;
}

.preview-spec {
  padding: 5px 12px;
  border: 1px solid #d8e1f0;
  border-radius: 999px;
  background: #f7f9fc;
  color: #33415c;
  font-size: 12px;
  cursor: pointer;
}

.preview-spec.is-active {
  border-color: #165dff;
  background: #eef4ff;
  color: #165dff;
}

.preview-spec.is-soldout {
  color: #aab4c5;
  text-decoration: line-through;
  cursor: default;
}

.preview-buy {
  width: calc(100% - 28px);
  margin: 6px 14px 16px;
  padding: 11px 0;
  border: 0;
  border-radius: 12px;
  background: #165dff;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.preview-buy:disabled {
  background: #c3cddb;
  cursor: default;
}

.preview-details {
  display: flex;
  flex-direction: column;
}

.preview-details img {
  display: block;
  width: 100%;
}

.product-share-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.product-share-qr {
  width: 200px;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  border: 1px solid #e4ebf7;
  border-radius: 12px;
  background: #fff;
}

.product-share-qr svg {
  width: 100%;
  height: 100%;
}

.product-share-link {
  width: 100%;
  margin: 0;
  padding: 10px 12px;
  border-radius: 10px;
  background: #f4f7fc;
  color: #33415c;
  font-size: 12px;
  word-break: break-all;
  text-align: center;
}
