:root {
  color-scheme: light;
  --ink: #18211f;
  --muted: #5f6b66;
  --paper: #fffdf8;
  --surface: #ffffff;
  --mist: #e8f2ee;
  --teal: #006d6f;
  --teal-dark: #00494b;
  --coral: #d6533c;
  --gold: #c3922f;
  --leaf: #5a7d36;
  --line: #d9e1dc;
  --shadow: 0 18px 55px rgba(24, 33, 31, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family:
    Inter, "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", Arial,
    sans-serif;
  line-height: 1.65;
}

a {
  color: var(--teal);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

img {
  display: block;
  width: 100%;
}

.skip-link {
  position: fixed;
  left: 1rem;
  top: 1rem;
  z-index: 20;
  padding: 0.6rem 0.8rem;
  color: #fff;
  background: var(--ink);
  border-radius: 6px;
  transform: translateY(-180%);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem clamp(1rem, 3vw, 2.5rem);
  color: var(--ink);
  background: rgba(255, 253, 248, 0.92);
  border-bottom: 1px solid rgba(217, 225, 220, 0.9);
  backdrop-filter: blur(14px);
}

.brand {
  flex: 0 0 auto;
  color: var(--ink);
  font-weight: 800;
  letter-spacing: 0;
  text-decoration: none;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(0.65rem, 2vw, 1.4rem);
  overflow-x: auto;
  white-space: nowrap;
}

.nav-links a {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
}

.nav-links a:hover,
.nav-links a:focus {
  color: var(--teal-dark);
}

.hero {
  position: relative;
  min-height: 74vh;
  display: grid;
  align-items: end;
  padding: clamp(5rem, 11vh, 8rem) clamp(1rem, 4vw, 4rem)
    clamp(2.5rem, 8vh, 4rem);
  color: #fff;
  background-image:
    linear-gradient(90deg, rgba(6, 27, 29, 0.82), rgba(6, 27, 29, 0.22)),
    url("https://upload.wikimedia.org/wikipedia/commons/thumb/8/80/The_panorama_of_Futian_Shenzhen.jpg/1280px-The_panorama_of_Futian_Shenzhen.jpg");
  background-position: center;
  background-size: cover;
}

.hero-content {
  position: relative;
  max-width: 890px;
}

.eyebrow {
  margin: 0 0 0.6rem;
  color: var(--coral);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #ffd36a;
}

h1,
h2,
h3,
h4,
p {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 12ch;
  margin: 0;
  font-size: clamp(3rem, 8vw, 6.7rem);
  line-height: 0.95;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 720px;
  margin: 1.4rem 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1rem, 2vw, 1.24rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.6rem;
}

.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 0.72rem 1rem;
  color: var(--ink);
  background: #fff;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.button.primary {
  color: #fff;
  background: var(--coral);
}

.button.ghost {
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.44);
}

.button.small {
  min-height: 38px;
  padding: 0.5rem 0.8rem;
}

.hero-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  width: min(720px, 100%);
  margin: 2rem 0 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
}

.hero-facts div {
  padding: 1rem;
  background: rgba(6, 27, 29, 0.5);
}

.hero-facts dt {
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.78rem;
  font-weight: 800;
}

.hero-facts dd {
  margin: 0.2rem 0 0;
  font-size: 1.05rem;
  font-weight: 900;
}

.section,
.section-narrow {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
}

section[id] {
  scroll-margin-top: 10rem;
}

.section {
  padding: clamp(3.5rem, 8vw, 6rem) 0;
}

.section.alt {
  width: 100%;
  max-width: none;
  padding-inline: max(1rem, calc((100vw - 1180px) / 2));
  background: var(--mist);
}

.notice {
  margin-top: 1.3rem;
  padding: 1rem 1.1rem;
  background: #fff7e3;
  border: 1px solid #ecd49f;
  border-radius: 8px;
}

.section-heading {
  max-width: 780px;
  margin-bottom: 2rem;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.06;
  letter-spacing: 0;
}

.section-heading p:not(.eyebrow) {
  margin: 0.9rem 0 0;
  color: var(--muted);
  font-size: 1.03rem;
}

.day-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.day-card,
.info-card,
.choice-card,
.place-card,
.reference-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 34px rgba(24, 33, 31, 0.07);
}

.day-card {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  padding: 1.2rem;
}

.day-index {
  width: max-content;
  padding: 0.2rem 0.55rem;
  color: #fff;
  background: var(--teal);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 900;
}

.day-card h3 {
  margin: 0.85rem 0 0.45rem;
  font-size: 1.16rem;
  line-height: 1.25;
}

.day-meta {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 0.94rem;
}

.route-list {
  display: grid;
  gap: 0.8rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.route-list li {
  display: grid;
  grid-template-columns: 3.8rem 1fr;
  gap: 0.75rem;
}

.route-list time {
  color: var(--coral);
  font-weight: 900;
}

.nearby {
  margin-top: auto;
  padding-top: 1rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.nearby span {
  display: block;
  color: var(--ink);
  font-weight: 900;
}

.transport-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.info-card {
  position: relative;
  padding: 1.2rem;
}

.info-card.recommended {
  border-color: rgba(0, 109, 111, 0.5);
}

.tag {
  width: max-content;
  padding: 0.18rem 0.5rem;
  color: var(--teal-dark);
  background: #d6f0e9;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 900;
}

.info-card h3,
.choice-card h4 {
  margin: 0.8rem 0 0.45rem;
}

.info-card p,
.choice-card p {
  margin: 0;
  color: var(--muted);
}

.info-card ul {
  margin: 0.9rem 0;
  padding-left: 1.1rem;
}

.info-card li {
  margin: 0.25rem 0;
}

.media-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.place-card {
  overflow: hidden;
}

.place-card img {
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: var(--mist);
}

.place-card div {
  padding: 1rem;
}

.place-card h3 {
  margin: 0 0 0.45rem;
  font-size: 1.12rem;
}

.place-card p {
  margin: 0 0 0.8rem;
  color: var(--muted);
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.pill-row span {
  padding: 0.18rem 0.48rem;
  color: var(--teal-dark);
  background: #edf7f3;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
}

.two-column {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.subhead {
  margin: 0 0 0.8rem;
  font-size: 1.2rem;
}

.stack {
  display: grid;
  gap: 0.8rem;
}

.choice-card {
  padding: 1rem;
}

.choice-card.food {
  border-left: 5px solid var(--coral);
}

.choice-card h4 {
  font-size: 1.05rem;
}

.choice-card a,
.info-card a,
.place-card a {
  display: inline-flex;
  margin-top: 0.8rem;
  font-weight: 900;
}

.souvenir-table {
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.table-row {
  display: grid;
  grid-template-columns: 1.2fr 0.7fr 1fr 1.5fr;
  gap: 1rem;
  align-items: center;
  padding: 1rem;
  border-top: 1px solid var(--line);
}

.table-head {
  color: #fff;
  background: var(--teal-dark);
  border-top: 0;
  font-weight: 900;
}

.table-row strong,
.table-row span {
  display: block;
}

.table-row span {
  color: var(--muted);
  font-size: 0.9rem;
}

.hearts {
  color: var(--coral);
  font-size: 1.15rem;
  font-weight: 900;
  white-space: nowrap;
}

.reference-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.8rem;
}

.reference-card {
  overflow: hidden;
  color: var(--ink);
  text-decoration: none;
}

.reference-card img {
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: var(--mist);
}

.reference-card span {
  display: block;
  min-height: 3.4rem;
  padding: 0.75rem;
  color: var(--teal-dark);
  font-size: 0.86rem;
  font-weight: 900;
}

.link-bank {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.6rem;
  padding: 1rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.link-bank h3 {
  flex: 1 0 100%;
  margin: 0;
}

.link-bank a {
  padding: 0.48rem 0.66rem;
  color: var(--teal-dark);
  background: #edf7f3;
  border-radius: 999px;
  font-weight: 800;
  text-decoration: none;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.3rem clamp(1rem, 4vw, 4rem);
  color: #fff;
  background: var(--ink);
}

.site-footer p {
  margin: 0;
}

@media (max-width: 1040px) {
  .day-grid,
  .transport-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .media-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .reference-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-links {
    width: 100%;
    justify-content: flex-start;
    padding-bottom: 0.1rem;
  }

  .hero {
    min-height: 76vh;
    padding-top: 6rem;
  }

  .hero-facts {
    grid-template-columns: 1fr;
  }

  .day-grid,
  .transport-grid,
  .media-grid,
  .two-column,
  .reference-grid {
    grid-template-columns: 1fr;
  }

  .table-row {
    grid-template-columns: 1fr;
    gap: 0.45rem;
  }

  .table-head {
    display: none;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media print {
  .site-header,
  .hero-actions,
  .site-footer,
  .skip-link {
    display: none;
  }

  .hero {
    min-height: auto;
    color: var(--ink);
    background: none;
    padding: 2rem 1rem;
  }

  .hero .eyebrow,
  .hero-copy {
    color: var(--ink);
  }

  .section,
  .section.alt {
    width: auto;
    padding: 1.4rem 1rem;
    background: #fff;
  }

  a {
    color: var(--ink);
  }
}
