/* hero.css —— 首页 Hero 区块（P06：背景+左列+移动统计卡；右列三卡 P07）
   仅 home.html 加载；令牌引用 tokens.css，一次性装饰值备案于 plan §2。
   源基准：App.tsx L1003-1214（1440 基准 1:1）。 */

/* ── section 容器：pt 补偿 fixed header（源 L1003 pt-16 = 64px）── */
.hero {
  position: relative;
  padding-top: 64px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ── 背景层（源 L1006-1032，装饰不入可访问树）── */
.hero-bg { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.hero-bg-base {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 90% 70% at 65% 35%, #FFF0E6 0%, #FDFCFB 55%);
}
.hero-orb { position: absolute; border-radius: 50%; }
.hero-orb-main {   /* 680px 橙 orb：桌面右上 / 移动右下溢出（源 L1011-1013 同款溢出，overflow hidden 裁切） */
  width: 680px; height: 680px; right: -120px; top: -60px;
  background: radial-gradient(circle, rgba(255,120,40,0.13) 0%, rgba(255,82,0,0.04) 55%, transparent 75%);
}
.hero-orb-2 {      /* 420px 暖 orb：左下 */
  width: 420px; height: 420px; left: -80px; bottom: 60px;
  background: radial-gradient(circle, rgba(255,150,80,0.08) 0%, transparent 70%);
}
.hero-dots  { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.35; }   /* 点阵 pattern（SVG 内联于 HTML） */
.hero-noise { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.018; }  /* feTurbulence 噪点（SVG 内联） */

/* ── 主网格（源 L1035-1036：max-w 1300px / px-6 lg:px-12 / lg 1fr_460px xl 1fr_500px）── */
.hero-grid {
  position: relative; z-index: 10;
  flex: 1; width: 100%; max-width: 1300px; margin: 0 auto;
  padding: 32px var(--section-px);
  display: grid; gap: 40px; align-items: center;
}
@media (min-width: 640px)   { .hero-grid { gap: 40px; } }
@media (min-width: 1024px)  { .hero-grid { grid-template-columns: 1fr 460px; padding-top: 0; padding-bottom: 0; } }
@media (min-width: 1280px)  { .hero-grid { grid-template-columns: 1fr 500px; gap: 64px; } }

/* ── 左列文案（源 L1039-1112）── */
.hero-copy { display: flex; flex-direction: column; }

.hero-badge {   /* 眉标胶囊+blink 呼吸点（源 L1042-1046） */
  align-self: flex-start;
  display: inline-flex; align-items: center; gap: 8px;
  margin-bottom: 20px; padding: 6px 16px;
  border-radius: var(--r-pill);
  font-size: var(--fs-xs); font-weight: 600;
  background: rgba(255, 82, 0, 0.08);
  color: var(--c-brand-deep);
  border: 1px solid rgba(255, 82, 0, 0.18);
}
.hero-badge-dot {
  width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0;
  background: var(--c-brand);
  animation: blink 2.4s infinite;   /* keyframes.css 全局定义+reduced-motion 降级 */
}

.hero-title {   /* H1 两行（源 L1049-1055），页面唯一 h1 */
  font-family: var(--font-latin);
  font-weight: 700;
  font-size: var(--fs-h1);          /* clamp(44px, 6.4vw, 92px) */
  line-height: 1.22;
  letter-spacing: -0.03em;
  color: #0A0A0A;                   /* 一次性值备案（源直写） */
  margin-bottom: 24px;
}
.hero-title span { display: block; }
.hero-title .accent { color: var(--c-brand); }   /* 「轻松做」 */

.hero-tagline {   /* 副文（源 L1058-1060） */
  margin-bottom: 24px;
  max-width: 460px;
  font-size: 15px; line-height: 1.7;
  color: var(--c-gray-500);
}
@media (min-width: 1024px) { .hero-tagline { font-size: 16px; } }

.hero-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
@media (min-width: 1024px) { .hero-pills { margin-bottom: 32px; } }
.hero-pill {   /* 特性胶囊 ×4（源 L1064-1074） */
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px;
  border-radius: var(--r-pill);
  font-size: 12.5px; font-weight: 600;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--c-surface-3);
  color: var(--c-ink-4);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.07);
}

.hero-ctas { display: flex; flex-direction: column; gap: 12px; margin-bottom: 20px; }
@media (min-width: 640px)   { .hero-ctas { flex-direction: row; } }
@media (min-width: 1024px)  { .hero-ctas { margin-bottom: 28px; } }
.hero-cta-primary, .hero-cta-secondary {   /* 双 CTA（源 L1078-1090）：移动满宽 sm 起自适应 */
  width: 100%;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 16px 32px;
  border-radius: var(--r-btn);
  font-size: 15px; line-height: 1;
  cursor: pointer;
  transition: filter 0.2s ease, transform 0.1s ease;
}
@media (min-width: 640px) { .hero-cta-primary, .hero-cta-secondary { width: auto; } }
.hero-cta-primary {   /* 主 CTA：微信弹窗（data-modal，P13 接线） */
  font-weight: 700; color: var(--c-surface);
  background: var(--c-brand);
  box-shadow: 0 2px 4px rgba(255, 82, 0, 0.2), 0 10px 28px rgba(255, 82, 0, 0.3);
  border: none;
}
.hero-cta-primary:hover  { filter: brightness(1.05); }
.hero-cta-primary:active { transform: scale(0.98); }
.hero-cta-secondary {   /* 次 CTA：锚到 #cases（P11 落地目标） */
  font-weight: 600; color: var(--c-ink-4);
  border: 1.5px solid #DDDDD8;                  /* 一次性值备案（源直写） */
  background: rgba(255, 255, 255, 0.88);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  text-decoration: none;
}
.hero-cta-secondary:hover { filter: brightness(0.98); }

.hero-social { display: flex; align-items: center; gap: 12px; padding-top: 4px; }   /* 社交证明（源 L1093-1110） */
.hero-avatars { display: flex; flex-shrink: 0; }
.hero-avatars > * + * { margin-left: -8px; }   /* -space-x-2 叠加 */
.hero-avatar {   /* randomuser 肖像 img 1:1（2026-09-16 恢复，源 L1094-1098 w-8+border2.5；P13 渐变底废止） */
  width: 32px; height: 32px; border-radius: 50%;
  border: 2.5px solid var(--c-surface);
  box-sizing: content-box; object-fit: cover; display: block;
}
.hero-stars { display: flex; gap: 2px; margin-bottom: 2px; }
.hero-social-text { font-size: 12.5px; color: var(--c-gray-400); }
.hero-social-text strong { font-weight: 700; color: var(--c-ink-3); }

/* ── 移动统计卡（源 L1195-1210，lg:hidden；数字 P07 countup 接管，SSR 静态值=最终值）── */
.hero-stats { margin-top: 0; }
@media (min-width: 1024px) { .hero-stats { display: none; } }
.hero-stats-card {
  display: flex;
  border-radius: var(--r-card);
  overflow: hidden;
  border: 1px solid var(--c-border);
  background: var(--c-surface);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.07);
}
.hero-stat { flex: 1; display: flex; flex-direction: column; align-items: center; padding: 20px 0; }
.hero-stat + .hero-stat { border-left: 1px solid #F0EDEA; }   /* 一次性值备案（源 borderRight #F0EDEA） */
.hero-stat-num {   /* StatItem 数字（源 L133-143：SG 700 clamp(24,2.8vw,34) #0A0A0A；unit 橙） */
  font-family: var(--font-latin);
  font-weight: 700; line-height: 1;
  font-size: clamp(24px, 2.8vw, 34px);
  color: #0A0A0A;                        /* 一次性值备案 */
  font-variant-numeric: tabular-nums;
  margin-bottom: 6px;
}
.hero-stat-num .unit { color: var(--c-brand); }
.hero-stat-label { font-size: 13px; font-weight: 500; color: var(--c-gray-400); }

/* ── L3 形态降级：触屏无 hover，CTA 保持可点（无 hover-only 信息）── */
@media (hover: none) {
  .hero-cta-primary:hover  { filter: none; }
  .hero-cta-secondary:hover { filter: none; }
}

/* ══════════ P07 右列三卡（源 App.tsx L1115-1192；<1024 隐藏，源站 lg:flex）══════════ */
.hcard { background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--r-card); box-shadow: var(--shadow-card); }
.hero-visual { display: none; }
@media (min-width: 1024px) {
  .hero-visual { display: flex; flex-direction: column; gap: 14px; padding-block: 32px; }
}

/* ── Card 1 · 评价轮播（SSR 全量直出，carousel.mjs 增强） ── */
.carousel { overflow: hidden; }
.carousel-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; background: #FAFAF8; border-bottom: 1px solid #EAEAE8; }
.carousel-head-left { display: flex; align-items: center; gap: 8px; }
.carousel-title { font-size: 12px; font-weight: 600; color: #111; }
.carousel-verified { font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: var(--r-pill); background: #ECFDF5; color: #059669; border: 1px solid #BBF7D0; }
.carousel-rating { display: flex; align-items: center; gap: 2px; }
.carousel-rating-num { font-size: 12px; font-weight: 700; color: #111; margin-left: 4px; }
.carousel-page { display: none; grid-template-columns: 1fr 1fr; gap: 8px; padding: 12px; height: 172px; box-sizing: border-box; opacity: 1; transition: opacity 0.26s ease; }
.carousel-page.is-active { display: grid; }
.carousel.is-fading .carousel-page.is-active { opacity: 0; }
.carousel-dots { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 0 0 14px; }
.carousel-dot { position: relative; width: 5px; height: 5px; border: 0; padding: 0; border-radius: var(--r-pill); background: #E0E0DE; cursor: pointer; transition: width 0.3s, background 0.3s; }
.carousel-dot::after { content: ''; position: absolute; inset: -5px; }   /* P15 命中区扩展（15px），视觉不变 */
.carousel-dot:hover { background: #C9C7C2; }                             /* P15 hover 补缺 */
.carousel-dot.is-active { width: 18px; background: var(--c-brand); }
/* 防御性窄容器降级（源站固定 2 列，plan §3.4 校正备案） */
@media (max-width: 299px) { .carousel-page { grid-template-columns: 1fr; height: auto; } }

.review-card { display: flex; flex-direction: column; padding: 14px; border-radius: var(--r-btn); background: #FAFAF8; border: 1px solid #EAEAE8; height: 100%; box-sizing: border-box; }
.review-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.review-avatar { width: 28px; height: 28px; border-radius: 50%; flex-shrink: 0; box-shadow: 0 0 0 2px #fff, 0 0 0 3px #E8E8E6; object-fit: cover; }   /* 源 L53-54：img alt={name} */
.review-info { flex: 1; min-width: 0; }
.review-name-row { display: flex; align-items: center; gap: 4px; font-size: 12px; }
.review-name { font-weight: 600; color: #111; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.review-sep { color: #DDD; }
.review-metric { font-weight: 600; flex-shrink: 0; }
.review-stars { display: flex; gap: 2px; margin-top: 2px; }
.review-text { font-size: 12px; line-height: 1.65; color: #555; flex: 1; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }

/* ── Card 2 · 美国仓储地图 ── */
.us-map { padding: 16px; }
.us-map-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.us-map-title { font-size: 12px; font-weight: 600; color: #111; }
.us-map-badge { font-size: 10.5px; font-weight: 600; padding: 4px 10px; border-radius: 8px; background: #FFF2EB; color: var(--c-brand-deep); }
.us-map-visual { position: relative; border-radius: var(--r-btn); overflow: hidden; height: 118px; background: linear-gradient(135deg, #F8F7F5 0%, #F2F0EE 100%); }
.us-map-visual svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.us-dot { position: absolute; transform: translate(-50%, -50%); }
.us-dot:not(.is-active) { width: 6px; height: 6px; border-radius: 50%; background: #C8C6C2; }
.us-dot.is-active { display: flex; align-items: center; justify-content: center; }
.us-dot-ripple { position: absolute; width: 18px; height: 18px; border-radius: 50%; background: rgba(255, 82, 0, 0.18); animation: ripple 2.2s ease-out infinite; }
.us-dot-core { position: relative; z-index: 10; width: 10px; height: 10px; border-radius: 50%; background: var(--c-brand); box-shadow: 0 0 0 2px #fff, 0 1px 4px rgba(255, 82, 0, 0.4); }
.us-map-legend { display: flex; align-items: center; gap: 16px; margin-top: 12px; font-size: 12px; color: #666; }
.us-map-legend i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; }
.us-map-legend .lg-active { background: var(--c-brand); }
.us-map-legend .lg-inactive { background: #C8C6C2; }
.us-map-note { margin-left: auto; font-size: 13px; font-weight: 600; color: #111; }

/* ── Card 3 · 履约时效 timeline ── */
.timeline { padding: 16px; }
.timeline-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.timeline-title { font-size: 12px; font-weight: 600; color: #111; }
.timeline-sub { font-size: 11px; color: #BBB; }
.timeline-track { display: flex; align-items: flex-start; }
.tl-step { display: flex; align-items: flex-start; flex: 1; }
.tl-step:last-child { flex: none; }
.tl-step-col { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.tl-icon { width: 40px; height: 40px; border-radius: var(--r-btn); display: flex; align-items: center; justify-content: center; font-size: 17px; background: #F5F5F3; border: 1.5px solid #EAEAE8; transition: transform 0.2s; }
.tl-step.is-accent .tl-icon { background: #FFF2EB; border-color: #FFDABF; }
.tl-step:hover .tl-icon { transform: scale(1.1); }
.tl-time { font-family: var(--font-latin); font-weight: 700; font-size: 13px; line-height: 1; color: #444; }
.tl-step.is-accent .tl-time { color: var(--c-brand); }
.tl-label { font-size: 10px; line-height: 1.25; color: #AAA; max-width: 42px; text-align: center; }
.tl-link { flex: 1; display: flex; align-items: center; padding: 0 4px 36px; }
.tl-link i { display: block; width: 100%; height: 1px; background: repeating-linear-gradient(90deg, #E0E0DE 0, #E0E0DE 3px, transparent 3px, transparent 7px); }
.tl-step.is-accent .tl-link i { background: repeating-linear-gradient(90deg, #FFDABF 0, #FFDABF 3px, transparent 3px, transparent 7px); }

/* L3 形态降级（右列段） */
@media (hover: none) {
  .tl-step:hover .tl-icon { transform: none; }
}
