:root {
  --bg: #f4f7fb;
  --surface: #ffffff;
  --surface-soft: #f7f9fd;
  --ink: #171717;
  --muted: #5c6471;
  --line: rgba(27, 54, 93, 0.09);
  --blue: #224c9a;
  --blue-soft: #e9f0ff;
  --red: #d9342b;
  --red-soft: #ffe9e8;
  --shadow: 0 24px 60px rgba(24, 50, 89, 0.08);
  --max-width: 1220px;
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: "Manrope", "Noto Sans SC", sans-serif;
  background: var(--bg);
}

body.is-intro-active {
  overflow: hidden;
}

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

button {
  font: inherit;
}

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

.container {
  width: min(calc(100% - 32px), var(--max-width));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
  transition: all 0.3s ease;
}

.site-header.is-scrolled {
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.header-inner {
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 10px 0;
  transition: all 0.3s ease;
}

.site-header.is-scrolled .header-inner {
  min-height: 56px;
  padding: 6px 0;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.logo--image-only {
  gap: 0;
}

.logo-mark {
  width: 300px;
  height: 60px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 300px;
  transition: all 0.3s ease;
}

.logo-mark img {
  width: 300px;
  height: 60px;
  object-fit: contain;
  display: block;
  transition: all 0.3s ease;
}

/* 滚动时logo变小 */
.site-header.is-scrolled .logo-mark {
  width: 250px;
  height: 50px;
  flex-basis: 250px;
}

.site-header.is-scrolled .logo-mark img {
  width: 250px;
  height: 50px;
}

.logo-copy {
  display: grid;
  gap: 2px;
}

.logo-copy strong {
  font-size: 1.05rem;
}

.logo-copy small {
  color: var(--muted);
  font-size: 0.82rem;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 40px;
  font-size: 1.15rem;
  font-weight: 600;
}

.main-nav a,
.header-link {
  color: #4a5568;
  transition: color 180ms ease;
  position: relative;
}

.main-nav a:hover,
.main-nav a.is-current,
.header-link:hover {
  color: #1a365d;
}

.main-nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: #c53030;
  border-radius: 1px;
  transform: scaleX(0);
  transition: transform 200ms ease;
}

.main-nav a:hover::after,
.main-nav a.is-current::after {
  transform: scaleX(1);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.header-button,
.primary-btn,
.secondary-btn,
.card-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.header-button,
.primary-btn,
.card-link {
  background: #1a365d;
  color: #fff;
}

.header-button {
  padding: 11px 18px;
}

.primary-btn,
.secondary-btn {
  min-width: 148px;
  padding: 14px 22px;
}

.secondary-btn {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  color: #1a365d;
}

.card-link {
  width: fit-content;
  padding: 11px 16px;
  font-size: 0.88rem;
  font-weight: 600;
  border-radius: 8px;
}
}

.header-button:hover,
.primary-btn:hover,
.secondary-btn:hover,
.card-link:hover {
  transform: translateY(-2px);
}

.site-intro {
  position: fixed;
  inset: 0;
  z-index: 140;
  display: grid;
  place-items: center;
  overflow: hidden;
  transition: opacity 700ms ease, visibility 700ms ease;
}

.site-intro.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.site-intro__backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 34%, rgba(213, 224, 255, 0.55), transparent 26%),
    radial-gradient(circle at 72% 58%, rgba(255, 214, 214, 0.48), transparent 24%),
    linear-gradient(180deg, #ffffff 0%, #fbfbfb 100%);
}

.site-intro__content {
  position: relative;
  z-index: 1;
  width: min(92vw, 980px);
  padding: 42px 24px;
  text-align: center;
  color: #161616;
  animation: introLift 2.3s ease both;
}

.site-intro__line {
  margin: 0;
  font-size: clamp(1.65rem, 4vw, 3.7rem);
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.15;
  color: rgba(22, 22, 22, 0.14);
  background-image: linear-gradient(
    110deg,
    rgba(22, 22, 22, 0.12) 0%,
    rgba(22, 22, 22, 0.18) 18%,
    #1e46a3 28%,
    #315fd4 36%,
    #ffffff 46%,
    #fff4f4 50%,
    #ef4135 60%,
    #cf2d24 70%,
    rgba(22, 22, 22, 0.18) 82%,
    rgba(22, 22, 22, 0.12) 100%
  );
  background-size: 260% 100%;
  background-position: 120% 50%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: introShine 2s ease-in-out infinite;
}

.site-intro__line--desktop {
  display: block;
}

.site-intro__line--mobile {
  display: none;
}

@keyframes introLift {
  0% {
    opacity: 0;
    transform: translateY(24px) scale(0.98);
  }
  18% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  74% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  100% {
    opacity: 0.94;
    transform: translateY(-10px) scale(1.02);
  }
}

@keyframes introShine {
  0% {
    background-position: 120% 50%;
  }
  100% {
    background-position: -20% 50%;
  }
}

.hero-section,
.page-hero {
  padding: 28px 0 28px;
}

.hero-shell {
  padding: 48px;
  min-height: auto;
  border-radius: 16px;
  position: relative;
  overflow: hidden;
  background: #f7fafc;
  border: 1px solid #e2e8f0;
}

.hero-shell::before {
  content: "";
  position: absolute;
  inset: 24px 32px 24px auto;
  width: min(35vw, 360px);
  background: url("./lyon-outline.svg") no-repeat center / contain;
  opacity: 0.78;
  pointer-events: none;
}

.hero-shell::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 22%, rgba(255, 255, 255, 0.72), transparent 30%),
    radial-gradient(circle at 84% 18%, rgba(255, 255, 255, 0.44), transparent 22%);
  pointer-events: none;
}

.hero-copy {
  max-width: none;
  width: 100%;
  text-align: left;
  position: relative;
  z-index: 1;
}

.hero-stage {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 360px);
  gap: 34px;
  align-items: center;
}

.hero-illustration {
  position: relative;
  z-index: 1;
}

.hero-art-card {
  position: relative;
  min-height: 240px;
  border-radius: 24px;
  padding: 24px 28px 0;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}

.hero-art-orbit {
  position: absolute;
  border-radius: 999px;
  filter: blur(4px);
}

.hero-art-orbit--blue {
  inset: 20px auto auto 20px;
  width: 80px;
  height: 80px;
  background: radial-gradient(circle, rgba(212, 228, 240, 0.6) 0%, rgba(212, 228, 240, 0.2) 70%, transparent 100%);
}

.hero-art-orbit--red {
  inset: auto 16px 100px auto;
  width: 70px;
  height: 70px;
  background: radial-gradient(circle, rgba(232, 212, 212, 0.5) 0%, rgba(232, 212, 212, 0.15) 70%, transparent 100%);
}

.hero-art-copy {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 6px;
  max-width: 280px;
  margin-bottom: 20px;
}

.hero-art-copy strong {
  font-size: clamp(1.15rem, 1.8vw, 1.4rem);
  line-height: 1.4;
  color: #1a365d;
  font-weight: 600;
}

.hero-art-stamp {
  position: absolute;
  top: 24px;
  right: 28px;
  color: rgba(26, 54, 93, 0.06);
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1;
  text-align: right;
}

.hero-art-skyline {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.hero-kicker {
  margin: 0 0 12px;
  color: #1a365d;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.section-kicker,
.overview-kicker,
.map-side-kicker,
.contact-kicker,
.partner-kicker,
.page-kicker {
  margin: 0 0 12px;
  color: #c53030;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero-copy h1,
.section-title h2,
.page-hero-copy h1,
.partner-banner h2,
.contact-card h2 {
  margin: 0;
  line-height: 1.15;
  color: #1a365d;
}

.hero-copy h1,
.page-hero-copy h1 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  max-width: none;
}

.page-hero-copy h1 {
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
}

.hero-desc,
.section-title p,
.page-intro,
.content-section p,
.partner-banner p,
.contact-card p,
.map-side p,
.site-footer p,
.city-card p,
.info-card p,
.article-card p,
.guide-card p,
.resource-card p,
.audience-card p,
.stat-card p,
.service-card p,
.mini-note,
.school-card p,
.transport-card p {
  color: #4a5568;
  line-height: 1.7;
}

.hero-desc {
  max-width: none;
  margin: 20px 0 24px;
}

.hero-service-pills {
  display: grid;
  gap: 16px;
  justify-items: start;
  width: 100%;
}

.hero-service-pills article,
.mini-card,
.note-box,
.cta-strip {
  padding: 18px 20px;
  border-radius: 20px;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.hero-service-pills article {
  background: rgba(255, 255, 255, 0.72);
  width: 100%;
  text-align: left;
}

.hero-service-pills strong,
.mini-card strong,
.note-box strong,
.cta-strip strong {
  display: block;
  margin-bottom: 8px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  margin-top: 0;
}

.section-title {
  margin-bottom: 28px;
}

.section-title.center {
  text-align: center;
}

.section-title h2 {
  font-size: 1.6rem;
  font-weight: 600;
  color: #1a365d;
}

.section-title p {
  color: #4a5568;
  font-size: 0.95rem;
  line-height: 1.6;
}

.home-section,
.map-section,
.contact-section,
.partner-section,
.page-section {
  padding: 0 0 68px;
}

.contact-section {
  background: #f7fafc;
  padding-top: 48px;
  padding-bottom: 48px;
}

.contact-section h2 {
  font-size: 1.6rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: #1a365d;
}

.contact-section .section-intro {
  max-width: 56ch;
  margin-bottom: 24px;
  color: #4a5568;
  font-size: 0.95rem;
}

.contact-section .container {
  text-align: center;
}

.dual-grid,
.audience-grid,
.guide-grid,
.stats-grid,
.link-grid,
.city-grid,
.school-grid,
.transport-grid,
.resource-grid,
.content-grid-two,
.content-grid-three,
.footer-grid,
.map-layout,
.partner-list,
.contact-list {
  display: grid;
  gap: 18px;
}

.dual-grid,
.city-grid,
.transport-grid,
.content-grid-two,
.map-layout {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.audience-grid,
.guide-grid,
.school-grid,
.resource-grid,
.content-grid-three,
.link-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.audience-grid--four,
.stats-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.topic-strip {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
}

.link-grid--slider {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(320px, 360px);
  grid-template-columns: none;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: none;
  scroll-behavior: auto;
  gap: 18px;
  padding: 4px 2px 10px;
  scrollbar-width: none;
  cursor: grab;
  user-select: none;
}

.link-grid--slider::-webkit-scrollbar {
  display: none;
}

.link-grid--slider .guide-card {
  min-height: 236px;
}

.link-grid--slider.is-dragging {
  cursor: grabbing;
}

.topic-strip {
  position: relative;
}

.topic-strip::before,
.topic-strip::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 60px;
  pointer-events: none;
  z-index: 10;
}

.topic-strip::before {
  left: 0;
  background: linear-gradient(to right, var(--bg) 0%, transparent 100%);
}

.topic-strip::after {
  right: 0;
  background: linear-gradient(to left, var(--bg) 0%, transparent 100%);
}

.footer-grid {
  grid-template-columns: 1.2fr 0.8fr 1fr;
}

.service-card,
.audience-card,
.guide-card,
.stat-card,
.content-card,
.info-card,
.article-card,
.city-card,
.school-card,
.transport-card,
.resource-card,
.map-wrap,
.map-side,
.contact-card,
.partner-banner,
.content-section {
  border-radius: 16px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.service-card,
.audience-card,
.guide-card,
.content-card,
.info-card,
.article-card,
.city-card,
.school-card,
.transport-card,
.resource-card,
.content-section {
  padding: 24px;
}

.service-card {
  background: #ffffff;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: #c53030;
}

.service-card--local,
.service-card--business {
  background: #ffffff;
}

.service-intro {
  margin: 0 0 18px;
  color: #4a5568;
  max-width: 52ch;
  font-size: 0.92rem;
  line-height: 1.7;
}

.service-card--local .overview-kicker,
.service-card--business .overview-kicker {
  display: inline-flex;
  width: fit-content;
  padding: 6px 12px;
  border-radius: 6px;
  margin-bottom: 14px;
  letter-spacing: 0.08em;
  font-size: 0.75rem;
  font-weight: 600;
}

.service-card--local .overview-kicker {
  background: #f7fafc;
  border: 1px solid #e2e8f0;
  color: #1a365d;
}

.service-card--business .overview-kicker {
  background: #f7fafc;
  border: 1px solid #e2e8f0;
  color: #1a365d;
}

.service-card h3,
.audience-card h3,
.guide-card h3,
.content-card h3,
.info-card h3,
.article-card h3,
.city-card h3,
.school-card h3,
.transport-card h3,
.resource-card h3 {
  margin: 0 0 12px;
  font-size: 1.1rem;
  font-weight: 600;
  color: #1a365d;
}

.guide-card {
  display: grid;
  align-content: space-between;
  gap: 18px;
  min-height: 228px;
  background: #ffffff;
}

.guide-card p {
  color: #4a5568;
  font-size: 0.88rem;
  line-height: 1.6;
}

.why-grid {
  margin-top: 18px;
}

.audience-card {
  display: grid;
  gap: 12px;
  cursor: pointer;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.audience-card:hover {
  border-color: #3b82f6;
  box-shadow: 0 8px 24px rgba(59, 130, 246, 0.15);
  transform: translateY(-4px);
}

.audience-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #3b82f6;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  padding: 8px 0;
  transition: gap 0.2s ease;
}

.audience-link::after {
  content: "→";
  transition: transform 0.2s ease;
}

.audience-card:hover .audience-link {
  gap: 10px;
}

.audience-card:hover .audience-link::after {
  transform: translateX(4px);
}

.audience-card p,
.guide-card p {
  margin: 0;
}

.service-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.service-list li {
  display: grid;
  grid-template-columns: 80px 1fr;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  border-radius: 10px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  line-height: 1.6;
  font-size: 0.9rem;
  color: #4a5568;
}

.service-card--local .service-list li {
  background: #ffffff;
}

.service-card--business .service-list li {
  background: #ffffff;
}

.service-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 8px;
  border-radius: 6px;
  background: #1a365d;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-align: center;
}

.mini-list,
.link-list,
.school-list,
.transport-list,
.resource-list,
.page-list,
.city-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.mini-list li,
.link-list li,
.school-list li,
.transport-list li,
.resource-list li,
.page-list li,
.city-list li {
  padding: 12px 14px;
  border-radius: 10px;
  background: #f7fafc;
  border: 1px solid #e2e8f0;
  line-height: 1.7;
  color: #4a5568;
}

.service-card .mini-list li {
  background: rgba(255, 255, 255, 0.8);
  border-color: rgba(34, 76, 154, 0.1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.service-card--local .mini-list li {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9) 0%, rgba(241, 246, 255, 0.96) 100%);
}

.service-card--business .mini-list li {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94) 0%, rgba(247, 250, 255, 0.98) 100%);
}

.mini-list li strong,
.school-list li strong,
.transport-list li strong,
.resource-list li strong,
.page-list li strong,
.city-list li strong {
  display: block;
  margin-bottom: 4px;
  color: #1a365d;
}

.guide-card ul,
.article-card ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.8;
}

.stat-card {
  padding: 28px;
  text-align: center;
}

.stat-card strong {
  display: block;
  margin-bottom: 10px;
  font-size: clamp(2rem, 3vw, 3rem);
}

.map-wrap {
  padding: 14px;
}

.lyon-map-frame {
  position: relative;
  width: 100%;
  border-radius: 22px;
  padding: 14px;
  background: linear-gradient(180deg, #f8fbff 0%, #eef4ff 100%);
  border: 1px solid rgba(34, 76, 154, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.map-frame-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
  color: rgba(0, 0, 0, 0.56);
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.map-frame-top small {
  letter-spacing: 0.04em;
  text-transform: none;
}

.lyon-map-canvas {
  position: relative;
  width: 100%;
  height: 620px;
  border-radius: 22px;
  overflow: hidden;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 50% 36%, rgba(255, 255, 255, 0.94), rgba(240, 245, 255, 0.92) 56%, rgba(231, 238, 250, 0.88) 100%),
    linear-gradient(180deg, #f7f9fd 0%, #eaf0fb 100%);
}

.lyon-map-svg {
  width: 100%;
  height: 100%;
  display: block;
}

.district-node {
  cursor: pointer;
  outline: none;
}

.district-halo {
  fill: none;
  stroke: rgba(14, 18, 26, 0.2);
  stroke-width: 18px;
  stroke-linejoin: round;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
  opacity: 0;
  filter: drop-shadow(0 14px 20px rgba(0, 0, 0, 0.12));
  transition: opacity 220ms ease, stroke 220ms ease, stroke-width 220ms ease;
}

.district-shape {
  fill: var(--district-fill);
  stroke: rgba(255, 255, 255, 0.98);
  stroke-width: 6px;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
  transform-box: fill-box;
  transform-origin: center;
  transition:
    transform 220ms ease,
    filter 220ms ease,
    fill 220ms ease,
    stroke 220ms ease,
    opacity 220ms ease;
}

.district-node:hover .district-shape,
.district-node.is-active .district-shape,
.district-node:focus-visible .district-shape {
  fill: color-mix(in srgb, var(--district-fill) 90%, white 10%);
  filter: drop-shadow(0 12px 22px rgba(34, 76, 154, 0.12));
}

.district-node:hover .district-halo,
.district-node.is-active .district-halo,
.district-node:focus-visible .district-halo {
  opacity: 1;
}

.district-node:hover .district-halo {
  stroke: rgba(18, 22, 30, 0.26);
}

.district-node.is-active .district-halo,
.district-node:focus-visible .district-halo {
  stroke: rgba(10, 12, 18, 0.54);
  stroke-width: 20px;
}

.district-label {
  fill: #122743;
  font-size: 54px;
  font-weight: 800;
  letter-spacing: -0.05em;
  text-anchor: middle;
  dominant-baseline: central;
  pointer-events: none;
  transition: transform 220ms ease, fill 220ms ease;
}

.district-label.is-active,
.district-node:hover + .district-label,
.district-node:focus-visible + .district-label {
  fill: #09172c;
}

.map-side {
  padding: 28px;
}

.map-side h3 {
  margin: 0;
  font-size: 1.4rem;
  font-weight: 600;
  color: #1a365d;
}

.map-side-box {
  padding: 16px;
  margin-top: 14px;
  border-radius: 12px;
  background: #f7fafc;
  border: 1px solid #e2e8f0;
}

.map-side-box span {
  display: block;
  margin-bottom: 8px;
  color: #718096;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.metropole-section {
  padding: 64px 0;
  background: #f7fafc;
}

.metropole-intro {
  margin: 0 0 24px;
  color: #4a5568;
  max-width: 80ch;
  line-height: 1.7;
  font-size: 0.92rem;
}

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

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

@media (max-width: 640px) {
  .metropole-grid {
    grid-template-columns: 1fr;
  }
}

.metropole-header {
  margin-bottom: 28px;
}

.metropole-header h3 {
  margin: 0 0 12px;
  font-size: 1.4rem;
  font-weight: 600;
  color: #1a365d;
}

.metropole-header p {
  margin: 0;
  color: #4a5568;
  max-width: 80ch;
}

.metropole-card {
  padding: 24px;
  border-radius: 16px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
}

.metropole-card h4 {
  margin: 0 0 8px;
  font-size: 1.05rem;
  font-weight: 600;
  color: #1a365d;
}

.metropole-desc {
  margin: 0 0 14px;
  font-size: 0.88rem;
  color: #4a5568;
  line-height: 1.5;
}

.metropole-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.metropole-list li {
  padding: 10px 0;
  font-size: 0.88rem;
  line-height: 1.6;
  border-bottom: 1px solid #e2e8f0;
  color: #4a5568;
}

.metropole-list li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.metropole-list strong {
  color: #1a365d;
}

.page-hero-shell {
  padding: 46px;
  border-radius: 16px;
  background: #f7fafc;
  border: 1px solid #e2e8f0;
}

.breadcrumb {
  margin: 0 0 16px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 10px 20px;
  background: #f7fafc;
  border-radius: 50px;
  gap: 12px;
  color: #718096;
  font-size: 0.9rem;
  line-height: 1.5;
}

.breadcrumb a,
.breadcrumb span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1.5;
}

.breadcrumb a {
  color: #1a365d;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

.breadcrumb a:hover {
  color: #3182ce;
}

.breadcrumb span {
  color: #cbd5e0;
  font-weight: 500;
}

.page-hero-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

.page-hero-copy h1 {
  max-width: none;
}

.page-intro {
  max-width: 860px;
  margin: 20px 0 0;
}

.content-stack {
  display: grid;
  gap: 24px;
}

.content-section h2 {
  margin: 0 0 16px;
  font-size: 1.4rem;
}

.content-section h3 {
  margin: 0 0 12px;
  font-size: 1.1rem;
  color: #1a365d;
}

.note-box,
.cta-strip {
  background: #f7fafc;
  border: 1px solid #e2e8f0;
}

.city-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

.city-meta span {
  padding: 8px 14px;
  border-radius: 8px;
  background: #f7fafc;
  border: 1px solid #e2e8f0;
  font-size: 0.85rem;
  color: #4a5568;
}

.partner-banner,
.contact-card {
  padding: 32px;
}

.contact-card {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
  gap: 28px;
  align-items: stretch;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
}

.contact-copy {
  display: grid;
  align-content: center;
  gap: 18px;
}

.contact-copy p {
  margin: 0;
  max-width: 60ch;
}

/* Contact 区块 - 符合整体风格 */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 32px;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}

.contact-wechat,
.contact-email {
  background: white;
  border-radius: 12px;
  border: 1px solid var(--line);
  transition: all 0.3s ease;
}

.contact-wechat:hover,
.contact-email:hover {
  border-color: var(--blue);
  box-shadow: 0 6px 24px rgba(26, 54, 93, 0.1);
  transform: translateY(-3px);
}

.contact-wechat-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 24px;
}

.contact-wechat-qr {
  width: 88px;
  height: 88px;
  border-radius: 8px;
  overflow: hidden;
  background: #f8fafc;
  flex-shrink: 0;
}

.contact-wechat-qr img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.contact-wechat-info {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.contact-wechat-info h3 {
  font-size: 1.1rem;
  color: var(--ink);
  margin: 0;
}

/* 微信复制按钮 */
.wechat-copy-btn,
.wechat-open-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
  text-decoration: none;
  border: none;
}

.wechat-copy-btn {
  background: #1a365d;
  color: white;
}

.wechat-copy-btn:hover {
  background: #2c5282;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(26, 54, 93, 0.25);
} 

.wechat-copy-btn:active,
.wechat-open-btn:active {
  transform: translateY(0);
}

/* 微信提示 */
.wechat-toast {
  position: absolute;
  bottom: -50px;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: var(--ink);
  color: white;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 0.9rem;
  white-space: nowrap;
  opacity: 0;
  transition: all 0.3s ease;
  pointer-events: none;
  z-index: 10;
}

.wechat-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.contact-wechat {
  position: relative;
}

.contact-email-inner {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  padding: 20px 24px;
}

.contact-email-inner h3 {
  font-size: 1.1rem;
  color: var(--ink);
  margin: 0;
}

.contact-email-link {
  font-size: 0.95rem;
  color: var(--blue);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s;
}

.contact-email-link:hover {
  color: var(--ink);
  text-decoration: underline;
}

.contact-email-note {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0;
}

/* 旧的contact样式 - 保留用于兼容 */
.qr-card strong,
.contact-mail strong {
  font-size: 1.05rem;
}

.contact-mail {
  grid-column: 1 / -1;
  display: grid;
  gap: 8px;
  align-content: center;
  color: #fff;
  background: #1a365d;
}

.contact-mail span,
.contact-mail small,
.contact-mail strong {
  color: #fff;
}

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

.partner-list span,
.contact-list article {
  padding: 14px 16px;
  border-radius: 10px;
  background: #f7fafc;
  border: 1px solid #e2e8f0;
}

.contact-list span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
}

.site-footer {
  padding: 28px 0 36px;
  background: #1a365d;
  color: rgba(255, 255, 255, 0.9);
}

.footer-grid a {
  display: block;
  margin-bottom: 8px;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 650ms ease, transform 650ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1120px) {
  .dual-grid,
  .city-grid,
  .transport-grid,
  .content-grid-two,
  .footer-grid,
  .map-layout {
    grid-template-columns: 1fr;
  }

  .guide-grid,
  .audience-grid,
  .resource-grid,
  .content-grid-three,
  .school-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 820px) {
  .container {
    width: min(calc(100% - 20px), var(--max-width));
  }

  .header-inner {
    min-height: auto;
    padding: 10px 0;
    flex-wrap: wrap;
  }

  .main-nav {
    order: 3;
    width: 100%;
    overflow-x: auto;
    gap: 28px;
    padding-bottom: 4px;
    justify-content: center;
  }

  .header-actions,
  .hero-actions {
    flex-wrap: wrap;
  }

  .hero-shell,
  .page-hero-shell,
  .content-section,
  .partner-banner,
  .contact-card {
    padding: 24px;
  }

  .contact-card,
  .contact-panel,
  .contact-grid {
    grid-template-columns: 1fr;
  }
  
  .contact-wechat-inner {
    flex-direction: column;
    text-align: center;
    gap: 16px;
  }
  
  .contact-wechat-qr {
    width: 100px;
    height: 100px;
  }
  
  .contact-email-inner {
    min-height: auto;
    text-align: center;
  }

  .hero-stage {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .hero-illustration {
    max-width: 460px;
  }

  .hero-shell::before {
    width: min(52vw, 260px);
    inset: auto 14px 14px auto;
    opacity: 0.34;
  }

  .hero-art-card {
    min-height: 200px;
    padding: 20px 18px 0;
  }

  .hero-art-copy {
    max-width: 220px;
    margin-bottom: 16px;
  }

  .hero-art-stamp {
    top: 16px;
    right: 18px;
  }

  .logo-mark {
    width: 184px;
    height: 40px;
    flex-basis: 184px;
  }

  .logo-mark img {
    width: 184px;
    height: 40px;
    object-fit: cover;
  }

  .hero-copy h1,
  .page-hero-copy h1 {
    max-width: none;
    font-size: clamp(2.35rem, 12vw, 4rem);
  }

  .hero-copy h1 {
    white-space: normal;
  }

  .guide-grid,
  .audience-grid,
  .resource-grid,
  .content-grid-three,
  .partner-list,
  .contact-list,
  .stats-grid,
  .school-grid {
    grid-template-columns: 1fr;
  }

  .topic-strip {
    grid-template-columns: 1fr;
  }

  .link-grid--slider {
    grid-auto-columns: minmax(280px, 86vw);
    padding-bottom: 8px;
  }

  .lyon-map-canvas {
    height: 460px;
  }

  .district-label {
    font-size: 38px;
  }

  .site-intro__line {
    letter-spacing: 0.04em;
  }
  
  .site-intro__line--desktop {
    display: none;
  }
  
  .site-intro__line--mobile {
    display: block;
  }
}

/* ========================================
   子页面 - 简约高贵设计
   ======================================== */

.page-section {
  padding: 80px 0;
  background: linear-gradient(180deg, #fafafa 0%, #ffffff 50%, #f8f9fa 100%);
}

.content-stack {
  display: grid;
  gap: 56px;
  max-width: 960px;
  margin: 0 auto;
}

.content-section {
  position: relative;
}

.content-section h2 {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 18px;
  color: #1a365d;
  position: relative;
  padding-left: 16px;
}

.content-section h2::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 20px;
  background: #c53030;
  border-radius: 2px;
}

.content-section > p {
  color: #4a5568;
  margin-bottom: 28px;
  line-height: 1.75;
  font-size: 0.95rem;
}

.content-grid-two {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin: 28px 0;
}

.article-card {
  padding: 24px;
  border-radius: 12px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.article-card h3 {
  font-size: 1rem;
  font-weight: 600;
  color: #1a365d;
  margin-bottom: 14px;
}

.article-card h4 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 10px;
  margin-top: 20px;
  color: #1a365d;
  padding-top: 16px;
  border-top: 1px solid #e2e8f0;
}

.article-card h4:first-of-type {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.article-card p {
  color: #4a5568;
  line-height: 1.7;
  margin-bottom: 8px;
  font-size: 0.9rem;
}

.transport-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin: 28px 0;
}

.transport-card {
  padding: 24px;
  border-radius: 12px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.transport-card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 14px;
  color: #1a365d;
}

.transport-list {
  list-style: none;
  padding: 0;
  margin: 0 0 16px 0;
}

.transport-list li {
  padding: 10px 12px;
  color: #4a5568;
  font-size: 0.88rem;
  background: #f7fafc;
  border-radius: 8px;
  margin-bottom: 6px;
  line-height: 1.6;
}

.transport-list li:last-child {
  margin-bottom: 0;
}

.page-list li {
  padding: 14px 16px;
  color: #555;
  line-height: 1.75;
  font-size: 0.9rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
  background: rgba(0, 0, 0, 0.02);
  border-radius: 10px;
  margin-bottom: 8px;
}

.page-list li:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.page-list li strong {
  color: #1a365d;
  font-weight: 600;
}

.info-card {
  padding: 28px;
  border-radius: 12px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  margin: 32px 0;
  position: relative;
  overflow: hidden;
}

.info-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: #c53030;
}

.info-card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 18px;
  color: #1a365d;
}

.info-card.highlight {
  background: #fffafa;
  border-color: #feb2b2;
}

.info-card.highlight::before {
  background: #c53030;
}

.note-box {
  padding: 20px 24px;
  border-radius: 10px;
  background: #f7fafc;
  border-left: 3px solid #1a365d;
  margin: 28px 0;
}

.note-box strong {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: #1a365d;
}

.note-box ul,
.note-box p {
  margin: 0;
  color: #4a5568;
  line-height: 1.75;
  font-size: 0.88rem;
}

.inline-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.link-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  border-radius: 8px;
  background: #1a365d;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.25s ease;
}

.link-chip:hover {
  background: #2c5282;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(26, 54, 93, 0.25);
}

/* 页面Hero区域优化 */
.page-hero {
  padding: 60px 0;
  background: #f7fafc;
  border-bottom: 1px solid #e2e8f0;
}

.page-hero-shell {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 48px;
  align-items: center;
  padding: 32px 40px;
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 8px 24px rgba(0, 0, 0, 0.04);
}

.breadcrumb {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 10px 20px;
  background: #f7fafc;
  border-radius: 50px;
  gap: 12px;
  color: #718096;
  font-size: 0.9rem;
  margin-bottom: 16px;
  line-height: 1.5;
}

.breadcrumb a,
.breadcrumb span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1.5;
}

.breadcrumb a {
  color: #1a365d;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

.breadcrumb a:hover {
  color: #3182ce;
}

.breadcrumb span {
  color: #cbd5e0;
  font-weight: 500;
}

.breadcrumb a {
  color: #888;
  text-decoration: none;
  transition: color 0.2s;
}

.breadcrumb a:hover {
  color: #1a1a1a;
}

.page-kicker {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #888;
  margin-bottom: 12px;
}

.page-hero-copy h1 {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #1a1a1a;
  margin-bottom: 16px;
  line-height: 1.2;
}

.page-intro {
  color: #666;
  font-size: 0.95rem;
  line-height: 1.7;
}

.page-hero-image {
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

@media (max-width: 820px) {
  .page-hero-shell {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 24px;
  }
  
  .page-hero-image {
    height: 180px;
  }
  
  .content-grid-two,
  .transport-grid,
  .content-grid-three {
    grid-template-columns: 1fr;
  }
  
  .page-section {
    padding: 48px 0;
  }
}

/* ========================================
   城市历史页面专用样式
   ======================================== */

/* 统一卡片基础样式 */
.article-card,
.timeline-card,
.heritage-card,
.festival-highlights,
.stat-item,
.explain-box,
.feature-item {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.article-card h3,
.timeline-card h3,
.heritage-card h3,
.festival-highlights h3,
.explain-box h3 {
  font-size: 1rem;
  font-weight: 600;
  color: #1a365d;
  margin: 0 0 12px;
}

.lead-text {
  font-size: 1.02rem;
  line-height: 1.75;
  color: #2d3748;
  margin-bottom: 28px;
}

/* 城市简介卡片 */
.article-card {
  padding: 24px;
}

.article-card p {
  color: #4a5568;
  font-size: 0.9rem;
  margin: 0 0 4px;
  line-height: 1.6;
}

/* 时间线样式 */
.timeline-section {
  display: grid;
  gap: 20px;
  margin-top: 24px;
}

.timeline-card {
  position: relative;
  padding: 28px 28px 28px 140px;
}

.timeline-marker {
  position: absolute;
  left: 20px;
  top: 28px;
  font-size: 0.72rem;
  font-weight: 600;
  color: #ffffff;
  background: #1a365d;
  padding: 8px 12px;
  border-radius: 6px;
  min-width: 90px;
  text-align: center;
  line-height: 1.3;
}

.timeline-card > p {
  color: #4a5568;
  line-height: 1.75;
  margin-bottom: 16px;
  font-size: 0.92rem;
}

/* 世界遗产网格 */
.heritage-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.heritage-card:last-child {
  grid-column: span 2;
}

.heritage-card {
  padding: 24px;
}

.heritage-card p {
  color: #4a5568;
  font-size: 0.88rem;
  line-height: 1.6;
  margin: 0;
}

/* 灯光节样式 */
.festival-grid {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 24px;
  margin-top: 24px;
}

.festival-stats {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.stat-item {
  padding: 20px;
  text-align: center;
}

.stat-number {
  display: block;
  font-size: 1.4rem;
  font-weight: 700;
  color: #c53030;
}

.stat-label {
  display: block;
  font-size: 0.78rem;
  color: #718096;
  margin-top: 4px;
}

.festival-highlights {
  padding: 24px;
}

.festival-note {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #e2e8f0;
  font-size: 0.85rem;
  color: #718096;
  font-style: italic;
}

/* 里昂大都市解释区域 */
.metropole-explain {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 24px 0;
  flex-wrap: wrap;
}

.explain-box {
  flex: 1;
  min-width: 200px;
  padding: 24px;
}

.explain-box p {
  color: #4a5568;
  font-size: 0.88rem;
  margin: 0;
  line-height: 1.6;
}

.explain-arrow {
  font-size: 1.3rem;
  color: #1a365d;
  font-weight: 300;
}

.metropole-cities {
  margin: 20px 0;
}

.metropole-cities h3 {
  font-size: 0.95rem;
  font-weight: 600;
  color: #1a365d;
  margin-bottom: 14px;
}

.city-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.city-tag {
  padding: 6px 14px;
  background: #f7fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  font-size: 0.82rem;
  color: #4a5568;
}

.metropole-features {
  margin: 20px 0;
}

.metropole-features h3 {
  font-size: 0.95rem;
  font-weight: 600;
  color: #1a365d;
  margin-bottom: 14px;
}

.feature-item {
  padding: 20px;
}

.feature-item strong {
  display: block;
  font-size: 0.92rem;
  color: #1a365d;
  margin-bottom: 6px;
}

.feature-item p {
  color: #718096;
  font-size: 0.82rem;
  margin: 0;
}

.example-box {
  margin: 20px 0;
  padding: 20px 24px;
  background: #f7fafc;
  border-radius: 10px;
  border-left: 3px solid #c53030;
}

.example-box h4 {
  font-size: 0.85rem;
  font-weight: 600;
  color: #c53030;
  margin: 0 0 8px;
}

.example-box p {
  color: #4a5568;
  font-size: 0.88rem;
  line-height: 1.7;
  margin: 0;
}

/* 总结框 - 深蓝白字 */
.summary-box {
  padding: 32px;
  background: #1a365d;
  border-radius: 12px;
  text-align: center;
}

.summary-box h3 {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  margin: 0 0 16px;
}

.summary-box p {
  color: #ffffff;
  font-size: 1.05rem;
  line-height: 1.75;
  margin: 0;
  max-width: 60ch;
  margin-left: auto;
  margin-right: auto;
}

/* 图片样式 */
.section-image {
  margin: 24px 0;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
}

.section-image img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 16/9;
  object-fit: cover;
}

@media (max-width: 820px) {
  .heritage-grid {
    grid-template-columns: 1fr;
  }
  
  .festival-grid {
    grid-template-columns: 1fr;
  }
  
  .festival-stats {
    flex-direction: row;
  }
  
  .stat-item {
    flex: 1;
  }
  
  .metropole-explain {
    flex-direction: column;
    align-items: stretch;
  }
  
  .explain-arrow {
    transform: rotate(90deg);
    text-align: center;
  }
}

@media (max-width: 640px) {
  .timeline-card {
    padding: 20px;
    padding-top: 72px;
  }
  
  .timeline-marker {
    left: 20px;
    right: 20px;
    top: 20px;
    width: auto;
    min-width: auto;
  }
  
  .content-grid-three {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   增强型移动端与平板响应式设计
   ============================================ */

/* 平板横屏优化 (768px - 1024px) */
@media (min-width: 768px) and (max-width: 1024px) {
  .container {
    padding: 0 32px;
  }
  
  .page-section {
    padding: 56px 0;
  }
  
  .page-hero {
    padding: 48px 0;
  }
  
  .page-hero h1 {
    font-size: 2.25rem;
  }
  
  .page-hero p {
    font-size: 1.1rem;
  }
  
  /* 改善平板上的卡片布局 */
  .card-grid,
  .service-grid,
  .feature-grid {
    gap: 20px;
  }
  
  .card {
    padding: 24px;
  }
  
  /* 导航优化 */
  .main-nav {
    gap: 20px;
  }
  
  .main-nav a {
    font-size: 0.9rem;
  }
}


/* 桌面版隐藏移动端元素 */
.mobile-menu-btn {
  display: none;
  font-size: 0; /* 消除flex间隙 */
}
.mobile-menu-btn span {
  font-size: 0;
}
.mobile-dropdown {
  display: none;
}

/* 移动端竖屏优化 (max-width: 767px) */
@media (max-width: 767px) {
  /* 全局修复 */
  html, body {
    overflow-x: hidden !important;
    width: 100% !important;
    background: var(--bg) !important;
  }
  
  main {
    padding-top: 0 !important;
  }
  
  /* 容器 */
  .container {
    padding: 0 16px !important;
    width: 100% !important;
  }
  
  /* Header */
  .site-header {
    width: 100% !important;
    position: relative !important;
    top: 0 !important;
    z-index: 60 !important;
    background: rgba(255, 255, 255, 0.98) !important;
    border-bottom: 1px solid var(--line) !important;
    backdrop-filter: blur(12px) !important;
    overflow: visible !important;
  }
  
  .header-inner {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 10px 0 !important;
    gap: 8px !important;
    background: transparent !important;
  }
  
  .logo {
    flex-shrink: 0 !important;
  }
  
  .header-actions {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    flex-shrink: 0 !important;
    margin-right: 16px !important;
  }
  
  .header-button {
    padding: 6px 12px !important;
    font-size: 0.8rem !important;
  }
  
  /* 汉堡菜单改为下拉按钮 */
  .mobile-menu-btn {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 36px !important;
    height: 36px !important;
    background: #1a365d !important;
    border: none !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    padding: 0 !important;
    margin: 0 0 0 8px !important;
    font-size: 18px !important;
    color: white !important;
  }
  
  .mobile-menu-btn:hover {
    background: #1a365d !important;
    opacity: 0.85 !important;
  }
  
  .mobile-menu-btn span {
    display: none !important;
  }
  
  /* 悬浮下拉菜单 */
  .mobile-dropdown {
    display: block !important;
    position: absolute !important;
    top: 100% !important;
    right: 0 !important;
    background: white !important;
    border-radius: 12px !important;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15) !important;
    padding: 8px 0 !important;
    min-width: 180px !important;
    z-index: 1000 !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transform: translateY(-10px) !important;
    transition: all 0.3s ease !important;
  }
  
  .mobile-dropdown.active {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
  }
  
  /* Contact 板块移动端 */
  .contact-wrapper {
    flex-direction: column !important;
    gap: 16px !important;
  }
  
  .contact-sidebar {
    width: 100% !important;
  }
  
  .contact-intro h2 {
    font-size: 1.2rem !important;
  }
  
  .contact-intro p {
    font-size: 0.9rem !important;
  }
  
  .contact-row {
    flex-direction: row !important;
  }
  
  .contact-card {
    padding: 12px 14px !important;
  }
  
  .contact-card-text strong {
    font-size: 0.85rem !important;
  }
  
  .contact-card-text .email-link {
    font-size: 0.8rem !important;
  }
  
  .contact-card-icon {
    width: 40px !important;
    height: 40px !important;
  }
  
  .contact-card-icon svg {
    width: 20px !important;
    height: 20px !important;
  }
  
  .qr-image {
    width: 48px !important;
    height: 48px !important;
  }
  
  .contact-intro h2 {
    font-size: 1.2rem !important;
  }
  
  .contact-intro p {
    font-size: 0.9rem !important;
  }
  
  .mobile-dropdown a {
    display: block !important;
    padding: 12px 20px !important;
    color: #171717 !important;
    text-decoration: none !important;
    font-size: 0.95rem !important;
    font-weight: 500 !important;
    transition: background 0.2s !important;
  }
  
  .mobile-dropdown a:hover {
    background: #f7fafc !important;
    color: var(--blue) !important;
  }
  
  .mobile-dropdown a:last-child {
    background: #1a365d !important;
    color: white !important;
    margin: 4px 8px !important;
    border-radius: 8px !important;
    text-align: center !important;
  }
  
  .mobile-dropdown a:last-child:hover {
    background: #1a365d !important;
    opacity: 0.85 !important;
  }
  
  /* Hero区域 */
  .hero-section {
    padding: 16px 0 !important;
  }
  
  .hero-shell {
    padding: 20px !important;
    border-radius: 12px !important;
  }
  
  .hero-copy h1 {
    font-size: 1.5rem !important;
    line-height: 1.3 !important;
  }
  
  .hero-kicker {
    font-size: 0.7rem !important;
  }
  
  .hero-desc {
    font-size: 0.85rem !important;
    line-height: 1.5 !important;
  }
  
  .hero-stage {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }
  
  .hero-illustration {
    display: none !important;
  }
  
  /* 页面区块 */
  .page-section,
  .page-hero {
    padding: 24px 0 !important;
    width: 100% !important;
    overflow: hidden !important;
  }
  
  .page-hero h1 {
    font-size: 1.4rem !important;
    line-height: 1.3 !important;
  }
  
  .page-hero p {
    font-size: 0.9rem !important;
  }
  
  /* 网格改为单列 */
  .card-grid,
  .service-grid,
  .feature-grid,
  .audience-grid,
  .content-grid-three,
  .content-grid-two {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }
  
  /* 卡片 */
  .card,
  .service-card,
  .feature-card {
    padding: 16px !important;
    border-radius: 10px !important;
  }
  
  /* 双列变单列 */
  .dual-grid,
  .compare-grid,
  .map-layout {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }
  
  /* 表单 */
  .form-grid {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }
  
  .form-input,
  .form-textarea,
  .form-select {
    padding: 12px 14px !important;
    font-size: 16px !important;
    border-radius: 8px !important;
  }
  
  /* 按钮 */
  .btn,
  .btn-primary,
  .btn-secondary,
  button,
  .submit-btn {
    min-height: 44px !important;
    padding: 12px 24px !important;
    font-size: 0.95rem !important;
  }
  
  /* Footer */
  .site-footer {
    padding: 20px 0 !important;
  }
  
  /* 其他 */
  .qr-section {
    grid-template-columns: 1fr !important;
  }
  
  .cta-section {
    padding: 20px 16px !important;
    border-radius: 12px !important;
    margin: 0 !important;
  }
  
  .compare-before,
  .compare-after {
    padding: 14px !important;
    border-radius: 10px !important;
  }
  
  .service-categories {
    gap: 8px !important;
  }
  
  .category-card {
    padding: 10px 6px !important;
    width: calc(50% - 4px) !important;
  }
  
  .category-card h3 {
    font-size: 0.75rem !important;
  }
  
  .category-card li {
    font-size: 0.65rem !important;
  }
  
  html {
    scroll-behavior: smooth;
  }
}

/* 小屏手机 */
@media (max-width: 374px) {
  .container {
    padding: 0 12px;
  }
  
  .page-hero h1 {
    font-size: 1.3rem;
  }
}

/* 横屏 */
@media (max-height: 500px) and (orientation: landscape) {
  .page-hero {
    padding: 16px 0;
  }
  
  .mobile-nav {
    gap: 8px;
  }
  
  .mobile-nav a {
    padding: 8px 16px;
    font-size: 1rem;
  }
}

/* 触摸设备 */
@media (hover: none) and (pointer: coarse) {
  a:active,
  button:active {
    opacity: 0.8;
  }
}

/* 减少动画 */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* 高对比度模式支持 */
@media (prefers-contrast: high) {
  .card,
  .btn,
  .form-input {
    border-width: 2px;
  }
  
  .card {
    box-shadow: none;
  }
}

