/* 站点补充样式：工具页、文档页、管理后台 */

.cat-num {
  margin-left: auto;
  font-size: 11px;
  color: #8a9099;
  background: #f4f6f9;
  border: 1px solid #e8ebf0;
  padding: 2px 8px;
  border-radius: 999px;
}

/* 工具页 */
.tool-hero {
  background: #fff;
  border: 1px solid #e3e6eb;
  border-radius: 4px;
  padding: 20px;
  margin-bottom: 14px;
}
.tool-hero-head { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 16px; }
.tool-hero-icon {
  flex: none;
  width: 46px; height: 46px;
  border-radius: 6px;
  background: #eaf2fd;
  color: #1a6fd4;
  display: grid; place-items: center;
}
.tool-hero-icon svg { width: 22px; height: 22px; }
.tool-hero h1 { font-size: 22px; color: #1f2937; line-height: 1.3; margin: 2px 0 5px; }
.tool-hero p { font-size: 13px; color: #6b7280; line-height: 1.7; }
.tool-hero .big-search { margin: 0; max-width: 760px; height: 46px; }
.tool-hero .big-search button { width: 112px; font-size: 14px; }
.tool-hero .quick-links { text-align: left; margin-top: 10px; }
.tool-hero .quick-links a {
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: 11.5px;
  background: #f8fafc;
  border: 1px solid #e3e6eb;
  padding: 4px 8px;
  border-radius: 3px;
  margin: 0 4px 4px 0;
}

.tool-faq {
  background: #fff;
  border: 1px solid #e3e6eb;
  border-radius: 4px;
  padding: 18px 20px;
  margin-top: 14px;
}
.tool-faq h2 { font-size: 15px; font-weight: 700; color: #1f2937; padding-left: 8px; border-left: 3px solid #1a6fd4; line-height: 1.1; margin-bottom: 10px; }
.faq-item { padding: 10px 0; border-top: 1px dashed #eef1f5; }
.faq-item:first-of-type { border-top: 0; padding-top: 4px; }
.faq-item h3 { font-size: 13px; color: #1f2937; margin-bottom: 4px; }
.faq-item p { font-size: 12.5px; color: #6b7280; line-height: 1.8; }

.tool-hero + .res-card { margin-top: 14px; }

/* 文档页 */
.doc {
  max-width: 920px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid #e3e6eb;
  border-radius: 4px;
  padding: 28px 30px;
}
.doc h1 { font-size: 26px; color: #1f2937; margin-bottom: 14px; }
.doc h2 { font-size: 17px; color: #1f2937; margin: 24px 0 10px; padding-left: 9px; border-left: 3px solid #1a6fd4; line-height: 1.2; }
.doc h3 { font-size: 14px; margin: 16px 0 6px; }
.doc p { font-size: 13.5px; color: #4b5563; line-height: 1.95; margin: 8px 0; }
.doc ul { margin: 6px 0 6px 20px; padding: 0; }
.doc li { font-size: 13.5px; color: #4b5563; line-height: 1.95; margin: 4px 0; list-style: square; }
.doc a { color: #1a6fd4; }
.doc a:hover { text-decoration: underline; }
.doc code { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 12px; background: #f4f6f9; border: 1px solid #e8ebf0; padding: 1px 5px; border-radius: 3px; }
.doc pre {
  background: #f8fafc;
  border: 1px solid #e3e6eb;
  border-radius: 3px;
  padding: 12px 14px;
  overflow-x: auto;
  margin: 10px 0;
}
.doc pre code { background: none; border: 0; padding: 0; font-size: 12px; line-height: 1.7; color: #1f2937; }
.doc-section { margin-top: 20px; }
.doc-links { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 20px; margin: 8px 0 0; padding: 0; }
.doc-links li { list-style: none; display: flex; justify-content: space-between; gap: 10px; border-bottom: 1px dashed #eef1f5; padding: 6px 0; }
.doc-links li a { color: #1f2937; font-size: 13px; }
.doc-links li a:hover { color: #1a6fd4; }
.doc-links li span { font-size: 11px; color: #a0a6ae; }

/* 同类工具 */
.related-list { padding: 6px 12px 10px; }
.related-list li { padding: 7px 0; border-bottom: 1px dashed #eef1f5; }
.related-list li:last-child { border-bottom: 0; }
.related-list a { display: block; font-size: 12.5px; color: #333; line-height: 1.5; }
.related-list a:hover { color: #1a6fd4; }
.related-list span { display: block; font-size: 11px; color: #a0a6ae; line-height: 1.5; margin-top: 2px; }

/* toast */
.toast {
  position: fixed;
  left: 50%; bottom: 28px;
  z-index: 100;
  transform: translate(-50%, 10px);
  background: rgba(15, 23, 42, .92);
  color: #fff;
  font-size: 12px;
  padding: 8px 14px;
  border-radius: 3px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s, transform .2s;
}
.toast.on { opacity: 1; transform: translate(-50%, 0); }

/* 管理后台 */
.admin-body { background: #f2f4f7; min-height: 100vh; }
.admin-login {
  width: 360px;
  max-width: calc(100% - 32px);
  margin: 12vh auto 0;
  background: #fff;
  border: 1px solid #e3e6eb;
  border-radius: 6px;
  padding: 26px;
  box-shadow: 0 18px 50px -30px rgba(16, 24, 40, .35);
}
.admin-brand { display: flex; align-items: center; gap: 8px; margin-bottom: 18px; }
.admin-brand .logo-mark { width: 34px; height: 34px; border-radius: 7px; font-size: 18px; box-shadow: none; }
.admin-brand strong { font-size: 16px; color: #1f2937; }
.admin-brand small { font-size: 11px; color: #8a9099; margin-left: auto; }
.admin-login h1 { font-size: 20px; margin-bottom: 14px; color: #1f2937; }
.admin-login label { display: block; font-size: 12px; color: #6b7280; margin-bottom: 12px; }
.admin-login input {
  display: block; width: 100%; margin-top: 6px;
  height: 40px; border: 1px solid #d9e3f2; border-radius: 3px;
  padding: 0 10px; font-family: inherit; font-size: 14px; outline: 0;
}
.admin-login input:focus { border-color: #1a6fd4; }
.admin-login button {
  width: 100%; height: 40px; border: 0; border-radius: 3px;
  background: #1a6fd4; color: #fff; font-family: inherit; font-size: 14px; font-weight: 600; cursor: pointer;
}
.admin-login button:hover { background: #155cb3; }
.admin-hint { font-size: 11.5px; color: #8a9099; margin-top: 12px; line-height: 1.7; }
.admin-error { background: #fff1f0; border: 1px solid #ffccc7; color: #a8071a; font-size: 12px; padding: 7px 10px; border-radius: 3px; margin-bottom: 12px; }

.admin-head { background: #fff; border-bottom: 1px solid #e3e6eb; }
.admin-head-inner { display: flex; align-items: center; height: 60px; gap: 14px; }
.admin-head .admin-brand { margin: 0; }
.admin-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.admin-actions a { font-size: 12px; color: #4b5563; margin-right: 6px; }
.admin-actions a:hover { color: #1a6fd4; }
.admin-actions form { display: inline; }
.mini {
  font-family: inherit; font-size: 11px; color: #4b5563;
  background: #fff; border: 1px solid #d9e3f2; border-radius: 3px;
  padding: 4px 9px; cursor: pointer;
}
.mini:hover { color: #1a6fd4; border-color: #1a6fd4; }
.mini.danger { color: #b42318; border-color: #fecdca; }
.mini.danger:hover { color: #fff; background: #b42318; border-color: #b42318; }

.admin-main { padding: 18px 0 40px; }
.admin-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 16px; }
.admin-cards > div { background: #fff; border: 1px solid #e3e6eb; border-radius: 4px; padding: 15px 16px; }
.admin-cards span { display: block; font-size: 12px; color: #8a9099; }
.admin-cards strong { display: block; font-size: 26px; color: #1a6fd4; line-height: 1.4; }
.admin-panel { background: #fff; border: 1px solid #e3e6eb; border-radius: 4px; padding: 16px 18px; margin-bottom: 16px; }
.admin-panel h2 { font-size: 15px; color: #1f2937; margin-bottom: 10px; padding-left: 8px; border-left: 3px solid #1a6fd4; line-height: 1.1; }
.admin-panel .muted { margin-bottom: 10px; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.admin-table th { text-align: left; font-weight: 600; color: #6b7280; font-size: 11px; background: #fafbfc; padding: 8px 10px; border-bottom: 1px solid #eef0f3; white-space: nowrap; }
.admin-table td { padding: 8px 10px; border-bottom: 1px solid #f2f4f7; color: #333; vertical-align: middle; }
.admin-table td small { display: block; color: #a0a6ae; font-size: 10.5px; font-family: ui-monospace, Menlo, Consolas, monospace; }
.admin-table td.num { font-family: ui-monospace, Menlo, Consolas, monospace; }
.admin-table tr:last-child td { border-bottom: 0; }
.badge { display: inline-block; font-size: 10.5px; padding: 2px 7px; border-radius: 999px; }
.badge.on { color: #0b8a4b; background: #eefaf3; border: 1px solid #cdeedb; }
.badge.off { color: #b42318; background: #fff1f0; border: 1px solid #ffccc7; }
.bar { width: 130px; height: 6px; background: #eef1f5; border-radius: 999px; overflow: hidden; }
.bar i { display: block; height: 100%; background: #1a6fd4; border-radius: 999px; }
.muted { font-size: 12px; color: #8a9099; line-height: 1.7; }

@media (max-width: 900px) {
  .result-page .header-search { display: none; }
  .doc { padding: 20px 18px; }
  .admin-cards { grid-template-columns: 1fr 1fr; }
  .doc-links { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .tool-hero { padding: 14px; }
  .tool-hero h1 { font-size: 19px; }
  .tool-hero .big-search { height: 44px; }
  .tool-hero .big-search button { width: 84px; font-size: 13px; }
  .doc { padding: 16px 14px; }
  .doc h1 { font-size: 21px; }
  .admin-head-inner { height: auto; padding: 10px 0; flex-wrap: wrap; }
  .admin-actions { width: 100%; margin-left: 0; }
  .admin-cards { grid-template-columns: 1fr; }
  .admin-panel { padding: 12px; overflow-x: auto; }
  .bar { width: 70px; }
}

/* 管理后台表单/导航 */
.admin-nav { display: flex; align-items: center; gap: 2px; margin-left: 22px; }
.admin-nav a { font-size: 12.5px; color: #475569; padding: 6px 10px; border-radius: 4px; }
.admin-nav a:hover { color: #1a6fd4; background: #f4f8ff; }
.admin-nav a.active { color: #1a6fd4; background: #eaf2fd; font-weight: 600; }

.admin-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; flex-wrap: wrap; }
.admin-panel-head h1 { font-size: 20px; color: #1f2937; }
.admin-tools-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.admin-filter { height: 32px; width: 220px; border: 1px solid #d9e3f2; border-radius: 3px; padding: 0 10px; font: 12px inherit; font-family: inherit; outline: 0; }
.admin-filter:focus { border-color: #1a6fd4; }

.btn-primary {
  display: inline-block;
  font-family: inherit; font-size: 13px; font-weight: 600;
  color: #fff; background: #1a6fd4; border: 0; border-radius: 3px;
  padding: 8px 14px; cursor: pointer; text-align: center;
}
.btn-primary:hover { background: #155cb3; color: #fff; }

.seo-dot { display: inline-block; font-size: 10.5px; padding: 2px 7px; border-radius: 999px; white-space: nowrap; }
.seo-dot.ok { color: #0b8a4b; background: #eefaf3; border: 1px solid #cdeedb; }
.seo-dot.warn { color: #b45309; background: #fffbeb; border: 1px solid #fde68a; }

.actions-cell { display: flex; align-items: center; gap: 6px; }
.actions-cell form { display: inline; }

.admin-form { background: #fff; border: 1px solid #e3e6eb; border-radius: 4px; padding: 22px; max-width: 1040px; }
.admin-form label { display: block; font-size: 12px; color: #6b7280; margin-bottom: 13px; }
.admin-form input[type="text"], .admin-form input:not([type]), .admin-form input[type="email"], .admin-form input[type="number"], .admin-form input[type="password"], .admin-form select, .admin-form textarea {
  display: block; width: 100%; margin-top: 5px;
  border: 1px solid #d9e3f2; border-radius: 3px;
  padding: 8px 10px; font: 13px/1.6 "Microsoft YaHei", "PingFang SC", sans-serif;
  color: #1f2937; background: #fff; outline: 0;
}
.admin-form input:focus, .admin-form select:focus, .admin-form textarea:focus { border-color: #1a6fd4; box-shadow: 0 0 0 3px rgba(26,111,212,.08); }
.admin-form input[readonly] { background: #f5f7fa; color: #8a9099; }
.admin-form textarea { resize: vertical; line-height: 1.75; }
.admin-form small { display: block; margin-top: 3px; color: #9aa1ab; font-size: 11px; line-height: 1.5; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.form-grid .check-row { display: flex; align-items: center; gap: 8px; margin-top: 27px; font-size: 12.5px; color: #4b5563; }
.form-grid .check-row input { width: auto; margin: 0; }
.form-section { font-size: 14px; color: #1f2937; border-left: 3px solid #1a6fd4; padding-left: 8px; line-height: 1.2; margin: 20px 0 14px; }
.form-actions { display: flex; align-items: center; gap: 10px; margin-top: 6px; }
.char-count { float: right; color: #9aa1ab; font-size: 11px; font-weight: 400; }

@media (max-width: 900px) {
  .admin-nav { order: 3; width: 100%; margin-left: 0; overflow-x: auto; }
  .form-grid { grid-template-columns: 1fr; }
  .admin-form { padding: 14px; }
}

/* 首页场景 / 常用工具 / 指南 / FAQ */
.home-section { margin-top: 30px; }
.home-section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 13px; }
.home-section-head h2 { font-size: 20px; color: #1f2937; letter-spacing: -.02em; margin: 0; }
.home-section-head p { margin: 4px 0 0; font-size: 12px; color: #8a9099; }
.home-more { font-size: 12px; color: #1a6fd4; white-space: nowrap; }
.home-more:hover { text-decoration: underline; }

.scenario-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.scenario-card { background: #fff; border: 1px solid #e3e6eb; border-radius: 4px; padding: 15px; min-width: 0; }
.scenario-head { display: flex; gap: 10px; align-items: flex-start; }
.scenario-icon { flex: none; width: 34px; height: 34px; border-radius: 5px; background: #eaf2fd; color: #1a6fd4; display: grid; place-items: center; }
.scenario-icon svg { width: 18px; height: 18px; }
.scenario-card h3 { font-size: 14px; color: #1f2937; margin: 0; font-weight: 700; }
.scenario-card p { font-size: 11px; color: #8a9099; margin: 3px 0 0; line-height: 1.5; }
.scenario-links { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.scenario-links a { font-size: 11.5px; color: #4b5563; background: #f7f9fc; border: 1px solid #e9edf4; padding: 3px 8px; border-radius: 3px; }
.scenario-links a:hover { color: #1a6fd4; border-color: #cfe0fb; background: #f2f8ff; }

.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.feature-card { display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid #e3e6eb; border-radius: 4px; padding: 13px 14px; min-width: 0; }
.feature-card:hover { border-color: #bcd3f6; box-shadow: 0 6px 14px -10px rgba(26,111,212,.4); }
.feature-icon { flex: none; width: 32px; height: 32px; border-radius: 5px; background: #eaf2fd; color: #1a6fd4; display: grid; place-items: center; }
.feature-icon svg { width: 17px; height: 17px; }
.feature-card b { display: block; font-size: 13px; color: #333; font-weight: 500; line-height: 1.4; }
.feature-card small { display: block; font-size: 10.5px; color: #a0a6ae; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.guide-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.guide-card { display: block; background: #fff; border: 1px solid #e3e6eb; border-radius: 4px; padding: 18px; }
.guide-card:hover { border-color: #bcd3f6; }
.guide-card time { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 10.5px; color: #a0a6ae; }
.guide-card h3 { font-size: 15px; color: #1f2937; margin: 7px 0 6px; line-height: 1.45; }
.guide-card p { font-size: 12px; color: #7b838d; line-height: 1.7; margin: 0 0 10px; }
.guide-arrow { font-size: 11.5px; color: #1a6fd4; }

.home-faq details { background: #fff; border: 1px solid #e3e6eb; border-radius: 4px; padding: 0 16px; margin-bottom: 8px; }
.home-faq details[open] { border-color: #cfe0fb; }
.home-faq summary { cursor: pointer; padding: 13px 0; font-size: 13px; font-weight: 600; color: #1f2937; list-style: none; }
.home-faq summary::-webkit-details-marker { display: none; }
.home-faq summary::before { content: "+"; display: inline-block; width: 18px; color: #1a6fd4; font-weight: 700; }
.home-faq details[open] summary::before { content: "−"; }
.home-faq details p { margin: 0; padding: 0 0 14px 18px; font-size: 12.5px; color: #6b7280; line-height: 1.8; }

.guide-article { max-width: 920px; margin: 0 auto; }
.guide-meta { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 11px; color: #a0a6ae; margin-bottom: 8px; }
.guide-lede { font-size: 14px !important; color: #4b5563 !important; border-left: 3px solid #1a6fd4; padding-left: 12px; margin: 0 0 18px !important; }
.guide-related { margin-top: 24px; padding-top: 16px; border-top: 1px dashed #e3e6eb; }

@media (max-width: 900px) {
  .scenario-grid { grid-template-columns: 1fr 1fr; }
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .guide-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .scenario-grid { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr; }
  .home-section-head h2 { font-size: 18px; }
}


/* 分类聚合页 */
.cat-head-right { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.cat-all { font-size: 11.5px; color: #1a6fd4; white-space: nowrap; }
.cat-all:hover { text-decoration: underline; }

.cat-hero { background: #fff; border: 1px solid #e3e6eb; border-radius: 4px; padding: 24px; margin-bottom: 14px; }
.cat-hero-main { display: flex; align-items: flex-start; gap: 14px; }
.cat-hero-icon { flex: none; width: 48px; height: 48px; border-radius: 6px; background: #eaf2fd; color: #1a6fd4; display: grid; place-items: center; }
.cat-hero-icon svg { width: 24px; height: 24px; }
.cat-hero h1 { font-size: 28px; color: #1f2937; margin: 3px 0 4px; letter-spacing: -.02em; }
.cat-hero p { font-size: 12.5px; color: #7b838d; margin: 0; }

.cat-intro { background: #fff; border: 1px solid #e3e6eb; border-radius: 4px; padding: 22px 24px; margin-bottom: 14px; }
.cat-intro p { font-size: 13.5px; line-height: 1.95; color: #4b5563; margin: 0 0 14px; }
.cat-intro p:last-child { margin-bottom: 0; }
.cat-intro h2 { font-size: 16px; color: #1f2937; margin: 20px 0 7px; padding-left: 9px; border-left: 3px solid #1a6fd4; line-height: 1.3; }
.cat-intro h2:first-of-type { margin-top: 18px; }

.cat-tools-section { background: #fff; border: 1px solid #e3e6eb; border-radius: 4px; padding: 20px 24px; margin-bottom: 14px; }
.cat-tool-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 13px; }
.cat-tool-card { display: flex; align-items: center; gap: 10px; border: 1px solid #e9edf4; border-radius: 4px; padding: 11px 12px; min-width: 0; }
.cat-tool-card:hover { border-color: #bcd3f6; background: #f8fbff; }
.cat-tool-icon { flex: none; width: 30px; height: 30px; border-radius: 4px; background: #f2f7fe; color: #1a6fd4; display: grid; place-items: center; }
.cat-tool-icon svg { width: 16px; height: 16px; }
.cat-tool-card b { display: block; font-size: 13px; color: #333; font-weight: 500; line-height: 1.4; }
.cat-tool-card small { display: block; font-size: 10.5px; color: #a0a6ae; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

@media (max-width: 640px) {
  .cat-hero { padding: 18px; }
  .cat-hero h1 { font-size: 23px; }
  .cat-hero-icon { width: 40px; height: 40px; }
  .cat-intro, .cat-tools-section { padding: 17px; }
  .cat-tool-grid { grid-template-columns: 1fr; }
}

/* 工具页正文 */
.tool-article { background: #fff; border: 1px solid #e3e6eb; border-radius: 4px; padding: 22px 24px; margin: 14px 0; }
.tool-article h2 { font-size: 16px; color: #1f2937; margin: 18px 0 7px; padding-left: 9px; border-left: 3px solid #1a6fd4; line-height: 1.3; }
.tool-article h2:first-child { margin-top: 0; }
.tool-article p { font-size: 13.5px; line-height: 1.95; color: #4b5563; margin: 0; }
@media (max-width: 640px) {
  .tool-article { padding: 17px; }
}

/* 手机端页脚：改成轻量两栏，不再是一整块黑 */
@media (max-width: 640px) {
  .site-footer {
    background: #f8fafc;
    color: #64748b;
    margin-top: 16px;
    border-top: 1px solid #e5e7eb;
  }
  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 18px 20px;
    padding: 24px 0 18px;
  }
  .footer-brand { grid-column: 1 / -1; }
  .footer-brand strong { color: #111827; font-size: 18px; letter-spacing: 0; }
  .footer-brand p { color: #94a3b8; font-size: 11.5px; line-height: 1.8; margin-top: 6px; }
  .footer-top > .footer-col:nth-child(2) { display: none; }
  .footer-col h4 { color: #111827; font-size: 12px; margin-bottom: 6px; }
  .footer-col a { color: #64748b; font-size: 11.5px; line-height: 1.9; }
  .footer-col a:hover { color: #1a6fd4; }
  .footer-bottom {
    border-top: 1px solid #e5e7eb;
    color: #94a3b8;
    font-size: 10.5px;
    line-height: 1.7;
    padding: 12px 0;
    text-align: center;
  }
  .footer-bottom .wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
  }
}

/* 桌面页脚与手机端统一浅色 */
.site-footer {
  background: #f8fafc;
  color: #64748b;
  border-top: 1px solid #e5e7eb;
}
.footer-brand strong { color: #111827; }
.footer-brand p { color: #94a3b8; }
.footer-col h4 { color: #111827; }
.footer-col a { color: #64748b; }
.footer-col a:hover { color: #1a6fd4; }
.footer-bottom {
  border-top: 1px solid #e5e7eb;
  color: #94a3b8;
}

.footer-bottom .wrap {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

/* 首页布局收拢：减少重复区块，侧栏跟随滚动 */
.section-bar {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 24px 0 10px;
}
.section-bar h2 { font-size: 18px; color: #1f2937; margin: 0; letter-spacing: -.02em; }
.section-bar span { font-size: 11.5px; color: #a0a6ae; }
.side-col { position: sticky; top: 10px; align-self: start; }
.scenario-card { display: flex; flex-direction: column; }
.scenario-links { margin-top: 0; padding-top: 12px; }
@media (max-width: 900px) {
  .side-col { position: static; }
}

/* 品牌标：搜索图形 + 深色字标 */
.logo-mark {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  box-shadow: 0 6px 14px -6px rgba(26, 111, 212, .55);
}
.logo-mark svg { width: 21px; height: 21px; }
.logo { gap: 12px; }
.logo-text { font-size: 26px; color: #0f172a; letter-spacing: -.035em; }
.logo-text b { display: block; font-weight: 800; color: #0f172a; line-height: 1.05; }
.logo-text small { color: #94a3b8; letter-spacing: .12em; margin-top: 5px; }
@media (max-width: 640px) {
  .logo-mark { width: 36px; height: 36px; border-radius: 9px; }
  .logo-mark svg { width: 18px; height: 18px; }
  .logo-text { font-size: 21px; }
}

/* 纯文字品牌：站名与域名同一基线 */
.logo { gap: 0; }
.logo-text {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-size: 26px;
  line-height: 1.1;
}
.logo-text b { display: inline-block; font-weight: 800; color: #0f172a; letter-spacing: -.035em; }
.logo-text small {
  display: inline-block;
  margin-top: 0;
  padding-left: 10px;
  border-left: 1px solid #e2e8f0;
  font-size: 12px;
  color: #94a3b8;
  letter-spacing: .08em;
  line-height: 1.2;
}
@media (max-width: 640px) {
  .logo-text { font-size: 21px; gap: 7px; }
  .logo-text small { font-size: 10px; padding-left: 7px; }
}

/* 折叠导航与首页单搜索框 */
.nav-links { display: flex; align-items: center; flex: 1; min-width: 0; }
.nav-links > a {
  color: #fff; font-size: 14px;
  padding: 0 18px; height: 40px; line-height: 40px;
  white-space: nowrap;
}
.nav-links > a:hover { background: #2b7de9; color: #fff; }
.nav-links > a.active { background: #0f56ab; font-weight: 600; }
.nav-toggle { display: none; }
body.home-page .header-search { display: none; }

@media (max-width: 900px) {
  .nav-inner { height: auto; padding: 0; flex-wrap: wrap; }
  .nav-toggle {
    display: flex; align-items: center; gap: 4px;
    width: 100%; height: 40px; padding: 0 14px;
    background: #1a6fd4; color: #fff; border: 0;
    font: inherit; cursor: pointer;
  }
  .nav-toggle span { width: 15px; height: 2px; background: #fff; border-radius: 2px; }
  .nav-toggle em { font-style: normal; font-size: 12px; margin-left: 5px; }
  .nav-links { display: none; width: 100%; flex: none; }
  .nav-links.open {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
    background: #1a6fd4;
    padding: 4px 0 8px;
  }
  .nav-links > a {
    height: 36px; line-height: 36px;
    padding: 0 16px; font-size: 13px;
  }
  .nav-links > a:hover { background: rgba(255,255,255,.12); }
  .nav-links > a.active { background: rgba(0,0,0,.2); }
  .nav-links .nav-count { display: none; }
}

/* 多行工具的输入框 */
.big-search.multiline { height: auto; align-items: stretch; }
.big-search.multiline textarea {
  flex: 1; min-width: 0; min-height: 132px;
  border: 0; outline: 0; resize: vertical;
  padding: 12px 14px;
  font-family: inherit; font-size: 14px; line-height: 1.7; color: #333;
}
.big-search.multiline button { height: auto; }

/* 手机端：白色下拉菜单 + 右上角汉堡 */
@media (max-width: 900px) {
  .site-header { position: relative; }
  .header-inner { height: auto; min-height: 64px; padding: 10px 0; gap: 10px; flex-wrap: wrap; align-items: center; }
  .nav-toggle {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
    width: 40px; height: 40px; padding: 0; margin-left: auto;
    border: 1px solid #e2e8f0; border-radius: 9px; background: #fff;
    cursor: pointer; flex: none;
  }
  .nav-toggle span { width: 17px; height: 2px; background: #334155; border-radius: 2px; transition: transform .18s ease, opacity .18s ease; }
  .nav-toggle em { display: none; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }
  .header-search { order: 3; flex: 0 0 100%; max-width: none; margin-left: 0; }
  .mainnav {
    display: none; position: absolute; left: 0; right: 0; top: 100%; z-index: 60;
    height: auto; background: #fff;
    border-top: 1px solid #eef0f3;
    box-shadow: 0 20px 32px -20px rgba(15, 23, 42, .45);
  }
  .mainnav.mobile-open { display: block; }
  .mainnav .nav-inner { height: auto; padding: 6px 0 10px; display: block; }
  .mainnav .nav-links { display: grid; grid-template-columns: 1fr 1fr; width: 100%; background: #fff; padding: 0; }
  .mainnav .nav-links > a {
    color: #1f2937; height: auto; line-height: 1.4;
    padding: 12px 14px; font-size: 13px; background: #fff;
    border-bottom: 1px solid #f1f3f6;
  }
  .mainnav .nav-links > a:hover { background: #f5f9ff; color: #1a6fd4; }
  .mainnav .nav-links > a.active { background: #eaf2fd; color: #1a6fd4; font-weight: 600; }
  .mainnav .nav-links > a:last-child { grid-column: 1 / -1; border-bottom: 0; }
  .mainnav .nav-count { display: none; }
}

/* 手机端头部：品牌居中，菜单靠右 */
@media (max-width: 900px) {
  .header-inner {
    position: relative;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    min-height: 58px;
    padding: 9px 0;
  }
  .logo { width: auto; margin: 0; }
  .logo-text { font-size: 20px; }
  .logo-text small { font-size: 10px; }
  .nav-toggle {
    position: absolute;
    right: 0;
    top: 29px;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border-radius: 8px;
    margin: 0;
  }
  .nav-toggle span { width: 16px; }
  .header-search { order: 3; flex: 0 0 100%; margin-top: 4px; }
}
