/* 排队网下载中心 - 前台样式 */
:root {
  --brand: #0e97a3;
  --brand-light: #4db0b6;
  --blue: #0590df;
  --ink: #172b3e;
  --ink-2: #39506a;
  --muted: #73859a;
  --line: #e6edf3;
  --bg: #f5f8fa;
  --white: #fff;
  --shadow-sm: 0 2px 10px rgba(23, 43, 62, .05);
  --shadow-md: 0 8px 28px rgba(23, 43, 62, .09);
  --shadow-lg: 0 18px 50px rgba(23, 43, 62, .16);
  --radius: 16px;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 132px; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", Arial, sans-serif;
  color: var(--ink); background: var(--bg); line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
img { display: block; max-width: 100%; }
.wrap { width: min(1320px, calc(100% - 48px)); margin: 0 auto; }
.icon { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ---------- 顶部导航 ---------- */
.pd-topbar {
  position: relative; z-index: 20; height: 68px;
  background: rgba(255,255,255,.92); backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(230,237,243,.9);
}
.pd-topbar .wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.pd-brand { display: flex; align-items: center; gap: 11px; font-weight: 700; font-size: 1.02rem; letter-spacing: .2px; }
.pd-brand-mark {
  width: 36px; height: 36px; border-radius: 11px; flex: none;
  background: linear-gradient(135deg, #22b8bd, #0b7f9c);
  display: grid; place-items: center; color: #fff; font-size: .95rem;
  box-shadow: 0 5px 14px rgba(14,151,163,.28);
}
.pd-brand-mark img { width: 100%; height: 100%; object-fit: cover; border-radius: 11px; }
.pd-brand small { display: block; font-size: .7rem; font-weight: 500; color: var(--muted); letter-spacing: .4px; }
.pd-top-actions { display: flex; align-items: center; gap: 10px; }
.pd-top-link {
  display: inline-flex; align-items: center; gap: 7px; font-size: .88rem; color: var(--ink-2);
  padding: 9px 14px; border-radius: 10px; transition: .2s;
}
.pd-top-link:hover { background: #eef5f8; color: var(--brand); }
.pd-btn-official {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 10px;
  color: #fff; font-size: .88rem; font-weight: 600;
  background: linear-gradient(135deg, #12a6af, #0b84a5);
  box-shadow: 0 6px 16px rgba(14,151,163,.25); transition: .2s;
}
.pd-btn-official:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(14,151,163,.32); }
.pd-btn-buy {
  display: inline-flex; align-items: center; gap: 7px; padding: 10px 17px; border-radius: 10px;
  color: #fff; font-size: .88rem; font-weight: 600;
  background: linear-gradient(135deg, #f5a23c, #ec7620);
  box-shadow: 0 6px 16px rgba(232,120,30,.26); transition: .2s;
}
.pd-btn-buy:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(232,120,30,.36); }

/* ---------- Hero ---------- */
.pd-hero {
  position: relative; overflow: hidden; padding: 62px 0 90px;
  background: linear-gradient(135deg, #0c8e9c 0%, #16a9b0 45%, #3fb6c3 100%);
  color: #fff;
}
.pd-hero::before, .pd-hero::after { content: ''; position: absolute; border-radius: 50%; pointer-events: none; }
.pd-hero::before { width: 520px; height: 520px; right: -110px; top: -250px; background: rgba(255,255,255,.10); }
.pd-hero::after { width: 340px; height: 340px; left: -90px; bottom: -230px; background: rgba(255,255,255,.07); }
.pd-hero .wrap { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 44px; }
.pd-hero-text { max-width: 680px; }
.pd-hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-size: .78rem; letter-spacing: 1.4px;
  background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.22);
  padding: 6px 14px; border-radius: 100px; margin-bottom: 20px;
}
.pd-hero h1 { font-size: clamp(1.9rem, 3.6vw, 2.75rem); font-weight: 750; line-height: 1.28; letter-spacing: .5px; }
.pd-hero p { margin-top: 14px; font-size: 1.02rem; color: rgba(255,255,255,.88); max-width: 590px; }
.pd-hero-meta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.pd-hero-chip {
  display: inline-flex; align-items: center; gap: 7px; font-size: .82rem;
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.2);
  padding: 7px 13px; border-radius: 9px;
}
.pd-hero-card {
  flex: none; width: 288px; padding: 22px; border-radius: 18px;
  background: rgba(255,255,255,.13); border: 1px solid rgba(255,255,255,.25);
  backdrop-filter: blur(8px); box-shadow: 0 20px 40px rgba(0,0,0,.08);
}
.pd-hero-card-top { display: flex; align-items: center; gap: 13px; }
.pd-hero-card-top img { width: 54px; height: 54px; border-radius: 13px; object-fit: cover; background: #fff; }
.pd-hero-card-top b { font-size: 1rem; display: block; }
.pd-hero-card-top span { font-size: .76rem; color: rgba(255,255,255,.75); }
.pd-hero-card p { font-size: .84rem; margin: 16px 0 0; color: rgba(255,255,255,.9); }
.pd-hero-wave { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 46px; display: block; }

/* ---------- 公告 ---------- */
.pd-notice {
  display: flex; align-items: flex-start; gap: 10px; margin: 22px auto 0; padding: 13px 18px;
  background: #fff8e8; border: 1px solid #f5e2b8; color: #8a6517;
  border-radius: 12px; font-size: .9rem;
}
.pd-notice .icon { margin-top: 3px; }

/* ---------- 工具条 / 搜索 / 锚点 ---------- */
.pd-toolbar {
  position: sticky; top: 0; z-index: 15; margin-top: -22px;
  background: rgba(255,255,255,.94); backdrop-filter: blur(14px);
  border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-md);
  padding: 12px 16px; display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
}
.pd-search { position: relative; flex: 1 1 260px; min-width: 210px; }
.pd-search .icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: #9aabb9; font-size: 1.05rem; }
.pd-search input {
  width: 100%; height: 42px; padding: 0 38px 0 42px; border: 1px solid var(--line);
  border-radius: 10px; background: #f8fbfc; font-size: .9rem; color: var(--ink); outline: none; transition: .2s;
}
.pd-search input:focus { border-color: var(--brand-light); background: #fff; box-shadow: 0 0 0 3px rgba(77,176,182,.14); }
.pd-search-clear { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); color: #9aabb9; font-size: 1.2rem; line-height: 1; display: none; padding: 4px; }
.pd-search-clear.show { display: block; }
.pd-anchors { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.pd-anchor {
  font-size: .86rem; color: var(--ink-2); padding: 8px 14px; border-radius: 9px;
  display: inline-flex; align-items: center; gap: 6px; transition: .2s; white-space: nowrap;
}
.pd-anchor:hover { background: #eaf5f6; color: var(--brand); }
.pd-anchor.active { background: #e5f4f5; color: var(--brand); font-weight: 600; }
.pd-count { font-size: .82rem; color: var(--muted); margin-left: auto; white-space: nowrap; }

/* ---------- 分区 ---------- */
.pd-main { padding: 30px 0 20px; }
.pd-section { margin: 34px 0 46px; scroll-margin-top: 110px; }
.pd-section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.pd-section-title { display: flex; align-items: center; gap: 12px; }
.pd-section-icon {
  width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-size: 1.15rem;
  background: linear-gradient(135deg, #e3f6f7, #d9eefb); color: var(--brand);
}
.pd-section-title h2 { font-size: 1.42rem; font-weight: 700; letter-spacing: .3px; }
.pd-section-title p { font-size: .87rem; color: var(--muted); margin-top: 2px; }
.pd-section-line { flex: 1; height: 1px; background: linear-gradient(90deg, var(--line), transparent); min-width: 30px; }
.pd-grid { display: grid; gap: 20px; grid-template-columns: repeat(var(--cols, 2), minmax(0, 1fr)); }

/* ---------- 卡片 ---------- */
.pd-card {
  --accent: #0e97a3; --accent-soft: #e4f5f6;
  position: relative; display: flex; flex-direction: column; overflow: hidden;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); transition: transform .24s ease, box-shadow .24s ease, border-color .24s ease;
}
.pd-card::before { content: ''; position: absolute; inset: 0 0 auto; height: 3px; background: linear-gradient(90deg, var(--accent), transparent 85%); }
.pd-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: #d7e5ec; }
.pd-card[data-accent="blue"] { --accent: #0a8fdd; --accent-soft: #e7f3fd; }
.pd-card[data-accent="violet"] { --accent: #7c6ad8; --accent-soft: #efedfc; }
.pd-card[data-accent="amber"] { --accent: #e0962c; --accent-soft: #fdf3e2; }
.pd-card[data-accent="teal"] { --accent: #0e97a3; --accent-soft: #e4f5f6; }
.pd-card-inner { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.pd-card-head { display: flex; align-items: flex-start; gap: 14px; }
.pd-card-icon {
  width: 58px; height: 58px; border-radius: 14px; flex: none; object-fit: cover;
  border: 1px solid var(--line); background: #fff;
}
.pd-card-icon-fallback {
  display: grid; place-items: center; font-weight: 800; font-size: .9rem; letter-spacing: .5px;
  background: var(--accent-soft); color: var(--accent); border: none;
}
.pd-card-heading { flex: 1; min-width: 0; }
.pd-card-title { font-size: 1.12rem; font-weight: 700; line-height: 1.4; }
.pd-card-badge {
  display: inline-block; margin-left: 8px; vertical-align: 2px; font-size: .68rem; font-weight: 700;
  padding: 3px 8px; border-radius: 6px; background: var(--accent-soft); color: var(--accent);
}
.pd-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.pd-tag { font-size: .72rem; padding: 3px 9px; border-radius: 20px; background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.pd-tag.secondary { background: #f1f4f7; color: #7c8b9b; font-weight: 500; }
.pd-card-desc { font-size: .89rem; color: var(--ink-2); margin: 16px 0 0; line-height: 1.75; min-height: 46px; }
.pd-ver {
  display: flex; align-items: center; gap: 12px; margin: 16px 0 0; padding: 11px 14px;
  background: #f7fafc; border: 1px solid #eef2f6; border-radius: 10px;
}
.pd-ver-label { font-size: .76rem; color: var(--muted); }
.pd-ver-value { font-size: .92rem; font-weight: 700; color: var(--ink); }
.pd-ver-extra { font-size: .76rem; color: var(--muted); margin-left: auto; text-align: right; }
.pd-buttons { display: flex; flex-direction: column; gap: 9px; margin-top: 18px; }
.pd-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 42px; padding: 9px 16px; border-radius: 10px; font-size: .89rem; font-weight: 600;
  transition: .2s; width: 100%; position: relative;
}
.pd-btn .icon { font-size: 1.05rem; }
.pd-btn-hint { font-size: .73rem; font-weight: 500; opacity: .75; margin-left: auto; }
.pd-btn-primary {
  color: #fff; background: linear-gradient(135deg, #13a5ae, #0b84a5);
  box-shadow: 0 5px 14px rgba(14,151,163,.22);
}
.pd-btn-primary:hover { transform: translateY(-2px); box-shadow: 0 9px 20px rgba(14,151,163,.3); }
.pd-btn-soft { color: #0b7fa0; background: #eaf6f8; border: 1px solid #d8eef0; }
.pd-btn-soft:hover { background: #dcf0f3; }
.pd-btn-ghost { color: var(--ink-2); background: #fff; border: 1px solid var(--line); }
.pd-btn-ghost:hover { border-color: #bdd6de; background: #f8fcfd; }
.pd-aux { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--line); }
.pd-aux a { display: inline-flex; align-items: center; gap: 6px; font-size: .81rem; color: var(--brand); transition: .2s; }
.pd-aux a:hover { color: #0a6f87; text-decoration: underline; }
.pd-aux .icon { font-size: .9rem; }
.pd-qr-strip { display: flex; gap: 16px; justify-content: center; margin-top: 18px; flex-wrap: wrap; }
.pd-qr-item { text-align: center; }
.pd-qr-thumb { width: 92px; height: 92px; object-fit: contain; padding: 5px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.pd-qr-label { font-size: .76rem; color: var(--muted); margin-top: 6px; }
.pd-card-foot { margin-top: auto; padding-top: 14px; font-size: .73rem; color: #a1afbc; display: flex; align-items: center; gap: 6px; }
.pd-card.disabled { opacity: .55; }

/* ---------- 帮助中心 ---------- */
.pd-help {
  margin: 20px 0 54px; padding: 34px; border-radius: 20px; text-align: center;
  background: linear-gradient(135deg, #fff 0%, #f0f9fa 100%); border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.pd-help h3 { font-size: 1.32rem; font-weight: 700; }
.pd-help p { color: var(--muted); font-size: .9rem; margin: 8px auto 22px; max-width: 620px; }
.pd-help-links { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }
.pd-help-link {
  display: inline-flex; align-items: center; gap: 10px; min-width: 230px; justify-content: center;
  padding: 14px 22px; border-radius: 12px; background: #fff; border: 1px solid var(--line);
  color: var(--ink-2); font-size: .92rem; font-weight: 600; transition: .2s;
}
.pd-help-link .icon { color: var(--brand); font-size: 1.15rem; }
.pd-help-link:hover { border-color: #b9dde0; color: var(--brand); transform: translateY(-2px); box-shadow: var(--shadow-sm); }

/* ---------- 页脚 / 浮动按钮 ---------- */
.pd-footer { border-top: 1px solid var(--line); background: #fff; padding: 26px 0; }
.pd-footer .wrap { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.pd-footer p { font-size: .82rem; color: var(--muted); }
.pd-footer .pd-admin-link { font-size: .78rem; color: #b2bfca; transition: .2s; }
.pd-footer .pd-admin-link:hover { color: var(--brand); }
.pd-fab {
  position: fixed; right: 24px; bottom: 26px; width: 42px; height: 42px; border-radius: 12px;
  background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-md); color: var(--ink-2);
  display: grid; place-items: center; opacity: 0; pointer-events: none; transition: .25s; z-index: 12;
}
.pd-fab.show { opacity: 1; pointer-events: auto; }
.pd-fab:hover { color: var(--brand); transform: translateY(-3px); }

/* ---------- 弹窗 / 提示 ---------- */
.pd-overlay { position: fixed; inset: 0; background: rgba(16,35,50,.55); backdrop-filter: blur(3px); z-index: 60; opacity: 0; visibility: hidden; transition: .22s; }
.pd-overlay.show { opacity: 1; visibility: visible; }
.pd-modal {
  position: fixed; left: 50%; top: 50%; transform: translate(-50%, -46%) scale(.96); z-index: 61;
  width: min(560px, calc(100% - 32px)); max-height: 86vh; overflow: auto;
  background: #fff; border-radius: 20px; padding: 28px; box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transition: .24s;
}
.pd-modal.show { opacity: 1; visibility: visible; transform: translate(-50%, -50%) scale(1); }
.pd-modal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.pd-modal-head h3 { font-size: 1.15rem; font-weight: 700; }
.pd-modal-close { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; color: var(--muted); font-size: 1.3rem; }
.pd-modal-close:hover { background: #f2f5f7; color: var(--ink); }
.pd-modal-sub { font-size: .85rem; color: var(--muted); margin-bottom: 20px; }
.pd-modal-qrs { display: flex; justify-content: center; gap: 28px; flex-wrap: wrap; }
.pd-modal-qr { text-align: center; }
.pd-modal-qr img { width: 200px; height: 200px; object-fit: contain; padding: 8px; border: 1px solid var(--line); border-radius: 12px; }
.pd-modal-qr b { display: block; margin-top: 10px; font-size: .92rem; }
.pd-toast {
  position: fixed; left: 50%; bottom: 34px; transform: translate(-50%, 20px); z-index: 80;
  background: #172b3e; color: #fff; padding: 11px 20px; border-radius: 10px; font-size: .87rem;
  box-shadow: var(--shadow-lg); opacity: 0; pointer-events: none; transition: .25s;
}
.pd-toast.show { opacity: 1; transform: translate(-50%, 0); }
.pd-empty { text-align: center; padding: 60px 20px; color: var(--muted); }
.pd-empty .icon { font-size: 2.4rem; color: #c3d1db; margin-bottom: 12px; }
.pd-loading { text-align: center; padding: 70px 20px; color: var(--muted); font-size: .9rem; }
.pd-offline {
  margin: 16px auto 0; padding: 10px 16px; border-radius: 10px; font-size: .82rem;
  background: #fff5f2; border: 1px solid #f6d8cd; color: #a4502f;
}

/* ---------- 响应式 ---------- */
@media (max-width: 1100px) {
  .pd-hero-card { display: none; }
  .pd-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pd-grid[data-cols="4"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 780px) {
  .wrap { width: min(100% - 28px, 1320px); }
  .pd-topbar { height: 60px; }
  .pd-brand small { display: none; }
  .pd-top-link { display: none; }
  .pd-btn-official { padding: 9px 13px; font-size: .82rem; }
  .pd-btn-buy { padding: 9px 12px; font-size: .8rem; }
  .pd-hero { padding: 44px 0 74px; }
  .pd-hero h1 { font-size: 1.7rem; }
  .pd-hero p { font-size: .9rem; }
  .pd-toolbar { margin-top: -16px; padding: 10px; gap: 10px; }
  .pd-anchors { width: 100%; overflow-x: auto; flex-wrap: nowrap; padding-bottom: 2px; }
  .pd-count { margin-left: 0; }
  .pd-grid, .pd-grid[data-cols="4"] { grid-template-columns: 1fr; }
  .pd-card-inner { padding: 20px; }
  .pd-help { padding: 26px 18px; }
  .pd-help-link { min-width: 0; width: 100%; }
  .pd-ver { flex-wrap: wrap; }
  .pd-ver-extra { margin-left: 0; width: 100%; text-align: left; }
  .pd-modal { padding: 22px; }
  .pd-modal-qr img { width: 160px; height: 160px; }
}
