/* ===== Font Awesome 6 Icon Library ===== */
@import url("https://cdn.jsdelivr.net/npm/@fortawesome/fontawesome-free@6.5.1/css/all.min.css");

/* ===== CSS Variables & Theme ===== */
:root {
  /* 传统中国风色彩 */
  --color-red: #c41e3a;
  --color-red-dark: #8b1a2d;
  --color-gold: #d4a853;
  --color-gold-light: #f0d68a;

  /* 现代简约色彩 */
  --color-primary: #2c5f7c;
  --color-primary-light: #4a8fa8;
  --color-secondary: #e8734a;

  /* 活力色彩 */
  --color-orange: #ff6b35;
  --color-teal: #2ec4b6;
  --color-purple: #7b2d8b;

  /* 中性色 */
  --color-dark: #1a1a2e;
  --color-gray-900: #2d2d44;
  --color-gray-700: #4a4a5a;
  --color-gray-500: #7a7a8a;
  --color-gray-300: #b8b8c8;
  --color-gray-100: #f0f0f5;
  --color-white: #ffffff;

  /* 字体 */
  --font-heading: "Noto Serif SC", "Songti SC", "STSong", serif;
  --font-body: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;

  /* 间距 */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 4rem;
  --spacing-xl: 6rem;

  /* 圆角 */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  /* 阴影 */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.16);
  --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.2);

  /* 过渡 */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--color-gray-900);
  background: var(--color-white);
  line-height: 1.6;
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
  position: relative;
}

/* Section-level horizontal overflow guards (prevent transform/scale leak) */
section, header, footer, main {
  width: 100%;
  max-width: 100vw;
  overflow-x: clip;
}

/* Fallback for browsers without overflow-x: clip support */
@supports not (overflow-x: clip) {
  section, header, footer, main {
    overflow-x: hidden;
  }
}

/* Prevent any element from overflowing horizontally */
div, article {
  max-width: 100%;
}

/* Final safety net for grid/flex children to prevent horizontal overflow */
.container > *, .container-wide > *, .container-narrow > * {
  min-width: 0;
}

/* ===== Icon Helpers ===== */
.fa, .fas, .far, .fab, .fa-solid, .fa-regular, .fa-brands {
  display: inline-block;
  line-height: 1;
}

.icon-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(196, 30, 58, 0.1), rgba(212, 168, 83, 0.1));
  color: var(--color-red);
  font-size: 1.6rem;
  margin-bottom: 1rem;
  transition: all var(--transition-normal);
}

.icon-circle.gold {
  background: linear-gradient(135deg, rgba(212, 168, 83, 0.15), rgba(240, 214, 138, 0.15));
  color: var(--color-gold);
}

.icon-circle.teal {
  background: linear-gradient(135deg, rgba(46, 196, 182, 0.12), rgba(95, 211, 197, 0.12));
  color: var(--color-teal);
}

.icon-circle.purple {
  background: linear-gradient(135deg, rgba(123, 45, 139, 0.12), rgba(150, 80, 170, 0.12));
  color: var(--color-purple);
}

.icon-square {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--color-red);
  color: white;
  font-size: 1.2rem;
}

/* Force common containers to never overflow horizontally */
.container, .container-wide, .container-narrow {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.container-wide { max-width: 1400px; }
.container-narrow { max-width: 820px; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  line-height: 1.3;
  font-weight: 700;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition-fast);
}

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

ul, ol { list-style: none; }

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

input, textarea, select {
  font-family: inherit;
  font-size: inherit;
}

/* ===== Navigation ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  max-width: 100vw;
  z-index: 1000;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all var(--transition-normal);
  background: transparent;
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
  padding: 0.7rem 2rem;
}

.navbar .logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-white);
  transition: color var(--transition-normal);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.navbar .logo .logo-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--color-red), var(--color-red-dark));
  border: 1.5px solid var(--color-gold);
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--color-gold-light);
  font-weight: 900;
  font-size: 1.05rem;
  font-family: var(--font-heading);
  box-shadow: 0 4px 12px rgba(139, 26, 45, 0.3);
}

.navbar.scrolled .logo {
  color: var(--color-red);
}

.navbar .nav-links {
  display: flex;
  gap: 1.4rem;
  align-items: center;
}

.nav-mobile-header { display: none; }

.navbar .nav-links a {
  color: var(--color-white);
  font-size: 0.92rem;
  font-weight: 500;
  position: relative;
  padding: 0.3rem 0;
  transition: color var(--transition-normal);
  white-space: nowrap;
}

@media (min-width: 901px) and (max-width: 1180px) {
  .navbar { padding: 0.85rem 1.2rem; }
  .navbar .nav-links { gap: 1rem; }
  .navbar .nav-links a { font-size: 0.85rem; }
  .navbar .logo span:not(.logo-icon) { display: none; }
}

.navbar.scrolled .nav-links a {
  color: var(--color-gray-700);
}

.navbar .nav-links a::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-gold);
  transition: width var(--transition-normal);
}

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

.navbar .nav-links a:hover { color: var(--color-gold); }
.navbar.scrolled .nav-links a:hover { color: var(--color-red); }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  z-index: 1001;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.24);
  padding: 0;
  transition: background var(--transition-normal), border-color var(--transition-normal), box-shadow var(--transition-normal);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.hamburger:hover {
  background: rgba(212, 168, 83, 0.28);
  border-color: rgba(240, 214, 138, 0.6);
  box-shadow: 0 6px 18px rgba(196, 30, 58, 0.2);
}

.hamburger span {
  width: 20px;
  height: 2px;
  background: var(--color-white);
  border-radius: 2px;
  transition: all var(--transition-normal);
}

.navbar.scrolled .hamburger {
  background: rgba(196, 30, 58, 0.08);
  border-color: rgba(196, 30, 58, 0.18);
  box-shadow: 0 4px 12px rgba(196, 30, 58, 0.08);
}

.navbar.scrolled .hamburger:hover {
  background: rgba(212, 168, 83, 0.18);
  border-color: rgba(212, 168, 83, 0.5);
}

.navbar.scrolled .hamburger span { background: var(--color-red); }

.hamburger.active {
  background: linear-gradient(135deg, var(--color-red), var(--color-red-dark)) !important;
  border-color: var(--color-gold) !important;
  box-shadow: 0 6px 22px rgba(139, 26, 45, 0.45) !important;
}

.hamburger.active span { background: var(--color-white) !important; }
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ===== Hero Section ===== */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  width: 100%;
  max-width: 100vw;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: -2;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(26, 26, 46, 0.7) 0%, rgba(196, 30, 58, 0.4) 100%);
  z-index: -1;
}

.hero-content {
  text-align: center;
  color: var(--color-white);
  padding: 0 2rem;
  max-width: 900px;
  position: relative;
  z-index: 2;
}

.hero-content .pre-title {
  display: inline-block;
  padding: 0.4rem 1.2rem;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50px;
  font-size: 0.9rem;
  letter-spacing: 2px;
  margin-bottom: 1.5rem;
}

.hero-content h1 {
  font-size: clamp(2.5rem, 6vw, 4.8rem);
  margin-bottom: 1rem;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.4);
}

.hero-content h1 .highlight {
  background: linear-gradient(135deg, var(--color-gold), var(--color-gold-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-content p {
  font-size: clamp(1rem, 2vw, 1.3rem);
  opacity: 0.92;
  margin-bottom: 2.5rem;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  color: var(--color-white);
  font-size: 0.85rem;
  text-align: center;
  opacity: 0.8;
  animation: bounce 2s infinite;
}

.scroll-indicator .arrow {
  display: block;
  margin-top: 0.5rem;
  font-size: 1.5rem;
}

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  padding: 0.85rem 2.2rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 1rem;
  transition: all var(--transition-normal);
  cursor: pointer;
  text-align: center;
  letter-spacing: 0.5px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-red) 0%, var(--color-red-dark) 100%);
  color: var(--color-white);
  border: 1px solid rgba(212, 168, 83, 0.5);
  box-shadow: 0 6px 18px rgba(196, 30, 58, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, 0.18) 50%, transparent 100%);
  transition: left 0.6s ease;
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--color-red-dark) 0%, var(--color-red) 100%);
  border-color: var(--color-gold);
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(196, 30, 58, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.btn-primary:hover::before {
  left: 100%;
}

.btn-outline {
  border: 2px solid var(--color-white);
  color: var(--color-white);
  background: transparent;
}

.btn-outline:hover {
  background: var(--color-white);
  color: var(--color-red);
  transform: translateY(-2px);
}

.btn-gold {
  background: linear-gradient(135deg, var(--color-gold), var(--color-gold-light));
  color: var(--color-dark);
  box-shadow: 0 4px 15px rgba(212, 168, 83, 0.35);
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(212, 168, 83, 0.55);
}

.btn-block { width: 100%; }

/* ===== Section Common ===== */
.section { padding: var(--spacing-xl) 1.5rem; overflow: hidden; }

.section-header {
  text-align: center;
  margin-bottom: var(--spacing-lg);
}

.section-header .pre-title {
  display: inline-block;
  font-size: 0.85rem;
  letter-spacing: 4px;
  color: var(--color-red);
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.section-header h2 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--color-dark);
  margin-bottom: 0.5rem;
  letter-spacing: 0.06em;
}

.section-header .subtitle {
  font-size: 1.05rem;
  color: var(--color-gray-500);
  max-width: 600px;
  margin: 0 auto;
}

.section-header .divider {
  width: 80px;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, var(--color-red) 30%, var(--color-gold) 70%, transparent 100%);
  margin: 0.9rem auto 0.6rem;
  border-radius: 2px;
  position: relative;
}

.section-header .divider::before,
.section-header .divider::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 6px;
  height: 6px;
  background: var(--color-gold);
  border-radius: 50%;
  transform: translateY(-50%);
  box-shadow: 0 0 0 2px rgba(212, 168, 83, 0.25);
}

.section-header .divider::before { left: -10px; }
.section-header .divider::after { right: -10px; }

.container {
  max-width: 1200px;
  margin: 0 auto;
}

.container-wide {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ===== Cards ===== */
.card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-normal);
}

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

.card-img-wrap {
  width: 100%;
  height: 220px;
  overflow: hidden;
  position: relative;
}

.card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.card:hover .card-img { transform: scale(1.08); }

.card-body { padding: 1.5rem; }

.card-body h3 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
  color: var(--color-dark);
}

.card-body p {
  color: var(--color-gray-500);
  font-size: 0.95rem;
  line-height: 1.6;
}

.card-tag {
  position: absolute;
  top: 1rem;
  left: 1rem;
  padding: 0.3rem 0.8rem;
  background: var(--color-red);
  color: white;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  z-index: 2;
}

/* ===== Grid Layouts ===== */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }

/* ===== Footer ===== */
.footer {
  position: relative;
  background:
    radial-gradient(circle at 8% 0%, rgba(212, 168, 83, 0.16), transparent 35%),
    radial-gradient(circle at 92% 100%, rgba(196, 30, 58, 0.18), transparent 40%),
    linear-gradient(180deg, #1a1024 0%, #0f0810 100%);
  color: var(--color-gray-300);
  padding: var(--spacing-lg) 1.5rem var(--spacing-md);
  overflow: hidden;
}

.footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(212, 168, 83, 0.55), transparent);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 2fr 1.2fr 1.4fr;
  gap: 2.6rem;
  max-width: 1200px;
  margin: 0 auto;
  padding-bottom: 2rem;
  border-bottom: 1px dashed rgba(212, 168, 83, 0.22);
  align-items: start;
}

.footer-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.6rem;
}

.footer-brand h3 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--color-white);
  margin-bottom: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  letter-spacing: 0.04em;
}

.footer-seal {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--color-red), var(--color-red-dark));
  border: 1.5px solid var(--color-gold);
  color: var(--color-gold-light);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 900;
  border-radius: 6px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.4);
  font-size: 1.1rem;
}

.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.8;
  margin-bottom: 1.1rem;
}

.footer-social {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.footer-social a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(212, 168, 83, 0.22);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: rgba(240, 214, 138, 0.85);
  transition: all var(--transition-fast);
}

.footer-col a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  padding: 0.32rem 0;
  color: var(--color-gray-300);
  transition: color var(--transition-fast), padding-left var(--transition-fast);
}

.footer-col a i { width: 16px; text-align: center; opacity: 0.7; color: var(--color-gold-light); }

.footer-social a:hover {
  background: linear-gradient(135deg, var(--color-red), var(--color-red-dark));
  color: white;
  border-color: var(--color-gold);
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(196, 30, 58, 0.35);
}

.footer-col h4 {
  color: var(--color-gold-light);
  font-family: var(--font-heading);
  font-size: 1rem;
  margin-bottom: 1rem;
  letter-spacing: 0.18em;
  position: relative;
  padding-bottom: 0.55rem;
}

.footer-col h4::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 28px;
  height: 2px;
  background: linear-gradient(90deg, var(--color-gold), transparent);
  border-radius: 2px;
}

.footer-col a:hover { color: var(--color-gold); padding-left: 4px; }

/* QR cards */
.footer-qr h4 {
  color: var(--color-gold-light);
  font-family: var(--font-heading);
  font-size: 1rem;
  margin-bottom: 1rem;
  letter-spacing: 0.18em;
  position: relative;
  padding-bottom: 0.55rem;
}

.footer-qr h4::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 28px;
  height: 2px;
  background: linear-gradient(90deg, var(--color-gold), transparent);
  border-radius: 2px;
}

.footer-qr-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}

.qr-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(212, 168, 83, 0.28);
  border-radius: 12px;
  padding: 0.7rem 0.55rem 0.65rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  transition: border-color var(--transition-fast), background var(--transition-fast);
}

.qr-card:hover {
  border-color: var(--color-gold);
  background: rgba(212, 168, 83, 0.08);
}

.qr-img {
  width: 88px;
  height: 88px;
  background: linear-gradient(135deg, #fff8e8, #fff);
  border: 1px solid rgba(212, 168, 83, 0.4);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(26, 16, 36, 0.7);
  font-size: 2.5rem;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25), inset 0 0 0 4px rgba(255, 255, 255, 0.6);
}

.qr-label {
  color: var(--color-gold-light);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.qr-label i { color: var(--color-gold); }

.qr-card small {
  color: rgba(255, 248, 234, 0.6);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
}

.footer-bottom {
  text-align: center;
  padding-top: 1.5rem;
  font-size: 0.85rem;
  color: rgba(255, 248, 234, 0.55);
  max-width: 1200px;
  margin: 0 auto;
}

/* ===== Scroll to Top ===== */
.scroll-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--color-red), var(--color-red-dark));
  color: var(--color-white);
  border: 1.5px solid rgba(212, 168, 83, 0.55);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: 0 8px 22px rgba(196, 30, 58, 0.32);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all var(--transition-normal);
  z-index: 997;
}

.scroll-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-top:hover {
  background: var(--color-red-dark);
  transform: translateY(-3px);
}

.scroll-top i { line-height: 1; }

/* ===== Mobile Bottom Tab Bar ===== */
.mobile-tabbar {
  display: none;
  align-items: stretch;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 998;
  padding: 0.5rem 0.6rem calc(0.5rem + env(safe-area-inset-bottom));
  background: linear-gradient(180deg, rgba(26, 16, 36, 0.92) 0%, rgba(15, 8, 16, 0.96) 100%);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid rgba(212, 168, 83, 0.32);
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.35);
  gap: 0.2rem;
}

.mobile-tabbar::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(240, 214, 138, 0.6), transparent);
}

.mobile-tabbar a {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 0.4rem 0.2rem;
  color: rgba(255, 248, 234, 0.7);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  border-radius: 12px;
  transition: color var(--transition-fast), background var(--transition-fast), transform var(--transition-fast);
  position: relative;
}

.mobile-tabbar a i {
  font-size: 1.15rem;
  color: rgba(240, 214, 138, 0.78);
  transition: color var(--transition-fast), transform var(--transition-fast);
}

.mobile-tabbar a:hover,
.mobile-tabbar a.active {
  color: var(--color-gold-light);
  background: linear-gradient(135deg, rgba(212, 168, 83, 0.16), rgba(196, 30, 58, 0.14));
}

.mobile-tabbar a.active i {
  color: var(--color-gold);
  transform: translateY(-2px) scale(1.08);
}

.mobile-tabbar a.active::before {
  content: "";
  position: absolute;
  top: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 22px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--color-gold), transparent);
  border-radius: 2px;
}

.mobile-tabbar a.tab-cta {
  color: var(--color-gold-light);
}

.mobile-tabbar a.tab-cta i {
  color: var(--color-gold);
}

.mobile-tabbar a.tab-cta:hover {
  color: var(--color-gold-light);
  background: linear-gradient(135deg, rgba(212, 168, 83, 0.16), rgba(196, 30, 58, 0.14));
}

/* ===== Page Hero (Sub Pages) ===== */
.page-hero {
  position: relative;
  height: 55vh;
  min-height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-top: 0;
  width: 100%;
  max-width: 100vw;
}

.page-hero .hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: -2;
}

.page-hero .hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(26, 26, 46, 0.75) 0%, rgba(44, 95, 124, 0.55) 100%);
  z-index: -1;
}

.page-hero-content {
  text-align: center;
  color: var(--color-white);
  padding: 0 1.5rem;
}

.page-hero-content h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  margin-bottom: 0.6rem;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
}

.page-hero-content p {
  font-size: 1.05rem;
  opacity: 0.9;
  letter-spacing: 1px;
}

.breadcrumb {
  margin-top: 1rem;
  font-size: 0.9rem;
  opacity: 0.8;
}

.breadcrumb a:hover { color: var(--color-gold); }
.breadcrumb .sep { margin: 0 0.5rem; }

/* ===== Main offset for fixed nav on subpages ===== */
.has-fixed-nav { padding-top: 0; }

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

@media (max-width: 900px) {
  .hamburger { display: flex; }

  .mobile-tabbar { display: flex; }

  body {
    padding-bottom: calc(64px + env(safe-area-inset-bottom));
  }

  .scroll-top {
    bottom: calc(86px + env(safe-area-inset-bottom));
    right: 1rem;
    width: 42px;
    height: 42px;
    font-size: 1rem;
  }

  .navbar { padding: 0.85rem 1rem; }
  .navbar.scrolled { padding: 0.6rem 1rem; }

  .navbar .logo { font-size: 1.2rem; }
  .navbar .logo .logo-icon { width: 32px; height: 32px; font-size: 1rem; }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 82%;
    max-width: 360px;
    height: 100vh;
    height: 100dvh;
    background:
      radial-gradient(circle at 100% 0%, rgba(212, 168, 83, 0.22), transparent 45%),
      radial-gradient(circle at 0% 100%, rgba(196, 30, 58, 0.22), transparent 50%),
      linear-gradient(160deg, #2a1418 0%, #1a0d10 50%, #1a1a2e 100%);
    flex-direction: column;
    padding: 4.6rem 1.6rem 2rem;
    gap: 0.35rem !important;
    transition: right var(--transition-normal);
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.45);
    align-items: stretch !important;
    overflow-y: auto;
    border-left: 2px solid rgba(212, 168, 83, 0.45);
  }

  .nav-links.open { right: 0; }

  .nav-links .nav-mobile-header {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.4rem 0.4rem 1rem;
    margin-bottom: 0.4rem;
    border-bottom: 1px solid rgba(212, 168, 83, 0.32);
    position: relative;
  }

  .nav-links .nav-mobile-header::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -2px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(212, 168, 83, 0.55), transparent);
  }

  .nav-mobile-seal {
    width: 46px;
    height: 46px;
    background: linear-gradient(135deg, var(--color-red), var(--color-red-dark));
    border: 2px solid var(--color-gold);
    color: var(--color-gold-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 900;
    border-radius: 8px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
    flex-shrink: 0;
  }

  .nav-mobile-title {
    color: rgba(240, 214, 138, 0.92);
    font-family: var(--font-heading);
    font-size: 1.05rem;
    letter-spacing: 0.32em;
    font-weight: 700;
  }

  .nav-links li {
    width: 100%;
    list-style: none;
    position: relative;
  }

  .nav-links a {
    color: rgba(255, 248, 234, 0.92) !important;
    font-size: 1rem;
    font-family: var(--font-heading);
    letter-spacing: 0.06em;
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.95rem 1.1rem !important;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0);
    background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.02) 100%);
    transition: background var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast), padding-left var(--transition-fast);
    position: relative;
  }

  .nav-links a::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(240, 214, 138, 0.45);
    box-shadow: 0 0 0 2px rgba(212, 168, 83, 0.18);
    transition: background var(--transition-fast), box-shadow var(--transition-fast), transform var(--transition-fast);
    flex-shrink: 0;
  }

  .nav-links a:hover,
  .nav-links a.active {
    background: linear-gradient(90deg, rgba(212, 168, 83, 0.18) 0%, rgba(196, 30, 58, 0.16) 100%);
    border-color: rgba(212, 168, 83, 0.45);
    color: var(--color-gold-light) !important;
    padding-left: 1.3rem !important;
  }

  .nav-links a:hover::before,
  .nav-links a.active::before {
    background: var(--color-gold);
    box-shadow: 0 0 0 3px rgba(240, 214, 138, 0.28);
    transform: scale(1.15);
  }

  .nav-links a::after { display: none; }

  /* CTA button in mobile menu */
  .nav-links .btn {
    margin-top: 1.4rem;
    padding: 1rem 1.2rem !important;
    font-size: 0.98rem !important;
    text-align: center;
    background: linear-gradient(135deg, var(--color-red) 0%, var(--color-red-dark) 100%) !important;
    color: white !important;
    border: 1px solid var(--color-gold) !important;
    border-radius: 10px;
    box-shadow: 0 8px 22px rgba(196, 30, 58, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.15);
    letter-spacing: 0.16em;
    font-weight: 700;
    justify-content: center;
  }

  .nav-links .btn::before { display: none; }

  /* Mobile menu backdrop */
  .nav-links.open::before {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(15, 8, 14, 0.55);
    z-index: -1;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
  }

  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; gap: 1.2rem; }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.6rem;
  }
  .footer-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.2rem;
  }
  .footer-qr-grid {
    grid-template-columns: 1fr 1fr;
    max-width: 320px;
  }
  .footer { padding: var(--spacing-md) 1rem 1.5rem; padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
  .section { padding: var(--spacing-lg) 1rem; }
  .section-header { margin-bottom: 2.5rem; }

  .hero { min-height: 520px; height: 100vh; height: 100dvh; }
  .hero-content { padding: 0 1.2rem; }
  .hero-content h1 { font-size: clamp(2rem, 8vw, 3rem); line-height: 1.2; }
  .hero-content p { font-size: 1rem; line-height: 1.7; margin-bottom: 1.8rem; }
  .scroll-indicator { display: none; }

  .page-hero { height: 38vh; min-height: 280px; }

  /* Larger tap targets for mobile */
  .btn { padding: 0.85rem 1.6rem; font-size: 0.95rem; min-height: 44px; }

  .scroll-top { width: 42px; height: 42px; bottom: calc(86px + env(safe-area-inset-bottom)); right: 1rem; font-size: 1rem; }
}

@media (max-width: 600px) {
  html { font-size: 15px; }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 0.7rem;
    padding: 0 1.5rem;
  }
  .hero-actions .btn { width: 100%; }

  .section { padding: 3rem 1rem; }

  /* Improve focus & tap visuals on mobile */
  a:active, button:active { opacity: 0.7; }

  /* Fix horizontal overflow in narrow screens */
  body { overflow-x: hidden; }
}

@media (max-width: 380px) {
  html { font-size: 14px; }
  .navbar .logo span:not(.logo-icon) { display: none; }
  .section-header h2 { font-size: 1.6rem; }
}
