:root {
  --red: #d94f2b;
  --red-dark: #b93d1e;
  --orange: #f08a3c;
  --ink: #23201d;
  --muted: #7b756e;
  --line: #eae4dc;
  --bg: #faf8f5;
  --card: #ffffff;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(60, 40, 25, .07);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  color: var(--ink); background: var(--bg); line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font-family: inherit; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.muted { color: var(--muted); font-size: 14px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.94); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark { width: 38px; height: 38px; border-radius: 11px; background: linear-gradient(135deg, var(--red), var(--orange)); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 19px; }
.brand-text { font-weight: 800; font-size: 18px; line-height: 1.05; }
.brand-text small { display: block; font-size: 9px; letter-spacing: 1.5px; color: var(--muted); font-weight: 600; }
.nav { display: flex; gap: 26px; font-size: 14px; font-weight: 600; }
.nav a:hover { color: var(--red); }

/* Hero */
.hero { background: radial-gradient(1200px 400px at 20% -10%, #fff1e8, transparent), linear-gradient(135deg, #fffaf6, #fff); border-bottom: 1px solid var(--line); }
.hero-inner { padding: 72px 24px 64px; text-align: center; }
.hero-badge { display: inline-block; padding: 5px 14px; border-radius: 999px; background: #fff0e8; color: var(--red); font-size: 12px; font-weight: 700; letter-spacing: .5px; }
.hero h1 { margin: 18px 0 10px; font-size: clamp(32px, 5vw, 52px); letter-spacing: -1px; }
.hero-sub { color: var(--muted); font-size: 16px; margin: 0 auto 28px; max-width: 640px; }
.hero-sub b { color: var(--red); }
.hero-stats { display: flex; justify-content: center; gap: 56px; margin-bottom: 30px; }
.hero-stats div { display: flex; flex-direction: column; }
.hero-stats strong { font-size: 24px; color: var(--ink); }
.hero-stats span { font-size: 12px; color: var(--muted); }
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 10px; padding: 12px 22px; font-weight: 700; font-size: 14px; cursor: pointer; transition: transform .15s, box-shadow .15s, background .15s; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: linear-gradient(135deg, var(--red), var(--orange)); color: #fff; box-shadow: 0 6px 18px rgba(217,79,43,.25); }
.btn-primary:hover { box-shadow: 0 8px 24px rgba(217,79,43,.35); }
.btn-ghost { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.btn-ghost:hover { border-color: var(--red); color: var(--red); }
.btn-small { padding: 7px 14px; font-size: 12px; background: var(--red); color: #fff; border-radius: 8px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }

/* Filters */
.main { padding-top: 40px; padding-bottom: 70px; }
.section-head { display: flex; align-items: baseline; gap: 14px; margin-bottom: 20px; }
.section-head h2 { margin: 0; font-size: 24px; }
.filter-bar { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); margin-bottom: 26px; }
.search-box { position: relative; margin-bottom: 16px; }
.search-icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); font-size: 15px; opacity: .6; }
.search-box input { width: 100%; padding: 12px 14px 12px 42px; border: 1px solid var(--line); border-radius: 10px; font-size: 14px; outline: none; background: #fdfcfb; }
.search-box input:focus { border-color: var(--red); background: #fff; }
.filter-group { display: flex; align-items: flex-start; gap: 12px; margin-top: 10px; }
.filter-group > label { flex: 0 0 36px; font-size: 13px; font-weight: 700; color: var(--muted); padding-top: 6px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border: 1px solid var(--line); background: #fff; color: #5d574f; border-radius: 999px; padding: 5px 13px; font-size: 12px; cursor: pointer; transition: all .15s; }
.chip:hover { border-color: var(--red); color: var(--red); }
.chip.active { background: var(--red); border-color: var(--red); color: #fff; }

/* Grid */
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 1000px) { .grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 720px) { .grid { grid-template-columns: repeat(2, 1fr); gap: 12px; } .hero-stats { gap: 28px; } }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; cursor: pointer; transition: transform .18s, box-shadow .18s; display: flex; flex-direction: column; }
.card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(60,40,25,.12); }
.card-thumb { position: relative; aspect-ratio: 3 / 4; background: #f1ede7; overflow: hidden; }
.card-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .3s; }
.card:hover .card-thumb img { transform: scale(1.03); }
.card-tags { position: absolute; left: 10px; top: 10px; display: flex; gap: 6px; flex-wrap: wrap; }
.tag { font-size: 10px; padding: 3px 8px; border-radius: 6px; background: rgba(255,255,255,.92); color: #555; font-weight: 700; }
.tag-theme { background: rgba(217,79,43,.92); color: #fff; }
.card-body { padding: 13px 14px 15px; display: flex; flex-direction: column; flex: 1; }
.card-title { font-size: 14px; font-weight: 700; line-height: 1.45; height: 41px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.card-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; }
.price { color: var(--red); font-weight: 800; font-size: 18px; }
.price small { font-size: 12px; font-weight: 600; }
.card-btn { font-size: 12px; padding: 6px 12px; border: 1px solid var(--red); color: var(--red); border-radius: 8px; font-weight: 700; }
.empty { text-align: center; padding: 70px 0; color: var(--muted); }
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 30px; flex-wrap: wrap; }
.pagination button { border: 1px solid var(--line); background: #fff; border-radius: 8px; padding: 8px 14px; cursor: pointer; font-size: 13px; }
.pagination button.active { background: var(--red); color: #fff; border-color: var(--red); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); background: #fff; padding: 28px 0; text-align: center; color: var(--muted); font-size: 13px; }
.site-footer b { color: var(--red); }

/* Modal */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; }
.modal[hidden] { display: none; }
.modal-mask { position: absolute; inset: 0; background: rgba(25,20,15,.6); backdrop-filter: blur(3px); }
.modal-dialog { position: relative; background: #fff; border-radius: 18px; width: 100%; max-width: 640px; max-height: 90vh; overflow: auto; box-shadow: 0 24px 70px rgba(0,0,0,.25); }
.modal-dialog.modal-lg { max-width: 820px; }
.modal-dialog.modal-sm { max-width: 440px; }
.modal-close { position: absolute; right: 14px; top: 12px; z-index: 2; width: 32px; height: 32px; border: 0; border-radius: 50%; background: #f2eee9; font-size: 22px; line-height: 1; cursor: pointer; color: #666; }
.detail { padding: 26px; }
.detail h2 { font-size: 24px; margin: 0 40px 8px 0; }
.detail-meta { display: flex; gap: 8px; margin-bottom: 18px; }
.detail-shots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 18px; }
.detail-shots img { width: 100%; aspect-ratio: 3/4; object-fit: cover; object-position: top; border: 1px solid var(--line); border-radius: 8px; cursor: zoom-in; }
.detail-desc { color: #5d574f; font-size: 14px; background: #faf8f5; border-radius: 10px; padding: 14px; margin-bottom: 20px; }
.detail-buy { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 18px; }
.detail-buy .price { font-size: 26px; }
.detail-note { font-size: 12px; color: var(--muted); margin-top: 10px; }

/* Pay */
.pay-body { padding: 30px 26px; text-align: center; }
.pay-body h3 { margin: 0 0 6px; font-size: 20px; }
.pay-body .sub { color: var(--muted); font-size: 13px; margin-bottom: 18px; }
.qr { width: 220px; height: 220px; margin: 0 auto 14px; border: 1px solid var(--line); border-radius: 12px; padding: 8px; }
.qr img { width: 100%; height: 100%; }
.pay-amount { font-size: 30px; color: var(--red); font-weight: 800; margin: 10px 0; }
.pay-status { margin-top: 14px; font-size: 13px; color: var(--muted); }
.demo-banner { background: #fff7e8; border: 1px solid #f5d99a; color: #8a5c00; padding: 10px; border-radius: 8px; font-size: 12px; margin-bottom: 14px; }
.download-box { margin-top: 16px; padding: 16px; background: #f0faf3; border: 1px solid #bfe6c8; border-radius: 10px; }
.channel-row { display: flex; gap: 10px; margin-bottom: 16px; }
.channel-row button { flex: 1; padding: 10px; border: 1px solid var(--line); background: #fff; border-radius: 9px; cursor: pointer; font-weight: 700; font-size: 13px; }
.channel-row button.active { border-color: var(--red); color: var(--red); background: #fff5f1; }

/* Package */
.package-body { padding: 34px 26px; text-align: center; }
.package-icon { font-size: 46px; }
.package-body h3 { margin: 10px 0; }
.package-body p { color: var(--muted); font-size: 14px; }
.wechat-box { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: #faf8f5; border: 1px dashed var(--red); border-radius: 10px; padding: 12px 14px; margin: 18px 0 10px; }
.wechat-box span { font-size: 20px; font-weight: 800; color: var(--ink); letter-spacing: .5px; }
.tip { font-size: 12px !important; }

/* Affiliate */
.aff-body { padding: 34px 26px; text-align: center; }
.aff-icon { font-size: 44px; }
.aff-body h3 { margin: 10px 0; }
.aff-lead { color: var(--muted); font-size: 14px; line-height: 1.6; }
.aff-lead b { color: var(--red); }
.aff-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 18px 0; }
.aff-stats > div { background: #faf8f5; border: 1px solid var(--line); border-radius: 10px; padding: 12px 6px; }
.aff-stats strong { display: block; font-size: 18px; color: var(--red); }
.aff-stats span { font-size: 11px; color: var(--muted); }
.aff-label { display: block; text-align: left; font-size: 13px; font-weight: 700; margin-bottom: 7px; }
.aff-link-box { display: flex; gap: 8px; }
.aff-link-box input { flex: 1; min-width: 0; padding: 10px 12px; border: 1px solid var(--line); border-radius: 9px; font-size: 12px; background: #fdfcfb; }

/* Toast */
.toast { position: fixed; left: 50%; bottom: 40px; transform: translateX(-50%); background: #23201d; color: #fff; padding: 11px 20px; border-radius: 10px; font-size: 13px; z-index: 200; box-shadow: 0 8px 24px rgba(0,0,0,.2); }
.toast[hidden] { display: none; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 300; background: rgba(0,0,0,.88); display: grid; place-items: center; cursor: zoom-out; }
.lightbox img { max-width: 92vw; max-height: 92vh; object-fit: contain; border-radius: 6px; }
