:root {
  --blue: #087bff;
  --navy: #090b37;
  --muted: #8088a1;
  --line: #edf0f6;
  --gradient: linear-gradient(110deg, #36b1f7, #0664ff);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  color: var(--navy);
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Microsoft YaHei", sans-serif;
  background: #f2f9fe;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
  border: 0;
}
input,
select,
textarea {
  color: var(--navy);
  max-width: 100%;
}
button:disabled {
  opacity: 0.55;
  cursor: wait;
}
h1,
h2,
h3,
h4,
p {
  margin: 0;
}
h1 {
  font-size: 29px;
  letter-spacing: 1px;
}
h2 {
  font-size: 22px;
}
h3 {
  font-size: 18px;
  line-height: 1.45;
}
p {
  line-height: 1.7;
}
small,
.small {
  font-size: 12px;
}
.muted,
small {
  color: var(--muted);
}
.red {
  color: #fa1a66;
}
.blue {
  color: var(--blue);
}
.green {
  color: #11a879;
}
.icon {
  width: 23px;
  height: 23px;
  vertical-align: middle;
  flex: none;
}
.app-shell {
  max-width: 480px;
  min-height: 100dvh;
  margin: auto;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 60% 10%, #e0f3ff 0, transparent 43%),
    linear-gradient(125deg, #f3fbff, #eff9ff 60%, #f8fcff);
}
.app-shell:before {
  content: "";
  position: absolute;
  width: 290px;
  height: 290px;
  border: 30px solid #ffffff65;
  border-radius: 50%;
  right: -150px;
  top: -195px;
  pointer-events: none;
}
.mobile-main {
  padding: 22px 16px 115px;
  position: relative;
}
.page-header {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 60px;
  margin-bottom: 22px;
  position: relative;
}
.page-header h1 {
  flex: 1;
  font-size: 23px;
  text-align: center;
}
.page-header.major h1 {
  text-align: left;
  font-size: 30px;
}
.page-header .header-right {
  margin-left: auto;
}
.back {
  padding: 8px;
  margin-left: -8px;
}
.card {
  border-radius: 16px;
  background: #ffffffed;
  padding: 18px 16px;
  margin-bottom: 15px;
  box-shadow: 0 6px 22px #2198eb09;
}
.line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.grow {
  flex: 1;
  min-width: 0;
}
.grid {
  display: grid;
  gap: 12px;
}
.grid.two {
  grid-template-columns: 1fr 1fr;
}
.grid.three {
  grid-template-columns: repeat(3, 1fr);
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 44px;
  padding: 11px 20px;
  border-radius: 26px;
  background: var(--gradient);
  color: white;
  font-weight: 600;
  font-size: 16px;
  line-height: 1.35;
  text-align: center;
  border: 1px solid transparent;
}
.button.outline {
  background: white;
  color: var(--blue);
  border-color: var(--blue);
}
.button.soft {
  background: #e9f3fc;
  color: #63718b;
}
.button.danger {
  background: #fff0f3;
  color: #e44360;
}
.button.small {
  min-height: 32px;
  padding: 6px 12px;
  font-size: 13px;
}
.wide {
  width: 100%;
}
.link {
  background: none;
  color: var(--blue);
  padding: 4px;
}
.actions {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
  margin-top: 16px;
}
.actions > * {
  flex: 1;
  white-space: nowrap;
}
.badge {
  display: inline-block;
  background: #e7f2ff;
  color: var(--blue);
  font-size: 13px;
  padding: 5px 11px;
  border-radius: 14px;
  white-space: nowrap;
}
.badge.orange {
  background: #fff1e0;
  color: #ea882a;
}
.badge.green {
  background: #e7f8ed;
  color: #2a9a4c;
}
.search {
  display: flex;
  align-items: center;
  gap: 10px;
  background: white;
  border-radius: 16px;
  padding: 12px 15px;
  margin-bottom: 14px;
  color: var(--muted);
}
.search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: none;
  background: none;
}
.search button {
  background: var(--gradient);
  color: white;
  border-radius: 18px;
  padding: 6px 12px;
  font-size: 13px;
  white-space: nowrap;
}
.tabs {
  display: flex;
  gap: 7px;
  margin: 12px 0 18px;
  overflow: auto;
  scrollbar-width: none;
}
.tabs a {
  padding: 10px 9px;
  border-radius: 22px;
  background: #e5eff88c;
  color: #727e96;
  flex: 1;
  text-align: center;
  white-space: nowrap;
}
.tabs a.active {
  background: var(--gradient);
  color: #fff;
  font-weight: 600;
}
.product-row {
  display: flex;
  gap: 12px;
  align-items: center;
  margin: 14px 0;
}
.product-image {
  width: 78px;
  height: 78px;
  object-fit: cover;
  background: #dfedfa;
  border-radius: 10px;
  overflow: hidden;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
}
.product-image svg {
  width: 100%;
  height: 100%;
  display: block;
}
.product-image.hero {
  width: 100%;
  height: 210px;
  margin-bottom: 14px;
  border-radius: 15px;
}
.product-row h3 {
  font-size: 17px;
  margin-bottom: 6px;
}
.price {
  text-align: right;
  flex: none;
}
.price small {
  display: block;
  margin-bottom: 4px;
}
.price b {
  color: #fa1466;
  font-size: 20px;
}
.order-note {
  display: flex;
  gap: 12px;
  border-top: 1px solid var(--line);
  padding: 14px 0 16px;
  font-size: 14px;
}
.order-note > .icon {
  color: var(--muted);
}
.order-note p {
  margin-top: 6px;
}
.info-row {
  display: flex;
  align-items: center;
  gap: 15px;
  justify-content: space-between;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
}
.info-row:last-child {
  border: 0;
}
.info-row > span {
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.info-row > strong {
  text-align: right;
  font-weight: 500;
  overflow-wrap: anywhere;
}
.hint {
  background: #edf6ff;
  border-radius: 12px;
  padding: 16px;
  color: var(--blue);
  font-size: 14px;
  margin: 16px 0;
}
.footnote {
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  margin: 18px 0;
}
.bottom-nav {
  position: fixed;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 32px);
  max-width: 448px;
  padding: 10px 8px;
  background: #fffffff0;
  border: 1px solid white;
  box-shadow: 0 6px 35px #269aff16;
  backdrop-filter: blur(16px);
  border-radius: 34px;
  display: flex;
  z-index: 20;
}
.bottom-nav a {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  color: #7b8198;
  font-size: 13px;
}
.bottom-nav .icon {
  width: 25px;
  height: 25px;
}
.bottom-nav a.active {
  color: var(--blue);
  font-weight: 700;
}
.avatar {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(140deg, #63b7fc, #087bff);
  color: white;
  font-size: 32px;
  flex: none;
}
.avatar.orange {
  background: linear-gradient(140deg, #ffb966, #fb9938);
}
.avatar.purple {
  background: #938bfa;
}
.avatar.small {
  width: 38px;
  height: 38px;
  font-size: 19px;
}
.profile {
  display: flex;
  align-items: center;
  gap: 16px;
}
.profile h2 {
  margin-bottom: 5px;
}
.profile .badge {
  margin-top: 7px;
}
.stats {
  display: flex;
  justify-content: space-around;
  margin: 23px 0;
}
.stat {
  text-align: center;
}
.stat b {
  display: block;
  font-size: 24px;
  margin-bottom: 6px;
}
.stat span {
  color: var(--muted);
  font-size: 13px;
}
.menu-tile {
  background: #f6f9fc;
  border-radius: 12px;
  padding: 17px 8px;
  text-align: center;
  font-size: 14px;
  display: block;
}
.menu-tile .icon {
  display: block;
  color: var(--blue);
  width: 30px;
  height: 30px;
  margin: 0 auto 12px;
}
.menu-tile img {
  width: 45px;
  height: 45px;
  object-fit: cover;
  display: block;
  margin: 0 auto 9px;
}
.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 5px 0 15px;
}
.section-title .icon {
  color: var(--blue);
  margin-right: 8px;
}
.money-large {
  font-size: 42px;
  font-weight: 750;
  line-height: 1.4;
  margin: 14px 0;
}
.field {
  display: block;
  margin-bottom: 18px;
}
.field > span {
  display: block;
  font-weight: 600;
  margin-bottom: 9px;
}
.field input:not([type="checkbox"]):not([type="file"]),
.field textarea,
.field select {
  width: 100%;
  border: 1px solid #dde5ef;
  border-radius: 8px;
  padding: 11px 12px;
  background: #fafcff;
  outline: none;
}
.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: var(--blue);
}
.field textarea {
  resize: vertical;
  min-height: 95px;
}
.field small {
  display: block;
  margin-top: 7px;
  line-height: 1.5;
}
.field [type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: var(--blue);
}
.field [type="file"] {
  font-size: 13px;
  width: 100%;
  margin-top: 9px;
}
.field select[multiple] {
  min-height: 115px;
}
.form-error {
  color: #de3457;
  margin: 10px 0;
  font-size: 14px;
}
.prize {
  border: 1px solid var(--line);
  border-radius: 12px;
  margin: 12px 0;
}
.empty {
  text-align: center;
  padding: 45px 15px;
  color: var(--muted);
}
.empty .icon {
  width: 42px;
  height: 42px;
  color: #afcfe9;
  margin-bottom: 12px;
}
.evidence,
.upload-preview {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 12px 0;
}
.evidence img,
.upload-preview img {
  width: 110px;
  height: 110px;
  object-fit: cover;
  border-radius: 10px;
}
.vip {
  background: linear-gradient(110deg, #82ceff, #d8f3ff, #8ac9ff);
  padding: 18px;
  border-radius: 12px;
  margin-bottom: 15px;
}
.banner-list {
  display: flex;
  overflow: auto;
  gap: 10px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.banner-list > a {
  width: 100%;
  flex-shrink: 0;
  scroll-snap-align: center;
}
.banner-list img {
  width: 100%;
  height: 185px;
  object-fit: cover;
  border-radius: 14px;
}
.chat-order {
  font-size: 13px;
}
.chat-order strong {
  overflow-wrap: anywhere;
}
.chat-log {
  min-height: 40vh;
  padding-bottom: 130px;
}
.message {
  display: flex;
  gap: 10px;
  margin: 24px 0;
  align-items: flex-start;
}
.message.mine {
  flex-direction: row-reverse;
}
.bubble {
  max-width: 78%;
  background: white;
  border-radius: 14px;
  padding: 12px;
  font-size: 15px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
.message.mine .bubble {
  background: var(--gradient);
  color: #fff;
}
.bubble small {
  display: block;
  color: #8b9bb0;
  margin-bottom: 5px;
}
.message.mine small {
  color: #e2f0ff;
}
.bubble img {
  max-width: 100%;
  max-height: 260px;
  border-radius: 6px;
}
.bubble audio {
  max-width: 230px;
  width: 100%;
}
.system-message {
  text-align: center;
  color: #8a95aa;
  font-size: 12px;
  margin: 15px auto;
}
.chat-composer {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  background: #fffffff5;
  padding: 14px 14px 22px;
  z-index: 30;
  border-radius: 20px 20px 0 0;
  box-shadow: 0 -5px 20px #62a3d50d;
}
.chat-composer .line input {
  flex: 1;
  min-width: 0;
  background: #f0f4f9;
  border: 0;
  border-radius: 20px;
  padding: 13px;
}
.chat-tools {
  display: flex;
  gap: 12px;
  margin: 8px 0;
  align-items: center;
  flex-wrap: wrap;
}
.chat-tools label {
  cursor: pointer;
}
.chat-tools input {
  display: none;
}
.chat-tools select {
  border: 1px solid #ddd;
  border-radius: 7px;
  padding: 5px;
  width: 150px;
}
.progress {
  height: 9px;
  background: #d2e6ff;
  border-radius: 9px;
  overflow: hidden;
  margin: 13px 0;
}
.progress i {
  display: block;
  height: 100%;
  background: var(--gradient);
}
.hero-level {
  background: var(--gradient);
  color: white;
}
.hero-level small {
  color: #e4f3ff;
}
.toast {
  position: fixed;
  left: 50%;
  top: 20px;
  transform: translateX(-50%);
  padding: 12px 20px;
  background: #12223dec;
  color: white;
  border-radius: 10px;
  z-index: 100;
  max-width: 90%;
  text-align: center;
}
.admin-body {
  background: #f3f6fb;
}
.sidebar {
  position: fixed;
  width: 228px;
  top: 0;
  bottom: 0;
  background: #fff;
  border-right: 1px solid #e9edf5;
  padding: 25px 15px;
  overflow-y: auto;
}
.brand {
  font-size: 21px;
  font-weight: 700;
  color: #1473ed;
  margin-bottom: 25px;
}
.sidebar summary {
  padding: 12px 10px;
  cursor: pointer;
  font-size: 14px;
  color: #59657c;
}
.sidebar a {
  display: block;
  padding: 11px 16px;
  border-radius: 7px;
  margin: 2px 0;
  font-size: 14px;
  color: #63718a;
}
.sidebar a.active {
  background: #edf4ff;
  color: #0a70ed;
}
.admin-content {
  margin-left: 228px;
  padding: 24px 30px;
  max-width: 1700px;
}
.admin-top {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  margin-bottom: 26px;
}
.admin-top h1 {
  font-size: 24px;
}
.admin-content .card {
  border-radius: 10px;
  padding: 24px;
}
.table-wrap {
  overflow-x: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  text-align: left;
}
th {
  background: #f6f8fc;
  color: #7a869e;
  font-weight: 500;
}
th,
td {
  padding: 15px 12px;
  border-bottom: 1px solid var(--line);
}
td {
  max-width: 260px;
  overflow-wrap: anywhere;
}
td .actions {
  margin: 0;
}
.admin-form {
  max-width: 820px;
}
.admin-stats {
  grid-template-columns: repeat(4, 1fr);
  margin-bottom: 22px;
}
.admin-stats .card b {
  display: block;
  font-size: 32px;
  margin-top: 15px;
}
.menu-toggle {
  display: none;
}
.login-panel {
  padding-top: 80px;
}
.login-panel h1 {
  margin-bottom: 12px;
}
.login-panel > .card {
  margin-top: 30px;
}
.list-row {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}
.list-row:last-child {
  border: 0;
}
.list-row .icon {
  color: var(--blue);
}
.detail-text {
  white-space: pre-wrap;
  line-height: 1.9;
  margin-top: 18px;
}
.page-actions {
  margin-top: 30px;
}
.rank-number {
  font-size: 20px;
  font-weight: 700;
  color: var(--blue);
  min-width: 28px;
}
.pill-icons {
  display: flex;
  justify-content: space-around;
  margin: 15px 0 22px;
}
.pill-icons a {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 10px;
  color: #788399;
}
.pill-icons .icon {
  width: 31px;
  height: 31px;
  margin: auto;
}
.pill-icons a.active {
  color: var(--blue);
}
.pill-icons a.active:after {
  content: "";
  height: 4px;
  width: 40px;
  margin: auto;
  border-radius: 5px;
  background: var(--gradient);
}
@media (max-width: 800px) {
  .sidebar {
    transform: translateX(-100%);
    z-index: 50;
    transition: transform 0.2s;
    box-shadow: 0 0 30px #13334a22;
  }
  .sidebar.open {
    transform: none;
  }
  .admin-content {
    margin: 0;
    padding: 20px 14px;
  }
  .menu-toggle {
    display: block;
  }
  .admin-stats {
    grid-template-columns: 1fr 1fr;
  }
  .admin-top h1 {
    font-size: 21px;
  }
  .admin-top {
    gap: 8px;
  }
  .admin-content .card {
    padding: 16px;
  }
  .admin-top .small {
    font-size: 11px;
  }
  .price b {
    font-size: 18px;
  }
}
@media (min-width: 600px) {
  .app-shell {
    box-shadow: 0 0 60px #99b9d726;
    min-height: 100vh;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
