/* =========================================================
   app-v2.css — 手机/平板收银系统 功能展示页
   风格：与 pos 页同族（暖墨 + 琥珀 + 米纸），结构更轻：
        实景Hero + 手机模型 → 功能卡片画廊 → 收口CTA
   ========================================================= */

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

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s cubic-bezier(.16, 1, .3, 1), transform .7s cubic-bezier(.16, 1, .3, 1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* -------- Hero -------- */
.app-hero {
  position: relative;
  padding: 150px 0 74px;
  color: #fff;
  overflow: hidden;
  background:
    linear-gradient(100deg, rgba(18, 13, 9, .94) 0%, rgba(18, 13, 9, .82) 42%, rgba(18, 13, 9, .48) 72%, rgba(18, 13, 9, .66) 100%),
    linear-gradient(180deg, rgba(18, 13, 9, .46) 0%, rgba(18, 13, 9, 0) 30%, rgba(18, 13, 9, 0) 62%, rgba(18, 13, 9, .74) 100%),
    url('../img/app/hero-app.jpg?v=20260924a') center 58% / cover no-repeat;
}
.app-hero-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 56px;
  align-items: center;
}
.app-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;
}
.app-hero .eyebrow:before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--amber-2);
}
.app-hero h1 {
  margin: 0 0 18px;
  font-size: clamp(34px, 4.2vw, 54px);
  line-height: 1.18;
  letter-spacing: -.032em;
  font-weight: 800;
}
.app-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;
}
.app-hero .app-desc {
  max-width: 460px;
  margin: 0 0 30px;
  color: rgba(255, 255, 255, .74);
  font-size: 15.5px;
  line-height: 1.95;
  font-weight: 300;
}
.app-hero .hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.app-hero .btn-primary {
  background: var(--amber);
  color: #1c1510;
  box-shadow: 0 10px 25px rgba(232, 147, 12, .3);
}
.app-hero .btn-primary:hover { background: var(--amber-2); }
.app-hero .btn-ghost { border-color: rgba(255, 255, 255, .45); }

/* 手机模型 */
.app-phone {
  width: 246px;
  padding: 10px;
  border-radius: 34px;
  background: #1c1510;
  border: 1px solid rgba(245, 181, 68, .35);
  box-shadow: 0 34px 80px rgba(0, 0, 0, .5);
  overflow: hidden;
}
.app-phone img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 24px;
}

/* -------- 功能卡片画廊 -------- */
.app-modules {
  padding: 70px 0;
  background: var(--paper);
}
.app-mod {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: 48px;
  align-items: center;
  padding: 36px 40px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid var(--line-warm);
  box-shadow: 0 10px 34px rgba(60, 42, 20, .06);
}
.app-mod + .app-mod { margin-top: 22px; }
.mod-num {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--amber);
  font: 700 13px/1 Arial, sans-serif;
  letter-spacing: .12em;
}
.app-mod h2 {
  margin: 0 0 14px;
  font-size: clamp(20px, 2.2vw, 27px);
  line-height: 1.35;
  letter-spacing: -.02em;
  font-weight: 700;
  color: var(--app-ink);
}
.app-mod p {
  margin: 0;
  color: var(--app-muted);
  font-size: 14.5px;
  line-height: 2;
  font-weight: 300;
}
.app-mod-shots {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  align-items: start;
}
.shot {
  display: block;
  width: 100%;
  object-fit: cover;
  object-position: top center;
  border-radius: 12px;
  border: 1px solid var(--line-warm);
  background: #fff;
  box-shadow: 0 8px 26px rgba(60, 42, 20, .08);
}
/* 每组以较矮一张的原始比例为统一高度，较高一张超出部分自底部裁掉 */
.ar-cashier { aspect-ratio: 750 / 1500; }
.ar-std { aspect-ratio: 1500 / 3246; }
.ar-purchase { aspect-ratio: 750 / 1334; }
.ar-member { aspect-ratio: 750 / 1480; }
.shot.natural {
  aspect-ratio: auto;
  object-fit: contain;
  object-position: center;
}
.shot.contain {
  padding: 12px;
  background: #f4eee3;
}

/* -------- CTA -------- */
.app-cta {
  padding: 88px 0;
  background: linear-gradient(160deg, var(--ink-900) 0%, var(--ink-800) 55%, var(--ink-700) 100%);
  color: #fff;
  text-align: center;
}
.app-cta-inner { max-width: 620px; margin: 0 auto; }
.app-cta h2 {
  margin: 0 0 16px;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.3;
  letter-spacing: -.025em;
  font-weight: 700;
}
.app-cta p {
  margin: 0 0 32px;
  color: rgba(255, 255, 255, .66);
  font-size: 15px;
  line-height: 1.9;
  font-weight: 300;
}
.app-cta .hero-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
}
.app-cta .btn-primary {
  background: var(--amber);
  color: #1c1510;
  box-shadow: 0 10px 25px rgba(232, 147, 12, .3);
}
.app-cta .btn-primary:hover { background: var(--amber-2); }
.app-cta .btn-ghost { border-color: rgba(255, 255, 255, .45); }

/* -------- 响应式 -------- */
@media (max-width: 1024px) {
  .app-hero { padding-top: 132px; }
  .app-mod { grid-template-columns: 1fr; gap: 26px; padding: 28px 26px; }
}
@media (max-width: 900px) {
  .app-phone { display: none; }
  .app-hero-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .app-hero { padding-top: 108px; padding-bottom: 56px; }
  .app-hero h1 { font-size: 31px; }
  .app-hero .app-desc { font-size: 13.5px; }
  .app-modules { padding: 46px 0; }
  .app-mod { width: calc(100% - 32px); padding: 24px 18px; border-radius: 12px; }
  .app-mod + .app-mod { margin-top: 14px; }
  /* 手机端功能文案居中 */
  .app-mod-copy { text-align: center; }
  .app-mod h2 { font-size: 19px; }
  .app-mod p { font-size: 13px; line-height: 1.9; }
  .app-mod-shots { gap: 10px; }
  .shot { border-radius: 9px; }
  .shot.contain { padding: 8px; }
  .app-cta { padding: 62px 0; }
  .app-cta h2 { font-size: 22px; }
  .app-cta p { font-size: 13.5px; }
}

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