/* 银发经济下的乡村医疗：青蓝音乐播放器主题站，PC 16:9 与手机 H5 适配 */
:root {
  --ink: #003d4d;
  --teal: #00acc1;
  --teal-dark: #00838f;
  --teal-light: #4dd0e1;
  --mint: #e0f7fa;
  --mint-light: #f0fdff;
  --cyan: #26c6da;
  --amber: #ffb74d;
  --amber-dark: #f57c00;
  --paper: #f0fdff;
  --paper-light: #ffffff;
  --shadow: 0 14px 32px rgba(0, 131, 143, .15);
  --radius: 8px;
  --gold: #4dd0e1;
}

* { box-sizing: border-box }

html { scroll-behavior: smooth }

body {
  margin: 0;
  color: var(--ink);
  font-family: "Noto Sans SC", "Microsoft YaHei", "PingFang SC", sans-serif;
  line-height: 1.8;
  background: radial-gradient(circle at 20% 20%, rgba(0, 172, 193, .06) 0 1px, transparent 2px) 0 0/28px 28px,
              linear-gradient(90deg, rgba(0, 172, 193, .03) 1px, transparent 1px) 0 0/5px 100%,
              var(--paper);
}

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

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

button { cursor: pointer }

/* ========== Header ========== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 3px solid var(--teal-light);
  background: rgba(0, 131, 143, .96);
  box-shadow: 0 5px 18px rgba(0, 50, 60, .2);
}

.nav-wrap {
  max-width: 1220px;
  min-height: 70px;
  margin: auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 18px;
}

.brand {
  color: #e0f7fa;
  font-size: 21px;
  font-weight: 700;
  letter-spacing: 4px;
  white-space: nowrap;
}

.brand span { color: var(--teal-light) }

.main-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 5px;
  margin-left: auto;
  align-items: center;
}

.main-nav a {
  padding: 8px 12px;
  color: #b2ebf2;
  border-radius: 3px;
  transition: .28s ease;
  min-width: 76px;
  text-align: center;
  white-space: nowrap;
}

.main-nav a:hover,
.main-nav a.active {
  color: #fff;
  background: linear-gradient(135deg, var(--teal), var(--teal-light));
  box-shadow: 0 5px 12px rgba(0, 0, 0, .15);
  transform: translateY(-2px);
}

.nav-toggle {
  display: none;
  color: #b2ebf2;
  border: 1px solid var(--teal-light);
  background: transparent;
  border-radius: 3px;
}

/* ========== Hero ========== */
.hero, .page-hero {
  position: relative;
  overflow: hidden;
  color: #e0f7fa;
  text-align: center;
  background: linear-gradient(120deg, rgba(0, 131, 143, .92), rgba(0, 172, 193, .7), rgba(0, 131, 143, .92)),
              repeating-linear-gradient(45deg, #00838f 0 12px, #00acc1 12px 24px);
}

.hero {
  min-height: min(720px, 72vh);
  display: grid;
  place-items: center;
}

.page-hero {
  min-height: 270px;
  display: grid;
  place-items: center;
}

.hero::before, .page-hero::before {
  content: "银 发 守 望 · 乡 村 医 行";
  position: absolute;
  inset: 20px;
  border: 1px solid rgba(77, 208, 225, .4);
  padding: 8px;
  color: rgba(128, 222, 234, .3);
  font-size: 17px;
  letter-spacing: 14px;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 780px;
  padding: 55px 20px;
}

.eyebrow {
  color: #4dd0e1;
  letter-spacing: 8px;
  font-size: 14px;
}

.eyebrow.teal { color: var(--teal-light) }

h1 {
  margin: 18px 0 8px;
  font-size: clamp(38px, 7vw, 72px);
  line-height: 1.18;
  letter-spacing: 8px;
  text-shadow: 0 5px 0 rgba(0, 50, 60, .35);
}

.page-hero h1 { font-size: clamp(34px, 5vw, 52px) }

.hero p, .page-hero p {
  margin: 20px auto 28px;
  max-width: 680px;
  color: #b2ebf2;
  font-size: 18px;
}

.btn {
  display: inline-block;
  min-width: 140px;
  padding: 11px 22px;
  color: #fff;
  background: linear-gradient(135deg, var(--teal), var(--teal-dark));
  border: 1px solid var(--teal-light);
  border-radius: var(--radius);
  box-shadow: 0 7px 16px rgba(0, 50, 60, .2);
  transition: .25s ease;
}

.btn:hover {
  transform: translateY(-3px);
  filter: brightness(1.1);
}

.btn.secondary {
  background: var(--teal-dark);
}

.btn.amber {
  background: linear-gradient(135deg, var(--amber), var(--amber-dark));
  border-color: #ffd54f;
}

.btn.cyan {
  background: linear-gradient(135deg, var(--cyan), #00acc1);
  border-color: #80deea;
}

/* ========== Sections ========== */
.section {
  max-width: 1180px;
  margin: auto;
  padding: 78px 22px;
}

.section-title {
  text-align: center;
  margin-bottom: 38px;
}

.section-title small {
  color: var(--teal);
  letter-spacing: 6px;
  font-weight: 700;
}

.section-title h2 {
  margin: 6px 0;
  color: var(--teal-dark);
  font-size: clamp(27px, 4vw, 40px);
  letter-spacing: 4px;
}

.section-title h2::after {
  content: "";
  display: block;
  width: 90px;
  height: 3px;
  margin: 14px auto;
  background: linear-gradient(90deg, transparent, var(--teal), transparent);
}

/* ========== Grid & Cards ========== */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.quick-grid { grid-template-columns: repeat(6, 1fr) }

.card {
  position: relative;
  padding: 26px;
  background: rgba(255, 255, 255, .9);
  border: 1px solid rgba(0, 172, 193, .2);
  border-radius: var(--radius);
  box-shadow: 0 8px 18px rgba(0, 131, 143, .08);
  transition: .3s ease;
}

.card::after {
  content: "";
  position: absolute;
  inset: 7px;
  border: 1px solid rgba(77, 208, 225, .15);
  border-radius: 4px;
  pointer-events: none;
}

.card:hover {
  transform: translateY(-8px);
  border-color: var(--teal-light);
  box-shadow: var(--shadow);
  background: #fff;
}

.card h3 {
  color: var(--teal);
  margin: 7px 0;
  font-size: 22px;
  letter-spacing: 1px;
}

.card .num, .num {
  color: var(--teal-light);
  font-size: 32px;
  font-weight: 700;
}

.card p { color: #455a5a }

.card .icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--mint);
  color: var(--teal);
  font-size: 28px;
  margin-bottom: 10px;
}

.paper-band {
  background: rgba(0, 172, 193, .06);
  border-top: 1px solid rgba(0, 172, 193, .15);
  border-bottom: 1px solid rgba(0, 172, 193, .15);
}

.paper-band .section { max-width: 1400px }

.tag {
  display: inline-block;
  margin: 4px;
  padding: 2px 11px;
  color: var(--teal);
  border: 1px solid var(--teal-light);
  border-radius: 99px;
  font-size: 13px;
}

/* ========== Culture/Topic Layout ========== */
.culture-layout,
.feature,
.mine-layout,
.dialogue-layout {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 45px;
  align-items: center;
}

/* ========== Carousel ========== */
.carousel {
  position: relative;
  min-height: 360px;
  overflow: hidden;
  border: 9px solid #fff;
  outline: 1px solid var(--teal-light);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background: var(--teal-dark);
}

.culture-slide {
  position: absolute;
  inset: 0;
  margin: 0;
  display: grid;
  place-items: end start;
  opacity: 0;
  transition: .45s ease;
}

.culture-slide img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.culture-slide span {
  width: 100%;
  padding: 18px;
  color: #e0f7fa;
  background: rgba(0, 131, 143, .75);
  z-index: 2;
  position: relative;
}

.culture-slide.active { opacity: 1 }

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border: 1px solid var(--teal-light);
  border-radius: 50%;
  color: #e0f7fa;
  background: rgba(0, 131, 143, .78);
  font-size: 30px;
  z-index: 10;
  cursor: pointer;
  transition: .25s ease;
}

.carousel-btn:hover {
  background: rgba(0, 172, 193, .9);
  transform: translateY(-50%) scale(1.1);
}

.carousel-btn.prev { left: 14px }
.carousel-btn.next { right: 14px }

.carousel-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 12px;
  text-align: center;
}

.carousel-dots button {
  width: 9px;
  height: 9px;
  margin: 0 4px;
  border: 0;
  border-radius: 50%;
  background: var(--teal-light);
  opacity: .45;
}

.carousel-dots button.active { opacity: 1 }

.culture-copy h2,
.feature-copy h2 {
  color: var(--teal-dark);
  font-size: 36px;
  margin: 0 0 16px;
}

/* ========== Map ========== */
.footprint-layout {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 24px;
  margin-bottom: 24px;
}

.world-map {
  position: relative;
  min-height: 390px;
  border: 8px solid var(--teal-dark);
  border-radius: var(--radius);
  background: radial-gradient(circle at 70% 35%, rgba(77, 208, 225, .2), transparent 11%),
              radial-gradient(circle at 38% 48%, rgba(77, 208, 225, .3), transparent 14%),
              linear-gradient(145deg, #006064, #00838f);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.world-map::before {
  content: "";
  position: absolute;
  inset: 42px;
  border: 1px dashed rgba(77, 208, 225, .4);
  border-radius: 50%;
}

.map-pin {
  position: absolute;
  padding: 6px 10px;
  color: #e0f7fa;
  border: 1px solid var(--teal-light);
  border-radius: 99px;
  background: var(--teal-dark);
  box-shadow: 0 5px 12px rgba(0, 0, 0, .2);
}

.map-pin.active {
  background: var(--teal-light);
  color: var(--teal-dark);
}

.pin-cn { left: 56%; top: 46% }
.pin-sg { left: 62%; top: 62% }
.pin-eu { left: 32%; top: 34% }

.map-info {
  position: absolute;
  left: 24px;
  bottom: 24px;
  width: min(360px, calc(100% - 48px));
  padding: 18px;
  color: #e0f7fa;
  background: rgba(0, 131, 143, .88);
  border: 1px solid var(--teal-light);
  border-radius: var(--radius);
}

.map-info strong {
  color: #80deea;
  font-size: 22px;
}

.footprint-timeline {
  display: grid;
  gap: 16px;
}

.footprint-timeline article {
  padding: 18px;
  background: #fff;
  border-left: 4px solid var(--teal);
  border-radius: 0 var(--radius) var(--radius) 0;
  box-shadow: 0 8px 18px rgba(0, 131, 143, .08);
}

.footprint-timeline b {
  display: block;
  color: var(--teal);
  font-size: 25px;
}

/* ========== Timeline ========== */
.timeline {
  position: relative;
  max-width: 900px;
  margin: auto;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: var(--teal-light);
}

.timeline-item {
  width: 48%;
  margin-bottom: 28px;
  position: relative;
}

.timeline-item:nth-child(even) { margin-left: 52% }

.timeline-item strong {
  color: var(--teal);
  font-size: 22px;
  display: inline-block;
  transition: text-shadow .35s;
  border-radius: 4px;
}

.timeline-item:hover strong {
  text-shadow: 0 0 10px rgba(77, 208, 225, .5);
}

/* ========== Service Cards ========== */
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  padding: 28px 24px;
  background: #fff;
  border: 1px solid rgba(0, 172, 193, .15);
  border-radius: var(--radius);
  box-shadow: 0 8px 18px rgba(0, 131, 143, .08);
  transition: .3s ease;
  text-align: center;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: var(--teal-light);
}

.service-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  font-size: 34px;
  margin-bottom: 16px;
}

.service-icon.emergency {
  background: linear-gradient(135deg, #ef5350, #c62828);
  color: #fff;
}

.service-icon.consult {
  background: linear-gradient(135deg, var(--teal), var(--teal-dark));
  color: #fff;
}

.service-icon.appointment {
  background: linear-gradient(135deg, var(--cyan), #00acc1);
  color: #fff;
}

.service-icon.report {
  background: linear-gradient(135deg, var(--amber), var(--amber-dark));
  color: #fff;
}

.service-icon.payment {
  background: linear-gradient(135deg, #66bb6a, #2e7d32);
  color: #fff;
}

.service-icon.pharmacy {
  background: linear-gradient(135deg, #7e57c2, #5e35b1);
  color: #fff;
}

.service-card h3 {
  color: var(--teal-dark);
  font-size: 20px;
  margin: 10px 0;
  letter-spacing: 1px;
}

.service-card p {
  color: #455a5a;
  font-size: 14px;
  margin: 0 0 14px;
}

.service-tag {
  display: inline-block;
  padding: 3px 12px;
  background: var(--mint);
  color: var(--teal);
  border-radius: 99px;
  font-size: 12px;
  letter-spacing: 1px;
}

/* Emergency highlight card */
.service-card.emergency-card {
  background: linear-gradient(135deg, rgba(239, 83, 80, .08), rgba(198, 40, 40, .04));
  border-color: rgba(239, 83, 80, .3);
}

.service-card.emergency-card:hover {
  border-color: #ef5350;
  box-shadow: 0 14px 32px rgba(239, 83, 80, .18);
}

/* ========== Elderly Mode ========== */
.elderly-demo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
}

.phone-mockup {
  position: relative;
  width: 300px;
  height: 580px;
  margin: auto;
  border: 8px solid #003d4d;
  border-radius: 36px;
  background: #f0fdff;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 131, 143, .2);
}

.phone-mockup::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 24px;
  background: #003d4d;
  border-radius: 0 0 16px 16px;
}

.phone-screen {
  padding: 40px 16px 16px;
  height: 100%;
  overflow-y: auto;
}

.phone-header {
  text-align: center;
  font-size: 18px;
  font-weight: 700;
  color: var(--teal-dark);
  margin-bottom: 16px;
}

.phone-emergency {
  display: block;
  width: 100%;
  padding: 16px;
  background: linear-gradient(135deg, #ef5350, #c62828);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 4px;
  margin-bottom: 16px;
  box-shadow: 0 6px 16px rgba(239, 83, 80, .3);
  animation: pulse-emergency 2s infinite;
}

@keyframes pulse-emergency {
  50% { box-shadow: 0 0 0 8px rgba(239, 83, 80, .2), 0 6px 16px rgba(239, 83, 80, .3); }
}

.phone-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
}

.phone-btn {
  padding: 18px 8px;
  text-align: center;
  background: #fff;
  border: 1px solid rgba(0, 172, 193, .2);
  border-radius: var(--radius);
  font-size: 16px;
  color: var(--teal-dark);
  font-weight: 600;
}

.phone-btn .btn-icon { font-size: 28px; display: block; margin-bottom: 6px }

.phone-tabbar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  border-top: 1px solid rgba(0, 172, 193, .15);
  background: #fff;
}

.phone-tab {
  flex: 1;
  padding: 12px;
  text-align: center;
  font-size: 14px;
  color: #999;
}

.phone-tab.active { color: var(--teal); font-weight: 700 }

.elderly-features {
  display: grid;
  gap: 18px;
}

.elderly-feature {
  display: flex;
  gap: 16px;
  align-items: start;
  padding: 18px;
  background: #fff;
  border: 1px solid rgba(0, 172, 193, .12);
  border-radius: var(--radius);
  box-shadow: 0 4px 12px rgba(0, 131, 143, .06);
}

.elderly-feature .feat-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 22px;
  background: var(--mint);
  color: var(--teal);
}

.elderly-feature h4 {
  margin: 0 0 6px;
  color: var(--teal-dark);
  font-size: 17px;
}

.elderly-feature p {
  margin: 0;
  color: #455a5a;
  font-size: 14px;
}

/* ========== Case Stories ========== */
.story-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.story-card {
  padding: 0 0 22px;
  background: #fff;
  border: 1px solid rgba(0, 172, 193, .15);
  border-radius: var(--radius);
  box-shadow: 0 8px 18px rgba(0, 131, 143, .08);
  overflow: hidden;
}

.story-card h3,
.story-card p,
.story-card blockquote,
.story-card button {
  margin-left: 22px;
  margin-right: 22px;
}

.story-photo {
  min-height: 200px;
  display: grid;
  place-items: center;
  color: #b2ebf2;
  background: linear-gradient(145deg, var(--teal-dark), var(--teal-light));
  font-size: 60px;
}

.story-card blockquote {
  color: var(--teal);
  font-size: 18px;
  border-left: 4px solid var(--teal-light);
  padding-left: 14px;
  margin-top: 14px;
}

.story-full { display: none }

.story-card.open .story-full { display: block }

.story-toggle {
  padding: 8px 14px;
  border: 1px solid var(--teal-light);
  color: #fff;
  background: var(--teal-dark);
  border-radius: var(--radius);
  font-size: 14px;
}

/* ========== Data Charts ========== */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}

.stat-card {
  text-align: center;
  padding: 32px 16px;
  background: #fff;
  border: 1px solid rgba(0, 172, 193, .15);
  border-radius: var(--radius);
  box-shadow: 0 8px 18px rgba(0, 131, 143, .08);
  transition: .3s ease;
}

.stat-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.stat-number {
  font-size: 48px;
  font-weight: 800;
  color: var(--teal);
  letter-spacing: 1px;
}

.stat-label {
  color: #455a5a;
  font-size: 14px;
  margin-top: 8px;
  letter-spacing: 2px;
}

.stat-card .stat-unit {
  font-size: 20px;
  color: var(--teal-light);
}

.bar-chart {
  display: grid;
  gap: 20px;
  max-width: 800px;
  margin: auto;
}

.bar-item {
  display: grid;
  grid-template-columns: 160px 1fr 60px;
  align-items: center;
  gap: 12px;
}

.bar-label { font-size: 15px; color: var(--ink); font-weight: 600 }

.bar-track {
  height: 28px;
  background: var(--mint);
  border-radius: 14px;
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  border-radius: 14px;
  transition: width 1.2s cubic-bezier(.4, 0, .2, 1);
  background: linear-gradient(90deg, var(--teal), var(--teal-light));
}

.bar-fill.amber {
  background: linear-gradient(90deg, var(--amber), var(--amber-dark));
}

.bar-fill.cyan {
  background: linear-gradient(90deg, var(--cyan), #00acc1);
}

.bar-value { font-size: 16px; font-weight: 700; color: var(--teal) }

/* ========== Register Form ========== */
.register-form {
  display: grid;
  gap: 14px;
}

.register-form label {
  display: grid;
  gap: 6px;
  color: var(--teal-dark);
  font-weight: 700;
}

.register-form input,
.register-form select,
.register-form textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid var(--teal-light);
  border-radius: var(--radius);
  background: #f0fdff;
  color: var(--ink);
  outline: none;
  transition: .25s ease;
}

.register-form input:focus,
.register-form select:focus,
.register-form textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(0, 172, 193, .12);
}

.register-list {
  max-height: 300px;
  overflow: auto;
  margin: 18px 0;
}

.register-item {
  padding: 10px;
  border-bottom: 1px dashed var(--teal-light);
}

/* ========== Children Form (子女资料) ========== */
.children-form {
  display: grid;
  gap: 14px;
}

.children-form label {
  display: grid;
  gap: 6px;
  color: var(--teal-dark);
  font-weight: 700;
}

.children-form input,
.children-form select {
  width: 100%;
  padding: 10px;
  border: 1px solid var(--teal-light);
  border-radius: var(--radius);
  background: #f0fdff;
  color: var(--ink);
  outline: none;
  transition: .25s ease;
}

.children-form input:focus,
.children-form select:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(0, 172, 193, .12);
}

.children-list {
  max-height: 250px;
  overflow: auto;
  margin: 14px 0;
}

.children-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px;
  border-bottom: 1px dashed var(--teal-light);
  font-size: 14px;
}

.children-item .remove-child {
  padding: 4px 10px;
  border: 1px solid rgba(239, 83, 80, .4);
  color: #ef5350;
  background: transparent;
  border-radius: var(--radius);
  font-size: 12px;
  cursor: pointer;
}

/* ========== Footer ========== */
.site-footer {
  color: #b2ebf2;
  background: var(--teal-dark);
  border-top: 4px solid var(--teal-light);
}

.footer-inner {
  max-width: 1180px;
  margin: auto;
  padding: 35px 22px;
  display: flex;
  justify-content: space-between;
  gap: 25px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-links a:hover { color: #fff }

/* ========== Reveal Animation ========== */
.reveal {
  opacity: 0;
  transform: translateY(25px);
  transition: .65s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ========== Page Navigation Cards ========== */
.quick-grid-eight {
  grid-template-columns: repeat(7, minmax(0, 1fr)) !important;
  gap: 14px;
}

.quick-grid-eight .card {
  min-height: 210px;
  padding: 18px 14px;
}

.quick-grid-eight .card h3 { font-size: 20px }

.quick-grid-eight .card p {
  font-size: 14px;
  line-height: 1.65;
}

/* ========== Article Layout ========== */
.article-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 32px;
  align-items: start;
}

.article-body h3 {
  color: var(--teal-dark);
  font-size: 22px;
  letter-spacing: 1px;
  margin: 24px 0 12px;
}

.article-body h3:first-child { margin-top: 0 }

.article-body p {
  color: var(--ink);
  font-size: 16px;
  line-height: 1.9;
  margin: 0 0 16px;
}

.article-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.article-gallery .gallery-placeholder {
  min-height: 160px;
  border-radius: var(--radius);
  border: 2px solid rgba(0, 172, 193, .15);
  display: grid;
  place-items: center;
  color: var(--teal-light);
  font-size: 48px;
  background: linear-gradient(145deg, var(--mint), var(--mint-light));
}

/* ========== Contrast / Style Compare ========== */
.style-compare {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.compare-card {
  padding: 24px;
  background: #fff;
  border: 1px solid rgba(0, 172, 193, .15);
  border-radius: var(--radius);
  box-shadow: 0 8px 18px rgba(0, 131, 143, .08);
}

.compare-head {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: space-between;
}

.compare-head h3 {
  margin-right: auto;
  color: var(--teal);
}

.compare-head button {
  padding: 6px 10px;
  border: 1px solid var(--teal-light);
  color: var(--teal);
  background: transparent;
  border-radius: var(--radius);
}

.compare-more {
  display: none;
  border-top: 1px dashed var(--teal-light);
  margin-top: 14px;
  padding-top: 14px;
}

.compare-card.open .compare-more { display: block }

/* ========== Voice / Filter ========== */
.voice-filters {
  text-align: center;
  margin-bottom: 24px;
}

.voice-filters button {
  margin: 4px;
  padding: 8px 16px;
  border: 1px solid var(--teal-light);
  border-radius: 99px;
  color: var(--teal);
  background: transparent;
}

.voice-filters button.active,
.voice-filters button:hover {
  color: #fff;
  background: var(--teal);
}

/* ========== AI Assistant Floating Button ========== */
.music-control,
.ai-trigger {
  position: fixed;
  bottom: 30px;
  z-index: 90;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .15);
  border: 2px solid #fff;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ai-trigger {
  right: 30px;
  background: linear-gradient(135deg, var(--cyan), #00acc1);
}

.music-control {
  right: 110px;
  background: linear-gradient(135deg, var(--cyan), #00acc1);
}

.music-control:hover,
.ai-trigger:hover {
  transform: scale(1.08);
  box-shadow: 0 8px 20px rgba(0, 0, 0, .2);
}

.music-control.playing {
  animation: pulse 1.8s infinite;
}

@keyframes pulse {
  50% { box-shadow: 0 0 0 8px rgba(0, 172, 193, 0.2); }
}

.music-icon { font-size: 28px; color: #fff }

.ai-icon { font-size: 26px; color: #fff }

/* AI Bubble */
.ai-bubble {
  position: absolute;
  bottom: 76px;
  right: 0;
  background: var(--teal-dark);
  color: #e0f7fa;
  padding: 8px 18px;
  border-radius: 20px;
  font-size: 13px;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .2);
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: all 0.3s ease;
}

.ai-bubble::after {
  content: "";
  position: absolute;
  right: 18px;
  bottom: -10px;
  border-width: 10px 10px 0;
  border-style: solid;
  border-color: var(--teal-dark) transparent transparent;
}

.ai-trigger:hover .ai-bubble {
  opacity: 1;
  transform: translateY(0);
}

/* AI Chat Panel */
.ai-panel {
  position: fixed;
  right: 30px;
  bottom: 110px;
  width: 400px;
  max-height: min(600px, calc(100vh - 160px));
  background: rgba(0, 131, 143, .88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: 16px;
  box-shadow: 0 12px 48px rgba(0, 0, 0, .15);
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px) scale(0.95);
  transform-origin: bottom right;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  overflow: hidden;
  border: 1px solid rgba(77, 208, 225, .3);
}

.ai-panel.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.ai-panel-header {
  padding: 20px 24px;
  border-bottom: 1px solid rgba(77, 208, 225, .2);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.ai-panel-header strong {
  font-size: 18px;
  color: #e0f7fa;
}

.ai-panel-header small {
  color: #80deea;
  font-size: 12px;
}

.ai-close {
  background: rgba(77, 208, 225, .15);
  border: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  font-size: 14px;
  color: #b2ebf2;
  cursor: pointer;
}

.ai-close:hover { background: rgba(77, 208, 225, .3) }

.ai-messages {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.ai-messages::-webkit-scrollbar { width: 6px }
.ai-messages::-webkit-scrollbar-track { background: transparent }
.ai-messages::-webkit-scrollbar-thumb {
  background: rgba(77, 208, 225, .3);
  border-radius: 99px;
}

.ai-message-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  max-width: 90%;
}

.ai-message-row.user {
  flex-direction: row-reverse;
  align-self: flex-end;
}

.ai-message-row .msg-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  flex-shrink: 0;
  border: 1px solid rgba(77, 208, 225, .3);
  object-fit: cover;
}

.ai-message-row.user .msg-avatar { display: none }

.ai-message-row .msg-content {
  padding: 10px 16px;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.6;
}

.ai-message-row.assistant .msg-content {
  background: rgba(77, 208, 225, .12);
  color: #e0f7fa;
  border-bottom-left-radius: 2px;
}

.ai-message-row.user .msg-content {
  background: var(--teal);
  color: #fff;
  border-bottom-right-radius: 2px;
}

.ai-suggestions {
  display: flex;
  gap: 8px;
  padding: 10px 20px 0;
  flex-wrap: wrap;
}

.ai-suggestions button {
  flex-shrink: 0;
  padding: 4px 12px;
  background: rgba(77, 208, 225, .1);
  border: 1px solid rgba(77, 208, 225, .25);
  border-radius: 16px;
  color: #b2ebf2;
  font-size: 12px;
  cursor: pointer;
  transition: 0.2s;
}

.ai-suggestions button:hover {
  background: rgba(77, 208, 225, .2);
  border-color: var(--teal-light);
}

.ai-form {
  display: flex;
  gap: 12px;
  padding: 16px 20px 20px;
  border-top: 1px solid rgba(77, 208, 225, .2);
}

.ai-form input {
  flex: 1;
  padding: 10px 16px;
  border: 1px solid rgba(77, 208, 225, .25);
  border-radius: 24px;
  outline: none;
  background: rgba(255, 255, 255, .08);
  font-size: 14px;
  color: #e0f7fa;
}

.ai-form input::placeholder { color: #80deea }

.ai-form input:focus {
  border-color: var(--teal-light);
  background: rgba(255, 255, 255, .12);
}

.ai-form button {
  padding: 0 20px;
  background: var(--teal-light);
  border: none;
  border-radius: 24px;
  color: var(--teal-dark);
  font-weight: bold;
  font-size: 14px;
  cursor: pointer;
  transition: 0.2s;
}

.ai-form button:hover { background: #80deea }

/* ========== Responsive ========== */
@media (max-width: 900px) {
  .nav-toggle { display: block }
  .main-nav {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(0, 131, 143, .98);
    padding: 20px;
    gap: 4px;
  }
  .main-nav.open { display: flex }
  .main-nav a { width: 100%; text-align: left }

  .grid, .quick-grid, .service-grid, .stat-grid,
  .story-grid, .style-compare, .article-layout,
  .culture-layout, .feature, .footprint-layout,
  .elderly-demo, .mine-layout, .dialogue-layout {
    grid-template-columns: 1fr !important;
  }

  .quick-grid-eight {
    overflow-x: auto;
    grid-template-columns: repeat(7, 150px) !important;
    padding-bottom: 10px;
  }

  .stat-grid { grid-template-columns: repeat(2, 1fr) !important }

  .timeline::before { left: 20px }
  .timeline-item { width: 100%; margin-left: 0 !important; padding-left: 50px }

  .ai-panel { width: calc(100vw - 40px); right: 20px; bottom: 100px }

  .footer-inner { flex-direction: column }

  .bar-item { grid-template-columns: 100px 1fr 50px }
}

@media (max-width: 560px) {
  .quick-grid-eight { grid-template-columns: 1fr !important }
  .stat-grid { grid-template-columns: 1fr !important }
}
