:root {
  color-scheme: light;
  --bg: #f5f1e8;
  --panel: rgba(255, 252, 247, 0.88);
  --panel-strong: #fffaf2;
  --ink: #1f2a22;
  --muted: #67756b;
  --line: rgba(41, 55, 45, 0.12);
  --accent: #a44b1a;
  --accent-soft: #f7d6be;
  --success: #1e7a52;
  --danger: #b43f3f;
  --shadow: 0 20px 45px rgba(88, 62, 32, 0.10);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Avenir Next", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background:
    linear-gradient(180deg, #cdefff 0, #cdefff 28px, #f5f7fb 28px, #f5f7fb 100%);
  min-height: 100vh;
}

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

.page-shell {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 24px;
  max-width: 1520px;
  margin: 0 auto;
  padding: 24px;
}

.single-page-shell {
  grid-template-columns: 1fr;
  max-width: 1320px;
}

.nav-shell {
  min-height: 100vh;
}

.top-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  padding: 0;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(22, 28, 45, 0.08);
  box-shadow: 0 10px 30px rgba(26, 45, 84, 0.06);
}

.top-nav-inner {
  max-width: 1520px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 96px;
  padding: 0 36px;
  gap: 24px;
}

.top-nav-brand {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  white-space: nowrap;
  flex-shrink: 0;
}

.top-nav-mark {
  color: #1786ee;
  font-size: 54px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: -0.06em;
}

.top-nav-name {
  color: #2d3748;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.top-nav-menu {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 24px;
  flex: 1;
  min-width: 0;
}

.top-nav-primary,
.top-nav-secondary,
.top-nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 44px;
  align-items: center;
}

.top-nav-primary {
  flex: 1 1 auto;
  min-width: 0;
  gap: 18px 36px;
}

.top-nav-secondary {
  flex: 0 0 auto;
  justify-content: flex-end;
  gap: 12px;
  margin-left: auto;
}

.top-nav-link,
.top-nav-primary a,
.top-nav-links a {
  text-decoration: none;
  color: #2f3137;
  display: inline-flex;
  align-items: center;
  padding: 4px 0;
  border-radius: 0;
  border: none;
  font-size: 18px;
  font-weight: 600;
  position: relative;
  transition: color 0.15s ease, opacity 0.15s ease;
  opacity: 0.92;
}

.top-nav-link:hover,
.top-nav-link.active,
.top-nav-primary a:hover,
.top-nav-primary a.active,
.top-nav-links a:hover,
.top-nav-links a.active {
  color: #1984ea;
  background: transparent;
  opacity: 1;
}

.top-nav-link.active::after,
.top-nav-link:hover::after,
.top-nav-primary a.active::after,
.top-nav-primary a:hover::after,
.top-nav-links a.active::after,
.top-nav-links a:hover::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -31px;
  height: 4px;
  border-radius: 999px;
  background: #1984ea;
}

.top-nav-action,
.top-nav-secondary a {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid rgba(25, 132, 234, 0.14);
  background: rgba(255, 255, 255, 0.88);
  color: #255074;
  font-size: 15px;
  font-weight: 700;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.top-nav-action:hover,
.top-nav-secondary a:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 18px rgba(26, 72, 118, 0.08);
}

.top-nav-action.primary,
.top-nav-secondary a.primary {
  background: linear-gradient(135deg, #1786ee, #5db1ff);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 12px 22px rgba(23, 134, 238, 0.22);
}

.top-nav-action.active,
.top-nav-secondary a.active {
  background: rgba(216, 237, 248, 0.92);
  color: #10649d;
}

.top-nav-action.primary.active,
.top-nav-secondary a.primary.active {
  background: linear-gradient(135deg, #1786ee, #5db1ff);
  color: #fff;
}

.sidebar,
.panel,
.hero-card {
  background: var(--panel);
  backdrop-filter: blur(14px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.sidebar {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: sticky;
  top: 24px;
  height: fit-content;
}

.brand h1,
.hero-card h2,
.panel h3 {
  margin: 6px 0 8px;
}

.eyebrow,
.section-title,
.detail-label {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 12px;
  color: var(--accent);
  font-weight: 700;
}

.muted {
  color: var(--muted);
  margin: 0;
  line-height: 1.5;
}

.sidebar-card {
  background: var(--panel-strong);
  border-radius: 18px;
  padding: 18px;
  border: 1px solid var(--line);
}

.sidebar-list {
  margin: 12px 0 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.8;
}

.main-content {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.hero-card {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 32px;
}

.hero-card.split-hero {
  align-items: stretch;
}

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

.hero-side-panel {
  min-width: 260px;
  max-width: 320px;
  border-radius: 20px;
  border: 1px solid rgba(25, 132, 234, 0.12);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(234, 245, 255, 0.8));
  padding: 18px;
}

.hero-side-panel h3 {
  margin: 0 0 10px;
}

.hero-side-panel p {
  margin: 0;
}

.hero-step-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 12px;
}

.hero-step {
  border-radius: 16px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(48, 66, 54, 0.08);
}

.hero-step strong {
  display: block;
  margin-bottom: 4px;
  font-size: 14px;
}

.hero-step p {
  color: var(--muted);
  line-height: 1.5;
  font-size: 13px;
}

.hero-badges,
.detail-badges {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.grid {
  display: grid;
  grid-template-columns: minmax(360px, 520px) minmax(400px, 1fr);
  gap: 24px;
}

.user-card-grid .panel {
  min-height: 100%;
}

.panel {
  padding: 22px;
}

.page-topbar {
  display: flex;
  justify-content: flex-start;
}

.info-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.quick-link-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.quick-link-card {
  text-decoration: none;
  color: inherit;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(246, 242, 233, 0.92));
  border: 1px solid rgba(41, 55, 45, 0.08);
  border-radius: 20px;
  padding: 20px;
  min-height: 176px;
  box-shadow: 0 16px 30px rgba(88, 62, 32, 0.08);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.quick-link-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 34px rgba(88, 62, 32, 0.12);
  border-color: rgba(25, 132, 234, 0.18);
}

.quick-link-card h4 {
  margin: 8px 0 10px;
  font-size: 22px;
}

.quick-link-tag {
  margin: 0;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.quick-link-card.accent-card {
  background: linear-gradient(145deg, rgba(224, 242, 255, 0.96), rgba(255, 250, 242, 0.92));
  border-color: rgba(25, 132, 234, 0.14);
}

.panel-header {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  margin-bottom: 18px;
}

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

label,
.operator-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

label span {
  font-size: 13px;
  color: var(--muted);
}

input,
textarea,
select {
  width: 100%;
  padding: 11px 13px;
  border-radius: 14px;
  border: 1px solid rgba(48, 66, 54, 0.16);
  background: rgba(255, 255, 255, 0.84);
  color: var(--ink);
}

textarea {
  resize: vertical;
}

.full-width {
  grid-column: 1 / -1;
}

.form-actions,
.filter-actions,
.detail-actions,
.upload-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

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

.primary-button,
.ghost-button,
.success-button,
.danger-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 999px;
  padding: 11px 18px;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, opacity 0.15s ease, box-shadow 0.15s ease;
}

.primary-button:hover,
.ghost-button:hover,
.success-button:hover,
.danger-button:hover {
  transform: translateY(-1px);
}

.primary-button {
  background: linear-gradient(135deg, #b85c2b, #d98d56);
  color: white;
  box-shadow: 0 12px 22px rgba(170, 89, 44, 0.24);
}

.ghost-button {
  background: rgba(255, 255, 255, 0.78);
  color: var(--ink);
  border: 1px solid var(--line);
}

.success-button {
  background: var(--success);
  color: white;
}

.danger-button {
  background: var(--danger);
  color: white;
}

.inline-message,
.list-summary,
.page-indicator {
  color: var(--muted);
  font-size: 14px;
}

.list-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.summary-chip {
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(216, 237, 248, 0.78);
  color: #145f8d;
  font-weight: 700;
}

.summary-chip.subtle {
  background: rgba(255, 255, 255, 0.78);
  color: var(--muted);
  font-weight: 600;
}

.helper-text {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.activity-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 180px;
}

.public-activity-highlights {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 18px 0;
}

.highlight-card {
  padding: 16px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.84), rgba(242, 248, 255, 0.78));
  border: 1px solid rgba(48, 66, 54, 0.08);
}

.highlight-card span {
  display: block;
  margin-bottom: 6px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.highlight-card strong {
  display: block;
  margin-bottom: 6px;
}

.highlight-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
  font-size: 14px;
}

.activity-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.68);
  padding: 16px;
  cursor: pointer;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.activity-card:hover,
.activity-card.active {
  border-color: rgba(164, 75, 26, 0.4);
  transform: translateY(-1px);
}

.public-activity-card {
  padding: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.84), rgba(249, 252, 255, 0.72));
  box-shadow: 0 14px 28px rgba(39, 72, 110, 0.06);
}

.activity-card-copy h4 {
  margin: 4px 0 8px;
  font-size: 21px;
  line-height: 1.3;
}

.activity-card-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.activity-card-kicker {
  margin: 0;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.activity-card-summary {
  max-width: 760px;
}

.user-card-item {
  cursor: default;
}

.activity-card-header,
.activity-card-meta,
.pagination-bar,
.operator-row,
.activity-card-actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.activity-card-meta {
  color: var(--muted);
  font-size: 13px;
  flex-wrap: wrap;
}

.meta-pill {
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(48, 66, 54, 0.08);
}

.value-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(255, 236, 199, 0.96), rgba(255, 245, 224, 0.98));
  border: 1px solid rgba(205, 143, 36, 0.2);
  color: #9a5a00;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  white-space: nowrap;
  box-shadow: 0 8px 16px rgba(205, 143, 36, 0.12);
}

.detail-value-badge {
  align-self: flex-start;
}

.activity-card-actions {
  align-items: center;
  flex-wrap: wrap;
}

.badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 700;
}

.badge-pending {
  background: #fff0cc;
  color: #8d5a00;
}

.badge-ready {
  background: #deefe0;
  color: #1d6f47;
}

.badge-online {
  background: #d8edf8;
  color: #0f6587;
}

.badge-offline {
  background: #ece8e1;
  color: #625647;
}

.badge-invalid {
  background: #f7d6d6;
  color: #8a2d2d;
}

.detail-panel {
  min-height: 320px;
}

.detail-page-shell {
  max-width: 980px;
  margin: 0 auto;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.detail-page-panel {
  margin-bottom: 40px;
}

.detail-hero-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.detail-summary-item {
  padding: 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(48, 66, 54, 0.08);
}

.detail-summary-item span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 12px;
}

.detail-summary-item strong {
  display: block;
  line-height: 1.5;
}

.detail-gate-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 20px;
}

.detail-gate-note {
  border-radius: 18px;
  border: 1px solid rgba(48, 66, 54, 0.08);
  background: rgba(255, 255, 255, 0.72);
  padding: 16px;
}

.detail-gate-note h4 {
  margin: 0 0 12px;
}

.detail-cta-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.detail-secondary-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
}

.detail-section-grid {
  display: grid;
  gap: 16px;
}

.detail-section-card {
  border-radius: 20px;
  border: 1px solid rgba(48, 66, 54, 0.08);
  background: rgba(255, 255, 255, 0.74);
  padding: 18px;
}

.detail-section-head {
  margin-bottom: 14px;
}

.detail-section-head h3 {
  margin: 6px 0 0;
}

.compact-detail-grid {
  margin-bottom: 0;
}

.empty-state {
  padding: 28px;
  text-align: center;
  color: var(--muted);
  border: 1px dashed var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.5);
}

.public-empty-state {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(244, 248, 252, 0.72));
  border-style: solid;
}

.public-empty-state strong {
  display: block;
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 18px;
}

.public-empty-state p {
  margin: 0;
  line-height: 1.7;
}

.hidden {
  display: none;
}

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

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

.detail-image-wrap {
  margin-bottom: 18px;
}

.detail-image,
.image-preview {
  max-width: 100%;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.65);
}

.image-preview {
  width: 180px;
  min-height: 120px;
  object-fit: cover;
}

.upload-hint {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.detail-value {
  margin: 6px 0 0;
  white-space: pre-wrap;
  line-height: 1.55;
}

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

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

.auth-shell {
  max-width: 1320px;
  margin: 0 auto;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.auth-grid,
.account-grid,
.status-grid,
.compact-grid {
  display: grid;
  gap: 24px;
}

.auth-grid,
.account-grid {
  grid-template-columns: minmax(380px, 520px) minmax(420px, 1fr);
}

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

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

.auth-panel,
.status-tile {
  background: var(--panel);
  backdrop-filter: blur(14px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.auth-panel {
  padding: 22px;
}

.status-tile {
  padding: 18px;
}

.status-tile h4,
.auth-summary-card h4 {
  margin: 0 0 8px;
}

.status-tile p,
.auth-summary-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.auth-summary-card {
  border-radius: 18px;
  border: 1px solid var(--line);
  padding: 18px;
  background: rgba(255, 255, 255, 0.68);
}

.auth-summary-card strong {
  display: block;
  margin-bottom: 8px;
}

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

.auth-step {
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.6);
  padding: 14px;
}

.auth-step strong {
  display: block;
  margin: 6px 0 4px;
  font-size: 15px;
}

.auth-step p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.auth-step.active {
  border-color: rgba(25, 132, 234, 0.28);
  background: rgba(216, 237, 248, 0.72);
}

.auth-step.done {
  border-color: rgba(30, 122, 82, 0.24);
  background: rgba(222, 239, 224, 0.72);
}

.auth-stage {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.auth-stage.hidden {
  display: none;
}

.auth-card-stack {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

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

.auth-action-links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.text-link-button {
  border: none;
  background: transparent;
  color: #1984ea;
  padding: 0;
  cursor: pointer;
  font: inherit;
}

.text-link-button:hover {
  text-decoration: underline;
}

.auth-inline-note {
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.66);
  padding: 14px;
}

.auth-inline-note h4 {
  margin: 0 0 6px;
}

.auth-inline-note p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.stacked-hints {
  display: grid;
  gap: 12px;
}

.stacked-hints p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(48, 66, 54, 0.08);
}

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

.hint-list p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.auth-code-row,
.settings-row,
.summary-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.auth-code-row {
  display: grid;
  grid-template-columns: 1fr 180px;
}

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

.auth-success-card {
  border-radius: 18px;
  border: 1px solid rgba(30, 122, 82, 0.16);
  background: rgba(222, 239, 224, 0.76);
  padding: 18px;
}

.auth-success-card h4,
.danger-note h4 {
  margin: 0 0 8px;
}

.auth-success-card p,
.danger-note p {
  margin: 0;
  line-height: 1.6;
}

.danger-note {
  border-radius: 18px;
  border: 1px solid rgba(180, 63, 63, 0.2);
  background: rgba(247, 214, 214, 0.45);
  padding: 18px;
}

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

.key-value-card {
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.66);
  border: 1px solid var(--line);
  padding: 14px;
}

.key-value-card span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 6px;
}

.mono {
  font-family: "SFMono-Regular", "Menlo", "Monaco", monospace;
}

.divider {
  height: 1px;
  background: var(--line);
  margin: 6px 0;
}

@media (max-width: 1020px) {
  .page-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
  }

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

  .auth-grid,
  .account-grid,
  .status-grid,
  .compact-grid,
  .auth-stepper,
  .public-activity-highlights,
  .detail-hero-summary,
  .detail-gate-grid {
    grid-template-columns: 1fr;
  }

  .top-nav-inner {
    align-items: flex-start;
    flex-direction: column;
    min-height: auto;
    gap: 18px;
    padding: 18px 18px 20px;
  }

  .top-nav-menu {
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
  }

  .top-nav-primary,
  .top-nav-secondary,
  .top-nav-links {
    width: 100%;
    gap: 14px 24px;
  }

  .top-nav-secondary {
    margin-left: 0;
    justify-content: flex-start;
  }
}

@media (max-width: 700px) {
  .page-shell {
    padding: 14px;
  }

  .hero-card,
  .panel,
  .sidebar {
    padding: 18px;
  }

  .form-grid,
  .filter-grid,
  .review-grid,
  .detail-grid,
  .key-value-grid,
  .auth-code-row {
    grid-template-columns: 1fr;
  }

  .hero-card,
  .detail-header,
  .activity-card-header,
  .activity-card-meta,
  .pagination-bar,
  .operator-row,
  .top-nav-menu {
    flex-direction: column;
  }

  .activity-card-title-row {
    align-items: flex-start;
  }

  .hero-side-panel {
    min-width: 0;
    max-width: none;
  }

  .top-nav {
    padding: 0;
  }

  .top-nav-brand {
    gap: 10px;
  }

  .top-nav-mark {
    font-size: 40px;
  }

  .top-nav-name {
    font-size: 14px;
  }

  .top-nav-link,
  .top-nav-primary a,
  .top-nav-links a {
    font-size: 16px;
  }

  .top-nav-action {
    width: 100%;
  }

  .top-nav-link.active::after,
  .top-nav-link:hover::after,
  .top-nav-links a.active::after,
  .top-nav-links a:hover::after {
    bottom: -10px;
  }
}

/* Modern UI refresh: shared visual system for public and admin pages. */
:root {
  --bg: #f6f8fb;
  --panel: rgba(255, 255, 255, 0.92);
  --panel-strong: #ffffff;
  --ink: #172033;
  --muted: #637083;
  --line: rgba(23, 32, 51, 0.1);
  --accent: #2563eb;
  --accent-strong: #1d4ed8;
  --accent-soft: #e8f0ff;
  --success: #15803d;
  --danger: #dc2626;
  --warning: #b45309;
  --shadow: 0 18px 44px rgba(15, 23, 42, 0.08);
  --shadow-soft: 0 8px 24px rgba(15, 23, 42, 0.06);
  --radius: 16px;
}

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

body {
  font-family: Inter, "SF Pro Display", "SF Pro Text", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(37, 99, 235, 0.08), transparent 34rem),
    linear-gradient(180deg, #fbfcff 0, var(--bg) 26rem, var(--bg) 100%);
  letter-spacing: 0;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.08) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.35), transparent 34rem);
}

.top-nav {
  background: rgba(255, 255, 255, 0.84);
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.7) inset, 0 16px 36px rgba(15, 23, 42, 0.05);
  backdrop-filter: blur(18px);
}

.top-nav-inner {
  min-height: 72px;
  padding: 0 28px;
}

.top-nav-brand {
  gap: 11px;
}

.top-nav-mark {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 13px;
  color: #ffffff;
  background: linear-gradient(135deg, #2563eb, #14b8a6);
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.24);
  font-size: 15px;
  line-height: 1;
  font-weight: 850;
  letter-spacing: 0;
}

.top-nav-name {
  color: #111827;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: none;
}

.top-nav-menu {
  gap: 18px;
}

.top-nav-primary,
.top-nav-secondary,
.top-nav-links {
  gap: 8px;
}

.top-nav-link,
.top-nav-primary a,
.top-nav-links a {
  min-height: 38px;
  padding: 0 12px;
  border-radius: 10px;
  color: #475569;
  font-size: 14px;
  font-weight: 650;
  transition: color 0.16s ease, background 0.16s ease;
}

.top-nav-link:hover,
.top-nav-link.active,
.top-nav-primary a:hover,
.top-nav-primary a.active,
.top-nav-links a:hover,
.top-nav-links a.active {
  color: var(--accent-strong);
  background: rgba(37, 99, 235, 0.08);
}

.top-nav-link.active::after,
.top-nav-link:hover::after,
.top-nav-primary a.active::after,
.top-nav-primary a:hover::after,
.top-nav-links a.active::after,
.top-nav-links a:hover::after {
  content: none;
}

.top-nav-action,
.top-nav-secondary a {
  min-height: 38px;
  padding: 0 14px;
  border-radius: 10px;
  border: 1px solid rgba(37, 99, 235, 0.16);
  background: #ffffff;
  color: #1e3a8a;
  font-size: 14px;
  font-weight: 750;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.top-nav-action.primary,
.top-nav-secondary a.primary {
  background: #2563eb;
  color: #ffffff;
  border-color: #2563eb;
  box-shadow: 0 10px 22px rgba(37, 99, 235, 0.22);
}

.top-nav-action.active,
.top-nav-secondary a.active {
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.page-shell,
.auth-shell,
.detail-page-shell {
  gap: 20px;
  padding: 28px;
}

.sidebar,
.panel,
.auth-panel,
.status-tile,
.hero-card {
  background: var(--panel);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(16px);
}

.hero-card {
  position: relative;
  overflow: hidden;
  padding: 30px;
}

.hero-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.08), transparent 44%);
}

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

.hero-card h2,
.auth-hero-copy h2 {
  margin: 8px 0 12px;
  max-width: 820px;
  color: #0f172a;
  font-size: clamp(30px, 4vw, 54px);
  line-height: 1.05;
  letter-spacing: 0;
}

.panel h3,
.auth-panel h3,
.hero-side-panel h3 {
  color: #0f172a;
  font-size: 20px;
  line-height: 1.25;
}

.muted,
.helper-text,
.inline-message,
.list-summary,
.page-indicator {
  color: var(--muted);
}

.eyebrow,
.section-title,
.detail-label,
.quick-link-tag,
.activity-card-kicker,
.highlight-card span {
  color: var(--accent);
  letter-spacing: 0.08em;
}

.hero-side-panel,
.hero-step,
.highlight-card,
.detail-summary-item,
.detail-gate-note,
.detail-section-card,
.auth-summary-card,
.auth-step,
.auth-inline-note,
.stacked-hints p,
.key-value-card,
.sidebar-card {
  border-radius: 14px;
  border-color: rgba(15, 23, 42, 0.08);
  background: rgba(255, 255, 255, 0.74);
  box-shadow: none;
}

.hero-side-panel {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(248, 250, 252, 0.86));
}

.quick-link-grid,
.public-activity-highlights {
  gap: 12px;
}

.quick-link-card,
.activity-card {
  border-radius: 14px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  transition: border-color 0.16s ease, transform 0.16s ease, box-shadow 0.16s ease;
}

.quick-link-card {
  min-height: 160px;
  padding: 18px;
}

.quick-link-card:hover,
.activity-card:hover,
.activity-card.active {
  transform: translateY(-2px);
  border-color: rgba(37, 99, 235, 0.3);
  box-shadow: var(--shadow);
}

.quick-link-card h4,
.activity-card-copy h4 {
  color: #0f172a;
  letter-spacing: 0;
}

.quick-link-card.accent-card {
  background: linear-gradient(135deg, #eff6ff, #ffffff);
  border-color: rgba(37, 99, 235, 0.18);
}

input,
textarea,
select {
  min-height: 42px;
  border-radius: 10px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: #ffffff;
  color: var(--ink);
  outline: none;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

input:focus,
textarea:focus,
select:focus {
  border-color: rgba(37, 99, 235, 0.62);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

label span {
  color: #475569;
  font-weight: 650;
}

.primary-button,
.ghost-button,
.success-button,
.danger-button {
  min-height: 40px;
  border-radius: 10px;
  padding: 0 16px;
  font-weight: 760;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
}

.primary-button {
  background: #2563eb;
  color: #ffffff;
  box-shadow: 0 12px 22px rgba(37, 99, 235, 0.2);
}

.primary-button:hover {
  background: #1d4ed8;
}

.ghost-button {
  background: #ffffff;
  color: #334155;
  border: 1px solid rgba(15, 23, 42, 0.12);
}

.ghost-button:hover {
  color: var(--accent-strong);
  border-color: rgba(37, 99, 235, 0.26);
}

.success-button {
  background: var(--success);
}

.danger-button {
  background: var(--danger);
}

.summary-chip,
.meta-pill,
.badge,
.value-badge {
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: none;
}

.summary-chip,
.badge-online {
  background: #eff6ff;
  color: #1d4ed8;
}

.summary-chip.subtle,
.meta-pill,
.badge-offline {
  background: #f8fafc;
  color: #64748b;
}

.badge-pending,
.value-badge {
  background: #fff7ed;
  color: #c2410c;
}

.badge-ready {
  background: #ecfdf5;
  color: #047857;
}

.badge-invalid {
  background: #fef2f2;
  color: #b91c1c;
}

.empty-state {
  border-radius: 14px;
  background: rgba(248, 250, 252, 0.78);
  border-color: rgba(100, 116, 139, 0.22);
}

.auth-step.active {
  border-color: rgba(37, 99, 235, 0.28);
  background: #eff6ff;
}

.auth-step.done,
.auth-success-card {
  border-color: rgba(21, 128, 61, 0.18);
  background: #ecfdf5;
}

.danger-note {
  border-color: rgba(220, 38, 38, 0.18);
  background: #fef2f2;
}

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

@media (max-width: 1020px) {
  .top-nav-inner {
    padding: 16px 18px;
  }

  .top-nav-primary,
  .top-nav-secondary,
  .top-nav-links {
    gap: 8px;
  }
}

@media (max-width: 700px) {
  .page-shell,
  .auth-shell,
  .detail-page-shell {
    padding: 14px;
  }

  .hero-card,
  .panel,
  .auth-panel,
  .sidebar {
    padding: 18px;
  }

  .hero-card h2,
  .auth-hero-copy h2 {
    font-size: 32px;
  }

  .top-nav-mark {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    font-size: 14px;
  }

  .top-nav-action,
  .top-nav-secondary a {
    width: 100%;
  }
}

@media (max-width: 700px) {
  .top-nav-inner {
    gap: 14px;
  }

  .top-nav-menu {
    gap: 12px;
  }

  .top-nav-primary,
  .top-nav-links {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
  }

  .top-nav-primary::-webkit-scrollbar,
  .top-nav-links::-webkit-scrollbar {
    display: none;
  }

  .top-nav-link,
  .top-nav-primary a,
  .top-nav-links a {
    flex: 0 0 auto;
    min-height: 36px;
    font-size: 14px;
  }

  .top-nav-secondary {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .top-nav-action,
  .top-nav-secondary a {
    width: auto;
  }

  .hero-card h2,
  .auth-hero-copy h2 {
    font-size: 29px;
    line-height: 1.08;
  }
}
