/* ============================================================
   macOS LIQUID GLASSMORPHISM ULTRA THEME
   友顺香香莊贸易 — Yew Soon Hiong Trading
   Inspired by macOS Sequoia / Sonoma Glass Architecture
   ============================================================ */

@charset "UTF-8";

/* ---------- 1. Design Tokens & Variables ---------- */
:root {
  /* Incense Heritage Warm Glow Palette */
  --accent-gold: #e5b95c;
  --accent-gold-light: #fbe39d;
  --accent-red: #e04438;
  --accent-red-glow: rgba(224, 68, 56, 0.45);
  --accent-amber: #f39c12;
  --accent-emerald: #2ecc71;

  /* macOS Liquid Surfaces */
  --liquid-bg: rgba(25, 25, 38, 0.62);
  --liquid-card: rgba(35, 35, 55, 0.48);
  --liquid-card-hover: rgba(50, 50, 80, 0.65);
  --liquid-dock: rgba(20, 20, 32, 0.68);
  --liquid-pill: rgba(255, 255, 255, 0.08);

  /* Specular Highlights & Borders */
  --specular-border: rgba(255, 255, 255, 0.18);
  --specular-border-strong: rgba(255, 255, 255, 0.35);
  --specular-inner: inset 0 1px 1.5px 0 rgba(255, 255, 255, 0.42), inset 0 -1px 1px 0 rgba(0, 0, 0, 0.3);
  --liquid-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.08);
  --liquid-shadow-hover: 0 30px 70px -15px rgba(0, 0, 0, 0.75), 0 0 35px rgba(229, 185, 92, 0.22);

  /* Blurs */
  --blur-dock: 32px;
  --blur-card: 24px;
  --blur-sheet: 44px;

  /* Fonts */
  --font-mac: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", sans-serif;

  /* Curves */
  --radius-xs: 8px;
  --radius-sm: 14px;
  --radius-md: 20px;
  --radius-lg: 26px;
  --radius-xl: 36px;

  /* Transitions */
  --spring: all 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  --fast: all 0.25s ease;
}

/* ---------- 2. Reset & Smooth Base ---------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-mac);
  color: #f5f5f7;
  background-color: #0b0c14;
  line-height: 1.65;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

/* ---------- 3. Liquid Ambient Animated Blobs (Sonoma Style) ---------- */
.ambient-canvas {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  pointer-events: none;
}

.ambient-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.55;
  mix-blend-mode: screen;
  will-change: transform;
}

.blob-1 {
  width: 650px;
  height: 650px;
  background: radial-gradient(circle, rgba(220, 53, 69, 0.75) 0%, rgba(142, 28, 41, 0) 70%);
  top: -150px;
  left: -100px;
  animation: floatBlob1 24s ease-in-out infinite alternate;
}

.blob-2 {
  width: 750px;
  height: 750px;
  background: radial-gradient(circle, rgba(229, 185, 92, 0.6) 0%, rgba(184, 115, 30, 0) 70%);
  bottom: 10%;
  right: -150px;
  animation: floatBlob2 28s ease-in-out infinite alternate;
}

.blob-3 {
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, rgba(88, 86, 214, 0.5) 0%, rgba(30, 20, 90, 0) 70%);
  top: 40%;
  left: 30%;
  animation: floatBlob3 22s ease-in-out infinite alternate;
}

.blob-4 {
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, rgba(224, 68, 56, 0.45) 0%, rgba(200, 30, 30, 0) 70%);
  bottom: -100px;
  left: 10%;
  animation: floatBlob1 30s ease-in-out infinite alternate-reverse;
}

@keyframes floatBlob1 {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(120px, 80px) scale(1.12); }
  100% { transform: translate(-80px, 140px) scale(0.95); }
}

@keyframes floatBlob2 {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(-140px, -100px) scale(1.08); }
  100% { transform: translate(90px, -60px) scale(0.92); }
}

@keyframes floatBlob3 {
  0%   { transform: translate(0, 0) scale(0.9); }
  50%  { transform: translate(100px, -120px) scale(1.15); }
  100% { transform: translate(-110px, 70px) scale(1); }
}

/* Subtle Film Grain */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.035'/%3E%3C/svg%3E");
  pointer-events: none;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

/* ---------- 4. macOS Frosted Dock Navigation ---------- */
.glass-nav {
  position: fixed;
  top: 22px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 18px 8px 24px;
  background: var(--liquid-dock);
  backdrop-filter: blur(var(--blur-dock)) saturate(190%);
  -webkit-backdrop-filter: blur(var(--blur-dock)) saturate(190%);
  border: 1px solid var(--specular-border);
  border-radius: 40px;
  box-shadow:
    var(--specular-inner),
    0 24px 60px -10px rgba(0, 0, 0, 0.65),
    0 0 2px rgba(255, 255, 255, 0.2);
  transition: var(--spring);
  max-width: 94vw;
}

.glass-nav:hover {
  background: rgba(25, 25, 42, 0.82);
  border-color: var(--specular-border-strong);
  box-shadow:
    var(--specular-inner),
    0 30px 80px -10px rgba(0, 0, 0, 0.8),
    0 0 30px rgba(229, 185, 92, 0.25);
}

.glass-nav .nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.5px;
  color: #fff;
  white-space: nowrap;
  padding-right: 14px;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

.glass-nav .nav-brand .brand-logo-text {
  background: linear-gradient(135deg, #fff 0%, var(--accent-gold-light) 60%, var(--accent-gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.glass-nav .nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}

.glass-nav .nav-links a {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  font-size: 0.88rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.72);
  border-radius: 20px;
  transition: var(--spring);
  white-space: nowrap;
}

.glass-nav .nav-links a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-1px);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.25);
}

.glass-nav .nav-links a.active {
  color: #fff;
  background: linear-gradient(135deg, rgba(224, 68, 56, 0.65), rgba(180, 40, 30, 0.65));
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.4),
    0 4px 16px rgba(224, 68, 56, 0.4);
}

.glass-nav .nav-social {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: var(--spring);
  margin-left: 6px;
}

.glass-nav .nav-social img {
  width: 17px;
  height: 17px;
  filter: brightness(0) invert(1);
  transition: transform 0.3s ease;
}

.glass-nav .nav-social:hover {
  background: #1877f2;
  border-color: #1877f2;
  transform: scale(1.15) rotate(6deg);
  box-shadow: 0 4px 15px rgba(24, 119, 242, 0.5);
}

/* Mobile Toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  margin: 5px 0;
  border-radius: 2px;
  transition: var(--fast);
}

@media (max-width: 860px) {
  .glass-nav {
    top: 14px;
    padding: 10px 18px;
    flex-wrap: wrap;
    border-radius: 28px;
  }
  .nav-toggle { display: block; margin-left: auto; }
  .glass-nav .nav-brand { border-right: none; }
  .glass-nav .nav-links {
    display: none;
    flex-direction: column;
    width: 100%;
    padding-top: 14px;
    gap: 4px;
  }
  .glass-nav .nav-links.open { display: flex; }
  .glass-nav .nav-links a {
    width: 100%;
    justify-content: center;
    padding: 12px 16px;
  }
}

/* ---------- 6. Hero & Visual Stages ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 120px 24px 60px;
}

.hero-carousel {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-carousel .slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.8s cubic-bezier(0.4, 0, 0.2, 1);
  transform: scale(1.04);
}

.hero-carousel .slide.active {
  opacity: 1;
  transform: scale(1);
  transition: opacity 1.8s ease, transform 8s ease-out;
}

.hero-carousel .slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.42) saturate(1.25);
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    180deg,
    rgba(11, 12, 20, 0.35) 0%,
    rgba(11, 12, 20, 0.65) 55%,
    #0b0c14 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 860px;
}

/* Mac Glass Pill Badge */
.mac-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  border-radius: 50px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.35), 0 8px 24px rgba(0, 0, 0, 0.3);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-gold-light);
  margin-bottom: 24px;
}

.hero-content h1 {
  font-size: clamp(2.6rem, 6.5vw, 5.2rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.5px;
  margin-bottom: 22px;
  background: linear-gradient(135deg, #ffffff 15%, #fce2a6 50%, #e04438 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
}

.hero-content p {
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  color: rgba(255, 255, 255, 0.78);
  max-width: 640px;
  margin: 0 auto 36px;
  line-height: 1.8;
  font-weight: 400;
}

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

.hero-scroll-indicator {
  position: absolute;
  bottom: 35px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  width: 26px;
  height: 42px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 14px;
  display: flex;
  justify-content: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

.hero-scroll-indicator::after {
  content: '';
  width: 4px;
  height: 9px;
  margin-top: 8px;
  border-radius: 2px;
  background: #fff;
  animation: scrollDown 2.2s infinite;
}

@keyframes scrollDown {
  0%   { transform: translateY(0); opacity: 1; }
  60%  { transform: translateY(12px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}

/* ---------- 7. Buttons (macOS System Button Styles) ---------- */
.btn-mac-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 30px;
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, #e04438 0%, #a82318 100%);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50px;
  cursor: pointer;
  box-shadow:
    inset 0 1px 1.5px rgba(255, 255, 255, 0.45),
    0 10px 30px -5px rgba(224, 68, 56, 0.55);
  transition: var(--spring);
}

.btn-mac-primary:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow:
    inset 0 1px 1.5px rgba(255, 255, 255, 0.6),
    0 16px 40px -5px rgba(224, 68, 56, 0.7);
  color: #fff;
}

.btn-mac-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 30px;
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
  background: rgba(255, 255, 255, 0.09);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50px;
  cursor: pointer;
  box-shadow:
    inset 0 1px 1.5px rgba(255, 255, 255, 0.35),
    0 10px 30px -5px rgba(0, 0, 0, 0.4);
  transition: var(--spring);
}

.btn-mac-secondary:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.35);
  transform: translateY(-2px);
  color: #fff;
}

.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  font-size: 0.88rem;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50px;
  cursor: pointer;
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.4),
    0 8px 24px -4px rgba(37, 211, 102, 0.4);
  transition: var(--spring);
}

.btn-whatsapp:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.55),
    0 12px 30px -3px rgba(37, 211, 102, 0.6);
  color: #fff;
}

.btn-whatsapp img {
  width: 17px;
  height: 17px;
}

/* ---------- 8. Liquid Glass Containers & Cards ---------- */
.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 110px 0;
  position: relative;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  text-align: center;
  letter-spacing: -0.5px;
  margin-bottom: 14px;
  background: linear-gradient(135deg, #ffffff 30%, var(--accent-gold-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-subtitle {
  text-align: center;
  color: rgba(255, 255, 255, 0.65);
  font-size: 1.05rem;
  max-width: 580px;
  margin: 0 auto 30px;
}

.section-divider {
  width: 70px;
  height: 3px;
  margin: 0 auto 55px;
  background: linear-gradient(90deg, #e04438, var(--accent-gold));
  border-radius: 4px;
  box-shadow: 0 0 15px rgba(224, 68, 56, 0.5);
}

/* Base Liquid Glass Pane */
.liquid-glass {
  background: var(--liquid-card);
  backdrop-filter: blur(var(--blur-card)) saturate(180%);
  -webkit-backdrop-filter: blur(var(--blur-card)) saturate(180%);
  border: 1px solid var(--specular-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--specular-inner), var(--liquid-shadow);
  transition: var(--spring);
  position: relative;
  overflow: hidden;
}

/* Interactive Spotlight Sheen on hover */
.liquid-glass::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(
    600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
    rgba(255, 255, 255, 0.12),
    transparent 40%
  );
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 1;
}

.liquid-glass:hover::before {
  opacity: 1;
}

.liquid-glass:hover {
  transform: translateY(-6px);
  border-color: var(--specular-border-strong);
  box-shadow: var(--specular-inner), var(--liquid-shadow-hover);
}

/* ---------- 9. Grid & Product Displays ---------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 28px;
}

.product-card {
  display: flex;
  flex-direction: column;
  background: var(--liquid-card);
  backdrop-filter: blur(var(--blur-card)) saturate(180%);
  -webkit-backdrop-filter: blur(var(--blur-card)) saturate(180%);
  border: 1px solid var(--specular-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--specular-inner), var(--liquid-shadow);
  overflow: hidden;
  transition: var(--spring);
  cursor: pointer;
  position: relative;
}

.product-card:hover {
  transform: translateY(-8px) scale(1.015);
  border-color: var(--specular-border-strong);
  box-shadow:
    var(--specular-inner),
    var(--liquid-shadow-hover),
    0 0 40px rgba(224, 68, 56, 0.2);
}

.product-card .card-image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1;
  background: rgba(0, 0, 0, 0.35);
}

.product-card .card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.product-card .card-body {
  padding: 22px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  flex: 1;
  background: rgba(255, 255, 255, 0.02);
}

.product-card .card-body h4,
.product-card .card-body h5 {
  font-size: 1.15rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 14px;
  letter-spacing: 0.2px;
}

/* Category Large Cards */
.category-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/5;
  box-shadow: var(--specular-inner), var(--liquid-shadow);
  border: 1px solid var(--specular-border);
  transition: var(--spring);
}

.category-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
}

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

.category-card .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    transparent 35%,
    rgba(15, 15, 25, 0.5) 60%,
    rgba(15, 15, 25, 0.95) 100%
  );
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 30px;
  transition: var(--fast);
}

.category-card:hover .overlay {
  background: linear-gradient(
    180deg,
    transparent 20%,
    rgba(224, 68, 56, 0.4) 60%,
    rgba(140, 20, 20, 0.92) 100%
  );
}

.category-card .overlay h4 {
  font-size: 1.45rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
  text-shadow: 0 4px 15px rgba(0, 0, 0, 0.6);
}

.category-card .overlay span {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.7);
  display: flex;
  align-items: center;
  gap: 6px;
}

.category-card:hover {
  transform: translateY(-8px);
  border-color: var(--specular-border-strong);
  box-shadow: var(--specular-inner), var(--liquid-shadow-hover);
}

/* ---------- 10. Info Card (About Preview) ---------- */
.info-card {
  display: flex;
  gap: 48px;
  align-items: center;
  padding: 48px;
}

.info-card .info-image {
  flex: 0 0 45%;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.info-card .info-image img {
  width: 100%;
  border-radius: var(--radius-md);
  transition: transform 0.6s ease;
}

.info-card:hover .info-image img {
  transform: scale(1.04);
}

.info-card .info-text {
  flex: 1;
}

.info-card .info-text p {
  color: rgba(255, 255, 255, 0.75);
  font-size: 1.05rem;
  line-height: 1.9;
}

@media (max-width: 860px) {
  .info-card {
    flex-direction: column;
    padding: 30px;
    gap: 28px;
  }
  .info-card .info-image { flex: none; width: 100%; }
}

/* ---------- 11. Contact & Forms (macOS System Input Look) ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 40px;
}

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

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: var(--fast);
}

.contact-item:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateX(4px);
}

.contact-item .icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #e04438, #b02015);
  font-size: 1.1rem;
  color: #fff;
  box-shadow: 0 4px 15px rgba(224, 68, 56, 0.4);
  flex-shrink: 0;
}

.contact-item .detail {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.7);
}

.contact-item .detail strong {
  display: block;
  font-size: 1.05rem;
  color: #fff;
  margin-bottom: 2px;
}

.map-container {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--specular-border);
  box-shadow: var(--specular-inner), var(--liquid-shadow);
  margin-bottom: 45px;
}

.map-container iframe {
  width: 100%;
  height: 420px;
  border: 0;
  display: block;
  filter: contrast(1.05) saturate(0.9);
}

.glass-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 0.86rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 0.3px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 14px 18px;
  font-size: 0.98rem;
  color: #fff;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-sm);
  outline: none;
  font-family: inherit;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.35);
  transition: var(--fast);
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: #e04438;
  background: rgba(0, 0, 0, 0.4);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.4), 0 0 0 3px rgba(224, 68, 56, 0.3);
}

.form-group textarea {
  min-height: 130px;
  resize: vertical;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

@media (max-width: 540px) {
  .form-row { grid-template-columns: 1fr; }
}

.form-status {
  font-size: 0.92rem;
  color: var(--accent-gold-light);
  min-height: 1.5em;
  display: flex;
  align-items: center;
}

.hours-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: 50px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.2);
  margin-top: 24px;
}

.hours-badge .dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #2ecc71;
  box-shadow: 0 0 12px #2ecc71;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.5; transform: scale(0.85); }
}

.hours-badge span {
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--accent-gold-light);
}

/* ---------- 12. macOS Quick Look Modal ---------- */
.glass-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(8, 8, 14, 0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.glass-modal {
  max-width: 820px;
  width: 100%;
  max-height: 90vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: rgba(30, 30, 48, 0.85);
  backdrop-filter: blur(var(--blur-sheet)) saturate(200%);
  -webkit-backdrop-filter: blur(var(--blur-sheet)) saturate(200%);
  border: 1px solid var(--specular-border-strong);
  border-radius: var(--radius-xl);
  box-shadow:
    var(--specular-inner),
    0 35px 90px rgba(0, 0, 0, 0.85),
    0 0 50px rgba(229, 185, 92, 0.2);
  transform: scale(0.92) translateY(20px);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-modal-overlay.open .glass-modal {
  transform: scale(1) translateY(0);
}

.glass-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 26px;
  background: rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.glass-modal-header h5 {
  font-size: 1.15rem;
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.2px;
}

.glass-modal-close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 1.2rem;
  cursor: pointer;
  transition: var(--fast);
}

.glass-modal-close:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: rotate(90deg);
}

.glass-modal-body {
  padding: 24px;
  overflow-y: auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.glass-modal-body img {
  max-height: 70vh;
  object-fit: contain;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* ---------- 13. Sub-page Hero Mini ---------- */
.hero-mini {
  position: relative;
  height: 48vh;
  min-height: 340px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding-top: 60px;
}

.hero-mini img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.38) saturate(1.2);
}

.hero-mini::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11, 12, 20, 0.3) 0%, #0b0c14 100%);
}

.hero-mini .hero-content {
  position: relative;
  z-index: 2;
}

/* ---------- 14. macOS Style Footer ---------- */
.glass-footer {
  padding: 60px 0 35px;
  background: rgba(10, 10, 18, 0.85);
  backdrop-filter: blur(var(--blur-dock));
  -webkit-backdrop-filter: blur(var(--blur-dock));
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
}

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

.footer-brand {
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-links {
  display: flex;
  gap: 24px;
  list-style: none;
}

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

.footer-links a:hover {
  color: #fff;
}

.footer-copy {
  width: 100%;
  text-align: center;
  margin-top: 35px;
  padding-top: 25px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.4);
}

/* ---------- 15. Smooth Entrance Animations ---------- */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.stagger-children > * {
  opacity: 0;
  transform: translateY(25px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.stagger-children.visible > *:nth-child(1) { transition-delay: 0.05s; }
.stagger-children.visible > *:nth-child(2) { transition-delay: 0.1s; }
.stagger-children.visible > *:nth-child(3) { transition-delay: 0.15s; }
.stagger-children.visible > *:nth-child(4) { transition-delay: 0.2s; }
.stagger-children.visible > *:nth-child(5) { transition-delay: 0.25s; }
.stagger-children.visible > *:nth-child(6) { transition-delay: 0.3s; }
.stagger-children.visible > * { opacity: 1; transform: translateY(0); }

/* ---------- 16. Scroll to Top Floating Pill ---------- */
.scroll-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 990;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(30, 30, 48, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
  opacity: 0;
  transform: translateY(20px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  transition: var(--spring);
}

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

.scroll-top:hover {
  background: #e04438;
  border-color: #e04438;
  transform: translateY(-3px) scale(1.08);
  box-shadow: 0 12px 35px rgba(224, 68, 56, 0.5);
}

/* ============================================================
   17. 4D 幸运万字号码机 (Lucky 4D Number Machine)
   ============================================================ */
.lucky-4d-container {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
}

.lucky-4d-card {
  position: relative;
  border-radius: var(--radius-xl);
  background: radial-gradient(circle at 50% 0%, rgba(45, 30, 20, 0.72) 0%, rgba(20, 20, 32, 0.88) 100%);
  border: 1px solid rgba(229, 185, 92, 0.35);
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.8), inset 0 1px 2px rgba(251, 227, 157, 0.35), 0 0 40px rgba(229, 185, 92, 0.12);
  padding: 42px 32px;
  text-align: center;
  overflow: hidden;
  backdrop-filter: blur(var(--blur-sheet));
  -webkit-backdrop-filter: blur(var(--blur-sheet));
}

.lucky-4d-card::before {
  content: "";
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 500px;
  height: 250px;
  background: radial-gradient(ellipse, rgba(229, 185, 92, 0.22) 0%, transparent 70%);
  pointer-events: none;
  filter: blur(40px);
}

.lucky-4d-header {
  margin-bottom: 28px;
  position: relative;
  z-index: 2;
}

.lucky-4d-header .mac-badge {
  background: rgba(229, 185, 92, 0.15);
  border-color: rgba(229, 185, 92, 0.4);
  color: var(--accent-gold-light);
  margin-bottom: 12px;
  padding: 6px 16px;
  font-weight: 500;
}

.lucky-4d-title {
  font-size: 2.2rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
  background: linear-gradient(135deg, #ffffff 40%, var(--accent-gold-light) 80%, var(--accent-gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.lucky-4d-desc {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.95rem;
  max-width: 580px;
  margin: 0 auto;
}

/* 4D Slots Display */
.lucky-4d-slots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin: 35px auto;
  max-width: 650px;
  position: relative;
  z-index: 2;
}

.slot-box {
  flex: 1;
  max-width: 120px;
  min-width: 65px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.slot-window {
  width: 100%;
  aspect-ratio: 1 / 1.25;
  background: linear-gradient(180deg, rgba(15, 15, 22, 0.95) 0%, rgba(28, 22, 18, 0.92) 50%, rgba(12, 12, 18, 0.98) 100%);
  border: 2px solid rgba(229, 185, 92, 0.45);
  border-radius: var(--radius-md);
  box-shadow: inset 0 4px 12px rgba(0, 0, 0, 0.8), inset 0 -4px 10px rgba(0, 0, 0, 0.6), 0 12px 28px rgba(0, 0, 0, 0.5), 0 0 15px rgba(229, 185, 92, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  user-select: none;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

/* Decorative glass reflection cut line */
.slot-window::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0.03) 45%, transparent 50%);
  pointer-events: none;
  border-radius: inherit;
}

.slot-digit {
  font-size: 3.4rem;
  font-weight: 800;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", Impact, "Segoe UI Black", sans-serif;
  color: var(--accent-gold-light);
  text-shadow: 0 0 20px rgba(229, 185, 92, 0.75), 0 4px 10px rgba(0, 0, 0, 0.8);
  line-height: 1;
  transition: transform 0.15s cubic-bezier(0.18, 0.89, 0.32, 1.28);
}

.slot-window.spinning .slot-digit {
  filter: blur(1.5px);
  color: #fff;
}

.slot-window.stopped {
  border-color: var(--accent-gold);
  box-shadow: inset 0 2px 6px rgba(229, 185, 92, 0.4), 0 0 25px rgba(229, 185, 92, 0.35);
  animation: slotSnap 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes slotSnap {
  0% { transform: scale(0.92); }
  50% { transform: scale(1.08); }
  100% { transform: scale(1); }
}

.slot-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
}

/* Blessing / Interpretation Banner */
.lucky-4d-blessing {
  margin: 10px auto 28px;
  padding: 14px 22px;
  background: rgba(224, 68, 56, 0.14);
  border: 1px solid rgba(224, 68, 56, 0.3);
  border-radius: var(--radius-sm);
  color: #ffcccc;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-width: 600px;
  transition: all 0.4s ease;
  position: relative;
  z-index: 2;
}

.lucky-4d-blessing i {
  color: var(--accent-gold);
  font-size: 1.1rem;
}

.lucky-4d-blessing.highlight {
  background: rgba(229, 185, 92, 0.18);
  border-color: var(--accent-gold);
  color: var(--accent-gold-light);
  transform: scale(1.02);
  box-shadow: 0 0 20px rgba(229, 185, 92, 0.25);
}

/* Action Controls */
.lucky-4d-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 14px;
  position: relative;
  z-index: 2;
}

.btn-spin-4d {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 36px;
  border-radius: 9999px;
  font-size: 1.05rem;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, #e04438 0%, #b82318 60%, #8c120a 100%);
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 10px 25px rgba(224, 68, 56, 0.45), inset 0 1px 2px rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: var(--spring);
}

.btn-spin-4d:hover:not(:disabled) {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 15px 35px rgba(224, 68, 56, 0.65), 0 0 25px rgba(229, 185, 92, 0.4);
  background: linear-gradient(135deg, #eb5347 0%, #c9281d 60%, #9e150d 100%);
}

.btn-spin-4d:active:not(:disabled) {
  transform: translateY(1px) scale(0.98);
}

.btn-spin-4d:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  filter: grayscale(0.2);
}

.btn-spin-4d i {
  color: var(--accent-gold);
  font-size: 1.15rem;
  transition: transform 0.3s ease;
}

.btn-spin-4d:hover:not(:disabled) i {
  transform: rotate(15deg) scale(1.15);
}

.btn-4d-tool {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 9999px;
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  cursor: pointer;
  transition: var(--fast);
}

.btn-4d-tool:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(229, 185, 92, 0.4);
  color: #fff;
  transform: translateY(-2px);
}

.btn-4d-tool:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}

.btn-4d-tool.whatsapp-share:hover:not(:disabled) {
  background: rgba(37, 211, 102, 0.2);
  border-color: rgba(37, 211, 102, 0.5);
  color: #25d366;
}

/* 4D Recent History */
.lucky-4d-history {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  z-index: 2;
}

.history-title {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.history-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.history-chip {
  padding: 5px 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(229, 185, 92, 0.25);
  border-radius: 9999px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent-gold-light);
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.history-chip:hover {
  background: rgba(229, 185, 92, 0.18);
  border-color: var(--accent-gold);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(229, 185, 92, 0.2);
}

.lucky-4d-disclaimer {
  margin-top: 22px;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.4);
  line-height: 1.6;
}

/* Toast Message */
.toast-4d {
  position: fixed;
  bottom: 85px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: rgba(20, 20, 32, 0.95);
  border: 1px solid var(--accent-gold);
  color: var(--accent-gold-light);
  padding: 10px 24px;
  border-radius: 9999px;
  font-size: 0.9rem;
  font-weight: 500;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 20px rgba(229, 185, 92, 0.3);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  align-items: center;
  gap: 8px;
}

.toast-4d.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Confetti Sparkles */
.lucky-confetti-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 10;
}

/* Responsive adjustment */
@media (max-width: 640px) {
  .lucky-4d-card {
    padding: 30px 18px;
  }
  .lucky-4d-title {
    font-size: 1.7rem;
  }
  .lucky-4d-slots {
    gap: 8px;
    margin: 24px auto;
  }
  .slot-window {
    aspect-ratio: 1 / 1.35;
    border-radius: var(--radius-sm);
  }
  .slot-digit {
    font-size: 2.3rem;
  }
  .btn-spin-4d {
    width: 100%;
    padding: 14px 20px;
    font-size: 1rem;
  }
  .btn-4d-tool {
    flex: 1;
    justify-content: center;
    padding: 11px 16px;
    font-size: 0.85rem;
  }
}
