/* 郎溪大佛山养心谷 · H5 优化版 */
:root {
  --primary: #3dba8c;
  --primary-light: #6ed4ad;
  --primary-dark: #28966f;
  --accent: #ff9f43;
  --accent-light: #ffb976;
  --accent-cyan: #36cfc9;
  --bg: #f2fbf6;
  --bg-warm: #fff8f0;
  --card: #ffffff;
  --text: #1e3d32;
  --text-secondary: #4a6b5c;
  --text-muted: #7a9488;
  --border: #d8eee4;
  --shadow: 0 4px 16px rgba(61, 186, 140, 0.1);
  --shadow-lg: 0 8px 28px rgba(61, 186, 140, 0.16);
  --shadow-card: 0 6px 20px rgba(30, 61, 50, 0.08);
  --radius: 16px;
  --radius-sm: 10px;
  --nav-height: 56px;
  --bottom-nav-height: 64px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --gradient-primary: linear-gradient(135deg, #28966f 0%, #3dba8c 50%, #36cfc9 100%);
  --gradient-warm: linear-gradient(135deg, #ff9f43, #ffb976);
  --gradient-hero: linear-gradient(180deg, rgba(40, 150, 111, 0.95) 0%, rgba(61, 186, 140, 0.88) 100%);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Helvetica Neue", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  min-height: 100vh;
  padding-bottom: calc(var(--bottom-nav-height) + var(--safe-bottom));
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  top: -50%;
  right: -30%;
  width: 80%;
  height: 80%;
  background: radial-gradient(circle, rgba(54, 207, 201, 0.06) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--primary-dark);
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

/* ========== 动画 ========== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes kenBurns {
  from { transform: scale(1); }
  to { transform: scale(1.08); }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

@keyframes shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

@keyframes pulse-dot {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.2); }
}

@keyframes slideInNav {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }
.reveal-delay-4 { transition-delay: 0.32s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ========== 顶部导航 ========== */
.top-bar {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-height);
  background: var(--gradient-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(40, 150, 111, 0.25);
}

.top-bar__title {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 1px;
}

.top-bar__back {
  position: absolute;
  left: 12px;
  color: #fff;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 2px;
  opacity: 0.92;
  transition: opacity 0.2s;
}

.top-bar__back:active {
  opacity: 0.7;
}

/* ========== 轮播图 ========== */
.carousel {
  position: relative;
  width: 100%;
  height: 56vw;
  max-height: 420px;
  overflow: hidden;
  background: var(--primary-dark);
}

.carousel__track {
  display: flex;
  height: 100%;
  transition: transform 0.55s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
}

.carousel__slide {
  flex: 0 0 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.carousel__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.carousel__slide.is-active img {
  animation: kenBurns 5s ease-out forwards;
}

.carousel__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(30, 61, 50, 0.35) 0%, transparent 50%);
  pointer-events: none;
  z-index: 1;
}

.carousel__dots {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 2;
}

.carousel__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.carousel__dot.active {
  width: 22px;
  border-radius: 4px;
  background: #fff;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.6);
}

.carousel__counter {
  position: absolute;
  bottom: 14px;
  right: 14px;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
  color: #fff;
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 12px;
  z-index: 2;
}

/* ========== 页面容器 ========== */
.page {
  max-width: 750px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.section {
  padding: 20px 16px;
}

.section--card {
  background: var(--card);
  margin: 12px 16px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(255, 255, 255, 0.8);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* ========== 首页 Hero ========== */
.hero-banner {
  position: relative;
  padding: 28px 16px 24px;
  background: var(--gradient-hero);
  color: #fff;
  text-align: center;
  overflow: hidden;
}

.hero-banner::before {
  content: "";
  position: absolute;
  top: -40%;
  right: -20%;
  width: 200px;
  height: 200px;
  background: rgba(255, 159, 67, 0.15);
  border-radius: 50%;
  animation: float 4s ease-in-out infinite;
}

.hero-banner::after {
  content: "";
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 150px;
  height: 150px;
  background: rgba(54, 207, 201, 0.12);
  border-radius: 50%;
  animation: float 5s ease-in-out infinite reverse;
}

.hero-banner__tag {
  position: relative;
  display: inline-block;
  font-size: 11px;
  padding: 4px 14px;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 20px;
  margin-bottom: 12px;
  letter-spacing: 2px;
  animation: fadeInUp 0.6s ease both;
}

.hero-banner__title {
  position: relative;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.4;
  margin-bottom: 8px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  animation: fadeInUp 0.6s ease 0.1s both;
}

.hero-banner__subtitle {
  position: relative;
  font-size: 14px;
  opacity: 0.92;
  font-weight: 500;
  animation: fadeInUp 0.6s ease 0.2s both;
}

/* ========== 标题样式 ========== */
.section-title {
  font-size: 19px;
  font-weight: 800;
  color: var(--primary-dark);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-title::before {
  content: "";
  width: 4px;
  height: 20px;
  background: var(--gradient-warm);
  border-radius: 3px;
  flex-shrink: 0;
}

.section-subtitle {
  font-size: 13px;
  color: var(--text-muted);
  margin: -8px 0 14px;
  letter-spacing: 1px;
}

.section-banner {
  width: 100%;
  height: 200px;
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 16px;
  box-shadow: var(--shadow-card);
}

.section-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.section-banner.is-visible img {
  transform: scale(1.03);
}

/* ========== 正文 ========== */
.content-text {
  font-size: 14px;
  color: var(--text-secondary);
  text-align: justify;
  line-height: 1.85;
}

.content-text p {
  margin-bottom: 12px;
}

.content-text p:last-child {
  margin-bottom: 0;
}

/* ========== 亮点标签 ========== */
.highlights {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 4px;
}

.highlight-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px;
  background: linear-gradient(135deg, #ecf9f2, #f8fdfb);
  border-radius: var(--radius-sm);
  border-left: 4px solid var(--primary);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.highlight-item:active {
  transform: scale(0.98);
}

.highlight-item__icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  background: var(--gradient-primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  box-shadow: 0 3px 8px rgba(61, 186, 140, 0.3);
}

.highlight-item__text {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.65;
}

.highlight-item__text strong {
  color: var(--primary-dark);
  font-weight: 700;
}

/* ========== 快捷入口 ========== */
.quick-nav {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding: 4px 0;
}

.quick-nav__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px 8px;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  color: var(--text);
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s ease;
  border: 1px solid rgba(255, 255, 255, 0.9);
}

.quick-nav__item:active {
  transform: scale(0.94);
  box-shadow: var(--shadow);
}

.quick-nav__icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  box-shadow: 0 4px 12px rgba(61, 186, 140, 0.35);
  transition: transform 0.3s ease;
}

.quick-nav__item:nth-child(2) .quick-nav__icon { background: linear-gradient(135deg, #ff9f43, #ffb976); box-shadow: 0 4px 12px rgba(255, 159, 67, 0.35); }
.quick-nav__item:nth-child(3) .quick-nav__icon { background: linear-gradient(135deg, #36cfc9, #6ed4ad); box-shadow: 0 4px 12px rgba(54, 207, 201, 0.35); }
.quick-nav__item:nth-child(4) .quick-nav__icon { background: linear-gradient(135deg, #a78bfa, #818cf8); box-shadow: 0 4px 12px rgba(167, 139, 250, 0.35); }
.quick-nav__item:nth-child(5) .quick-nav__icon { background: linear-gradient(135deg, #f472b6, #fb7185); box-shadow: 0 4px 12px rgba(244, 114, 182, 0.35); }
.quick-nav__item:nth-child(6) .quick-nav__icon { background: linear-gradient(135deg, #28966f, #3dba8c); }

.quick-nav__label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
}

/* ========== 景点/活动卡片 ========== */
.card-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.info-card {
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(255, 255, 255, 0.8);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.info-card:active {
  transform: scale(0.99);
}

.info-card__image {
  width: 100%;
  height: 210px;
  background: linear-gradient(135deg, #e8f5ef, #d4ede3);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  position: relative;
  overflow: hidden;
}

.info-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.info-card.is-visible .info-card__image img {
  transform: scale(1.02);
}

.info-card__image--placeholder::before {
  content: "📷";
  font-size: 32px;
  opacity: 0.4;
  margin-bottom: 6px;
}

.info-card__image--placeholder::after {
  content: "图片待添加";
  font-size: 12px;
  opacity: 0.5;
}

.info-card__body {
  padding: 18px;
}

.info-card__number {
  display: inline-block;
  font-size: 11px;
  color: var(--accent);
  background: linear-gradient(135deg, rgba(255, 159, 67, 0.15), rgba(255, 185, 118, 0.1));
  padding: 3px 10px;
  border-radius: 6px;
  margin-bottom: 8px;
  font-weight: 700;
}

.info-card__title {
  font-size: 17px;
  font-weight: 800;
  color: var(--primary-dark);
  margin-bottom: 8px;
}

.info-card__desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.75;
  text-align: justify;
}

/* ========== 活动列表 ========== */
.activity-item {
  background: var(--card);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(255, 255, 255, 0.8);
  transition: transform 0.3s ease;
}

.activity-item__header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.activity-item__num {
  width: 28px;
  height: 28px;
  background: var(--gradient-primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
  flex-shrink: 0;
  box-shadow: 0 3px 8px rgba(61, 186, 140, 0.3);
}

.activity-item__title {
  font-size: 16px;
  font-weight: 800;
  color: var(--primary-dark);
}

.activity-item__image {
  width: 100%;
  height: 180px;
  background: linear-gradient(135deg, #e8f5ef, #d4ede3);
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  overflow: hidden;
}

.activity-item__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.activity-item.is-visible .activity-item__image img {
  transform: scale(1.02);
}

.activity-item__image--placeholder::before {
  content: "📷";
  font-size: 28px;
  opacity: 0.4;
  margin-bottom: 4px;
}

.activity-item__image--placeholder::after {
  content: "图片待添加";
  font-size: 11px;
  opacity: 0.5;
}

.activity-item__desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.75;
  text-align: justify;
}

.activity-item__desc p {
  margin-bottom: 8px;
}

.activity-item__desc p:last-child {
  margin-bottom: 0;
}

.activity-item__desc strong {
  color: var(--primary-dark);
}

/* ========== 联系页面 ========== */
.contact-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow-card);
  margin-bottom: 16px;
  border: 1px solid rgba(255, 255, 255, 0.8);
}

.contact-card__icon {
  font-size: 28px;
  margin-bottom: 8px;
}

.contact-card__title {
  font-size: 16px;
  font-weight: 800;
  color: var(--primary-dark);
  margin-bottom: 8px;
}

.contact-card__content {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.8;
}

.contact-phone {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px;
  background: var(--gradient-primary);
  border-radius: var(--radius);
  color: #fff;
  margin-bottom: 12px;
  box-shadow: var(--shadow-lg);
  transition: transform 0.25s ease;
}

.contact-phone:active {
  transform: scale(0.98);
}

.contact-phone:last-child {
  margin-bottom: 16px;
}

.contact-phones {
  margin-bottom: 4px;
}

.contact-phone__icon {
  font-size: 32px;
}

.contact-phone__info {
  flex: 1;
}

.contact-phone__label {
  font-size: 12px;
  opacity: 0.88;
}

.contact-phone__number {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 1px;
}

.contact-phone__number a {
  color: #fff;
}

.route-item {
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}

.route-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.route-item__from {
  font-size: 14px;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 4px;
}

.route-item__path {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.7;
}

.map-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 15px;
  background: var(--card);
  border: 2px solid var(--primary-light);
  border-radius: var(--radius);
  color: var(--primary-dark);
  font-size: 15px;
  font-weight: 700;
  margin-top: 16px;
  cursor: pointer;
  transition: all 0.25s ease;
}

.map-btn:active {
  background: var(--gradient-primary);
  color: #fff;
  border-color: transparent;
}

/* ========== 底部导航 ========== */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--border);
  padding-bottom: var(--safe-bottom);
  box-shadow: 0 -4px 20px rgba(30, 61, 50, 0.06);
}

.bottom-nav__inner {
  max-width: 750px;
  margin: 0 auto;
  display: flex;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.bottom-nav__inner::-webkit-scrollbar {
  display: none;
}

.bottom-nav__item {
  flex: 1;
  min-width: 62px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 8px 4px;
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 500;
  gap: 3px;
  transition: color 0.25s ease, transform 0.25s ease;
  white-space: nowrap;
  position: relative;
}

.bottom-nav__item.active {
  color: var(--primary-dark);
  font-weight: 700;
}

.bottom-nav__item.active::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 3px;
  background: var(--gradient-warm);
  border-radius: 0 0 3px 3px;
  animation: slideInNav 0.3s ease;
}

.bottom-nav__item .icon {
  font-size: 22px;
  line-height: 1;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.bottom-nav__item.active .icon {
  transform: scale(1.15) translateY(-2px);
}

/* ========== 页脚 ========== */
.footer {
  text-align: center;
  padding: 24px 16px 12px;
  font-size: 11px;
  color: var(--text-muted);
}

.footer__name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 4px;
}

.footer__keywords {
  font-size: 10px;
  color: var(--text-muted);
  opacity: 0.7;
  margin-top: 6px;
  line-height: 1.6;
}

/* ========== 门票信息 ========== */
.ticket-info {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ticket-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  background: linear-gradient(135deg, #f8fdfb, #fff);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

.ticket-item__name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  flex: 1;
}

.ticket-item__price {
  flex-shrink: 0;
  font-size: 13px;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 20px;
}

.ticket-item__price--free {
  color: var(--primary-dark);
  background: linear-gradient(135deg, rgba(61, 186, 140, 0.18), rgba(110, 212, 173, 0.12));
}

.ticket-item__price--paid {
  color: #e07a2e;
  background: linear-gradient(135deg, rgba(255, 159, 67, 0.2), rgba(255, 185, 118, 0.12));
}

.info-card__tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  margin-left: 6px;
  vertical-align: middle;
}

.info-card__tag--free {
  color: var(--primary-dark);
  background: rgba(61, 186, 140, 0.15);
}

.info-card__tag--paid {
  color: #e07a2e;
  background: rgba(255, 159, 67, 0.15);
}
