/* ==========================================================================
 * 晴空流云 / 天蓝流云光斑 + 浅色分层玻璃，清朗开阔；适合旅行、运动、数码
 * --------------------------------------------------------------------------
 * 分层半透明 · 扁平 2.0（Layered Translucency）实现要点：
 *   1. 背景：多层 radial-gradient 光斑 + 固定渐变底 —— 有内容可糊，模糊才有效果
 *   2. 玻璃体：低不透明度填充 + backdrop-filter: blur() saturate()，通透不浑浊
 *   3. 分层堆叠：卡片内再叠一层更淡的玻璃，形成「玻璃压玻璃」的层次
 *   4. 柔光描边：四边不同亮度 + inset 顶部 1px 亮线，表现玻璃厚度与受光面
 *   5. 悬浮分层：hover 时外层小幅上浮、内层轻微位移，层次关系更清晰
 *   6. 环境色阴影：极淡的大范围投影，强化悬浮感而非沉重感
 *   7. 噪点：全局 feTurbulence 纹理，overlay 混合，避免纯模糊的塑料感
 * ========================================================================== */
:root {
  --card-ratio: 4/3;
  --brand: #0EA5E9;
  --brand-dark: #0284C7;
  --brand-light: rgba(14,165,233,.14);
  --ink: #14303F;
  --muted: #6C8CA0;
  --line: rgba(0,0,0,.08);
  --radius: 16px;
  /* 玻璃三要素：填充 / 边框 / 高光 */
  --glass: rgba(255,255,255,.60);
  --glass-strong: rgba(255,255,255,.80);
  --glass-line: rgba(255,255,255,.76);
  --glass-hi: rgba(255,255,255,.96);
  --shadow: 0 8px 30px rgba(56,132,190,.15);
}

body {
  font-family: "Helvetica Neue", -apple-system, BlinkMacSystemFont, "Segoe UI",
               "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  /* 多层光斑：为 backdrop-filter 提供可模糊的内容，滚动时卡片在其上浮动 */
  background:
    radial-gradient(1000px 680px at 10% 14%, rgba(186,230,253,.66), transparent 60%),
    radial-gradient(900px 620px at 88% 18%, rgba(165,243,252,.50), transparent 60%),
    radial-gradient(1000px 700px at 58% 92%, rgba(199,210,254,.46), transparent 60%),
    linear-gradient(160deg, #F5FBFF 0%, #EDF7FF 55%, #F2F6FF 100%);
  background-attachment: fixed;
  background-repeat: no-repeat;
  color: var(--ink);
  min-height: 100vh;
  /* Sticky Footer：body 纵向 flex，main 撑满剩余高度，页脚始终在最下方 */
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}
img { display: block; }

/* ---- 全局噪点：overlay 混合，深浅背景都能显现，避免"纯模糊"的廉价感 ---- */
body::before {
  content: '';
  position: fixed; inset: 0;
  z-index: 9998;
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
}

/* ==================== 玻璃基类 ==================== */
.glass, .card, .info-card, .detail, .site-head, .site-foot,
.search-box select, .search-box input, .pager .page-btn, .pager .page-num,
.thumb-arrow, .hero, .article-body {
  background: var(--glass);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  backdrop-filter: blur(18px) saturate(150%);
  border: 1px solid var(--glass-line);
  /* 四边不同亮度：光从左上来，左上亮右下暗 */
  border-top-color: var(--glass-hi);
  border-left-color: var(--glass-hi);
  box-shadow: var(--shadow),
              inset 0 1px 0 var(--glass-hi);   /* 顶部 1px 亮线：玻璃厚度高光 */
}

/* ---- 折射高光：135° 渐变细边，模拟玻璃断面全反射 ---- */
.card, .info-card, .detail, .hero, .thumb-arrow {
  position: relative;
}
.card::before, .info-card::before, .detail::before, .hero::before {
  content: '';
  position: absolute; inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg,
      var(--glass-hi) 0%, rgba(255,255,255,.04) 38%, transparent 62%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  pointer-events: none;
}

/* ---- 光线扫过：hover 时一道斜向高光掠过表面 ---- */
.card::after {
  content: '';
  position: absolute; top: 0; left: -70%;
  width: 45%; height: 100%;
  background: linear-gradient(90deg, transparent, var(--glass-hi), transparent);
  transform: skewX(-18deg);
  opacity: 0;
  transition: left .65s ease, opacity .3s;
  pointer-events: none;
}
.card:hover::after { left: 130%; opacity: .55; }

/* ==================== 排版即图像：Hero 大字 ==================== */
.hero {
  border-radius: var(--radius);
  padding: 44px 34px;
  margin: 22px 0 30px;
  overflow: hidden;
}
.hero-title {
  font-size: clamp(2.3rem, 6.8vw, 4.8rem);
  font-weight: 900;
  letter-spacing: -.045em;
  line-height: .95;
  margin: 0;
  color: var(--ink);
  background: linear-gradient(120deg,#33251F,#C95B33 70%); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-sub {
  margin: 16px 0 0;
  max-width: 46ch;
  font-size: clamp(.9rem, 1.4vw, 1.05rem);
  line-height: 1.7;
  color: var(--muted);
}
.sec-title {
  display: flex; align-items: baseline; gap: 10px;
  font-size: clamp(1.25rem, 2.6vw, 1.85rem);
  font-weight: 800; letter-spacing: -.02em;
  color: var(--ink); margin: 34px 0 16px;
}
.sec-title .more { margin-left: auto; font-size: 13px; font-weight: 400; color: var(--muted); }

/* ==================== 头部：吸顶玻璃条 ==================== */
.site-head {
  border-radius: 0;
  border-left: none; border-right: none; border-top: none;
  position: sticky; top: 0; z-index: 30;
}
.brand {
  font-size: 19px; font-weight: 800; letter-spacing: -.02em;
  color: var(--ink); text-decoration: none;
}
.brand:hover { color: var(--brand); }

.search-box { display: flex; align-items: stretch; }
.search-box select, .search-box input {
  border-radius: 999px;
  padding: 8px 12px; font-size: 13px; outline: none;
  color: var(--ink);
}
.search-box select { border-radius: 999px 0 0 999px; }
.search-box input { border-left: none; border-right: none; border-radius: 0; width: 150px; min-width: 0; }
.search-box button {
  border: 1px solid var(--brand); border-radius: 0 999px 999px 0;
  padding: 0 20px; font-size: 13px; font-weight: 600;
  background: var(--brand); color: #fff;
}
.search-box button:hover { background: var(--brand-dark); border-color: var(--brand-dark); }
@media (min-width: 768px) { .search-box input { width: 250px; } }

.lang-btn {
  padding: 6px 14px; font-size: 13px; border-radius: 999px;
  border: 1px solid var(--glass-line); color: var(--muted);
  background: var(--glass);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  transition: .15s;
}
.lang-btn:hover { border-color: var(--brand); color: var(--brand); }

.nav-row { border-top: 1px solid var(--glass-line); }
.nav-row a {
  /* 浅色磨砂玻璃上，--muted 偏灰看不清；改用 --ink 并加粗 */
  font-size: 14.5px; font-weight: 600; color: var(--ink);
  padding: 11px 2px; position: relative; text-decoration: none; transition: color .15s;
}
.nav-row a:hover { color: var(--brand); }
.nav-row a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 5px;
  height: 2px; background: var(--brand); transform: scaleX(0); transition: .2s;
}
.nav-row a:hover::after { transform: scaleX(1); }
.nav-icon { font-size: 14px; margin-right: 3px; }

.notice-bar {
  background: var(--glass-strong);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border: 1px solid var(--glass-line); color: var(--ink);
  border-radius: 10px; padding: 9px 14px; font-size: 13px;
}

/* ==================== 卡片 ==================== */
.card {
  border-radius: var(--radius); overflow: hidden;
  transition: transform .25s, border-color .25s, box-shadow .25s;
}
.card:hover {
  transform: translateY(-3px);
  border-color: var(--brand);
  box-shadow: var(--shadow), inset 0 1px 0 var(--glass-hi),
              0 0 0 1px var(--brand);
}
.card .ph { overflow: hidden; background: rgba(255,255,255,.35); }
.card img {
  width: 100%; aspect-ratio: var(--card-ratio); object-fit: cover;
  transition: opacity .4s, transform .5s;
}
.card:hover img { opacity: .92; }
.card-body { padding: 11px 12px 13px; }
.card-title {
  font-size: 13px; font-weight: 600; color: var(--ink);
  display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.card-meta { font-size: 12px; color: var(--muted); margin-top: 3px; }

.badge-new {
  display: inline-block; background: var(--brand);
  color: #fff; font-size: 10px; font-weight: 700; line-height: 15px;
  padding: 0 6px; border-radius: 4px; margin-left: 5px; vertical-align: middle;
}

/* ==================== 面包屑 ==================== */
.breadcrumb {
  display: flex; flex-wrap: wrap; align-items: center;
  font-size: 13px; line-height: 1.9; padding: 14px 0 4px;
}
.breadcrumb a.bc-link {
  color: var(--ink); text-decoration: none; opacity: .8;
  padding: 3px 9px; border-radius: 7px; transition: background .15s;
}
.breadcrumb a.bc-link:hover { background: var(--glass-strong); opacity: 1; text-decoration: none; }
.breadcrumb .bc-cur { color: var(--muted); padding: 3px 9px; }
.breadcrumb .bc-sep { color: var(--muted); opacity: .5; margin: 0 10px; user-select: none; }

/* ==================== 幻灯片 ==================== */
.slides { position: relative; overflow: hidden; border-radius: var(--radius); }
.slide { display: block; position: relative; }
.slide img { width: 100%; max-height: 380px; object-fit: cover; }
.slide span {
  position: absolute; left: 18px; bottom: 18px; color: #fff; font-size: 13px;
  background: rgba(0,0,0,.45);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  padding: 6px 14px; border-radius: 999px;
  border: 1px solid var(--glass-line);
}

/* ==================== 分页 ==================== */
.pager { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 28px 0 8px; }
.pager .page-btn, .pager .page-num {
  display: inline-block; min-width: 36px; padding: 7px 12px; text-align: center;
  border-radius: 8px; font-size: 13px; color: var(--ink); text-decoration: none;
  transition: .15s;
}
.pager a.page-btn:hover, .pager a.page-num:hover { border-color: var(--brand); color: var(--brand); }
.pager .page-num.current { background: var(--brand); color: #fff; border-color: var(--brand); font-weight: 600; }
.pager .page-btn.disabled { color: var(--muted); opacity: .5; }
.pager .ellipsis { padding: 0 4px; color: var(--muted); }
.pager .jump { font-size: 13px; color: var(--ink); display: flex; align-items: center; gap: 6px; }
.pager .jump input {
  border-radius: 6px; padding: 6px; width: 52px; text-align: center;
  color: var(--ink);
}
.pager .jump button {
  background: var(--brand); color: #fff; border-radius: 6px; padding: 7px 14px;
  font-size: 13px; border: 1px solid var(--brand);
}

/* ==================== 商品详情 ==================== */
.detail {
  display: flex; gap: 20px; padding: 16px;
  border-radius: var(--radius);
}
.detail-main {
  flex: 1; min-width: 0;
  display: flex; align-items: center; justify-content: center;
  padding: 10px; border-radius: 12px;
}
.detail-main img {
  /* 主图不再 width:100% 硬撑（大图会被拉伸/撑爆容器）。
     改为：按视口高度自适应 —— clamp(最小, 62vh, 最大)，
     窗口越高图越大，窗口矮则自动缩小，始终完整可见不溢出。 */
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: clamp(300px, 62vh, 780px);
  object-fit: contain;        /* 保持原始比例，不变形 */
  border-radius: 12px;
}
.detail-thumbs { width: 108px; display: flex; flex-direction: column; align-items: center; }
.thumb-arrow {
  width: 100%; text-align: center; padding: 6px 0; cursor: pointer;
  border-radius: 8px; font-size: 12px; color: var(--ink);
}
.thumb-arrow:hover { border-color: var(--brand); }
.thumb-list {
  /* 缩略图列高度跟随视口，矮屏自动收窄，避免超出主图高度 */
  max-height: clamp(260px, 56vh, 620px);
  overflow: hidden;
}
.thumb {
  width: 98px; height: 98px; border: 2px solid transparent; margin-bottom: 8px;
  cursor: pointer; border-radius: 8px; overflow: hidden; opacity: .7; transition: .15s;
}
.thumb:hover { opacity: 1; }
.thumb.active { border-color: var(--brand); opacity: 1; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }

.info-card { border-radius: var(--radius); padding: 20px 22px; margin-top: 16px; }
.info-card h1 {
  font-size: clamp(1.3rem, 2.6vw, 1.9rem); font-weight: 800;
  margin: 4px 0 10px; letter-spacing: -.02em; color: var(--ink);
}
.info-meta { font-size: 13px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 16px; }
.info-desc { margin-top: 16px; color: var(--ink); line-height: 1.9; font-size: 14px; opacity: .9; }

/* ==================== 页脚 ==================== */
.site-foot {
  border-radius: 0; border-left: none; border-right: none; border-bottom: none;
  margin-top: 52px; padding: 34px 0; font-size: 13px; color: var(--muted);
}
.site-foot a { color: var(--muted); }
.site-foot a:hover { color: var(--brand); }
.foot-title {
  font-size: 12px; font-weight: 700; color: var(--ink); margin-bottom: 10px;
  letter-spacing: .08em; text-transform: uppercase;
}

/* ==================== 文章内容 ==================== */
.article-body {
  border-radius: var(--radius); padding: 22px 24px;
  line-height: 1.95; font-size: 15px; color: var(--ink);
}
.article-body img { max-width: 100%; border-radius: 10px; }

/* ==================== 文章目录树 ==================== */
.art-tree { list-style: none; margin: 0; padding: 0; }
.art-tree li { margin: 0; }
.art-tree a {
  display: flex; align-items: center; gap: 7px;
  padding: 6px 10px; border-radius: 8px;
  font-size: 13px; color: var(--muted); text-decoration: none;
  transition: background .15s, color .15s;
}
.art-tree a:hover { background: var(--glass-strong); color: var(--ink); }
.art-tree a.active {
  background: var(--glass-strong); color: var(--brand); font-weight: 600;
  box-shadow: inset 2px 0 0 var(--brand);
}
.art-tree a .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: currentColor; opacity: .45; flex: 0 0 auto;
}
.art-tree a.active .dot { opacity: 1; }
.art-tree ul.lv2 { list-style: none; margin: 0; padding: 0 0 0 15px; position: relative; }
.art-tree ul.lv2::before {
  content: ''; position: absolute; left: 6px; top: 2px; bottom: 8px;
  width: 1px; background: var(--line);
}
.art-tree ul.lv2 a { font-size: 12.5px; padding: 4px 10px; }
.art-tree ul.lv2 a .dot {
  width: 5px; height: 5px; background: transparent;
  border: 1.5px solid currentColor; opacity: .45;
}

/* ==================== 打包下载页 ==================== */
.dl-wrap {
  overflow-x: auto; border-radius: var(--radius);
  background: var(--glass);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  backdrop-filter: blur(18px) saturate(150%);
  border: 1px solid var(--glass-line);
  border-top-color: var(--glass-hi);
}
.dl-table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 640px; }
.dl-table th, .dl-table td { padding: 11px 14px; text-align: left; border-bottom: 1px solid var(--line); }
.dl-table th { font-weight: 700; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.dl-row:hover { background: var(--glass-strong); }
.dl-table .dl-count, .dl-table .dl-size, .dl-table .dl-time { white-space: nowrap; color: var(--muted); font-size: 13px; }
.dl-table .dl-op { text-align: right; }
.dl-btn {
  display: inline-block; padding: 6px 15px; border-radius: 8px; text-decoration: none;
  background: var(--brand); color: #fff; font-size: 13px; font-weight: 600;
  border: 1px solid var(--brand);
}
.dl-btn:hover { background: var(--brand-dark); }
.dl-empty { padding: 44px 0; text-align: center; color: var(--muted); font-size: 14px; }

/* ==================== 响应式 ==================== */
@media (max-width: 768px) {
  .detail { flex-direction: column; }
  .detail-thumbs { width: 100%; flex-direction: row; overflow-x: auto; }
  .thumb-list { display: flex; max-height: none; }
  .thumb { width: 72px; height: 72px; margin-right: 8px; flex: 0 0 auto; }
  .brand { font-size: 16px; }
  .hero { padding: 28px 20px; margin: 16px 0 22px; }
  /* 移动端降级：减少模糊半径，兼顾性能 */
  .card, .info-card, .detail, .site-head {
    -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  }
}

/* 无障碍：用户开启减少动效时关闭扫光 */
@media (prefers-reduced-motion: reduce) {
  .card::after { display: none; }
  .card, .card img { transition: none; }
}

/* ==================== 站点 Logo ==================== */
/* 有 Logo 时显示图片并限高，避免不同尺寸 Logo 撑坏导航条；无 Logo 时显示站点名文字 */
.site-logo {
  /* Logo 显示尺寸：桌面 48px 高，宽度自适应不拉伸 */
  height: 48px;
  width: auto;
  max-width: 320px;
  object-fit: contain;
  display: inline-block;
  vertical-align: middle;
}
@media (max-width: 768px) {
  .site-logo { height: 36px; max-width: 200px; }
}

/* Sticky Footer：main 占满剩余高度，页脚始终在视窗最下方 */
/* 注意：flex 容器中有 margin:auto 的 item 不会 stretch 而会收缩到内容宽度，
   故必须显式 width:100%，否则内容少的页面（关于我们/下载）会变窄。 */
body > main {
  flex: 1 0 auto;
  width: 100%;
  box-sizing: border-box;
}
body > .site-foot {
  flex-shrink: 0;
}

/* 窄屏：主图与缩略图改为上下排列，缩略图横向滚动 */
@media (max-width: 768px) {
  .detail { flex-direction: column; gap: 14px; }
  .detail-main img { max-height: clamp(240px, 52vh, 460px); }
  .detail-thumbs { width: 100%; flex-direction: row; align-items: center; gap: 8px; }
  .thumb-list { display: flex; gap: 8px; overflow-x: auto; max-height: none; }
  .thumb { width: 76px; height: 76px; margin-bottom: 0; flex-shrink: 0; }
}

/* ==================== 商品详情页 ==================== */
/* 主图舞台：主图居中，左右两侧悬浮上一个/下一个箭头 */
.detail-stage { position: relative; display: flex; align-items: center; justify-content: center; min-width: 0; }
/* 上一个/下一个：半透明圆钮，hover 加深；.disabled 置灰不可点 */
.nav-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  z-index: 3; width: 40px; height: 40px; border-radius: 9999px;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; line-height: 1; text-decoration: none;
  color: var(--ink, #1f2937); background: rgba(255,255,255,.82);
  border: 1px solid var(--line, #e5e9ef); backdrop-filter: blur(4px);
  box-shadow: 0 2px 10px rgba(0,0,0,.10); transition: all .18s;
}
.nav-prev { left: 10px; }
.nav-next { right: 10px; }
.nav-arrow:hover { background: #fff; color: var(--brand, #6366f1); border-color: var(--brand, #6366f1); }
.nav-arrow.disabled, .nav-arrow.disabled:hover {
  opacity: .32; cursor: not-allowed; color: var(--muted, #9ca3af);
  background: rgba(255,255,255,.6); border-color: var(--line, #e5e9ef);
}
/* 缩略图上下箭头：与左右箭头同样用于切换上一个/下一个商品 */
a.thumb-arrow { text-decoration: none; }
.thumb-arrow.disabled { opacity: .32; cursor: not-allowed; }
.thumb-arrow.disabled:hover { color: var(--muted, #9ca3af); background: var(--surface, #fff); }

/* 商品信息：标签-值 两列卡片排版 */
.info-card .info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 0; }
.info-item { display: flex; flex-direction: row; align-items: flex-start; gap: 10px; min-width: 0; }
.info-item.info-right { align-items: flex-start; text-align: left; }
.info-item.info-full { grid-column: 1 / -1; }
.info-label {
  display: inline-block; font-size: 12px; color: var(--muted, #6b7280);
  background: var(--surface-2, #f1f5f9); padding: 3px 10px; border-radius: 6px;
  flex-shrink: 0; white-space: nowrap; line-height: 1.7;
}
.info-item.info-right .info-label { align-self: flex-start; flex-shrink: 0; }
.info-value { font-size: 14px; color: var(--ink, #1f2937); font-weight: 500; min-width: 0; flex: 1; overflow-wrap: break-word; word-break: break-word; line-height: 1.7; }
.info-name { font-size: 16px; font-weight: 700; }
.info-desc { font-weight: 400; line-height: 1.8; color: var(--ink-2, #374151); white-space: pre-wrap; overflow-wrap: break-word; word-break: break-word; }
@media (max-width: 640px) {
  .info-card .info-grid { grid-template-columns: 1fr; }
  .info-item.info-right { align-items: flex-start; text-align: left; }
  .info-item.info-right .info-label { align-self: flex-start; flex-shrink: 0; }
  .nav-arrow { width: 32px; height: 32px; font-size: 20px; }
  .nav-prev { left: 4px; } .nav-next { right: 4px; }
}

/* detail-stage 需占满主图区剩余宽度，否则左右箭头会贴到主图外侧而不是悬浮其上 */
.detail-stage { flex: 1; min-width: 0; }

/* ==================== 打包下载分页签 ==================== */
/* 全部 / 按分类打包 / 按日期打包：纯链接切换，服务端渲染，不依赖皮肤 JS */
.dl-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.dl-tab {
  display: inline-block; padding: 6px 16px; border-radius: 9999px;
  font-size: 13px; text-decoration: none;
  color: var(--muted, #6b7280); background: var(--surface-2, #f1f5f9);
  border: 1px solid transparent; transition: all .15s;
}
.dl-tab:hover { color: var(--brand, #6366f1); background: var(--brand-light, #eef2ff); }
.dl-tab.active {
  color: #fff; background: var(--brand, #6366f1);
  border-color: var(--brand, #6366f1); font-weight: 600;
}
/* 日期打包的区间副标题 */
.dl-sub { margin-top: 3px; font-size: 11px; color: var(--muted, #9ca3af); font-weight: 400; }

/* ==================== 分类页「下载所有商品图片」按钮 ==================== */
/* 出现位置：达到配置打包层级的分类页 / 该分支最深的末级分类页（层级回退） */
.btn-download {
  display: inline-block; padding: 8px 18px; border-radius: 8px;
  font-size: 13px; font-weight: 600; text-decoration: none;
  color: #fff; background: var(--brand, #6366f1);
  border: 1px solid var(--brand, #6366f1);
  box-shadow: 0 1px 3px rgba(15,23,42,.08); transition: all .18s;
}
.btn-download:hover {
  background: var(--brand-dark, #4f46e5); border-color: var(--brand-dark, #4f46e5);
  transform: translateY(-1px); box-shadow: 0 4px 12px rgba(15,23,42,.14);
}
.btn-download::before { content: "\2B73  "; }

/* ==================== 分类卡片上的「下载」链接 ==================== */
/* 卡片整体包一层，下载链接独立成行，避免 <a> 嵌套 <a> 造成点击冲突 */
.card-wrap {
  position: relative;
  /* 关键：卡片外层必须是块级/弹性盒，否则内层的 <a class="card"> 会保持 inline，
     宽度不再撑满网格单元，图片 width:100% 计算基准错乱 → 卡片变形 */
  display: flex; flex-direction: column; height: 100%;
}
/* <a> 默认 inline，这里显式块级化，让它撑满 wrap 宽度 */
.card-wrap > .card { display: block; }
/* 卡片主体占满剩余高度，下载链接自然落到卡片底部，同排卡片等高 */
.card-wrap > .card { flex: 1 1 auto; min-height: 0; }
/* 纯文字链接，不做按钮样式——跟卡片简洁风格保持一致 */
.card-dl {
  font-size: 12px; font-weight: 500; line-height: 1.4;
  color: var(--brand, #6366f1); text-decoration: none;
  white-space: nowrap;
}
.card-dl:hover { text-decoration: underline; }

/* ==================== 分类卡片：整卡可点 + 下载与商品数同行 ==================== */
/* .card 由 <a> 改成 <div>，用「拉伸链接」实现整卡可点：
   标题链接的 ::after 铺满整张卡片，既保持「点哪都能进」，
   又避免 <a> 嵌套 <a>（下载链接在卡片内）——嵌套会让浏览器自动拆解，布局错乱 */
.card { position: relative; }
.card-link { color: inherit; text-decoration: none; }
.card-link::after {
  content: ''; position: absolute; inset: 0; z-index: 1;
}
/* 商品数与下载同一行：数量靠左，下载靠右 */
.card-meta {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
}
/* 下载链接要盖在拉伸链接之上，否则点击会被整卡链接吃掉 */
.card-dl { position: relative; z-index: 2; flex-shrink: 0; }


/* ============================================================================
 * 扁平 2.0 增强：分层半透明（Layered Translucency）
 * ----------------------------------------------------------------------------
 * 在基础玻璃之上再做「玻璃压玻璃」的分层：
 *   1. 内层薄片：卡片内部再叠一层更淡的玻璃，形成层次而非单纯描边
 *   2. 柔光描边：半透明高光取代厚重实色边框，边缘更柔和
 *   3. 悬浮分层：hover 时外层小幅上浮、内层轻微位移，层次关系更清晰
 *   4. 顶部高光带：卡片顶缘一道淡光，模拟玻璃受光面
 * ========================================================================== */

/* ---- 1. 内层薄片：让卡片内部有「层」而不是一块平板 ---- */
.card .ph, .info-card .ph { position: relative; }
.card .ph::after, .info-card .ph::after {
  content: '';
  position: absolute; inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, var(--glass-hi) 0%, transparent 42%);
  opacity: .30;
}

/* ---- 2. 分层填充：由上至下渐淡，形成玻璃堆叠 ---- */
.card, .info-card, .detail, .hero {
  background-image: linear-gradient(180deg, var(--glass-strong) 0%, var(--glass) 100%);
}

/* ---- 3. 悬浮分层：外层位移小、内层位移大，形成视差 ---- */
.card:hover, .info-card:hover { transform: translateY(-3px); }
.card:hover .card-title { transform: translateY(-1px); }
.card-title { transition: transform .22s cubic-bezier(.22,1,.36,1); }

/* ---- 4. 顶部高光带：玻璃受光面 ---- */
.card > .card-body, .info-card {
  border-top: 1px solid var(--glass-hi);
}

/* ---- 5. 扁平化按钮：半透明填充 + 柔光边，无重投影 ---- */
.pager .page-btn, .pager .page-num, .thumb-arrow {
  background-image: linear-gradient(180deg, var(--glass-strong) 0%, var(--glass) 100%);
  transition: transform .18s ease, box-shadow .18s ease;
}
.pager .page-btn:hover, .pager .page-num:hover, .thumb-arrow:hover {
  transform: translateY(-1px);
}


/* ==================== v4.9 统一布局：Logo 旁通知 / 导航下滚动条 / 页脚最后一排友情链接 ==================== */
.brand-notice {
  display: flex; align-items: center; gap: 8px; flex: 1 1 200px;
  min-width: 0; max-width: 520px; margin-left: 14px;
  font-size: 13px; line-height: 1.5; color: var(--brand-dark, #4f46e5);
  overflow: hidden; white-space: nowrap;
}
.brand-notice .top-notice-item { overflow: hidden; text-overflow: ellipsis; }
.brand-notice .top-notice-item + .top-notice-item::before { content: '·'; margin: 0 10px; opacity: .5; }
@media (max-width: 640px) { .brand-notice { flex-basis: 100%; max-width: 100%; margin-left: 0; } }

.roll-strip { margin-top: 8px; }
.roll-strip + main { padding-top: 12px !important; }
.notice-bar.roll-bar { padding: 7px 14px; overflow: hidden; }
.roll-viewport { width: 100%; overflow: hidden; }
.roll-track { display: inline-flex; align-items: center; white-space: nowrap; animation: smRoll 26s linear infinite; }
.roll-group { display: inline-flex; align-items: center; padding-right: 56px; }
.roll-item { display: inline-block; }
.roll-sep { margin: 0 18px; opacity: .45; font-size: 11px; }
@keyframes smRoll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .roll-track { animation: none; } }

.foot-links {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px;
  margin-top: 18px; padding-top: 12px; border-top: 1px solid rgba(127, 127, 127, .25);
  font-size: 13px; line-height: 1.8;
}
.foot-links-label { opacity: .7; white-space: nowrap; }
.foot-links-list { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.foot-links-list a { opacity: .9; }
.foot-links-list a:hover { opacity: 1; text-decoration: underline; }
/* v4.9 layout end */

/* v5.1 友情链接与分类/商品卡片同宽 + 幻灯片轮播（24 套皮肤统一） */
.foot-links-wrap { margin-top: 0; }
.foot-links-wrap .foot-links { margin-top: 10px; }
.slides .slide-deck { position: relative; width: 100%; aspect-ratio: 1920 / 520; min-height: 190px; max-height: 420px; overflow: hidden; }
.slides .slide-deck > a.slide { position: absolute; inset: 0; display: block; opacity: 0; pointer-events: none; transition: opacity .55s ease; }
.slides .slide-deck > a.slide.active { opacity: 1; pointer-events: auto; }
.slides .slide-deck > a.slide img { width: 100%; height: 100%; max-height: none; object-fit: cover; }
.slides .slide-deck > a.slide span { max-width: 70%; }
.slides .slide-nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; width: 38px; height: 38px; border: 0; border-radius: 999px; background: rgba(0,0,0,.35); color: #fff; font-size: 24px; line-height: 1; cursor: pointer; }
.slides .slide-prev { left: 14px; }
.slides .slide-next { right: 14px; }
.slides .slide-dots { position: absolute; left: 0; right: 0; bottom: 14px; z-index: 3; display: flex; justify-content: center; gap: 8px; }
.slides .slide-dot { width: 9px; height: 9px; padding: 0; border: 0; border-radius: 999px; background: rgba(255,255,255,.55); cursor: pointer; }
.slides .slide-dot.active { background: #fff; width: 22px; }
@media (max-width: 640px) { .slides .slide-deck { min-height: 150px; } .slides .slide-deck > a.slide span { font-size: 11px; left: 10px; bottom: 10px; padding: 4px 10px; } }

/* ===== v5.11 页脚公司名称 / 技术支持（与友情链接、分类卡片同宽） ===== */
.foot-support-wrap { margin-top: 0; }
.foot-support {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 4px 18px; margin-top: 10px; padding-top: 10px;
  border-top: 1px solid rgba(127, 127, 127, .18);
  font-size: 13px; line-height: 1.8; color: var(--muted, #8a8a8a); opacity: .92;
}
.foot-support a { color: inherit; text-decoration: none; }
.foot-support a:hover { color: var(--brand, #4f46e5); text-decoration: underline; }
.foot-support span { white-space: nowrap; }
