/* ============================================================
   LAVMAY · base.css
   重置 / 布局 / 导航 / 页脚 / 按钮 / 标签
   结构对齐 knocket：绝对定位导航、pills 圆角链接、深色页脚 + 巨型水印
   ============================================================ */

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

html, body {
  background: var(--lm-cream);
  color: var(--lm-dark);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  max-width: 100vw;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; border: none; cursor: pointer; color: inherit; background: none; }
img, svg { display: block; max-width: 100%; }
ul { list-style: none; }

/* ---------- 排版预设（字号/字距逐值复制） ---------- */
.h-display {
  font-family: var(--font-display);
  font-size: clamp(64px, 7.8vw, 132px);
  font-weight: 800;
  line-height: .79;
  letter-spacing: -.065em;
}
.h-massive {
  font-family: var(--font-display);
  font-size: clamp(58px, 7vw, 118px);
  font-weight: 800;
  line-height: .82;
  letter-spacing: -.065em;
}
.h1 { font-family: var(--font-display); font-size: clamp(36px, 4.6vw, 64px); font-weight: 800; line-height: 1; letter-spacing: -.045em; }
.h2 { font-family: var(--font-display); font-size: clamp(30px, 3.6vw, 48px); font-weight: 700; line-height: 1.05; letter-spacing: -.035em; }
.h3 { font-size: clamp(20px, 2.2vw, 26px); font-weight: 700; line-height: 1.15; letter-spacing: -.02em; }

.kicker {
  font: 800 12px/1 var(--font-sans);
  letter-spacing: .13em;
  text-transform: uppercase;
}
.mono { font-family: var(--font-mono); }
.hand { font-family: var(--font-hand); font-weight: 700; }

.lead { font-size: clamp(18px, 1.55vw, 24px); line-height: 1.42; }
.lead-sm { font-size: 17px; line-height: 1.5; }

/* 高亮：柠檬底（参考站 .hl-lemon） */
.hl {
  background: var(--lm-lime);
  padding: 0 .1em;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}
/* 下划线高亮（参考站 .hl-line，底部 24% 斜切色块） */
.hl-line { position: relative; z-index: 1; }
.hl-line::after {
  content: '';
  position: absolute;
  left: -.04em; right: -.04em; bottom: .06em;
  height: .24em;
  background: var(--lm-lime);
  z-index: -1;
  transform: skewX(-4deg);
}

/* ---------- 布局 ---------- */
.wrap { max-width: 1520px; margin: 0 auto; padding: 0 max(5vw, 24px); }
.wrap-narrow { max-width: 1100px; margin: 0 auto; padding: 0 max(5vw, 24px); }

section { position: relative; }

/* ---------- 按钮（逐值复制 .btn / .hr-button） ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 26px;
  border-radius: var(--r-pill);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -.005em;
  border: 2px solid var(--lm-ink);
  line-height: 1;
  white-space: nowrap;
  transition: transform .18s var(--ease-bounce), box-shadow .18s, background .18s;
}
.btn--lime { background: var(--lm-lime); color: var(--lm-ink); box-shadow: var(--sh-hard); }
.btn--lime:hover { transform: translate(-2px, -2px); box-shadow: var(--sh-hard-lg); }
.btn--lime:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--lm-ink); }

.btn--ink { background: var(--lm-ink); color: var(--lm-lime); box-shadow: 6px 6px 0 var(--lm-lime); }
.btn--ink:hover { transform: translate(-2px, -2px); box-shadow: 10px 10px 0 var(--lm-lime); }

.btn--coral { background: #ff5638; color: #fff; box-shadow: var(--sh-hard); }
.btn--coral:hover { transform: translate(-2px, -2px); box-shadow: var(--sh-hard-lg); }

.btn--ghost { background: transparent; color: var(--lm-ink); box-shadow: none; }
.btn--ghost:hover { background: var(--lm-ink); color: var(--lm-cream); }

.btn--sm { padding: 11px 18px; font-size: 14px; }
.btn--lg { padding: 20px 32px; font-size: 17px; }

/* 主 CTA：洋红 + 右侧方块箭头（参考站 .hr-hero .hr-button） */
.cta {
  display: inline-flex;
  align-items: center;
  gap: 0;
  padding: 0;
  min-width: 250px;
  height: 68px;
  border-radius: 14px;
  background: var(--lm-hero-cta);
  color: #fff;
  font-weight: 800;
  /* 白字 on #ff0084 实测 3.76:1。参考站靠字号过关；
     WCAG 大字标准（≥18.66px 粗体）只需 3:1，这里取 19px 明确满足。 */
  font-size: 19px;
  overflow: hidden;
  justify-content: space-between;
  padding-left: 24px;
  transition: background .25s, transform .25s;
}
.cta > span {
  width: 68px; height: 68px;
  flex: 0 0 68px;
  display: grid;
  place-items: center;
  font-size: 24px;
  border-left: 2px solid rgba(255, 255, 255, .42);
}
.cta:hover { background: var(--lm-hero-cta-h); transform: translateY(-3px); }
.cta:hover > span { background: var(--lm-hero-cta-h); }

/* 板块内文字链接（参考站 .hr-section-cta） */
.scta {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: 14px 20px;
  border-radius: 12px;
  background: var(--lm-dark);
  color: #fff;
  font-weight: 800;
  transition: transform .25s var(--ease-out), background .25s;
}
.scta:hover { transform: translateY(-3px); background: var(--lm-ink); }

/* ---------- 标签胶囊（逐值复制 .pill） ---------- */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: var(--r-pill);
  background: var(--lm-white);
  border: 2px solid var(--lm-ink);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--lm-ink);
  box-shadow: 3px 3px 0 var(--lm-ink);
}
.pill--lime { background: var(--lm-lime); }
.pill--ink { background: var(--lm-ink); color: var(--lm-lime); box-shadow: 3px 3px 0 var(--lm-lime); }
.pill--coral { background: #ff5638; color: #fff; }

/* ============================================================
   导航：绝对定位 + 毛玻璃（参考站 .k-nav 全局样式）
   ============================================================ */
.k-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 90;
  padding: 16px 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  background: rgba(248, 245, 235, .9);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(7, 61, 40, .14);
  transition: padding .25s, box-shadow .25s;
}
.k-nav.is-stuck {
  padding: 10px 36px;
  box-shadow: 0 8px 30px rgba(7, 61, 40, .1);
}

.k-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -.03em;
  color: var(--lm-dark);
  flex: none;
}
.k-logo-mark {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: var(--lm-dark);
  color: var(--lm-lime);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 800;
  flex: none;
}
.k-logo-txt { display: flex; flex-direction: column; line-height: 1.05; }
.k-logo-sub {
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--lm-muted-strong);
  margin-top: 2px;
}

.k-nav-links { display: flex; align-items: center; gap: 6px; font-size: 14px; }
.k-nav-links a {
  padding: 10px 14px;
  border-radius: var(--r-pill);
  font-weight: 500;
  color: var(--lm-dark);
  transition: background .18s, color .18s;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.k-nav-links a:hover { background: var(--lm-ink); color: var(--lm-lime); }
.k-nav-links a[aria-current="page"] { background: var(--lm-ink); color: var(--lm-lime); font-weight: 700; }

.k-nav-right { display: flex; align-items: center; gap: 12px; flex: none; }

/* 汉堡（< 900px 显示） */
.k-nav-toggle {
  display: none;
  width: 44px; height: 44px;
  border-radius: 10px;
  border: 2px solid var(--lm-dark);
  background: var(--lm-white);
  place-items: center;
  flex: none;
}
.k-nav-toggle span,
.k-nav-toggle span::before,
.k-nav-toggle span::after {
  display: block;
  width: 20px; height: 2px;
  background: var(--lm-dark);
  border-radius: 1px;
  position: relative;
  transition: transform .25s, opacity .2s;
}
.k-nav-toggle span::before,
.k-nav-toggle span::after { content: ''; position: absolute; left: 0; }
.k-nav-toggle span::before { top: -6px; }
.k-nav-toggle span::after { top: 6px; }
.k-nav.is-open .k-nav-toggle span { transform: rotate(45deg); }
.k-nav.is-open .k-nav-toggle span::before { transform: rotate(-90deg) translateX(-6px); }
.k-nav.is-open .k-nav-toggle span::after { opacity: 0; }

/* ============================================================
   页脚：深色 + 巨型品牌水印（逐值复制 .k-foot）
   ============================================================ */
.k-foot {
  background: var(--lm-ink);
  color: var(--lm-cream);
  padding: 100px 32px 40px;
  position: relative;
  overflow: hidden;
}
.k-foot::before {
  content: 'LAVMAY';
  position: absolute;
  bottom: -20px; left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-display);
  font-size: clamp(120px, 22vw, 340px);
  font-weight: 900;
  color: rgba(223, 252, 99, .08);
  letter-spacing: -.05em;
  line-height: 1;
  pointer-events: none;
  white-space: nowrap;
}
.k-foot-inner { max-width: 1200px; margin: 0 auto; position: relative; }
.k-foot-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}
.k-foot-brand .k-logo { color: var(--lm-cream); }
.k-foot-brand .k-logo-mark { background: var(--lm-lime); color: var(--lm-dark); }
/* 深底必须单独指定：默认 #4a5c4d 在 #06150e 上只有 2.61:1 */
.k-foot-brand .k-logo-sub { color: #9db2ab; }
.k-foot-brand p {
  color: rgba(245, 239, 224, .62);
  font-size: 15px;
  line-height: 1.6;
  margin-top: 16px;
  max-width: 340px;
}
.k-foot h5 {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--lm-lime);
  margin-bottom: 20px;
}
.k-foot ul { display: flex; flex-direction: column; gap: 4px; }
.k-foot ul a {
  color: rgba(245, 239, 224, .72);
  font-size: 15px;
  transition: color .15s;
  display: inline-block;
  padding-block: 9px;   /* 保证触控高度 ≥36px */
}
.k-foot ul a:hover { color: var(--lm-lime); }
.k-foot-bot {
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: rgba(245, 239, 224, .5);
  font-size: 13px;
  flex-wrap: wrap;
  gap: 16px;
}
.k-foot-disc {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, .08);
  color: rgba(245, 239, 224, .52);
  font-size: 11.5px;
  line-height: 1.75;
  max-width: 900px;
}

/* ============================================================
   通用：滚动揭示动效
   ============================================================ */
[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .7s var(--ease-out), transform .7s var(--ease-out);
  transition-delay: var(--d, 0ms);
}
[data-reveal].is-in { opacity: 1; transform: none; }

/* 尊重减弱动效偏好 */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* 跳转到主内容（键盘可达性） */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 999;
  background: var(--lm-ink);
  color: var(--lm-lime);
  padding: 12px 20px;
  border-radius: 0 0 12px 0;
  font-weight: 700;
}
.skip-link:focus { left: 0; }

/* ============================================================
   响应式
   ============================================================ */
@media (max-width: 900px) {
  .k-nav { padding: 12px 18px; gap: 12px; }
  .k-nav.is-stuck { padding: 10px 18px; }
  .k-nav-links {
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    background: var(--lm-cream);
    border-bottom: 1px solid rgba(7, 61, 40, .14);
    padding: 10px 14px 18px;
    display: none;
  }
  .k-nav.is-open .k-nav-links { display: flex; }
  .k-nav-links a { padding: 14px 12px; border-radius: 10px; font-size: 15px; }
  .k-nav-toggle { display: grid; }
  .k-nav-right .btn { display: none; }

  .k-foot { padding: 60px 20px 30px; }
  .k-foot-top { grid-template-columns: 1fr; gap: 34px; padding-bottom: 40px; }
  .k-foot-bot { flex-direction: column; text-align: center; }

  .cta { min-width: min(250px, 100%); height: 62px; }
  .cta > span { width: 62px; height: 62px; flex-basis: 62px; }
}
