/* 溧阳皇廷国际大酒店 · 点餐展示网站样式 */
:root {
  --gold: #C5A059;
  --gold-light: #D4B878;
  --gold-dark: #9E7F3D;
  --brown: #3D2B1F;
  --brown-soft: #5A4535;
  --beige: #F9F6F1;
  --cream: #FDFBF7;
  --paper: #FFFDF9;
  --text: #2E2118;
  --text-light: #6B5E4F;
  --muted: #9A8F7E;
  --border: #E8E0D2;
  --shadow: 0 10px 40px rgba(46, 33, 24, 0.08);
  --shadow-hover: 0 18px 56px rgba(46, 33, 24, 0.14);
  --radius: 16px;
  --radius-sm: 10px;
  --transition: 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  color: var(--text);
  background: var(--beige);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

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

/* Typography */
h1, h2, h3, h4 {
  font-family: "Noto Serif SC", "Source Han Serif SC", "SimSun", "STSong", serif;
  font-weight: 600;
  line-height: 1.25;
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  color: var(--brown);
  text-align: center;
  margin-bottom: 0.6rem;
}

.section-subtitle {
  text-align: center;
  color: var(--text-light);
  font-size: 1rem;
  margin-bottom: 2.5rem;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(61, 43, 31, 0.96);
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 20px rgba(0,0,0,0.15);
  transition: var(--transition);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--gold-light);
}

.logo-icon {
  width: 40px;
  height: 40px;
  border: 2px solid var(--gold);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: "Noto Serif SC", serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--gold);
}

.logo-text {
  font-family: "Noto Serif SC", serif;
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 1px;
}

.logo-text small {
  display: block;
  font-size: 0.6rem;
  letter-spacing: 2px;
  color: var(--gold-light);
  opacity: 0.8;
  margin-top: -4px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-link {
  color: rgba(255,255,255,0.85);
  font-size: 0.95rem;
  position: relative;
  padding: 8px 0;
  transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
  color: var(--gold);
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--gold);
  cursor: pointer;
  padding: 8px;
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--brown);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
}

.hero-slide.active {
  opacity: 1;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(61,43,31,0.55) 0%, rgba(61,43,31,0.75) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #fff;
  max-width: 760px;
  padding: 0 24px;
}

.hero-eyebrow {
  font-size: 0.9rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 1rem;
  display: inline-block;
  border-bottom: 1px solid var(--gold);
  padding-bottom: 6px;
}

.hero-title {
  font-size: clamp(2.2rem, 6vw, 4.2rem);
  margin-bottom: 1.2rem;
  text-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.hero-desc {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: rgba(255,255,255,0.9);
  margin-bottom: 2.5rem;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  border: none;
}

.btn-primary {
  background: var(--gold);
  color: #fff;
  box-shadow: 0 8px 24px rgba(197, 160, 89, 0.35);
}

.btn-primary:hover {
  background: var(--gold-dark);
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(197, 160, 89, 0.45);
}

.btn-outline {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.5);
}

.btn-outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: #fff;
}

.hero-dots {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  z-index: 3;
}

.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.35);
  border: none;
  cursor: pointer;
  transition: var(--transition);
}

.hero-dot.active {
  background: var(--gold);
  transform: scale(1.3);
}

.scroll-hint {
  position: absolute;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.6);
  font-size: 0.8rem;
  letter-spacing: 2px;
  animation: bounce 2s infinite;
  z-index: 3;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
  40% { transform: translateX(-50%) translateY(-10px); }
  60% { transform: translateX(-50%) translateY(-5px); }
}

/* Sections */
.section {
  padding: 96px 0;
}

.section-beige { background: var(--beige); }
.section-cream { background: var(--cream); }
.section-brown { background: var(--brown); color: #fff; }

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.about-image {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4/3;
}

.about-text h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: var(--brown);
  margin-bottom: 1rem;
}

.about-text p {
  color: var(--text-light);
  margin-bottom: 1.2rem;
}

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.feature {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 28px 22px;
  text-align: center;
  transition: var(--transition);
}

.feature:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.feature-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  background: rgba(197, 160, 89, 0.12);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--gold-dark);
  font-size: 1.4rem;
}

.feature h3 {
  font-size: 1.1rem;
  color: var(--brown);
  margin-bottom: 8px;
}

.feature p {
  font-size: 0.9rem;
  color: var(--text-light);
  margin: 0;
}

/* Dish cards */
.dishes-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

.dish-card {
  background: var(--paper);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

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

.dish-image {
  position: relative;
  width: 100%;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: #eee;
}

.dish-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.dish-card:hover .dish-image img {
  transform: scale(1.06);
}

.dish-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--gold);
  color: #fff;
  font-size: 0.7rem;
  padding: 4px 10px;
  border-radius: 20px;
  letter-spacing: 1px;
}

.dish-body {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.dish-title-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.dish-name {
  font-size: 1.15rem;
  color: var(--brown);
  font-weight: 600;
}

.dish-price {
  font-size: 1.1rem;
  color: var(--gold-dark);
  font-weight: 700;
  white-space: nowrap;
}

.dish-price::before {
  content: "¥";
  font-size: 0.85em;
  margin-right: 1px;
}

.dish-desc {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.6;
  flex: 1;
}

/* Menu page filter */
.menu-hero {
  position: relative;
  min-height: 50vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--brown);
  overflow: hidden;
}

.menu-hero-bg {
  position: absolute;
  inset: 0;
}

.menu-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.45;
}

.menu-hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #fff;
  padding: 120px 24px 80px;
}

.filter-bar {
  position: sticky;
  top: 72px;
  z-index: 100;
  background: rgba(253, 251, 247, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  padding: 18px 0;
}

.filter-inner {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}

.filter-inner::-webkit-scrollbar {
  display: none;
}

.filter-btn {
  flex: 0 0 auto;
  padding: 10px 22px;
  border-radius: 50px;
  border: 1px solid var(--border);
  background: var(--paper);
  color: var(--text-light);
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--gold);
  color: #fff;
  border-color: var(--gold);
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  padding: 48px 0;
}

.menu-card {
  background: var(--paper);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: var(--transition);
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.5s forwards;
}

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

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.menu-card-image {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: linear-gradient(110deg, #ececec 8%, #f5f5f5 18%, #ececec 33%);
  background-size: 200% 100%;
}

.menu-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.4s ease, transform 0.6s ease;
}

.menu-card-image img.lazy {
  opacity: 0;
}

.menu-card-image img.loaded {
  opacity: 1;
}

.menu-card:hover .menu-card-image img.loaded {
  transform: scale(1.05);
}

.menu-card-body {
  padding: 18px 20px 22px;
}

.menu-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 6px;
}

.menu-card-name {
  font-size: 1.15rem;
  color: var(--brown);
  font-weight: 600;
}

.menu-card-price {
  color: var(--gold-dark);
  font-weight: 700;
  font-size: 1.1rem;
}

.menu-card-price::before {
  content: "¥";
  font-size: 0.85em;
}

.menu-card-desc {
  font-size: 0.88rem;
  color: var(--text-light);
}

.menu-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 80px 24px;
  color: var(--text-light);
}

/* Featured dishes - reference image layout */
.menu-featured {
  background: linear-gradient(180deg, var(--cream) 0%, var(--beige) 100%);
}

.featured-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 56px;
  flex-wrap: wrap;
}

.featured-header-main {
  flex: 1 1 300px;
}

.featured-label {
  font-size: 0.85rem;
  letter-spacing: 3px;
  color: var(--gold-dark);
  text-transform: uppercase;
  margin-bottom: 8px;
  display: block;
}

.featured-title {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  color: var(--brown);
  font-weight: 700;
}

.featured-subtitle {
  font-size: 1rem;
  color: var(--text-light);
  margin-top: 6px;
}

.featured-part {
  text-align: right;
  flex: 0 0 auto;
}

.featured-part-label {
  font-size: 0.9rem;
  color: var(--gold-dark);
  letter-spacing: 2px;
}

.featured-part-number {
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  font-weight: 700;
  color: var(--brown);
  line-height: 1;
}

.featured-part-title {
  font-size: 1.4rem;
  color: var(--brown);
  font-weight: 600;
}

.featured-list {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.featured-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  background: var(--paper);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.featured-card:hover {
  box-shadow: var(--shadow-hover);
}

.featured-card.reverse .featured-card-image {
  order: 2;
}

.featured-card.reverse .featured-card-body {
  order: 1;
}

.featured-card-image {
  aspect-ratio: 4/3;
  overflow: hidden;
  background: #eee;
}

.featured-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.featured-card:hover .featured-card-image img {
  transform: scale(1.05);
}

.featured-card-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 40px 48px;
}

.featured-card-name {
  font-size: clamp(1.25rem, 2.5vw, 1.7rem);
  color: var(--brown);
  margin-bottom: 16px;
  font-weight: 700;
  line-height: 1.35;
}

.featured-card-desc {
  font-size: 1rem;
  color: var(--text-light);
  line-height: 1.8;
}

.featured-reference {
  margin-top: 64px;
  text-align: center;
}

.featured-reference img {
  max-width: 680px;
  width: 100%;
  margin: 0 auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.featured-reference-caption {
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.85rem;
}

/* Contact */
.contact-hero {
  position: relative;
  min-height: 45vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--brown);
}

.contact-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url('../img/hero-lobby.jpg') center/cover no-repeat;
  opacity: 0.35;
}

.contact-hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #fff;
  padding: 120px 24px 80px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 40px;
  align-items: start;
}

.contact-cards {
  display: grid;
  gap: 20px;
}

.contact-card {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}

.contact-card-icon {
  width: 48px;
  height: 48px;
  background: rgba(197, 160, 89, 0.12);
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: var(--gold-dark);
  font-size: 1.3rem;
  margin-bottom: 16px;
}

.contact-card h3 {
  font-size: 1.1rem;
  color: var(--brown);
  margin-bottom: 8px;
}

.contact-card p {
  color: var(--text-light);
  font-size: 0.95rem;
}

.contact-map {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  min-height: 420px;
  display: flex;
  flex-direction: column;
}

.map-frame {
  flex: 1;
  min-height: 360px;
  border: none;
  width: 100%;
  filter: grayscale(0.1);
}

.map-note {
  padding: 16px 20px;
  background: var(--cream);
  color: var(--text-light);
  font-size: 0.9rem;
  border-top: 1px solid var(--border);
}

/* Footer */
.footer {
  background: var(--brown);
  color: rgba(255,255,255,0.75);
  padding: 56px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand .logo {
  margin-bottom: 16px;
}

.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.8;
  max-width: 280px;
}

.footer-title {
  color: var(--gold-light);
  font-size: 1rem;
  margin-bottom: 18px;
  font-weight: 600;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--gold);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
}

/* Page banner general */
.page-banner {
  position: relative;
  min-height: 45vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--brown);
  overflow: hidden;
}

.page-banner-bg {
  position: absolute;
  inset: 0;
  opacity: 0.4;
}

.page-banner-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-banner-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #fff;
  padding: 120px 24px 80px;
}

/* Utilities */
.text-center { text-align: center; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }

/* Mobile nav */
@media (max-width: 900px) {
  .nav {
    position: fixed;
    top: 72px;
    right: 0;
    width: 260px;
    height: calc(100vh - 72px);
    background: rgba(61, 43, 31, 0.98);
    flex-direction: column;
    padding: 32px 24px;
    gap: 24px;
    transform: translateX(100%);
    transition: var(--transition);
  }

  .nav.open {
    transform: translateX(0);
  }

  .mobile-menu-btn {
    display: block;
  }

  .about-grid,
  .contact-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .features {
    grid-template-columns: 1fr;
  }

  .dishes-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .menu-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .featured-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .featured-part {
    text-align: left;
  }

  .featured-card,
  .featured-card.reverse {
    grid-template-columns: 1fr;
  }

  .featured-card.reverse .featured-card-image,
  .featured-card.reverse .featured-card-body {
    order: 0;
  }

  .featured-card-body {
    padding: 28px 24px;
  }
}

@media (max-width: 600px) {
  .section {
    padding: 64px 0;
  }

  .dishes-grid,
  .menu-grid {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    width: 100%;
  }

  .filter-bar {
    top: 72px;
  }

  .footer-grid {
    gap: 32px;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
