/* =========================================================
   pos-v2.css — 门店收银系统 产品页
   风格：暖墨 + 琥珀金 + 米纸色，实景照片背景（收银台 / 商场）
   结构：实景Hero+规格条 → 收银流程 → 图文交替 → 多端/离线 → 实景CTA
   ========================================================= */

:root {
  --ink-900: #120d09;
  --ink-800: #1c1510;
  --ink-700: #2a2018;
  --paper: #f7f3ec;
  --paper-2: #efe8dc;
  --line-warm: #e7ddcd;
  --amber: #e8930c;
  --amber-2: #f5b544;
  --amber-3: #f7d489;
  --amber-ink: #8a5a06;
  --pos-ink: #241c12;
  --pos-muted: #7a6f5f;
}

/* -------- 滚动渐入 -------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .7s cubic-bezier(.16, 1, .3, 1), transform .7s cubic-bezier(.16, 1, .3, 1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes pos-blink {
  0%, 100% { opacity: .55; }
  50% { opacity: 1; }
}
@keyframes pos-scan {
  0% { top: 6%; opacity: 0; }
  12% { opacity: .9; }
  88% { opacity: .9; }
  100% { top: 92%; opacity: 0; }
}
@keyframes pos-pay-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(232, 147, 12, .45); }
  60% { box-shadow: 0 0 0 12px rgba(232, 147, 12, 0); }
}
@keyframes pos-spin { to { transform: rotate(360deg); } }

/* =========================================================
   Hero（收银台实景）
   ========================================================= */
.pos-hero {
  position: relative;
  padding: 150px 0 0;
  color: #fff;
  overflow: hidden;
  background:
    linear-gradient(100deg, rgba(18, 13, 9, .94) 0%, rgba(18, 13, 9, .82) 40%, rgba(18, 13, 9, .50) 70%, rgba(18, 13, 9, .68) 100%),
    linear-gradient(180deg, rgba(18, 13, 9, .50) 0%, rgba(18, 13, 9, 0) 26%, rgba(18, 13, 9, 0) 58%, rgba(18, 13, 9, .88) 100%),
    url('../img/pos/hero-scene.jpg?v=20260924c') center 62% / cover no-repeat;
}
.pos-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  padding-bottom: 52px;
}
.pos-hero .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 20px;
  padding: 6px 16px;
  border: 1px solid rgba(245, 181, 68, .4);
  border-radius: 24px;
  background: rgba(232, 147, 12, .12);
  color: var(--amber-2);
  font: 500 11px/1.6 Arial, sans-serif;
  letter-spacing: .22em;
  text-transform: uppercase;
}
.pos-hero .eyebrow:before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--amber-2);
  animation: pos-blink 2s ease-in-out infinite;
}
.pos-hero h1 {
  margin: 0 0 18px;
  font-size: clamp(38px, 4.6vw, 58px);
  line-height: 1.16;
  letter-spacing: -.032em;
  font-weight: 800;
}
.pos-hero h1 em {
  display: block;
  margin-top: 4px;
  background: linear-gradient(135deg, var(--amber-3), var(--amber-2), var(--amber));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: .56em;
  font-style: normal;
  letter-spacing: -.02em;
}
.pos-hero .pos-desc {
  max-width: 470px;
  margin: 0 0 30px;
  color: rgba(255, 255, 255, .74);
  font-size: 15.5px;
  line-height: 1.95;
  font-weight: 300;
}
.pos-hero .hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.pos-hero .btn-primary {
  background: var(--amber);
  color: #1c1510;
  box-shadow: 0 10px 25px rgba(232, 147, 12, .3);
}
.pos-hero .btn-primary:hover { background: var(--amber-2); }
.pos-hero .btn-ghost { border-color: rgba(255, 255, 255, .45); }

/* -------- Hero 规格条 -------- */
.hero-specs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 22px 0 26px;
  border-top: 1px solid rgba(255, 255, 255, .16);
}
.hero-specs div {
  padding: 0 18px;
  border-left: 1px solid rgba(255, 255, 255, .14);
}
.hero-specs div:first-child { border-left: 0; padding-left: 0; }
.hero-specs span {
  display: block;
  margin-bottom: 6px;
  color: rgba(255, 255, 255, .48);
  font: 500 11px/1.4 Arial, sans-serif;
  letter-spacing: .14em;
}
.hero-specs strong {
  color: rgba(255, 255, 255, .94);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.6;
}

/* -------- CSS 收银终端模型 -------- */
.pos-term {
  border-radius: 16px;
  background: rgba(18, 13, 9, .42);
  border: 1px solid rgba(245, 181, 68, .3);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 34px 90px rgba(0, 0, 0, .45);
  overflow: hidden;
}
.pos-term-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 11px 16px;
  background: rgba(18, 13, 9, .72);
}
.pos-term-bar i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .22);
}
.pos-term-bar i:first-child { background: var(--amber-2); }
.pos-term-bar span {
  margin-left: 10px;
  color: rgba(255, 255, 255, .5);
  font-size: 11px;
  letter-spacing: .12em;
}
.pos-term-body {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 14px;
  padding: 16px;
}
.pos-goods {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  overflow: hidden;
}
.pos-goods:after {
  content: "";
  position: absolute;
  left: 4%;
  right: 4%;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--amber-2), transparent);
  box-shadow: 0 0 12px rgba(245, 181, 68, .8);
  animation: pos-scan 3.2s ease-in-out infinite;
  pointer-events: none;
}
.pos-goods i {
  position: relative;
  height: 62px;
  border-radius: 10px;
  border: 1px solid rgba(245, 181, 68, .26);
  background: rgba(255, 255, 255, .05);
}
.pos-goods i:before {
  content: "";
  position: absolute;
  left: 50%;
  top: 14px;
  width: 22px;
  height: 22px;
  transform: translateX(-50%);
  border: 1.5px solid rgba(245, 181, 68, .8);
  border-radius: 6px 6px 8px 8px;
}
.pos-goods i:after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 10px;
  width: 30px;
  height: 4px;
  transform: translateX(-50%);
  border-radius: 2px;
  background: rgba(255, 255, 255, .2);
}
.pos-goods i.on {
  border-color: var(--amber-2);
  background: rgba(232, 147, 12, .16);
  box-shadow: 0 0 18px rgba(232, 147, 12, .3);
}
.pos-bill {
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 14px;
  border-radius: 12px;
  background: rgba(18, 13, 9, .6);
  border: 1px solid rgba(255, 255, 255, .1);
}
.pos-bill u {
  display: block;
  height: 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, .18);
  text-decoration: none;
}
.pos-bill u:nth-child(2) { width: 78%; }
.pos-bill u:nth-child(3) { width: 62%; }
.pos-bill .total {
  margin-top: auto;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  color: rgba(255, 255, 255, .6);
  font-size: 12px;
}
.pos-bill .total b {
  color: #fff;
  font: 700 22px/1 Arial, sans-serif;
}
.pos-bill .pay {
  padding: 10px 0;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--amber-2), var(--amber));
  color: #1c1510;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .1em;
  animation: pos-pay-pulse 2.6s ease-out infinite;
}
.pos-term-foot {
  display: flex;
  gap: 8px;
  padding: 0 16px 16px;
}
.pos-term-foot span {
  flex: 1;
  padding: 8px 0;
  border-radius: 8px;
  border: 1px solid rgba(245, 181, 68, .28);
  color: rgba(255, 255, 255, .7);
  text-align: center;
  font-size: 11.5px;
  letter-spacing: .06em;
}

/* =========================================================
   通用区块
   ========================================================= */
.pos-section { padding: 96px 0; }
.pos-section.flow { background: var(--paper); }
.pos-section.splits { background: #fff; }
.pos-section.devices { background: var(--paper); }
.pos-heading {
  max-width: 720px;
  margin: 0 auto 56px;
  text-align: center;
}
.pos-heading h2 {
  margin: 0 0 14px;
  font-size: clamp(28px, 3.2vw, 40px);
  line-height: 1.28;
  letter-spacing: -.028em;
  font-weight: 700;
  color: var(--pos-ink);
}
.pos-heading p {
  margin: 0;
  color: var(--pos-muted);
  font-size: 15px;
  line-height: 1.9;
  font-weight: 300;
}

/* =========================================================
   收银流程（横向时间轴，移动端保持一行 + 连接线）
   ========================================================= */
.pos-flow {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.pos-flow:before {
  content: "";
  position: absolute;
  left: 12.5%;
  right: 12.5%;
  top: 22px;
  height: 2px;
  background: linear-gradient(90deg, var(--amber-2), var(--amber));
  opacity: .4;
}
.pos-flow-step {
  position: relative;
  text-align: center;
}
.pos-flow-step .step-dot {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-bottom: 16px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--amber);
  color: var(--amber-ink);
  font: 700 14px/1 Arial, sans-serif;
  box-shadow: 0 6px 18px rgba(138, 90, 6, .16);
}
.pos-flow-step h3 {
  margin: 0 0 8px;
  font-size: 17px;
  font-weight: 700;
  color: var(--pos-ink);
}
.pos-flow-step p {
  margin: 0 auto;
  max-width: 180px;
  color: var(--pos-muted);
  font-size: 13px;
  line-height: 1.75;
  font-weight: 300;
}

/* =========================================================
   图文交替
   ========================================================= */
.pos-split {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 64px;
  align-items: center;
}
.pos-split + .pos-split { margin-top: 84px; }
.pos-split.reverse .pos-split-media { order: -1; }
.pos-split-copy h3 {
  margin: 0 0 16px;
  font-size: clamp(22px, 2.4vw, 30px);
  line-height: 1.35;
  letter-spacing: -.02em;
  font-weight: 700;
  color: var(--pos-ink);
}
.pos-split-copy h3:before {
  content: "";
  display: block;
  width: 38px;
  height: 3px;
  margin-bottom: 18px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--amber-2), var(--amber));
}
.pos-split-copy p {
  margin: 0;
  color: var(--pos-muted);
  font-size: 15px;
  line-height: 2;
  font-weight: 300;
}
.pos-split-media { min-width: 0; }
.shot-frame {
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line-warm);
  box-shadow: 0 20px 55px rgba(60, 42, 20, .12);
}
.shot-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: #f4eee3;
  border-bottom: 1px solid var(--line-warm);
}
.shot-bar i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #ddcfb6;
}
.shot-bar i:first-child { background: var(--amber); }
.shot-frame img {
  display: block;
  width: 100%;
  height: auto;
}

/* =========================================================
   多端 + 离线
   ========================================================= */
.pos-device-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.pos-device-card {
  padding: 34px 24px 30px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--line-warm);
  text-align: center;
  transition: all .3s cubic-bezier(.16, 1, .3, 1);
}
.pos-device-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(60, 42, 20, .12);
  border-color: transparent;
}
.dev-glyph {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 64px;
  margin: 0 auto 20px;
}
.dev-glyph i {
  display: block;
  border: 2px solid var(--amber-ink);
  border-radius: 6px;
}
.dev-glyph u {
  display: block;
  background: var(--amber-ink);
  border-radius: 2px;
  text-decoration: none;
}
.dev-pc { flex-direction: column; }
.dev-pc i { width: 52px; height: 34px; }
.dev-pc u { width: 26px; height: 3px; margin: 5px auto 0; }
.dev-pad i { width: 40px; height: 52px; border-radius: 7px; }
.dev-phone i { width: 26px; height: 48px; border-radius: 7px; }
.dev-pos { flex-direction: column; }
.dev-pos i { width: 40px; height: 30px; }
.dev-pos u { width: 48px; height: 5px; margin-top: 4px; border-radius: 3px; }
.pos-device-card h3 {
  margin: 0 0 10px;
  font-size: 17px;
  font-weight: 700;
  color: var(--pos-ink);
}
.pos-device-card p {
  margin: 0;
  color: var(--pos-muted);
  font-size: 13px;
  line-height: 1.75;
  font-weight: 300;
}

.pos-offline {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-top: 40px;
  padding: 32px 36px;
  border-radius: 16px;
  background: linear-gradient(120deg, var(--ink-900) 0%, var(--ink-700) 100%);
  color: #fff;
  overflow: hidden;
  position: relative;
}
.pos-offline:after {
  content: "";
  position: absolute;
  right: -60px;
  top: -60px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232, 147, 12, .25), transparent 70%);
  pointer-events: none;
}
.offline-icon {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: rgba(232, 147, 12, .16);
  border: 1px solid rgba(245, 181, 68, .34);
}
.offline-icon i {
  width: 22px;
  height: 22px;
  border: 2.5px solid var(--amber-2);
  border-radius: 50%;
  border-top-color: transparent;
  animation: pos-spin 1.6s linear infinite;
}
.offline-copy { flex: 1 1 auto; min-width: 0; }
.offline-copy h3 {
  margin: 0 0 8px;
  font-size: 19px;
  font-weight: 700;
}
.offline-copy p {
  margin: 0;
  color: rgba(255, 255, 255, .68);
  font-size: 14px;
  line-height: 1.85;
  font-weight: 300;
}
.offline-tags {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.offline-tags span {
  padding: 7px 16px;
  border-radius: 18px;
  border: 1px solid rgba(245, 181, 68, .34);
  background: rgba(255, 255, 255, .05);
  color: rgba(255, 255, 255, .84);
  font-size: 12.5px;
  text-align: center;
  white-space: nowrap;
}

/* =========================================================
   收口 CTA（商场实景）
   ========================================================= */
.pos-cta {
  position: relative;
  padding: 108px 0;
  color: #fff;
  text-align: center;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(18, 13, 9, .88) 0%, rgba(18, 13, 9, .80) 50%, rgba(18, 13, 9, .90) 100%),
    url('../img/index/top6.jpg?v=20260924c') center 24% / cover no-repeat;
}
.pos-cta-inner { max-width: 640px; margin: 0 auto; }
.pos-cta h2 {
  margin: 0 0 16px;
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.3;
  letter-spacing: -.025em;
  font-weight: 700;
}
.pos-cta p {
  margin: 0 0 34px;
  color: rgba(255, 255, 255, .68);
  font-size: 15px;
  line-height: 1.9;
  font-weight: 300;
}
.pos-cta .hero-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
}
.pos-cta .btn-primary {
  background: var(--amber);
  color: #1c1510;
  box-shadow: 0 10px 25px rgba(232, 147, 12, .3);
}
.pos-cta .btn-primary:hover { background: var(--amber-2); }
.pos-cta .btn-ghost { border-color: rgba(255, 255, 255, .45); }

/* =========================================================
   响应式
   ========================================================= */
@media (max-width: 1024px) {
  .pos-hero { padding-top: 132px; }
  .pos-hero-grid { grid-template-columns: 1fr; gap: 44px; padding-bottom: 44px; }
  .pos-term { max-width: 560px; }
  .pos-section { padding: 78px 0; }
  .pos-split { grid-template-columns: 1fr; gap: 30px; }
  .pos-split + .pos-split { margin-top: 60px; }
  .pos-split.reverse .pos-split-media { order: 0; }
  .pos-device-grid { grid-template-columns: repeat(2, 1fr); }
  .pos-offline { flex-wrap: wrap; }
  .offline-tags { flex-direction: row; flex-wrap: wrap; }
}
@media (max-width: 900px) {
  .pos-term { display: none; }
  .hero-specs { grid-template-columns: 1fr 1fr; gap: 18px 0; }
  .hero-specs div { padding: 0 14px; }
  .hero-specs div:nth-child(odd) { border-left: 0; padding-left: 0; }
}
@media (max-width: 600px) {
  .pos-hero { padding-top: 108px; }
  .pos-hero h1 { font-size: 33px; }
  .pos-hero .pos-desc { font-size: 13.5px; }
  .hero-specs { padding: 18px 0 22px; }
  .hero-specs strong { font-size: 12.5px; white-space: normal; }
  .pos-section { padding: 58px 0; }
  .pos-heading { margin-bottom: 36px; }
  .pos-heading h2 { font-size: 25px; }
  .pos-heading p { font-size: 13.5px; }

  /* 流程时间轴：移动端保持一行横排 + 连接线 */
  .pos-flow { gap: 8px; }
  .pos-flow:before { left: 12.5%; right: 12.5%; top: 17px; }
  .pos-flow-step .step-dot { width: 34px; height: 34px; margin-bottom: 12px; font-size: 12px; }
  .pos-flow-step h3 { font-size: 14px; }
  .pos-flow-step p { font-size: 11px; max-width: none; }

  /* 图文交替：手机端文案居中 */
  .pos-split-copy { text-align: center; }
  .pos-split-copy h3:before { margin-left: auto; margin-right: auto; }
  .pos-split-copy h3 { font-size: 20px; }
  .pos-split-copy p { font-size: 13px; }

  .pos-device-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .pos-device-card { padding: 24px 14px 20px; }
  .pos-device-card h3 { font-size: 15px; }
  .pos-device-card p { font-size: 11.5px; }
  .pos-offline { flex-direction: column; align-items: flex-start; gap: 18px; padding: 26px 22px; }
  .offline-copy h3 { font-size: 17px; }
  .offline-copy p { font-size: 13px; }
  .offline-tags { flex-direction: row; flex-wrap: wrap; gap: 8px; }
  .offline-tags span { padding: 6px 13px; font-size: 11.5px; }

  .pos-cta { padding: 74px 0; }
  .pos-cta h2 { font-size: 23px; }
  .pos-cta p { font-size: 13.5px; }
}

/* 顶栏渐变跟随暖墨底色 */
.site-header { background: linear-gradient(180deg, rgba(18, 13, 9, .72), rgba(18, 13, 9, 0)); }
