:root {
  --bg: #ffffff;
  --bg-soft: #f5f6f7;
  --text: #121212;
  --muted: #666;
  --line: #ececec;
  --accent: #2f80ed;
  --accent-2: #25d366;
  --tg: #2aabee;
  --pink: #ff4d6d;
  --hot: #ff3b30;
  --orange: #ff7a18;
  --banner: #cfe9ff;
  --radius: 10px;
  --shadow: 0 8px 24px rgba(0,0,0,.08);
  --max: 1200px;
  --header-h: 56px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Source Han Sans SC", "PingFang SC", "Microsoft YaHei", -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; }
.container { width: min(100% - 24px, var(--max)); margin: 0 auto; }

/* Top bar */
.topbar {
  display: flex; align-items: center; justify-content: space-between;
  height: 36px; padding: 0 16px; font-size: 12px; color: #333;
  border-bottom: 1px solid var(--line); background: #fff;
}
.topbar a { opacity: .85; }
.topbar-right { display: flex; align-items: center; gap: 8px; }

/* Notice ticker */
.notice-bar {
  overflow: hidden; background: #f3f5f7; border-bottom: 1px solid var(--line);
  height: 34px; display: flex; align-items: center; justify-content: center;
}
.notice-track {
  white-space: nowrap; color: #555; font-size: 12px;
  animation: notice-sway 2.4s ease-in-out infinite;
}
@keyframes notice-sway {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-10px); }
  75% { transform: translateX(10px); }
}
.icon-btn {
  width: 36px; height: 36px; border: 0; background: transparent; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; border-radius: 8px;
}
.icon-btn:hover { background: var(--bg-soft); }
.icon-btn svg { width: 20px; height: 20px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96);
  backdrop-filter: blur(8px); border-bottom: 1px solid var(--line);
}
.header-inner {
  height: var(--header-h); display: grid; grid-template-columns: 48px 1fr 48px;
  align-items: center; padding: 0 8px;
}
.logo {
  text-align: center; font-weight: 900; font-size: 28px; letter-spacing: .04em;
  font-family: "STXingkai", "华文行楷", "KaiTi", "Source Han Serif SC", serif;
  line-height: 1; display:flex; align-items:center; justify-content:center;
}
.logo span { display: inline-block; transform: skewX(-6deg); }
.logo-img { height: 36px; width: auto; max-width: 160px; object-fit: contain; }

/* Desktop category bar */
.main-nav { display: none; }
.nav-caret {
  display: inline-block; width: 0; height: 0; margin-left: 4px; vertical-align: middle;
  border-left: 4px solid transparent; border-right: 4px solid transparent;
  border-top: 5px solid currentColor; opacity: .55;
}
@media (min-width: 900px) {
  .header-inner {
    height: 64px; max-width: 1280px; margin: 0 auto;
    grid-template-columns: auto 1fr auto; gap: 18px; padding: 0 20px;
  }
  .menu-btn { display: none; }
  .logo { justify-content: flex-start; text-align: left; font-size: 30px; }
  .logo-img { height: 40px; max-width: 180px; }
  .main-nav {
    display: flex; align-items: center; justify-content: flex-start; flex-wrap: nowrap;
    gap: 2px; min-width: 0; overflow: visible;
  }
  .nav-item { position: relative; }
  .nav-link {
    display: inline-flex; align-items: center; padding: 10px 11px;
    font-size: 14px; color: #222; white-space: nowrap; border-radius: 8px;
  }
  .nav-link:hover { color: var(--accent); background: var(--bg-soft); }
  .nav-sub {
    position: absolute; top: calc(100% + 6px); left: 0; min-width: 168px;
    background: #fff; border: 1px solid var(--line); border-radius: 12px;
    box-shadow: var(--shadow); padding: 8px; display: none; z-index: 60;
  }
  .nav-sub a {
    display: block; padding: 9px 10px; border-radius: 8px; font-size: 13px; color: #333;
  }
  .nav-sub a:hover { background: var(--bg-soft); color: var(--accent); }
  .nav-item:hover > .nav-sub,
  .nav-item:focus-within > .nav-sub { display: block; }
  .nav-item.has-sub:hover .nav-caret { transform: rotate(180deg); opacity: .9; }
}

/* Drawer nav */
.overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.4); z-index: 80;
  opacity: 0; pointer-events: none; transition: .25s;
}
.overlay.open { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed; top: 0; left: 0; bottom: 0; width: min(86vw, 340px);
  background: #fff; z-index: 90; transform: translateX(-105%);
  transition: transform .28s ease; overflow: auto; padding: 18px 16px 40px;
  box-shadow: var(--shadow);
}
.drawer.open { transform: translateX(0); }
.drawer-head { display:flex; justify-content:space-between; align-items:center; margin-bottom:4px; }
.drawer-tagline { margin:0 0 12px; color:var(--muted); font-size:12px; line-height:1.5; }
.drawer-links { display:grid; gap:2px; margin-bottom:10px; padding-bottom:10px; border-bottom:1px solid var(--line); }
.drawer h3 { margin: 18px 0 8px; font-size: 14px; color: var(--muted); font-weight: 600; }
.drawer .nav-group { border-bottom: 1px solid var(--line); padding-bottom: 10px; margin-bottom: 8px; }
.drawer a {
  display: block; padding: 10px 8px; border-radius: 8px; font-size: 15px;
}
.drawer a:hover { background: var(--bg-soft); }
.drawer .child { padding-left: 18px; font-size: 14px; color: #444; }

/* Search panel */
.search-panel {
  display: none; position: absolute; left: 0; right: 0; top: 100%;
  background: #fff; border-bottom: 1px solid var(--line); padding: 12px 16px;
}
.search-panel.open { display: block; }
.search-panel form { display: flex; gap: 8px; }
.search-panel input {
  flex: 1; border: 1px solid var(--line); border-radius: 999px; padding: 10px 14px; background: var(--bg-soft);
}
.search-panel button {
  border: 0; background: var(--text); color: #fff; border-radius: 999px; padding: 0 18px; cursor: pointer;
}

/* Banner */
.hero {
  margin: 12px auto; width: min(100% - 16px, var(--max));
  border-radius: 18px; overflow: hidden;
  background:
    radial-gradient(420px 180px at 85% 20%, rgba(255,255,255,.55), transparent 60%),
    linear-gradient(135deg, #d7eeff 0%, #b8e0ff 42%, #9fd0ff 100%);
  min-height: 230px; position: relative; box-shadow: 0 14px 34px rgba(90,160,220,.16);
}
.hero-inner { padding: 28px 22px 26px; position: relative; z-index: 2; }
.hero-badge {
  display:inline-block; font-size:11px; letter-spacing:.12em; font-weight:700;
  color:#1d4ed8; background:rgba(255,255,255,.7); border-radius:999px; padding:4px 10px; margin-bottom:10px;
}
.hero h1 { margin: 0 0 14px; font-size: clamp(28px, 6vw, 42px); letter-spacing: .06em; font-weight: 900; }
.hero-points {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px 18px; max-width: 460px; margin-bottom: 18px;
}
.hero-points div { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; }
.hero-points i {
  width: 28px; height: 28px; border-radius: 50%; background: rgba(255,255,255,.8);
  display: inline-flex; align-items: center; justify-content: center; font-style: normal; font-size: 13px;
  box-shadow: 0 2px 8px rgba(30,100,180,.08);
}
.btn-hero {
  display: inline-flex; align-items: center; gap: 6px;
  background: #111; color: #fff; border-radius: 999px; padding: 11px 20px; font-size: 14px; font-weight: 700;
  box-shadow: 0 8px 18px rgba(0,0,0,.18);
}
.hero-art { position:absolute; inset:0; pointer-events:none; overflow:hidden; }
.hero-art .gift {
  position:absolute; border-radius:16px; background:rgba(255,255,255,.78);
  box-shadow: 0 10px 24px rgba(40,110,180,.12);
}
.hero-art .gift::before {
  content:""; position:absolute; left:50%; top:0; bottom:0; width:16px; transform:translateX(-50%);
  background:rgba(255,138,101,.9);
}
.hero-art .gift::after {
  content:""; position:absolute; left:0; right:0; top:42%; height:16px; background:rgba(255,138,101,.9);
}
.hero-art .g1 { width:86px; height:86px; right:18%; bottom:18%; transform:rotate(-8deg); }
.hero-art .g2 { width:108px; height:108px; right:6%; bottom:10%; background:rgba(255,255,255,.9); }
.hero-art .g3 { width:64px; height:64px; right:28%; bottom:42%; background:#fff59d; opacity:.85; border-radius:50%; box-shadow:none; }
.hero-art .g3::before, .hero-art .g3::after { display:none; }
.hero-art .orb { position:absolute; border-radius:50%; filter:blur(2px); }
.hero-art .o1 { width:70px; height:70px; right:40%; top:16%; background:rgba(206,147,216,.35); }
.hero-art .o2 { width:40px; height:40px; right:12%; top:28%; background:rgba(66,165,245,.28); }
.hero.hero-image {
  background: transparent; box-shadow: none; min-height: 0; padding: 0;
}
.hero-banner-link, .hero-banner-link img {
  display: block; width: 100%; height: auto;
}
.hero-banner-link img {
  border-radius: 16px; object-fit: cover; max-height: 420px;
}

/* Sections */
.section { padding: 18px 0 8px; }
.section-head {
  display: flex; align-items: center; justify-content: space-between;
  margin: 8px 0 14px;
}
.section-head h2 { margin: 0; font-size: 20px; }
.section-head a { font-size: 13px; color: var(--muted); }

/* Product grid */
.product-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px;
}
@media (min-width: 768px) {
  .product-grid { grid-template-columns: repeat(4, 1fr); gap: 16px; }
  .hero { min-height: 260px; }
  .hero-points { grid-template-columns: repeat(4, auto); max-width: none; }
}
.product-card {
  background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden;
  transition: transform .2s, box-shadow .2s; position: relative;
}
.product-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.product-card .thumb {
  aspect-ratio: 1; background: var(--bg-soft); position: relative; overflow: hidden;
}
.product-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.badge-hot {
  position: absolute; top: 0; left: 8px; background: var(--hot); color: #fff;
  font-size: 11px; font-weight: 700; padding: 4px 7px 6px; border-radius: 0 0 6px 6px; z-index: 2;
}
.badge-discount {
  position: absolute; right: 8px; bottom: 8px; background: var(--pink); color: #fff;
  font-size: 12px; font-weight: 700; padding: 3px 7px; border-radius: 6px; z-index: 2;
}
.product-body { padding: 10px 10px 12px; }
.product-body h3 {
  margin: 0 0 8px; font-size: 13px; font-weight: 600; line-height: 1.45;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.9em;
}
.price-row { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.price { color: var(--pink); font-weight: 800; font-size: 16px; }
.price-origin { color: #999; text-decoration: line-through; font-size: 12px; }
.meta-row { margin-top: 6px; font-size: 12px; color: var(--muted); display: flex; gap: 10px; }

/* Blog */
.blog-list { display: grid; gap: 14px; }
.blog-item {
  display: grid; grid-template-columns: 120px 1fr; gap: 12px; padding: 12px;
  border: 1px solid var(--line); border-radius: 12px; background: #fff;
}
.blog-item img { width: 120px; height: 90px; object-fit: cover; border-radius: 8px; }
.blog-item h3 { margin: 0 0 6px; font-size: 15px; }
.blog-item p { margin: 0; font-size: 13px; color: var(--muted);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
@media (min-width: 768px) {
  .blog-list { grid-template-columns: repeat(3, 1fr); }
  .blog-item { grid-template-columns: 1fr; }
  .blog-item img { width: 100%; height: 160px; }
}

/* Footer */
.site-footer {
  margin-top: 40px; background: #111; color: #ddd; padding: 36px 0 20px;
}
.footer-brand { margin-bottom: 22px; }
.footer-logo {
  font-family: "STXingkai", "华文行楷", "KaiTi", serif;
  font-size: 28px; color: #fff; margin-bottom: 6px;
}
.footer-brand p { margin: 0; color: #9aa0a6; font-size: 13px; max-width: 42ch; }
.footer-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px;
}
@media (min-width: 768px) { .footer-grid { grid-template-columns: repeat(4, 1fr); } }
.site-footer h4 { margin: 0 0 10px; color: #fff; font-size: 14px; }
.site-footer a { display: block; color: #bbb; font-size: 13px; padding: 4px 0; }
.site-footer a:hover { color: #fff; }
.copyright { margin-top: 28px; padding-top: 16px; border-top: 1px solid #333; font-size: 12px; color: #888; text-align: center; }
.cs-card .qr.tg-qr { background: linear-gradient(135deg,#e8f6fd,#d6effc); color:#2aabee; font-weight:800; }
.cs-card .qr.wa-qr { background: linear-gradient(135deg,#e8faf0,#d8f5e4); color:#25d366; font-weight:800; }
.upload-preview {
  margin: 0 0 10px; border: 1px solid #e5e9ef; border-radius: 12px; overflow: hidden;
  background: #f8fafc; display: inline-flex; max-width: 100%;
}
.upload-preview img { display:block; max-width: 220px; max-height: 80px; object-fit: contain; }
.upload-preview.wide img { max-width: 100%; width: 100%; max-height: 180px; object-fit: cover; }
.upload-preview.square img { width: 120px; height: 120px; object-fit: cover; max-height: none; }

/* Floating CS */
.cs-float {
  position: fixed; right: 14px; bottom: 88px; z-index: 70; width: 132px;
  transition: transform .25s, opacity .25s;
}
.cs-float.collapsed { transform: translateX(120%); opacity: 0; pointer-events: none; }
.cs-card {
  background: #fff; border-radius: 12px; box-shadow: var(--shadow); padding: 8px; margin-bottom: 8px;
  border: 1px solid var(--line); text-align: center;
}
.cs-card .qr {
  width: 100%; aspect-ratio: 1; background: var(--bg-soft); border-radius: 8px;
  display: flex; align-items: center; justify-content: center; font-size: 12px; color: #888; margin-bottom: 6px;
}
.cs-card .qr-img {
  width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; display: block; margin-bottom: 6px;
  background: #fff;
}
.cs-card .name { font-size: 12px; margin-bottom: 6px; font-weight: 600; }
.cs-btn {
  display: block; border-radius: 8px; padding: 7px; color: #fff; font-size: 12px; font-weight: 600;
}
.cs-btn.tg { background: var(--tg); }
.cs-btn.wa { background: var(--accent-2); }
.cs-toggle {
  position: fixed; right: 12px; bottom: 24px; z-index: 71;
  background: var(--orange); color: #fff; border: 0; border-radius: 999px;
  padding: 10px 14px; cursor: pointer; box-shadow: var(--shadow); font-size: 13px; font-weight: 700;
}
@media (max-width: 899px) {
  .cs-float {
    right: 8px; bottom: 108px; width: 84px;
  }
  .cs-card {
    padding: 5px; margin-bottom: 6px; border-radius: 10px;
  }
  .cs-card .qr,
  .cs-card .qr-img {
    margin-bottom: 4px; border-radius: 6px;
  }
  .cs-card .name {
    font-size: 10px; margin-bottom: 4px; line-height: 1.2;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  }
  .cs-btn {
    padding: 5px 4px; font-size: 10px; border-radius: 6px;
  }
  .cs-toggle {
    right: 8px; bottom: 66px; padding: 7px 10px; font-size: 11px;
  }
}

/* Bottom mobile bar */
.mobile-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  background: rgba(255,255,255,.96); border-top: 1px solid var(--line);
  display: grid; grid-template-columns: repeat(4, 1fr); padding: 6px 0 env(safe-area-inset-bottom);
}
.mobile-bar a {
  text-align: center; font-size: 11px; color: #555; padding: 4px; position: relative;
}
.mobile-bar svg { width: 20px; height: 20px; margin: 0 auto 2px; display: block; }
.mobile-bar .cart-badge {
  position: absolute; top: 0; right: calc(50% - 18px);
  background: var(--pink); color: #fff; border-radius: 999px; font-size: 10px;
  min-width: 16px; height: 16px; line-height: 16px; padding: 0 4px;
}
@media (min-width: 900px) {
  .mobile-bar { display: none; }
  body { padding-bottom: 0; }
}
body { padding-bottom: 64px; }
@media (min-width: 900px) { body { padding-bottom: 0; } }

/* Product detail */
.breadcrumb { font-size: 13px; color: var(--muted); padding: 14px 0 6px; }
.breadcrumb a:hover { color: var(--accent); }
.detail-grid {
  display: grid; gap: 18px; padding-bottom: 24px;
}
@media (min-width: 900px) {
  .detail-grid { grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; }
}
.gallery {
  background: var(--bg-soft); border-radius: 14px; overflow: hidden; aspect-ratio: 1;
}
.gallery img { width: 100%; height: 100%; object-fit: cover; }
.detail-info h1 { margin: 0 0 12px; font-size: clamp(20px, 3vw, 28px); line-height: 1.35; }
.detail-price {
  background: var(--bg-soft); border-radius: 12px; padding: 14px; margin-bottom: 14px;
}
.detail-price .now { color: var(--pink); font-size: 28px; font-weight: 800; }
.detail-price .old { margin-left: 8px; color: #999; text-decoration: line-through; }
.detail-price .off {
  display: inline-block; margin-left: 8px; background: var(--pink); color: #fff;
  font-size: 12px; padding: 2px 6px; border-radius: 4px; vertical-align: middle;
}
.flavors { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 16px; }
.flavor {
  border: 1px solid var(--line); background: #fff; border-radius: 999px;
  padding: 6px 12px; font-size: 13px; cursor: pointer;
}
.flavor.active { border-color: var(--accent); color: var(--accent); background: #eef5ff; }
.qty-row { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.qty-row input { width: 72px; padding: 8px; border: 1px solid var(--line); border-radius: 8px; text-align: center; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border: 0; border-radius: 999px; padding: 12px 20px; cursor: pointer; font-weight: 700;
}
.btn-primary { background: var(--text); color: #fff; }
.btn-accent { background: var(--accent); color: #fff; }
.btn-outline { background: #fff; border: 1px solid var(--line); }
.btn-block { width: 100%; }
.content-box {
  margin-top: 24px; padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: #fff;
}
.content-box h3 { margin-top: 1.2em; }
.comment-form { display: grid; gap: 10px; margin-top: 12px; }
.comment-form input, .comment-form textarea, .form-card input, .form-card textarea, .form-card select {
  width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: 11px 12px; background: #fff;
}
.comment-item { padding: 12px 0; border-bottom: 1px solid var(--line); }
.comment-item .meta { font-size: 12px; color: var(--muted); margin-bottom: 4px; }

/* Forms / cart / auth */
.form-card, .cart-card, .panel {
  background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 18px; margin: 16px 0;
}
.form-card label { display: block; font-size: 13px; margin: 10px 0 6px; color: #444; }
.flash {
  width: min(100% - 24px, var(--max)); margin: 12px auto 0; padding: 10px 14px;
  border-radius: 10px; font-size: 14px;
}
.flash.success { background: #e8f8ef; color: #1b7a45; }
.flash.error { background: #fdecea; color: #b42318; }
.cart-item {
  display: grid; grid-template-columns: 84px 1fr auto; gap: 12px; padding: 12px 0;
  border-bottom: 1px solid var(--line); align-items: center;
}
.cart-item img { width: 84px; height: 84px; object-fit: cover; border-radius: 10px; }
.cart-total { text-align: right; font-size: 18px; font-weight: 800; margin: 14px 0; }
.cart-total span { color: var(--pink); }

/* Admin */
.admin-body { background: #eef1f4; min-height: 100vh; }
.admin-wrap { display: grid; grid-template-columns: 232px 1fr; min-height: 100vh; }
.admin-side {
  background: linear-gradient(180deg, #15181d 0%, #0f1115 100%);
  color: #c8ced6; padding: 22px 14px; border-right: 1px solid rgba(255,255,255,.04);
}
.admin-side .brand {
  color: #fff; font-size: 18px; font-weight: 800; margin: 4px 10px 22px;
  letter-spacing: .02em;
}
.admin-side a {
  display: block; padding: 11px 14px; border-radius: 10px; margin-bottom: 4px;
  color: #aeb6c2; font-size: 14px; transition: .15s;
}
.admin-side a:hover, .admin-side a.active { background: rgba(255,255,255,.08); color: #fff; }
.admin-main { padding: 28px 28px 40px; }
.admin-main > h1 { font-size: 26px; letter-spacing: -.02em; margin: 0 0 18px; }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 18px; }
@media (min-width: 800px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat {
  background: #fff; border-radius: 14px; padding: 16px 18px; border: 1px solid #e5e9ef;
  box-shadow: 0 1px 2px rgba(16,24,40,.04);
}
.stat b { display: block; font-size: 28px; margin-top: 4px; }
.table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 12px; overflow: hidden; }
.table th, .table td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; font-size: 13px; }
.table th { background: #fafafa; }
.admin-login {
  max-width: 400px; margin: 10vh auto; background: #fff; padding: 28px; border-radius: 16px;
  box-shadow: var(--shadow);
}
@media (max-width: 800px) {
  .admin-wrap { grid-template-columns: 1fr; }
  .admin-side { display: flex; gap: 8px; overflow: auto; }
  .admin-side a { white-space: nowrap; }
  .admin-main { padding: 18px 14px 32px; }
}

/* Payment setup */
.pay-setup {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 18px;
  align-items: start;
  max-width: 1100px;
}
@media (max-width: 980px) {
  .pay-setup { grid-template-columns: 1fr; }
}
.pay-hero {
  grid-column: 1 / -1;
  display: flex; justify-content: space-between; gap: 16px; align-items: center;
  background:
    radial-gradient(1200px 200px at 0% 0%, rgba(37, 99, 235, .12), transparent 55%),
    linear-gradient(135deg, #0f172a 0%, #1e293b 55%, #0b3b4a 100%);
  color: #fff; border-radius: 18px; padding: 22px 24px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, .18);
}
.pay-hero h2 { margin: 4px 0 6px; font-size: 24px; letter-spacing: -.02em; }
.pay-hero p { margin: 0; color: rgba(255,255,255,.72); font-size: 14px; max-width: 48ch; }
.pay-kicker {
  display: inline-block; font-size: 12px; letter-spacing: .08em; text-transform: uppercase;
  color: #93c5fd; font-weight: 700;
}
.pay-status {
  display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.14);
  border-radius: 999px; padding: 8px 14px; font-size: 13px; font-weight: 700;
}
.pay-status .dot {
  width: 8px; height: 8px; border-radius: 50%; background: #fbbf24; box-shadow: 0 0 0 4px rgba(251,191,36,.18);
}
.pay-status.is-ok .dot { background: #34d399; box-shadow: 0 0 0 4px rgba(52,211,153,.18); }
.pay-form { display: grid; gap: 14px; }
.pay-card {
  background: #fff; border: 1px solid #e6ebf2; border-radius: 16px; padding: 18px 18px 16px;
  box-shadow: 0 1px 2px rgba(16,24,40,.04);
}
.pay-card-head {
  display: flex; justify-content: space-between; gap: 16px; align-items: center;
  margin-bottom: 14px; padding-bottom: 12px; border-bottom: 1px solid #eef2f7;
}
.pay-card-head h3 { margin: 0 0 4px; font-size: 16px; }
.pay-card-head p { margin: 0; color: #6b7280; font-size: 13px; }
.pay-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px;
}
.field-full { grid-column: 1 / -1; }
@media (max-width: 720px) {
  .pay-grid { grid-template-columns: 1fr; }
  .pay-hero { flex-direction: column; align-items: flex-start; }
}
.pay-form .field label,
.channel-box label {
  display: block; margin: 0 0 7px; font-size: 13px; color: #374151; font-weight: 600;
}
.pay-form .field label em,
.channel-box label + input { font-style: normal; }
.pay-form .field label em {
  margin-left: 6px; color: #9aa3af; font-weight: 500; font-size: 12px;
}
.pay-form input[type="text"],
.pay-form input[type="password"],
.pay-form input:not([type]),
.channel-box input {
  width: 100%; border: 1px solid #d7dee8; background: #f8fafc; border-radius: 12px;
  padding: 12px 13px; outline: none; transition: .15s; color: #111827;
}
.pay-form input:focus,
.channel-box input:focus {
  background: #fff; border-color: #60a5fa; box-shadow: 0 0 0 4px rgba(59,130,246,.12);
}
.hint { display: block; margin-top: 7px; color: #8b95a5; font-size: 12px; line-height: 1.5; }
.channel-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 720px) { .channel-grid { grid-template-columns: 1fr; } }
.channel-box {
  border-radius: 14px; padding: 14px; border: 1px solid #e5e7eb; background: #fbfcfe;
}
.channel-box.alipay {
  background: linear-gradient(180deg, #f0f9ff 0%, #fff 70%);
  border-color: #cfe7fb;
}
.channel-box.wechat {
  background: linear-gradient(180deg, #f0fdf4 0%, #fff 70%);
  border-color: #cceed8;
}
.channel-title { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.channel-title .mark {
  width: 36px; height: 36px; border-radius: 10px; display: inline-flex;
  align-items: center; justify-content: center; color: #fff; font-weight: 800; font-size: 14px;
}
.channel-box.alipay .mark { background: #1677ff; }
.channel-box.wechat .mark { background: #07c160; }
.channel-title strong { display: block; font-size: 14px; }
.channel-title small { color: #8b95a5; font-size: 12px; }
.switch,
.channel-box label.switch,
.pay-card label.switch {
  display: inline-flex !important; align-items: center; gap: 12px; cursor: pointer;
  user-select: none; margin: 0 0 12px !important; width: auto; font-weight: 700;
}
.switch input { position: absolute; opacity: 0; width: 0; height: 0; pointer-events: none; }
.switch .slider {
  width: 46px; height: 28px; border-radius: 999px; background: #cbd5e1; position: relative;
  transition: .2s; flex: 0 0 46px; display: inline-block; overflow: hidden;
}
.switch .slider::after {
  content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px;
  border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: .2s;
}
.switch input:checked + .slider { background: #16a34a; }
.switch input:checked + .slider::after { transform: translateX(18px); }
.switch-text {
  font-size: 14px; font-weight: 700; color: #111827; line-height: 1.2;
  position: relative; z-index: 1; flex: 1 1 auto;
}
.pay-actions {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding-top: 2px;
}
.pay-save {
  border: 0; cursor: pointer; color: #fff; font-weight: 800; font-size: 14px;
  border-radius: 12px; padding: 13px 22px;
  background: linear-gradient(135deg, #0f172a, #1d4ed8);
  box-shadow: 0 10px 20px rgba(29, 78, 216, .22);
}
.pay-save:hover { filter: brightness(1.05); }
.pay-tip { color: #8b95a5; font-size: 13px; }
.pay-guide {
  background: #fff; border: 1px solid #e6ebf2; border-radius: 16px; padding: 18px;
  box-shadow: 0 1px 2px rgba(16,24,40,.04); position: sticky; top: 18px;
}
.pay-guide h3 { margin: 0 0 12px; font-size: 15px; }
.pay-guide ol {
  margin: 0; padding-left: 18px; color: #4b5563; font-size: 13px; line-height: 1.85;
}
.admin-page-title { font-size: 26px; margin: 0 0 14px; letter-spacing: -.02em; }
.content-tabs {
  display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap;
}
.content-tabs a {
  display: inline-flex; align-items: center; padding: 9px 14px; border-radius: 999px;
  background: #fff; border: 1px solid #e5e9ef; color: #4b5563; font-size: 13px; font-weight: 700;
}
.content-tabs a.active {
  background: #0f172a; border-color: #0f172a; color: #fff;
}
.content-form, .pages-edit { display: grid; gap: 14px; max-width: 920px; }
.content-form textarea, .pages-edit textarea {
  width: 100%; border: 1px solid #d7dee8; background: #f8fafc; border-radius: 12px;
  padding: 12px 13px; outline: none; min-height: 96px; resize: vertical;
}
.content-form textarea:focus, .pages-edit textarea:focus {
  background: #fff; border-color: #60a5fa; box-shadow: 0 0 0 4px rgba(59,130,246,.12);
}

.empty { text-align: center; padding: 48px 16px; color: var(--muted); }
.page-content { padding: 8px 0 40px; }
.page-content .panel { line-height: 1.8; }
