:root {
  color-scheme: light;
  --bg: #fff7fd;
  --card: rgba(255, 255, 255, 0.78);
  --text: #2a2140;
  --muted: #7b6f92;
  --line: rgba(255, 139, 203, 0.26);
  --primary: #ff5fb7;
  --primary-dark: #d93f96;
  --purple: #8b5cf6;
  --cyan: #38bdf8;
  --shadow: 0 24px 80px rgba(149, 76, 233, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background:
    linear-gradient(rgba(255,255,255,0.72) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.72) 1px, transparent 1px),
    radial-gradient(circle at 10% 8%, rgba(255, 95, 183, 0.28), transparent 28rem),
    radial-gradient(circle at 82% 12%, rgba(139, 92, 246, 0.25), transparent 30rem),
    radial-gradient(circle at 50% 92%, rgba(56, 189, 248, 0.18), transparent 30rem),
    linear-gradient(180deg, #fff7fd 0%, #f8f7ff 48%, #f0fbff 100%);
  background-size: 34px 34px, 34px 34px, auto, auto, auto, auto;
  overflow-x: hidden;
}

body::before,
body::after {
  content: "";
  position: fixed;
  z-index: -1;
  width: 420px;
  height: 420px;
  border-radius: 999px;
  filter: blur(10px);
  opacity: 0.38;
  pointer-events: none;
}

body::before {
  right: -120px;
  top: 120px;
  background: repeating-linear-gradient(45deg, #ffd1ec 0 14px, #c7d2fe 14px 28px);
}

body::after {
  left: -150px;
  bottom: -120px;
  background: repeating-linear-gradient(-45deg, #bae6fd 0 14px, #fbcfe8 14px 28px);
}

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

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px max(18px, calc((100vw - 1160px) / 2));
  border-bottom: 1px solid rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.62);
  backdrop-filter: blur(22px);
  box-shadow: 0 8px 30px rgba(255, 95, 183, 0.08);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  font-size: 24px;
  letter-spacing: -0.05em;
}

.brand span {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 14px;
  color: white;
  background: linear-gradient(135deg, var(--primary), var(--purple));
  box-shadow: 0 12px 28px rgba(255, 95, 183, 0.32);
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

nav a {
  padding: 9px 13px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: #6d5d86;
  font-weight: 800;
  font-size: 14px;
}

nav a:hover {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.7);
  color: var(--primary-dark);
}

.container {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
  padding: 42px 0;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: 1.45fr 0.75fr;
  gap: 28px;
  align-items: center;
  min-height: 420px;
  padding: clamp(28px, 5vw, 58px);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 38px;
  background:
    radial-gradient(circle at 78% 18%, rgba(255,255,255,0.8), transparent 0 72px, transparent 73px),
    linear-gradient(120deg, rgba(255,255,255,0) 0 48%, rgba(255,255,255,0.55) 49% 51%, rgba(255,255,255,0) 52% 100%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 240, 249, 0.74)),
    linear-gradient(135deg, rgba(255, 95, 183, 0.22), rgba(139, 92, 246, 0.18));
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero::after {
  content: "SUPPLY TERMINAL";
  position: absolute;
  right: 34px;
  top: 28px;
  color: rgba(139, 92, 246, 0.12);
  font-size: clamp(28px, 6vw, 78px);
  font-weight: 1000;
  letter-spacing: -0.08em;
  pointer-events: none;
}

.hero::before {
  content: "";
  position: absolute;
  inset: auto -80px -100px auto;
  width: 360px;
  height: 360px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255, 95, 183, 0.28), transparent 64%);
}

.hero h1 {
  max-width: 760px;
  margin: 16px 0;
  font-size: clamp(40px, 7vw, 78px);
  line-height: 0.95;
  letter-spacing: -0.08em;
  background: linear-gradient(135deg, #2a2140 10%, #ff5fb7 50%, #8b5cf6 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p {
  max-width: 690px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 24px;
}

.status-dock {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 12px;
  max-width: 640px;
  margin-top: 24px;
}

.status-dock div {
  padding: 14px;
  border: 1px solid rgba(255, 95, 183, 0.22);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.58);
}

.status-dock b {
  display: block;
  color: var(--primary-dark);
  font-size: 24px;
  line-height: 1.1;
}

.status-dock span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.mascot-card {
  position: relative;
  min-height: 290px;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 32px;
  background:
    radial-gradient(circle at 70% 18%, rgba(255, 255, 255, 0.88), transparent 0 54px, transparent 55px),
    linear-gradient(150deg, rgba(255, 95, 183, 0.86), rgba(139, 92, 246, 0.86));
  color: white;
  box-shadow: 0 26px 70px rgba(139, 92, 246, 0.24);
  overflow: hidden;
}

.mascot-card::before {
  content: "✧";
  position: absolute;
  right: 26px;
  top: 22px;
  font-size: 64px;
  opacity: 0.65;
}

.mascot-card::after {
  content: "";
  position: absolute;
  right: -35px;
  bottom: -45px;
  width: 180px;
  height: 180px;
  border-radius: 45% 55% 50% 50%;
  background: rgba(255, 255, 255, 0.16);
}

.mascot-card h2 {
  margin: 88px 0 8px;
  font-size: 22px;
}

.mascot-card p,
.mascot-card span {
  color: rgba(255, 255, 255, 0.82);
}

.mascot-card strong {
  display: block;
  margin-top: 12px;
  font-size: 58px;
  line-height: 1;
  letter-spacing: -0.06em;
}

.moon {
  position: absolute;
  left: 28px;
  top: 28px;
  width: 74px;
  height: 74px;
  border-radius: 999px;
  background: #fff7b8;
  box-shadow: 0 0 50px rgba(255, 247, 184, 0.76);
}

.badge,
.tag {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 8px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.68);
  color: var(--primary-dark);
  font-weight: 900;
  font-size: 13px;
}

.tag {
  margin: 0 0 12px;
  color: var(--purple);
  font-size: 12px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin: 24px 0;
}

.event-grid,
.faq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
  margin-top: 24px;
}

.event-card {
  position: relative;
  min-height: 190px;
  padding: 24px;
  border: 1px solid rgba(255,255,255,0.78);
  border-radius: 28px;
  background:
    radial-gradient(circle at 90% 20%, rgba(56, 189, 248, 0.2), transparent 9rem),
    linear-gradient(135deg, rgba(255,255,255,0.8), rgba(248,247,255,0.68));
  box-shadow: var(--shadow);
  overflow: hidden;
}

.event-card.hot {
  background:
    radial-gradient(circle at 84% 16%, rgba(255, 247, 184, 0.38), transparent 9rem),
    linear-gradient(135deg, rgba(255, 95, 183, 0.2), rgba(139, 92, 246, 0.18)),
    rgba(255,255,255,0.78);
}

.event-card::after {
  content: "";
  position: absolute;
  right: -28px;
  bottom: -28px;
  width: 130px;
  height: 130px;
  border-radius: 36px;
  transform: rotate(18deg);
  background: linear-gradient(135deg, rgba(255,95,183,0.18), rgba(56,189,248,0.16));
}

.event-card h2 {
  margin: 10px 0;
  font-size: 28px;
  letter-spacing: -0.05em;
}

.feature {
  display: grid;
  gap: 8px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.66);
  box-shadow: 0 14px 42px rgba(139, 92, 246, 0.1);
}

.feature b {
  font-size: 18px;
}

.feature span {
  color: var(--muted);
  line-height: 1.6;
}

.products {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
  margin-top: 28px;
}

.product,
.panel {
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 28px;
  background: var(--card);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.product {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 300px;
  padding: 26px;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.product::after {
  content: "";
  position: absolute;
  right: -50px;
  top: -50px;
  width: 150px;
  height: 150px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(255, 95, 183, 0.2), rgba(139, 92, 246, 0.18));
}

.product:hover {
  transform: translateY(-4px);
  box-shadow: 0 32px 90px rgba(255, 95, 183, 0.2);
}

.product-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 12px;
}

.rarity {
  display: inline-flex;
  width: fit-content;
  margin: 0;
  padding: 8px 12px;
  border-radius: 999px;
  color: white !important;
  font-size: 12px;
  font-weight: 1000;
  line-height: 1;
  background: linear-gradient(135deg, #f59e0b, #ef4444, #8b5cf6);
  box-shadow: 0 10px 24px rgba(239, 68, 68, 0.2);
}

.rarity-ssr {
  border-color: rgba(245, 158, 11, 0.46);
  box-shadow: 0 28px 86px rgba(245, 158, 11, 0.18);
}

.rarity-sr {
  border-color: rgba(139, 92, 246, 0.42);
}

.rarity-r {
  border-color: rgba(56, 189, 248, 0.38);
}

.rarity-sr .rarity {
  background: linear-gradient(135deg, #8b5cf6, #38bdf8);
}

.rarity-r .rarity {
  background: linear-gradient(135deg, #38bdf8, #10b981);
}

.item-meta,
.loot-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 14px 0;
}

.item-meta span {
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.68);
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.product-detail {
  display: grid;
  grid-template-columns: 1fr 0.82fr;
  gap: 28px;
  align-items: start;
  background:
    radial-gradient(circle at 10% 12%, rgba(255, 95, 183, 0.14), transparent 12rem),
    radial-gradient(circle at 92% 18%, rgba(56, 189, 248, 0.16), transparent 12rem),
    rgba(255,255,255,0.76);
}

.loot-stats div {
  min-width: 120px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255,255,255,0.62);
}

.loot-stats b {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.loot-stats span {
  color: var(--primary-dark);
  font-weight: 1000;
}

.checkout-card {
  padding: 22px;
  border: 1px solid rgba(255,255,255,0.78);
  border-radius: 24px;
  background: rgba(255,255,255,0.68);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.8);
}

.timeline h2 {
  margin-bottom: 18px;
}

.timeline-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.timeline-grid div {
  padding: 18px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(255,255,255,0.82), rgba(248,247,255,0.7));
  border: 1px solid var(--line);
}

.timeline-grid b {
  display: block;
  color: var(--primary-dark);
  margin-bottom: 8px;
}

.timeline-grid span {
  color: var(--muted);
  line-height: 1.6;
}

.product h2,
.panel h1,
.panel h2 {
  margin-top: 0;
  letter-spacing: -0.05em;
}

.product p,
.panel p {
  color: var(--muted);
  line-height: 1.75;
}

.price {
  margin: 18px 0 8px;
  color: var(--primary-dark) !important;
  font-weight: 950;
  font-size: 34px;
  letter-spacing: -0.05em;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: var(--primary-dark);
  font: inherit;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 10px 26px rgba(255, 95, 183, 0.12);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(255, 95, 183, 0.2);
}

.button.primary {
  background: linear-gradient(135deg, var(--primary), var(--purple));
  color: white;
}

.button.light {
  background: white;
  color: var(--primary-dark);
}

.button.ghost {
  border: 1px solid rgba(255, 255, 255, 0.82);
  background: rgba(255, 255, 255, 0.45);
}

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

.panel {
  padding: 30px;
  margin-bottom: 24px;
}

.grid {
  display: grid;
  gap: 22px;
}

.grid.two {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.form {
  display: grid;
  gap: 16px;
  max-width: 620px;
}

label {
  display: grid;
  gap: 8px;
  color: #56456f;
  font-weight: 900;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 14px 15px;
  outline: none;
  font: inherit;
  background: rgba(255, 255, 255, 0.82);
}

input:focus,
textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 5px rgba(255, 95, 183, 0.14);
}

select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 5px rgba(255, 95, 183, 0.14);
}

.muted {
  color: var(--muted) !important;
}

.card-list {
  display: grid;
  gap: 10px;
}

code {
  display: block;
  padding: 14px 16px;
  border: 1px solid rgba(56, 189, 248, 0.36);
  border-radius: 18px;
  background: rgba(240, 249, 255, 0.8);
  color: #075985;
  font-weight: 900;
  white-space: pre-wrap;
}

.pay,
.app-panel {
  text-align: center;
}

.app-panel code {
  margin: 18px auto;
  text-align: left;
}

.admin-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}

.admin-stats {
  margin-top: 0;
}

.notice-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 14px 40px rgba(255, 95, 183, 0.1);
}

.notice-bar strong {
  color: var(--primary-dark);
  white-space: nowrap;
}

.anime-carousel {
  position: relative;
  min-height: 320px;
  border-radius: 32px;
  overflow: hidden;
  box-shadow: 0 26px 70px rgba(139, 92, 246, 0.22);
}

.anime-carousel img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
  display: block;
  transform: scale(1.02);
}

.carousel-caption {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  display: grid;
  gap: 6px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(14px);
}

.carousel-caption b {
  color: var(--primary-dark);
}

.carousel-caption span {
  color: var(--muted);
}

.category-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 24px 0 6px;
}

.category-tabs a {
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.68);
  color: var(--muted);
  font-weight: 900;
}

.category-tabs a.active,
.category-tabs a:hover {
  color: white;
  background: linear-gradient(135deg, var(--primary), var(--purple));
}

.login-panel {
  max-width: 520px;
  margin: 60px auto;
}

.inline-form {
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  max-width: none;
  align-items: end;
  margin-bottom: 18px;
}

.table-form {
  display: grid;
  grid-template-columns: 1.6fr 1fr 120px auto auto auto;
  gap: 10px;
  align-items: center;
}

.check {
  display: inline-flex;
  align-items: center;
  grid-auto-flow: column;
  width: fit-content;
}

.check input {
  width: auto;
}

td form {
  margin: 0;
}

table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  font-size: 14px;
}

th,
td {
  padding: 13px 10px;
  border-bottom: 1px solid rgba(255, 139, 203, 0.2);
  text-align: left;
}

th {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

td a {
  color: var(--primary-dark);
  font-weight: 900;
}

.footer {
  width: min(1120px, calc(100% - 32px));
  margin: 20px auto 40px;
  color: var(--muted);
  text-align: center;
  font-size: 13px;
}

@media (max-width: 760px) {
  .topbar,
  .admin-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero {
    grid-template-columns: 1fr;
    padding: 30px 22px;
    border-radius: 26px;
  }

  .hero::after {
    display: none;
  }

  .mascot-card {
    min-height: 230px;
  }

  .anime-carousel,
  .anime-carousel img {
    min-height: 250px;
  }

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

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

  .notice-bar {
    align-items: flex-start;
    flex-direction: column;
  }

  .panel {
    padding: 22px;
    overflow-x: auto;
  }
}
