:root {
  --orange: #ff7a2f;
  --yellow: #ffd166;
  --teal: #22b8a8;
  --blue: #2f8cff;
  --ink: #172033;
  --muted: #6b7280;
  --line: #e8edf3;
  --bg: #f7f9fb;
  --card: #ffffff;
  --danger: #e54b4b;
  --shadow: 0 10px 30px rgba(23, 32, 51, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.5;
}

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

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

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

.app-shell {
  max-width: 720px;
  margin: 0 auto;
  padding-bottom: 84px;
}

.page {
  padding: 16px;
}

.narrow {
  max-width: 620px;
  margin: 0 auto;
}

.hero {
  min-height: 420px;
  padding: 30px 22px;
  border-radius: 0 0 28px 28px;
  color: white;
  background:
    linear-gradient(135deg, rgba(255, 122, 47, 0.92), rgba(34, 184, 168, 0.86)),
    url("/images/covers/weekend.jpg") center/cover;
  box-shadow: var(--shadow);
}

.city-pill,
.eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 10px;
  border-radius: 999px;
  color: var(--teal);
  background: rgba(34, 184, 168, 0.12);
  font-size: 13px;
  font-weight: 700;
}

.hero .city-pill {
  color: white;
  background: rgba(255, 255, 255, 0.22);
}

.hero h1 {
  margin: 42px 0 10px;
  font-size: 44px;
  letter-spacing: 0;
}

.slogan {
  margin: 0;
  font-size: 22px;
  font-weight: 800;
}

.intro {
  max-width: 420px;
  margin: 16px 0 28px;
  font-size: 16px;
  color: rgba(255, 255, 255, 0.92);
}

.primary-btn,
.secondary-btn,
.small-btn,
.filter-bar button,
.actions button,
.inline-form button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 0;
  border-radius: 8px;
  padding: 0 18px;
  color: white;
  background: var(--orange);
  font-weight: 800;
  cursor: pointer;
}

.secondary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 8px;
  padding: 0 18px;
  color: white;
  background: rgba(255, 255, 255, 0.12);
  font-weight: 800;
}

.hero-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  max-width: 320px;
}

.small-btn {
  min-height: 36px;
  font-size: 14px;
  background: var(--teal);
}

.section {
  margin-top: 22px;
}

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

.section-head h2 {
  margin: 0;
  font-size: 20px;
}

.section-head a,
.section-head span {
  color: var(--muted);
  font-size: 14px;
}

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

.category-grid a {
  min-height: 50px;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card);
  font-weight: 800;
  box-shadow: 0 5px 16px rgba(23, 32, 51, 0.04);
}

.activity-list {
  display: grid;
  gap: 14px;
}

.activity-card,
.summary-card,
.form-card,
.admin-card,
.stat-card,
.detail-block,
.empty-state,
.payment-methods article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card);
  box-shadow: 0 8px 24px rgba(23, 32, 51, 0.05);
}

.activity-card {
  overflow: hidden;
}

.activity-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.card-content {
  padding: 13px;
}

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

.card-title-row h3 {
  margin: 0;
  font-size: 17px;
  line-height: 1.35;
}

.status {
  flex: 0 0 auto;
  padding: 4px 8px;
  border-radius: 999px;
  color: var(--orange);
  background: rgba(255, 122, 47, 0.12);
  font-size: 12px;
  font-weight: 800;
}

.status.warning {
  color: #b77900;
  background: rgba(255, 209, 102, 0.28);
}

.status.success {
  color: #0f8b75;
  background: rgba(34, 184, 168, 0.14);
}

.status.muted {
  color: var(--muted);
  background: #eef2f7;
}

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

.card-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
}

.card-bottom strong,
.amount {
  color: var(--orange);
  font-size: 20px;
}

.page-title {
  padding: 12px 0 16px;
}

.page-title h1 {
  margin: 10px 0 4px;
  font-size: 28px;
}

.page-title p {
  margin: 0;
  color: var(--muted);
}

.filter-bar {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 8px;
  margin-bottom: 14px;
}

.filter-bar select,
.filter-bar input,
.form-card input,
.form-card select,
.form-card textarea,
.login-card input,
.inline-form select {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--ink);
  background: white;
}

.detail-cover {
  width: calc(100% + 32px);
  max-width: none;
  margin: -16px -16px 0;
  aspect-ratio: 16 / 11;
  object-fit: cover;
}

.detail-hero {
  padding: 18px 0 8px;
}

.detail-hero h1 {
  margin: 12px 0 6px;
  font-size: 28px;
  line-height: 1.22;
}

.quick-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 14px;
}

.quick-facts div {
  padding: 12px;
  border-radius: 8px;
  background: white;
}

.quick-facts span,
.info-list dt {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.quick-facts strong,
.info-list dd {
  margin: 4px 0 0;
  font-size: 15px;
}

.detail-block {
  margin-top: 12px;
  padding: 16px;
}

.detail-block h2 {
  margin: 0 0 8px;
  font-size: 18px;
}

.detail-block p {
  margin: 7px 0;
  color: #394255;
}

.sticky-action {
  position: sticky;
  bottom: 72px;
  padding: 10px 0 0;
}

.sticky-action .primary-btn,
.form-card .primary-btn,
.summary-card .primary-btn {
  width: 100%;
}

.form-card,
.summary-card {
  padding: 16px;
}

.form-card {
  display: grid;
  gap: 13px;
}

.form-card label,
.login-card label {
  display: grid;
  gap: 7px;
  font-weight: 800;
}

.check-row {
  display: flex !important;
  grid-template-columns: none;
  align-items: center;
  gap: 10px !important;
  color: #394255;
  font-weight: 700 !important;
}

.check-row input {
  width: 18px;
  min-height: 18px;
}

.summary-card h2 {
  margin: 8px 0;
}

.summary-card p {
  color: var(--muted);
  margin: 0;
}

.order-id-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.copy-btn {
  flex: 0 0 auto;
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid #dbe3ed;
  border-radius: 999px;
  background: #f8fbff;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.info-list {
  display: grid;
  gap: 12px;
  margin: 14px 0;
}

.info-list div {
  display: grid;
  grid-template-columns: 86px 1fr;
  gap: 12px;
}

.payment-methods {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin: 14px 0;
}

.payment-methods article {
  padding: 14px;
}

.payment-methods h3 {
  margin: 0 0 10px;
}

.payment-methods pre {
  white-space: pre-wrap;
  margin: 0;
  color: #394255;
}

.payment-methods img {
  width: 170px;
  height: 170px;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.alert {
  margin-bottom: 12px;
  padding: 12px;
  border-radius: 8px;
  color: #9a3412;
  background: #fff3e8;
  font-weight: 700;
}

.empty-state {
  padding: 30px 18px;
  text-align: center;
}

.empty-state h1,
.empty-state h2 {
  margin: 0 0 8px;
}

.empty-state p {
  color: var(--muted);
}

.bottom-nav {
  position: fixed;
  left: 50%;
  bottom: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  width: min(720px, 100%);
  transform: translateX(-50%);
  padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
}

.bottom-nav a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border-radius: 8px;
  color: var(--muted);
  font-weight: 800;
}

.bottom-nav a.active {
  color: white;
  background: var(--teal);
}

.login-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 18px;
  background:
    linear-gradient(135deg, rgba(255, 209, 102, 0.35), rgba(34, 184, 168, 0.18)),
    var(--bg);
}

.login-card {
  width: min(420px, 100%);
  display: grid;
  gap: 14px;
  padding: 24px;
  border-radius: 8px;
  background: white;
  box-shadow: var(--shadow);
}

.login-card h1 {
  margin: 0;
}

.admin-shell {
  max-width: 1180px;
  margin: 0 auto;
  padding-bottom: 80px;
}

.admin-header {
  padding: 22px 16px 4px;
}

.admin-header h1 {
  margin: 8px 0 0;
}

.admin-main {
  padding: 16px;
}

.admin-nav {
  position: sticky;
  bottom: 0;
  z-index: 20;
  display: flex;
  gap: 8px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 10px;
  border-top: 1px solid var(--line);
  overflow-x: auto;
  background: white;
}

.admin-nav a {
  flex: 0 0 auto;
  padding: 10px 14px;
  border-radius: 8px;
  color: var(--muted);
  font-weight: 800;
}

.admin-nav a.active {
  color: white;
  background: var(--ink);
}

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

.stat-card {
  padding: 16px;
}

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

.stat-card strong {
  display: block;
  margin-top: 6px;
  font-size: 30px;
}

.table-wrap {
  overflow-x: auto;
}

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

th,
td {
  padding: 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  background: #fbfcfe;
}

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

.actions a,
.actions button,
.inline-form button {
  min-height: 32px;
  padding: 0 10px;
  border-radius: 8px;
  color: white;
  background: var(--teal);
  font-size: 13px;
  font-weight: 800;
}

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

.wide {
  max-width: 760px;
}

.admin-filter {
  grid-template-columns: minmax(160px, 1fr) minmax(140px, 180px) auto auto;
}

.inline-form {
  display: flex;
  gap: 8px;
  min-width: 220px;
}

@media (min-width: 720px) {
  .page {
    padding: 24px;
  }

  .hero {
    border-radius: 8px;
  }

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

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

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

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

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

@media (max-width: 430px) {
  .hero h1 {
    font-size: 38px;
  }

  .filter-bar,
  .admin-filter {
    grid-template-columns: 1fr;
  }

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