:root {
  --bg-base: #08111f;
  --bg-alt: #102b45;
  --panel: rgba(5, 14, 29, 0.76);
  --panel-soft: rgba(255, 255, 255, 0.04);
  --panel-border: rgba(255, 255, 255, 0.08);
  --line: rgba(255, 255, 255, 0.1);
  --text-main: #f4f8fc;
  --text-dim: #9cb2c7;
  --warm: #ff844b;
  --cool: #20c5ff;
  --good: #52d388;
  --shadow: 0 22px 60px rgba(0, 0, 0, 0.3);
  --font-main: "HarmonyOS Sans SC", "MiSans", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  position: relative;
  overflow-x: hidden;
  font-family: var(--font-main);
  color: var(--text-main);
  background:
    radial-gradient(circle at 15% 10%, rgba(255, 132, 75, 0.18), transparent 24%),
    radial-gradient(circle at 85% 20%, rgba(32, 197, 255, 0.18), transparent 24%),
    linear-gradient(155deg, var(--bg-base), var(--bg-alt));
}

.glow {
  position: fixed;
  border-radius: 999px;
  filter: blur(22px);
  opacity: 0.26;
  pointer-events: none;
}

.glow-a {
  top: 4rem;
  left: -4rem;
  width: 14rem;
  height: 14rem;
  background: var(--warm);
}

.glow-b {
  right: -6rem;
  bottom: 12rem;
  width: 18rem;
  height: 18rem;
  background: var(--cool);
}

.shell {
  width: min(1220px, calc(100% - 32px));
  margin: 0 auto;
  padding: 34px 0 52px;
}

.panel {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 28px;
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.hero {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 26px;
  padding: 34px;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto -8% -48% 36%;
  height: 250px;
  background: linear-gradient(90deg, rgba(255, 132, 75, 0.34), rgba(32, 197, 255, 0.14));
  transform: rotate(-9deg);
}

.eyebrow,
.section-label {
  margin: 0 0 10px;
  color: #ffbb9a;
  font-size: 0.82rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.hero h1,
.status-strip h2,
.section-head h2 {
  margin: 0;
  line-height: 1.05;
}

.hero h1 {
  font-size: clamp(2.2rem, 4vw, 3.5rem);
}

.hero-text,
.notice-summary,
.top-reason,
.admin-tip,
.mini-tip,
.chip,
.status-meta,
.rich-text,
.slide-caption {
  color: var(--text-dim);
}

.hero-text {
  max-width: 36rem;
  margin: 16px 0 0;
  font-size: 1rem;
  line-height: 1.8;
}

.hero-badge {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  align-content: center;
  min-height: 220px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.03));
  text-align: center;
}

.hero-badge span {
  color: #ffe0d0;
  font-size: 0.9rem;
  letter-spacing: 0.36em;
}

.hero-badge strong {
  margin-top: 12px;
  font-size: clamp(2.6rem, 7vw, 4.8rem);
  letter-spacing: 0.08em;
}

.status-strip {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  margin-top: 20px;
  padding: 24px 28px;
}

.status-strip h2,
.section-head h2 {
  font-size: clamp(1.4rem, 2.4vw, 2rem);
}

.status-meta {
  display: grid;
  gap: 8px;
  justify-items: end;
  text-align: right;
}

.main-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(340px, 0.85fr);
  gap: 22px;
  margin-top: 20px;
}

.links-panel,
.notice-panel,
.admin-section {
  padding: 28px;
}

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

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.9rem;
}

.top-reason {
  min-height: 24px;
  margin: 14px 0 0;
}

.cards {
  display: grid;
  gap: 16px;
  margin-top: 18px;
}

.card {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 22px 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--card-accent) 18%, transparent), transparent 16%),
    rgba(255, 255, 255, 0.03);
  cursor: pointer;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 6px;
  border-radius: 24px 0 0 24px;
  background: var(--card-accent);
}

.card:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--card-accent) 45%, white 15%);
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.22);
}

.card-icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 18px;
  background: color-mix(in srgb, var(--card-accent) 18%, rgba(255, 255, 255, 0.06));
  color: var(--card-accent);
  font-size: 1.42rem;
  font-weight: 700;
}

.card-title {
  margin: 0;
  font-size: 1.28rem;
}

.card-subtitle {
  margin: 8px 0 12px;
  color: var(--text-dim);
  line-height: 1.65;
}

.route-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.route-tag {
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: #d4e1ed;
  font-size: 0.8rem;
}

.badge-col {
  display: grid;
  gap: 10px;
  justify-items: end;
}

.badge,
.recommended-pill {
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  color: #fff;
}

.badge {
  background: var(--card-accent);
}

.recommended-pill {
  background: linear-gradient(135deg, #ff844b, #ffa65e);
}

.notice-summary {
  margin: 14px 0 18px;
  line-height: 1.75;
}

.carousel {
  margin-bottom: 18px;
}

.carousel-track {
  position: relative;
  min-height: 260px;
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.carousel-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 260ms ease;
}

.carousel-slide.active {
  opacity: 1;
  pointer-events: auto;
}

.carousel-slide a,
.carousel-slide button {
  width: 100%;
  height: 100%;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
}

.carousel-slide img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  display: block;
}

.slide-overlay {
  position: absolute;
  inset: auto 18px 18px 18px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.42);
  color: #fff;
  font-size: 0.95rem;
}

.carousel-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
}

.carousel-dots {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

.dot {
  width: 10px;
  height: 10px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  cursor: pointer;
}

.dot.active {
  background: var(--warm);
}

.rich-text {
  line-height: 1.82;
}

.rich-text p:first-child {
  margin-top: 0;
}

.rich-text strong {
  color: #fff;
}

.admin-section {
  margin-top: 22px;
}

.login-box,
.editor {
  padding: 20px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: var(--panel-soft);
}

.admin-tip {
  margin: 0 0 16px;
}

.login-form {
  display: flex;
  gap: 12px;
  align-items: end;
}

.login-form label {
  flex: 1;
}

.admin-workspace {
  margin-top: 22px;
}

.admin-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 18px;
}

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

.editor h3,
.mini-head h3,
.mini-head h4 {
  margin: 0;
}

.editor label {
  display: block;
  margin-bottom: 14px;
}

.editor span,
.login-form span {
  display: block;
  margin-bottom: 8px;
  color: #d3e1ef;
  font-size: 0.92rem;
}

input,
textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  background: rgba(4, 10, 24, 0.76);
  color: var(--text-main);
  font: inherit;
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

input:focus,
textarea:focus {
  border-color: rgba(255, 132, 75, 0.85);
  box-shadow: 0 0 0 3px rgba(255, 132, 75, 0.12);
}

input[type="color"] {
  min-height: 52px;
  padding: 6px;
}

textarea {
  resize: vertical;
}

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

.matcher-fieldset,
.sub-editor {
  margin: 0 0 14px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  background: rgba(0, 0, 0, 0.12);
}

.matcher-fieldset legend {
  padding: 0 6px;
  color: #d3e1ef;
}

.tag-option {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  margin: 0 10px 10px 0;
  color: var(--text-dim);
}

.tag-option input {
  width: auto;
}

.mini-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 14px;
}

.slide-form {
  display: grid;
  gap: 12px;
}

.slide-list,
.admin-list {
  display: grid;
  gap: 12px;
}

.slide-item,
.admin-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  background: rgba(0, 0, 0, 0.14);
}

.slide-item img {
  width: 88px;
  height: 56px;
  border-radius: 12px;
  object-fit: cover;
  display: block;
}

.slide-body {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: center;
}

.slide-caption,
.admin-meta {
  font-size: 0.9rem;
  line-height: 1.6;
  word-break: break-all;
}

.admin-item strong {
  display: block;
  margin-bottom: 6px;
}

.admin-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.primary-btn,
.ghost-btn,
.danger-btn {
  min-height: 46px;
  padding: 0 18px;
  border-radius: 16px;
  font: inherit;
  cursor: pointer;
  transition: transform 160ms ease, opacity 160ms ease;
}

.primary-btn {
  border: 0;
  background: linear-gradient(135deg, #ff844b, #ffa259);
  color: #fff;
  font-weight: 700;
}

.ghost-btn,
.danger-btn {
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: #e5eef7;
}

.danger-btn {
  color: #ffcab6;
}

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

.empty-state {
  padding: 28px;
  border: 1px dashed rgba(255, 255, 255, 0.14);
  border-radius: 20px;
  color: var(--text-dim);
  text-align: center;
}

.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  max-width: 320px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(5, 10, 22, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.09);
  color: #fff;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.hidden {
  display: none !important;
}

@media (max-width: 980px) {
  .hero,
  .main-grid,
  .admin-grid {
    grid-template-columns: 1fr;
  }

  .status-strip {
    flex-direction: column;
    align-items: flex-start;
  }

  .status-meta {
    justify-items: start;
    text-align: left;
  }

  .login-form {
    flex-direction: column;
    align-items: stretch;
  }
}

@media (max-width: 720px) {
  .shell {
    width: min(100% - 20px, 100%);
    padding: 20px 0 40px;
  }

  .hero,
  .status-strip,
  .links-panel,
  .notice-panel,
  .admin-section {
    padding: 20px;
  }

  .inline-fields,
  .card,
  .slide-item,
  .admin-item {
    grid-template-columns: 1fr;
  }

  .badge-col {
    justify-items: start;
  }

  .carousel-controls {
    flex-direction: column;
  }
}
