/* 物星科云活动报名系统 - 首页样式 */
:root {
  --home-red: #e64340;
  --home-red-dark: #c62828;
  --home-cyan: #2bb8c8;
  --home-cyan-dark: #1fa0ae;
  --home-ink: #1a1f28;
  --home-muted: #7a8290;
  --home-line: #e8ebf0;
  --home-bg: #f3f5f8;
  --home-footer: #2c3140;
  --home-title: #1a1f28;
  --home-shadow: 0 8px 28px rgba(26, 31, 40, .08);
  --home-display: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }

body.home-body {
  margin: 0;
  background:
    radial-gradient(1200px 480px at 12% -10%, rgba(230, 67, 64, .06), transparent 55%),
    radial-gradient(900px 420px at 90% 8%, rgba(43, 184, 200, .07), transparent 50%),
    #fff;
  color: var(--home-ink);
  font-family: var(--home-display);
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; vertical-align: middle; }

.home-wrap { min-height: 100vh; display: flex; flex-direction: column; }
.home-main { flex: 1; }

.home-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

/* ========== Header ========== */
.home-header-wrap {
  position: sticky;
  top: 0;
  z-index: 100;
}
.home-topbar {
  background: #1a2332;
  color: rgba(255, 255, 255, .72);
  font-size: 12px;
  line-height: 1.2;
}
.home-topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 36px;
  padding-top: 6px;
  padding-bottom: 6px;
}
.home-topbar__contact {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 14px;
  min-width: 0;
}
.home-topbar__label { color: rgba(255, 255, 255, .55); }
.home-topbar__phone {
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .02em;
  text-decoration: none;
}
.home-topbar__phone:hover { color: #fff; opacity: .9; }
.home-topbar__mail {
  color: rgba(255, 255, 255, .65);
  text-decoration: none;
  word-break: break-all;
}
.home-topbar__mail:hover { color: #fff; }
.home-topbar__links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 4px 16px;
}
.home-topbar__links a {
  color: rgba(255, 255, 255, .78);
  text-decoration: none;
  white-space: nowrap;
}
.home-topbar__links a:hover { color: #fff; }

.home-header {
  background: #fff;
  border-bottom: 1px solid #f0f0f0;
}

.home-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 16px;
}

.home-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  font-size: 18px;
  font-weight: 700;
  color: var(--home-ink);
}

.home-logo img {
  height: 40px;
  width: auto;
}

.home-logo__icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--home-red), #ff7a45 55%, var(--home-cyan));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 20px;
  flex-shrink: 0;
}

.home-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.home-nav a {
  display: block;
  padding: 8px 20px;
  border-radius: 4px;
  font-size: 15px;
  color: #333;
  transition: .2s;
}

.home-nav a:hover { color: var(--home-red); }
.home-nav a.is-active {
  background: var(--home-red);
  color: #fff;
}
.home-nav a.is-active:hover { color: #fff; }

.home-nav__drop {
  position: relative;
}
.home-nav__parent {
  display: inline-flex !important;
  align-items: center;
  gap: 4px;
}
.home-nav__parent i {
  font-size: 11px;
  opacity: .7;
  transition: transform .15s;
}
.home-nav__drop.is-open .home-nav__parent i,
.home-nav__drop:hover .home-nav__parent i {
  transform: rotate(180deg);
}
.home-nav__menu {
  display: none;
  position: absolute;
  left: 0;
  top: 100%;
  min-width: 168px;
  padding: 14px 8px 8px;
  margin: 0;
  background: #fff;
  border: 1px solid #eceff3;
  border-radius: 10px;
  box-shadow: 0 12px 28px rgba(15, 30, 50, .12);
  z-index: 40;
}
/* 桌面悬停展开；移动端靠 .is-open；离开后自动隐藏 */
.home-nav__drop:hover .home-nav__menu,
.home-nav__drop.is-open .home-nav__menu {
  display: block;
}
@media (min-width: 769px) {
  .home-nav__drop.is-open:not(:hover) .home-nav__menu {
    display: none;
  }
}
.home-nav__menu a {
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 14px;
  white-space: nowrap;
}
.home-nav__menu a.is-active {
  background: #fff5f5;
  color: var(--home-red);
}
.home-nav__empty {
  display: block;
  padding: 8px 12px;
  font-size: 13px;
  color: #999;
}

.home-header__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.home-user {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #555;
  font-size: 14px;
  flex-shrink: 0;
  white-space: nowrap;
}
.home-user:hover { color: var(--home-red); }
.home-user i { font-size: 22px; color: #999; }

.home-toggler {
  display: none;
  border: 1px solid #ddd;
  background: #fff;
  width: 40px;
  height: 40px;
  border-radius: 6px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* ========== Hero ========== */
.home-hero {
  position: relative;
  background: #0f1c24;
  min-height: min(78vh, 640px);
  overflow: hidden;
}

.home-hero .carousel,
.home-hero .carousel-inner,
.home-hero .carousel-item {
  height: min(78vh, 640px);
}

.home-hero .carousel-item img,
.home-hero__slide {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-hero__slide {
  background-size: cover;
  background-position: center;
  transform: scale(1.04);
  animation: homeKenBurns 18s ease-in-out infinite alternate;
}

@keyframes homeKenBurns {
  from { transform: scale(1.04) translate3d(0, 0, 0); }
  to { transform: scale(1.1) translate3d(-1.5%, -1%, 0); }
}

.home-hero__veil {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(105deg, rgba(8, 14, 22, .82) 0%, rgba(8, 14, 22, .5) 38%, rgba(8, 14, 22, .18) 72%, transparent 100%),
    linear-gradient(to top, rgba(8, 14, 22, .5) 0%, transparent 48%);
}

.home-hero__copy {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  top: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 1200px;
  pointer-events: none;
  padding-bottom: 48px;
}

.home-hero__copy > * { pointer-events: auto; max-width: 560px; }

.home-hero__brand {
  margin: 0 0 12px;
  font-size: clamp(28px, 4.2vw, 44px);
  font-weight: 900;
  letter-spacing: .02em;
  color: #fff;
  line-height: 1.15;
  text-shadow: 0 8px 28px rgba(0,0,0,.35);
}

.home-hero__title {
  margin: 0 0 14px;
  font-size: clamp(18px, 2.4vw, 26px);
  font-weight: 600;
  color: rgba(255,255,255,.92);
  line-height: 1.35;
}

.home-hero__desc {
  margin: 0 0 28px;
  font-size: 15px;
  line-height: 1.75;
  color: rgba(255,255,255,.72);
}

.home-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.home-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 128px;
  height: 46px;
  padding: 0 22px;
  border-radius: 4px;
  font-size: 15px;
  font-weight: 600;
  transition: transform .2s, background .2s, color .2s, border-color .2s;
}
.home-btn--primary {
  background: var(--home-red);
  color: #fff;
}
.home-btn--primary:hover {
  background: var(--home-red-dark);
  color: #fff;
  transform: translateY(-1px);
}
.home-btn--ghost {
  border: 1px solid rgba(255,255,255,.45);
  color: #fff;
  background: rgba(255,255,255,.08);
  backdrop-filter: blur(4px);
}
.home-btn--ghost:hover {
  border-color: #fff;
  background: rgba(255,255,255,.16);
  color: #fff;
}

.home-hero .carousel-control-prev,
.home-hero .carousel-control-next {
  width: 56px;
  z-index: 4;
  opacity: .75;
}

.home-hero .carousel-control-prev-icon,
.home-hero .carousel-control-next-icon {
  width: 2.2rem;
  height: 2.2rem;
  background-color: rgba(0,0,0,.28);
  border-radius: 50%;
  background-size: 50% 50%;
}

/* hero entrance (CSS only, always visible) */
.home-hero-anim {
  animation: homeHeroIn .7s ease both;
}
.home-hero-anim--d1 { animation-delay: .12s; }
.home-hero-anim--d2 { animation-delay: .22s; }
.home-hero-anim--d3 { animation-delay: .32s; }
@keyframes homeHeroIn {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}

/* reveal motion (below fold) */
.home-reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .55s ease, transform .55s ease;
}
.home-reveal.is-in {
  opacity: 1;
  transform: none;
}

/* ========== Section common ========== */
.home-section {
  padding: 56px 0 24px;
}

.home-section--soft {
  background:
    linear-gradient(180deg, #f7f9fb 0%, #eef2f6 100%);
  padding: 56px 0;
}

.home-section--gray {
  background: var(--home-bg);
  padding: 48px 0;
}

.home-section--links { padding: 8px 0 40px; }

.home-sec-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
}

.home-sec-title {
  margin: 0;
  font-size: 26px;
  font-weight: 800;
  color: var(--home-title);
  letter-spacing: .01em;
}

.home-sec-sub {
  margin: 6px 0 0;
  font-size: 13px;
  color: var(--home-muted);
}

.home-more {
  color: var(--home-muted);
  font-size: 13px;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.home-more:hover { color: var(--home-red); }

.home-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 48px 16px;
  color: var(--home-muted);
}
.home-empty i {
  font-size: 2.4rem;
  display: block;
  margin-bottom: 12px;
  color: #c5cad3;
}
.home-empty p { margin: 0; }

/* ========== Event cards：一行三个，每分类最多 6 个 ========== */
.home-events {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.event-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--home-line);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(26, 31, 40, .04);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
  min-height: 0;
}
.event-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--home-shadow);
  border-color: #dde3ea;
}

.event-card__cover {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  min-height: 0;
  background: #e8e8e8;
  overflow: hidden;
}

.event-card__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .45s ease;
}
.event-card:hover .event-card__cover img { transform: scale(1.06); }

.event-card__cover-ph {
  width: 100%;
  height: 100%;
  min-height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #2a3a4a, var(--home-cyan));
  color: #fff;
  font-size: 28px;
}

.event-card__body {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-width: 0;
  flex: 1;
}

.event-card__title {
  margin: 0 0 10px;
  font-size: 16px;
  font-weight: 700;
  color: var(--home-ink);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.event-card__meta {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 12px;
  color: var(--home-muted);
  line-height: 1.75;
}
.event-card__meta li {
  display: flex;
  align-items: flex-start;
  gap: 6px;
}
.event-card__meta i {
  margin-top: 2px;
  color: var(--home-cyan);
  flex-shrink: 0;
}

.event-card__foot {
  margin-top: auto;
  display: flex;
  justify-content: flex-end;
  padding-top: 6px;
}

.event-status {
  position: absolute;
  left: 10px;
  top: 10px;
  z-index: 1;
  display: inline-block;
  min-width: 64px;
  text-align: center;
  padding: 4px 10px;
  border-radius: 3px;
  font-size: 11px;
  font-weight: 600;
  color: #fff;
  background: var(--home-cyan);
  box-shadow: 0 4px 12px rgba(0,0,0,.18);
}
.event-status--ended { background: #9aa3af; }
.event-status--full { background: #e89a1c; }
.event-status--closed { background: #8b939e; }

/* ========== News + Pictures ========== */
.home-dual {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.home-panel {
  background: #fff;
  border: 1px solid rgba(0,0,0,.04);
  border-radius: 12px;
  padding: 22px 22px 10px;
  box-shadow: 0 4px 20px rgba(26, 31, 40, .04);
}

.media-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.media-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid #f0f2f5;
}
.media-item:last-child { border-bottom: 0; }

.media-item__thumb {
  width: 72px;
  height: 54px;
  flex-shrink: 0;
  border-radius: 6px;
  overflow: hidden;
  background: #eaeaea;
}
.media-item__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.media-item__thumb-ph {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #3d5a73, var(--home-cyan));
  color: #fff;
  font-size: 18px;
}

.media-item__date {
  width: 48px;
  flex-shrink: 0;
  text-align: center;
  line-height: 1.15;
}
.media-item__day {
  display: block;
  font-size: 22px;
  font-weight: 800;
  color: var(--home-ink);
}
.media-item__ym {
  display: block;
  font-size: 11px;
  color: #aaa;
}

.media-item__title {
  flex: 1;
  min-width: 0;
  font-size: 14px;
  color: #333;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.media-item__title:hover { color: var(--home-red); }

.media-item__sub {
  font-size: 12px;
  color: #aaa;
  margin-top: 4px;
}

.pic-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  padding-bottom: 12px;
}

.pic-tile {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  border-radius: 8px;
  overflow: hidden;
  background: #e8edf2;
}
.pic-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.pic-tile:hover img { transform: scale(1.05); }
.pic-tile__ph {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 22px;
  background: linear-gradient(135deg, #445566, var(--home-cyan));
}
.pic-tile__cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 18px 10px 8px;
  font-size: 12px;
  color: #fff;
  background: linear-gradient(transparent, rgba(0,0,0,.65));
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ========== Sponsors ========== */
.sponsors-box {
  background:
    linear-gradient(180deg, #fff 0%, #fafbfc 100%);
  border: 1px solid var(--home-line);
  border-radius: 12px;
  box-shadow: var(--home-shadow);
  padding: 40px 40px 32px;
}

.sponsors-box__title {
  text-align: center;
  margin: 0;
  font-size: 24px;
  font-weight: 800;
  color: var(--home-ink);
}
.sponsors-box__desc {
  text-align: center;
  margin: 8px 0 28px;
  font-size: 13px;
  color: var(--home-muted);
}

.sponsors-group {
  margin-bottom: 24px;
}
.sponsors-group:last-child { margin-bottom: 0; }

.sponsors-group__label {
  text-align: center;
  font-size: 13px;
  color: #666;
  margin-bottom: 16px;
}

.sponsors-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  width: 100%;
}

.sponsor-logo {
  width: 100%;
  min-height: 96px;
  height: auto;
  padding: 16px 12px;
  border: 1px solid #eee;
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #555;
  font-size: 14px;
  line-height: 1.4;
  text-align: center;
  background: #fafafa;
  box-sizing: border-box;
}
.sponsor-logo i { font-size: 24px; color: #c5cad3; }
.sponsor-logo img {
  max-width: 80%;
  max-height: 40px;
  object-fit: contain;
}
.sponsor-logo span {
  display: block;
  width: 100%;
  white-space: nowrap;
  overflow: visible;
  text-overflow: clip;
  color: #444;
  font-weight: 600;
}

/* ========== Friend links ========== */
.home-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px 20px;
  padding: 18px 20px;
  font-size: 13px;
  color: #666;
  background: #f7f9fb;
  border-radius: 10px;
  border: 1px solid var(--home-line);
}

.home-links__label {
  flex-shrink: 0;
  color: var(--home-ink);
  font-weight: 700;
  padding-right: 8px;
  border-right: 1px solid #dde3ea;
}

.home-links__logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
}

.friend-logo {
  height: 34px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #5a6472;
  font-size: 13px;
  padding: 0 10px;
  border-radius: 4px;
  transition: color .2s, background .2s;
}
.friend-logo:hover { color: var(--home-red); background: #fff; }
.friend-logo img {
  height: 28px;
  width: auto;
}
.friend-logo i { font-size: 18px; }

/* ========== 大气主题 premium ========== */
.home-theme-premium .home-container {
  max-width: 1240px;
}

.home-theme-premium .home-topbar {
  background: linear-gradient(90deg, #121820 0%, #1a2636 48%, #141c28 100%);
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}

.home-theme-premium .home-header {
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 24px rgba(26, 31, 40, .07);
  border-bottom: 1px solid rgba(232, 235, 240, .85);
}

.home-theme-premium .home-logo {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: .02em;
}

.home-theme-premium .home-logo__icon {
  border-radius: 11px;
  box-shadow: 0 6px 18px rgba(230, 67, 64, .28);
}

.home-theme-premium .home-nav a {
  border-radius: 8px;
  font-weight: 500;
}

.home-theme-premium .home-nav a.is-active {
  background: linear-gradient(135deg, #ea524f 0%, var(--home-red) 55%, var(--home-red-dark) 100%);
  box-shadow: 0 4px 16px rgba(230, 67, 64, .32);
}

.home-theme-premium .home-hero__brand {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 900;
  letter-spacing: .04em;
  text-shadow: 0 4px 32px rgba(0, 0, 0, .45);
}

.home-theme-premium .home-hero__title {
  font-size: clamp(18px, 2.5vw, 24px);
  font-weight: 700;
}

.home-theme-premium .home-btn {
  border-radius: 8px;
  min-height: 48px;
}

.home-theme-premium .home-btn--primary {
  box-shadow: 0 8px 24px rgba(230, 67, 64, .35);
}

.home-theme-premium .home-btn--primary:hover {
  box-shadow: 0 10px 28px rgba(230, 67, 64, .42);
}

.home-theme-premium .home-sec-title {
  position: relative;
  padding-bottom: 14px;
  font-size: 28px;
  letter-spacing: .03em;
}

.home-theme-premium .home-sec-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 52px;
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--home-red), var(--home-cyan));
  box-shadow: 0 0 12px rgba(230, 67, 64, .35);
}

.home-theme-premium .home-section--soft {
  background:
    linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
}

.home-theme-premium .event-card {
  border-radius: 14px;
  border: 1px solid rgba(232, 235, 240, .95);
  box-shadow: 0 4px 20px rgba(26, 31, 40, .05);
  transition: transform .28s ease, box-shadow .28s ease;
}

.home-theme-premium .event-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 48px rgba(26, 31, 40, .12);
}

.home-theme-premium .sponsors-box {
  border-radius: 16px;
  box-shadow: 0 12px 40px rgba(26, 31, 40, .08);
}

.home-theme-premium .home-footer--premium {
  margin-top: 0;
}

/* ========== Footer（大气版） ========== */
.home-footer {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(43, 184, 200, .12), transparent 55%),
    linear-gradient(168deg, #141824 0%, #1c2230 38%, #232a3a 62%, #181d28 100%);
  color: rgba(255, 255, 255, .72);
  padding: 64px 0 0;
  margin-top: 8px;
}
.home-footer::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 3px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    var(--home-red) 18%,
    var(--home-cyan) 50%,
    #f0a060 82%,
    transparent 100%
  );
  z-index: 2;
}

.home-footer__ambient {
  pointer-events: none;
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.home-footer__mesh {
  position: absolute;
  inset: 0;
  opacity: .35;
  background-image:
    linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, #000 0%, transparent 85%);
}
.home-footer__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
}
.home-footer__glow--warm {
  width: 520px;
  height: 520px;
  right: -8%;
  bottom: -35%;
  background: radial-gradient(circle, rgba(230, 67, 64, .22) 0%, transparent 70%);
}
.home-footer__glow--cool {
  width: 420px;
  height: 420px;
  left: -5%;
  top: 10%;
  background: radial-gradient(circle, rgba(43, 184, 200, .14) 0%, transparent 68%);
}
.home-footer__shine {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(720px, 90%);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .25), transparent);
}

.home-footer__main {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(260px, 1.35fr) minmax(300px, 1.15fr) minmax(120px, 0.65fr) minmax(200px, 1fr);
  gap: 40px 36px;
  padding-bottom: 44px;
}

.home-footer__brand {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
  padding-right: 16px;
}
.home-footer__logo {
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  gap: 12px;
}
.home-footer__site-name {
  letter-spacing: .02em;
  text-shadow: 0 2px 24px rgba(0, 0, 0, .35);
}
.home-footer__logo-icon,
.home-footer__logo .home-logo__icon {
  width: 44px;
  height: 44px;
  font-size: 20px;
  border-radius: 12px;
  background: linear-gradient(145deg, #ff7a72 0%, #e64340 48%, #c62828 100%);
  box-shadow:
    0 8px 24px rgba(230, 67, 64, .35),
    inset 0 1px 0 rgba(255, 255, 255, .25);
}
.home-footer__slogan {
  margin: 0;
  font-size: 14px;
  line-height: 1.75;
  color: rgba(255, 255, 255, .52);
  max-width: 360px;
  letter-spacing: .04em;
}

.home-footer__hotline-card {
  margin-top: 4px;
  padding: 20px 22px;
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(255, 255, 255, .07) 0%, rgba(255, 255, 255, .02) 100%);
  border: 1px solid rgba(255, 255, 255, .1);
  box-shadow:
    0 16px 48px rgba(0, 0, 0, .22),
    inset 0 1px 0 rgba(255, 255, 255, .06);
  backdrop-filter: blur(8px);
}
.home-footer__hotline-label {
  display: block;
  font-size: 12px;
  letter-spacing: .12em;
  color: rgba(255, 255, 255, .45);
  margin-bottom: 8px;
}
.home-footer__phone {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  margin-bottom: 10px;
}
.home-footer__phone-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(230, 67, 64, .18);
  border: 1px solid rgba(230, 67, 64, .35);
  color: #ff8a85;
  font-size: 16px;
  flex-shrink: 0;
}
.home-footer__phone-num {
  font-size: 28px;
  font-weight: 800;
  color: #fff;
  letter-spacing: .06em;
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
  transition: color .2s;
}
.home-footer__phone:hover .home-footer__phone-num {
  color: #ffd4d2;
}
.home-footer__contact-row {
  padding-top: 4px;
}
.home-footer__email {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: rgba(255, 255, 255, .58);
  text-decoration: none;
  transition: color .15s;
}
.home-footer__email:hover { color: #fff; }
.home-footer__email i { font-size: 14px; opacity: .75; }
.home-footer__addr {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed rgba(255, 255, 255, .1);
  font-size: 13px;
  color: rgba(255, 255, 255, .48);
  line-height: 1.55;
  max-width: 340px;
}
.home-footer__addr i {
  font-size: 14px;
  opacity: .7;
  margin-top: 3px;
  flex-shrink: 0;
  color: var(--home-cyan);
}

.home-footer__heading {
  position: relative;
  margin: 0 0 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.home-footer__heading span {
  display: inline-block;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  letter-spacing: .1em;
}
.home-footer__heading::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 40px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--home-red), var(--home-cyan));
  box-shadow: 0 0 12px rgba(230, 67, 64, .45);
}

.home-footer__links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.home-footer__links--dense {
  display: block;
}
.home-footer__links--dense li {
  break-inside: avoid;
  margin-bottom: 11px;
}
.home-footer__links--dense li:last-child {
  margin-bottom: 0;
}

/* PC：平台导航双列（自上而下先左后右） */
@media (min-width: 993px) {
  .home-footer__col--nav {
    min-width: 300px;
  }
  .home-footer__links--dense {
    columns: 2;
    column-gap: 40px;
  }
  .home-footer__links--dense li {
    margin-bottom: 10px;
  }
  .home-theme-premium .home-footer__main {
    gap: 44px 40px;
    padding-bottom: 48px;
  }
}
.home-footer__links a {
  position: relative;
  display: inline-block;
  font-size: 13px;
  color: rgba(255, 255, 255, .52);
  text-decoration: none;
  transition: color .18s, transform .18s;
}
.home-footer__links a::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--home-cyan), transparent);
  transition: width .2s;
}
.home-footer__links a:hover {
  color: #fff;
  transform: translateX(3px);
}
.home-footer__links a:hover::before {
  width: 100%;
}

.home-footer__qr {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}
.home-footer__qr-item {
  text-align: center;
}
.home-footer__qr-frame {
  padding: 6px;
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(255, 255, 255, .14), rgba(255, 255, 255, .04));
  border: 1px solid rgba(255, 255, 255, .12);
  margin-bottom: 10px;
  transition: transform .25s, box-shadow .25s;
}
.home-footer__qr-item:hover .home-footer__qr-frame {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, .35);
}
.home-footer__qr-box {
  width: 96px;
  height: 96px;
  background: #fff;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #b0b5bf;
  font-size: 36px;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .04);
}
.home-footer__qr-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
}
.home-footer__qr-label {
  display: block;
  font-size: 12px;
  color: rgba(255, 255, 255, .48);
  letter-spacing: .06em;
}

.home-footer__bar {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding: 18px 0 24px;
  border-top: 1px solid rgba(255, 255, 255, .09);
  background: linear-gradient(180deg, rgba(0, 0, 0, .12) 0%, transparent 100%);
}
.home-footer__copy {
  font-size: 12px;
  color: rgba(255, 255, 255, .36);
  line-height: 1.65;
}
.home-footer__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  font-size: 12px;
  color: rgba(255, 255, 255, .34);
}
.home-footer__meta-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .25);
}
.home-footer__meta a {
  color: rgba(255, 255, 255, .46);
  text-decoration: none;
  transition: color .15s;
}
.home-footer__meta a:hover { color: #fff; }
.home-footer__tagline {
  letter-spacing: .04em;
}
.home-footer__vendor a {
  color: rgba(255, 255, 255, .5);
  text-decoration: none;
}
.home-footer__vendor a:hover { color: #fff; }

.home-empty {
  text-align: center;
  color: #aaa;
  padding: 48px 16px;
  grid-column: 1 / -1;
}

/* ========== Responsive ========== */
@media (max-width: 992px) {
  .home-events { grid-template-columns: repeat(2, 1fr); }
  .home-dual { grid-template-columns: 1fr; gap: 20px; }
  .home-hero,
  .home-hero .carousel,
  .home-hero .carousel-inner,
  .home-hero .carousel-item { min-height: 420px; height: 420px; }
  .pic-grid { grid-template-columns: repeat(2, 1fr); }

  .home-footer__main {
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 32px 24px;
  }
  .home-footer__col--qr { grid-column: 1 / -1; }
  .home-footer__links--dense {
    columns: 1;
  }
}

@media (max-width: 768px) {
  .home-toggler { display: flex; }

  .home-nav-wrap {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: #fff;
    border-bottom: 1px solid #eee;
    padding: 12px 16px 16px;
    box-shadow: 0 8px 16px rgba(0,0,0,.06);
  }
  .home-nav-wrap.is-open { display: block; }
  .home-nav {
    flex-direction: column;
    align-items: stretch;
  }
  .home-nav a { padding: 10px 14px; }
  .home-nav__drop { width: 100%; }
  .home-nav__menu {
    position: static;
    display: none;
    min-width: 0;
    margin: 0 0 4px;
    padding: 4px 0 4px 12px;
    border: 0;
    box-shadow: none;
    background: transparent;
  }
  .home-nav__drop.is-open .home-nav__menu { display: block; }
  .home-nav__drop:hover .home-nav__menu { display: none; }
  .home-nav__drop.is-open:hover .home-nav__menu { display: block; }
  .home-nav__menu a {
    padding: 8px 12px;
    color: #666;
  }

  .home-topbar__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    padding-top: 8px;
    padding-bottom: 8px;
  }
  .home-topbar__links {
    justify-content: flex-start;
    gap: 4px 12px;
  }
  .home-header__inner { position: relative; height: 64px; }
  .home-header__actions { gap: 6px; }
  .home-logo { font-size: 15px; }
  .home-logo span { max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

  .home-hero,
  .home-hero .carousel,
  .home-hero .carousel-inner,
  .home-hero .carousel-item { min-height: 360px; height: 360px; }
  .home-hero__copy { justify-content: flex-end; padding-bottom: 36px; }
  .home-hero__brand { font-size: 26px; }
  .home-hero__title { font-size: 16px; }
  .home-hero__desc { font-size: 13px; margin-bottom: 18px; }
  .home-events { grid-template-columns: 1fr; }
  .event-card__cover,
  .event-card__cover-ph { min-height: 160px; }
  .home-sec-head { flex-direction: column; align-items: flex-start; }
  .sponsors-box { padding: 28px 16px; }
  .pic-grid { grid-template-columns: 1fr 1fr; gap: 8px; }

  .home-footer {
    padding-top: 40px;
  }
  .home-footer__main {
    grid-template-columns: 1fr;
    gap: 28px;
    text-align: center;
  }
  .home-footer__brand {
    grid-column: auto;
    align-items: center;
    padding-right: 0;
  }
  .home-footer__slogan { max-width: none; }
  .home-footer__hotline-card { text-align: left; width: 100%; max-width: 360px; }
  .home-footer__brand { align-items: center; }
  .home-footer__heading { text-align: center; }
  .home-footer__heading::after { left: 50%; transform: translateX(-50%); }
  .home-footer__links { align-items: center; }
  .home-footer__links--dense { columns: 1; }
  .home-footer__links a:hover { transform: none; }
  .home-footer__qr { justify-content: center; }
  .home-footer__bar {
    flex-direction: column;
    text-align: center;
  }
  .home-footer__meta { justify-content: center; }
  .sponsors-box { padding: 28px 16px; }
  .sponsors-row { grid-template-columns: repeat(2, 1fr); }
  .sponsor-logo { width: 100%; min-height: 88px; height: auto; }
  .sponsor-logo span { white-space: nowrap; font-size: 13px; }

  .detail-layout { grid-template-columns: 1fr; }
  .detail-aside { position: static; }
  .detail-hero { height: 220px; }
  .detail-hero__title { font-size: 22px; }
  .detail-meta { grid-template-columns: 1fr; }
}

/* ========== Activity Detail ========== */
.detail-page {
  background: var(--home-bg);
  padding: 24px 0 48px;
}

.detail-crumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 13px;
  color: #999;
  margin-bottom: 16px;
}
.detail-crumb a:hover { color: var(--home-red); }
.detail-crumb i { font-size: 11px; opacity: .6; }

.detail-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 24px;
  align-items: start;
}

.detail-main,
.detail-aside-card {
  background: #fff;
  border-radius: 6px;
  box-shadow: var(--home-shadow);
  overflow: hidden;
}

.detail-hero {
  position: relative;
  height: 320px;
  background: #1a2a3a;
}

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

.detail-hero__ph {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #2b5876, #4e4376);
  color: rgba(255,255,255,.85);
  font-size: 64px;
}

.detail-hero__mask {
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 40%, rgba(0,0,0,.65));
}

.detail-hero__info {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 24px 28px;
  color: #fff;
  z-index: 1;
}

.detail-hero__badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 3px;
  font-size: 12px;
  margin-bottom: 10px;
  background: var(--home-cyan);
}
.detail-hero__badge.is-ended,
.detail-hero__badge.is-closed { background: #9e9e9e; }
.detail-hero__badge.is-full { background: #f0a020; }

.detail-hero__title {
  margin: 0;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.35;
  text-shadow: 0 1px 4px rgba(0,0,0,.35);
}

.detail-body { padding: 24px 28px 32px; }

.detail-meta {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px 20px;
  margin-bottom: 28px;
  padding: 18px 20px;
  background: #fafbfc;
  border: 1px solid #f0f2f5;
  border-radius: 6px;
}

.detail-meta__item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  min-width: 0;
}

.detail-meta__icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid #eee;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--home-red);
  flex-shrink: 0;
  font-size: 16px;
}

.detail-meta__label {
  display: block;
  font-size: 12px;
  color: #999;
  margin-bottom: 2px;
}

.detail-meta__value {
  display: block;
  font-size: 14px;
  color: #222;
  font-weight: 600;
  word-break: break-all;
}

.detail-meta__value em {
  font-style: normal;
  color: var(--home-red);
  font-weight: 700;
}

.detail-tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid #eee;
  margin: 0 0 18px;
}

.detail-tabs__btn {
  position: relative;
  border: 0;
  background: transparent;
  padding: 10px 18px;
  font-size: 15px;
  font-weight: 600;
  color: #888;
  cursor: pointer;
  line-height: 1.4;
}
.detail-tabs__btn:hover { color: var(--home-red); }
.detail-tabs__btn.is-active {
  color: var(--home-red);
}
.detail-tabs__btn.is-active::after {
  content: '';
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: -1px;
  height: 2px;
  background: var(--home-red);
}

.detail-tab-panel { display: none; }
.detail-tab-panel.is-active { display: block; }

.detail-section-title {
  margin: 0 0 14px;
  font-size: 18px;
  font-weight: 700;
  color: #222;
  padding-left: 10px;
  border-left: 3px solid var(--home-red);
}

.detail-desc {
  color: #444;
  font-size: 14px;
  line-height: 1.9;
  white-space: pre-wrap;
  word-break: break-word;
}

.detail-desc--duty {
  padding: 14px 16px;
  background: #fff8f0;
  border: 1px solid #ffe0bf;
  border-radius: 4px;
  color: #8a4b00;
  font-size: 13px;
}

.detail-aside { position: sticky; top: 88px; }

.detail-aside-card__head {
  padding: 16px 20px;
  border-bottom: 1px solid #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.detail-aside-card__head h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
}

.detail-aside-card__body { padding: 20px; }

.detail-price-bar {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px dashed #eee;
}

.detail-price-bar__label { font-size: 13px; color: #888; }
.detail-price-bar__value {
  font-size: 26px;
  font-weight: 700;
  color: var(--home-red);
  line-height: 1;
}
.detail-price-bar__value small {
  font-size: 13px;
  font-weight: 500;
  margin-right: 2px;
}
.detail-price-bar__free {
  font-size: 20px;
  color: var(--home-cyan);
}

.detail-progress {
  margin-bottom: 18px;
}
.detail-progress__top {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #888;
  margin-bottom: 6px;
}
.detail-progress__bar {
  height: 6px;
  background: #eee;
  border-radius: 99px;
  overflow: hidden;
}
.detail-progress__bar > span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--home-cyan), #5ad4e0);
  border-radius: 99px;
}

.detail-form .form-label {
  font-size: 13px;
  font-weight: 600;
  color: #444;
  margin-bottom: 6px;
}

.detail-form .form-control,
.detail-form .form-select {
  border-color: #e5e8eb;
  border-radius: 4px;
  font-size: 14px;
  padding: .55rem .75rem;
}
.detail-form .form-control:focus,
.detail-form .form-select:focus {
  border-color: #f0a0a0;
  box-shadow: 0 0 0 .2rem rgba(230, 67, 64, .12);
}

.detail-login-tip {
  background: #fff8f8;
  border: 1px solid #ffe0e0;
  border-radius: 4px;
  padding: 10px 12px;
  font-size: 12px;
  color: #888;
  margin-bottom: 16px;
}
.detail-login-tip a { color: var(--home-red); font-weight: 600; }

.btn-detail-submit {
  display: block;
  width: 100%;
  border: 0;
  border-radius: 4px;
  background: var(--home-red);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  padding: 12px 16px;
  transition: background .2s;
}
.btn-detail-submit:hover { background: var(--home-red-dark); color: #fff; }
.btn-detail-submit:disabled {
  background: #ccc;
  cursor: not-allowed;
}

.detail-closed {
  text-align: center;
  padding: 28px 12px 12px;
}
.detail-closed i {
  font-size: 40px;
  color: #ccc;
  display: block;
  margin-bottom: 12px;
}
.detail-closed__status {
  font-size: 15px;
  color: #555;
  margin: 0 0 6px;
}
.detail-closed__hint {
  font-size: 12px;
  color: #aaa;
  margin: 0;
}

.detail-hero__share {
  position: absolute;
  right: 28px;
  bottom: 24px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border: 1px solid rgba(255,255,255,.45);
  border-radius: 999px;
  background: rgba(0,0,0,.28);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  backdrop-filter: blur(4px);
  z-index: 2;
}
.detail-hero__share:hover {
  background: rgba(198, 40, 40, .88);
  border-color: transparent;
  color: #fff;
}
.detail-hero__title {
  padding-right: 88px;
}
@media (max-width: 575.98px) {
  .detail-hero__share {
    right: 16px;
    bottom: 16px;
    padding: 6px 10px;
    font-size: 12px;
  }
}

.detail-share {
  margin-top: 12px;
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--home-shadow);
}
.detail-share__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid #f0f0f0;
  background: #fafbfc;
}
.detail-share__head h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: #222;
}
.detail-share__body { padding: 14px 16px 16px; }
.detail-share__link {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}
.detail-share__link .form-control {
  font-size: 12px;
  color: #666;
}
.detail-share__actions {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.detail-share__btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 64px;
  padding: 8px 4px;
  border: 1px solid #eceff3;
  border-radius: 8px;
  background: #fafbfc;
  color: #555;
  font-size: 12px;
  text-decoration: none;
  cursor: pointer;
  transition: .15s;
}
.detail-share__btn i { font-size: 18px; color: var(--home-red); }
.detail-share__btn:hover {
  border-color: #f0b0b0;
  background: #fff8f8;
  color: var(--home-red);
}
.detail-share__tip {
  margin: 10px 0 0;
  font-size: 12px;
  line-height: 1.5;
  color: #888;
}
.detail-share__tip.is-ok { color: #2e7d32; }
.detail-share__qr {
  margin-top: 12px;
  text-align: center;
  padding-top: 12px;
  border-top: 1px dashed #e8ecf0;
}
.detail-share__qr img {
  width: 140px;
  height: 140px;
  border-radius: 8px;
  border: 1px solid #eee;
  background: #fff;
}
.detail-share__qr p {
  margin: 8px 0 0;
  font-size: 12px;
  color: #888;
}
@media (max-width: 420px) {
  .detail-share__actions { grid-template-columns: repeat(2, 1fr); }
}

.detail-aside-links {
  margin-top: 12px;
  display: grid;
  gap: 8px;
}
.detail-aside-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px;
  border: 1px solid #e8e8e8;
  border-radius: 4px;
  background: #fff;
  font-size: 13px;
  color: #666;
  transition: .15s;
}
.detail-aside-links a:hover {
  border-color: #f0a0a0;
  color: var(--home-red);
}

@media (max-width: 992px) {
  .detail-layout { grid-template-columns: 1fr; }
  .detail-aside { position: static; }
}

/* ========== Auth (login / register) ========== */
.auth-page {
  min-height: calc(100vh - 72px - 200px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 16px;
  background:
    radial-gradient(ellipse at 10% 0%, rgba(230, 67, 64, .08), transparent 45%),
    radial-gradient(ellipse at 90% 100%, rgba(43, 184, 200, .08), transparent 40%),
    var(--home-bg);
}

.auth-shell {
  width: 100%;
  max-width: 920px;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(16, 24, 40, .1);
  overflow: hidden;
  min-height: 520px;
}
.auth-shell--wide { max-width: 980px; }

.auth-intro {
  padding: 40px 36px 32px;
  background:
    linear-gradient(160deg, rgba(230, 67, 64, .92), rgba(198, 40, 40, .88) 45%, rgba(30, 42, 58, .95)),
    linear-gradient(135deg, #e64340, #1e2a3a);
  color: #fff;
  display: flex;
  flex-direction: column;
  position: relative;
}
.auth-intro--merchant {
  background:
    linear-gradient(160deg, rgba(43, 184, 200, .88), rgba(31, 42, 68, .94) 48%, rgba(26, 34, 52, .98)),
    linear-gradient(135deg, #2bb8c8, #1a2234);
}
.auth-intro::after {
  content: '';
  position: absolute;
  right: -40px;
  bottom: -40px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: rgba(255,255,255,.06);
  pointer-events: none;
}

.auth-intro__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
  font-size: 15px;
}
.auth-intro__brand strong { font-weight: 700; }
.auth-intro__logo {
  height: 36px;
  width: auto;
  border-radius: 6px;
  background: #fff;
}
.auth-intro__icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(255,255,255,.18);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.auth-intro__title {
  margin: 0 0 12px;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: .02em;
}

.auth-intro__desc {
  margin: 0 0 24px;
  font-size: 14px;
  line-height: 1.75;
  color: rgba(255,255,255,.82);
}

.auth-intro__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
  flex: 0 0 auto;
  align-content: start;
}
.auth-intro__list li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: rgba(255,255,255,.9);
  line-height: 1.4;
}
.auth-intro__list i {
  color: #7de0ea;
  font-size: 15px;
  flex-shrink: 0;
}

.auth-intro__foot {
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,.15);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 10px;
  font-size: 13px;
  color: rgba(255,255,255,.78);
  text-align: center;
}
.auth-intro__foot i { margin-right: 5px; opacity: .85; }
.auth-intro__sep { opacity: .45; }

.auth-card {
  width: 100%;
  max-width: none;
  background: #fff;
  border-radius: 0;
  box-shadow: none;
  overflow: auto;
  display: flex;
  flex-direction: column;
}

.auth-card--wide { max-width: none; }

.auth-card__head {
  padding: 28px 32px 20px;
  text-align: center;
  border-bottom: 1px solid #f3f3f3;
}

.auth-card__icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 14px;
  border-radius: 14px;
  background: linear-gradient(135deg, #ff6b4a, #e64340 55%, #c62828);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  box-shadow: 0 6px 16px rgba(230, 67, 64, .28);
}

.auth-card__title {
  margin: 0 0 6px;
  font-size: 22px;
  font-weight: 700;
  color: #222;
}

.auth-card__sub {
  margin: 0;
  font-size: 13px;
  color: #999;
  line-height: 1.5;
}

.auth-card__body { padding: 24px 32px 28px; }

.auth-flash {
  margin: 0 32px 0;
  margin-top: 20px;
  border-radius: 6px;
  font-size: 13px;
}

.auth-form .form-label {
  font-size: 13px;
  font-weight: 600;
  color: #444;
  margin-bottom: 6px;
}

.auth-form .form-control {
  border-color: #e5e8eb;
  border-radius: 6px;
  padding: .65rem .85rem;
  font-size: 14px;
}
.auth-form .form-control:focus {
  border-color: #f0a0a0;
  box-shadow: 0 0 0 .2rem rgba(230, 67, 64, .12);
}

.auth-form .input-group-text {
  background: #fafafa;
  border-color: #e5e8eb;
  color: #aaa;
  border-radius: 6px 0 0 6px;
}
.auth-form .input-group .form-control {
  border-radius: 0 6px 6px 0;
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin-bottom: 20px;
  border: 1px solid #eee;
  border-radius: 6px;
  overflow: hidden;
}
.auth-tab {
  border: 0;
  background: #fafafa;
  padding: 10px 12px;
  font-size: 14px;
  color: #888;
  cursor: pointer;
}
.auth-tab.is-active {
  background: #fff;
  color: var(--home-red);
  font-weight: 700;
  box-shadow: inset 0 -2px 0 var(--home-red);
}

.auth-captcha {
  display: flex;
  align-items: stretch;
  gap: 10px;
}
.auth-captcha .input-group { flex: 1; min-width: 0; }
.auth-captcha__img {
  width: 120px;
  height: 40px;
  border: 1px solid #e5e8eb;
  border-radius: 6px;
  cursor: pointer;
  background: #fafafa;
  object-fit: cover;
  flex-shrink: 0;
}
.auth-captcha__img:hover { border-color: #f0a0a0; }

.auth-sms {
  display: flex;
  align-items: stretch;
  gap: 10px;
}
.auth-sms .input-group { flex: 1; min-width: 0; }
.btn-sms-send {
  flex-shrink: 0;
  min-width: 108px;
  border: 1px solid var(--home-red);
  background: #fff;
  color: var(--home-red);
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  padding: 0 12px;
  white-space: nowrap;
  transition: .15s;
}
.btn-sms-send:hover:not(:disabled) {
  background: var(--home-red);
  color: #fff;
}
.btn-sms-send:disabled {
  border-color: #ddd;
  color: #aaa;
  cursor: not-allowed;
}

.auth-form .form-check-label a { color: var(--home-red); }
.auth-form .form-check-input:checked {
  background-color: var(--home-red);
  border-color: var(--home-red);
}
.auth-form .form-check-input:focus {
  box-shadow: 0 0 0 .2rem rgba(230, 67, 64, .15);
  border-color: #f0a0a0;
}

.btn-auth {
  display: block;
  width: 100%;
  border: 0;
  border-radius: 6px;
  background: var(--home-red);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  padding: 12px 16px;
  transition: background .2s;
}
.btn-auth:hover { background: var(--home-red-dark); color: #fff; }

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0 14px;
  color: #bbb;
  font-size: 12px;
}
.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #eee;
}

.auth-oauth {
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
}

.btn-oauth {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 14px;
  border: 1px solid #e8e8e8;
  border-radius: 6px;
  background: #fff;
  color: #555;
  font-size: 13px;
  transition: .15s;
}
.btn-oauth:hover {
  border-color: #ddd;
  background: #fafafa;
  color: #333;
}
.btn-oauth i { font-size: 18px; }
.btn-oauth--wechat i { color: #07c160; }
.btn-oauth--qq i { color: #12b7f5; }

.auth-foot {
  text-align: center;
  font-size: 13px;
  color: #999;
  line-height: 1.8;
}
.auth-foot a {
  color: var(--home-red);
  font-weight: 600;
}
.auth-foot a.auth-link-muted {
  color: #6a8caf;
  font-weight: 500;
}
.auth-foot .auth-closed-tip {
  display: block;
  margin-bottom: 6px;
  color: #b8860b;
}

@media (max-width: 900px) {
  .auth-shell,
  .auth-shell--wide {
    grid-template-columns: 1fr;
    max-width: 480px;
    min-height: 0;
  }
  .auth-intro {
    padding: 28px 24px 24px;
  }
  .auth-intro__title { font-size: 22px; }
  .auth-intro__list { display: none; }
  .auth-intro__foot { margin-top: 16px; }
}

@media (max-width: 576px) {
  .auth-page { padding: 24px 12px 36px; }
  .auth-card__head,
  .auth-card__body { padding-left: 20px; padding-right: 20px; }
  .auth-flash { margin-left: 20px; margin-right: 20px; }
  .auth-intro { padding: 22px 18px 18px; }
}

/* ========== My registrations ========== */
.my-page {
  position: relative;
  background:
    radial-gradient(900px 360px at 8% 0%, rgba(230, 67, 64, .07), transparent 55%),
    radial-gradient(720px 320px at 96% 12%, rgba(43, 184, 200, .09), transparent 50%),
    var(--home-bg);
  padding: 8px 0 56px;
  min-height: calc(100vh - 72px - 200px);
}
.my-page__inner { max-width: 980px; }
.my-flash { margin-bottom: 16px; }

.my-hero {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 28px;
  align-items: stretch;
  margin-bottom: 24px;
  animation: myFadeUp .55s ease both;
}
.my-hero__copy {
  padding: 18px 8px 8px;
}
.my-hero__eyebrow {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--home-cyan-dark);
}
.my-hero__title {
  margin: 0 0 12px;
  font-size: clamp(28px, 4vw, 36px);
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--home-title);
  line-height: 1.2;
}
.my-hero__desc {
  margin: 0 0 22px;
  max-width: 420px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--home-muted);
}
.my-hero__steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.my-hero__steps li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--home-ink);
}
.my-hero__steps span {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--home-cyan), var(--home-cyan-dark));
  flex-shrink: 0;
}

.my-hero__panel {
  background: rgba(255, 255, 255, .92);
  border: 1px solid rgba(232, 235, 240, .95);
  border-radius: 16px;
  box-shadow: var(--home-shadow);
  padding: 26px 24px 20px;
  backdrop-filter: blur(8px);
  animation: myFadeUp .55s ease .08s both;
}

.my-query__label {
  display: block;
  margin-bottom: 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--home-ink);
}
.my-query__row {
  display: flex;
  align-items: stretch;
  border: 1px solid var(--home-line);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  transition: border-color .2s, box-shadow .2s;
}
.my-query__row:focus-within {
  border-color: rgba(230, 67, 64, .45);
  box-shadow: 0 0 0 4px rgba(230, 67, 64, .1);
}
.my-query__prefix {
  display: flex;
  align-items: center;
  padding: 0 14px;
  color: var(--home-muted);
  background: #fafbfc;
  border-right: 1px solid var(--home-line);
}
.my-query__input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  padding: 14px 14px;
  font-size: 16px;
  letter-spacing: .04em;
  background: transparent;
  color: var(--home-ink);
}
.my-query__input.is-invalid {
  color: var(--home-red);
}
.my-query__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 0;
  padding: 0 20px;
  min-width: 96px;
  background: var(--home-red);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: background .2s, transform .15s;
}
.my-query__btn:hover { background: var(--home-red-dark); }
.my-query__btn:active { transform: translateY(1px); }
.my-query__hint {
  margin: 10px 0 0;
  font-size: 12px;
  color: var(--home-muted);
}

.my-hero__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px dashed var(--home-line);
  font-size: 13px;
}
.my-hero__links a {
  color: #5f7f9e;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color .2s;
}
.my-hero__links a:hover { color: var(--home-red); }

.my-result {
  background: #fff;
  border: 1px solid var(--home-line);
  border-radius: 16px;
  box-shadow: var(--home-shadow);
  overflow: hidden;
  animation: myFadeUp .5s ease .12s both;
}
.my-result__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding: 18px 22px;
  border-bottom: 1px solid var(--home-line);
  background: linear-gradient(180deg, #fbfcfd, #fff);
}
.my-result__head h2 {
  margin: 0 0 4px;
  font-size: 17px;
  font-weight: 800;
  color: var(--home-title);
}
.my-result__head p {
  margin: 0;
  font-size: 13px;
  color: var(--home-muted);
}
.my-result__head strong {
  color: var(--home-ink);
  font-weight: 700;
  letter-spacing: .02em;
}
.my-result__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.my-stat {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: var(--home-cyan-dark);
  background: rgba(43, 184, 200, .12);
}
.my-stat--muted {
  color: var(--home-muted);
  background: #f3f5f8;
}

.my-empty {
  text-align: center;
  padding: 56px 24px;
}
.my-empty__icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 14px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: var(--home-cyan-dark);
  background: linear-gradient(145deg, rgba(43,184,200,.16), rgba(230,67,64,.08));
}
.my-empty h3 {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 800;
  color: var(--home-title);
}
.my-empty p {
  margin: 0 0 20px;
  font-size: 13px;
  color: var(--home-muted);
}
.my-empty__actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}

.my-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 10px 18px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
  text-decoration: none;
  transition: background .2s, color .2s, border-color .2s, transform .15s;
}
.my-btn--sm { padding: 7px 12px; font-size: 12px; border-radius: 8px; }
.my-btn--primary {
  background: var(--home-red);
  color: #fff;
}
.my-btn--primary:hover {
  background: var(--home-red-dark);
  color: #fff;
}
.my-btn--ghost {
  background: #fff;
  border-color: var(--home-line);
  color: var(--home-ink);
}
.my-btn--ghost:hover {
  border-color: #cfd6e0;
  color: var(--home-red);
}
.my-btn--danger {
  background: #fff;
  border-color: #f0c7c6;
  color: var(--home-red);
}
.my-btn--danger:hover {
  background: #fff5f5;
  border-color: var(--home-red);
}

.my-reg-list { padding: 4px 0; }
.my-reg {
  display: flex;
  gap: 18px;
  padding: 18px 22px;
  border-bottom: 1px solid #f0f2f5;
  transition: background .2s;
}
.my-reg:last-child { border-bottom: 0; }
.my-reg:hover { background: #fafbfc; }

.my-reg__cover {
  width: 132px;
  height: 96px;
  flex-shrink: 0;
  border-radius: 10px;
  overflow: hidden;
  background: #eef1f5;
}
.my-reg__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}
.my-reg:hover .my-reg__cover img { transform: scale(1.04); }
.my-reg__cover-ph {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #3d5a73, var(--home-cyan));
  color: #fff;
  font-size: 28px;
}

.my-reg__body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.my-reg__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.my-reg__title {
  font-size: 16px;
  font-weight: 800;
  color: var(--home-title);
  line-height: 1.4;
}
.my-reg__title:hover { color: var(--home-red); }
.my-badge {
  flex-shrink: 0;
  font-weight: 600;
  font-size: 12px;
}
.my-reg__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  font-size: 12px;
  color: var(--home-muted);
}
.my-reg__meta i { margin-right: 3px; opacity: .85; }
.my-reg__remark {
  font-size: 12px;
  color: #6b7380;
  background: #f6f8fa;
  border-radius: 8px;
  padding: 7px 10px;
}
.my-reg__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 2px;
}
.my-reg__form { display: inline; margin: 0; }

/* Ticket */
.my-page--ticket .my-page__inner { max-width: 460px; }
.my-ticket {
  margin: 8px auto 0;
  background: #fff;
  border-radius: 18px;
  border: 1px solid var(--home-line);
  box-shadow: var(--home-shadow);
  overflow: hidden;
  text-align: center;
  animation: myFadeUp .55s ease both;
}
.my-ticket__ribbon {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 20px;
  background: linear-gradient(90deg, #1a3a4a, var(--home-cyan-dark));
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}
.my-ticket__ribbon em {
  font-style: normal;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.18);
  font-size: 12px;
}
.my-ticket__ribbon em.is-done {
  background: rgba(76, 217, 100, .25);
}
.my-ticket__main { padding: 26px 24px 18px; }
.my-ticket__title {
  margin: 0 0 10px;
  font-size: 18px;
  font-weight: 800;
  color: var(--home-title);
  line-height: 1.4;
}
.my-ticket__user {
  margin: 0 0 18px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 16px;
  font-size: 13px;
  color: var(--home-muted);
}
.my-ticket__user i { margin-right: 4px; }
.my-ticket__qr-wrap {
  display: inline-block;
  padding: 14px;
  border-radius: 14px;
  background:
    linear-gradient(#fff, #fff) padding-box,
    linear-gradient(135deg, rgba(230,67,64,.35), rgba(43,184,200,.55)) border-box;
  border: 1px solid transparent;
  margin-bottom: 16px;
}
.my-ticket__qr { display: inline-block; line-height: 0; }
.my-ticket__code-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.my-ticket__code {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: .14em;
  color: var(--home-ink);
  font-family: Consolas, Monaco, "SF Mono", monospace;
  background: #f6f8fa;
  border-radius: 10px;
  padding: 8px 14px;
}
.my-ticket__copy {
  border: 1px solid var(--home-line);
  background: #fff;
  color: var(--home-ink);
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all .2s;
}
.my-ticket__copy:hover { border-color: var(--home-cyan); color: var(--home-cyan-dark); }
.my-ticket__copy.is-copied {
  border-color: #34c759;
  color: #1f8f3a;
  background: #f0fff4;
}
.my-ticket__tags {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}
.my-ticket__tip {
  margin: 0;
  font-size: 12px;
  color: var(--home-muted);
}
.my-ticket__foot {
  padding: 16px 20px 22px;
  border-top: 1px dashed var(--home-line);
  background:
    radial-gradient(circle at 0 50%, transparent 7px, #fff 8px) left / 16px 16px repeat-y,
    radial-gradient(circle at 100% 50%, transparent 7px, #fff 8px) right / 16px 16px repeat-y,
    #fafbfc;
}

@keyframes myFadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 860px) {
  .my-hero {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .my-hero__copy { padding: 4px 0 0; }
  .my-hero__desc { max-width: none; }
}

@media (max-width: 768px) {
  .my-page { padding-bottom: 40px; }
  .my-hero__panel { padding: 20px 16px 16px; border-radius: 14px; }
  .my-query__row {
    flex-wrap: wrap;
    border: 0;
    background: transparent;
    overflow: visible;
    gap: 10px;
  }
  .my-query__row:focus-within { box-shadow: none; }
  .my-query__prefix {
    display: none;
  }
  .my-query__input {
    width: 100%;
    border: 1px solid var(--home-line);
    border-radius: 12px;
    background: #fff;
    padding: 13px 14px;
  }
  .my-query__input:focus {
    border-color: rgba(230, 67, 64, .45);
    box-shadow: 0 0 0 4px rgba(230, 67, 64, .1);
  }
  .my-query__btn {
    width: 100%;
    min-height: 46px;
    border-radius: 12px;
  }
  .my-result { border-radius: 14px; }
  .my-result__head { padding: 16px; }
  .my-reg {
    flex-direction: column;
    padding: 16px;
    gap: 12px;
  }
  .my-reg__cover {
    width: 100%;
    height: 160px;
  }
  .my-ticket__main { padding: 22px 16px 16px; }
  .my-ticket__code { font-size: 18px; letter-spacing: .1em; }
}

/* ========== Event list ========== */
.elist-page {
  background: var(--home-bg);
  padding: 24px 0 48px;
  min-height: calc(100vh - 72px - 200px);
}

.elist-filter {
  background: #fff;
  border-radius: 8px;
  box-shadow: var(--home-shadow);
  padding: 20px 22px 12px;
  margin-bottom: 20px;
  position: relative;
}

.elist-filter__search {
  position: absolute;
  top: 18px;
  right: 22px;
  display: flex;
  align-items: center;
  width: 240px;
  height: 36px;
  border: 1px solid #e5e8eb;
  border-radius: 20px;
  background: #fafafa;
  overflow: hidden;
}
.elist-filter__search input {
  flex: 1;
  border: 0;
  background: transparent;
  padding: 0 14px;
  font-size: 13px;
  outline: none;
  min-width: 0;
}
.elist-filter__search button {
  border: 0;
  background: transparent;
  width: 40px;
  color: #888;
  cursor: pointer;
}
.elist-filter__search button:hover { color: var(--home-red); }

.elist-filter__row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 10px 0;
  border-bottom: 1px dashed #f0f0f0;
  padding-right: 260px;
}
.elist-filter__row:last-child { border-bottom: 0; }

.elist-filter__label {
  width: 42px;
  flex-shrink: 0;
  font-size: 13px;
  font-weight: 700;
  color: #555;
  line-height: 28px;
}

.elist-filter__opts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 4px;
  flex: 1;
  min-width: 0;
}

.elist-filter__opt {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 3px;
  font-size: 13px;
  color: #333;
  line-height: 20px;
}
.elist-filter__opt:hover { color: var(--home-red); }
.elist-filter__opt.is-active {
  background: #2f4f8f;
  color: #fff;
}
.elist-filter__opt.is-active:hover { color: #fff; }

.elist-result__meta {
  font-size: 13px;
  color: #999;
  margin-bottom: 12px;
}

.elist-empty {
  background: #fff;
  border-radius: 8px;
  box-shadow: var(--home-shadow);
  text-align: center;
  padding: 56px 20px;
  color: #aaa;
}
.elist-empty i {
  font-size: 40px;
  display: block;
  margin-bottom: 10px;
}

.elist-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.elist-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 8px;
  box-shadow: var(--home-shadow);
  padding: 0;
  overflow: hidden;
  transition: box-shadow .2s, transform .2s;
}
.elist-card:hover {
  box-shadow: 0 6px 20px rgba(0,0,0,.1);
  transform: translateY(-2px);
}

.elist-card__title {
  margin: 0;
  padding: 12px 14px 0;
  font-size: 15px;
  font-weight: 700;
  color: #222;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.elist-card:hover .elist-card__title { color: var(--home-red); }

.elist-card__cover {
  width: 100%;
  aspect-ratio: 16 / 10;
  flex-shrink: 0;
  overflow: hidden;
  background: #eee;
}
.elist-card__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.elist-card__cover-ph {
  width: 100%;
  height: 100%;
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #5b8def, #3ec6c9);
  color: #fff;
  font-size: 28px;
}

.elist-card__meta {
  flex: 1;
  min-width: 0;
  padding: 10px 14px 0;
  font-size: 12px;
  color: #888;
  line-height: 1.75;
}
.elist-card__meta p { margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.elist-card__action {
  flex-shrink: 0;
  width: auto;
  display: flex;
  justify-content: flex-end;
  padding: 10px 14px 14px;
  margin-top: auto;
}

.elist-card__btn {
  display: inline-block;
  min-width: 72px;
  text-align: center;
  padding: 7px 12px;
  border-radius: 4px;
  font-size: 12px;
  color: #fff;
  background: var(--home-cyan);
}
.elist-card__btn--pending { background: var(--home-cyan); }
.elist-card__btn--running { background: var(--home-cyan); }
.elist-card__btn--ended {
  background: #d8d8d8;
  color: #666;
}

.elist-pager {
  margin-top: 24px;
  display: flex;
  justify-content: center;
}

@media (max-width: 992px) {
  .elist-grid { grid-template-columns: repeat(2, 1fr); }
  .elist-filter__row { padding-right: 0; padding-top: 48px; }
  .elist-filter__row + .elist-filter__row { padding-top: 10px; }
  .elist-filter__search {
    left: 22px;
    right: 22px;
    width: auto;
  }
}

@media (max-width: 576px) {
  .elist-grid { grid-template-columns: 1fr; }
  .elist-card__action {
    width: 100%;
    justify-content: flex-end;
    margin-top: 4px;
  }
}

/* ========== News ========== */
.news-page {
  background: var(--home-bg);
  padding: 24px 0 48px;
  min-height: calc(100vh - 72px - 200px);
}

.news-page__head {
  margin-bottom: 20px;
}
.news-page__head h1 {
  margin: 0 0 6px;
  font-size: 26px;
  font-weight: 700;
  color: #222;
}
.news-page__head p {
  margin: 0;
  font-size: 14px;
  color: #999;
}

.news-empty {
  background: #fff;
  border-radius: 8px;
  box-shadow: var(--home-shadow);
  text-align: center;
  padding: 64px 20px;
  color: #aaa;
}
.news-empty i {
  font-size: 42px;
  display: block;
  margin-bottom: 12px;
}

.news-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.news-card {
  display: flex;
  gap: 18px;
  align-items: stretch;
  background: #fff;
  border-radius: 8px;
  box-shadow: var(--home-shadow);
  padding: 16px 18px;
  transition: box-shadow .2s;
}
.news-card:hover { box-shadow: 0 6px 20px rgba(0,0,0,.1); }

.news-card__cover {
  width: 160px;
  height: 110px;
  flex-shrink: 0;
  border-radius: 4px;
  overflow: hidden;
  background: #eee;
}
.news-card__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.news-card__cover-ph {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #89a7d0, #6ec1c5);
  color: #fff;
  font-size: 28px;
}

.news-card__body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.news-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  font-size: 12px;
  color: #aaa;
}

.news-card__cat {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 3px;
  background: #fff0f0;
  color: var(--home-red);
  font-size: 12px;
  font-weight: 600;
}

.news-card__title {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  color: #222;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-card:hover .news-card__title { color: var(--home-red); }

.news-card__summary {
  margin: 0;
  font-size: 13px;
  color: #888;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-card__date {
  width: 56px;
  flex-shrink: 0;
  text-align: center;
  align-self: center;
  line-height: 1.15;
}
.news-card__day {
  display: block;
  font-size: 26px;
  font-weight: 700;
  color: #333;
}
.news-card__ym {
  display: block;
  font-size: 11px;
  color: #aaa;
}

.news-pager {
  margin-top: 24px;
  display: flex;
  justify-content: center;
}

.news-list-layout,
.news-detail-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 24px;
  align-items: start;
}

.news-list-main { min-width: 0; }

.news-cat-list {
  list-style: none;
  margin: 0 0 8px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}
.news-cat-list a {
  display: block;
  padding: 8px 10px;
  border: 1px solid #f0f0f0;
  border-radius: 4px;
  background: #fafafa;
  font-size: 13px;
  color: #555;
  line-height: 1.3;
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.news-cat-list a:hover,
.news-cat-list a.is-active {
  color: var(--home-red);
  border-color: #f0c0c0;
  background: #fff5f5;
}
.news-cat-list a.is-active { font-weight: 700; }

.news-side__rank {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  background: #f0f0f0;
  color: #888;
  font-size: 11px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}
.news-side__list li:nth-child(1) .news-side__rank,
.news-side__list li:nth-child(2) .news-side__rank,
.news-side__list li:nth-child(3) .news-side__rank {
  background: var(--home-red);
  color: #fff;
}

.news-article {
  background: #fff;
  border-radius: 8px;
  box-shadow: var(--home-shadow);
  padding: 28px 32px 32px;
}

.news-article__head h1 {
  margin: 12px 0 10px;
  font-size: 26px;
  font-weight: 700;
  line-height: 1.4;
  color: #222;
}

.news-article__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  font-size: 13px;
  color: #999;
  padding-bottom: 18px;
  border-bottom: 1px solid #f0f0f0;
  margin-bottom: 20px;
}

.news-article__cover {
  margin-bottom: 20px;
  border-radius: 6px;
  overflow: hidden;
}
.news-article__cover img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
}

.news-article__lead {
  background: #fafafa;
  border-left: 3px solid var(--home-red);
  padding: 12px 16px;
  margin-bottom: 20px;
  font-size: 14px;
  color: #666;
  line-height: 1.7;
}

.news-article__content {
  font-size: 15px;
  color: #333;
  line-height: 1.9;
}
.news-article__content p { margin: 0 0 1em; }
.news-article__content img { max-width: 100%; height: auto; }

.news-article__foot {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid #f0f0f0;
}

.news-side__box {
  background: #fff;
  border-radius: 8px;
  box-shadow: var(--home-shadow);
  padding: 18px 18px 8px;
  margin-bottom: 14px;
}
.news-side__box h3 {
  margin: 0 0 12px;
  font-size: 15px;
  font-weight: 700;
  padding-left: 8px;
  border-left: 3px solid var(--home-red);
}

.news-side__list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.news-side__list li {
  border-bottom: 1px solid #f5f5f5;
}
.news-side__list li:last-child { border-bottom: 0; }
.news-side__list a {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 0;
}
.news-side__date {
  display: block;
  font-size: 11px;
  color: #aaa;
  margin-bottom: 4px;
}
.news-side__title {
  display: block;
  font-size: 13px;
  color: #333;
  line-height: 1.45;
}
.news-side__list a:hover .news-side__title { color: var(--home-red); }

.news-side__cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 8px;
  font-size: 13px;
  color: #666;
  box-shadow: var(--home-shadow);
}
.news-side__cta:hover {
  border-color: #f0a0a0;
  color: var(--home-red);
}

@media (max-width: 992px) {
  .news-list-layout,
  .news-detail-layout { grid-template-columns: 1fr; }
  .news-card__date { display: none; }
}

@media (max-width: 768px) {
  .news-card {
    flex-direction: column;
    gap: 12px;
  }
  .news-card__cover {
    width: 100%;
    height: 160px;
  }
  .news-article { padding: 20px 16px 24px; }
  .news-article__head h1 { font-size: 20px; }
}

/* ========== Single pages ========== */
.spage-channel {
  background: var(--home-bg);
  padding: 24px 0 48px;
  min-height: calc(100vh - 72px - 200px);
}

.spage-empty {
  background: #fff;
  border-radius: 8px;
  box-shadow: var(--home-shadow);
  text-align: center;
  padding: 56px 20px;
  color: #aaa;
}
.spage-empty i {
  font-size: 40px;
  display: block;
  margin-bottom: 10px;
}

.spage-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 16px;
  align-items: start;
}

.spage-nav__box {
  background: #fff;
  border-radius: 8px;
  box-shadow: var(--home-shadow);
  overflow: hidden;
  position: sticky;
  top: 88px;
}

.spage-nav__title {
  margin: 0;
  padding: 14px 16px;
  font-size: 15px;
  font-weight: 700;
  color: #222;
  border-bottom: 1px solid #f0f0f0;
  background: #fafafa;
}

.spage-nav__list {
  list-style: none;
  margin: 0;
  padding: 6px 0;
}

.spage-nav__list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 11px 16px;
  font-size: 14px;
  color: #444;
  border-left: 3px solid transparent;
  transition: background .15s, color .15s;
}
.spage-nav__list a i {
  font-size: 12px;
  color: #ccc;
}
.spage-nav__list a:hover {
  background: #fff8f8;
  color: var(--home-red);
}
.spage-nav__list a.is-active {
  background: #fff5f5;
  color: var(--home-red);
  font-weight: 600;
  border-left-color: var(--home-red);
}
.spage-nav__list a.is-active i { color: var(--home-red); }

.spage-article {
  background: #fff;
  border-radius: 8px;
  box-shadow: var(--home-shadow);
  padding: 28px 32px 36px;
  min-height: 360px;
}

.spage-article__head h1 {
  margin: 0 0 10px;
  font-size: 24px;
  font-weight: 700;
  color: #222;
  line-height: 1.35;
}

.spage-article__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 13px;
  color: #999;
  margin-bottom: 18px;
}
.spage-article__meta i { margin-right: 4px; }

.spage-article__lead {
  margin-bottom: 18px;
  padding: 12px 14px;
  background: #fafafa;
  border-left: 3px solid var(--home-red);
  color: #666;
  font-size: 14px;
  line-height: 1.7;
}

.spage-article__content {
  color: #444;
  font-size: 15px;
  line-height: 1.9;
}
.spage-article__content p { margin: 0 0 1em; }
.spage-article__content img { max-width: 100%; height: auto; }

.spage-article__placeholder {
  text-align: center;
  padding: 80px 20px;
  color: #bbb;
}
.spage-article__placeholder i {
  font-size: 36px;
  display: block;
  margin-bottom: 12px;
}

@media (max-width: 992px) {
  .spage-layout { grid-template-columns: 1fr; }
  .spage-nav__box { position: static; }
  .spage-nav__list {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    padding: 8px;
  }
  .spage-nav__list li { flex: 0 0 auto; }
  .spage-nav__list a {
    border-left: 0;
    border-radius: 4px;
    padding: 8px 12px;
  }
  .spage-nav__list a i { display: none; }
  .spage-nav__list a.is-active { border-left: 0; }
}

@media (max-width: 768px) {
  .spage-article { padding: 20px 16px 24px; }
  .spage-article__head h1 { font-size: 20px; }
}

/* ========== Merchant center ========== */
.mct-apply-panel { padding-top: 0; overflow: hidden; }
.mct-apply-tabs {
  display: flex;
  gap: 0;
  margin: 0 -24px 20px;
  border-bottom: 1px solid #eee;
  background: #fafafa;
}
.mct-apply-tab {
  flex: 1;
  border: 0;
  background: transparent;
  padding: 14px 12px;
  font-size: 15px;
  font-weight: 600;
  color: #888;
  cursor: pointer;
  position: relative;
}
.mct-apply-tab i { margin-right: 6px; }
.mct-apply-tab:hover { color: var(--home-red); }
.mct-apply-tab.is-active {
  color: var(--home-red);
  background: #fff;
}
.mct-apply-tab.is-active::after {
  content: '';
  position: absolute;
  left: 16%;
  right: 16%;
  bottom: -1px;
  height: 2px;
  background: var(--home-red);
}
.mct-apply-panel__body { display: none; }
.mct-apply-panel__body.is-active { display: block; }
.mct-apply-panel__hint {
  margin: 0 0 16px;
  font-size: 13px;
  color: #999;
}

.mct-page {
  background: var(--home-bg);
  padding: 24px 0 48px;
  min-height: calc(100vh - 72px - 200px);
}

.mct-shell {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 16px;
  align-items: start;
}

.mct-side {
  background: #fff;
  border-radius: 8px;
  box-shadow: var(--home-shadow);
  overflow: hidden;
  position: sticky;
  top: 88px;
}
.mct-side__brand {
  padding: 20px 14px 14px;
  text-align: left;
  border-bottom: 0;
  background: linear-gradient(145deg, #1a2332 0%, #2d5a8a 55%, #3b8cdb 100%);
  color: #fff;
}
.mct-side__avatar {
  width: 52px;
  height: 52px;
  margin: 0 0 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .18);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}
.mct-side__name {
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mct-side__meta {
  margin-top: 4px;
  font-size: .82rem;
  color: rgba(255, 255, 255, .75);
}
.mct-side__info {
  margin-top: 12px;
  padding: 10px 10px 8px;
  text-align: left;
  background: rgba(255, 255, 255, .12);
  border-radius: 10px;
}
.mct-side__row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  padding: 4px 0;
  font-size: 12px;
  line-height: 1.45;
}
.mct-side__row + .mct-side__row {
  border-top: 1px dashed rgba(255, 255, 255, .22);
  margin-top: 4px;
  padding-top: 8px;
}
.mct-side__k {
  flex-shrink: 0;
  color: rgba(255, 255, 255, .65);
}
.mct-side__v {
  color: #fff;
  font-weight: 600;
  text-align: right;
  word-break: break-all;
}
.mct-side__row--tip .mct-side__v {
  font-weight: 500;
  color: rgba(255, 255, 255, .88);
  font-size: 11px;
}
.mct-side__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 12px;
}
.mct-side__refund { margin: 0; }
.mct-side__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 32px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  padding: 0 8px;
}
.mct-side__btn--primary {
  background: #fff;
  color: #1a2332;
}
.mct-side__btn--primary:hover { background: #f0f4f8; color: #1a2332; }
.mct-side__btn--ghost {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .45);
}
.mct-side__btn--ghost:hover {
  border-color: #fff;
  color: #fff;
  background: rgba(255, 255, 255, .12);
}
.mct-side__btn--muted {
  background: rgba(255, 255, 255, .12);
  color: rgba(255, 255, 255, .55);
  cursor: not-allowed;
}
.mct-side__btn:disabled {
  opacity: .85;
  cursor: not-allowed;
}
.mct-side__nav {
  display: flex;
  flex-direction: column;
  padding: 8px 0 12px;
}
.mct-side__nav a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  font-size: 13px;
  color: #555;
  border-left: 3px solid transparent;
}
.mct-side__nav a i { width: 16px; text-align: center; color: #aaa; }
.mct-side__nav a:hover { background: #fafafa; color: var(--home-red); }
.mct-side__nav a:hover i { color: var(--home-red); }
.mct-side__nav a.is-active {
  background: #fff5f5;
  color: var(--home-red);
  font-weight: 600;
  border-left-color: var(--home-red);
}
.mct-side__nav a.is-active i { color: var(--home-red); }

.mct-main { min-width: 0; }
.mct-main__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.mct-main__head h1 {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  color: #222;
}

.mct-notice {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0 0 14px;
  padding: 12px 14px;
  background: #fff8f0;
  border: 1px solid #ffe0bf;
  border-radius: 6px;
  color: #8a4b00;
  font-size: 13px;
  line-height: 1.7;
}
.mct-notice i {
  flex-shrink: 0;
  margin-top: 2px;
  color: #d48806;
}
.mct-notice p { margin: 0; }

.mct-stat--link { text-decoration: none; }
.mct-stat--link em { font-size: 22px; color: var(--home-cyan); }
.mct-stat--link:hover { box-shadow: 0 6px 18px rgba(0,0,0,.08); }

@media (max-width: 992px) {
  .mct-shell { grid-template-columns: 1fr; }
  .mct-side { position: static; }
  .mct-side__nav {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 4px;
    padding: 10px;
  }
  .mct-side__nav a {
    border-left: 0;
    border-radius: 4px;
    padding: 8px 10px;
  }
  .mct-side__nav a.is-active { border-left: 0; }
}

.mct-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.mct-hero h1 {
  margin: 0 0 6px;
  font-size: 24px;
  font-weight: 700;
  color: #222;
}
.mct-hero p {
  margin: 0;
  font-size: 14px;
  color: #999;
}

.mct-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.mct-nav a {
  padding: 7px 14px;
  border-radius: 4px;
  font-size: 13px;
  color: #666;
  background: #fff;
  border: 1px solid #eee;
}
.mct-nav a:hover { color: var(--home-red); border-color: #f0c0c0; }
.mct-nav a.is-active {
  background: var(--home-red);
  border-color: var(--home-red);
  color: #fff;
}
.mct-nav__muted { color: #aaa !important; }

.mct-card {
  background: #fff;
  border-radius: 8px;
  box-shadow: var(--home-shadow);
  padding: 22px 24px 24px;
  margin-bottom: 16px;
}
.mct-card h2 {
  margin: 0 0 8px;
  font-size: 17px;
  font-weight: 700;
}
.mct-card__tip {
  margin: 0 0 16px;
  font-size: 13px;
  color: #999;
}
.mct-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.mct-card__head h2 { margin: 0; }

.mct-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}
.mct-stat {
  background: #fff;
  border-radius: 8px;
  box-shadow: var(--home-shadow);
  padding: 18px 16px;
  text-align: center;
}
.mct-stat em {
  display: block;
  font-style: normal;
  font-size: 28px;
  font-weight: 700;
  color: var(--home-red);
  line-height: 1.2;
  margin-bottom: 4px;
}
.mct-stat span {
  font-size: 12px;
  color: #999;
}
.mct-stat--shop em {
  font-size: 16px;
  color: #222;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mct-status {
  background: #fff;
  border-radius: 8px;
  box-shadow: var(--home-shadow);
  text-align: center;
  padding: 48px 24px;
  margin-bottom: 16px;
}
.mct-status i {
  font-size: 40px;
  display: block;
  margin-bottom: 12px;
}
.mct-status h2 {
  margin: 0 0 8px;
  font-size: 20px;
}
.mct-status p {
  margin: 0;
  color: #888;
  font-size: 14px;
}
.mct-status--pending i { color: #e6a23c; }
.mct-status--reject i { color: #999; }

.mct-empty {
  text-align: center;
  padding: 40px 16px;
  color: #aaa;
  font-size: 14px;
}

.mct-table th {
  font-size: 13px;
  color: #888;
  font-weight: 600;
  border-bottom-color: #f0f0f0;
}
.mct-table td { font-size: 14px; }

.btn-mct-primary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 0;
  background: var(--home-red);
  color: #fff;
  padding: 10px 18px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.btn-mct-primary:hover { background: var(--home-red-dark); color: #fff; }
.btn-mct-sm { padding: 7px 12px; font-size: 13px; }

@media (max-width: 992px) {
  .mct-stats { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 576px) {
  .mct-stats { grid-template-columns: 1fr; }
}

/* ========== Right float dock ========== */
.home-float {
  position: fixed;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1200;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.home-float__item {
  width: 88px;
  min-height: 64px;
  padding: 10px 8px 8px;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(26, 31, 40, .14);
  border: 1px solid #eef0f3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: #333;
  text-align: center;
  cursor: pointer;
  transition: background .18s ease, color .18s ease, transform .18s ease;
}
.home-float__item i {
  font-size: 20px;
  color: var(--home-red);
  line-height: 1;
}
.home-float__item span {
  display: block;
  font-size: 13px;
  line-height: 1.2;
  font-weight: 600;
  white-space: nowrap;
}
.home-float__item:hover {
  transform: translateX(-3px);
  background: var(--home-red);
  color: #fff;
  border-color: var(--home-red);
  box-shadow: 0 8px 24px rgba(26, 31, 40, .14);
}
.home-float__item:hover i { color: #fff; }
.home-float__item--cs i { color: var(--home-cyan); }
.home-float__item--cs:hover { background: var(--home-cyan); border-color: var(--home-cyan); }
.home-float__item--top {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity .2s ease, visibility .2s ease, transform .2s ease, background .18s ease, color .18s ease;
}
.home-float__item--top.is-show {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: none;
}
.home-float__item--top i { color: #888; }
.home-float__item--top:hover { background: #333; border-color: #333; color: #fff; }
.home-float__item--top:hover i { color: #fff; }

@media (max-width: 768px) {
  .home-float {
    right: 8px;
    left: auto;
    bottom: 72px;
    top: auto;
    transform: none;
  }
  .home-float__item {
    width: 80px;
    min-height: 56px;
    padding: 8px 4px;
    flex: none;
  }
  .home-float__item i { font-size: 16px; }
  .home-float__item span { font-size: 12px; white-space: nowrap; }
}

/* ========== 商家保证金 /merchant/deposit ========== */
.dep-card,
.dep-pay,
.dep-rules {
  background: #fff;
  border-radius: 12px;
  box-shadow: var(--home-shadow);
}
.dep-card { padding: 24px 22px; }
.dep-pay,
.dep-rules { margin-top: 16px; }
.dep-balance--plain { margin-top: 0; padding-top: 0; border-top: 0; text-align: center; }
.dep-balance { margin-top: 24px; padding-top: 22px; border-top: 1px dashed #e8ecf0; }
.dep-balance__label { display: block; margin-bottom: 6px; font-size: 13px; color: #888; }
.dep-balance__val {
  font-size: 36px; font-weight: 700; color: #1a1a1a; letter-spacing: -1px; line-height: 1.1;
}
.dep-balance__val em {
  font-style: normal; font-size: 18px; font-weight: 600; margin-right: 2px;
}
.dep-balance__meta { margin: 8px 0 0; font-size: 13px; color: #999; }
.dep-badge {
  display: inline-block; margin-top: 10px; padding: 4px 10px; border-radius: 999px;
  background: #fff8e1; color: #f57f17; font-size: 12px; font-weight: 600;
}
.dep-tip {
  margin-top: 18px; text-align: left; background: #f7f9fb; border-radius: 12px;
  padding: 14px 16px; font-size: 13px; line-height: 1.7; color: #666;
}
.dep-tip strong { color: #444; }
.dep-actions {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 22px;
}
.dep-actions form { margin: 0; }
@media (max-width: 420px) { .dep-actions { grid-template-columns: 1fr; } }
.dep-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  width: 100%; height: 46px; border-radius: 10px; font-size: 15px; font-weight: 700;
  text-decoration: none; border: 0; cursor: pointer;
}
.dep-btn--primary { background: var(--home-red, #c62828); color: #fff; }
.dep-btn--primary:hover { background: #a51f1f; color: #fff; }
.dep-btn--ghost { background: #fff; color: #333; border: 1.5px solid #dde2e8; }
.dep-btn--ghost:hover { border-color: #c5ccd4; color: #111; background: #fafbfc; }
.dep-btn:disabled,
.dep-btn.is-disabled { opacity: .45; pointer-events: none; cursor: not-allowed; }
.dep-pay { padding: 22px 24px; }
.dep-pay__head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px;
}
.dep-pay__head h2 { margin: 0; font-size: 16px; font-weight: 700; }
.dep-pay__head a { font-size: 13px; color: #999; text-decoration: none; }
.dep-pay__head a:hover { color: #666; }
.dep-methods {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 16px;
}
@media (max-width: 575.98px) { .dep-methods { grid-template-columns: 1fr; } }
.dep-method {
  display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px;
  border: 1.5px solid #e2e6eb; border-radius: 12px; background: #fff;
  text-decoration: none; color: inherit;
}
.dep-method:hover { border-color: #f0b0b0; }
.dep-method.is-active {
  border-color: var(--home-red, #c62828); background: #fff8f8;
  box-shadow: 0 0 0 1px var(--home-red, #c62828);
}
.dep-method i {
  width: 38px; height: 38px; border-radius: 10px; flex-shrink: 0;
  background: #fff0f0; color: var(--home-red, #c62828);
  display: inline-flex; align-items: center; justify-content: center; font-size: 1.15rem;
}
.dep-method strong { display: block; font-size: 15px; margin-bottom: 2px; }
.dep-method span { display: block; font-size: 12px; color: #888; }
.dep-channel {
  display: flex; align-items: center; gap: 14px; padding: 14px 16px; margin-bottom: 10px;
  border: 1.5px solid #e5e8ec; border-radius: 12px; background: #fafbfc; cursor: pointer;
}
.dep-channel:has(input:checked) {
  border-color: var(--home-red, #c62828); background: #fff8f8;
}
.dep-channel input { margin: 0; width: 18px; height: 18px; }
.dep-channel strong { font-size: 15px; }
.dep-channel__desc { display: block; margin-top: 4px; font-size: 12px; color: #999; }
.dep-pay-btn {
  display: block; width: 100%; margin-top: 16px; padding: 14px 20px;
  border: 0; border-radius: 10px; background: var(--home-red, #c62828); color: #fff;
  font-size: 16px; font-weight: 700; cursor: pointer; text-align: center; text-decoration: none;
}
.dep-pay-btn:hover { background: #a51f1f; color: #fff; }
.dep-pay__note { margin: 0 0 14px; font-size: 13px; line-height: 1.6; color: #888; }
.dep-bank {
  border: 1px solid #e8ecf0; border-radius: 12px; background: #f7f9fb; padding: 4px 18px; margin-bottom: 14px;
}
.dep-bank__row {
  display: flex; gap: 12px; align-items: baseline;
  padding: 12px 0; border-bottom: 1px dashed #e0e4e8;
}
.dep-bank__row:last-child { border-bottom: 0; }
.dep-bank__label { width: 72px; flex-shrink: 0; color: #888; font-size: 14px; }
.dep-bank__val { font-weight: 600; font-size: 15px; word-break: break-all; }
.dep-bank__val.is-danger { color: var(--home-red, #c62828); }
.dep-rules { margin-top: 16px; padding: 20px 22px; }
.dep-rules__title {
  display: flex; align-items: center; gap: 8px;
  margin: 0 0 12px; font-size: 15px; font-weight: 700; color: #222;
}
.dep-rules__title i { color: var(--home-red, #c62828); }
.dep-rules__block + .dep-rules__block {
  margin-top: 14px; padding-top: 14px; border-top: 1px dashed #e5e8ec;
}
.dep-rules__label {
  display: block; margin-bottom: 6px; font-size: 13px; font-weight: 700; color: #555;
}
.dep-rules__text { margin: 0; font-size: 13px; line-height: 1.75; color: #666; }
