/* ============================================================
   晋美云商城 · 视觉系统 V3  ·  EDITORIAL OVERRIDE LAYER
   ------------------------------------------------------------
   2026-10-15 钱程哥要求：
     独特排版 / 统一色彩 / 编排动效 / 告别 AI 味 / Pinterest 级审美
   本层策略：
     1. 变量层——重定义配色与字体，建立高级灰与墨色体系
     2. 排版层——衬线大标题 + 非对称栅格 + 大留白
     3. 质感层——纸纹噪点 / 发丝分割线 / 金箔渐变
     4. 动效层——错峰入场（stagger）/ 滚动渐显 / 卡片磁吸
     5. 图标层——线性 SVG 统一 2px 笔画
   注意：本层覆盖在 V2 之上，弹窗/列表等基础样式继续沿用
   ============================================================ */

:root {
  /* ========== 墨色体系（高级灰阶，替代纯黑） ========== */
  --ink-900: #17120f;
  --ink-800: #241c18;
  --ink-700: #3a2f29;
  --ink-600: #57493f;
  --ink-500: #756558;
  --ink-400: #9b8c7e;
  --ink-300: #bfb3a5;
  --ink-200: #ded5c8;
  --ink-100: #eee8de;
  --ink-050: #f7f3ec;

  /* ========== 品牌主色（晋红 / 鎏金 / 青灰 / 黛） ========== */
  --pri: #8c2f24;
  --pri-deep: #5c1c15;
  --pri-light: #a8452f;
  --pri-soft: #f2e6e2;

  --gold: #b08d57;
  --gold-lt: #d9bf90;
  --gold-deep: #8a6d40;
  --gold-soft: #f4ece0;

  /* 鎏金渐变——用于标题与数字 */
  --foil: linear-gradient(135deg, #8a6d40 0%, #d9bf90 28%, #f3e3c2 46%, #d9bf90 62%, #8a6d40 100%);
  --foil-text: linear-gradient(135deg, #9a7b4a 0%, #c9a86e 34%, #e8d2a4 50%, #c9a86e 66%, #9a7b4a 100%);

  --teal: #3f6068;
  --teal-soft: #e3ecee;
  --jade: #4a6b52;

  /* ========== 纸面 ========== */
  --paper: #faf7f2;
  --paper-2: #f3eee5;
  --paper-3: #ebe4d8;
  --white: #fffdfa;

  /* ========== 语义 ========== */
  --tx: var(--ink-900);
  --tx2: var(--ink-600);
  --tx3: var(--ink-400);
  --line: rgba(90, 74, 60, .13);
  --line-2: rgba(90, 74, 60, .07);
  --hair: rgba(90, 74, 60, .2);

  /* ========== 阴影（柔和分层，克制） ========== */
  --sh-1: 0 1px 2px rgba(35, 24, 18, .04);
  --sh-2: 0 2px 10px rgba(35, 24, 18, .055);
  --sh-3: 0 8px 28px rgba(35, 24, 18, .08);
  --sh-4: 0 20px 60px rgba(35, 24, 18, .12);
  --sh-gold: 0 6px 22px rgba(176, 141, 87, .24);

  /* ========== 字体 ========== */
  --serif: "Songti SC", "Noto Serif SC", "Source Han Serif SC", "STSong", "SimSun", serif;
  --sans: -apple-system, "PingFang SC", "Noto Sans SC", "Microsoft YaHei", "Helvetica Neue", sans-serif;
  --mono: "SF Mono", "JetBrains Mono", Consolas, monospace;

  /* ========== 节奏 ========== */
  --gut: 20px;
  --sp-1: 4px;  --sp-2: 8px;  --sp-3: 12px;
  --sp-4: 16px; --sp-5: 24px; --sp-6: 32px; --sp-7: 48px;

  /* ========== 动效曲线 ========== */
  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
  --t-fast: .18s;
  --t-mid: .34s;
  --t-slow: .6s;

  /* ========== 纸纹噪点（去 AI 味的关键：真实的印刷质感） ========== */
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='.038'/%3E%3C/svg%3E");
}

/* ============================================================
   1. 基础层 —— 纸面质感 + 图标统一
   ============================================================ */
body {
  background: #d9d2c6;
  color: var(--tx);
  font-family: var(--sans);
  font-size: 13.5px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.stage {
  background:
    radial-gradient(900px 520px at 18% -6%, #f2ece1 0%, transparent 62%),
    radial-gradient(760px 480px at 88% 108%, #e4dccd 0%, transparent 60%),
    linear-gradient(168deg, #e6dfd3 0%, #d6cec1 52%, #cbc2b3 100%);
  gap: 36px;
  padding: 28px;
}

.phone {
  width: 390px;
  height: 844px;
  background: var(--paper);
  /* 这三条必须保留：V2 里靠它们构成 flex 纵向布局 + 裁切溢出。
     曾被覆盖掉，导致底部导航条溢出到手机壳外面。 */
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  box-shadow:
    var(--sh-4),
    0 0 0 1px rgba(90, 74, 60, .16),
    0 0 0 12px #1e1512,
    0 0 0 13px #3c2f28;
  border-radius: 42px;
}

.phone::before {
  width: 118px; height: 26px;
  background: #17120f;
  border-radius: 0 0 15px 15px;
  top: 0;
}
.phone::after { display: none; }

/* 纸纹覆盖层 —— 用 absolute 而非 fixed，
   否则噪点会铺满整个浏览器视口（连右侧说明栏一起），而不是只在手机壳内 */
.phone .screen { position: relative; }
.phone .screen::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  min-height: 100%;
  background-image: var(--grain);
  background-repeat: repeat;
  pointer-events: none;
  z-index: 900;
  mix-blend-mode: multiply;
}

.screen { scroll-behavior: smooth; }

/* ============================================================
   1.5 页面容器 —— 必须在 flex 纵向布局中撑开
   ------------------------------------------------------------
   .phone 是 height:100vh 的 flex column；.page 是它的子项。
   若 .page 只 display:block（V2 的写法），它不会占满剩余高度，
   .screen(flex:1) 拿不到高度 → 手机端内容被裁切在首屏，
   表现为「只能看到晋善晋美标题，下面四张卡看不到」。
   ============================================================ */
.page {
  display: none;
  flex: 1 1 auto;
  min-height: 0;
  flex-direction: column;
  position: relative;
}
.page.on {
  display: flex;
  animation: pageIn .3s var(--ease);
}
.page > .screen {
  flex: 1 1 auto;
  min-height: 0;
  height: 100%;
}

/* 图标统一：线性、2px 笔画、垂直居中 */
.ico-svg {
  display: block;
  flex-shrink: 0;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ============================================================
   2. 导航 —— 极简发丝线
   ============================================================ */
.navbar {
  height: 50px;
  background: rgba(250, 247, 242, .82);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--line);
  box-shadow: none;
}
.navbar .nav-t {
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: 3px;
}

/* ============================================================
   3. 首页顶部 —— 深色晋红，编辑感大标题
   ============================================================ */
.home-top {
  background:
    linear-gradient(168deg, #3a1512 0%, #5c1c15 42%, #7a2620 78%, #8c2f24 100%);
  position: relative;
  overflow: hidden;
  padding-bottom: 20px;
}

/* 云纹暗底 */
.home-top::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 12% 18%, rgba(217, 191, 144, .14) 0, transparent 26%),
    radial-gradient(circle at 84% 72%, rgba(217, 191, 144, .1) 0, transparent 24%),
    repeating-linear-gradient(58deg, rgba(255, 255, 255, .022) 0 1px, transparent 1px 15px);
  pointer-events: none;
}

/* 底部鎏金发丝线 */
.home-top::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold-lt) 22%, #f0dcb4 50%, var(--gold-lt) 78%, transparent);
  opacity: .82;
  z-index: 3;
}

.loc-bar {
  padding: 12px var(--gut) 8px;
  color: rgba(255, 245, 235, .82);
  font-size: 11.5px;
  letter-spacing: .4px;
  position: relative;
  z-index: 2;
}
.loc-bar .loc-ico { display: none; }
.loc-bar .caret { font-size: 7px; opacity: .7; }
.loc-bar .lb-icon {
  width: 30px; height: 30px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(217, 191, 144, .28);
  border-radius: 50%;
  color: rgba(255, 245, 235, .9);
  cursor: pointer;
  transition: all var(--t-fast) var(--ease);
}
.loc-bar .lb-icon:hover {
  background: rgba(217, 191, 144, .16);
  border-color: var(--gold-lt);
  transform: scale(1.08);
}

/* —— Logo + 搜索 —— */
.home-search {
  padding: 4px var(--gut) 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
  z-index: 2;
}

.home-logo {
  width: 40px; height: 40px;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(217, 191, 144, .38);
  border-radius: 3px;
  background: rgba(255, 250, 242, .94);
  cursor: pointer;
  overflow: hidden;
  transition: all var(--t-mid) var(--ease);
  position: relative;
}
.home-logo:hover {
  border-color: var(--gold-lt);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, .22);
}
.home-logo img { width: 100%; height: 100%; object-fit: contain; }
.home-logo .logo-ph {
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 700;
  color: var(--pri-deep);
  letter-spacing: 1px;
  line-height: 1.05;
  text-align: center;
}

.searchbar {
  flex: 1;
  height: 40px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 15px;
  background: rgba(255, 252, 247, .96);
  border-radius: 2px;
  border: 1px solid transparent;
  transition: all var(--t-fast) var(--ease);
}
.searchbar:focus-within {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(176, 141, 87, .18);
}
.searchbar .ico { color: var(--ink-400); display: flex; }
.searchbar input {
  flex: 1;
  border: none;
  background: none;
  font-size: 12.5px;
  color: var(--ink-900);
  letter-spacing: .3px;
}
.searchbar input::placeholder { color: var(--ink-300); }

/* —— 轮播 —— */
.banner-wrap { padding: 0 var(--gut); position: relative; z-index: 2; }
.swiper { gap: 10px; scroll-padding-left: var(--gut); }
.swiper .slide {
  height: 168px;
  border-radius: 3px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .26);
  scroll-snap-align: start;
}
.swiper .slide .veil {
  background: linear-gradient(100deg, rgba(30, 12, 10, .82) 0%, rgba(45, 18, 14, .48) 52%, rgba(45, 18, 14, .14) 100%);
}
.slide .inner { padding: 26px 22px; }
.slide .sl-tag {
  display: inline-block;
  font-size: 9.5px;
  letter-spacing: 2.5px;
  padding: 4px 9px;
  border: 1px solid rgba(217, 191, 144, .55);
  color: var(--gold-lt);
  margin-bottom: 13px;
  font-weight: 600;
}
.slide .sl-t {
  font-family: var(--serif);
  font-size: 25px;
  font-weight: 700;
  letter-spacing: 3px;
  line-height: 1.28;
  text-shadow: 0 2px 14px rgba(0, 0, 0, .38);
}
.slide .sl-s {
  font-size: 11.5px;
  opacity: .84;
  letter-spacing: .8px;
  margin-top: 8px;
  max-width: 74%;
  line-height: 1.6;
}

.dots { gap: 5px; margin-top: 11px; }
.dots i {
  width: 16px; height: 2px;
  background: rgba(255, 245, 235, .3);
  border-radius: 2px;
  transition: all var(--t-mid) var(--ease);
}
.dots i.on {
  width: 30px;
  background: var(--gold-lt);
}

/* —— 今日金句 —— */
.quote-bar {
  margin: 16px var(--gut) 0;
  padding: 13px 0 0;
  border-top: 1px solid rgba(217, 191, 144, .22);
  display: flex;
  gap: 11px;
  position: relative;
  z-index: 2;
}
.quote-bar .q-mark {
  font-family: var(--serif);
  font-size: 26px;
  color: var(--gold-lt);
  line-height: .82;
  opacity: .85;
}
.quote-bar .q-tx {
  font-family: var(--serif);
  font-size: 13.5px;
  line-height: 1.72;
  color: rgba(255, 248, 240, .95);
  letter-spacing: .5px;
}
.quote-bar .q-from {
  font-size: 10.5px;
  color: rgba(232, 214, 188, .62);
  margin-top: 6px;
  letter-spacing: .4px;
}
/* 客户端金句只呈现当天一句，无翻页控件（金句库在后台维护） */

/* ============================================================
   4. 商城介绍 —— 杂志式大数字
   ============================================================ */
.home-body {
  background: var(--paper);
  padding-top: 0;
  margin-top: 0;
}

.intro {
  margin: 0;
  padding: var(--sp-6) var(--gut) var(--sp-5);
  background: var(--paper);
  border-bottom: 1px solid var(--line-2);
  position: relative;
}
.intro::after { display: none; }

.intro .i-top { margin-bottom: 15px; }
.intro .i-badge {
  width: 46px; height: 46px;
  background: linear-gradient(150deg, var(--pri) 0%, var(--pri-deep) 100%);
  color: var(--gold-lt);
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  border-radius: 2px;
  box-shadow: 0 5px 16px rgba(92, 28, 21, .26);
  position: relative;
}
.intro .i-badge::after {
  content: "";
  position: absolute;
  inset: 3px;
  border: 1px solid rgba(217, 191, 144, .4);
  border-radius: 1px;
}
.intro .i-name {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 2.5px;
  color: var(--ink-900);
  line-height: 1.25;
}
.intro .i-name small {
  display: block;
  font-family: var(--sans);
  font-size: 8.5px;
  letter-spacing: 3.4px;
  color: var(--gold-deep);
  font-weight: 500;
  margin-top: 4px;
}

.intro .i-tx {
  font-size: 12.5px;
  color: var(--ink-500);
  line-height: 2;
  letter-spacing: .3px;
  position: relative;
  z-index: 1;
}

.intro .i-stats {
  margin-top: 19px;
  padding-top: 17px;
  border-top: 1px solid var(--line);
  gap: 0;
}
.intro .i-stats .st-i + .st-i::before {
  content: "";
  position: absolute;
  left: 0; top: 22%;
  height: 56%;
  width: 1px;
  background: var(--line);
}
.intro .i-stats .st-n {
  font-family: var(--serif);
  font-size: 23px;
  font-weight: 700;
  background: var(--foil-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: .5px;
}
.intro .i-stats .st-n span {
  -webkit-text-fill-color: var(--gold-deep);
  font-size: 9.5px;
  font-family: var(--sans);
  font-weight: 500;
}
.intro .i-stats .st-l {
  font-size: 9.5px;
  color: var(--ink-400);
  margin-top: 4px;
  letter-spacing: .8px;
}

/* ============================================================
   4.5 首屏高度预算 —— 让「晋善晋美」四卡落在首屏内
   ------------------------------------------------------------
   实测（390×844 手机视口，首屏可见高 786px）：
     原 .home-top 457 + .intro 313 = 770 → 四卡起点 838（首屏外）
     调整后 .home-top ~352 + .intro ~250 = ~602 → 四卡起点 ~670（首屏内）
   手段：轮播压矮、介绍文字收行、统计数字缩小、上下留白收紧
   ============================================================ */

/* —— 轮播：168 → 126 —— */
.swiper .slide { height: 126px; }
.slide .inner { padding: 20px 18px; }
.slide .sl-t { font-size: 22px; letter-spacing: 2.4px; }
.slide .sl-s { font-size: 11px; margin-top: 6px; }
.slide .sl-tag { margin-bottom: 9px; padding: 3px 8px; }

/* —— 顶部区整体收紧 —— */
.loc-bar { padding: 9px var(--gut) 6px; }
.home-search { padding: 2px var(--gut) 11px; }
.banner-wrap { padding: 0 var(--gut); }
.quote-bar { margin: 12px var(--gut) 0; padding-top: 10px; }
.home-top { padding-bottom: 15px; }

/* —— 商城介绍：313 → 约250 —— */
.intro { padding: 18px var(--gut) 16px; }
.intro .i-top { margin-bottom: 11px; }
.intro .i-badge { width: 40px; height: 40px; font-size: 21px; }
.intro .i-name { font-size: 18px; }
.intro .i-name small { margin-top: 3px; font-size: 8px; }
.intro .i-tx {
  font-size: 12px;
  line-height: 1.85;
  /* 最多 4 行，超出省略，避免长文案把四卡挤下去 */
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.intro .i-stats { margin-top: 14px; padding-top: 13px; }
.intro .i-stats .st-n { font-size: 20px; }
.intro .i-stats .st-l { margin-top: 3px; font-size: 9.5px; }

/* —— 四卡区域：再上移一点，确保整卡可见 —— */
.jsm { padding: 18px 0 16px; }
.jsm-label { padding: 0 var(--gut) 12px; }
.jsm-card { padding: 12px 4px 11px; gap: 7px; }
.jsm-ico { width: 42px; height: 42px; }
.jsm-ch { font-size: 30px; }

/* ============================================================
   5. ★ 晋善晋美 四卡横排 —— 本次改版核心
   —— 四个大字横向排开，一眼读出「晋善晋美」
   —— 每字上方业务寓意图标，选中态鎏金下划线 + 纸面浮起
   ============================================================ */
.jsm {
  padding: var(--sp-6) 0 var(--sp-5);
  background: var(--paper);
}

.jsm-label {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 0 var(--gut) 17px;
}
.jsm-label .jl-t {
  font-family: var(--serif);
  font-size: 12px;
  letter-spacing: 5px;
  color: var(--ink-700);
  font-weight: 600;
}
.jsm-label .jl-e {
  font-size: 8px;
  letter-spacing: 2.6px;
  color: var(--ink-300);
  text-transform: uppercase;
}
.jsm-label::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

/* —— 四卡横排容器 —— */
.jsm-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));   /* minmax(0,1fr) 防止子项撑破列宽 */
  gap: 0;
  padding: 0 var(--gut);
  position: relative;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;                                     /* 双保险：溢出直接裁掉，不撑宽页面 */
}

/* 卡片之间的发丝竖线 */
.jsm-card + .jsm-card::before {
  content: "";
  position: absolute;
  left: 0; top: 14%;
  height: 72%;
  width: 1px;
  background: var(--line-2);
}

.jsm-card {
  position: relative;
  padding: 15px 4px 13px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  cursor: pointer;
  transition: all var(--t-mid) var(--ease);
  -webkit-tap-highlight-color: transparent;
  /* 关键：允许收缩 + 隐藏溢出，保证四卡严格等分不撑破容器 */
  min-width: 0;
  overflow: hidden;
}

/* 悬停/按压：纸面浮起 */
.jsm-card:hover { transform: translateY(-3px); }
.jsm-card:active { transform: translateY(-1px) scale(.985); }

/* 图标容器 */
.jsm-ico {
  width: 46px; height: 46px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  color: var(--ink-400);
  background: var(--paper-2);
  border: 1px solid var(--line-2);
  transition: all var(--t-mid) var(--ease);
  position: relative;
}
.jsm-ico::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid transparent;
  transition: border-color var(--t-mid) var(--ease);
}

/* 大字 */
.jsm-ch {
  font-family: var(--serif);
  font-size: 33px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 2px;
  color: var(--ink-300);
  transition: all var(--t-mid) var(--ease);
  position: relative;
  max-width: 100%;
}

/* 板块名 —— 均衡两行：上行 2 字 + 下行 2 字（数据在 HOME_ZONES.nm，后台可配）
   钱程哥 10-16 指定：上1下3 的比例不协调，一律改成 2 字 / 2 字 */
.jsm-nm {
  font-family: var(--serif);
  font-size: 12.5px;
  letter-spacing: 1.6px;
  color: var(--ink-400);
  font-weight: 600;
  transition: all var(--t-mid) var(--ease);
  white-space: nowrap;
  line-height: 1.38;
  text-align: center;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}
/* 两行同字号、同字距，只靠颜色分层 —— 保证上下两行视觉重量一致 */
.jsm-nm .nm-a {
  font-family: var(--serif);
  font-size: 1em;
  letter-spacing: inherit;
  color: var(--gold-deep);
  opacity: .95;
}
.jsm-nm .nm-b {
  font-size: 1em;
  letter-spacing: inherit;
}

/* 英文小标 */
.jsm-en {
  font-size: 7.5px;
  letter-spacing: 1.8px;
  color: var(--ink-300);
  opacity: 0;
  transform: translateY(-4px);
  transition: all var(--t-mid) var(--ease);
  height: 0;
  overflow: hidden;
  white-space: nowrap;
  max-width: 100%;
}

/* —— 选中态 —— */
.jsm-card.on .jsm-ico {
  color: var(--gold-lt);
  background: linear-gradient(150deg, var(--pri) 0%, var(--pri-deep) 100%);
  border-color: transparent;
  box-shadow: 0 7px 20px rgba(92, 28, 21, .3);
  transform: scale(1.06);
}
.jsm-card.on .jsm-ico::after { border-color: rgba(176, 141, 87, .42); }

.jsm-card.on .jsm-ch {
  background: var(--foil-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  transform: translateY(-1px);
}

.jsm-card.on .jsm-nm { color: var(--ink-900); }

.jsm-card.on .jsm-en {
  opacity: 1;
  transform: none;
  height: auto;
  color: var(--gold-deep);
}

/* 选中卡底部鎏金指示条 */
.jsm-card .jsm-bar {
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 26px;
  height: 2px;
  background: var(--foil);
  border-radius: 2px;
  transition: transform var(--t-mid) var(--ease);
}
.jsm-card.on .jsm-bar { transform: translateX(-50%) scaleX(1); }

/* ============================================================
   6. 板块内容区 —— 简介 + 网格 + 翻页
   ============================================================ */
.jsm-panel { padding: 0 var(--gut); }

/* 面板切换动效 */
.jsm-panel-body {
  animation: panelIn var(--t-slow) var(--ease) both;
}
@keyframes panelIn {
  0%   { opacity: 0; transform: translateY(14px); }
  100% { opacity: 1; transform: none; }
}

/* —— 卡片简介 —— */
.jp-intro {
  padding: 19px 0 17px;
  border-top: 1px solid var(--line);
  margin-top: 3px;
  position: relative;
}
.jp-intro::before {
  content: "";
  position: absolute;
  top: -1px; left: 0;
  width: 46px; height: 2px;
  background: var(--foil);
}

/* 板块名 + 简介一句话（突出显示） */
.jp-head {
  display: flex;
  align-items: baseline;
  gap: 9px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.jp-head .jp-t {
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 2.4px;
  color: var(--ink-900);
}
.jp-head .jp-e {
  font-size: 8px;
  letter-spacing: 2.4px;
  color: var(--gold-deep);
  padding-bottom: 2px;
}

/* 简介一句话（钱程哥指定文案，用引号强调） */
.jp-brief {
  font-family: var(--serif);
  font-size: 14px;
  line-height: 1.78;
  color: var(--ink-700);
  letter-spacing: .6px;
  padding-left: 12px;
  border-left: 2px solid var(--gold);
  margin-bottom: 11px;
}

/* 完整介绍 */
.jp-desc {
  font-size: 11.5px;
  line-height: 1.95;
  color: var(--ink-500);
  letter-spacing: .25px;
}

/* 查看全部入口 */
.jp-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 13px;
  font-size: 11.5px;
  letter-spacing: 1.2px;
  color: var(--pri);
  font-weight: 600;
  padding: 6px 0;
  cursor: pointer;
  transition: all var(--t-fast) var(--ease);
  border-bottom: 1px solid transparent;
}
.jp-more:hover {
  color: var(--pri-deep);
  gap: 10px;
  border-bottom-color: rgba(140, 47, 36, .32);
}
.jp-more .ico-svg { transition: transform var(--t-fast) var(--ease); }

/* —— 商品网格 —— */
.jp-grid {
  display: grid;
  gap: 11px;
  margin-top: 15px;
  /* 后台可调行列，默认 2×2 */
  grid-template-columns: repeat(2, 1fr);
}
.jp-grid[data-rows="1"] { grid-template-columns: repeat(4, 1fr); }
.jp-grid[data-rows="3"] { grid-template-columns: repeat(2, 1fr); }
.jp-grid[data-rows="4"] { grid-template-columns: repeat(1, 1fr); }

/* —— 商品卡 —— */
.jp-cell {
  background: var(--white);
  border: 1px solid var(--line-2);
  border-radius: 2px;
  overflow: hidden;
  cursor: pointer;
  transition: all var(--t-mid) var(--ease);
  position: relative;
  display: flex;
  flex-direction: column;
}
.jp-cell:hover {
  transform: translateY(-4px);
  box-shadow: var(--sh-3);
  border-color: rgba(176, 141, 87, .34);
}
.jp-cell:active { transform: translateY(-1px) scale(.99); }

/* 图片/图标区 */
.jp-fig {
  height: 96px;
  background:
    linear-gradient(155deg, var(--paper-2) 0%, var(--paper-3) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  color: var(--ink-300);
  overflow: hidden;
}
.jp-fig::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--grain);
  opacity: .6;
  mix-blend-mode: multiply;
}
.jp-fig img { width: 100%; height: 100%; object-fit: cover; position: relative; z-index: 1; }
.jp-fig .ico-svg { position: relative; z-index: 1; transition: transform var(--t-slow) var(--ease), color var(--t-mid); }
.jp-cell:hover .jp-fig .ico-svg {
  transform: scale(1.14) rotate(-4deg);
  color: var(--pri);
}

/* 角标 */
.jp-badge {
  position: absolute;
  top: 8px; left: 8px;
  z-index: 2;
  font-size: 9px;
  letter-spacing: .8px;
  padding: 3px 7px;
  background: rgba(23, 18, 15, .84);
  color: var(--gold-lt);
  border-radius: 1px;
  backdrop-filter: blur(4px);
}
.jp-badge.hot { background: linear-gradient(135deg, var(--pri) 0%, var(--pri-deep) 100%); color: #fff; }

/* 内容区 */
.jp-body { padding: 11px 11px 13px; flex: 1; display: flex; flex-direction: column; }

.jp-name {
  font-family: var(--serif);
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.55;
  color: var(--ink-900);
  letter-spacing: .3px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 38px;
}
.jp-spec {
  font-size: 10px;
  color: var(--ink-400);
  margin-top: 5px;
  line-height: 1.5;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.jp-desc-mini {
  font-size: 10.5px;
  color: var(--ink-500);
  line-height: 1.65;
  margin-top: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 价格区 */
.jp-foot {
  margin-top: auto;
  padding-top: 11px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px;
}
.jp-price .cur {
  font-size: 10px;
  color: var(--pri);
  font-weight: 600;
  margin-right: 1px;
}
.jp-price .big {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 700;
  color: var(--pri);
  letter-spacing: .3px;
}
.jp-price .unit { font-size: 9.5px; color: var(--ink-400); margin-left: 2px; }

.jp-mprice {
  font-size: 9.5px;
  color: var(--gold-deep);
  background: var(--gold-soft);
  padding: 2px 6px;
  border-radius: 1px;
  letter-spacing: .3px;
  margin-top: 3px;
  display: inline-block;
}
.jp-mprice b { font-weight: 700; }

/* 销量 */
.jp-sales {
  font-size: 9px;
  color: var(--ink-300);
  text-align: right;
  line-height: 1.5;
  letter-spacing: .3px;
  white-space: nowrap;
}

/* 福利卡的领取按钮 */
.jp-claim {
  margin-top: 11px;
  height: 30px;
  background: linear-gradient(135deg, var(--pri) 0%, var(--pri-deep) 100%);
  color: #fff;
  font-size: 11.5px;
  letter-spacing: 2px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 2px;
  cursor: pointer;
  transition: all var(--t-fast) var(--ease);
  font-family: var(--serif);
}
.jp-claim:hover { filter: brightness(1.12); box-shadow: var(--sh-gold); }
.jp-claim:active { transform: scale(.975); }
.jp-claim.got {
  background: var(--paper-3);
  color: var(--ink-400);
  box-shadow: none;
}

/* 限时标签 */
.jp-limit {
  font-size: 9.5px;
  color: var(--pri);
  margin-top: 7px;
  display: flex;
  align-items: center;
  gap: 4px;
  letter-spacing: .3px;
}

/* 图文卡（善于发现） */
.jp-cell.art .jp-fig { height: 82px; }
.jp-art-cat {
  font-size: 9px;
  color: var(--gold-deep);
  letter-spacing: 1.2px;
  margin-bottom: 5px;
  display: block;
}
.jp-cell.art .jp-name {
  font-family: var(--serif);
  -webkit-line-clamp: 2;
  min-height: 0;
}
.jp-art-ft {
  margin-top: auto;
  padding-top: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 9px;
  color: var(--ink-300);
  letter-spacing: .3px;
}
.jp-art-ft .lk {
  color: var(--pri);
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-weight: 600;
}

/* —— 翻页 —— */
.jp-pager {
  margin-top: 20px;
  padding-top: 17px;
  border-top: 1px solid var(--line-2);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.jp-pg-btns { display: flex; align-items: center; gap: 6px; }
.jp-pg {
  min-width: 26px;
  height: 26px;
  padding: 0 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: var(--ink-500);
  border: 1px solid var(--line);
  border-radius: 1px;
  background: var(--white);
  cursor: pointer;
  transition: all var(--t-fast) var(--ease);
  font-family: var(--serif);
}
.jp-pg:hover:not(:disabled) {
  border-color: var(--gold);
  color: var(--pri);
  transform: translateY(-1px);
}
.jp-pg.on {
  background: linear-gradient(135deg, var(--pri) 0%, var(--pri-deep) 100%);
  color: #fff;
  border-color: transparent;
  font-weight: 600;
}
.jp-pg:disabled { opacity: .3; cursor: not-allowed; }
.jp-pg.arrow { padding: 0; width: 26px; }

/* 进度条式翻页指示 */
.jp-pg-bar {
  flex: 1;
  height: 2px;
  background: var(--paper-3);
  border-radius: 2px;
  overflow: hidden;
  max-width: 92px;
}
.jp-pg-bar i {
  display: block;
  height: 100%;
  background: var(--foil);
  border-radius: 2px;
  transition: width var(--t-slow) var(--ease);
}

/* —— 服务条 —— */
.serv-bar {
  margin: 0;
  padding: 15px var(--gut);
  background: var(--paper-2);
  border-top: 1px solid var(--line-2);
  border-bottom: 1px solid var(--line-2);
  gap: 0;
}
.serv-bar .sv {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  transition: transform var(--t-fast) var(--ease);
  position: relative;
}
.serv-bar .sv:hover { transform: translateY(-2px); }
.serv-bar .sv + .sv::before {
  content: "";
  position: absolute;
  left: 0; top: 12%;
  height: 76%;
  width: 1px;
  background: var(--line);
}
.serv-bar .s-i {
  color: var(--pri);
  display: flex;
  opacity: .88;
}
.serv-bar .s-t {
  font-size: 10px;
  color: var(--ink-500);
  letter-spacing: .5px;
  text-align: center;
  line-height: 1.4;
}
.serv-bar .s-t b {
  color: var(--ink-900);
  font-weight: 700;
}

/* ============================================================
   7. 通用卡片 / 列表 —— 收敛圆角与阴影
   ============================================================ */
.card {
  background: var(--white);
  border: 1px solid var(--line-2);
  border-radius: 2px;
  box-shadow: var(--sh-1);
}
.card:hover { box-shadow: var(--sh-2); }

.sec-h {
  display: flex;
  align-items: baseline;
  gap: 9px;
  padding-bottom: 13px;
  margin-bottom: 3px;
  position: relative;
}
.sec-h .sh-t {
  font-family: var(--serif);
  font-size: 16.5px;
  font-weight: 700;
  letter-spacing: 2.4px;
  color: var(--ink-900);
}
.sec-h .sh-e {
  font-size: 8px;
  letter-spacing: 2.2px;
  color: var(--gold-deep);
}
.sec-h::after {
  content: "";
  position: absolute;
  bottom: 0; left: 0;
  width: 34px; height: 2px;
  background: var(--foil);
}

/* ============================================================
   8. 底部导航 —— 极简线稿
   ============================================================ */
.tabbar {
  height: 62px;
  background: rgba(250, 247, 242, .93);
  backdrop-filter: saturate(180%) blur(22px);
  -webkit-backdrop-filter: saturate(180%) blur(22px);
  border-top: 1px solid var(--line);
  padding-bottom: 8px;
}
.tabbar .tab {
  color: var(--ink-300);
  transition: color var(--t-fast) var(--ease);
  gap: 4px;
}
.tabbar .tab .ti { display: flex; }
.tabbar .tab .tt {
  font-size: 9.5px;
  letter-spacing: 1.4px;
  font-weight: 500;
}
.tabbar .tab.on { color: var(--pri); }
.tabbar .tab.on .tt { font-weight: 700; }
.tabbar .tab.on .ti { transform: translateY(-1px); }
.tabbar .tab .badge {
  background: var(--pri);
  color: #fff;
  font-size: 8.5px;
  min-width: 15px;
  height: 15px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  top: 4px;
}

/* ============================================================
   9. 页脚
   ============================================================ */
.mine-foot {
  padding: var(--sp-6) var(--gut) 76px;
  text-align: center;
  border-top: 1px solid var(--line-2);
  background: var(--paper-2);
}
.mine-foot .mf-slogan {
  font-family: var(--serif);
  font-size: 14px;
  letter-spacing: 3.4px;
  color: var(--ink-700);
  margin-bottom: 9px;
}
.mine-foot .mf-slogan b {
  background: var(--foil-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 700;
}
.mine-foot .mf-tel {
  font-size: 11px;
  color: var(--ink-500);
  letter-spacing: 1px;
  font-family: var(--mono);
}
.mine-foot .mf-cp {
  font-size: 9.5px;
  color: var(--ink-300);
  margin-top: 7px;
  letter-spacing: .5px;
}

/* ============================================================
   10. 编排动效 —— 错峰入场 + 滚动渐显
   ============================================================ */

/* 入场编排：容器加 .anim-in 后，子元素依次浮现 */
.anim-in > * {
  opacity: 0;
  animation: riseIn .72s var(--ease) both;
}
.anim-in > *:nth-child(1) { animation-delay: .04s; }
.anim-in > *:nth-child(2) { animation-delay: .1s; }
.anim-in > *:nth-child(3) { animation-delay: .16s; }
.anim-in > *:nth-child(4) { animation-delay: .22s; }
.anim-in > *:nth-child(5) { animation-delay: .28s; }
.anim-in > *:nth-child(6) { animation-delay: .34s; }
.anim-in > *:nth-child(7) { animation-delay: .4s; }
.anim-in > *:nth-child(8) { animation-delay: .46s; }

@keyframes riseIn {
  0%   { opacity: 0; transform: translateY(20px); }
  100% { opacity: 1; transform: none; }
}

/* 滚动渐显（IntersectionObserver 挂载 .reveal） */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .78s var(--ease), transform .78s var(--ease);
}
.reveal.in {
  opacity: 1;
  transform: none;
}

/* 网格内卡片错峰入场 */
.jp-cell {
  opacity: 0;
  animation: cellIn .62s var(--ease) both;
}
@keyframes cellIn {
  0%   { opacity: 0; transform: translateY(16px) scale(.97); }
  100% { opacity: 1; transform: none; }
}
.jp-cell:nth-child(1) { animation-delay: .05s; }
.jp-cell:nth-child(2) { animation-delay: .12s; }
.jp-cell:nth-child(3) { animation-delay: .19s; }
.jp-cell:nth-child(4) { animation-delay: .26s; }
.jp-cell:nth-child(5) { animation-delay: .33s; }
.jp-cell:nth-child(6) { animation-delay: .4s; }
.jp-cell:nth-child(7) { animation-delay: .47s; }
.jp-cell:nth-child(8) { animation-delay: .54s; }

/* 纸面磁吸微交互 */
.jp-cell, .jsm-card, .card, .btn {
  will-change: transform;
}

/* 图片加载完成后的柔和显影 */
img, svg {
  transition: opacity var(--t-mid) var(--ease), transform var(--t-mid) var(--ease);
}

/* ============================================================
   11. 右侧说明栏
   ============================================================ */
.side-note {
  background: rgba(255, 253, 250, .72);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, .6);
  border-radius: 3px;
  box-shadow: var(--sh-3);
  max-width: 320px;
}
.side-note h3 {
  font-family: var(--serif);
  font-size: 19px;
  letter-spacing: 3px;
  color: var(--ink-900);
}
.side-note .sn-sub { color: var(--ink-500); }
.side-note li { border-bottom-color: var(--line-2); color: var(--ink-600); }
.side-note li::before { background: var(--gold); }
.side-note .sn-nav a {
  background: linear-gradient(135deg, var(--pri) 0%, var(--pri-deep) 100%);
  border-radius: 2px;
  transition: all var(--t-fast) var(--ease);
}
.side-note .sn-nav a:hover { transform: translateY(-2px); box-shadow: var(--sh-3); }
.side-note .sn-nav a.ghost {
  background: transparent;
  color: var(--ink-700);
  border-color: var(--hair);
}
.side-note .sn-nav a.ghost:hover { background: var(--paper-2); }

/* ============================================================
   12. 偏好减少动效（无障碍）
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .jp-cell { opacity: 1; }
}

/* ============================================================
   13. 响应式
   ============================================================ */
/* ============================================================
   16. 响应式 —— 手机端
   ------------------------------------------------------------
   关键：不能用 height:100vh 硬锁高。
   100vh 在手机浏览器会被地址栏截掉一截（100vh > 实际可视高度），
   导致底部内容永远滚不到。改用 100dvh（动态视口高）并给 fallback。
   ============================================================ */
@media (max-width: 820px) {
  html, body {
    margin: 0;
    padding: 0;
    /* 100vw 在有垂直滚动条时比可视宽多出滚动条宽度 → 右侧被裁。
       改用 width:100% 并强制纵向滚动条常驻方案的等价物：overflow-x:hidden */
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }
  .stage {
    padding: 0;
    margin: 0;
    gap: 0;
    display: block;
    width: 100%;
    max-width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
  }
  .phone {
    width: 100%;
    max-width: 100%;
    height: 100vh;
    height: 100dvh;              /* 动态视口高，随地址栏收起而变 */
    max-height: 100vh;
    max-height: 100dvh;
    border-radius: 0;
    box-shadow: none;
    overflow: hidden;
    display: flex;
    flex-direction: column;
  }
  .phone::before, .phone::after { display: none; }

  /* 主体可滚动，底部导航固定 */
  .page { flex: 1 1 auto; min-height: 0; }
  .page > .screen {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .jsm-cards { padding: 0 14px; }
  .jsm-ch { font-size: 27px; }
  .jsm-ico { width: 38px; height: 38px; }
  .jsm-nm { font-size: 11px; letter-spacing: 1.6px; }
  .jp-grid[data-rows="1"] { grid-template-columns: repeat(2, 1fr); }

  /* ==========================================================
     首屏高度预算（按最严苛的 360×640 手机实测：可视高仅 487px）
     实测：home-top 349 + intro 199 = 548 > 487 → 四卡被挤出首屏
     目标：home-top ~250 + intro ~150 = ~400 → 四卡起点 ~460（首屏内）
     ========================================================== */
  /* 窄屏隐藏轮播（省 72+px），四卡上移进首屏。
     轮播内容仍在 zone.html / 后台轮播管理中可见 */
  .banner-wrap { display: none; }
  .swiper .slide { height: 72px; }
  .slide .sl-t { font-size: 16px; letter-spacing: 1.4px; }
  .slide .sl-s { font-size: 9.5px; margin-top: 3px; max-width: 80%; }
  .slide .inner { padding: 10px 13px; }
  .slide .sl-tag { margin-bottom: 6px; padding: 2px 7px; font-size: 8.5px; }

  .loc-bar { padding: 6px 14px 4px; font-size: 10.5px; }
  .home-search { padding: 2px 14px 8px; }
  .searchbar, .home-logo { height: 34px; }
  .home-logo { width: 34px; height: 34px; }
  .home-logo .logo-ph { font-size: 13px; }

  .quote-bar { margin: 8px 14px 0; padding-top: 7px; gap: 8px; }
  .quote-bar .q-tx {
    font-size: 11px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  /* 金句出处行：窄屏收紧 */
  .quote-bar .q-from { margin-top: 4px; font-size: 9.5px; }
  .home-top { padding-bottom: 9px; }

  /* ==========================================================
     商城介绍 —— 窄屏整体折叠
     ------------------------------------------------------------
     目的：把首屏 487px 让给「晋善晋美」四卡。
     做法：名称与统计并排成一行，长描述整块隐藏
          （完整介绍在「晋品推荐」面板与后台可继续看到）。
     ========================================================== */
  .intro {
    padding: 9px 14px 8px;
    display: flex;
    align-items: center;
    gap: 12px;
  }
  .intro .i-top {
    margin-bottom: 0;
    flex-shrink: 0;
    gap: 0;
  }
  .intro .i-badge { display: none; }
  .intro .i-name { font-size: 14.5px; letter-spacing: 1.8px; white-space: nowrap; }
  .intro .i-name small { display: none; }
  .intro .i-tx { display: none; }            /* 长描述在窄屏隐藏 */
  .intro .i-stats {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
    flex: 1;
    min-width: 0;
  }
  .intro .i-stats .st-n { font-size: 15px; }
  .intro .i-stats .st-l { font-size: 8px; margin-top: 1px; }

  /* 四卡 */
  .jsm { padding: 10px 0 12px; }
  .jsm-label { padding: 0 14px 7px; }
  .jsm-label .jl-t { font-size: 10.5px; letter-spacing: 3.5px; }
  .jsm-cards { padding: 0 10px; gap: 0; }
  .jsm-card { padding: 8px 2px 7px; gap: 4px; }
  .jsm-ico { width: 30px; height: 30px; }
  .jsm-ico .ico-svg { width: 17px; height: 17px; }
  .jsm-ch { font-size: 22px; }
  .jsm-nm { font-size: 9px; }
  .jsm-card + .jsm-card::before { top: 22%; height: 56%; }

  /* 底部导航保持 flex 子项身份（不再 absolute），保证不被裁切 */
  .tabbar {
    flex-shrink: 0;
    position: relative !important;
    bottom: auto !important;
    height: calc(58px + env(safe-area-inset-bottom, 0px));
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }

  /* 滚动条隐藏 */
  .screen::-webkit-scrollbar { width: 0; height: 0; }
}

/* 超窄屏（iPhone SE 等） */
@media (max-width: 360px) {
  .jsm-ch { font-size: 26px; }
  .jsm-ico { width: 40px; height: 40px; }
  .jsm-nm { font-size: 10.5px; letter-spacing: 1.4px; }
  .intro .i-name { font-size: 18px; }
  .slide .sl-t { font-size: 22px; }
}

/* ============================================================
   图标容器补丁
   所有图标一律由 icons.js 输出 SVG，页面内不得出现 emoji 或英文图标名
   ============================================================ */

/* 我的 · 会员专享四格（深色卡 · 鎏金图标） */
.mb-ico {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 22px;
  color: var(--gold-lt);
}
/* 我的 · 抽奖奖品格（浅底 · 晋红图标） */
.lucky-ico {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 26px;
  color: var(--pri);
}
/* 订单状态 / 九宫格 / 支付方式：图标着色与居中 */
.order-card .oc-tabs .ot .oi { display: flex; align-items: center; justify-content: center; color: var(--pri); }
.menu-grid .mi .m-i { color: var(--pri); }
.pay-opt .po-i { color: var(--tx2); }