:root {
  color-scheme: light;
  --bg: #f4f6fb;
  --surface: #ffffff;
  --surface-2: #f7f9fd;
  --text: #111827;
  --muted: #6b7280;
  --line: #e5e7eb;
  --accent: #111827;
  --accent-soft: #eef2ff;
  --accent-blue: #3b82f6;
  --accent-purple: #8b5cf6;
  --shadow: 0 12px 30px rgba(17, 24, 39, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, #fbfcff 0%, var(--bg) 100%);
  min-height: 100vh;
}

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

.page-shell {
  width: min(1160px, calc(100% - 24px));
  margin: 0 auto;
  padding: 16px 0 28px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
  letter-spacing: 0.04em;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
  color: white;
  font-size: 0.92rem;
}

.brand-logo {
  width: 32px;
  height: 32px;
  object-fit: contain;
  border-radius: 50%;
  background: var(--surface);
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.pill-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border-radius: 999px;
  text-decoration: none;
  color: var(--accent);
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 0.92rem;
}

.pill-link--muted {
  background: var(--surface-2);
}

.hero {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 18px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 24px;
  background: linear-gradient(145deg, rgba(255,255,255,0.96), rgba(247,249,253,0.96));
  box-shadow: var(--shadow);
}

.eyebrow,
.section-eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--accent-blue);
  margin: 0 0 8px;
}

.hero h1 {
  font-size: clamp(1.45rem, 2.6vw, 2.25rem);
  line-height: 1.2;
  margin: 0 0 10px;
}

.lead {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
  font-size: 1rem;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
}

.btn-primary {
  background: var(--accent);
  color: white;
}

.btn-secondary {
  color: var(--accent);
  background: var(--accent-soft);
}

.hero-panel {
  background: linear-gradient(135deg, var(--surface), var(--surface-2));
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 18px;
}

.hero-panel__stat {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.hero-panel__label {
  color: var(--accent-blue);
  font-size: 0.95rem;
  margin-bottom: 12px;
}

.hero-panel__items {
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: var(--muted);
  font-size: 0.95rem;
}

.search-panel {
  margin: 16px 0 20px;
  padding: 8px 8px;
  border-radius: 16px;
  border: 0;
  background: var(--surface);
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 6px 20px rgba(17, 24, 39, 0.06);
}

.search-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
  color: white;
  font-size: 1.05rem;
  font-weight: 700;
}

.search-title {
  margin: 0 0 2px;
  font-weight: 600;
}

.search-text {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* ====== 首页搜索输入 + 下拉结果 ====== */
.search-panel--with-input {
  position: relative;
  flex-wrap: wrap;
}
.search-panel-body {
  flex: 1;
  min-width: 0;
  position: relative;
}
.search-input {
  display: block;
  width: 100%;
  margin-top: 4px;
  padding: 12px 48px 12px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--text);
  background: var(--surface);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
}
.search-input::placeholder { color: var(--muted); }
.search-input:focus {
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
}
.search-submit {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  display: grid;
  place-items: center;
  border-radius: 8px;
  padding: 0;
  transition: color 0.15s, background 0.15s;
}
.search-submit:hover { color: var(--accent-blue); background: var(--accent-soft); }
.search-submit svg { width: 18px; height: 18px; }
.search-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 12px 32px rgba(17, 24, 39, 0.12);
  z-index: 50;
  max-height: 360px;
  overflow-y: auto;
  padding: 6px 0;
}
.search-dropdown[hidden] {
  display: none;
}
.search-dropdown-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.search-dropdown-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  cursor: pointer;
  transition: background 0.15s;
}
.search-dropdown-item:hover {
  background: var(--surface-2);
}
.search-dropdown-thumb {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  object-fit: cover;
  background: #f0f0f0;
  flex-shrink: 0;
  display: block;
}
.search-dropdown-thumb--placeholder {
  background: linear-gradient(135deg, #f0f0f0, #e5e5e5);
}
.search-dropdown-text {
  flex: 1;
  min-width: 0;
}
.search-dropdown-text strong {
  display: block;
  font-size: 0.92rem;
  color: var(--text);
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-weight: 600;
}
.search-dropdown-text small {
  display: block;
  margin-top: 2px;
  font-size: 0.78rem;
  color: var(--muted);
}
.search-dropdown-more {
  display: block;
  padding: 12px 14px;
  text-align: center;
  color: var(--accent-blue);
  font-size: 0.85rem;
  text-decoration: none;
  border-top: 1px solid var(--line);
  font-weight: 500;
}
.search-dropdown-more:hover {
  background: var(--accent-soft);
}
.search-dropdown-empty {
  margin: 0;
  padding: 16px;
  text-align: center;
  color: var(--muted);
  font-size: 0.88rem;
}

.poster-card {
  margin-top: 20px;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.poster-card img {
  width: 100%;
  height: auto;
  display: block;
}

.topic-section {
  margin-top: 24px;
}

.topic-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.topic-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 140px;
  padding: 18px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, border-color 0.25s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.topic-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-blue);
}

.topic-card.active {
  border-color: var(--accent-blue);
  background: rgba(59, 130, 246, 0.08);
}

.topic-card p {
  margin: 0 0 8px;
  font-size: 1rem;
  font-weight: 700;
}

.topic-card span {
  color: var(--muted);
  font-size: 0.92rem;
}

/* ====== 专题筛选页 ====== */
.cat-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px 0 14px;
}
.cat-back {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--accent-blue);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  white-space: nowrap;
}
.cat-back:hover {
  text-decoration: underline;
}
.cat-title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
}
.cat-desc {
  display: none;
  flex: 1;
  min-width: 0;
  margin: 0;
  font-size: 0.86rem;
  color: var(--muted);
  line-height: 1.5;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cat-work-count {
  display: none;
  flex-shrink: 0;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent-blue);
  background: var(--accent-soft);
  padding: 3px 12px;
  border-radius: 20px;
}
.cat-search-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  margin-bottom: 16px;
  box-shadow: 0 4px 12px rgba(17, 24, 39, 0.04);
}
.cat-search-icon {
  font-size: 1.1rem;
  flex-shrink: 0;
}
.cat-search-input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--text);
  background: transparent;
  min-width: 0;
}
.cat-search-input::placeholder {
  color: #b0b0b0;
}
.cat-search-count {
  flex-shrink: 0;
  font-size: 0.82rem;
  color: var(--muted);
  padding: 3px 10px;
  background: var(--surface-2);
  border-radius: 20px;
}

@media (max-width: 640px) {
  .cat-header {
    padding: 6px 0 12px;
  }
  .cat-title {
    font-size: 1.1rem;
  }
  .cat-search-bar {
    padding: 8px 12px;
    gap: 8px;
  }
}

/* ====== 首页内容渲染 ====== */

.section {
  margin-top: 24px;
}

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

.section-head h2 {
  margin: 0;
  font-size: clamp(1.08rem, 2vw, 1.32rem);
}

.section-head a {
  color: var(--accent-blue);
  text-decoration: none;
  font-size: 0.95rem;
}

.section-empty {
  margin: 8px 0 0;
  padding: 28px 0;
  text-align: center;
  color: var(--muted);
  font-size: 0.92rem;
  background: var(--surface);
  border: 1px dashed var(--line);
  border-radius: 16px;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.product-card,
.feature-card,
.testimonial-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.thumb {
  min-height: 168px;
  background-size: cover;
  background-position: center;
}

/* 封面图元素：桌面端沿用背景图方案，移动端用它撑开高度 */
.thumb-img {
  display: none;
}

.thumb-a {
  background: linear-gradient(135deg, #f59e0b, #ef4444 60%, #8b5cf6);
}

.thumb-b {
  background: linear-gradient(135deg, #3b82f6, #8b5cf6 60%, #ec4899);
}

.thumb-c {
  background: linear-gradient(135deg, #0f766e, #14b8a6 60%, #38bdf8);
}

.thumb-d {
  background: linear-gradient(135deg, #111827, #4338ca 60%, #f472b6);
}

.thumb-e {
  background: linear-gradient(135deg, #f43f5e, #fb923c 60%, #fde68a);
}

.thumb-f {
  background: linear-gradient(135deg, #4f46e5, #06b6d4 60%, #22c55e);
}

.card-body {
  padding: 14px;
}

.card-body h3 {
  margin: 0 0 8px;
  font-size: 1rem;
}

.card-body p,
.card-body span {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

.card-body span {
  display: inline-block;
  margin-top: 8px;
  color: var(--accent-blue);
}

.feature-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 24px;
}

.feature-card {
  padding: 16px;
}

.feature-card h3 {
  margin: 0 0 8px;
  font-size: 1rem;
}

.feature-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
  font-size: 0.95rem;
}

.stats-section {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.stat-item {
  padding: 16px;
  border-radius: 18px;
  background: linear-gradient(135deg, #ffffff, #f8fbff);
  border: 1px solid var(--line);
  text-align: center;
}

.stat-item strong {
  display: block;
  font-size: 1.2rem;
  margin-bottom: 6px;
}

.stat-item span {
  color: var(--muted);
  font-size: 0.95rem;
}

.footer {
  margin-top: 24px;
  padding: 10px 0 4px;
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
}

/* ====== 弹窗 ====== */
.modal-overlay {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: rgba(17, 24, 39, 0.45);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 1500;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.modal-overlay.active {
  display: flex !important;
}
.modal-dialog {
  width: 100%;
  max-width: 400px;
  max-height: calc(100vh - 48px);
  background: #ffffff;
  border-radius: 20px;
  padding: 28px 24px 24px;
  box-shadow: 0 24px 60px rgba(17, 24, 39, 0.18);
  position: relative;
  animation: modalIn 0.25s ease;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
}
.modal-dialog img {
  max-width: 100%;
  height: auto;
}
.modal-dialog--lg {
  max-width: 480px;
}
@keyframes modalIn {
  from { opacity: 0; transform: translateY(16px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.modal-close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--muted);
  cursor: pointer;
  line-height: 1;
  padding: 4px;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  transition: background 0.2s;
}
.modal-close:hover { background: var(--accent-soft); }
.modal-title {
  margin: 0 0 20px;
  font-size: 1.2rem;
  text-align: center;
}

/* ====== VIP 升级 · 支付方式选择 ====== */
.modal-dialog--payway {
  max-width: 420px;
}
.payway-summary {
  margin-bottom: 14px;
  padding: 12px 14px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.06), rgba(236, 72, 153, 0.06));
  border: 1px solid rgba(99, 102, 241, 0.18);
  border-radius: 10px;
  text-align: center;
}
.payway-summary__pkg {
  font-size: 0.95rem;
  font-weight: 600;
  color: #4f46e5;
  margin-bottom: 6px;
}
.payway-summary__amount {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 4px;
}
.payway-summary__amount b {
  color: #ea580c;
  font-size: 1.05rem;
  font-weight: 700;
}
.payway-summary__balance {
  font-size: 0.78rem;
  color: var(--muted);
}
.payway-summary__balance b {
  color: #4f46e5;
  font-weight: 600;
}
.payway-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 12px;
}
.payway-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid rgba(99, 102, 241, 0.22);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  transition: all 0.18s ease;
}
.payway-item:hover {
  border-color: #6366f1;
  background: rgba(99, 102, 241, 0.04);
  transform: translateY(-1px);
}
.payway-item--disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.payway-item--disabled:hover {
  border-color: rgba(99, 102, 241, 0.22);
  background: #fff;
  transform: none;
}
.payway-item__icon {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: #fff;
}
.payway-item__icon svg {
  width: 22px;
  height: 22px;
}
.payway-item__icon--coin {
  background: linear-gradient(135deg, #f59e0b, #d97706);
}
.payway-item__icon--alipay {
  background: linear-gradient(135deg, #1677ff, #0958d9);
}
.payway-item__icon--mixed {
  background: linear-gradient(135deg, #8b5cf6, #6366f1);
}
.payway-item__main {
  flex: 1;
  min-width: 0;
}
.payway-item__title {
  font-size: 0.95rem;
  font-weight: 600;
  color: #1d1d1f;
  margin-bottom: 2px;
}
.payway-item__sub {
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.4;
}
.payway-item__sub b {
  color: #ea580c;
  font-weight: 600;
}
/* ====== 闲置专区购买 · 收货地址 ====== */
.payway-address {
  margin-bottom: 14px;
}
.payway-address__title {
  font-size: 0.85rem;
  font-weight: 600;
  color: #4f46e5;
  margin-bottom: 8px;
}
.payway-address__list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 8px;
}
.payway-addr-item {
  padding: 10px 12px;
}
.payway-item--selected {
  border-color: #6366f1;
  background: rgba(99, 102, 241, 0.06);
}
.payway-addr-tag {
  display: inline-block;
  padding: 1px 6px;
  border-radius: 4px;
  background: rgba(99, 102, 241, 0.12);
  color: #4f46e5;
  font-size: 0.7rem;
  font-weight: 600;
  vertical-align: middle;
}
.payway-address__input {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 12px;
  border: 1px solid rgba(99, 102, 241, 0.25);
  border-radius: 8px;
  font-size: 0.85rem;
  font-family: inherit;
  margin-bottom: 8px;
  transition: border-color 0.18s ease;
}
.payway-address__input:focus {
  outline: none;
  border-color: #6366f1;
}
.payway-address__linkbtn {
  background: none;
  border: none;
  padding: 0;
  margin: 2px 0 0;
  color: #4f46e5;
  font-size: 0.8rem;
  font-family: inherit;
  cursor: pointer;
}
.payway-address__linkbtn:hover {
  text-decoration: underline;
}
/* ====== 最高价套餐 · 邮寄福利提示与地址弹窗 ====== */
.ship-notice-text {
  margin: 6px 0 22px;
  color: #374151;
  font-size: 0.95rem;
  line-height: 1.7;
  text-align: center;
}
.ship-notice-actions {
  display: flex;
  gap: 12px;
}
.ship-notice-actions .btn {
  flex: 1;
}
.reg-invite-tip {
  margin: -6px 0 16px;
  padding: 8px 12px;
  background: linear-gradient(135deg, rgba(229, 62, 105, 0.08), rgba(255, 159, 67, 0.08));
  border: 1px solid rgba(229, 62, 105, 0.22);
  border-radius: 8px;
  color: #e53e69;
  font-size: 0.78rem;
  line-height: 1.5;
  text-align: center;
}

/* ====== 表单 ====== */
.field {
  margin-bottom: 14px;
}
.field label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--text);
}
.field label .req-star {
  color: #e11d48;
  margin-left: 2px;
}
.field input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--text);
  background: var(--surface-2);
  transition: border-color 0.2s;
  outline: none;
  box-sizing: border-box;
}
.field input:focus {
  border-color: var(--accent-blue);
  background: var(--surface);
}
.form-msg {
  margin: 0 0 12px;
  font-size: 0.88rem;
  min-height: 20px;
}
.form-switch {
  margin: 14px 0 0;
  text-align: center;
  font-size: 0.9rem;
  color: var(--muted);
}
.form-switch a {
  color: var(--accent-blue);
  text-decoration: none;
  font-weight: 600;
}

/* ====== 用户个人中心 ====== */
.user-center {
  margin-top: 24px;
  margin-bottom: 24px;
}
.uc-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 24px;
  align-items: start;
}
.uc-side {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px 16px;
  box-shadow: var(--shadow);
}
.uc-profile {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 12px;
}
.uc-avatar {
  position: relative;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, #e5e7eb, #d1d5db);
  color: #9ca3af;
  display: grid;
  place-items: center;
  margin-bottom: 10px;
  overflow: hidden;
}
.uc-avatar-upload {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--line);
  font-size: 0.7rem;
  cursor: pointer;
  display: grid;
  place-items: center;
  padding: 0;
  line-height: 1;
}
/* VIP 头像徽章：色环 + 皇冠角标 + 档位文字 */
.uc-avatar--vip {
  background: linear-gradient(135deg,
    color-mix(in srgb, var(--vip-c) 22%, #ffffff),
    color-mix(in srgb, var(--vip-c) 44%, #ffffff)) !important;
  color: var(--vip-c) !important;
  box-shadow: 0 0 0 3px var(--vip-c),
              0 0 0 7px color-mix(in srgb, var(--vip-c) 22%, transparent),
              0 6px 18px color-mix(in srgb, var(--vip-c) 42%, transparent);
}
.uc-avatar-crown {
  position: absolute;
  top: 3px;
  right: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ffe08a, #d4a106);
  color: #7a4e00;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0,0,0,.25);
  z-index: 2;
}
.uc-avatar-crown svg { width: 13px; height: 13px; }
.uc-name-line {
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}
.uc-vip-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 999px;
  color: #fff;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: .5px;
  box-shadow: 0 2px 8px rgba(0,0,0,.18);
  white-space: nowrap;
}
.uc-vip-chip__crown { display: inline-flex; width: 14px; height: 14px; }
.uc-vip-chip__crown svg { width: 100%; height: 100%; }
.uc-name {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
}
.uc-menu {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.uc-menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 8px;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: background 0.2s, color 0.2s;
  cursor: pointer;
}
.uc-menu-item:hover {
  background: var(--surface-2);
  color: var(--text);
}
.uc-menu-item.active {
  background: var(--accent-soft);
  color: var(--accent-blue);
  font-weight: 600;
}
.uc-menu-item--logout {
  margin-top: 8px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
  color: #ef4444;
}
.uc-menu-icon {
  font-size: 1.05rem;
  flex-shrink: 0;
}
.uc-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.uc-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
  gap: 16px;
}
.uc-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px;
  box-shadow: var(--shadow);
}
.uc-card-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.uc-card-row {
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.uc-card-num {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1;
}
.uc-card-num--text {
  font-size: 1.15rem;
}
.uc-card-unit {
  color: var(--muted);
  font-size: 0.85rem;
}
.uc-card-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--muted);
}
.uc-card-meta a {
  color: var(--accent-blue);
  text-decoration: none;
  font-size: 0.82rem;
}
.uc-card-tip {
  position: absolute;
  top: 8px;
  right: 12px;
  font-size: 0.72rem;
  color: var(--muted);
}
.uc-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 24px;
  box-shadow: var(--shadow);
}
.uc-panel-title {
  margin: 0 0 16px;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
}
.uc-empty {
  padding: 40px 0;
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
}
.uc-empty a {
  color: var(--accent-blue);
  text-decoration: none;
}

/* 地址管理 */
.uc-addr-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.uc-addr-count {
  font-size: 0.82rem;
  color: var(--muted);
}
.uc-addr-add {
  border: 1px solid var(--accent-blue);
  color: var(--accent-blue);
  background: transparent;
  border-radius: 8px;
  padding: 6px 14px;
  font-size: 0.85rem;
  cursor: pointer;
}
.uc-addr-add:hover {
  background: rgba(37, 99, 235, 0.06);
}
.uc-addr-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.uc-addr-item {
  border-radius: 10px;
}
.uc-addr-swiper {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}
.uc-addr-content {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 12px 14px;
  background: #fff;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  touch-action: pan-y;
  transition: transform 0.2s ease;
}
.uc-addr-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}
.uc-addr-name {
  font-weight: 600;
  color: var(--text);
  font-size: 0.92rem;
}
.uc-addr-phone {
  color: var(--muted);
  font-size: 0.85rem;
}
.uc-addr-badge {
  font-size: 0.7rem;
  color: #fff;
  background: var(--accent-blue);
  padding: 1px 7px;
  border-radius: 999px;
}
.uc-addr-text {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.5;
  word-break: break-all;
}
.uc-addr-del {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 72px;
  border: none;
  background: #dc2626;
  color: #fff;
  font-size: 0.9rem;
  cursor: pointer;
}
.uc-addr-default-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 4px 0 10px;
  font-size: 0.9rem;
  color: var(--text);
  cursor: pointer;
}
/* 新增/编辑地址弹窗：收件地址输入框与联系人/手机号同宽，且默认足够高 */
#modal-address .field textarea.uc-addr-textarea {
  display: block;
  width: 100%;
  height: 220px;
  min-height: 160px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  font-size: 0.95rem;
  font-family: inherit;
  line-height: 1.5;
  color: var(--text);
  background: var(--surface-2);
  box-sizing: border-box;
  outline: none;
  resize: vertical;
}
#modal-address .field textarea.uc-addr-textarea:focus {
  border-color: var(--accent-blue);
  background: var(--surface);
}
/* 默认地址复选框同步放大，避免默认尺寸过小 */
#modal-address .uc-addr-default-row input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 0;
  flex-shrink: 0;
  accent-color: var(--accent-blue);
  cursor: pointer;
}
.uc-addr-tip {
  margin: 14px 0 0;
  font-size: 0.78rem;
  color: var(--muted);
}

/* 购买记录：移动端卡片式，避免长作品名撑开表格 */
.uc-purchase-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.uc-purchase-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.uc-purchase-name {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.5;
  word-break: break-word;
}
.uc-purchase-row-info {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.82rem;
  color: var(--muted);
}
.uc-purchase-price {
  color: var(--text);
  font-weight: 600;
  white-space: nowrap;
}
.uc-purchase-time {
  flex: 1 1 auto;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.uc-purchase-action {
  flex-shrink: 0;
}
.uc-download-link,
.uc-download-disabled {
  display: inline-block;
  padding: 5px 14px;
  border-radius: 6px;
  font-size: 12px;
  line-height: 1.5;
  text-decoration: none;
  cursor: pointer;
}
.uc-download-link {
  background: #ff5722;
  color: #fff;
}
.uc-download-disabled {
  background: #e5e7eb;
  color: #9ca3af;
  cursor: default;
}

@media (min-width: 641px) {
  .uc-purchase-list-header,
  .uc-purchase-card {
    display: grid;
    grid-template-columns: 1fr 140px 170px 90px;
    align-items: center;
    gap: 16px;
    padding: 12px 16px;
  }
  .uc-purchase-list-header {
    color: #86868b;
    font-size: 13px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
  }
  .uc-purchase-card {
    border: none;
    border-bottom: 1px solid #f5f5f7;
    border-radius: 0;
    padding: 14px 16px;
  }
  .uc-purchase-name {
    margin-bottom: 0;
  }
  .uc-purchase-row-info {
    display: contents;
    gap: 16px;
  }
  .uc-purchase-time {
    flex: none;
    text-align: left;
  }
  .uc-purchase-action {
    text-align: right;
  }
}

/* 充值表单 */
.uc-recharge {
  max-width: 520px;
  margin: 0 auto;
}
.uc-recharge-arrive {
  margin: 0 0 14px;
  padding: 10px 14px;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.08), rgba(22, 119, 255, 0.05));
  border: 1px dashed rgba(59, 130, 246, 0.35);
  border-radius: 10px;
  font-size: 0.9rem;
  color: var(--text);
  text-align: center;
}
.uc-recharge-arrive b.uc-arrive-num,
.uc-recharge-arrive #uc-arrive-num {
  color: #16a34a;
  font-size: 1.1rem;
}
.uc-recharge-arrive #uc-bonus-num {
  color: #ff4b2f;
}
.uc-recharge-row {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
}
.uc-recharge-input {
  flex: 1;
  position: relative;
}
.uc-recharge-input input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 1rem;
  background: #fff;
  font-family: inherit;
  color: var(--text);
  box-sizing: border-box;
  outline: none;
  transition: border-color 0.2s;
}
.uc-recharge-input input:focus {
  border-color: var(--accent-blue);
}
.uc-recharge-rate {
  position: absolute;
  top: 50%;
  right: 16px;
  transform: translateY(-50%);
  font-size: 0.85rem;
  color: var(--muted);
  pointer-events: none;
}
.uc-recharge-unit select {
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f0f0f0;
  font-size: 0.92rem;
  color: var(--muted);
  font-family: inherit;
  cursor: not-allowed;
  min-width: 80px;
  height: 46px;
}
.uc-recharge-btn {
  display: block;
  width: 100%;
  padding: 14px 0;
  background: linear-gradient(135deg, #ff6b35 0%, #ff4b2f 100%);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  margin-bottom: 14px;
  transition: opacity 0.2s;
  font-family: inherit;
}
.uc-recharge-btn:hover { opacity: 0.92; }
.uc-pay-icons {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 16px;
}
.uc-pay-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #1677ff;
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 0.85rem;
  font-weight: 600;
}
.uc-recharge-rules {
  margin: 0;
  padding: 18px 20px;
  background: var(--surface-2);
  border-radius: 10px;
  list-style: none;
}
.uc-recharge-rules li {
  padding: 4px 0;
  font-size: 0.85rem;
  color: var(--text);
}
.uc-recharge-rules b {
  color: var(--accent-blue);
  font-weight: 700;
  margin: 0 2px;
}
.uc-recharge-tips {
  margin: 14px 0 0;
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.6;
  text-align: center;
}

/* ====== 我的资料表单 ====== */
.uc-profile-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 28px;
  align-items: start;
}
.uc-profile-readonly {
  grid-column: 1 / -1;
  margin-bottom: 0;
  display: flex;
  gap: 32px;
}
.uc-profile-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 0;
  font-size: 0.92rem;
  border-bottom: none;
}
.uc-profile-label {
  width: auto;
  flex-shrink: 0;
  color: var(--muted);
}
.uc-profile-value {
  flex: 1;
  color: var(--text);
  font-weight: 500;
}
.uc-profile-section {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}
#form-profile {
  grid-column: 1;
  grid-row: 2;
}
#form-email {
  grid-column: 2;
  grid-row: 2;
}
#form-password {
  grid-column: 1 / -1;
  grid-row: 3;
  justify-self: center;
  width: 100%;
  max-width: 520px;
  margin-top: 8px;
  padding-top: 18px;
  border-top: 1px dashed var(--line);
}
.uc-profile-field {
  margin-bottom: 10px;
}
.uc-profile-field label {
  display: block;
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 4px;
}
.uc-profile-field input,
.uc-profile-field textarea {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 0.9rem;
  font-family: inherit;
  color: var(--text);
  background: #fff;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
}
.uc-profile-field input:focus,
.uc-profile-field textarea:focus {
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
}
.uc-profile-field textarea {
  resize: vertical;
  line-height: 1.45;
  min-height: 60px;
}
.uc-code-row {
  display: flex;
  gap: 8px;
}
.uc-code-row input {
  flex: 1;
  max-width: 120px;
}
.uc-profile-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 100px;
  padding: 8px 18px;
  background: linear-gradient(135deg, #ff6b35 0%, #ff4b2f 100%);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s;
  font-family: inherit;
}
.uc-profile-btn:hover {
  opacity: 0.92;
}
.uc-profile-btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}
.uc-profile-btn--ghost {
  background: #fff;
  color: var(--accent-blue);
  border: 1px solid var(--accent-blue);
  min-width: auto;
  padding: 8px 12px;
  font-size: 0.82rem;
}
.uc-profile-btn--ghost:hover {
  background: var(--accent-soft);
}
.uc-profile-msg {
  margin: 8px 0 0;
  font-size: 0.82rem;
  min-height: 18px;
}

/* ====== 我的推广 ====== */
.uc-promotion {
  max-width: 720px;
  margin: 0 auto;
}
.uc-promo-link-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 0.95rem;
}
.uc-promo-label {
  color: var(--muted);
}
.uc-promo-link {
  color: var(--accent-blue);
  text-decoration: none;
  word-break: break-all;
  white-space: normal;
  max-width: 100%;
  display: inline-block;
}
.uc-promo-link:hover {
  text-decoration: underline;
}
.uc-promo-copy {
  padding: 6px 14px;
  border: 1px solid var(--accent-blue);
  background: #fff;
  color: var(--accent-blue);
  border-radius: 6px;
  font-size: 0.82rem;
  cursor: pointer;
  transition: background 0.2s;
}
.uc-promo-copy:hover {
  background: var(--accent-soft);
}
.uc-promo-stats {
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
  margin: 0 0 18px;
}
.uc-promo-stats strong {
  color: var(--text);
}
.uc-promo-table-wrap {
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 18px;
}
.uc-promo-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}
.uc-promo-table th,
.uc-promo-table td {
  padding: 12px 14px;
  text-align: center;
  border-bottom: 1px solid var(--line);
}
.uc-promo-table th {
  background: var(--surface-2);
  font-weight: 600;
  color: var(--text);
}
.uc-promo-table tr:last-child td {
  border-bottom: none;
}
.uc-promo-empty {
  color: var(--muted);
  padding: 30px 0;
}

@media (max-width: 900px) {
  .uc-profile-form {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .uc-profile-readonly {
    flex-direction: column;
    gap: 4px;
  }
  #form-profile,
  #form-email,
  #form-password {
    grid-column: auto;
    grid-row: auto;
  }
}

@media (max-width: 900px) {
  .uc-layout {
    grid-template-columns: 1fr;
  }
  .uc-side {
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 14px 16px;
  }
  .uc-profile {
    flex-direction: row;
    padding-bottom: 0;
    border-bottom: none;
    margin-bottom: 0;
    padding-right: 16px;
    margin-right: 16px;
    border-right: 1px solid var(--line);
    gap: 12px;
  }
  .uc-avatar {
    width: 48px;
    height: 48px;
    margin-bottom: 0;
  }
  .uc-avatar svg { width: 28px; height: 28px; }
  .uc-name {
    font-size: 0.9rem;
  }
  .uc-menu {
    flex: 1;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 6px;
  }
  .uc-menu-item {
    padding: 6px 10px;
    font-size: 0.82rem;
  }
  .uc-menu-item--logout {
    margin-top: 0;
    border-top: none;
    padding-top: 6px;
  }
  .uc-cards {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .uc-card {
    padding: 12px;
  }
  .uc-card-tip {
    position: static;
    display: block;
    text-align: right;
    margin-top: 4px;
  }
  .uc-card-num {
    font-size: 1.15rem;
  }
  .uc-card-unit {
    font-size: 0.75rem;
  }
  .uc-card-meta {
    font-size: 0.78rem;
  }
  .uc-card-meta a {
    font-size: 0.75rem;
  }
  .uc-recharge {
    max-width: 100%;
  }
}
@media (max-width: 640px) {
  .uc-recharge-row {
    flex-direction: column;
  }
}
.btn-block {
  width: 100%;
  cursor: pointer;
}

/* ====== 用户状态栏 ====== */
.user-bar {
  display: none;
  align-items: center;
  gap: 12px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 0.92rem;
}
.user-bar__name { font-weight: 600; color: var(--accent); }
.user-bar__vip {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  background: linear-gradient(135deg, #f59e0b, #ef4444);
  color: #fff;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 6px rgba(239,68,68,.25);
}
.user-bar__vip[data-level="month"]  { background: linear-gradient(135deg, #06b6d4, #3b82f6); }
.user-bar__vip[data-level="season"] { background: linear-gradient(135deg, #8b5cf6, #6366f1); }
.user-bar__vip[data-level="year"]   { background: linear-gradient(135deg, #f59e0b, #ef4444); }
.user-bar__vip[data-level="life"]   { background: linear-gradient(135deg, #ec4899, #8b5cf6); }
.user-bar__vip[data-level="none"]   { background: #e5e7eb; color: #6b7280; box-shadow: none; }
.user-bar__logout {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.85rem;
}
.user-bar__logout:hover { color: #dc2626; }

/* ====== 底部导航栏 ====== */
.bottom-nav {
  display: flex;
  align-items: center;
  justify-content: space-around;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #ffffff;
  border-top: 1px solid var(--line);
  padding: 6px 0 calc(6px + env(safe-area-inset-bottom));
  z-index: 999;
  box-shadow: 0 -1px 6px rgba(0,0,0,0.04);
}
.bottom-nav__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  text-decoration: none;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 500;
  padding: 4px 12px;
  border-radius: 10px;
  transition: color 0.2s, background 0.2s;
}
.bottom-nav__item.active {
  color: var(--accent);
}
.bottom-nav__item:active {
  background: var(--accent-soft);
}
.bottom-nav__icon {
  width: 22px;
  height: 22px;
  max-width: 22px;
  max-height: 22px;
  display: block;
  flex-shrink: 0;
}

/* 给全站页面底部留出空间，避免被导航栏挡住 */
.page-shell {
  padding-bottom: 70px;
}

/* ====== VIP 展示页 ====== */
.vip-body {
  background: linear-gradient(180deg, #eef2f7 0%, #f7f9fc 100%);
  min-height: 100vh;
}
.vip-page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding-bottom: 70px;
}
.vip-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.vip-header .brand {
  font-size: 1.1rem;
  font-weight: 800;
}
.vip-main {
  flex: 1;
  padding: 24px 14px;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
}
.vip-head {
  text-align: center;
  margin-bottom: 24px;
}
.vip-head h1 {
  font-size: 1.6rem;
  font-weight: 700;
  margin: 0 0 10px;
  color: var(--text);
}
.vip-head p {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0;
  line-height: 1.5;
}
.vip-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.vip-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  display: flex;
  flex-direction: column;
}
.vip-card-header {
  padding: 12px 10px;
  text-align: center;
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
}
.vip-card-body {
  padding: 16px 12px;
  text-align: center;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.vip-price {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 4px;
  line-height: 1;
}
.vip-price em {
  font-style: normal;
  font-size: 0.7rem;
  font-weight: 600;
  margin-left: 2px;
}
.vip-duration {
  display: inline-block;
  background: #f5f5f5;
  color: var(--muted);
  font-size: 0.7rem;
  padding: 3px 10px;
  border-radius: 20px;
  margin: 0 auto 12px;
}
.vip-benefits {
  list-style: none;
  padding: 0;
  margin: 0 0 14px;
  flex: 1;
}
.vip-benefits li {
  font-size: 0.78rem;
  color: var(--muted);
  padding: 5px 0;
  border-bottom: 1px dashed #f0f0f0;
}
.vip-benefits li:last-child { border-bottom: none; }
.vip-btn {
  width: 100%;
  padding: 10px 0;
  border: none;
  border-radius: 24px;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s;
}
.vip-btn:hover { opacity: 0.9; }

/* VIP 升级差价/状态提示 */
.vip-current-tip {
  display: inline-block;
  padding: 8px 18px;
  background: rgba(99, 102, 241, 0.08);
  color: #4f46e5;
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: 24px;
  font-size: 0.88rem;
}
.vip-current-tip--new {
  background: rgba(234, 88, 12, 0.08);
  color: #ea580c;
  border-color: rgba(234, 88, 12, 0.2);
}
.vip-upgrade-note {
  margin: 8px 0 12px;
  font-size: 0.8rem;
  color: #4f46e5;
  background: rgba(99, 102, 241, 0.06);
  border: 1px dashed rgba(99, 102, 241, 0.3);
  border-radius: 8px;
  padding: 8px 10px;
  line-height: 1.45;
}
.vip-upgrade-note b { font-weight: 600; }
.vip-upgrade-diff { color: #ea580c; font-size: 0.95rem; }
.vip-upgrade-note--locked {
  color: #999;
  background: rgba(0,0,0,0.03);
  border-color: rgba(0,0,0,0.1);
}

/* VIP 主题色 */
.theme-cyan .vip-card-header   { background: #06b6d4; }
.theme-cyan .vip-btn           { background: #06b6d4; }
.theme-indigo .vip-card-header { background: #4f46e5; }
.theme-indigo .vip-btn         { background: #4f46e5; }
.theme-purple .vip-card-header { background: #8b5cf6; }
.theme-purple .vip-btn         { background: #8b5cf6; }
.theme-gold .vip-card-header   { background: #d4b106; }
.theme-gold .vip-btn           { background: #d4b106; }

/* 推荐标识 */
.vip-card-wrapper {
  position: relative;
  padding-bottom: 34px;
}
.vip-popular-badge {
  position: absolute;
  bottom: 0;
  right: 0;
  display: flex;
  align-items: flex-end;
  gap: 2px;
  white-space: nowrap;
  pointer-events: none;
  z-index: 3;
  line-height: 1;
}
.vip-popular-bubble {
  background: #fff;
  color: #ff4d4f;
  font-size: 0.9rem;
  font-weight: 700;
  padding: 6px 10px;
  border-radius: 16px;
  border: 1.5px solid #ff4d4f;
  box-shadow: 0 2px 6px rgba(255,77,79,0.12);
  margin-bottom: 10px;
}
.vip-popular-arrow {
  width: 72px;
  height: 54px;
  flex-shrink: 0;
  margin-bottom: 6px;
}
@media (min-width: 640px) {
  .vip-popular-bubble { font-size: 0.88rem; padding: 6px 10px; }
  .vip-popular-arrow { width: 72px; height: 54px; }
}

/* 升级滚动通知 */
.vip-ticker {
  margin: 18px auto 0;
  max-width: 420px;
  background: #fff;
  border: 1px solid #f0e6d6;
  border-radius: 24px;
  padding: 8px 16px;
  overflow: hidden;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.vip-ticker-track {
  display: inline-block;
  animation: vip-ticker-scroll 22s linear infinite;
}
.vip-ticker-item {
  display: inline-block;
  padding: 0 24px;
  font-size: 0.8rem;
  color: #8c6b4a;
  position: relative;
}
.vip-ticker-item::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 4px;
  background: #e0c8a8;
  border-radius: 50%;
}
@keyframes vip-ticker-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* 品牌介绍 */
.vip-brand {
  text-align: center;
  margin-top: 44px;
}
.vip-brand h2 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 8px;
}
.vip-brand p {
  font-size: 0.8rem;
  color: var(--muted);
  margin: 0;
}

/* 四大权益 */
.vip-features {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 24px;
}
.vip-feature {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border-radius: 12px;
  padding: 14px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.04);
}
.vip-feature-icon {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #ff7a45;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}
.vip-feature-icon svg {
  width: 20px;
  height: 20px;
}
.vip-feature-text h4 {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 3px;
}
.vip-feature-text p {
  font-size: 0.72rem;
  color: var(--muted);
  margin: 0;
  line-height: 1.3;
}

@media (min-width: 640px) {
  .vip-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
  }
  .vip-card-header { font-size: 1.05rem; padding: 14px; }
  .vip-card-body   { padding: 20px 16px; }
  .vip-price       { font-size: 2rem; }
  .vip-benefits li { font-size: 0.85rem; }
  .vip-features    { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* ====== 首页产品卡片：可点击状态 ====== */
.product-card--clickable {
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.product-card--clickable:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(17, 24, 39, 0.12);
}
.product-card--clickable .thumb {
  position: relative;
}
.card-hot-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  padding: 4px 10px;
  background: linear-gradient(135deg, #f5222d 0%, #ff7875 100%);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  border-radius: 999px;
  box-shadow: 0 4px 10px rgba(245, 34, 45, 0.35);
  backdrop-filter: blur(4px);
  pointer-events: none;
  user-select: none;
  animation: hot-badge-pulse 2.4s ease-in-out infinite;
}
@keyframes hot-badge-pulse {
  0%, 100% { transform: scale(1); box-shadow: 0 4px 10px rgba(245, 34, 45, 0.35); }
  50%      { transform: scale(1.04); box-shadow: 0 6px 14px rgba(245, 34, 45, 0.45); }
}
.thumb-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.25s ease;
  border-radius: 20px 20px 0 0;
}
.product-card--clickable:hover .thumb-overlay {
  background: rgba(0, 0, 0, 0.18);
}
.thumb-overlay-icon {
  opacity: 0;
  color: #fff;
  font-size: 1.6rem;
  transition: opacity 0.25s ease;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}
.product-card--clickable:hover .thumb-overlay-icon {
  opacity: 1;
}

/* ====== 详情弹窗 ====== */
.detail-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1100;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 24px 16px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.detail-overlay.active {
  display: flex;
}
.detail-panel {
  background: #fff;
  border-radius: 16px;
  width: 100%;
  max-width: 680px;
  max-height: none;
  overflow: visible;
  position: relative;
  animation: modalIn 0.28s ease;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.25);
}
.detail-close {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
  z-index: 10;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  line-height: 1;
  transition: background 0.2s;
}
.detail-close:hover {
  background: rgba(0, 0, 0, 0.8);
}
.detail-cover-wrap {
  border-radius: 16px 16px 0 0;
  overflow: hidden;
  position: relative;
}
.detail-cover {
  width: 100%;
  display: block;
  border-radius: 16px 16px 0 0;
  max-height: 420px;
  object-fit: contain;
  background: #f7f8fa;
}
.detail-carousel-dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 5;
}
.detail-carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(0,0,0,0.25);
  border: 1px solid rgba(255,255,255,0.4);
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}
.detail-carousel-dot.active {
  background: #fff;
  transform: scale(1.2);
}
.detail-gallery {
  padding: 14px 16px 0;
}
.detail-gallery-label {
  font-size: 0.82rem;
  color: var(--muted);
  margin: 0 0 10px;
  font-weight: 500;
}
.detail-gallery-track {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
  padding-bottom: 10px;
}
.detail-gallery-track::-webkit-scrollbar {
  height: 4px;
}
.detail-gallery-track::-webkit-scrollbar-track {
  background: transparent;
}
.detail-gallery-track::-webkit-scrollbar-thumb {
  background: #d0d0d0;
  border-radius: 4px;
}
.detail-gallery-img {
  flex: 0 0 auto;
  width: 160px;
  height: 220px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--line);
  scroll-snap-align: start;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}
.detail-gallery-img:hover {
  transform: scale(1.04);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}
.detail-info {
  padding: 18px 16px 20px;
}
.detail-info h2 {
  margin: 0 0 8px;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.4;
}
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-bottom: 14px;
  font-size: 0.85rem;
  color: var(--muted);
}
.detail-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 0.83rem;
}
.detail-hot-badge {
  color: #f5222d;
  font-weight: 600;
}
.detail-price {
  font-size: 1.5rem;
  font-weight: 700;
  color: #f5222d;
  margin-bottom: 6px;
  line-height: 1;
}
.detail-bottom-text {
  margin: 12px 0 0;
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.7;
  white-space: pre-wrap;
  word-break: break-word;
}
.detail-vip-bar {
  padding: 16px 16px 20px;
  background: #fff;
  border-top: 1px solid #f0f0f0;
}
.detail-vip-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 14px 0;
  border-radius: 12px;
  background: linear-gradient(135deg, #ff6b35 0%, #ff4b2f 100%);
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 6px 16px rgba(255, 75, 47, 0.28);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.detail-vip-btn:active {
  transform: translateY(1px);
  box-shadow: 0 3px 10px rgba(255, 75, 47, 0.22);
}
.detail-vip-btn__icon {
  width: 18px;
  height: 18px;
  stroke: currentColor;
}
.detail-vip-tips {
  color: #ff6b35;
  font-size: 0.78rem;
  text-align: center;
  margin: 12px 0 0;
  line-height: 1.5;
}
.detail-vip-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.detail-vip-buy-card {
  background: #f9f9f9;
  border-radius: 16px;
  padding: 16px 14px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-width: 0;
}
.detail-vip-buy-card__label {
  background: #e8e8e8;
  color: #666;
  font-size: 0.78rem;
  line-height: 1.4;
  padding: 5px 12px;
  border-radius: 6px;
  margin-bottom: 10px;
  word-break: break-all;
}
.detail-vip-buy-card__price {
  color: #ff4b2f;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 12px;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 4px;
  white-space: nowrap;
  flex-wrap: nowrap;
}
.detail-vip-buy-card__price span {
  font-size: 1.8rem;
  font-weight: 800;
}
.detail-vip-buy-card__price em {
  font-style: normal;
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
  word-break: keep-all;
}
.detail-vip-buy-card__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  padding: 11px 0;
  border: none;
  border-radius: 12px;
  background: linear-gradient(90deg, #ff6b35, #ff4b2f);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(255, 75, 47, 0.24);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.detail-vip-buy-card__btn svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}
.detail-vip-buy-card__btn:active {
  transform: translateY(1px);
  box-shadow: 0 2px 6px rgba(255, 75, 47, 0.18);
}

@media (max-width: 640px) {
  .detail-overlay {
    padding: 0;
    align-items: flex-end;
    overflow: hidden;
  }
  .detail-panel {
    border-radius: 16px 16px 0 0;
    max-width: 100%;
    max-height: none;
    height: 90vh;
    height: 90dvh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
  }
  .detail-cover,
  .detail-cover-wrap {
    border-radius: 16px 16px 0 0;
  }
  .detail-cover {
    max-height: none;
    /* 移动端：图片按原始比例完整展示，避免底部水印/属性被裁掉 */
    height: auto;
    aspect-ratio: auto;
  }
  .detail-gallery-img {
    width: 120px;
    height: 170px;
  }
  .detail-price {
    font-size: 1.3rem;
  }
  .detail-vip-list {
    grid-template-columns: 1fr;
  }
}

/* ====== 后台管理：登录页 ====== */
.admin-body {
  background: #f0f2f5;
}
.admin-login-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 24px;
}
.admin-login-card {
  width: 100%;
  max-width: 400px;
  background: #fff;
  border-radius: 8px;
  padding: 40px 32px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}
.admin-login-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 8px;
}
.admin-login-desc {
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0 0 24px;
}

/* ====== 后台管理：布局 ====== */
.admin-layout {
  display: flex;
  min-height: 100vh;
}

/* 侧边栏 */
.admin-sidebar {
  width: 220px;
  min-width: 220px;
  background: #001529;
  color: #fff;
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 100;
  transition: transform 0.25s ease;
}
.admin-sidebar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 20px 20px 24px;
  font-size: 1rem;
  font-weight: 700;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.admin-sidebar-brand .brand-mark {
  flex-shrink: 0;
}
.admin-sidebar-title {
  white-space: nowrap;
}

.admin-nav {
  flex: 1;
  padding: 12px 0;
}
.admin-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s, background 0.2s;
  border-left: 3px solid transparent;
}
.admin-nav-item:hover {
  color: #fff;
  background: rgba(255,255,255,0.06);
}
.admin-nav-item.active {
  color: #fff;
  background: #1890ff;
  border-left-color: #69b1ff;
}
.admin-nav-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
/* 一级分组菜单：点击展开/收起 */
.admin-nav-group {
  margin: 2px 0;
}
.admin-nav-arrow {
  margin-left: auto;
  font-size: 0.62rem;
  opacity: 0.7;
  transition: transform 0.2s;
}
.admin-nav-group.open > .admin-nav-parent .admin-nav-arrow {
  transform: rotate(180deg);
}
.admin-nav-group.open > .admin-nav-parent {
  color: #fff;
  background: rgba(255,255,255,0.06);
}
.admin-nav-sub {
  display: none;
}
.admin-nav-group.open > .admin-nav-sub {
  display: block;
}
.admin-nav-sub .admin-nav-item {
  padding: 9px 24px 9px 48px;
  font-size: 0.84rem;
}

.admin-sidebar-footer {
  padding: 16px 20px;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.admin-sidebar-user {
  display: block;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.65);
  margin-bottom: 8px;
}
.admin-sidebar-logout {
  color: rgba(255,255,255,0.45);
  text-decoration: none;
  font-size: 0.8rem;
  transition: color 0.2s;
}
.admin-sidebar-logout:hover {
  color: #ff4d4f;
}

/* 主内容区 */
.admin-main {
  flex: 1;
  margin-left: 220px;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
.admin-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 24px;
  background: #fff;
  border-bottom: 1px solid #f0f0f0;
  position: sticky;
  top: 0;
  z-index: 50;
}
.admin-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text);
  padding: 4px;
  border-radius: 4px;
  line-height: 0;
}
.admin-menu-toggle:hover {
  background: #f5f5f5;
}
.admin-page-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
}
.admin-content {
  flex: 1;
  padding: 20px 24px;
}
.admin-menu-content {
  display: none;
}
.admin-menu-content.active {
  display: block;
}

/* 卡片容器 */
.admin-card {
  background: #fff;
  border-radius: 4px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
.admin-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid #f0f0f0;
}
.admin-card-header h3 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
}
.admin-count {
  font-size: 0.82rem;
  color: var(--muted);
}

/* 空状态 */
.admin-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 24px;
  color: var(--muted);
}
.admin-empty p {
  margin-top: 16px;
  font-size: 0.92rem;
}

/* 表格 */
.admin-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding: 0 20px 16px;
}
.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}
.admin-table th,
.admin-table td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid #f0f0f0;
  white-space: nowrap;
}
.admin-table th {
  font-weight: 600;
  color: var(--muted);
  font-size: 0.8rem;
  background: #fafafa;
}
.admin-table tbody tr:hover { background: #fafafa; }
/* 闲置专区/购买：商拍名称固定列宽，超长省略，点击查看全文 */
.admin-table-idle th:nth-child(4),
.admin-table-idle td:nth-child(4) {
  width: 180px;
  min-width: 180px;
  max-width: 180px;
}
.idle-cell-clip {
  display: block;
  width: 180px;
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #1890ff;
  cursor: pointer;
}
.idle-cell-clip:hover { text-decoration: underline; }
.idle-text-full {
  white-space: pre-wrap;
  word-break: break-word;
  line-height: 1.7;
  color: #374151;
  font-size: 0.9rem;
}

.btn-del {
  padding: 3px 12px;
  border: 1px solid #ffa39e;
  border-radius: 4px;
  background: #fff;
  color: #f5222d;
  cursor: pointer;
  font-size: 0.8rem;
  font-family: inherit;
  transition: all 0.2s;
}
.btn-del:hover { background: #f5222d; color: #fff; border-color: #f5222d; }
.btn-edit {
  padding: 3px 12px;
  border: 1px solid #91caff;
  border-radius: 4px;
  background: #fff;
  color: #1890ff;
  cursor: pointer;
  font-size: 0.8rem;
  font-family: inherit;
  transition: all 0.2s;
}
.btn-edit:hover { background: #1890ff; color: #fff; border-color: #1890ff; }
.user-pwd-cell {
  display: inline-block;
  font-family: "SF Mono", Consolas, Menlo, monospace;
  font-size: 0.85rem;
  color: #1f2937;
  letter-spacing: 0.5px;
  background: #f5f7fa;
  border: 1px solid #e5e7eb;
  border-radius: 4px;
  padding: 2px 8px;
  margin-right: 4px;
}
.user-pwd-toggle {
  padding: 2px 8px;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  background: #fff;
  color: #6b7280;
  cursor: pointer;
  font-size: 0.75rem;
  font-family: inherit;
  transition: all 0.2s;
}
.user-pwd-toggle:hover { background: #f3f4f6; color: #1890ff; border-color: #91caff; }
.user-pwd-toggle.copied { background: #52c41a; color: #fff; border-color: #52c41a; }
.admin-table-vip td { white-space: normal !important; }
.admin-table-vip th:nth-child(7),
.admin-table-vip td:nth-child(7) { max-width: 200px; }

/* ====== 首页菜单管理 ====== */
.admin-table-home {
  min-width: 1320px;
}
.admin-table-home td {
  white-space: normal;
  vertical-align: middle;
}
.admin-table-home th:nth-child(4),
.admin-table-home td:nth-child(4) {
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.admin-table-home th:nth-child(8),
.admin-table-home td:nth-child(8) {
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.home-cell-thumb {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid #e5e7eb;
  display: block;
}
.home-tag {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 12px;
  font-size: 0.78rem;
  background: #f0f9ff;
  color: #0369a1;
  border: 1px solid #bae6fd;
  white-space: nowrap;
}

/* ====== 首页内容：类型多选下拉（类 AntD Select multiple） ====== */
.multi-select {
  position: relative;
}
.multi-select__trigger {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  min-height: 40px;
  padding: 4px 32px 4px 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
}
.multi-select__trigger:hover { border-color: #93c5fd; }
.multi-select__arrow {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #9ca3af;
  font-size: 0.8rem;
  pointer-events: none;
}
.multi-select__placeholder {
  color: #9ca3af;
  font-size: 0.9rem;
  line-height: 30px;
}
.multi-select__tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  background: #eef4ff;
  border: 1px solid #c7d8f7;
  color: #1d4ed8;
  border-radius: 6px;
  font-size: 0.8rem;
  line-height: 20px;
  margin: 2px 0;
}
.multi-select__tag-x {
  cursor: pointer;
  font-size: 0.95rem;
  line-height: 1;
  color: #1d4ed8;
  padding: 0 2px;
}
.multi-select__tag-x:hover { color: #dc2626; }
.multi-select__dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(17, 24, 39, 0.14);
  z-index: 80;
  padding: 4px;
  max-height: 240px;
  overflow-y: auto;
}
.multi-select__option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.9rem;
  color: #374151;
  transition: background 0.15s;
}
.multi-select__option:hover { background: #f5f7fa; }
.multi-select__option.selected { color: #1d4ed8; font-weight: 500; }
.multi-select__check {
  width: 16px;
  height: 16px;
  border: 1.5px solid #d1d5db;
  border-radius: 4px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  font-size: 0.7rem;
  color: #fff;
  transition: all 0.15s;
  margin-left: auto;
}
.multi-select__option.selected .multi-select__check {
  background: #1d4ed8;
  border-color: #1d4ed8;
}

/* 封面 & 额外图片预览通用 */
.ext-img-preview {
  margin-top: 10px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.ext-img-preview img {
  max-width: 200px;
  max-height: 150px;
  width: auto;
  height: auto;
  border-radius: 8px;
  border: 1px solid var(--line);
  object-fit: cover;
  display: block;
}
.ext-img-preview .btn-del {
  font-size: 0.78rem;
  padding: 4px 10px;
  flex-shrink: 0;
}

/* 额外图片上传槽位 */
.ext-img-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.ext-img-slot {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px;
  background: var(--surface-2);
}
.ext-img-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}
@media (max-width: 768px) {
  .ext-img-grid {
    grid-template-columns: 1fr;
  }
}

/* VIP 页面内容编辑 */
.admin-vip-header-card {
  margin-bottom: 16px;
}
.admin-vip-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.admin-vip-header-form {
  padding: 20px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  align-items: start;
}
.admin-vip-header-form .field {
  margin-bottom: 0;
}
.admin-vip-header-form .field:first-child input {
  width: 140px;
}
.admin-vip-header-form .field:last-child textarea {
  width: 100%;
  min-height: 54px;
}
.admin-vip-header-form input,
.admin-vip-header-form textarea {
  background: #f5f5f5;
  cursor: not-allowed;
  transition: background 0.2s, border-color 0.2s;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 0.92rem;
  min-height: 38px;
}
.admin-vip-header-form textarea {
  line-height: 1.5;
}
.admin-vip-header-form input:disabled,
.admin-vip-header-form textarea:disabled {
  color: #595959;
}
.admin-vip-header-form .is-editing input,
.admin-vip-header-form .is-editing textarea {
  background: #fff;
  cursor: text;
  border-color: #40a9ff;
}
@media (max-width: 768px) {
  .admin-vip-header-form {
    grid-template-columns: 1fr;
  }
}

/* 图片上传组件 */
.service-image-upload {
  display: flex;
  gap: 8px;
  align-items: stretch;
}
.service-image-upload input[type="text"] {
  flex: 1;
}
.service-upload-label {
  display: flex;
  align-items: center;
  padding: 0 16px;
  background: #f0f0f0;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 0.85rem;
  color: var(--muted);
  cursor: not-allowed;
  white-space: nowrap;
  user-select: none;
}
.service-upload-label input[type="file"] {
  display: none;
}
.service-upload-label:not(.disabled) {
  background: #fff;
  color: var(--primary);
  border-color: var(--primary);
  cursor: pointer;
}
.service-upload-label:not(.disabled):hover {
  background: var(--primary);
  color: #fff;
}
.service-image-preview {
  margin-top: 10px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.service-image-preview img {
  max-width: 200px;
  max-height: 150px;
  border-radius: 8px;
  border: 1px solid var(--line);
  object-fit: cover;
}
.service-image-preview .btn-del {
  font-size: 0.78rem;
  padding: 4px 10px;
}

/* 客服中心弹窗 */
.service-content {
  padding: 8px 0;
}
.service-text {
  font-size: 0.92rem;
  line-height: 1.8;
  color: var(--text);
  white-space: pre-wrap;
  word-break: break-word;
  margin-bottom: 16px;
}
.service-img-wrap {
  margin-top: 12px;
  text-align: center;
}
.service-img-wrap img {
  max-width: 100%;
  max-height: 320px;
  border-radius: 12px;
  border: 1px solid var(--line);
  object-fit: contain;
}
.service-loading {
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
  padding: 20px 0;
}

/* 客服中心独立页面 */
.service-page {
  max-width: 640px;
  margin: 0 auto;
  padding: 32px 16px 40px;
  min-height: 60vh;
}
.service-page-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 20px;
  text-align: center;
}
.service-page .service-text {
  font-size: 0.92rem;
  line-height: 1.8;
  color: var(--text);
  white-space: pre-wrap;
  word-break: break-word;
  margin-bottom: 16px;
}
.service-page .service-text:last-child {
  margin-bottom: 0;
}
.service-page .service-img-wrap {
  margin: 16px -16px;
  text-align: left;
}
.service-page .service-img-wrap img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

/* 移动端遮罩 */
.admin-sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 99;
}
.admin-sidebar-overlay.show {
  display: block;
}

/* 移动端适配 */
@media (max-width: 768px) {
  .admin-sidebar {
    transform: translateX(-100%);
  }
  .admin-sidebar.open {
    transform: translateX(0);
  }
  .admin-main {
    margin-left: 0;
  }
  .admin-menu-toggle {
    display: block;
  }
  .admin-content {
    padding: 16px 12px;
  }
  .admin-card-header {
    padding: 12px 16px;
  }
  .admin-table-wrap {
    padding: 0 12px 12px;
  }
  .admin-table th,
  .admin-table td {
    padding: 10px 8px;
    font-size: 0.78rem;
  }
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .card-grid,
  .feature-strip,
  .stats-section {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  html,
  body {
    overflow-x: hidden;
  }

  .page-shell {
    width: min(100% - 16px, 100%);
  }

  .topbar {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
  }

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

  .pill-link {
    padding: 6px 10px;
    font-size: 0.85rem;
    white-space: nowrap;
  }

  .hero,
  .search-panel,
  .product-card,
  .feature-card,
  .topic-card,
  .poster-card {
    border-radius: 16px;
  }

  .hero {
    padding: 18px;
  }

  /* 移动端产品卡片：两列，一屏可见 4 张 */
  .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .product-card {
    display: flex;
    flex-direction: column;
  }

  .product-card .thumb {
    /* 兜底：没有真实图片元素时仍保留高度，避免卡片塌陷成空白 */
    aspect-ratio: 9 / 16;
    min-height: 168px;
  }

  .product-card .thumb:has(.thumb-img) {
    /* 有真实图片时，高度完全由图片自身决定：整图完整显示，上下左右都没有留白，也不裁剪 */
    min-height: unset;
    aspect-ratio: auto;
  }

  .product-card .thumb .thumb-img {
    display: block;
    width: 100%;
    height: auto;
  }

  .product-card .card-body {
    padding: 8px;
  }

  .product-card .card-body h3 {
    font-size: 0.82rem;
    margin: 0 0 4px;
    line-height: 1.35;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }

  .product-card .card-body p,
  .product-card .card-body span {
    font-size: 0.72rem;
    line-height: 1.45;
  }

  .product-card .card-body span {
    margin-top: 4px;
  }

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

  .topic-card {
    min-height: 110px;
    padding: 14px;
    border-radius: 16px;
  }

  .topic-card p {
    font-size: 0.92rem;
    margin: 0 0 6px;
  }

  .topic-card span {
    font-size: 0.78rem;
  }

  .feature-strip,
  .stats-section {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .feature-card {
    padding: 14px;
  }

  .feature-card h3 {
    font-size: 0.95rem;
  }

  .feature-card p {
    font-size: 0.85rem;
    line-height: 1.5;
  }

  .section-head {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ==========================================================
   常见问题 FAQ（admin 编辑卡 + 前端展示）
   ========================================================== */

/* 后台：常见问题列表容器 —— 撑满屏幕 */
#faq-list {
  width: 100%;
}

/* 后台：问题编辑卡（左对齐、铺满宽度） */
.faq-edit-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 14px 18px 12px;
  margin-bottom: 12px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
  transition: border-color 0.18s, box-shadow 0.18s;
}
.faq-edit-card:hover {
  border-color: #c7d2fe;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
}
.faq-edit-card__row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.faq-edit-card__row--head {
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px dashed #eef0f3;
}
.faq-edit-card__row--foot {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed #eef0f3;
}
.faq-edit-card__index {
  font-weight: 600;
  font-size: 0.88rem;
  background: #eef2ff;
  color: #4338ca;
  padding: 3px 10px;
  border-radius: 999px;
  flex: 0 0 auto;
}
.faq-edit-card__actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}
.faq-edit-card__actions select {
  padding: 4px 8px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 0.8rem;
  background: #fff;
  outline: none;
  cursor: pointer;
}
.faq-edit-card__actions .btn-del,
.faq-edit-card__actions .btn.btn-primary {
  padding: 4px 12px;
  font-size: 0.82rem;
}
.faq-edit-card__field {
  margin-bottom: 8px;
}
.faq-edit-card__field:last-child {
  margin-bottom: 0;
}
.faq-edit-card__field label {
  display: block;
  font-size: 0.78rem;
  color: #6b7280;
  margin-bottom: 4px;
  font-weight: 500;
}
.faq-edit-card__field input[type="text"],
.faq-edit-card__field textarea {
  width: 100%;
  padding: 7px 10px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 0.88rem;
  background: #fff;
  font-family: inherit;
  outline: none;
  resize: vertical;
  transition: border-color 0.18s, box-shadow 0.18s;
}
.faq-edit-card__field textarea {
  min-height: 48px;
  line-height: 1.5;
}
.faq-edit-card__field input[type="text"]:focus,
.faq-edit-card__field textarea:focus {
  border-color: #6366f1;
  box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.12);
}
.faq-edit-msg {
  margin: 0 0 0 auto;
  font-size: 0.78rem;
  color: #6b7280;
  min-height: 16px;
  flex: 0 0 auto;
}
.faq-edit-msg.is-error { color: #dc2626; }
.faq-edit-msg.is-success { color: #16a34a; }

/* 前端：常见问题区域（VIP 页面） */
.vip-faq {
  max-width: 1080px;
  margin: 32px auto 0;
  padding: 0 16px;
}
.vip-faq__title {
  text-align: center;
  font-size: 1.25rem;
  font-weight: 600;
  color: #1f2937;
  margin: 0 0 18px;
}
.vip-faq__list {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.05);
  overflow: hidden;
}
.vip-faq__item {
  border-bottom: 1px solid #eef0f3;
}
.vip-faq__item:last-child {
  border-bottom: 0;
}
.vip-faq__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  cursor: pointer;
  user-select: none;
  font-size: 0.95rem;
  color: #111827;
  background: #fff;
  transition: background 0.18s ease;
}
.vip-faq__q:hover {
  background: #f7f9fc;
}
.vip-faq__q-text {
  flex: 1;
  padding-right: 12px;
  line-height: 1.5;
}
.vip-faq__q-icon {
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #9ca3af;
  transition: transform 0.25s ease, color 0.18s ease;
  font-size: 1.3rem;
  line-height: 1;
}
.vip-faq__item.open .vip-faq__q-icon {
  transform: rotate(45deg);
  color: #3b82f6;
}
.vip-faq__a {
  display: none;
  padding: 0 18px 16px;
  color: #4b5563;
  font-size: 0.9rem;
  line-height: 1.7;
  background: #fff;
}
.vip-faq__item.open .vip-faq__a {
  display: block;
}
.vip-faq__a p {
  margin: 0 0 6px;
}
.vip-faq__a p:last-child {
  margin-bottom: 0;
}
.vip-faq__empty {
  text-align: center;
  padding: 24px 0;
  color: #9ca3af;
  font-size: 0.9rem;
}

/* ====== 后台：充值记录 ====== */
.recharge-filter {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: var(--bg, #f9fafb);
  border-bottom: 1px solid var(--border, #e5e7eb);
}
.recharge-filter .rf-label {
  font-size: 0.85rem;
  color: #4b5563;
  white-space: nowrap;
}
.recharge-filter .rf-sep {
  color: #9ca3af;
}
.recharge-filter input {
  width: 150px;
  padding: 6px 8px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 0.85rem;
  background: #fff;
}
.recharge-filter input[type="datetime-local"] {
  width: 180px;
}
.recharge-filter input#rf-username {
  width: 140px;
}
.recharge-filter input#rf-amount {
  width: 90px;
}
.recharge-filter .btn {
  padding: 6px 16px;
  font-size: 0.85rem;
}
.recharge-status {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 500;
}
.recharge-status-pending {
  color: #b45309;
  background: #fef3c7;
}
.recharge-status-paid {
  color: #047857;
  background: #d1fae5;
}
.recharge-status-closed,
.recharge-status-cancelled {
  color: #6b7280;
  background: #f3f4f6;
}
.recharge-order-no {
  font-size: 0.78rem;
  color: #9ca3af;
  word-break: break-all;
  max-width: 220px;
}
@media (max-width: 640px) {
  .recharge-filter input {
    width: 100%;
  }
  .recharge-filter input#rf-username,
  .recharge-filter input#rf-amount {
    width: 100%;
  }
}

/* 金额输入框：去除浏览器原生上下选择按钮，强制为直接输入 */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
input[type="number"] {
  -moz-appearance: textfield;
  appearance: textfield;
}

/* 充值记录：状态筛选按钮组 */
.uc-log-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 14px;
}
.uc-log-filter__btn {
  appearance: none;
  -webkit-appearance: none;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 14px;
  cursor: pointer;
  transition: all 0.18s;
}
.uc-log-filter__btn:hover {
  border-color: #ff6b35;
  color: #ff4b2f;
}
.uc-log-filter__btn.active {
  background: linear-gradient(135deg, #ff6b35, #ff4b2f);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 2px 6px rgba(255, 75, 47, 0.25);
}

/* ====== 用户协议弹窗 ====== */
.ag-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px 16px;
}
.ag-overlay.active {
  display: flex;
}
.ag-dialog {
  background: #fff;
  border-radius: 14px;
  width: 100%;
  max-width: 560px;
  max-height: 84vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.28);
  animation: modalIn 0.25s ease;
}
.ag-head {
  padding: 16px 20px 10px;
  text-align: center;
  border-bottom: 1px solid #f0f0f0;
  flex-shrink: 0;
}
.ag-title {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 700;
  color: #111;
}
.ag-tip {
  display: none;
  margin: 6px 0 0;
  font-size: 0.76rem;
  color: #999;
}
.ag-scroll {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding: 14px 20px 6px;
  min-height: 160px;
}
.ag-content {
  color: #333;
  font-size: 0.92rem;
  line-height: 1.8;
  padding-bottom: 8px;
}
.ag-content .ag-h2 {
  text-align: center;
  font-size: 1.15rem;
  margin: 0 0 8px;
}
.ag-content .ag-h4 {
  margin: 14px 0 4px;
  font-size: 0.98rem;
  color: #111;
}
.ag-content p {
  margin: 5px 0;
  text-align: justify;
}
.ag-content .ag-li {
  padding-left: 14px;
  position: relative;
  margin: 3px 0;
}
.ag-content .ag-li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: #ff4b2f;
}
.ag-foot {
  padding: 10px 20px 18px;
  flex-shrink: 0;
}
.ag-btn {
  width: 100%;
  border: none;
  border-radius: 10px;
  background: linear-gradient(135deg, #ff6b35, #ff4b2f);
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  padding: 12px;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.15s;
}
.ag-btn:hover:not(:disabled) {
  transform: translateY(-1px);
}
.ag-btn:active {
  transform: translateY(1px);
}
.ag-btn:disabled {
  background: #d9d9d9;
  color: #8c8c8c;
  cursor: not-allowed;
  box-shadow: none;
}
.ag-btn:disabled.ag-btn--loading {
  background: linear-gradient(135deg, #ffb199, #ff8a73);
}
@media (max-width: 640px) {
  .ag-overlay {
    padding: 12px;
  }
  .ag-dialog {
    max-height: 86vh;
    border-radius: 12px;
  }
  .ag-content {
    font-size: 0.88rem;
  }
}

/* ====== 首页作品封面：固定比例 + 主色底 + 模糊小图占位 + 懒加载清晰过渡 ====== */
.thumb.thumb--progressive {
  position: relative;
  min-height: 0;
  aspect-ratio: 3 / 2;
  background: var(--ph-c, #e9e3f2);
  overflow: hidden;
  isolation: isolate;
}
.thumb--progressive .thumb-ph {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  background-color: var(--ph-c, #e9e3f2);
  opacity: 1;
  transition: opacity 500ms cubic-bezier(0.22, 0.61, 0.36, 1);
  will-change: opacity;
}
.thumb--progressive .thumb-ph-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(20px);
  transform: scale(1.1);
}
.thumb--progressive > img.thumb-full {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  filter: blur(20px);
  transform: scale(1.04);
  transition: opacity 500ms cubic-bezier(0.22, 0.61, 0.36, 1),
              filter 500ms cubic-bezier(0.22, 0.61, 0.36, 1),
              transform 500ms cubic-bezier(0.22, 0.61, 0.36, 1);
  will-change: opacity, filter, transform;
}
.thumb--progressive.is-loaded > img.thumb-full {
  opacity: 1;
  filter: blur(0);
  transform: scale(1);
}
.thumb--progressive.is-loaded .thumb-ph {
  opacity: 0;
}
.thumb--progressive .thumb-overlay { z-index: 3; }
.thumb--progressive .card-hot-badge { z-index: 4; }

@media (max-width: 900px) {
  /* 用图片真实宽高比提前固定框：移动端整图完整显示、加载前后零位移 */
  .product-card .thumb.thumb--progressive {
    aspect-ratio: var(--img-ratio, 9 / 16);
    min-height: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .thumb--progressive .thumb-ph,
  .thumb--progressive > img.thumb-full { transition-duration: 1ms; }
}
