/* =====================================================
   收银系统企业网站 - 前台样式 (UTF-8)
   科技感深色主题 · 响应式适配 PC / 平板 / 手机
   ===================================================== */
:root {
  --bg: #0b1026;
  --bg2: #101735;
  --card: #131c3d;
  --line: #22315f;
  --primary: #4f8cff;
  --primary2: #6a5cff;
  --accent: #00e5c0;
  --text: #dbe4ff;
  --text2: #9fb3e8;
  --muted: #5f719f;
  --radius: 14px;
  --shadow: 0 12px 36px rgba(0, 0, 0, .35);
  /* 刘海屏安全区（viewport-fit=cover 生效） */
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
  --header-h: 64px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  /* 大气背景：顶部蓝色光晕 + 左下紫雾 + 右下青光，固定不随滚动 */
  background:
    radial-gradient(ellipse 80% 46% at 50% -8%, rgba(79, 140, 255, .17), transparent 62%),
    radial-gradient(ellipse 55% 40% at 0% 82%, rgba(106, 92, 255, .08), transparent 60%),
    radial-gradient(ellipse 50% 36% at 100% 96%, rgba(0, 229, 192, .06), transparent 58%),
    var(--bg);
  background-attachment: fixed;
  color: var(--text);
  font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
/* 细网格科技纹理（顶部可见，向下淡出），z-index:-1 不遮挡内容 */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(rgba(79, 140, 255, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(79, 140, 255, .045) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(ellipse 95% 72% at 50% 0%, #000 0%, transparent 78%);
  mask-image: radial-gradient(ellipse 95% 72% at 50% 0%, #000 0%, transparent 78%);
}
a { color: inherit; text-decoration: none; transition: color .2s; }
img { max-width: 100%; display: block; }
/* 懒加载图片：未加载时占位，避免布局抖动（CLS） */
img[loading="lazy"] { background: linear-gradient(100deg, #131c3d 30%, #1a2450 50%, #131c3d 70%); }
img[loading="lazy"][src] { background: none; }
.container { max-width: 1180px; margin: 0 auto; padding: 0 20px; padding-left: max(20px, var(--safe-left)); padding-right: max(20px, var(--safe-right)); }

/* ---------- 网站动态（公告栏） ---------- */
.site-notice {
  background: linear-gradient(90deg, rgba(79, 140, 255, .14), rgba(0, 229, 192, .09));
  border-bottom: 1px solid var(--line);
  font-size: 13.5px;
}
.notice-inner { display: flex; align-items: center; gap: 9px; padding-top: 9px; padding-bottom: 9px; min-width: 0; }
.notice-ico { flex: none; font-size: 14px; }
.notice-link, .notice-text { color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.notice-link:hover { color: var(--accent); }
.site-notice.notice-scrolling .notice-inner { overflow: hidden; }
.notice-track { display: flex; gap: 60px; white-space: nowrap; animation: noticeScroll 22s linear infinite; }
.notice-track span { flex: none; }
@keyframes noticeScroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- 顶部导航 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(11, 16, 38, .88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.logo { display: flex; align-items: center; gap: 10px; min-width: 0; }
.logo img { width: 34px; height: 34px; }
.logo-text {
  font-size: 18px; font-weight: 700; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  background: linear-gradient(90deg, #fff, #8db4ff); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.main-nav { display: flex; gap: 4px; }
.main-nav a {
  padding: 8px 15px; border-radius: 8px; color: var(--text2); font-size: 15px; position: relative;
}
.main-nav a:hover, .main-nav a.active { color: #fff; background: rgba(79, 140, 255, .14); }
.main-nav a.active::after {
  content: ""; position: absolute; left: 15px; right: 15px; bottom: 2px; height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--primary2)); border-radius: 2px;
}
.header-right { display: flex; align-items: center; gap: 12px; }
.hotline { color: var(--accent); font-size: 14px; font-weight: 600; white-space: nowrap; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 6px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: #fff; margin: 5px 0; border-radius: 2px; transition: .25s; }

/* ---------- 轮播图 ---------- */
.carousel { position: relative; overflow: hidden; }
.carousel-track { display: flex; transition: transform .6s cubic-bezier(.4, 0, .2, 1); }
.carousel-item { min-width: 100%; position: relative; }
.carousel-item img { width: 100%; height: 460px; object-fit: cover; }
/* 轮播图双端版本：桌面端默认显示「网页端」图与文案，移动端版本在窄屏才启用
   ci-both / ci-both-text = 未单独设置移动端内容，两端共用同一份（始终可见） */
.ci-mobile { display: none; }
.ci-mobile-text { display: none; }
.carousel-item .cap {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center;
  padding: 0 max(6vw, 32px); background: linear-gradient(90deg, rgba(6, 10, 28, .82) 20%, rgba(6, 10, 28, .18) 75%);
}
.cap h2 { font-size: 42px; color: #fff; line-height: 1.3; margin-bottom: 12px; }
.cap p { font-size: 17px; color: #b9c8f5; max-width: 560px; margin-bottom: 26px; }
.cap .btn { display: inline-block; width: auto; align-self: flex-start; }
.carousel-dots { position: absolute; bottom: 18px; left: 0; right: 0; display: flex; justify-content: center; gap: 10px; }
.carousel-dots i { width: 26px; height: 4px; border-radius: 3px; background: rgba(255, 255, 255, .28); cursor: pointer; transition: .25s; }
.carousel-dots i.on { background: var(--accent); width: 38px; }
.carousel-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%;
  background: rgba(16, 23, 53, .6); color: #fff; border: 1px solid var(--line); font-size: 18px; cursor: pointer; transition: .2s;
}
.carousel-arrow:hover { background: var(--primary); }
.carousel-prev { left: 18px; } .carousel-next { right: 18px; }

/* ---------- 通用组件 ---------- */
.btn {
  display: inline-block; padding: 11px 30px; border-radius: 10px; font-size: 15px; cursor: pointer; border: 0;
  background: linear-gradient(90deg, var(--primary), var(--primary2)); color: #fff; font-weight: 600;
  transition: transform .2s, box-shadow .2s; text-align: center;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(79, 140, 255, .38); color: #fff; }
.btn-ghost { background: transparent; border: 1px solid var(--line); color: var(--text); }
.btn-ghost:hover { border-color: var(--primary); box-shadow: none; }
.btn-sm { padding: 7px 18px; font-size: 13px; border-radius: 8px; }
.section { padding: 76px 0; }
.section.alt {
  background: linear-gradient(180deg, rgba(16, 23, 53, .4), rgba(16, 23, 53, .85));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.section-head { text-align: center; margin-bottom: 48px; }
.section-head .tag {
  display: inline-block; padding: 4px 14px; border-radius: 20px; font-size: 12px; color: var(--accent);
  border: 1px solid rgba(0, 229, 192, .35); background: rgba(0, 229, 192, .07); margin-bottom: 14px; letter-spacing: 2px;
}
.section-head h2 {
  font-size: 32px; color: #fff; letter-spacing: .5px;
  background: linear-gradient(92deg, #ffffff 30%, #a8c4ff); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.section-head p { color: var(--text2); margin-top: 10px; }
/* 标题下方渐变短分隔线 */
.section-head h2::after {
  content: ""; display: block; width: 56px; height: 3px; margin: 14px auto 0; border-radius: 2px;
  background: linear-gradient(90deg, var(--primary), var(--primary2), var(--accent));
}
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: linear-gradient(180deg, rgba(79, 140, 255, .05), rgba(79, 140, 255, 0) 34%), var(--card);
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; transition: transform .25s, border-color .25s, box-shadow .25s; position: relative; overflow: hidden;
}
/* 卡片顶部 1px 渐变高光线，增强质感 */
.card::before {
  content: ""; position: absolute; top: 0; left: 12%; right: 12%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(141, 180, 255, .5), transparent);
}
.card:hover { transform: translateY(-5px); border-color: rgba(79, 140, 255, .55); box-shadow: var(--shadow); }
.card h3 { font-size: 18px; color: #fff; margin: 14px 0 8px; }
.card p { color: var(--text2); font-size: 14px; }
.card .ico {
  width: 52px; height: 52px; border-radius: 13px; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, rgba(79, 140, 255, .22), rgba(106, 92, 255, .22));
  font-size: 24px; border: 1px solid rgba(79, 140, 255, .3);
}
.card .price { color: var(--accent); font-weight: 700; font-size: 15px; margin-top: 12px; }
.card .meta { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.badge {
  font-size: 12px; padding: 3px 10px; border-radius: 20px; color: var(--primary);
  background: rgba(79, 140, 255, .1); border: 1px solid rgba(79, 140, 255, .25);
}
.badge-green { color: var(--accent); background: rgba(0, 229, 192, .08); border-color: rgba(0, 229, 192, .3); }

/* ---------- 数据统计条 ---------- */
.stats-bar { background: linear-gradient(90deg, #14205c, #1b2a6b); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; padding-top: 34px; padding-bottom: 34px; }
.stat { text-align: center; }
.stat b { display: block; font-size: 30px; color: #fff; }
.stat b em { font-style: normal; color: var(--accent); }
.stat span { color: var(--text2); font-size: 13px; }

/* ---------- 文章列表卡片 ---------- */
.article-card { display: flex; flex-direction: column; gap: 6px; }
.article-card .cover { height: 170px; border-radius: 10px; overflow: hidden; background: #0d1330; }
.article-card .cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.article-card:hover .cover img { transform: scale(1.06); }
.article-card .date { color: var(--muted); font-size: 12.5px; display: flex; gap: 14px; }

/* ---------- 详情页 ---------- */
.page-hero {
  padding: 76px 0 56px; text-align: center; position: relative; overflow: hidden;
  background:
    radial-gradient(ellipse 55% 100% at 50% -24%, rgba(79, 140, 255, .34), transparent 68%),
    radial-gradient(ellipse 30% 60% at 82% 110%, rgba(0, 229, 192, .08), transparent 60%),
    var(--bg2);
  border-bottom: 1px solid var(--line);
}
.page-hero h1 { font-size: 34px; color: #fff; letter-spacing: .5px; }
.breadcrumb { font-size: 13px; color: var(--muted); margin-top: 14px; }
.breadcrumb a { color: var(--text2); }
.detail-wrap { display: grid; grid-template-columns: 1fr 320px; gap: 28px; padding-top: 44px; padding-bottom: 72px; }
.detail-main { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 36px; }
.detail-meta { display: flex; gap: 18px; flex-wrap: wrap; color: var(--muted); font-size: 13px; padding-bottom: 18px; border-bottom: 1px dashed var(--line); margin-bottom: 22px; }
.article-content { font-size: 15.5px; color: #c7d3f2; line-height: 1.95; word-break: break-word; overflow-wrap: anywhere; }
.article-content h1, .article-content h2, .article-content h3 { color: #fff; margin: 26px 0 12px; }
.article-content p { margin: 12px 0; }
.article-content img { border-radius: 10px; margin: 14px 0; max-width: 100%; height: auto; }
.article-content video { width: 100%; border-radius: 10px; margin: 14px 0; background: #000; }
.article-content table { width: 100%; border-collapse: collapse; margin: 16px 0; }
.article-content table td, .article-content table th { border: 1px solid var(--line); padding: 8px 12px; font-size: 14px; }
.article-content blockquote { border-left: 3px solid var(--primary); background: rgba(79, 140, 255, .07); padding: 12px 16px; border-radius: 0 8px 8px 0; margin: 14px 0; color: var(--text2); }
.article-content ul, .article-content ol { padding-left: 24px; margin: 10px 0; }
.article-content a { color: var(--primary); }
.side-panel .card { margin-bottom: 20px; }

/* ---------- 文章详情：封面 / 目录 / 进度条 ---------- */
.read-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0; z-index: 120;
  background: linear-gradient(90deg, var(--primary), var(--primary2), var(--accent));
  transition: width .1s linear;
}
.article-cover { margin: 0 0 22px; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); }
.article-cover img { width: 100%; max-height: 420px; object-fit: cover; }
.article-toc {
  background: rgba(79, 140, 255, .06); border: 1px solid var(--line);
  border-radius: 12px; padding: 14px 18px; margin-bottom: 24px;
}
.toc-head {
  display: flex; align-items: center; justify-content: space-between;
  color: #fff; font-size: 14px; font-weight: 600; cursor: pointer; user-select: none;
}
.toc-arrow { transition: transform .25s; font-size: 12px; color: var(--muted); }
.article-toc.collapsed .toc-arrow { transform: rotate(-90deg); }
.article-toc .toc-list { margin: 12px 0 0; padding-left: 20px; }
.article-toc.collapsed .toc-list { display: none; }
.article-toc .toc-list li { margin: 7px 0; font-size: 13.5px; }
.article-toc .toc-list a { color: var(--text2); }
.article-toc .toc-list a:hover { color: var(--primary); }
.article-toc .toc-lv3 { padding-left: 16px; list-style: circle; font-size: 13px; }
.article-tags { margin-top: 26px; display: flex; gap: 8px; flex-wrap: wrap; }

/* ============ GEO 要点提炼（TL;DR）区块 ============
   为生成式搜索引擎（AI Overviews / 百度 AI 摘要 / Perplexity）提供
   清晰、可整段引用的结构化要点，同时提升长文可扫读性。 */
.article-summary {
  margin: 0 0 24px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--primary);
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(79,140,255,.10), rgba(106,92,255,.05));
}
.article-summary .as-head {
  font-size: 14px; font-weight: 700; color: var(--text);
  margin-bottom: 10px; display: flex; align-items: center; gap: 6px;
}
.article-summary ul { margin: 0; padding-left: 20px; }
.article-summary li {
  font-size: 13.5px; line-height: 1.85; color: var(--text2);
  margin: 6px 0; list-style: disc;
}
.article-summary li::marker { color: var(--primary); }
@media (max-width: 768px) {
  .article-summary { padding: 15px 16px; margin-bottom: 18px; }
  .article-summary li { font-size: 13px; line-height: 1.8; }
}
.toc-side-list a { font-size: 13px; }
.toc-side-list a.toc-side-lv3 { padding-left: 14px; font-size: 12.5px; color: var(--muted); }
.toc-side-list a.on { color: var(--primary); font-weight: 600; }
.article-content h2 { scroll-margin-top: 80px; }
.article-content h3 { scroll-margin-top: 80px; }
.side-list a { display: block; padding: 10px 0; border-bottom: 1px dashed var(--line); color: var(--text2); font-size: 14px; }
.side-list a:last-child { border-bottom: 0; }
.side-list a:hover { color: var(--primary); }
.side-list .side-more { text-align: center; border: 0; padding-top: 12px; }
.contact-mini { text-align: center; }
.contact-mini b { color: var(--accent); font-size: 20px; display: block; margin: 6px 0; }

/* ---------- APP 下载页 ---------- */
.app-card { text-align: center; padding: 34px 24px; }
.app-card .app-icon {
  width: 86px; height: 86px; margin: 0 auto 16px; border-radius: 22px; object-fit: cover;
  border: 1px solid var(--line); box-shadow: 0 8px 26px rgba(79, 140, 255, .25); background: #0d1330;
}
.app-card .ver { color: var(--muted); font-size: 13px; }
.app-card .desc { min-height: 48px; }
.app-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
.qr { margin: 8px auto 0; width: 110px; height: 110px; border-radius: 10px; border: 1px solid var(--line); object-fit: cover; }
.download-hero { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; padding: 60px 0; }
.phone-mock {
  border: 1px solid var(--line); border-radius: 34px; padding: 18px; background: linear-gradient(160deg, #131c3d, #0d1330);
  box-shadow: var(--shadow); max-width: 340px; margin: 0 auto;
}
.phone-mock img { border-radius: 22px; }
.dl-tips { display: flex; gap: 12px; margin-top: 22px; flex-wrap: wrap; }

/* ---------- 联系我们 ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 28px; padding-top: 52px; padding-bottom: 72px; }
.contact-info .row { display: flex; gap: 14px; align-items: flex-start; padding: 18px 0; border-bottom: 1px dashed var(--line); }
.contact-info .row .ico { flex: none; width: 44px; height: 44px; border-radius: 11px; display: flex; align-items: center; justify-content: center; background: rgba(79, 140, 255, .14); border: 1px solid rgba(79, 140, 255, .3); font-size: 19px; }
.form-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; }
.form-card h3 { color: #fff; font-size: 19px; margin-bottom: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-item { margin-bottom: 16px; }
.form-item label { display: block; font-size: 13px; color: var(--text2); margin-bottom: 7px; }
.form-item label em { color: #ff7a80; font-style: normal; margin-left: 3px; }
.form-item input, .form-item textarea, .form-item select {
  width: 100%; padding: 11px 13px; border-radius: 9px; border: 1px solid var(--line);
  background: #0d1330; color: #fff; font-size: 14px; font-family: inherit;
}
.form-item input:focus, .form-item textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(79, 140, 255, .16); }
.form-msg { padding: 11px 14px; border-radius: 9px; font-size: 13.5px; display: none; margin-top: 6px; }
.form-msg.ok { display: block; background: rgba(70, 214, 140, .12); color: #46d68c; border: 1px solid rgba(70, 214, 140, .3); }
.form-msg.err { display: block; background: rgba(229, 72, 77, .1); color: #ff8f94; border: 1px solid rgba(229, 72, 77, .35); }

/* ---------- 分类/标签筛选 ---------- */
.filter-bar { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-bottom: 36px; }
.filter-bar a { padding: 7px 20px; border-radius: 20px; border: 1px solid var(--line); color: var(--text2); font-size: 13.5px; }
.filter-bar a.on, .filter-bar a:hover { color: #fff; border-color: var(--primary); background: rgba(79, 140, 255, .16); }

/* ---------- 分页 ---------- */
.pager { display: flex; gap: 8px; justify-content: center; padding: 40px 0 8px; flex-wrap: wrap; }
.pg { min-width: 36px; padding: 7px 13px; text-align: center; border-radius: 8px; border: 1px solid var(--line); color: var(--text2); font-size: 13.5px; }
.pg:hover { border-color: var(--primary); color: #fff; }
.pg-current { background: linear-gradient(90deg, var(--primary), var(--primary2)); color: #fff; border-color: transparent; }
.pg-dots { color: var(--muted); align-self: center; }

/* ---------- 页脚 ---------- */
.site-footer {
  background:
    radial-gradient(ellipse 70% 90% at 50% 120%, rgba(79, 140, 255, .1), transparent 65%),
    #080c1e;
  border-top: 1px solid var(--line); margin-top: 0;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: 28px; padding-top: 52px; padding-bottom: 36px; }
.f-col h4 { color: #fff; font-size: 15.5px; margin-bottom: 14px; }
.f-col p, .f-col a { display: block; color: var(--text2); font-size: 13.5px; line-height: 2; }
.f-col a:hover { color: var(--primary); }
.f-brand p { color: var(--muted); }
.footer-bottom { border-top: 1px solid var(--line); padding: 16px 0; color: var(--muted); font-size: 12.5px; text-align: center; }
.footer-bottom a { color: var(--muted); }
.back-top {
  position: fixed; right: 22px; bottom: 26px; width: 42px; height: 42px; border-radius: 10px; z-index: 99;
  background: var(--card); border: 1px solid var(--line); color: var(--text2); display: none;
  align-items: center; justify-content: center; font-size: 17px; cursor: pointer;
}
.back-top.show { display: flex; }
.back-top:hover { color: #fff; border-color: var(--primary); }

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .detail-wrap { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .download-hero { grid-template-columns: 1fr; text-align: center; }
  .dl-tips { justify-content: center; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  /* 顶栏适配刘海屏 */
  .site-header { padding-top: var(--safe-top); }
  .header-inner { height: 58px; }

  /* 防横向溢出：仅防止页面左右晃动，不产生任何视觉样式变化
     （第三轮固有问题：隐藏的抽屉菜单把页面撑宽到 700px，手机上可左右拖动） */
  html, body { overflow-x: hidden; max-width: 100vw; }

  /* ===== 双列卡片内排版收紧：让「一行两个」也能看得清、点得准 ===== */
  .grid-2 > .card, .grid-3 > .card, .grid-4 > .card,
  .hscroll-row .hcard {
    padding: 15px 13px; border-radius: 12px;
  }
  .grid-2 > .card .ico, .grid-3 > .card .ico, .grid-4 > .card .ico,
  .hscroll-row .hcard .ico {
    width: 40px; height: 40px; border-radius: 11px; font-size: 19px;
  }
  .grid-2 > .card h3, .grid-3 > .card h3, .grid-4 > .card h3,
  .hscroll-row .hcard h3 {
    font-size: 14.5px; margin: 10px 0 6px; line-height: 1.45;
  }
  .grid-2 > .card p, .grid-3 > .card p, .grid-4 > .card p,
  .hscroll-row .hcard p {
    font-size: 12.5px; line-height: 1.7;
  }
  .grid-2 > .card .badge, .grid-3 > .card .badge, .grid-4 > .card .badge,
  .hscroll-row .hcard .badge {
    font-size: 11px; padding: 3px 8px;
  }
  .grid-2 > .card .meta, .grid-3 > .card .meta, .grid-4 > .card .meta,
  .hscroll-row .hcard .meta { margin-top: 9px; gap: 6px; }

  /* 板块标题区在小屏收紧，给卡片留出更多空间 */
  .section-head { margin-bottom: 24px; }
  .section-head > p { font-size: 13px; line-height: 1.7; }

  /* 响应式抽屉导航：右侧滑出 */
  .main-nav {
    position: fixed; top: 0; right: 0; bottom: 0; left: auto;
    width: min(78vw, 310px);
    flex-direction: column; gap: 4px; align-items: stretch;
    background: linear-gradient(180deg, #0e1533, #0a0f26);
    border-left: 1px solid var(--line);
    box-shadow: -18px 0 50px rgba(0, 0, 0, .55);
    padding: calc(20px + var(--safe-top)) 16px calc(20px + var(--safe-bottom));
    padding-right: max(16px, var(--safe-right));
    transform: translateX(102%); opacity: 1; pointer-events: none;
    transition: transform .3s cubic-bezier(.4, 0, .2, 1);
    overflow-y: auto; -webkit-overflow-scrolling: touch; z-index: 130;
  }
  .main-nav.open { transform: translateX(0); pointer-events: auto; }
  .main-nav a {
    padding: 14px 14px; border-radius: 10px; font-size: 15.5px;
    border-bottom: 1px solid rgba(34, 49, 95, .5);
  }
  .main-nav a:last-child { border-bottom: 0; }
  .main-nav a.active { background: rgba(79, 140, 255, .18); border-bottom-color: transparent; }
  .nav-mask {
    position: fixed; inset: 0; z-index: 125; background: rgba(4, 7, 20, .66);
    backdrop-filter: blur(2px); opacity: 0; transition: opacity .25s;
  }
  .nav-mask.show { opacity: 1; }
  body.nav-locked { overflow: hidden; }

  /* 汉堡按钮动画 */
  .nav-toggle { display: block; position: relative; z-index: 140; }
  .nav-toggle span { transition: transform .25s, opacity .2s; }
  .nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.is-open span:nth-child(2) { opacity: 0; }
  .nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .hotline { display: none; }
  .carousel-item img { height: 300px; }
  /* 轮播图双端版本：手机端显示「移动端」图与文案（未设置时沿用网页端，不会出现空白） */
  .ci-desktop { display: none !important; }
  .ci-desktop-text { display: none !important; }
  .ci-mobile { display: block !important; }
  .ci-mobile-text { display: block !important; }
  .cap h2 { font-size: 25px; }
  .cap p { font-size: 14px; margin-bottom: 16px; }
  .section { padding: 48px 0; }
  /* 手机端卡片改为两列并排（一行两个），信息密度更高、观赏性更好
     分类/优势/产品/收银系统等所有网格板块统一生效；表格类与表单不受影响 */
  .grid-2, .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .form-row { grid-template-columns: 1fr; }
  .detail-main { padding: 22px 18px; }
  .page-hero { padding: 48px 0 36px; }
  .page-hero h1 { font-size: 24px; }
  .section-head h2 { font-size: 24px; }
  .section-head h2::after { margin-top: 10px; }
  .logo-text { font-size: 16px; }
  /* 正文表格窄屏横向滑动，避免撑破布局 */
  .article-content table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .carousel-arrow { display: none; }

  /* 网站动态：小屏字号收紧 */
  .site-notice { font-size: 12.5px; }
  .notice-inner { padding-top: 8px; padding-bottom: 8px; }
}
@media print {
  .site-header, .site-footer, .back-top { display: none; }
}

/* =====================================================
   v1.1 新增样式：横排展示 / 友情链接 / 移动端联系条
   ===================================================== */

/* ---------- 横排滚动展示（PC 网格自适应，移动端可滑动） ---------- */
.hscroll-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(255px, 1fr));
  gap: 18px;
}
.hcard { display: flex; flex-direction: column; }
.hcard p { flex: 1; }

/* ---------- 友情链接 ---------- */
.friend-links {
  background: var(--bg2);
  border-top: 1px solid var(--line);
  padding: 24px 0;
}
.fl-title {
  font-size: 14px; color: var(--text2); font-weight: 600;
  margin-bottom: 12px; display: flex; align-items: center; gap: 8px;
}
.fl-title::before {
  content: ''; width: 3px; height: 14px; border-radius: 2px;
  background: linear-gradient(180deg, var(--primary), var(--primary2));
}
.fl-list { display: flex; flex-wrap: wrap; gap: 10px 14px; }
.fl-list a {
  font-size: 13px; color: var(--text2); padding: 5px 12px;
  border: 1px solid var(--line); border-radius: 20px; transition: .2s;
}
.fl-list a:hover { color: #fff; border-color: var(--primary); background: rgba(79,140,255,.12); }

.f-links-row { display: flex; flex-direction: column; gap: 8px; }

/* ---------- 文章底部留言表单 ---------- */
.article-form { background: var(--card); }
.af-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.af-item { margin-bottom: 14px; }
.af-item label { display: block; font-size: 13px; color: var(--text2); margin-bottom: 6px; }
.af-item label em { color: #ff8f94; font-style: normal; }
.af-item input, .af-item textarea, .af-item select {
  width: 100%; padding: 10px 12px; border: 1px solid var(--line);
  border-radius: 9px; background: var(--bg); color: var(--text); font-size: 14px;
  font-family: inherit;
}
.af-item input:focus, .af-item textarea:focus { outline: none; border-color: var(--primary); }

/* ---------- 移动端底部联系条 ---------- */
.mobile-contact-bar { display: none; }
.wx-modal {
  position: fixed; inset: 0; background: rgba(5,8,20,.78); z-index: 200;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: .25s;
}
.wx-modal.show { opacity: 1; pointer-events: auto; }
.wx-box {
  background: var(--bg2); border: 1px solid var(--line); border-radius: 16px;
  padding: 30px 34px; max-width: 330px; text-align: center;
}
.wx-box h4 { color: #fff; font-size: 16px; margin-bottom: 14px; }
.wx-id {
  font-size: 19px; font-weight: 700; color: var(--accent); letter-spacing: .5px;
  background: rgba(0,229,192,.09); border: 1px dashed rgba(0,229,192,.4);
  border-radius: 9px; padding: 12px; margin-bottom: 12px; word-break: break-all;
}
.wx-box p { font-size: 12.5px; color: var(--muted); margin-bottom: 16px; line-height: 1.8; }

/* ---------- 收银系统：官网按钮 ---------- */
.system-card { display: flex; flex-direction: column; padding: 0; }
.system-card-main { display: block; padding: 26px; flex: 1; }
.system-card-main h3 { color: #fff; font-size: 17px; margin-bottom: 8px; }
.system-card-main > p { color: var(--text2); font-size: 13.5px; line-height: 1.75; }
.official-btn {
  margin: 0 26px 22px; text-align: center; justify-content: center;
  border: 1px solid rgba(79,140,255,.45); color: var(--primary);
  background: rgba(79,140,255,.08);
}
.official-btn:hover { background: rgba(79,140,255,.18); border-color: var(--primary); }
.btn-official {
  background: linear-gradient(90deg, #2f7bff, #6a5cff);
  color: #fff; box-shadow: 0 6px 18px rgba(79,140,255,.32);
}
.btn-official:hover { filter: brightness(1.08); }
.official-hint {
  margin-top: 18px; font-size: 13px; color: var(--muted);
  background: rgba(79,140,255,.06); border: 1px solid var(--line);
  border-radius: 9px; padding: 11px 15px; word-break: break-all;
}
.official-hint a { color: var(--primary); }

@media (max-width: 768px) {
  /* 产品介绍等「横排展示」板块：手机端改为一行两个的网格，观赏性更好 */
  .hscroll-row {
    display: grid; grid-template-columns: repeat(2, 1fr);
    gap: 12px; overflow: visible; padding-bottom: 0;
    scroll-snap-type: none;
  }
  .hscroll-row::-webkit-scrollbar { height: 0; }
  .hscroll-row::-webkit-scrollbar-thumb { background: transparent; }
  .hcard { flex: none; scroll-snap-align: none; }
  .hcard p { flex: none; }

  .af-row { grid-template-columns: 1fr; gap: 0; }

  /* ---------- 评论区移动端深度适配 ---------- */
  .article-form { padding: 20px 16px; border-radius: 12px; }
  .article-form h3 { font-size: 16px; }
  .article-form > p { font-size: 12.5px; line-height: 1.7; }
  .af-item { margin-bottom: 13px; }
  .af-item label { font-size: 12.5px; margin-bottom: 5px; }
  /* 输入框 16px 字号，避免 iOS 自动缩放页面 */
  .af-item input, .af-item textarea, .af-item select {
    font-size: 16px; padding: 12px 13px; border-radius: 10px;
  }
  .af-item textarea { min-height: 92px; }
  .article-form button[type="submit"] {
    width: 100%; padding: 14px; font-size: 15.5px; border-radius: 10px;
  }
  .btn-block-sm { width: 100%; }

  /* ---------- 文章详情移动端 ---------- */
  .article-cover { margin-bottom: 16px; border-radius: 10px; }
  .article-cover img { max-height: 230px; }
  .article-toc { padding: 12px 14px; margin-bottom: 18px; }
  .article-toc .toc-list li { font-size: 13px; margin: 6px 0; }
  .detail-meta { gap: 10px 14px; font-size: 12.5px; padding-bottom: 14px; margin-bottom: 16px; }
  .article-content { font-size: 16px; line-height: 1.9; }
  .article-content h2 { font-size: 19px; }
  .article-content h3 { font-size: 16.5px; }
  .article-tags { margin-top: 20px; }
  /* 详情页侧栏在移动端沉到正文下方（移动优先阅读） */
  .detail-wrap { display: flex; flex-direction: column; }

  /* 移动端底部联系条：适配刘海屏与手势条 */
  /* 说明：第八轮新增的「底部联系条 / 浮动圆钮」由下方「手机端增强样式（第八/九轮）」统一控制，
     此处保持第三轮基线：默认不显示，避免手机端出现多余遮挡条。 */

  /* 页脚改为横排排列：链接横向流式排布 */
  .f-links-row {
    flex-direction: row; flex-wrap: wrap; gap: 8px;
  }
  .f-links-row a {
    display: inline-block; padding: 5px 14px; border-radius: 20px;
    border: 1px solid var(--line); background: rgba(79,140,255,.06);
    font-size: 12.5px; line-height: 1.6; white-space: nowrap;
  }
  .f-col h4 { margin-bottom: 10px; }
  /* 页脚移动端：品牌块整行 + 栏目两列横排网格，避免一条长竖列 */
  .footer-grid {
    grid-template-columns: 1fr 1fr; gap: 22px 16px;
    padding-top: 38px; padding-bottom: 28px;
  }
  .f-brand {
    grid-column: 1 / -1; padding-bottom: 16px; margin-bottom: 2px;
    border-bottom: 1px dashed var(--line);
  }
  .f-col h4 {
    font-size: 14px; margin-bottom: 12px; display: flex; align-items: center; gap: 7px;
  }
  .f-col h4::before {
    content: ""; width: 3px; height: 13px; border-radius: 2px;
    background: linear-gradient(180deg, var(--primary), var(--primary2));
  }
  .f-col p { font-size: 13px; }
}

/* ============================================================
   优化插件开关（由 body 类控制，后台可自助关闭对应能力）
   ============================================================ */

/* 关闭「刘海屏安全区适配」：内容回到常规内边距 */
body.no-safearea { --safe-top: 0px; --safe-bottom: 0px; --safe-left: 0px; --safe-right: 0px; }
body.no-safearea .container { padding-left: 20px; padding-right: 20px; }
body.no-safearea .site-header { padding-top: 0; }
body.no-safearea { padding-bottom: 0; }
body.no-safearea .back-top { bottom: 74px; }

/* 关闭「手机端抽屉导航」：退回上滑式普通菜单 */
@media (max-width: 768px) {
  body.no-drawer .main-nav {
    position: fixed; left: 0; right: 0; top: var(--header-h, 64px);
    width: 100%; max-width: none; height: auto; transform: none;
    flex-direction: row; flex-wrap: wrap; gap: 6px;
    padding: 12px 16px; border-radius: 0;
    background: rgba(10,15,35,.98); border-bottom: 1px solid var(--line);
    display: none;
  }
  body.no-drawer .main-nav.open { display: flex; }
  body.no-drawer .main-nav a { padding: 8px 12px; border-radius: 8px; background: rgba(79,140,255,.08); }
  body.no-drawer .nav-mask { display: none !important; }
}

/* 关闭「图片懒加载」：恢复即时加载 */
body.no-lazy img[loading="lazy"] { background: none; }

/* ============================================================
   ★ 手机端增强样式（第八 / 九轮）—— 默认整体关闭
   ------------------------------------------------------------
   说明：用户要求手机端自适应样式恢复到「第三轮优化」时的状态，
   因此以下第八、九轮新增的手机端能力默认不生效。
   如需重新启用，把下方 body 上的 class 加回去即可：
     · 底部联系条 / 右下浮动圆钮   →  <body class="m-enhance">
     · 手机端内嵌广告与浮动广告     →  <body class="m-enhance">
     · 修复抽屉横向溢出（第九轮）   →  <body class="m-enhance">
   （模板已按配置自动添加该类，站长无需手动修改；后台把对应开关关掉即可）
   ============================================================ */

/* --- 手机端底部联系条（仅 m-enhance 生效） --- */
.mobile-contact-bar { display: none; }
body.m-enhance .mobile-contact-bar { display: none; }
@media (max-width: 768px) {
  body.m-enhance .mobile-contact-bar {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 120;
    background: rgba(13, 19, 48, .97); backdrop-filter: blur(10px);
    border-top: 1px solid var(--line);
    padding: 5px max(8px, var(--safe-right)) calc(5px + var(--safe-bottom)) max(8px, var(--safe-left));
    box-shadow: 0 -6px 20px rgba(0, 0, 0, .4);
  }
  body.m-enhance .mcb-item {
    flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px;
    padding: 8px 4px; font-size: 11.5px; color: var(--text2); border-radius: 9px;
  }
  body.m-enhance .mcb-item:active { background: rgba(79, 140, 255, .16); }
  body.m-enhance .mcb-ico { font-size: 19px; line-height: 1; }
  body.m-enhance .mcb-call { color: #46d68c; }
  body.m-enhance .mcb-wx { color: var(--accent); }
  body.m-enhance { padding-bottom: calc(62px + var(--safe-bottom)); }
  body.m-enhance .back-top { bottom: calc(74px + var(--safe-bottom)); }
}

/* --- 手机端浮动联系方式（右下圆钮，仅 m-enhance 生效） --- */
.mcb-float { display: none; }
.mcb-float a:active { transform: scale(.94); }
@media (max-width: 768px) {
  body.m-enhance .mcb-float { display: block; }
}

/* --- 广告 / 展示位（基础样式，桌面端同样可用） --- */
.site-adbar {
  background: var(--adbar-color, #2f7bff);
  color: #fff; font-size: 13px; line-height: 1.85;
  padding: 9px 0; text-align: center;
}
.site-adbar .container { display: block; }
.ad-inline-wrap { grid-column: 1 / -1; }
.ad-inline, .ad-detail {
  display: block; border-radius: 12px; overflow: hidden;
  border: 1px solid var(--line); background: var(--card);
}
.ad-inline img, .ad-detail img { display: block; width: 100%; height: auto; }
.ad-detail { margin-top: 22px; }
.ad-inline-wrap .ad-inline { grid-column: 1 / -1; }
.ad-float {
  position: fixed; right: 18px; bottom: 150px; z-index: 119;
  width: 140px; border-radius: 12px; overflow: hidden;
  border: 1px solid var(--line); box-shadow: 0 10px 30px rgba(0,0,0,.42);
  background: var(--card);
}
.ad-float img { display: block; width: 100%; height: auto; }
.ad-float-close {
  position: absolute; top: 0; right: 0; width: 22px; height: 22px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,.55); color: #fff; font-size: 12px;
  cursor: pointer; border-bottom-left-radius: 8px;
}
/* 手机端专属广告：默认不显示（第三轮基线无此能力） */
.ad-mobile-only { display: none; }
@media (max-width: 768px) {
  body.m-enhance .ad-mobile-only { display: block; }
  body.m-enhance .ad-float.ad-mobile-only { display: block; }
  body.m-enhance .site-adbar { font-size: 12.5px; padding: 8px 0; }
  body.m-enhance .ad-float {
    width: 108px; right: 10px; bottom: auto; top: 50%;
    transform: translateY(-50%);
  }
}

/* --- 第九轮：防抽屉横向溢出（仅 m-enhance 生效） --- */
@media (max-width: 768px) {
  body.m-enhance { overflow-x: hidden; max-width: 100vw; }
  body.m-enhance .main-nav { visibility: hidden; transition: transform .3s cubic-bezier(.4,0,.2,1), visibility .3s; }
  body.m-enhance .main-nav.open { visibility: visible; }
}


/* ============ 无障碍：视觉隐藏（W3C 标准 sr-only 类） ============
   内容对屏幕阅读器与搜索引擎可见，但不占用视觉布局。
   用于首页 H1 等「必须存在但不显示」的语义元素。 */
.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
