/* ============================================================
   ZEN — Ocean Lifestyle Brand
   Premium Landing Page Stylesheet
   ============================================================ */

/* ---- RESET & BASE ---- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #071827;
  --secondary: #0E5DAA;
  --accent: #6DD5FA;
  --text: #F8FAFC;
  --gray: #A0AEC0;
  --bg: #020A12;
  --glass: rgba(7, 24, 39, 0.65);
  --glass-border: rgba(109, 213, 250, 0.12);
  --max-width: 1440px;
  --content-width: 1200px;
  --section-pad: clamp(80px, 10vw, 160px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Inter', 'Noto Sans SC', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 400;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  line-height: 1.6;
}

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

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

.container {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 48px);
}

.section {
  padding: var(--section-pad) 0;
}

/* ---- LOADING SCREEN ---- */
.loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.8s var(--ease), visibility 0.8s;
}

.loader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-content {
  text-align: center;
}

.loader-logo {
  font-size: clamp(48px, 10vw, 96px);
  font-weight: 300;
  letter-spacing: 0.3em;
  color: var(--text);
  opacity: 0;
  transform: translateY(20px);
  animation: loaderFadeIn 1s var(--ease) 0.2s forwards;
}

.loader-tagline {
  font-size: clamp(14px, 2vw, 18px);
  font-weight: 300;
  letter-spacing: 0.15em;
  color: var(--gray);
  margin-top: 16px;
  opacity: 0;
  animation: loaderFadeIn 1s var(--ease) 0.6s forwards;
}

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

/* ---- NAVIGATION ---- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 20px 0;
  transition: all 0.5s var(--ease);
}

.nav.scrolled {
  padding: 12px 0;
  background: var(--glass);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--glass-border);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 48px);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-size: 28px;
  font-weight: 300;
  letter-spacing: 0.25em;
  color: var(--text);
  transition: opacity 0.3s;
}

.nav-logo:hover {
  opacity: 0.7;
}

.nav-links {
  display: flex;
  gap: clamp(24px, 3vw, 48px);
}

.nav-links a {
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.05em;
  color: var(--text);
  opacity: 0.8;
  transition: opacity 0.3s;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.4s var(--ease);
}

.nav-links a:hover {
  opacity: 1;
}

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

/* Mobile Toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 32px;
  height: 24px;
  position: relative;
  z-index: 1001;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 1px;
  background: var(--text);
  position: absolute;
  left: 0;
  transition: all 0.3s var(--ease);
}

.nav-toggle span:first-child { top: 6px; }
.nav-toggle span:last-child { bottom: 6px; }

.nav-toggle.active span:first-child {
  top: 50%;
  transform: rotate(45deg);
}

.nav-toggle.active span:last-child {
  bottom: 50%;
  transform: rotate(-45deg);
}

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

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

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.05);
  transition: transform 8s var(--ease);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(2, 10, 18, 0.3) 0%,
    rgba(2, 10, 18, 0.1) 40%,
    rgba(2, 10, 18, 0.6) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 900px;
  padding: 0 24px;
}

.hero-title {
  font-size: clamp(32px, 5.5vw, 72px);
  font-weight: 300;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin-bottom: 48px;
}

.hero-line {
  display: block;
  opacity: 0;
  transform: translateY(40px);
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  opacity: 0;
  transform: translateY(20px);
}

.hero-scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  opacity: 0;
}

.hero-scroll span {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gray);
}

.hero-scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  animation: scrollLine 2s var(--ease) infinite;
}

@keyframes scrollLine {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 36px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.05em;
  border-radius: 0;
  border: none;
  cursor: pointer;
  transition: all 0.4s var(--ease);
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: linear-gradient(135deg, var(--secondary), var(--accent));
  color: var(--primary);
}

.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--accent), var(--secondary));
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}

.btn-primary:hover::before {
  opacity: 1;
}

.btn-primary span,
.btn-primary {
  position: relative;
  z-index: 1;
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(248, 250, 252, 0.3);
}

.btn-outline:hover {
  background: rgba(248, 250, 252, 0.08);
  border-color: rgba(248, 250, 252, 0.6);
}

/* ---- SECTION LABELS ---- */
.section-label {
  display: inline-block;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}

.section-title {
  font-size: clamp(32px, 4.5vw, 64px);
  font-weight: 300;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin-bottom: 24px;
}

.section-subtitle {
  font-size: clamp(16px, 1.8vw, 20px);
  font-weight: 300;
  color: var(--gray);
  max-width: 560px;
  line-height: 1.7;
}

.section-header {
  text-align: center;
  margin-bottom: clamp(48px, 6vw, 80px);
}

.section-header .section-subtitle {
  margin: 0 auto;
}

/* ---- BRAND SECTION ---- */
.brand-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(48px, 6vw, 96px);
  align-items: center;
}

.brand-desc {
  font-size: clamp(15px, 1.6vw, 18px);
  font-weight: 300;
  color: var(--gray);
  line-height: 1.8;
  margin-bottom: 20px;
}

.brand-desc:last-child {
  margin-bottom: 0;
}

.brand-image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/5;
}

.brand-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease);
}

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

/* ---- PRODUCTS SECTION ---- */
.products {
  background: linear-gradient(180deg, var(--bg), var(--primary), var(--bg));
}

.products-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(48px, 6vw, 96px);
  align-items: center;
}

.products-image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3/2;
}

.products-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease);
}

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

.products-desc {
  font-size: clamp(15px, 1.6vw, 18px);
  font-weight: 300;
  color: var(--gray);
  line-height: 1.8;
  margin-bottom: 20px;
}

.products-content .btn {
  margin-top: 16px;
}

/* ---- OCEAN ARTIST SECTION ---- */
.artists-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(24px, 3vw, 40px);
}

.artist-card {
  background: var(--primary);
  border: 1px solid var(--glass-border);
  overflow: hidden;
  transition: transform 0.6s var(--ease), box-shadow 0.6s var(--ease);
}

.artist-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.4);
}

.artist-image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1;
}

.artist-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s var(--ease);
  filter: grayscale(30%);
}

.artist-card:hover .artist-image img {
  transform: scale(1.08);
  filter: grayscale(0%);
}

.artist-info {
  padding: clamp(20px, 2.5vw, 32px);
}

.artist-meta {
  display: flex;
  gap: 16px;
  margin-bottom: 12px;
  font-size: 12px;
  color: var(--gray);
}

.artist-meta i {
  margin-right: 4px;
  color: var(--accent);
}

.artist-name {
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 500;
  margin-bottom: 8px;
}

.artist-species {
  font-size: 14px;
  font-weight: 300;
  color: var(--gray);
  margin-bottom: 16px;
}

.artist-link {
  font-size: 13px;
  font-weight: 500;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: gap 0.3s var(--ease);
}

.artist-link:hover {
  gap: 12px;
}

/* Artist Placeholder Card */
.artist-card--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 420px;
  border-style: dashed;
  border-color: rgba(109, 213, 250, 0.2);
  background: rgba(7, 24, 39, 0.4);
}

.artist-placeholder-content {
  text-align: center;
  padding: 40px 32px;
}

.artist-placeholder-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px dashed var(--glass-border);
  border-radius: 50%;
  font-size: 28px;
  color: var(--accent);
  opacity: 0.6;
  animation: pulseIcon 3s ease-in-out infinite;
}

@keyframes pulseIcon {
  0%, 100% { opacity: 0.4; transform: scale(1); }
  50% { opacity: 0.7; transform: scale(1.05); }
}

.artist-placeholder-title {
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 400;
  margin-bottom: 8px;
  color: var(--text);
}

.artist-placeholder-desc {
  font-size: 14px;
  font-weight: 300;
  color: var(--gray);
  margin-bottom: 24px;
}

.artist-award-detail {
  font-size: 12px;
  font-weight: 400;
  color: var(--gray);
  line-height: 1.8;
  margin-bottom: 16px;
}

.artist-award-detail i {
  color: #f0c040;
  margin-right: 4px;
  font-size: 11px;
}

.btn-sm {
  padding: 10px 24px;
  font-size: 13px;
}

/* ---- ZEN BLUE SECTION ---- */
.zen-blue {
  background: linear-gradient(180deg, var(--bg), rgba(14, 93, 170, 0.08), var(--bg));
}

.zen-blue-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(48px, 6vw, 96px);
  align-items: center;
}

.zen-blue-image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/5;
}

.zen-blue-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease);
}

.zen-blue-image:hover img {
  transform: scale(1.05);
}

.zen-blue-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin: 40px 0;
  padding: 32px 0;
  border-top: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-size: clamp(36px, 4vw, 56px);
  font-weight: 300;
  color: var(--accent);
  display: inline;
}

.stat-number.stat-tbd {
  font-size: clamp(28px, 3vw, 40px);
  opacity: 0.5;
}

.stat-unit {
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 300;
  color: var(--accent);
  margin-left: 2px;
}

.stat-label {
  display: block;
  font-size: 13px;
  font-weight: 400;
  color: var(--gray);
  margin-top: 8px;
}

.zen-blue-coming {
  margin-bottom: 32px;
}

.coming-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(109, 213, 250, 0.1);
  padding: 4px 12px;
  margin-bottom: 12px;
}

.zen-blue-coming h3 {
  font-size: clamp(20px, 2.5vw, 28px);
  font-weight: 400;
}

/* ---- PARTNER SECTION ---- */
.partner-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 3vw, 40px);
  max-width: 900px;
  margin: 0 auto;
}

.partner-card {
  background: var(--primary);
  border: 1px solid var(--glass-border);
  padding: clamp(32px, 4vw, 56px);
  text-align: center;
  transition: transform 0.6s var(--ease), box-shadow 0.6s var(--ease);
}

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

.partner-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--glass-border);
  border-radius: 50%;
  font-size: 24px;
  color: var(--accent);
}

.partner-title {
  font-size: clamp(20px, 2.5vw, 28px);
  font-weight: 400;
  margin-bottom: 16px;
}

.partner-desc {
  font-size: 15px;
  font-weight: 300;
  color: var(--gray);
  line-height: 1.7;
  margin-bottom: 28px;
}

/* ---- GALLERY SECTION ---- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 240px;
  gap: 12px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

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

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

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(2, 10, 18, 0.7), transparent);
  display: flex;
  align-items: flex-end;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-overlay span {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.05em;
}

.gallery-tall {
  grid-row: span 2;
}

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

/* ---- CONTACT SECTION ---- */
.contact {
  background: linear-gradient(180deg, var(--bg), var(--primary));
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(48px, 6vw, 96px);
  align-items: center;
}

.contact-desc {
  font-size: clamp(15px, 1.6vw, 18px);
  font-weight: 300;
  color: var(--gray);
  line-height: 1.8;
}

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

.contact-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--glass-border);
  font-size: 16px;
  font-weight: 400;
  color: var(--text);
  transition: all 0.3s var(--ease);
}

.contact-item:hover {
  color: var(--accent);
  padding-left: 8px;
}

.contact-item i {
  width: 24px;
  text-align: center;
  font-size: 18px;
  color: var(--accent);
}

.contact-item--coming {
  opacity: 0.4;
  cursor: default;
}

.contact-item--coming:hover {
  opacity: 0.5;
  padding-left: 0;
  color: var(--text);
}

/* ---- FOOTER ---- */
.footer {
  padding: clamp(60px, 8vw, 120px) 0 clamp(40px, 4vw, 60px);
  border-top: 1px solid var(--glass-border);
}

.footer-inner {
  text-align: center;
}

.footer-logo {
  font-size: 36px;
  font-weight: 300;
  letter-spacing: 0.3em;
  display: block;
  margin-bottom: 24px;
}

.footer-tagline {
  font-size: clamp(14px, 1.6vw, 18px);
  font-weight: 300;
  color: var(--gray);
  line-height: 1.8;
  margin-bottom: 40px;
}

.footer-copy {
  font-size: 13px;
  color: var(--gray);
  opacity: 0.5;
}

/* ---- FADE-UP ANIMATION CLASS ---- */
.fade-up {
  opacity: 0;
  transform: translateY(40px);
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
  transition-delay: var(--delay, 0s);
}

/* ---- RESPONSIVE ---- */
@media (max-width: 1024px) {
  .brand-grid,
  .products-grid,
  .zen-blue-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

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

  .gallery-grid {
    grid-auto-rows: 200px;
  }

  .products-grid {
    direction: ltr;
  }

  .products-image {
    order: -1;
  }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    inset: 0;
    background: rgba(2, 10, 18, 0.98);
    backdrop-filter: blur(20px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 32px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s var(--ease);
  }

  .nav-links.open {
    opacity: 1;
    visibility: visible;
  }

  .nav-links a {
    font-size: 24px;
    font-weight: 300;
    letter-spacing: 0.1em;
  }

  .nav-toggle {
    display: block;
  }

  .artists-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
  }

  .partner-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
  }

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

  .gallery-wide {
    grid-column: span 1;
  }

  .zen-blue-stats {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 480px) {
  .gallery-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 240px;
  }

  .gallery-tall {
    grid-row: span 1;
  }

  .zen-blue-stats {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* ---- SMOOTH SCROLLBAR ---- */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg);
}

::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--secondary);
}

/* ---- SELECTION ---- */
::selection {
  background: var(--secondary);
  color: var(--text);
}

/* ============================================================
   降级保护：动画库加载失败时直接显示内容（防止白屏/卡加载）
   ============================================================ */
.no-gsap .hero-line,
.no-gsap .hero-buttons,
.no-gsap .hero-scroll {
  opacity: 1 !important;
  transform: none !important;
}
.no-gsap .loader {
  display: none !important;
}
