/* ========== 基础 ========== */
:root {
  --blue: #3c76f8;
  --blue-dark: #315fd0;
  --nav-blue: #386de6;
  --bg: #f5f7fb;
  --bg-light: #eef5ff;
  --text: #333;
  --text-sub: #838a96;
  --border: #e4e9f2;
  --radius: 10px;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.6;
}
a { text-decoration: none; color: inherit; }
.container { max-width: 1180px; margin: 0 auto; padding: 0 16px; }

/* ========== 顶部条 ========== */
.topbar { background: #fff; border-bottom: 1px solid var(--border); }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; height: 58px; }
.logo { display: flex; align-items: center; gap: 8px; }
.logo-icon {
  width: 32px; height: 32px; border-radius: 8px; background: var(--blue);
  color: #fff; display: inline-flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: bold;
}
.logo-text { font-size: 20px; color: var(--blue); }
.logo-text b { color: #ff6b35; }
.logo-badge {
  font-size: 12px; color: var(--blue); background: var(--bg-light);
  border: 1px solid #cfe0ff; padding: 2px 10px; border-radius: 20px; margin-left: 6px;
}
.topbar-links a { margin-left: 22px; color: #555; font-size: 13px; }
.topbar-links a:hover { color: var(--blue); }
.topbar-right { display: flex; align-items: center; gap: 16px; }

/* 开通会员入口 */
.member-pill {
  display: inline-flex; align-items: center; gap: 6px; flex: none;
  background: linear-gradient(135deg, #ff9f43, #ff6b35); color: #fff;
  padding: 8px 16px; border-radius: 999px; font-size: 13px; font-weight: 600;
  box-shadow: 0 4px 12px rgba(255,107,53,.28);
  transition: transform .15s, box-shadow .15s; cursor: pointer;
}
.member-pill:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(255,107,53,.38); }
.member-pill-lg { width: 100%; justify-content: center; padding: 12px 0; font-size: 15px; margin: 12px 0 6px; }

/* 汉堡按钮（默认桌面隐藏） */
.menu-btn {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 40px; height: 40px; flex: none; background: #fff;
  border: 1px solid var(--border); border-radius: 10px; cursor: pointer; padding: 0 9px;
}
.menu-btn span { display: block; height: 2px; background: #3a4557; border-radius: 2px; transition: transform .25s, opacity .2s; }
.menu-btn span:nth-child(2) { width: 75%; }
body.nav-open .menu-btn span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.nav-open .menu-btn span:nth-child(2) { opacity: 0; }
body.nav-open .menu-btn span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* 移动端抽屉头部/底部（默认隐藏） */
.drawer-head, .drawer-foot { display: none; }
.drawer-user {
  display: flex; flex-wrap: wrap; align-items: center; gap: 16px;
  padding: 2px 4px 12px; border-bottom: 1px solid var(--border); margin-bottom: 4px;
}
.drawer-user a { color: #555; font-size: 14px; }
.drawer-user a:hover { color: var(--blue); }
.drawer-foot {
  margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--border);
  gap: 16px;
}
.drawer-foot a { color: #8a93a2; font-size: 13px; }
.drawer-foot a:hover { color: var(--blue); }

/* 抽屉遮罩（默认隐藏） */
.nav-backdrop {
  position: fixed; inset: 0; z-index: 1000; background: rgba(15,28,55,.45);
  opacity: 0; visibility: hidden; transition: opacity .28s, visibility .28s;
}
body.nav-open .nav-backdrop { opacity: 1; visibility: visible; }

/* ========== 主导航 ========== */
.mainnav { background: var(--nav-blue); }
.nav-inner { display: flex; align-items: center; height: 46px; gap: 4px; }
.nav-item {
  color: rgba(255,255,255,.92); padding: 6px 18px; border-radius: 6px; font-size: 15px;
  cursor: pointer; transition: background .2s;
}
.nav-item:hover, .nav-item.active { background: rgba(255,255,255,.16); color: #fff; }
.nav-tip { margin-left: auto; color: rgba(255,255,255,.75); font-size: 12px; }

/* 导航悬停下拉子菜单 */
.nav-item-wrap { position: relative; display: flex; align-items: center; height: 46px; }
.nav-item-wrap:hover > .nav-item { background: rgba(255,255,255,.16); color: #fff; }
.nav-drop {
  display: none; position: absolute; top: 100%; left: 0; min-width: 150px;
  background: #fff; border-radius: 0 0 10px 10px; box-shadow: 0 10px 26px rgba(30,60,120,.18);
  padding: 6px; z-index: 80;
}
.nav-item-wrap:hover .nav-drop { display: block; }
.drop-item { display: block; padding: 8px 14px; border-radius: 6px; color: #444; font-size: 14px; white-space: nowrap; }
.drop-item:hover { background: var(--bg-light); color: var(--blue); }
.nav-drop-wide { min-width: 330px; }
.drop-sec-title {
  display: flex; align-items: center; gap: 6px; padding: 8px 10px 4px;
  font-size: 12px; color: var(--text-sub); letter-spacing: 1px;
  cursor: pointer; user-select: none;
}
.drop-sec-title .arr, .side-collapse .arr { font-size: 10px; transition: transform .2s; }
.drop-sec.collapsed .arr, .side-collapse.collapsed .arr { transform: rotate(-90deg); }
.drop-sec.collapsed .drop-sec-body { display: none; }
.drop-sec-body { display: grid; grid-template-columns: 1fr 1fr; column-gap: 4px; }

/* 侧栏分组收缩 */
.side-title.side-collapse {
  cursor: pointer; user-select: none; display: flex; align-items: center; gap: 6px;
  font-size: 16px; color: #1a2233; font-weight: 700; letter-spacing: .5px;
  padding: 12px 12px; margin: 2px 0; border-radius: 8px; transition: all .15s;
}
.side-title.side-collapse:hover { background: var(--bg-light); color: var(--blue); }
.side-collapse .arr { margin-left: auto; font-size: 13px; color: #6b7482; }
.side-collapse:hover .arr { color: var(--blue); }
.side-sec.collapsed { display: none; }

/* 下拉禁用项与 CTA 按钮 */
.drop-item.disabled, .side-item.disabled { color: #bbb; cursor: not-allowed; }
.drop-item.disabled:hover { background: none; color: #bbb; }
.side-item.disabled:hover { background: none; color: #bbb; }

/* ========== 主体布局 ========== */
.main-area { display: flex; gap: 20px; margin-top: 22px; align-items: flex-start; }

/* 侧栏 */
.sidebar {
  width: 230px; flex-shrink: 0; background: #fff; border-radius: var(--radius);
  padding: 10px; box-shadow: 0 2px 10px rgba(30,60,120,.05);
}
.side-title {
  font-size: 14px; color: #565e6b; padding: 12px 10px 6px;
  letter-spacing: 1px; font-weight: 600;
}
.side-item {
  display: flex; align-items: center; gap: 10px; padding: 9px 10px;
  border-radius: 8px; color: #333; font-size: 14px; transition: all .15s; position: relative;
}
.side-item:hover { background: var(--bg-light); color: var(--blue); }
.side-item.active { background: var(--blue); color: #fff; }
.side-item.active .ic { border-color: rgba(255,255,255,.6); color: #fff; }
.side-item.disabled { color: #b6bcc8; cursor: not-allowed; }
.ic {
  width: 24px; height: 24px; border: 1.5px solid var(--blue); border-radius: 5px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: bold; color: var(--blue); font-style: normal; flex-shrink: 0;
}
.side-item.disabled .ic { border-color: #cfd4dd; color: #b6bcc8; }
.hot {
  margin-left: auto; font-size: 11px; color: #ff6b35;
  background: #fff1ea; padding: 1px 7px; border-radius: 10px;
}
.side-item.active .hot { color: #fff; background: rgba(255,255,255,.25); }

/* 工作区 */
.workspace {
  flex: 1; background: #fff; border-radius: var(--radius);
  padding: 30px 34px 36px; box-shadow: 0 2px 10px rgba(30,60,120,.05); min-width: 0;
}
#tool-title { color: var(--blue); font-size: 28px; font-weight: 700; }
#tool-sub { color: var(--text-sub); margin-top: 6px; font-size: 14px; }

.stat-bar {
  margin-top: 16px; background: var(--bg-light); border-radius: 8px;
  padding: 8px 14px; color: #4d6aa8; font-size: 13px;
  display: flex; align-items: center; gap: 6px;
}
.stat-bar b { color: var(--blue); }
.stat-dot {
  width: 8px; height: 8px; border-radius: 50%; background: #35c97a;
  box-shadow: 0 0 0 3px rgba(53,201,122,.2);
}

/* 上传区 */
.dropzone {
  margin-top: 20px; border: 2px dashed #b9cdf7; border-radius: 12px;
  background: linear-gradient(180deg, #fbfdff, #f4f8ff);
  padding: 40px 20px 16px; text-align: center; transition: all .2s;
}
.dropzone.dragover { border-color: var(--blue); background: #eaf2ff; transform: scale(1.005); }
.dz-cloud { font-size: 46px; line-height: 1; }
.dz-text { color: var(--text-sub); margin: 12px 0 14px; }
.btn-primary {
  background: var(--blue); color: #fff; border: none; padding: 11px 42px;
  border-radius: 24px; font-size: 16px; cursor: pointer;
  box-shadow: 0 4px 14px rgba(60,118,248,.35); transition: all .2s;
}
.btn-primary:hover { background: var(--blue-dark); transform: translateY(-1px); }
.dz-hint { color: #a5adbb; font-size: 12px; margin-top: 14px; }
.dz-privacy {
  color: #35c97a; font-size: 12px; margin-top: 20px;
  border-top: 1px dashed #dbe5f7; padding-top: 12px;
}

/* 文件列表 */
.file-list { margin-top: 18px; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.fl-header {
  display: flex; justify-content: space-between; align-items: center;
  background: #f8fafd; padding: 9px 14px; font-size: 13px; color: #556;
}
.btn-link { border: none; background: none; color: var(--blue); cursor: pointer; font-size: 13px; }
.btn-link:hover { text-decoration: underline; }
#fl-items { list-style: none; }
#fl-items li {
  display: flex; align-items: center; gap: 10px; padding: 10px 14px;
  border-top: 1px solid var(--border); font-size: 13px;
}
.fl-name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fl-size { color: var(--text-sub); }
.fl-remove {
  border: none; background: none; color: #ff5a5a; cursor: pointer; font-size: 15px; padding: 2px 6px;
}

/* 设置面板 */
.settings {
  margin-top: 18px; background: #f8fafd; border: 1px solid var(--border);
  border-radius: 10px; padding: 14px 16px; display: flex; flex-direction: column; gap: 10px;
}
.set-row { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.set-label { color: #556; font-size: 13px; margin-right: 6px; }
.radio-pill { cursor: pointer; }
.radio-pill input { display: none; }
.radio-pill span {
  display: inline-block; padding: 5px 16px; border: 1px solid var(--border);
  border-radius: 18px; font-size: 13px; color: #556; background: #fff; transition: all .15s;
}
.radio-pill input:checked + span {
  border-color: var(--blue); color: var(--blue); background: var(--bg-light); font-weight: 600;
}
.page-input {
  border: 1px solid var(--border); border-radius: 6px; padding: 5px 10px;
  font-size: 13px; color: #333; outline: none; width: 110px; background: #fff;
}
.page-input:focus { border-color: var(--blue); }
select.page-input { width: auto; }
.set-tip { color: #a5adbb; font-size: 12px; flex-basis: 100%; }

/* 操作区 */
.action-bar { margin-top: 20px; text-align: center; }
.agree { display: inline-flex; align-items: center; gap: 6px; color: var(--text-sub); font-size: 12px; cursor: pointer; }
.btn-convert {
  display: block; margin: 14px auto 0; background: var(--blue); color: #fff;
  border: none; font-size: 18px; padding: 13px 90px; border-radius: 28px;
  cursor: pointer; box-shadow: 0 5px 16px rgba(60,118,248,.4); transition: all .2s;
}
.btn-convert:hover:not(:disabled) { background: var(--blue-dark); transform: translateY(-1px); }
.btn-convert:disabled { background: #b9cdf7; cursor: not-allowed; box-shadow: none; }

/* 进度 */
.progress-box { margin-top: 22px; text-align: center; }
.prog-title { font-size: 15px; color: var(--blue); font-weight: 600; margin-bottom: 12px; }
.prog-bar {
  height: 10px; background: #e8eefb; border-radius: 6px; overflow: hidden; max-width: 480px; margin: 0 auto;
}
.prog-fill {
  height: 100%; width: 0; background: linear-gradient(90deg, #5b8dff, var(--blue));
  border-radius: 6px; transition: width .25s;
}
.prog-detail { color: var(--text-sub); font-size: 12px; margin-top: 8px; }

/* 结果 */
.result-box { margin-top: 22px; }
.result-ok {
  background: #eefaf2; color: #22a35f; border: 1px solid #bce8cd;
  border-radius: 8px; padding: 10px 14px; font-size: 14px;
}
#result-list { list-style: none; margin-top: 10px; }
#result-list li {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  border: 1px solid var(--border); border-radius: 8px; padding: 10px 14px; margin-bottom: 8px;
}
.btn-download {
  background: #35c97a; color: #fff; border: none; border-radius: 18px;
  padding: 6px 22px; font-size: 13px; cursor: pointer;
}
.btn-download:hover { background: #2cae69; }
/* 免费下载按钮：亮橙渐变，醒目引导点击 */
.btn-free {
  background: linear-gradient(135deg, #ff9a3c, #ff5e2c);
  color: #fff; border: none;
  box-shadow: 0 2px 8px rgba(255, 94, 44, .35);
  font-weight: 600;
  margin-right: 8px;
}
.btn-free:hover { background: linear-gradient(135deg, #ff8a24, #f44a1a); box-shadow: 0 3px 10px rgba(255, 94, 44, .45); }
.btn-free:disabled { opacity: .55; cursor: not-allowed; box-shadow: none; }

.notice {
  margin-top: 22px; background: #fff8ec; border: 1px solid #f5e3bd; color: #a07b2c;
  border-radius: 8px; padding: 10px 14px; font-size: 12px;
}

/* ========== 内容板块 ========== */
.section { padding: 52px 0; }
.section-light { background: #fff; }
.sec-title { text-align: center; font-size: 26px; color: #2b3345; }
.sec-sub { text-align: center; color: var(--text-sub); margin: 8px 0 30px; font-size: 14px; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step {
  background: #fff; border-radius: var(--radius); padding: 28px 24px; text-align: center;
  box-shadow: 0 2px 10px rgba(30,60,120,.05);
}
.step-num {
  width: 44px; height: 44px; margin: 0 auto 14px; border-radius: 50%;
  background: var(--bg-light); color: var(--blue); font-size: 20px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.step h3 { font-size: 17px; margin-bottom: 8px; }
.step p { color: var(--text-sub); font-size: 13px; }

.safety-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.safety-card {
  background: var(--bg); border-radius: var(--radius); padding: 26px 18px; text-align: center;
}
.safety-icon { font-size: 34px; margin-bottom: 10px; }
.safety-card h3 { font-size: 15px; margin-bottom: 6px; }
.safety-card p { color: var(--text-sub); font-size: 12.5px; }

.scene-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.scene-card {
  background: #fff; border-radius: var(--radius); padding: 24px 20px;
  box-shadow: 0 2px 10px rgba(30,60,120,.05); border-top: 3px solid var(--blue);
}
.scene-card h3 { font-size: 16px; margin-bottom: 8px; }
.scene-card p { color: var(--text-sub); font-size: 13px; }

/* FAQ */
.faq-wrap { max-width: 860px; }
.faq-list { border-radius: var(--radius); overflow: hidden; }
.faq-item { background: var(--bg); border-radius: 8px; margin-bottom: 10px; overflow: hidden; }
.faq-q {
  padding: 14px 18px; font-weight: 600; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
}
.faq-arrow { color: var(--blue); transition: transform .2s; font-size: 12px; }
.faq-item.open .faq-arrow { transform: rotate(180deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .25s ease; }
.faq-a p { padding: 0 18px 14px; color: var(--text-sub); font-size: 13px; }
.faq-item.open .faq-a { max-height: 220px; }

/* 页脚 */
.footer { background: #28303f; color: #b9c0cf; margin-top: 10px; }
.footer-inner {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 30px; padding: 40px 16px 30px;
}
.footer h4 { color: #fff; margin-bottom: 12px; font-size: 15px; }
.footer-desc { font-size: 13px; line-height: 1.8; }
.footer-col a { display: block; font-size: 13px; margin-bottom: 8px; color: #b9c0cf; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08); padding: 14px 0;
  font-size: 12px; color: #8b93a5; text-align: center;
}

/* Toast */
.toast {
  position: fixed; left: 50%; bottom: 60px; transform: translateX(-50%) translateY(20px);
  background: rgba(30,35,50,.92); color: #fff; padding: 10px 22px; border-radius: 8px;
  font-size: 13px; opacity: 0; pointer-events: none; transition: all .25s; z-index: 99;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* 响应式 */
@media (max-width: 900px) {
  .topbar-inner { height: 50px; }
  .logo-badge { display: none; }
  .topbar-links a { margin-left: 12px; font-size: 12px; }

  /* 导航改为移动端抽屉：汉堡按钮 + 左侧滑出菜单 */
  .topbar-right { gap: 10px; }
  .topbar-links, .topbar-user { display: none; }   /* 桌面用户区移入抽屉 */
  .menu-btn { display: inline-flex; }
  .drawer-head, .drawer-foot { display: block; }

  .mainnav {
    position: fixed; top: 0; left: 0; bottom: 0; z-index: 1001;
    width: min(84vw, 320px); background: #fff;
    transform: translateX(-104%);
    transition: transform .32s cubic-bezier(.22,.9,.25,1), box-shadow .32s;
    box-shadow: 0 0 0 rgba(0,0,0,0); overflow-y: auto; -webkit-overflow-scrolling: touch;
  }
  body.nav-open .mainnav { transform: translateX(0); box-shadow: 10px 0 34px rgba(20,40,90,.28); }
  .nav-inner { flex-direction: column; align-items: stretch; height: auto; padding: 14px 12px 26px; gap: 2px; }
  .nav-item { color: #3a4557; padding: 11px 12px; font-size: 15px; }
  .nav-item:hover, .nav-item.active { background: #eef3ff; color: var(--blue); }
  .nav-item-wrap { height: auto; display: block; }
  .nav-item-wrap:hover > .nav-item { background: #eef3ff; color: var(--blue); }
  .nav-drop {
    position: static; display: none; min-width: 0; box-shadow: none;
    background: #f6f8fc; border-radius: 10px; margin: 2px 6px 8px; padding: 4px;
  }
  .nav-item-wrap:hover .nav-drop { display: none; }
  .nav-item-wrap.open .nav-drop { display: block; }
  .nav-drop-wide { min-width: 0; }
  .nav-tip { display: none; }

  /* 主区优先，侧栏置后并双列排布 */
  .main-area { flex-direction: column; }
  .workspace { order: 1; }
  .sidebar { order: 2; width: 100%; }
  .side-group { display: block; }
  .side-sec { display: flex; flex-wrap: wrap; gap: 2px; }
  .side-sec.collapsed { display: none; }
  .side-item { flex: 1 1 46%; }
  .side-title, .side-title.side-collapse { width: 100%; padding: 8px 10px 4px; font-size: 14px; }
  .steps, .safety-grid, .scene-grid { grid-template-columns: 1fr 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .topbar-right { gap: 8px; }
  .logo-text { font-size: 17px; }
  .member-pill { padding: 7px 12px; font-size: 12px; }
  .member-pill-lg { font-size: 15px; padding: 12px 0; }
  #tool-title { font-size: 22px; }
  .steps, .safety-grid, .scene-grid { grid-template-columns: 1fr; }
  .workspace { padding: 22px 16px; }
  .btn-convert { padding: 12px 40px; font-size: 16px; width: 100%; }
  .btn-primary { padding: 10px 30px; font-size: 15px; }
  .drop-sec-body { grid-template-columns: 1fr; }
  .dz-cloud { font-size: 38px; }
  .dropzone { padding: 28px 12px 14px; }
}

/* ============================================================
 * 支付/会员弹窗（快转PDF · 支付宝当面付）
 * ============================================================ */
.pay-modal-mask {
  position: fixed; inset: 0; z-index: 999;
  background: rgba(15, 28, 55, .5);
  display: flex; align-items: center; justify-content: center;
  padding: 16px;
}
.pay-modal-mask[hidden] { display: none; }
.pay-modal {
  position: relative; width: 100%; max-width: 380px;
  background: #fff; border-radius: 14px; padding: 26px 24px 24px;
  box-shadow: 0 18px 50px rgba(20, 40, 90, .28);
  max-height: 92vh; overflow-y: auto;
}
.pay-close {
  position: absolute; top: 12px; right: 14px; border: 0; background: none;
  font-size: 18px; color: #9aa3b2; cursor: pointer; padding: 4px; line-height: 1;
}
.pay-close:hover { color: #333; }
.pay-title { font-size: 19px; color: #1f2a3c; margin-bottom: 4px; }
.pay-sub { font-size: 13px; color: var(--text-sub); margin-bottom: 18px; }

/* 选择卡片 */
.pay-option {
  border: 1.5px solid var(--border); border-radius: 12px;
  padding: 16px 16px 14px; margin-bottom: 12px; cursor: pointer;
  transition: border-color .18s, box-shadow .18s;
}
.pay-option:hover { border-color: var(--blue); box-shadow: 0 4px 14px rgba(60,118,248,.12); }
.pay-option-hot { border-color: #ffd8a8; background: #fffaf3; }
.pay-option-hot:hover { border-color: #ff9f43; }
.pay-opt-top { display: flex; align-items: center; justify-content: space-between; }
.pay-opt-name { font-size: 15px; font-weight: 600; color: #1f2a3c; }
.pay-opt-badge {
  font-style: normal; font-size: 11px; color: #b45309; background: #ffe4c0;
  border-radius: 4px; padding: 1px 6px; margin-left: 6px; vertical-align: 2px;
}
.pay-opt-price { font-size: 17px; font-weight: 700; color: #ff5b1f; }
.pay-opt-price-plain { font-size: 14px; color: #b45309; font-weight: 600; }
.pay-opt-desc { font-size: 12.5px; color: var(--text-sub); margin-top: 6px; }

/* 金额 + 二维码 */
.pay-amount {
  text-align: center; font-size: 26px; font-weight: 700; color: #ff5b1f;
  margin: 6px 0 14px;
}
.pay-qr {
  display: flex; align-items: center; justify-content: center;
  min-height: 208px;
}
.pay-qr canvas { border: 1px solid var(--border); border-radius: 8px; }
.pay-loading { color: var(--text-sub); font-size: 13px; }
.pay-tip { text-align: center; font-size: 13px; color: var(--text-sub); margin-top: 12px; }
.pay-status {
  text-align: center; font-size: 13px; color: #ff5b1f;
  margin-top: 10px; min-height: 18px;
}

/* 会员套餐 */
.pay-plans { display: flex; gap: 8px; margin-bottom: 16px; }
.pay-plan {
  flex: 1; text-align: center; border: 1.5px solid var(--border);
  border-radius: 10px; padding: 10px 4px; cursor: pointer;
  font-size: 13.5px; color: #1f2a3c; transition: all .18s;
}
.pay-plan .pp { display: block; font-size: 14px; font-weight: 700; color: #ff5b1f; margin-top: 2px; }
.pay-plan:hover { border-color: var(--blue); }
.pay-plan.selected { border-color: var(--blue); background: var(--bg-light); }

/* 模拟支付按钮（仅 mock 模式） */
.btn-pay-mock {
  display: block; width: 100%; margin-top: 16px; padding: 9px 0;
  border: 1px dashed #c9d6f0; background: #f7faff; color: var(--blue);
  border-radius: 8px; font-size: 13px; cursor: pointer;
}
.btn-pay-mock:hover { background: var(--bg-light); }
.btn-pay-mock[hidden] { display: none; }

/* ============================================================
 * 登录/注册 + 顶栏用户区（快转PDF · 邮箱登录体系）
 * ============================================================ */
.topbar-user { margin-left: 18px; display: inline-flex; align-items: center; gap: 10px; }
.link-btn { color: #555; font-size: 13px; cursor: pointer; }
.link-btn:hover { color: var(--blue); }
.user-mail { color: var(--blue); font-size: 13px; max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; cursor: pointer; }
.user-mail:hover { text-decoration: underline; }

.auth-modal { max-width: 340px; }
.auth-title { font-size: 20px; color: #1f2a3c; margin: 2px 0 18px; text-align: center; }
.auth-pane { display: flex; flex-direction: column; gap: 12px; }
.auth-input {
  padding: 10px 12px; border: 1px solid var(--border); border-radius: 8px;
  font-size: 14px; width: 100%;
}
.auth-input:focus { outline: none; border-color: var(--blue); }
.auth-submit { width: 100%; padding: 10px 0; font-size: 15px; cursor: pointer; }
.auth-msg { font-size: 13px; color: #e5484d; min-height: 18px; }
.auth-switch { font-size: 13px; color: #8a93a2; text-align: center; margin-top: 2px; }
.auth-switch-link { color: var(--blue); font-weight: 600; margin-left: 2px; }
.auth-switch-link:hover { text-decoration: underline; }

/* 修复：auth-pane 用 flex 布局会覆盖 hidden 属性 */
.auth-pane[hidden] { display: none; }

/* ============================================================
 * 会员徽章 + 会员状态面板（快转PDF · 会员有效期查看）
 * ============================================================ */
.member-chip {
  display: inline-flex; align-items: center;
  background: linear-gradient(135deg, #fff3e6, #ffe8d6);
  color: #d95d1e; border: 1px solid #ffd9b3;
  padding: 3px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 600;
  cursor: pointer; transition: box-shadow .15s;
}
.member-chip:hover { box-shadow: 0 2px 8px rgba(255,140,60,.28); }

.mi-card {
  text-align: center; padding: 20px 12px 16px;
  background: linear-gradient(150deg, #fff6ec, #fff);
  border: 1px solid #ffe1c2; border-radius: 14px; margin-bottom: 14px;
}
.mi-icon { font-size: 30px; color: #ff9f43; margin-bottom: 6px; }
.mi-status { font-size: 14px; color: #8a6d4a; }
.mi-time { font-size: 22px; font-weight: 800; color: #d95d1e; margin: 8px 0 6px; }
.mi-hint { font-size: 12.5px; color: var(--text-sub); }
.mi-benefits { padding: 4px 6px; }
.mi-benefit {
  display: flex; align-items: center; gap: 8px;
  padding: 9px 12px; margin-bottom: 8px; font-size: 14px; color: #3a4557;
  background: #f6f9ff; border: 1px solid #e3ebff; border-radius: 10px;
}
.mi-benefit:last-child { margin-bottom: 0; }
/* ========== 在线客服悬浮按钮 ========== */
.service-widget {
  position: fixed; right: 20px; bottom: 24px; z-index: 1000;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.service-widget[hidden] { display: none; }
.service-btn {
  display: flex; flex-direction: column; align-items: center; gap: 5px;
  min-width: 60px; padding: 9px 10px 8px;
  background: linear-gradient(135deg, #3c76f8, #2b5fe0);
  color: #fff; border: none; border-radius: 14px; cursor: pointer;
  box-shadow: 0 6px 18px rgba(43, 109, 232, .35);
  font-size: 12px; line-height: 1; font-family: inherit;
  transition: transform .15s, box-shadow .15s;
}
.service-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(43, 109, 232, .45); }
.service-btn svg { width: 22px; height: 22px; }
.service-pop {
  background: #fff; border-radius: 12px; box-shadow: 0 10px 30px rgba(20, 40, 90, .18);
  border: 1px solid #eef1f6; padding: 14px 14px 12px; width: 196px; text-align: center;
}
.service-pop[hidden] { display: none; }
.service-pop-title { font-weight: 700; font-size: 14px; color: #1a2233; margin-bottom: 10px; }
.service-pop-qr {
  width: 160px; height: 160px; object-fit: contain; display: block; margin: 0 auto;
  border-radius: 8px; background: #fff;
}
.service-pop-tip { font-size: 12px; color: #8a93a2; margin-top: 10px; line-height: 1.6; }
@media (max-width: 560px) {
  .service-widget { right: 14px; bottom: 16px; }
  .service-btn { min-width: 54px; padding: 8px 9px 7px; font-size: 11px; }
  .service-btn svg { width: 20px; height: 20px; }
}


/* ============================================================
 * 文章 / 功能 页面视图样式
 * ============================================================ */
.page-view { padding: 34px 0 70px; }
.page-view[hidden] { display: none; }
.page-head { text-align: center; margin-bottom: 30px; }
.page-head h1 { font-size: 30px; color: #1a2233; margin-bottom: 8px; font-weight: 800; }
.page-sub { color: #8a93a2; font-size: 14px; }
.page-loading { text-align: center; color: #8a93a2; padding: 60px 0; font-size: 14px; }

/* 文章列表 */
.article-list { max-width: 860px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }
.article-card {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  background: #fff; border: 1px solid var(--border, #e4e9f2); border-radius: 12px;
  padding: 18px 22px; text-decoration: none; transition: all .15s;
  box-shadow: 0 1px 4px rgba(30, 60, 120, .04);
}
.article-card:hover { border-color: #b9ccf7; box-shadow: 0 8px 24px rgba(43, 109, 232, .10); transform: translateY(-2px); }
.article-card h3 { font-size: 17px; color: #1a2233; margin: 0 0 6px; }
.article-card p { font-size: 13.5px; color: #7a8494; margin: 0 0 10px; line-height: 1.7; }
.article-date { font-size: 12px; color: #a3adbd; }
.article-arrow { color: #b9ccf7; font-size: 18px; flex: none; }

/* 文章详情 */
.back-link { display: inline-block; margin-bottom: 18px; color: var(--blue, #2f66e8); font-size: 14px; text-decoration: none; }
.back-link:hover { text-decoration: underline; }
.article-detail {
  background: #fff; border: 1px solid var(--border, #e4e9f2); border-radius: 14px;
  padding: 34px 40px; max-width: 860px; margin: 0 auto;
  box-shadow: 0 1px 4px rgba(30, 60, 120, .04);
}
.ad-title { font-size: 26px; color: #1a2233; margin: 0 0 8px; font-weight: 800; }
.ad-meta { font-size: 12.5px; color: #a3adbd; margin-bottom: 14px; }
.ad-summary { font-size: 15px; color: #5b667a; line-height: 1.8; border-left: 3px solid #b9ccf7; padding-left: 14px; margin: 14px 0; }
.ad-content { font-size: 15px; color: #333c4e; line-height: 1.9; }
.ad-content h1, .ad-content h2, .ad-content h3 { color: #1a2233; margin: 22px 0 10px; }
.ad-content p { margin: 10px 0; }
.ad-content ul, .ad-content ol { padding-left: 22px; margin: 10px 0; }
.ad-content code { background: #f1f4fb; border-radius: 4px; padding: 2px 6px; font-size: 13px; }
.ad-content blockquote { border-left: 3px solid #b9ccf7; margin: 14px 0; padding: 4px 14px; color: #5b667a; background: #f7f9fc; border-radius: 0 8px 8px 0; }
.ad-content a { color: var(--blue, #2f66e8); }
.ad-content img { max-width: 100%; border-radius: 8px; }

/* 功能展示页 */
.feature-grid { max-width: 980px; margin: 0 auto; display: flex; flex-direction: column; gap: 28px; }
.feature-cat h3 {
  font-size: 15px; color: #5b667a; margin-bottom: 12px; padding-left: 12px;
  border-left: 4px solid var(--blue, #2f66e8); line-height: 1.2;
}
.feature-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.feature-card {
  display: flex; flex-direction: column; gap: 4px;
  background: #fff; border: 1px solid var(--border, #e4e9f2); border-radius: 12px;
  padding: 16px 16px; text-decoration: none; transition: all .15s;
  box-shadow: 0 1px 4px rgba(30, 60, 120, .04);
}
.feature-card:hover { border-color: #b9ccf7; box-shadow: 0 8px 24px rgba(43, 109, 232, .10); transform: translateY(-2px); }
.feature-name { font-size: 14px; font-weight: 700; color: #1a2233; }
.feature-sub { font-size: 12px; color: #a3adbd; }
@media (max-width: 900px) {
  .feature-row { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px) {
  .page-view { padding: 22px 0 50px; }
  .page-head h1 { font-size: 24px; }
  .article-detail { padding: 22px 18px; }
  .feature-row { grid-template-columns: repeat(2, 1fr); }
}

/* 首页品牌行（三步教程上方） */
.page-brand {
  font-size: 13px; font-weight: 600; color: var(--blue, #2f66e8);
  letter-spacing: 3px; text-align: center; margin: 0 0 4px;
}
