/* Shopping Cidades — 全站基础样式
 * 画廊中性色：暖白底、暖炭黑文字、单一黄铜点缀、细发丝线。
 * 页面专属规则仍放在 <template-code>.css。
 */

:root {
  --harbor-ink: #1e1b16;
  --atlantic-deep: #6f6250;
  --atlantic-glass: #a4937c;
  --glass-mist: #d9d1c2;
  --sun-brass: #a08654;
  --market-leaf: #4d4536;
  --sky-wash: #f3f0e9;
  --surface: #faf9f6;
  --shore-sand: #e9e2d5;
  --stone-face: #d7cdba;
  --sand-asphalt: #c8bda6;
  --ink-soft: rgba(30, 27, 22, 0.66);
  --ink-faint: rgba(30, 27, 22, 0.42);
  --line: rgba(30, 27, 22, 0.1);
  --line-strong: rgba(30, 27, 22, 0.16);
  --glass: rgba(250, 249, 246, 0.6);
  --glass-strong: rgba(250, 249, 246, 0.85);
  --cv-blue: #003893;
  --cv-red: #cf2027;
  --cv-yellow: #f7d116;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 10px;
  --radius-pill: 6px;
  --shadow-soft: 0 4px 16px rgba(30, 27, 22, 0.035);
  --shadow-lift: 0 8px 24px rgba(30, 27, 22, 0.06);
  --shadow-inset: none;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --font-display-pt: "Fraunces", "Noto Serif SC", Georgia, serif;
  --font-display-zh: "Source Han Serif SC", "Songti SC", "Noto Serif SC", "SimSun", serif;
  --font-body: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --font-latin: "DM Sans", "Noto Sans SC", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
  --text-xs: 12px;
  --text-sm: 14px;
  --text-base: 16px;
  --text-md: 18px;
  --text-lg: 22px;
  --text-xl: 28px;
  --text-2xl: clamp(34px, 3.4vw, 48px);
  --text-3xl: clamp(40px, 5vw, 72px);
  --leading-tight: 1.08;
  --leading-snug: 1.28;
  --leading-body: 1.7;
  --tracking-zh: 0.03em;
  --tracking-label: 0.18em;
  --frame-w: 1920px;
  --frame-h: 40vh;
  --max: 1400px;
  --gutter: max(20px, env(safe-area-inset-left, 0px), env(safe-area-inset-right, 0px));
  --wrap: 1400px;
  --focus: 2px solid var(--sun-brass);
  --night: var(--harbor-ink);
  --text: var(--harbor-ink);
  --muted: var(--ink-soft);
  --sans: var(--font-latin);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: clip;
  background: var(--surface);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero__media img,
  .banner .hero__media img {
    animation: none !important;
    transform: none !important;
  }
}

body {
  margin: 0;
  overflow-x: clip;
  color: var(--harbor-ink);
  background: var(--surface);
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 400;
  line-height: var(--leading-body);
  letter-spacing: 0.012em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover { color: var(--market-leaf); }

button, input, select, textarea {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: var(--focus);
  outline-offset: 3px;
}

::selection {
  background: rgba(201, 164, 106, 0.28);
  color: var(--harbor-ink);
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -64px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--harbor-ink);
  color: var(--sky-wash);
  font-family: var(--font-mono);
  font-size: 14px;
  text-decoration: none;
}

.skip-link:focus { top: 16px; }

.wrap {
  width: min(calc(100% - 40px), var(--max));
  margin-inline: auto;
}

main.page-shell { min-height: 65vh; padding-bottom: 0; }

/* —— 内页 Hero：广场立面作为港湾窗 —— */
.banner {
  position: relative;
  width: var(--frame-w);
  max-width: 100%;
  height: var(--frame-h);
  min-height: 40vh;
  margin: 0 auto;
  overflow: hidden;
  color: #f7fafb;
  isolation: isolate;
}

.page-home .banner {
  height: 80vh;
  min-height: min(80vh, 820px);
}

.hero {
  position: relative;
  width: 100%;
  height: 100%;
  display: grid;
  align-items: end;
  overflow: hidden;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__media picture { display: contents; }

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 38%;
  transform: none;
  animation: none;
  filter: saturate(0.94) contrast(1.06) brightness(0.96);
}

.hero__shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(24, 21, 17, 0.3) 0%, rgba(24, 21, 17, 0.08) 34%, rgba(24, 21, 17, 0.82) 100%),
    linear-gradient(108deg, rgba(24, 21, 17, 0.58) 0%, rgba(24, 21, 17, 0.18) 46%, transparent 72%);
}

.hero__content {
  position: relative;
  z-index: 2;
  width: min(100%, var(--max));
  margin: 0 auto;
  padding: 0 0 56px;
}

.page-home .hero__content { padding-bottom: 250px; }

@media (max-width: 1439px) {
  .hero__content {
    padding-left: var(--gutter);
    padding-right: var(--gutter);
  }
}

.hero__kicker {
  margin: 0 0 10px;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--sun-brass);
}

.hero__title {
  margin: 0 0 12px;
  font-family: var(--font-display-pt);
  font-size: var(--text-3xl);
  font-weight: 650;
  line-height: var(--leading-tight);
  letter-spacing: -0.02em;
}

.hero__text,
.hero__lede {
  margin: 0;
  max-width: 38rem;
  font-size: var(--text-md);
  line-height: var(--leading-snug);
  color: rgba(247, 250, 251, 0.88);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.hero__brand {
  margin: 56px 0 0;
  font-family: var(--font-display-pt);
  font-size: var(--text-3xl);
  font-weight: 700;
  line-height: 0.96;
  letter-spacing: -0.03em;
}

.hero__brand span {
  display: block;
  margin-top: 16px;
  font-family: var(--font-display-zh);
  font-size: clamp(20px, 2.1vw, 28px);
  font-weight: 600;
  letter-spacing: 0.14em;
  opacity: 0.92;
}

@keyframes facade-drift {
  from { transform: scale(1.045) translate3d(0, 0, 0); }
  to { transform: scale(1.08) translate3d(-1.1%, -0.55%, 0); }
}

@keyframes rise-in {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* —— 按钮 —— */
.btn,
.btn-primary,
.btn-ghost,
.btn-outline,
.btn--solid,
.btn--ghost,
.btn--ink {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 20px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font-family: var(--font-latin);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.btn:hover,
.btn-primary:hover,
.btn-ghost:hover,
.btn-outline:hover,
.btn--solid:hover,
.btn--ghost:hover,
.btn--ink:hover {
  color: inherit;
  transform: none;
}

.btn-primary,
.btn--solid {
  background: var(--sun-brass);
  color: var(--harbor-ink);
  border-color: rgba(30, 27, 22, 0.08);
}

.btn-ghost,
.btn--ghost {
  background: rgba(247, 244, 238, 0.1);
  color: #f7fafb;
  border-color: rgba(247, 244, 238, 0.38);
}

.btn-outline {
  border-color: rgba(30, 27, 22, 0.22);
  background: transparent;
  color: var(--harbor-ink);
}

.btn--ink {
  background: var(--harbor-ink);
  color: #f7fafb;
  border-color: var(--harbor-ink);
}

/* —— 内页内容壳 —— */
.shell {
  width: min(100%, var(--max));
  margin: 0 auto;
  padding: 48px 0 72px;
}

@media (max-width: 1439px) {
  .shell {
    padding-left: var(--gutter);
    padding-right: var(--gutter);
  }
}

.shell .section { margin: 0 0 48px; }
.shell .section:last-child { margin-bottom: 0; }

.shell .section__head {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 12px 24px;
  margin-bottom: 22px;
}

.shell .section__kicker {
  margin: 0 0 6px;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--atlantic-deep);
}

.shell .section__kicker::before {
  content: "";
  display: block;
  width: 36px;
  height: 1px;
  background: linear-gradient(90deg, var(--sun-brass), rgba(201, 164, 106, 0.2));
  flex: 0 0 auto;
}

.shell .section__title {
  margin: 0;
  font-family: var(--font-display-pt);
  font-size: var(--text-2xl);
  font-weight: 600;
  line-height: var(--leading-tight);
}

.shell .section__desc,
.shell .section__text {
  margin: 8px 0 0;
  max-width: 40rem;
  color: var(--ink-soft);
  font-size: var(--text-sm);
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
}

.chip-row button,
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 6px 14px;
  border: 1px solid rgba(30, 27, 22, 0.14);
  background: rgba(247, 250, 251, 0.72);
  color: var(--harbor-ink);
  font-size: 13px;
  cursor: pointer;
}

.chip-row button[aria-pressed="true"],
.chip.is-active {
  border-color: var(--harbor-ink);
  background: var(--harbor-ink);
  color: #f7fafb;
}

.grid-2,
.grid-3,
.grid-4 {
  display: grid;
  gap: 20px;
}

.grid-2 { grid-template-columns: 1fr 1fr; gap: 28px 40px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 1000px) {
  .grid-2 { grid-template-columns: 1fr; }
  .grid-3,
  .grid-4 { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 700px) {
  .grid-3,
  .grid-4 { grid-template-columns: 1fr; }
}

.skel-card,
.skel-block {
  min-height: 120px;
  padding: 22px;
  background: rgba(247, 250, 251, 0.78);
  border: 1px solid rgba(30, 27, 22, 0.08);
}

.skel-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 180px;
  padding: 18px;
}

.skel-card__media {
  aspect-ratio: 16 / 10;
  background:
    linear-gradient(110deg, rgba(164, 147, 124, 0.2), rgba(160, 134, 84, 0.16) 48%, rgba(77, 69, 54, 0.12));
}

.skel-card__label {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.skel-card__title,
.skel-block h3 {
  margin: 0 0 8px;
  font-family: var(--font-display-pt);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.25;
}

.skel-card__text,
.skel-block p {
  margin: 0;
  color: var(--ink-soft);
  font-size: var(--text-sm);
}

.skel-map {
  display: grid;
  place-items: center;
  min-height: 360px;
  background:
    linear-gradient(180deg, rgba(30, 27, 22, 0.04), rgba(30, 27, 22, 0.07)),
    repeating-linear-gradient(90deg, transparent, transparent 39px, rgba(30, 27, 22, 0.05) 40px),
    repeating-linear-gradient(0deg, transparent, transparent 39px, rgba(30, 27, 22, 0.05) 40px),
    #f0ece4;
  border: 1px solid rgba(30, 27, 22, 0.1);
  color: var(--ink-faint);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.skel-form {
  display: grid;
  gap: 14px;
}

.skel-form label {
  display: grid;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
}

.skel-form input,
.skel-form select,
.skel-form textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid rgba(30, 27, 22, 0.16);
  background: #fff;
  color: var(--harbor-ink);
  font: inherit;
}

.skel-form textarea {
  min-height: 120px;
  resize: vertical;
}

.note {
  margin: 18px 0 0;
  color: var(--ink-faint);
  font-size: 13px;
}

.empty-state,
.empty-note {
  margin: 0;
  color: var(--ink-soft);
}

.section__more { margin: 22px 0 0; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.hero-inline-action { margin: 0 0 24px; }

.legal { max-width: 48rem; }

.legal p,
.legal li {
  color: var(--ink-soft);
  font-size: var(--text-sm);
}

.legal h2 {
  margin: 28px 0 10px;
  font-family: var(--font-display-pt);
  font-size: 22px;
  font-weight: 600;
  color: var(--harbor-ink);
}

.legal ul {
  margin: 0 0 8px;
  padding-left: 1.2em;
}

.legal__meta {
  margin: 0 0 24px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.prose {
  max-width: 46rem;
  color: var(--ink-soft);
}

.prose h2,
.prose h3 { color: var(--harbor-ink); font-family: var(--font-display-pt); }

/* 遗留个人站模板的标题区，映射到暖炭黑底与克制的暖光 */
.cosmic-head,
.page-hero,
.article-hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  padding: 120px 0 64px;
  background:
    linear-gradient(180deg, rgba(24, 21, 17, 0.6), rgba(24, 21, 17, 0.82)),
    radial-gradient(80% 60% at 80% 0%, rgba(160, 134, 84, 0.16), transparent 50%),
    #1e1b16;
}

.cosmic-head .eyebrow,
.page-hero__eyebrow,
.section-kicker {
  margin: 0 0 10px;
  color: var(--sun-brass);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.cosmic-head h1,
.page-hero h1,
.article-hero h1 {
  max-width: 18ch;
  margin: 0 0 16px;
  font-family: var(--font-display-pt);
  font-size: clamp(40px, 6vw, 68px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: #fff;
}

.cosmic-head p,
.page-hero__description,
.article-hero .lead {
  max-width: 38rem;
  margin: 0;
  color: rgba(247, 250, 251, 0.78);
}

.page-content { padding: 48px 0 88px; }

.dest-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  margin-top: 24px;
}

@media (max-width: 900px) {
  .banner,
  .page-home .banner {
    height: auto;
    min-height: max(52svh, 280px);
  }

  .hero { min-height: inherit; }

  .hero__content {
    padding-top: 7.5rem;
    padding-bottom: 36px;
  }

  .page-home .hero__content { padding-bottom: 48px; }

  .hero__title,
  .hero__brand { font-size: clamp(28px, 8vw, 40px); }

  .shell {
    padding-top: 36px;
    padding-bottom: 56px;
  }

  .shell .section { margin-bottom: 36px; }

  .shell .section__head {
    flex-direction: column;
    align-items: flex-start;
  }

  .skel-map { min-height: 240px; }
}

@media (max-width: 640px) {
  .hero__content { padding-top: 6.75rem; padding-bottom: 28px; }
  .hero__actions { flex-direction: column; align-items: stretch; }
  .hero__actions .btn,
  .hero__actions a { width: 100%; }
  .shell {
    padding-top: 28px;
    padding-bottom: 48px;
    padding-left: max(16px, env(safe-area-inset-left, 0px));
    padding-right: max(16px, env(safe-area-inset-right, 0px));
  }
  .chip-row {
    flex-wrap: nowrap;
    margin-inline: -16px;
    padding-inline: 16px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scrollbar-width: none;
  }
  .chip-row::-webkit-scrollbar { display: none; }
  .chip-row > * { flex: 0 0 auto; }
  .skel-form input,
  .skel-form select,
  .skel-form textarea { font-size: 16px; }
}

@media (max-width: 380px) {
  .hero__content { padding-top: 6.25rem; }
  .hero__title { font-size: 27px; }
}

@media (hover: none) and (pointer: coarse) {
  .btn, .chip-row button { min-height: 44px; }
}

@media (max-height: 520px) and (orientation: landscape) {
  .banner { min-height: min(70svh, 420px); }
  .hero__content { padding-top: 6rem; padding-bottom: 24px; }
}
