:root {
  --pink: #ff1268;
  --pink-dark: #d9004f;
  --pink-soft: #fff0f5;
  --ink: #161616;
  --text: #333333;
  --muted: #777777;
  --line: #e9e9e9;
  --surface: #ffffff;
  --surface-soft: #f7f7f8;
  --admin-bg: #f3f5f8;
  --admin-ink: #1f2733;
  --success: #16865c;
  --warning: #c78016;
  --danger: #d33b48;
  --blue: #3178d4;
  --shadow: 0 10px 30px rgba(20, 20, 30, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--surface);
  color: var(--text);
  font-family: "HarmonyOS Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  letter-spacing: 0;
}

body {
  margin: 0;
  min-width: 320px;
}

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

button,
input,
select,
textarea {
  font: inherit;
  letter-spacing: 0;
}

button,
select {
  cursor: pointer;
}

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

.front-body {
  background: var(--surface);
  color: var(--text);
}

.front-container {
  width: min(1200px, calc(100% - 40px));
  margin: 0 auto;
}

.site-announcement {
  min-height: 34px;
  display: flex;
  align-items: center;
  background: var(--ink);
  color: #ffffff;
  font-size: 12px;
}

.site-announcement .front-container {
  padding: 8px 0;
}

.front-header {
  position: sticky;
  top: 0;
  z-index: 50;
  min-height: 72px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
}

.header-main {
  min-height: 72px;
  display: grid;
  grid-template-columns: auto auto auto minmax(260px, 1fr) auto;
  align-items: center;
  gap: 22px;
}

.xiaomai-logo,
.admin-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.xiaomai-logo {
  color: var(--pink);
  font-size: 26px;
  font-weight: 900;
  white-space: nowrap;
}

.xiaomai-logo-mark,
.admin-brand-mark {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--pink);
  color: #ffffff;
  font-size: 20px;
  font-weight: 900;
}

.city-entry {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #444444;
  font-size: 14px;
  white-space: nowrap;
}

.location-dot {
  width: 11px;
  height: 11px;
  border: 3px solid var(--pink);
  border-radius: 50%;
}

.front-nav {
  height: 72px;
  display: flex;
  align-items: stretch;
  gap: 24px;
  white-space: nowrap;
}

.front-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  font-size: 15px;
  font-weight: 600;
}

.front-nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 3px;
  background: transparent;
}

.front-nav a:hover,
.front-nav a.is-active {
  color: var(--pink);
}

.front-nav a.is-active::after {
  background: var(--pink);
}

.header-search {
  height: 40px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 72px;
  overflow: hidden;
  border: 1px solid #dedede;
  border-radius: 6px;
  background: #f7f7f7;
}

.header-search input {
  min-width: 0;
  padding: 0 14px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
}

.header-search button {
  border: 0;
  background: var(--pink);
  color: #ffffff;
  font-weight: 700;
}

.admin-entry {
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
}

.admin-entry:hover {
  color: var(--pink);
}

.mobile-nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  padding: 10px;
  border: 0;
  background: transparent;
}

.mobile-nav-toggle span {
  display: block;
  height: 2px;
  margin: 4px 0;
  background: var(--ink);
}

.home-hero {
  position: relative;
  min-height: 470px;
  background-image: var(--hero-image);
  background-size: cover;
  background-position: center;
  color: #ffffff;
  overflow: hidden;
}

.home-hero-shade {
  position: absolute;
  inset: 0;
  background: rgba(23, 6, 13, 0.58);
}

.hero-inner {
  position: relative;
  z-index: 1;
  min-height: 470px;
  display: flex;
  align-items: center;
}

.hero-copy {
  width: min(650px, 100%);
  padding: 58px 0;
}

.hero-kicker {
  display: inline-block;
  margin-bottom: 18px;
  color: #ffd3e4;
  font-size: 15px;
  font-weight: 700;
}

.hero-copy h1 {
  max-width: 620px;
  margin: 0;
  font-size: 52px;
  line-height: 1.16;
  font-weight: 900;
}

.hero-copy > p {
  max-width: 560px;
  margin: 20px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 17px;
  line-height: 1.8;
}

.hero-search {
  width: min(590px, 100%);
  height: 54px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 112px;
  margin-top: 30px;
  overflow: hidden;
  border-radius: 6px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.hero-search input {
  min-width: 0;
  padding: 0 20px;
  border: 0;
  outline: 0;
  color: var(--ink);
}

.hero-search button {
  border: 0;
  background: var(--pink);
  color: #ffffff;
  font-weight: 800;
}

.hero-meta {
  min-height: 28px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 18px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
}

.hero-meta a {
  color: #ffffff;
  font-weight: 700;
}

.category-band {
  border-bottom: 1px solid var(--line);
  background: #ffffff;
}

.category-row {
  min-height: 144px;
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  align-items: center;
}

.category-entry {
  min-width: 0;
  display: grid;
  justify-items: center;
  gap: 7px;
  padding: 18px 8px;
  text-align: center;
}

.category-entry > span {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--pink-soft);
  color: var(--pink);
  font-size: 20px;
  font-weight: 900;
  transition: transform 0.2s ease, background 0.2s ease;
}

.category-entry strong {
  max-width: 100%;
  overflow: hidden;
  color: var(--ink);
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.category-entry small {
  color: #999999;
  font-size: 11px;
}

.category-entry:hover > span {
  transform: translateY(-3px);
  background: var(--pink);
  color: #ffffff;
}

.front-main {
  padding: 52px 0 80px;
}

.front-section + .front-section {
  margin-top: 68px;
}

.front-section-head {
  min-height: 58px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.front-section-head p,
.listing-intro p,
.topic-banner p {
  margin: 0 0 7px;
  color: var(--pink);
  font-size: 12px;
  font-weight: 800;
}

.front-section-head h2,
.listing-intro h1,
.topic-banner h1 {
  margin: 0;
  color: var(--ink);
  font-weight: 900;
}

.front-section-head h2 {
  font-size: 28px;
}

.front-section-head > a {
  color: var(--pink);
  font-size: 14px;
  font-weight: 700;
}

.front-section-head > span,
.front-section-head > p {
  color: var(--muted);
  font-size: 13px;
}

.event-card-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 28px 18px;
}

.event-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.event-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.event-poster {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #ececef;
}

.event-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.event-card:hover .event-poster img {
  transform: scale(1.035);
}

.poster-tag {
  position: absolute;
  top: 10px;
  left: 10px;
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  padding: 0 9px;
  border-radius: 4px;
  background: var(--pink);
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
}

.event-card-content {
  display: grid;
  gap: 9px;
  padding: 15px 14px 16px;
}

.event-category {
  margin: 0;
  color: var(--pink);
  font-size: 11px;
  font-weight: 800;
}

.event-card-content h3 {
  height: 44px;
  margin: 0;
  overflow: hidden;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.4;
}

.event-card-content h3 a {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.event-line,
.event-time {
  margin: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.event-line strong {
  color: #555555;
}

.event-card-bottom {
  min-height: 35px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
  padding-top: 5px;
  border-top: 1px solid #f2f2f2;
}

.event-card-bottom > strong {
  min-width: 0;
  overflow: hidden;
  color: var(--pink);
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.event-card-bottom > a {
  flex: 0 0 auto;
  color: #666666;
  font-size: 12px;
}

.front-empty {
  padding: 42px 24px;
  border: 1px dashed #d8d8d8;
  border-radius: 8px;
  background: #fafafa;
  text-align: center;
}

.front-empty strong {
  display: block;
  color: var(--ink);
  font-size: 18px;
}

.front-empty p {
  margin: 10px 0 20px;
  color: var(--muted);
}

.front-empty a {
  color: var(--pink);
  font-weight: 700;
}

.event-grid-empty {
  grid-column: 1 / -1;
}

.discovery-section {
  padding: 42px;
  background: var(--surface-soft);
}

.city-link-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid #e6e6e8;
  background: #e6e6e8;
}

.city-link-grid a {
  min-height: 105px;
  display: grid;
  align-content: center;
  gap: 8px;
  padding: 18px;
  background: #ffffff;
}

.city-link-grid strong {
  color: var(--ink);
  font-size: 18px;
}

.city-link-grid span {
  color: var(--muted);
  font-size: 12px;
}

.city-link-grid a:hover strong {
  color: var(--pink);
}

.latest-list {
  border-top: 1px solid var(--line);
}

.latest-item {
  min-height: 92px;
  display: grid;
  grid-template-columns: 62px 150px minmax(220px, 1fr) 260px;
  align-items: center;
  gap: 20px;
  border-bottom: 1px solid var(--line);
}

.latest-item img {
  width: 48px;
  height: 64px;
  object-fit: cover;
  border-radius: 4px;
}

.latest-date {
  color: var(--pink);
  font-size: 12px;
  font-weight: 700;
}

.latest-item strong {
  color: var(--ink);
  font-size: 15px;
}

.latest-item > span:last-child {
  overflow: hidden;
  color: var(--muted);
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.listing-intro,
.topic-banner {
  padding: 42px 0;
  background: var(--surface-soft);
  border-bottom: 1px solid var(--line);
}

.listing-intro h1,
.topic-banner h1 {
  font-size: 34px;
}

.listing-intro span,
.topic-banner span {
  display: block;
  margin-top: 10px;
  color: var(--muted);
}

.listing-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 38px;
  padding: 42px 0 80px;
  align-items: start;
}

.show-filter-panel {
  position: sticky;
  top: 102px;
  border-top: 3px solid var(--pink);
  background: var(--surface-soft);
}

.show-filter-panel form {
  display: grid;
  gap: 18px;
  padding: 22px 18px;
}

.show-filter-panel label,
.admin-form-grid label,
.editor-form-grid label,
.publish-controls label {
  display: grid;
  gap: 8px;
}

.show-filter-panel label > span,
.admin-form-grid label > span,
.editor-form-grid label > span,
.publish-controls label > span {
  color: #60656d;
  font-size: 12px;
  font-weight: 700;
}

.show-filter-panel input,
.show-filter-panel select,
.admin-toolbar input,
.admin-toolbar select,
.admin-form-grid input,
.admin-form-grid select,
.admin-form-grid textarea,
.editor-form-grid input,
.editor-form-grid select,
.editor-form-grid textarea,
.publish-controls input,
.publish-controls select,
.publish-controls textarea {
  width: 100%;
  min-height: 42px;
  padding: 9px 11px;
  border: 1px solid #dcdfe4;
  border-radius: 5px;
  outline: 0;
  background: #ffffff;
  color: var(--admin-ink);
}

.show-filter-panel input:focus,
.show-filter-panel select:focus,
.admin-toolbar input:focus,
.admin-toolbar select:focus,
.admin-form-grid input:focus,
.admin-form-grid select:focus,
.admin-form-grid textarea:focus,
.editor-form-grid input:focus,
.editor-form-grid select:focus,
.editor-form-grid textarea:focus,
.publish-controls input:focus,
.publish-controls select:focus,
.publish-controls textarea:focus {
  border-color: var(--pink);
  box-shadow: 0 0 0 3px rgba(255, 18, 104, 0.1);
}

.show-filter-panel .primary-command {
  width: 100%;
}

.clear-filter {
  text-align: center;
  color: var(--muted);
  font-size: 12px;
}

.result-toolbar {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.result-toolbar strong {
  color: var(--pink);
  font-size: 24px;
}

.result-toolbar span,
.result-toolbar p {
  color: var(--muted);
  font-size: 13px;
}

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

.front-pagination,
.admin-pagination {
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  margin-top: 36px;
}

.front-pagination a,
.front-pagination span,
.admin-pagination a,
.admin-pagination span {
  min-width: 74px;
  color: var(--muted);
  text-align: center;
}

.front-pagination a,
.admin-pagination a {
  color: var(--pink);
  font-weight: 700;
}

.topic-filter {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.topic-filter > div {
  min-height: 62px;
  display: grid;
  grid-template-columns: 100px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
}

.topic-filter > div + div {
  border-top: 1px solid var(--line);
}

.topic-filter > div > strong {
  color: var(--ink);
  font-size: 14px;
}

.topic-filter nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
}

.topic-filter nav a {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 11px;
  border-radius: 4px;
  font-size: 13px;
}

.topic-filter nav a span {
  color: #999999;
  font-size: 11px;
}

.topic-filter nav a:hover,
.topic-filter nav a.is-active {
  background: var(--pink);
  color: #ffffff;
}

.topic-filter nav a.is-active span {
  color: #ffffff;
}

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

.feature-poster-item {
  position: relative;
  min-height: 340px;
  overflow: hidden;
  border-radius: 8px;
  background: #111111;
  color: #ffffff;
}

.feature-poster-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(20, 5, 12, 0.45);
}

.feature-poster-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.feature-poster-item > span,
.feature-poster-item > strong,
.feature-poster-item > small {
  position: absolute;
  right: 18px;
  left: 18px;
  z-index: 1;
}

.feature-poster-item > span {
  bottom: 86px;
  color: #ffd5e5;
  font-size: 12px;
}

.feature-poster-item > strong {
  bottom: 48px;
  overflow: hidden;
  font-size: 16px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.feature-poster-item > small {
  bottom: 23px;
  color: rgba(255, 255, 255, 0.78);
}

.topic-clusters {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 44px;
  margin-top: 68px;
}

.topic-cluster-item {
  min-height: 82px;
  display: grid;
  grid-template-columns: 48px 120px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  border-top: 1px solid var(--line);
}

.topic-cluster-item > span {
  color: var(--pink);
  font-size: 20px;
  font-weight: 900;
}

.topic-cluster-item > strong {
  color: var(--ink);
}

.topic-cluster-item > small {
  overflow: hidden;
  color: var(--muted);
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

.event-detail-page {
  padding: 28px 0 80px;
}

.breadcrumb {
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 9px;
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}

.breadcrumb strong {
  overflow: hidden;
  color: #555555;
  text-overflow: ellipsis;
}

.event-detail-hero {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr) 270px;
  gap: 34px;
  align-items: start;
  padding: 36px;
  background: var(--surface-soft);
}

.detail-poster-wrap {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.detail-poster-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-summary {
  min-width: 0;
}

.detail-category {
  color: var(--pink);
  font-size: 13px;
  font-weight: 800;
}

.detail-summary h1 {
  margin: 14px 0 30px;
  color: var(--ink);
  font-size: 30px;
  line-height: 1.45;
}

.detail-facts {
  display: grid;
  gap: 22px;
  margin: 0;
}

.detail-facts > div {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 16px;
}

.detail-facts dt {
  color: var(--muted);
  font-size: 13px;
}

.detail-facts dd {
  margin: 0;
  color: #333333;
  font-size: 14px;
  line-height: 1.7;
}

.detail-facts small {
  display: block;
  color: #999999;
}

.ticket-panel {
  display: grid;
  gap: 15px;
  padding: 24px;
  border: 1px solid #ffd0e1;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(255, 18, 104, 0.08);
}

.ticket-panel > span {
  color: var(--muted);
  font-size: 12px;
}

.ticket-panel > strong {
  color: var(--pink);
  font-size: 24px;
}

.ticket-panel p,
.ticket-panel small {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.ticket-command,
.primary-command,
.secondary-command {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border: 0;
  border-radius: 5px;
  font-weight: 800;
}

.ticket-command,
.primary-command {
  background: var(--pink);
  color: #ffffff;
}

.ticket-command:hover,
.primary-command:hover {
  background: var(--pink-dark);
}

.primary-command:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.secondary-command {
  border: 1px solid #d8dce2;
  background: #ffffff;
  color: var(--admin-ink);
}

.event-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 46px;
  align-items: start;
  margin-top: 52px;
}

.event-detail-content {
  min-width: 0;
}

.event-detail-content > section + section {
  margin-top: 48px;
  padding-top: 40px;
  border-top: 1px solid var(--line);
}

.event-detail-content h2,
.event-detail-side h2 {
  margin: 0 0 22px;
  color: var(--ink);
  font-size: 22px;
}

.detail-prose {
  max-width: 100%;
  overflow: hidden;
  color: #444444;
  font-size: 15px;
  line-height: 1.9;
}

.detail-prose img {
  height: auto;
  margin: 18px auto;
}

.ticket-note-list {
  display: grid;
  gap: 1px;
  background: var(--line);
}

.ticket-note-list > div {
  padding: 18px;
  background: #ffffff;
}

.ticket-note-list > .muted-copy {
  margin: 0;
  padding: 18px;
  background: #ffffff;
}

.ticket-note-list strong {
  color: var(--ink);
}

.ticket-note-list p,
.policy-copy {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.8;
}

.event-detail-side {
  position: sticky;
  top: 102px;
  display: grid;
  gap: 28px;
}

.event-detail-side > section {
  padding: 22px;
  border-top: 3px solid var(--pink);
  background: var(--surface-soft);
}

.tour-list {
  display: grid;
  gap: 1px;
  background: var(--line);
}

.tour-list a {
  display: grid;
  gap: 5px;
  padding: 13px;
  background: #ffffff;
}

.tour-list strong {
  color: var(--ink);
}

.tour-list span {
  color: var(--muted);
  font-size: 12px;
}

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

.source-panel a {
  color: var(--pink);
  font-weight: 700;
}

.related-section {
  margin-top: 68px;
}

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

.front-footer {
  padding: 50px 0;
  border-top: 1px solid var(--line);
  background: #f7f7f8;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.7fr 1fr 1fr;
  gap: 52px;
}

.footer-grid > div {
  display: grid;
  align-content: start;
  gap: 10px;
}

.footer-logo {
  font-size: 22px;
}

.footer-grid strong {
  color: var(--ink);
  font-size: 14px;
}

.footer-grid p,
.footer-grid a:not(.xiaomai-logo) {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.75;
}

/* Admin */
.admin-body {
  background: var(--admin-bg);
  color: var(--admin-ink);
}

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

.admin-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  padding: 24px 16px;
  background: #202632;
  color: #ffffff;
}

.admin-brand {
  min-height: 54px;
  padding: 0 8px 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.admin-brand > span:last-child {
  display: grid;
  gap: 3px;
}

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

.admin-brand small {
  color: rgba(255, 255, 255, 0.55);
  font-size: 11px;
}

.admin-nav {
  display: grid;
  align-content: start;
  gap: 6px;
  padding-top: 24px;
}

.admin-nav a {
  min-height: 46px;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 0 12px;
  border-radius: 6px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
}

.admin-nav a > span {
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 12px;
}

.admin-nav a:hover,
.admin-nav a.is-active {
  background: var(--pink);
  color: #ffffff;
}

.admin-sidebar-foot {
  display: grid;
  gap: 10px;
  padding: 18px 10px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.admin-sidebar-foot a {
  color: rgba(255, 255, 255, 0.58);
  font-size: 12px;
}

.admin-workspace {
  min-width: 0;
}

.admin-topbar {
  min-height: 78px;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 32px;
  border-bottom: 1px solid #e1e4e9;
  background: #ffffff;
}

.admin-topbar > div {
  min-width: 0;
}

.admin-topbar p {
  margin: 0 0 4px;
  color: #8a9099;
  font-size: 11px;
}

.admin-topbar h1 {
  margin: 0;
  overflow: hidden;
  color: var(--admin-ink);
  font-size: 22px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-front-link {
  margin-left: auto;
  color: var(--pink);
  font-size: 13px;
  font-weight: 700;
}

.admin-menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: 1px solid #dcdfe4;
  border-radius: 5px;
  background: #ffffff;
}

.admin-main {
  width: min(1440px, 100%);
  margin: 0 auto;
  padding: 28px 32px 56px;
}

.admin-message {
  margin-bottom: 18px;
  padding: 13px 16px;
  border-left: 4px solid var(--pink);
  background: #ffffff;
  box-shadow: 0 3px 12px rgba(20, 20, 30, 0.04);
  color: #474c55;
  font-size: 13px;
}

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

.admin-stat-grid article {
  min-height: 128px;
  display: grid;
  align-content: center;
  gap: 6px;
  padding: 20px;
  border: 1px solid #e2e5ea;
  border-radius: 8px;
  background: #ffffff;
}

.admin-stat-grid span,
.admin-stat-grid small {
  color: #7b818a;
  font-size: 12px;
}

.admin-stat-grid strong {
  color: var(--admin-ink);
  font-size: 30px;
}

.admin-dashboard-grid,
.crawl-layout,
.admin-secondary-grid,
.settings-layout,
.event-editor-layout {
  display: grid;
  gap: 18px;
  align-items: start;
  margin-top: 18px;
}

.admin-dashboard-grid {
  grid-template-columns: minmax(0, 1.55fr) minmax(300px, 0.75fr);
}

.admin-panel {
  min-width: 0;
  padding: 22px;
  border: 1px solid #e1e4e9;
  border-radius: 8px;
  background: #ffffff;
}

.admin-panel + .admin-panel {
  margin-top: 18px;
}

.admin-dashboard-grid .admin-panel + .admin-panel,
.crawl-layout .admin-panel + .admin-panel,
.admin-secondary-grid .admin-panel + .admin-panel,
.event-editor-layout .admin-panel + .admin-panel,
.settings-layout .admin-panel + .admin-panel {
  margin-top: 0;
}

.admin-panel-head {
  min-height: 42px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.admin-panel-head > div {
  min-width: 0;
}

.admin-panel-head span {
  color: var(--pink);
  font-size: 10px;
  font-weight: 900;
}

.admin-panel-head h2 {
  margin: 4px 0 0;
  color: var(--admin-ink);
  font-size: 18px;
}

.admin-panel-head > a {
  color: var(--pink);
  font-size: 12px;
  font-weight: 700;
}

.admin-panel-head > p {
  margin: 0;
  color: #838994;
  font-size: 12px;
}

.run-status-line,
.crawl-stage {
  min-height: 68px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.admin-status-dot {
  width: 11px;
  height: 11px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #aeb3bb;
}

.admin-status-dot[data-state="running"] {
  background: var(--blue);
  box-shadow: 0 0 0 6px rgba(49, 120, 212, 0.12);
}

.admin-status-dot[data-state="success"] {
  background: var(--success);
}

.admin-status-dot[data-state="failed"] {
  background: var(--danger);
}

.run-status-line strong,
.crawl-stage strong {
  color: var(--admin-ink);
}

.run-status-line p,
.crawl-stage p {
  margin: 5px 0 0;
  color: #7f858f;
  font-size: 12px;
}

.admin-progress {
  height: 8px;
  overflow: hidden;
  border-radius: 4px;
  background: #edf0f4;
}

.admin-progress span {
  display: block;
  height: 100%;
  background: var(--pink);
}

.run-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-top: 20px;
  border: 1px solid #e8eaee;
  background: #e8eaee;
}

.run-metrics > div {
  min-height: 74px;
  display: grid;
  align-content: center;
  gap: 5px;
  padding: 12px;
  background: #ffffff;
}

.run-metrics span {
  color: #858b94;
  font-size: 11px;
}

.run-metrics strong {
  font-size: 17px;
}

.quick-actions {
  display: grid;
  align-content: start;
}

.quick-actions > a {
  min-height: 70px;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  border-top: 1px solid #eceef1;
}

.quick-actions > a > span {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  background: var(--pink-soft);
  color: var(--pink);
  font-size: 12px;
  font-weight: 900;
}

.quick-actions > a > div {
  display: grid;
  gap: 4px;
}

.quick-actions strong {
  font-size: 13px;
}

.quick-actions small {
  color: #8b9098;
}

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

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

.admin-table th {
  height: 42px;
  padding: 0 12px;
  border-bottom: 1px solid #dfe2e7;
  color: #747a84;
  font-size: 11px;
  font-weight: 700;
  text-align: left;
  white-space: nowrap;
}

.admin-table td {
  min-height: 62px;
  padding: 12px;
  border-bottom: 1px solid #eceef1;
  color: #4d535c;
  font-size: 12px;
  vertical-align: middle;
}

.admin-table td small {
  display: block;
  margin-top: 5px;
  color: #9298a1;
}

.table-event {
  min-width: 240px;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  align-items: center;
  gap: 11px;
}

.table-event img {
  width: 44px;
  height: 58px;
  border-radius: 4px;
  object-fit: cover;
  background: #eceef1;
}

.table-event > div {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.table-event strong,
.table-event span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.table-event strong {
  color: var(--admin-ink);
  font-size: 13px;
}

.table-event span {
  color: #858b94;
  font-size: 11px;
}

.table-action {
  color: var(--pink);
  font-weight: 700;
}

.table-empty {
  padding: 28px !important;
  color: #9298a1 !important;
  text-align: center;
}

.admin-badge {
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  padding: 0 8px;
  border-radius: 4px;
  background: #edf0f4;
  color: #66707d;
  font-size: 10px;
  font-weight: 800;
  white-space: nowrap;
}

.badge-pending {
  background: #fff5df;
  color: var(--warning);
}

.badge-approved,
.badge-visible {
  background: #e8f7f0;
  color: var(--success);
}

.badge-rejected,
.badge-hidden {
  background: #fdecee;
  color: var(--danger);
}

.badge-archived {
  background: #edf0f4;
  color: #657080;
}

.badge-featured {
  background: var(--pink-soft);
  color: var(--pink);
}

.badge-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.run-history-list {
  display: grid;
}

.run-history-list > div {
  min-height: 50px;
  display: grid;
  grid-template-columns: 12px minmax(180px, 1fr) 180px 160px;
  align-items: center;
  gap: 12px;
  border-top: 1px solid #eceef1;
  font-size: 12px;
}

.run-history-list span,
.run-history-list time {
  color: #858b94;
}

.crawl-layout {
  grid-template-columns: minmax(0, 1.2fr) minmax(360px, 0.8fr);
}

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

.admin-form-grid,
.editor-form-grid,
.publish-controls {
  display: grid;
  gap: 16px;
}

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

.admin-form-grid textarea,
.editor-form-grid textarea,
.publish-controls textarea {
  resize: vertical;
}

.admin-check {
  min-height: 42px;
  display: flex !important;
  align-items: center;
  gap: 9px !important;
}

.admin-check input {
  width: 17px !important;
  height: 17px;
  min-height: 0 !important;
  margin: 0;
  accent-color: var(--pink);
}

.form-span-2 {
  grid-column: span 2;
}

.run-detail-list,
.event-meta-panel dl,
.settings-preview dl {
  display: grid;
  margin: 22px 0 0;
}

.run-detail-list > div,
.event-meta-panel dl > div,
.settings-preview dl > div {
  min-height: 44px;
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  border-top: 1px solid #eceef1;
}

.run-detail-list dt,
.event-meta-panel dt,
.settings-preview dt {
  color: #858b94;
  font-size: 11px;
}

.run-detail-list dd,
.event-meta-panel dd,
.settings-preview dd {
  margin: 0;
  overflow: hidden;
  color: #4b515b;
  font-size: 12px;
  text-overflow: ellipsis;
}

.admin-toolbar {
  min-height: 64px;
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
  padding: 12px;
  border: 1px solid #e1e4e9;
  border-radius: 8px;
  background: #ffffff;
}

.admin-toolbar form {
  min-width: 0;
  flex: 1;
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 140px 130px 130px 76px auto;
  align-items: center;
  gap: 10px;
}

.admin-toolbar input,
.admin-toolbar select {
  min-width: 0;
  min-height: 38px;
}

.admin-toolbar .secondary-command {
  min-height: 38px;
}

.toolbar-clear {
  color: #7f858f;
  font-size: 12px;
  text-align: center;
}

.toolbar-create {
  flex: 0 0 auto;
}

.event-admin-table {
  min-width: 1000px;
}

.event-editor-layout {
  grid-template-columns: minmax(0, 1fr) 330px;
}

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

.event-editor-side {
  position: sticky;
  top: 20px;
  display: grid;
  gap: 18px;
}

.editor-preview {
  display: grid;
  gap: 10px;
}

.editor-preview img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 6px;
}

.editor-preview strong {
  overflow: hidden;
  color: var(--admin-ink);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.editor-preview > span {
  color: #818791;
  font-size: 12px;
}

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

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

.compact-list {
  display: grid;
}

.compact-list > a,
.compact-list > div {
  min-height: 52px;
  display: grid;
  align-content: center;
  gap: 5px;
  border-top: 1px solid #eceef1;
}

.compact-list strong {
  font-size: 12px;
}

.compact-list span {
  color: #878d96;
  font-size: 11px;
}

.raw-data-panel {
  margin-top: 18px;
}

.raw-data-panel summary {
  cursor: pointer;
  color: var(--pink);
  font-size: 13px;
  font-weight: 700;
}

.raw-data-panel pre {
  max-height: 480px;
  overflow: auto;
  margin: 18px 0 0;
  padding: 16px;
  border-radius: 5px;
  background: #202632;
  color: #dce5ef;
  font-size: 11px;
  line-height: 1.65;
  white-space: pre-wrap;
  word-break: break-word;
}

.create-event-form {
  max-width: 960px;
}

.form-actions,
.settings-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 22px;
}

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

.settings-main {
  display: grid;
  gap: 18px;
}

.settings-preview {
  position: sticky;
  top: 20px;
}

.settings-hero-preview {
  min-height: 230px;
  display: grid;
  align-content: end;
  gap: 8px;
  padding: 20px;
  border-radius: 6px;
  background-color: #26222a;
  background-position: center;
  background-size: cover;
  color: #ffffff;
  overflow: hidden;
  box-shadow: inset 0 0 0 1000px rgba(20, 5, 12, 0.5);
}

.settings-hero-preview span {
  color: #ffd2e3;
  font-size: 11px;
}

.settings-hero-preview strong {
  font-size: 22px;
  line-height: 1.35;
}

@media (max-width: 1120px) {
  .header-main {
    grid-template-columns: auto auto minmax(220px, 1fr) auto;
  }

  .front-nav {
    display: none;
  }

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

  .category-row {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    padding: 12px 0;
  }

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

  .event-detail-hero {
    grid-template-columns: 260px minmax(0, 1fr);
  }

  .ticket-panel {
    grid-column: 1 / -1;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: center;
  }

  .ticket-command {
    grid-column: span 2;
  }

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

  .admin-toolbar form {
    width: 100%;
    grid-template-columns: minmax(200px, 1fr) repeat(3, 130px) 76px auto;
  }

  .toolbar-create {
    align-self: flex-end;
  }
}

@media (max-width: 900px) {
  .front-container {
    width: min(100% - 28px, 1200px);
  }

  .front-header {
    position: relative;
  }

  .header-main {
    grid-template-columns: auto auto minmax(0, 1fr) 40px;
    gap: 12px;
  }

  .header-search {
    grid-column: 1 / -1;
    grid-row: 2;
    width: 100%;
    margin-bottom: 12px;
  }

  .admin-entry {
    display: none;
  }

  .mobile-nav-toggle {
    display: block;
  }

  .front-nav {
    position: absolute;
    top: 72px;
    right: 14px;
    left: 14px;
    z-index: 20;
    height: auto;
    display: none;
    align-items: stretch;
    flex-direction: column;
    gap: 0;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
    box-shadow: var(--shadow);
  }

  .front-nav.is-open {
    display: flex;
  }

  .front-nav a {
    min-height: 44px;
    padding: 0 12px;
  }

  .front-nav a::after {
    display: none;
  }

  .hero-copy h1 {
    font-size: 42px;
  }

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

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

  .latest-item {
    grid-template-columns: 62px 130px minmax(180px, 1fr);
  }

  .latest-item > span:last-child {
    display: none;
  }

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

  .show-filter-panel {
    position: static;
  }

  .show-filter-panel form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .show-filter-panel .primary-command,
  .clear-filter {
    align-self: end;
  }

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

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

  .event-detail-side {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

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

  .admin-sidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 80;
    width: 224px;
    height: 100vh;
    transform: translateX(-100%);
    transition: transform 0.2s ease;
  }

  .admin-sidebar.is-open {
    transform: translateX(0);
  }

  .admin-menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .admin-main {
    padding: 24px 20px 48px;
  }

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

  .admin-dashboard-grid,
  .crawl-layout,
  .event-editor-layout,
  .settings-layout {
    grid-template-columns: 1fr;
  }

  .event-editor-side,
  .settings-preview {
    position: static;
  }

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

  .admin-toolbar form > input {
    grid-column: span 2;
  }
}

@media (max-width: 640px) {
  .site-announcement {
    font-size: 11px;
  }

  .header-main {
    grid-template-columns: auto minmax(0, 1fr) 40px;
  }

  .xiaomai-logo {
    font-size: 22px;
  }

  .city-entry {
    justify-self: end;
  }

  .hero-inner,
  .home-hero {
    min-height: 520px;
  }

  .hero-copy {
    padding: 44px 0;
  }

  .hero-copy h1 {
    font-size: 36px;
  }

  .hero-copy > p {
    font-size: 15px;
  }

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

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

  .front-main {
    padding-top: 38px;
  }

  .front-section + .front-section {
    margin-top: 52px;
  }

  .front-section-head {
    align-items: flex-start;
  }

  .front-section-head h2 {
    font-size: 24px;
  }

  .event-card-grid,
  .listing-grid,
  .related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 10px;
  }

  .event-card-content {
    padding: 12px 10px 13px;
  }

  .event-card-content h3 {
    height: 40px;
    font-size: 14px;
  }

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

  .discovery-section {
    padding: 28px 18px;
  }

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

  .latest-item {
    min-height: 84px;
    grid-template-columns: 54px minmax(0, 1fr);
    gap: 12px;
  }

  .latest-date {
    display: none;
  }

  .latest-item > span:last-child {
    display: block;
    grid-column: 2;
  }

  .listing-intro,
  .topic-banner {
    padding: 30px 0;
  }

  .listing-intro h1,
  .topic-banner h1 {
    font-size: 28px;
  }

  .show-filter-panel form {
    grid-template-columns: 1fr;
  }

  .result-toolbar {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
  }

  .topic-filter > div {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 14px 0;
  }

  .feature-poster-row {
    grid-template-columns: 1fr;
  }

  .feature-poster-item {
    min-height: 310px;
  }

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

  .event-detail-page {
    padding-top: 14px;
  }

  .event-detail-hero {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 20px;
  }

  .detail-poster-wrap {
    width: min(280px, 100%);
    margin: 0 auto;
  }

  .detail-summary h1 {
    font-size: 24px;
  }

  .detail-facts > div {
    grid-template-columns: 76px minmax(0, 1fr);
  }

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

  .ticket-command {
    grid-column: auto;
  }

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

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .admin-topbar {
    padding: 12px 16px;
  }

  .admin-front-link {
    display: none;
  }

  .admin-main {
    padding: 18px 12px 40px;
  }

  .admin-stat-grid,
  .admin-secondary-grid,
  .editor-form-grid,
  .admin-form-grid {
    grid-template-columns: 1fr;
  }

  .form-span-2 {
    grid-column: auto;
  }

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

  .run-history-list > div {
    grid-template-columns: 12px minmax(0, 1fr);
    padding: 10px 0;
  }

  .run-history-list > div > span:not(.admin-status-dot),
  .run-history-list time {
    grid-column: 2;
  }

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

  .admin-toolbar form > input {
    grid-column: auto;
  }

  .toolbar-create {
    width: 100%;
  }

  .settings-actions,
  .form-actions {
    flex-direction: column-reverse;
  }

  .settings-actions > *,
  .form-actions > * {
    width: 100%;
  }
}
