:root {
  --accent: #ff6a00;
  --accent-hover: #e85f00;
  --header-bg: #2b2b2b;
  --header-text: #ffffff;
  --header-muted: #c8c8c8;
  --bg: #f5f5f5;
  --surface: #ffffff;
  --text: #333333;
  --text-muted: #888888;
  --border: #e8e8e8;
  --container: 1200px;
  --radius: 4px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 14px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  min-height: 100vh;
}

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

ul {
  list-style: none;
}

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

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 16px;
}

/* ========== Header ========== */
.site-header {
  background: var(--header-bg);
  color: var(--header-text);
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-header__inner {
  display: flex;
  align-items: center;
  height: 60px;
  gap: 28px;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.site-logo img {
  height: 32px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
}

.site-nav {
  display: none;
  flex: 1;
  min-width: 0;
}

.site-nav ul {
  display: flex;
  align-items: stretch;
  gap: 8px;
  height: 60px;
}

.site-nav li {
  display: flex;
  align-items: stretch;
}

.site-nav a {
  position: relative;
  display: flex;
  align-items: center;
  padding: 0 22px;
  color: #bdbdbd;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.02em;
  white-space: nowrap;
  transition: color 0.2s;
}

.site-nav a::after {
  content: '';
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 0;
  height: 4px;
  border-radius: 2px 2px 0 0;
  background: #3ddc84;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.2s ease;
}

.site-nav a:hover {
  color: #fff;
}

.site-nav a.is-active {
  color: #fff;
  font-weight: 600;
}

.site-nav a.is-active::after {
  transform: scaleX(1);
}

.header-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-actions a {
  color: var(--header-muted);
  font-size: 13px;
}

.header-actions a:hover {
  color: #fff;
}

.header-user {
  color: #fff;
  font-size: 13px;
  opacity: 0.9;
}

.nav-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: none;
  background: transparent;
  color: #fff;
  cursor: pointer;
  font-size: 18px;
}

@media (min-width: 992px) {
  .site-nav {
    display: block;
  }

  .nav-toggle {
    display: none;
  }
}

/* Mobile drawer nav */
.site-nav--mobile {
  display: none;
  background: #222;
  border-top: 1px solid #3a3a3a;
}

.site-nav--mobile.is-open {
  display: block;
}

.site-nav--mobile a {
  display: block;
  padding: 14px 16px;
  color: var(--header-muted);
  font-size: 15px;
  border-bottom: 1px solid #333;
  border-left: 3px solid transparent;
}

.site-nav--mobile a:hover,
.site-nav--mobile a.is-active {
  color: #fff;
  background: #1a1a1a;
}

.site-nav--mobile a.is-active {
  border-left-color: #3ddc84;
}

@media (min-width: 992px) {
  .site-nav--mobile {
    display: none !important;
  }
}

/* ========== Hero Search ========== */
.hero-search {
  position: relative;
  background:
    linear-gradient(180deg, rgba(245, 245, 245, 0.15) 0%, rgba(245, 245, 245, 0.55) 70%, var(--bg) 100%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 280' preserveAspectRatio='none'%3E%3Cpath fill='%23d9d9d9' d='M0 180 L80 120 L160 160 L260 80 L360 140 L480 60 L580 130 L700 50 L820 140 L940 70 L1060 150 L1200 90 L1200 280 L0 280Z'/%3E%3Cpath fill='%23c8c8c8' d='M0 210 L100 150 L200 190 L320 110 L420 170 L550 100 L680 180 L800 120 L920 190 L1050 130 L1200 170 L1200 280 L0 280Z'/%3E%3Cpath fill='%23b8b8b8' d='M0 240 L120 190 L240 230 L380 160 L520 220 L660 170 L800 230 L960 180 L1200 220 L1200 280 L0 280Z'/%3E%3C/svg%3E")
      center bottom / 100% 70% no-repeat,
    linear-gradient(180deg, #ececec 0%, #f5f5f5 100%);
  padding: 48px 0 56px;
}

.hero-search__form {
  display: flex;
  max-width: 720px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.hero-search__form .icon {
  display: flex;
  align-items: center;
  padding-left: 14px;
  color: #bbb;
}

.hero-search__form input {
  flex: 1;
  border: none;
  outline: none;
  padding: 14px 12px;
  font-size: 14px;
  min-width: 0;
}

.hero-search__form button {
  border: none;
  background: var(--accent);
  color: #fff;
  padding: 0 28px;
  font-size: 15px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s;
}

.hero-search__form button:hover {
  background: var(--accent-hover);
}

/* ========== 首页卡片菜单 ========== */
.home-menus {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin: 0 0 18px;
}

.home-menu-card {
  --menu-color: #ff8a3d;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 76px;
  padding: 12px 14px;
  border-radius: 14px;
  text-decoration: none;
  color: inherit;
  background: color-mix(in srgb, var(--menu-color) 10%, #fff);
  border: 1px solid color-mix(in srgb, var(--menu-color) 18%, transparent);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.home-menu-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px color-mix(in srgb, var(--menu-color) 18%, transparent);
  background: color-mix(in srgb, var(--menu-color) 14%, #fff);
}

.home-menu-card__icon {
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: color-mix(in srgb, var(--menu-color) 18%, #fff);
  color: var(--menu-color);
  font-size: 20px;
}

.home-menu-card__icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-menu-card__body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.home-menu-card__title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.home-menu-card__title {
  font-size: 15px;
  font-weight: 700;
  color: #222;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.home-menu-card__badge {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.4;
  color: #fff;
  background: var(--menu-color);
  white-space: nowrap;
}

.home-menu-card__desc {
  font-size: 12px;
  color: #888;
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 1100px) {
  .home-menus {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .home-menus {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .home-menu-card {
    min-height: 70px;
  }
}

/* 菜单弹出图片 */
.menu-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(4px);
}

.menu-lightbox[hidden] {
  display: none !important;
}

.menu-lightbox__img {
  max-width: min(920px, 92vw);
  max-height: 88vh;
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
  object-fit: contain;
  background: #fff;
}

.menu-lightbox__close {
  position: absolute;
  top: 16px;
  right: 20px;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: #333;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.lk-notice--clickable {
  cursor: pointer;
}

.notice-popup .notice-popup__panel {
  position: relative;
  width: min(640px, 92vw);
  max-height: 80vh;
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.28);
}

.notice-popup .notice-popup__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid #eee;
  flex-shrink: 0;
}

.notice-popup .notice-popup__head h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: #222;
}

.notice-popup .menu-lightbox__close {
  position: static;
  width: 32px;
  height: 32px;
  font-size: 24px;
  background: #f3f3f3;
}

.notice-popup .notice-popup__body {
  padding: 16px 18px 20px;
  overflow-y: auto;
  font-size: 14px;
  line-height: 1.75;
  color: #333;
}

.notice-popup .notice-popup__body img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
}

.notice-popup .notice-popup__body p {
  margin: 0 0 12px;
}

/* ========== 公告条：与下方内容同宽，胶囊滚动 ========== */
.notice-bar {
  display: flex;
  align-items: center;
  width: 100%;
  height: 36px;
  margin: 0 0 16px;
  padding: 0 14px;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 999px;
  box-sizing: border-box;
  overflow: hidden;
}

.notice-bar__icon {
  flex: 0 0 auto;
  width: 18px;
  margin-right: 10px;
  color: #333;
  font-size: 13px;
  line-height: 1;
}

.notice-bar__body {
  flex: 1 1 auto;
  min-width: 0;
  height: 100%;
  overflow: hidden;
  position: relative;
}

.notice-bar__scroll {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  white-space: nowrap;
}

.notice-bar__text {
  flex: 0 0 auto;
  white-space: nowrap;
  color: #333;
  font-size: 13px;
  line-height: 36px;
}

.notice-bar__gap {
  flex: 0 0 48px;
  width: 48px;
  height: 1px;
}

/* ========== Notice / Quick Links ========== */
.notice-panel {
  background: var(--surface);
  margin-top: -12px;
  position: relative;
  z-index: 1;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.notice-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  padding: 8px 0;
  min-height: 48px;
}

.notice-grid:empty {
  min-height: 64px;
}

.notice-grid a {
  display: block;
  padding: 8px 16px;
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.notice-grid a:hover {
  color: var(--accent);
}

.stats-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  padding: 10px 16px;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 12px;
  background: #fafafa;
}

.stats-bar span strong {
  color: var(--accent);
  font-weight: 600;
  margin: 0 2px;
}

/* ========== Banner slots ========== */
.banner-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin: 20px 0;
}

.banner-slot {
  background: var(--surface);
  border: 1px dashed #d0d0d0;
  border-radius: 12px;
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #bbb;
  font-size: 13px;
  overflow: hidden;
  position: relative;
}

.banner-slot__empty {
  width: 100%;
  min-height: 120px;
}

.banner-slot.is-filled,
.banner-slot--carousel {
  border-style: solid;
  border-color: var(--border);
  padding: 0;
  align-items: stretch;
  color: transparent;
}

.banner-carousel {
  position: relative;
  width: 100%;
  min-height: 120px;
  aspect-ratio: 16 / 5;
  border-radius: 12px;
  overflow: hidden;
}

.banner-carousel__item {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.45s ease;
  display: block;
}

.banner-carousel__item.is-active {
  opacity: 1;
  pointer-events: auto;
  z-index: 1;
}

.banner-carousel__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 12px;
}

.banner-carousel__dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 10px;
  z-index: 2;
  display: flex;
  justify-content: center;
  gap: 6px;
}

.banner-carousel__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  border: none;
  padding: 0;
  background: rgba(255, 255, 255, 0.55);
  cursor: pointer;
}

.banner-carousel__dot.is-active {
  background: #fff;
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.12);
}

.banner-slot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (min-width: 768px) {
  .banner-row {
    grid-template-columns: 1fr 1fr;
  }

  .banner-slot,
  .banner-slot__empty,
  .banner-carousel {
    min-height: 140px;
  }
}

/* ========== Section: Latest ========== */
.section {
  margin: 24px 0 40px;
}

.section-head {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
}

.section-title::before {
  content: "";
  width: 4px;
  height: 16px;
  background: var(--accent);
  border-radius: 2px;
}

.section-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.section-tabs a,
.section-tabs button {
  border: none;
  background: transparent;
  padding: 6px 12px;
  font-size: 13px;
  color: var(--text-muted);
  cursor: pointer;
  border-radius: var(--radius);
}

.section-tabs a:hover,
.section-tabs a.is-active,
.section-tabs button:hover,
.section-tabs button.is-active {
  color: var(--accent);
  background: #fff4ec;
}

@media (min-width: 768px) {
  .section-head {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

/* ========== Resource Card Grid ========== */
.resource-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  min-height: 120px;
}

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

.resource-card:hover {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.resource-card__cover {
  aspect-ratio: 16 / 10;
  background: #ececec;
  overflow: hidden;
}

.resource-card__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.resource-card__body {
  padding: 12px 14px 14px;
}

.resource-card__title {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 6px;
}

.resource-card__desc {
  font-size: 12px;
  color: var(--text-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 10px;
  min-height: 2.8em;
}

.resource-card__meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: #aaa;
}

@media (min-width: 576px) {
  .resource-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .notice-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 992px) {
  .resource-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .notice-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .hero-search {
    padding: 64px 0 72px;
  }
}

/* ========== Footer ========== */
.site-footer {
  display: block;
  background: #2b2b2b;
  color: #3b82f6;
  padding: 28px 0 80px;
  font-size: 12px;
  text-align: center;
}

.site-footer a {
  color: #3b82f6;
}

.site-footer a:hover {
  color: #60a5fa;
}

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 16px;
  margin-bottom: 12px;
}

.site-footer__copy {
  line-height: 1.8;
  color: #3b82f6;
}

.site-footer__icp {
  margin-top: 6px;
  line-height: 1.6;
}

.site-footer__icp a {
  color: #3b82f6;
}

.site-footer__icp a:hover {
  color: #60a5fa;
}

/* PC 无底栏，减少底部留白 */
@media (min-width: 992px) {
  .site-footer {
    padding-bottom: 28px;
  }
}

/* ========== Mobile bottom tab (可选框架位) ========== */
.mobile-tabbar {
  display: flex;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: 52px;
  background: #fff;
  border-top: 1px solid var(--border);
  z-index: 90;
  padding-bottom: env(safe-area-inset-bottom);
}

.mobile-tabbar a {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: #888;
  gap: 2px;
}

.mobile-tabbar a.is-active,
.mobile-tabbar a:hover {
  color: var(--accent);
}

.mobile-tabbar i {
  font-size: 18px;
}

@media (min-width: 992px) {
  .mobile-tabbar {
    display: none;
  }
}

/* ========== Product list extras ========== */
.resource-card__price {
  color: var(--accent);
  font-weight: 700;
  font-size: 14px;
}

.resource-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 48px 16px;
  color: var(--text-muted);
  background: var(--surface);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
}

/* ========== Product Detail ========== */
.product-page {
  padding: 20px 16px 80px;
}

.product-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  font-size: 13px;
  color: var(--text-muted);
}

.product-breadcrumb a:hover {
  color: var(--accent);
}

.product-hero {
  display: grid;
  gap: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 20px;
}

@media (min-width: 768px) {
  .product-hero {
    grid-template-columns: 1fr 1.1fr;
    padding: 24px;
    gap: 28px;
  }
}

.product-hero__cover {
  aspect-ratio: 16 / 10;
  background: #ececec;
  border-radius: var(--radius);
  overflow: hidden;
}

.product-hero__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-hero__placeholder {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #bbb;
  font-size: 48px;
}

.product-hero__title {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 8px;
}

.product-hero__sub {
  color: var(--text-muted);
  margin-bottom: 14px;
}

.product-hero__price {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

.product-hero__price em {
  font-style: normal;
  font-size: 28px;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
}

.product-hero__price s {
  color: #aaa;
  font-size: 14px;
}

.sold-badge {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 12px 0 10px;
  border-radius: 999px 4px 4px 999px;
  background: linear-gradient(90deg, #3ecbff 0%, #2f7df4 100%);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1;
  box-shadow: 0 2px 6px rgba(47, 125, 244, 0.25);
  white-space: nowrap;
}

.product-hero__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 14px;
  margin-bottom: 18px;
  font-size: 13px;
  color: #666;
}

.product-hero__meta li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.product-hero__meta li + li::before {
  content: '';
  width: 3px;
  height: 3px;
  margin-right: 2px;
  border-radius: 50%;
  background: #cfcfcf;
}

.product-hero__meta span {
  color: var(--text-muted);
}

.product-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 10px;
}

.btn-buy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 140px;
  height: 42px;
  padding: 0 28px;
  border: 0;
  border-radius: 6px;
  cursor: pointer;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.04em;
  background: linear-gradient(180deg, #ff7a5c 0%, #e83a2f 100%);
  box-shadow: 0 2px 8px rgba(232, 58, 47, 0.25);
}

.btn-buy:hover {
  background: linear-gradient(180deg, #ff6a4a 0%, #d42f25 100%);
}
.btn-buy.is-purchased,
.btn-buy:disabled.is-purchased {
  cursor: default;
  opacity: 1;
  background: linear-gradient(180deg, #9ca3af 0%, #6b7280 100%);
  box-shadow: none;
}
.btn-view-resource {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 120px;
  height: 42px;
  padding: 0 20px;
  border: 1px solid #16a34a;
  border-radius: 6px;
  cursor: pointer;
  color: #16a34a;
  font-size: 15px;
  font-weight: 700;
  background: #ecfdf5;
}
.btn-view-resource:hover {
  background: #d1fae5;
}
.btn-view-resource[hidden] {
  display: none !important;
}

.product-hero__guest-tip {
  margin: 0 0 10px;
  padding: 8px 12px;
  background: #f5f5f5;
  color: #888;
  font-size: 12px;
  border-radius: 4px;
  line-height: 1.5;
}

.product-hero__hint {
  font-size: 12px;
  color: var(--text-muted);
}

.btn-accent,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  padding: 8px 16px;
  border: 1px solid transparent;
  cursor: pointer;
  font-size: 14px;
}

.btn-accent {
  background: var(--accent);
  color: #fff;
}

.btn-accent:hover {
  background: var(--accent-hover);
  color: #fff;
}

.btn-ghost {
  background: #fff;
  border-color: var(--border);
  color: var(--text);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-lg {
  padding: 12px 22px;
  font-size: 15px;
  font-weight: 600;
}

.product-detail-block {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 16px 28px;
  margin-bottom: 24px;
}

.product-detail-block .section-title {
  margin-bottom: 16px;
}

.product-detail-html {
  font-size: 15px;
  line-height: 1.8;
  color: #333;
  overflow-wrap: anywhere;
}

.product-detail-html img,
.product-detail-html iframe {
  max-width: 100%;
  height: auto;
}

.product-detail-html iframe {
  width: 100%;
  min-height: 400px;
  border: 0;
  display: block;
  margin: 12px 0;
}

.product-detail-html p {
  margin: 0 0 12px;
}

.product-empty {
  text-align: center;
  padding: 80px 20px;
  background: var(--surface);
  border-radius: var(--radius);
  color: var(--text-muted);
}

.product-empty i {
  font-size: 48px;
  display: block;
  margin-bottom: 12px;
}

.product-empty p {
  margin-bottom: 16px;
}

.product-related {
  margin-top: 8px;
}

.text-muted {
  color: var(--text-muted);
}

/* ========== Product layout + user panel ========== */
.product-layout {
  display: grid;
  gap: 16px;
  align-items: start;
}

@media (min-width: 992px) {
  .product-layout {
    grid-template-columns: minmax(0, 1fr) 260px;
    gap: 20px;
  }
}

.product-layout__main {
  min-width: 0;
}

.product-layout__aside {
  order: -1;
}

@media (min-width: 992px) {
  .product-layout__aside {
    order: 0;
    position: sticky;
    top: 72px;
  }
}

.user-panel {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.06);
  overflow: visible;
  padding-bottom: 20px;
  border: 1px solid var(--border);
}

.user-panel__banner {
  height: 96px;
  border-radius: 10px 10px 0 0;
  background-color: #ff8eb4;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.user-panel__avatar {
  width: 72px;
  height: 72px;
  margin: -36px auto 10px;
  border-radius: 50%;
  background: #eaf4ff;
  border: 3px solid #fff;
  box-shadow: 0 0 0 3px rgba(110, 180, 255, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
  z-index: 1;
}

.user-panel__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.user-panel__hello {
  text-align: center;
  font-size: 16px;
  font-weight: 600;
  color: #333;
  margin: 0 12px 6px;
}

.user-panel__email {
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
  margin: 0 12px 14px;
  word-break: break-all;
}

.user-panel__btns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 0 16px;
}

.user-panel__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 36px;
  border-radius: 6px;
  color: #fff !important;
  font-size: 13px;
  font-weight: 600;
}

.user-panel__btn--blue {
  background: #4aa3ff;
}

.user-panel__btn--blue:hover {
  background: #3b93ef;
}

.user-panel__btn--orange {
  background: #ff8a3d;
}

.user-panel__btn--orange:hover {
  background: #ef7a2c;
}

.service-qr-card {
  margin-top: 14px;
  line-height: 0;
}

.service-qr-card img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
}

/* ========== Search ========== */
.search-page {
  padding-bottom: 40px;
}

.search-meta {
  margin-left: 10px;
  font-size: 13px;
  font-weight: 400;
  color: var(--text-muted);
}

.search-pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 24px;
  font-size: 14px;
  color: var(--text-muted);
}

.search-pager a {
  color: var(--accent);
}

.search-pager a:hover {
  text-decoration: underline;
}

/* ========== Auth Modal ========== */
.auth-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.auth-modal[hidden] {
  display: none !important;
}

.auth-modal__mask {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(2px);
}

.auth-modal__panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 400px;
  background: #fff;
  border-radius: 16px;
  padding: 28px 28px 24px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.18);
}

.auth-modal__close {
  position: absolute;
  top: 12px;
  right: 14px;
  border: 0;
  background: transparent;
  color: #bbb;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}

.auth-modal__close:hover {
  color: #666;
}

.auth-panel__title {
  font-size: 28px;
  font-weight: 800;
  color: #111;
  margin: 0 0 10px;
  position: relative;
  display: inline-block;
}

.auth-panel__title::after {
  content: "";
  display: block;
  width: 36px;
  height: 4px;
  margin-top: 8px;
  border-radius: 2px;
  background: #22c55e;
}

.auth-panel__title--green::after {
  background: #22c55e;
}

.auth-panel__switch {
  margin: 0 0 18px;
  font-size: 13px;
  color: #999;
}

.auth-panel__switch a {
  color: #666;
}

.auth-panel__switch a:hover {
  color: #22c55e;
}

.auth-panel__msg {
  display: none;
  margin-bottom: 12px;
  padding: 8px 10px;
  border-radius: 6px;
  font-size: 13px;
}

.auth-panel__msg.is-err {
  display: block;
  background: #fff1f0;
  color: #cf1322;
}

.auth-panel__msg.is-ok {
  display: block;
  background: #f6ffed;
  color: #389e0d;
}

.auth-field {
  position: relative;
  margin-bottom: 14px;
}

.auth-field input {
  width: 100%;
  border: 0;
  border-bottom: 1px solid #e8e8e8;
  border-radius: 0;
  padding: 12px 2px;
  font-size: 15px;
  background: transparent;
  outline: none;
}

.auth-field input:focus {
  border-bottom-color: #22c55e;
}

.auth-field--code {
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid #e8e8e8;
}

.auth-field--code input {
  flex: 1;
  border-bottom: 0;
  margin: 0;
}

.auth-field--code:focus-within {
  border-bottom-color: #22c55e;
}

.auth-code-btn {
  flex: 0 0 auto;
  border: 0;
  background: #e8f3ff;
  color: #3b82f6;
  font-size: 13px;
  padding: 8px 12px;
  border-radius: 6px;
  cursor: pointer;
  white-space: nowrap;
}

.auth-code-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.auth-field--pwd .auth-eye {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  color: #aaa;
  cursor: pointer;
  padding: 6px;
}

.auth-login-extra {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 8px 0 18px;
  font-size: 13px;
  color: #888;
}

.auth-check {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.auth-check input {
  accent-color: #22c55e;
}

.auth-mode-link {
  color: #888;
  text-decoration: none;
}

.auth-mode-link:hover {
  color: #3b82f6;
}

.auth-btn {
  width: 100%;
  height: 46px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.auth-btn--blue {
  background: #3b82f6;
}

.auth-btn--blue:hover {
  background: #2563eb;
}

.auth-btn--green {
  background: #22c55e;
}

.auth-btn--green:hover {
  background: #16a34a;
}

.auth-btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.auth-agree {
  margin-top: 14px;
  text-align: center;
  font-size: 12px;
  color: #999;
}

.auth-agree a {
  color: #22c55e;
  text-decoration: none;
}
.auth-agree a:hover {
  text-decoration: underline;
}

/* 确认购买弹窗 */
.pay-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.pay-modal[hidden] {
  display: none !important;
}
.pay-modal__mask {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}
.pay-modal__panel {
  position: relative;
  width: 100%;
  max-width: 360px;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.2);
}
.pay-modal__head {
  position: relative;
  padding: 28px 20px 22px;
  text-align: center;
  color: #fff;
  background:
    radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.18) 0, transparent 42%),
    radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.14) 0, transparent 36%),
    radial-gradient(circle at 50% 90%, rgba(255, 255, 255, 0.12) 0, transparent 48%),
    linear-gradient(160deg, #4da3ff 0%, #2f7df4 55%, #2563eb 100%);
}
.pay-modal__close {
  position: absolute;
  top: 10px;
  right: 12px;
  z-index: 2;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  font-size: 22px;
  color: rgba(255, 255, 255, 0.85);
  cursor: pointer;
  line-height: 1;
}
.pay-modal__close:hover {
  background: rgba(255, 255, 255, 0.15);
}
.pay-modal__cart {
  width: 56px;
  height: 56px;
  margin: 0 auto 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
}
.pay-modal__title {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.06em;
}
.pay-modal__body {
  padding: 18px 18px 20px;
}
.pay-modal__product {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 14px;
}
.pay-modal__tag {
  flex-shrink: 0;
  margin-top: 2px;
  padding: 2px 6px;
  border-radius: 3px;
  background: #ef4444;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.4;
  white-space: nowrap;
}
.pay-modal__name {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: #222;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.pay-modal__price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  margin-bottom: 14px;
  border-radius: 10px;
  background: #f3f4f6;
  font-size: 14px;
  color: #666;
}
.pay-modal__price-row em {
  font-style: normal;
  font-weight: 700;
  font-size: 18px;
  color: #e11d48;
}
.pay-modal__section-label {
  margin: 0 0 8px;
  font-size: 13px;
  color: #888;
}
.pay-modal__list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}
.pay-method {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 11px 12px;
  border: 1px solid #e8e8e8;
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  text-align: left;
  transition: border-color 0.15s, background 0.15s;
}
.pay-method:hover:not(:disabled) {
  border-color: #3b82f6;
  background: #f8faff;
}
.pay-method:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.pay-method.is-active {
  border-color: #3b82f6;
  background: #eff6ff;
  box-shadow: inset 0 0 0 1px #3b82f6;
}
.pay-method__icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}
.pay-method__icon--alipay {
  background: #e8f4ff;
  color: #1677ff;
}
.pay-method__icon--wechat {
  background: #e8f8ef;
  color: #07c160;
}
.pay-method__meta {
  flex: 1;
  min-width: 0;
}
.pay-method__name {
  font-size: 14px;
  font-weight: 600;
  color: #222;
}
.pay-method__desc {
  font-size: 12px;
  color: #999;
  margin-top: 1px;
}
.pay-method__tag {
  font-size: 11px;
  color: #f59e0b;
  white-space: nowrap;
}
.pay-modal__empty {
  text-align: center;
  color: #999;
  font-size: 13px;
  padding: 12px 0 16px;
}
.pay-modal__submit {
  width: 100%;
  height: 48px;
  border: 0;
  border-radius: 999px;
  background: #ef4444;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(239, 68, 68, 0.28);
}
.pay-modal__submit:hover:not(:disabled) {
  background: #dc2626;
}
.pay-modal__submit:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  box-shadow: none;
}
.pay-modal__tip {
  margin: 10px 0 0;
  text-align: center;
  font-size: 12px;
  color: #999;
  min-height: 16px;
}

/* 扫码支付弹窗 */
.qrpay-modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.qrpay-modal[hidden] {
  display: none !important;
}
.qrpay-modal__mask {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
}
.qrpay-modal__panel {
  position: relative;
  width: 100%;
  max-width: 340px;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.22);
}
.qrpay-modal__head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 16px;
  border-bottom: 1px solid #f0f0f0;
}
.qrpay-modal__head-icon {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: #fff;
}
.qrpay-modal__head-icon--wx {
  background: #07c160;
}
.qrpay-modal__head-icon--ali {
  background: #1677ff;
}
.qrpay-modal__head-title {
  flex: 1;
  font-size: 16px;
  font-weight: 700;
  color: #222;
}
.qrpay-modal__close {
  border: 0;
  background: transparent;
  font-size: 22px;
  color: #999;
  cursor: pointer;
  line-height: 1;
  padding: 0 2px;
}
.qrpay-modal__body {
  padding: 18px 20px 8px;
  text-align: center;
}
.qrpay-modal__label {
  margin: 0 0 8px;
  font-size: 13px;
  color: #666;
}
.qrpay-modal__money {
  margin: 0 0 16px;
  font-size: 28px;
  font-weight: 800;
  color: #222;
  letter-spacing: 0.02em;
}
.qrpay-modal__qr-wrap {
  width: 260px;
  height: 260px;
  margin: 0 auto 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  box-sizing: border-box;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 8px;
  overflow: hidden;
}
.qrpay-modal__qr-wrap.is-iframe {
  width: 100%;
  max-width: 300px;
  height: 360px;
  border: 0;
  background: #fafafa;
  overflow: hidden;
}
.qrpay-modal__iframe {
  width: 100%;
  height: 100%;
  border: 0;
  background: #fff;
}
.qrpay-modal__qr-wrap canvas,
.qrpay-modal__qr-wrap img,
.qrpay-modal__qr-wrap table {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.qrpay-modal__status {
  margin: 0 0 10px;
  min-height: 18px;
  font-size: 12px;
  color: #999;
}
.qrpay-modal__status.is-ok {
  color: #16a34a;
  font-weight: 600;
}
.qrpay-modal__foot {
  padding: 12px 16px;
  background: #1677ff;
  color: #fff;
  font-size: 13px;
  text-align: center;
}
.qrpay-modal__foot.is-wx {
  background: #07c160;
}

/* 支付成功 · 网盘发货弹窗 */
.delivery-modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.delivery-modal[hidden] {
  display: none;
}
.delivery-modal__mask {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.48);
}
.delivery-modal__panel {
  position: relative;
  width: min(440px, 100%);
  max-height: min(86vh, 640px);
  overflow: auto;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 20px 48px rgba(15, 23, 42, 0.18);
  padding: 22px 22px 18px;
}
.delivery-modal__head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
}
.delivery-modal__ok {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #ecfdf5;
  color: #16a34a;
  font-size: 22px;
}
.delivery-modal__title {
  margin: 2px 0 4px;
  font-size: 18px;
  font-weight: 700;
  color: #111827;
}
.delivery-modal__sub {
  margin: 0;
  font-size: 12px;
  color: #6b7280;
}
.delivery-modal__close {
  margin-left: auto;
  border: 0;
  background: transparent;
  color: #9ca3af;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  padding: 0 2px;
}
.delivery-modal__meta {
  display: grid;
  gap: 6px;
  padding: 12px 14px;
  margin-bottom: 14px;
  background: #f8fafc;
  border-radius: 10px;
  font-size: 13px;
  color: #4b5563;
}
.delivery-modal__meta b {
  color: #111827;
  font-weight: 600;
}
.delivery-modal__item {
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 10px;
}
.delivery-modal__item h3 {
  margin: 0 0 8px;
  font-size: 14px;
  color: #111827;
}
.delivery-modal__row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 8px 0;
  font-size: 13px;
  color: #374151;
}
.delivery-modal__row-label {
  flex-shrink: 0;
  color: #6b7280;
  line-height: 28px;
}
.delivery-modal__row-main {
  flex: 1;
  min-width: 0;
  word-break: break-all;
  line-height: 1.5;
  padding-top: 5px;
}
.delivery-modal__row-main a {
  color: #2563eb;
}
.copy-btn {
  flex-shrink: 0;
  height: 28px;
  padding: 0 10px;
  border: 1px solid #fecaca;
  border-radius: 6px;
  background: #fff5f5;
  color: #ef4444;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  line-height: 26px;
  white-space: nowrap;
}
.copy-btn:hover {
  background: #fee2e2;
}
.copy-btn.is-copied {
  border-color: #86efac;
  background: #ecfdf5;
  color: #16a34a;
}
.delivery-modal__empty {
  text-align: center;
  color: #9ca3af;
  font-size: 13px;
  padding: 12px 0 4px;
}
.delivery-modal__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 16px;
}
.delivery-modal__btn {
  min-width: 140px;
  height: 40px;
  border: 0;
  border-radius: 10px;
  background: #ef4444;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.delivery-modal__btn--copy {
  background: #fff;
  color: #ef4444;
  border: 1px solid #fecaca;
}
.delivery-modal__btn--copy:hover {
  background: #fff5f5;
}
.delivery-modal__btn--copy.is-copied {
  border-color: #86efac;
  background: #ecfdf5;
  color: #16a34a;
}

/* 付款动态（右下角） */
.buy-toast {
  position: fixed;
  right: 16px;
  bottom: 88px;
  z-index: 70;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  pointer-events: none;
  max-width: min(320px, calc(100vw - 32px));
}
@media (min-width: 769px) {
  .buy-toast {
    bottom: 28px;
  }
}
.buy-toast__item {
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  padding: 6px 14px 6px 6px;
  border-radius: 999px;
  background: rgba(32, 36, 44, 0.72);
  color: #fff;
  font-size: 12px;
  line-height: 1.35;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  transform: translateY(14px) scale(0.96);
  transition: opacity 0.35s ease, transform 0.35s ease;
}
.buy-toast__item.is-in {
  opacity: 1;
  transform: translateY(0) scale(1);
}
.buy-toast__item.is-out {
  opacity: 0;
  transform: translateY(-10px) scale(0.96);
}
.buy-toast__avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  flex-shrink: 0;
  object-fit: cover;
  background: #4b5563;
  box-shadow: 0 0 0 2px rgba(74, 222, 128, 0.45);
}
.buy-toast__text {
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.buy-toast__text em {
  font-style: normal;
  color: #93c5fd;
  font-weight: 600;
}

.auth-slider {
  margin: 4px 0 16px;
}

.auth-slider__tip {
  font-size: 12px;
  color: #999;
  margin-bottom: 8px;
}

.auth-slider__track {
  position: relative;
  height: 40px;
  background: #f5f5f5;
  border-radius: 20px;
  border: 1px solid #eee;
  overflow: hidden;
  user-select: none;
  touch-action: none;
}

.auth-slider__track.is-ok {
  border-color: #52c41a;
  background: #f6ffed;
}

.auth-slider__track.is-fail {
  border-color: #ff4d4f;
}

.auth-slider__fill {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0;
  background: rgba(34, 197, 94, 0.18);
}

.auth-slider__text {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: #999;
  pointer-events: none;
  z-index: 1;
}

.auth-slider__btn {
  position: absolute;
  left: 0;
  top: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid #ddd;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #22c55e;
  z-index: 2;
  cursor: grab;
}

.auth-slider__track.is-ok .auth-slider__btn {
  background: #52c41a;
  color: #fff;
  border-color: #52c41a;
}

.auth-slider__track.is-ok .auth-slider__text {
  color: #389e0d;
}

/* 发送验证码后弹出的拼图滑块层 */
.slider-popup {
  position: fixed;
  inset: 0;
  z-index: 2100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.slider-popup[hidden] {
  display: none !important;
}

.slider-popup__mask {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(2px);
}

.slider-popup__box {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 360px;
  background: #fff;
  border-radius: 12px;
  padding: 18px 16px 14px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.22);
}

.slider-popup__box--jigsaw {
  max-width: 342px;
}

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

.jigsaw-head__actions {
  display: flex;
  align-items: center;
  gap: 2px;
}

.jigsaw-icon-btn {
  border: 0;
  background: transparent;
  color: #aaa;
  font-size: 16px;
  width: 28px;
  height: 28px;
  cursor: pointer;
  line-height: 1;
}

.jigsaw-icon-btn:hover {
  color: #666;
}

.slider-popup__title {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 4px;
  color: #222;
}

.slider-popup__desc {
  font-size: 12px;
  color: #999;
  margin: 0;
}

.jigsaw-panel__bg-wrap {
  position: relative;
  width: 310px;
  height: 155px;
  margin: 0 auto;
  border-radius: 4px;
  overflow: hidden;
  background: #f0f0f0;
  user-select: none;
}

.jigsaw-panel__bg {
  display: block;
  width: 310px;
  height: 155px;
  object-fit: cover;
  pointer-events: none;
}

.jigsaw-panel__piece {
  position: absolute;
  left: 0;
  top: 0;
  width: 52px;
  height: 52px;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.35));
  pointer-events: none;
  z-index: 2;
}

.jigsaw-bar {
  position: relative;
  width: 310px;
  height: 40px;
  margin: 12px auto 0;
  background: #f5f5f5;
  border: 1px solid #e8e8e8;
  border-radius: 20px;
  overflow: hidden;
  user-select: none;
  touch-action: none;
}

.jigsaw-bar.is-ok {
  border-color: #52c41a;
  background: #f6ffed;
}

.jigsaw-bar.is-fail {
  border-color: #ff4d4f;
  background: #fff2f0;
}

.jigsaw-bar__fill {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0;
  background: rgba(24, 144, 255, 0.18);
}

.jigsaw-bar.is-ok .jigsaw-bar__fill {
  background: rgba(82, 196, 26, 0.2);
}

.jigsaw-bar__text {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: #999;
  pointer-events: none;
  z-index: 1;
}

.jigsaw-bar__btn {
  position: absolute;
  left: 0;
  top: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid #ddd;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1890ff;
  z-index: 2;
  cursor: grab;
}

.jigsaw-bar.is-ok .jigsaw-bar__btn {
  background: #52c41a;
  color: #fff;
  border-color: #52c41a;
}

.jigsaw-bar.is-fail .jigsaw-bar__btn {
  background: #ff4d4f;
  color: #fff;
  border-color: #ff4d4f;
}

.slider-popup__msg {
  min-height: 18px;
  margin-top: 10px;
  font-size: 12px;
  color: #999;
  text-align: center;
}

.slider-popup__msg.is-err {
  color: #cf1322;
}

.slider-popup__msg.is-ok {
  color: #389e0d;
}




