:root {
  --bg: #ffffff;
  --panel: #f7f9fc;
  --panel-strong: #edf2fb;
  --text: #07111f;
  --body: #2f3a4a;
  --muted: #5a6677;
  --line: #e3e8f2;
  --accent: #001d6d;
  --accent-soft: #e8eefb;
  --gold: #dfbd8a;
  --radius-card: 0.5rem;
  --radius-compact: 0.375rem;
}

* {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  scroll-padding-top: 4.75rem;
}

body {
  margin: 0;
  background: #edf0ec;
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  line-height: 1.5;
}

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

button {
  font: inherit;
}

.site-shell {
  width: min(100%, 31.25rem);
  min-height: 100vh;
  margin: 0 auto;
  background: #fff;
  position: relative;
  overflow: hidden;
  padding-top: 4rem;
  display: flex;
  flex-direction: column;
}

.site-shell main {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: min(100%, 31.25rem);
  margin: 0 auto;
  z-index: 20;
  height: 4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 1rem;
  background: var(--accent);
}

.menu-button {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  width: 2.75rem;
  height: 2.75rem;
  transform: translateY(-50%);
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--gold);
  display: grid;
  place-items: center;
  padding: 0;
  cursor: pointer;
}

.menu-button .icon {
  font-size: 1.75rem;
  line-height: 1;
}

.brand {
  position: absolute;
  left: 1.125rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-logo {
  display: block;
  width: auto;
  height: 1.875rem;
  object-fit: contain;
}

.drawer-panel {
  position: fixed;
  z-index: 41;
  top: 4rem;
  left: 0;
  right: 0;
  width: min(100%, 31.25rem);
  margin: 0 auto;
  background: #fff;
  border-bottom: 0.0625rem solid var(--line);
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
  transform: translateY(-0.5rem);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.drawer-panel.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.drawer-overlay {
  position: fixed;
  z-index: 40;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  width: min(100%, 31.25rem);
  margin: 0 auto;
  background: rgba(0, 0, 0, 0.22);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease;
}

.drawer-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

.drawer-nav {
  display: grid;
  padding: 0.625rem 0;
}

.drawer-nav a {
  display: flex;
  align-items: center;
  min-height: 3.125rem;
  padding: 0 1.25rem;
  border-bottom: 0.0625rem solid var(--line);
  color: var(--text);
  font-size: 0.9375rem;
  font-weight: 650;
  cursor: pointer;
}

.drawer-nav a:last-child {
  border-bottom: 0;
}

.hero {
  width: 100%;
  min-height: calc(100svh - 4rem);
  padding: 12.6rem 1.375rem 4.5rem;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  position: relative;
  background:
    linear-gradient(180deg, rgba(0, 29, 109, 0.56) 0%, rgba(0, 29, 109, 0.34) 42%, rgba(0, 29, 109, 0.2) 72%, rgba(0, 29, 109, 0.3) 100%),
    url("../images/hero-yungu-fudi-tall.png") center bottom / cover no-repeat;
  overflow: hidden;
}

.hero-panel {
  color: var(--gold);
  text-align: center;
}

.hero-panel p {
  margin: 0;
  color: #f7f9ff;
  font-size: 2.125rem;
  font-weight: 650;
  line-height: 1.22;
}

.hero-panel .intro-address {
  margin-top: 0.75rem;
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.9375rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.3125rem;
}

.hero-panel .intro-address .icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  line-height: 1;
}

.hero-scroll {
  position: absolute;
  left: 50%;
  bottom: 1.25rem;
  width: 2.5rem;
  height: 2.5rem;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.92);
  display: grid;
  place-items: center;
  animation: hero-scroll-bounce 1.6s ease-in-out infinite;
}

.hero-scroll .icon {
  font-size: 1.5rem;
  line-height: 1;
}

@keyframes hero-scroll-bounce {
  0%,
  100% {
    transform: translate(-50%, 0);
  }

  50% {
    transform: translate(-50%, 0.375rem);
  }
}

.section {
  padding: 2.2rem 1.125rem 0;
  scroll-margin-top: 4.75rem;
}

.section-header {
  margin-bottom: 1.25rem;
}

.section h2 {
  margin: 0;
  color: var(--text);
  font-size: 1.1875rem;
  font-weight: 600;
  line-height: 1.24;
  letter-spacing: 0;
}

.section-summary {
  margin: 0.25rem 0 0;
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.45;
}

#park-intro {
  padding-top: 2.2rem;
  padding-bottom: 2.2rem;
  background: #fff;
}

#space-services {
  background: #edf3f9;
  padding-bottom: 2.2rem;
}

#space-services h2,
#resident-companies h2,
#park-media h2 {
  color: var(--accent);
}

#space-services .section-summary,
#resident-companies .section-summary,
#park-media .section-summary {
  color: #344b78;
}

.dark-section {
  background: var(--accent);
  padding-bottom: 2.2rem;
}

.dark-section h2 {
  color: #fff;
}

.dark-section .section-summary {
  color: rgba(255, 255, 255, 0.86);
}

#park-events {
  background: #fff;
  padding-bottom: 2.2rem;
}

#resident-companies {
  background: #edf3f9;
  padding-bottom: 2.2rem;
}

#park-media {
  background: #edf3f9;
  padding-bottom: 2.2rem;
}

#park-amenities {
  background: #fff;
  padding-bottom: 2.2rem;
}

#contact {
  background: #fff;
  padding-bottom: 2.2rem;
}

#park-intro h2 {
  margin: 0;
  color: var(--text);
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1.22;
  letter-spacing: 0;
  white-space: nowrap;
}

.intro-copy {
  display: grid;
  gap: 0.75rem;
  margin-top: 1.125rem;
}

.intro-copy p {
  margin: 0;
  color: var(--body);
  font-size: 0.875rem;
  line-height: 1.65;
}

.space-service-list {
  display: grid;
  gap: 1rem;
}

.space-service-card {
  display: block;
  border-radius: var(--radius-compact);
  background: #fff;
  box-shadow: 0 0.375rem 1rem rgba(7, 17, 31, 0.05);
  overflow: hidden;
}

.space-service-card:active .space-service-arrow,
.space-service-card:hover .space-service-arrow {
  color: #fff;
  background: var(--accent);
  border-color: var(--accent);
}

.space-service-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--panel-strong) center center / cover no-repeat;
}

.space-service-card-meeting .space-service-image {
  background-image: url("../images/service-meeting-space.webp");
}

.space-service-card-office .space-service-image {
  background-image: url("../images/service-commercial-office.jpg");
}

.space-service-card-coworking .space-service-image {
  background-image: url("../images/service-coworking.jpg");
}

.space-service-body {
  position: relative;
  padding: 1.1rem 4rem 1rem 1rem;
  min-height: 4.75rem;
}

.space-service-body h3 {
  margin: 0;
  color: var(--text);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.25;
}

.space-service-arrow {
  position: absolute;
  top: 50%;
  right: 1rem;
  width: 2.25rem;
  height: 2.25rem;
  transform: translateY(-50%);
  border: 0.0625rem solid var(--accent);
  border-radius: 50%;
  color: var(--accent);
  display: grid;
  place-items: center;
  transition: color 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.space-service-arrow .icon {
  font-size: 1.125rem;
  line-height: 1;
}

.space-service-body p {
  margin: 0.2rem 0 0;
  color: #3f4b5d;
  font-size: 0.8125rem;
  line-height: 1.5;
}

.space-service-card-teahouse .space-service-image {
  background-image: url("../images/service-teahouse-lurengong.png");
}

.space-service-card-songyan .space-service-image {
  background-image: url("../images/service-songyan.jpg");
}

.event-list {
  display: grid;
  gap: 0.75rem;
  padding-left: 0.5rem;
}

.event-card {
  display: grid;
  grid-template-columns: 0.625rem 4.25rem minmax(0, 1fr);
  align-items: baseline;
  gap: 0.75rem;
}

.event-card::before {
  content: "➢";
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.25;
}

.event-card time {
  color: var(--accent);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.25;
  white-space: nowrap;
}

.event-card h3 {
  margin: 0;
  color: var(--text);
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.25;
}

.company-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-radius: var(--radius-compact);
  border-top: 0.0625rem solid var(--line);
  border-left: 0.0625rem solid var(--line);
  overflow: hidden;
}

.company-item {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 4.25rem;
  padding: 0.75rem;
  border-right: 0.0625rem solid var(--line);
  border-bottom: 0.0625rem solid var(--line);
  background: #fff;
}

.company-item img {
  display: block;
  max-width: 100%;
  max-height: 2.5rem;
  object-fit: contain;
}

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

.media-item {
  min-width: 0;
  display: grid;
  grid-template-rows: minmax(0, 1fr) 2rem;
  padding: 0;
  border: 0.0625rem solid var(--line);
  border-radius: var(--radius-compact);
  background: #fff;
  text-align: center;
  cursor: pointer;
  overflow: hidden;
}

.media-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1;
  background: #f8fafc;
  overflow: hidden;
}

.media-logo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.media-item p {
  margin: 0;
  padding: 0 0.375rem;
  color: var(--body);
  font-size: 0.625rem;
  font-weight: 650;
  line-height: 1.25;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.media-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 1.25rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease;
}

.media-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.media-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(7, 17, 31, 0.5);
}

.media-modal-panel {
  position: relative;
  z-index: 1;
  width: min(100%, 18rem);
  padding: 1.25rem;
  border-radius: var(--radius-card);
  background: #fff;
  text-align: center;
}

.media-modal-close {
  position: absolute;
  top: 0.625rem;
  right: 0.625rem;
  width: 2rem;
  height: 2rem;
  border: 0;
  background: transparent;
  color: var(--muted);
  display: grid;
  place-items: center;
  padding: 0;
  cursor: pointer;
}

.media-modal-close .icon {
  font-size: 1.25rem;
  line-height: 1;
}

.media-modal-panel h2 {
  margin: 0 2rem 1rem;
  color: var(--text);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.25;
}

.media-qr-placeholder {
  width: min(100%, 12rem);
  aspect-ratio: 1;
  margin: 0 auto;
  border: 0.5rem solid #fff;
  background:
    linear-gradient(90deg, rgba(0, 29, 109, 0.16) 1px, transparent 1px),
    linear-gradient(rgba(0, 29, 109, 0.16) 1px, transparent 1px),
    var(--accent);
  background-size: 0.75rem 0.75rem;
  box-shadow: 0 0 0 0.0625rem var(--line);
}

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

.amenity-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
  padding: 0.75rem;
  border: 0.0625rem solid var(--line);
  border-radius: var(--radius-compact);
  background: #fff;
}

.amenity-icon {
  flex: 0 0 auto;
  width: 1.75rem;
  height: 1.75rem;
  color: var(--accent);
  display: grid;
  place-items: center;
}

.amenity-icon .icon {
  font-size: 1.25rem;
  line-height: 1;
}

.amenity-item p {
  min-width: 0;
  margin: 0;
  color: var(--body);
  font-size: 0.8125rem;
  font-weight: 650;
  line-height: 1.35;
  text-align: left;
}

.contact-list {
  display: grid;
  background: #fff;
  border-top: 0.0625rem solid var(--line);
}

.contact-map {
  margin-bottom: 1.125rem;
  border-radius: var(--radius-compact);
  background: #f8fafc;
  overflow: hidden;
}

.contact-map img {
  display: block;
  width: 100%;
  height: auto;
}

.contact-map-address {
  display: grid;
  gap: 0.375rem;
  padding: 0.875rem;
  background: #f8fafc;
  border-top: 0.0625rem solid var(--line);
}

.contact-map-address span {
  color: var(--accent);
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1.25;
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
}

.contact-map-address .icon {
  font-size: 1rem;
  line-height: 1;
}

.contact-map-address strong {
  color: var(--text);
  font-size: 0.875rem;
  font-weight: 650;
  line-height: 1.35;
}

.contact-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.875rem 0;
  border-bottom: 0.0625rem solid var(--line);
  background: #fff;
}

.contact-item:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.contact-item span {
  flex: 0 0 auto;
  color: var(--accent);
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1.25;
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
}

.contact-item span .icon {
  font-size: 1rem;
  line-height: 1;
}

.contact-item strong {
  min-width: 0;
  color: var(--text);
  font-size: 0.875rem;
  font-weight: 650;
  line-height: 1.35;
  text-align: right;
  display: flex;
  align-items: center;
}

.contact-item a {
  justify-self: start;
  color: var(--accent);
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1.25;
}

.site-footer {
  margin-top: auto;
  padding: 1.5rem 1.125rem 1.75rem;
  background: var(--accent);
  text-align: center;
}

.footer-logo {
  display: block;
  width: auto;
  height: 1.875rem;
  margin: 0 auto;
  object-fit: contain;
}

.site-footer p {
  margin: 0.375rem 0 0;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.75rem;
  line-height: 1.45;
}

.site-footer small {
  display: block;
  margin-top: 0.75rem;
  color: rgba(255, 255, 255, 0.56);
  font-size: 0.6875rem;
  line-height: 1.25;
}

.detail-title {
  padding-top: 2.2rem;
  padding-bottom: 2.2rem;
  background: #fff;
}

.detail-title h1 {
  margin: 0.75rem 0 0;
  color: var(--text);
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3125rem;
  color: var(--muted);
  font-size: 0.8125rem;
  font-weight: 650;
}

.back-link .icon {
  font-size: 1rem;
  line-height: 1;
}

.venue-section {
  padding-top: 2.2rem;
  padding-bottom: 2.2rem;
  background: #edf3f9;
}

.venue-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  padding: 0.25rem;
  border-radius: var(--radius-compact);
  background: #dfe8f5;
}

.venue-tab {
  min-height: 2.5rem;
  border: 0;
  border-radius: calc(var(--radius-compact) - 0.125rem);
  color: #344b78;
  background: transparent;
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
}

.venue-tab.is-active {
  color: var(--accent);
  background: #fff;
  box-shadow: 0 0.25rem 0.875rem rgba(7, 17, 31, 0.06);
}

.venue-panel {
  display: none;
}

.venue-panel.is-active {
  display: block;
}

.venue-list {
  display: grid;
  gap: 1rem;
}

.venue-card {
  border-radius: var(--radius-compact);
  background: #fff;
  box-shadow: 0 0.375rem 1rem rgba(7, 17, 31, 0.05);
  overflow: hidden;
}

.venue-gallery {
  display: grid;
  grid-template-columns: minmax(0, 2.05fr) minmax(0, 1fr);
  gap: 0.375rem;
  padding: 0.375rem;
  background: #fff;
}

.venue-gallery img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.venue-main-image {
  aspect-ratio: 4 / 3;
}

.venue-thumbs {
  min-width: 0;
  display: grid;
  gap: 0.375rem;
}

.venue-thumbs img {
  min-height: 0;
  aspect-ratio: 4 / 3;
}

.venue-body {
  padding: 1rem;
}

.venue-title-row {
  position: relative;
  padding-right: 6.25rem;
}

.venue-title-row h3 {
  margin: 0;
  color: var(--text);
  font-size: 1.0625rem;
  line-height: 1.25;
}

.venue-body p {
  margin: 0.5rem 0 0;
  color: var(--body);
  font-size: 0.8125rem;
  line-height: 1.5;
}

.venue-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.875rem;
  margin-top: 0.75rem;
}

.venue-meta span {
  display: inline-flex;
  align-items: center;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 650;
  line-height: 1.25;
}

.venue-meta .icon {
  margin-right: 0.25rem;
  color: var(--accent);
  font-size: 0.9375rem;
  line-height: 1;
}

.venue-rate {
  position: absolute;
  top: 0;
  right: 0;
  display: grid;
  gap: 0.125rem;
  justify-items: end;
  text-align: right;
}

.venue-rate strong {
  color: var(--accent);
  font-size: 0.875rem;
  font-weight: 800;
  line-height: 1.15;
  white-space: nowrap;
}

.venue-rate span {
  margin-left: 0.0625rem;
  color: var(--muted);
  font-size: 0.625rem;
  font-weight: 650;
}

.venue-action {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.3125rem;
  width: 100%;
  margin-top: 1rem;
  min-height: 2.75rem;
  padding: 0 1rem;
  border: 0;
  border-radius: var(--radius-compact);
  color: var(--accent);
  background: var(--accent-soft);
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1.25;
  cursor: pointer;
}

.venue-action .icon {
  font-size: 1rem;
  line-height: 1;
}

.booking-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 1.25rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease;
}

.booking-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.booking-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(7, 17, 31, 0.5);
}

.booking-modal-panel {
  position: relative;
  z-index: 1;
  width: min(100%, 18rem);
  padding: 1.25rem;
  border-radius: var(--radius-card);
  background: #fff;
}

.booking-modal-close {
  position: absolute;
  top: 0.625rem;
  right: 0.625rem;
  width: 2rem;
  height: 2rem;
  border: 0;
  background: transparent;
  color: var(--muted);
  display: grid;
  place-items: center;
  padding: 0;
  cursor: pointer;
}

.booking-modal-close .icon {
  font-size: 1.25rem;
  line-height: 1;
}

.booking-modal-panel h2 {
  margin: 0 2rem 1rem 0;
  color: var(--text);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.25;
}

.booking-contact-list {
  display: grid;
  gap: 0.75rem;
}

.booking-contact-item {
  display: grid;
  gap: 0.375rem;
  padding: 0.875rem;
  border-radius: var(--radius-compact);
  background: #f8fafc;
}

.booking-contact-item span {
  color: var(--accent);
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1.25;
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
}

.booking-contact-item span .icon {
  font-size: 1rem;
  line-height: 1;
}

.booking-contact-item strong {
  color: var(--text);
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.35;
}
