/* 节点商店 — 深色高级主题（玻璃拟态 + 渐变），无框架手写 */
:root {
  --bg0: #070b16;
  --bg1: #0c1330;
  --card: rgba(255, 255, 255, 0.055);
  --card-solid: #101830;
  --card-border: rgba(255, 255, 255, 0.12);
  --text: #eef1ff;
  --muted: #9aa5c4;
  --primary: #6366f1;
  --primary2: #8b5cf6;
  --accent: #22d3ee;
  --ok: #34d399;
  --warn: #fbbf24;
  --danger: #f87171;
  --border: rgba(255, 255, 255, 0.12);
  --radius: 16px;
  --shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; color: var(--text);
  font-family: -apple-system, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  font-size: 15px; line-height: 1.65;
  background:
    radial-gradient(1100px 500px at 85% -5%, rgba(99, 102, 241, 0.28), transparent 60%),
    radial-gradient(900px 480px at 8% 10%, rgba(34, 211, 238, 0.14), transparent 60%),
    radial-gradient(1000px 700px at 50% 110%, rgba(139, 92, 246, 0.16), transparent 60%),
    linear-gradient(180deg, var(--bg1), var(--bg0) 70%);
  background-attachment: fixed;
  min-height: 100vh;
}
/* 后台上传的壁纸：固定全屏 + 深色渐变罩，保证文字可读 */
.wallpaper-bg { position: fixed; inset: 0; z-index: -2; overflow: hidden; }
.wallpaper-bg img {
  width: 100%; height: 100%; object-fit: cover; object-position: center;
}
.wallpaper-bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(5, 8, 18, 0.62) 0%, rgba(5, 8, 18, 0.78) 60%, rgba(5, 8, 18, 0.88) 100%);
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---- 导航 ---- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(7, 11, 22, 0.72);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--card-border);
  padding: 12px 0; margin-bottom: 28px;
}
.nav .inner {
  max-width: 1080px; margin: 0 auto; padding: 0 20px;
  display: flex; align-items: center; gap: 22px;
}
.nav-links { display: flex; align-items: center; gap: 22px; flex: 1; }
.nav-toggle {
  display: none; margin-left: auto; background: rgba(255,255,255,0.08);
  border: 1px solid var(--card-border); color: #fff; border-radius: 8px;
  padding: 5px 13px; font-size: 19px; cursor: pointer; font-family: inherit;
  -webkit-tap-highlight-color: transparent;
}
.nav .brand {
  font-weight: 800; font-size: 19px; color: #fff; letter-spacing: 0.5px;
  display: flex; align-items: center; gap: 9px;
}
.nav .brand::before {
  content: ""; width: 11px; height: 11px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--primary2));
  box-shadow: 0 0 14px rgba(34, 211, 238, 0.8);
}
.nav .spacer { flex: 1; }
.nav a { color: #c6cde6; font-size: 14.5px; }
.nav a:hover { color: #fff; text-decoration: none; }
.nav .user { color: var(--muted); font-size: 13.5px; }
.nav button { font-family: inherit; }

/* ---- 公告条 ---- */
.notice-bar {
  max-width: 1080px; margin: -14px auto 22px; padding: 0 20px;
}
.notice-inner {
  display: flex; gap: 10px; align-items: flex-start;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.22), rgba(34, 211, 238, 0.14));
  border: 1px solid rgba(99, 102, 241, 0.45);
  border-radius: 12px; padding: 11px 16px; font-size: 14px; color: #e6e9ff;
  box-shadow: 0 6px 24px rgba(99, 102, 241, 0.18);
}
.notice-inner .tag {
  flex: none; font-size: 12px; font-weight: 700; color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary2));
  border-radius: 999px; padding: 2px 10px; margin-top: 2px;
}

/* ---- 布局 ---- */
.container { max-width: 1080px; margin: 0 auto; padding: 0 20px 56px; }
.card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius); padding: 24px; margin-bottom: 18px;
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
}
h1 { font-size: 26px; margin: 0 0 18px; letter-spacing: 0.5px; }
h2 { font-size: 19px; margin: 0 0 14px; }
h3 { font-size: 16px; margin: 18px 0 10px; color: #dfe4ff; }

/* ---- 首页 Hero ---- */
.hero { text-align: center; padding: 56px 24px 44px; }
.hero h1 {
  font-size: clamp(30px, 5vw, 46px); font-weight: 800; line-height: 1.3; margin: 0 0 14px;
  background: linear-gradient(120deg, #fff 20%, var(--accent) 55%, var(--primary2) 85%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p { color: var(--muted); font-size: 16px; margin: 0 auto 26px; max-width: 640px; }
.hero .cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-badges { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 26px; }
.hero-badges span {
  font-size: 12.5px; color: var(--muted);
  border: 1px solid var(--card-border); border-radius: 999px; padding: 5px 14px;
  background: rgba(255, 255, 255, 0.04);
}

/* ---- 套餐 ---- */
.section-title { text-align: center; margin: 44px 0 20px; }
.section-title h2 { font-size: 23px; margin: 0 0 6px; }
.section-title p { color: var(--muted); font-size: 14px; margin: 0; }
.plans { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.plan { display: flex; flex-direction: column; position: relative; transition: transform 0.18s ease, box-shadow 0.18s ease; }
.plan:hover { transform: translateY(-5px); box-shadow: 0 18px 48px rgba(99, 102, 241, 0.28); }
.plan.popular { border: 1.5px solid rgba(139, 92, 246, 0.65); }
.plan .pop-tag {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  font-size: 12px; font-weight: 700; color: #fff; white-space: nowrap;
  background: linear-gradient(135deg, var(--primary), var(--primary2));
  border-radius: 999px; padding: 3px 16px;
  box-shadow: 0 4px 16px rgba(139, 92, 246, 0.5);
}
.plan .name { font-size: 17px; font-weight: 700; color: #dfe4ff; }
.plan .price { font-size: 34px; font-weight: 800; margin: 10px 0 4px;
  background: linear-gradient(120deg, var(--accent), #a5b4fc); -webkit-background-clip: text; background-clip: text; color: transparent; }
.plan .price small { font-size: 13px; font-weight: 400; color: var(--muted); -webkit-text-fill-color: var(--muted); }
.plan ul { margin: 6px 0 20px; padding: 0; list-style: none; color: var(--muted); font-size: 14px; }
.plan ul li { padding: 6px 0 6px 26px; position: relative; border-bottom: 1px dashed rgba(255,255,255,0.07); }
.plan ul li:last-child { border-bottom: none; }
.plan ul li::before { content: "✓"; position: absolute; left: 4px; color: var(--ok); font-weight: 700; }
.plan .btn { margin-top: auto; text-align: center; }

/* ---- 按钮 ---- */
.btn {
  display: inline-block; border: none; cursor: pointer; font-family: inherit;
  background: linear-gradient(135deg, var(--primary), var(--primary2));
  color: #fff !important; padding: 11px 26px; border-radius: 10px; font-size: 15px; font-weight: 600;
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}
.btn:hover { text-decoration: none; filter: brightness(1.1); transform: translateY(-1px); }
.btn.secondary { background: rgba(255, 255, 255, 0.1); box-shadow: none; border: 1px solid var(--card-border); }
.btn.danger { background: linear-gradient(135deg, #dc2626, #991b1b); box-shadow: 0 6px 20px rgba(220, 38, 38, 0.35); }
.btn.small { padding: 7px 16px; font-size: 13px; border-radius: 8px; }
.btn:disabled { background: #4b5563; cursor: not-allowed; box-shadow: none; transform: none; }
form.inline { display: inline; }

/* ---- 表单 ---- */
label { display: block; margin: 14px 0 6px; font-weight: 600; font-size: 14px; color: #dfe4ff; }
input[type=text], input[type=password], input[type=number], select, textarea {
  width: 100%; padding: 11px 14px; border: 1px solid var(--card-border);
  border-radius: 10px; font-size: 15px; font-family: inherit;
  background: rgba(255, 255, 255, 0.06); color: var(--text);
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.25); }
input[type=file] { color: var(--muted); font-size: 14px; }
select option { background: #141b36; }
textarea { min-height: 90px; resize: vertical; line-height: 1.7; }
textarea.tall { min-height: 220px; font-size: 14px; }
.form-narrow { max-width: 440px; margin: 0 auto; }
.hint { color: var(--muted); font-size: 13px; margin-top: 6px; }

/* ---- 提示框 ---- */
.alert { padding: 13px 17px; border-radius: 12px; margin-bottom: 16px; font-size: 14px; border: 1px solid; }
.alert.error { background: rgba(248, 113, 113, 0.12); color: #fecaca; border-color: rgba(248, 113, 113, 0.4); }
.alert.ok { background: rgba(52, 211, 153, 0.12); color: #a7f3d0; border-color: rgba(52, 211, 153, 0.4); }
.alert.warn { background: rgba(251, 191, 36, 0.12); color: #fde68a; border-color: rgba(251, 191, 36, 0.4); }

/* ---- 键值 / 表格 ---- */
.kv { display: grid; grid-template-columns: 130px 1fr; gap: 8px 14px; font-size: 14px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; word-break: break-all; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
table.tbl th, table.tbl td { text-align: left; padding: 11px 9px; border-bottom: 1px solid rgba(255,255,255,0.08); }
table.tbl th { color: var(--muted); font-weight: 600; white-space: nowrap; font-size: 13px; }
table.tbl tr:hover td { background: rgba(255, 255, 255, 0.03); }
.badge { display: inline-block; padding: 3px 12px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.badge.gray { background: rgba(255,255,255,0.1); color: #c6cde6; }
.badge.blue { background: rgba(99,102,241,0.2); color: #c7d2fe; }
.badge.green { background: rgba(52,211,153,0.16); color: #a7f3d0; }
.badge.yellow { background: rgba(251,191,36,0.16); color: #fde68a; }
.badge.red { background: rgba(248,113,113,0.16); color: #fecaca; }

/* ---- 二维码 / 订阅链接 ---- */
.qr-box { text-align: center; padding: 20px; }
.qr-box img { max-width: 260px; border-radius: 12px; border: 1px solid var(--card-border); background: #fff; padding: 8px; }
.wallpaper-preview img { max-width: 100%; max-height: 220px; border-radius: 12px; border: 1px solid var(--card-border); }
.codebox {
  background: rgba(0, 0, 0, 0.5); color: #dbe4ff; border-radius: 10px; border: 1px solid var(--card-border);
  padding: 13px 15px; font-size: 12px; word-break: break-all;
  font-family: ui-monospace, Consolas, monospace; margin: 8px 0;
}
.copy-row { display: flex; gap: 8px; align-items: flex-start; }
.copy-row .codebox { flex: 1; }
.steps { color: var(--muted); font-size: 14px; }
.steps li { margin-bottom: 8px; }

/* ---- 流程步骤卡 ---- */
.flow { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; margin-top: 6px; }
.flow .step { position: relative; padding: 20px 18px 18px 64px; }
.flow .num {
  position: absolute; left: 18px; top: 18px; width: 34px; height: 34px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 15px; color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary2));
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.5);
}
.flow .step b { display: block; color: #fff; margin-bottom: 4px; font-size: 14.5px; }
.flow .step p { margin: 0; color: var(--muted); font-size: 13px; }

/* ---- 联系方式 ---- */
.contacts { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.contact-card { text-align: center; padding: 26px 18px; }
.contact-card .icon { font-size: 30px; margin-bottom: 10px; }
.contact-card b { display: block; color: #fff; margin-bottom: 4px; }
.contact-card span { color: var(--muted); font-size: 13.5px; word-break: break-all; }

/* ---- 富文本（教程/声明，后台纯文本编辑，前台保留换行） ---- */
.rich-text { white-space: pre-line; word-break: break-word; color: #dbe1f5; font-size: 14.5px; line-height: 1.9; }
.rich-text:empty::before { content: "暂无内容"; color: var(--muted); }

/* ---- 页脚 ---- */
.footer { text-align: center; color: var(--muted); font-size: 13px; margin-top: 52px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.08); }
.footer .links { margin-bottom: 10px; display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; }
.footer .links a { color: #c6cde6; font-size: 13.5px; }
.footer .contact-line { margin-top: 8px; font-size: 12.5px; }

.progress { height: 8px; background: rgba(255,255,255,0.1); border-radius: 999px; overflow: hidden; }
.progress > div { height: 100%; background: linear-gradient(90deg, var(--primary), var(--accent)); }
.pager { display: flex; gap: 12px; align-items: center; margin-top: 16px; font-size: 14px; }
code { background: rgba(255,255,255,0.08); padding: 2px 8px; border-radius: 6px; font-size: 13px; }

@media (max-width: 640px) {
  /* 汉堡菜单导航 */
  .nav { margin-bottom: 20px; }
  .nav .inner { gap: 12px; flex-wrap: wrap; }
  .nav-toggle { display: block; }
  .nav-links {
    display: none; width: 100%; flex: none;
    flex-direction: column; align-items: stretch; gap: 0;
  }
  .nav-links.open { display: flex; }
  .nav-links a, .nav-links .user {
    padding: 12px 4px; border-top: 1px solid rgba(255,255,255,0.07); font-size: 15px;
  }
  .nav-links .spacer { display: none; }
  .nav-links form.inline { padding: 10px 4px; border-top: 1px solid rgba(255,255,255,0.07); }
  .nav-links form.inline button { font-size: 15px !important; padding: 0; }
  /* 表格横向滚动，不挤爆布局 */
  table.tbl { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  /* iOS 输入框小于 16px 会自动放大，统一 16px */
  input[type=text], input[type=password], input[type=number], select, textarea { font-size: 16px; }
  .kv { grid-template-columns: 100px 1fr; }
  .copy-row { flex-direction: column; }
  .hero { padding: 36px 16px 30px; }
  .flow .step { padding: 16px 14px 14px 58px; }
  .card { padding: 18px; }
  h1 { font-size: 22px; }
  * { -webkit-tap-highlight-color: transparent; }
}
.qr-tabs { display: flex; gap: 8px; justify-content: center; margin: 4px 0 12px; flex-wrap: wrap; }
.qr-tab { padding: 8px 18px; border-radius: 999px; border: 1px solid var(--card-border); background: transparent; color: var(--muted); font-size: 14px; cursor: pointer; }
.qr-tab.active { background: var(--accent, #4f7cff); border-color: var(--accent, #4f7cff); color: #fff; }
