/* ==========================================================
   游恺百货商行 · 网站模板样式表（简约版）
   设计语言：深墨底 + 平面卡片 + 大留白，红色只做小面积点缀。
   换配色只改 :root 变量。
   ========================================================== */
:root {
  --bg: #0b0b0e;
  --bg-soft: #0f0f13;
  --card: #121216;           /* 卡片平面底色 */
  --line: rgba(255, 255, 255, .06);
  --line-hi: rgba(255, 255, 255, .12);
  --text: #f4f4f6;
  --muted: #8f8f98;
  --primary: #e34548;
  --primary-deep: #a92e33;
  --price: #ef6a6d;
  --navy: #070709;
  --radius: 16px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --shadow-lift: 0 18px 40px -18px rgba(0, 0, 0, .5);
  /* 展示字：西文用 Georgia 衬线，中文落到现代黑体（YaHei/PingFang）——
     避免 Windows 宋体大号"假粗"毛边；全部系统字体零下载 */
  --font-display: Georgia, "Times New Roman", "PingFang SC", "Microsoft YaHei UI", "Microsoft YaHei", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
/* 注意：不要启用 scroll-behavior:smooth——它会与 JS 惯性滚动引擎叠加成双重缓动，产生明显掉帧感 */
body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI Variable",
    "Segoe UI", "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  background-color: var(--bg); color: var(--text); line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
::selection { background: rgba(227, 69, 72, .35); color: #fff; }
:focus-visible { outline: 2px solid rgba(227, 69, 72, .7); outline-offset: 3px; border-radius: 4px; }
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #26262e; border-radius: 999px; border: 2px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: #34343e; }

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
.container { width: min(1200px, 92%); margin: 0 auto; }

/* ---------- 主导航：置顶透明融入画面，下滑变悬浮胶囊 ---------- */
/* fixed（非 sticky）：不占排版空间，Banner 从屏幕最顶开始绘制，透明时才能真正透出画面 */
.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 80; background: transparent; transition: padding .45s var(--ease); }
.site-header.scrolled { padding-top: 18px; }
.header-inner {
  display: flex; align-items: center; gap: 26px; height: 70px;
  width: auto; margin: 0; padding: 0 4%; border: 1px solid transparent; border-radius: 999px;
  background: transparent;
  transition: width .45s var(--ease), height .45s var(--ease), margin .45s var(--ease), padding .45s var(--ease), background .45s var(--ease), border-color .45s var(--ease), box-shadow .45s var(--ease);
}
.site-header.scrolled .header-inner {
  width: min(1160px, 94%); margin: 0 auto; padding: 0 26px; height: 56px;
  background: rgba(16, 16, 21, .82); border-color: rgba(255, 255, 255, .08);
  backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4);
  box-shadow: 0 14px 36px -12px rgba(0, 0, 0, .55);
}
.brand { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 15px; color: var(--text); flex: none; }
.brand > span:last-child { font-family: var(--font-display); letter-spacing: .14em; }
.brand-mark {
  width: 20px; height: 20px; flex: none;
  /* 导航专用章：红底铺满 + 小字镂空（芯字约占章面 45%，红边宽更饱满），垫白使镂空呈白色 */
  background: url("../assets/brand-mark.png") center / 100% 100% no-repeat, #fff;
  transition: transform .5s var(--ease);
}
.brand:hover .brand-mark { transform: scale(1.08); }
.main-nav { display: flex; gap: 4px; flex: 1; }
.main-nav > a { position: relative; padding: 8px 12px; font-size: 13.5px; color: var(--muted); transition: color .3s var(--ease); }
.main-nav > a::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 1.5px; border-radius: 2px;
  background: var(--primary); transform: scaleX(0); transform-origin: center; transition: transform .4s var(--ease);
}
.main-nav > a:hover { color: #fff; }
.main-nav > a:hover::after { transform: scaleX(1); }
.main-nav > a.active { color: #fff; font-weight: 600; }
.main-nav > a.active::after { transform: scaleX(1); }

/* ---------- 导航下拉菜单 ---------- */
.has-drop { position: relative; display: flex; align-items: center; }
.has-drop > a { position: relative; padding: 8px 12px; font-size: 13.5px; color: var(--muted); transition: color .3s var(--ease); display: inline-flex; align-items: center; }
.has-drop > a::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 1.5px; border-radius: 2px;
  background: var(--primary); transform: scaleX(0); transition: transform .4s var(--ease);
}
.has-drop > a:hover { color: #fff; }
.has-drop > a:hover::after, .has-drop > a.active::after { transform: scaleX(1); }
.has-drop > a.active { color: #fff; font-weight: 600; }
.caret {
  display: inline-block; width: 0; height: 0; margin-left: 8px; vertical-align: middle;
  border-left: 4px solid transparent; border-right: 4px solid transparent; border-top: 5px solid currentColor;
  opacity: .55; transition: transform .35s var(--ease);
}
.has-drop:hover .caret, .has-drop.open .caret { transform: rotate(180deg); }
.dropdown {
  position: absolute; top: calc(100% + 14px); left: 50%; transform: translateX(-50%) translateY(10px);
  min-width: 158px; padding: 9px; display: flex; flex-direction: column; gap: 3px;
  background: rgba(18, 18, 24, .94); backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border: 1px solid var(--line-hi); border-radius: 16px;
  box-shadow: 0 30px 70px -18px rgba(0, 0, 0, .7);
  opacity: 0; visibility: hidden; transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s;
}
.has-drop:hover .dropdown, .has-drop.open .dropdown { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.dropdown a {
  padding: 9px 13px; border-radius: 10px; font-size: 13px; color: var(--muted);
  transition: background .25s, color .25s, padding-left .35s var(--ease);
}
.dropdown a:hover { background: rgba(255, 255, 255, .06); color: #fff; padding-left: 19px; }
.dropdown .drop-all { border-top: 1px solid var(--line); margin-top: 4px; padding-top: 12px; color: var(--price); font-weight: 600; border-radius: 0 0 11px 11px; }
.dropdown .drop-all:hover { background: transparent; color: #fff; }
.section { scroll-margin-top: 90px; }

/* ---------- 极简头部：品牌 + 搜索 + 菜单圆钮（导航收入全屏遮罩） ---------- */
.header-inner { justify-content: space-between; }
.head-search { flex: 0 0 auto; width: 0; overflow: hidden; opacity: 0; transition: width .45s var(--ease), opacity .3s; }
.head-search.open { width: min(260px, 40vw); opacity: 1; }
.head-search input {
  width: 100%; padding: 8px 14px; border: 1px solid var(--line-hi); border-radius: 999px;
  font-size: 13px; outline: none; background: rgba(255, 255, 255, .05); color: #fff;
}
.head-search input:focus { border-color: rgba(227, 69, 72, .5); }
.head-actions { display: flex; align-items: center; gap: 10px; flex: none; }
.icon-btn {
  width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--line-hi);
  background: rgba(255, 255, 255, .04); color: #d6d6db; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: color .3s, border-color .3s, background .3s, transform .35s var(--ease);
}
.icon-btn svg { width: 19px; height: 19px; }
.icon-btn:hover { color: #fff; border-color: rgba(227, 69, 72, .5); background: rgba(227, 69, 72, .08); }
.icon-btn:active { transform: scale(.94); }
.menu-toggle { position: relative; flex-direction: column; gap: 5px; }
.ml { display: block; width: 16px; height: 1.6px; border-radius: 2px; background: currentColor; transition: transform .4s var(--ease), width .4s var(--ease), opacity .3s; }
.menu-toggle .ml2 { width: 11px; }
.menu-toggle:hover .ml2 { width: 16px; }
body.menu-open .menu-toggle .ml1 { transform: translateY(6.6px) rotate(45deg); }
body.menu-open .menu-toggle .ml2 { opacity: 0; transform: scaleX(.2); }
body.menu-open .menu-toggle .ml3 { transform: translateY(-6.6px) rotate(-45deg); }

/* ---------- 全屏编辑式导航遮罩 ---------- */
.menu-overlay {
  position: fixed; inset: 0; z-index: 70; overflow-y: auto; -webkit-overflow-scrolling: touch;
  background: rgba(9, 9, 12, .92); backdrop-filter: blur(20px) saturate(1.3); -webkit-backdrop-filter: blur(20px) saturate(1.3);
  opacity: 0; visibility: hidden; transition: opacity .5s var(--ease), visibility .5s;
}
body.menu-open .menu-overlay { opacity: 1; visibility: visible; }
.menu-inner { display: flex; gap: 70px; padding-top: min(14vh, 130px); min-height: 100%; box-sizing: border-box; }
.menu-list { display: flex; flex-direction: column; flex: 1; }
.menu-row {
  display: flex; align-items: baseline; gap: 20px; padding: 13px 0; border-bottom: 1px solid rgba(255, 255, 255, .05);
  transition: transform .45s var(--ease), border-color .3s;
  opacity: 0; transform: translateY(24px);
}
body.menu-open .menu-row, body.menu-open .menu-group { animation: menu-in .65s var(--ease) both; }
body.menu-open .menu-group:nth-child(2) { animation-delay: .06s; }
body.menu-open .menu-list > :nth-child(1) { animation-delay: 0s; }
body.menu-open .menu-list > :nth-child(3) { animation-delay: .12s; }
body.menu-open .menu-list > :nth-child(5) { animation-delay: .18s; }
body.menu-open .menu-list > :nth-child(6) { animation-delay: .24s; }
body.menu-open .menu-list > :nth-child(7) { animation-delay: .3s; }
body.menu-open .menu-list > :nth-child(4) { animation-delay: .15s; }
@keyframes menu-in { to { opacity: 1; transform: none; } }
.menu-row:hover { transform: translateX(10px); border-bottom-color: rgba(227, 69, 72, .4); }
.menu-no { font-family: var(--font-display); font-style: italic; font-size: 13px; color: var(--primary); width: 26px; flex: none; }
.menu-cn { font-family: var(--font-display); font-size: clamp(24px, 3.4vw, 34px); font-weight: 700; color: #eef0f4; letter-spacing: .06em; line-height: 1.25; }
.menu-en { margin-left: auto; font-family: var(--font-display); font-style: italic; font-size: 14px; letter-spacing: .18em; color: #55555e; text-transform: uppercase; }
.menu-row.cur .menu-cn, .menu-group.cur .menu-cn { color: var(--price); }
.menu-row.cur .menu-en, .menu-group.cur .menu-en { color: #8a5052; }
.menu-sub { display: flex; flex-wrap: wrap; gap: 6px 22px; padding: 4px 0 14px 46px; }
.menu-sub a { font-size: 13.5px; color: #8f8f98; transition: color .25s; }
.menu-sub a:hover { color: #fff; }
.menu-sub a.sub-cur { color: var(--price); }
.menu-aside { width: 300px; flex: none; padding-top: 30px; border-left: 1px solid rgba(255, 255, 255, .07); padding-left: 40px; }
.menu-aside h4 { font-family: var(--font-display); font-size: 17px; color: #fff; letter-spacing: .12em; margin-bottom: 16px; }
.menu-aside p { font-size: 13.5px; color: var(--muted); line-height: 2; margin-bottom: 14px; }
.menu-cta { margin-top: 10px; }
body.menu-open { overflow: hidden; }
/* 桌面端横向导航常驻，汉堡钮只在 ≤980 出现 */
@media (min-width: 981px) { .menu-toggle { display: none; } }
@media (max-width: 980px) {
  /* 手机端流畅度：sticky 元素上的 backdrop-filter 每帧都要重绘背景，悬浮胶囊改不透底实色 */
  .site-header.scrolled .header-inner { background: rgba(16, 16, 21, .97); backdrop-filter: none; -webkit-backdrop-filter: none; }
  .menu-overlay { background: rgba(9, 9, 12, .98); backdrop-filter: none; -webkit-backdrop-filter: none; }
  .to-top { backdrop-filter: none; background: rgba(20, 20, 26, .95); }
  /* 去掉安卓/ iOS 点按灰色高亮块，触感更干净 */
  * { -webkit-tap-highlight-color: transparent; }
  .menu-row:active, .chip:active, .btn:active { opacity: .75; }
}
@media (max-width: 880px) {
  .menu-inner { flex-direction: column; gap: 30px; padding-top: 110px; }
  .menu-aside { width: auto; border-left: none; padding-left: 0; border-top: 1px solid rgba(255,255,255,.07); padding-top: 22px; }
}

/* ---------- 轮播 Banner ---------- */
.carousel { position: relative; height: min(92vh, 860px); overflow: hidden; background: var(--bg); }
.slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1s ease; display: flex; align-items: center; pointer-events: none; }
.slide.active { opacity: 1; pointer-events: auto; z-index: 1; }
.banner-bg {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .5;
  transform: scale(1.001);
}
/* Ken Burns：当前页缓慢推近 */
.slide.active .banner-bg { animation: kenburns 9s var(--ease) forwards; }
@keyframes kenburns { from { transform: scale(1.001); } to { transform: scale(1.07); } }
.slide::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(90deg, rgba(11, 11, 14, .94) 0%, rgba(11, 11, 14, .55) 52%, rgba(11, 11, 14, .12) 100%),
    linear-gradient(to top, rgba(11, 11, 14, .9), transparent 40%);
}
.slide-content {
  position: relative; z-index: 2; color: #fff; padding-left: 7%; max-width: 680px;
  display: flex; flex-direction: column; gap: 18px;
  /* 滚动消散（变量由 JS 写入） */
  opacity: calc(1 - var(--fade, 0));
}
/* 内容分层入场 */
.slide.active .slide-content > * { animation: rise .9s var(--ease) both; }
.slide.active .slide-content > :nth-child(1) { animation-delay: .05s; }
.slide.active .slide-content > :nth-child(2) { animation-delay: .15s; }
.slide.active .slide-content > :nth-child(3) { animation-delay: .25s; }
.slide.active .slide-content > :nth-child(4) { animation-delay: .35s; }
@keyframes rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
.hero-eyebrow { font-size: 12px; letter-spacing: .22em; color: #a3a4ad; font-weight: 500; white-space: nowrap; }
.slide-content .hero-eyebrow { font-size: 12px; letter-spacing: .22em; color: #a3a4ad; font-weight: 500; white-space: nowrap; }
.slide-content h2 { font-family: var(--font-display); font-size: clamp(40px, 5.2vw, 60px); line-height: 1.24; font-weight: 700; letter-spacing: .06em; color: #fff; }
.slide-content p { font-size: 15.5px; color: #c2c3cb; max-width: 30em; line-height: 1.95; }
.hero-actions { display: flex; gap: 14px; margin-top: 16px; flex-wrap: wrap; }

.carousel-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .22);
  background: transparent; color: rgba(255, 255, 255, .6); font-size: 20px; cursor: pointer;
  transition: .35s var(--ease);
}
.carousel-arrow:hover { color: #fff; border-color: rgba(255, 255, 255, .55); background: rgba(255, 255, 255, .06); }
.carousel-prev { left: 22px; }
.carousel-next { right: 22px; }
/* 方向性入场 */
.slide.enter-next { animation: slide-enter-n 1s ease; }
.slide.enter-prev { animation: slide-enter-p 1s ease; }
@keyframes slide-enter-n { from { opacity: 0; transform: translateX(6%); } to { opacity: 1; transform: none; } }
@keyframes slide-enter-p { from { opacity: 0; transform: translateX(-6%); } to { opacity: 1; transform: none; } }

.carousel-dots { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); z-index: 3; display: flex; gap: 10px; }
.dot { position: relative; overflow: hidden; width: 26px; height: 3px; border-radius: 999px; border: none; background: rgba(255, 255, 255, .25); cursor: pointer; padding: 0; transition: .45s var(--ease); }
.dot:hover { background: rgba(255, 255, 255, .5); }
.dot.active { background: rgba(255, 255, 255, .3); }
/* 圆点内的倒计时填充，与 6s 自动切换同步 */
.dot.active::after {
  content: ""; position: absolute; inset: 0; background: var(--primary);
  transform-origin: left; animation: dotfill 6s linear forwards;
}
@keyframes dotfill { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* ---------- 按钮（哑光克制款） ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 26px; border-radius: 12px; min-height: 46px;
  font-size: 14.5px; font-weight: 600; letter-spacing: .03em; cursor: pointer; border: none;
  transition: transform .4s var(--ease), background .3s, border-color .3s, color .3s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.985); }
.btn-light { background: #c23a3f; color: #fff; }
.btn-light:hover { background: #d0474c; }
.btn-light::after {
  content: "\2192"; font-weight: 400; display: inline-block;
  transform: translateX(-4px); opacity: 0; transition: transform .4s var(--ease), opacity .4s var(--ease);
}
.btn-light:hover::after { transform: none; opacity: .9; }
.btn-ghost { border: 1px solid rgba(255, 255, 255, .3); color: #fff; background: transparent; }
.btn-ghost:hover { background: rgba(255, 255, 255, .07); border-color: rgba(255, 255, 255, .55); }
.btn-ghost.dark { border-color: rgba(255, 255, 255, .22); color: var(--text); }
.btn-outline { border: 1px solid var(--line-hi); color: #fff; background: transparent; }
.btn-outline:hover { border-color: var(--primary); color: var(--price); }

/* ---------- 通用区块 ---------- */
.section { padding: 34px 0; position: relative; }
/* 交替区块用一层上下渐隐的薄雾，与主画布无缝衔接 */
.section.alt {
  background: linear-gradient(180deg, transparent 0%, rgba(255, 255, 255, .022) 16%, rgba(255, 255, 255, .022) 84%, transparent 100%);
}
/* 板块标题：左对齐一行式（英文小标+中文标题在左，说明文字在右），纵向最省 */
.section-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; margin-bottom: 18px; }
.section-head h2 {
  font-family: var(--font-display);
  font-size: 22px; letter-spacing: .01em; font-weight: 700; color: var(--text); margin: 0;
}
.section-head .en-kicker { margin: 0; font-size: 10.5px; letter-spacing: .3em; }
.section-head .en-kicker::before, .section-head .en-kicker::after { display: none; }
/* 红色小横线占一行高度，为省空间撤除 */
.section-head .rule { display: none; }
.section-head p { color: var(--muted); font-size: 12.5px; margin: 0 0 0 auto; }

/* ---------- 滚动渐显（纯淡入位移，轻量干净） ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .4s var(--ease), transform .4s var(--ease); }
.reveal.visible { opacity: 1; transform: none; }

/* ---------- 英文小标（衬线斜体 + 发丝 dashes，文具牌质感） ---------- */
.en-kicker {
  font-family: var(--font-display); font-style: italic;
  font-size: 11px; letter-spacing: .4em; text-transform: uppercase;
  color: #77777f; margin-bottom: 4px; text-align: center;
}
.en-kicker::before, .en-kicker::after {
  content: ""; display: inline-block; width: 26px; height: 1px; vertical-align: middle; margin: 0 16px;
}
.en-kicker::before { background: linear-gradient(90deg, transparent, rgba(227, 69, 72, .55)); }
.en-kicker::after { background: linear-gradient(90deg, rgba(227, 69, 72, .55), transparent); }
.page-hero .en-kicker { margin-bottom: 10px; }

/* ---------- 全局动效配件：进度条 / 幕布 ---------- */
.scroll-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 60; pointer-events: none;
  background: var(--primary);
  transform-origin: left; transform: scaleX(0);
}

/* ---------- 分类磁贴 ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.cat-tile {
  background: var(--card);
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 36px 20px; text-align: center; display: block;
  transition: transform .5s var(--ease), border-color .4s, box-shadow .5s var(--ease);
}
.cat-tile:hover { transform: translateY(-6px); border-color: rgba(227, 69, 72, .32); box-shadow: var(--shadow-lift); }
.cat-tile .icon {
  width: 58px; height: 58px; margin: 0 auto 14px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(227, 69, 72, .07); border: 1px solid rgba(227, 69, 72, .2);
  transition: .45s var(--ease);
}
.cat-tile:hover .icon { background: rgba(227, 69, 72, .14); transform: scale(1.08); }
.cat-tile .icon svg { width: 26px; height: 26px; color: #e8888a; }
.cat-tile h3 { font-size: 16.5px; color: var(--text); font-weight: 600; }
.cat-tile p { font-size: 13px; color: var(--muted); margin-top: 5px; }

/* ---------- 精选好物 Tab 展示区 ---------- */
.showcase {
  display: grid; grid-template-columns: 1fr 1.15fr; overflow: hidden;
  background: var(--card);
  border: 1px solid var(--line); border-radius: var(--radius);
}
.showcase-text { padding: 52px 46px; display: flex; flex-direction: column; justify-content: center; gap: 15px; }
.showcase-text h3 { font-family: var(--font-display); font-size: 28px; font-weight: 700; color: var(--text); letter-spacing: .01em; }
.showcase-text p { color: var(--muted); font-size: 15px; max-width: 30em; }
.showcase-img { position: relative; min-height: 360px; overflow: hidden; }
/* 视差余量（top:-6% / height:112%）仅桌面生效；手机端图片贴盒显示，防止溢出压文字 */
.showcase-img img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .5s ease; }
@media (hover: hover) { .showcase-img img { top: calc(-6% + var(--pt, 0px)); height: 112%; } }
.showcase-img img.fading { opacity: 0; }

/* ---------- 筛选 chips / Tab ---------- */
.cat-row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-bottom: 42px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 24px; border-radius: 999px; background: transparent; border: 1px solid var(--line-hi);
  font-size: 14.5px; color: var(--muted); cursor: pointer;
  transition: color .35s var(--ease), border-color .35s var(--ease), background .35s var(--ease), transform .35s var(--ease);
}
.chip svg { width: 16px; height: 16px; flex: none; color: #d98d8f; transition: color .35s; }
.chip:hover { border-color: rgba(255, 255, 255, .32); color: #fff; transform: translateY(-1px); }
.chip.active { background: #fff; border-color: #fff; color: #101014; font-weight: 600; }
.chip.active svg { color: var(--primary); }

/* ---------- 品类专区 2×2 大图卡 ---------- */
.tile-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.big-card {
  position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line);
  aspect-ratio: 16 / 9; display: block;
  transition: transform .55s var(--ease), box-shadow .55s var(--ease), border-color .4s;
}
.big-card img { position: relative; width: 100%; height: 116%; max-width: none; object-fit: cover; top: calc(-8% + var(--pt, 0px)); opacity: .78; transition: transform 1.1s var(--ease), opacity .5s; }
.big-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lift); border-color: rgba(227, 69, 72, .28); }
.big-card:hover img { transform: scale(1.07); opacity: .92; }
.big-card::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(7, 7, 9, .9) 6%, rgba(7, 7, 9, .32) 46%, transparent 78%);
}
.big-card-body { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: 28px 32px; }
.big-card-body h3 { font-size: 22px; color: #fff; font-weight: 700; letter-spacing: -.01em; }
.big-card-body p { font-size: 14px; color: #c5c5cc; margin-top: 4px; }
.big-card-link { display: inline-block; margin-top: 12px; font-size: 14px; color: var(--price); font-weight: 600; transition: transform .45s var(--ease); }
.big-card:hover .big-card-link { transform: translateX(6px); }

/* ---------- 主题特写（左右交替） ---------- */
.feature-row { position: relative; display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; padding: 48px 0; }
/* 分隔线两端渐隐，不再是一条通栏硬线 */
.feature-row + .feature-row { border-top: none; }
.feature-row + .feature-row::before {
  content: ""; position: absolute; left: 4%; right: 4%; margin-top: -1px; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .1) 25%, rgba(255, 255, 255, .1) 75%, transparent);
}
.feature-row.reverse .feature-img { order: 2; }
.feature-row.reverse .feature-text { order: 1; }
.feature-img { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 16 / 10; }
.feature-img::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(120% 90% at 80% 10%, transparent 50%, rgba(7, 7, 9, .35));
}
.feature-img img { position: relative; width: 100%; height: 116%; max-width: none; object-fit: cover; top: calc(-8% + var(--pt, 0px)); transition: transform 1.1s var(--ease); }
.feature-row:hover .feature-img img { transform: scale(1.05); }
.feature-text h3 { font-family: var(--font-display); font-size: 34px; font-weight: 700; color: var(--text); letter-spacing: .01em; margin: 10px 0 16px; line-height: 1.32; }
.feature-text p { color: var(--muted); font-size: 15.5px; max-width: 30em; }

/* ---------- 产品卡 ---------- */
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.p-card {
  background: var(--card);
  border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .5s var(--ease), border-color .4s, box-shadow .5s var(--ease);
}
.p-card:hover { transform: translateY(-7px); border-color: rgba(227, 69, 72, .28); box-shadow: var(--shadow-lift); }
.p-img { aspect-ratio: 4 / 3; background: #17171d; overflow: hidden; position: relative; }
.p-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.p-card:hover .p-img img { transform: scale(1.05); }
.p-body { padding: 16px 17px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.tag { align-self: flex-start; font-size: 12px; color: #d98d8f; background: rgba(227, 69, 72, .08); border: 1px solid rgba(227, 69, 72, .15); padding: 2px 10px; border-radius: 999px; }
.p-name { font-size: 15px; line-height: 1.5; color: var(--text); font-weight: 500; }
.price { margin-top: auto; color: var(--price); font-weight: 700; font-size: 18px; font-variant-numeric: tabular-nums; }
.price small { font-size: 12px; color: var(--muted); font-weight: 400; margin-left: 5px; }
.btn-buy {
  align-self: stretch; text-align: center; padding: 9px 0; border-radius: 999px;
  background: transparent; border: 1px solid var(--line-hi); color: var(--muted);
  font-size: 14px; margin-top: 4px;
  transition: color .35s, border-color .35s, background .35s, box-shadow .45s var(--ease);
}
.btn-buy:hover { background: #c23a3f; border-color: #c23a3f; color: #fff; }

/* ---------- 资讯 ---------- */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.news-card {
  background: var(--card);
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px; display: flex; flex-direction: column; gap: 12px;
  transition: transform .5s var(--ease), border-color .4s, box-shadow .5s var(--ease);
}
.news-card:hover { transform: translateY(-5px); border-color: rgba(227, 69, 72, .26); box-shadow: var(--shadow-lift); }
.news-date { align-self: flex-start; font-size: 12.5px; letter-spacing: .14em; color: var(--muted); border: 1px solid var(--line-hi); border-radius: 999px; padding: 3px 12px; }
.news-card h3 { font-size: 16.5px; color: var(--text); line-height: 1.5; font-weight: 600; }
.news-card p { font-size: 14px; color: var(--muted); }

/* ---------- 服务承诺横条 ---------- */
.promise-strip {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
  background: var(--card);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 32px;
}
.promise { text-align: center; padding: 10px 12px; border-radius: 16px; transition: background .4s; }
.promise:hover { background: rgba(255, 255, 255, .03); }
.promise h4 { font-size: 16.5px; color: var(--text); font-weight: 700; letter-spacing: .05em; }
.promise h4::after { content: ""; display: block; width: 18px; height: 2px; background: var(--primary); border-radius: 2px; margin: 9px auto 11px; }
.promise p { font-size: 13.5px; color: var(--muted); }

/* ---------- 面板 / 公示块 ---------- */
.panel {
  background: var(--card);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 32px;
}
.panel h3 { font-size: 18px; margin-bottom: 16px; color: var(--text); font-weight: 600; }
.panel h3::after { content: ""; display: block; width: 26px; height: 2px; background: var(--primary); border-radius: 2px; margin-top: 10px; }
.panel p { font-size: 15px; color: var(--muted); }
.list-check { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.list-check li { padding-left: 26px; position: relative; font-size: 14.5px; color: #ccccd3; }
.list-check li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--primary); font-weight: 700; }

/* ---------- 横幅（首页简介） ---------- */
.banner {
  background: var(--card);
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 48px; display: flex; gap: 28px; align-items: center; justify-content: space-between;
}
.banner h3 { font-size: 24px; margin-bottom: 10px; color: var(--text); font-weight: 700; letter-spacing: -.01em; }
.banner p { color: var(--muted); font-size: 15px; max-width: 46em; }

/* ---------- 内页头图 ---------- */
.page-hero {
  position: relative; overflow: hidden;
  background: var(--bg-soft);
  color: #fff; padding: 110px 0 100px; text-align: center;
}
/* 底部渐隐入主画布，去掉硬分界 */
.page-hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 90px;
  background: linear-gradient(to bottom, transparent, var(--bg));
}
.page-hero h1 { font-family: var(--font-display); font-size: 44px; letter-spacing: .04em; font-weight: 700; color: #fff; animation: rise .9s var(--ease) both; }
.page-hero p { margin-top: 14px; color: var(--muted); font-size: 15px; letter-spacing: .14em; animation: rise .9s .12s var(--ease) both; }

/* ---------- 关于页 / 联系页 ---------- */
.about-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 22px; align-items: start; }
.contact-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 26px; }
.info-card {
  background: var(--card);
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 34px 26px; text-align: center;
  transition: transform .5s var(--ease), border-color .4s, box-shadow .5s var(--ease);
}
.info-card:hover { transform: translateY(-5px); border-color: rgba(227, 69, 72, .28); box-shadow: var(--shadow-lift); }
.info-card .icon {
  width: 52px; height: 52px; margin: 0 auto 14px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(227, 69, 72, .07); border: 1px solid rgba(227, 69, 72, .2);
}
.info-card .icon svg { width: 24px; height: 24px; color: #e8888a; }
.info-card h3 { font-size: 16.5px; margin-bottom: 8px; color: var(--text); font-weight: 600; }
.info-card p { color: var(--muted); font-size: 14px; }

/* 咨询流程步骤 */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 4px; }
.step { padding: 24px; border: 1px solid var(--line); border-radius: 18px; background: rgba(255, 255, 255, .02); transition: border-color .4s, transform .45s var(--ease); }
.step:hover { border-color: rgba(227, 69, 72, .25); transform: translateY(-3px); }
.step-no { display: block; font-size: 13px; font-weight: 700; letter-spacing: .2em; color: var(--primary); margin-bottom: 10px; }
.step h4 { font-size: 15.5px; color: var(--text); margin-bottom: 6px; }
.step p { font-size: 13.5px; color: var(--muted); line-height: 1.65; }

/* ---------- 合规提示 ---------- */
.notice { text-align: center; color: var(--muted); font-size: 13.5px; margin-top: 32px; }

/* ---------- 参考价格表 ---------- */
.price-table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.price-table th {
  text-align: left; padding: 13px 16px; color: var(--muted); font-weight: 600;
  letter-spacing: .08em; border-bottom: 1px solid var(--line-hi); white-space: nowrap;
}
.price-table td { padding: 12px 16px; border-bottom: 1px solid var(--line); color: #ccccd3; }
.price-table tbody tr { transition: background .3s; }
.price-table tbody tr:hover { background: rgba(255, 255, 255, .028); }
.price-table tbody tr:last-child td { border-bottom: none; }
.pt-red { color: var(--price); font-weight: 700; font-family: var(--font-display); }

/* ---------- 资讯缩略图 ---------- */
.news-thumb { border-radius: 12px; overflow: hidden; aspect-ratio: 16 / 9; }
.news-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.news-card:hover .news-thumb img { transform: scale(1.06); }

/* ---------- 回到顶部 ---------- */
.to-top {
  position: fixed; right: 26px; bottom: 30px; z-index: 60;
  width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line-hi);
  background: rgba(20, 20, 26, .8); backdrop-filter: blur(10px);
  color: var(--muted); font-size: 18px; cursor: pointer;
  opacity: 0; transform: translateY(14px); pointer-events: none;
  transition: opacity .45s var(--ease), transform .45s var(--ease), color .3s, border-color .3s;
}
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { color: #fff; border-color: rgba(227, 69, 72, .5); }

/* ---------- 页脚 ---------- */
.site-footer { position: relative; background: var(--navy); color: #8b8b93; }
/* 页脚上方的渐变"下沉"过渡：从画布平滑融入深黑，再叠一条两端渐隐的红丝线 */
.site-footer::before {
  content: ""; position: absolute; top: -70px; left: 0; right: 0; height: 70px; pointer-events: none;
  background: linear-gradient(to bottom, transparent, var(--navy));
}
.site-footer::after {
  content: ""; position: absolute; top: -1px; left: 8%; right: 8%; height: 1px; pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(227, 69, 72, .5) 30%, rgba(227, 69, 72, .5) 70%, transparent);
}
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: 30px; padding: 60px 0 44px; }
.site-footer h4 { color: #fff; font-size: 15px; margin-bottom: 18px; font-weight: 600; letter-spacing: .05em; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 11px; font-size: 14px; }
.footer-links a { transition: color .3s, padding-left .35s var(--ease); }
.footer-links a:hover { color: #fff; padding-left: 4px; }
.site-footer a:hover { color: #fff; }
.filing-bar {
  border-top: 1px solid rgba(255, 255, 255, .05); padding: 20px 0;
  display: flex; flex-wrap: wrap; gap: 6px 18px; justify-content: center;
  font-size: 13px; color: #6c6c74; text-align: center;
}
.filing-bar a { color: #9a9aa4; }
/* 公安联网备案：徽标 + 编号同行展示 */
.ps-beian { display: inline-flex; align-items: center; gap: 6px; }
.ps-beian img { width: 20px; height: 20px; }

/* ---------- 规格胶囊（showcase） ---------- */
.spec-pills { display: flex; flex-wrap: wrap; gap: 10px; }
.spec-pills span {
  font-size: 12.5px; letter-spacing: .05em; color: #dcdce2;
  background: rgba(227, 69, 72, .07); border: 1px solid rgba(227, 69, 72, .22);
  padding: 5px 14px; border-radius: 999px;
  transition: opacity .5s var(--ease), transform .5s var(--ease);
}

/* ---------- 数据带 ---------- */
.stats-band {
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: var(--card);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 40px 24px;
}
.stat { text-align: center; position: relative; }
.stat + .stat::before {
  content: ""; position: absolute; left: 0; top: 15%; bottom: 15%; width: 1px;
  background: linear-gradient(180deg, transparent, rgba(255,255,255,.12), transparent);
}
.stat-num { font-family: var(--font-display); font-size: 48px; font-weight: 700; color: #fff; letter-spacing: 0; font-variant-numeric: lining-nums; line-height: 1.1; }
.stat-unit { font-size: 16px; color: var(--price); font-weight: 600; margin-left: 4px; }
.stat p { font-size: 13.5px; color: var(--muted); margin-top: 8px; letter-spacing: .08em; }

/* ---------- 商品卡角标 & 悬停信息层 ---------- */
.p-card { position: relative; }
.p-flag {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  font-size: 11.5px; font-weight: 700; letter-spacing: .12em; color: #fff;
  background: #b23a3e;
  padding: 4px 12px; border-radius: 999px;
}
.p-flag.flag-new { background: #33333c; }
.p-flag.flag-rec { background: #4f74ff; }
.p-hover {
  position: absolute; inset: auto 10px 10px 10px; z-index: 2;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 0; border-radius: 14px; font-size: 13px; letter-spacing: .06em; color: #eee;
  background: rgba(14, 14, 18, .72); border: 1px solid rgba(255, 255, 255, .14);
  backdrop-filter: blur(8px);
  opacity: 0; transform: translateY(8px); transition: opacity .4s var(--ease), transform .4s var(--ease);
  pointer-events: none;
}
.p-card:hover .p-hover { opacity: 1; transform: none; }
/* 触摸设备没有 hover，悬停层直接不占合成层 */
@media (hover: none) { .p-hover { display: none; } }

/* ---------- FAQ 手风琴 ---------- */
.faq-wrap { max-width: 880px; }
.faq-grid { display: flex; flex-direction: column; gap: 14px; }
.faq-item {
  background: var(--card);
  border: 1px solid var(--line); border-radius: 18px; overflow: hidden;
  transition: border-color .35s;
}
.faq-item:hover { border-color: rgba(255, 255, 255, .14); }
.faq-item[open] { border-color: rgba(227, 69, 72, .3); }
.faq-item summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 20px 26px; font-size: 15.5px; font-weight: 600; color: var(--text);
  user-select: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-mark { position: relative; flex: none; width: 22px; height: 22px; }
.faq-mark::before, .faq-mark::after {
  content: ""; position: absolute; left: 50%; top: 50%; background: var(--muted);
  transform: translate(-50%, -50%); transition: transform .35s var(--ease), background .35s;
}
.faq-mark::before { width: 12px; height: 1.5px; }
.faq-mark::after { width: 1.5px; height: 12px; }
.faq-item[open] .faq-mark::after { transform: translate(-50%, -50%) rotate(90deg); background: var(--primary); }
.faq-item[open] .faq-mark::before { background: var(--primary); }
.faq-item p { padding: 0 26px 22px; font-size: 14px; color: var(--muted); line-height: 1.8; animation: faq-open .45s var(--ease); }
@keyframes faq-open { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }


/* ---------- 图片入场统一由 .reveal 淡入处理 ---------- */

/* ---------- 响应式 ---------- */
@media (max-width: 980px) {
  .section { padding: 28px 0; }
  .grid, .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .news-grid { grid-template-columns: 1fr; }
  .about-grid, .contact-grid, .steps { grid-template-columns: 1fr; }
  .showcase { grid-template-columns: 1fr; }
  .showcase-text { padding: 36px 30px; }
  .showcase-img { min-height: 260px; }
  .tile-grid { grid-template-columns: 1fr; }
  .feature-row { grid-template-columns: 1fr; gap: 26px; padding: 36px 0; }
  .feature-row.reverse .feature-img { order: 0; }
  .feature-row.reverse .feature-text { order: 1; }
  .promise-strip { grid-template-columns: repeat(2, 1fr); }
  .stats-band { grid-template-columns: repeat(2, 1fr); gap: 26px 0; }
  .stat:nth-child(3)::before { display: none; }
  /* ≤980 导航收纳进全屏遮罩菜单，横向导航隐藏 */
  .main-nav {
    position: absolute; top: 100%; left: 0; right: 0; background: rgba(11, 11, 14, .97);
    flex-direction: column; padding: 12px 16px; border-bottom: 1px solid var(--line);
    display: none; max-height: calc(100vh - 70px); overflow-y: auto;
  }
  .main-nav.open { display: flex; }
  .has-drop { flex-direction: column; align-items: flex-start; }
  .dropdown {
    position: static; transform: none !important; opacity: 1; visibility: visible;
    width: 100%; box-shadow: none; border: none; background: rgba(255, 255, 255, .03);
    backdrop-filter: none; -webkit-backdrop-filter: none;
    border-radius: 12px; padding: 0 10px; max-height: 0; overflow: hidden; gap: 0;
    transition: max-height .4s var(--ease), padding .4s var(--ease);
  }
  .has-drop.open .dropdown { max-height: 360px; padding: 8px 10px; }
  .has-drop.open .caret { transform: rotate(180deg); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 26px; padding-top: 44px; }
  .banner { flex-direction: column; text-align: center; padding: 36px; }
  .carousel { height: 560px; }
}
@media (max-width: 640px) {
  /* 商品卡双列（电商习惯，单列太占屏） */
  .grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .p-body { padding: 11px 11px 13px; gap: 5px; }
  .p-name { font-size: 12.8px; }
  .price { font-size: 15.5px; }
  .price small { margin-left: 3px; }
  .tag { font-size: 10.5px; padding: 1px 8px; }
  .btn-buy { font-size: 12px; padding: 7px 0; }
  .p-flag { font-size: 10px; padding: 3px 9px; top: 8px; left: 8px; }
  .cat-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  /* 首屏：压缩字距与字号，避免换行堆叠 */
  .carousel { height: 520px; }
  .slide-content { padding-left: 5%; padding-right: 5%; gap: 12px; }
  .slide-content h2 { font-size: 32px; }
  .slide-content p { font-size: 14.5px; }
  .hero-eyebrow { font-size: 9.5px; letter-spacing: .06em; }
  .hero-actions { gap: 10px; margin-top: 4px; }
  .btn { padding: 11px 22px; min-height: 44px; font-size: 14px; }
  .header-inner { gap: 12px; }
  /* 搜索框展开改为悬浮整行，避免挤爆头部 */
  .head-search { position: absolute; top: 100%; left: 4%; right: 4%; width: auto; opacity: 0; visibility: hidden; transition: opacity .35s var(--ease), visibility .35s; }
  .head-search.open { width: auto; opacity: 1; visibility: visible; }
  .page-hero { padding: 86px 0 64px; }
  .page-hero h1 { font-size: 28px; }
  .en-kicker { font-size: 10.5px; letter-spacing: .26em; }
  .en-kicker::before, .en-kicker::after { width: 16px; margin: 0 8px; }
  .section { padding: 24px 0; }
  .section-head { margin-bottom: 16px; }
  .section-head h2 { font-size: 20px; }
  .section-head p { margin-left: 0; }
  .feature-text h3 { font-size: 24px; }
  .showcase-text { padding: 28px 22px; }
  .showcase-text h3 { font-size: 22px; }
  .showcase-img { min-height: 220px; }
  .big-card-body { padding: 18px 20px; }
  .big-card-body h3 { font-size: 19px; }
  .to-top { right: 16px; bottom: 20px; }
  /* 手机端轮播箭头：透明缩小减淡，不遮画面 */
  .carousel-arrow { width: 32px; height: 32px; font-size: 15px; border-color: rgba(255, 255, 255, .16); color: rgba(255, 255, 255, .45); }
  .carousel-prev { left: 8px; }
  .carousel-next { right: 8px; }
  .stats-band { grid-template-columns: 1fr 1fr; padding: 24px 12px; gap: 20px 0; }
  .stat-num { font-size: 32px; }
  .stat p { font-size: 12px; }
  .promise-strip { padding: 22px 14px; gap: 10px; }
  .panel { padding: 22px 18px; }
  .banner { padding: 28px 20px; }
  .faq-item summary { padding: 15px 16px; font-size: 14px; }
  .faq-item p { padding: 0 16px 16px; }
  /* 价格表：窄屏隐藏分类列 */
  .price-table { font-size: 12.8px; }
  .price-table th, .price-table td { padding: 9px 7px; }
  .price-table th:nth-child(2), .price-table td:nth-child(2) { display: none; }
  /* 全屏菜单：收紧排版 */
  .menu-inner { padding-top: 88px; padding-bottom: 48px; }
  .menu-cn { font-size: 22px; }
  .menu-row { padding: 10px 0; gap: 14px; }
  .menu-en { font-size: 11px; letter-spacing: .12em; }
  .menu-sub { padding-left: 28px; gap: 4px 16px; }
}

/* 注：应站长要求，本站保持动效常开，不随系统"减少动画"设置关闭 */
