:root {
  --c-red: #ec540b;
  --c-yellow: #fbd607;
  --c-gray: #dadada;
  --c-black: #000000;
  --c-white: #ffffff;
  --c-bg: #fffdf7;
  --c-text: #1a1a1a;
  --c-muted: #666666;
  --c-pale: #f7f5f0;
  --radius: 16px;
  --radius-pill: 9999px;
  --max-width: 1200px;
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;
  --font: "Noto Serif SC", "Source Han Serif SC", "PingFang SC", "Microsoft YaHei", serif;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.75;
  color: var(--c-text);
  background: var(--c-bg);
}

h1, h2, h3, h4, p {
  margin: 0;
}

a {
  color: var(--c-red);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

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

ul, ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

.container {
  width: 92%;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
}

.section {
  padding: var(--space-2xl) 0;
}

.section--pale {
  background: var(--c-pale);
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: var(--space-md);
}

.section-subtitle {
  color: var(--c-muted);
  font-size: 1.125rem;
  max-width: 720px;
  margin-bottom: var(--space-lg);
}

.section-title span {
  color: var(--c-red);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 1rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  font-family: var(--font);
  white-space: nowrap;
  flex-shrink: 0;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(236, 84, 11, 0.18);
  text-decoration: none;
}

.btn--primary {
  background: var(--c-red);
  color: var(--c-white);
}

.btn--secondary {
  background: var(--c-yellow);
  color: var(--c-black);
}

.btn--outline {
  background: transparent;
  border-color: var(--c-black);
  color: var(--c-black);
}

.btn--small {
  padding: 0.55rem 1.25rem;
  font-size: 0.95rem;
}

/* Tags */
.tag {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 700;
  background: var(--c-yellow);
  color: var(--c-black);
  white-space: nowrap;
  flex-shrink: 0;
}

.tag--outline {
  background: transparent;
  border: 1px solid var(--c-gray);
  color: var(--c-muted);
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 253, 247, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--c-gray);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 0.75rem;
}

.header__logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--c-text);
  text-decoration: none;
  flex-shrink: 0;
}

.nav {
  display: none;
  align-items: center;
  gap: 0.25rem;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.nav::-webkit-scrollbar {
  display: none;
}

.nav__link {
  padding: 0.5rem 0.85rem;
  color: var(--c-text);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-pill);
  transition: background 0.15s ease;
  white-space: nowrap;
  flex-shrink: 0;
}

.nav__link:hover {
  background: var(--c-yellow);
  text-decoration: none;
}

.nav__cta {
  display: none;
  white-space: nowrap;
  flex-shrink: 0;
}

.menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  cursor: pointer;
  flex-shrink: 0;
}

.menu-toggle span,
.menu-toggle span::before,
.menu-toggle span::after {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--c-black);
  position: relative;
}

.menu-toggle span::before,
.menu-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
}

.menu-toggle span::before {
  top: -7px;
}

.menu-toggle span::after {
  top: 7px;
}

.mobile-nav {
  display: none;
  flex-direction: column;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-sm);
  border-top: 1px solid var(--c-gray);
}

.mobile-nav.open {
  display: flex;
}

.mobile-nav a {
  padding: 0.75rem 0;
  color: var(--c-text);
  font-weight: 600;
  border-bottom: 1px solid var(--c-gray);
  white-space: nowrap;
  overflow-x: auto;
}

@media (min-width: 1100px) {
  .nav {
    display: flex;
  }
  .nav__link {
    padding: 0.5rem 0.65rem;
    font-size: 0.9rem;
  }
  .nav__cta {
    display: inline-flex;
    padding: 0.55rem 1rem;
    font-size: 0.9rem;
  }
  .menu-toggle {
    display: none;
  }
  .mobile-nav {
    display: none !important;
  }
  .header__logo-wordmark {
    display: none;
  }
}

@media (min-width: 1300px) {
  .nav__link {
    padding: 0.5rem 0.85rem;
    font-size: 0.95rem;
  }
  .nav__cta {
    padding: 0.55rem 1.25rem;
    font-size: 0.95rem;
  }
  .header__logo-wordmark {
    display: block;
  }
}

/* Hero */
.hero {
  position: relative;
  padding: var(--space-2xl) 0 calc(var(--space-2xl) + var(--space-lg));
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 10% 20%, rgba(251, 214, 7, 0.15) 0%, transparent 35%),
    radial-gradient(circle at 90% 80%, rgba(236, 84, 11, 0.08) 0%, transparent 35%),
    var(--c-bg);
}

.hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
  align-items: center;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.9rem;
  background: var(--c-white);
  border: 1px solid var(--c-gray);
  border-radius: var(--radius-pill);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: var(--space-md);
}

.hero__title {
  font-size: clamp(2rem, 5vw, 3.25rem);
  line-height: 1.25;
  font-weight: 700;
  margin-bottom: var(--space-md);
}

.hero__title mark {
  background: linear-gradient(180deg, transparent 65%, var(--c-yellow) 65%);
  color: var(--c-text);
  padding: 0 0.25rem;
}

.hero__desc {
  font-size: 1.125rem;
  color: var(--c-muted);
  max-width: 560px;
  margin-bottom: var(--space-lg);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.hero__visual {
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--c-yellow) 0%, #ffe066 100%);
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-lg);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.08);
}

.hero__visual-text {
  text-align: center;
}

.hero__visual-text img {
  width: 120px;
  height: 120px;
  margin: 0 auto var(--space-sm);
  display: block;
}

.hero__visual-text p {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--c-black);
}

@media (min-width: 720px) {
  .hero__grid {
    grid-template-columns: 1.1fr 0.9fr;
  }
}

/* Cards */
.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
}

.card-grid--3 {
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.card-grid--2 {
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
}

.card {
  background: var(--c-white);
  border: 1px solid var(--c-gray);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.08);
}

.card__media {
  height: 180px;
  background: linear-gradient(135deg, #f2f0ea 0%, var(--c-gray) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c-muted);
  font-weight: 600;
}

.card__body {
  padding: var(--space-md);
}

.card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
  margin-bottom: var(--space-sm);
}

.card__title {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 0.5rem;
  overflow-wrap: break-word;
}

.card__title a {
  color: var(--c-text);
}

.card__title a:hover {
  color: var(--c-red);
}

.card__desc {
  color: var(--c-muted);
  margin-bottom: var(--space-sm);
}

.card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-sm);
  border-top: 1px solid var(--c-gray);
}

.card__price {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--c-red);
}

/* Lists */
.list-icon {
  display: grid;
  gap: var(--space-sm);
}

.list-icon li {
  display: flex;
  gap: var(--space-sm);
  align-items: flex-start;
}

.list-icon .icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  background: var(--c-yellow);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 700;
  color: var(--c-black);
  font-size: 0.85rem;
}

/* Schedule */
.schedule {
  display: grid;
  gap: var(--space-sm);
}

.schedule__item {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: var(--space-sm);
  padding: var(--space-sm) 0;
  border-bottom: 1px solid var(--c-gray);
}

.schedule__time {
  font-weight: 700;
  color: var(--c-red);
}

/* FAQ */
.faq-list {
  display: grid;
  gap: var(--space-md);
  max-width: 880px;
}

.faq__q {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.faq__a {
  color: var(--c-muted);
}

/* Contact */
.contact-grid {
  display: grid;
  gap: var(--space-lg);
  grid-template-columns: 1fr;
}

@media (min-width: 720px) {
  .contact-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.contact-card {
  background: var(--c-white);
  border: 1px solid var(--c-gray);
  border-radius: var(--radius);
  padding: var(--space-lg);
}

.contact-card h3 {
  margin-bottom: var(--space-sm);
}

.contact-card p {
  color: var(--c-muted);
  margin-bottom: var(--space-md);
}

.copy-row {
  display: flex;
  gap: var(--space-sm);
  align-items: center;
  flex-wrap: wrap;
}

.copy-row code {
  background: var(--c-pale);
  padding: 0.35rem 0.75rem;
  border-radius: 6px;
  font-family: ui-monospace, monospace;
  font-size: 0.85rem;
  word-break: break-all;
}

/* Filter bar (category / city list pages) */
.filter-bar {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.filter-bar .btn.is-active {
  background: var(--c-red);
  border-color: var(--c-red);
  color: #fff;
}

/* City switcher tabs */
.city-tabs {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: var(--space-lg);
}

/* Mini-program entry block */
.mp-block {
  display: flex;
  gap: var(--space-lg);
  align-items: center;
  margin-top: var(--space-md);
  flex-wrap: wrap;
}

.mp-block--compact {
  background: var(--c-pale);
  border-radius: var(--radius);
  padding: var(--space-md);
  margin-top: var(--space-md);
}

.mp-qr {
  display: block;
  border-radius: 10px;
  background: var(--c-white);
  border: 1px solid var(--c-gray);
  padding: 6px;
  flex-shrink: 0;
}

.mp-block__text {
  flex: 1;
  min-width: 220px;
}

.mp-block__text p {
  color: var(--c-muted);
  margin-bottom: var(--space-sm);
}

.contact-card--wide {
  grid-column: 1 / -1;
}

@media (min-width: 720px) {
  .contact-card--wide {
    grid-column: span 2;
  }
}

/* Footer */
.footer {
  background: var(--c-black);
  color: var(--c-white);
  padding: var(--space-xl) 0 var(--space-lg);
}

.footer a {
  color: var(--c-white);
}

.footer__grid {
  display: grid;
  gap: var(--space-lg);
  grid-template-columns: 1fr;
}

.footer__brand svg,
.footer__brand img {
  height: 40px;
  width: auto;
  margin-bottom: var(--space-sm);
}

.footer__brand p {
  color: var(--c-gray);
  max-width: 320px;
}

.footer__links {
  display: grid;
  gap: var(--space-sm);
}

.footer__links a {
  color: var(--c-gray);
  white-space: nowrap;
}

.footer__links a:hover {
  color: var(--c-yellow);
}

.footer__bottom {
  margin-top: var(--space-xl);
  padding-top: var(--space-md);
  border-top: 1px solid #333;
  color: var(--c-gray);
  font-size: 0.9rem;
}

@media (min-width: 960px) {
  .footer__grid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
  }
}

/* Brand page */
.brand-story {
  display: grid;
  gap: var(--space-xl);
  align-items: start;
}

@media (min-width: 720px) {
  .brand-story {
    grid-template-columns: 1fr 1fr;
  }
}

.brand-story__visual {
  background: var(--c-yellow);
  border-radius: var(--radius);
  padding: var(--space-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 320px;
}

.brand-story__visual svg {
  width: 160px;
  height: 160px;
}

/* CTA banner */
.cta-banner {
  background: linear-gradient(135deg, var(--c-red) 0%, #ff7a2e 100%);
  color: var(--c-white);
  border-radius: var(--radius);
  padding: var(--space-xl);
  text-align: center;
}

.cta-banner h2 {
  margin-bottom: var(--space-sm);
}

.cta-banner p {
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto var(--space-lg);
}

/* Placeholder blocks */
.placeholder-media {
  background: linear-gradient(135deg, var(--c-pale) 0%, var(--c-gray) 100%);
  border-radius: var(--radius);
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c-muted);
  font-weight: 600;
}

/* Page header */
.page-header {
  padding: var(--space-xl) 0 var(--space-lg);
  background: var(--c-pale);
  border-bottom: 1px solid var(--c-gray);
}

.page-header h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  line-height: 1.25;
  overflow-wrap: break-word;
}

.page-header p {
  color: var(--c-muted);
  margin-top: var(--space-sm);
}

/* Review cards */
.review {
  background: var(--c-white);
  border: 1px solid var(--c-gray);
  border-radius: var(--radius);
  padding: var(--space-md);
}

.review__quote {
  font-size: 1.05rem;
  margin-bottom: var(--space-md);
  position: relative;
  padding-left: 1.5rem;
}

.review__quote::before {
  content: "“";
  position: absolute;
  left: 0;
  top: -0.4rem;
  font-size: 2.5rem;
  color: var(--c-yellow);
  font-family: Georgia, serif;
  line-height: 1;
}

.review__meta {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  color: var(--c-muted);
  font-size: 0.95rem;
}

.review__name {
  font-weight: 700;
  color: var(--c-text);
}

/* Utility */
.text-center {
  text-align: center;
}

.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }

/* Trip detail layout */
.trip-layout {
  display: grid;
  gap: var(--space-lg);
  grid-template-columns: 1fr;
}

@media (min-width: 960px) {
  .trip-layout {
    grid-template-columns: 2fr 1fr;
  }
}

/* Header logo with image assets */
.header__logo-icon {
  height: 42px;
  width: auto;
  display: block;
}

.header__logo-wordmark {
  height: 28px;
  width: auto;
  display: block;
}

@media (max-width: 400px) {
  .header__logo-wordmark {
    display: none;
  }
}

/* Footer logo image */
.footer__logo {
  height: 36px;
  width: auto;
  margin-bottom: var(--space-sm);
}

/* Stats section */
.stats-section {
  padding: var(--space-xl) 0;
  background: var(--c-pale);
  border-top: 1px solid var(--c-gray);
  border-bottom: 1px solid var(--c-gray);
}

.stats-section--pale {
  background: var(--c-pale);
}

.stats-section--compact {
  padding: var(--space-lg) 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
}

.stat {
  text-align: center;
  padding: var(--space-md);
  background: var(--c-white);
  border: 1px solid var(--c-gray);
  border-radius: var(--radius);
}

.stat__number {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  color: var(--c-red);
  line-height: 1.1;
}

.stat__number span {
  font-size: 0.65em;
  font-weight: 700;
  color: var(--c-red);
  margin-left: 0.1em;
}

.stat__label {
  margin-top: var(--space-xs);
  color: var(--c-muted);
  font-size: 0.95rem;
}

@media (min-width: 720px) {
  .stats-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 960px) {
  .stats-grid {
    grid-template-columns: repeat(6, 1fr);
  }
}

/* Card grid 4 columns */
.card-grid--4 {
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

/* Highlighted card */
.card--highlight {
  border: 2px solid var(--c-red);
  background: linear-gradient(180deg, #fff8f5 0%, var(--c-white) 100%);
}

.card__tagline {
  color: var(--c-red);
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: var(--space-sm);
}

/* Xifengzu culture section on categories page */
.xifengzu-culture {
  background: var(--c-pale);
  border-radius: var(--radius);
  padding: var(--space-xl);
  margin-top: var(--space-xl);
}

.xifengzu-culture__header {
  text-align: center;
  margin-bottom: var(--space-lg);
}

/* Comparison table */
.table-wrapper {
  overflow-x: auto;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--c-white);
  border: 1px solid var(--c-gray);
  border-radius: var(--radius);
  overflow: hidden;
}

.comparison-table th,
.comparison-table td {
  padding: var(--space-sm) var(--space-md);
  text-align: left;
  border-bottom: 1px solid var(--c-gray);
}

.comparison-table th {
  background: var(--c-black);
  color: var(--c-white);
  font-weight: 700;
}

.comparison-table td:first-child {
  font-weight: 700;
  width: 120px;
}

.comparison-table tr:nth-child(even) {
  background: var(--c-pale);
}

/* Kukuniao page header */
.page-header--kukuniao {
  background: linear-gradient(135deg, var(--c-red) 0%, #ff7a2e 100%);
  color: var(--c-white);
  border-bottom: 0;
}

.page-header--kukuniao p,
.page-header--kukuniao .hero__eyebrow {
  color: rgba(255, 255, 255, 0.92);
}

.page-header--kukuniao h1 {
  color: var(--c-white);
}

/* CTA banner variants */
.cta-banner--kukuniao {
  background: var(--c-black);
  color: var(--c-white);
}

/* ---- 真实图片接入 ---- */
/* 所有 cover 裁切默认以中上为焦点，避免竖构图人物照被截掉脸部 */
.card__media {
  overflow: hidden;
}
.card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
  display: block;
}
.category-banner {
  width: 100%;
  height: 280px;
  overflow: hidden;
  background: var(--c-pale);
}
.category-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  display: block;
}
.media-wrap {
  margin-bottom: var(--space-lg);
}
.trip-detail-img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  object-position: center 25%;
  border-radius: var(--radius);
  display: block;
}
.review-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: var(--space-sm);
}
.review-gallery img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  object-position: center 25%;
  border-radius: var(--radius);
  display: block;
}

/* ---- 响应式细节优化 ---- */
@media (max-width: 720px) {
  .section {
    padding: var(--space-xl) 0;
  }
  .category-banner {
    height: 200px;
  }
  .trip-detail-img {
    max-height: 280px;
  }
}

@media (max-width: 480px) {
  .review-gallery {
    grid-template-columns: repeat(2, 1fr);
  }
  .review-gallery img {
    height: 120px;
  }
}
