/* ===== ClawPOS 首页样式：简洁 · 快捷 · 时尚 =====
 *
 * 仅作用于首页（body.home）。导航、页脚、表单等基础样式仍由 style.css 提供，
 * 这里只做首页专属的排版与组件，避免影响产品/定价/区域等其他页面。
 *
 * 约定：
 * - 颜色沿用品牌色（火红 #C8442C / 森绿 #2F7A52），只把背景与描边处理得更干净；
 * - 不引入任何外部字体或图标库，全部使用系统字体与 emoji。
 */

.home {
  --h-bg: #FAF7F3;
  --h-surface: #FFFFFF;
  --h-soft: #F3ECE4;
  --h-ink: #1F1913;
  --h-ink-soft: #6A6055;
  --h-ink-muted: #9C9186;
  --h-line: #ECE4DA;
  --h-accent: #C8442C;
  --h-accent-2: #E07A54;
  --h-accent-soft: #FCEFE9;
  --h-green: #2F7A52;
  --h-green-soft: #EAF4EE;
  --h-r: 18px;
  --h-r-lg: 26px;
  --h-shadow: 0 1px 2px rgba(31, 25, 19, .04), 0 18px 40px -20px rgba(31, 25, 19, .22);
  --h-shadow-sm: 0 1px 2px rgba(31, 25, 19, .05), 0 10px 24px -16px rgba(31, 25, 19, .18);
  background: var(--h-bg);
  color: var(--h-ink);
}

.home h1, .home h2, .home h3 { color: var(--h-ink); }
.home .navbar { background: rgba(250, 247, 243, .88); }
.home .nav-logo { color: var(--h-ink); }
.home .nav-links > li > a { color: var(--h-ink-soft); }
.home .nav-links > li > a:hover,
.home .nav-links > li > a.active { color: var(--h-accent); background: var(--h-accent-soft); }
.home .btn-secondary { color: var(--h-ink); border-color: var(--h-line); background: transparent; }
.home .btn-secondary:hover { color: var(--h-accent); border-color: var(--h-accent); background: #fff; }
.home .footer { background: #211913; }
.home .footer-col a:hover { color: var(--h-accent-2); }
.home .gradient-text {
  background: linear-gradient(100deg, var(--h-accent) 8%, var(--h-accent-2) 92%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.home ::selection { background: var(--h-accent-soft); color: var(--h-accent); }

.h-btn-pill { border-radius: 999px; }

/* ===== Hero ===== */
.h-hero { position: relative; overflow: hidden; padding: 84px 0 66px; }
.h-hero::before {
  content: "";
  position: absolute; inset: -30% 45% 35% -15%;
  background: radial-gradient(58% 58% at 32% 22%, rgba(200, 68, 44, .11), transparent 72%);
  pointer-events: none;
}
.h-hero-grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center;
}
.h-badge {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 6px 15px; border-radius: 999px;
  background: var(--h-surface); border: 1px solid var(--h-line);
  color: var(--h-ink-soft); font-size: 13.5px; font-weight: 600;
  margin-bottom: 22px; box-shadow: var(--h-shadow-sm);
}
.h-badge .h-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--h-green); box-shadow: 0 0 0 4px var(--h-green-soft);
}
.h-hero h1 {
  font-size: clamp(2.1rem, 4.4vw, 3.4rem);
  line-height: 1.14; letter-spacing: -1.2px; margin-bottom: 20px;
}
.h-hero-copy > p {
  color: var(--h-ink-soft); font-size: 18px; max-width: 34em; margin-bottom: 30px;
}
.h-hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.h-hero-actions .btn { padding: 14px 32px; font-size: 16px; }

.h-stats { list-style: none; display: flex; flex-wrap: wrap; margin-top: 36px; }
.h-stats li { padding: 0 26px; border-left: 1px solid var(--h-line); }
.h-stats li:first-child { padding-left: 0; border-left: none; }
.h-stats strong { display: block; font-size: 28px; font-weight: 900; line-height: 1.1; letter-spacing: -.6px; color: var(--h-accent); }
.h-stats span { font-size: 13.5px; color: var(--h-ink-muted); }

.h-hero-visual { position: relative; }
.h-hero-img {
  border-radius: var(--h-r-lg); overflow: hidden;
  background: var(--h-soft); border: 1px solid var(--h-line); box-shadow: var(--h-shadow);
}
.h-hero-img img { display: block; width: 100%; height: auto; }
.h-float {
  position: absolute; left: -14px; bottom: 22px;
  display: flex; align-items: center; gap: 12px;
  padding: 13px 18px; border-radius: 16px;
  background: rgba(255, 255, 255, .93);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border: 1px solid var(--h-line); box-shadow: var(--h-shadow-sm);
}
.h-float-icon {
  width: 38px; height: 38px; border-radius: 12px; flex-shrink: 0;
  display: grid; place-items: center; font-size: 19px; background: var(--h-accent-soft);
}
.h-float strong { display: block; font-size: 15px; }
.h-float small { color: var(--h-ink-muted); font-size: 13px; }

/* ===== 通用区块 ===== */
.h-section { padding: 76px 0; }
.h-section-alt { background: var(--h-soft); }
.h-head { max-width: 660px; margin: 0 auto 44px; text-align: center; }
.h-tag {
  display: inline-block; padding: 5px 14px; border-radius: 999px;
  background: var(--h-accent-soft); color: var(--h-accent);
  font-size: 13.5px; font-weight: 700; margin-bottom: 14px;
}
.h-head h2 { font-size: clamp(1.7rem, 3.1vw, 2.4rem); letter-spacing: -.8px; margin-bottom: 12px; }
.h-head p { color: var(--h-ink-soft); font-size: 17px; }
.h-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.h-chips span {
  font-size: 13px; padding: 4px 12px; border-radius: 999px;
  background: var(--h-soft); color: var(--h-ink-soft); font-weight: 500;
}
.h-more { font-weight: 700; color: var(--h-accent); font-size: 15px; }

/* ===== 双版本 ===== */
.h-versions { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.h-version {
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--h-surface); border: 1px solid var(--h-line);
  border-radius: var(--h-r-lg); box-shadow: var(--h-shadow-sm); color: var(--h-ink);
  transition: transform .28s ease, box-shadow .28s ease;
}
.h-version:hover { transform: translateY(-4px); box-shadow: var(--h-shadow); color: var(--h-ink); }
.h-version-img { position: relative; height: 200px; overflow: hidden; background: var(--h-soft); }
.h-version-img img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.h-version:hover .h-version-img img { transform: scale(1.04); }
.h-version-tag {
  position: absolute; top: 14px; left: 14px;
  padding: 5px 14px; border-radius: 999px;
  font-size: 13px; font-weight: 700; color: #fff; background: var(--h-accent);
}
.h-version-tag.retail { background: var(--h-green); }
.h-version-body { display: flex; flex-direction: column; gap: 12px; flex: 1; padding: 26px; }
.h-version-body h3 { font-size: 22px; }
.h-version-body p { color: var(--h-ink-soft); font-size: 15.5px; }
.h-version-body .h-more { margin-top: auto; }

/* ===== 核心优势 ===== */
.h-why { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.h-why-lead { grid-column: 1 / -1; }
.h-why-card {
  background: var(--h-surface); border: 1px solid var(--h-line);
  border-radius: var(--h-r); padding: 28px; box-shadow: var(--h-shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.h-why-card:hover { transform: translateY(-3px); box-shadow: var(--h-shadow); border-color: #E2D4C6; }
.h-why-icon {
  width: 48px; height: 48px; border-radius: 14px; margin-bottom: 16px;
  display: grid; place-items: center; font-size: 23px; background: var(--h-accent-soft);
}
.h-why-card h3 { font-size: 19px; margin-bottom: 8px; }
.h-why-card p { color: var(--h-ink-soft); font-size: 15.5px; }
.h-why-lead {
  display: grid; grid-template-columns: auto 1fr; gap: 22px; align-items: start;
  padding: 32px; background: linear-gradient(135deg, #FFF6F1 0%, #FFFFFF 58%);
  border-color: #F1DED4;
}
.h-why-lead .h-why-icon { width: 56px; height: 56px; margin-bottom: 0; }
.h-why-lead h3 { font-size: 23px; }
.h-why-lead p { max-width: 64ch; }
.h-why-lead .h-chips { margin-top: 14px; }

/* ===== 全球覆盖 + 硬件 ===== */
.h-global { display: grid; grid-template-columns: 1.05fr .95fr; gap: 22px; }
.h-panel {
  background: var(--h-surface); border: 1px solid var(--h-line);
  border-radius: var(--h-r-lg); padding: 30px; box-shadow: var(--h-shadow-sm);
}
.h-panel > h3 { font-size: 19px; margin-bottom: 18px; }
.h-regions { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.h-regions li {
  display: flex; gap: 10px; align-items: center;
  padding: 12px 14px; border-radius: 14px;
  background: var(--h-bg); border: 1px solid var(--h-line);
}
.h-regions .flag { font-size: 22px; line-height: 1; }
.h-regions strong { display: block; font-size: 15px; }
.h-regions small { color: var(--h-ink-muted); font-size: 12.5px; }
.h-hw-count { display: flex; align-items: baseline; gap: 8px; margin-bottom: 16px; }
.h-hw-count strong { font-size: 50px; font-weight: 900; line-height: 1; letter-spacing: -1.5px; color: var(--h-accent); }
.h-hw-count span { font-weight: 600; color: var(--h-ink-soft); }
.h-hw-cats { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 16px; }
.h-hw-cats li {
  padding: 10px 12px; border-radius: 12px; font-size: 14.5px; font-weight: 600;
  background: var(--h-bg); border: 1px solid var(--h-line);
}
.h-hw-note { color: var(--h-ink-soft); font-size: 14.5px; margin-bottom: 16px; }

/* ===== 國家 / 地區專頁連結（首頁與各國頁共用） ===== */
.h-links { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.h-links a {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 16px; border-radius: 14px;
  background: var(--h-surface); border: 1px solid var(--h-line);
  box-shadow: var(--h-shadow-sm); color: var(--h-ink);
  transition: transform .2s ease, box-shadow .2s ease;
}
.h-links a:hover { transform: translateY(-2px); box-shadow: var(--h-shadow); color: var(--h-ink); }
.h-links .flag { font-size: 20px; line-height: 1; }
.h-links strong { display: block; font-size: 15px; }
.h-links small { color: var(--h-ink-muted); font-size: 12.5px; }

/* ===== 三步开店 ===== */
.h-steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.h-steps li {
  position: relative; padding: 28px 24px;
  background: var(--h-surface); border: 1px solid var(--h-line);
  border-radius: var(--h-r); box-shadow: var(--h-shadow-sm);
}
.h-steps li:not(:last-child)::after {
  content: ""; position: absolute; top: 50px; right: -13px; width: 26px; height: 2px;
  background: linear-gradient(90deg, var(--h-line), transparent);
}
.h-step-num {
  display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 16px;
  border-radius: 50%; background: var(--h-accent); color: #fff;
  font-size: 17px; font-weight: 800;
}
.h-steps h3 { font-size: 18px; margin-bottom: 8px; }
.h-steps p { color: var(--h-ink-soft); font-size: 15px; }

/* ===== 结尾号召 ===== */
.h-cta { padding: 8px 0 84px; }
.h-cta-card {
  position: relative; overflow: hidden; padding: 64px 32px; text-align: center;
  border-radius: 28px; box-shadow: var(--h-shadow);
  background: radial-gradient(120% 140% at 15% 0%, #3A2A20 0%, #241B15 55%, #1B140F 100%);
}
.h-cta-card::after {
  content: ""; position: absolute; inset: auto -10% -60% 55%; height: 340px;
  background: radial-gradient(50% 50% at 50% 50%, rgba(224, 122, 84, .35), transparent 70%);
}
.h-cta-card h2 { position: relative; color: #FBF6F1; font-size: clamp(1.6rem, 3vw, 2.35rem); margin-bottom: 12px; }
.h-cta-card p { position: relative; color: rgba(247, 241, 234, .74); font-size: 17px; margin-bottom: 28px; }
.h-cta-card .btn { position: relative; padding: 14px 32px; font-size: 16px; background: var(--h-accent); color: #fff; }
.h-cta-card .btn:hover { background: #B03A24; color: #fff; }

/* ===== 入场动画（纯 CSS，不依赖 JS，也不会遮挡内容） ===== */
@keyframes hRise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.h-versions > *, .h-why > *, .h-steps > *, .h-global > * { animation: hRise .55s cubic-bezier(.2, .7, .3, 1) both; }
.h-versions > *:nth-child(2), .h-why > *:nth-child(2), .h-steps > *:nth-child(2) { animation-delay: .07s; }
.h-why > *:nth-child(3), .h-steps > *:nth-child(3) { animation-delay: .14s; }
.h-why > *:nth-child(4) { animation-delay: .21s; }
.h-global > *:nth-child(2) { animation-delay: .07s; }

/* ===== 响应式 ===== */
@media (max-width: 1024px) {
  .h-hero { padding: 56px 0 44px; }
  .h-hero-grid, .h-global { grid-template-columns: 1fr; gap: 36px; }
  .h-versions { grid-template-columns: 1fr; }
  .h-why { grid-template-columns: 1fr 1fr; }
  .h-links { grid-template-columns: 1fr 1fr; }
  .h-steps { grid-template-columns: 1fr; }
  .h-steps li:not(:last-child)::after { display: none; }
  .h-float { left: 12px; }
  .h-section { padding: 60px 0; }
}
@media (max-width: 600px) {
  .h-why { grid-template-columns: 1fr; }
  .h-regions, .h-hw-cats { grid-template-columns: 1fr; }
  .h-links { grid-template-columns: 1fr; }
  .h-why-lead { grid-template-columns: 1fr; gap: 16px; padding: 26px; }
  .h-stats li { padding: 0 16px; }
  .h-stats strong { font-size: 23px; }
  .h-hero-actions .btn { width: 100%; }
  .h-cta-card { padding: 44px 22px; border-radius: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  .home *, .home *::before, .home *::after { animation: none !important; transition: none !important; }
}
