/* ──────────────────────────────────────────────────────────────
   site.css —— 纯静态站补丁
   与 style.css 配合：style.css 是正式站原文件，本文件只做两件事：
   1) 补齐 style.css 依赖的 layui 基础类（不引 layui.css，避免图标字体缺失）
   2) 把原本靠 JS 的交互改写为 CSS :target
   断点统一取 768px，与 style.css 保持一致。
   ────────────────────────────────────────────────────────────── */

*, *::before, *::after { box-sizing: border-box; }
a { text-decoration: none; color: inherit; }

/* 原文里指向站外的地址：保留文字，不做成链接，本站不向站外跳转 */
.ext-ref { color: #94a3b8; word-break: break-all; }
img { border: 0; vertical-align: middle; }
ul { list-style: none; margin: 0; padding: 0; }

/* 锚点跳转时给 sticky 侧栏留出余量 */
[id] { scroll-margin-top: 20px; }

/* ── 1. layui 基础类（仅保留本站用到的） ───────────────────── */
.layui-header { position: relative; }
.layui-header .layui-container {
  display: flex !important; align-items: center; justify-content: space-between;
  gap: 15px; margin-bottom: 0 !important; position: relative;
}
.layui-nav { position: relative; font-size: 0; box-sizing: border-box; }
.layui-header .layui-nav { background: none; padding: 0; }
.layui-nav .layui-nav-item {
  position: relative; display: inline-block; vertical-align: middle; line-height: 60px;
}
.layui-nav .layui-nav-item a { display: block; padding: 0 20px; transition: all .3s; }
.layui-nav-tree { width: 200px; padding: 0; }
.layui-nav-tree .layui-nav-item { display: block; width: 100%; }
.layui-nav-tree .layui-nav-item a {
  position: relative; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.layui-elem-quote {
  margin-bottom: 10px; padding: 15px; line-height: 22px;
  border-left: 5px solid #009688; border-radius: 0 2px 2px 0; background-color: #f2f2f2;
}
.layui-quote-nm {
  border-style: solid; border-width: 1px 1px 1px 5px; background: 0 0; border-color: #e6e6e6;
  border-left-color: #009688;
}
/* 教程页开篇的 quote 直接当卡片用，观感对齐首页公告栏 */
.custom-content > .layui-elem-quote {
  background: #fff; border-radius: 0 8px 8px 0; padding: 12px 18px; margin-bottom: 20px;
  box-shadow: 0 2px 10px rgba(0,0,0,.02);
}

/* 响应式显隐：断点与 style.css 的 768px 对齐，避开 layui 767/768 之间的 1px 缝 */
@media screen and (max-width: 768px) { .layui-hide-xs { display: none !important; } }
@media screen and (min-width: 769px) { .only-xs { display: none !important; } }

/* ── 2. 顶栏 ──────────────────────────────────────────────── */
.layui-header .layui-nav-item a { color: rgba(255,255,255,.85); font-size: 13px; font-weight: 500; }
.layui-header .layui-nav-item a:hover { color: #39c884; }
.layui-header .layui-nav-item.layui-this a { color: #fff; }
.logo-area a { display: flex; align-items: center; }

/* 移动端汉堡按钮（原型的 layui-icon 图标字体缺失，改用字符） */
.menu-btn {
  color: rgba(255,255,255,.85); font-size: 22px; line-height: 60px;
  padding: 0 5px; display: inline-block;
}
.menu-btn:hover { color: #fff; }

/* ── 3. 移动端抽屉菜单：原本由 layui JS 驱动，这里改用 :target ── */
.m-drawer { display: none; }
.m-drawer:target { display: block; }
.m-shade {
  position: fixed; inset: 0; background: rgba(0,0,0,.6); z-index: 99999; display: block;
}
.m-panel {
  position: fixed; top: 0; left: 0; width: 260px; height: 100%; background: #1f2937;
  box-shadow: 2px 0 15px rgba(0,0,0,.3); overflow-y: auto; z-index: 100000;
}
.m-panel .m-close {
  position: absolute; top: 12px; right: 15px; color: #9ca3af; font-size: 22px;
  line-height: 1; padding: 5px;
}
.m-panel .m-logo { text-align: center; padding: 30px 0; border-bottom: 1px solid rgba(255,255,255,.05); }
.m-panel .m-logo img { height: 30px; }
.m-panel a.m-link {
  display: block; height: 45px; line-height: 45px; padding: 0 20px;
  color: rgba(255,255,255,.85); font-size: 14px;
}
.m-panel a.m-link:hover { background: #4e5465; color: #fff; }

/* ── 4. 图标：正式站用 layui iconfont，静态站换成字符块 ────── */
.icon-txt {
  display: inline-flex; align-items: center; justify-content: center;
  width: 18px; height: 18px; margin-right: 10px; border-radius: 4px;
  border: 1px solid #f1f5f9; background: #009688; color: #fff;
  font-size: 10px; font-style: normal; flex-shrink: 0;
}
.notice-ico {
  width: auto; height: auto; margin-right: 8px; padding: 1px 6px;
  background: #f0fdfa; color: #009688; border: 1px solid #ccfbf1;
  font-size: 11px; font-weight: 700; line-height: 18px; vertical-align: 2px;
}
@media screen and (max-width: 768px) { .mall-sidebar .icon-txt { display: none !important; } }

/* ── 5. 悬浮件 ───────────────────────────────────────────── */
.back-to-top { font-size: 15px; color: #94a3b8; text-decoration: none; }
.cs-bubble {
  position: fixed; right: 30px; bottom: 30px; width: 60px; height: 60px; border-radius: 50%;
  background: #009688; box-shadow: 0 4px 15px rgba(0,0,0,.08); z-index: 99999;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  color: #fff; font-size: 12px; font-weight: 700; letter-spacing: .5px; line-height: 1.2;
}
.cs-bubble:hover { background: #00796b; color: #fff; }
.cs-bubble span:first-child { font-size: 11px; opacity: .85; }

/* ── 6. 底部同意条 ──────────────────────────────────────────
   这里不能用 :target：任何后续的锚点跳转都会把 target 清掉，条子会重新
   冒出来。改用相邻兄弟 + :checked，关掉之后在本页就一直是关掉的。 */
.tos-ack { position: absolute; width: 0; height: 0; opacity: 0; pointer-events: none; }
.tos-ack:checked + #tos-cookie-notice { display: none; }
#tos-cookie-notice {
  position: fixed; bottom: 25px; left: 20px; right: 20px; background: #fff;
  box-shadow: 0 4px 20px rgba(0,0,0,.08); z-index: 99999; border-radius: 8px;
  padding: 15px 25px; border: 1px solid #e5e7eb; border-top: 3px solid #f9c300;
  max-width: 1100px; margin: 0 auto;
}
.tos-container { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.tos-text { color: #4b5563; font-size: 13px; line-height: 1.6; flex: 1; }
.tos-text a { color: #d97706; font-weight: 700; border-bottom: 1px solid rgba(217,119,6,.3); }
.tos-text a:hover { color: #b45309; }
.tos-btn {
  background: #f9c300; color: #fff; border: none; padding: 8px 20px; border-radius: 4px;
  font-size: 12px; font-weight: 700; display: inline-block; cursor: pointer;
  text-align: center;
}
.tos-btn:hover { background: #e0af00; color: #fff; }
@media screen and (max-width: 768px) {
  #tos-cookie-notice { bottom: 0; left: 0; right: 0; border-radius: 12px 12px 0 0; padding: 15px 20px; }
  .tos-container { flex-direction: column; text-align: center; gap: 12px; }
  .tos-btn { width: 100%; padding: 10px; }
}

/* ── 7. 下单提示弹层：静态站没有支付流程，「购买」落到这里 ──── */
.dc-dialog {
  position: fixed; inset: 0; z-index: 1000000; display: none;
  align-items: center; justify-content: center; padding: 20px;
}
.dc-dialog:target { display: flex; }
.dc-mask { position: absolute; inset: 0; background: rgba(0,0,0,.45); }
.dc-box {
  position: relative; width: 100%; max-width: 460px; background: #fff; border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0,0,0,.18); overflow: hidden; max-height: calc(100vh - 40px);
  overflow-y: auto;
}
.dc-head {
  background: #f8fafc; border-bottom: 1px solid #e5e7eb; padding: 14px 18px;
  font-size: 13.5px; font-weight: 700; color: #374151;
  display: flex; align-items: center; justify-content: space-between;
}
.dc-head a { color: #9ca3af; font-size: 18px; line-height: 1; }
.dc-head a:hover { color: #374151; }
.dc-body { padding: 18px; font-size: 13px; line-height: 24px; color: #4b5563; }
.dc-body p { margin: 0 0 10px; }
.dc-body p:last-child { margin-bottom: 0; }
.dc-foot { padding: 0 18px 18px; display: flex; gap: 10px; }
.dc-foot a {
  flex: 1; text-align: center; padding: 9px 0; border-radius: 4px;
  font-size: 12px; font-weight: 700;
}
.dc-foot .dc-primary { background: #f9c300; color: #fff; }
.dc-foot .dc-primary:hover { background: #e0af00; color: #fff; }
.dc-foot .dc-ghost { background: #fff; color: #64748b; border: 1px solid #e5e7eb; }
.dc-foot .dc-ghost:hover { border-color: #009688; color: #009688; }

/* ── 8. 教程页正文（样式取自正式站 /about/ 页内联 style） ───── */
.custom-content { font-size: 14px; line-height: 1.8; color: #333; }
.custom-content p { margin: 0 0 12px; }
.custom-content a { color: #009688; transition: all .3s; word-break: break-all; }
.custom-content a:hover { color: #2ba86e; text-decoration: underline; }
.custom-content code {
  background: #f2f4f5; padding: 2px 6px; border-radius: 4px;
  font-family: Menlo, Consolas, monospace; font-size: 13px; color: #ff5722;
}
.highlight-code {
  background-color: #f2f4f5; padding: 3px 8px; border-radius: 4px;
  font-family: Menlo, Consolas, monospace; color: #ff5722; font-weight: 700; letter-spacing: 1px;
  word-break: break-all;
}
.img-grid-responsive {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 15px; margin: 15px 0;
  justify-items: center;
}
.img-grid-responsive img {
  width: 80%; height: auto; max-height: 400px; object-fit: contain; border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,.08); border: 1px solid #f0f0f0; transition: transform .3s;
  cursor: zoom-in;
}
.img-grid-responsive img.img-enlarged { width: 100%; max-height: 600px; }
.img-grid-responsive img:hover { transform: scale(1.02); }
.single-img-wrap { text-align: center; margin: 15px 0; }
.img-center-single {
  max-width: 100%; width: 320px; border-radius: 8px; box-shadow: 0 2px 8px rgba(0,0,0,.1);
  cursor: zoom-in;
}
.img-center-single.img-enlarged { width: 480px; }
@media screen and (max-width: 768px) {
  .img-grid-responsive { grid-template-columns: 1fr; gap: 20px; justify-items: start; }
  .img-grid-responsive img,
  .img-grid-responsive img.img-enlarged { width: 100%; max-width: 100%; max-height: none; border-radius: 6px; }
  .single-img-wrap { text-align: left; }
  .img-center-single, .img-center-single.img-enlarged { width: 100%; max-width: 100%; }
}

/* 图片全屏查看：原本由 JS 建遮罩层，这里每张图配一个 :target 层 */
.zoom-box {
  display: none; position: fixed; inset: 0; background: rgba(0,0,0,.95);
  z-index: 9999999; overflow: auto; text-align: center;
}
.zoom-box:target { display: block; }
.zoom-box .zoom-close { position: absolute; inset: 0; cursor: zoom-out; }
.zoom-box img { position: relative; display: block; margin: 5vh auto; max-width: 90%; cursor: zoom-out; }
@media screen and (max-width: 768px) {
  .zoom-box img { width: 100%; max-width: 100%; margin: 0 auto; padding: 40px 0; }
}

/* ── 9. 内容卡片：教程 / 查询 / 客服三页共用的白底区块 ─────── */
.panel-body { background: #fff; padding: 18px; }
.panel-body > *:first-child { margin-top: 0; }
.panel-body > *:last-child { margin-bottom: 0; }
.crumb { font-size: 12px; color: #94a3b8; padding: 8px 0 14px; }
.crumb a { color: #64748b; }
.crumb a:hover { color: #009688; }

/* 表单占位块：原型里是静态示意，这里保持同样的观感 */
.form-grid { display: flex; flex-direction: column; gap: 16px; }
.form-row { display: flex; flex-direction: column; gap: 6px; }
.form-row > .form-label { font-size: 12px; color: #94a3b8; }
.form-input {
  min-height: 36px; border: 1px solid #e5e7eb; border-radius: 4px; background: #fff;
  display: flex; align-items: center; padding: 8px 12px; font-size: 13px; color: #9ca3af;
}
.form-input.form-area { min-height: 110px; align-items: flex-start; line-height: 22px; }
.chip-row { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  background: #fff; color: #64748b; border: 1px solid #e5e7eb; font-size: 12px;
  padding: 6px 14px; border-radius: 4px;
}
.chip.chip-on { background: #f0fdfa; color: #009688; border-color: #009688; font-weight: 700; }
.form-foot { display: flex; align-items: center; gap: 12px; padding-top: 4px; flex-wrap: wrap; }
.btn-cta {
  background: #f9c300; color: #fff; font-size: 12px; font-weight: 700;
  padding: 9px 24px; border-radius: 4px; display: inline-block;
}
.btn-cta:hover { background: #e0af00; color: #fff; }
.form-hint { font-size: 12px; color: #9ca3af; }
.two-col { display: flex; gap: 12px; }
.two-col > * { flex: 1; min-width: 0; }
@media screen and (max-width: 768px) { .two-col { flex-direction: column; } }

/* 键值对列表（客服页联系方式） */
.kv-row {
  padding: 14px 18px; border-bottom: 1px solid #f1f5f9;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.kv-row:last-child { border-bottom: none; }
.kv-row .kv-k { font-size: 13px; color: #64748b; }
.kv-row .kv-v { font-size: 13px; color: #374151; font-weight: 500; text-align: right; }

/* 提示条：复用公告栏的左色条造型 */
.tip-card {
  background: #fff; border: 1px solid #e5e7eb; border-left: 5px solid #009688;
  border-radius: 8px; padding: 12px 18px; box-shadow: 0 2px 10px rgba(0,0,0,.02);
  font-size: 13px; line-height: 22px; color: #4b5563; margin-bottom: 20px;
}
.tip-card a { color: #009688; }
.tip-card ul { margin: 0; padding-left: 18px; list-style: disc; }
.tip-card li { margin: 2px 0; }

/* 客服页两栏 */
.support-grid { display: grid; grid-template-columns: minmax(0,1fr) 320px; gap: 15px; align-items: start; }
@media screen and (max-width: 768px) { .support-grid { grid-template-columns: minmax(0,1fr); } }
.side-stack { display: flex; flex-direction: column; gap: 15px; }

/* 页脚 */
.site-footer { padding: 30px 0; border-top: 1px solid #e5e7eb; margin-top: 40px; text-align: center; }
.site-footer p { margin: 0 0 5px; color: #9ca3af; font-size: 12px; line-height: 1.8; }
.site-footer a { color: #6b7280; font-weight: 500; }
.site-footer a:hover { color: #f9c300; }
