/* ============================================
   MEIYING CLUB - Global Stylesheet V1.0
   Design System: Black + Gold Luxury
   ============================================ */

/* --- CSS Variables --- */
:root {
  --color-primary: #000000;
  --color-primary-light: #0A0A0A;
  --color-gold: #D4AF37;
  --color-gold-light: #F5E6B3;
  --color-gold-dim: rgba(212, 175, 55, 0.15);
  --color-bg: #0A0A0A;
  --color-bg-card: rgba(255, 255, 255, 0.03);
  --color-text: #FFFFFF;
  --color-text-secondary: #999999;
  --color-text-muted: #666666;
  --color-border: rgba(255, 255, 255, 0.08);
  --color-border-gold: rgba(212, 175, 55, 0.3);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;
  --font-cn: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Source Han Sans SC', 'Noto Sans SC', sans-serif;
  --font-en: -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --transition-fast: 0.2s ease;
  --transition-base: 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --transition-slow: 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --shadow-gold: 0 0 30px rgba(212, 175, 55, 0.15);
  --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.4);
}

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

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

body {
  font-family: var(--font-cn);
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-en);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.02em;
}

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

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

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

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

/* --- Utility Classes --- */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* --- Typography --- */
.en-title {
  font-family: var(--font-en);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.cn-title {
  font-family: var(--font-cn);
  font-weight: 700;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 36px;
  border-radius: var(--radius-full);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--color-primary);
  color: var(--color-gold);
  border: 1px solid var(--color-gold);
}

.btn-primary:hover {
  background: var(--color-gold);
  color: var(--color-primary);
  box-shadow: var(--shadow-gold);
}

.btn-secondary {
  background: transparent;
  color: var(--color-text);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
  border-color: var(--color-gold);
  color: var(--color-gold);
  box-shadow: var(--shadow-gold);
}

.btn-gold {
  background: linear-gradient(135deg, var(--color-gold), #E8C84A);
  color: var(--color-primary);
  border: none;
  font-weight: 600;
}

.btn-gold:hover {
  box-shadow: 0 0 40px rgba(212, 175, 55, 0.4);
  transform: translateY(-2px);
}

/* --- Section Common --- */
.section {
  padding: 120px 0;
  position: relative;
}

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

.section-tag {
  display: inline-block;
  font-family: var(--font-en);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: 16px;
  padding: 6px 18px;
  border: 1px solid var(--color-border-gold);
  border-radius: var(--radius-full);
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--color-text);
  margin-bottom: 20px;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--color-text-secondary);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.8;
}

/* --- Gold Divider --- */
.gold-divider {
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--color-gold), transparent);
  margin: 24px auto;
}

/* --- CTA Content --- */
.cta-content {
  text-align: center;
}

/* --- Glass Card --- */
.glass-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: all var(--transition-base);
}

.glass-card:hover {
  border-color: var(--color-border-gold);
  box-shadow: var(--shadow-gold);
  transform: translateY(-4px);
}

/* ============================================
   NAVIGATION
   ============================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 20px 0;
  transition: all var(--transition-base);
}

.navbar.scrolled {
  background: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 14px 0;
  border-bottom: 1px solid var(--color-border);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
}

.nav-logo-img {
  height: 48px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
  /* 原图透明底、黑色文字 + 彩色镜头
     白色 drop-shadow 描边让黑色字在深色导航上清晰可见，彩色部分保留 */
  filter: drop-shadow(0 0 2px rgba(255,255,255,0.9)) drop-shadow(0 0 4px rgba(255,255,255,0.6));
  transition: filter var(--transition-fast), transform var(--transition-fast);
}

.nav-logo:hover .nav-logo-img {
  filter: drop-shadow(0 0 3px rgba(212,175,55,0.8)) drop-shadow(0 0 8px rgba(212,175,55,0.4));
  transform: scale(1.03);
}

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

.nav-links a {
  padding: 8px 18px;
  font-size: 0.9rem;
  color: var(--color-text-secondary);
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
  position: relative;
}

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

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 2px;
  background: var(--color-gold);
  border-radius: 1px;
}

.nav-cta {
  padding: 10px 28px;
  background: transparent;
  border: 1px solid var(--color-gold);
  color: var(--color-gold);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 500;
  transition: all var(--transition-base);
  margin-left: 12px;
}

.nav-cta:hover {
  background: var(--color-gold);
  color: var(--color-primary);
}

/* Mobile Nav Toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  z-index: 1001;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--color-text);
  border-radius: 1px;
  transition: all var(--transition-base);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--color-primary);
  border-top: 1px solid var(--color-border);
  padding: 80px 0 40px;
}

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

.footer-brand .footer-logo {
  font-family: var(--font-en);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-mark {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--color-gold);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 800;
  font-family: var(--font-en);
  flex-shrink: 0;
}

.footer-brand p {
  color: var(--color-text-secondary);
  font-size: 0.9rem;
  line-height: 1.8;
  margin-bottom: 24px;
}

.footer-social {
  display: flex;
  gap: 12px;
}

.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-secondary);
  font-size: 0.85rem;
  transition: all var(--transition-fast);
}

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

.footer-title {
  font-family: var(--font-cn);
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 24px;
  position: relative;
  padding-bottom: 12px;
}

.footer-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background: var(--color-gold);
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  color: var(--color-text-secondary);
  font-size: 0.9rem;
  transition: color var(--transition-fast);
}

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

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
  color: var(--color-text-secondary);
  font-size: 0.9rem;
}

.footer-contact-item .icon {
  color: var(--color-gold);
  flex-shrink: 0;
  margin-top: 3px;
}

.footer-bottom {
  border-top: 1px solid var(--color-border);
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--color-text-muted);
  font-size: 0.85rem;
}

.footer-bottom-links {
  display: flex;
  gap: 24px;
}

.footer-bottom-links a {
  color: var(--color-text-muted);
  font-size: 0.85rem;
  transition: color var(--transition-fast);
}

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

/* ============================================
   PAGE HEADER (Sub Pages)
   ============================================ */
.page-hero {
  padding: 180px 0 100px;
  background: var(--color-primary);
  position: relative;
  overflow: hidden;
  text-align: center;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(ellipse at 50% 0%, rgba(212, 175, 55, 0.08) 0%, transparent 60%);
  pointer-events: none;
}

.page-hero .en-title {
  font-size: 0.8rem;
  color: var(--color-gold);
  letter-spacing: 0.3em;
  margin-bottom: 16px;
}

.page-hero h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  margin-bottom: 20px;
}

.page-hero .breadcrumb {
  display: flex;
  justify-content: center;
  gap: 8px;
  color: var(--color-text-secondary);
  font-size: 0.9rem;
  margin-top: 24px;
}

.page-hero .breadcrumb a {
  color: var(--color-text-secondary);
}

.page-hero .breadcrumb a:hover {
  color: var(--color-gold);
}

.page-hero .breadcrumb .sep {
  color: var(--color-text-muted);
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes goldGlow {
  0%, 100% { box-shadow: 0 0 20px rgba(212, 175, 55, 0.15); }
  50% { box-shadow: 0 0 40px rgba(212, 175, 55, 0.3); }
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.animate-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.animate-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
}

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

  .section-header {
    margin-bottom: 50px;
  }

  .nav-links {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(10, 10, 10, 0.98);
    backdrop-filter: blur(30px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 12px;
    z-index: 999;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    font-size: 1.2rem;
    padding: 12px 24px;
  }

  .nav-cta {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }

  .page-hero {
    padding: 150px 0 80px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .btn {
    padding: 12px 24px;
    font-size: 0.9rem;
  }
}
