/* 求真少年研学平台 */
:root {
  --qz-primary: #047857;
  --qz-primary-dark: #065f46;
  --qz-blue: #0d4f8b;
  --qz-bg: #f0fdf9;
  --qz-surface: #fff;
  --qz-text: #1e293b;
  --qz-muted: #64748b;
  --qz-border: #d1fae5;
  --qz-radius: 12px;
  --qz-header: 64px;
}

.qz-body {
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--qz-bg);
  color: var(--qz-text);
  min-height: 100vh;
}

.qz-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--qz-header);
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid var(--qz-border);
  backdrop-filter: blur(10px);
}

.qz-header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.qz-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  color: var(--qz-primary-dark);
  text-decoration: none;
}

.qz-logo img {
  height: 36px;
  width: auto;
}

.qz-nav {
  display: flex;
  gap: 0.25rem;
  flex: 1;
  flex-wrap: wrap;
}

.qz-nav a {
  padding: 0.4rem 0.75rem;
  border-radius: 8px;
  color: var(--qz-muted);
  text-decoration: none;
  font-size: 0.9rem;
}

.qz-nav a:hover,
.qz-nav a.active {
  background: #ecfdf5;
  color: var(--qz-primary-dark);
}

.qz-header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: auto;
}

.qz-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.5rem 1rem 3rem;
}

.qz-footer {
  text-align: center;
  padding: 2rem 1rem;
  color: var(--qz-muted);
  font-size: 0.85rem;
  border-top: 1px solid var(--qz-border);
}

.qz-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.55rem 1.1rem;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  font-size: 0.9rem;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s;
}

.qz-btn:active {
  transform: scale(0.98);
}

.qz-btn-primary {
  background: linear-gradient(135deg, var(--qz-primary), var(--qz-blue));
  color: #fff;
}

.qz-btn-outline {
  background: #fff;
  border: 1px solid var(--qz-border);
  color: var(--qz-primary-dark);
}

.qz-btn-sm {
  padding: 0.35rem 0.75rem;
  font-size: 0.8rem;
}

.qz-btn-block {
  width: 100%;
}

.qz-hero {
  border-radius: var(--qz-radius);
  overflow: hidden;
  position: relative;
  min-height: 280px;
  margin-bottom: 1.5rem;
  background: var(--qz-blue);
}

.qz-hero-slide {
  display: none;
  padding: 2.5rem;
  color: #fff;
  min-height: 280px;
  background-size: cover;
  background-position: center;
}

.qz-hero-slide.active {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background-image: linear-gradient(transparent 20%, rgba(0, 0, 0, 0.65));
}

.qz-hero h1 {
  font-size: clamp(1.4rem, 4vw, 2rem);
  margin-bottom: 0.5rem;
}

.qz-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
}

.qz-card {
  background: var(--qz-surface);
  border-radius: var(--qz-radius);
  border: 1px solid var(--qz-border);
  overflow: hidden;
  transition: box-shadow 0.2s;
}

.qz-card:hover {
  box-shadow: 0 12px 32px rgba(4, 120, 87, 0.12);
}

.qz-card-img {
  height: 140px;
  object-fit: cover;
  width: 100%;
}

.qz-card-body {
  padding: 1rem;
}

.qz-card-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.qz-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0.5rem 0;
}

.qz-tag {
  font-size: 0.7rem;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  background: #ecfdf5;
  color: var(--qz-primary-dark);
}

.qz-price {
  color: #dc2626;
  font-weight: 700;
  font-size: 1.15rem;
}

.qz-price small {
  color: var(--qz-muted);
  font-weight: 400;
  text-decoration: line-through;
  font-size: 0.8rem;
  margin-left: 0.35rem;
}

.qz-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.qz-filters select,
.qz-filters input {
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--qz-border);
  border-radius: 8px;
  background: #fff;
}

.qz-panel {
  background: var(--qz-surface);
  border: 1px solid var(--qz-border);
  border-radius: var(--qz-radius);
  padding: 1.25rem;
  margin-bottom: 1rem;
}

.qz-panel h2 {
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.qz-form label {
  display: block;
  font-size: 0.85rem;
  color: var(--qz-muted);
  margin-bottom: 0.25rem;
}

.qz-form input,
.qz-form select,
.qz-form textarea {
  width: 100%;
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--qz-border);
  border-radius: 8px;
  margin-bottom: 0.85rem;
  font: inherit;
}

.qz-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.qz-status {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
}

.qz-status-pending_pay { background: #fef3c7; color: #92400e; }
.qz-status-paid { background: #dbeafe; color: #1e40af; }
.qz-status-in_trip { background: #e0e7ff; color: #3730a3; }
.qz-status-completed { background: #d1fae5; color: #065f46; }
.qz-status-cancelled { background: #f1f5f9; color: #64748b; }
.qz-status-refund_pending { background: #fee2e2; color: #991b1b; }
.qz-status-refunded { background: #f1f5f9; color: #475569; }

.qz-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.qz-table th,
.qz-table td {
  padding: 0.6rem 0.5rem;
  border-bottom: 1px solid var(--qz-border);
  text-align: left;
}

.qz-empty {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--qz-muted);
}

.qz-detail-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 1.5rem;
}

.qz-stars {
  color: #f59e0b;
  letter-spacing: 2px;
}

.qz-toast {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  background: #1e293b;
  color: #fff;
  padding: 0.65rem 1.25rem;
  border-radius: 8px;
  z-index: 200;
  animation: qz-fade 0.25s;
}

@keyframes qz-fade {
  from { opacity: 0; transform: translateX(-50%) translateY(8px); }
}

/* Admin */
.qz-admin .qz-header {
  background: #1e293b;
  border-color: #334155;
}

.qz-admin .qz-logo,
.qz-admin .qz-nav a {
  color: #e2e8f0;
}

.qz-admin .qz-nav a:hover,
.qz-admin .qz-nav a.active {
  background: #334155;
  color: #fff;
}

#qz-admin-app {
  padding: 1.25rem 1.5rem 2rem;
  min-height: 400px;
}

.qz-home-ops-intro {
  color: var(--qz-muted);
  margin-bottom: 1rem;
}

.qz-home-ops-stats {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 0.65rem;
  margin-bottom: 1rem;
}

.qz-home-ops-actions .qz-home-ops-btnrow {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.qz-home-ops-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 1rem 0 0.75rem;
}

.qz-home-tab {
  padding: 0.45rem 0.85rem;
  border: 1px solid var(--qz-border);
  border-radius: 999px;
  background: #fff;
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--qz-muted);
}

.qz-home-tab.active {
  background: var(--qz-primary);
  border-color: var(--qz-primary);
  color: #fff;
}

.qz-home-tab-panel {
  display: none;
}

.qz-home-tab-panel.active {
  display: block;
}

.qz-home-preview {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
  margin-top: 0.75rem;
}

.qz-home-preview section {
  padding: 0.75rem;
  background: #f8fafc;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
}

.qz-home-preview h4 {
  margin: 0 0 0.5rem;
  font-size: 0.92rem;
}

.qz-home-preview ul {
  margin: 0;
  padding-left: 1.1rem;
  font-size: 0.85rem;
  color: var(--qz-muted);
}

.qz-admin-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 1rem;
  max-width: 1400px;
  margin: 0 auto;
  padding: 1rem;
}

.qz-sidebar {
  background: #fff;
  border-radius: var(--qz-radius);
  border: 1px solid var(--qz-border);
  padding: 0.75rem;
  height: fit-content;
  position: sticky;
  top: calc(var(--qz-header) + 1rem);
}

.qz-sidebar a {
  display: block;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  color: var(--qz-muted);
  text-decoration: none;
  font-size: 0.9rem;
}

.qz-sidebar a.active {
  background: #ecfdf5;
  color: var(--qz-primary-dark);
  font-weight: 600;
}

.qz-stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.qz-stat {
  background: #fff;
  border: 1px solid var(--qz-border);
  border-radius: var(--qz-radius);
  padding: 1rem;
}

.qz-stat strong {
  display: block;
  font-size: 1.4rem;
  color: var(--qz-primary-dark);
}

.qz-mall-cats {
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
}

.qz-mall-cat {
  padding: 1.25rem 0.75rem !important;
}

.qz-pay-box {
  max-width: 420px;
  margin: 0 auto;
  text-align: center;
}

.qz-pay-qr {
  width: 260px;
  height: 260px;
  margin: 1rem auto;
  display: block;
  border-radius: 12px;
  border: 1px solid var(--qz-border);
}

.qz-pay-hint {
  font-size: 0.85rem;
  color: var(--qz-muted);
  margin: 0.75rem 0;
}

.qz-pay-channel {
  padding: 0.85rem;
}

.qz-spec-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.qz-spec-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.75rem;
  border: 1px solid var(--qz-border);
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.85rem;
}

.qz-spec-pill input {
  margin-right: 0.35rem;
}

.qz-spec-pill:has(input:checked) {
  border-color: var(--qz-primary);
  background: #ecfdf5;
}

.qz-seckill-card .qz-seckill-stock {
  color: #dc2626;
  font-size: 0.85rem;
}

.qz-cart-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  margin-left: 4px;
  border-radius: 999px;
  background: #dc2626;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
}

.qz-itinerary {
  list-style: none;
  margin: 0;
  padding: 0;
  border-left: 3px solid var(--qz-primary);
}

.qz-itinerary li {
  position: relative;
  padding: 0.65rem 0 0.65rem 1rem;
  border-bottom: 1px dashed var(--qz-border);
}

.qz-itinerary li:last-child {
  border-bottom: none;
}

.qz-itinerary li::before {
  content: "";
  position: absolute;
  left: -7px;
  top: 1rem;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--qz-primary);
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px var(--qz-primary);
}

.qz-itinerary li strong {
  display: block;
  font-size: 0.92rem;
  margin-bottom: 0.2rem;
}

.qz-itinerary li span {
  display: block;
  font-size: 0.88rem;
  color: var(--qz-muted);
  line-height: 1.5;
}

.qz-home-section {
  margin: 1.5rem 0;
}

.qz-section-title {
  margin: 0 0 0.75rem;
  font-size: 1.25rem;
}

.qz-section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.qz-section-head .qz-section-title {
  margin-bottom: 0;
}

.qz-push-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.75rem;
}

.qz-push-card {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  border: 1px solid var(--qz-border);
  background: linear-gradient(135deg, #ecfdf5 0%, #f0f9ff 100%);
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.2s, transform 0.2s;
}

.qz-push-card:hover {
  box-shadow: 0 6px 20px rgba(4, 120, 87, 0.12);
  transform: translateY(-2px);
}

.qz-push-badge {
  display: inline-block;
  align-self: flex-start;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  background: var(--qz-primary);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
}

.qz-push-desc {
  font-size: 0.85rem;
  color: var(--qz-muted);
  line-height: 1.45;
}

.qz-badge-featured {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  background: #f59e0b;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
}

.qz-card {
  position: relative;
}

.qz-community-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 0.75rem;
}

.qz-community-card {
  display: block;
  padding: 1rem;
  border-radius: 12px;
  border: 1px solid var(--qz-border);
  background: #fff;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.2s;
}

.qz-community-card:hover {
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.08);
}

.qz-community-stars {
  color: #f59e0b;
  font-size: 0.9rem;
  letter-spacing: 1px;
  margin-bottom: 0.35rem;
}

.qz-community-text {
  margin: 0 0 0.65rem;
  font-size: 0.9rem;
  line-height: 1.55;
  color: #334155;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.qz-community-meta {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  font-size: 0.8rem;
}

.qz-community-meta strong {
  color: var(--qz-primary);
}

.qz-community-meta span {
  color: var(--qz-muted);
}

.qz-notice-bar {
  margin-top: 1rem;
}

@media (max-width: 768px) {
  .qz-detail-layout,
  .qz-admin-layout,
  .qz-form-row {
    grid-template-columns: 1fr;
  }
  .qz-nav {
    display: none;
  }
  .qz-push-list,
  .qz-community-grid {
    grid-template-columns: 1fr;
  }
}
