/* ============================================================
   暖通工程师个人工具箱 - 全站样式
   主题：工程科技蓝 #165DFF ｜ 简约专业工具风 ｜ 全站响应式
   ============================================================ */
:root {
  --primary: #165DFF;
  --primary-dark: #0E42D2;
  --primary-light: #E8F3FF;
  --primary-gradient: linear-gradient(135deg, #165DFF 0%, #0E42D2 100%);
  --text: #1D2129;
  --text-secondary: #4E5969;
  --text-muted: #86909C;
  --bg: #F5F7FA;
  --card: #FFFFFF;
  --border: #E5E6EB;
  --success: #00B42A;
  --success-bg: #E8FFEA;
  --warning: #FF7D00;
  --warning-bg: #FFF7E8;
  --danger: #F53F3F;
  --danger-bg: #FFECE8;
  --radius: 12px;
  --shadow: 0 2px 10px rgba(22, 93, 255, 0.05), 0 6px 24px rgba(29, 33, 41, 0.06);
  --maxw: 1100px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: "PingFang SC", "Microsoft YaHei", "Segoe UI", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 15px;
}
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); text-decoration: underline; }
img { max-width: 100%; }

/* ---------- 顶部导航（透明淡氛围质感：CSS渐变+毛玻璃，无实景图片背景） ---------- */
.site-header {
  background: linear-gradient(rgba(248, 252, 255, 0.96), rgba(240, 248, 255, 0.96));
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(22, 93, 255, 0.08);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: none;
}
.header-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
  font-size: 17px;
  color: #1e3a8a;
  white-space: nowrap;
}
.brand:hover { text-decoration: none; color: #165DFF; }
.brand .logo {
  width: 34px; height: 34px;
  background: var(--primary-gradient);
  border-radius: 8px;
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; font-weight: 500;
  flex-shrink: 0;
}
.brand .sub { font-size: 11px; color: #6B7A99; font-weight: 400; display: block; line-height: 1.2; }
.main-nav { display: flex; gap: 4px; }
.main-nav a {
  padding: 8px 14px;
  border-radius: 8px;
  color: #1e3a8a;
  font-size: 15px;
  white-space: nowrap;
}
.main-nav a:hover { background: rgba(22, 93, 255, 0.06); color: #165DFF; text-decoration: none; }
.main-nav a.active { background: rgba(22, 93, 255, 0.08); color: #165DFF; font-weight: 500; }
.nav-toggle {
  display: none;
  background: none; border: none;
  font-size: 22px; color: #1e3a8a;
  cursor: pointer; padding: 6px 10px;
  line-height: 1;
}
@media (max-width: 720px) {
  .nav-toggle { display: block; }
  .main-nav {
    display: none;
    position: absolute;
    top: 60px; left: 0; right: 0;
    background: rgba(248, 252, 255, 0.98);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    flex-direction: column;
    padding: 8px 16px 14px;
    border-bottom: 1px solid rgba(22, 93, 255, 0.08);
    box-shadow: 0 8px 16px rgba(22, 93, 255, 0.08);
  }
  .main-nav.open { display: flex; }
  .header-inner { padding: 0 14px; }
  .brand > span > .sub { display: none !important; }
}

/* ---------- 主体 ---------- */
.page { max-width: var(--maxw); margin: 0 auto; padding: 28px 20px 40px; }
@media (max-width: 720px) { .page { padding: 20px 14px 32px; } }

.hero {
  background: var(--primary-gradient);
  border-radius: 14px;
  color: #fff;
  padding: 36px 32px;
  margin-bottom: 28px;
}
.hero h1 { font-size: 26px; margin-bottom: 10px; }
.hero p { opacity: .92; font-size: 15px; }
.hero .tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.hero .tag {
  background: rgba(255,255,255,0.72);
  border: 1px solid #162d4a;
  color: #162d4a;
  padding: 4px 14px;
  font-size: 13px;
  font-weight: 500;
}
/* 风电图片Banner：仅首页hero使用，紧凑高度（PC约250px、移动端约190px），深蓝遮罩保证白字可读
   图片src为相对路径 assets/banner-wind-farm.webp（本地/线上双端正常） */
.hero.hero-img {
  position: relative;
  min-height: 250px;
  overflow: hidden;
  padding: 0;
  display: flex;
  align-items: center;
  background: #fff url('../banner-city.webp') center/cover no-repeat;
}
.hero.hero-img .hero-img-el {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.hero.hero-img .hero-img-overlay {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.18);
  z-index: 1;
}
.hero.hero-img .hero-img-content {
  position: relative;
  z-index: 2;
  padding: 22px 32px;
  width: 100%;
}
.hero-slogan {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-left: 16px;
}
.slogan-line {
  margin: 0;
  font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  letter-spacing: 2px;
}
.slogan-top {
  font-size: 34px;
  font-weight: 500;
  color: #162d4a;
  line-height: 1.3;
}
.slogan-bottom {
  font-size: 22px;
  font-weight: 400;
  color: #4a6a8a;
  line-height: 1.3;
  letter-spacing: 2px;
}
.hero.hero-img h1 { color: #162d4a; }
.hero.hero-img p { color: #5a7a9a; }
.hero.hero-img .tags { color: #162d4a; }
/* Banner 标题排：小头像 + 大标题；大标题字重 Medium-500（非Heavy粗黑），仅Banner生效 */
.hero.hero-img .hero-title-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 10px;
}
.hero.hero-img .hero-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.65);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  flex-shrink: 0;
}
.hero.hero-img h1 {
  font-weight: 500;
  font-family: "PingFang SC", "Microsoft YaHei", "Segoe UI", Arial, sans-serif;
  letter-spacing: 1px;
}
/* 副标题两行展示 */
.hero.hero-img .hero-sub { line-height: 1.75; margin-bottom: 8px; color: #6B829E; font-weight: 400; }
.hero.hero-img .tags { margin-top: 4px; }
.hero.hero-img .hero-title-row { margin-bottom: 8px; }
@media (max-width: 768px) {
  .hero.hero-img .hero-avatar { width: 44px; height: 44px; }
  .hero.hero-img .hero-title-row { gap: 10px; margin-bottom: 6px; }
  .hero.hero-img h1 { font-size: 19px; letter-spacing: 0.5px; }
  .hero.hero-img .hero-sub { line-height: 1.6; font-size: 13px; margin-bottom: 6px; }
  .hero.hero-img .tags { margin-top: 2px; }
}
@media (max-width: 768px) {
  .hero.hero-img { min-height: 190px; }
  .hero.hero-img .hero-img-content { padding: 16px 18px; }
  .hero.hero-img h1 { font-size: 20px; }
  .hero.hero-img p { font-size: 13px; }
}
@media (max-width: 720px) {
  .hero { padding: 24px 20px; border-radius: 12px; }
  .hero h1 { font-size: 21px; }
}

.section-title {
  font-size: 20px;
  font-weight: 500;
  margin: 30px 0 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.section-title::before {
  content: "";
  width: 4px; height: 20px;
  background: var(--primary);
  border-radius: 2px;
  display: inline-block;
}

/* 卡片 */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
  margin-bottom: 18px;
}
.card h2 { font-size: 18px; margin-bottom: 10px; }
.card h3 { font-size: 16px; margin: 14px 0 8px; }

/* 首页二维码 */
.qr-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 18px;
  margin: 14px 0;
}
.qr-item {
  text-align: center;
  padding: 18px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #FAFBFC;
}
.qr-item img {
  width: 200px; height: 200px;
  object-fit: contain;
  border-radius: 8px;
  background: #fff;
}
.qr-item .qr-name { font-weight: 600; margin-top: 10px; }
.qr-item .qr-tip { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
@media (max-width: 600px) {
  .qr-grid { grid-template-columns: 1fr; }
  .qr-item img { width: 170px; height: 170px; }
}

/* 导航入口卡片 */
.nav-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.nav-card {
  display: block;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 22px;
  box-shadow: var(--shadow);
  transition: all .18s ease;
}
.nav-card:hover {
  border-color: var(--primary);
  box-shadow: 0 4px 16px rgba(22,93,255,.18);
  text-decoration: none;
  transform: translateY(-2px);
}
.nav-card .ico {
  width: 46px; height: 46px;
  border-radius: 10px;
  background: var(--primary-light);
  color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 24px;
  margin-bottom: 12px;
}
.nav-card h3 { color: var(--text); font-size: 17px; margin-bottom: 6px; }
.nav-card p { color: var(--text-secondary); font-size: 13.5px; }
@media (max-width: 600px) { .nav-cards { grid-template-columns: 1fr; } }

/* ---------- 工具中心 ---------- */
.intro-note {
  background: var(--primary-light);
  border: 1px solid #BEDAFF;
  border-radius: var(--radius);
  padding: 12px 16px;
  font-size: 13.5px;
  color: var(--text-secondary);
  margin-bottom: 20px;
}
.tool-table-wrap { overflow-x: auto; }
table.tool-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  font-size: 14px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  min-width: 640px;
}
table.tool-table th {
  background: #DDEBFF;
  color: #1D337A;
  font-weight: 600;
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid #C7DDFF;
  white-space: nowrap;
}
table.tool-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
table.tool-table tbody tr:nth-child(even) td { background: #F7F9FC; }
table.tool-table tr:last-child td { border-bottom: none; }
table.tool-table tr:hover td { background: #EDF4FF; }
table.tool-table .tname { font-weight: 600; }
table.tool-table code {
  background: #F2F3F5;
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 12px;
  color: var(--text-secondary);
  font-family: Consolas, Menlo, monospace;
}
.badge {
  display: inline-block;
  font-size: 12px;
  padding: 1px 8px;
  border-radius: 999px;
  background: var(--primary-light);
  color: var(--primary);
  white-space: nowrap;
}
.btn-mini {
  display: inline-block;
  background: var(--primary);
  color: #fff !important;
  padding: 4px 14px;
  border-radius: 6px;
  font-size: 13px;
  white-space: nowrap;
}
.btn-mini:hover { background: var(--primary-dark); text-decoration: none; }

/* ---------- 计算器 ---------- */
.calc-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; }
/* PC大屏≥1200px：左右双栏 —— 左栏参数输入表单52%，右栏计算结果面板44%，输入与结果同屏对照 */
@media (min-width: 1200px) {
  .calc-layout.two-col {
    grid-template-columns: 52% 44%;
    column-gap: 4%;
    align-items: start;
  }
  .calc-layout.two-col .card { padding: 26px 28px; }
  .calc-layout.two-col #calc-result-card { position: sticky; top: 76px; }
}
/* 平板与手机（<1200px）：上下竖向流式布局，手机端体验不变 */
.calc-section-title {
  font-size: 15px;
  font-weight: 500;
  color: var(--primary);
  margin: 6px 0 12px;
  padding: 4px 10px 4px 12px;
  border-left: 3px solid var(--primary);
  background: linear-gradient(90deg, #F2F7FF 0%, rgba(242, 247, 255, 0) 90%);
  border-radius: 0 6px 6px 0;
}
.field {
  margin-bottom: 13px;
}
.field label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 5px;
  font-size: 14px;
  color: var(--text);
  font-weight: 500;
}
.field .unit {
  color: var(--text-muted);
  font-weight: 400;
  font-size: 12.5px;
  white-space: nowrap;
}
.field .control { display: flex; gap: 8px; }
.field input[type="number"],
.field input[type="text"],
.field select {
  width: 100%;
  padding: 8px 11px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 15px;
  color: var(--text);
  background: #fff;
  outline: none;
  transition: border .15s;
  font-family: inherit;
}
.field input:focus, .field select:focus { border-color: var(--primary); box-shadow: 0 0 0 2px rgba(22,93,255,.12); }
.field input.invalid { border-color: var(--danger); background: #FFF7F5; }
/* 固定规则：占位提示数据（预设推荐值/录入示例）统一淡色，与用户实际输入明显区分 */
.field input::placeholder { color: #B7BFCC; opacity: 1; font-weight: 400; }
.field input::-webkit-input-placeholder { color: #B7BFCC; opacity: 1; }
.field input::-moz-placeholder { color: #B7BFCC; opacity: 1; }
.calc-rowpair input::placeholder { color: #B7BFCC; opacity: 1; }
.calc-rowpair input::-webkit-input-placeholder { color: #B7BFCC; opacity: 1; }
.field .hint { font-size: 12px; color: var(--text-muted); margin-top: 3px; }
/* 录入行组（规格+长度并排）：PC两列并排，手机自动上下堆叠，不横向溢出 */
.calc-rowpair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 14px;
  padding: 10px 12px;
  margin-bottom: 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #FBFCFE;
}
.calc-rowpair .field { margin-bottom: 0; }
.calc-rowpair input[type="number"], .calc-rowpair input[type="text"], .calc-rowpair select { width: 100%; }
/* v28：移动端保持calc-rowpair两列并排（规格+长度一组，不需单列） */
.calc-actions { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: none;
  border-radius: 8px;
  padding: 9px 26px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  transition: all .15s;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-ghost { background: #fff; color: var(--text-secondary); border: 1px solid var(--border); }
.btn-ghost:hover { color: var(--primary); border-color: var(--primary); }

/* 结果区 */
.result-empty {
  color: var(--text-muted);
  text-align: center;
  padding: 46px 10px;
  font-size: 14px;
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  background: #FAFBFC;
}
.result-block { animation: fadeIn .25s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.result-section-title {
  font-size: 15px;
  font-weight: 500;
  color: var(--primary);
  margin: 18px 0 10px;
  padding: 4px 10px 4px 12px;
  border-left: 3px solid var(--primary);
  background: linear-gradient(90deg, #F2F7FF 0%, rgba(242, 247, 255, 0) 90%);
  border-radius: 0 6px 6px 0;
}
table.result-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 8px;
  background: #fff;
}
table.result-table th {
  background: #F2F7FF;
  text-align: left;
  padding: 8px 12px;
  color: var(--text-secondary);
  font-weight: 600;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
table.result-table td {
  padding: 8px 12px;
  border-bottom: 1px solid var(--border);
  word-break: break-all;
}
table.result-table .tname { min-width: 130px; width: 34%; white-space: normal; }
table.result-table tr:last-child td { border-bottom: none; }
table.result-table .rv { font-weight: 600; color: var(--primary-dark); font-variant-numeric: tabular-nums; word-break: break-word; }
table.result-table .rf { font-size: 12px; color: var(--text-muted); }
.verdict {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 8px;
  margin: 12px 0;
  font-size: 14.5px;
  font-weight: 600;
}
.verdict.ok { background: var(--success-bg); color: var(--success); border: 1px solid #AFF0BD; }
.verdict.warn { background: var(--warning-bg); color: var(--warning); border: 1px solid #FFDDBA; }
.verdict.bad { background: var(--danger-bg); color: var(--danger); border: 1px solid #FDAC9A; }
.verdict.info { background: var(--primary-light); color: var(--primary); border: 1px solid #BEDAFF; }
.calc-error {
  background: var(--danger-bg);
  border: 1px solid #FDAC9A;
  color: var(--danger);
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 14px;
  margin: 10px 0;
}

/* ---------- 技术资料库 ---------- */
.manual-table-wrap { overflow-x: auto; }
#manuals-list .card { padding: 20px 22px; margin-bottom: 26px; }
#manuals-list + * { margin-top: 6px; }

/* view.html 手册阅读 */
.reader-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}
@media (max-width: 860px) {
  .reader-layout { grid-template-columns: 1fr; }
  .reader-toc { position: static !important; max-height: 260px !important; }
}
.reader-toc {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  position: sticky;
  top: 76px;
  max-height: calc(100vh - 96px);
  overflow-y: auto;
}
.reader-toc h4 { font-size: 14px; color: var(--text-secondary); margin-bottom: 10px; }
.reader-toc a {
  display: block;
  font-size: 13px;
  color: var(--text-secondary);
  padding: 4px 8px;
  border-radius: 6px;
  border-left: 2px solid transparent;
  margin-bottom: 2px;
}
.reader-toc a:hover { color: var(--primary); background: var(--primary-light); text-decoration: none; }
.reader-content {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 32px;
  min-height: 300px;
}
@media (max-width: 720px) { .reader-content { padding: 20px 16px; } }
.markdown-body h1 { font-size: 24px; margin: 18px 0 14px; padding-bottom: 10px; border-bottom: 1px solid var(--border); }
.markdown-body h2 { font-size: 20px; margin: 24px 0 10px; color: var(--primary-dark); }
.markdown-body h3 { font-size: 17px; margin: 18px 0 8px; }
.markdown-body h4 { font-size: 15px; margin: 14px 0 6px; }
.markdown-body p { margin: 8px 0; }
.markdown-body ul, .markdown-body ol { padding-left: 24px; margin: 8px 0; }
.markdown-body li { margin: 4px 0; }
.markdown-body blockquote {
  border-left: 4px solid var(--primary);
  background: var(--primary-light);
  padding: 8px 14px;
  border-radius: 0 8px 8px 0;
  margin: 10px 0;
  color: var(--text-secondary);
}
.markdown-body code {
  background: #F2F3F5;
  padding: 1px 6px;
  border-radius: 4px;
  font-size: .92em;
  font-family: Consolas, Menlo, monospace;
}
.markdown-body pre {
  background: #F7F8FA;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 14px;
  overflow-x: auto;
  margin: 10px 0;
}
.markdown-body pre code { background: none; padding: 0; }
.markdown-body table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
  margin: 12px 0;
  display: block;
  overflow-x: auto;
}
.markdown-body table th, .markdown-body table td {
  border: 1px solid var(--border);
  padding: 6px 10px;
}
.markdown-body table th { background: #F2F7FF; }
.markdown-body img { max-width: 100%; border-radius: 6px; }
.markdown-body hr { border: none; border-top: 1px solid var(--border); margin: 18px 0; }
.markdown-body a { word-break: break-all; }
.search-bar { display: flex; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; }
.search-bar input {
  flex: 1;
  min-width: 180px;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
  outline: none;
  font-family: inherit;
}
.search-bar input:focus { border-color: var(--primary); }
.search-bar .match-info { font-size: 12.5px; color: var(--text-muted); align-self: center; }
mark.kw-hit { background: #FFE58F; padding: 0 2px; border-radius: 3px; }

/* ---------- 页脚 ---------- */
.site-footer {
  margin-top: 30px;
  border-top: 1px solid var(--border);
  background: #fff;
  padding: 22px 20px 26px;
  font-size: 13px;
  color: var(--text-muted);
}
.footer-inner { max-width: var(--maxw); margin: 0 auto; text-align: center; }
.footer-inner p { margin: 4px 0; }
.footer-inner .ft-title { color: var(--text-secondary); font-weight: 600; }
.footer-inner .ft-disclaimer {
  background: #FFF7E8;
  color: var(--warning);
  border-radius: 8px;
  padding: 8px 14px;
  display: inline-block;
  margin: 8px 0;
  font-size: 12.5px;
}
.footer-inner .ft-copy { font-size: 12px; }

/* 杂项 */
.loading { text-align: center; color: var(--text-muted); padding: 60px 0; }
.loading .spin {
  width: 28px; height: 28px;
  border: 3px solid var(--primary-light);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin .8s linear infinite;
  margin: 0 auto 12px;
}
@keyframes spin { to { transform: rotate(360deg); } }
.crumb { font-size: 13px; color: var(--text-muted); margin-bottom: 14px; }
.crumb a { color: var(--text-muted); }
.crumb a:hover { color: var(--primary); }
.calc-source-note {
  font-size: 12.5px;
  color: var(--text-muted);
  background: #F7F8FA;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 12px;
  margin-top: 12px;
}

/* ---------- 工具中心分层展示（板块A/B → 子分组 → 表格） ---------- */
.section-divider {
  border: none;
  border-top: 2px dashed var(--border);
  margin: 38px 0 6px;
}
.section-desc {
  font-size: 13.5px;
  color: var(--text-secondary);
  background: var(--primary-light);
  border: 1px solid #BEDAFF;
  border-radius: 8px;
  padding: 8px 14px;
  margin: 0 0 20px;
}
.subgroup-head { margin: 22px 0 10px; }
.subgroup-title {
  font-size: 16px;
  font-weight: 500;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}
.subgroup-title::before {
  content: "";
  width: 8px; height: 8px;
  background: var(--primary);
  border-radius: 2px;
  display: inline-block;
  transform: rotate(45deg);
  flex-shrink: 0;
}
.subgroup-desc {
  font-size: 13px;
  color: var(--text-muted);
  margin: 3px 0 0 16px;
}

/* ---------- 三次整合美化（2026-09） ---------- */
/* 首页Banner更舒展 */
.hero { padding: 44px 36px; border-radius: 16px; }
@media (max-width: 720px) { .hero { padding: 28px 20px; border-radius: 14px; } }

/* 卡片整体更精致 */
.card { padding: 24px; }

/* 二维码账号卡片：内边距、阴影优化 */
.qr-item {
  padding: 24px 16px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(29, 33, 41, 0.04), 0 8px 24px rgba(29, 33, 41, 0.06);
  transition: transform .18s ease, box-shadow .18s ease;
}
.qr-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(22, 93, 255, 0.10), 0 12px 28px rgba(29, 33, 41, 0.10);
}
.qr-item img { border-radius: 10px; }

/* 全站导航卡片：圆角阴影微调 */
.nav-card {
  padding: 28px 26px;
  border-radius: 14px;
}
.nav-card:hover { transform: translateY(-3px); }

/* 首页：本站说明模块 */
.site-note-list { list-style: none; }
.site-note-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 10px;
  margin-bottom: 8px;
  font-size: 14.5px;
  line-height: 1.7;
}
.site-note-list li.note-ok { background: var(--success-bg); color: #008A22; }
.site-note-list li.note-warn { background: var(--warning-bg); color: #D25F00; }
.site-note-list .note-ico { font-size: 16px; flex-shrink: 0; line-height: 1.7; }
.site-note-list b { font-weight: 500; }

/* 首页：已上线工具速览模块 */
.overview-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #FAFBFC;
  margin-bottom: 10px;
  font-size: 14px;
  line-height: 1.8;
}
.overview-row .ov-tag {
  flex-shrink: 0;
  background: var(--primary-light);
  color: var(--primary);
  font-weight: 500;
  font-size: 13px;
  padding: 2px 10px;
  border-radius: 999px;
  margin-top: 3px;
  white-space: nowrap;
}
.overview-actions { text-align: center; margin-top: 16px; }
.btn-lg {
  display: inline-block;
  background: var(--primary-gradient);
  color: #fff;
  padding: 11px 34px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  box-shadow: 0 4px 14px rgba(22, 93, 255, 0.28);
  transition: all .18s ease;
}
.btn-lg:hover {
  color: #fff;
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(22, 93, 255, 0.36);
}

/* 工具中心：板块/子分组层级增强 */
.section-title { font-size: 21px; }
.count-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  color: var(--primary);
  background: var(--primary-light);
  border: 1px solid #BEDAFF;
  border-radius: 999px;
  padding: 1px 10px;
  margin-left: 4px;
  vertical-align: 3px;
}
.subgroup-head {
  padding: 10px 14px;
  background: linear-gradient(90deg, #F2F7FF 0%, rgba(242, 247, 255, 0) 85%);
  border-left: 4px solid var(--primary);
  border-radius: 0 10px 10px 0;
}
.subgroup-title { font-size: 16.5px; }
.subgroup-desc { margin-left: 0; margin-top: 4px; }

/* ---------- 技术资料库：四大分类卡片 ---------- */
.manual-cat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 26px;
}
.manual-cat-card {
  display: block;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 22px 18px;
  box-shadow: var(--shadow);
  transition: all .18s ease;
}
.manual-cat-card:hover {
  transform: translateY(-3px);
  border-color: var(--primary);
  box-shadow: 0 6px 18px rgba(22, 93, 255, 0.16);
  text-decoration: none;
}
.manual-cat-card .mc-ico {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: var(--primary-light);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  margin-bottom: 12px;
}
.manual-cat-card .mc-title {
  font-size: 15.5px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 6px;
}
.manual-cat-card .mc-desc {
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.7;
  min-height: 64px;
}
.manual-cat-card .mc-count {
  font-size: 12px;
  color: var(--primary);
  font-weight: 600;
  border-top: 1px dashed var(--border);
  padding-top: 8px;
  margin-top: 8px;
}
/* 中等屏幕一行2张 */
@media (max-width: 960px) {
  .manual-cat-grid { grid-template-columns: repeat(2, 1fr); }
  .manual-cat-card .mc-desc { min-height: 0; }
}
/* 手机单列 */
@media (max-width: 600px) {
  .manual-cat-grid { grid-template-columns: 1fr; }
}
.manual-cat-section { margin-top: 8px; }

/* ---------- 计算器：多分区独立查询（共用字段 + 分区A/B） ---------- */
.calc-shared {
  padding: 4px 0 14px;
  border-bottom: 1px dashed var(--border);
  margin-bottom: 4px;
}
.calc-mode { position: relative; }
.calc-mode-divider {
  border: none;
  border-top: 1px dashed var(--border);
  margin: 18px 0 14px;
}
.calc-mode .calc-actions { margin-top: 12px; }
.calc-mode .btn { padding: 7px 20px; font-size: 14px; }

/* ---------- 移动端导航平铺（沿用720px断点，配色沿用主题） ---------- */
/* PC/平板：平铺导航完全维持现状，移动端快捷入口隐藏 */
.header-right { display: flex; align-items: center; gap: 8px; }
.nav-inline { display: none; }
.nav-inline a {
  padding: 8px 14px;
  border-radius: 8px;
  color: #1e3a8a;
  font-size: 15px;
  white-space: nowrap;
}
.nav-inline a:hover { background: rgba(22, 93, 255, 0.06); color: #165DFF; text-decoration: none; }
.nav-inline a.active { background: rgba(22, 93, 255, 0.08); color: #165DFF; font-weight: 500; }
/* 手机窄屏：两个核心入口常驻导航栏可视区，字号缩小适配；汉堡菜单保留全部条目做双重兜底 */
@media (max-width: 720px) {
  .header-right { gap: 2px; min-width: 0; }
  .nav-inline { display: flex; gap: 4px; flex: 1; min-width: 0; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .nav-inline::-webkit-scrollbar { display: none; }
  .nav-inline a { font-size: 12px; padding: 5px 8px; border-radius: 6px; flex-shrink: 0; }
}
@media (min-width: 721px) and (max-width: 980px) {
  .main-nav { gap: 2px; }
  .main-nav a { padding: 7px 9px; font-size: 14px; }
}
@media (max-width: 400px) {
  .nav-inline a { font-size: 11.5px; padding: 4px 6px; }
}

/* ---------- 计算工具箱三级导航（板块入口卡片 + 板块清单页） ---------- */
.section-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.section-card {
  display: block;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
  box-shadow: var(--shadow);
  transition: all .18s ease;
}
.section-card:hover {
  transform: translateY(-3px);
  border-color: var(--primary);
  box-shadow: 0 6px 18px rgba(22, 93, 255, 0.16);
  text-decoration: none;
}
.section-card .sc-head {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 8px;
}
.section-card .sc-ico {
  width: 34px; height: 34px;
  border-radius: 8px;
  background: var(--primary-light);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}
.section-card .sc-title { font-size: 15px; font-weight: 600; color: var(--text); line-height: 1.4; }
.section-card .sc-desc { font-size: 12px; color: var(--text-muted); line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.section-card .sc-count {
  font-size: 12px; color: var(--primary); font-weight: 600;
  border-top: 1px dashed var(--border); padding-top: 6px; margin-top: 8px;
}
@media (max-width: 960px) {
  .section-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .section-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .section-card { padding: 11px 11px; }
  .section-card .sc-head { gap: 8px; margin-bottom: 6px; }
  .section-card .sc-ico { width: 28px; height: 28px; font-size: 15px; }
  .section-card .sc-title { font-size: 13px; }
  .section-card .sc-desc { font-size: 11px; -webkit-line-clamp: 2; }
  .section-card .sc-count { font-size: 11px; padding-top: 5px; margin-top: 6px; }
}
/* 板块清单页：自适应窄屏，禁止横向滚动 */
.section-page-desc { color: #4E5969; font-size: 14px; margin-bottom: 18px; line-height: 1.7; }
.section-table-wrap { padding: 12px 14px; }
table.section-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  background: #fff;
  border: 1px solid var(--border);
  table-layout: auto;
}
table.section-table th {
  background: #DDEBFF; color: #1D337A; font-weight: 600; text-align: left;
  padding: 9px 10px; border-bottom: 1px solid #C7DDFF; white-space: nowrap;
}
table.section-table td {
  padding: 9px 10px; border-bottom: 1px solid var(--border);
  vertical-align: middle; word-break: break-word; overflow-wrap: anywhere;
}
table.section-table tbody tr:nth-child(even) td { background: #F7F9FC; }
table.section-table tbody tr:hover td { background: #EDF4FF; }
table.section-table .st-seq { width: 44px; color: var(--text-secondary); }
table.section-table .st-name { font-weight: 600; }
table.section-table .st-note { color: #86909C; font-size: 12.5px; }
table.section-table .st-act { width: 92px; white-space: nowrap; }
table.section-table .st-append {
  color: #86909C; font-size: 12px; text-align: center; padding: 8px 10px;
}
/* 手机端：表格改为行卡片式堆叠，杜绝横向滚动 */
@media (max-width: 640px) {
  .section-table-wrap { padding: 10px; }
  table.section-table, table.section-table tbody,
  table.section-table tr, table.section-table td { display: block; width: 100%; }
  table.section-table thead { display: none; }
  table.section-table tr { border: 1px solid var(--border); border-radius: 8px; margin-bottom: 10px; overflow: hidden; }
  table.section-table td { border-bottom: 1px dashed var(--border); padding: 7px 10px; }
  table.section-table tr:last-child td { border-bottom: none; }
  table.section-table td.st-seq { display: none; }
  table.section-table td.st-name { font-size: 14.5px; }
  table.section-table td.st-note::before { content: "备注："; color: #A8B2BF; }
  table.section-table td.st-act { text-align: right; }
  table.section-table td.st-append { text-align: center; }
}

/* 板块内工具列表：三列卡片（PC 3列与分类一致，手机2列），减少翻页 */
.tool-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.tool-card {
  display: block;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px 16px 14px;
  box-shadow: var(--shadow);
  transition: all .18s ease;
}
.tool-card:hover {
  transform: translateY(-2px);
  border-color: var(--primary);
  box-shadow: 0 6px 16px rgba(22, 93, 255, 0.14);
  text-decoration: none;
}
.tool-card .tc-title { font-size: 15px; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.tool-card .tc-note { font-size: 12.5px; color: var(--text-muted); line-height: 1.7; min-height: 40px; }
.tool-card .tc-act { font-size: 13px; color: var(--primary); font-weight: 600; margin-top: 8px; }
/* 移动端：工具卡片保持双列（更紧凑字号），杜绝单列冗长滚动 */
@media (max-width: 640px) {
  .tool-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .tool-card { padding: 12px 11px 10px; border-radius: 8px; }
  .tool-card .tc-title { font-size: 13.5px; margin-bottom: 4px; }
  .tool-card .tc-note { min-height: 0; font-size: 11.5px; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
  .tool-card .tc-act { font-size: 12px; margin-top: 6px; }
}

/* 首页更新日志摘要卡片 */
.update-summary { line-height: 1.9; font-size: 14.5px; color: var(--text-secondary); }
.update-summary .us-date { font-weight: 500; color: var(--primary); font-size: 15px; margin-bottom: 8px; }
.update-summary .us-row { display: flex; gap: 8px; padding: 4px 0; align-items: flex-start; }
.update-summary .us-ico { flex-shrink: 0; }
.update-summary .us-row b { color: var(--text); font-weight: 600; }
.update-summary .us-link { margin-top: 12px; }
.update-summary .us-link a { color: var(--primary); font-weight: 600; text-decoration: none; }
.update-summary .us-link a:hover { text-decoration: underline; }
@media (max-width: 600px) {
  .update-summary { font-size: 13.5px; }
}

/* ===== v26 增量：首页卡片直角 + 移动端表单双列 ===== */
/* 首页全部卡片直角方正（阴影、间距保持原风格） */
#home-page .card,
#home-page .qr-item,
#home-page .nav-card,
#home-page .site-note-list li {
  border-radius: 0 !important;
}

/* 移动端冗长表单双列布局（PC端≥1200px维持原左右分栏不变） */
@media (min-width: 360px) and (max-width: 1199px) {
  .calc-mode-fields,
  .calc-shared,
  #calc-form.single-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 14px;
  }
  .calc-mode-fields .field,
  .calc-shared .field,
  #calc-form.single-form .field { margin-bottom: 0; }
  #calc-form.single-form .calc-section-title,
  #calc-form.single-form .calc-actions { grid-column: 1 / -1; }
  /* zones模式：静态参数区 + 动态字段区均双列，分区标题跨列 */
  #zone-params-box, #zone-fields-box {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 14px;
  }
  #zone-params-box .calc-section-title,
  #zone-fields-box .calc-section-title { grid-column: 1 / -1; }
  #zone-params-box .field,
  #zone-fields-box .field { margin-bottom: 0; }
  /* rowpair行组模式：每组跨整行，内部保持两列并排 */
  #zone-fields-box .calc-rowpair { grid-column: 1 / -1; }
}
/* 极窄屏（<360px）回退单列，杜绝横向溢出 */
@media (max-width: 359px) {
  .calc-mode-fields, .calc-shared, #zone-params-box, #zone-fields-box, #calc-form.single-form { display: block; }
}

/* ===== v26.1 修复：全站直角 + 结果表移动端卡片式 ===== */
/* 全站所有元素直角方正（圆形头像除外） */
* { border-radius: 0 !important; }
.hero img, .avatar, img.avatar { border-radius: 50% !important; }

/* 结果表：移动端改为纵向卡片式，杜绝横向挤压与label竖排 */
@media (max-width: 768px) {
  table.result-table,
  table.result-table tbody,
  table.result-table tr,
  table.result-table td {
    display: block;
    width: 100%;
    box-sizing: border-box;
  }
  table.result-table thead { display: none; }
  table.result-table tr {
    border-bottom: 1px solid var(--border);
    padding: 12px 4px;
  }
  table.result-table tr:last-child { border-bottom: none; }
  table.result-table td {
    border: none !important;
    padding: 2px 0 !important;
    text-align: left !important;
    white-space: normal !important;
    word-break: break-word;
  }
  table.result-table .tname {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
  }
  table.result-table .rv {
    font-size: 18px;
    font-weight: 500;
    color: var(--primary-dark);
  }
  table.result-table .rf {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 2px;
  }
  /* 判定结论卡片 */
  .verdict { padding: 12px 14px; font-size: 14px; line-height: 1.7; }
}

/* 长文本强制换行，杜绝横向溢出 */
.calc-source-note, .calc-error, .verdict, .result-empty, .field .hint, .section-page-desc, p {
  word-break: break-word;
  overflow-wrap: break-word;
}

/* v26.5 移动端hero单独优化：标签2x2等宽、副标题行高、背景图位置 */
@media (max-width: 768px) {
  .hero.hero-img {
    min-height: 200px;
    background-position: right center;
  }
  .hero.hero-img .hero-img-content { padding: 14px 16px; }
  .hero.hero-img h1 { font-size: 19px; letter-spacing: 0.3px; }
  .hero.hero-img .hero-sub {
    font-size: 12.5px;
    line-height: 1.75;
    margin-bottom: 8px;
    opacity: 0.95;
  }
  .hero.hero-img .tags {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 6px;
  }
  .hero.hero-img .tag {
    text-align: center;
    padding: 6px 8px;
    font-size: 12.5px;
  }
  .hero.hero-img .hero-avatar { width: 40px; height: 40px; }
  .hero.hero-img .hero-title-row { gap: 8px; margin-bottom: 6px; }
}
@media (max-width: 360px) {
  .hero.hero-img h1 { font-size: 17px; }
  .hero.hero-img .hero-sub { font-size: 12px; }
}

/* ===== v28 全站浅水印（老许工作箱Logo，不影响交互） ===== */
body::after {
  content: '';
  position: fixed;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  background-image: url('../logo-watermark-tile.webp');
  background-repeat: repeat;
  background-size: 320px;
  opacity: 0.025;
  pointer-events: none;
  z-index: 9999;
  transform: rotate(-30deg);
}
@media (max-width: 768px) {
  body::after { background-size: 260px; opacity: 0.025; }
}

/* 导航栏Logo */
.brand { display: flex; align-items: center; gap: 10px; }
.brand-logo { width: 40px; height: 40px; object-fit: contain; flex-shrink: 0; display: block; }
.brand > span { display: inline-block; vertical-align: middle; font-weight: 600; width: 152px; text-align: justify; text-align-last: justify; }
.brand > span > .sub { display: block; margin-top: 3px; font-weight: 400; line-height: 1.15; font-size: 11px; color: #6B829E; text-align: justify; text-align-last: justify; }
@media (max-width: 720px) {
  .hero.hero-img { min-height: 180px; }
  .hero-slogan { gap: 8px; padding-left: 4px; }
  .slogan-top { font-size: 22px; letter-spacing: 1px; }
  .slogan-bottom { font-size: 15px; letter-spacing: 1px; }
  .header-inner { padding: 0 10px; }
  .brand-logo { width: 30px; height: 30px; }
  .brand > span { width: auto; text-align: left; text-align-last: auto; font-size: 15px; letter-spacing: 0.5px; margin-left: 4px; }
  .brand > span > .sub { display: none !important; }
  .nav-inline { display: flex; gap: 0; }
  .nav-inline a { font-size: 12px; padding: 4px 6px; border: 1px solid rgba(22,93,255,0.12); border-radius: 3px; background: rgba(22,93,255,0.03); white-space: nowrap; }
  .main-nav a { font-size: 16px; padding: 12px 16px; border-bottom: 1px solid rgba(22,93,255,0.08); display: block; }
  .main-nav a:last-child { border-bottom: none; }
  .nav-toggle { font-size: 18px; padding: 5px 8px; border: 1px solid rgba(22,93,255,0.2); border-radius: 4px; background: rgba(22,93,255,0.05); margin-left: 6px; }
  .header-right { gap: 4px; }
}

/* ===== v52 留言板（Twikoo）适配：直角卡片、移动端舒适 ===== */
.msg-guide {
  font-size: 13.5px;
  color: var(--text-muted);
  background: var(--primary-bg, #F0F5FF);
  border: 1px solid rgba(22, 93, 255, 0.1);
  border-radius: 0;
  padding: 10px 14px;
  margin-bottom: 16px;
}
#twikoo { min-height: 60px; }
#twikoo .tk-comments-container .tk-submit,
#twikoo textarea.tk-avatar,
#twikoo input {
  border-radius: 0 !important;
}
#twikoo .tk-action,
#twikoo .tk-comments-title {
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
}
#twikoo .tk-btn {
  border-radius: 0 !important;
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
}
@media (max-width: 600px) {
  #twikoo .tk-row { flex-wrap: wrap; }
  #twikoo .tk-col { min-width: 0 !important; }
  .msg-guide { font-size: 12.5px; padding: 8px 10px; }
}

/* ===== v56 留言板风格与全站协调 ===== */
#twikoo * { border-radius: 0 !important; font-family: "PingFang SC", "Microsoft YaHei", sans-serif !important; }
#twikoo input,
#twikoo textarea {
  border-color: #E5E6EB !important;
  background: #fff;
  color: #1D2129;
  font-size: 14px;
}
#twikoo input:focus,
#twikoo textarea:focus {
  border-color: var(--primary) !important;
  box-shadow: 0 0 0 2px rgba(22, 93, 255, 0.12) !important;
  outline: none;
}
#twikoo .tk-avatar,
#twikoo .tk-avatar img,
#twikoo .tk-tag,
#twikoo .tk-tag-green,
#twikoo .tk-tag-blue,
#twikoo .tk-tag-yellow,
#twikoo .tk-tag-red { border-radius: 0 !important; }
#twikoo .tk-comments-container .tk-submit,
#twikoo .tk-submit {
  background-color: var(--primary) !important;
  border: none !important;
  color: #fff !important;
}
#twikoo .tk-submit:hover { background-color: var(--primary-dark) !important; }
#twikoo .tk-btn { color: var(--primary); }
#twikoo .tk-btn:hover { color: var(--primary-dark); background: var(--primary-light); }
#twikoo .tk-comments-title,
#twikoo .tk-nick,
#twikoo .tk-nick-name { color: #1D2129; }
#twikoo .tk-content,
#twikoo .tk-comment-content,
#twikoo .tk-comments-container .tk-comment { color: #4E5969; }
#twikoo .tk-comments-container .tk-comment { border-bottom-color: #F2F3F5 !important; }
#twikoo .tk-time,
#twikoo .tk-meta,
#twikoo .tk-extras { color: #86909C !important; }
#twikoo .tk-action { color: var(--primary); }
#twikoo .tk-icon__svg { fill: #4E5969; }
#twikoo .tk-row { margin: 0 -4px; }
#twikoo .tk-col { padding: 0 4px; }

/* ===== v56.1 留言板 UI 优化：去头像占位、主色按钮、紧凑布局 ===== */
#twikoo .tk-avatar { display: none !important; }
#twikoo .tk-col { width: 100% !important; max-width: 100% !important; padding: 0 !important; }
#twikoo .tk-submit { padding: 0 !important; }
#twikoo .tk-meta-input { margin-bottom: 10px; }
#twikoo .el-input-group__prepend {
  background: #F7F8FA !important;
  color: #4E5969 !important;
  border-color: #E5E6EB !important;
  padding: 0 12px !important;
  font-size: 13px !important;
}
#twikoo .el-input__inner,
#twikoo textarea {
  border-color: #E5E6EB !important;
  font-size: 14px !important;
  color: #1D2129 !important;
}
#twikoo .el-input__inner { height: 38px !important; line-height: 38px !important; }
#twikoo textarea { line-height: 1.7 !important; padding: 10px 12px !important; min-height: 110px !important; resize: vertical; }
#twikoo .el-textarea__inner { box-shadow: none !important; }
#twikoo .tk-submit-actions { margin-top: 10px; }
#twikoo .tk-send.el-button--primary,
#twikoo .el-button.tk-send {
  background-color: var(--primary) !important;
  border-color: var(--primary) !important;
  color: #fff !important;
  border-radius: 0 !important;
  font-weight: 500 !important;
  padding: 8px 26px !important;
  height: 36px !important;
}
#twikoo .tk-send.el-button--primary:hover { background-color: var(--primary-dark) !important; border-color: var(--primary-dark) !important; }
#twikoo .tk-preview.el-button {
  border-radius: 0 !important;
  color: #4E5969 !important;
  padding: 8px 18px !important;
  height: 36px !important;
}
#twikoo .tk-preview.el-button:hover { color: var(--primary) !important; border-color: var(--primary) !important; background: var(--primary-light) !important; }
#twikoo .tk-comments-container { margin-top: 8px; }
#twikoo .tk-comments-title { font-size: 15px !important; color: #1D2129 !important; margin: 18px 0 10px !important; }
#twikoo .tk-comment { padding: 12px 0 !important; }
#twikoo .tk-comment .tk-avatar { display: block !important; width: 38px !important; height: 38px !important; }
#twikoo .tk-comment .tk-avatar-img { width: 38px !important; height: 38px !important; border-radius: 0 !important; }
#twikoo .tk-nick, #twikoo .tk-nick-name { font-weight: 600 !important; color: #1D2129 !important; }
#twikoo .tk-content { color: #4E5969 !important; font-size: 14px !important; }
#twikoo .tk-comments-container .tk-btn, #twikoo .tk-action { color: var(--primary) !important; }
#twikoo .tk-comments-container .tk-btn:hover { color: var(--primary-dark) !important; }
#twikoo .tk-icon__svg { fill: #86909C; }
#twikoo .tk-tag, #twikoo .tk-tag-blue { background: var(--primary-light) !important; color: var(--primary) !important; border-radius: 0 !important; }
#twikoo .tk-comments-no-content { color: #86909C !important; padding: 18px 0 !important; text-align: center; }
#twikoo .tk-footer { text-align: right; }
@media (max-width: 600px) {
  #twikoo .tk-meta-input .el-input { margin-bottom: 6px; }
  #twikoo .tk-submit-actions { flex-wrap: wrap; }
  #twikoo .tk-send.el-button--primary { padding: 7px 20px !important; }
}

/* ===== v56.2 留言板进一步紧凑：压缩间距、收紧文本区 ===== */
.msg-guide { margin-bottom: 10px !important; }
#twikoo .tk-submit { margin-top: 0 !important; }
#twikoo textarea { min-height: 100px !important; }
#twikoo .tk-meta-input { margin-bottom: 8px !important; }
#twikoo .tk-submit-actions { margin-top: 8px !important; }
#twikoo .tk-meta-input .el-input-group__prepend { padding: 0 10px !important; }

/* ===== v56.3 压掉留言板全部蓝色残留（Element 默认蓝） ===== */
#twikoo .el-input__inner:focus,
#twikoo .el-textarea__inner:focus { border-color: var(--primary) !important; }
#twikoo .el-input.is-focus .el-input__wrapper,
#twikoo .el-textarea__inner { box-shadow: none !important; }
#twikoo .el-button { border-radius: 0 !important; font-family: "PingFang SC","Microsoft YaHei",sans-serif !important; }
#twikoo .el-button--primary,
#twikoo .el-button--primary.is-plain { background-color: var(--primary) !important; border-color: var(--primary) !important; }
#twikoo .el-button--primary:hover,
#twikoo .el-button--primary.is-plain:hover { background-color: var(--primary-dark) !important; border-color: var(--primary-dark) !important; }
#twikoo .tk-send.is-disabled,
#twikoo .el-button--primary.is-disabled { background-color: #C9CDD4 !important; border-color: #C9CDD4 !important; color: #fff !important; }
#twikoo .tk-emoji-item:hover { background: var(--primary-light) !important; }
#twikoo .el-tag,
#twikoo .tk-tag,
#twikoo .tk-tag-green,
#twikoo .tk-tag-blue { border-radius: 0 !important; }
#twikoo .tk-actions, #twikoo .tk-actions .tk-btn { color: var(--primary) !important; }
#twikoo .tk-actions .tk-btn:hover { color: var(--primary-dark) !important; background: transparent !important; }
#twikoo .tk-comments-title .tk-icon, #twikoo .tk-icon { fill: var(--primary) !important; }
#twikoo .tk-content a { color: var(--primary); }
