/* ============================================================
   标签供料器-剥标机 PHP 站点全局样式
   汇总自原 Vue 各组件 <style>
   ============================================================ */

/* ---------- 全局 / App ---------- */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
#app {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: left;
  color: #2c3e50;
  background-color: white;
  min-height: 100vh;
  overflow-x: clip; /* clip 同样裁剪水平溢出，但不创建滚动容器，避免破坏子元素 position:sticky */
  display: flex;
  flex-direction: column;
}
#main { flex: 1; }

/* 为固定导航栏预留空间 */
.header-spacer { height: 90px; }

/* ---------- Header ---------- */
.header {
  background: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: all 0.3s ease;
}
/* 容器始终保持“胶囊”的位置与几何尺寸（两状态一致，避免出现/隐藏时弹跳）；
   顶部时背景层透明，滚动后背景层淡入。
   position:relative 供内部液态玻璃 warp 层绝对定位（rdev/liquid-glass-react 同款结构） */
.header .container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 46px;
  padding: 10px 20px 10px 24px;
  max-width: 100%;
  width: fit-content;
  margin: 14px auto 0;
  border-radius: 999px;
  border: 1px solid transparent;
  background: transparent;
  box-shadow: none;
  position: relative;
  transition: background-color 0.35s ease, backdrop-filter 0.35s ease, -webkit-backdrop-filter 0.35s ease,
              box-shadow 0.35s ease, border-color 0.35s ease;
}
/* 非 Chromium 回退（liquid-nav.js 不注入 warp）：容器自身呈现磨砂胶囊 */
.header.scrolled .container {
  background-color: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-color: rgba(255, 255, 255, 0.75);
  box-shadow: 0 8px 30px rgba(27, 77, 93, 0.12), 0 1px 6px rgba(0, 0, 0, 0.05);
}
/* Chromium + liquid-nav 已注入 warp：容器自身不再叠加磨砂，全部交给 warp 层；
   胶囊投影保留在容器上（与源码 box-shadow 在 .glass 上一致） */
.liquid-refract .header.scrolled .container {
  background-color: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-color: transparent;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18), 0 2px 10px rgba(27, 77, 93, 0.08);
}
/* 液态玻璃 warp 层：与源码 .glass__warp 完全一致——
   filter:url(#id) 作用于 backdrop-filter 的渲染结果，实现边缘折射/中心干净/边缘色差 */
.header-glass-warp {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  overflow: hidden;
  filter: url(#areed-liquid-glass);
  backdrop-filter: blur(6px) saturate(140%);
  -webkit-backdrop-filter: blur(6px) saturate(140%);
}
/* 仅滚动状态显示（JS 直接切换 display；未滚动时彻底停用省 GPU） */
/* logo / 导航项纵向尺寸两状态一致（以胶囊为准） */
.left-content { display: flex; align-items: center; min-width: max-content; position: relative; z-index: 1; }
.logo-container { margin: 0; padding: 0; }
.logo-image { max-height: 42px; }
.nav a { padding: 16px 12px 8px; }
.language-switcher { margin-left: 12px; }
.language-btn { transform: translateY(4px); }
.logo-link { display: block; outline: none; text-decoration: none; }
.logo-image {
  width: auto;
  display: block;
  transition: transform 0.2s ease;
}
.logo-link:hover .logo-image { transform: scale(1.05); }
.nav { display: flex; justify-content: flex-end; align-items: center; height: 100%; }
.nav ul {
  display: flex;
  list-style: none;
  gap: 26px;
  margin: 0;
  padding: 0;
  position: relative;
  align-items: center;
  height: 100%;
}
.nav li { position: relative; display: flex; align-items: center; }
.nav a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  font-size: 16px;
  transition: color 0.2s ease;
  white-space: nowrap;
  display: block;
  position: relative;
  filter: none;
}
.header:not(.scrolled) .nav a { color: #333; }
.header:not(.scrolled) .nav ul li a:hover { color: #1b4d5d; }
.header:not(.scrolled) .nav a.router-link-active { color: #1b4d5d; font-weight: 600; }
.header.scrolled .nav a { color: #333; }
.header.scrolled .nav a:hover { color: #1b4d5d; }
.header.scrolled .nav a.router-link-active { color: #1b4d5d; font-weight: 600; }
.header.scrolled .nav a::after,
.header.scrolled .nav a.router-link-active::after { background-color: #1b4d5d; }
.nav a::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  width: 0;
  height: 2px;
  background-color: #1b4d5d;
  transition: all 0.3s ease;
  transform: translateX(-50%);
  border-radius: 2px;
}
.nav a:hover::after { width: 90%; }
.nav a.router-link-active { color: #1b4d5d; font-weight: 600; }
/* 桌面端隐藏移动导航控件（仅 768px 以下显示） */
.nav-toggle, .nav-overlay { display: none; }
.nav a.router-link-active::after {
  width: 90%;
  background-color: #1b4d5d;
}
.right-content { display: flex; align-items: center; justify-content: flex-end; min-width: max-content; position: relative; z-index: 1; }

/* ---------- 语言切换器 ---------- */
.language-switcher { margin-left: 20px; display: flex; align-items: center; height: 100%; }
.language-dropdown { position: relative; }
.language-btn {
  background: none;
  border: 1px solid #ddd;
  border-radius: 20px;
  padding: 8px 14px;
  color: #333;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 6px;
  height: auto;
  line-height: 1;
}
.language-btn:hover { background-color: #1b4d5d; color: white; border-color: #1b4d5d; }
.language-icon { width: 13px; height: 13px; animation: spin 2s linear infinite; transform-origin: center center; display: inline-block; }
.arrow-icon { width: 12px; height: 12px; transition: transform 0.3s ease; }
.arrow-icon.arrow-up { transform: rotate(180deg); }
@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
.dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  min-width: 160px;
  overflow: hidden;
  z-index: 1000;
  animation: fadeIn 0.2s ease;
}
@keyframes fadeIn { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }
.dropdown-item { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; cursor: pointer; transition: all 0.2s ease; }
.dropdown-item:hover { background-color: #f5f7fa; }
.dropdown-item.active { background-color: #e8f4f8; color: #1b4d5d; }
.lang-label { font-weight: 600; font-size: 14px; }
.lang-name { font-size: 12px; color: #666; }
.dropdown-item.active .lang-name { color: #1b4d5d; }

/* ---------- Footer ---------- */
.footer { background: #1e293b; color: white; padding: 20px 0 30px; position: relative; z-index: 20; width: 100%; }
.footer .container { max-width: 100%; margin: 0 auto; padding: 0 20px; }
.footer-content { display: flex; justify-content: space-between; align-items: flex-start; padding: 0 20px; margin-bottom: 10px; max-width: 100%; }
.footer-links-left { display: flex; gap: 40px; flex: 0 0 auto; justify-content: flex-start; flex-wrap: wrap; }
.footer-follow-us { flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; text-align: center; margin-left: 80px; }
.footer-follow-us h4 { font-size: 1.1rem; margin-bottom: 20px; color: white; }
.footer-follow-us .social-qrcodes { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; }
.footer-follow-us .qrcode-item { display: flex; flex-direction: column; align-items: center; text-align: center; position: relative; overflow: hidden; }
.footer-follow-us .qrcode-img { width: 110px; height: 110px; margin-bottom: 8px; border-radius: 8px; transition: transform 0.3s ease; position: relative; z-index: 1; }
.footer-follow-us .qrcode-item::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(to bottom, rgba(255,255,255,0) 0%, rgba(255,255,255,0) 45%, rgba(255,255,255,0.6) 50%, rgba(255,255,255,0) 55%, rgba(255,255,255,0) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 2;
}
.footer-follow-us .qrcode-item::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; width: 100%; height: 4px;
  background: linear-gradient(90deg, rgba(66,153,225,0) 0%, rgba(66,153,225,0.8) 50%, rgba(66,153,225,0) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 2;
}
.footer-follow-us .qrcode-item:hover::before { opacity: 1; animation: scan-line 2s ease-in-out infinite; }
.footer-follow-us .qrcode-item:hover::after { opacity: 1; }
.footer-follow-us .qrcode-item:hover .qrcode-img { transform: scale(1.05); box-shadow: 0 4px 15px rgba(66,153,225,0.3); }
@keyframes scan-line { 0% { transform: translateY(-100%); } 100% { transform: translateY(100%); } }
.footer-follow-us .qrcode-item p { color: #94a3b8; font-size: 0.85rem; margin: 0; line-height: 1.2; text-align: center; min-height: 1.2em; display: flex; align-items: center; justify-content: center; width: 100%; }
.footer-info-right { text-align: left; flex-shrink: 0; max-width: 400px; }
.footer-info-right h3 { font-size: 1.5rem; margin-bottom: 15px; color: white; }
.footer-info-right p { margin-bottom: 10px; color: #94a3b8; }
.footer-column h4 { font-size: 1.1rem; margin-bottom: 20px; }
.footer-column ul { list-style: none; padding: 0; margin: 0; }
.footer-column li { margin-bottom: 12px; }
.footer-column a { color: #94a3b8; text-decoration: none; transition: color 0.3s ease; }
.footer-column a:hover { color: white; }
.footer-info-right .contact-info { margin-top: 20px; padding-top: 15px; border-top: 1px solid rgba(255,255,255,0.1); text-align: left; }
.footer-info-right .contact-item { margin-bottom: 15px; }
.footer-info-right .contact-item p { color: #94a3b8; font-size: 0.9rem; margin: 0; line-height: 1.6; white-space: nowrap; overflow: visible; text-align: left; }
.footer-bottom { padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.1); }
.copyright-info { text-align: center; color: #94a3b8; font-size: 0.9rem; }
.copyright-info .icp-link { color: #94a3b8; text-decoration: none; transition: color 0.3s ease; }
.copyright-info .icp-link:hover { color: white; text-decoration: underline; }
.nav-links-wrapper { position: absolute; left: 20px; top: 0; z-index: 10; }

/* ---------- 首页 WebsiteHomePage ---------- */
.website-home-page {
  width: 100%;
  height: 100vh;
  overflow-x: hidden;
  position: relative;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}
.seo-h1 { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.modern-decoration { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; overflow: hidden; background: linear-gradient(180deg, #f8fafc 0%, #eff6ff 100%); }
.dot-matrix-bg {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  background-image: radial-gradient(#cbd5e1 1px, transparent 1px);
  background-size: 30px 30px;
  opacity: 0.4;
  mask-image: linear-gradient(to bottom, black 40%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, black 40%, transparent 100%);
}
.aurora-container { position: absolute; top: 0; left: 0; width: 100%; height: 100%; filter: blur(80px); opacity: 0.6; }
.aurora-blob { position: absolute; border-radius: 50%; animation: aurora-move 20s infinite alternate ease-in-out; mix-blend-mode: multiply; }
.blob-1 { width: 500px; height: 500px; background: #bfdbfe; top: -100px; left: -100px; animation-duration: 25s; }
.blob-2 { width: 400px; height: 400px; background: #ddd6fe; top: 20%; right: -50px; animation-duration: 30s; animation-delay: -5s; }
.blob-3 { width: 350px; height: 350px; background: #ccfbf1; bottom: -50px; left: 20%; animation-duration: 22s; animation-delay: -10s; }
@keyframes aurora-move {
  0% { transform: translate(0,0) scale(1); }
  33% { transform: translate(30px,50px) scale(1.1); }
  66% { transform: translate(-20px,20px) scale(0.9); }
  100% { transform: translate(0,0) scale(1); }
}
.network-nodes { position: absolute; width: 100%; height: 100%; }
.node { position: absolute; width: 4px; height: 4px; background: #3b82f6; border-radius: 50%; box-shadow: 0 0 10px rgba(59,130,246,0.6); animation: node-pulse 4s infinite ease-in-out; }
.node-1 { top: 20%; left: 15%; animation-delay: 0s; }
.node-2 { top: 60%; left: 80%; animation-delay: 1s; }
.node-3 { top: 30%; left: 70%; animation-delay: 2s; }
.node-4 { top: 75%; left: 20%; animation-delay: 1.5s; }
.node-5 { top: 15%; right: 25%; animation-delay: 3s; }
@keyframes node-pulse {
  0%, 100% { transform: scale(1); opacity: 0.4; box-shadow: 0 0 5px rgba(59,130,246,0.4); }
  50% { transform: scale(1.5); opacity: 0.8; box-shadow: 0 0 15px rgba(59,130,246,0.8); }
}
.content-wrapper { position: relative; z-index: 2; width: 100%; height: 100%; }
.content-wrapper iframe { width: 100%; height: 100%; border: none; position: relative; z-index: 3; }

/* ---------- 移动端适配 ---------- */
@media (max-width: 768px) {
  /* 手机端不启用液态玻璃 warp，保持白底通栏 */
  .header-glass-warp { display: none !important; }
  /* 单行 header：logo 左 + 汉堡按钮右（手机端不使用居中胶囊） */
  .header { position: fixed; background: rgba(255,255,255,0.97) !important; box-shadow: 0 2px 10px rgba(0,0,0,0.06); }
  .header .container { flex-direction: row; align-items: center; justify-content: space-between; gap: 0; padding: 8px 15px; min-height: 60px; box-sizing: border-box; width: 100%; margin: 0; border-radius: 0; border-color: transparent; background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; box-shadow: none; }
  /* 同特异性覆盖桌面 .header.scrolled .container 的玻璃背景，手机端保持通栏无胶囊 */
  .header.scrolled .container { background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; border-color: transparent; box-shadow: none; margin: 0; padding: 8px 15px; }
  /* 覆盖 .liquid-refract 下的高特异性规则：无阴影、位置复位 */
  .liquid-refract .header.scrolled .container { background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; border-color: transparent; box-shadow: none; margin: 0; padding: 8px 15px; }
  .left-content { width: auto; margin-bottom: 0; }
  .logo-container { padding: 4px 0; }
  .logo-image { max-height: 38px; }
  .right-content { width: auto; align-items: center; display: flex; }
  /* 抵消桌面端 .header.scrolled 收紧规则，保持抽屉菜单原样 */
  .header.scrolled .logo-container { padding: 4px 0; }
  .header.scrolled .logo-image { max-height: 38px; }
  .header.scrolled .nav a { padding: 15px 22px; }
  .header.scrolled .language-switcher { margin-left: 0; }
  /* 手机端语言按钮不做下移 */
  .header .language-btn, .header.scrolled .language-btn { transform: none; }

  /* 汉堡按钮（三横线，点击变 X） */
  .nav-toggle { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 5px; width: 42px; height: 42px; padding: 9px; background: transparent; border: none; cursor: pointer; position: relative; z-index: 1002; }
  .nav-toggle-bar { display: block; width: 24px; height: 2px; background: #1b4d5d; border-radius: 2px; transition: transform 0.3s ease, opacity 0.3s ease; }
  .nav-toggle.active .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.active .nav-toggle-bar:nth-child(2) { opacity: 0; }
  .nav-toggle.active .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  /* 抽屉式导航：右侧滑入 */
  .nav { position: fixed; top: 0; right: 0; width: 78%; max-width: 320px; height: 100vh; height: 100dvh; background: #ffffff; box-shadow: -4px 0 24px rgba(0,0,0,0.12); transform: translateX(105%); transition: transform 0.32s ease; z-index: 1002; overflow-y: auto; -webkit-overflow-scrolling: touch; padding-top: 66px; display: block; }
  .nav.open { transform: translateX(0); }
  .nav ul { flex-direction: column; align-items: stretch; gap: 0; height: auto; width: 100%; padding: 0; margin: 0; }
  .nav li { display: block; border-bottom: 1px solid #eef2f4; }
  .nav a { display: block; padding: 15px 22px; font-size: 15px; color: #253858 !important; }
  .nav a::after { display: none; }
  .nav a.router-link-active { color: #1b4d5d !important; background: #f2f8f9; font-weight: 600; }
  .nav li:last-child { border-bottom: none; padding: 14px 18px; }

  /* 遮罩层 */
  .nav-overlay { display: block; position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(15,35,45,0.45); opacity: 0; pointer-events: none; transition: opacity 0.3s ease; z-index: 1001; }
  .nav-overlay.show { opacity: 1; pointer-events: auto; }
  body.menu-open { overflow: hidden; }

  .language-switcher { margin-left: 0; }
  .language-btn { padding: 8px 12px; font-size: 13px; }
  .dropdown-menu { min-width: 150px; }
  .dropdown-item { padding: 10px 12px; }

  /* 单行 header（60px）后，原为两行 header 预留的顶部空间收窄 */
  .calculator-page, .model-test-page, .material-test-page { padding-top: 64px; }
}

/* ============================================================
   选型中心 ProductsPage.vue（1:1 还原，原 <style scoped> 内容）
   ============================================================ */

/* 页面基础样式 */
.selection-center {
  min-height: 100vh;
  background: #e8e8e8;
  padding-top: 0;
}
/* 页面样式 - 已简化 */
.selection-center {
  padding: 0;
}
.selection-tool {
  padding: 0;
  margin: 0;
  /* 作为 .main-layout(flex) 的唯一子元素必须拉伸占满主轴，
     否则内部 .product-preview(flex:1) 会按内容收缩，大屏下右侧出现大片空白 */
  flex: 1 1 auto;
  min-width: 0;
  width: 100%;
}

.tool-container {
  padding: 0;
  max-width: none;
  margin: 0;
  display: flex;
  gap: 0;
  align-items: flex-start;
  margin-top: 0;
  margin-left: 0;
  margin-bottom: 0;
}

/* 分类导航样式 */
/* 采用 sticky 粘性定位：目录保留在文档流中，滚动时吸附在头部下方；
   滚动到页面底部时随内容一起被推走，从原理上不会与页脚重叠，
   无需再靠 z-index 与页脚"抢层级" */
.category-nav {
  width: 320px;
  flex-shrink: 0;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
  position: sticky;
  top: 120px; /* 吸附位置：头部(80px)下方 40px */
  margin-left: 20px;
  margin-top: 120px; /* 初始位置与原 fixed 的 top:120px 视觉一致 */
  border: none;
  align-self: flex-start;
  z-index: 10;
  max-height: calc(100vh - 140px); /* 吸附状态下不超出视口，留出底部空间 */
  display: flex;
  flex-direction: column;
  overflow: hidden; /* 防止整个导航区域溢出 */
}

.category-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 24px;
  text-align: left;
  padding-bottom: 0;
  border-bottom: none;
  padding-left: 16px;
}

.category-list {
  display: flex;
  flex-direction: column;
  position: relative;
  overflow-y: auto; /* 允许垂直滚动 */
  overflow-x: hidden; /* 隐藏水平滚动 */
  max-height: calc(100vh - 200px); /* 确保列表可以滚动，留出标题和底部空间 */
  padding-bottom: 20px; /* 底部内边距，确保最后一项可见 */
  scrollbar-width: thin; /* Firefox 滚动条样式 */
  scrollbar-color: #cbd5e1 transparent; /* Firefox 滚动条颜色 */
}

/* Webkit 浏览器滚动条样式（Chrome, Safari, Edge） */
.category-list::-webkit-scrollbar {
  width: 6px;
}

.category-list::-webkit-scrollbar-track {
  background: transparent;
}

.category-list::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 3px;
}

.category-list::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

.category-list::before {
  content: '';
  position: absolute;
  right: 0;
  top: 0;
  width: 2px;
  height: 100%;
  background: #e5e7eb;
}

.category-item {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  padding: 14px 18px;
  border-radius: 0;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  background: transparent;
  margin-bottom: 2px;
  position: relative;
  padding-left: 16px;
}

.category-item:hover {
  background: #f9fafb;
  border-color: transparent;
  transform: translateX(0);
}

.category-item.active {
  background: #f1f5f9;
  color: #1b4d5d;
  border-color: transparent;
  box-shadow: none;
  transform: translateX(0);
}

.category-indicator {
  position: absolute;
  right: -1px;
  top: 10%;
  width: 3px;
  height: 80%;
  background: #1b4d5d;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 2;
  opacity: 0;
  transform: scaleY(0);
  transform-origin: center;
}

.category-item.active .category-indicator {
  opacity: 1;
  transform: scaleY(1);
}

.category-name {
  font-weight: 500;
  font-size: 1rem;
}



/* 产品预览样式 */
/* 目录回到文档流后，此处为普通 flex 子项，不再需要
   margin-left / width 手动补偿 fixed 定位留下的空位 */
.product-preview {
  flex: 1;
  min-width: 0;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
  margin-right: 20px;
  margin-top: 80px;
  position: relative;
  z-index: 1;
  box-sizing: border-box;
}

@media (max-width: 768px) {
  .product-info {
    margin-top: 16px;
  }
}

.product-grid-container {
  margin-top: 60px;
  padding-top: 20px;
  position: relative;
  z-index: 1;
  padding-right: 20px;
  padding-bottom: 120px; /* 增加底部内边距，确保内容不被Footer遮挡 */
}

.preview-title {
  font-size: 2rem;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 40px;
  margin-top: 20px;
  text-align: left;
  padding-top: 16px;
  margin-left: 80px;
  padding-right: 60px;
}

.product-grid {
  display: grid;
  /* 两列布局，使用fr单位确保自适应 */
  grid-template-columns: repeat(2, 1fr);
  /* 自适应行高 */
  grid-template-rows: repeat(2, auto);
  gap: 32px 40px;
  /* 容器宽度自适应，最大宽度保持原有尺寸 */
  width: 100%;
  max-width: calc(1160px + 40px);
  padding: 0;
  background: transparent;
  margin: 0 auto;
  margin-top: 0;
  padding-bottom: 40px; /* 保持原有底部内边距，主要底部空间由product-grid-container提供 */
  box-sizing: border-box;
}

.product-item {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 12px;
  padding: 24px 20px;
  transition: all 0.3s ease;
  border: 1px solid #e2e8f0;
  cursor: default;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 20px;
  /* 固定高度，不可更改，高度降低 */
  height: 280px;
  min-height: 280px;
  max-height: none;
  justify-content: flex-start;
  /* 宽度自适应父容器 */
  width: 100%;
  max-width: 100%;
  margin: 0;
  box-sizing: border-box;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  min-width: 0; /* 防止内容溢出 */
  /* 最小高度保证内容区域大小 */
  min-height: 280px;
  z-index: 1;
}

/* 产品卡片流动边框效果 */
.product-item::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 12px;
  padding: 2px; /* 边框宽度 */
  background: linear-gradient(
    60deg,
    #3b82f6,
    #8b5cf6,
    #ec4899,
    #10b981,
    #3b82f6
  );
  background-size: 300% 300%;
  -webkit-mask: 
    linear-gradient(#fff 0 0) content-box, 
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: 
    linear-gradient(#fff 0 0) content-box, 
    linear-gradient(#fff 0 0);
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 2;
  animation: product-border-flow 4s linear infinite;
}

@keyframes product-border-flow {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.product-item:hover::after {
  opacity: 1;
}

.product-item:hover {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  border-color: transparent; /* 隐藏原有边框，显示流动边框 */
  background: #ffffff;
}

/* 移除产品项的顶部装饰线条 */

.product-image-right {
  /* 响应式图片尺寸，根据屏幕大小调整 */
  width: 40%;
  min-width: 180px;
  height: 165px;
  margin: 0;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  flex-shrink: 0;
  position: relative;
}



.product-content-left {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 0 16px;
  min-width: 0;
  text-align: center;
  width: 100%;
  white-space: normal;
  word-wrap: break-word;
  max-width: 100%;
}

.product-item:hover .product-image-right {
  transform: none;
}

.product-image-right img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  object-position: center;
  transition: transform 0.3s ease;
}

.image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: #64748b;
  font-size: 1.5rem;
  font-weight: 500;
}

.product-info {
    margin-top: 16px;
  }

/* 3D按钮样式 */
.product-3d-button {
  background: transparent;
  color: #1b4d5d;
  border: 1px solid #1b4d5d;
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 16px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  white-space: nowrap;
  display: flex;
  align-items: center;
  pointer-events: auto;
  justify-content: center;
  gap: 6px;
}

.product-3d-button:hover {
  background: #1b4d5d;
  color: white;
}

/* 移动端适配 */
@media (max-width: 768px) {
  .product-code {
    font-size: 0.6875rem;
  }
}

.product-3d-button::before {
  content: '';
  width: 16px;
  height: 16px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%231b4d5d'%3E%3Cpath d='M21 16.5c0 .38-.21.71-.53.88l-7.9 4.44c-.16.09-.34.13-.53.13s-.37-.04-.53-.13l-7.9-4.44C3.21 17.21 3 16.88 3 16.5v-9c0-.38.21-.71.53-.88l7.9-4.44c.16-.09.34-.13.53-.13s.37.04.53.13l7.9 4.44c.32.17.53.5.53.88v9zM12 4.15L5.5 8 12 11.85 18.5 8 12 4.15zM5 15.58l6.5 3.67v-7.17l-6.5-3.67v7.17zm14-7.17l-6.5 3.67v7.17l6.5-3.67v-7.17z'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
}

.product-3d-button:hover::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M21 16.5c0 .38-.21.71-.53.88l-7.9 4.44c-.16.09-.34.13-.53.13s-.37-.04-.53-.13l-7.9-4.44C3.21 17.21 3 16.88 3 16.5v-9c0-.38.21-.71.53-.88l7.9-4.44c.16-.09.34-.13.53-.13s.37.04.53.13l7.9 4.44c.32.17.53.5.53.88v9zM12 4.15L5.5 8 12 11.85 18.5 8 12 4.15zM5 15.58l6.5 3.67v-7.17l-6.5-3.67v7.17zm14-7.17l-6.5 3.67v7.17l6.5-3.67v-7.17z'/%3E%3C/svg%3E");
}

.product-3d-button:hover {
  background: #2d5f70;
  box-shadow: 0 4px 12px rgba(27, 77, 93, 0.4);
  transform: translateY(-2px);
}

.product-3d-button:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(27, 77, 93, 0.3);
}

.product-3d-button:active {
  transform: translateX(0);
}

.product-title-container {
    position: relative;
    display: block;
    cursor: pointer;
    padding: 0;
    min-height: 24px;
    width: 100%;
    text-align: center;
  }
  
  .product-name {
    font-size: 1.375rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 6px; /* 增加与型号代码的间距 */
    line-height: 1.3;
    text-align: center;
      white-space: normal;
      word-wrap: break-word;
      overflow: visible;
    width: 100%;
  }
  
  .copy-icon {
    position: absolute;
    top: 0;
    right: 0;
    color: #666;
    cursor: pointer;
    transition: color 0.2s;
    padding: 4px;
    background: #f8fafc;
    border-radius: 4px;
    border: 1px solid #e2e8f0;
    z-index: 10;
    opacity: 0.9;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    pointer-events: auto;
  }
  
  .copy-icon:hover {
    color: #1890ff;
    background: #ffffff;
  }
  
  .copy-success-text {
    position: absolute;
    top: 0;
    right: -80px;
    font-size: 0.75rem;
    color: #52c41a;
    background: #f6ffed;
    padding: 2px 8px;
    border-radius: 4px;
    border: 1px solid #b7eb8f;
    white-space: nowrap;
    z-index: 20;
  }

.product-code {
    font-size: 0.75rem;
    color: #94a3b8;
    font-weight: 400;
    margin-bottom: 6px;
    line-height: 1.4;
    text-align: center;
    width: 100%;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  }

.product-model {
  font-size: 0.9375rem;
  color: #64748b;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 500;
  text-align: center;
  width: 100%;
  margin-bottom: 4px;
  line-height: 1.3;
  white-space: normal;
  word-wrap: break-word;
  line-height: 1.4;
}

.product-model.special-color {
  color: #1b4d5d;
  white-space: normal;
  word-wrap: break-word;
  line-height: 1.6;
}

/* 大类产品详细信息展示框样式 */
.category-details-box {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 32px;
  margin-top: 32px;
  margin-left: 20px;
  margin-right: 20px;
  margin-bottom: 40px; /* 增加底部外边距，确保不被Footer遮挡 */
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  text-align: left;
  width: calc(100% - 40px); /* 确保宽度与上方模块一致，减去左右边距 */
  max-width: calc(1160px + 40px); /* 与产品网格容器最大宽度一致 */
  margin-left: auto;
  margin-right: auto;
}

.category-details-box .details-container {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.category-details-box .detail-section {
  background: #f8fafc;
  padding: 20px;
  border-radius: 8px;
  border-left: 4px solid #1b4d5d;
}

.category-details-box .detail-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: #1b4d5d;
  margin-bottom: 12px;
  line-height: 1.4;
}

.category-details-box .detail-content {
  font-size: 0.9375rem;
  color: #475569;
  line-height: 1.6;
  margin: 0;
  text-align: left;
}

.category-details-box .detail-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.category-details-box .detail-list p {
  font-size: 0.9375rem;
  color: #475569;
  margin: 0;
  line-height: 1.5;
  text-align: left;
}

.category-details-box .detail-requirements {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.category-details-box .detail-requirements p {
  font-size: 0.9375rem;
  color: #475569;
  margin: 0;
  line-height: 1.5;
  padding-left: 12px;
  position: relative;
  text-align: left;
}

.category-details-box .detail-requirements p::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 4px;
  height: 4px;
  background: #1b4d5d;
  border-radius: 50%;
}

.category-details-box .tech-specs-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.category-details-box .tech-spec-item {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 16px;
  transition: all 0.3s ease;
}

.category-details-box .tech-spec-item:hover {
  border-color: #1b4d5d;
  box-shadow: 0 2px 8px rgba(27, 77, 93, 0.1);
}

.category-details-box .tech-spec-model {
  font-size: 1rem;
  font-weight: 600;
  color: #1b4d5d;
  margin: 0 0 12px 0;
  padding-bottom: 8px;
  border-bottom: 2px solid #1b4d5d;
}

.category-details-box .tech-spec-details {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.category-details-box .tech-spec-line {
  font-size: 0.875rem;
  color: #475569;
  margin: 0;
  line-height: 1.6;
  padding: 4px 0;
}

@media (max-width: 768px) {
  .category-details-box .tech-spec-details {
    grid-template-columns: 1fr;
  }
}



/* 主布局 */
.main-layout {
  min-height: 100vh;
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  background: #ffffff;
  padding: 0;
  position: relative;
  z-index: 0;
  margin: 0;
}

/* 响应式适配 - 针对屏幕高度大于700px的情况（正常屏幕） */
@media (min-height: 701px) {
  .category-list {
    overflow-y: visible; /* 隐藏滚动条 */
    max-height: none; /* 不限制最大高度 */
  }
  
  .category-list::-webkit-scrollbar {
    width: 0px; /* 隐藏滚动条 */
  }
  
  .category-list::-webkit-scrollbar-track {
    background: transparent; /* 隐藏滚动条轨道 */
  }
  
  .category-list::-webkit-scrollbar-thumb {
    background: transparent; /* 隐藏滚动条滑块 */
  }
}

/* 响应式适配 - 针对13.3英寸(约1280px)及以下屏幕 */
@media (max-width: 1280px) {
  .category-nav {
    max-height: calc(100vh - 120px); /* 调整最大高度以适应较小屏幕 */
  }
  
  .category-list {
    max-height: calc(100vh - 180px); /* 调整列表最大高度 */
  }
  
  .product-grid {
    /* 减少列间距 */
    gap: 24px 20px;
    /* 容器宽度自适应 */
    width: 95%;
    max-width: none;
  }
  
  .product-item {
    /* 调整产品项内部间距 */
    padding: 20px 16px;
    gap: 16px;
  }
  
  .product-image-right {
    /* 调整图片区域宽度比例 */
    width: 35%;
    min-width: 160px;
    height: 140px;
  }
  
  .product-name {
    /* 调整字体大小 */
    font-size: 1.25rem;
  }
  
  .product-model {
    /* 调整字体大小 */
    font-size: 0.875rem;
  }
  
  /* 调整详细说明模块在小屏幕下的宽度和边距 */
  .category-details-box {
    width: 95%;
    max-width: none;
    margin-left: auto;
    margin-right: auto;
  }
}

/* 响应式适配 - 针对屏幕高度小于700px的情况 */
@media (max-height: 700px) {
  /* sticky 模式：top 为吸附位置，margin-top 保证初始位置在头部下方 */
  .category-nav {
    max-height: calc(100vh - 120px); /* 保持合适的高度 */
    margin-top: 120px; /* 初始位置与头部保持间距 */
    top: 120px; /* 吸附位置与主样式一致 */
  }
  
  .category-list {
    max-height: calc(100vh - 160px); /* 合适的列表高度 */
    overflow-y: auto; /* 确保显示滚动条 */
    padding-right: 8px; /* 为滚动条预留空间 */
  }
  
  /* 自定义滚动条样式 */
  .category-list::-webkit-scrollbar {
    width: 6px;
  }
  
  .category-list::-webkit-scrollbar-track {
    background: rgba(241, 245, 249, 0.8);
    border-radius: 3px;
  }
  
  .category-list::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
  }
  
  .category-list::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
  }
  
  /* 保持与主样式一致的顶部边距，避免产品图片位置变化 */
  .product-preview {
    margin-top: 80px; /* 与主样式保持一致 */
  }
  
  /* 适当调整产品项样式，但保持整体布局 */
  .product-item {
    min-height: 220px; /* 合适的产品项高度 */
    padding: 16px 20px;
  }
  
  .product-name {
    font-size: 1.125rem;
  }
  
  .product-model {
    font-size: 0.8125rem;
    margin-bottom: 2px;
    line-height: 1.2;
  }
  
  .product-code {
    font-size: 0.75rem;
  }
  
  .product-image-right {
    height: 120px;
  }
  
  .product-content-left {
    gap: 8px;
  }
  
  .product-3d-button {
    padding: 8px 16px;
    font-size: 0.8125rem;
  }
  
  /* 保持产品网格容器样式 */
  .product-grid-container {
    padding-bottom: 60px;
  }
  
  .product-grid {
    gap: 20px 24px;
  }
}

/* 响应式适配 - 针对小型笔记本和大型平板(约1024px) */
@media (max-width: 1024px) {
  .category-nav {
    max-height: calc(100vh - 100px); /* 进一步调整最大高度 */
  }
  
  .category-list {
    max-height: calc(100vh - 160px); /* 进一步调整最大高度 */
  }
  
  .product-grid {
    /* 改为单列布局 */
    grid-template-columns: 1fr;
    grid-template-rows: repeat(4, auto);
    width: 85%;
    gap: 24px;
  }
  
  .product-item {
    /* 调整产品项高度 */
    min-height: 260px;
    height: auto;
  }
  
  .product-image-right {
    /* 调整图片区域大小 */
    width: 220px;
    height: 160px;
  }
  
  /* 调整详细说明模块在1024px以下屏幕的宽度和边距 */
  .category-details-box {
    width: 85%;
    padding: 24px;
  }
}

/* 移动端适配 - 针对屏幕宽度小于768px的情况 */
@media (max-width: 768px) {
  .selection-center {
    background: #f5f5f5;
    min-height: 100vh;
    padding-top: 0;
  }
  
  .main-layout {
    display: block;
    width: 100%;
  }
  
  .selection-tool {
    display: block;
    width: 100%;
  }

  /* 重置主布局 */
  .tool-container {
    flex-direction: column !important;
    display: flex !important;
    width: 100%;
    padding: 0;
  }

  /* 导航栏适配：改为顶部横向滚动 */
  .category-nav {
    width: 100% !important;
    position: relative !important;
    top: 0 !important;
    left: 0 !important;
    margin-left: 0 !important;
    margin-top: 70px !important;
    padding: 15px 0;
    max-height: none !important;
    background: #fff;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  }

  .category-title {
    display: none !important;
  }

  .category-list {
    flex-direction: row !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    white-space: nowrap !important;
    padding: 0 15px;
    max-height: none !important;
    gap: 10px;
    -webkit-overflow-scrolling: touch;
    border-right: none !important;
  }
  
  .category-list::-webkit-scrollbar {
    display: none; 
  }

  .category-item {
    flex-shrink: 0;
    padding: 8px 16px;
    border-radius: 20px;
    background: #f1f5f9;
    margin-bottom: 0;
    border: 1px solid transparent;
  }
  
  .category-item.active {
    background: #1b4d5d;
    color: white;
  }
  
  .category-indicator {
    display: none !important;
  }

  /* 产品预览区域适配 */
  .product-preview {
    margin-left: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    margin-top: 20px !important;
    padding: 0 15px !important;
    position: relative !important;
    left: 0 !important;
    right: 0 !important;
    flex: none !important;
    display: block !important;
    background: transparent;
  }

  .preview-title {
    margin-left: 0 !important;
    padding-left: 0 !important;
    text-align: center;
    font-size: 1.5rem;
    margin-bottom: 20px;
  }

  .product-grid-container {
    padding-right: 0 !important;
    padding-bottom: 40px;
  }

  .product-grid {
    grid-template-columns: 1fr !important;
    width: 100% !important;
    gap: 15px;
    padding-bottom: 20px;
  }

  /* 产品卡片适配 */
  .product-item {
    display: flex !important;
    flex-direction: column !important;
    height: auto !important;
    min-height: auto !important;
    padding: 15px !important;
    align-items: center !important;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  }

  .product-image-right {
    display: block !important;
    width: 100% !important;
    height: 200px !important;
    min-height: 200px !important;
    margin-bottom: 15px !important;
    background-color: #f9fafb;
    flex: none !important;
    order: -1 !important;
    border-radius: 8px;
    overflow: hidden;
  }
  
  .product-image-right img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    display: block !important;
  }

  .product-content-left {
    display: flex !important;
    flex-direction: column !important;
    padding: 5px 0 !important;
    width: 100% !important;
    flex: none !important;
    height: auto !important;
    text-align: center;
  }

  .product-name {
    font-size: 1.1rem !important;
    color: #1f2937;
    display: block !important;
    font-weight: 600 !important;
    margin-bottom: 8px;
  }
  
  .product-code, .product-model {
    color: #6b7280;
    display: block !important;
    font-size: 0.875rem !important;
    line-height: 1.4;
  }
  
  .product-3d-button {
    margin-top: 12px;
    padding: 8px 20px;
    background: #1b4d5d;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.3s ease;
  }
  
  .product-3d-button:active {
    transform: scale(0.95);
    background: #153d4d;
  }
  
  /* 隐藏移动端不需要的元素 */
  .copy-icon {
    display: none !important;
  }
  
  .copy-success-text {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 0.875rem;
    z-index: 9999;
  }
  
  /* 禁用移动端的流动边框效果 */
  .product-item::after {
    display: none !important;
  }
  
  .product-item:hover::after {
    opacity: 0 !important;
  }

  /* 详情框适配 */
  .category-details-box {
    width: 100% !important;
    margin: 20px 0 !important;
    padding: 15px;
    border-radius: 12px;
    background: white;
  }
  
  .details-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
  }
  
  .detail-section {
    padding: 12px 0;
    border-bottom: 1px solid #e5e7eb;
  }
  
  .detail-section:last-child {
    border-bottom: none;
  }
  
  .category-details-box .detail-title {
    font-size: 1rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 8px;
  }
  
  .category-details-box .detail-content,
  .category-details-box .detail-list p,
  .category-details-box .detail-requirements p {
    font-size: 0.875rem;
    line-height: 1.6;
    color: #4b5563;
  }
}

/* ============================================================
   料卷计算器 CalculatorPage.vue（1:1 还原，原 <style scoped> 内容）
   ============================================================ */

.calculator-page {
  background-color: #F5F7FA;
  min-height: 100vh;
  font-family: 'Inter', system-ui, sans-serif;
  color: #253858;
  display: flex;
  flex-direction: column;
  padding-top: 80px; /* 为固定导航栏预留空间 */
  padding-bottom: 48px; /* 为底部页脚预留空间，避免文字被遮挡 */
}

/* 可视化右上角卷芯尺寸下拉选择样式 */
.core-select-wrapper {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: #4b5563;
}

.core-select-label {
  color: #6b7280;
}

.core-select {
  padding: 0.25rem 0.75rem;
  border-radius: 0.5rem;
  border: 1px solid #d1d5db;
  background-color: #ffffff;
  color: #1b4d5d;
  font-size: 0.85rem;
  outline: none;
  cursor: pointer;
}

.core-select:focus {
  border-color: #1b4d5d;
  box-shadow: 0 0 0 2px rgba(27, 77, 93, 0.15);
}

/* 可视化区域自定义卷芯输入框 */
.core-custom-input {
  width: 90px;
  padding: 0.25rem 0.5rem;
  border-radius: 0.5rem;
  border: 1px solid #d1d5db;
  background-color: #ffffff;
  color: #1b4d5d;
  font-size: 0.85rem;
  font-weight: 500;
  outline: none;
  text-align: center;
}

.core-custom-input::placeholder {
  color: #94a3b8;
  font-weight: 400;
}

.core-custom-input:focus {
  border-color: #1b4d5d;
  box-shadow: 0 0 0 2px rgba(27, 77, 93, 0.15);
}

/* 可视化头部控件换行（卷芯+留白同排过多时自动换行） */
.core-select-wrapper-wrap {
  flex-wrap: wrap;
  row-gap: 6px;
  justify-content: flex-end;
}

.blank-label {
  margin-left: 0.5rem;
}

.blank-input {
  width: 64px;
}

.input-field {
  width: 100%;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  border: 1px solid #d1d5db;
  transition: all 0.2s;
}

.input-field:focus {
  outline: none;
  ring: 2px;
  ring-color: rgba(27, 77, 93, 0.5);
  border-color: #1b4d5d;
}

.input-field-small-placeholder::placeholder {
  font-size: 0.75rem;
}

.input-error {
  border-color: #ef4444;
}

.input-error:focus {
  ring-color: rgba(239, 68, 68, 0.2);
  border-color: #ef4444;
}

.error-message {
  color: #dc2626;
  font-size: 0.875rem;
  margin-top: 0.25rem;
  display: flex;
  align-items: center;
  font-weight: 500;
}

.error-message i {
  margin-right: 0.375rem;
}

.card {
  background-color: white;
  border-radius: 0.75rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  padding: 1.5rem;
  transition: all 0.3s;
}

.card:hover {
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.form-section {
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #f3f4f6;
}

.form-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.form-section-title {
  font-size: 1rem;
  font-weight: 600;
  color: #374151;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
}

.form-section-title i {
  color: #1b4d5d;
  margin-right: 0.5rem;
}

.btn {
  padding: 0.5rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 500;
  transition: all 0.2s;
  transform: scale(1);
}

.btn:hover {
  transform: scale(1.05);
}

.btn:focus {
  outline: none;
  ring: 2px;
  ring-offset: 2px;
}

.btn-primary {
  background-color: #1b4d5d;
  color: white;
}

.btn-primary:hover {
  background-color: rgba(27, 77, 93, 0.9);
}

.btn-primary:focus {
  ring-color: rgba(27, 77, 93, 0.5);
}

/* 工程师模式按钮 - 白底描边 */
.engineer-btn {
  background-color: #ffffff;
  color: #1b4d5d;
  border: 1px solid #d1d5db;
  border-radius: 0.75rem;
  padding-left: 2.5rem;
  padding-right: 2.5rem;
}

.engineer-btn:hover {
  background-color: #f3f4f6;
}

/* 计算按钮 - 深色实心 */
.calc-btn {
  background-color: #1b4d5d;
  color: #ffffff;
  border-radius: 0.75rem;
  border: none;
  min-width: 120px;
}

.calc-btn:hover {
  background-color: #163c48;
}

/* 重置按钮 - 白底描边 */
.reset-btn {
  background-color: #ffffff;
  color: #1b4d5d;
  border-radius: 0.75rem;
  border: 1px solid #d1d5db;
  min-width: 120px;
}

.reset-btn:hover {
  background-color: #f9fafb;
}

.result-item {
  padding: 1rem;
  background-color: #F5F7FA;
  border-radius: 0.5rem;
  border: 1px solid #e5e7eb;
  margin-bottom: 0.75rem;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
}

.result-item:hover {
  border-color: rgba(27, 77, 93, 0.3);
}

.input-group {
  margin-bottom: 1rem;
}

.label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: #374151;
  margin-bottom: 0.25rem;
}

.tooltip {
  position: absolute;
  background-color: #253858;
  color: white;
  font-size: 0.75rem;
  border-radius: 0.25rem;
  padding: 0.5rem 0.75rem;
  z-index: 10;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
  pointer-events: none;
  max-width: 14rem;
  width: 14rem;
  white-space: normal;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.tooltip p {
  margin: 0.25rem 0;
  line-height: 1.4;
}

.tooltip-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.tri-option-note {
  font-size: 0.75rem;
  color: #1b4d5d;
  margin-top: 0.25rem;
  display: flex;
  align-items: center;
}

.tri-option-note i {
  margin-right: 0.25rem;
  font-size: 0.75rem;
}

.history-item {
  padding: 0.75rem;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
  transition: background-color 0.2s;
}

.history-item:hover {
  background-color: rgba(245, 247, 250, 0.5);
}

.history-header {
  font-weight: 500;
  color: #1b4d5d;
  margin-bottom: 0.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.history-date {
  font-size: 0.75rem;
  color: #6b7280;
}

.history-details {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.25rem;
  color: #4b5563;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes shake {
  0%, 100% {
    transform: translateX(0);
  }
  10%, 30%, 50%, 70%, 90% {
    transform: translateX(-5px);
  }
  20%, 40%, 60%, 80% {
    transform: translateX(5px);
  }
}

.animate-fadeIn {
  animation: fadeIn 0.3s ease-out forwards;
}

.animate-shake {
  animation: shake 0.5s cubic-bezier(.36,.07,.19,.97) both;
}

.section-heading {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  color: #1b4d5d;
}

.section-heading i {
  margin-right: 0.5rem;
}

.text-primary {
  color: #1b4d5d;
}

.bg-primary {
  background-color: #1b4d5d;
}
@media (max-width: 768px) {
  .result-item {
    white-space: normal;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }
  
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

/* ============================================================
   型号生成 ModelTestPage.vue（1:1 还原，原 <style> 内容）
   ============================================================ */

.model-test-page {
  background-color: #F5F7FA;
  min-height: 100vh;
  font-family: 'Inter', system-ui, sans-serif;
  color: #253858;
  padding-top: 80px;
  padding-bottom: 48px;
}

.text-primary {
  color: #1b4d5d;
}

/* Primary颜色相关的工具类 */
input[type="radio"].text-primary:checked {
  color: #1b4d5d;
  background-color: #1b4d5d;
  border-color: #1b4d5d;
}

input[type="radio"].focus\:ring-primary:focus {
  --tw-ring-color: rgba(27, 77, 93, 0.5);
}

.hover\:text-primary\/80:hover {
  color: rgba(27, 77, 93, 0.8);
}

.hover\:bg-primary\/10:hover {
  background-color: rgba(27, 77, 93, 0.1);
}

.border-primary\/50 {
  border-color: rgba(27, 77, 93, 0.5);
}

.hover\:border-primary\/50:hover {
  border-color: rgba(27, 77, 93, 0.5);
}

.card-shadow {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.card-shadow:hover {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
  transform: translateY(-2px);
}

.form-section {
  background-color: rgba(245, 247, 250, 0.8);
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  border: 1px solid #e5e7eb;
}

.form-section-title {
  font-weight: 600;
  color: #1b4d5d;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
}

.form-section-title i {
  margin-right: 0.5rem;
}

.form-input {
  transition: all 0.3s ease;
}

.form-input:focus {
  border-color: #1b4d5d;
  box-shadow: 0 0 0 3px rgba(27, 77, 93, 0.1);
  transform: translateY(-1px);
}

.error-text {
  color: #ef4444;
  font-size: 0.75rem;
  margin-top: 0.25rem;
}

.hidden {
  display: none !important;
}

.non-standard {
  color: #ef4444;
  font-weight: bold;
}

.copy-btn {
  transition: all 0.3s ease;
}

.copy-btn:hover {
  transform: rotate(15deg);
  color: #36CFC9;
}

.image-preview-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 8px;
  margin-top: 10px;
  max-height: 220px;
  overflow-y: auto;
}

.image-preview-wrapper {
  position: relative;
  border: 1px solid #e5e7eb;
  border-radius: 4px;
  padding: 2px;
  background-color: #f9fafb;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.image-preview-wrapper img {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 2px;
}

.remove-image-btn {
  position: absolute;
  top: -5px;
  right: -5px;
  background-color: #ef4444;
  color: white;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
}

.remove-image-btn:hover {
  background-color: #dc2626;
  transform: scale(1.1);
}

::placeholder {
  font-size: 0.85rem;
  opacity: 0.7;
}

@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(10px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulseSoft {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.8;
  }
}

.animate-fade-in-up {
  animation: fadeInUp 0.6s ease forwards;
}

.animate-pulse-soft {
  animation: pulseSoft 2s infinite;
}

.transition-custom {
  transition: all 0.3s ease;
}

/* 型号解析交互样式 */
.model-part {
  display: inline-block;
  padding: 4px 8px;
  margin: 0 2px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.8);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  font-weight: 600;
}

.model-part:hover {
  background: rgba(59, 130, 246, 0.1);
  border-color: rgba(59, 130, 246, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
}

.model-part.active {
  background: rgba(59, 130, 246, 0.2);
  border-color: #3b82f6;
  color: #1d4ed8;
  transform: scale(1.05);
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.3);
}

.expand-content {
  opacity: 0;
  transform: translateY(-10px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  max-height: 0;
  overflow: hidden;
}

.expand-content.show {
  opacity: 1;
  transform: translateY(0);
  max-height: 300px;
}

.expand-option {
  flex: 1;
  min-width: 0;
  padding: 12px 8px;
  border-radius: 6px;
  background: #e5e7eb;
  border: 1px solid #d1d5db;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
  font-weight: 500;
  position: relative;
  overflow: hidden;
  color: #6b7280;
  font-size: 14px;
}

.expand-option:hover:not(.current) {
  background: #1b4d5d !important;
  background-color: #1b4d5d !important;
  color: white !important;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(27, 77, 93, 0.3);
}

.expand-option.current {
  background: #1e40af !important;
  background-image: none !important;
  background-color: #1e40af !important;
  color: white !important;
  border-color: #1e40af !important;
  box-shadow: 0 2px 8px rgba(30, 64, 175, 0.3) !important;
}

.expand-option.current:hover {
  background: #1e40af !important;
  background-color: #1e40af !important;
}

.expand-option.current::after {
  content: '✓' !important;
  position: absolute !important;
  top: 3px !important;
  right: 6px !important;
  font-size: 16px !important;
  font-weight: bold !important;
  color: white !important;
  z-index: 10 !important;
  display: block !important;
}

.expand-description {
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s ease;
}

.expand-description.show {
  opacity: 1;
  transform: translateY(0);
}

.model-interactive-container {
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.model-interactive-container::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.1) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.model-interactive-container:hover::before {
  opacity: 1;
}

.model-display {
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  line-height: 1.4;
  word-break: break-all;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .model-display {
    font-size: 1.4rem;
  }
  
  .expand-option {
    padding: 10px 12px;
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .model-display {
    font-size: 1.2rem;
  }
  
  .model-part {
    padding: 2px 6px;
    margin: 0 1px;
  }
  
  .expand-option {
    padding: 8px 10px;
    font-size: 0.85rem;
  }
}

/* ============================================================
   案例中心 / 免费来料测试（MaterialTestPage.vue 1:1）
   ============================================================ */

/* ---------- 基础工具类（原 Tailwind） ---------- */
.flex { display: flex; }
.flex-shrink-0 { flex-shrink: 0; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-end { justify-content: flex-end; }
.block { display: block; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-xs { font-size: 0.75rem; line-height: 1rem; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.text-white { color: #ffffff; }
.text-red-500 { color: #ef4444; }
.text-gray-500 { color: #6b7280; }
.text-gray-600 { color: #4b5563; }
.text-gray-700 { color: #374151; }
.text-gray-800 { color: #1f2937; }
.text-amber-800 { color: #92400e; }
.text-green-500 { color: #22c55e; }
.text-[#1b4d5d] { color: #1b4d5d; }
.ml-2 { margin-left: 0.5rem; }
.ml-3 { margin-left: 0.75rem; }
.mr-1 { margin-right: 0.25rem; }
.mr-2 { margin-right: 0.5rem; }
.mt-1 { margin-top: 0.25rem; }
.mt-4 { margin-top: 1rem; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.space-y-6 > * + * { margin-top: 1.5rem; }
.space-y-2 > * + * { margin-top: 0.5rem; }

/* ---------- 表单基础 ---------- */
.form-input {
  width: 100%;
  padding: 0.5rem 1rem;
  border: 1px solid #d1d5db;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  color: #1f2937;
  background: #ffffff;
  transition: all 0.3s ease;
}
.form-input:focus {
  border-color: #1b4d5d;
  box-shadow: 0 0 0 3px rgba(27, 77, 93, 0.1);
  transform: translateY(-1px);
  outline: none;
}
textarea.form-input { resize: vertical; }
.check-input {
  width: 1rem;
  height: 1rem;
  accent-color: #1b4d5d;
}

/* ---------- 页面结构 ---------- */
.material-test-page {
  min-height: 100vh;
  background: linear-gradient(180deg, #f0f7fa 0%, #f8fafc 30%, #ffffff 100%);
  padding: 80px 20px 60px;
}
.page-container {
  max-width: 1400px;
  margin: 0 auto;
}
.page-header {
  text-align: center;
  margin-bottom: 30px;
}
.page-header .page-title {
  font-size: 36px;
  font-weight: 700;
  color: #1b4d5d;
  margin-bottom: 12px;
}
.page-header .page-subtitle {
  font-size: 16px;
  color: #64748b;
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ---------- Tab 切换 ---------- */
.tabs-container {
  display: flex;
  justify-content: center;
  margin-bottom: 24px;
}
.tabs-wrapper {
  display: inline-flex;
  background: #ffffff;
  border-radius: 12px;
  padding: 6px;
  box-shadow: 0 2px 12px rgba(27, 77, 93, 0.08);
  border: 1px solid #e2e8f0;
}
.tab-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 32px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 500;
  color: #64748b;
  transition: all 0.3s ease;
}
.tab-item:hover {
  color: #1b4d5d;
  background: #f0f7fa;
}
.tab-item.active {
  background: #1b4d5d;
  color: white;
  box-shadow: 0 4px 12px rgba(27, 77, 93, 0.2);
}
.tab-icon { font-size: 16px; }

/* ---------- 内容卡片 ---------- */
.content-card {
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(27, 77, 93, 0.08);
  border: 1px solid #e2e8f0;
  overflow: hidden;
}
.tab-content { padding: 32px; }

/* ---------- 案例展示布局 ---------- */
.cases-layout {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.category-bar {
  background: #f8fafc;
  border-radius: 12px;
  padding: 16px 20px;
  border: 1px solid #e2e8f0;
}
.category-bar-title {
  font-size: 15px;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid #e2e8f0;
}
.category-list-horizontal {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.category-item-horizontal {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  color: #475569;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.category-item-horizontal:hover {
  background: #e2e8f0;
  color: #1b4d5d;
  border-color: #cbd5e1;
}
.category-item-horizontal.active {
  background: #1b4d5d;
  color: white;
  border-color: #1b4d5d;
}
.category-item-horizontal .category-count {
  font-size: 11px;
  opacity: 0.7;
}
.category-item-horizontal.active .category-count { opacity: 1; }

.content-area { flex: 1; min-width: 0; }
.material-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}
.material-card {
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
  cursor: pointer;
  border: 1px solid #e2e8f0;
}
.material-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(27, 77, 93, 0.15);
  border-color: #1b4d5d;
}
.material-image {
  position: relative;
  height: 150px;
  overflow: hidden;
  background: #f8fafc;
}
.material-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.material-card:hover .material-image img { transform: scale(1.05); }
.material-info { padding: 12px; }
.material-name {
  font-size: 14px;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 4px;
  line-height: 1.4;
}
.material-desc {
  font-size: 12px;
  color: #94a3b8;
  line-height: 1.5;
}
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: #94a3b8;
}
.empty-icon {
  font-size: 48px;
  color: #e2e8f0;
  margin-bottom: 16px;
}
.empty-state p { font-size: 16px; }

/* ---------- 申请测试布局 ---------- */
.test-layout {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}
.form-section { flex: 1; min-width: 0; }
.form-header {
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 2px solid #f1f5f9;
}
.form-title {
  font-size: 20px;
  font-weight: 700;
  color: #1b4d5d;
  display: flex;
  align-items: center;
  gap: 10px;
}
.form-icon { font-size: 18px; }
.form-body { padding: 0; }

/* 步骤指示器 */
.step-indicator-wrap { margin-bottom: 30px; }
.step-indicators {
  display: flex;
  justify-content: space-between;
  margin-bottom: 2rem;
  position: relative;
}
.step-indicator {
  position: relative;
  flex: 1;
  text-align: center;
}
.step-indicator::before {
  content: '';
  position: absolute;
  top: 20px;
  left: 50%;
  width: 100%;
  height: 2px;
  background-color: #e2e8f0;
  z-index: 0;
}
.step-indicator:first-child::before { display: none; }
.step-indicator.active::before,
.step-indicator.completed::before { background-color: #1b4d5d; }
.step-number {
  position: relative;
  z-index: 1;
  width: 40px;
  height: 40px;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  margin: 0 auto 8px;
  background: #e5e7eb;
  color: #4b5563;
}
.step-indicator.active .step-number,
.step-indicator.completed .step-number {
  background: #1b4d5d;
  color: white;
}
.step-text {
  font-size: 0.875rem;
  font-weight: 500;
  color: #6b7280;
}
.step-indicator.active .step-text,
.step-indicator.completed .step-text { color: #1b4d5d; }

/* 步骤内容 */
.step-content { display: none; }
.step-content[data-stepcontent="1"] { display: block; }
.form-step-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #1b4d5d;
}
.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 768px) {
  .form-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .form-grid-2 .span-2 { grid-column: span 2 / span 2; }
}
.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: #374151;
  margin-bottom: 0.25rem;
}
.step-footer {
  margin-top: 2rem;
  display: flex;
  justify-content: flex-end;
}
.step-footer-between {
  margin-top: 2rem;
  display: flex;
  justify-content: space-between;
}
.btn-primary {
  background-color: #1b4d5d;
  color: white;
  padding: 0.5rem 1.5rem;
  border-radius: 0.375rem;
  cursor: pointer;
  border: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
}
.btn-primary:hover { background-color: rgba(27, 77, 93, 0.9); }
.btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
.btn-outline {
  background: transparent;
  border: 1px solid #1b4d5d;
  color: #1b4d5d;
  padding: 0.5rem 1.5rem;
  border-radius: 0.375rem;
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
}
.btn-outline:hover {
  background-color: #1b4d5d;
  color: white;
}

/* 确认信息 */
.confirm-box {
  background: #f9fafb;
  padding: 1.5rem;
  border-radius: 0.5rem;
}
.confirm-label {
  font-size: 0.875rem;
  color: #6b7280;
}
.confirm-value {
  font-weight: 500;
  color: #1f2937;
  margin-top: 0.25rem;
  word-break: break-word;
}

/* 上传区域 */
.upload-area {
  border: 2px dashed #e2e8f0;
  border-radius: 8px;
  padding: 30px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s;
}
.upload-area.active {
  border-color: #1b4d5d;
  background-color: rgba(27, 77, 93, 0.05);
}
.upload-area:hover { border-color: #1b4d5d; }
.upload-icon {
  font-size: 2.25rem;
  color: #9ca3af;
  margin-bottom: 0.5rem;
}
.upload-tip {
  color: #6b7280;
  margin-bottom: 0.25rem;
  font-size: 0.875rem;
}
.upload-format {
  font-size: 0.75rem;
  color: #9ca3af;
}
.preview-grid {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
}
@media (min-width: 768px) {
  .preview-grid { grid-template-columns: repeat(5, 1fr); }
}
.preview-box {
  position: relative;
  width: 100%;
  height: 96px;
  overflow: hidden;
  border-radius: 0.375rem;
  border: 1px solid #e2e8f0;
}
.preview-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------- 右侧信息栏 ---------- */
.info-sidebar {
  width: 320px;
  flex-shrink: 0;
}
.info-card {
  background: #f8fafc;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  position: sticky;
  top: 20px;
}
.info-card-header {
  background: #1b4d5d;
  color: white;
  padding: 16px;
}
.info-card-title {
  font-size: 16px;
  font-weight: 600;
  margin: 0;
}
.info-card-body { padding: 20px; }

/* 验证区域 */
.verify-icon-circle {
  width: 64px;
  height: 64px;
  background: #e8edee;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  color: #1b4d5d;
  font-size: 1.5rem;
}
.verify-title {
  font-size: 1.125rem;
  font-weight: 500;
  color: #1f2937;
  margin-bottom: 0.5rem;
}
.verify-desc {
  color: #4b5563;
  margin-bottom: 1.5rem;
  font-size: 0.875rem;
}
.verify-box {
  background: #f9fafb;
  padding: 1rem;
  border-radius: 0.5rem;
}
.verify-question {
  text-align: center;
  font-size: 1.125rem;
  font-weight: 500;
  color: #1f2937;
  margin-bottom: 1rem;
}
.verify-input {
  flex: 1;
  border-radius: 0.375rem 0 0 0.375rem;
}
.verify-btn {
  border-radius: 0 0.375rem 0.375rem 0;
}

/* 一键复制 */
.copy-btn {
  display: inline-flex;
  align-items: center;
  font-size: 0.875rem;
  color: #1b4d5d;
  background: none;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}
.copy-btn:hover { color: #2d6a7e; }
.copy-success {
  font-size: 0.75rem;
  color: #22c55e;
  margin-top: 0.25rem;
}

/* 收件信息 */
.recipient-group {
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #f1f5f9;
}
.recipient-row {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1rem;
}
.recipient-row:last-child { margin-bottom: 0; }
.recipient-icon {
  width: 40px;
  height: 40px;
  border-radius: 9999px;
  background: #e8edee;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1rem;
  color: #1b4d5d;
  flex-shrink: 0;
  margin-top: 0.25rem;
}
.recipient-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #6b7280;
  margin-bottom: 0.25rem;
}
.recipient-value {
  font-weight: 500;
  color: #1f2937;
  word-break: break-word;
}
.tip-box {
  padding: 1rem;
  background: #eff6ff;
  border: 1px solid #dbeafe;
  border-radius: 0.5rem;
  margin-bottom: 1.5rem;
}
.tip-icon { color: #3b82f6; }
.tip-text {
  font-size: 0.875rem;
  color: #1d4ed8;
}
.service-box {
  background: linear-gradient(to right, #1b4d5d, #2d6a7e);
  padding: 1rem;
  border-radius: 0.5rem;
  color: white;
}
.service-title {
  font-weight: 600;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
}
.service-list {
  font-size: 0.875rem;
  list-style: none;
  padding: 0;
  margin: 0;
}
.service-list li { display: flex; align-items: flex-start; margin-bottom: 0.5rem; }
.service-list li:last-child { margin-bottom: 0; }

/* ---------- 弹窗 ---------- */
.modal-mask {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
}
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
}
.notice-backdrop {
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
}
.modal-card {
  position: relative;
  z-index: 10;
  background: white;
  border-radius: 0.75rem;
  padding: 2rem;
  max-width: 28rem;
  width: 100%;
  margin: 0 1rem;
  animation: mtFadeIn 0.3s ease-out forwards;
}
.success-icon-circle {
  width: 64px;
  height: 64px;
  margin: 0 auto 1rem;
  background: #dcfce7;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #22c55e;
  font-size: 1.875rem;
}
.modal-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 0.5rem;
}
.modal-message {
  color: #4b5563;
  margin-bottom: 1.5rem;
  font-size: 0.875rem;
}
.modal-btn {
  padding: 0.5rem 1.5rem;
  border-radius: 0.375rem;
}
@keyframes mtFadeIn {
  from { opacity: 0; transform: scale(0.95) translateY(-10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

/* 来料须知弹窗 */
.notice-card {
  max-width: 42rem;
  padding: 0;
  overflow: hidden;
  border-radius: 1rem;
}
.notice-card-inner { background: white; }
.notice-header {
  background: linear-gradient(to right, #1b4d5d, #2d6a7e);
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
}
.notice-header-icon {
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1rem;
  color: white;
  font-size: 1.25rem;
}
.notice-header .modal-title { color: white; margin-bottom: 0; }
.notice-subtitle {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.875rem;
  margin: 0;
}
.notice-body {
  padding: 1.5rem;
  max-height: 60vh;
  overflow-y: auto;
}
.notice-body::-webkit-scrollbar { width: 6px; }
.notice-body::-webkit-scrollbar-track { background: #f1f1f1; border-radius: 3px; }
.notice-body::-webkit-scrollbar-thumb { background: #c1c1c1; border-radius: 3px; }
.notice-body::-webkit-scrollbar-thumb:hover { background: #a1a1a1; }
.notice-greet {
  margin-bottom: 1rem;
  padding: 1rem;
  background: #fffbeb;
  border-left: 4px solid #fbbf24;
  border-radius: 0 0.5rem 0.5rem 0;
}
.notice-items { display: flex; flex-direction: column; gap: 1rem; }
.notice-item {
  display: flex;
  align-items: flex-start;
  padding: 1rem;
  background: #f9fafb;
  border-radius: 0.75rem;
  transition: background 0.3s;
}
.notice-item:hover { background: #f3f4f6; }
.notice-num {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  background: #1b4d5d;
  color: white;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  margin-right: 1rem;
}
.notice-text {
  color: #374151;
  line-height: 1.625;
  font-size: 0.875rem;
}
.notice-strong { font-weight: 600; color: #1b4d5d; }
.notice-red { font-weight: 600; color: #ef4444; }
.notice-feedback {
  margin-top: 1.5rem;
  padding: 1rem;
  background: linear-gradient(to right, #f0fdf4, #ecfdf5);
  border: 1px solid #bbf7d0;
  border-radius: 0.75rem;
  display: flex;
  align-items: flex-start;
}
.feedback-icon {
  width: 40px;
  height: 40px;
  background: #22c55e;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  margin-right: 0.75rem;
  flex-shrink: 0;
}
.feedback-title {
  font-weight: 500;
  color: #166534;
  margin-bottom: 0.25rem;
}
.feedback-text {
  color: #15803d;
  font-size: 0.875rem;
  line-height: 1.5;
}
.notice-footer {
  padding: 1.25rem 1.5rem;
  background: #f9fafb;
  border-top: 1px solid #f1f5f9;
}
.notice-confirm-btn {
  width: 100%;
  background: linear-gradient(to right, #1b4d5d, #2d6a7e);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 0.75rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.notice-confirm-btn:hover {
  box-shadow: 0 10px 15px rgba(27, 77, 93, 0.2);
  transform: scale(1.02);
}

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
  .cases-layout,
  .test-layout { flex-direction: column; }
  .info-sidebar {
    width: 100%;
    position: static;
  }
  .category-bar { padding: 12px 16px; }
  .category-item-horizontal { padding: 6px 12px; font-size: 12px; }
  .tab-item { padding: 10px 24px; font-size: 14px; }
  .tab-content { padding: 20px; }
}
@media (max-width: 640px) {
  .material-test-page { padding: 60px 12px 40px; }
  .page-header .page-title { font-size: 28px; }
  .tabs-wrapper { width: 100%; }
  .tab-item { flex: 1; justify-content: center; padding: 10px 16px; }
  .material-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
  .material-image { height: 120px; }
}

/* ============================================================
   文档中心 tech-docs.php（TechDocsPage.vue + PdfViewer.vue 1:1）
   ============================================================ */
.tech-docs-page { min-height: 100vh; background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%); }

/* 搜索容器 */
.tech-docs-search-container {
  position: fixed; top: 100px; right: 40px; z-index: 1000;
  display: flex; flex-direction: column; align-items: flex-end; gap: 8px;
}
.search-wrapper { position: relative; transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94); }
.search-btn {
  display: flex; align-items: center; justify-content: center; padding: 0;
  background: transparent; border: 2px solid #1b4d5d; border-radius: 50%; cursor: pointer;
  transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  width: 48px; height: 48px; box-shadow: 0 4px 15px rgba(27, 77, 93, 0.15);
  position: relative; overflow: hidden; pointer-events: auto;
}
.search-btn::before {
  content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(27, 77, 93, 0.1), transparent);
  transition: left 0.6s ease;
}
.search-btn:hover::before { left: 100%; }
.search-btn.expanded {
  width: auto; min-width: 300px; border-radius: 20px; padding: 12px 20px;
  background: rgba(255, 255, 255, 0.05); backdrop-filter: blur(10px) saturate(180%);
  -webkit-backdrop-filter: blur(10px) saturate(180%); border-color: rgba(27, 77, 93, 0.9);
  box-shadow: 0 6px 25px rgba(27, 77, 93, 0.02), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.search-icon {
  width: 20px; height: 20px; background-image: url('/image/sousuo.png');
  background-size: contain; background-repeat: no-repeat; background-position: center;
  transition: all 0.4s ease; flex-shrink: 0; filter: brightness(0.7); opacity: 0.8;
  font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif; font-weight: 400;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1); font-size: 1.3rem; opacity: 0.95;
}
.search-btn.expanded .search-icon { order: 2; margin-left: 12px; transform: scale(1.1); opacity: 1; filter: brightness(1); }
/* 收起为圆钮时隐藏输入框，避免 placeholder"搜索文档..."挤进圆钮把放大镜挤掉 */
.search-btn:not(.expanded) .search-input { display: none; }
.search-input {
  border: none; background: transparent; color: #1b4d5d; font-size: 1rem; font-weight: 500;
  outline: none; width: 100%; padding: 0; margin: 0; letter-spacing: 0.8px;
}
.search-input::placeholder { color: #818285; font-weight: 400; }
.search-btn:hover { transform: translateY(-3px) scale(1.02); box-shadow: 0 15px 35px rgba(27, 77, 93, 0.4), 0 3px 0 rgba(255, 255, 255, 0.3) inset; }
.search-btn:active { transform: translateY(-1px) scale(0.98); box-shadow: 0 5px 20px rgba(27, 77, 93, 0.3), 0 1px 0 rgba(255, 255, 255, 0.2) inset; }
.search-btn:focus-within { box-shadow: 0 15px 40px rgba(27, 77, 93, 0.5), 0 4px 0 rgba(255, 255, 255, 0.4) inset; }
@keyframes searchGlow {
  0% { box-shadow: 0 8px 25px rgba(27, 77, 93, 0.3); }
  50% { box-shadow: 0 8px 25px rgba(27, 77, 93, 0.6); }
  100% { box-shadow: 0 8px 25px rgba(27, 77, 93, 0.3); }
}
.search-btn:not(.expanded) { animation: searchGlow 3s ease-in-out infinite; }
.search-results-header {
  display: flex; justify-content: center; align-items: center; margin: 0 auto 20px;
  max-width: 1400px; padding: 0 20px; color: #1b4d5d; font-weight: 500;
}
.clear-search-btn {
  background: rgba(255, 255, 255, 0.9); border: 1px solid #1b4d5d; color: #1b4d5d;
  padding: 6px 12px; border-radius: 16px; font-size: 0.85rem; cursor: pointer;
  transition: all 0.2s ease; width: auto; margin-top: 5px; box-shadow: 0 2px 8px rgba(27, 77, 93, 0.15);
  pointer-events: auto;
}
.clear-search-btn:hover { background: #1b4d5d; color: white; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(27, 77, 93, 0.25); }

/* 文档容器 */
/* 与选型中心一致：侧栏由 fixed 改为 sticky，回到文档流中，
   滚动到底部时随内容被推走，不会被/盖住页脚。
   容器全宽、侧栏贴左（x≈20），文档卡片网格由 .docs-list 自身 max-width 居中，
   不要给容器加 max-width + margin:auto，否则大屏下侧栏会被推到屏幕中间 */
.docs-container { margin: 0; padding: 120px 20px 40px; display: flex; align-items: flex-start; min-height: 600px; }
.docs-sidebar {
  width: 320px; flex-shrink: 0; background: transparent; border-radius: 0; box-shadow: none; padding: 0;
  position: sticky; top: 120px; margin: 0 20px 0 0; border: none;
  align-self: flex-start; z-index: 100; max-height: calc(100vh - 140px); overflow-y: auto;
}
.docs-sidebar::-webkit-scrollbar { width: 0px; background: transparent; }
.sidebar-title {
  font-size: 1.5rem; font-weight: 600; color: #1f2937; margin-bottom: 24px; text-align: left;
  padding-bottom: 0; border-bottom: none; padding-left: 16px;
}
.sidebar-title::before { display: none; }
.docs-categories { display: flex; flex-direction: column; position: relative; }
.docs-categories::before { display: none; }
.category-item {
  display: flex; justify-content: flex-start; align-items: center; padding: 14px 18px;
  border-radius: 0; cursor: pointer; transition: all 0.2s ease; border: none; background: transparent;
  position: relative; margin-bottom: 2px; padding-left: 16px;
}
.category-item:hover { background: #f9fafb; border-color: transparent; transform: translateX(0); }
.category-item.active { background: #f1f5f9; color: #1b4d5d; border-color: transparent; box-shadow: none; transform: translateX(0); }
.category-indicator {
  position: absolute; right: -1px; top: 10%; width: 3px; height: 80%; background: #1b4d5d;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); z-index: 2; opacity: 0;
  transform: scaleY(0); transform-origin: center;
}
.category-item.active .category-indicator { opacity: 1; transform: scaleY(1); }
.category-name { font-weight: 500; font-size: 1rem; }

.docs-content { flex: 1; min-width: 0; width: 100%; display: flex; flex-direction: column; gap: 30px; position: relative; padding-left: 0; }
.docs-list {
  flex: 1; display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px 40px; width: 100%;
  max-width: calc(1160px + 40px); margin: 0 auto; padding-bottom: 80px;
}
.doc-item {
  display: flex; flex-direction: row; align-items: center; gap: 20px; padding: 24px 20px;
  background: white; border-radius: 12px; border: 1px solid #e2e8f0; cursor: default;
  transition: all 0.3s ease; position: relative; overflow: hidden; height: 280px; min-height: 280px;
  justify-content: flex-start; width: 100%; min-width: 0;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}
.doc-item::before { display: none; }
.doc-item:hover { box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05); border: 1px solid #cbd5e1; background: #ffffff; }
.doc-item.selected { border: 2px solid #1b4d5d; background: #f0f7fa; }
.doc-item.selected::before {
  content: '' !important; position: absolute !important; left: 0 !important; top: 0 !important;
  bottom: 0 !important; width: 4px !important; background: #1b4d5d !important;
  border-radius: 2px 0 0 2px !important; z-index: 2 !important; transform: scaleX(1) !important;
}
.doc-header { display: flex; align-items: flex-start; gap: 20px; margin-bottom: 20px; }
.doc-icon {
  width: 120px; height: 120px; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(145deg, #e8f4f8, #d4e8f0); border-radius: 12px; flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(27, 77, 93, 0.1); overflow: hidden;
  font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif; font-weight: 400;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1); font-size: 2.2rem; opacity: 0.85;
  border: 1px solid #e0e6ed;
}
.doc-icon img { width: 150px; height: auto; object-fit: contain; }
.doc-info {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 16px; padding: 0 16px 0 0; min-width: 0; text-align: center; width: 100%;
  white-space: normal; word-wrap: break-word; max-width: 100%; pointer-events: none;
}
.doc-title {
  font-size: 1.25rem; font-weight: 700; color: #1b4d5d; margin-bottom: 8px; line-height: 1.3;
  text-align: center; word-wrap: break-word; cursor: pointer; pointer-events: auto;
}
.doc-title:hover { color: #2d5f70; text-decoration: underline; }
.doc-description {
  font-size: 0.95rem; color: #64748b; margin-bottom: 12px; line-height: 1.6; flex-grow: 1;
  display: flex; align-items: center; text-align: center; word-wrap: break-word;
}
.doc-meta { display: flex; justify-content: flex-end; align-items: center; padding-top: 16px; border-top: 1px solid #e8f4f8; width: 100%; flex-wrap: wrap; gap: 8px; }
.doc-size-right { font-size: 1rem; color: #1b4d5d; font-weight: 600; }
.doc-path { font-size: 0.8rem; color: #64748b; font-style: italic; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.doc-action { flex-shrink: 0; }
.download-btn {
  background: linear-gradient(145deg, #1b4d5d, #2d5f70); color: white; border: none; padding: 10px 20px;
  border-radius: 8px; font-weight: 600; cursor: pointer; transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(27, 77, 93, 0.3); align-self: center; margin-top: 8px;
  display: inline-flex; align-items: center; justify-content: center; line-height: 1; pointer-events: auto;
}
.download-btn:hover { box-shadow: 0 6px 20px rgba(27, 77, 93, 0.4); transform: translateY(-1px); }
.download-btn:active { transform: translateY(0); box-shadow: 0 2px 8px rgba(27, 77, 93, 0.3); }

/* 文档预览（旧组件样式保留） */
.doc-preview { width: 450px; background: white; border-radius: 16px; border: 1px solid rgba(255, 255, 255, 0.2); overflow: hidden; flex-shrink: 0; box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12); }
.preview-header { display: flex; justify-content: space-between; align-items: center; padding: 24px; border-bottom: 1px solid #e8f4f8; background: linear-gradient(145deg, #f8fafc, #f1f5f9); }
.preview-title { font-size: 1.25rem; font-weight: 700; color: #1b4d5d; margin: 0; }
.close-preview { background: none; border: none; font-size: 1.8rem; cursor: pointer; color: #64748b; padding: 8px; border-radius: 8px; transition: all 0.3s ease; line-height: 1; }
.close-preview:hover { color: #1b4d5d; background: #e8f4f8; }
.preview-content { padding: 32px; min-height: 300px; display: flex; align-items: center; justify-content: center; color: #64748b; background: linear-gradient(145deg, #ffffff, #f8fafc); }
.preview-actions { margin-top: 20px; text-align: center; }
.preview-download-btn { background: linear-gradient(145deg, #1b4d5d, #2d5f70); color: white; border: none; padding: 12px 24px; border-radius: 8px; font-weight: 600; cursor: pointer; transition: all 0.3s ease; box-shadow: 0 4px 12px rgba(27, 77, 93, 0.3); pointer-events: auto; }
.preview-download-btn:hover { box-shadow: 0 6px 20px rgba(27, 77, 93, 0.4); }

/* ===== PDF 查看器（PdfViewer.vue） ===== */
.pdf-viewer-modal {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0, 0, 0, 0.85);
  z-index: 9999; display: flex; justify-content: center; align-items: center; animation: fadeIn 0.3s ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.pdf-viewer-container { width: 90%; max-width: 1400px; height: 90vh; background: #2c2c2c; border-radius: 12px; display: flex; flex-direction: column; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5); }
.pdf-toolbar { display: flex; justify-content: space-between; align-items: center; padding: 15px 20px; background: #1e1e1e; border-bottom: 1px solid #444; border-radius: 12px 12px 0 0; }
.pdf-info { display: flex; flex-direction: column; gap: 5px; }
.pdf-title { color: #fff; font-size: 1.1rem; font-weight: 600; max-width: 400px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pdf-page-info { color: #999; font-size: 0.9rem; }
.pdf-actions { display: flex; gap: 10px; align-items: center; }
.toolbar-btn { background: #3a3a3a; border: 1px solid #555; color: #fff; padding: 8px 12px; border-radius: 6px; cursor: pointer; transition: all 0.2s; font-size: 1rem; }
.toolbar-btn:hover:not(:disabled) { background: #4a4a4a; transform: translateY(-1px); }
.toolbar-btn:active:not(:disabled) { transform: translateY(0); }
.toolbar-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.close-btn { background: #d32f2f; border-color: #d32f2f; }
.close-btn:hover { background: #e53935; border-color: #e53935; }
.zoom-level { color: #fff; font-size: 0.9rem; min-width: 50px; text-align: center; font-weight: 500; }
.pdf-content { flex: 1; overflow: auto; display: flex; justify-content: center; align-items: center; background: #333; padding: 20px; }
.pdf-canvas { max-width: 100%; box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3); transition: transform 0.2s; background: white; display: none; transform-origin: center center; }
.pdf-loading { text-align: center; color: #fff; }
.pdf-loading p { margin-top: 20px; font-size: 1.1rem; }
.loading-spinner { width: 50px; height: 50px; border: 4px solid #444; border-top-color: #1b4d5d; border-radius: 50%; animation: spin 1s linear infinite; margin: 0 auto 20px; }
@keyframes spin { to { transform: rotate(360deg); } }
.pdf-error { text-align: center; color: #f44336; }
.pdf-error p { font-size: 1.1rem; margin-bottom: 20px; }
.retry-btn { margin-top: 20px; background: #1b4d5d; color: white; border: none; padding: 12px 24px; border-radius: 6px; cursor: pointer; font-size: 1rem; transition: all 0.3s ease; }
.retry-btn:hover { background: #2d5f70; transform: translateY(-2px); box-shadow: 0 4px 12px rgba(27, 77, 93, 0.4); }
.pdf-content::-webkit-scrollbar { width: 10px; height: 10px; }
.pdf-content::-webkit-scrollbar-track { background: #2c2c2c; }
.pdf-content::-webkit-scrollbar-thumb { background: #555; border-radius: 5px; }
.pdf-content::-webkit-scrollbar-thumb:hover { background: #666; }

/* 文档中心响应式 */
@media (max-width: 1024px) {
  .docs-container { padding: 120px 20px 40px 20px; flex-direction: column; }
  .docs-sidebar { position: relative; width: 100%; height: auto; max-height: none; top: auto; left: auto; margin: 0 0 30px; background: transparent; padding: 20px; }
  .docs-list { grid-template-columns: 1fr; }
  .doc-preview { width: 100%; margin-top: 30px; }
}
@media (max-width: 768px) {
  .tech-docs-search-container { top: 90px; right: 20px; }
  .search-btn.expanded { min-width: 220px; }
  .search-icon { font-size: 1rem; }
  .clear-search-btn { font-size: 0.8rem; padding: 5px 10px; }
  .docs-sidebar { position: relative; width: 100%; height: auto; max-height: none; top: auto; left: auto; margin: 0 0 30px; background: transparent; padding: 20px; }
  .docs-container { padding: 100px 15px 40px 15px; flex-direction: column; }
  .sidebar-title { padding-left: 16px; font-size: 1rem; }
  .sidebar-title::before { display: none; }
  .docs-categories::before { display: none; }
  .category-item::after { right: -1px; left: auto; }
  .category-indicator { display: none; }
  .category-name { margin-left: 0; font-size: 0.9rem; }
  .doc-item { padding: 20px; }
  .doc-header { flex-direction: column; gap: 15px; }
  .doc-icon { align-self: center; font-size: 1.8rem; }
  .category-icon { font-size: 1.2rem; }
  .search-icon { font-size: 1.1rem; }
  .pdf-viewer-container { width: 95%; height: 95vh; }
  .pdf-toolbar { flex-direction: column; gap: 10px; padding: 10px; }
  .pdf-info { width: 100%; text-align: center; }
  .pdf-title { max-width: 100%; font-size: 1rem; }
  .pdf-actions { width: 100%; justify-content: center; flex-wrap: wrap; }
  .toolbar-btn { padding: 6px 10px; font-size: 0.9rem; }
  .zoom-level { min-width: 40px; font-size: 0.85rem; }
}

/* ============================================================
   联系我们 contact.php（ContactPage.vue + ContactSection.vue 1:1）
   ============================================================ */
.contact-page { min-height: 100vh; background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%); position: relative; overflow: hidden; }
/* 作用域容器（避免与 header 的全局 .container 冲突） */
.contact-page .container { max-width: 1200px; margin: 0 auto; padding: 0 20px; display: block; }

.contact-hero {
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%); color: #1e293b;
  padding: 100px 0; text-align: center; position: relative; overflow: hidden; min-height: 500px;
}
.hero-title { font-size: 2.8rem; font-weight: 700; margin-bottom: 16px; color: #1e293b; position: relative; z-index: 4; letter-spacing: -0.5px; }
.hero-subtitle { font-size: 1.1rem; margin-bottom: 60px; color: #64748b; font-weight: 400; position: relative; z-index: 4; }
.hero-stats { display: flex; justify-content: center; gap: 60px; flex-wrap: wrap; margin-top: 40px; position: relative; z-index: 2; }
.stat-item {
  display: flex; flex-direction: column; align-items: center; position: relative; padding: 32px 28px;
  border-radius: 16px; background: #ffffff; transition: all 0.3s ease; border: 1px solid #e2e8f0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}
.stat-item:hover { transform: translateY(-4px); box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08); border-color: #1b4d5d; }
.stat-number { font-size: 2.5rem; font-weight: 700; margin-bottom: 8px; color: #1b4d5d; font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; letter-spacing: -0.5px; }
.stat-label { font-size: 0.95rem; color: #64748b; font-weight: 500; }

.contact-main { padding: 80px 0; }
.service-advantages { margin-bottom: 80px; padding: 60px 0; }
.section-title { font-size: 2.5rem; text-align: center; margin-bottom: 50px; color: #0f172a; position: relative; display: inline-block; left: 50%; transform: translateX(-50%); }
.section-title::after { content: ''; position: absolute; bottom: -10px; left: 50%; transform: translateX(-50%); width: 60px; height: 4px; background: linear-gradient(90deg, #3b82f6, #60a5fa); border-radius: 2px; }
.advantages-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 40px; }
.advantage-card {
  background: #ffffff; border: 1px solid rgba(59, 130, 246, 0.1); padding: 40px 30px; border-radius: 16px;
  text-align: center; box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05); transition: all 0.3s ease; position: relative; overflow: hidden;
}
.advantage-card:hover { transform: translateY(-10px); box-shadow: 0 16px 48px rgba(0, 0, 0, 0.1); border-color: rgba(59, 130, 246, 0.3); background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%); }
.advantage-icon { font-size: 3rem; margin-bottom: 20px; position: relative; z-index: 1; text-align: center; display: flex; justify-content: center; align-items: center; }
.advantage-icon img { transition: transform 0.3s ease; }
.advantage-card:hover .advantage-icon img { transform: scale(1.1) rotate(5deg); }
.advantage-card h3 { font-size: 1.3rem; margin-bottom: 15px; color: #1b4d5d; position: relative; z-index: 1; }
.advantage-card p { color: #94a3b8; line-height: 1.6; position: relative; z-index: 1; }

/* 联系表单区域（ContactSection.vue） */
.contact-section.section { }
.contact-content { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; margin-top: 40px; }
.contact-info { display: flex; flex-direction: column; gap: 30px; text-align: left; }
.contact-item h3 { font-size: 1.3rem; margin-bottom: 10px; color: #333; text-align: left; }
.contact-item p { color: #64748b; line-height: 1.6; text-align: left; }
.contact-form {
  position: relative; background: linear-gradient(135deg, rgba(255,255,255,0.4) 0%, rgba(255,255,255,0.25) 50%, rgba(255,255,255,0.35) 100%);
  backdrop-filter: blur(30px) saturate(150%); -webkit-backdrop-filter: blur(30px) saturate(150%);
  padding: 40px; border-radius: 24px;
  box-shadow: 0 8px 32px rgba(31,38,135,0.2), 0 4px 16px rgba(31,38,135,0.1), 0 0 0 1px rgba(255,255,255,0.4), inset 0 2px 4px rgba(255,255,255,0.5), inset 0 -2px 4px rgba(0,0,0,0.03);
  border: 3px solid transparent; background-clip: padding-box; overflow: visible;
}
.contact-form::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; border-radius: 24px; padding: 3px;
  background: linear-gradient(60deg, #3b82f6, #8b5cf6, #ec4899, #10b981, #3b82f6); background-size: 300% 300%;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor; mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude; animation: gradient-flow 4s linear infinite; pointer-events: none; z-index: -1;
}
@keyframes gradient-flow { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } }
.contact-form::after {
  content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; border-radius: 24px;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.8) 0%, rgba(255,255,255,0.4) 30%, transparent 60%);
  pointer-events: none; animation: peel-shimmer 6s ease-in-out infinite;
}
@keyframes peel-shimmer { 0%,100% { opacity: 0.6; transform: translate(0,0); } 50% { opacity: 0.8; transform: translate(5%,5%); } }
.form-group { margin-bottom: 20px; position: relative; z-index: 1; }
.form-group input, .form-group textarea {
  width: 100%; padding: 15px 18px; background: rgba(255,255,255,0.25);
  backdrop-filter: blur(15px) saturate(150%); -webkit-backdrop-filter: blur(15px) saturate(150%);
  border: 1.5px solid rgba(255,255,255,0.4); border-radius: 12px; font-family: inherit; font-size: 1rem;
  color: #1e293b; font-weight: 500; position: relative; transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(31,38,135,0.1), 0 2px 4px rgba(0,0,0,0.05), inset 0 1px 0 rgba(255,255,255,0.6), inset 0 -1px 0 rgba(0,0,0,0.05);
}
.form-group input::placeholder, .form-group textarea::placeholder { color: rgba(100,116,139,0.8); opacity: 1; font-weight: 400; }
.form-group input:focus, .form-group textarea:focus {
  outline: none; background: rgba(255,255,255,0.4); backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%); border-color: rgba(59,130,246,0.6);
  box-shadow: 0 6px 20px rgba(59,130,246,0.2), 0 3px 10px rgba(59,130,246,0.15), 0 0 0 3px rgba(59,130,246,0.1), inset 0 1px 0 rgba(255,255,255,0.7), inset 0 -1px 0 rgba(59,130,246,0.1);
  transform: translateY(-2px); color: #0f172a;
}
.form-group input:hover:not(:focus), .form-group textarea:hover:not(:focus) {
  background: rgba(255,255,255,0.35); backdrop-filter: blur(18px) saturate(155%); -webkit-backdrop-filter: blur(18px) saturate(155%);
  border-color: rgba(139,92,246,0.5); box-shadow: 0 5px 16px rgba(31,38,135,0.15), 0 2px 6px rgba(0,0,0,0.06), inset 0 1px 0 rgba(255,255,255,0.65), inset 0 -1px 0 rgba(139,92,246,0.08);
  transform: translateY(-1px);
}
.form-group textarea { min-height: 120px; resize: vertical; }
.contact-form .btn.btn-primary {
  position: relative; background: linear-gradient(135deg, rgba(27,77,93,0.85), rgba(37,99,235,0.75)) !important;
  background-image: linear-gradient(135deg, rgba(27,77,93,0.85), rgba(37,99,235,0.75)) !important;
  backdrop-filter: blur(20px) saturate(180%) brightness(1.1) !important; -webkit-backdrop-filter: blur(20px) saturate(180%) brightness(1.1) !important;
  color: white !important; border: 1.5px solid rgba(255,255,255,0.5) !important; border-radius: 12px !important;
  padding: 15px 24px !important; font-size: 1rem !important; font-weight: 600 !important; cursor: pointer !important;
  display: inline-block !important; transition: all 0.4s ease !important; width: 100%; transform: none !important;
  box-shadow: 0 8px 24px rgba(27,77,93,0.35), 0 4px 12px rgba(37,99,235,0.3), inset 0 1px 0 rgba(255,255,255,0.6), inset 0 -1px 0 rgba(0,0,0,0.15) !important;
  overflow: hidden; text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}
.contact-form .btn.btn-primary::before {
  content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%;
  background: radial-gradient(circle at center, rgba(255,255,255,0.4) 0%, transparent 60%);
  animation: button-shimmer 3s ease-in-out infinite; pointer-events: none;
}
@keyframes button-shimmer { 0%,100% { transform: translate(-25%,-25%); opacity: 0.3; } 50% { transform: translate(25%,25%); opacity: 0.7; } }
.contact-form .btn.btn-primary:hover {
  background: linear-gradient(135deg, rgba(37,99,235,0.7), rgba(27,77,93,0.7)) !important;
  background-image: linear-gradient(135deg, rgba(37,99,235,0.7), rgba(27,77,93,0.7)) !important;
  backdrop-filter: blur(25px) saturate(160%) !important; -webkit-backdrop-filter: blur(25px) saturate(160%) !important;
  border-color: rgba(255,255,255,0.6) !important; transform: translateY(-3px) !important;
  box-shadow: 0 12px 32px rgba(27,77,93,0.35), 0 6px 16px rgba(37,99,235,0.3), inset 0 1px 0 rgba(255,255,255,0.6), inset 0 -1px 0 rgba(0,0,0,0.15) !important;
}
.btn { display: inline-block; padding: 12px 24px; border: none; border-radius: 8px; font-size: 1rem; font-weight: 500; cursor: pointer; transition: all 0.3s ease; }
.contact-form .btn.btn-primary:disabled { opacity: 0.6; cursor: not-allowed; }
.form-group input:disabled, .form-group textarea:disabled { background-color: #f5f5f5; cursor: not-allowed; opacity: 0.7; }
.submit-message { margin-top: 15px; padding: 12px 15px; border-radius: 6px; text-align: center; font-size: 0.95rem; animation: slideIn 0.3s ease; }
@keyframes slideIn { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }
.submit-message.success { background-color: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.submit-message.error { background-color: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }

/* 联系我们响应式 */
@media (max-width: 768px) {
  .hero-title { font-size: 2rem; }
  .hero-stats { gap: 20px; flex-direction: column; align-items: center; }
  .stat-item { width: 100%; max-width: 300px; padding: 20px; }
  .stat-number { font-size: 2rem; }
  .section-title { font-size: 1.8rem; }
  .extra-grid { grid-template-columns: 1fr; gap: 30px; }
  .advantages-grid { grid-template-columns: 1fr; }
  .contact-main { padding: 40px 0; }
  .contact-hero { padding: 60px 0; min-height: auto; }
  .blob-1, .blob-2, .blob-3 { opacity: 0.4; filter: blur(60px); }
  .contact-content { grid-template-columns: 1fr; gap: 30px; }
}
@media (max-width: 480px) {
  .hero-title { font-size: 1.8rem; }
  .hero-subtitle { font-size: 1rem; margin-bottom: 40px; }
  .advantage-card { padding: 24px 16px; }
  .map-section, .business-hours { padding: 20px; }
}

/* ---------- 新版页脚 yw-footer ---------- */
.yw-footer {
  position: relative;
  width: 100%;
  margin-top: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Segoe UI', sans-serif;
  background: linear-gradient(160deg, #0a232d 0%, #0f2b36 35%, #1b4d5d 70%, #0f2b36 100%);
  color: #c9dbe0;
  /* removed overflow:hidden for qr popover */
  /* removed isolation for fixed popover */
}

/* 顶部微光装饰条 */
.yw-footer-glow {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, #7dd3fc 30%, #e0f2fe 50%, #7dd3fc 70%, transparent 100%);
  opacity: 0.8;
  filter: blur(0.4px);
  pointer-events: none;
}

.yw-footer-glow::after {
  content: '';
  position: absolute;
  top: -30px; left: 50%;
  width: 400px; height: 60px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(125,211,252,0.35) 0%, transparent 70%);
  pointer-events: none;
}

.yw-footer-main {
  padding: 56px 0 36px;
  position: relative;
  z-index: 1;
}

.yw-footer-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}

.yw-footer-main .yw-footer-wrap {
  display: grid;
  grid-template-columns: 1.1fr 1.6fr;
  gap: 64px;
  align-items: start;
}

/* --- 品牌区 --- */
.yw-footer-brand {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.yw-footer-logo {
  display: inline-flex;
  text-decoration: none;
  outline: none;
}

.yw-footer-logo svg {
  filter: drop-shadow(0 2px 8px rgba(125,211,252,0.25));
  transition: filter 0.3s ease, transform 0.3s ease;
}

.yw-footer-logo:hover svg {
  filter: drop-shadow(0 4px 14px rgba(125,211,252,0.5));
  transform: translateY(-1px);
}

.yw-footer-desc {
  color: #8bb5be;
  font-size: 0.9rem;
  line-height: 1.7;
  margin: 0;
  max-width: 360px;
}

.yw-footer-contact {
  list-style: none;
  padding: 0;
  margin: 8px 0 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.yw-footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: #a8c5cd;
  font-size: 0.85rem;
  line-height: 1.55;
  word-break: break-word;
}

.yw-footer-contact li svg {
  flex-shrink: 0;
  color: #7dd3fc;
  margin-top: 2px;
}

/* --- 链接列 --- */
.yw-footer-cols {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

.yw-footer-col h4 {
  font-size: 0.95rem;
  font-weight: 600;
  color: #ffffff;
  margin: 0 0 18px;
  position: relative;
  padding-bottom: 10px;
  letter-spacing: 0.5px;
}

.yw-footer-col h4::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 24px; height: 2px;
  background: linear-gradient(90deg, #7dd3fc, transparent);
  border-radius: 1px;
}

.yw-footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.yw-footer-col li {
  font-size: 0.85rem;
}

.yw-footer-col a {
  color: #8bb5be;
  text-decoration: none;
  position: relative;
  padding: 2px 0;
  transition: color 0.25s ease;
  display: inline-block;
}

.yw-footer-col a::after {
  content: '';
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 1px;
  background: #7dd3fc;
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.yw-footer-col a:hover {
  color: #e0f2fe;
}

.yw-footer-col a:hover::after {
  width: 100%;
}

/* --- 底部版权 --- */
.yw-footer-bottom {
  position: relative;
  z-index: 1;
  border-top: 1px solid rgba(125,211,252,0.12);
  padding: 18px 0;
  background: rgba(10, 35, 45, 0.5);
}

.yw-footer-bottom p {
  margin: 0;
  font-size: 0.78rem;
  color: #6d98a1;
  text-align: center;
  letter-spacing: 0.3px;
}

.yw-footer-bottom a {
  color: #6d98a1;
  text-decoration: none;
  margin-left: 6px;
  transition: color 0.25s ease;
}

.yw-footer-bottom a:hover {
  color: #7dd3fc;
  text-decoration: underline;
}

/* --- 响应式 --- */
@media (max-width: 960px) {
  .yw-footer-main .yw-footer-wrap {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .yw-footer-cols {
    grid-template-columns: repeat(2, 1fr);
  }
  .yw-footer-main {
    padding: 40px 0 24px;
  }
}

@media (max-width: 560px) {
  .yw-footer-wrap {
    padding: 0 20px;
  }
  .yw-footer-cols {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }
  .yw-footer-col h4 {
    font-size: 0.9rem;
    margin-bottom: 14px;
  }
  .yw-footer-logo svg {
    width: 150px; height: 42px;
  }
}

/* old qr codes styles removed */


/* --- 关注我们区块 --- */
.yw-footer-follow {
  margin-top: 8px;
  padding-top: 18px;
  border-top: 1px solid rgba(125,211,252,0.12);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.yw-footer-follow-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: #a8c5cd;
  letter-spacing: 1px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.yw-footer-follow-label::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #7dd3fc;
  box-shadow: 0 0 6px rgba(125,211,252,0.8);
}

/* --- channel-wrap + 内嵌 popover --- */
.yw-footer-channels {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: flex-start;
}

.yw-channel-wrap {
  position: relative;
  display: inline-flex;
  z-index: 60;
}

.yw-channel-btn {
  position: relative;
  z-index: 61;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(125,211,252,0.3);
  background: rgba(125,211,252,0.05);
  color: #a8c5cd;
  font-size: 0.78rem;
  line-height: 1;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.25s ease;
}

.yw-channel-btn:hover,
.yw-channel-btn:focus-visible {
  background: rgba(125,211,252,0.30);
  border-color: rgba(125,211,252,0.9);
  color: #ffffff;
  transform: translateY(-1px);
  outline: none;
}

.yw-channel-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(125,211,252,0.3);
  background: rgba(125,211,252,0.05);
  color: #a8c5cd;
  font-size: 0.78rem;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.25s ease;
}

.yw-channel-link:hover {
  background: rgba(125,211,252,0.30);
  border-color: rgba(125,211,252,0.9);
  color: #ffffff;
  transform: translateY(-1px);
}

/* 内嵌弹层：默认隐藏，wrap hover 显示 */
.yw-qr-popover {
  position: absolute;
  bottom: calc(100% + 12px);
  left: 50%;
  transform: translate(-50%, 8px) scale(0.9);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  z-index: 50;
  width: 200px;
}

.yw-channel-wrap:hover .yw-qr-popover,
.yw-channel-wrap:focus-within .yw-qr-popover {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0) scale(1);
  pointer-events: auto;
}

.yw-qr-popover::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -5px;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: #ffffff;
  border-bottom: 0;
}

.yw-qr-popover-inner {
  background: #ffffff;
  padding: 14px 14px 12px;
  border-radius: 10px;
  box-shadow: 0 12px 36px rgba(0,0,0,0.35), 0 0 0 1px rgba(125,211,252,0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.yw-qr-popover-img {
  width: 168px;
  height: 168px;
  display: block;
}

.yw-qr-popover-label {
  margin: 8px 0 0;
  font-size: 0.75rem;
  color: #334155;
  text-align: center;
}

/* ===== 404 / 错误页 ===== */
.error-page {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 160px 20px 80px;
  text-align: center;
}
.error-page-inner { max-width: 560px; }
.error-code {
  margin: 0 0 12px;
  font-size: clamp(5rem, 18vw, 9rem);
  font-weight: 700;
  line-height: 1;
  background: linear-gradient(135deg, #1b4d5d, #36B37E);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: #1b4d5d;
}
.error-title { margin: 0 0 14px; font-size: clamp(1.25rem, 3.5vw, 1.75rem); font-weight: 600; color: #1b4d5d; }
.error-desc { margin: 0 0 32px; font-size: 0.95rem; color: #64748b; line-height: 1.8; }
.error-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.error-btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 11px 26px; border-radius: 8px; font-size: 0.9rem; font-weight: 500;
  text-decoration: none; transition: all 0.25s ease; border: 1.5px solid #1b4d5d;
}
.error-btn-primary { background: #1b4d5d; color: #fff; }
.error-btn-primary:hover { background: #143d4a; transform: translateY(-2px); box-shadow: 0 8px 20px rgba(27,77,93,0.25); }
.error-btn-outline { background: transparent; color: #1b4d5d; }
.error-btn-outline:hover { background: rgba(27,77,93,0.06); transform: translateY(-2px); }

/* ===== 图片防盗保护 ===== */
/* 全站图片基线：禁止原生拖拽、选中、iOS 长按弹出保存菜单 */
img {
  -webkit-user-drag: none;
  -khtml-user-drag: none;
  -moz-user-drag: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}
/* 产品图专用：指针事件穿透到容器，右键/长按拿到的是普通页面菜单，
   不出现"图片另存为 / 在新标签页打开图片 / 保存图片"，同时无法拖拽 */
.product-image-right img,
.material-image img {
  pointer-events: none;
}
/* 打印时不输出产品图，防止通过打印/PDF 另存 */
@media print {
  .product-image-right img,
  .material-image img { display: none !important; }
}

/* 邮箱 mailto 链接：继承所在位置文字颜色，细下划线，悬浮加深 */
.mailto-link {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: rgba(27, 77, 93, 0.35);
  text-underline-offset: 3px;
  transition: text-decoration-color 0.2s ease, opacity 0.2s ease;
}
.mailto-link:hover {
  text-decoration-color: currentColor;
}

/* ============================================================
   型号生成页面（Model Generator）——重设计样式体系
   作用域：.mg-page；主色 #1b4d5d
   ============================================================ */
.mg-page {
  --mg-primary: #1b4d5d;
  --mg-primary-dark: #143a47;
  --mg-primary-light: #2d6478;
  --mg-tint: #eef4f5;
  --mg-border: #e4ebed;
  --mg-text: #1f2d33;
  --mg-text-2: #5c7078;
  --mg-text-3: #93a5ad;
  background: linear-gradient(180deg, #f4f8f9 0%, #f7fafb 320px, #f7fafb 100%);
  color: var(--mg-text);
  padding-bottom: 56px;
}
.mg-main { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ---------- 标题区 ---------- */
.mg-hero { text-align: center; padding: 48px 0 30px; }
.mg-hero-badge {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 11px; font-weight: 700; letter-spacing: 2.2px;
  color: var(--mg-primary); background: rgba(27, 77, 93, 0.08);
  padding: 6px 14px; border-radius: 999px; margin-bottom: 18px;
}
.mg-hero-title { font-size: clamp(26px, 4vw, 34px); font-weight: 700; color: var(--mg-text); margin: 0 0 10px; letter-spacing: -.5px; }
.mg-hero-sub { font-size: 15px; color: var(--mg-text-2); margin: 0; }

/* ---------- 步骤指示 ---------- */
.mg-steps {
  list-style: none; display: flex; justify-content: center; align-items: center;
  gap: 0; margin: 30px auto 0; padding: 0; max-width: 560px;
}
.mg-step { display: flex; align-items: center; gap: 10px; flex: 1; }
.mg-step-num {
  width: 30px; height: 30px; border-radius: 50%; flex-shrink: 0;
  background: #fff; border: 1.5px solid rgba(27, 77, 93, 0.25);
  color: var(--mg-primary); font-size: 13px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.mg-step-label { font-size: 13px; color: var(--mg-text-2); font-weight: 500; white-space: nowrap; }
.mg-step:not(:last-child)::after {
  content: ''; flex: 1; height: 1.5px; min-width: 24px;
  background: repeating-linear-gradient(90deg, rgba(27, 77, 93, 0.3) 0 5px, transparent 5px 10px);
  margin: 0 6px;
}

/* ---------- 主栅格 ---------- */
.mg-grid { display: grid; grid-template-columns: minmax(0, 1.85fr) minmax(0, 1fr); gap: 22px; align-items: start; }

/* ---------- 卡片基础 ---------- */
.mg-card {
  position: relative; background: #fff;
  border: 1px solid var(--mg-border); border-radius: 18px;
  box-shadow: 0 4px 24px rgba(27, 77, 93, 0.06);
  overflow: hidden;
}
.mg-param-card { padding: 28px 28px 24px; }

/* 弥散渐变光斑（用户偏好：四角彩色光斑） */
.mg-glow { position: absolute; border-radius: 50%; filter: blur(8px); pointer-events: none; z-index: 0; }
.mg-glow-1 { width: 190px; height: 190px; top: -70px; left: -60px; background: radial-gradient(circle, rgba(27,77,93,.30), transparent 70%); }
.mg-glow-2 { width: 170px; height: 170px; top: -55px; right: -50px; background: radial-gradient(circle, rgba(45,120,140,.32), transparent 70%); }
.mg-glow-3 { width: 180px; height: 180px; bottom: -80px; left: 30%; background: radial-gradient(circle, rgba(212,175,95,.22), transparent 70%); }
.mg-glow-4 { width: 160px; height: 160px; bottom: -60px; right: -45px; background: radial-gradient(circle, rgba(150,180,195,.35), transparent 70%); }
.mg-param-card form { position: relative; z-index: 1; }

/* ---------- 分区标题 ---------- */
.mg-section { padding-bottom: 24px; margin-bottom: 24px; border-bottom: 1px solid #eef2f3; }
.mg-section-last { padding-bottom: 0; margin-bottom: 0; border-bottom: none; }
.mg-section-head { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.mg-section-icon {
  width: 38px; height: 38px; border-radius: 11px; flex-shrink: 0;
  background: linear-gradient(135deg, var(--mg-primary), var(--mg-primary-light));
  color: #fff; font-size: 15px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 12px rgba(27, 77, 93, 0.22);
}
.mg-section-head-text h2 { margin: 0; font-size: 17px; font-weight: 650; color: var(--mg-text); }
.mg-section-head-text p { margin: 3px 0 0; font-size: 12.5px; color: var(--mg-text-3); }

/* ---------- 输入字段 ---------- */
.mg-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; }
.mg-field { min-width: 0; }
.mg-field > label {
  display: block; font-size: 13px; font-weight: 600; color: #41565e;
  margin-bottom: 7px;
}
.mg-input-wrap { position: relative; }
.mg-input-wrap input {
  width: 100%; height: 42px; box-sizing: border-box;
  padding: 0 40px 0 13px; font-size: 14px; color: var(--mg-text);
  background: #fbfcfd; border: 1.5px solid #dce5e7; border-radius: 10px;
  outline: none; transition: border-color .2s, box-shadow .2s, background .2s;
}
.mg-field .mg-input-wrap:not(:has(.mg-unit)) input { padding-right: 13px; }
.mg-input-wrap input:focus {
  border-color: var(--mg-primary); background: #fff;
  box-shadow: 0 0 0 3.5px rgba(27, 77, 93, 0.11);
}
.mg-input-wrap input::placeholder { color: #a8b8be; font-size: 13px; }
/* 隐藏 number input 的上下箭头（更干净） */
.mg-input-wrap input::-webkit-outer-spin-button,
.mg-input-wrap input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.mg-input-wrap input[type=number] { -moz-appearance: textfield; }
.mg-unit {
  position: absolute; right: 13px; top: 50%; transform: translateY(-50%);
  font-size: 12px; color: var(--mg-text-3); font-weight: 600; pointer-events: none;
}
.mg-hint { margin: 6px 0 0; font-size: 11.5px; color: var(--mg-text-3); line-height: 1.45; }
.mg-field-error { margin: 6px 0 0; font-size: 11.5px; color: #dc2626; line-height: 1.4; }

/* ---------- 机型选项：分段控制器 ---------- */
.mg-options { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px; margin-bottom: 22px; }
.mg-option { min-width: 0; }
.mg-option-label { display: block; font-size: 13px; font-weight: 600; color: #41565e; margin-bottom: 7px; }
.mg-seg {
  display: flex; gap: 2px; padding: 3.5px;
  background: #edf1f2; border-radius: 11px; position: relative;
}
.mg-seg label { flex: 1; min-width: 0; position: relative; cursor: pointer; }
.mg-seg input { position: absolute; opacity: 0; width: 0; height: 0; pointer-events: none; }
.mg-seg label > span {
  display: block; text-align: center; padding: 8px 6px;
  font-size: 13px; font-weight: 500; color: var(--mg-text-2);
  border-radius: 8px; transition: all .25s cubic-bezier(.4,0,.2,1);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.mg-seg label:hover > span { color: var(--mg-primary); }
.mg-seg label:has(input:checked) > span {
  background: #fff; color: var(--mg-primary); font-weight: 650;
  box-shadow: 0 2px 8px rgba(27, 77, 93, 0.14), 0 0 0 0.5px rgba(27, 77, 93, 0.06);
}

/* ---------- 操作按钮 ---------- */
.mg-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.mg-btn {
  height: 44px; border-radius: 11px; font-size: 14px; font-weight: 600;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  cursor: pointer; transition: all .22s cubic-bezier(.4,0,.2,1); outline: none;
}
.mg-btn i { font-size: 14px; }
.mg-btn-primary {
  background: linear-gradient(135deg, var(--mg-primary), var(--mg-primary-light));
  color: #fff; border: 1.5px solid transparent;
  box-shadow: 0 6px 16px rgba(27, 77, 93, 0.25);
}
.mg-btn-primary:hover { transform: translateY(-1.5px); box-shadow: 0 10px 22px rgba(27, 77, 93, 0.32); }
.mg-btn-primary:active { transform: translateY(0); }
/* 次要按钮：边框风格（透明底+墨绿边框+墨绿文字，用户偏好） */
.mg-btn-outline {
  background: transparent; color: var(--mg-primary);
  border: 1.5px solid var(--mg-primary);
}
.mg-btn-outline:hover { background: rgba(27, 77, 93, 0.06); transform: translateY(-1.5px); }
.mg-btn-outline:disabled {
  color: #aebbc0; border-color: #d7e0e2; background: transparent;
  cursor: not-allowed; transform: none; box-shadow: none;
}

/* ---------- 右侧栏 ---------- */
.mg-side { position: sticky; top: 88px; display: flex; flex-direction: column; gap: 18px; }
.mg-result-card, .mg-upload-card { padding: 22px; }

/* 结果卡片 */
.mg-result-head { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.mg-result-head-icon {
  width: 32px; height: 32px; border-radius: 9px;
  background: rgba(27, 77, 93, 0.1); color: var(--mg-primary);
  font-size: 13px; display: flex; align-items: center; justify-content: center;
}
.mg-result-head h2 { margin: 0; font-size: 15.5px; font-weight: 650; }

.mg-placeholder { text-align: center; padding: 34px 10px; color: var(--mg-text-3); }
.mg-placeholder-icon { font-size: 38px; margin-bottom: 12px; color: #c2d0d5; }
.mg-placeholder-icon i { animation: pulseSoft 2.4s ease-in-out infinite; }
.mg-placeholder p { margin: 0; font-size: 13px; line-height: 1.6; }

.mg-result-content { display: flex; flex-direction: column; }
.mg-result-caption { margin: 0 0 8px; font-size: 12px; color: var(--mg-text-3); font-weight: 600; letter-spacing: .3px; }
.mg-model-box {
  display: flex; align-items: center; gap: 10px;
  background: linear-gradient(135deg, #eef4f5, #e7eff1);
  border: 1px solid #dde7e9; border-radius: 12px; padding: 13px 14px;
}
.mg-model-box > span {
  flex: 1; font-family: 'JetBrains Mono', Consolas, Menlo, monospace;
  font-size: 15px; font-weight: 700; color: var(--mg-primary);
  word-break: break-all; line-height: 1.4;
}
.mg-copy-icon {
  flex-shrink: 0; width: 32px; height: 32px; border-radius: 8px;
  background: #fff; border: 1px solid #d8e2e4; color: var(--mg-primary);
  cursor: pointer; transition: all .2s; display: flex; align-items: center; justify-content: center;
}
.mg-copy-icon:hover { background: var(--mg-primary); color: #fff; border-color: var(--mg-primary); }

.mg-view3d { margin-top: 10px; }
.mg-view3d a {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--mg-primary); color: #fff; font-size: 13px; font-weight: 600;
  padding: 9px 14px; border-radius: 9px; text-decoration: none;
  transition: all .2s;
}
.mg-view3d a:hover { background: var(--mg-primary-dark); transform: translateY(-1px); box-shadow: 0 6px 14px rgba(27,77,93,.3); }
.mg-view3d-arrow { font-size: 11px; margin-left: 2px; }

.mg-details { margin-top: 14px; background: #f8fafb; border: 1px solid #e7edee; border-radius: 12px; padding: 13px 14px; }
.mg-details-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 9px; }
.mg-details-head > span { font-size: 13px; font-weight: 650; color: #41565e; }
.mg-copy-text {
  font-size: 11.5px; color: var(--mg-primary); background: none; border: none;
  cursor: pointer; padding: 4px 7px; border-radius: 6px; transition: all .2s;
  display: inline-flex; align-items: center; gap: 5px; font-weight: 600;
}
.mg-copy-text:hover { background: rgba(27, 77, 93, 0.08); }
.mg-details ul {
  list-style: none; margin: 0; padding: 0;
  max-height: 170px; overflow-y: auto;
}
.mg-details ul li {
  font-size: 12.5px; color: var(--mg-text-2); padding: 5px 0;
  border-bottom: 1px dashed #edf1f2; line-height: 1.45;
}
.mg-details ul li:last-child { border-bottom: none; }

.mg-explain {
  margin-top: 14px; background: #f2f7fa; border: 1px solid #dde9ef;
  border-radius: 12px; padding: 13px 15px;
}
.mg-explain-title { margin: 0 0 8px; font-size: 12.5px; font-weight: 650; color: #35607a; }
.mg-explain-title i { margin-right: 4px; }
.mg-explain ul { list-style: none; margin: 0; padding: 0; }
.mg-explain ul li {
  position: relative; padding-left: 14px; font-size: 12px; color: #5a7285;
  line-height: 1.7;
}
.mg-explain ul li::before {
  content: ''; position: absolute; left: 2px; top: 9px;
  width: 5px; height: 5px; border-radius: 50%; background: #6fa8bd;
}

.mg-result-error {
  display: flex; align-items: center; gap: 9px; justify-content: center;
  background: #fdf2f2; border: 1px solid #fad4d4; color: #dc2626;
  border-radius: 12px; padding: 16px; font-size: 13px; line-height: 1.5;
}
.mg-toast {
  margin-top: 12px; background: #f0f9f3; border: 1px solid #cde9d8;
  color: #22814b; border-radius: 10px; padding: 10px 14px;
  font-size: 12.5px; text-align: center; font-weight: 500;
}
.mg-toast i { margin-right: 4px; }

/* ---------- 上传卡片 ---------- */
.mg-upload-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.mg-upload-head-icon {
  width: 32px; height: 32px; border-radius: 9px;
  background: rgba(27, 77, 93, 0.1); color: var(--mg-primary);
  font-size: 13px; display: flex; align-items: center; justify-content: center;
}
.mg-upload-head h2 { margin: 0; font-size: 15.5px; font-weight: 650; }
.mg-upload-desc { margin: 0 0 12px; font-size: 12.5px; color: var(--mg-text-2); line-height: 1.5; }
.mg-dropzone {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  border: 1.5px dashed #c8d6da; border-radius: 12px;
  background: #f8fafb; padding: 20px 12px; cursor: pointer;
  transition: all .22s; text-align: center;
}
.mg-dropzone:hover { border-color: var(--mg-primary); background: #f1f6f7; }
.mg-dropzone i { font-size: 24px; color: #8fb4bf; margin-bottom: 4px; transition: color .2s; }
.mg-dropzone:hover i { color: var(--mg-primary); }
.mg-dropzone-main { font-size: 13px; font-weight: 600; color: #41565e; }
.mg-dropzone-sub { font-size: 11px; color: var(--mg-text-3); margin-top: 2px; }

/* 上传预览（覆盖旧样式，让图填满） */
.mg-upload-card .image-preview-container { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; max-height: none; }
.mg-upload-card .image-preview-wrapper { border-radius: 8px; padding: 0; border: 1px solid #e4ebed; overflow: hidden; background: #fff; }
.mg-upload-card .image-preview-wrapper img { width: 100%; height: 100%; }

/* ---------- 型号解码器（浅色精致卡片） ---------- */
.mg-decoder { margin-top: 26px; padding: 26px 28px; }
.mg-decoder-inner { position: relative; z-index: 1; }
.mg-decoder-head { display: flex; align-items: center; gap: 13px; margin-bottom: 8px; }
.mg-decoder-icon {
  width: 40px; height: 40px; border-radius: 11px;
  background: linear-gradient(135deg, var(--mg-primary), var(--mg-primary-light));
  color: #fff; font-size: 16px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 12px rgba(27, 77, 93, 0.22);
}
.mg-decoder-head h2 { margin: 0; font-size: 18px; font-weight: 650; color: var(--mg-text); }
.mg-decoder-head p { margin: 3px 0 0; font-size: 12.5px; color: var(--mg-text-3); }

.mg-decoder-stage { position: relative; }
.mg-decoder-model {
  display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 4px;
  font-size: clamp(17px, 2.6vw, 24px); font-weight: 700; letter-spacing: .5px;
  padding: 16px 0 4px;
}
.mg-decoder-model .model-part {
  margin: 0; padding: 7px 13px; border: 1.5px solid transparent; border-radius: 10px;
  background: #f1f5f6; color: var(--mg-text); font-weight: 700;
  transition: all .25s cubic-bezier(.4, 0, .2, 1);
}
.mg-decoder-model .model-part:hover {
  background: #e7eff1; border-color: rgba(27, 77, 93, 0.32); color: var(--mg-primary);
  transform: translateY(-2px); box-shadow: 0 6px 16px rgba(27, 77, 93, 0.12);
}
.mg-decoder-model .model-part.active {
  background: #fff; border-color: var(--mg-primary); color: var(--mg-primary);
  transform: translateY(-2px); box-shadow: 0 8px 20px rgba(27, 77, 93, 0.18);
}
.mg-decoder-model .mg-dash { color: #c2d0d5; font-weight: 400; padding: 0 3px; }

/* 展开区（浅色玻璃） */
.mg-decoder-expand { margin-top: 14px; }
.mg-decoder-expand:not(.hidden) {
  background: #f7fafb; border: 1px solid #e7edee; border-radius: 14px; padding: 16px;
}
.mg-expand-options { display: flex; gap: 8px; flex-wrap: wrap; }
.mg-expand-options .expand-option {
  flex: 1; min-width: 84px;
  background: #fff; border: 1.5px solid #e1e9eb; color: var(--mg-text-2);
  border-radius: 10px; padding: 10px 8px; font-size: 13px; font-weight: 600;
  text-align: center; cursor: pointer; transition: all .2s; position: relative;
}
.mg-expand-options .expand-option:hover:not(.current) {
  background: #eef4f5 !important; color: var(--mg-primary) !important;
  border-color: rgba(27, 77, 93, 0.35); transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(27, 77, 93, 0.1);
}
.mg-expand-options .expand-option.current {
  background: linear-gradient(135deg, var(--mg-primary), var(--mg-primary-light)) !important;
  color: #fff !important; border-color: transparent; font-weight: 700;
  box-shadow: 0 6px 16px rgba(27, 77, 93, 0.28);
}
.mg-expand-desc {
  margin-top: 12px; padding: 12px 15px;
  background: #eef5f8; border: 1px solid #d9e8ee; border-radius: 10px;
  color: #3d6070; font-size: 13px; line-height: 1.55;
  opacity: 0; transform: translateY(4px); transition: all .25s ease;
}
.mg-expand-desc.show { opacity: 1; transform: none; }

/* ---------- 补充说明 ---------- */
.mg-notes { margin-top: 22px; padding: 24px 26px; }
.mg-notes-head { display: flex; align-items: center; gap: 11px; margin-bottom: 14px; }
.mg-notes-icon {
  width: 34px; height: 34px; border-radius: 10px;
  background: rgba(27, 77, 93, 0.1); color: var(--mg-primary); font-size: 14px;
  display: flex; align-items: center; justify-content: center;
}
.mg-notes-head h2 { margin: 0; font-size: 16px; font-weight: 650; }
.mg-notes-lead { margin: 0 0 10px; font-size: 13px; font-weight: 650; color: #41565e; }
.mg-notes-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 24px; }
.mg-notes-list li {
  position: relative; padding-left: 17px; font-size: 12.5px; color: var(--mg-text-2);
  line-height: 1.6;
}
.mg-notes-list li::before {
  content: ''; position: absolute; left: 3px; top: 9px;
  width: 6px; height: 6px; border-radius: 50%; background: var(--mg-primary); opacity: .55;
}
.mg-notes-warning {
  margin: 14px 0 0; padding: 11px 14px; font-size: 12.5px; color: #9a6b1f;
  background: #fdf8ec; border: 1px solid #f3e4bd; border-radius: 10px;
}
.mg-notes-warning i { margin-right: 6px; }

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
  .mg-grid { grid-template-columns: 1fr; }
  .mg-side { position: static; }
}
@media (max-width: 640px) {
  .mg-main { padding: 0 14px; }
  .mg-hero { padding: 34px 0 22px; }
  .mg-steps { flex-direction: column; align-items: flex-start; gap: 12px; }
  .mg-step { width: 100%; }
  .mg-step:not(:last-child)::after { display: none; }
  .mg-param-card { padding: 20px 18px; }
  .mg-fields, .mg-options, .mg-actions { grid-template-columns: 1fr; }
  .mg-decoder { padding: 22px 18px; }
  .mg-expand-options { flex-wrap: wrap; }
  .mg-expand-options .expand-option { flex: 1 1 30%; }
  .mg-notes { padding: 20px 18px; }
  .mg-notes-list { grid-template-columns: 1fr; }
}



/* 首页 3D iframe 左右透明滚动边 —— 物理遮挡，让滚轮事件穿透到页面 */
.scroll-edge {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 22%;          /* 可调：边缘宽度 */
  z-index: 5;          /* 比 iframe(z=3) 高，比装饰层(z=1) 高 */
  pointer-events: auto;/* 接收滚轮事件 */
  background: transparent;
}
.scroll-edge-left  { left: 0; }
.scroll-edge-right { right: 0; }