/* ==================================================================
   仿真花展示站 · 样式
   配色以墨绿 + 玫瑰粉 + 奶油白为主，商务但不失花卉的柔和感。
   全程使用逻辑属性（inline-start / inline-end），因此阿拉伯语
   从右往左时无需额外改动即可自动镜像。
   ================================================================== */

:root {
  --ink: #1b2621;
  --ink-soft: #4a5c54;
  --ink-mute: #7d8d86;

  --cream: #fbf8f4;
  --paper: #ffffff;
  --line: rgba(27, 38, 33, 0.10);
  --line-strong: rgba(27, 38, 33, 0.18);

  --rose: #c2607a;
  --rose-deep: #a44a63;
  --rose-soft: #f7e8ec;
  --sage: #6f8a76;
  --gold: #b1894f;

  --radius: 18px;
  --radius-sm: 12px;
  --shadow-sm: 0 2px 10px rgba(27, 38, 33, 0.06);
  --shadow-md: 0 12px 34px rgba(27, 38, 33, 0.10);
  --shadow-lg: 0 28px 70px rgba(27, 38, 33, 0.18);

  --wrap: 1180px;
  --header-h: 68px;

  --font: "Segoe UI", -apple-system, BlinkMacSystemFont, "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Noto Naskh Arabic", Tahoma, sans-serif;
}

* { box-sizing: border-box; }

/* hidden 属性必须真的把元素藏起来。
   组件自己的 display（比如 .login-wrap 的 grid、.qr-card 的 flex）
   优先级高于 hidden 属性自带的 display:none，会把隐藏"顶掉"，
   导致该藏的没藏住（后台登录框一直占满整屏就是这么来的）。 */
[hidden] { display: none !important; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

.wrap {
  width: min(100% - 40px, var(--wrap));
  margin-inline: auto;
}

/* ---------------------------------------------------------- 顶部导航 */

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(251, 248, 244, 0.86);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s, background 0.25s;
}
.site-header.is-scrolled {
  border-bottom-color: var(--line);
  background: rgba(251, 248, 244, 0.96);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-inline-end: auto;
  min-width: 0;
}
.brand-mark { font-size: 22px; line-height: 1; }
.brand-text { display: flex; flex-direction: column; min-width: 0; }
.brand-text strong {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.brand-text small {
  font-size: 11px;
  color: var(--ink-mute);
  letter-spacing: 0.06em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.site-nav {
  display: flex;
  gap: 28px;
  font-size: 14.5px;
  font-weight: 500;
}
.site-nav a {
  color: var(--ink-soft);
  padding-block: 6px;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.site-nav a:hover { color: var(--rose); border-bottom-color: var(--rose); }

.header-tools { display: flex; align-items: center; gap: 12px; }

.lang-switch {
  display: flex;
  gap: 2px;
  padding: 3px;
  background: rgba(27, 38, 33, 0.06);
  border-radius: 999px;
}
.lang-switch button {
  border: 0;
  background: transparent;
  color: var(--ink-soft);
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  transition: background 0.2s, color 0.2s;
}
.lang-switch button:hover { color: var(--ink); }
.lang-switch button.is-active {
  background: var(--paper);
  color: var(--rose-deep);
  box-shadow: var(--shadow-sm);
}

/* 手机端用的语言下拉：比一排按钮省地方得多，
   否则"汉堡"按钮会被挤出屏幕，导航就打不开了 */
.lang-select {
  display: none;
  appearance: none;
  padding: 6px 10px;
  max-width: 96px;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  border: 0;
  background: transparent;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
}

/* ---------------------------------------------------------- 首屏 */

.hero {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  min-height: clamp(520px, 72vh, 720px);
  padding: clamp(56px, 9vw, 104px) 0 clamp(48px, 7vw, 84px);
  color: #f4efe8;
  background-color: #16211c;
  /* 真实花艺照 + 左侧压深的遮罩：文字压在暗部，图片在右侧透出来 */
  background-image:
    linear-gradient(100deg,
      rgba(14, 23, 19, 0.95) 0%,
      rgba(14, 23, 19, 0.86) 34%,
      rgba(14, 23, 19, 0.52) 66%,
      rgba(14, 23, 19, 0.34) 100%),
    url('/img/stock/hero.webp');
  background-size: cover, cover;
  background-position: center, center 38%;
  background-repeat: no-repeat;
}
.hero-glow {
  position: absolute;
  inset-block-start: -30%;
  inset-inline-end: -12%;
  width: 620px;
  height: 620px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(194, 96, 122, 0.22), transparent 66%);
  filter: blur(14px);
  pointer-events: none;
  mix-blend-mode: screen;
}

.hero-inner { position: relative; z-index: 1; max-width: 760px; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 22px;
  padding: 7px 16px;
  font-size: 13px;
  letter-spacing: 0.02em;
  color: #f7d9e1;
  background: rgba(194, 96, 122, 0.20);
  border: 1px solid rgba(247, 217, 225, 0.28);
  border-radius: 999px;
}
.hero-badge::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #f0a8bd;
  box-shadow: 0 0 0 4px rgba(240, 168, 189, 0.22);
}

.hero-title {
  margin: 0 0 18px;
  font-size: clamp(30px, 5.4vw, 54px);
  line-height: 1.16;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.hero-sub {
  margin: 0 0 30px;
  font-size: clamp(15px, 1.7vw, 17.5px);
  color: rgba(244, 239, 232, 0.78);
  max-width: 62ch;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 15px;
  font-weight: 600;
  transition: transform 0.18s, background 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--rose);
  color: #fff;
  box-shadow: 0 10px 26px rgba(194, 96, 122, 0.34);
}
.btn-primary:hover { background: var(--rose-deep); }
.btn-ghost {
  color: #f4efe8;
  border-color: rgba(244, 239, 232, 0.32);
}
.btn-ghost:hover { background: rgba(244, 239, 232, 0.10); }
.btn-block { width: 100%; }

.hero-hint {
  margin: 22px 0 0;
  font-size: 13.5px;
  color: rgba(244, 239, 232, 0.55);
}

.hero-stats {
  display: grid;
  /* 固定 4 列：auto-fit + minmax 在窄屏会排成 3+1，OEM 单独掉一行很突兀 */
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px 20px;
  margin: 46px 0 0;
  padding: 26px 0 0;
  list-style: none;
  border-top: 1px solid rgba(244, 239, 232, 0.16);
}
.hero-stats strong {
  display: block;
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #fff;
}
.hero-stats span { font-size: 13px; color: rgba(244, 239, 232, 0.62); }

/* 窄屏两列，四格排成 2×2，比 3+1 稳 */
@media (max-width: 720px) {
  .hero-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------------------------------------------------------- 区块通用 */

.section { padding: clamp(56px, 8vw, 92px) 0; }
.section-alt { background: linear-gradient(180deg, #f4efe8 0%, #fbf8f4 100%); }

.section-head { margin-bottom: 34px; }
.section-head h2 {
  margin: 0 0 8px;
  font-size: clamp(24px, 3.4vw, 34px);
  font-weight: 700;
  letter-spacing: -0.02em;
}
.section-sub { margin: 0; color: var(--ink-mute); font-size: 15px; }

/* ---------------------------------------------------------- 分类筛选 */

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 30px;
}
.tabs button {
  border: 1px solid var(--line-strong);
  background: var(--paper);
  color: var(--ink-soft);
  padding: 9px 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s;
}
.tabs button:hover { border-color: var(--rose); color: var(--rose-deep); }
.tabs button.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}
.tabs button .tab-count {
  margin-inline-start: 6px;
  font-size: 12px;
  opacity: 0.62;
}

/* ---------------------------------------------------------- 产品网格 */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(248px, 1fr));
  gap: 22px;
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.24s, box-shadow 0.24s, border-color 0.24s;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--line-strong);
}

.card-media {
  position: relative;
  aspect-ratio: 4 / 5;
  background: var(--rose-soft);
  overflow: hidden;
}
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card:hover .card-media img { transform: scale(1.04); }
.card-media img { transition: transform 0.5s cubic-bezier(0.2, 0.7, 0.3, 1); }

/* 有 360° 序列帧的产品，图片右下角挂个小角标 */
.card-spin {
  position: absolute;
  inset-block-end: 12px;
  inset-inline-end: 12px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #fff;
  background: rgba(27, 38, 33, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  backdrop-filter: blur(6px);
}

.card-badge {
  position: absolute;
  inset-block-start: 12px;
  inset-inline-start: 12px;
  padding: 4px 11px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #fff;
  background: rgba(194, 96, 122, 0.94);
  border-radius: 999px;
  backdrop-filter: blur(6px);
}

.card-body { padding: 16px 16px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card-cat { font-size: 11.5px; letter-spacing: 0.09em; text-transform: uppercase; color: var(--sage); font-weight: 600; }
.card-title { margin: 0; font-size: 16px; font-weight: 650; line-height: 1.4; }
.card-desc {
  margin: 0;
  font-size: 13.5px;
  color: var(--ink-mute);
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
/* 关键参数胶囊：起订量 / 颜色数，扫一眼就能判断 */
.card-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 2px 0 0;
  padding: 0;
  list-style: none;
}
.card-pill {
  padding: 3px 9px;
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--sage);
  background: rgba(111, 138, 118, 0.10);
  border: 1px solid rgba(111, 138, 118, 0.20);
  border-radius: 6px;
  white-space: nowrap;
}

.card-foot {
  margin-top: auto;
  padding-top: 12px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}
.card-link { font-size: 13.5px; font-weight: 600; color: var(--rose-deep); white-space: nowrap; }
.card:hover .card-link { text-decoration: underline; }

.empty { text-align: center; color: var(--ink-mute); padding: 48px 0; }

/* ---------------------------------------------------------- 关于 */

.about-body {
  margin: 0 0 44px;
  max-width: 78ch;
  font-size: 16px;
  color: var(--ink-soft);
  line-height: 1.85;
}

.why-title {
  margin: 0 0 22px;
  font-size: 19px;
  font-weight: 700;
}
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(228px, 1fr));
  gap: 18px;
}
.why-card {
  padding: 24px 22px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
}
.why-card .why-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px; height: 32px;
  margin-bottom: 14px;
  border-radius: 10px;
  background: var(--rose-soft);
  color: var(--rose-deep);
  font-size: 14px;
  font-weight: 700;
}
.why-card h4 { margin: 0 0 7px; font-size: 16px; font-weight: 650; }
.why-card p { margin: 0; font-size: 14px; color: var(--ink-mute); line-height: 1.68; }

/* ---------------------------------------------------------- 联系 */

.booth-card {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 26px;
  padding: 18px 22px;
  background: linear-gradient(100deg, #1d2b24, #2b3d33);
  color: #f4efe8;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
}
.booth-card .booth-label {
  padding: 3px 12px;
  font-size: 12px;
  font-weight: 600;
  color: #f7d9e1;
  background: rgba(194, 96, 122, 0.26);
  border-radius: 999px;
  white-space: nowrap;
}
.booth-card strong { font-size: 16.5px; font-weight: 650; }

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
}
.contact-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 20px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s, transform 0.2s;
}
a.contact-item:hover { border-color: var(--rose); transform: translateY(-2px); }
.contact-icon {
  flex: 0 0 auto;
  width: 40px; height: 40px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: var(--rose-soft);
  color: var(--rose-deep);
  font-size: 18px;
}
.contact-icon svg { width: 20px; height: 20px; }
.contact-meta { min-width: 0; }
.contact-meta dt { font-size: 12px; letter-spacing: 0.05em; color: var(--ink-mute); margin-bottom: 3px; }
.contact-meta dd { margin: 0; font-size: 14.5px; font-weight: 550; word-break: break-word; }

/* 微信二维码：国内客户习惯扫码加微信，单独给一块显眼位置 */
.qr-card {
  display: flex;
  align-items: center;
  gap: 20px;
  width: fit-content;
  margin-top: 18px;
  padding: 18px 22px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
}
.qr-card img {
  width: 130px;
  height: 130px;
  object-fit: contain;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.qr-meta { display: flex; flex-direction: column; gap: 5px; }
.qr-meta strong { font-size: 15px; font-weight: 650; }
.qr-meta span { font-size: 13px; color: var(--ink-mute); }

.contact-cta {
  margin: 26px 0 0;
  font-size: 14px;
  color: var(--ink-mute);
}

/* ---------------------------------------------------------- 页脚 */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 26px 0;
  background: var(--cream);
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  align-items: center;
  justify-content: space-between;
  font-size: 13.5px;
  color: var(--ink-mute);
}
.footer-admin { color: var(--ink-mute); }
.footer-admin:hover { color: var(--rose-deep); }

/* ICP 备案号：用国内服务器必须展示，法律要求 */
.footer-icp {
  margin-inline-start: 10px;
  font-size: 13px;
  color: var(--ink-mute);
}
.footer-icp:hover { color: var(--rose-deep); }

/* ---------------------------------------------------------- 详情弹窗 */

.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 20px;
}
.modal[hidden] { display: none; }
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(18, 26, 22, 0.62);
  backdrop-filter: blur(4px);
  animation: fade 0.22s ease;
}
.modal-panel {
  position: relative;
  z-index: 1;
  width: min(100%, 940px);
  max-height: min(88vh, 780px);
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  background: var(--paper);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  animation: rise 0.28s cubic-bezier(0.2, 0.8, 0.3, 1);
}
@keyframes fade { from { opacity: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(16px) scale(0.985); } }

.modal-close {
  position: absolute;
  inset-block-start: 12px;
  inset-inline-end: 12px;
  z-index: 3;
  width: 36px; height: 36px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink);
  font-size: 22px;
  line-height: 1;
  box-shadow: var(--shadow-sm);
}
.modal-close:hover { background: #fff; }

.modal-media { position: relative; background: var(--rose-soft); min-height: 300px; }
.modal-image { position: absolute; inset: 0; }
.modal-image img { width: 100%; height: 100%; object-fit: cover; }

.modal-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px; height: 40px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.86);
  color: var(--ink);
  font-size: 24px;
  line-height: 1;
  box-shadow: var(--shadow-sm);
  transition: background 0.2s;
}
.modal-nav:hover { background: #fff; }
.modal-nav.prev { inset-inline-start: 12px; }
.modal-nav.next { inset-inline-end: 12px; }
.modal-nav[hidden] { display: none; }

.modal-dots {
  position: absolute;
  inset-block-end: 14px;
  inset-inline: 0;
  display: flex;
  justify-content: center;
  gap: 6px;
}
.modal-dots span {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: rgba(27, 38, 33, 0.28);
}
.modal-dots span.is-active { background: var(--ink); }

.modal-body {
  padding: 32px 30px 28px;
  overflow-y: auto;
}
.modal-cat {
  margin: 0 0 8px;
  font-size: 11.5px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--sage);
  font-weight: 600;
}
.modal-title { margin: 0 0 12px; font-size: 23px; font-weight: 700; letter-spacing: -0.01em; }
.modal-desc { margin: 0 0 22px; font-size: 14.5px; color: var(--ink-soft); line-height: 1.75; }

.modal-specs-title {
  margin: 0 0 12px;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-mute);
  font-weight: 650;
}
.spec-list {
  margin: 0 0 26px;
  border-top: 1px solid var(--line);
}
.spec-list > div {
  display: flex;
  gap: 16px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.spec-list dt { flex: 0 0 92px; color: var(--ink-mute); }
.spec-list dd { margin: 0; font-weight: 550; }

/* ---------------------------------------------------------- 响应式 */

@media (max-width: 860px) {
  .modal-panel { grid-template-columns: 1fr; max-height: 90vh; overflow-y: auto; }
  .modal-media { min-height: 260px; aspect-ratio: 4 / 3; }
  .modal-body { padding: 24px 22px 22px; }
}

@media (max-width: 760px) {
  .site-nav {
    position: absolute;
    inset-block-start: var(--header-h);
    inset-inline: 0;
    flex-direction: column;
    gap: 0;
    padding: 8px 20px 16px;
    background: rgba(251, 248, 244, 0.98);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
    display: none;
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 13px 0; border-bottom: 1px solid var(--line); }
  .nav-toggle { display: flex; }
  .brand-text small { display: none; }

  .grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px; }
  .card-body { padding: 13px 13px 15px; }
  .card-title { font-size: 14.5px; }
  .card-desc { display: none; }
  .hero-stats { gap: 14px 18px; }

  /* 手机顶栏改用 Grid 布局：左列 minmax(0,1fr) 负责收缩，右列 auto
     保持内容宽度。flex 那套（margin:auto 推挤 + flex-shrink）在这里
     不可靠，会把"汉堡"按钮顶到屏幕外，导航就打不开了。 */
  .header-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
  }
  .brand { min-width: 0; margin-inline-end: 0; }
  .brand-text { min-width: 0; }
  .brand-text strong {
    font-size: 14px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .header-tools {
    grid-column: 2;
    justify-self: end;
    display: flex;
    align-items: center;
    gap: 8px;
  }
  .lang-switch { display: none; }
  .lang-select { display: block; flex: 0 0 auto; max-width: 84px; }
  .nav-toggle { display: flex; flex: 0 0 auto; }

  /* 展位号比较长时会顶破屏幕，允许换行 */
  .hero-badge {
    white-space: normal;
    max-width: 100%;
    line-height: 1.55;
    border-radius: 14px;
  }
  .hero-title { font-size: clamp(26px, 7.4vw, 34px); }
}

@media (max-width: 420px) {
  .lang-switch button { padding: 4px 6px; font-size: 11.5px; }
  .brand-text strong { max-width: 27vw; font-size: 13px; }
  .brand-mark { font-size: 18px; }
  .hero-actions .btn { flex: 1 1 100%; }
}

/* 尊重"减少动画"的系统设置 */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
  html { scroll-behavior: auto; }
}

/* ---------------------------------------------------------- RTL 微调 */

/* 阿拉伯语下，数字与拉丁字符保持左到右的正常读法 */
[dir="rtl"] .hero-stats strong,
[dir="rtl"] .card-moq,
[dir="rtl"] .spec-list dd {
  direction: ltr;
  unicode-bidi: isolate;
  text-align: start;
}
[dir="rtl"] .card-cat,
[dir="rtl"] .modal-cat { letter-spacing: 0; }

/* 阿语首屏文字靠右排，遮罩必须跟着镜像，
   否则白字正好压在图片的亮部上，读不清 */
[dir="rtl"] .hero {
  background-image:
    linear-gradient(260deg,
      rgba(14, 23, 19, 0.95) 0%,
      rgba(14, 23, 19, 0.86) 34%,
      rgba(14, 23, 19, 0.52) 66%,
      rgba(14, 23, 19, 0.34) 100%),
    url('/img/stock/hero.webp');
}

/* ---------------------------------------------------------- 滚动进入动效 */
/* 只在用户没开“减少动态效果”时生效；开了就直接显示，不做动画 */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(16px);
    transition:
      opacity 0.7s cubic-bezier(0.2, 0.7, 0.3, 1),
      transform 0.7s cubic-bezier(0.2, 0.7, 0.3, 1);
  }
  .reveal.is-in {
    opacity: 1;
    transform: none;
  }
  /* 卡片逐个进场，最多错开 8 档，再多就等太久了 */
  .card.reveal { transition-delay: calc(var(--i, 0) * 45ms); }
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
}

/* ---------------------------------------------------------- 360° 旋转查看器 */
.spin-wrap {
  position: relative;
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  background: #fff;
  cursor: grab;
  touch-action: pan-y;      /* 保留竖滑，横向拖拽交给旋转 */
  user-select: none;
  -webkit-user-select: none;
}
.spin-wrap.is-grabbing { cursor: grabbing; }
.spin-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
  -webkit-user-drag: none;
}
.spin-hint {
  position: absolute;
  inset-block-end: 16px;
  inset-inline-start: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 15px;
  font-size: 12.5px;
  font-weight: 600;
  color: #fff;
  background: rgba(27, 38, 33, 0.66);
  border-radius: 999px;
  backdrop-filter: blur(8px);
  pointer-events: none;
  transition: opacity 0.35s;
}
.spin-hint::before {
  content: "↔";
  font-size: 14px;
  opacity: 0.9;
}
.spin-wrap.is-touched .spin-hint { opacity: 0; }

/* 预加载进度条 */
.spin-bar {
  position: absolute;
  inset-block-start: 0;
  inset-inline-start: 0;
  height: 3px;
  width: 0;
  background: var(--rose);
  transition: width 0.25s ease-out;
  pointer-events: none;
}
.spin-wrap.is-ready .spin-bar { opacity: 0; transition: opacity 0.5s; }

/* ==================================================================
   视觉升级层 —— 追加覆盖，不改动上面的原有规则
   1. 首屏加滚动提示
   2. 区块标题带数量统计
   3. 产品卡片描述固定高度，底部对齐
   4. 「关于我们」改深色区块，打破整页全浅色的单调
   5. 页脚改深色，与关于区块呼应
   ================================================================== */

/* ---- 1. 首屏滚动提示 ---- */
.hero-scroll {
  position: absolute;
  inset-block-end: 24px;
  inset-inline-start: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(244, 239, 232, 0.40);
  pointer-events: none;
  z-index: 1;
}
.hero-scroll::after {
  content: "";
  width: 1px;
  height: 32px;
  background: linear-gradient(to bottom, rgba(244, 239, 232, 0.45), transparent);
  animation: scrollPulse 2.4s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.2; transform: scaleY(0.55); transform-origin: top; }
  50%      { opacity: 0.95; transform: scaleY(1);    transform-origin: top; }
}
@media (max-width: 720px) { .hero-scroll { display: none; } }

/* ---- 2. 区块标题：右侧挂数量 ---- */
.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  column-gap: 20px;
}
.section-head h2 { grid-column: 1; }
.section-head .section-sub { grid-column: 1; }
.section-count {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: end;
  padding-bottom: 5px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-mute);
  white-space: nowrap;
}
.section-count b {
  font-size: 17px;
  font-weight: 700;
  color: var(--rose-deep);
  margin: 0 2px;
}

/* ---- 3. 卡片：描述固定两行高，卡片底部齐平 ---- */
.card-desc { min-height: 2.9em; }
.card-media::after {
  content: "";
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 0 1px rgba(27, 38, 33, 0.055);
  pointer-events: none;
}
.card-title { min-height: 2.8em; }

/* ---- 4. 「关于我们」深色区块 ---- */
.section-alt {
  position: relative;
  background:
    radial-gradient(120% 100% at 100% 0%, rgba(194, 96, 122, 0.16), transparent 58%),
    radial-gradient(100% 90% at 0% 100%, rgba(111, 138, 118, 0.14), transparent 55%),
    linear-gradient(160deg, #14201a 0%, #1d2b24 55%, #16211c 100%);
  color: #eef2ef;
}
.section-alt .section-head h2 { color: #fff; }
.section-alt .section-sub { color: rgba(238, 242, 239, 0.58); }
.section-alt .about-body {
  max-width: 62ch;
  font-size: clamp(16px, 1.5vw, 18.5px);
  line-height: 1.9;
  color: rgba(238, 242, 239, 0.76);
}
.section-alt .why-title {
  margin-top: 46px;
  padding-top: 30px;
  border-top: 1px solid rgba(238, 242, 239, 0.14);
  color: #fff;
  font-size: 15px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(238, 242, 239, 0.55);
}
.section-alt .why-card {
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow: none;
  backdrop-filter: blur(6px);
  transition: background 0.25s, border-color 0.25s;
}
.section-alt .why-card:hover {
  background: rgba(255, 255, 255, 0.075);
  border-color: rgba(240, 168, 189, 0.28);
}
.section-alt .why-card .why-num {
  background: rgba(194, 96, 122, 0.22);
  color: #f0a8bd;
}
.section-alt .why-card h4 { color: #fff; }
.section-alt .why-card p { color: rgba(238, 242, 239, 0.60); }

/* ---- 5. 页脚深色，与关于区块连成一片 ---- */
.site-footer {
  background: #0f1713;
  color: rgba(238, 242, 239, 0.46);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.site-footer a { color: rgba(238, 242, 239, 0.58); }
.site-footer a:hover { color: #fff; }
.site-footer .footer-icp { color: rgba(238, 242, 239, 0.46); }
