:root {
  --bg: #07111c;
  --bg-soft: #0d1c2b;
  --panel: rgba(255, 255, 255, 0.075);
  --panel-strong: rgba(255, 255, 255, 0.12);
  --text: #f7f3e8;
  --muted: #aeb9c5;
  --gold: #f3d37a;
  --gold-deep: #be8940;
  --cyan: #68d6ff;
  --line: rgba(255, 255, 255, 0.14);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
}

/* 2026 visual refresh: Yaojin system */
:root {
  --ink: #07111b;
  --ink-soft: #0d2031;
  --paper: #f4efe5;
  --paper-muted: #b8c2ca;
  --gold: #e5c675;
  --gold-deep: #a87836;
  --cyan: #62c7d7;
  --danger: #e07068;
  --bg: var(--ink);
  --bg-soft: var(--ink-soft);
  --text: var(--paper);
  --muted: var(--paper-muted);
  --line: rgba(229, 198, 117, 0.24);
  --panel: rgba(255, 255, 255, 0.055);
  --panel-strong: rgba(255, 255, 255, 0.09);
  --shadow: 0 18px 54px rgba(0, 0, 0, 0.3);
}

html {
  background: var(--ink);
}

body {
  color: var(--paper);
  background: var(--ink);
}

.page-shell {
  overflow: clip;
}

.topbar,
.account-topbar {
  min-height: 72px;
  padding: 10px clamp(20px, 4vw, 64px);
  border-bottom: 1px solid rgba(7, 17, 27, 0.18);
  background: var(--gold);
  color: var(--ink);
  backdrop-filter: none;
}

.brand {
  min-width: max-content;
}

.brand-mark,
.hero-logo img {
  object-fit: contain;
  object-position: center;
  background: var(--ink);
}

.brand-mark {
  width: 52px;
  height: 52px;
  border: 1px solid rgba(7, 17, 27, 0.18);
  border-radius: 6px;
  box-shadow: none;
}

.brand strong,
.brand small,
.topbar .nav,
.account-topbar .text-link {
  color: var(--ink);
}

.brand strong {
  font-size: 17px;
}

.brand small {
  opacity: 0.68;
}

.nav {
  gap: clamp(14px, 2.2vw, 30px);
  font-weight: 700;
}

.nav a {
  opacity: 0.78;
}

.nav a:hover,
.topbar .nav-account {
  color: var(--ink) !important;
  opacity: 1 !important;
}

.topbar .nav-account {
  min-height: 36px;
  border-color: rgba(7, 17, 27, 0.46);
  background: transparent;
}

.system-hero {
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.72fr);
  min-height: min(780px, calc(100svh - 120px));
  padding: clamp(58px, 8vh, 96px) clamp(24px, 7vw, 112px);
  border-bottom: 1px solid var(--line);
  background: var(--ink);
}

.hero-copy {
  max-width: 760px;
}

.hero-kicker,
.advantage-system__intro > p,
.room-copy > span,
.business-index {
  color: var(--gold);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
}

.hero-title {
  max-width: 760px;
  margin: 0 0 26px;
  color: var(--paper);
  font-size: clamp(52px, 6.4vw, 92px);
  line-height: 1.05;
  letter-spacing: 0;
}

.lead {
  max-width: 650px;
  color: var(--paper-muted);
  font-size: 18px;
}

.hero-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(148px, 188px));
  margin: 34px 0 0;
}

.btn,
.hero-actions .btn {
  border-radius: 4px;
  transition: transform 180ms ease, background-color 180ms ease, color 180ms ease;
}

.btn:hover {
  filter: none;
  transform: translateY(-2px);
}

.btn-primary,
.hero-actions .btn-primary {
  color: var(--ink);
  border-color: var(--gold);
  background: var(--gold);
  box-shadow: none;
}

.hero-actions .btn-primary:last-child {
  color: var(--ink);
  background: var(--gold);
}

.hero-logo {
  display: grid;
  place-items: center;
  width: 100%;
  max-width: 520px;
  margin: 0;
  aspect-ratio: 1 / 1;
  padding: clamp(18px, 3vw, 42px);
  border: 1px solid var(--line);
  background: var(--ink-soft);
}

.hero-logo img {
  width: 100%;
  height: 100%;
}

.section {
  max-width: none;
  padding: clamp(68px, 8vw, 112px) clamp(24px, 7vw, 112px);
  border-bottom: 1px solid var(--line);
}

.business-section {
  padding-top: 48px;
}

.section-head-wide {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 38px;
}

.section-head-wide h2,
.contact-copy h2 {
  margin: 0;
  color: var(--paper);
  font-size: clamp(34px, 4vw, 56px);
  line-height: 1.12;
  letter-spacing: 0;
}

.section-head-wide > p {
  max-width: 420px;
  margin: 0;
  color: var(--paper-muted);
  line-height: 1.7;
}

.accent-dot {
  color: var(--cyan);
}

.business-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(180px, auto));
  grid-auto-flow: dense;
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line);
}

.business-card {
  min-width: 0;
  padding: clamp(24px, 3vw, 42px);
  background: var(--ink-soft);
}

.business-card-lead {
  grid-column: span 2;
  grid-row: span 2;
  display: flex;
  flex-direction: column;
  justify-content: end;
}

.business-card-wide {
  grid-column: span 2;
}

.business-card h3 {
  margin: 16px 0 12px;
  color: var(--gold);
  font-size: clamp(22px, 2.4vw, 34px);
}

.business-card p,
.process-grid p,
.advantage-system__item p,
.room-copy p {
  margin: 0;
  color: var(--paper-muted);
  line-height: 1.75;
}

.rooms-section {
  background: #0a1723;
}

.room-feature {
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(300px, 1.1fr);
  min-height: 440px;
  border: 1px solid var(--line);
}

.room-feature .room-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.room-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(32px, 6vw, 88px);
  background: var(--ink-soft);
}

.room-copy h3 {
  margin: 18px 0;
  font-size: clamp(38px, 5vw, 68px);
}

.advantage-system {
  display: grid;
  grid-template-columns: minmax(300px, 0.82fr) minmax(440px, 1.18fr);
  gap: clamp(44px, 8vw, 120px);
  align-items: start;
}

.advantage-system__intro {
  position: sticky;
  top: 108px;
}

.advantage-system__intro h2 {
  margin: 18px 0 0;
  font-size: clamp(38px, 5vw, 68px);
  line-height: 1.13;
  letter-spacing: 0;
}

.advantage-system__item {
  display: grid;
  grid-template-columns: 62px 1fr;
  gap: 22px;
  min-height: 190px;
  padding: 34px 0;
  border-top: 1px solid var(--line);
}

.advantage-system__item:last-child {
  border-bottom: 1px solid var(--line);
}

.advantage-system__item > span {
  color: var(--gold);
  font-weight: 800;
}

.advantage-system__item h3 {
  margin-bottom: 12px;
  font-size: 26px;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--line);
}

.process-grid > * {
  min-width: 0;
  min-height: 220px;
  padding: 30px;
  border-right: 1px solid var(--line);
  background: transparent;
}

.process-grid > *:last-child {
  border-right: 0;
}

.process-grid span {
  color: var(--cyan);
  font-weight: 800;
}

.process-grid h3 {
  margin: 42px 0 12px;
  color: var(--paper);
}

.process-grid > a:hover {
  background: var(--ink-soft);
}

.text-link {
  color: var(--gold);
  font-weight: 700;
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(420px, 1.2fr);
  gap: clamp(44px, 8vw, 120px);
  align-items: center;
  background: var(--paper);
}

.contact-section .contact-copy h2,
.contact-section .contact-copy p {
  color: var(--ink);
}

.contact-section .wechat-contacts {
  justify-content: flex-end;
}

.contact-section .wechat-contact {
  border-color: rgba(7, 17, 27, 0.2);
  background: #fff;
}

.contact-section .wechat-contact figcaption strong {
  color: var(--ink);
}

.contact-section .wechat-contact figcaption span {
  color: #52616d;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  padding: 32px clamp(24px, 7vw, 112px);
  color: var(--paper-muted);
  background: #03090f;
}

.site-footer strong {
  color: var(--gold);
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

/* Existing forms and administration pages inherit the same quiet system. */
.account-shell,
.feedback-main,
.admin-main {
  background: var(--ink);
}

.account-layout {
  grid-template-columns: minmax(280px, 0.78fr) minmax(420px, 1.22fr);
  align-items: start;
  gap: clamp(32px, 6vw, 88px);
}

.auth-card,
.feedback-panel,
.history-panel,
.admin-workspace,
.audit-section,
.admin-dialog,
.security-section {
  border-color: var(--line);
  border-radius: 6px;
  background: var(--ink-soft);
  box-shadow: none;
}

.form-control {
  min-height: 46px;
  border-color: rgba(244, 239, 229, 0.24);
  border-radius: 4px;
  color: var(--paper);
  background: rgba(255, 255, 255, 0.04);
}

.admin-metrics,
.admin-toolbar,
.admin-feedback-list,
.admin-user-list,
.application-admin-list {
  border-radius: 0;
  box-shadow: none;
}

.admin-dialog {
  width: min(760px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  color: var(--paper);
}

.status-new {
  color: var(--gold);
}

.status-active {
  color: var(--cyan);
}

.status-resolved {
  color: #83d6a7;
}

.btn-danger {
  color: #fff;
  background: #8f3038;
}

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

@media (max-width: 980px) {
  .topbar {
    align-items: flex-start;
  }

  .nav {
    justify-content: flex-start;
    overflow-x: auto;
    max-width: 100%;
    padding-bottom: 4px;
    scrollbar-width: none;
  }

  .nav::-webkit-scrollbar {
    display: none;
  }

  .system-hero,
  .advantage-system,
  .contact-section,
  .account-layout {
    grid-template-columns: 1fr;
  }

  .system-hero {
    min-height: auto;
  }

  .hero-logo {
    width: min(100%, 560px);
    justify-self: center;
  }

  .advantage-system__intro {
    position: static;
  }

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

  .contact-section .wechat-contacts {
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .topbar,
  .account-topbar {
    position: relative;
    min-height: auto;
    padding: 10px 16px;
  }

  .topbar {
    display: block;
  }

  .topbar .brand {
    margin-bottom: 10px;
  }

  .brand-mark {
    width: 56px;
    height: 56px;
  }

  .nav {
    display: flex;
    flex-wrap: nowrap;
    gap: 18px;
    font-size: 13px;
  }

  .system-hero,
  .section {
    padding: 48px 18px;
  }

  .hero-title {
    font-size: 42px;
  }

  .lead {
    font-size: 16px;
  }

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

  .hero-actions .btn {
    min-width: 0;
    padding: 0 12px;
  }

  .hero-logo {
    padding: 16px;
  }

  .section-head-wide,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .section-head-wide h2,
  .contact-copy h2 {
    font-size: 34px;
  }

  .business-grid,
  .room-feature,
  .process-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }

  .business-card-lead,
  .business-card-wide {
    grid-column: auto;
    grid-row: auto;
  }

  .business-card {
    min-height: 170px;
  }

  .room-feature {
    min-height: 0;
  }

  .room-feature .room-cover {
    aspect-ratio: 1.25 / 1;
  }

  .process-grid > * {
    min-height: 170px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .process-grid > *:last-child {
    border-bottom: 0;
  }

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

  .wechat-contact {
    min-width: 0;
  }

  .dialog-actions {
    position: sticky;
    bottom: 0;
    background: var(--ink-soft);
  }
}

@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;
  }
}

/* Rooms visual patch: keep the poster art focused on the subject and make the section read as one unit. */
.rooms-section {
  background: #090909;
  padding-block: clamp(64px, 8vw, 104px);
}

.rooms-section .section-head-wide {
  width: min(1100px, 100%);
  margin: 0 auto clamp(26px, 4vw, 42px);
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.rooms-section .section-head-wide h2 {
  font-size: clamp(34px, 4.4vw, 58px);
  line-height: 1.08;
}

.rooms-section .section-head-wide > p {
  max-width: 520px;
  font-size: 16px;
  line-height: 1.65;
}

.rooms-section .room-feature {
  width: min(1100px, 100%);
  min-height: 0;
  margin: 0 auto;
  grid-template-columns: minmax(0, 1.18fr) minmax(280px, 0.82fr);
  overflow: hidden;
  border-color: rgba(223, 189, 120, 0.48);
  background: #11100e;
}

.rooms-section .room-cover-frame {
  min-width: 0;
  aspect-ratio: 1.18 / 1;
  overflow: hidden;
  background: #11100e;
}

.rooms-section .room-cover {
  display: block;
  width: 138%;
  max-width: none;
  height: 100%;
  object-fit: cover;
  object-position: left center;
}

.rooms-section .room-copy {
  justify-content: center;
  padding: clamp(30px, 5vw, 68px);
  border-left-color: rgba(223, 189, 120, 0.26);
  background: #11100e;
}

.rooms-section .room-copy > span {
  letter-spacing: 0.16em;
  font-size: 11px;
}

.rooms-section .room-copy h3 {
  margin: 16px 0 10px;
  color: var(--gold-bright);
  font-size: clamp(34px, 4vw, 54px);
  line-height: 1.08;
}

.rooms-section .room-copy p {
  max-width: 260px;
  font-size: 16px;
  line-height: 1.65;
}

@media (max-width: 980px) {
  .rooms-section .room-feature {
    grid-template-columns: 1fr;
  }

  .rooms-section .room-cover-frame {
    aspect-ratio: 1.25 / 1;
  }

  .rooms-section .room-copy {
    border-top-color: rgba(223, 189, 120, 0.26);
    border-left: 0;
  }
}

@media (max-width: 640px) {
  .rooms-section {
    padding: 56px 18px 64px;
  }

  .rooms-section .section-head-wide {
    margin-bottom: 24px;
    gap: 10px;
  }

  .rooms-section .section-head-wide h2 {
    font-size: 36px;
  }

  .rooms-section .section-head-wide > p {
    font-size: 15px;
    text-align: left;
  }

  .rooms-section .room-cover-frame {
    aspect-ratio: 1.08 / 1;
  }

  .rooms-section .room-cover {
    width: 146%;
  }

  .rooms-section .room-copy {
    padding: 28px 24px 32px;
  }

  .rooms-section .room-copy h3 {
    font-size: 38px;
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 84% 8%, rgba(30, 115, 180, 0.36), transparent 30%),
    linear-gradient(135deg, #04080e 0%, #0a1a27 48%, #112a3c 100%);
}

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

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

.page-shell {
  overflow: hidden;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  padding: 16px clamp(20px, 5vw, 72px);
  border-bottom: 1px solid var(--line);
  background: rgba(5, 12, 20, 0.82);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 190px;
}

.brand-mark {
  width: 46px;
  height: 46px;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 8px 30px rgba(243, 211, 122, 0.22);
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 18px;
  line-height: 1.1;
}

.brand small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(14px, 3vw, 34px);
  color: #dce7f0;
  font-size: 14px;
  white-space: nowrap;
}

.nav a {
  opacity: 0.88;
}

.nav a:hover {
  color: var(--gold);
  opacity: 1;
}

.nav-account {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 14px;
  border: 1px solid rgba(243, 211, 122, 0.5);
  border-radius: 6px;
  color: var(--gold) !important;
  opacity: 1 !important;
}

.nav-account:hover {
  background: rgba(243, 211, 122, 0.12);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 520px);
  align-items: center;
  min-height: calc(100vh - 132px);
  padding: clamp(54px, 8vw, 96px) clamp(20px, 5vw, 72px) 56px;
  gap: clamp(34px, 6vw, 88px);
}

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

.eyebrow {
  margin: 0 0 14px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
}

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

h1 {
  margin-bottom: 22px;
  max-width: 680px;
  font-size: clamp(44px, 5.8vw, 82px);
  line-height: 1.05;
  letter-spacing: 0;
}

.lead {
  max-width: 620px;
  color: #d2dde7;
  font-size: 18px;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 32px 0 34px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
}

.btn-primary {
  color: #101018;
  background: linear-gradient(135deg, var(--gold), var(--gold-deep));
  box-shadow: 0 16px 42px rgba(190, 137, 64, 0.28);
}

.btn-secondary {
  color: #f5f9ff;
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.07);
}

.btn-danger {
  color: #fff5f4;
  border-color: rgba(238, 112, 105, 0.55);
  background: rgba(153, 48, 55, 0.55);
}

.btn-ghost {
  color: var(--cyan);
  border-color: rgba(104, 214, 255, 0.35);
  background: transparent;
}

.btn:hover {
  filter: brightness(1.08);
}

.btn:focus-visible,
.form-control:focus-visible,
.choice:focus-within {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(100px, 1fr));
  max-width: 560px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.055);
}

.hero-stats div {
  padding: 18px 20px;
  border-right: 1px solid var(--line);
}

.hero-stats div:last-child {
  border-right: 0;
}

.hero-stats strong,
.hero-stats span {
  display: block;
}

.hero-stats strong {
  color: var(--gold);
  font-size: 26px;
}

.hero-stats span {
  margin-top: 5px;
  color: var(--muted);
  font-size: 13px;
}

.hero-visual {
  position: relative;
  min-height: 480px;
}

.visual-panel {
  position: absolute;
  inset: 30px 0 20px 42px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(243, 211, 122, 0.34);
  border-radius: 8px;
  background: #06111d;
  box-shadow: var(--shadow);
}

.visual-panel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.floating-card {
  position: absolute;
  width: min(260px, 72vw);
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(8, 20, 32, 0.88);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.floating-card span,
.floating-card strong {
  display: block;
}

.floating-card span {
  margin-bottom: 7px;
  color: var(--cyan);
  font-size: 12px;
}

.floating-card strong {
  color: #ffffff;
  font-size: 16px;
}

.card-a {
  left: 0;
  top: 0;
}

.card-b {
  right: 0;
  bottom: 0;
}

.section {
  padding: 78px clamp(20px, 5vw, 72px);
  border-top: 1px solid var(--line);
}

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

.section-head h2 {
  margin-bottom: 0;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.15;
}

.grid {
  display: grid;
  gap: 18px;
}

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

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

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

.room-item {
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr);
  align-items: center;
  gap: 20px;
  min-height: 150px;
  padding: 26px;
  border: 1px solid rgba(104, 214, 255, 0.28);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.075);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.16);
}

.room-cover {
  display: block;
  width: 68px;
  height: 68px;
  border: 1px solid rgba(243, 211, 122, 0.42);
  object-fit: cover;
  object-position: center;
}

.room-item h3 {
  margin-bottom: 8px;
  font-size: 28px;
}

.room-item p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.75;
}

.panel,
.info-card,
.contact-band {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.16);
}

.panel {
  min-height: 180px;
  padding: 26px;
}

.panel h3,
.info-card h3,
.contact-band h3 {
  margin-bottom: 12px;
  font-size: 22px;
}

.panel p,
.timeline-item p,
.contact-band p,
.info-card li {
  color: var(--muted);
  line-height: 1.75;
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(320px, 0.7fr);
  gap: 22px;
}

.timeline {
  display: grid;
  gap: 16px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  gap: 18px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
}

.timeline-item span {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border: 1px solid rgba(243, 211, 122, 0.42);
  color: var(--gold);
  font-weight: 900;
}

.timeline-item h3 {
  margin-bottom: 8px;
}

.timeline-item p {
  margin-bottom: 0;
}

.info-card {
  padding: 28px;
  background: var(--panel-strong);
}

.info-card ul {
  display: grid;
  gap: 14px;
  margin: 22px 0 0;
  padding: 0 0 0 18px;
}

.step {
  min-height: 210px;
}

.step-link {
  display: block;
  color: var(--text);
  text-decoration: none;
  transition: border-color 160ms ease, transform 160ms ease;
}

.step-link:hover {
  border-color: rgba(243, 211, 122, 0.55);
  transform: translateY(-2px);
}

.step-link strong {
  display: inline-block;
  margin-top: 14px;
  color: var(--gold);
  font-size: 13px;
}

.step span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 24px;
  border: 1px solid rgba(104, 214, 255, 0.46);
  color: var(--cyan);
  font-weight: 900;
}

.contact-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  justify-content: space-between;
  gap: clamp(28px, 5vw, 72px);
  padding: clamp(24px, 4vw, 38px);
  background:
    linear-gradient(135deg, rgba(243, 211, 122, 0.12), rgba(104, 214, 255, 0.08)),
    var(--panel);
}

.contact-band h3 {
  font-size: clamp(22px, 2.4vw, 32px);
}

.contact-band p {
  max-width: 720px;
  margin-bottom: 0;
}

.wechat-contacts {
  display: grid;
  grid-template-columns: repeat(2, 176px);
  gap: 18px;
}

.wechat-contact {
  width: 176px;
  margin: 0;
  text-align: center;
}

.wechat-contact a {
  display: block;
  overflow: hidden;
  border: 5px solid #ffffff;
  border-radius: 6px;
  background: #ffffff;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28);
}

.wechat-contact a:hover {
  border-color: var(--gold);
}

.wechat-contact img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  background: #ffffff;
}

.wechat-contact figcaption {
  margin-top: 12px;
}

.wechat-contact strong,
.wechat-contact span {
  display: block;
}

.wechat-contact strong {
  font-size: 15px;
}

.wechat-contact span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

/* Account and feedback pages */
.account-shell {
  min-height: 100vh;
  padding: 24px clamp(20px, 5vw, 72px) 64px;
}

.account-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  max-width: 1180px;
  margin: 0 auto 38px;
}

.back-link {
  color: var(--muted);
  font-size: 14px;
}

.back-link:hover {
  color: var(--gold);
}

.account-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(420px, 1.15fr);
  align-items: stretch;
  gap: clamp(28px, 6vw, 86px);
  max-width: 1180px;
  margin: 0 auto;
}

.join-application-layout {
  grid-template-columns: minmax(300px, 0.7fr) minmax(520px, 1.3fr);
  max-width: 1280px;
}

.join-form-card {
  align-self: start;
}

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

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

.application-textarea {
  min-height: 110px;
}

.file-control {
  min-height: 54px;
  padding: 10px 12px;
}

.file-control::file-selector-button {
  margin-right: 12px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.07);
  cursor: pointer;
}

.audio-preview {
  width: 100%;
  margin-top: 4px;
}

.feedback-attachment-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(150px, 100%), 1fr));
  gap: 10px;
  margin-top: 6px;
}

.feedback-attachment-grid img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.18);
  object-fit: cover;
}

.account-intro {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 560px;
}

.account-intro h1 {
  max-width: 560px;
  margin-bottom: 20px;
  font-size: clamp(38px, 5vw, 68px);
}

.account-intro .lead {
  max-width: 520px;
}

.intro-points {
  display: grid;
  gap: 14px;
  margin: 34px 0 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  line-height: 1.6;
}

.intro-points li {
  display: flex;
  align-items: center;
  gap: 12px;
}

.intro-points li::before {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 5px rgba(243, 211, 122, 0.12);
  content: "";
}

.auth-card,
.feedback-panel,
.history-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.075);
  box-shadow: var(--shadow);
}

.auth-card {
  align-self: center;
  padding: clamp(24px, 4vw, 42px);
}

.tab-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4px;
  margin-bottom: 30px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.14);
}

.tab-button {
  min-height: 42px;
  border: 0;
  border-radius: 4px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
}

.tab-button[aria-selected="true"] {
  color: #11151b;
  background: var(--gold);
}

.form-heading {
  margin-bottom: 24px;
}

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

.form-heading p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.form-stack {
  display: grid;
  gap: 17px;
}

.form-link-button {
  justify-self: center;
}

.credential-code-value {
  display: block;
  padding: 14px 16px;
  border: 1px solid rgba(239, 197, 91, 0.45);
  border-radius: 4px;
  background: rgba(4, 13, 20, 0.55);
  color: var(--gold);
  font-family: Consolas, monospace;
  font-size: 17px;
  font-weight: 700;
  overflow-wrap: anywhere;
  text-align: center;
}

.field {
  display: grid;
  gap: 8px;
}

.field label {
  color: #e4edf4;
  font-size: 14px;
  font-weight: 700;
}

.field-reset {
  margin: 0;
  padding: 0;
  border: 0;
}

.field-reset legend {
  margin-bottom: 8px;
  color: #e4edf4;
  font-size: 14px;
  font-weight: 700;
}

.field-note {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.form-control {
  width: 100%;
  min-height: 46px;
  padding: 11px 13px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 5px;
  color: var(--text);
  outline: 0;
  background: rgba(0, 0, 0, 0.2);
  font: inherit;
}

.password-control {
  position: relative;
}

.password-control .form-control {
  padding-right: 48px;
}

.password-toggle {
  position: absolute;
  top: 50%;
  right: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  border-radius: 4px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  transform: translateY(-50%);
}

.password-toggle:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
}

.password-toggle:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 1px;
}

.password-icon {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
  pointer-events: none;
}

.password-icon-eye-off,
.password-toggle[aria-pressed="true"] .password-icon-eye {
  display: none;
}

.password-toggle[aria-pressed="true"] .password-icon-eye-off {
  display: block;
}

.form-control::placeholder {
  color: #738394;
}

textarea.form-control {
  min-height: 142px;
  resize: vertical;
}

.form-control:focus {
  border-color: var(--cyan);
  background: rgba(0, 0, 0, 0.28);
}

.form-error,
.form-success {
  display: none;
  margin: 0;
  padding: 11px 13px;
  border-radius: 5px;
  font-size: 13px;
  line-height: 1.5;
}

.form-error.is-visible,
.form-success.is-visible {
  display: block;
}

.form-error {
  color: #ffb9b3;
  border: 1px solid rgba(255, 130, 116, 0.35);
  background: rgba(255, 86, 72, 0.1);
}

.form-success {
  color: #b9f1d2;
  border: 1px solid rgba(115, 228, 163, 0.32);
  background: rgba(61, 182, 115, 0.1);
}

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

.check-row input {
  margin: 2px 0 0;
  accent-color: var(--gold);
}

.form-submit {
  width: 100%;
  margin-top: 4px;
}

.is-hidden {
  display: none !important;
}

.feedback-page {
  min-height: 100vh;
}

.feedback-main {
  max-width: 1180px;
  margin: 0 auto;
  padding: 42px clamp(20px, 5vw, 72px) 72px;
}

.feedback-welcome {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 34px;
}

.feedback-welcome h1 {
  margin-bottom: 12px;
  font-size: clamp(34px, 4.5vw, 58px);
}

.feedback-welcome p {
  max-width: 670px;
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.7;
}

.session-tools {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
}

#user-security-dialog {
  max-width: min(92vw, 520px);
  width: 100%;
}

.security-section {
  display: grid;
  gap: 14px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.security-section:first-of-type {
  padding-top: 0;
  border-top: 0;
}

.security-section h3 {
  margin: 0;
  font-size: 18px;
}

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

.security-section-head p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

#passkey-list {
  display: grid;
  gap: 0.65rem;
  max-width: 100%;
  overflow-wrap: anywhere;
}

#passkey-list .record-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-width: 0;
}

#passkey-list .record-meta button {
  flex: 0 0 auto;
}

@media (max-width: 560px) {
  #user-security-dialog {
    margin: 0.75rem;
    max-width: calc(100vw - 1.5rem);
  }

  #passkey-list .record-meta {
    align-items: flex-start;
    flex-direction: column;
  }
}

.text-button {
  padding: 0;
  border: 0;
  color: var(--gold);
  background: transparent;
  cursor: pointer;
  font: inherit;
}

.text-button:hover {
  color: #fff3bd;
}

.feedback-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
  align-items: start;
  gap: 22px;
}

.feedback-panel,
.history-panel {
  padding: clamp(22px, 3vw, 32px);
}

.panel-title {
  margin-bottom: 24px;
}

.panel-title h2 {
  margin-bottom: 7px;
  font-size: 24px;
}

.panel-title p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

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

.choice {
  position: relative;
  display: block;
  cursor: pointer;
}

.choice input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.choice span {
  display: grid;
  min-height: 46px;
  place-items: center;
  padding: 7px;
  border: 1px solid var(--line);
  border-radius: 5px;
  color: var(--muted);
  text-align: center;
  font-size: 13px;
  line-height: 1.35;
}

.choice input:checked + span {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(243, 211, 122, 0.1);
}

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

.history-tabs {
  margin-bottom: 12px;
}

.history-query-tools {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 126px;
  gap: 8px;
}

.history-query-tools .form-control {
  min-height: 42px;
  padding-block: 8px;
  font-size: 13px;
}

.history-result-count {
  margin: 10px 0 12px;
  color: var(--muted);
  font-size: 12px;
}

.pagination-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 16px;
  color: var(--muted);
  font-size: 12px;
}

.pagination-controls .btn:disabled {
  cursor: not-allowed;
  opacity: 0.42;
  transform: none;
}

.history-empty {
  padding: 28px 14px;
  border: 1px dashed rgba(255, 255, 255, 0.18);
  color: var(--muted);
  text-align: center;
  font-size: 13px;
  line-height: 1.7;
}

.feedback-record {
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: rgba(0, 0, 0, 0.13);
}

.feedback-record.is-clickable {
  cursor: pointer;
  transition: border-color 160ms ease, background-color 160ms ease, transform 160ms ease;
}

.feedback-record.is-clickable:hover {
  border-color: rgba(104, 214, 255, 0.52);
  background: rgba(104, 214, 255, 0.055);
  transform: translateY(-1px);
}

.feedback-record.is-clickable:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

.record-meta,
.record-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.record-meta {
  margin-bottom: 9px;
  color: var(--muted);
  font-size: 12px;
}

.record-status {
  color: var(--cyan);
}

.record-title-row h3 {
  margin-bottom: 8px;
  font-size: 17px;
}

.record-category {
  flex: 0 0 auto;
  padding: 3px 7px;
  border: 1px solid rgba(104, 214, 255, 0.28);
  border-radius: 4px;
  color: var(--cyan);
  font-size: 11px;
}

.record-content {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
  white-space: pre-wrap;
  word-break: break-word;
}

.record-reply {
  margin-top: 14px;
  padding: 13px;
  border-left: 3px solid var(--gold);
  background: rgba(243, 211, 122, 0.08);
}

.record-reply.is-solution {
  border-left-color: var(--cyan);
  background: rgba(104, 214, 255, 0.08);
}

.record-reply.is-solution strong {
  color: var(--cyan);
}

.record-reply strong {
  color: var(--gold);
  font-size: 12px;
}

.record-reply p {
  margin: 6px 0 0;
  color: #e6edf3;
  font-size: 13px;
  line-height: 1.7;
  white-space: pre-wrap;
  word-break: break-word;
}

.record-open-hint {
  display: block;
  margin-top: 13px;
  color: var(--gold);
  text-align: right;
  font-size: 12px;
  font-weight: 700;
}

.record-dialog-content {
  display: grid;
  gap: 20px;
  padding: clamp(22px, 4vw, 36px);
}

.record-dialog-content .dialog-head h2 {
  margin-bottom: 0;
  font-size: 28px;
}

.record-dialog-solution {
  padding: 17px;
  border-left: 3px solid var(--cyan);
  background: rgba(104, 214, 255, 0.08);
}

.record-dialog-solution > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.record-dialog-solution h3 {
  margin-bottom: 0;
  color: var(--cyan);
  font-size: 15px;
}

.record-dialog-solution span {
  color: var(--muted);
  font-size: 11px;
}

.record-dialog-solution p {
  margin: 10px 0 0;
  color: #edf6fb;
  line-height: 1.75;
  white-space: pre-wrap;
  word-break: break-word;
}

/* Admin console */
.admin-page {
  min-height: 100vh;
}

.admin-main {
  width: min(1480px, 100%);
  margin: 0 auto;
  padding: 38px clamp(20px, 4vw, 60px) 72px;
}

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

.admin-heading h1 {
  margin-bottom: 0;
  font-size: clamp(34px, 4vw, 54px);
}

.admin-refresh {
  flex: 0 0 auto;
}

.admin-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 34px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.055);
}

.admin-metrics div {
  padding: 20px 24px;
  border-right: 1px solid var(--line);
}

.admin-metrics div:last-child {
  border-right: 0;
}

.admin-metrics span,
.admin-metrics strong {
  display: block;
}

.admin-metrics span {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 13px;
}

.admin-metrics strong {
  color: var(--gold);
  font-size: 30px;
}

.admin-toolbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 14px;
}

.admin-toolbar h2 {
  margin-bottom: 4px;
  font-size: 24px;
}

.admin-toolbar p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 13px;
}

.admin-filters {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 178px 140px;
  gap: 10px;
}

.admin-filters .form-control {
  min-height: 40px;
  padding-block: 8px;
  font-size: 13px;
}

.form-control option {
  color: var(--text);
  background: var(--bg-soft);
}

.admin-list-head,
.admin-feedback-row {
  display: grid;
  grid-template-columns: minmax(260px, 2.2fr) minmax(110px, 0.8fr) minmax(120px, 0.85fr) 84px 142px 96px;
  align-items: center;
  gap: 16px;
}

.admin-list-head {
  padding: 11px 16px;
  color: #8292a2;
  font-size: 11px;
}

.admin-feedback-list {
  display: grid;
  gap: 9px;
}

.admin-feedback-row {
  min-height: 112px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.055);
}

.admin-feedback-row.is-urgent {
  border-left: 3px solid #ff887d;
}

.admin-feedback-summary {
  min-width: 0;
}

.admin-feedback-flags {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 11px;
}

.admin-feedback-flags strong {
  padding: 2px 6px;
  border-radius: 3px;
  color: #ffd1cc;
  background: rgba(255, 92, 76, 0.16);
  font-size: 10px;
}

.admin-feedback-summary h3 {
  overflow: hidden;
  margin-bottom: 5px;
  font-size: 16px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-feedback-summary p {
  display: -webkit-box;
  overflow: hidden;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.admin-cell {
  min-width: 0;
  color: #dce6ee;
  font-size: 13px;
  line-height: 1.5;
  word-break: break-word;
}

.admin-cell small {
  display: block;
  overflow: hidden;
  margin-top: 3px;
  color: var(--muted);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-status {
  justify-self: start;
  padding: 4px 8px;
  border: 1px solid currentColor;
  border-radius: 4px;
  font-size: 11px;
}

.status-new { color: var(--gold); }
.status-active { color: var(--cyan); }
.status-resolved { color: #84e0ad; }
.status-closed { color: #8b99a6; }

.admin-time {
  color: var(--muted);
  font-size: 12px;
}

.btn-small {
  min-height: 36px;
  padding: 0 12px;
  font-size: 12px;
}

.admin-page-error {
  margin-top: 14px;
}

.admin-dialog {
  width: min(760px, calc(100% - 32px));
  max-height: calc(100vh - 40px);
  padding: 0;
  overflow: auto;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  color: var(--text);
  background: #102334;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.62);
}

.admin-dialog::backdrop {
  background: rgba(0, 6, 11, 0.78);
  backdrop-filter: blur(5px);
}

.admin-detail-form {
  display: grid;
  gap: 18px;
  padding: clamp(22px, 4vw, 36px);
}

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

.dialog-head h2 {
  margin-bottom: 0;
  font-size: 27px;
}

.dialog-close {
  display: grid;
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  place-items: center;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
}

.dialog-close:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
}

.detail-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 24px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.detail-meta-grid div {
  min-width: 0;
}

.detail-meta-grid span,
.detail-meta-grid strong {
  display: block;
}

.detail-meta-grid span {
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 11px;
}

.detail-meta-grid strong {
  font-size: 13px;
  line-height: 1.5;
  word-break: break-word;
}

.detail-meta-grid .detail-wide {
  grid-column: 1 / -1;
}

.detail-content h3 {
  margin-bottom: 8px;
  font-size: 14px;
}

.detail-content p {
  margin-bottom: 0;
  color: #d9e4ec;
  line-height: 1.8;
  white-space: pre-wrap;
  word-break: break-word;
}

.detail-screenshot h3 {
  margin-bottom: 8px;
  font-size: 14px;
}

.detail-screenshot img {
  display: block;
  width: 100%;
  max-height: 520px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.18);
  object-fit: contain;
}

.detail-screenshot .feedback-attachment-grid img {
  aspect-ratio: 4 / 3;
  max-height: none;
  object-fit: cover;
}

.admin-dialog textarea.form-control {
  min-height: 106px;
}

.admin-dialog textarea.detail-note {
  min-height: 76px;
}

.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.compact-dialog {
  width: min(600px, calc(100% - 32px));
}

.notification-badge {
  display: inline-grid;
  min-width: 19px;
  height: 19px;
  place-items: center;
  margin-left: 3px;
  padding: 0 5px;
  border-radius: 9px;
  color: #11151b;
  background: var(--gold);
  font-size: 10px;
  font-weight: 900;
}

.notification-list,
.audit-list {
  display: grid;
  gap: 9px;
}

.notification-item {
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: rgba(0, 0, 0, 0.12);
}

.notification-item.is-unread {
  border-left: 3px solid var(--gold);
}

.notification-item strong,
.notification-item span {
  display: block;
}

.notification-item strong {
  font-size: 14px;
}

.notification-item p {
  margin: 6px 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.notification-item span {
  color: #7f8f9e;
  font-size: 11px;
}

.admin-live-alerts {
  position: fixed;
  z-index: 1200;
  top: 76px;
  right: 20px;
  display: grid;
  width: min(390px, calc(100vw - 32px));
  gap: 10px;
  pointer-events: none;
}

.admin-live-alert {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto 32px;
  align-items: center;
  gap: 10px;
  min-height: 84px;
  padding: 12px;
  border: 1px solid rgba(25, 43, 68, 0.16);
  border-left: 4px solid #177a57;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 16px 42px rgba(18, 35, 58, 0.2);
  pointer-events: auto;
  animation: admin-alert-in 180ms ease-out both;
}

.admin-live-alert.is-feedback {
  border-left-color: #c95c2b;
}

.admin-live-alert-icon {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 50%;
  background: #e9f6ef;
  color: #116947;
  font-size: 20px;
  font-weight: 800;
}

.admin-live-alert.is-feedback .admin-live-alert-icon {
  background: #fff0e8;
  color: #a4411d;
}

.admin-live-alert-content {
  min-width: 0;
}

.admin-live-alert-content strong,
.admin-live-alert-content p,
.admin-live-alert-content span {
  display: block;
}

.admin-live-alert-content strong {
  margin-bottom: 3px;
  color: #142235;
  font-size: 15px;
}

.admin-live-alert-content p {
  overflow: hidden;
  margin: 0 0 4px;
  color: #445368;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-live-alert-content span {
  color: #6c7785;
  font-size: 12px;
}

.admin-live-alert-view,
.admin-live-alert-close {
  border: 0;
  background: transparent;
  cursor: pointer;
}

.admin-live-alert-view {
  padding: 7px 9px;
  color: #126b4b;
  font-weight: 700;
}

.admin-live-alert-view:disabled {
  cursor: wait;
  opacity: 0.55;
}

.admin-live-alert-close {
  width: 32px;
  height: 32px;
  color: #6d7787;
  font-size: 20px;
}

@keyframes admin-alert-in {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 640px) {
  .admin-live-alerts {
    top: 12px;
    right: 16px;
  }

  .admin-live-alert {
    grid-template-columns: 34px minmax(0, 1fr) auto 30px;
    gap: 8px;
    padding: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .admin-live-alert {
    animation: none;
  }
}

.audit-section {
  margin-top: 46px;
  padding-top: 30px;
  border-top: 1px solid var(--line);
}

.manager-role-badge {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  margin-left: 7px;
  padding: 2px 8px;
  border: 1px solid rgba(239, 197, 91, 0.5);
  border-radius: 4px;
  color: var(--gold);
  font-size: 11px;
  font-weight: 700;
  vertical-align: middle;
}

.audit-row {
  display: grid;
  grid-template-columns: 145px 90px minmax(140px, 0.6fr) minmax(220px, 1.4fr);
  gap: 16px;
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
  color: #dce6ee;
  font-size: 12px;
}

.audit-row span,
.audit-row p {
  color: var(--muted);
}

.audit-row p {
  margin-bottom: 0;
  line-height: 1.55;
}

.password-reset-section {
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.password-reset-section h3 {
  margin-bottom: 10px;
  font-size: 14px;
}

.password-reset-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 9px;
}

.password-input-with-toggle {
  position: relative;
  min-width: 0;
}

.password-input-with-toggle .form-control {
  padding-right: 48px;
}

.password-visibility-toggle {
  position: absolute;
  top: 50%;
  right: 8px;
  width: 34px;
  height: 34px;
  transform: translateY(-50%);
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
}

.password-visibility-toggle:hover,
.password-visibility-toggle:focus-visible {
  background: rgba(255, 255, 255, 0.08);
  color: var(--gold);
}

.reset-user-label {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.6;
}

.reset-user-label strong {
  color: var(--text);
}

.admin-user-list {
  display: grid;
  gap: 8px;
}

.password-reset-request-list {
  display: grid;
  gap: 8px;
}

.password-reset-request-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px auto;
  align-items: center;
  gap: 18px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}

.password-reset-request-row strong,
.password-reset-request-row span {
  display: block;
}

.application-admin-list {
  display: grid;
  gap: 8px;
}

.application-admin-row {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) minmax(220px, 1.4fr) 88px 150px auto;
  align-items: center;
  gap: 16px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}

.application-admin-row strong,
.application-admin-row span {
  display: block;
}

.application-admin-row span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.application-profile-summary {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.application-admin-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.password-reset-request-row span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.admin-user-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 210px auto;
  align-items: center;
  gap: 18px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}

.admin-user-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.admin-user-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.manager-access-state {
  margin-top: 0 !important;
  color: var(--muted) !important;
  font-size: 11px !important;
  font-weight: 600;
}

.manager-access-state.is-authorized {
  color: #71d7b1 !important;
}

.admin-user-row strong,
.admin-user-row span {
  display: block;
}

.admin-user-row strong {
  font-size: 14px;
}

.admin-user-row span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

@media (max-width: 1100px) {
  .admin-list-head {
    display: none;
  }

  .admin-feedback-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 22px;
  }

  .admin-feedback-summary {
    grid-column: 1 / -1;
  }

  .admin-feedback-row > :nth-child(n+2)::before {
    display: block;
    margin-bottom: 3px;
    color: #8292a2;
    font-size: 10px;
  }

  .admin-feedback-row > :nth-child(2)::before { content: "提交人"; }
  .admin-feedback-row > :nth-child(3)::before { content: "问题类型"; }
  .admin-feedback-row > :nth-child(4)::before { content: "处理状态"; }
  .admin-feedback-row > :nth-child(5)::before { content: "提交时间"; }
}

@media (max-width: 980px) {
  .account-layout,
  .feedback-grid {
    grid-template-columns: 1fr;
  }

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

  .account-intro {
    min-height: auto;
  }

  .feedback-welcome {
    align-items: flex-start;
    flex-direction: column;
  }

  .admin-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-filters {
    grid-template-columns: 1fr 1fr;
  }

  .admin-search {
    grid-column: 1 / -1;
  }
}

@media (max-width: 620px) {
  .application-inline-fields {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .account-topbar {
    align-items: flex-start;
    flex-direction: column;
    margin-bottom: 24px;
  }

  .account-intro h1 {
    font-size: 40px;
  }

  .auth-card {
    padding: 22px 18px;
  }

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

  .history-query-tools {
    grid-template-columns: 1fr;
  }

  .session-tools {
    width: 100%;
    justify-content: space-between;
    flex-wrap: wrap;
  }

  .admin-heading {
    align-items: stretch;
    flex-direction: column;
  }

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

  .admin-metrics div {
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
  }

  .admin-metrics div:nth-child(2n) {
    border-right: 0;
  }

  .admin-metrics div:nth-last-child(-n+2) {
    border-bottom: 0;
  }

  .admin-feedback-row {
    grid-template-columns: 1fr;
  }

  .admin-feedback-summary {
    grid-column: auto;
  }

  .admin-status {
    justify-self: stretch;
    text-align: center;
  }

  .detail-meta-grid {
    grid-template-columns: 1fr;
  }

  .detail-meta-grid .detail-wide {
    grid-column: auto;
  }

  .dialog-actions {
    flex-direction: column-reverse;
  }

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

  .audit-row {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .password-reset-row {
    grid-template-columns: 1fr;
  }

  .admin-user-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .password-reset-request-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .application-admin-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .admin-user-meta {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .admin-user-actions {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .admin-user-actions .btn {
    flex: 1 1 150px;
  }
}

@media (max-width: 980px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 8px 14px;
    overflow: visible;
    padding-bottom: 2px;
    white-space: normal;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-visual {
    min-height: 430px;
  }

  .grid-3,
  .grid-4,
  .room-list,
  .split-layout {
    grid-template-columns: 1fr 1fr;
  }

  .info-card {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .topbar {
    position: relative;
  }

  .hero {
    padding-top: 38px;
  }

  h1 {
    font-size: 40px;
  }

  .lead {
    font-size: 16px;
  }

  .hero-stats,
  .grid-3,
  .grid-4,
  .room-list,
  .split-layout {
    grid-template-columns: 1fr;
  }

  .hero-stats div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .hero-stats div:last-child {
    border-bottom: 0;
  }

  .hero-visual {
    min-height: 360px;
  }

  .visual-panel {
    inset: 24px 0 44px;
  }

  .floating-card {
    position: relative;
    margin-top: 12px;
  }

  .card-a,
  .card-b {
    left: auto;
    right: auto;
    top: auto;
    bottom: auto;
  }

  .contact-band {
    align-items: flex-start;
    grid-template-columns: 1fr;
  }

  .wechat-contacts {
    grid-template-columns: 1fr;
    width: 100%;
  }

  .wechat-contact {
    width: min(220px, 100%);
  }
}

/* Final cascade bridge for legacy selectors. */
html,
body {
  background: var(--ink);
}

.topbar,
.account-topbar {
  min-height: 72px;
  padding: 10px clamp(20px, 4vw, 64px);
  color: var(--ink);
  border-bottom-color: rgba(7, 17, 27, 0.18);
  background: var(--gold);
  backdrop-filter: none;
}

.brand-mark {
  width: 52px;
  height: 52px;
  border-radius: 6px;
  object-fit: contain;
  object-position: center;
  background: var(--ink);
  box-shadow: none;
}

.brand strong,
.brand small,
.topbar .nav,
.account-topbar .text-link {
  color: var(--ink);
}

.topbar .nav-account {
  color: var(--ink) !important;
  border-color: rgba(7, 17, 27, 0.46);
  background: transparent;
}

.system-hero {
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.72fr);
  min-height: min(780px, calc(100svh - 120px));
  padding: clamp(58px, 8vh, 96px) clamp(24px, 7vw, 112px);
  border-bottom: 1px solid var(--line);
  background: var(--ink);
}

.hero-copy {
  max-width: 760px;
}

.hero-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(148px, 188px));
  margin: 34px 0 0;
}

.btn,
.hero-actions .btn {
  border-radius: 4px;
}

.btn-primary,
.hero-actions .btn-primary {
  color: var(--ink);
  border-color: var(--gold);
  background: var(--gold);
  box-shadow: none;
}

.hero-actions .btn-primary:last-child {
  color: var(--ink);
  background: var(--gold);
}

.section {
  max-width: none;
  padding: clamp(68px, 8vw, 112px) clamp(24px, 7vw, 112px);
  border-bottom: 1px solid var(--line);
}

.account-shell,
.feedback-main,
.admin-main {
  background: var(--ink);
}

.account-layout {
  grid-template-columns: minmax(280px, 0.78fr) minmax(420px, 1.22fr);
  align-items: start;
  gap: clamp(32px, 6vw, 88px);
}

.auth-card,
.feedback-panel,
.history-panel,
.admin-workspace,
.audit-section,
.admin-dialog,
.security-section {
  border-color: var(--line);
  border-radius: 6px;
  background: var(--ink-soft);
  box-shadow: none;
}

.form-control {
  border-color: rgba(244, 239, 229, 0.24);
  border-radius: 4px;
  color: var(--paper);
  background: rgba(255, 255, 255, 0.04);
}

@media (max-width: 980px) {
  .system-hero,
  .advantage-system,
  .contact-section,
  .account-layout {
    grid-template-columns: 1fr;
  }

  .system-hero {
    min-height: auto;
  }
}

@media (max-width: 640px) {
  .topbar,
  .account-topbar {
    position: relative;
    min-height: auto;
    padding: 10px 16px;
  }

  .brand-mark {
    width: 52px;
    height: 52px;
  }

  .topbar .brand {
    margin-bottom: 8px;
  }

  .nav {
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 18px;
    max-width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .nav a {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  .system-hero,
  .section {
    padding: 36px 18px;
  }

  .system-hero {
    gap: 28px;
  }

  .hero-title {
    font-size: 40px;
  }

  .lead {
    font-size: 15px;
    line-height: 1.65;
  }

  .hero-logo {
    width: min(200px, 100%);
    padding: 10px;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 28px;
  }

  .hero-actions .btn {
    min-width: 0;
    padding: 0 12px;
  }

  .business-grid,
  .room-feature,
  .process-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }

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

.business-section {
  padding-top: 44px;
}

/* 2026 Jiuyao brand skin: final cascade */
:root {
  --ink: #090909;
  --ink-soft: #11100e;
  --ink-raised: #191714;
  --paper: #f5ecdc;
  --paper-muted: #bdb3a4;
  --gold: #dfbd78;
  --gold-bright: #f1d49a;
  --gold-deep: #9f7440;
  --brand-red: #a61f24;
  --brand-red-strong: #c52c32;
  --cyan: #d5a65a;
  --danger: #df5b60;
  --success: #70b895;
  --bg: var(--ink);
  --bg-soft: var(--ink-soft);
  --text: var(--paper);
  --muted: var(--paper-muted);
  --line: rgba(223, 189, 120, 0.25);
  --panel: rgba(255, 249, 238, 0.045);
  --panel-strong: rgba(255, 249, 238, 0.075);
  --shadow: 0 20px 56px rgba(0, 0, 0, 0.38);
}

html,
body,
.page-shell,
.account-shell,
.feedback-page,
.feedback-main,
.admin-page,
.admin-main {
  color: var(--paper);
  background: var(--ink);
}

body {
  font-family: Outfit, "Microsoft YaHei", "PingFang SC", sans-serif;
}

.topbar,
.account-topbar {
  min-height: 78px;
  padding: 11px clamp(20px, 4vw, 64px);
  color: var(--paper);
  border-bottom: 1px solid var(--line);
  background: rgba(9, 9, 9, 0.98);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.24);
  backdrop-filter: none;
}

.brand {
  gap: 12px;
}

.brand-mark {
  width: 56px;
  height: 56px;
  border: 1px solid rgba(223, 189, 120, 0.48);
  border-radius: 4px;
  background: #090909;
  box-shadow: none;
  object-fit: contain;
  object-position: center;
}

.brand strong,
.brand small,
.topbar .nav,
.account-topbar .text-link,
.account-topbar .back-link {
  color: var(--paper);
}

.brand strong {
  color: var(--gold-bright);
  font-size: 18px;
}

.brand small {
  color: var(--paper-muted);
  opacity: 1;
}

.nav a {
  color: var(--paper-muted);
  opacity: 1;
}

.nav a:hover,
.nav a:focus-visible,
.text-link:hover,
.back-link:hover {
  color: var(--gold-bright) !important;
}

.topbar .nav-account {
  color: var(--gold-bright) !important;
  border-color: rgba(223, 189, 120, 0.55);
  background: transparent;
}

.topbar .nav-account:hover,
.topbar .nav-account:focus-visible {
  color: #fff !important;
  border-color: var(--brand-red-strong);
  background: var(--brand-red);
}

.system-hero {
  grid-template-columns: minmax(0, 1fr) minmax(400px, 0.78fr);
  min-height: min(800px, calc(100svh - 78px));
  gap: clamp(48px, 8vw, 126px);
  padding: clamp(64px, 8vh, 104px) clamp(24px, 7vw, 112px);
  border-bottom: 1px solid var(--line);
  background: #090909;
}

.hero-copy {
  max-width: 820px;
}

.hero-kicker,
.business-index,
.room-copy > span,
.advantage-system__intro > p,
.eyebrow {
  color: var(--gold);
}

.hero-title {
  max-width: 820px;
  color: var(--paper);
  font-size: clamp(52px, 6.1vw, 90px);
  line-height: 1.05;
}

.lead,
.section-head-wide > p,
.contact-copy p,
.business-card p,
.room-copy p,
.process-grid p,
.advantage-system__item p {
  color: var(--paper-muted);
}

.hero-logo {
  width: 100%;
  max-width: 560px;
  padding: clamp(10px, 2vw, 24px);
  border: 1px solid rgba(223, 189, 120, 0.38);
  border-radius: 0;
  background: #0b0b0b;
  box-shadow: 22px 22px 0 rgba(166, 31, 36, 0.2);
}

.hero-logo img {
  background: #090909;
}

.btn,
.hero-actions .btn,
.text-button,
.admin-status,
.manager-role-badge {
  border-radius: 4px;
}

.btn-primary,
.hero-actions .btn-primary {
  color: #11100e;
  border-color: var(--gold);
  background: var(--gold);
  box-shadow: none;
}

.btn-primary:hover,
.btn-primary:focus-visible {
  color: #fff;
  border-color: var(--brand-red-strong);
  background: var(--brand-red-strong);
}

.hero-actions .btn-primary:last-child {
  color: var(--paper);
  border-color: rgba(197, 44, 50, 0.78);
  background: transparent;
}

.hero-actions .btn-primary:last-child:hover,
.hero-actions .btn-primary:last-child:focus-visible {
  color: #fff;
  background: var(--brand-red);
}

.btn-danger {
  color: #fff;
  border-color: var(--brand-red);
  background: var(--brand-red);
}

.section {
  border-bottom-color: var(--line);
  background: var(--ink);
}

.section:nth-of-type(even) {
  background: #0d0c0a;
}

.section-head-wide h2,
.contact-copy h2,
.account-intro h1,
.feedback-welcome h1,
.admin-heading h1,
.form-heading h2,
.admin-toolbar h2 {
  color: var(--paper);
}

.accent-dot {
  color: var(--brand-red-strong);
}

.business-grid,
.process-grid {
  border-color: var(--line);
  background: var(--line);
}

.business-card,
.process-grid > * {
  border-color: var(--line);
  background: var(--ink-soft);
}

.business-card:hover,
.process-grid > a:hover {
  background: var(--ink-raised);
}

.business-card h3,
.room-copy h3,
.process-grid h3,
.advantage-system__item h3 {
  color: var(--gold-bright);
}

.room-feature {
  border: 1px solid var(--line);
  background: var(--ink-soft);
}

.room-cover {
  filter: saturate(0.88) contrast(1.08);
}

.room-copy {
  border-left: 1px solid var(--line);
}

.advantage-system {
  border-bottom-color: var(--line);
  background: #0b0b0b;
}

.advantage-system__intro h2 {
  color: var(--paper);
}

.advantage-system__item {
  border-color: var(--line);
  background: var(--ink-soft);
}

.advantage-system__item > span,
.process-grid > * > span {
  color: var(--brand-red-strong);
}

.contact-section {
  background: #0d0c0a;
}

.contact-section .contact-copy {
  padding-left: clamp(20px, 3vw, 38px);
  border-left: 2px solid var(--gold-deep);
}

.contact-section .contact-copy h2 {
  color: var(--paper);
}

.contact-section .contact-copy p {
  color: var(--paper-muted);
}

.contact-section .wechat-contact {
  border-color: var(--line);
  background: var(--ink-soft);
}

.contact-section .wechat-contact img {
  border-color: rgba(223, 189, 120, 0.36);
  background: #fff;
}

.contact-section .wechat-contact figcaption strong {
  color: var(--gold-bright);
}

.contact-section .wechat-contact figcaption span {
  color: var(--paper-muted);
}

.site-footer {
  color: var(--paper-muted);
  border-top: 1px solid var(--line);
  background: #070706;
}

.site-footer strong,
.site-footer a:hover {
  color: var(--gold-bright);
}

.account-shell {
  background: #090909;
}

.account-layout {
  align-items: start;
}

.account-intro {
  position: relative;
  padding-left: clamp(20px, 3vw, 42px);
}

.account-intro::before {
  position: absolute;
  inset: 8% auto 8% 0;
  width: 2px;
  background: var(--gold-deep);
  content: "";
}

.intro-points li::before {
  border-radius: 1px;
  background: var(--brand-red-strong);
  box-shadow: 0 0 0 4px rgba(166, 31, 36, 0.12);
}

.auth-card,
.feedback-panel,
.history-panel,
.admin-workspace,
.audit-section,
.admin-dialog,
.security-section {
  border-color: var(--line);
  border-radius: 6px;
  background: var(--ink-soft);
  box-shadow: var(--shadow);
}

.auth-card,
.feedback-panel {
  position: relative;
}

.auth-card::before,
.feedback-panel::before {
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: var(--gold);
  content: "";
}

.tab-list {
  border-color: var(--line);
  background: #0b0a09;
}

.tab-button {
  color: var(--paper-muted);
}

.tab-button[aria-selected="true"] {
  color: #11100e;
  background: var(--gold);
}

.field label,
.field-reset legend {
  color: var(--paper);
}

.form-control {
  min-height: 46px;
  color: var(--paper);
  border-color: rgba(223, 189, 120, 0.32);
  border-radius: 4px;
  background: #171512;
  box-shadow: none;
}

.form-control::placeholder {
  color: #8d8579;
}

.form-control:hover {
  border-color: rgba(223, 189, 120, 0.5);
}

.form-control:focus,
.form-control:focus-visible {
  border-color: var(--gold-bright);
  outline: 0;
  box-shadow: 0 0 0 3px rgba(223, 189, 120, 0.14);
}

.form-control option {
  color: var(--paper);
  background: var(--ink-soft);
}

.choice-card,
.terms-row,
.file-control,
.credential-code-value {
  border-color: var(--line);
  background: #151310;
}

.choice-card:has(input:checked) {
  border-color: var(--gold);
  background: rgba(223, 189, 120, 0.12);
}

.file-control::file-selector-button {
  color: #11100e;
  border-color: var(--gold);
  background: var(--gold);
}

.credential-code-value {
  color: var(--gold-bright);
}

.password-toggle,
.dialog-close,
.text-button {
  color: var(--gold-bright);
}

.form-error {
  color: #ff9a9e;
}

.form-success {
  color: #91d1ae;
}

.feedback-welcome,
.admin-heading {
  border-bottom-color: var(--line);
}

.feedback-record,
.admin-feedback-row,
.admin-user-row,
.application-admin-row,
.audit-row,
.password-reset-request-row {
  border-color: var(--line);
  background: #14120f;
}

.feedback-record.is-clickable:hover,
.admin-feedback-row:hover,
.admin-user-row:hover,
.application-admin-row:hover {
  border-color: rgba(223, 189, 120, 0.58);
  background: var(--ink-raised);
}

.admin-main {
  background: #0b0b0a;
}

.admin-topbar {
  border-bottom-color: rgba(223, 189, 120, 0.34);
}

.admin-metrics {
  border-color: var(--line);
  background: #11100e;
}

.admin-metrics div {
  border-color: var(--line);
}

.admin-metrics strong {
  color: var(--gold-bright);
}

.admin-list-head {
  color: #9c9387;
}

#application-status-filter {
  flex: 0 0 180px;
  width: 180px;
}

.admin-feedback-row.is-urgent {
  border-left-color: var(--brand-red-strong);
}

.admin-feedback-flags strong,
.manager-role-badge {
  color: #ffd9d9;
  background: rgba(166, 31, 36, 0.25);
}

.admin-status {
  background: rgba(255, 255, 255, 0.02);
}

.status-new {
  color: var(--gold-bright);
}

.status-active {
  color: #d5a65a;
}

.status-resolved,
.manager-access-state.is-authorized {
  color: var(--success);
}

.status-closed,
.manager-access-state {
  color: #928b82;
}

.admin-dialog {
  color: var(--paper);
  border-color: rgba(223, 189, 120, 0.38);
  background: #12110f;
}

.admin-dialog::backdrop {
  background: rgba(0, 0, 0, 0.84);
  backdrop-filter: blur(3px);
}

.dialog-head,
.detail-content,
.security-section,
.record-dialog-solution,
.password-reset-section {
  border-color: var(--line);
}

.admin-live-alert {
  border-color: rgba(223, 189, 120, 0.42);
  background: #151310;
}

.admin-live-alert.is-feedback,
.admin-live-alert-icon {
  border-color: var(--brand-red-strong);
}

:focus-visible {
  outline: 2px solid var(--gold-bright);
  outline-offset: 3px;
}

@media (max-width: 980px) {
  .system-hero {
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .hero-logo {
    width: min(460px, 82vw);
    margin-inline: auto;
  }

  .room-copy {
    border-top: 1px solid var(--line);
    border-left: 0;
  }
}

@media (max-width: 640px) {
  .topbar,
  .account-topbar {
    min-height: auto;
    padding: 10px 16px;
    background: #090909;
  }

  .brand-mark {
    width: 48px;
    height: 48px;
  }

  .brand strong {
    font-size: 16px;
  }

  .nav {
    border-top: 1px solid rgba(223, 189, 120, 0.18);
    padding-top: 10px;
  }

  .system-hero {
    min-height: auto;
    gap: 26px;
    padding: 42px 18px 34px;
  }

  .hero-title {
    font-size: 40px;
  }

  .hero-logo {
    width: min(180px, 100%);
    box-shadow: 12px 12px 0 rgba(166, 31, 36, 0.2);
  }

  .hero-actions,
  .wechat-contacts,
  .application-inline-fields,
  .choice-grid.choice-grid-2 {
    grid-template-columns: 1fr;
  }

  .account-intro {
    min-height: auto;
    padding-left: 18px;
  }

  .account-intro::before {
    inset-block: 0;
  }

  .auth-card,
  .feedback-panel,
  .history-panel,
  .admin-workspace,
  .audit-section {
    border-radius: 4px;
  }

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

  #application-status-filter {
    flex-basis: auto;
    width: 100%;
  }

  .admin-metrics div:nth-child(2) {
    border-right: 0;
  }

  .admin-metrics div:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-logo,
  .business-card,
  .process-grid > *,
  .feedback-record,
  .admin-feedback-row {
    transition: none !important;
  }
}
