/* ============================================================
   姚购网 YOOGOW · 响应式购物网站样式
   ============================================================ */
:root {
  --red: #e4630c;        /* 主色：深橙（配色方案 C） */
  --red-dark: #bd5109;
  --accent: #ffdf00;     /* 强调色：亮黄 */
  --dark: #1c0e00;
  --gray: #666;
  --gray-light: #999;
  --line: #e8e8e8;
  --bg: #f5f5f5;
  --green: #2aae67;
  --blue: #1678ff;
  --violet: #7a3ff2;
  --radius: 6px;
  --shadow: 0 4px 16px rgba(0, 0, 0, .08);
  --container: 1200px;
  --font: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", Arial, sans-serif;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; }
body { font-family: var(--font); color: #333; background: var(--bg); font-size: 14px; line-height: 1.7; overflow-x: clip; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--red); }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; }
input, textarea, select { font-family: inherit; font-size: 14px; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
.container { max-width: var(--container); margin: 0 auto; padding: 0 16px; }
.muted { color: var(--gray-light); }
.small { font-size: 12px; }
.price { color: var(--red); font-weight: 700; }
.price.big { font-size: 24px; }
.link-danger { background: none; border: 0; color: var(--red); font-size: 13px; }

/* ---------- 头部通用件：LOGO / 胶囊搜索 / 胶囊购物车（2026-11-19 小Y：搜索购物车改胶囊样式） ---------- */
.logo { display: flex; align-items: baseline; gap: 8px; flex-shrink: 0; }
.logo b { font-size: 30px; color: var(--red); letter-spacing: 1px; font-family: Georgia, "Arial Black", serif; }
.logo span { font-size: 16px; color: var(--dark); letter-spacing: 4px; font-weight: 600; }
/* 搜索框：胶囊样式——半透明白底白描边、白字，内嵌白色胶囊"搜索"按钮 */
.search { flex: 1; display: flex; align-items: center; max-width: 440px; background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.55); border-radius: 999px; overflow: hidden; }
.search input { flex: 1; min-width: 0; background: transparent; border: 0; padding: 5px 16px; color: #fff; outline: none; font-size: 13.5px; }
.search input::placeholder { color: rgba(255,255,255,.75); }
.search button { flex-shrink: 0; border: 0; background: rgba(255,255,255,.92); color: #b81f92; font-weight: 700; padding: 4px 13px; border-radius: 999px; margin: 3px; font-size: 13px; cursor: pointer; }
/* 购物车：胶囊样式 */
.cart-btn { position: relative; display: flex; align-items: center; gap: 6px; border: 1px solid rgba(255,255,255,.55); color: #fff; background: rgba(255,255,255,.12); border-radius: 999px; padding: 4px 14px; font-size: 13.5px; flex-shrink: 0; }
.cart-btn:hover { background: rgba(255,255,255,.24); color: #fff; }
.cart-badge { position: absolute; top: -8px; right: -8px; background: #fff; color: var(--red); border-radius: 10px; min-width: 18px; height: 18px; font-size: 11px; display: inline-flex; align-items: center; justify-content: center; padding: 0 4px; }
/* 登录/注册：胶囊样式 */
.user-entry { display: flex; gap: 10px; margin-left: auto; flex-shrink: 0; align-items: center; }
/* 2026-11-20 09:03 小Y：桌面端搜索/购物车/登录注册抱团靠右（间距统一 14px），不再两端甩开 */
.site-head .user-entry, .home-hero .user-entry { margin-left: 0; }
.user-entry a { color: #fff; font-size: 13.5px; border: 1px solid rgba(255,255,255,.6); border-radius: 999px; padding: 4px 13px; }
/* 2026-11-20 小Y：注册钮后加 EN 语言切换（中英版互跳） */
.lang-btn { flex-shrink: 0; display: inline-flex; align-items: center; margin-left: 4px; border: 0; background: none; padding: 4px 2px; color: #fff; font-size: 13px; font-weight: 700; letter-spacing: .04em; cursor: pointer; }
.lang-btn:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.user-entry a:hover { background: rgba(255,255,255,.16); }

/* ---------- 导航 ---------- */
.main-nav > ul { display: flex; }
.main-nav a { display: block; color: #fff; padding: 13px 30px; font-size: 16px; letter-spacing: 1px; white-space: nowrap; }
.nav-toggle { display: none; background: transparent; border: 1px solid rgba(255,255,255,.6); border-radius: 4px; width: 42px; height: 36px; position: relative; margin: 6px auto; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 11px; width: 18px; height: 2px; background: #fff; border-radius: 2px; transition: .25s; }
.nav-toggle span { top: 17px; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
/* 展开态：三横杠变 X，给个明确的开合反馈（2026-11-20） */
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { top: 0; transform: rotate(-45deg); }

/* ---------- 内页眉头：色块底纹横带 + 一行式头部（2026-11-19 二次定稿：胶囊按钮降为小标签高度，白细线取消） ---------- */
.site-head { position: sticky; top: 0; z-index: 90; overflow: hidden; color: #fff;
  background: linear-gradient(94deg, #8c16c2 0%, #c02a6a 40%, #e5372c 100%); } /* SVG 底纹未加载兜底 */
.site-head .blobs { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.site-head .blobs.m { display: none; }
.site-head .head-row { position: relative; z-index: 1; display: flex; align-items: center; flex-wrap: wrap; gap: 10px 14px; padding: 16px 16px 10px; max-width: 1360px; }
.site-head .logo { margin-right: 6px; }
.site-head .logo b { color: #fff; font-size: 26px; }
.site-head .logo span { color: rgba(255,255,255,.85); }
.site-head .main-nav a { color: rgba(255,255,255,.92); padding: 9px 13px; border-radius: 18px; font-size: 15.5px; margin: 0 2px; }
.site-head .main-nav a:hover, .site-head .main-nav a[aria-current="page"] { background: rgba(255,255,255,.18); color: #fff; }
.site-head .search { flex: 1 1 220px; max-width: 300px; margin-left: auto; }
.site-head .nav-toggle { margin: 0; }

/* ---------- 频道页顶部大块（2026-11-19 小Y：上部分直接截首页位置，大小一样；色块铺到横幅底边不留白） ---------- */
/* 一个整段容器装下 眉头+面包屑+频道横幅，背后铺整幅色块画顶部截段（与首页同位置同比例，YMin 顶部对齐） */
.page-top { position: relative; overflow: hidden; color: #fff;
  background: linear-gradient(94deg, #8c16c2 0%, #c02a6a 40%, #e5372c 100%); } /* SVG 未加载兜底 */
.page-top > .blobs { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.page-top > .blobs.m { display: none; }
.page-top .site-head { position: static; overflow: visible; background: transparent; }
.page-top .site-head .blobs { display: none; }
.page-top-main { position: relative; z-index: 1; padding-bottom: 0; }
.page-top .crumb { color: rgba(255,255,255,.85); }
.page-top .crumb a { color: #fff; }
/* 横幅不再是独立卡片：透明坐在色块上，底边即色块底边 */
.page-top .cat-banner { position: relative; z-index: 1; background: transparent; border-radius: 0; margin-bottom: 0; padding: 16px 30px 30px; }
.page-top .cat-banner::after { display: none; }
.page-top .cat-banner .blobs { display: none; }
.page-top .cat-banner img { border: 2px solid rgba(255,255,255,.45); }

/* ---------- 首页 Hero（整版深橙 + 亮黄半调网点，方案 C） ---------- */
/* ---------- 首屏：两层结构还原参考稿 2.jpg —— 底层整版渐变 + 上层 SVG 矢量流动色块（边界清晰、透明度分层） ---------- */
/* CSS 渐变仅作 SVG 未加载时的兜底底色，实际背景由内联 SVG 绘制（含底渐变与 8 个色块路径） */
.hero { position: relative; overflow: hidden; margin-top: -1px; color: #fff;
  background: linear-gradient(94deg, #c4426a 0%, #d8384a 40%, #ee3a1c 76%, #f45714 100%); }
.hero .blobs { position: absolute; inset: 0; width: 100%; height: 100%; display: block; pointer-events: none; }
.hero .blobs.m { display: none; }
@media (max-width: 768px) {
  .hero .blobs.d, .site-footer .blobs.d, .page-top > .blobs.d, .site-head .blobs.d { display: none; }
  .hero .blobs.m, .site-footer .blobs.m, .page-top > .blobs.m, .site-head .blobs.m { display: block; }
}
.hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.2fr 1fr; gap: 24px; align-items: center; padding: 58px 16px 64px; }
.hero h1 { color: #fff; font-weight: 800; font-size: 42px; line-height: 1.4; letter-spacing: 1px; text-shadow: 0 2px 14px rgba(80,10,90,.25); }
.hero h1 em { font-style: normal; color: rgba(255,255,255,.94); }
.hero p { margin-top: 14px; color: rgba(255,255,255,.92); font-size: 16px; max-width: 34em; }
.hero-cta { margin-top: 22px; display: flex; gap: 12px; flex-wrap: wrap; }
/* 首屏主按钮：青绿色（参考稿同款），hover 加亮 */
.hero .btn.primary { background: #14b8a0; border-color: #14b8a0; color: #fff; font-weight: 700; padding: 11px 34px; }
.hero .btn.primary:hover { background: #17d0b4; border-color: #17d0b4; transform: translateY(-1px); }
.hero .btn.ghost { border-color: rgba(255,255,255,.75); color: #fff; background: transparent; padding: 11px 26px; }
.hero .btn.ghost:hover { border-color: #fff; color: #fff; background: rgba(255,255,255,.12); }
.hero-tags { margin-top: 20px; display: flex; gap: 10px; flex-wrap: wrap; }
.hero-tags span { border: 1px solid rgba(255,255,255,.6); border-radius: 20px; padding: 4px 14px; font-size: 13px; color: rgba(255,255,255,.95); background: rgba(255,255,255,.08); }
.hero-art { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; position: relative; z-index: 1; }
.hero-art img { border-radius: var(--radius); box-shadow: 0 16px 34px rgba(70,5,80,.35); border: 2px solid rgba(255,255,255,.4); aspect-ratio: 1; object-fit: cover; width: 100%; }

/* ---------- 首页一体化首屏：slogan 顶条 + 全屏渐变（头部导航融入渐变，参考桌面稿 1.jpg） ---------- */
/* slogan-bar 已按小Y要求移除（2026-11-19）；首屏高度恢复满屏 */
.home-hero { display: flex; flex-direction: column; min-height: 100dvh; margin-top: 0; }
/* 头部一行式版式（小Y版面稿 2026-11-19）：LOGO + 导航 + 搜索胶囊 + 购物车胶囊 + 登录注册，下接白色细线 */
/* 2026-11-20 对齐修正：①width:100% 抵消 flex 容器下 .container margin:auto 禁用拉伸的
   规范行为（原头部缩成 fit-content 1221px，与内页 1360px 错位 69px）；②padding/导航/搜索
   参数已全站统一为之前首页的版式（padding 16/10、导航 9px13px/15.5px/margin2px、搜索 max400），
   内页 .site-head 同步对齐，点击跳转后 LOGO 与导航项零位移。 */
.home-hero .hero-head { position: relative; z-index: 2; width: 100%; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 16px 16px 10px; max-width: 1360px; }
.home-hero .logo { margin-right: 6px; }
.home-hero .logo b { font-size: 26px; }
.home-hero .search { flex: 1 1 220px; max-width: 300px; margin-left: auto; }
.home-hero .logo b { color: #fff; }
.home-hero .logo span { color: rgba(255,255,255,.85); }
.home-hero .main-nav a { background: transparent; color: rgba(255,255,255,.92); border-radius: 18px; margin: 0 2px; padding: 9px 13px; font-size: 15.5px; }
.home-hero .main-nav a:hover, .home-hero .main-nav a[aria-current="page"] { background: rgba(255,255,255,.18); color: #fff; }
.home-hero .nav-toggle { margin: 0; }

/* ---------- 眉头一行式防折行（2026-11-20）：桌面端永不折行，靠压缩搜索/导航/登录态消化宽度；窄屏(≤768)仍允许折行 ---------- */
@media (min-width: 769px) {
  .site-head .head-row, .home-hero .hero-head { flex-wrap: nowrap; }
  .site-head .search, .home-hero .search { min-width: 90px; }
  .site-head .search input, .home-hero .search input { min-width: 0; width: auto; flex: 1; }
  .main-nav { flex-shrink: 0; }
  .main-nav > ul { flex-wrap: nowrap; }
  .main-nav a { flex-shrink: 0; }
  .user-entry { min-width: 0; }
  #user-area { min-width: 0; font-size: 13px; white-space: nowrap; }
  #user-area .uname { display: inline-block; max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: bottom; }
  #user-area a { padding: 3px 10px; font-size: 12.5px; }
}
/* 中窄屏（≤1199px）再压缩：积分说明与购物车文字退场，保一行式眉头 */
@media (max-width: 1199px) and (min-width: 769px) {
  #user-area .upoints { display: none; }
  .cart-label { display: none; }
  .site-head .head-row, .home-hero .hero-head { gap: 8px 10px; }
  .site-head .main-nav a, .home-hero .main-nav a { padding: 9px 8px; font-size: 15px; }
}
@media (max-width: 1099px) and (min-width: 769px) {
  #user-area .ucenter { display: none; }
}
/* 桌面导航间距微收（2026-11-20）：给 EN 切换钮与登录态让宽度，首页/内页同步改保持站头零位移 */
.site-head .main-nav a, .home-hero .main-nav a { padding: 9px 10px; margin: 0 1px; }
/* 白细线已按小Y要求取消（2026-11-19）：hero-head-line 仅保留定位层不再画线 */
.hero-head-line { position: relative; z-index: 2; }
.home-hero .hero-inner { flex: 1; padding-top: 20px; padding-bottom: 52px; }
@media (max-width: 768px) {
  .home-hero { min-height: auto; }
  .home-hero .hero-head { gap: 10px; padding: 10px 16px; }
  .home-hero .search { order: 4; flex-basis: 100%; max-width: none; }
  .user-entry a { padding: 5px 13px; font-size: 13.5px; }
}

/* ---------- 分类入口 ---------- */
.cat-entry { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: -34px; position: relative; z-index: 2; }
.cat-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px; display: flex; gap: 16px; align-items: center; transition: .2s; border-top: 3px solid transparent; }
.cat-card:hover { transform: translateY(-4px); border-top-color: var(--red); }
.cat-card img { width: 74px; height: 74px; object-fit: cover; border-radius: 6px; }
.cat-card h3 { font-size: 18px; color: var(--dark); }
.cat-card p { font-size: 13px; color: var(--gray); }

/* ---------- 区块 ---------- */
.section { padding: 44px 0; }
.sec-head { text-align: center; margin-bottom: 26px; }
.sec-head h2 { font-size: 26px; color: var(--dark); }
.sec-head h2::after { content: ""; display: block; width: 40px; height: 3px; background: var(--red); margin: 10px auto 0; }
.sec-head p { color: #fff; margin-top: 8px; font-size: 14px; } /* 2026-11-20 小Y：与面包屑统一白字 */

/* ---------- 商品卡 ---------- */
.prod-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.prod-card { background: #fff; border-radius: var(--radius); overflow: hidden; transition: .2s; border: 1px solid transparent; display: flex; flex-direction: column; }
.prod-card:hover { box-shadow: var(--shadow); border-color: var(--line); transform: translateY(-3px); }
.prod-card .thumb { position: relative; aspect-ratio: 1; overflow: hidden; background: #fafafa; }
.prod-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: .4s; }
.prod-card:hover .thumb img { transform: scale(1.05); }
.prod-card .badge { position: absolute; top: 10px; left: 10px; background: var(--red); color: #fff; font-size: 11px; padding: 2px 8px; border-radius: 3px; }
.prod-card .badge.demo { background: var(--gray-light); }
.prod-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.prod-body h3 { font-size: 14px; color: var(--dark); line-height: 1.5; height: 42px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.prod-body .sub { font-size: 12px; color: var(--gray-light); }
.prod-price-row { display: flex; align-items: baseline; gap: 8px; margin-top: auto; }
.prod-price-row .price { font-size: 19px; }
.prod-price-row del { color: var(--gray-light); font-size: 12px; }
.prod-acts { display: flex; gap: 8px; margin-top: 4px; }
.prod-acts .btn { flex: 1; justify-content: center; }
.sales { font-size: 12px; color: var(--gray-light); }

/* ---------- 按钮 ---------- */
.btn { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--red); color: var(--red); background: #fff; border-radius: var(--radius); padding: 8px 18px; font-size: 14px; transition: .15s; }
.btn:hover { background: var(--red); color: #fff; }
.btn.primary { background: var(--red); color: #fff; }
.btn.primary:hover { background: var(--red-dark); border-color: var(--red-dark); }
/* 加入购物车按钮统一蓝绿色（v20261121m 小Y指定，与首页「开始选购」同色）；data-add 精准命中，不误伤登录/结算等橙色主按钮 */
.btn.primary[data-add] { background: #14b8a0; border-color: #14b8a0; }
.btn.primary[data-add]:hover { background: #17d0b4; border-color: #17d0b4; }
/* 售罄按钮（v20261121n：0 库存不接单状态） */
.btn.soldout, button:disabled { background: #9aa0a6 !important; border-color: #9aa0a6 !important; color: #fff !important; opacity: .85; cursor: not-allowed; }
/* 京东甄选（v20261121o：CPS 导购商品，京东红 #e1251b 与本站主色区分） */
.btn.jd { background: #e1251b; border-color: #e1251b; color: #fff; }
.btn.jd:hover { background: #c81623; border-color: #c81623; color: #fff; }
.prod-card .badge.jd { background: #e1251b; }
.prod-price-row .jd-ref { font-size: 11px; color: #e1251b; border: 1px solid #e1251b; border-radius: 3px; padding: 0 5px; white-space: nowrap; }
.btn.soldout ~ .btn.jd, a.btn.jd { cursor: pointer; }
.btn.soldout:hover, button:disabled:hover { transform: none; }
.btn.ghost { border-color: #ccc; color: var(--gray); }
.btn.ghost:hover { border-color: var(--red); color: var(--red); background: #fff; }
.btn.lg { padding: 11px 30px; font-size: 16px; }
.btn.sm { padding: 5px 12px; font-size: 12.5px; }

/* ---------- 面包屑/频道页 ---------- */
/* 2026-11-20 小Y：全站面包屑统一白字（与频道页一致），压在流动色块上清晰可读 */
.crumb { padding: 14px 0; font-size: 13px; color: rgba(255,255,255,.85); }
.crumb a { color: #fff; }
.cat-banner { position: relative; overflow: hidden; border-radius: var(--radius); padding: 28px 30px; margin-bottom: 18px; display: flex; justify-content: space-between; align-items: center; gap: 18px;
  background: linear-gradient(94deg, #a01db4 0%, #d8384a 60%, #ee3a1c 100%); color: #fff; } /* 色块底纹分段横带 + 兜底渐变 */
.cat-banner .blobs { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.cat-banner .blobs.m { display: none; }
.cat-banner::after { content: ""; position: absolute; inset: 0; background: rgba(52, 0, 62, .26); }
.cat-banner > div, .cat-banner img { position: relative; z-index: 2; }
.cat-banner h1 { font-size: 26px; color: #fff; }
.cat-banner h1::before { content: ""; display: inline-block; width: 5px; height: 22px; background: var(--red); margin-right: 12px; vertical-align: -2px; }
.cat-banner p { color: rgba(255,255,255,.88); margin-top: 6px; }
.cat-banner .count { font-size: 13px; color: var(--gray-light); white-space: nowrap; }

/* ---------- 商品详情 ---------- */
.detail-wrap { background: #fff; border-radius: var(--radius); padding: 28px; display: grid; grid-template-columns: 420px 1fr; gap: 36px; }
.detail-img img { border: 1px solid var(--line); border-radius: var(--radius); }
.detail-info h1 { font-size: 20px; color: var(--dark); line-height: 1.6; }
.detail-info .sub { color: var(--gray-light); margin-top: 6px; font-size: 13px; }
.detail-price { background: #fff3e6; border-radius: var(--radius); padding: 16px 18px; margin: 16px 0; display: flex; align-items: baseline; gap: 12px; }
.detail-price .price { font-size: 30px; }
.detail-price del { color: var(--gray-light); }
.detail-meta { font-size: 13px; color: var(--gray); margin-bottom: 16px; }
.detail-meta b { color: var(--dark); }
.qty-row { display: flex; align-items: center; gap: 12px; margin: 14px 0 20px; }
.qty-ctl { display: inline-flex; border: 1px solid #ccc; border-radius: var(--radius); overflow: hidden; }
.qty-ctl input { width: 52px; border: 0; text-align: center; font-size: 15px; }
.qty-btn { width: 34px; border: 0; background: #f5f5f5; font-size: 16px; }
.detail-acts { display: flex; gap: 12px; flex-wrap: wrap; }
.detail-svc { margin-top: 18px; padding-top: 14px; border-top: 1px dashed var(--line); font-size: 12.5px; color: var(--gray); display: flex; gap: 18px; flex-wrap: wrap; }
.demo-note { background: #fff8e6; border: 1px solid #f2dcab; color: #8a6d3b; border-radius: var(--radius); padding: 8px 12px; font-size: 12.5px; margin-top: 14px; }
/* 2026-11-20 小Y：横幅内提示条不再被白字规则覆盖，灰字清晰可读 */
.cat-banner .demo-note { color: #777; }
.detail-bottom { display: grid; grid-template-columns: 1fr 340px; gap: 16px; margin-top: 16px; }
.panel { background: #fff; border-radius: var(--radius); padding: 20px 22px; margin-bottom: 16px; }
.panel h2 { font-size: 17px; color: var(--dark); margin-bottom: 12px; }
.panel h2::before { content: ""; display: inline-block; width: 4px; height: 15px; background: var(--red); margin-right: 9px; vertical-align: -1px; }
.review-item { border-bottom: 1px dashed var(--line); padding: 10px 0; }
.review-item:last-child { border-bottom: 0; }
.review-head { display: flex; gap: 10px; align-items: baseline; font-size: 13px; }
.stars { color: #f5a623; }
.review-head time { color: var(--gray-light); margin-left: auto; font-size: 12px; }

/* ---------- 购物车/结算/订单 ---------- */
.page-panel { background: #fff; border-radius: var(--radius); padding: 22px 24px; margin-bottom: 16px; }
.page-panel > h1 { font-size: 20px; color: var(--dark); margin-bottom: 16px; }
.cart-row { display: grid; grid-template-columns: 84px 1fr 130px 100px 60px; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.cart-img img { width: 84px; height: 84px; object-fit: cover; border-radius: 6px; border: 1px solid var(--line); }
.cart-info a { display: block; color: var(--dark); margin-bottom: 4px; }
.cart-sub { color: var(--dark); font-weight: 700; }
.cart-footer { display: flex; justify-content: space-between; align-items: center; padding: 18px 0 4px; font-size: 15px; }
.empty-state { text-align: center; padding: 60px 0; font-size: 16px; color: var(--gray); }
.empty-state p { margin-bottom: 16px; }
.ck-item { display: grid; grid-template-columns: 56px 1fr 40px 90px; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.ck-item img { width: 56px; height: 56px; object-fit: cover; border-radius: 6px; }
.ck-name { color: var(--dark); font-size: 13.5px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
label { display: block; font-size: 13px; color: var(--gray); }
label input, label select { display: block; width: 100%; margin-top: 5px; border: 1px solid #ccc; border-radius: var(--radius); padding: 9px 12px; }
label.block { margin-top: 12px; }
label input:focus { border-color: var(--red); outline: none; }
.pay-methods { display: flex; gap: 14px; flex-wrap: wrap; }
.pay-opt { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 16px; cursor: pointer; font-size: 14.5px; color: var(--dark); }
.pay-opt:has(input:checked) { border-color: var(--red); background: #fff3e6; }
.pay-opt input { margin: 0; }
.pm { width: 22px; height: 22px; border-radius: 50%; display: inline-block; flex-shrink: 0; }
.pm.wx { background: var(--green); }
.pm.ali { background: var(--blue); }
.pm.agg { background: var(--violet); }
.pm span { color: #fff; }
.points-line { margin-top: 14px; font-size: 13.5px; }
.points-line input { width: auto; margin-right: 6px; }
.ck-bar { background: #fff; border-radius: var(--radius); padding: 18px 22px; display: flex; justify-content: space-between; align-items: center; position: sticky; bottom: 0; box-shadow: 0 -4px 14px rgba(0,0,0,.06); }

/* ---------- 收银台 ---------- */
.pay-panel { background: #fff; border-radius: var(--radius); padding: 34px; max-width: 480px; margin: 0 auto; text-align: center; }
.pay-head { display: flex; align-items: center; gap: 10px; justify-content: center; font-size: 17px; }
.pay-amount { margin: 16px 0; font-size: 15px; color: var(--gray); }
.qr-box { width: 220px; margin: 0 auto 14px; }
.qr-fake { width: 200px; height: 200px; margin: 0 auto; border: 8px solid var(--qrc, #333); border-radius: 10px; position: relative; background:
  repeating-linear-gradient(0deg, var(--qrc, #333) 0 10px, transparent 10px 20px),
  repeating-linear-gradient(90deg, var(--qrc, #333) 0 10px, #fff 10px 20px); opacity: .85; }
.qr-box p { font-size: 13px; color: var(--gray); margin-top: 10px; }
.pay-actions { margin-top: 18px; display: flex; gap: 12px; justify-content: center; }

/* ---------- 订单卡 ---------- */
.tab-row { display: flex; gap: 4px; background: #fff; border-radius: var(--radius); padding: 6px; margin-bottom: 14px; overflow-x: auto; }
.tab { padding: 8px 18px; border-radius: var(--radius); font-size: 14.5px; color: var(--gray); white-space: nowrap; }
.tab.on { background: var(--red); color: #fff; }
.order-card { background: #fff; border-radius: var(--radius); margin-bottom: 14px; overflow: hidden; }
.order-head { display: flex; gap: 16px; align-items: center; padding: 12px 18px; background: #fafafa; border-bottom: 1px solid var(--line); font-size: 13px; flex-wrap: wrap; }
.order-status { margin-left: auto; font-weight: 700; }
.st-unpaid { color: #e67e22; } .st-paid { color: var(--blue); } .st-shipped { color: var(--violet); } .st-done { color: var(--green); } .st-closed { color: var(--gray-light); }
.order-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 18px; border-top: 1px dashed var(--line); font-size: 13.5px; flex-wrap: wrap; }
.order-acts { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

/* ---------- 会员中心 ---------- */
.member-head { background: #fff; border-radius: var(--radius); padding: 22px 26px; display: flex; align-items: center; gap: 16px; margin-bottom: 14px; }
.avatar { width: 58px; height: 58px; border-radius: 50%; background: var(--red); color: #fff; font-size: 24px; display: flex; align-items: center; justify-content: center; font-weight: 700; }
.member-head h2 { font-size: 19px; }
.member-head .link-danger { margin-left: auto; }
.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 14px; }
.stat { background: #fff; border-radius: var(--radius); text-align: center; padding: 18px 0 14px; }
.stat b { display: block; font-size: 24px; color: var(--red); }
.stat span { font-size: 13px; color: var(--gray); }
.member-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.amount-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 14px; }
.amount-opt { border: 1px solid var(--line); background: #fff; border-radius: var(--radius); padding: 10px 0; font-size: 15px; }
.amount-opt.on { border-color: var(--red); color: var(--red); background: #fff3e6; }
.auth-panel { background: #fff; border-radius: var(--radius); padding: 34px; max-width: 400px; margin: 30px auto; }
.auth-panel h2 { text-align: center; margin-bottom: 18px; font-size: 20px; }
.auth-panel label { margin-bottom: 14px; }
.auth-panel .btn { width: 100%; justify-content: center; }
.auth-panel p { text-align: center; margin-top: 14px; font-size: 13px; }
.tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.tbl th, .tbl td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line); }
.tbl th { background: #fafafa; color: var(--gray); }

/* ---------- 管理后台 ---------- */
.admin-gate { background: #fff; border-radius: var(--radius); max-width: 380px; margin: 60px auto; padding: 34px; text-align: center; }
.admin-gate input { width: 100%; margin: 14px 0; border: 1px solid #ccc; border-radius: var(--radius); padding: 10px 12px; }
#admin-main .toolbar { display: flex; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
#admin-main .toolbar input { flex: 1; min-width: 200px; border: 1px solid #ccc; border-radius: var(--radius); padding: 9px 12px; }
#admin-main .toolbar select { border: 1px solid #ccc; border-radius: var(--radius); padding: 9px 12px; }

/* ---------- 帮助中心 ---------- */
.help-layout { display: grid; grid-template-columns: 230px 1fr; gap: 16px; align-items: start; }
.help-side { background: #fff; border-radius: var(--radius); padding: 14px 0; position: sticky; top: 64px; }
.help-side h3 { font-size: 15px; padding: 10px 18px 4px; color: var(--dark); }
.help-side a { display: block; padding: 8px 18px; font-size: 13.5px; color: var(--gray); border-left: 3px solid transparent; }
.help-side a:hover, .help-side a.on { color: var(--red); border-left-color: var(--red); background: #fff8f2; }
.help-main article { background: #fff; border-radius: var(--radius); padding: 24px 28px; margin-bottom: 16px; scroll-margin-top: 80px; }
.help-main h2 { font-size: 19px; color: var(--dark); margin-bottom: 14px; }
.help-main h3 { font-size: 15px; color: var(--red); margin: 16px 0 8px; }
.help-main p, .help-main li { color: #444; font-size: 14px; }
.help-main ol, .help-main ul { padding-left: 0; }
.help-main li { margin: 6px 0 6px 20px; list-style: decimal; }
.help-main ul li { list-style: disc; }
.help-flow { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin: 14px 0; }
.help-flow div { background: #fff3e6; border-radius: var(--radius); text-align: center; padding: 12px 4px; font-size: 13px; color: var(--dark); }
.help-flow b { display: block; font-size: 20px; color: var(--red); }

/* ---------- 保障条 ---------- */
.svc-bar { background: #fff; border-radius: var(--radius); display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; padding: 20px 26px; margin: 26px 0; }
.svc-bar div { text-align: center; font-size: 14px; color: var(--dark); }
.svc-bar b { display: block; font-size: 15px; }
.svc-bar span { color: var(--gray-light); font-size: 12px; }

/* ---------- 页脚 ---------- */
.site-footer { position: relative; overflow: hidden; margin-top: 40px; font-size: 13px; color: rgba(255,255,255,.82);
  background: linear-gradient(94deg, #8c16c2 0%, #c02a6a 40%, #e5372c 100%); } /* 渐变为 SVG 底纹未加载时的兜底 */
.site-footer .blobs { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.site-footer .blobs.m { display: none; }
.site-footer::after { content: ""; position: absolute; inset: 0; background: rgba(40, 0, 52, .30); } /* 压暗提高可读性 */
.site-footer .container { position: relative; z-index: 2; }
.footer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding: 36px 0 26px; }
.footer-grid h4 { color: #fff; font-size: 15px; margin-bottom: 12px; }
.footer-grid a { display: block; padding: 3px 0; color: rgba(255,255,255,.82); }
.footer-grid a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.22); padding: 16px 0; text-align: center; color: rgba(255,255,255,.72); }
.footer-contact { color: #ddd; font-size: 15px; }

/* ---------- Toast ---------- */
.toast { position: fixed; left: 50%; top: 18%; transform: translateX(-50%) translateY(-8px); background: rgba(0,0,0,.78); color: #fff; padding: 10px 24px; border-radius: 8px; font-size: 14px; opacity: 0; pointer-events: none; transition: .25s; z-index: 999; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.err { background: rgba(178,30,35,.92); }

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
  .prod-grid { grid-template-columns: repeat(3, 1fr); }
  .hero-inner { grid-template-columns: 1fr; padding: 40px 16px; }
  .hero-art { max-width: 480px; }
  .detail-wrap { grid-template-columns: 340px 1fr; gap: 24px; }
  .detail-bottom { grid-template-columns: 1fr; }
  .help-layout { grid-template-columns: 200px 1fr; }
}
@media (max-width: 768px) {
  /* 内页眉头窄屏：取消 sticky（防折叠菜单展开把整屏占满），但不能用 static（绝对定位底纹会失去定位基准铺满全屏） */
  .site-head { position: relative; }
  .site-head .logo b, .home-hero .logo b { font-size: 20px; }
  .site-head .logo span, .home-hero .logo span { font-size: 12px; letter-spacing: 1px; }
  .cart-label { display: none; }
  .site-head .cart-btn, .home-hero .cart-btn { padding: 3px 10px; font-size: 12.5px; }
  .user-entry { gap: 7px; margin-left: auto; }
  .user-entry a { padding: 4px 8px; font-size: 13px; }
  .site-head .head-row, .home-hero .hero-head { gap: 10px; padding: 12px 16px 8px; }
  .site-head .nav-toggle, .home-hero .nav-toggle { width: 38px; height: 34px; }
  .site-head .nav-toggle span { left: 10px; }
  .site-head .search { order: 3; max-width: none; flex-basis: 100%; }
  /* 折叠菜单（2026-11-20 小Y反馈「点三横杠把眉头拉开」）：
     原来 .main-nav 是眉头 flex 行的子项，点开后与 LOGO/按钮挤同一排，把整条眉头撑高拉歪。
     改为：收起时整块 display:none 不占位；展开时脱离那一排、独占一整行（flex-basis:100%），
     落在按钮行下方、搜索框上方，视觉上是一条整齐下拉条。 */
  .main-nav { display: none; order: 2; flex-basis: 100%; width: 100%; }
  .main-nav.open { display: block; }
  .main-nav > ul { display: flex; flex-direction: column; padding: 4px 0 2px; }
  .site-head .main-nav.open, .home-hero .main-nav.open { border-top: 1px solid rgba(255,255,255,.3); background: rgba(40,4,32,.16); border-radius: 12px; }
  .nav-toggle { display: block; }
  .site-head .main-nav a, .home-hero .main-nav a { padding: 11px 14px; font-size: 15px; border-radius: 10px; margin: 1px 2px; }
  .cat-entry { grid-template-columns: 1fr; margin-top: -20px; }
  .hero h1 { font-size: 24px; }
  .prod-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .detail-wrap { grid-template-columns: 1fr; padding: 18px; }
  .svc-bar { grid-template-columns: repeat(2, 1fr); padding: 16px; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .member-grid { grid-template-columns: 1fr; }
  .help-layout { grid-template-columns: 1fr; }
  .help-side { position: static; display: flex; overflow-x: auto; padding: 6px; gap: 2px; }
  .help-side h3 { display: none; }
  .help-side a { white-space: nowrap; border-left: 0; border-bottom: 3px solid transparent; }
  .help-side a.on { border-bottom-color: var(--red); }
  .help-flow { grid-template-columns: repeat(2, 1fr); }
  .cart-row { grid-template-columns: 70px 1fr; grid-template-rows: auto auto; }
  .cart-img img { width: 70px; height: 70px; }
  .qty-ctl { grid-column: 1; }
  .cart-sub, .cart-row .link-danger { grid-column: 2; justify-self: end; }
  .ck-bar { flex-direction: column; gap: 10px; text-align: center; }
  .form-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  /* 极窄屏：眉头一行放下——副标收起、购物车只留图标、间距最小档 */
  .site-head .logo span, .home-hero .logo span { display: none; }
  .site-head .head-row, .home-hero .hero-head { gap: 6px; }
  .site-head .logo b, .home-hero .logo b { font-size: 22px; }
  .user-entry a { padding: 4px 7px; }
  .site-head .nav-toggle, .home-hero .nav-toggle { width: 36px; height: 32px; }
  .site-head .nav-toggle span { left: 9px; }
  .prod-grid { grid-template-columns: repeat(2, 1fr); }
  .cat-banner { flex-direction: column; align-items: flex-start; }
  .pay-panel { padding: 22px 14px; }
  .page-panel { padding: 16px; }
  .order-head { padding: 10px 12px; }
  .order-foot, .ck-item { padding-left: 12px; padding-right: 12px; }
  .hero h1 { font-size: 30px; }
}

/* ---------- 隐藏说明栏（默认隐藏，右下角按钮或 H 键开合） ---------- */
.notes-toggle { position: fixed; right: 14px; bottom: 14px; z-index: 120; border: 1px solid var(--red); color: var(--red); background: #fff; border-radius: 18px; padding: 6px 12px; font-size: 12.5px; box-shadow: var(--shadow); opacity: .55; transition: .2s; }
.notes-toggle:hover { opacity: 1; background: var(--red); color: #fff; }
/* 回到顶部（2026-11-20 小Y指定：紫色 #971ab0 与 YG favicon 同色；与巧匠官网同款交互；置于「ℹ 说明」正上方） */
.back-top {
  position: fixed; right: 18px; bottom: 62px; width: 44px; height: 44px; border-radius: 50%;
  background: #971ab0; color: #fff; border: none; cursor: pointer; font-size: 19px; line-height: 1;
  opacity: 0; visibility: hidden; transition: .3s; z-index: 110;
  box-shadow: 0 4px 16px rgba(151, 26, 176, .35);
}
.back-top:hover { background: #7c138f; transform: translateY(-3px); }
.back-top.show { opacity: 1; visibility: visible; }
@media print { .back-top { display: none !important; } }
.site-notes { position: fixed; right: 14px; bottom: 52px; z-index: 119; width: min(380px, calc(100vw - 28px)); max-height: 72vh; overflow: auto; background: #1c0e00; color: #e9e2d8; border: 1px solid rgba(255,223,0,.45); border-radius: 10px; box-shadow: 0 12px 30px rgba(0,0,0,.4); font-size: 13px; }
.site-notes-inner { padding: 16px 18px; }
.site-notes h3 { color: var(--accent); font-size: 14.5px; margin-bottom: 8px; }
.site-notes ul { padding-left: 18px; }
.site-notes li { margin: 5px 0; }
.site-notes b { color: var(--accent); }
.site-notes .note-block { border-top: 1px dashed rgba(255,255,255,.28); margin-top: 10px; padding-top: 10px; }
.site-notes .note-block h4 { color: #fff; font-size: 13.5px; margin-bottom: 5px; }
.site-notes .small { opacity: .65; margin-top: 8px; }
@media print { .notes-toggle, .site-notes { display: none !important; } }

/* ---------- 第三方快捷登录（QQ / 微信，演示版） ---------- */
.oauth-divider { display: flex; align-items: center; margin: 18px 0 12px; color: #999; font-size: 12.5px; }
.oauth-divider::before, .oauth-divider::after { content: ''; flex: 1; height: 1px; background: #e5e0d8; }
.oauth-divider span { padding: 0 12px; white-space: nowrap; }
.oauth-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.oauth-btn { display: flex; align-items: center; justify-content: center; gap: 7px; height: 44px; border: 0; border-radius: var(--radius); font-size: 14.5px; font-weight: 600; color: #fff; cursor: pointer; transition: .15s; }
.oauth-btn::before { content: ''; width: 20px; height: 20px; border-radius: 50%; background: #fff; }
.oauth-btn.qq { background: #12b7f5; }
.oauth-btn.qq::before { -webkit-mask: none; background: #fff url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%2312b7f5"><path d="M12 2C6.9 2 3 5.7 3 10.2c0 2.6 1.3 4.9 3.4 6.4L6 20.4c-.1.4.3.8.7.6l3.3-1.7c.7.1 1.3.2 2 .2 5.1 0 9-3.7 9-8.3S17.1 2 12 2z"/></svg>') center/contain no-repeat; }
.oauth-btn.wx { background: #09bb07; }
.oauth-btn.wx::before { background: #fff url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%2309bb07"><path d="M9.5 4C5.9 4 3 6.4 3 9.4c0 1.7 1 3.2 2.5 4.2l-.6 2 2.2-1.1c.8.2 1.6.3 2.4.3h.5A5 5 0 0 1 10 13c0-2.9 2.7-5.2 6-5.2h.4C15.9 5.8 13 4 9.5 4zM21 13c0-2.5-2.5-4.5-5.5-4.5S10 10.5 10 13s2.5 4.5 5.5 4.5c.7 0 1.4-.1 2-.3l1.9 1-.5-1.7c1.3-.8 2.1-2.1 2.1-3.5z"/></svg>') center/contain no-repeat; }
.oauth-btn:hover { filter: brightness(1.06); }
.oauth-btn:active { transform: translateY(1px); }





/* ---------- 整页铺满流动色块（2026-11-19 小Y定稿：全站背景=固定流动色块层，内容浮于其上） ---------- */
html { background: #b12585; } /* 流动层未加载时的兜底底色 */
body { background: transparent; }
.flow-bg { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
.flow-bg .blobs { position: absolute; inset: 0; width: 100%; height: 100%; }
.flow-bg .blobs.m { display: none; }
/* 内容层抬到流动背景之上 */
main { position: relative; z-index: 1; }
.hero { z-index: 1; }
.page-top { z-index: 1; background: transparent; }
.site-footer { z-index: 1; background: transparent; }
/* 原静态色块横带（眉头/频道页顶/页脚）退场，统一由整页流动层负责 */
.site-head { background: transparent; }
.site-head .blobs, .page-top > .blobs, .site-footer .blobs { display: none; }
/* 可读性：落在流动背景上的区块标题加白色柔光衬底 */
.sec-head h2, .sec-head p { text-shadow: 0 1px 8px rgba(255,255,255,.45); }
@media (max-width: 768px) {
  .flow-bg .blobs.d { display: none; }
  .flow-bg .blobs.m { display: block; }
}
/* ---------- 整页铺满流动色块结束 ---------- */

/* ---------- 首屏自带色块层退场（2026-11-19 小Y：整页铺满后 hero 底边出现截断缝） ----------
   hero 原有自己的一份色块 SVG（随页面滚动），与 fixed 整页流动层对位不同，
   滚出首屏时底边把色块拦腰截断。现统一由整页流动层负责背景，hero 透明透出，缝隙消除。 */
.hero { background: transparent; }
.hero .blobs { display: none; }


/* ---------- 色块流动动画（2026-11-19 17:10 回退版：15:20 blob 分层结构） ----------
   15:44 的 fb 独立图层拆分结构在顶部出现硬性短截面，已整体回退到 15:20 单 SVG 多 blob 分层；
   动画只做 translate 漂移：rotate 在无 GPU 硬件加速机器上会因图层纹理重采样产生阶梯锯齿
   （2026-11-19 小Y截图确认），纯平移永远安全；d 路径形变因每帧全屏重光栅化导致卡顿，不恢复。 ---------- */
.flow-bg .blob { pointer-events: none; }
.hero .blob.b1, .flow-bg .blob.b1 { animation: blobdrift1 calc(28.6s * var(--sp,1)) ease-in-out infinite; animation-delay: -2.5s; }
@keyframes blobdrift1 {
  0% { transform: translate(0,0); }
  33% { transform: translate(54px,-28px); }
  66% { transform: translate(33px,37px); }
  100% { transform: translate(0,0); }
}
.hero .blob.b2, .flow-bg .blob.b2 { animation: blobdrift2 calc(15.3s * var(--sp,1)) ease-in-out infinite; animation-delay: -6.5s; }
@keyframes blobdrift2 {
  0% { transform: translate(0,0); }
  33% { transform: translate(-55px,33px); }
  66% { transform: translate(-21px,-22px); }
  100% { transform: translate(0,0); }
}
.hero .blob.b3, .flow-bg .blob.b3 { animation: blobdrift3 calc(22.4s * var(--sp,1)) ease-in-out infinite; animation-delay: -7.3s; }
@keyframes blobdrift3 {
  0% { transform: translate(0,0); }
  33% { transform: translate(32px,19px); }
  66% { transform: translate(-14px,48px); }
  100% { transform: translate(0,0); }
}
.hero .blob.b4, .flow-bg .blob.b4 { animation: blobdrift4 calc(27.6s * var(--sp,1)) ease-in-out infinite; animation-delay: -27.1s; }
@keyframes blobdrift4 {
  0% { transform: translate(0,0); }
  33% { transform: translate(4px,-54px); }
  66% { transform: translate(13px,-19px); }
  100% { transform: translate(0,0); }
}
.hero .blob.b5, .flow-bg .blob.b5 { animation: blobdrift5 calc(25.5s * var(--sp,1)) ease-in-out infinite; animation-delay: -20.4s; }
@keyframes blobdrift5 {
  0% { transform: translate(0,0); }
  33% { transform: translate(30px,-17px); }
  66% { transform: translate(40px,24px); }
  100% { transform: translate(0,0); }
}
.hero .blob.b6, .flow-bg .blob.b6 { animation: blobdrift6 calc(21.5s * var(--sp,1)) ease-in-out infinite; animation-delay: -15.6s; }
@keyframes blobdrift6 {
  0% { transform: translate(0,0); }
  33% { transform: translate(-34px,25px); }
  66% { transform: translate(-43px,-42px); }
  100% { transform: translate(0,0); }
}
.hero .blob.b7, .flow-bg .blob.b7 { animation: blobdrift7 calc(16.3s * var(--sp,1)) ease-in-out infinite; animation-delay: -5.4s; }
@keyframes blobdrift7 {
  0% { transform: translate(0,0); }
  33% { transform: translate(27px,-34px); }
  66% { transform: translate(-20px,36px); }
  100% { transform: translate(0,0); }
}
.hero .blob.b8, .flow-bg .blob.b8 { animation: blobdrift8 calc(28.4s * var(--sp,1)) ease-in-out infinite; animation-delay: -24.8s; }
@keyframes blobdrift8 {
  0% { transform: translate(0,0); }
  33% { transform: translate(-23px,-30px); }
  66% { transform: translate(-7px,45px); }
  100% { transform: translate(0,0); }
}
.hero .blob.b9, .flow-bg .blob.b9 { animation: blobdrift9 calc(17.4s * var(--sp,1)) ease-in-out infinite; animation-delay: -10.9s; }
@keyframes blobdrift9 {
  0% { transform: translate(0,0); }
  33% { transform: translate(-61px,-1px); }
  66% { transform: translate(-18px,37px); }
  100% { transform: translate(0,0); }
}
@media (prefers-reduced-motion: reduce) { .flow-bg .blob { animation: none !important; } }
/* ---------- 色块流动动画结束 ---------- */
