/* ==========================================================================
   GLOBALPOD · Base tokens & primitives
   ========================================================================== */

:root {
  --navy: #12203a;
  --navy-700: #1b2b4a;
  --red: #c8322b;
  --red-soft: #fbe9e8;
  --teal: #7fd4c8;
  --teal-soft: #e6f5f2;
  --orange: #ff7a45;
  --orange-soft: #fff3ec;
  --sand: #e8dfd2;

  --ink: #1b2430;
  --muted: #5b6672;
  --gray: #8a9099;
  --silver: #c9cdd2;
  --soft: #f7f9fb;
  --line: #e3e7eb;
  --bg: #ffffff;
  --bg-alt: #f2f4f7;

  --radius-sm: 2px;
  --radius-md: 4px;
  --radius-lg: 6px;
  --radius-xl: 8px;

  --shadow-sm: 0 1px 2px rgba(18, 32, 58, 0.05);
  --shadow-sheet: 0 12px 32px rgba(18, 32, 58, 0.07);

  --font-sans: "Source Han Sans SC", "Noto Sans SC", "PingFang SC",
    "Microsoft YaHei", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-num: "Bahnschrift", "DIN Alternate", "DIN 2014", "Oswald",
    "Helvetica Neue", Arial, sans-serif;
  --font-mono: "Cascadia Mono", "JetBrains Mono", "IBM Plex Mono",
    Consolas, "Courier New", monospace;

  --container: 1280px;
  --gutter: 48px;
  --strip-h: 30px;
  --header-h: 66px;

  --ease: cubic-bezier(0.2, 0.7, 0.3, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--strip-h) + var(--header-h) + 24px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  color: var(--navy);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.18;
}

h1 {
  font-size: clamp(2.25rem, 4.2vw, 3.5rem);
}

h2 {
  font-size: clamp(1.65rem, 2.7vw, 2.375rem);
  line-height: 1.22;
}

h3 {
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.4;
}

h4 {
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.5;
}

p {
  margin: 0;
}

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

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

button {
  cursor: pointer;
}

img,
svg {
  display: block;
  max-width: 100%;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

dl,
dd,
dt,
figure {
  margin: 0;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

::selection {
  background: var(--teal-soft);
  color: var(--navy);
}

:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  border-radius: 2px;
  outline: 2px solid var(--navy);
  outline-offset: 3px;
  box-shadow: 0 0 0 6px var(--teal-soft);
}

/* --------------------------------------------------------------------------
   Layout
   -------------------------------------------------------------------------- */

.container {
  width: min(var(--container), calc(100% - var(--gutter)));
  margin-inline: auto;
}

.section {
  border-top: 1px solid var(--line);
  padding: 96px 0;
}

.section--alt {
  background: var(--bg-alt);
}

.section--tight {
  padding: 64px 0;
}

.section--flush {
  padding-bottom: 0;
}

.section-head {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr) auto;
  gap: 48px;
  align-items: start;
  margin-bottom: 48px;
}

.section-meta {
  padding-top: 8px;
}

.section-meta__line {
  display: block;
  width: 28px;
  height: 2px;
  margin-bottom: 14px;
  background: var(--red);
}

.section-meta .kicker {
  display: block;
  margin-bottom: 6px;
}

.section-meta__en {
  display: block;
  color: var(--gray);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.section-main {
  max-width: 760px;
}

.section-lede {
  max-width: 680px;
  margin-top: 16px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.8;
}

.section-side {
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  padding-top: 8px;
}

.grid {
  display: grid;
  gap: 24px;
}

/* --------------------------------------------------------------------------
   Typography helpers
   -------------------------------------------------------------------------- */

.kicker {
  color: var(--navy);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  line-height: 1.4;
  text-transform: uppercase;
}

.mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

.num {
  font-family: var(--font-num);
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.text-muted {
  color: var(--muted);
}

.text-small {
  font-size: 13px;
  line-height: 1.65;
}

.text-red {
  color: var(--red);
}

.nowrap {
  white-space: nowrap;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--navy);
  color: #fff;
  font-size: 14px;
  transform: translateY(-160%);
  transition: transform 0.18s var(--ease);
}

.skip-link:focus {
  transform: translateY(0);
}

/* --------------------------------------------------------------------------
   Shared decorations: rules, ticks, notes
   -------------------------------------------------------------------------- */

.hairline {
  height: 1px;
  background: var(--line);
}

.datum {
  position: relative;
  height: 1px;
  background: var(--line);
}

.datum::before,
.datum::after {
  content: "";
  position: absolute;
  top: -4px;
  width: 1px;
  height: 9px;
  background: var(--gray);
}

.datum::before {
  left: 0;
}

.datum::after {
  right: 0;
}

.note-line {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 12px 14px;
  border-left: 3px solid var(--teal);
  background: var(--teal-soft);
  color: var(--navy);
  font-size: 13px;
  line-height: 1.65;
}

.note-line--sand {
  border-left-color: var(--sand);
  background: var(--soft);
  color: var(--ink);
}

.note-line strong {
  font-weight: 600;
}

@media (max-width: 1080px) {
  :root {
    --gutter: 40px;
  }

  .section-head {
    grid-template-columns: 150px minmax(0, 1fr);
    gap: 32px;
  }

  .section-side {
    grid-column: 2;
    justify-content: flex-start;
    padding-top: 0;
  }
}

@media (max-width: 760px) {
  :root {
    --gutter: 32px;
    --strip-h: 28px;
    --header-h: 58px;
  }

  .section {
    padding: 64px 0;
  }

  .section--tight {
    padding: 48px 0;
  }

  .section-head {
    grid-template-columns: 1fr;
    gap: 18px;
    margin-bottom: 32px;
  }

  .section-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    padding-top: 0;
  }

  .section-meta__line {
    width: 20px;
    margin: 0;
  }

  .section-meta .kicker {
    margin: 0;
  }

  .section-side {
    grid-column: auto;
  }

  .section-lede {
    margin-top: 12px;
  }

  h1 {
    font-size: clamp(2rem, 9vw, 2.75rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ==========================================================================
   演示数据标记
   runtime-config.js 的 __GLOBALPOD_DEMO__ 设为 '0' 后，整站隐藏这些标记。
   仅在铺位面积、租金与价格口径全部替换为真实数据之后才应关闭。
   ========================================================================== */

html[data-demo='0'] [data-demo-badge] {
  display: none;
}

html[data-demo='1'] [data-live-only] {
  display: none;
}

html[data-demo='0'] [data-demo-only] {
  display: none;
}
