/* =========================================================
   万帛家居 · 米白烫金轻奢家纺版（Ivory & Gold Luxury Textile）
   - 暖米白底 + 克制香槟金点缀 + 深暖棕文字
   - 画册式留白、柔和暖阴影、细金线分隔
   - 移动端：单栏沉浸式；桌面端（≥960px）：左名片 + 右内容双栏
   ========================================================= */

/* ===== 基础重置 ===== */
* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
:root {
  /* —— 主色：暖米白 + 香槟烫金 —— */
  --bg: #F6F1E7;
  --bg-2: #EFE7D6;
  --bg-3: #E7DCC8;
  --gold: #B08D57;
  --gold-mid: #C9A96E;
  --gold-light: #E3CE9E;
  --gold-deep: #8A6D3F;
  --gold-dark: #6B5430;
  --gold-grad: linear-gradient(135deg, #F0DFB4 0%, #D9BC82 30%, #B8935A 65%, #9A7A44 100%);
  --gold-grad-text: linear-gradient(120deg, #8A6D3F 0%, #B08D57 40%, #C9A96E 70%, #9A7A44 100%);

  /* —— 文字（深暖棕，米白上更通透高级）—— */
  --text: #2E2720;
  --text-soft: #6B5E4F;
  --text-light: #9A8E7E;

  /* —— 卡片 / 边框 / 阴影 —— */
  --card: rgba(255, 255, 255, 0.94);
  --card-solid: #FFFFFF;
  --card-solid-2: #FDFAF3;
  --border-gold: rgba(176, 141, 87, 0.30);
  --border-gold-strong: rgba(176, 141, 87, 0.62);
  --border-soft: rgba(46, 39, 32, 0.08);
  --shadow: 0 24px 60px -30px rgba(110, 88, 45, 0.40), 0 8px 22px -14px rgba(110, 88, 45, 0.22);
  --shadow-sm: 0 8px 22px -12px rgba(110, 88, 45, 0.24);
  --shadow-gold: 0 10px 30px -12px rgba(176, 141, 87, 0.42);
  --radius: 18px;

  /* —— 区块卡片 —— */
  --section-bg: linear-gradient(180deg, #FFFFFF 0%, #FDFAF3 100%);
  --section-border: rgba(176, 141, 87, 0.25);
  --section-radius: 18px;
  --section-shadow: 0 1px 0 rgba(255, 255, 255, 0.7) inset, 0 16px 38px -20px rgba(110, 88, 45, 0.32);
  --section-top-line: linear-gradient(90deg, transparent, rgba(176, 141, 87, 0.75) 50%, transparent);
  --section-padding: 22px 20px 24px;
  --section-gap: 16px;

  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);

  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-display: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "STSong", "SimSun", Georgia, serif;
}
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  min-height: 100vh;
  color: var(--text);
  background-color: var(--bg);
  line-height: 1.65;
  padding: 0 0 calc(var(--safe-bottom) + 96px);
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  overflow-x: hidden;
}

/* ===== 背景层：暖米白渐变 + 柔光（固定合成层，滚动不重绘） ===== */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    radial-gradient(110% 70% at 50% -10%, rgba(201, 169, 110, 0.18) 0%, transparent 55%),
    radial-gradient(80% 55% at 100% 100%, rgba(176, 141, 87, 0.12) 0%, transparent 60%),
    linear-gradient(180deg, #FBF7EF 0%, #F5EEE0 50%, #EFE6D4 100%);
  background-size: auto, auto, cover;
  background-position: center, center, center;
  background-repeat: no-repeat, no-repeat, no-repeat;
  transform: translateZ(0);
  will-change: transform;
}
/* 细金点纹理，增加布艺典藏质感 */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(176, 141, 87, 0.06) 1px, transparent 1px);
  background-size: 24px 24px;
  opacity: 0.7;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 15%, #000 85%, transparent);
  mask-image: linear-gradient(to bottom, transparent, #000 15%, #000 85%, transparent);
  transform: translateZ(0);
}

/* ===== 背景装饰光斑（隐藏，保持结构以便回退） ===== */
.bg-decoration { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; display: none; }

/* 页面宽度容器 */
.page { width: 100%; max-width: 1180px; padding: 0 16px; }

/* ===== 顶部栏 ===== */
.top-bar {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: calc(var(--safe-top) + 14px);
  margin-bottom: 14px;
  position: relative;
  z-index: 5;
}
.top-logo-wrap {
  display: flex;
  align-items: center;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-radius: 12px;
  border: 1px solid var(--border-gold);
  box-shadow: 0 6px 18px -10px rgba(110, 88, 45, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}
.top-logo { display: block; height: 26px; width: auto; }

/* ===== 语言切换（下拉） ===== */
.lang-switcher { position: relative; z-index: 60; }
.lang-trigger {
  display: inline-flex; align-items: center; line-height: 1; gap: 7px;
  padding: 8px 13px 8px 15px;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border: 1px solid var(--border-gold);
  border-radius: 999px;
  box-shadow: 0 6px 18px -10px rgba(110, 88, 45, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  color: var(--gold-deep);
  font-size: 13px; font-weight: 700; letter-spacing: 0.3px;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  font-family: inherit;
}
.lang-trigger:hover { transform: translateY(-1px); border-color: var(--border-gold-strong); background: rgba(255, 252, 245, 0.96); }
.lang-caret { display: block; width: 13px; height: 13px; flex-shrink: 0; transition: transform 0.25s ease; color: var(--gold); }
.lang-globe { display: block; width: 13px; height: 13px; flex-shrink: 0; color: var(--gold); transform-box: fill-box; transform-origin: center; transition: transform 0.6s ease; }
.lang-trigger:hover .lang-globe { transform: rotate(360deg); }
.lang-current { line-height: 1; }
.lang-switcher.is-open .lang-caret { transform: rotate(180deg); }
.lang-dropdown {
  position: absolute; top: calc(100% + 7px); right: 0; min-width: 140px;
  list-style: none; margin: 0; padding: 5px;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border: 1px solid var(--border-gold);
  border-radius: 14px;
  box-shadow: 0 14px 36px -14px rgba(110, 88, 45, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  opacity: 0; transform: translateY(-4px) scale(0.98); transform-origin: top right;
  transition: opacity 0.18s ease, transform 0.18s ease; pointer-events: none;
}
.lang-dropdown[hidden] { display: none; }
.lang-switcher.is-open .lang-dropdown { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
.lang-dropdown li { margin: 0; }
.lang-dropdown .lang-btn {
  display: flex; align-items: center; gap: 9px; width: 100%; border: none; background: transparent;
  color: var(--text-soft); font-size: 13px; font-weight: 600;
  padding: 8px 12px; border-radius: 9px; cursor: pointer; text-align: left;
  transition: background 0.18s ease, color 0.18s ease;
  font-family: inherit; letter-spacing: 0.2px;
}
.lang-dropdown .lang-btn .lang-flag {
  width: 22px; height: 15px; flex-shrink: 0; border-radius: 2px;
  display: block; box-shadow: 0 1px 3px rgba(46, 39, 32, 0.25);
}
.lang-dropdown .lang-btn:hover { background: rgba(176, 141, 87, 0.10); color: var(--text); }
.lang-dropdown .lang-btn.active { background: var(--gold-grad); color: #2E2720; box-shadow: 0 4px 12px -4px rgba(176, 141, 87, 0.5); }

/* ===== 顶部右侧：音乐按钮 + 语言切换 ===== */
.top-right { display: flex; align-items: center; gap: 8px; }
.music-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; padding: 0; line-height: 1;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border: 1px solid var(--border-gold);
  border-radius: 999px;
  box-shadow: 0 6px 18px -10px rgba(110, 88, 45, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  color: var(--gold);
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
  font-family: inherit;
}
.music-toggle:hover { transform: translateY(-1px); border-color: var(--border-gold-strong); }
.music-toggle:active { transform: translateY(0); }
.music-toggle .music-icon { display: block; width: 15px; height: 15px; flex-shrink: 0; }
.music-toggle .music-icon-off { display: none; }
.music-toggle.is-off .music-icon-on { display: none; }
.music-toggle.is-off .music-icon-off { display: block; }
.music-toggle.is-playing .music-icon-on {
  animation: musicPulse 1.8s ease-in-out infinite;
  transform-box: fill-box; transform-origin: center;
}
@keyframes musicPulse { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.12); opacity: 0.85; } }
@media (prefers-reduced-motion: reduce) { .music-toggle.is-playing .music-icon-on { animation: none; } }

/* ===== 主容器：仅作布局容器 ===== */
.card {
  position: relative; z-index: 2;
  width: 100%;
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
  animation: rise 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }

/* ===== 个人信息（Hero 名片） ===== */
.profile {
  position: relative;
  text-align: center;
  padding: 32px 22px 28px;
  overflow: hidden;
  border-radius: var(--section-radius);
  background: var(--section-bg);
  border: 1px solid var(--section-border);
  box-shadow: var(--section-shadow);
}
/* 区块顶部居中短金线：精致高光装饰 */
.profile::before {
  content: "";
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 46%; height: 1px; background: var(--section-top-line); opacity: 0.9; pointer-events: none;
}
/* Hero 暖金柔光底 */
.profile::after {
  content: "";
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    linear-gradient(to bottom, rgba(253, 250, 243, 0) 0%, rgba(253, 250, 243, 0.78) 62%, rgba(253, 250, 243, 1) 100%),
    radial-gradient(circle at 50% 0%, rgba(201, 169, 110, 0.26) 0, transparent 52%),
    linear-gradient(160deg, #FEFCF7 0%, #F8F1E2 100%);
}
.profile > * { position: relative; z-index: 1; }

.avatar-wrap {
  position: relative; display: inline-block; margin-bottom: 16px;
  padding: 4px; border-radius: 50%;
  background: var(--gold-grad);
  box-shadow: 0 0 0 1px rgba(176, 141, 87, 0.4), 0 14px 34px -12px rgba(176, 141, 87, 0.5);
}
.avatar-wrap::after {
  content: ""; position: absolute; inset: -6px; border-radius: 50%;
  border: 1px solid rgba(176, 141, 87, 0.32); z-index: -1;
}
.avatar {
  width: 112px; height: 112px; border-radius: 50%; object-fit: cover;
  border: 2px solid #fff; background: var(--bg-2);
  box-shadow: 0 10px 26px -10px rgba(110, 88, 45, 0.45);
  display: block;
}
.online-dot {
  position: absolute; right: 8px; bottom: 8px;
  width: 20px; height: 20px;
  background: #22c55e; border: 2px solid #fff; border-radius: 50%;
  z-index: 2; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.5);
  animation: pulse 2s infinite;
}
.online-dot svg { width: 11px; height: 11px; display: block; }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.5); }
  70% { box-shadow: 0 0 0 11px rgba(34, 197, 94, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}
.name {
  font-family: var(--font-display);
  font-size: 30px; font-weight: 800; letter-spacing: 1px;
  background: var(--gold-grad-text);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.title { font-size: 15px; color: var(--gold-deep); font-weight: 700; margin-top: 5px; letter-spacing: 0.5px; }
.company { font-size: 15px; color: rgba(46, 39, 32, 0.72); margin-top: 4px; font-weight: 500; letter-spacing: 0.2px; }
.tagline {
  font-size: 12.5px; color: var(--text-soft); margin-top: 10px; font-style: italic;
  display: inline-block; padding: 5px 14px; border-radius: 999px;
  background: rgba(176, 141, 87, 0.08); border: 1px solid var(--border-gold);
}

/* ===== 浏览与点赞互动栏 ===== */
.interaction-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-top: var(--section-gap);
  padding: 11px 15px;
  background: var(--section-bg);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--section-border);
  border-radius: var(--section-radius);
  box-shadow: var(--section-shadow);
  animation: fade-up 0.6s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: 0.12s;
}
.visitors { display: flex; align-items: center; gap: 10px; min-width: 0; flex: 1; }
.visitor-switcher { position: relative; flex: 1; min-width: 0; height: 40px; overflow: hidden; }
.switch-track {
  display: flex; flex-direction: column;
  animation: switch-vertical 5s ease-in-out infinite;
  will-change: transform;
}
.visitor-switcher:hover .switch-track { animation-play-state: paused; }
.switch-slide { height: 40px; flex-shrink: 0; display: flex; align-items: center; }
.avatar-group { display: flex; align-items: center; }
.avatar-group img {
  width: 30px; height: 30px; border-radius: 50%; object-fit: cover;
  border: 2px solid #fff; box-shadow: 0 2px 8px rgba(46, 39, 32, 0.25);
  margin-left: -10px; background: #e8dfce;
}
.avatar-group img:first-child { margin-left: 0; }
@keyframes switch-vertical {
  0%, 40%  { transform: translateY(0); }
  50%, 90% { transform: translateY(-25%); }
  100%     { transform: translateY(-50%); }
}
.view-count { display: flex; align-items: center; gap: 5px; font-size: 12.5px; color: var(--text-soft); font-weight: 600; white-space: nowrap; }
.view-count svg { width: 15px; height: 15px; color: var(--gold); flex-shrink: 0; }
.view-count #viewCount { color: var(--text); font-weight: 700; }
.like-btn {
  display: flex; align-items: center; gap: 6px;
  padding: 8px 17px;
  border: 1px solid var(--border-gold-strong);
  border-radius: 999px;
  background: var(--gold-grad);
  color: #2E2720;
  font-size: 13.5px; font-weight: 700; font-family: inherit;
  cursor: pointer;
  box-shadow: 0 6px 16px -6px rgba(176, 141, 87, 0.55);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
  flex-shrink: 0;
}
.like-btn svg { width: 16px; height: 16px; transition: transform 0.3s ease; }
.like-btn:hover { transform: translateY(-1px); filter: brightness(1.04); box-shadow: 0 10px 22px -6px rgba(176, 141, 87, 0.6); }
.like-btn:active { transform: scale(0.95); }
.like-btn.liked svg { fill: currentColor; animation: like-pop 0.4s ease; }
.like-btn.liked #likeCount { animation: count-bump 0.3s ease; }
@keyframes like-pop { 0% { transform: scale(1); } 50% { transform: scale(1.4) rotate(-12deg); } 100% { transform: scale(1); } }
@keyframes count-bump { 0% { transform: scale(1); } 50% { transform: scale(1.25); } 100% { transform: scale(1); } }

/* ===== 通用区块 ===== */
.section {
  position: relative;
  background: var(--section-bg);
  backdrop-filter: blur(8px) saturate(130%);
  -webkit-backdrop-filter: blur(8px) saturate(130%);
  border: 1px solid var(--section-border);
  border-radius: var(--section-radius);
  box-shadow: var(--section-shadow);
  padding: var(--section-padding);
  overflow: hidden;
  margin-top: var(--section-gap);
  animation: fade-up 0.6s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.section:nth-of-type(1) { animation-delay: 0.1s; }
.section:nth-of-type(2) { animation-delay: 0.18s; }
.section:nth-of-type(3) { animation-delay: 0.26s; }
.section:nth-of-type(4) { animation-delay: 0.34s; }
.section:nth-of-type(5) { animation-delay: 0.42s; }
.section:nth-of-type(6) { animation-delay: 0.5s; }
.section:nth-of-type(7) { animation-delay: 0.58s; }
.section::before {
  content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 42%; height: 1px; background: var(--section-top-line); opacity: 0.85; pointer-events: none;
}
@keyframes fade-up { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

.section-title {
  font-family: var(--font-display);
  font-size: 17px; font-weight: 800; letter-spacing: 0.5px;
  margin-bottom: 13px;
  display: flex; align-items: center; gap: 9px;
  background: var(--gold-grad-text);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.section-title::before {
  content: ""; display: inline-block; width: 22px; height: 22px; flex-shrink: 0;
  background: url("../img/logo2.png") no-repeat center / contain;
  border-radius: 6px;
  -webkit-text-fill-color: initial;
  filter: drop-shadow(0 1px 2px rgba(46, 39, 32, 0.15));
}
.section-title::after {
  content: ""; flex: 1; height: 1px; margin-left: 6px;
  background: linear-gradient(90deg, var(--border-gold-strong), transparent);
  opacity: 0.7;
}
.section-text { font-size: 14px; color: var(--text-soft); line-height: 1.85; }
.about .section-text { white-space: pre-line; }
.about-text .about-para { margin: 0 0 0.7em; }
.about-text .about-para:last-child { margin-bottom: 0; }
.about-text .about-extra { display: none; }
.about-text.expanded .about-extra { display: block; }
.about-more {
  margin-top: 8px; padding: 0; border: none; background: none;
  color: var(--gold-deep); font-size: 13px; font-weight: 600; cursor: pointer;
  display: inline-flex; align-items: center; gap: 4px; font-family: inherit;
}
.about-more:hover { color: var(--gold-dark); }
.about-more::after {
  content: ""; width: 0; height: 0;
  border-left: 4px solid transparent; border-right: 4px solid transparent;
  border-top: 5px solid currentColor; transition: transform 0.2s ease;
}
.about-more.expanded::after { transform: rotate(180deg); }

/* ===== 联系方式 ===== */
.contact-list { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.contact-item {
  display: flex; align-items: center; gap: 13px; width: 100%;
  padding: 13px 15px;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--border-soft);
  border-radius: 14px;
  text-decoration: none; color: inherit; cursor: pointer; text-align: left;
  font-family: inherit;
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.25s ease, border-color 0.25s ease, background 0.25s;
}
.contact-item:active { transform: scale(0.98); }
.contact-item:hover {
  transform: translateY(-2px);
  border-color: var(--border-gold-strong);
  background: rgba(255, 252, 245, 0.96);
  box-shadow: 0 12px 28px -16px rgba(110, 88, 45, 0.4);
}
.contact-icon {
  width: 42px; height: 42px; flex-shrink: 0; display: grid; place-items: center;
  border-radius: 12px;
  background: var(--gold-grad);
  color: #2E2720;
  border: 1px solid rgba(176, 141, 87, 0.5);
  box-shadow: 0 6px 16px -6px rgba(176, 141, 87, 0.5);
}
.contact-icon svg { width: 19px; height: 19px; }
.contact-body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.contact-label { font-size: 10.5px; color: var(--text-light); text-transform: uppercase; letter-spacing: 0.9px; font-weight: 700; }
.contact-value { font-size: 14.5px; color: var(--text); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: 1px; }
.contact-value[data-i18n="addressValue"] { white-space: normal; overflow: visible; text-overflow: clip; word-break: break-word; line-height: 1.55; }
.contact-action {
  font-size: 12px; color: #2E2720;
  background: var(--gold-grad);
  padding: 6px 14px; border-radius: 999px; flex-shrink: 0; font-weight: 700;
  border: 1px solid rgba(176, 141, 87, 0.5);
  box-shadow: 0 5px 12px -5px rgba(176, 141, 87, 0.45);
  transition: transform 0.2s ease;
}
.contact-action:hover { transform: scale(1.05); }

/* ===== 技能标签 / 社交链接（保留兼容） ===== */
.skill-tags { display: flex; flex-wrap: wrap; gap: 9px; }
.skill-tag {
  font-size: 12.5px; font-weight: 600; padding: 7px 16px; border-radius: 999px;
  background: rgba(176, 141, 87, 0.08); color: var(--gold-deep);
  border: 1px solid var(--border-gold);
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}
.skill-tag:hover { transform: translateY(-2px); background: rgba(176, 141, 87, 0.16); border-color: var(--border-gold-strong); }
.social-row { display: flex; gap: 10px; }
.social-btn {
  flex: 1; height: 48px; display: grid; place-items: center; border-radius: 14px;
  background: rgba(255, 255, 255, 0.7); border: 1px solid var(--border-soft);
  color: var(--text-soft); text-decoration: none;
  transition: all 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}
.social-btn svg { width: 21px; height: 21px; transition: transform 0.28s ease; }
.social-btn:hover { color: var(--gold-deep); border-color: var(--border-gold-strong); background: rgba(255, 252, 245, 0.96); transform: translateY(-3px); }
.social-btn:hover svg { transform: scale(1.12); }

/* ===== 使命 愿景 价值观 ===== */
.mv-grid { display: grid; grid-template-columns: 1fr; gap: 12px; margin-top: 4px; }
.mv-card {
  position: relative; padding: 18px 14px 16px; border-radius: 14px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.9), rgba(248, 241, 226, 0.85));
  border: 1px solid var(--border-soft);
  text-align: center; transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  overflow: hidden;
}
.mv-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold) 50%, transparent); opacity: 0.85;
}
.mv-card:hover { transform: translateY(-3px); border-color: var(--border-gold-strong); box-shadow: 0 12px 26px -16px rgba(110, 88, 45, 0.4); }
.mv-card-title {
  font-family: var(--font-display);
  font-size: 15px; font-weight: 700; color: var(--gold-deep);
  margin: 0 0 6px; letter-spacing: 0.3px;
}
.mv-card-text { font-size: 12.5px; color: var(--text-soft); line-height: 1.75; margin: 0; }

/* ===== 操作按钮 ===== */
.actions { margin-top: var(--section-gap); display: none; flex-direction: column; gap: 11px; }
.btn {
  position: relative; overflow: hidden; width: 100%; padding: 15px;
  border: none; border-radius: 14px;
  font-size: 15.5px; font-weight: 700; font-family: inherit; cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  letter-spacing: 0.4px;
  transition: transform 0.2s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.25s ease, filter 0.25s ease;
}
.btn svg { width: 19px; height: 19px; }
.btn:active { transform: scale(0.98); }
.btn-primary {
  background: var(--gold-grad); color: #2E2720;
  border: 1px solid rgba(176, 141, 87, 0.6);
  box-shadow: 0 12px 28px -10px rgba(176, 141, 87, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.5) inset;
}
.btn-primary:hover { transform: translateY(-2px); filter: brightness(1.04); box-shadow: 0 16px 34px -10px rgba(176, 141, 87, 0.62); }
.btn-ghost {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  color: var(--gold-deep);
  border: 1px solid var(--border-gold);
  box-shadow: 0 5px 16px -10px rgba(110, 88, 45, 0.3);
}
.btn-ghost:hover { transform: translateY(-2px); background: rgba(255, 252, 245, 0.96); border-color: var(--border-gold-strong); }

/* ===== 页脚 ===== */
.footer { margin-top: 22px; text-align: center; position: relative; z-index: 2; }
.footer p { font-size: 12px; color: var(--text-light); letter-spacing: 0.3px; }

/* ===== 底部导航栏 ===== */
.bottom-nav {
  position: fixed; left: 50%; bottom: calc(var(--safe-bottom) + 12px);
  transform: translateX(-50%);
  width: calc(100% - 32px); max-width: 460px;
  display: flex; align-items: center; gap: 4px; padding: 8px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border: 1px solid var(--border-gold);
  border-radius: 999px;
  box-shadow: 0 14px 36px -18px rgba(110, 88, 45, 0.5), 0 3px 10px -6px rgba(110, 88, 45, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  z-index: 100;
}
.nav-item {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 3px; padding: 7px 4px; border: none; background: transparent;
  color: var(--text-soft); text-decoration: none; border-radius: 999px; cursor: pointer;
  font-family: inherit; transition: transform 0.15s ease, opacity 0.15s ease, color 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}
.nav-item:active { transform: scale(0.94); opacity: 0.85; }
.nav-item:hover { color: var(--gold-deep); }
.nav-icon { width: 21px; height: 21px; display: block; }
.nav-label { font-size: 10px; font-weight: 600; line-height: 1.2; letter-spacing: 0.1px; white-space: nowrap; }
.nav-item.nav-forward {
  background: var(--gold-grad); color: #2E2720;
  box-shadow: 0 6px 18px -6px rgba(176, 141, 87, 0.6);
}

/* ===== 模态框通用 ===== */
.modal-mask {
  position: fixed; inset: 0; display: flex; align-items: center; justify-content: center;
  padding: 20px;
  background: rgba(46, 39, 32, 0.55);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  z-index: 200; opacity: 0; visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}
.modal-mask[hidden] { display: none; }
.modal-mask.show { opacity: 1; visibility: visible; }
.modal-dialog {
  position: relative; width: 100%; max-width: 380px;
  background: linear-gradient(180deg, #FFFFFF 0%, #FDFAF3 100%);
  border: 1px solid var(--border-gold);
  border-radius: 20px; padding: 18px;
  box-shadow: 0 24px 60px -20px rgba(110, 88, 45, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.6) inset;
  transform: translateY(16px) scale(0.96); transition: transform 0.25s ease;
}
.modal-mask.show .modal-dialog { transform: translateY(0) scale(1); }
.modal-close {
  position: absolute; top: 10px; right: 10px; z-index: 5;
  width: 36px; height: 36px;
  border: 1px solid var(--border-gold-strong);
  background: rgba(255, 252, 245, 0.95);
  color: var(--gold-deep);
  border-radius: 50%;
  font-size: 22px; font-weight: 700; line-height: 1;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 18px -8px rgba(110, 88, 45, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.6) inset;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  transition: transform 0.18s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.modal-close:hover {
  background: var(--gold-grad);
  color: #2E2720;
  border-color: transparent;
  transform: scale(1.1);
  box-shadow: 0 10px 24px -6px rgba(176, 141, 87, 0.6);
}
.modal-close:active { transform: scale(0.94); }
.paper-card-img, .qr-img {
  display: block; width: 100%; height: auto; border-radius: 12px; margin-bottom: 14px;
  box-shadow: 0 10px 28px -14px rgba(110, 88, 45, 0.45);
}
.qr-img { margin-bottom: 4px; }
.qr-hint {
  display: block;
  margin: 10px 0 2px;
  text-align: center;
  font-size: 13px;
  line-height: 1.6;
  font-weight: 600;
  letter-spacing: 0.3px;
  color: var(--gold-deep);
}
.modal-save { width: 100%; display: flex; align-items: center; justify-content: center; gap: 8px; }
.modal-save svg { width: 18px; height: 18px; flex-shrink: 0; }

/* ===== 产品图片预览模态框 ===== */
#productModal .modal-dialog { max-height: 88vh; overflow-y: auto; }
.product-modal-img {
  display: block; width: 100%; max-height: 55vh; object-fit: contain;
  border-radius: 12px; margin-bottom: 14px; background: #F6F1E7;
}
.product-modal-name {
  font-family: var(--font-display);
  font-size: 18px; font-weight: 800; letter-spacing: 0.3px;
  background: var(--gold-grad-text); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  margin: 0 28px 8px 0;
}
.product-modal-desc { font-size: 13px; color: var(--text-soft); line-height: 1.75; margin: 0; white-space: pre-line; word-break: break-word; }

/* ===== Toast 提示 ===== */
.toast {
  position: fixed; left: 50%; bottom: calc(var(--safe-bottom) + 92px);
  transform: translateX(-50%) translateY(20px);
  background: rgba(46, 39, 32, 0.94); color: var(--gold-light);
  border: 1px solid var(--border-gold);
  padding: 11px 22px; border-radius: 999px; font-size: 13px; font-weight: 600;
  opacity: 0; pointer-events: none; transition: all 0.3s ease; z-index: 999;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); white-space: nowrap;
  box-shadow: 0 12px 32px -12px rgba(110, 88, 45, 0.6);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ===== 滑动容器通用 ===== */
.slider {
  display: flex; gap: 12px; overflow-x: auto;
  scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
  scrollbar-width: none; padding: 2px 2px 6px; margin: 0 -2px;
}
.slider::-webkit-scrollbar { display: none; }
.slider .slide { scroll-snap-align: center; flex-shrink: 0; transition: transform 0.3s ease, box-shadow 0.3s ease; }
.slider-dots { display: flex; justify-content: center; align-items: center; gap: 6px; margin-top: 12px; }
.slider-dots .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: rgba(176, 141, 87, 0.22); border: none; padding: 0; cursor: pointer;
  transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.slider-dots .dot.active { width: 22px; border-radius: 999px; background: var(--gold-grad); box-shadow: 0 0 10px rgba(176, 141, 87, 0.5); }

/* ===== 公司环境 ===== */
.env-desc { margin-bottom: 12px; }
.env-slider .env-item {
  position: relative; width: calc(100% - 40px); margin: 0;
  border-radius: 16px; overflow: hidden;
  background: var(--card-solid);
  border: 1px solid var(--border-gold);
  box-shadow: 0 12px 30px -16px rgba(110, 88, 45, 0.4);
}
.env-item img { width: 100%; height: 190px; object-fit: cover; display: block; transition: transform 0.5s ease; }
.env-item:hover img { transform: scale(1.06); }
.env-item video { width: 100%; height: 190px; object-fit: cover; display: block; background: #000; }
.env-item figcaption {
  font-size: 13px; color: #fff; padding: 10px; text-align: center;
  font-weight: 700; letter-spacing: 0.3px;
  background: linear-gradient(to top, rgba(46, 39, 32, 0.92), rgba(46, 39, 32, 0));
  position: absolute; bottom: 0; left: 0; right: 0;
}

/* ===== 公司产品（兼容 slider 布局） ===== */
.product-desc { margin-bottom: 12px; }
.product-slider .product-card {
  width: calc(100% - 40px); display: flex; flex-direction: column;
  background: var(--card-solid);
  border: 1px solid var(--border-gold); border-radius: 16px; overflow: hidden;
  box-shadow: 0 14px 32px -18px rgba(110, 88, 45, 0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.product-slider .product-card:hover { transform: translateY(-4px); box-shadow: 0 20px 42px -18px rgba(110, 88, 45, 0.45); }
.product-card .product-img { position: relative; width: 100%; height: 150px; flex-shrink: 0; overflow: hidden; }
.product-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.5s ease; }
.product-card:hover .product-img img { transform: scale(1.07); }
.product-img::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(46, 39, 32, 0.18), transparent 45%);
  pointer-events: none;
}
.product-card .product-body { padding: 6px 12px 10px; display: flex; flex-direction: column; }
.product-name {
  font-size: 16px; font-weight: 800; letter-spacing: 0.2px;
  background: var(--gold-grad-text); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  margin-bottom: 6px;
}
.product-desc-text { font-size: 12.5px; color: var(--text-soft); line-height: 1.65; margin-bottom: 5px; }
.product-link {
  font-size: 12.5px; font-weight: 700; color: var(--gold-deep); text-decoration: none;
  align-self: flex-start; display: inline-flex; align-items: center; gap: 4px;
  transition: gap 0.2s ease, color 0.2s ease;
}
.product-link:hover { gap: 8px; color: var(--gold-dark); }

/* ===== 公司产品：分类标签 + 网格 ===== */
.product-tabs {
  display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 4px 2px 10px; margin-bottom: 16px;
  -webkit-overflow-scrolling: touch; scrollbar-width: none;
}
.product-tabs::-webkit-scrollbar { display: none; }
.product-tab {
  flex-shrink: 0; padding: 7px 16px; border-radius: 999px;
  font-size: 13px; font-weight: 600; color: var(--text-soft);
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--border-gold);
  cursor: pointer; scroll-snap-align: start; white-space: nowrap;
  transition: background 0.22s ease, color 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
  font-family: inherit;
}
.product-tab:hover { color: var(--gold-deep); border-color: var(--border-gold-strong); }
.product-tab.active {
  background: var(--gold-grad); color: #2E2720;
  border-color: transparent; box-shadow: 0 5px 14px -5px rgba(176, 141, 87, 0.5);
}
.product-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.product-grid .product-card {
  width: 100%; margin: 0; border-radius: 14px; overflow: hidden;
  background: var(--card-solid);
  border: 1px solid var(--border-gold);
  box-shadow: 0 8px 22px -14px rgba(110, 88, 45, 0.35);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.product-grid .product-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-gold-strong);
  box-shadow: 0 14px 30px -14px rgba(110, 88, 45, 0.42);
}
.product-grid .product-card .product-img {
  width: 100%; height: auto;
  aspect-ratio: 4 / 3; border-radius: 14px 14px 0 0; cursor: pointer;
}
@supports not (aspect-ratio: 1) {
  .product-grid .product-card .product-img { height: 0; padding-top: 75%; }
  .product-grid .product-card .product-img img { position: absolute; top: 0; left: 0; }
}
.product-grid .product-card .product-img::before {
  content: ""; position: absolute; top: 8px; right: 8px; width: 26px; height: 26px; border-radius: 50%;
  background: rgba(46, 39, 32, 0.55) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23E3CE9E' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3C/svg%3E") center/14px no-repeat;
  opacity: 0; transition: opacity 0.2s ease; z-index: 2; pointer-events: none;
}
.product-grid .product-card:hover .product-img::before { opacity: 1; }
.product-grid .product-name { font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.product-grid .product-desc-text {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 11.5px;
}
.product-empty { grid-column: 1 / -1; text-align: center; color: var(--text-soft); font-size: 13px; padding: 30px 0; }
.product-more {
  grid-column: 1 / -1; justify-self: center; margin-top: 4px; padding: 8px 28px;
  border-radius: 999px; font-size: 12.5px; font-weight: 600; font-family: inherit;
  color: var(--gold-deep); background: rgba(176, 141, 87, 0.08);
  border: 1px solid var(--border-gold); cursor: pointer;
  transition: background 0.22s ease, color 0.22s ease, border-color 0.22s ease;
}
.product-more:hover { background: var(--gold-grad); color: #2E2720; border-color: transparent; }

/* ===== 更多关联企业 ===== */
.related-toggle {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 12px;
  font-family: inherit; font-size: 12px; font-weight: 600; letter-spacing: 0.3px;
  padding: 6px 16px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.7); color: var(--gold-deep);
  border: 1px solid var(--border-gold);
  box-shadow: 0 4px 12px -8px rgba(110, 88, 45, 0.3);
  cursor: pointer;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease, color 0.22s ease, border-color 0.22s ease;
}
.related-toggle:hover { transform: translateY(-1px); background: var(--gold-grad); color: #2E2720; border-color: transparent; }
.related-toggle::after {
  content: ""; width: 7px; height: 7px;
  border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-1px); transition: transform 0.25s ease;
}
.related-toggle.is-open::after { transform: rotate(-135deg) translateY(1px); }
.related-list {
  list-style: none; margin: 12px auto 0; padding: 0;
  display: flex; flex-direction: column; gap: 8px; max-width: 320px;
}
.related-list[hidden] { display: none; }
.related-item {
  display: flex; align-items: center; gap: 8px; text-align: left; font-size: 12.5px;
  padding: 9px 14px; border-radius: 12px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--border-gold);
  box-shadow: 0 4px 12px -10px rgba(110, 88, 45, 0.3);
}
.related-role {
  flex-shrink: 0; font-size: 10.5px; font-weight: 700; letter-spacing: 0.5px;
  color: var(--gold-deep); padding: 2px 8px; border-radius: 999px;
  background: rgba(176, 141, 87, 0.12); border: 1px solid var(--border-gold);
}
.related-name { color: var(--text-soft); font-weight: 500; line-height: 1.4; }

/* ===== 认证徽章 ===== */
.verified-badge {
  display: flex; width: fit-content; margin: 0 auto 14px;
  align-items: center; justify-content: center; gap: 6px;
  padding: 5px 14px; border-radius: 999px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.3px;
  color: var(--gold-deep);
  background: rgba(176, 141, 87, 0.1);
  border: 1px solid var(--border-gold);
  box-shadow: 0 4px 12px -8px rgba(176, 141, 87, 0.35);
}
.verified-icon { width: 14px; height: 14px; flex-shrink: 0; color: var(--gold); }

/* ===== 微信分享引导 ===== */
.share-guide-mask { z-index: 300; }
.share-guide-dialog { max-width: 340px; text-align: center; padding: 30px 22px 22px; }
.share-guide-icon {
  width: 56px; height: 56px; margin: 0 auto 14px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--gold-grad); color: #2E2720;
  box-shadow: 0 10px 22px -6px rgba(176, 141, 87, 0.55);
}
.share-guide-icon svg { width: 27px; height: 27px; }
.share-guide-title {
  font-family: var(--font-display);
  font-size: 18px; font-weight: 700; letter-spacing: 0.3px;
  background: var(--gold-grad-text); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  margin: 0 0 8px;
}
.share-guide-text { font-size: 13.5px; line-height: 1.65; color: var(--text-soft); margin: 0 0 20px; }
.share-guide-actions { display: flex; gap: 10px; }
.share-guide-btn { width: 50%; padding: 12px; font-size: 14px; }

/* ===== 多地图导航选择面板 ===== */
.map-nav-dialog { max-width: 340px; text-align: center; padding: 26px 20px 20px; }
.map-nav-title {
  font-family: var(--font-display);
  font-size: 17px; font-weight: 700; letter-spacing: 0.3px;
  background: var(--gold-grad-text); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  margin: 0 0 4px;
}
.map-nav-sub { font-size: 12.5px; line-height: 1.5; color: var(--text-soft); margin: 0 0 16px; word-break: break-all; }
.map-nav-list { display: flex; flex-direction: column; gap: 10px; }
.map-nav-item {
  -webkit-appearance: none; appearance: none;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; padding: 13px; font-size: 15px; font-weight: 600; font-family: inherit;
  border: 1px solid var(--border-gold); border-radius: 14px;
  background: rgba(255, 255, 255, 0.7); color: var(--text); cursor: pointer;
  box-shadow: 0 4px 12px -8px rgba(110, 88, 45, 0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}
.map-nav-item:hover { transform: translateY(-2px); background: rgba(255, 252, 245, 0.96); border-color: var(--border-gold-strong); box-shadow: 0 10px 22px -12px rgba(110, 88, 45, 0.35); }
.map-nav-item:active { transform: scale(0.98); }
.map-nav-item.is-copy { background: var(--gold-grad); color: #2E2720; border-color: transparent; box-shadow: 0 8px 18px -6px rgba(176, 141, 87, 0.55); }

/* ===== 滚动性能优化（保留：滚动期间禁用毛玻璃 + 暂停动画） ===== */
.is-scrolling *,
.is-scrolling *::before,
.is-scrolling *::after {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}
.is-scrolling .switch-track,
.is-scrolling .online-dot,
.is-scrolling .music-toggle.is-playing .music-icon-on {
  animation-play-state: paused !important;
}

/* ===== 减少动效偏好 ===== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

/* ===== RTL 适配（阿拉伯语 ar） ===== */
[dir="rtl"] .lang-dropdown .lang-btn,
[dir="rtl"] .contact-item,
[dir="rtl"] .related-item { text-align: right; }

/* =========================================================
   响应式：全铺布局
   - < 600px ：移动单栏，Hero 全幅出血
   - 600~959 ：平板单栏（Hero 收为圆角卡片）
   - ≥ 960px ：桌面双栏，左固定名片 + 右内容，铺满屏幕
   ========================================================= */
@media (max-width: 959px) {
  html { scroll-behavior: auto; }
}
/* 移动端：各区块统一左右留白（含 Hero 名片） */
@media (max-width: 599px) {
  .page { padding: 0; }
  .top-bar { padding-left: 16px; padding-right: 16px; }
  .profile {
    margin-left: 16px;
    margin-right: 16px;
  }
  .interaction-bar, .section { margin-left: 16px; margin-right: 16px; }
  .footer { margin-left: 16px; margin-right: 16px; }
}
/* 平板：单栏但加大留白，Hero 为圆角卡片 */
@media (min-width: 600px) and (max-width: 959px) {
  .page { max-width: 560px; padding: 0 20px; }
  .top-bar { padding-top: calc(var(--safe-top) + 30px); }
}
/* 桌面：双栏全铺 */
@media (min-width: 960px) {
  .page { max-width: 1180px; padding: 0 32px; }
  .top-bar { padding-top: calc(var(--safe-top) + 40px); margin-bottom: 22px; }
  .card {
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 28px;
    align-items: start;
  }
  .profile {
    grid-column: 1;
    position: sticky;
    top: calc(var(--safe-top) + 24px);
    align-self: start;
  }
  .interaction-bar,
  .section,
  .actions { grid-column: 2; }
  /* 桌面右栏内：产品网格可放 3 列更显大气 */
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .mv-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1200px) {
  .page { max-width: 1240px; }
  .card { grid-template-columns: 400px 1fr; gap: 32px; }
}
/* 窄屏（≤360px）微调，防溢出 */
@media (max-width: 360px) {
  .share-guide-dialog { padding: 26px 18px 18px; }
  .name { font-size: 27px; }
  .product-grid { gap: 10px; }
}

/* =========================================================
   名片牌：右上角悬浮按钮 + 二维码模态框
   ========================================================= */
.card-plate-fab {
  position: fixed; right: 0; top: calc(var(--safe-top) + 300px);
  z-index: 150;
  display: inline-flex; flex-direction: row; align-items: center; justify-content: center;
  width: 44px; height: 44px; padding: 0;
  border: none; border-radius: 999px 0 0 999px;
  background: var(--gold-grad);
  color: #2E2720;
  font-family: inherit; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  box-shadow: 0 12px 26px -10px rgba(176, 141, 87, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.6);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.3s ease, box-shadow 0.2s ease, filter 0.2s ease;
}
/* 向右滑出消失、向左滑入出现（沿页面左右方向显隐） */
.card-plate-fab.is-hidden {
  transform: translateX(120%);
  opacity: 0;
  pointer-events: none;
}
.card-plate-fab-icon { display: flex; width: 24px; height: 24px; }
.card-plate-fab-icon svg { width: 100%; height: 100%; }
.card-plate-fab-label { font-size: 13px; font-weight: 700; line-height: 1; letter-spacing: 0.5px; }
.card-plate-fab:hover {
  filter: brightness(1.05);
  box-shadow: 0 16px 32px -10px rgba(176, 141, 87, 0.78), inset 0 1px 0 rgba(255, 255, 255, 0.65), 0 0 0 1px rgba(255, 255, 255, 0.4) inset;
}
.card-plate-fab:active { transform: scale(0.95); }

/* 模态框内容 */
.card-plate-dialog { text-align: center; padding-top: 26px; }
.card-plate-title {
  font-family: var(--font-display);
  font-size: 20px; font-weight: 800; letter-spacing: 1px;
  background: var(--gold-grad-text); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  margin: 0 0 14px;
}
.card-plate-qr-frame {
  margin: 0 auto 14px;
  width: 180px; height: 180px; padding: 10px;
  background: #fff;
  border: 1px solid var(--border-gold);
  border-radius: 14px;
  box-shadow: 0 12px 30px -16px rgba(110, 88, 45, 0.4), inset 0 0 0 1px rgba(255, 255, 255, 0.6);
  display: flex; align-items: center; justify-content: center;
}
.card-plate-qr {
  display: block; width: 100%; height: 100%; object-fit: contain; border-radius: 4px;
  /* 允许移动端长按弹出“保存图片”菜单 */
  -webkit-touch-callout: default;
  user-select: none;
}
/* 使用场景示例 */
.card-plate-scene { margin: 0 auto 14px; width: 100%; }
.card-plate-scene-label {
  margin: 0 0 8px;
  font-size: 12px; font-weight: 700; letter-spacing: 1px;
  color: var(--gold-deep);
}
.card-plate-scene-label::before,
.card-plate-scene-label::after {
  content: ""; display: inline-block; width: 18px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold));
  vertical-align: middle; margin: 0 8px;
}
.card-plate-scene-label::after {
  background: linear-gradient(90deg, var(--gold), transparent);
}
.card-plate-scene-img {
  display: block; width: 100%; max-width: 250px; margin: 0 auto;
  border-radius: 12px; border: 1px solid var(--border-gold);
  box-shadow: 0 10px 24px -14px rgba(110, 88, 45, 0.5);
  background: #F6F1E7;
  cursor: zoom-in;
}
.card-plate-hint {
  margin: 4px 4px 16px;
  font-size: 13px; line-height: 1.75; color: var(--text-soft); font-weight: 500;
}
.card-plate-actions { display: flex; gap: 10px; width: 100%; }
.card-plate-poster,
.card-plate-save { flex: 1 1 0; min-width: 0; padding: 11px 16px; display: flex; align-items: center; justify-content: center; }

/* 图片放大预览（lightbox） */
.img-viewer {
  position: fixed; inset: 0; z-index: 300;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px;
  padding: 24px;
  background: rgba(20, 16, 12, 0.88);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  opacity: 0; visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}
.img-viewer[hidden] { display: none; }
.img-viewer.show { opacity: 1; visibility: visible; }
.img-viewer-pic {
  max-width: 92vw; max-height: calc(88vh - 44px);
  border-radius: 12px;
  box-shadow: 0 24px 70px -16px rgba(0, 0, 0, 0.7);
  transform: scale(0.92);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  -webkit-user-drag: none; user-select: none;
}
.img-viewer.show .img-viewer-pic { transform: scale(1); }
.img-viewer-hint {
  margin: 0;
  color: rgba(255, 255, 255, 0.92);
  font-size: 15px; line-height: 1.5;
  text-align: center;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
}
.img-viewer-hint[hidden] { display: none; }
.img-viewer-close {
  position: absolute; top: 16px; right: 16px;
  width: 40px; height: 40px; padding: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.32);
  color: #fff; font-size: 24px; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; -webkit-tap-highlight-color: transparent;
  transition: background 0.2s ease, transform 0.2s ease;
}
.img-viewer-close:hover { background: rgba(255, 255, 255, 0.26); transform: scale(1.06); }

/* RTL 下悬浮按钮移到左侧，避免与阅读方向冲突 */
[dir="rtl"] .card-plate-fab { right: auto; left: 0; border-radius: 0 999px 999px 0; }
[dir="rtl"] .card-plate-fab.is-hidden { transform: translateX(-120%); }
