/* ==========================================================================
   goldenriver.work — 全站样式
   配色与字体源自 Framer 参考站，改为冷调蓝白：雾蓝 / 石板蓝 / 藏青 + Cormorant Garamond
   ========================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
  --cream:        #F3F7FA;
  --paper:        #FCFEFF;
  --sage:         #E1EBF2;
  --sage-deep:    #C9D9E4;
  --olive:        #3D5A73;
  --ink:          #1C2E3B;
  --muted:        #55697A;
  --faint:        #5D7080;

  --line:         #DBE4EB;
  --line-soft:    #E6EDF3;

  --font-serif:   "Cormorant Garamond", "Times New Roman", serif;
  --font-sans:    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-label:   "Montserrat", "Inter", sans-serif;

  --shell:        1240px;
  --gutter:       clamp(20px, 5vw, 64px);
  --section-y:    clamp(64px, 9vw, 132px);

  --ease:         cubic-bezier(.22, .61, .36, 1);
}

/* ---------- 2. Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }

/* 保证 hidden 属性始终生效（部分组件设了 display，会盖掉浏览器默认样式） */
[hidden] { display: none !important; }
h1, h2, h3, p, figure, blockquote { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

a { color: inherit; text-decoration: none; }

button, input, textarea, select {
  font: inherit;
  color: inherit;
}

::selection { background: var(--sage-deep); color: var(--ink); }

:focus-visible {
  outline: 2px solid var(--olive);
  outline-offset: 3px;
}

/* ---------- 3. Layout primitives ---------- */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section { padding: var(--section-y) 0; }
.section--tight { padding: clamp(44px, 6vw, 84px) 0; }

.rule {
  height: 1px;
  background: var(--line);
  border: 0;
  margin: 0;
}

/* ---------- 4. Typography ---------- */
.label {
  font-family: var(--font-label);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--faint);
  line-height: 1.4;
}

.label--ink { color: var(--olive); }

.display {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(40px, 6.2vw, 78px);
  line-height: 1.0;
  letter-spacing: -.022em;
}

.h2 {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(32px, 4.4vw, 58px);
  line-height: 1.04;
  letter-spacing: -.018em;
}

.lede {
  font-size: clamp(16px, 1.3vw, 18px);
  line-height: 1.7;
  color: var(--muted);
  max-width: 46ch;
}

.micro {
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--faint);
}

/* ---------- 5. Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(243, 247, 250, .86);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: border-color .35s var(--ease), background .35s var(--ease);
}

.header.is-scrolled { border-bottom-color: var(--line); }

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 76px;
}

.brand {
  font-family: var(--font-serif);
  font-size: 25px;
  font-weight: 500;
  letter-spacing: -.01em;
  line-height: 1;
  white-space: nowrap;
}

.header__meta {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.6vw, 40px);
}

.header__tagline { display: none; }

.header__links {
  display: flex;
  align-items: center;
  gap: 22px;
}

.header__link {
  font-family: var(--font-label);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
  transition: color .25s var(--ease), border-color .25s var(--ease);
}

.header__link:hover { color: var(--ink); border-bottom-color: var(--ink); }

/* ---------- 6. Buttons ---------- */
.btn {
  --btn-bg: var(--ink);
  --btn-fg: var(--cream);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 30px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  border: 1px solid var(--btn-bg);
  border-radius: 2px;
  font-family: var(--font-label);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .3s var(--ease), color .3s var(--ease),
              border-color .3s var(--ease), transform .3s var(--ease);
}

.btn:hover {
  --btn-bg: var(--olive);
  transform: translateY(-1px);
}

.btn:active { transform: translateY(0); }

.btn:disabled {
  opacity: .55;
  cursor: progress;
  transform: none;
}

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  border-color: var(--sage-deep);
}

.btn--ghost:hover {
  --btn-bg: var(--sage);
  --btn-fg: var(--ink);
  border-color: var(--sage-deep);
}

.btn__arrow {
  width: 14px;
  height: 14px;
  flex: none;
  transition: transform .3s var(--ease);
}

.btn:hover .btn__arrow { transform: translateX(3px); }

/* ---------- 7. Hero ---------- */
.hero { padding-top: clamp(28px, 4vw, 56px); }

.hero__grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: clamp(32px, 5vw, 76px);
  align-items: end;
}

.hero__copy {
  display: flex;
  flex-direction: column;
  gap: clamp(20px, 2.4vw, 30px);
  padding-bottom: clamp(0px, 2vw, 28px);
}

.hero__title { max-width: 14ch; }

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 22px;
  margin-top: 4px;
}

.hero__figure {
  position: relative;
  overflow: hidden;
  border-radius: 2px;
  background: var(--sage);
  aspect-ratio: 3 / 4;
}

.hero__figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 62%;
}

/* ---------- 8. Statement band ---------- */
.band {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(20px, 4vw, 64px);
  align-items: baseline;
  padding: clamp(34px, 4vw, 52px) 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.band__text {
  font-family: var(--font-serif);
  font-size: clamp(22px, 2.5vw, 34px);
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: -.01em;
  color: var(--olive);
  max-width: 34ch;
}

/* ---------- 9. Process ---------- */
.process__head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 4vw, 72px);
  align-items: end;
  margin-bottom: clamp(44px, 6vw, 76px);
}

.process__head .h2 { max-width: 16ch; }

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
}

.step {
  padding: clamp(26px, 3vw, 40px) clamp(20px, 2.4vw, 34px) clamp(30px, 3.4vw, 44px) 0;
  border-right: 1px solid var(--line);
}

.step:last-child { border-right: 0; padding-right: 0; }
.step:first-child { padding-left: 0; }

.step__num {
  font-family: var(--font-label);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .2em;
  color: var(--faint);
  display: block;
  margin-bottom: clamp(26px, 3vw, 40px);
}

.step__title {
  font-family: var(--font-serif);
  font-size: clamp(23px, 2.2vw, 30px);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -.01em;
  margin-bottom: 14px;
}

.step__body {
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--muted);
  max-width: 34ch;
}

/* ---------- 10. Enquiry ---------- */
.enquiry {
  background: var(--sage);
  border-radius: 3px;
  padding: clamp(32px, 5vw, 76px);
}

.enquiry__grid {
  display: grid;
  grid-template-columns: .92fr 1.08fr;
  gap: clamp(36px, 5vw, 84px);
  align-items: start;
}

.enquiry__copy {
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: sticky;
  top: 104px;
}

.enquiry__title { max-width: 15ch; }

.enquiry__wa {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 6px;
  padding-top: 22px;
  border-top: 1px solid var(--sage-deep);
}

.enquiry__wa svg { flex: none; }

.enquiry__wa-text {
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--olive);
}

.enquiry__wa a {
  border-bottom: 1px solid currentColor;
  transition: opacity .25s var(--ease);
}

.enquiry__wa a:hover { opacity: .65; }

/* ---------- 11. Form ---------- */
.form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 24px;
}

.field { display: flex; flex-direction: column; gap: 8px; }
.field--full { grid-column: 1 / -1; }

.field__label {
  font-family: var(--font-label);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--olive);
}

.field__req { color: var(--faint); }

.input {
  width: 100%;
  min-height: 48px;
  padding: 12px 0;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--sage-deep);
  border-radius: 0;
  font-size: 15.5px;
  line-height: 1.5;
  color: var(--ink);
  transition: border-color .25s var(--ease);
  -webkit-appearance: none;
  appearance: none;
}

.input::placeholder { color: #9AAAB6; }

.input:hover { border-bottom-color: #AFC1CE; }

.input:focus {
  outline: none;
  border-bottom-color: var(--ink);
}

textarea.input {
  min-height: 84px;
  resize: vertical;
}

.form__foot {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 8px;
}

.form__note {
  font-size: 12px;
  line-height: 1.6;
  color: var(--olive);
}

.form__note a {
  border-bottom: 1px solid currentColor;
}

.form__error {
  font-size: 13px;
  line-height: 1.5;
  color: #8C3A2E;
  background: #FBEEE8;
  border: 1px solid #EBD3C9;
  padding: 10px 14px;
  border-radius: 2px;
}

/* 蜜罐：对真人不可见，对爬虫可见 */
.hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

/* ---------- 12. Footer ---------- */
.footer {
  border-top: 1px solid var(--line);
  padding: clamp(40px, 5vw, 64px) 0 clamp(28px, 3vw, 40px);
  margin-top: var(--section-y);
}

.footer__top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px 40px;
}

.footer__brand {
  font-family: var(--font-serif);
  font-size: 30px;
  font-weight: 500;
  line-height: 1;
  margin-bottom: 10px;
}

.footer__tagline { font-size: 13.5px; color: var(--muted); }

.footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 32px;
}

.footer__link {
  font-family: var(--font-label);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color .25s var(--ease);
}

.footer__link:hover { color: var(--ink); }

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 24px;
  margin-top: clamp(32px, 4vw, 52px);
  padding-top: 22px;
  border-top: 1px solid var(--line-soft);
  font-size: 12px;
  color: var(--faint);
}

/* ---------- 13. 浮动 WhatsApp ---------- */
.wa-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 70;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 50px;
  padding: 0 20px 0 16px;
  background: var(--ink);
  color: var(--cream);
  border-radius: 100px;
  box-shadow: 0 8px 26px rgba(28, 46, 59, .20);
  font-family: var(--font-label);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  transition: background .3s var(--ease), transform .3s var(--ease);
}

.wa-float:hover { background: var(--olive); transform: translateY(-2px); }
.wa-float svg { flex: none; }

/* ---------- 14. 内页（感谢页 / 隐私政策） ---------- */
.page {
  min-height: calc(100vh - 76px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(56px, 8vw, 120px) 0;
}

.page__inner { max-width: 660px; }

.page__title {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(38px, 5.4vw, 68px);
  line-height: 1.02;
  letter-spacing: -.02em;
  margin: 18px 0 22px;
}

.page__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 16px;
  margin-top: 36px;
}

/* 隐私政策正文 */
.legal { padding: clamp(48px, 6vw, 96px) 0 var(--section-y); }

.legal__inner { max-width: 760px; }

.legal__title {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(34px, 4.6vw, 56px);
  line-height: 1.05;
  letter-spacing: -.02em;
  margin: 16px 0 14px;
}

.legal h2 {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(22px, 2.4vw, 29px);
  line-height: 1.2;
  letter-spacing: -.01em;
  margin: clamp(36px, 4vw, 52px) 0 12px;
}

.legal h2 .legal__num {
  display: inline-block;
  min-width: 1.9em;
  font-family: var(--font-label);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .18em;
  color: var(--faint);
  vertical-align: 2px;
}

.legal p, .legal li {
  font-size: 15px;
  line-height: 1.75;
  color: var(--muted);
  margin-bottom: 12px;
}

.legal strong { color: var(--ink); font-weight: 600; }

.legal ul { margin: 0 0 12px; }

.legal li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 8px;
}

.legal li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .72em;
  width: 7px;
  height: 1px;
  background: var(--faint);
}

.legal a {
  color: var(--olive);
  border-bottom: 1px solid var(--sage-deep);
}

.legal a:hover { border-bottom-color: var(--olive); }

.legal__meta {
  padding-top: 24px;
  margin-top: 40px;
  border-top: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--faint);
}

/* ---------- 15. 入场动画 ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
  will-change: opacity, transform;
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

/* ==========================================================================
   16. 响应式
   ========================================================================== */

/* 平板横屏 / 小笔电 */
@media (max-width: 1080px) {
  .hero__grid { grid-template-columns: 1fr .82fr; gap: 40px; }
  .enquiry__grid { grid-template-columns: 1fr; gap: 36px; }
  .enquiry__copy { position: static; }
  .enquiry__title { max-width: 22ch; }
  .process__head { grid-template-columns: 1fr; gap: 20px; align-items: start; }
}

/* 平板竖屏 */
@media (max-width: 860px) {
  .header__inner { height: 66px; }
  .brand { font-size: 22px; }
  .header__links { gap: 18px; }

  .hero { padding-top: clamp(20px, 3vw, 32px); }
  .hero__grid { grid-template-columns: 1fr; gap: 30px; }
  .hero__figure { aspect-ratio: 4 / 3; }
  .hero__copy { padding-bottom: 0; }
  .hero__title { max-width: 14ch; }

  .band { grid-template-columns: 1fr; gap: 12px; }

  .steps { grid-template-columns: 1fr; }
  .step {
    padding: 28px 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .step:last-child { border-bottom: 0; }
  .step__num { margin-bottom: 14px; }
  .step__body { max-width: 48ch; }

  .enquiry { border-radius: 2px; }
  .form { gap: 18px 22px; }

  .wa-float span { display: none; }
  .wa-float { width: 50px; padding: 0; justify-content: center; }
}

/* 手机 */
@media (max-width: 620px) {
  :root { --section-y: 56px; }

  .header__tagline { display: none; }
  .header__link--hide-sm { display: none; }

  .display { font-size: clamp(36px, 10.6vw, 52px); }
  .hero__figure { aspect-ratio: 3 / 4; }

  .hero__actions { gap: 14px; }
  .hero__actions .btn { width: 100%; }

  .form { grid-template-columns: 1fr; }
  .enquiry { padding: 26px 20px 30px; }
  .enquiry__grid { gap: 28px; }
  .btn { min-height: 50px; }

  .footer__top { flex-direction: column; gap: 24px; }
  .footer__bottom { flex-direction: column; }

  .page__actions .btn { width: 100%; }
  .legal__inner { max-width: 100%; }
  .legal h2 .legal__num { display: block; min-width: 0; margin-bottom: 4px; }
}

/* 打印隐私政策 */
@media print {
  .header, .footer, .wa-float, .no-print { display: none !important; }
  body { background: #fff; }
  .legal { padding: 0; }
}
