/* muketm.cn · 极简黑白会员站 */
:root {
  --ink: #16171a;
  --ink-2: #3d3f45;
  --muted: #86888f;
  --line: #e9e9ec;
  --bg: #ffffff;
  --soft: #f6f6f8;
  --card: #ffffff;
  --r: 12px;
  --shadow: 0 2px 8px rgba(16,18,24,.05), 0 20px 48px rgba(16,18,24,.09);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased; line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
button, input { font-family: inherit; }
.wrap, .section, .hero, .page-head, .footer-inner, .topbar { max-width: 1120px; margin: 0 auto; }

/* 顶栏 */
.topbar {
  display: flex; align-items: center; gap: 32px;
  padding: 18px 24px; position: sticky; top: 0; z-index: 30;
  background: rgba(255,255,255,.82); backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid rgba(0,0,0,.05);
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 17px; letter-spacing: -.4px; }
.brand-mark {
  width: 30px; height: 30px; border-radius: 9px; background: var(--ink); color: #fff;
  display: grid; place-items: center; font-size: 11px; font-weight: 800; letter-spacing: .5px;
}
.topbar nav { display: flex; gap: 26px; flex: 1; }
.topbar nav a { font-size: 14px; color: var(--muted); transition: color .2s; }
.topbar nav a:hover, .topbar nav a.on { color: var(--ink); font-weight: 600; }
.top-right { display: flex; align-items: center; gap: 10px; }
.user-chip { font-size: 13px; color: var(--ink-2); }
.vip-badge { font-size: 11px; background: var(--ink); color: #fff; padding: 4px 10px; border-radius: 99px; }

/* 按钮 */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border: 1px solid transparent; border-radius: 999px; cursor: pointer;
  font-size: 14px; font-weight: 600; padding: 10px 20px; transition: transform .2s, box-shadow .2s, background .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: none; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { box-shadow: 0 8px 20px rgba(0,0,0,.16); }
.btn-line { background: #fff; border-color: var(--line); color: var(--ink); }
.btn-line:hover { border-color: #c9c9ce; }
.btn-lg { padding: 14px 28px; font-size: 15px; }
.btn-sm { padding: 8px 16px; font-size: 13px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }

/* Hero */
.hero { padding: 88px 24px 64px; text-align: center; }
.eyebrow { display: block; font-size: 11px; font-weight: 700; letter-spacing: 2.4px; color: var(--muted); text-transform: uppercase; }
.hero h1 { font-size: clamp(38px, 6vw, 68px); line-height: 1.12; letter-spacing: -3px; margin: 22px 0 20px; font-weight: 800; }
.hero h1 em { font-style: normal; color: var(--muted); }
.lead { max-width: 620px; margin: 0 auto; font-size: 17px; color: var(--ink-2); }
.hero-actions { display: flex; gap: 12px; justify-content: center; margin: 34px 0 56px; flex-wrap: wrap; }
.stats { display: flex; justify-content: center; gap: 0; border-top: 1px solid var(--line); padding-top: 30px; }
.stats > div { flex: 1; max-width: 260px; border-right: 1px solid var(--line); }
.stats > div:last-child { border-right: 0; }
.stats b { display: block; font-size: 30px; letter-spacing: -1px; }
.stats span { font-size: 12.5px; color: var(--muted); }

/* 区块 */
.section { padding: 72px 24px; }
.section.soft { background: var(--soft); max-width: none; }
.section.soft > * { max-width: 1072px; margin-left: auto; margin-right: auto; }
.section-head { margin-bottom: 40px; }
.section-head h2 { font-size: clamp(26px, 3.4vw, 38px); letter-spacing: -1.6px; margin: 12px 0 8px; }
.section-head p { color: var(--muted); font-size: 14px; margin: 0; }
.section-head a { color: var(--ink); text-decoration: underline; }
.fine { text-align: center; color: var(--muted); font-size: 12.5px; margin-top: 26px; }

/* 会员卡 */
.plan-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: stretch; }
.plan {
  position: relative; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r); padding: 32px 26px; display: flex; flex-direction: column;
  box-shadow: 0 1px 2px rgba(0,0,0,.03);
}
.plan.featured { border-color: var(--ink); box-shadow: var(--shadow); transform: scale(1.025); }
.plan-tag {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--ink); color: #fff; font-size: 11px; font-weight: 700;
  padding: 5px 14px; border-radius: 99px; white-space: nowrap;
}
.plan h3 { font-size: 20px; margin: 0 0 18px; }
.plan-price b { display: block; font-size: 26px; letter-spacing: -1px; }
.plan-price span { font-size: 12.5px; color: var(--muted); }
.plan ul { list-style: none; padding: 0; margin: 24px 0 28px; flex: 1; }
.plan li { font-size: 13.5px; color: var(--ink-2); padding: 7px 0 7px 20px; position: relative; }
.plan li::before { content: '✓'; position: absolute; left: 0; color: var(--ink); font-weight: 700; }

/* 特色 / 预览 / FAQ */
.feat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.feat-grid > div { background: #fff; border-radius: var(--r); padding: 24px; }
.feat-grid b { font-size: 11px; letter-spacing: 1px; color: var(--muted); }
.feat-grid h4 { font-size: 15px; margin: 12px 0 8px; }
.feat-grid p { font-size: 12.5px; color: var(--muted); margin: 0; }
.preview-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.preview { border: 1px solid var(--line); border-radius: var(--r); padding: 22px; transition: box-shadow .2s, transform .2s; }
.preview:hover { box-shadow: 0 10px 26px rgba(16,18,24,.08); transform: translateY(-2px); }
.preview-cat { font-size: 11px; color: var(--muted); }
.preview h4 { font-size: 15px; line-height: 1.45; margin: 10px 0 16px; min-height: 44px; }
.preview-meta { font-size: 12px; color: var(--muted); }
.faq details { border-bottom: 1px solid var(--line); padding: 18px 4px; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 15px; }
.faq p { color: var(--muted); font-size: 13.5px; margin: 10px 0 0; }

/* 资源库 */
.page-head { padding: 60px 24px 24px; }
.page-head h1 { font-size: clamp(30px, 4vw, 46px); letter-spacing: -2px; margin: 12px 0 6px; }
.page-head p { color: var(--muted); font-size: 14px; }
.filter-bar { display: flex; flex-direction: column; gap: 18px; margin-bottom: 22px; }
.filter-bar input {
  width: 100%; max-width: 480px; padding: 13px 18px; border: 1px solid var(--line);
  border-radius: 999px; font-size: 14px; outline: none; background: var(--soft);
}
.filter-bar input:focus { border-color: var(--ink); background: #fff; }
#onlyDl { align-self: flex-start; }
#onlyDl.is-on { background: var(--ink); color: #fff; border-color: var(--ink); }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { border: 1px solid var(--line); background: #fff; border-radius: 99px; padding: 7px 15px; font-size: 12.5px; cursor: pointer; color: var(--ink-2); }
.chip.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.res-count { font-size: 12.5px; color: var(--muted); margin-bottom: 18px; }
.res-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.res-card { border: 1px solid var(--line); border-radius: var(--r); padding: 20px; cursor: pointer; transition: box-shadow .2s, transform .2s; background: #fff; }
.res-card:hover { box-shadow: 0 10px 26px rgba(16,18,24,.08); transform: translateY(-2px); }
.res-card .cat { font-size: 11px; color: var(--muted); }
.res-card h4 { font-size: 14.5px; line-height: 1.45; margin: 10px 0 14px; min-height: 42px; }
.res-card .meta { font-size: 11.5px; color: var(--muted); }
.res-card.is-article { background: var(--soft); border-style: dashed; }
.res-card.is-article:hover { box-shadow: 0 8px 20px rgba(16,18,24,.05); }
.pager { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; margin-top: 34px; }
.pager button { border: 1px solid var(--line); background: #fff; border-radius: 8px; min-width: 36px; height: 36px; cursor: pointer; font-size: 13px; }
.pager button.on { background: var(--ink); color: #fff; border-color: var(--ink); }

/* 弹窗 */
.modal { position: fixed; inset: 0; z-index: 60; display: none; align-items: center; justify-content: center; background: rgba(20,21,24,.42); padding: 20px; }
.modal.is-open { display: flex; }
.modal-card { position: relative; background: #fff; border-radius: 16px; width: 100%; max-width: 420px; padding: 30px; box-shadow: 0 30px 80px rgba(0,0,0,.24); max-height: 88vh; overflow-y: auto; }
.modal-card.wide { max-width: 620px; }
.modal-x { position: absolute; right: 16px; top: 12px; border: 0; background: none; font-size: 24px; color: var(--muted); cursor: pointer; line-height: 1; }
.modal-card h3 { font-size: 21px; margin: 0 0 6px; }
.modal-sub { color: var(--muted); font-size: 13px; margin: 0 0 22px; }
.tabs { display: flex; gap: 6px; background: var(--soft); padding: 4px; border-radius: 10px; margin-bottom: 20px; }
.tab { flex: 1; border: 0; background: none; padding: 8px; border-radius: 8px; cursor: pointer; font-size: 13px; color: var(--muted); }
.tab.on { background: #fff; color: var(--ink); font-weight: 600; box-shadow: 0 1px 4px rgba(0,0,0,.06); }
.field { display: block; margin-bottom: 16px; }
.field > span { display: block; font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.field input { width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; font-size: 14px; outline: none; }
.field input:focus { border-color: var(--ink); }
.code-row { display: flex; gap: 8px; }
.code-row input { flex: 1; }
.demo-note { font-size: 12px; color: #8a6b1f; background: #fff8e6; border-radius: 8px; padding: 10px 12px; margin: 0 0 14px; }
.modal-msg { font-size: 12.5px; color: #b4232a; min-height: 18px; margin: 12px 0 0; }
.wx-box { text-align: center; padding: 10px 0 18px; }
.wx-box img { width: 180px; height: 180px; object-fit: contain; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.wx-box p { font-size: 12.5px; color: var(--muted); margin: 12px 0 0; }
.hidden { display: none !important; }
.order-box { background: var(--soft); border-radius: 10px; padding: 18px; margin-bottom: 16px; font-size: 13.5px; }
.order-box .row { display: flex; justify-content: space-between; padding: 5px 0; }
.order-box .row b { font-variant-numeric: tabular-nums; }
.order-box .total { border-top: 1px solid var(--line); margin-top: 10px; padding-top: 12px; font-size: 16px; font-weight: 700; }
.chan { display: flex; align-items: center; justify-content: space-between; gap: 12px; border: 1px solid var(--line); border-radius: 10px; padding: 13px 16px; margin-bottom: 10px; }
.chan .name { font-weight: 600; font-size: 14px; }
.chan .pwd { font-size: 12px; color: var(--muted); margin-left: 8px; }
.install-guide { background: var(--soft); border-radius: 10px; padding: 16px; font-size: 13px; color: var(--ink-2); margin-top: 18px; }
.install-guide b { display: block; margin-bottom: 8px; }
.install-guide code { background: #fff; padding: 2px 6px; border-radius: 5px; font-size: 12px; }
.toast { position: fixed; left: 50%; bottom: 40px; transform: translate(-50%, 20px); background: var(--ink); color: #fff; padding: 12px 22px; border-radius: 99px; font-size: 13px; opacity: 0; pointer-events: none; transition: all .25s; z-index: 90; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* 账户 */
.me-card { border: 1px solid var(--line); border-radius: var(--r); padding: 26px; margin-bottom: 20px; }
.me-card h3 { margin: 0 0 8px; font-size: 18px; }
.me-card p { color: var(--muted); font-size: 13.5px; margin: 0 0 16px; }
.order-row { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.tag-paid { color: #1a7f4b; font-weight: 600; }
.tag-pending { color: #b06b12; font-weight: 600; }

footer { border-top: 1px solid var(--line); margin-top: 40px; padding: 44px 24px; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-start; }
.footer-inner > div:first-child { flex: 1; }
.footer-inner b { font-size: 16px; }
.footer-inner p { color: var(--muted); font-size: 12.5px; margin: 4px 0 0; }
.footer-links { display: flex; gap: 18px; }
.footer-links a { font-size: 12.5px; color: var(--muted); }
.footer-links a:hover { color: var(--ink); }
.footer-copy { width: 100%; font-size: 11.5px; color: #a3a4aa; }

@media (max-width: 900px) {
  .plan-grid, .preview-grid, .res-grid { grid-template-columns: repeat(2, 1fr); }
  .feat-grid { grid-template-columns: repeat(2, 1fr); }
  .plan.featured { transform: none; }
  .topbar { gap: 14px; padding: 14px 16px; }
  .topbar nav { gap: 14px; }
}
@media (max-width: 560px) {
  .plan-grid, .preview-grid, .res-grid, .feat-grid { grid-template-columns: 1fr; }
  .hero { padding: 54px 18px 40px; }
  .hero h1 { letter-spacing: -2px; }
  .section { padding: 48px 18px; }
  .stats b { font-size: 24px; }
  .topbar nav a { font-size: 12px; }
  .topbar { flex-wrap: wrap; }
}
