:root {
  --bg: #fbfaf8;
  --bg-alt: #f2efea;
  --text: #23211e;
  --text-soft: #6f6a63;
  --line: #e5e0d8;
  --accent: #a3764f;
  --radius: 10px;
  --wrap: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

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

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

h1, h2, h3 {
  font-family: Georgia, "Songti SC", "Noto Serif SC", serif;
  font-weight: 600;
  line-height: 1.35;
  margin: 0;
}

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

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 250, 248, 0.88);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, box-shadow .25s ease;
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 6px 24px rgba(35, 33, 30, 0.05);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  overflow: hidden;
}

.brand { display: flex; align-items: center; gap: 10px; }

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--text);
  color: var(--bg);
  font-size: 12px;
  letter-spacing: 1px;
}

.brand-text {
  font-family: Georgia, "Songti SC", serif;
  font-size: 17px;
  letter-spacing: .5px;
}

.header-actions { display: flex; align-items: center; gap: 24px; }

.nav { display: flex; gap: 28px; font-size: 15px; color: var(--text-soft); }
.nav a { transition: color .2s ease; }
.nav a:hover { color: var(--text); }

/* ---------- QQ 互联登录入口 ---------- */
.qq-login {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px 7px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  font-size: 14px;
  color: var(--text);
  white-space: nowrap;
  transition: color .2s ease, border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.qq-login:hover {
  color: #0b93c9;
  border-color: #12b7f5;
  box-shadow: 0 6px 18px rgba(18, 183, 245, 0.16);
  transform: translateY(-1px);
}

.qq-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #12b7f5;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .3px;
}

/* ---------- hero ---------- */
.hero {
  padding: 96px 0 88px;
  background:
    radial-gradient(900px 380px at 82% 8%, rgba(163, 118, 79, 0.13), transparent 65%),
    radial-gradient(700px 340px at 10% 92%, rgba(120, 140, 150, 0.14), transparent 70%),
    var(--bg);
  border-bottom: 1px solid var(--line);
}

.hero-eyebrow {
  margin: 0 0 18px;
  font-size: 12px;
  letter-spacing: 3px;
  color: var(--accent);
}

.hero h1 {
  font-size: clamp(30px, 5vw, 48px);
  max-width: 15em;
  margin-bottom: 20px;
}

.hero-sub {
  margin: 0 0 34px;
  max-width: 34em;
  color: var(--text-soft);
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 999px;
  background: var(--text);
  color: var(--bg);
  font-size: 15px;
  transition: transform .2s ease, opacity .2s ease;
}

.btn:hover { transform: translateY(-2px); opacity: .9; }

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line);
}

/* ---------- sections ---------- */
.section { padding: 78px 0; }

.section-alt { background: var(--bg-alt); }

.section-head { margin-bottom: 30px; }

.section-head h2 { font-size: clamp(22px, 3vw, 30px); margin-bottom: 10px; }

.section-desc { margin: 0; color: var(--text-soft); font-size: 15px; }

/* ---------- filters ---------- */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 30px;
}

.filter {
  padding: 8px 20px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--text-soft);
  font-size: 14px;
  font-family: inherit;
  cursor: pointer;
  transition: all .2s ease;
}

.filter:hover { color: var(--text); border-color: #cfc7bb; }

.filter.is-active {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
}

/* ---------- gallery ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.card {
  margin: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: zoom-in;
  transition: transform .3s ease, box-shadow .3s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(35, 33, 30, 0.1);
}

.card img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  background: var(--bg-alt);
  transition: transform .5s ease;
}

.card:hover img { transform: scale(1.04); }

.card figcaption {
  padding: 14px 16px 16px;
}

.card figcaption h3 { font-size: 16px; font-weight: 600; }

.card figcaption span {
  display: block;
  margin-top: 2px;
  font-size: 13px;
  color: var(--text-soft);
}

.card.is-hidden { display: none; }

/* ---------- about ---------- */
.about {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 48px;
  align-items: center;
}

.about-photo img {
  border-radius: var(--radius);
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.about-text h2 { font-size: clamp(22px, 3vw, 30px); margin-bottom: 16px; }
.about-text p { color: var(--text-soft); margin: 0 0 14px; }

.stats {
  display: flex;
  gap: 40px;
  list-style: none;
  padding: 22px 0 0;
  margin: 22px 0 0;
  border-top: 1px solid var(--line);
}

.stats li { display: flex; flex-direction: column; }

.stats strong {
  font-family: Georgia, "Songti SC", serif;
  font-size: 24px;
  color: var(--text);
}

.stats span { font-size: 13px; color: var(--text-soft); }

/* ---------- contact ---------- */
.contact { text-align: center; }
.contact h2 { font-size: clamp(22px, 3vw, 30px); margin-bottom: 12px; }
.contact p { color: var(--text-soft); margin: 0 0 26px; }

/* ---------- footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 44px 0;
  background: var(--bg);
}

.footer-inner { text-align: center; }

.footer-brand {
  font-family: Georgia, "Songti SC", serif;
  font-size: 16px;
  margin: 0 0 6px;
}

.footer-meta { margin: 0 0 12px; font-size: 14px; color: var(--text-soft); }

.footer-icp { margin: 0; font-size: 13px; color: var(--text-soft); }
.footer-icp a { border-bottom: 1px solid var(--line); }
.icp-tip { color: #b0a99f; }

/* ---------- lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 40px 24px;
  background: rgba(20, 19, 17, 0.92);
}

.lightbox.is-open { display: flex; }

.lightbox img {
  max-width: min(1100px, 92vw);
  max-height: 78vh;
  border-radius: 6px;
}

.lightbox-caption { color: #d9d4cc; font-size: 14px; margin: 0; }

.lightbox-close {
  position: absolute;
  top: 22px;
  right: 26px;
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  transition: background .2s ease;
}

.lightbox-close:hover { background: rgba(255, 255, 255, 0.24); }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .about { grid-template-columns: 1fr; gap: 32px; }
  .about-photo { max-width: 320px; }
}

@media (max-width: 620px) {
  .header-inner { height: 60px; }
  .header-actions { gap: 10px; flex: 1; justify-content: flex-end; }
  .nav { gap: 12px; font-size: 13px; }
  .nav a:nth-child(n+4) { display: none; }
  .brand-text { font-size: 14px; }
  .brand-mark { width: 32px; height: 32px; font-size: 11px; }
  .qq-login { padding: 5px 10px 5px 6px; font-size: 12px; gap: 6px; }
  .qq-text { display: none; }
  .qq-badge { width: 18px; height: 18px; font-size: 9px; }
  .hero { padding: 68px 0 60px; }
  .section { padding: 56px 0; }
  .gallery { grid-template-columns: 1fr; gap: 18px; }
  .stats { gap: 26px; }
}

@media (max-width: 400px) {
  .nav { gap: 10px; font-size: 12px; }
  .brand-text { font-size: 13px; }
  .brand { gap: 8px; }
}

/* ========== 作品授权页 ========== */

.authorize-hero {
  padding: 72px 0 56px;
  background:
    radial-gradient(700px 320px at 85% 10%, rgba(163, 118, 79, 0.12), transparent 65%),
    var(--bg);
  border-bottom: 1px solid var(--line);
  text-align: center;
}

.authorize-eyebrow {
  margin: 0 0 14px;
  font-size: 12px;
  letter-spacing: 3px;
  color: var(--accent);
}

.authorize-hero h1 {
  font-size: clamp(26px, 4vw, 38px);
  margin-bottom: 12px;
}

.authorize-sub {
  margin: 0;
  color: var(--text-soft);
  font-size: 16px;
}

/* ---------- 商品卡片 ---------- */
.product-card {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 40px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px;
  margin-bottom: 48px;
}

.product-info h2 {
  font-size: 22px;
  margin-bottom: 14px;
}

.product-desc {
  color: var(--text-soft);
  margin: 0 0 16px;
}

.product-features {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
}

.product-features li {
  padding: 8px 0 8px 26px;
  position: relative;
  color: var(--text);
  font-size: 15px;
  border-bottom: 1px dashed var(--line);
}

.product-features li:last-child { border-bottom: none; }

.product-features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 16px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.85;
}

.product-price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.price-label {
  font-size: 14px;
  color: var(--text-soft);
}

.price-amount {
  font-family: Georgia, "Songti SC", serif;
  font-size: 36px;
  font-weight: 600;
  color: var(--accent);
  line-height: 1;
}

.price-unit {
  font-size: 14px;
  color: var(--text-soft);
}

/* ---------- 支付操作区 ---------- */
.product-actions {
  background: var(--bg-alt);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.product-actions h3 {
  font-size: 17px;
  margin: 0;
}

.pay-hint {
  margin: 0;
  font-size: 13px;
  color: #b08a3a;
  background: #fdf5e0;
  border: 1px solid #f1e3b8;
  border-radius: 6px;
  padding: 8px 12px;
}

.pay-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 14px 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  font-size: 15px;
  font-family: inherit;
  color: var(--text);
  cursor: pointer;
  transition: all .2s ease;
}

.pay-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

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

.pay-btn-pc:hover:not(:disabled) {
  border-color: #1677ff;
  color: #1677ff;
}

.pay-btn-mobile:hover:not(:disabled) {
  border-color: #1677ff;
  color: #1677ff;
}

.pay-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.pay-notice {
  margin-top: 4px;
  padding: 12px;
  background: #f7f5f0;
  border-radius: 6px;
  font-size: 13px;
  color: var(--text-soft);
  line-height: 1.6;
}

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

/* ---------- FAQ ---------- */
.authorize-faq {
  max-width: 720px;
  margin: 0 auto;
}

.authorize-faq h3 {
  font-size: 20px;
  margin-bottom: 20px;
  text-align: center;
}

.faq-item {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.faq-item:last-child { border-bottom: none; }

.faq-item h4 {
  font-size: 15px;
  margin: 0 0 8px;
  color: var(--text);
}

.faq-item p {
  margin: 0;
  color: var(--text-soft);
  font-size: 14px;
}

/* ---------- 模态框 ---------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(20, 19, 17, 0.55);
}

.modal.is-open { display: flex; }

.modal-content {
  position: relative;
  background: #fff;
  border-radius: 12px;
  padding: 40px 36px 32px;
  max-width: 420px;
  width: 100%;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.18);
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: var(--text-soft);
  font-size: 22px;
  cursor: pointer;
  transition: background .2s ease;
}

.modal-close:hover { background: var(--bg-alt); }

.modal-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: #fdf5e0;
  color: #b08a3a;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-icon svg { width: 28px; height: 28px; }

.modal-content h3 {
  font-size: 18px;
  margin: 0 0 10px;
}

.modal-content p {
  color: var(--text-soft);
  font-size: 14px;
  margin: 0 0 10px;
}

.modal-content .btn { margin-top: 14px; }

/* ========== 支付结果页 ========== */

.result-section {
  padding: 80px 0;
  min-height: 60vh;
  display: flex;
  align-items: center;
}

.result-card {
  max-width: 560px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 48px 40px;
  text-align: center;
}

.result-state { display: block; }

.result-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.result-icon svg { width: 36px; height: 36px; }

.result-success .result-icon {
  background: #e8f7ee;
  color: #2ea857;
}

.result-fail .result-icon {
  background: #fdecec;
  color: #d93025;
}

.result-pending .result-icon {
  background: #e8f0fe;
  color: #1677ff;
}

.result-state h2 {
  font-size: 22px;
  margin-bottom: 10px;
}

.result-desc {
  color: var(--text-soft);
  margin: 0 0 24px;
}

.result-info {
  text-align: left;
  background: var(--bg-alt);
  border-radius: 8px;
  padding: 18px 22px;
  margin-bottom: 22px;
}

.info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  font-size: 14px;
  border-bottom: 1px dashed var(--line);
}

.info-row:last-child { border-bottom: none; }

.info-label { color: var(--text-soft); }

.info-value { color: var(--text); font-weight: 500; }

.result-next {
  background: #fdf5e0;
  border: 1px solid #f1e3b8;
  border-radius: 8px;
  padding: 14px 18px;
  margin-bottom: 24px;
  font-size: 14px;
  color: #7a5d1f;
  line-height: 1.6;
}

.result-next a { color: var(--accent); font-weight: 500; }

.result-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
  .product-card {
    grid-template-columns: 1fr;
    padding: 28px;
    gap: 28px;
  }
}

@media (max-width: 620px) {
  .authorize-hero { padding: 52px 0 44px; }
  .product-card { padding: 22px; }
  .product-actions { padding: 22px; }
  .price-amount { font-size: 30px; }
  .result-card { padding: 36px 24px; }
  .result-actions { flex-direction: column; }
  .result-actions .btn { width: 100%; }
}
