:root {
  --bg: #f5f6f8;
  --card: #ffffff;
  --primary: #e63946;
  --primary-dark: #c92a37;
  --text: #1f2330;
  --muted: #6b7280;
  --line: #e6e8ec;
  --gold: #f4b400;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: -apple-system, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
header {
  background: var(--card);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 10;
}
.bar {
  max-width: 1080px;
  margin: 0 auto;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo { font-weight: 800; font-size: 20px; letter-spacing: .5px; }
.logo span { color: var(--primary); }
.nav a { color: var(--muted); font-size: 14px; margin-left: 16px; }
.notice {
  background: #fff7e6; color: #8a5a00; font-size: 13px;
  padding: 8px 18px; text-align: center; border-bottom: 1px solid #ffe7b3;
}
.wrap { max-width: 1080px; margin: 22px auto; padding: 0 18px; }
.grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  overflow: hidden; transition: box-shadow .2s, transform .2s;
}
.card:hover { box-shadow: 0 8px 24px rgba(0,0,0,.08); transform: translateY(-2px); }
.cover {
  height: 140px; background: linear-gradient(135deg,#ffd9dd,#ffe9c7);
  display: flex; align-items: center; justify-content: center; font-size: 40px;
}
.cover img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 12px 14px; }
.card-title { font-weight: 600; font-size: 15px; margin: 0 0 6px; }
.card-cat { font-size: 12px; color: var(--muted); }
.price { color: var(--primary); font-weight: 800; font-size: 18px; margin-top: 8px; }
.price small { color: var(--muted); font-weight: 400; font-size: 12px; }
.btn {
  display: inline-block; background: var(--primary); color: #fff; border: none;
  padding: 10px 18px; border-radius: 8px; font-size: 15px; font-weight: 600;
  cursor: pointer; transition: background .2s;
}
.btn:hover { background: var(--primary-dark); }
.btn.full { width: 100%; text-align: center; }
.btn.ghost { background: #fff; color: var(--primary); border: 1px solid var(--primary); }
.detail-box { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 22px; }
.detail-title { font-size: 24px; font-weight: 800; margin: 0 0 10px; }
.detail-meta { color: var(--muted); font-size: 14px; margin-bottom: 16px; }
.detail-desc { white-space: pre-wrap; color: #333; }
.center { max-width: 560px; margin: 40px auto; }
.empty { text-align: center; color: var(--muted); padding: 60px 0; }
.msg { padding: 10px 14px; border-radius: 8px; font-size: 14px; margin: 12px 0; }
.msg.err { background: #fdecee; color: #c92a37; }
.msg.ok { background: #e9f8ef; color: #1a7f43; }
.link-row {
  background: #f8f9fb; border: 1px solid var(--line); border-radius: 8px;
  padding: 12px 14px; margin: 10px 0;
}
.link-row b { color: var(--text); }
.code { font-family: monospace; background: #fff; padding: 2px 6px; border: 1px dashed var(--muted); border-radius: 4px; }
form label { display: block; font-size: 13px; color: var(--muted); margin: 12px 0 4px; }
form input, form textarea, form select {
  width: 100%; padding: 9px 11px; border: 1px solid var(--line); border-radius: 8px;
  font-size: 14px; font-family: inherit;
}
.section-title { font-size: 18px; font-weight: 700; margin: 26px 0 12px; border-left: 4px solid var(--primary); padding-left: 10px; }
table { width: 100%; border-collapse: collapse; background: var(--card); font-size: 13px; }
th, td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; }
th { background: #fafbfc; color: var(--muted); font-weight: 600; }
.tag { font-size: 12px; padding: 2px 8px; border-radius: 999px; }
.tag.paid { background: #e9f8ef; color: #1a7f43; }
.tag.pending { background: #fff4e5; color: #b76e00; }

/* 手机版适配（新页面走 vip.css，这里兜底后台/支付页） */
@media (max-width: 720px) {
  .wrap { margin: 16px auto; padding: 0 14px; }
  .bar { padding: 12px 14px; }
  .logo { font-size: 17px; }
  .nav a { margin-left: 10px; font-size: 13px; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
  .cover { height: 110px; }
  .detail-box { padding: 16px; }
  .detail-title { font-size: 20px; }
  table { font-size: 12px; }
  th, td { padding: 6px; word-break: break-all; }
  .section-title { font-size: 16px; margin: 20px 0 10px; }
}
