/* jhp.studio 站点样式 — 参考 Youming 工作室文档站 */
* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --accent: #3b82f6;
  --accent-soft: #eff4ff;
  --bg: #f6f7fb;
  --card: #ffffff;
  --text: #1f2430;
  --sub: #5b6270;
  --muted: #8a90a0;
  --border: #e8eaf0;
  --radius: 12px;
}

html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--bg); color: var(--text); line-height: 1.75;
}

/* ===== 顶部导航 ===== */
.topbar {
  display: flex; align-items: center; gap: 20px;
  padding: 10px 28px; background: rgba(255,255,255,.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 50;
}
.logo { font-weight: 800; font-size: 17px; color: var(--text); text-decoration: none; white-space: nowrap; display: inline-flex; align-items: center; gap: 8px; }
.logo-mark { color: var(--accent); margin-right: 6px; }
.logo-img { width: 26px; height: 26px; border-radius: 7px; object-fit: cover; display: block; }
.topnav { margin-left: auto; display: flex; gap: 6px; }
.topnav a {
  color: var(--muted); text-decoration: none; font-size: 14px;
  padding: 6px 12px; border-radius: 8px;
}
.topnav a:hover { color: var(--accent); background: var(--accent-soft); }

/* ===== 导航下拉丸子（工具 / 关于） ===== */
.nav-dropdown { position: relative; display: inline-block; }
/* 按钮与菜单之间的缝隙桥：补掉 6px 透明缝，鼠标从按钮移到菜单项时不再经过“外部” */
.nav-dropdown::after { content: ''; position: absolute; left: 0; right: 0; top: 100%; height: 8px; }
.nav-dropbtn {
  font: inherit; font-size: 14px; color: var(--muted); background: none; border: none;
  padding: 6px 12px; border-radius: 8px; cursor: pointer;
  display: inline-flex; align-items: center; gap: 2px;
}
.nav-dropbtn:hover { color: var(--accent); background: var(--accent-soft); }
.nav-dropbtn .caret { font-size: 10px; opacity: .6; }
.nav-menu {
  position: absolute; top: calc(100% + 6px); left: 0; min-width: 150px;
  background: var(--card); border: 1px solid var(--border); border-radius: 12px;
  box-shadow: 0 10px 28px rgba(0,0,0,.14); padding: 6px; display: none; z-index: 60;
}
.topnav .nav-dropdown:hover .nav-menu,
.nav-dropdown.open .nav-menu { display: block; }
.topnav .nav-menu a {
  display: block; padding: 8px 12px; border-radius: 8px; color: var(--text); font-size: 14px;
}
.topnav .nav-menu a:hover { color: var(--accent); background: var(--accent-soft); }

/* 搜索框 */
.search-box { position: relative; display: flex; align-items: center; gap: 8px; }
.search-box svg { color: var(--muted); }
.search-box input {
  width: 220px; padding: 7px 60px 7px 10px;
  border: 1px solid var(--border); border-radius: 10px;
  background: var(--bg); font-size: 13px; outline: none;
}
.search-box input:focus { border-color: var(--accent); background: var(--card); }
.search-box kbd {
  position: absolute; right: 8px; font-size: 11px; color: var(--muted);
  border: 1px solid var(--border); border-radius: 5px; padding: 1px 5px; background: var(--card);
}
.search-results {
  display: none; position: absolute; top: 40px; left: 0; width: 360px; max-height: 420px;
  overflow: auto; background: var(--card); border: 1px solid var(--border);
  border-radius: 12px; box-shadow: 0 12px 40px rgba(0,0,0,.12); z-index: 60;
}
.search-results.show { display: block; }
.search-item { display: block; padding: 10px 14px; text-decoration: none; color: var(--text); border-bottom: 1px solid var(--border); }
.search-item:last-child { border-bottom: none; }
.search-item:hover { background: var(--accent-soft); }
.search-item b { display: block; font-size: 14px; }
.search-item span { font-size: 12px; color: var(--muted); }
.search-empty { padding: 16px; text-align: center; color: var(--muted); font-size: 13px; }

/* ===== Hero 渐变首页 ===== */
.hero {
  padding: 110px clamp(20px, 6vw, 80px) 90px; text-align: center;
  background:
    radial-gradient(ellipse 60% 80% at 20% 30%, rgba(147,197,253,.55), transparent 60%),
    radial-gradient(ellipse 50% 70% at 75% 25%, rgba(196,181,253,.5), transparent 60%),
    radial-gradient(ellipse 55% 70% at 60% 85%, rgba(249,168,212,.4), transparent 60%),
    radial-gradient(ellipse 45% 60% at 10% 90%, rgba(134,239,172,.35), transparent 60%),
    linear-gradient(180deg, #fdfcff 0%, #f4f2fa 100%);
}
/* 仅首页 hero 随 .site-main 全宽出血到屏幕边缘；上传页不在 .site-main 内，不受影响 */
.site-main .hero { margin: -32px calc(-1 * clamp(16px, 4vw, 48px)) 0; }
.hero-title { font-size: 52px; font-weight: 800; line-height: 1.25; letter-spacing: 2px; }
.hero-title .grad {
  background: linear-gradient(90deg, #3b82f6, #8b5cf6);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-sub { color: var(--sub); margin: 18px 0 30px; font-size: 17px; }
.hero-btns { display: flex; gap: 14px; justify-content: center; }
.btn {
  display: inline-block; padding: 10px 24px; border-radius: 999px;
  text-decoration: none; font-size: 15px; font-weight: 600; transition: .15s;
}
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 6px 18px rgba(59,130,246,.35); }
.btn-primary:hover { transform: translateY(-2px); }
.btn-ghost { background: var(--card); color: var(--text); border: 1px solid var(--border); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

.site-main { max-width: none; margin: 0; padding: 32px clamp(16px, 4vw, 48px); }

/* 首页文档卡片 */
.home-docs {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 16px; padding: 26px 30px;
  box-shadow: 0 4px 24px rgba(30,40,80,.05);
}
.home-docs h2 { margin-bottom: 14px; font-size: 20px; }

/* ===== 侧边栏（多级） ===== */
.sidebar-list { list-style: none; }
.sidebar-list .sidebar-list { padding-left: 16px; border-left: 1px solid var(--border); margin-left: 10px; }
.sidebar-dir summary {
  cursor: pointer; font-weight: 600; padding: 5px 8px; font-size: 14.5px;
  border-radius: 8px; user-select: none; list-style: none; display: flex; align-items: center; gap: 4px;
}
.sidebar-dir summary::-webkit-details-marker { display: none; }
.sidebar-dir summary::before { content: '▸'; color: var(--muted); font-size: 11px; transition: .15s; }
.sidebar-dir details[open] > summary::before { transform: rotate(90deg); }
.sidebar-dir summary:hover { background: var(--accent-soft); color: var(--accent); }
.sidebar-doc { padding: 1px 0; }
.sidebar-link {
  display: block; padding: 5px 10px; border-radius: 8px;
  color: var(--text); text-decoration: none; font-size: 14px;
  border-left: 2px solid transparent;
}
.sidebar-link:hover { background: var(--accent-soft); color: var(--accent); }
.sidebar-link.active { background: var(--accent-soft); color: var(--accent); font-weight: 700; border-left-color: var(--accent); }
.sidebar-cap { font-size: 12px; color: var(--muted); font-weight: 700; letter-spacing: 1px; margin-bottom: 10px; }

/* ===== 阅读页三栏布局 ===== */
.doc-layout { display: flex; gap: 24px; align-items: flex-start; }
.sidebar {
  width: 250px; flex-shrink: 0; background: var(--card);
  border: 1px solid var(--border); border-radius: var(--radius); padding: 16px;
  position: sticky; top: 64px; max-height: calc(100vh - 84px); overflow: auto;
}
.doc-content {
  flex: 1; min-width: 0; background: var(--card);
  border: 1px solid var(--border); border-radius: var(--radius); padding: 28px 36px;
}

/* 面包屑 */
.breadcrumb { font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--accent); }

.doc-title { font-size: 28px; margin-bottom: 10px; }
.doc-meta {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  color: var(--muted); font-size: 13.5px; margin-bottom: 24px;
  padding-bottom: 14px; border-bottom: 1px solid var(--border);
}
.meta-item {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: 999px; padding: 2px 12px; font-size: 12.5px;
}

/* 右侧 TOC */
.toc {
  width: 210px; flex-shrink: 0; position: sticky; top: 64px;
  font-size: 13px; max-height: calc(100vh - 84px); overflow: auto;
}
.toc-cap { font-weight: 700; color: var(--text); margin-bottom: 8px; }
.toc-top { float: right; color: var(--muted); text-decoration: none; font-weight: 400; font-size: 12px; }
.toc-top:hover { color: var(--accent); }
.toc ul { list-style: none; border-left: 2px solid var(--border); }
.toc li a {
  display: block; padding: 3px 0 3px 12px; color: var(--muted); text-decoration: none;
  border-left: 2px solid transparent; margin-left: -2px;
}
.toc li a:hover, .toc li a.active { color: var(--accent); border-left-color: var(--accent); }
.toc-l3 { padding-left: 14px; }

/* ===== Markdown 正文 ===== */
.markdown-body { font-size: 15.5px; }
.markdown-body h2 { font-size: 22px; margin: 30px 0 12px; padding-bottom: 6px; border-bottom: 1px solid var(--border); }
.markdown-body h3 { font-size: 18px; margin: 24px 0 10px; }
.markdown-body p { margin: 12px 0; }
.markdown-body ul, .markdown-body ol { margin: 12px 0 12px 24px; }
.markdown-body li { margin: 4px 0; }
.markdown-body code {
  background: var(--accent-soft); color: #3457d5; padding: 2px 6px; border-radius: 5px;
  font-family: Consolas, "Courier New", monospace; font-size: 13.5px;
}
.markdown-body pre {
  background: #282c34; color: #abb2bf; padding: 16px 18px; border-radius: 10px;
  overflow-x: auto; margin: 16px 0; line-height: 1.6;
}
.markdown-body pre code { background: none; color: inherit; padding: 0; font-size: 13.5px; }
.markdown-body a { color: var(--accent); }
.markdown-body img { max-width: 100%; border-radius: 10px; }
.markdown-body hr { border: none; border-top: 1px solid var(--border); margin: 28px 0; }

/* 引用块 → 提示框（> 开头即彩色提示，参照参考图风格） */
.markdown-body blockquote {
  border-radius: 10px; padding: 12px 18px; margin: 18px 0;
  border: none; border-left: 4px solid #a78bfa; background: #f6f3ff; color: #4b445c;
}
.markdown-body blockquote p { margin: 4px 0; }

.markdown-body table { border-collapse: collapse; margin: 16px 0; width: 100%; font-size: 14px; }
.markdown-body th { background: var(--bg); }
.markdown-body th, .markdown-body td { border: 1px solid var(--border); padding: 8px 14px; text-align: left; }

/* ===== 后台 ===== */
.login-box {
  max-width: 360px; margin: 80px auto; background: var(--card);
  border: 1px solid var(--border); border-radius: 14px; padding: 36px; text-align: center;
  box-shadow: 0 8px 30px rgba(30,40,80,.08);
}
.login-box input {
  width: 100%; padding: 10px 14px; margin: 16px 0;
  border: 1px solid var(--border); border-radius: 10px; font-size: 15px; outline: none;
  background: var(--card); color: var(--text);
}
.login-box input:focus { border-color: var(--accent); }
.login-box button, .admin-actions button, #btn-save, #btn-del {
  padding: 8px 18px; border: none; border-radius: 9px;
  background: var(--accent); color: #fff; cursor: pointer; font-size: 14px;
}
.login-box button:disabled, #btn-save:disabled, #btn-del:disabled { opacity: .5; cursor: not-allowed; }
.error { color: #d33; margin-bottom: 8px; }
.admin-layout { display: flex; gap: 24px; align-items: flex-start; }
.editor-pane { flex: 1; min-width: 0; }
.editor-toolbar-info { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.editor-toolbar-info span { flex: 1; color: var(--muted); font-size: 14px; }
#btn-del { background: #ef4444; }
.admin-actions { margin-top: 16px; display: flex; flex-direction: column; gap: 8px; }
.admin-actions .admin-logout { color: var(--muted); text-align: center; font-size: 13px; text-decoration: none; }

/* ===== 页脚 ===== */
.site-footer {
  text-align: center; color: var(--muted); font-size: 13px;
  padding: 36px 16px; margin-top: 40px; line-height: 2;
}
.footer-icp { color: var(--muted); text-decoration: none; }
.footer-icp:hover { color: var(--accent); }

/* ===== 留言板 ===== */
.gbook-intro { color: var(--sub); font-size: 14.5px; margin: 6px 0 16px; }
.gbook-ok { color: var(--accent); font-size: 14px; margin: 6px 0; }
.gbook-form { display: flex; flex-direction: column; gap: 10px; max-width: 540px; margin: 8px 0 4px; }
.gbook-form input, .gbook-form textarea {
  padding: 10px 14px; border: 1px solid var(--border); border-radius: 10px;
  background: var(--card); color: var(--text); font-size: 14px; font-family: inherit; outline: none; resize: vertical;
}
.gbook-form input:focus, .gbook-form textarea:focus { border-color: var(--accent); }
.gbook-form .btn { align-self: flex-start; }
.gbook-list { list-style: none; margin: 0; padding: 0; }
.gbook-item { padding: 14px 0; border-bottom: 1px solid var(--border); }
.gbook-item:last-child { border-bottom: none; }
.gbook-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; font-size: 13px; color: var(--muted); }
.gbook-meta b { color: var(--text); font-size: 14px; }
.gbook-msg { color: var(--text); font-size: 14.5px; line-height: 1.7; white-space: pre-wrap; word-break: break-word; }
/* 后台留言管理 */
.admin-gbook { max-height: calc(100vh - 120px); overflow: auto; }
.gbook-row { padding: 10px 0; border-bottom: 1px solid var(--border); }
.gbook-row:last-child { border-bottom: none; }
.gbook-row .gbook-meta { margin-bottom: 2px; }
.gbook-row .gbook-msg { font-size: 13.5px; margin-bottom: 4px; }
.gbook-del { font-size: 12px; color: var(--muted); text-decoration: none; }
.gbook-del:hover { color: #ef4444; }

/* ===== 移动端 ===== */
/* ===== 每日新闻速递 ===== */
.news-list { list-style: none; margin: 0; padding: 0; }
.news-item { padding: 10px 0; border-bottom: 1px solid var(--border); }
.news-item:last-child { border-bottom: none; }
.news-title { color: var(--text); text-decoration: none; font-size: 14.5px; line-height: 1.55; display: block; }
.news-title:hover { color: var(--accent); }
.news-meta { display: block; margin-top: 3px; font-size: 12px; color: var(--muted); }
.news-src { font-style: normal; background: var(--accent-soft); color: var(--accent); border-radius: 4px; padding: 1px 7px; margin-right: 8px; font-size: 11px; font-weight: 600; }
.news-compact .news-title { font-size: 13px; }
.news-compact .news-item { padding: 8px 0; }
.toc-news { margin-top: 20px; padding-top: 14px; border-top: 1px solid var(--border); }

/* ===== 暗色模式 ===== */
/* 变量统一在这里覆盖，明暗两套皮肤只差这一块 */
[data-theme="dark"] {
  --accent: #60a5fa;
  --accent-soft: #1b2436;
  --bg: #0f1115;
  --card: #171a21;
  --text: #e6e8ee;
  --sub: #aeb4c2;
  --muted: #9aa0ae;
  --border: #2a2e3a;
}
/* 散落的浅色装饰，定点覆盖 */
[data-theme="dark"] .topbar { background: rgba(23, 26, 33, .88); }
/* 暗色下 hero 也跟着换：深色底 + 压暗的极光，不再刺眼 */
[data-theme="dark"] .hero {
  background:
    radial-gradient(ellipse 60% 80% at 20% 30%, rgba(96,165,250,.20), transparent 60%),
    radial-gradient(ellipse 50% 70% at 75% 25%, rgba(139,92,246,.18), transparent 60%),
    radial-gradient(ellipse 55% 70% at 60% 85%, rgba(244,114,182,.14), transparent 60%),
    radial-gradient(ellipse 45% 60% at 10% 90%, rgba(52,211,153,.12), transparent 60%),
    linear-gradient(180deg, #15171d 0%, #101216 100%);
}
[data-theme="dark"] .hero-sub { color: var(--sub); }
[data-theme="dark"] .btn-ghost { background: #171a21; }
[data-theme="dark"] .btn-primary { box-shadow: 0 6px 18px rgba(96, 165, 250, .25); }
[data-theme="dark"] .home-docs { box-shadow: 0 4px 24px rgba(0, 0, 0, .3); }
[data-theme="dark"] .search-results { box-shadow: 0 12px 40px rgba(0, 0, 0, .5); }
[data-theme="dark"] .markdown-body code { color: #93c5fd; }
[data-theme="dark"] .markdown-body blockquote { background: #221d33; color: #cfc6e8; border-left-color: #8b5cf6; }
[data-theme="dark"] .markdown-body th { background: #1b1e26; }
[data-theme="dark"] .hero-title .grad { background: linear-gradient(120deg, #60a5fa, #a78bfa); -webkit-background-clip: text; background-clip: text; }

@media (max-width: 900px) {
  .doc-layout { flex-direction: column; }
  .sidebar, .toc { width: 100%; position: static; max-height: none; }
  .doc-content { padding: 20px; }
  .hero-title { font-size: 32px; }
  .search-box input { width: 130px; }
  .search-box kbd { display: none; }
  .search-results { width: 280px; }
}

/* ===== 搜索命中高亮 ===== */
.search-item mark, mark.hl {
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: 3px;
  padding: 0 2px;
}

/* ===== 代码块复制按钮 ===== */
.markdown-body pre { position: relative; }
.copy-btn {
  position: absolute; top: 8px; right: 8px;
  font-size: 12px; line-height: 1; padding: 5px 9px;
  border: 1px solid var(--border); border-radius: 7px;
  background: var(--card); color: var(--sub);
  cursor: pointer; opacity: .78; transition: opacity .15s, color .15s, border-color .15s;
}
.copy-btn:hover { opacity: 1; }
.copy-btn.done { color: #16a34a; border-color: #16a34a; }

/* ===== 图片灯箱 ===== */
.markdown-body img { cursor: zoom-in; }
.lightbox {
  position: fixed; inset: 0; z-index: 999;
  background: rgba(0,0,0,.82); display: none;
  align-items: center; justify-content: center; padding: 24px;
  cursor: zoom-out;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 94vw; max-height: 92vh; border-radius: 10px; box-shadow: 0 10px 40px rgba(0,0,0,.5); }

/* ===== 回到顶部 ===== */
#back-top {
  position: fixed; right: 18px; bottom: 18px; z-index: 60;
  width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid var(--border); background: var(--card);
  color: var(--text); font-size: 18px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(0,0,0,.18);
  opacity: 0; transform: translateY(8px); pointer-events: none;
  transition: opacity .2s, transform .2s, background .15s, color .15s;
}
#back-top.show { opacity: 1; transform: none; pointer-events: auto; }
#back-top:hover { background: var(--accent); color: #fff; border-color: var(--accent); }

/* ===== 友情链接页 ===== */
.link-list { list-style: none; margin: 14px 0; padding: 0; display: grid; gap: 10px; }
.link-item {
  display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap;
  background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 12px 16px;
}
.link-name { font-weight: 700; color: var(--accent); text-decoration: none; font-size: 15px; }
.link-name:hover { text-decoration: underline; }
.link-desc { color: var(--sub); font-size: 13px; }
.link-empty { color: var(--muted); font-size: 14px; margin: 12px 0; }
.link-apply { font-size: 13px; color: var(--muted); margin-top: 6px; }

/* ===== 后台统计看板 ===== */
.admin-stat { list-style: none; margin: 8px 0 18px; padding: 0; display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
.admin-stat li {
  background: var(--bg); border: 1px solid var(--border); border-radius: 10px;
  padding: 10px; text-align: center; display: flex; flex-direction: column; gap: 4px;
}
.admin-stat span { font-size: 11px; color: var(--muted); }
.admin-stat b { font-size: 20px; color: var(--accent); }

/* ===== 文档「上一篇 / 下一篇」 ===== */
.doc-pager { display: flex; gap: 12px; margin: 34px 0 8px; flex-wrap: wrap; }
.doc-pager .pager-item {
  flex: 1 1 210px; min-width: 0; padding: 13px 16px;
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--card); text-decoration: none;
  transition: border-color .2s, transform .2s;
}
.doc-pager .pager-item:hover { border-color: var(--accent); transform: translateY(-2px); }
.doc-pager .pager-item span { display: block; font-size: 12px; color: var(--muted); margin-bottom: 5px; }
.doc-pager .pager-item strong {
  display: block; font-size: 14px; font-weight: 600; color: var(--text);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.doc-pager .pager-next { text-align: right; }
.doc-pager .pager-empty { flex: 1 1 210px; }

/* ===== C++ 代码高亮（明暗两套） ===== */
.hl-cmt { color: #8a94a6; font-style: italic; }
.hl-str { color: #16a34a; }
.hl-pre { color: #c026d3; }
.hl-kw  { color: #7c3aed; font-weight: 600; }
.hl-num { color: #ea580c; }
[data-theme="dark"] .hl-cmt { color: #7d8595; }
[data-theme="dark"] .hl-str { color: #86efac; }
[data-theme="dark"] .hl-pre { color: #f0abfc; }
[data-theme="dark"] .hl-kw  { color: #c4b5fd; }
[data-theme="dark"] .hl-num { color: #fdba74; }

/* ===== 文档页「想发文章·联系我」入口 ===== */
.doc-topline { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.doc-topline .breadcrumb { margin-bottom: 0; }
.doc-topline h1 { margin: 0; }
.doc-contact-link {
  margin-left: auto; display: inline-flex; align-items: center; gap: 5px;
  padding: 6px 13px; border: 1px solid var(--border); border-radius: 999px;
  background: var(--accent-soft); color: var(--accent);
  font-size: 12.5px; font-weight: 600; text-decoration: none; white-space: nowrap;
  transition: border-color .2s, transform .2s;
}
.doc-contact-link:hover { border-color: var(--accent); transform: translateY(-1px); }

/* ===== 联系我页面 ===== */
.contact-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px; margin: 22px 0 18px;
}
.contact-card { border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg); padding: 18px; }
.contact-icon { font-size: 24px; margin-bottom: 8px; }
.contact-card h3 { font-size: 15px; margin-bottom: 8px; }
.contact-value { font-size: 15px; font-weight: 700; color: var(--accent); word-break: break-all; margin-bottom: 6px; }
.contact-value a { color: var(--accent); text-decoration: none; }
.contact-note { font-size: 12px; color: var(--muted); margin-bottom: 14px; }
.contact-btn {
  display: inline-block; padding: 7px 14px; border: 1px solid var(--border);
  border-radius: 8px; background: var(--card); color: var(--text);
  font-size: 13px; text-decoration: none; cursor: pointer; font-family: inherit;
}
.contact-btn:hover { border-color: var(--accent); color: var(--accent); }
.contact-btn.done { border-color: #16a34a; color: #16a34a; }
.contact-tip {
  border-left: 3px solid var(--accent); background: var(--accent-soft);
  padding: 12px 16px; border-radius: 0 8px 8px 0; font-size: 13.5px; line-height: 1.8;
}
.contact-tip b { display: block; margin-bottom: 4px; }
.contact-gbook { margin-top: 18px; font-size: 13px; color: var(--muted); }
.contact-gbook a { color: var(--accent); text-decoration: none; }
[data-theme="dark"] .doc-contact-link,
[data-theme="dark"] .contact-tip { background: #1e2740; }
[data-theme="dark"] .contact-btn { background: #171a21; }
