/* ============================================================================
 * 山水壮乡 4.0 对话原生体验层 v4.css（M98；依赖 tokens/components/polish/detail）
 * 核心：对话即首页——输入框绝对视觉中心、气泡呼吸感、AI 思考动效、卡片内嵌对话
 * 百色元素交互化：右江水纹=思考进度、铜鼓=语音波形、五角星=呼吸精选、山水=肌理
 * 加载顺序：tokens → components → polish → detail → v4（最后覆盖）
 * ============================================================================ */

/* ============ 一、对话输入区（首页核心，视觉权重 60%） ============ */
.v4-input-zone { text-align: center; padding: 48px 0 24px; }
.v4-title { font-size: 28px; font-weight: 700; color: var(--sx-text-1); }
.v4-sub { font-size: 16px; color: var(--sx-text-3); margin-top: 12px; }
.v4-input-box {
  display: flex; align-items: center; gap: 10px;
  width: 760px; max-width: 92%; height: 64px; margin: 28px auto 0;
  padding: 0 14px;
  background: var(--sx-white);
  border: 2px solid var(--sx-primary);
  border-radius: 32px;
  box-shadow: 0 6px 24px rgba(30, 155, 106, 0.10);
  transition: box-shadow 200ms ease-out;
}
.v4-input-box:focus-within {
  box-shadow: 0 0 0 4px var(--sx-ai-glow), 0 8px 32px var(--sx-ai-glow-strong);
}
.v4-input-box input {
  flex: 1; height: 100%; border: none; outline: none; background: transparent;
  font-size: 15px; color: var(--sx-text-1);
}
.v4-input-box input::placeholder { color: var(--sx-text-3); }
.v4-voice-btn, .v4-lang-btn, .v4-send-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; flex-shrink: 0;
  border: none; border-radius: 50%; cursor: pointer;
  background: transparent; color: var(--sx-primary);
  transition: background 200ms ease-out, transform 200ms ease-out;
}
.v4-voice-btn:hover, .v4-lang-btn:hover { background: var(--sx-primary-soft); }
.v4-send-btn { background: var(--sx-primary); color: #fff; }
.v4-send-btn:hover { filter: brightness(1.08); }
.v4-send-btn:active { transform: scale(0.96); }

/* ============ 二、快捷提问（标签按钮，点击直达对应场景对话） ============ */
.v4-quick { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 16px; }
.v4-quick .sx-tag { cursor: pointer; background: rgba(255,255,255,0.8); }
.v4-quick .sx-tag:hover { background: var(--sx-primary-soft); }

.v4-home { padding-bottom: 24px; }
.v4-input-zone {
  position: relative;
  overflow: hidden;
}
.v4-input-zone::before {
  content: '';
  position: absolute;
  inset: auto 0 0;
  height: 60px;
  background: url('/static/images/patterns/sx-karst-silhouette.svg') bottom center / 100% 60px no-repeat;
  opacity: 0.05;
  pointer-events: none;
}
.v4-home > *,
.v4-input-zone > * { position: relative; }

.v4-recommend-panel { margin-top: 28px; }
.v4-recommend-panel .panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.v4-recommend-panel .panel-title {
  color: var(--sx-text-1);
  font-size: 16px;
  font-weight: 600;
}
.v4-recommend {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.v4-rec-card {
  display: flex;
  flex-direction: column;
  animation: v4-card-in 240ms ease-out both;
}
.v4-rec-card .rec-price {
  margin-top: 6px;
  color: var(--sx-zhuangjin-red);
  font-size: 14px;
  font-weight: 700;
}
.v4-rec-card .rec-price.free {
  color: var(--sx-text-3);
  font-size: 12px;
}
.v4-rec-card .rec-actions {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

@media (max-width: 1100px) {
  .v4-recommend { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 620px) {
  .v4-recommend { grid-template-columns: 1fr; }
  .v4-rec-card .rec-actions { flex-wrap: wrap; }
}

/* ============ 三、AI 思考动效（右江水纹流动 + 铜鼓轻转） ============ */
.v4-thinking {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; color: var(--sx-text-3);
}
.v4-thinking .wave {
  width: 60px; height: 12px;
  background: url('/static/images/patterns/sx-baise-wave.svg') left center/auto 12px repeat-x;
  animation: v4-wave-flow 1.2s linear infinite;
  will-change: background-position;
}
@keyframes v4-wave-flow { from { background-position: 0 0; } to { background-position: 120px 0; } }
.v4-thinking .tonggu {
  width: 18px; height: 18px;
  background: url('/static/images/patterns/sx-tonggu-sun.svg') center/18px no-repeat;
  animation: sx-tonggu-rotate 1.6s linear infinite;
}

/* ============ 四、消息气泡（呼吸感：16px 圆角/对角直角/宽松内边距） ============ */
.v4-msg { display: flex; align-items: flex-start; margin: 20px 0; }
.v4-msg.user { justify-content: flex-end; }
.v4-msg .avatar {
  width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 15px; color: #fff; background: var(--sx-karst-gray);
}
.v4-msg.user .avatar { background: var(--sx-primary); order: 2; }
.v4-msg .bubble {
  max-width: 60%; padding: 14px 18px;
  font-size: 14px; line-height: 1.6;
  animation: v4-msg-in 200ms ease-out both;
  will-change: transform, opacity;
}
.v4-msg.user .bubble {
  margin-right: 10px;
  background: linear-gradient(135deg, var(--sx-primary), #2EBD83);
  color: #fff; border-radius: 16px 16px 0 16px;
}
.v4-msg.ai .bubble {
  position: relative;
  margin-left: 10px; max-width: 75%;
  background: var(--sx-white);
  box-shadow: 0 2px 12px rgba(30, 155, 106, 0.06);
  border-radius: 16px 16px 16px 0;
  color: var(--sx-text-1);
}
.v4-msg.ai .bubble::before {
  content: '';
  position: absolute; left: 0; top: 14px; bottom: 14px;
  width: 3px; border-radius: 2px; background: var(--sx-primary);
}
@keyframes v4-msg-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

/* ============ 五、业务卡片内嵌对话（滑入 + 悬停） ============ */
.v4-cards { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.v4-cards .sx-card {
  flex: 1; min-width: 200px;
  animation: v4-card-in 240ms ease-out both;
}
@keyframes v4-card-in { from { opacity: 0; transform: translateX(12px); } to { opacity: 1; transform: translateX(0); } }


/* ============ 七、五角星呼吸（红色文化精选标记） ============ */
.v4-star-breathe { animation: v4-star-breathe 2.6s ease-in-out infinite; display: inline-block; }
@keyframes v4-star-breathe { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.75; transform: scale(0.94); } }

/* ============ 八、页面切换整体淡入上移 ============ */
.v4-page { animation: v4-page-in 240ms ease-out both; }
@keyframes v4-page-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* ============ 九、存量对话类 v4 覆盖（chat-v4 零 JS 改动视觉升级） ============ */
.v4-page .nw-msg { display: flex; margin: 20px 0; }
.v4-page .nw-msg.user { justify-content: flex-end; }
.v4-page .nw-bubble {
  max-width: 60%; padding: 14px 18px;
  font-size: 15px; font-weight: 400; line-height: 1.6;
  border-radius: 16px;
  animation: v4-msg-in 200ms ease-out both;
}
.v4-page .nw-msg.user .nw-bubble {
  background: linear-gradient(135deg, var(--sx-primary), #2EBD83);
  color: #fff; border-radius: 16px 16px 0 16px;
}
.v4-page .nw-msg.ai .nw-bubble {
  max-width: 75%; position: relative;
  background: var(--sx-white);
  box-shadow: 0 2px 12px rgba(30, 155, 106, 0.06);
  border-radius: 16px 16px 16px 0;
  color: var(--sx-text-1);
}
.v4-page .nw-msg.ai .nw-bubble::before {
  content: '';
  position: absolute; left: 0; top: 14px; bottom: 14px;
  width: 3px; border-radius: 2px; background: var(--sx-primary);
}
.v4-page .nw-cards { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.v4-page .nw-conv-card {
  flex: 1; min-width: 200px;
  background: var(--sx-white);
  border: 1px solid var(--sx-border);
  border-radius: 14px;
  padding: 12px 14px;
  box-shadow: var(--sx-shadow-card);
  animation: v4-card-in 240ms ease-out both;
}

/* ============ 九·一、M108 快捷标签 28px 高 / 14px 圆角 / 13px 字号（v4 首页与对话页共用；
   对话页专属输入框/发送/会话栏样式已迁移至 chat.css 单源管理） ============ */
.v4-page .v4-quick .sx-tag { cursor: pointer; height: 28px; border-radius: 14px; font-size: 13px; }
.v4-page .v4-quick { display: flex; gap: 8px; flex-wrap: wrap; }

/* ============ 十、M101 四级轻量化导航（全服务浮层/头像下拉/顶部极简栏） ============ */
.v4-overlay {
  position: fixed; inset: 0; z-index: 999;
  background: rgba(26, 42, 35, 0.45);
  display: flex; align-items: flex-start; justify-content: center;
  padding-top: 12vh;
  animation: sx-mask-in 200ms ease-out both;
}
.v4-sheet {
  width: 860px; max-width: 92vw;
  background: var(--sx-white);
  border-radius: 18px;
  padding: 24px 28px;
  box-shadow: var(--sx-shadow-modal);
  animation: sx-modal-in 200ms ease-out both;
}
.v4-sheet-links a {
  display: block;
  padding: 7px 0;
  font-size: 14px;
  color: var(--sx-text-2);
  text-decoration: none;
  border-radius: 8px;
  transition: color 200ms ease-out, background 200ms ease-out;
}
.v4-sheet-links a:hover { color: var(--sx-primary); background: var(--sx-primary-soft); }
.v4-dropdown {
  position: fixed; top: 60px; right: calc((100vw - 1200px) / 2 + 8px);
  z-index: 998;
  min-width: 180px;
  background: var(--sx-white);
  border-radius: 14px;
  box-shadow: var(--sx-shadow-modal);
  padding: 8px;
  animation: sx-modal-in 200ms ease-out both;
}
.v4-dropdown a {
  display: block;
  padding: 9px 12px;
  font-size: 14px;
  color: var(--sx-text-2);
  text-decoration: none;
  border-radius: 8px;
  transition: background 200ms ease-out;
}
.v4-dropdown a:hover { background: var(--sx-primary-soft); }

/* ============ 十一、全站统一运营壳（首页头尾唯一来源） ============ */
.v4-site {
  min-height: 100vh;
  background: var(--sx-bg);
  color: var(--sx-text-1);
}
.v4-shell {
  width: 1200px;
  max-width: calc(100vw - 48px);
  margin: 0 auto;
}
.v4-global-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
}
.v4-global-header .header-left,
.v4-global-header .header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}
.v4-global-header .brand {
  font-size: 18px;
  font-weight: 700;
  color: var(--sx-text-1);
  text-decoration: none;
}
.v4-global-header .header-actions a,
.v4-global-header .avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: var(--sx-text-1);
  font-size: 17px;
  text-decoration: none;
  cursor: pointer;
  transition: background 200ms ease-out;
}
.v4-global-header .message-entry { position: relative; }
/* M187 全站常驻「免费发布」主按钮（主题色填充白字醒目——任务书 PC 规范） */
/* M196F 修复：.header-actions a 通用规则（0,2,1 特异性）覆盖按钮——用更高特异性（0,3,1）明确压回 */
.v4-global-header .header-actions a.v4-publish-btn {
    display: inline-flex; align-items: center; gap: 2px;
    width: auto; height: auto; flex: none; font-size: 13px;
    padding: 6px 14px; border-radius: 18px;
    background: linear-gradient(135deg, #1F8A6B, #2E9B6B);
    color: #fff; font-weight: 600; text-decoration: none;
    box-shadow: 0 2px 8px rgba(31, 138, 107, .3);
    transition: transform .15s, box-shadow .15s;
}
.v4-global-header .header-actions a.v4-publish-btn:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(31, 138, 107, .4); color: #fff; }
.v4-global-header .message-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 8px;
    background: var(--sx-zhuangjin-red);
    color: #fff;
    font-size: 10px;
    line-height: 16px;
    display: none;
}
.v4-global-header .avatar {
  background: linear-gradient(135deg, var(--sx-primary), var(--sx-zhuangjin-red));
  color: #fff;
}
.v4-global-header .header-actions a:hover,
.v4-global-header .avatar:hover { filter: brightness(1.05); }
.v4-main {
  width: 1200px;
  max-width: calc(100vw - 48px);
  margin: 0 auto;
  padding: 0 0 32px;
}
.v4-sheet .sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  color: var(--sx-text-1);
}
.v4-sheet .sheet-head b { font-size: 16px; }
.v4-sheet .sheet-head button {
  border: none;
  background: transparent;
  color: var(--sx-text-3);
  cursor: pointer;
  font-size: 13px;
}
.v4-service-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}
.v4-service-grid .group-title {
  margin-bottom: 10px;
  color: var(--sx-text-1);
  font-size: 16px;
  font-weight: 600;
}
.v4-sheet .sheet-actions {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}
.v4-dropdown button {
  display: block;
  width: 100%;
  padding: 9px 12px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--sx-text-2);
  font-size: 14px;
  text-align: left;
  cursor: pointer;
  transition: background 200ms ease-out;
}
.v4-dropdown button:hover { background: var(--sx-primary-soft); }
.v4-dropdown .danger { color: var(--sx-zhuangjin-red); }
.v4-global-footer {
  position: relative;
  overflow: hidden;
  margin-top: 36px;
  padding: 20px 0 10px;
  text-align: center;
  color: var(--sx-text-4, var(--sx-text-3));
  font-size: 12px;
}
.v4-global-footer .karst {
  position: absolute;
  inset: 0;
  background: url('/static/images/patterns/sx-karst-silhouette.svg') bottom center / 100% 50px no-repeat;
  opacity: 0.05;
  pointer-events: none;
}
.v4-global-footer .sx-baise-tag { margin-right: 8px; }
.v4-global-footer a { margin-left: 8px; color: var(--sx-primary); text-decoration: none; }
.v4-global-footer > div { margin-top: 10px; }
.v4-ugc-record {
  padding: 8px 0;
  border-bottom: 1px solid var(--sx-border);
}
.v4-ugc-record .meta,
.v4-ugc-record .url {
  color: var(--sx-text-3);
  font-size: 12px;
}
.v4-ugc-record .url { word-break: break-all; }

@media (max-width: 1200px) {
  .v4-service-grid { grid-template-columns: repeat(3, 1fr); }
  .v4-dropdown { right: 24px; }
}

@media (max-width: 760px) {
  .v4-shell,
  .v4-main { width: 100%; max-width: none; padding-left: 16px; padding-right: 16px; }
  .v4-global-header .brand { font-size: 17px; }
  .v4-service-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .v4-sheet { max-height: 82vh; overflow-y: auto; }
}

/* ============ 十二、全站 v4 设计兼容层（活跃 PC 页面统一视觉） ============ */
.v4-site {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 14px;
  line-height: 1.6;
}
.v4-site .v4-page { min-height: calc(100vh - 180px); }
.v4-site .v4-page a { color: var(--sx-primary); }

.v4-site .zltc-crumb,
.v4-site .sx-ch-crumb {
  display: flex;
  align-items: center;
  min-height: 34px;
  margin: 0 0 var(--sx-space-4);
  padding: 0;
  color: var(--sx-text-3);
  font-size: 13px;
}
.v4-site .zltc-crumb a,
.v4-site .sx-ch-crumb a { color: var(--sx-text-2); text-decoration: none; }
.v4-site .zltc-crumb a:hover { color: var(--sx-primary); }

.v4-site .zltc-card,
.v4-site .nw-card,
.v4-site .zltc-form,
.v4-site .ai-session-sidebar,
.v4-site .ai-chat-area {
  position: relative;
  background: var(--sx-white);
  border: 1px solid var(--sx-border);
  border-radius: var(--sx-radius-card);
  box-shadow: var(--sx-shadow-card);
}
.v4-site .zltc-card,
.v4-site .zltc-form { padding: var(--sx-space-4); }
.v4-site .zltc-form { max-width: none; }
.v4-site .zltc-card + .zltc-card,
.v4-site .zltc-form + .zltc-form,
.v4-site .nw-card + .nw-card { margin-top: var(--sx-space-4); }
.v4-site .zltc-card:hover,
.v4-site .nw-card:hover { box-shadow: var(--sx-shadow-card); }

.v4-site .zltc-section-title,
.v4-site .nw-card-title {
  margin: var(--sx-space-4) 0 var(--sx-space-3);
  padding-left: 10px;
  border-left: 3px solid var(--sx-primary);
  color: var(--sx-text-1);
  font-size: 17px;
  font-weight: 650;
  line-height: 1.4;
}

.v4-site .zltc-btn,
.v4-site .zltc-v2-btn,
.v4-site .nw-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 18px;
  border: 1.5px solid var(--sx-primary);
  border-radius: var(--sx-radius-btn);
  background: var(--sx-white);
  color: var(--sx-primary);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: filter 150ms var(--sx-ease-out), background 150ms var(--sx-ease-out), box-shadow 150ms var(--sx-ease-out);
}
.v4-site .zltc-btn:hover,
.v4-site .zltc-v2-btn:hover,
.v4-site .nw-btn:hover { background: var(--sx-primary-soft); box-shadow: 0 4px 14px rgba(31, 138, 107, 0.08); }
.v4-site .zltc-btn.primary,
.v4-site .zltc-v2-btn.primary,
.v4-site .nw-btn.primary {
  background: var(--sx-primary);
  border-color: var(--sx-primary);
  color: var(--sx-white);
}
.v4-site .zltc-btn.primary:hover,
.v4-site .zltc-v2-btn.primary:hover,
.v4-site .nw-btn.primary:hover { filter: brightness(1.06); background: var(--sx-primary); }
.v4-site .zltc-btn.block,
.v4-site .zltc-v2-btn.block { display: flex; width: 100%; }
.v4-site .zltc-btn.sm,
.v4-site .zltc-v2-btn.sm,
.v4-site .nw-btn.sm { min-height: 32px; padding: 0 13px; font-size: 13px; }
.v4-site .zltc-btn.danger { border-color: var(--sx-zhuangjin-red); color: var(--sx-zhuangjin-red); }

.v4-site .zltc-tag,
.v4-site .zltc-v2-tag {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  padding: 0 10px;
  border-radius: var(--sx-radius-tag);
  background: #EFF3F1;
  color: var(--sx-text-3);
  font-size: 12px;
  line-height: 1;
}
.v4-site .zltc-tag.green { background: var(--sx-primary-soft); color: var(--sx-primary); }
.v4-site .zltc-tag.red { background: #FBEDEC; color: var(--sx-zhuangjin-red); }
.v4-site .zltc-tag.gold,
.v4-site .zltc-v2-tag.gold { background: #F8F1E0; color: #A8852F; }
.v4-site .zltc-tag.gray { background: #EFF3F1; color: var(--sx-text-3); }
.v4-site .zltc-tag.merchant { background: #FBEDEC; color: var(--sx-zhuangjin-red); }
.v4-site .zltc-tag.ota { background: #F8F1E0; color: #A8852F; }

.v4-site .zltc-field { margin-bottom: var(--sx-space-3); }
.v4-site .zltc-field label,
.v4-site .zltc-form > label {
  display: block;
  margin-bottom: 6px;
  color: var(--sx-text-2);
  font-size: 13px;
  font-weight: 500;
}
.v4-site .zltc-field input,
.v4-site .zltc-field select,
.v4-site .zltc-field textarea,
.v4-site .zltc-form input,
.v4-site .zltc-form select,
.v4-site .zltc-form textarea,
.v4-site .form-input {
  width: 100%;
  min-height: 42px;
  padding: 9px 12px;
  border: 1px solid var(--sx-border);
  border-radius: 10px;
  outline: none;
  background: var(--sx-white);
  color: var(--sx-text-1);
  font-size: 14px;
  transition: border-color 150ms var(--sx-ease-out), box-shadow 150ms var(--sx-ease-out);
}
.v4-site textarea { min-height: 92px; }
.v4-site .zltc-field input:focus,
.v4-site .zltc-field select:focus,
.v4-site .zltc-field textarea:focus,
.v4-site .form-input:focus {
  border-color: var(--sx-primary);
  box-shadow: 0 0 0 3px var(--sx-ai-glow);
}
.v4-site .zltc-field .err { color: var(--sx-zhuangjin-red); }
.v4-site .zltc-disclaimer {
  margin-top: var(--sx-space-3);
  padding: 10px 14px;
  border-left: 3px solid var(--sx-tonggu-gold);
  border-radius: 0 10px 10px 0;
  background: #FFF9EC;
  color: var(--sx-text-3);
  font-size: 12px;
}

.v4-site .zltc-tabs,
.v4-site .nw-filter-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: var(--sx-space-4);
  color: var(--sx-text-2);
  font-size: 13px;
}
.v4-site .zltc-tabs a {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 0 15px;
  border-radius: var(--sx-radius-full);
  background: var(--sx-white);
  color: var(--sx-text-2);
  text-decoration: none;
}
.v4-site .zltc-tabs a:hover { color: var(--sx-primary); background: var(--sx-primary-soft); }
.v4-site .zltc-tabs a.active { background: var(--sx-primary); color: var(--sx-white); }

.v4-site .zltc-list,
.v4-site .zltc-table {
  overflow: hidden;
  border: 1px solid var(--sx-border);
  border-radius: var(--sx-radius-card);
  background: var(--sx-white);
}
.v4-site .zltc-list-item {
  padding: var(--sx-space-3);
  border-bottom: 0.5px solid var(--sx-border);
  transition: background 150ms var(--sx-ease-out);
}
.v4-site .zltc-list-item:last-child { border-bottom: none; }
.v4-site .zltc-list-item:hover { background: #FBFDFC; }
.v4-site .zltc-list-item .title { color: var(--sx-text-1); font-weight: 650; }
.v4-site .zltc-list-item .meta,
.v4-site .zltc-list-item .desc { color: var(--sx-text-3); }
.v4-site .zltc-table th,
.v4-site .zltc-table td { border-color: var(--sx-border); color: var(--sx-text-2); }
.v4-site .zltc-table th { background: #F8FBF9; color: var(--sx-text-1); }

.v4-site .zltc-goods-grid,
.v4-site .nw-cards { gap: var(--sx-space-3); }
.v4-site .zltc-goods-grid .sx-card { animation: v4-card-in 240ms ease-out both; }
.v4-site .zltc-pager { margin-top: var(--sx-space-4); color: var(--sx-text-3); }
.v4-site .zltc-pager a {
  min-width: 34px;
  min-height: 34px;
  margin: 0 3px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--sx-border);
  border-radius: var(--sx-radius-full);
  color: var(--sx-text-2);
  text-decoration: none;
}
.v4-site .zltc-pager a:hover { border-color: var(--sx-primary); color: var(--sx-primary); }
.v4-site .zltc-pager a.disabled { opacity: 0.45; }

.v4-site .zltc-empty,
.v4-site .zltc-v2-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 180px;
  padding: var(--sx-space-5) var(--sx-space-3);
  color: var(--sx-text-3);
  text-align: center;
}
.v4-site .zltc-empty::before,
.v4-site .zltc-v2-empty .illus {
  width: 120px;
  height: 60px;
  margin-bottom: var(--sx-space-3);
  background: url('/static/images/patterns/sx-karst-silhouette.svg') center/contain no-repeat;
  opacity: 0.8;
}
.v4-site .zltc-v2-empty .text { font-size: 14px; }
.v4-site .zltc-v2-retry { margin-top: var(--sx-space-3); }
.v4-site .zltc-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 120px;
  color: var(--sx-primary);
}
.v4-site .zltc-loading::before {
  width: 22px;
  height: 22px;
  background: url('/static/images/patterns/sx-tonggu-sun.svg') center/22px no-repeat;
  animation: sx-tonggu-rotate 0.9s linear infinite;
}

.v4-site .nw-results { display: flex; flex-direction: column; gap: var(--sx-space-3); }
.v4-site .nw-card,
.v4-site .nw-conv-card { padding: var(--sx-space-3); }
.v4-site .nw-card-meta { color: var(--sx-text-3); font-size: 12px; }
.v4-site .nw-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border: 2px solid var(--sx-primary-soft);
  border-radius: var(--sx-radius-full);
  background: var(--sx-primary-soft);
  color: var(--sx-primary);
}
.v4-site .nw-pf-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--sx-space-2);
}
.v4-site .nw-pf-item {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 58px;
  padding: 10px 12px;
  border: 1px solid var(--sx-border);
  border-radius: 12px;
  background: var(--sx-white);
  color: var(--sx-text-2);
  text-decoration: none;
  transition: border-color 150ms var(--sx-ease-out), background 150ms var(--sx-ease-out), transform 150ms var(--sx-ease-out);
}
.v4-site .nw-pf-item:hover {
  border-color: var(--sx-primary);
  background: var(--sx-primary-soft);
  color: var(--sx-primary);
  transform: translateY(-2px);
}
.v4-site .nw-pf-item .icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--sx-primary-soft);
  color: var(--sx-primary);
}
.v4-site .nw-pf-item .label { font-size: 13px; }
.v4-site .zltc-v2-divider { height: 1px; margin: var(--sx-space-3) 0; background: var(--sx-border); }

.v4-site .ai-session-sidebar { overflow: hidden; }
.v4-site .ai-session-head { padding: var(--sx-space-3); border-bottom: 1px solid var(--sx-border); }
.v4-site .ai-chat-msg { margin: var(--sx-space-3) 0; }
.v4-site .ai-chat-msg .bubble {
  max-width: 78%;
  padding: 13px 16px;
  border-radius: 16px;
  box-shadow: var(--sx-shadow-card);
}
.v4-site .ai-chat-msg-user { display: flex; justify-content: flex-end; }
.v4-site .ai-chat-msg-user .bubble {
  background: linear-gradient(135deg, var(--sx-primary), #2EBD83);
  color: var(--sx-white);
  border-radius: 16px 16px 0 16px;
}
.v4-site .ai-chat-msg-ai { display: flex; flex-direction: column; align-items: flex-start; }
.v4-site .ai-chat-msg-ai .bubble {
  position: relative;
  background: var(--sx-white);
  color: var(--sx-text-2);
  border-radius: 16px 16px 16px 0;
}
.v4-site .ai-chat-msg-ai .bubble::before {
  content: '';
  position: absolute;
  left: 0;
  top: 13px;
  bottom: 13px;
  width: 3px;
  border-radius: 2px;
  background: var(--sx-primary);
}

.v4-site .nw-chat-layout {
  overflow: hidden;
  border: 1px solid var(--sx-border);
  border-radius: 18px;
  background: var(--sx-white);
  box-shadow: var(--sx-shadow-card);
}
.v4-site .nw-chat-side { background: #FBFDFC; border-right: 1px solid var(--sx-border); }
.v4-site .nw-chat-header {
  border-bottom: 1px solid var(--sx-border);
  background: var(--sx-white);
  color: var(--sx-text-1);
}
.v4-site .nw-chat-msgs { background: var(--sx-bg); }
.v4-site .nw-msg .nw-bubble { border-radius: 16px; box-shadow: var(--sx-shadow-card); }
.v4-site .nw-msg.user .nw-bubble {
  background: linear-gradient(135deg, var(--sx-primary), #2EBD83);
  color: var(--sx-white);
  border-radius: 16px 16px 0 16px;
}
.v4-site .nw-msg.ai .nw-bubble {
  background: var(--sx-white);
  color: var(--sx-text-2);
  border-radius: 16px 16px 16px 0;
}
.v4-site .nw-guide-chip,
.v4-site .nw-sess-item {
  border-color: var(--sx-border);
  border-radius: 12px;
  color: var(--sx-text-2);
}
.v4-site .nw-guide-chip:hover,
.v4-site .nw-sess-item:hover { border-color: var(--sx-primary); color: var(--sx-primary); }
.v4-site .nw-guide-chips {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.v4-site .nw-guide-chip {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  background: var(--sx-primary-soft);
  border: 1px solid transparent;
}
.v4-site .nw-order-msg {
  padding: 9px 12px;
  border: 1px solid var(--sx-border);
  border-radius: 12px;
  background: var(--sx-primary-soft);
  color: var(--sx-primary);
  font-size: 13px;
}
.v4-site .nw-order-msg.bad {
  border-color: #F3C4C0;
  background: #FBEDEC;
  color: var(--sx-zhuangjin-red);
}
.v4-site .nw-sess-dot {
  width: 8px;
  height: 8px;
  flex: none;
  border-radius: var(--sx-radius-full);
  background: var(--sx-zhuangjin-red);
}
.v4-site .nw-sess-pin { color: var(--sx-tonggu-gold); font-size: 12px; }
.v4-site .zltc-dash-row {
  display: flex;
  align-items: stretch;
  gap: var(--sx-space-3);
}
.v4-site .nw-chat-main { min-width: 0; background: var(--sx-white); }
.v4-site .nw-chat-input {
  align-items: flex-end;
  padding: var(--sx-space-3) var(--sx-space-4);
  border-top: 1px solid var(--sx-border);
  background: var(--sx-white);
}
.v4-site .nw-chat-input textarea {
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid var(--sx-border);
  border-radius: 14px;
  outline: none;
  background: var(--sx-bg);
  color: var(--sx-text-1);
  resize: none;
}
.v4-site .nw-chat-input textarea:focus {
  border-color: var(--sx-primary);
  box-shadow: 0 0 0 3px var(--sx-ai-glow);
}
.v4-site .nw-voice-btn {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  border: none;
  border-radius: var(--sx-radius-full);
  background: var(--sx-primary-soft);
  color: var(--sx-primary);
  cursor: pointer;
}
.v4-site .nw-voice-btn:hover { background: var(--sx-primary); color: var(--sx-white); }

.v4-site .v4-page [style*="background:#fff"],
.v4-site .v4-page [style*="background: #fff"] { background-color: var(--sx-white) !important; }
.v4-site .v4-page [style*="border:1px solid #eee"],
.v4-site .v4-page [style*="border: 1px solid #eee"] { border-color: var(--sx-border) !important; }
.v4-site .v4-page [style*="color:#999"],
.v4-site .v4-page [style*="color: #999"],
.v4-site .v4-page [style*="color:#888"],
.v4-site .v4-page [style*="color: #888"],
.v4-site .v4-page [style*="color:#777"],
.v4-site .v4-page [style*="color: #777"],
.v4-site .v4-page [style*="color:#666"],
.v4-site .v4-page [style*="color: #666"],
.v4-site .v4-page [style*="color:#555"],
.v4-site .v4-page [style*="color: #555"] { color: var(--sx-text-3) !important; }
.v4-site .v4-page [style*="color:#C0392B"],
.v4-site .v4-page [style*="color: #C0392B"] { color: var(--sx-zhuangjin-red) !important; }
.v4-site .v4-page [style*="color:#0072B2"],
.v4-site .v4-page [style*="color: #0072B2"] { color: var(--sx-primary) !important; }
.v4-site .v4-page [style*="color:#C0392B"],
.v4-site .v4-page [style*="color:#E67E22"],
.v4-site .v4-page [style*="color: #E67E22"],
.v4-site .v4-page [style*="color:#B9770E"],
.v4-site .v4-page [style*="color: #B9770E"] { color: #A8852F !important; }
.v4-site .v4-page [style*="border:1px solid #ddd"],
.v4-site .v4-page [style*="border: 1px solid #ddd"] { border-color: var(--sx-border) !important; }
.v4-site .v4-page [style*="background:#f5f5f5"],
.v4-site .v4-page [style*="background: #f5f5f5"] { background-color: var(--sx-bg) !important; }
.v4-site .v4-page hr { border-top: 1px solid var(--sx-border); }

@media (max-width: 1100px) {
  .v4-site .nw-pf-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .v4-site .zltc-goods-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .v4-site .zltc-dash-row { flex-direction: column; }
}
@media (max-width: 760px) {
  .v4-site .nw-pf-grid,
  .v4-site .zltc-goods-grid { grid-template-columns: 1fr; }
  .v4-site .zltc-form,
  .v4-site .zltc-card,
  .v4-site .nw-card { padding: var(--sx-space-3); }
}

/* ============================================================================
 * M150 全站 PC 规范化层：1200px 主容器 / 8px 栅格 / 溢出保护 / 状态统一
 * 说明：仅收敛活跃 v4 页面视觉，不覆盖频道主题，不改变业务结构。
 * ============================================================================ */
.v4-site {
  --sx-layout-pc: 1200px;
  --sx-layout-gutter: 24px;
  overflow-x: clip;
}
.v4-shell,
.v4-main {
  width: min(var(--sx-layout-pc), calc(100% - var(--sx-layout-gutter) * 2));
  margin-left: auto;
  margin-right: auto;
}
.v4-main {
  min-width: 0;
  padding-bottom: var(--sx-space-6);
}
.v4-main > .sx-baise {
  width: min(var(--sx-layout-pc), 100%);
  min-width: 0;
  margin-left: auto;
  margin-right: auto;
}
.v4-main > * { min-width: 0; }
.v4-site img,
.v4-site video,
.v4-site iframe,
.v4-site canvas { max-width: 100%; }
.v4-site input,
.v4-site select,
.v4-site textarea { min-width: 0; }
.v4-site img,
.v4-site video { height: auto; }
.v4-site .rich-text,
.v4-site .wk-content,
.v4-site .detail-content { overflow-wrap: anywhere; }
.v4-site .zltc-table,
.v4-site table {
  display: block;
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.v4-site .sx-card,
.v4-site .zltc-card,
.v4-site .nw-card { min-width: 0; }
.v4-site .sx-card > * { min-width: 0; }
.v4-site .sx-card-title,
.v4-site .zltc-card-title,
.v4-site .nw-card-title { min-width: 0; }
.v4-site .sx-line-1,
.v4-site .sx-line-2,
.v4-site .sx-line-3 {
  display: -webkit-box;
  overflow: hidden;
  min-width: 0;
}
.v4-site .sx-line-1 {
  display: block;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.v4-site .sx-line-2 { -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.v4-site .sx-line-3 { -webkit-line-clamp: 3; -webkit-box-orient: vertical; }

.v4-site .sx-btn,
.v4-site .zltc-btn,
.v4-site .zltc-v2-btn,
.v4-site .nw-btn {
  transition: filter var(--sx-dur-fast) var(--sx-ease-out), background var(--sx-dur-fast) var(--sx-ease-out), border-color var(--sx-dur-fast) var(--sx-ease-out), color var(--sx-dur-fast) var(--sx-ease-out);
}
.v4-site .sx-btn:disabled,
.v4-site .zltc-btn:disabled,
.v4-site .zltc-v2-btn:disabled,
.v4-site .nw-btn:disabled {
  cursor: not-allowed;
  opacity: 0.55;
  filter: none;
}
.v4-site .sx-btn.is-loading,
.v4-site .zltc-btn.is-loading,
.v4-site .zltc-v2-btn.is-loading,
.v4-site .nw-btn.is-loading {
  cursor: progress;
  opacity: 0.75;
}

.v4-site .zltc-empty,
.v4-site .zltc-v2-empty,
.v4-site .nw-empty,
.v4-site .wk-empty {
  min-width: 0;
  color: var(--sx-text-3);
  font-size: var(--sx-font-sm);
  line-height: 1.5;
}
.v4-site .zltc-v2-empty .text,
.v4-site .nw-empty .text,
.v4-site .wk-empty .text { max-width: 520px; }
.v4-site .zltc-v2-empty .sx-btn,
.v4-site .zltc-v2-empty .zltc-v2-btn { margin-top: var(--sx-space-3); }
.v4-site .zltc-loading {
  min-height: 96px;
  color: var(--sx-text-3);
  font-size: 13px;
  line-height: 1.5;
}
.v4-site .sx-skeleton {
  position: relative;
  overflow: hidden;
  min-height: 14px;
  border-radius: 8px;
  background: #EAF1ED;
}
.v4-site .sx-skeleton::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, var(--sx-white), transparent);
  animation: sx-skeleton-flow 1.2s ease-out infinite;
}
.v4-site .sx-skeleton-card {
  min-height: 132px;
  border: 1px solid var(--sx-border);
  border-radius: var(--sx-radius-card);
  background: var(--sx-white);
  padding: var(--sx-space-4);
}
.v4-site .sx-skeleton-line { margin-bottom: var(--sx-space-2); }
.v4-site .sx-skeleton-line:last-child { width: 62%; margin-bottom: 0; }
.v4-site .sx-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--sx-space-2);
  min-height: 220px;
  padding: var(--sx-space-5) var(--sx-space-3);
  color: var(--sx-text-3);
  font-size: var(--sx-font-sm);
  line-height: 1.5;
  text-align: center;
}
.v4-site .sx-state__title {
  color: var(--sx-text-1);
  font-size: var(--sx-font-lg);
  font-weight: 650;
  line-height: var(--sx-line-title);
}
.v4-site .sx-state__illustration {
  width: 180px;
  height: 70px;
  background: url('/static/images/patterns/sx-karst-silhouette.svg') center/contain no-repeat;
  opacity: 0.8;
}
.v4-site .sx-state__code {
  color: var(--sx-primary);
  font-size: 24px;
  font-weight: 750;
  line-height: 1.4;
}
.v4-site .sx-state__desc {
  max-width: 520px;
  margin: 0;
  color: var(--sx-text-2);
}
.v4-site .sx-state__action { margin-top: var(--sx-space-1); }
@keyframes sx-skeleton-flow { to { transform: translateX(100%); } }

.v4-site .zltc-modal { background: var(--sx-mask); }
.v4-site .zltc-modal-body {
  width: min(560px, calc(100vw - 32px));
  border-radius: var(--sx-radius-modal);
  box-shadow: var(--sx-shadow-modal, var(--sx-shadow-card));
}
.v4-site .zltc-modal-head {
  padding: var(--sx-space-4);
  border-bottom: 1px solid var(--sx-border);
  color: var(--sx-text-1);
  font-size: var(--sx-font-lg);
  line-height: var(--sx-line-title);
}
.v4-site .zltc-modal-content {
  max-height: min(60vh, 620px);
  padding: var(--sx-space-4);
}
.v4-site .zltc-modal-foot {
  display: flex;
  justify-content: flex-end;
  gap: var(--sx-space-2);
  padding: 0 var(--sx-space-4) var(--sx-space-4);
}
.v4-site .zltc-toast {
  top: 76px;
  max-width: min(70vw, 520px);
  border-radius: var(--sx-radius-full);
  background: rgba(26, 38, 34, 0.88);
  color: var(--sx-white);
}
.v4-site .zltc-toast.is-error { background: rgba(198, 50, 39, 0.92); }
.v4-site .zltc-toast.is-warning { background: rgba(212, 160, 61, 0.94); }

.v4-site .zltc-pager {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--sx-space-1);
  padding-top: var(--sx-space-4);
}
.v4-site .zltc-pager a { margin: 0; }
.v4-site .zltc-pager span {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  color: var(--sx-text-3);
  font-size: 13px;
}
.v4-site .pager {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--sx-space-1);
  margin-top: var(--sx-space-4);
}

.v4-site .zltc-form,
.v4-site .sx-form { border-radius: var(--sx-radius-card); }
.v4-site .form-input,
.v4-site .form-select,
.v4-site .zltc-field textarea { min-height: 42px; }
.v4-site .form-input:disabled,
.v4-site .form-select:disabled,
.v4-site .zltc-field input:disabled,
.v4-site .zltc-field select:disabled,
.v4-site .zltc-field textarea:disabled {
  cursor: not-allowed;
  background: #EFF3F1;
  color: var(--sx-text-3);
}
.v4-site ::placeholder { color: var(--sx-text-3); opacity: 1; }

.v4-site .m150-page {
  width: min(var(--sx-layout-pc), 100%);
  margin: 0 auto;
  padding-bottom: var(--sx-space-5);
}
.v4-site .m150-channel-hero {
  border: none;
  background: linear-gradient(135deg, var(--sx-chan-bg, var(--sx-primary-soft)), var(--sx-bg));
}
.v4-site .m150-channel-hero__body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sx-space-3);
  flex-wrap: wrap;
}
.v4-site .m150-channel-hero__title {
  margin: 0;
  color: var(--sx-text-1);
  font-size: 22px;
  font-weight: 700;
  line-height: var(--sx-line-title);
}
.v4-site .m150-channel-hero__sub {
  margin-top: 6px;
  color: var(--sx-text-2);
  font-size: 13px;
  line-height: 1.5;
}
.v4-site .m150-channel-hero__actions {
  display: flex;
  align-items: center;
  gap: var(--sx-space-1);
  flex-wrap: wrap;
}
.v4-site .m150-filter-row {
  display: flex;
  align-items: center;
  gap: var(--sx-space-1);
  flex-wrap: wrap;
  margin-top: var(--sx-space-2);
}
.v4-site .m150-filter-row + .m150-filter-row { margin-top: var(--sx-space-2); }
.v4-site .m150-filter-row .sx-tag {
  min-height: 32px;
  padding: 0 12px;
  cursor: pointer;
}
.v4-site .m150-filter-label {
  color: var(--sx-text-3);
  font-size: 12px;
  line-height: 1.5;
}
.v4-site .m150-layout {
  display: flex;
  align-items: flex-start;
  gap: var(--sx-space-4);
  margin-top: var(--sx-space-5);
}
.v4-site .m150-layout__aside { flex: 0 0 340px; min-width: 0; }
.v4-site .m150-layout__main { flex: 1; min-width: 0; }
.v4-site .m150-section-title {
  margin-bottom: var(--sx-space-2);
  color: var(--sx-text-1);
  font-size: var(--sx-font-base);
  font-weight: 650;
  line-height: var(--sx-line-title);
}
.v4-site .m150-latest-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--sx-space-3);
}
.v4-site .m150-action-center {
  margin-top: var(--sx-space-5);
  text-align: center;
}
.v4-site .m150-search {
  display: flex;
  gap: var(--sx-space-2);
  margin-top: var(--sx-space-4);
}
.v4-site .m150-search input { flex: 1; min-width: 0; }
.v4-site .m150-filter-panel {
  margin-top: var(--sx-space-4);
  border: 1px solid var(--sx-border);
  border-radius: var(--sx-radius-card);
  background: var(--sx-white);
  padding: var(--sx-space-3) var(--sx-space-4);
}
.v4-site .m150-filter-divider {
  margin-top: var(--sx-space-2);
  border-top: 1px dashed var(--sx-border);
  padding-top: var(--sx-space-2);
}

@media (max-width: 1199px) {
  .v4-site { --sx-layout-gutter: 20px; }
  .v4-main > .sx-baise { width: 100%; }
}

@media (max-width: 991px) {
  .v4-site { --sx-layout-gutter: 16px; }
  .v4-main { padding-bottom: var(--sx-space-5); }
  .v4-site .zltc-dash-row { flex-direction: column; }
  .v4-site .zltc-dash-row > * { width: 100%; }
  .v4-site .nw-chat-layout { flex-direction: column; height: auto; }
  .v4-site .zltc-goods-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .v4-site .nw-pf-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .v4-site .sx-section { grid-template-columns: 1fr; }
  .v4-site .m150-layout { flex-direction: column; }
  .v4-site .m150-layout__aside,
  .v4-site .m150-layout__main { width: 100%; flex: none; }
  .v4-site .m150-latest-grid { grid-template-columns: 1fr; }
  .v4-site .v4-msg .bubble,
  .v4-site .nw-msg .nw-bubble { max-width: calc(100% - 52px); }
}

@media (max-width: 767px) {
  .v4-site { --sx-layout-gutter: 12px; }
  .v4-shell,
  .v4-main { width: calc(100% - var(--sx-layout-gutter) * 2); }
  .v4-site .zltc-goods-grid,
  .v4-site .nw-pf-grid { grid-template-columns: 1fr; }
  .v4-site .v4-global-header { min-height: 56px; }
  .v4-site .v4-global-header .header-left,
  .v4-site .v4-global-header .header-actions { gap: var(--sx-space-1); }
  .v4-site .v4-input-box {
    height: 56px;
    border-radius: var(--sx-radius-search);
  }
}
