/* MailHub 文档站 —— 复用 app.css 的主题 token 与氛围底,玻璃拟态,亮暗自适应。 */
.doc-body { min-height: 100%; }

/* 顶栏 */
.doc-nav { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 18px;
  padding: 12px 22px; background: var(--panel); -webkit-backdrop-filter: blur(var(--blur)); backdrop-filter: blur(var(--blur));
  border-bottom: 1px solid var(--glass-border); transition: background-color .3s ease, border-color .3s ease; }
.doc-nav .brand { text-decoration: none; color: var(--text); }
.doc-nav .brand h1 { font-size: 16px; }
.doc-links { display: flex; gap: 4px; margin-left: 8px; }
.doc-links a { font-size: 13.5px; color: var(--text-2); padding: 7px 12px; border-radius: 8px; transition: .13s; }
.doc-links a:hover { background: var(--bg-2); color: var(--text); }
.doc-links a.on { color: var(--text); background: var(--bg-3); }
.doc-nav .spacer { flex: 1; }
.doc-nav .enter { background: var(--accent); color: #fff; padding: 8px 15px; border-radius: 8px; font-size: 13.5px; font-weight: 550; }
.doc-nav .enter:hover { background: var(--accent-2); }
.nav-toggle { display: none; }

/* 容器 */
.doc-wrap { max-width: 1040px; margin: 0 auto; padding: 34px 22px 80px; }
.doc-wrap.narrow { max-width: 820px; }

/* Hero */
.hero { text-align: center; padding: 40px 0 30px; }
.hero .logo-lg { width: 60px; height: 60px; border-radius: 16px; background: var(--accent); display: inline-grid; place-items: center; margin-bottom: 18px; }
.hero .logo-lg svg { width: 34px; height: 34px; color: #fff; }
.hero h2 { font-size: 32px; font-weight: 680; letter-spacing: -.5px; line-height: 1.2; }
.hero p { font-size: 15.5px; color: var(--text-2); margin: 14px auto 0; max-width: 560px; line-height: 1.7; }
.hero .cta { display: flex; gap: 12px; justify-content: center; margin-top: 26px; flex-wrap: wrap; }
.hero .cta .btn { padding: 11px 22px; font-size: 14px; }

/* 玻璃卡 / 分节 */
.panel { background: var(--panel); -webkit-backdrop-filter: blur(var(--blur)); backdrop-filter: blur(var(--blur));
  border: 1px solid var(--glass-border); border-radius: 16px; padding: 26px 28px; margin-bottom: 20px;
  box-shadow: var(--shadow); transition: background-color .3s ease, border-color .3s ease; }
.panel h3 { font-size: 19px; font-weight: 640; margin-bottom: 6px; scroll-margin-top: 80px; }
.panel > p { color: var(--text-2); line-height: 1.75; margin: 10px 0; }
.panel h4 { font-size: 15px; font-weight: 600; margin: 20px 0 8px; }
.panel ul, .panel ol { margin: 10px 0 10px 20px; color: var(--text-2); line-height: 1.8; }
.panel li { margin: 4px 0; }
.panel strong { color: var(--text); font-weight: 600; }
.panel code { background: var(--bg-2); border: 1px solid var(--line); border-radius: 5px; padding: 1px 6px; font-size: 12.5px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--text); }
.panel a { color: var(--accent); }
.panel a:hover { text-decoration: underline; }

/* 功能网格 */
.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 22px 0; }
.feat { background: var(--bg-1); border: 1px solid var(--line); border-radius: 12px; padding: 18px; transition: .15s; }
.feat:hover { border-color: var(--line-2); transform: translateY(-2px); }
.feat .fi { width: 34px; height: 34px; border-radius: 9px; background: var(--bg-3); display: grid; place-items: center; margin-bottom: 12px; }
.feat .fi svg { width: 18px; height: 18px; color: var(--accent); }
.feat h5 { font-size: 14.5px; font-weight: 600; margin-bottom: 5px; }
.feat p { font-size: 12.5px; color: var(--text-3); line-height: 1.6; }

/* 步骤 */
.steps { counter-reset: st; margin: 14px 0 4px; }
.step { position: relative; padding: 2px 0 16px 40px; border-left: 1px solid var(--line); margin-left: 12px; }
.step:last-child { border-left-color: transparent; padding-bottom: 0; }
.step::before { counter-increment: st; content: counter(st); position: absolute; left: -14px; top: -2px; width: 27px; height: 27px;
  border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; font-size: 13px; font-weight: 600; }
.step h5 { font-size: 14.5px; font-weight: 600; margin-bottom: 3px; }
.step p { color: var(--text-2); font-size: 13px; line-height: 1.65; }

/* 服务商授权码卡 */
.prov-card { border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; margin-bottom: 12px; background: var(--bg-1); }
.prov-card .ph { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.prov-card .pic { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 12px; }
.prov-card .pn { font-size: 14.5px; font-weight: 600; }
.prov-card p { font-size: 13px; color: var(--text-2); line-height: 1.7; margin: 0; }

/* FAQ */
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item:last-child { border-bottom: none; }
.faq-item summary { cursor: pointer; padding: 16px 2px; font-size: 15px; font-weight: 550; list-style: none;
  display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-size: 20px; color: var(--text-3); transition: transform .2s; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item .fa-body { padding: 0 2px 18px; color: var(--text-2); line-height: 1.8; font-size: 14px; }
.faq-item .fa-body a { color: var(--accent); }

/* TOC */
.doc-layout { display: grid; grid-template-columns: 200px 1fr; gap: 34px; align-items: start; }
.toc { position: sticky; top: 78px; font-size: 13px; }
.toc .toc-t { font-size: 11px; text-transform: uppercase; letter-spacing: .6px; color: var(--text-3); margin-bottom: 10px; }
.toc a { display: block; color: var(--text-2); padding: 6px 10px; border-radius: 7px; border-left: 2px solid transparent; }
.toc a:hover { color: var(--text); background: var(--bg-2); }

/* 页脚 */
.doc-footer { border-top: 1px solid var(--glass-border); padding: 30px 22px; text-align: center; color: var(--text-3); font-size: 13px; }
.doc-footer a { color: var(--text-2); margin: 0 8px; }
.doc-footer a:hover { color: var(--text); }
.doc-footer .fnote { margin-top: 10px; font-size: 12px; }

@media (max-width: 760px) {
  .doc-layout { grid-template-columns: 1fr; }
  .toc { display: none; }
  .feat-grid { grid-template-columns: 1fr; }
  .doc-links { display: none; position: absolute; top: 56px; left: 0; right: 0; flex-direction: column; padding: 8px;
    background: var(--modal-glass); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); border-bottom: 1px solid var(--glass-border); }
  .doc-links.open { display: flex; }
  .nav-toggle { display: inline-flex; }
  .hero h2 { font-size: 25px; }
}
