/* ============================================================
   USHOW — 苹果风产品页样式（Apple-style）
   独立于 style.css，供 products.html / product-detail.html 使用
   特点：超大产品图 + 大量留白 + 克制的黑白灰 + 滚动渐显
   ============================================================ */

:root {
  --apple-bg: #FAFAFA;
  --apple-card: #FFFFFF;
  --apple-ink: #1D1D1F;
  --apple-gray: #6E6E73;
  --apple-light: #6E6E73;
  --apple-line: #E8E8ED;
  --apple-radius: 24px;
  --apple-shadow: 0 20px 60px rgba(0,0,0,0.06);
}

/* ---------- 页面骨架 ---------- */
.apple-page {
  background: var(--apple-bg);
  color: var(--apple-ink);
  -webkit-font-smoothing: antialiased;
}

/* ---------- 浅色导航变体（苹果风页面顶部白底） ---------- */
.nav-light {
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--apple-line);
}
.nav-light .logo { color: var(--primary); }
.nav-light .nav-links > li > a { color: var(--apple-ink); }
.nav-light .nav-links > li > a:hover { color: var(--primary); }
.nav-light .nav-links a.active { color: var(--primary); }
.nav-light .lang-switch { color: var(--apple-gray); }

/* ---------- 苹果风通用按钮 ---------- */
.apple-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 980px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: all .25s ease;
  border: none;
}
.apple-btn-primary {
  background: var(--primary);
  color: #fff;
}
.apple-btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); }
.apple-btn-light {
  background: #fff;
  color: var(--ink);
}
.apple-btn-light:hover { background: #f0f0f0; }
.apple-btn-link {
  background: transparent;
  color: #06C;
  font-size: 16px;
  padding: 8px 0;
}
.apple-btn-link:hover { text-decoration: underline; }

/* ---------- 页头（面包屑/小标题） ---------- */
.apple-eyebrow {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1px;
  color: var(--apple-light);
  text-transform: uppercase;
  margin-bottom: 12px;
}

/* ---------- 超大标题区 ---------- */
.apple-hero-text {
  text-align: center;
  padding: 96px 0 48px;
}
.apple-hero-text h1 {
  font-size: clamp(44px, 7vw, 76px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin-bottom: 20px;
  color: var(--apple-ink);
}
.apple-hero-text h1 .grad {
  background: linear-gradient(135deg, #226D7A, #22B8D1);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.apple-hero-text p {
  font-size: clamp(17px, 2vw, 21px);
  color: var(--apple-gray);
  max-width: 640px;
  margin: 0 auto;
}

/* ---------- 板块标题 ---------- */
.apple-section-title {
  text-align: center;
  padding: 72px 0 40px;
}
.apple-section-title h2 {
  font-size: clamp(34px, 5vw, 52px);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--apple-ink);
}
.apple-section-title p {
  font-size: 18px;
  color: var(--apple-gray);
  margin-top: 12px;
}

/* ---------- 产品列表卡片（大图 + 留白） ---------- */
.apple-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.apple-product-card {
  background: var(--apple-card);
  border-radius: var(--apple-radius);
  overflow: hidden;
  box-shadow: var(--apple-shadow);
  transition: transform .4s cubic-bezier(.2,.8,.2,1), box-shadow .4s;
  display: flex;
  flex-direction: column;
}
.apple-product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 32px 80px rgba(0,0,0,0.12);
}
.apple-product-media {
  aspect-ratio: 1 / 1;
  background: #F2F2F4;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.apple-product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s cubic-bezier(.2,.8,.2,1);
}
.apple-product-card:hover .apple-product-media img { transform: scale(1.06); }
.apple-product-body {
  padding: 28px 28px 32px;
  text-align: center;
}
.apple-product-body h3 {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}
.apple-product-spec {
  font-size: 14px;
  color: var(--apple-light);
  margin-bottom: 10px;
}
.apple-product-body p {
  font-size: 15px;
  color: var(--apple-gray);
  line-height: 1.6;
}
.apple-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 980px;
  margin-bottom: 14px;
}

/* ---------- 两板块分隔 ---------- */
.apple-divider {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.apple-divider .line {
  border: none;
  border-top: 1px solid var(--apple-line);
  margin: 40px 0;
}

/* ---------- 产品详情页 ---------- */
.apple-detail-hero {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 64px;
  align-items: center;
  padding: 64px 0 80px;
}
.apple-detail-media {
  background: #F2F2F4;
  border-radius: 32px;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.apple-detail-media img { width: 100%; height: 100%; object-fit: cover; }
.apple-detail-info h1 {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 16px;
}
.apple-detail-info .apple-lead {
  font-size: 19px;
  color: var(--apple-gray);
  line-height: 1.6;
  margin-bottom: 28px;
}
.apple-spec-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 32px;
}
.apple-spec-table th, .apple-spec-table td {
  text-align: left;
  padding: 14px 0;
  border-bottom: 1px solid var(--apple-line);
  font-size: 15px;
}
.apple-spec-table th {
  color: var(--apple-light);
  font-weight: 500;
  width: 38%;
}
.apple-spec-table td { color: var(--apple-ink); font-weight: 500; }
.apple-detail-ctas { display: flex; gap: 16px; flex-wrap: wrap; }

/* ---------- 滚动渐显动效 ---------- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity .8s cubic-bezier(.2,.8,.2,1), transform .8s cubic-bezier(.2,.8,.2,1);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
/* 交错延迟 */
.reveal[data-delay="1"] { transition-delay: .1s; }
.reveal[data-delay="2"] { transition-delay: .2s; }
.reveal[data-delay="3"] { transition-delay: .3s; }
.reveal[data-delay="4"] { transition-delay: .4s; }

/* 首屏不参与渐显：宁可不动画，也不能因为脚本异常、或预览器把页面挂在隐藏
   iframe 里（IntersectionObserver 不回调）而让页头/主图留下一片空白。
   兜底优先级高于动效，故用 !important 锁死。 */
.apple-hero-text .reveal,
.apple-detail-hero .reveal {
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
}

/* ---------- 响应式 ---------- */
@media (max-width: 960px) {
  .apple-grid { grid-template-columns: repeat(2, 1fr); }
  .apple-detail-hero { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 560px) {
  /* 手机端整体缩排：两列卡片 + 字号/间距全面收小（桌面端不受影响） */
  .apple-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .apple-hero-text { padding: 44px 0 24px; }
  .apple-hero-text h1 { font-size: 29px; }
  .apple-hero-text p { font-size: 15px; }
  .apple-section-title { padding: 40px 0 22px; }
  .apple-section-title h2 { font-size: 25px; }
  .apple-section-title p { font-size: 14px; margin-top: 8px; }
  .apple-product-body { padding: 14px 12px 16px; }
  .apple-product-body h3 { font-size: 15px; margin-bottom: 4px; }
  .apple-product-spec { font-size: 11.5px; margin-bottom: 6px; }
  .apple-product-body p { font-size: 12px; line-height: 1.5; }
  .apple-badge { font-size: 10px; padding: 3px 8px; margin-bottom: 8px; }
  .apple-btn { padding: 12px 22px; font-size: 14px; }
  .apple-detail-hero { padding: 28px 0 44px; gap: 26px; }
  .apple-detail-info h1 { font-size: 27px; }
  .apple-detail-info .apple-lead { font-size: 15px; }
  .apple-detail-media { border-radius: 20px; }
}
