/* styles/hero.css
   Hero 首屏 + 水墨长卷背景渲染
   宣纸底 + 多层山水 + 高铁 + 天际线 = 高级旅游官网首屏
*/

/* ===== 背景容器 ===== */
.page-ink-backdrop {
  position: absolute;
  inset: 0 0 auto 0;
  left: 0;
  right: 0;
  width: 100%;
  max-width: 100%;
  height: 800px;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.ink-panorama {
  position: absolute;
  inset: 0;
  width: 100%;
  max-width: 100%;
  height: 100%;
  display: block;
}

.ink-panorama--hero {
  opacity: .96;
  shape-rendering: geometricPrecision;
}

.site-header,
main,
.site-footer {
  position: relative;
}

/* ===== Hero 首屏 ===== */
.hero-section {
  position: relative;
  z-index: 1;
  min-height: 460px;
  padding: 80px 0 60px;
  overflow: hidden;
  border-bottom: 1px solid rgba(180, 160, 140, .18);
}

.hero-section::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(249,247,243,.32) 0%, rgba(249,247,243,.15) 50%, rgba(249,247,243,.72) 100%),
    radial-gradient(ellipse at 50% 30%, rgba(255,255,255,.88) 0%, rgba(255,255,255,.48) 34%, rgba(249,247,243,.06) 72%);
}

.hero-section::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -50px;
  width: 88vw;
  max-width: 1200px;
  margin: 0 auto;
  height: 120px;
  z-index: -1;
  background: linear-gradient(180deg, rgba(92,74,61,0), rgba(92,74,61,.04));
  border-radius: 50% 50% 0 0;
}

/* ===== Hero 内容区 ===== */
.hero-content {
  width: min(820px, calc(100% - 36px));
  max-width: 100%;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 2;
  isolation: isolate;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--gold-deep);
  font-weight: 600;
  letter-spacing: .24em;
  font-size: 12px;
}

.hero-content h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(40px, 5.8vw, 78px);
  line-height: 1.08;
  letter-spacing: .08em;
  font-weight: 800;
  color: #2c2c2c;
  text-shadow: 0 2px 0 rgba(255,255,255,.68), 0 16px 36px rgba(92,74,61,.06);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

.hero-subtitle {
  margin: 10px 0 0;
  font-family: var(--serif);
  font-size: clamp(16px, 1.8vw, 24px);
  color: rgba(92, 74, 61, .70);
  letter-spacing: .24em;
  font-weight: 400;
}

.hero-desc {
  margin: 8px auto 20px;
  max-width: 660px;
  color: rgba(44,44,44,.66);
  font-size: clamp(14px, 1.6vw, 18px);
  line-height: 1.6;
}

/* ===== 搜索框 ===== */
.hero-search {
  width: min(680px, 100%);
  height: 52px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 42px 1fr 44px;
  align-items: center;
  border-radius: 999px;
  border: 1px solid rgba(180,160,140,.42);
  background: rgba(255,255,255,.90);
  box-shadow: 0 14px 36px rgba(70, 54, 36, .07);
  padding: 4px 6px 4px 14px;
  transition: border-color .28s ease, box-shadow .28s ease;
}

@media (hover: hover) and (pointer: fine) {
  .hero-search:focus-within {
    border-color: rgba(180,151,90,.72);
    box-shadow: 0 18px 50px rgba(70, 54, 36, .12);
    transform: translateY(-1px);
  }

  .hero-search button:hover {
    transform: translateX(1px);
    box-shadow: 0 10px 22px rgba(92,74,61,.14);
  }

  .quick-prompts button:hover {
    transform: translateY(-1px);
    border-color: rgba(180,151,90,.52);
    box-shadow: 0 8px 20px rgba(70, 54, 36, .06);
  }
}

.search-icon {
  color: var(--brown-soft);
  font-size: 22px;
}

.hero-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: 14px;
}

.hero-search input::placeholder {
  color: rgba(92,74,61,.48);
}

.hero-search button {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #3a322c, #5c4a3d);
  color: #fff;
  font-size: 20px;
  line-height: 1;
  display: grid;
  place-items: center;
}

/* ===== 快捷提示 ===== */
.quick-prompts {
  margin: 14px auto 0;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
}

.quick-prompts button {
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(180,160,140,.30);
  background: rgba(255,255,255,.65);
  color: var(--brown);
  box-shadow: 0 6px 18px rgba(70,54,36,.04);
  font-size: 13px;
  white-space: nowrap;
}

/* ===== CTA 按钮组 ===== */
.hero-cta {
  margin: 18px auto 0;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-cta .btn-primary {
  min-width: min(240px, 100%);
}

.hero-cta .btn-secondary {
  min-width: min(160px, 100%);
}

/* ===== 装饰元素 ===== */
.hero-ornament {
  position: absolute;
  pointer-events: none;
  z-index: 1;
  opacity: .18;
}

.hero-ornament--left {
  left: -80px;
  bottom: 22px;
  width: 300px;
  height: 150px;
  background:
    radial-gradient(ellipse at 60% 80%, rgba(92,74,61,.14), transparent 55%),
    linear-gradient(160deg, transparent 50%, rgba(92,74,61,.10) 51%, transparent 53%);
}

.hero-ornament--right {
  right: -40px;
  top: 32px;
  width: 260px;
  height: 260px;
  background:
    linear-gradient(120deg, transparent 42%, rgba(92,74,61,.26) 43%, transparent 45%),
    linear-gradient(38deg, transparent 40%, rgba(92,74,61,.18) 41%, transparent 43%),
    radial-gradient(circle at 65% 35%, rgba(180,151,90,.12), transparent 38%);
}

/* ===== 响应式：980px ===== */
@media (max-width: 980px) {
  .page-ink-backdrop {
    height: 700px;
  }

  .hero-section {
    padding-top: 60px;
  }

  .hero-content h1 {
    font-size: clamp(30px, 7.5vw, 48px);
    letter-spacing: .04em;
  }

  .hero-subtitle {
    letter-spacing: .16em;
  }

  .hero-ornament--left {
    left: -100px;
    width: 240px;
  }

  .hero-ornament--right {
    right: -60px;
    width: 200px;
    height: 200px;
  }
}

/* ===== 响应式：640px ===== */
@media (max-width: 640px) {
  .page-ink-backdrop {
    height: 520px;
  }

  .hero-section {
    min-height: auto;
    padding: 32px 0 28px;
  }

  .hero-ornament {
    display: none;
  }

  .hero-content {
    width: min(calc(100% - 20px), 820px);
  }

  .eyebrow {
    font-size: 10px;
    letter-spacing: .10em;
  }

  .hero-content h1 {
    font-size: clamp(26px, 8vw, 38px);
    line-height: 1.12;
    letter-spacing: .035em;
    text-shadow: none;
  }

  .hero-subtitle {
    font-size: 14px;
    letter-spacing: .06em;
  }

  .hero-desc {
    font-size: 13px;
    line-height: 1.55;
  }

  .hero-search {
    height: auto;
    min-height: 46px;
    grid-template-columns: 26px 1fr 38px;
    padding: 3px 5px 3px 10px;
  }

  .search-icon {
    font-size: 18px;
  }

  .hero-search input {
    font-size: 14px;
  }

  .hero-search button {
    width: 34px;
    height: 34px;
    font-size: 16px;
  }

  .quick-prompts {
    gap: 6px;
  }

  .quick-prompts button {
    width: 100%;
    justify-content: center;
    min-height: 34px;
    font-size: 12px;
    padding: 0 12px;
  }

  .hero-cta {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .hero-cta .btn {
    width: 100%;
    min-width: 0;
    min-height: 40px;
    font-size: 14px;
  }
}
