/* ===== Variables ===== */
:root {
  --color-primary: #e85d2a;
  --color-primary-dark: #c94e22;
  --color-primary-light: #fff4ef;
  --color-accent: #b7a38d;
  --color-text: #1a1a1a;
  --color-text-muted: #666;
  --color-text-light: #999;
  --color-bg: #fafafa;
  --color-white: #fff;
  --color-dark: #1e1e1e;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.15);
  --radius: 12px;
  --radius-lg: 20px;
  --header-h: 72px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== Reset ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  font-family: "Noto Sans SC", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

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

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

button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

ul {
  list-style: none;
}

.container {
  width: min(1120px, calc(100% - 48px));
  margin-inline: auto;
}

/* ===== Header ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: var(--transition);
}

.header.scrolled {
  border-bottom-color: rgba(0, 0, 0, 0.06);
  box-shadow: var(--shadow-sm);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 1.125rem;
  color: var(--color-text);
}

.logo img {
  border-radius: 8px;
}

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

.nav a {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--color-text-muted);
  transition: color var(--transition);
  position: relative;
}

.nav a:hover,
.nav a.active {
  color: var(--color-primary);
}

.nav a::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-primary);
  border-radius: 1px;
  transition: width var(--transition);
}

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

.nav-cta {
  padding: 8px 20px;
  background: var(--color-primary);
  color: var(--color-white) !important;
  border-radius: 999px;
  transition: background var(--transition), transform var(--transition) !important;
}

.nav-cta::after {
  display: none !important;
}

.nav-cta:hover {
  background: var(--color-primary-dark);
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-text);
  border-radius: 1px;
  transition: var(--transition);
}

.nav-toggle.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  font-size: 0.9375rem;
  font-weight: 500;
  border-radius: 999px;
  transition: var(--transition);
}

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

.btn-primary:hover {
  background: var(--color-primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(232, 93, 42, 0.35);
}

.btn-outline {
  border: 2px solid rgba(255, 255, 255, 0.7);
  color: var(--color-white);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--color-white);
}

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

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

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

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(20, 15, 10, 0.72) 0%,
    rgba(30, 20, 10, 0.45) 50%,
    rgba(232, 93, 42, 0.25) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: var(--color-white);
  padding-top: var(--header-h);
}

.hero-tag {
  display: inline-block;
  padding: 6px 16px;
  margin-bottom: 24px;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  backdrop-filter: blur(8px);
}

.hero h1 {
  font-size: clamp(2.25rem, 6vw, 3.75rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.hero-desc {
  font-size: clamp(1rem, 2.5vw, 1.125rem);
  opacity: 0.9;
  max-width: 520px;
  margin: 0 auto 36px;
  font-weight: 300;
}

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

.hero-scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.75rem;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}

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

.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-header--light .section-label,
.section-header--light h2 {
  color: var(--color-white);
}

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 12px;
}

.section-label--light {
  color: rgba(255, 255, 255, 0.7);
}

.section-header h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 16px;
}

.section-intro {
  max-width: 560px;
  margin: 0 auto;
  color: var(--color-text-muted);
  font-size: 1.0625rem;
}

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

.about-card {
  padding: 36px 28px;
  background: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  text-align: center;
}

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

.about-icon {
  font-size: 2rem;
  margin-bottom: 16px;
}

.about-card h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.about-card p {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  line-height: 1.7;
}

/* ===== Features ===== */
.features {
  background: var(--color-dark);
  color: var(--color-white);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.feature-item {
  padding: 40px 32px;
  background: var(--color-dark);
  transition: background var(--transition);
}

.feature-item:hover {
  background: rgba(232, 93, 42, 0.08);
}

.feature-num {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-primary);
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}

.feature-item h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.feature-item p {
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.7;
}

/* ===== Gallery ===== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.gallery-grid--4 {
  grid-template-columns: repeat(4, 1fr);
}

.gallery-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  cursor: pointer;
}

.gallery-item--wide {
  grid-column: span 2;
  aspect-ratio: 16 / 9;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0);
  transition: background var(--transition);
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-item:hover::after {
  background: rgba(0, 0, 0, 0.15);
}

.gallery--alt {
  background: var(--color-white);
}

.nearby-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 40px;
}

.nearby-tags span {
  padding: 8px 18px;
  font-size: 0.875rem;
  color: var(--color-text-muted);
  background: var(--color-bg);
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.06);
}

/* ===== Location ===== */
.location-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
  align-items: center;
}

.location-info h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  margin-bottom: 32px;
  line-height: 1.3;
}

.location-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 32px;
}

.location-list li {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

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

.location-list strong {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.location-list span {
  font-size: 1rem;
  color: var(--color-text);
}

.location-map {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.location-map img {
  width: 100%;
}

/* ===== Contact ===== */
.contact {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  padding: 80px 0;
}

.contact-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 48px;
  align-items: center;
  padding: 48px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(12px);
  color: var(--color-white);
}

.contact-text h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  margin-bottom: 12px;
}

.contact-text p {
  opacity: 0.85;
  margin-bottom: 24px;
  max-width: 400px;
}

.contact-phone {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 1.5rem;
  font-weight: 600;
  padding: 12px 24px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: var(--radius);
  transition: var(--transition);
}

.contact-phone:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}

.contact-qr {
  text-align: center;
}

.contact-qr img {
  width: 180px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  margin: 0 auto 12px;
}

.contact-qr p {
  font-size: 0.875rem;
  opacity: 0.8;
}

/* ===== Footer ===== */
.footer {
  padding: 32px 0;
  background: var(--color-dark);
  color: rgba(255, 255, 255, 0.5);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 500;
}

.footer-brand img {
  border-radius: 8px;
}

.footer-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

.footer-copy,
.footer-beian {
  font-size: 0.8125rem;
}

.footer-beian {
  color: rgba(255, 255, 255, 0.5);
  transition: color var(--transition);
}

.footer-beian:hover {
  color: rgba(255, 255, 255, 0.8);
}

/* ===== Lightbox ===== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.92);
  padding: 60px 20px;
}

.lightbox[hidden] {
  display: none;
}

.lightbox img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 4px;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  font-size: 2.5rem;
  color: var(--color-white);
  opacity: 0.7;
  transition: opacity var(--transition);
  line-height: 1;
}

.lightbox-close:hover {
  opacity: 1;
}

.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  transition: var(--transition);
}

.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

.lightbox-prev:hover,
.lightbox-next:hover {
  background: rgba(255, 255, 255, 0.2);
}

.lightbox-counter {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.875rem;
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .about-grid,
  .features-grid {
    grid-template-columns: 1fr;
  }

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

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

  .gallery-item--wide {
    grid-column: span 2;
  }

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

  .contact-card {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 32px 24px;
  }

  .contact-text p {
    margin-inline: auto;
  }

  .contact-qr img {
    width: 160px;
  }
}

@media (max-width: 768px) {
  .container {
    width: calc(100% - 32px);
  }

  .section {
    padding: 72px 0;
  }

  .nav-toggle {
    display: flex;
  }

  .nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    padding: 16px;
    background: var(--color-white);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: var(--shadow-md);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
  }

  .nav.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav a {
    padding: 14px 16px;
    width: 100%;
    text-align: center;
    border-radius: var(--radius);
  }

  .nav a:hover {
    background: var(--color-primary-light);
  }

  .nav-cta {
    margin-top: 8px;
  }

  .hero-scroll {
    display: none;
  }

  .gallery-grid,
  .gallery-grid--4 {
    grid-template-columns: 1fr;
  }

  .gallery-item--wide {
    grid-column: span 1;
    aspect-ratio: 4 / 3;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }

  .footer-meta {
    align-items: center;
  }

  .lightbox-prev { left: 8px; }
  .lightbox-next { right: 8px; }
}
