/* ===========================
   ChinaQipao.com - Stylesheet
   中国旗袍文化展示网站
=========================== */

:root {
  --primary-red: #8B0000;
  --primary-gold: #C9A227;
  --primary-dark: #2C1810;
  --primary-cream: #FAF3E7;
  --primary-ink: #1A1A1A;
  --accent-jade: #2E7D5B;
  --accent-rose: #B23A48;
  --text-dark: #2C1810;
  --text-light: #FAF3E7;
  --text-muted: #6B5D54;
  --bg-cream: #FAF3E7;
  --bg-white: #FFFFFF;
  --bg-dark: #1A1A1A;
  --shadow-soft: 0 4px 20px rgba(44, 24, 16, 0.08);
  --shadow-medium: 0 8px 30px rgba(44, 24, 16, 0.12);
  --shadow-strong: 0 12px 40px rgba(44, 24, 16, 0.18);
  --transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --font-serif: 'Noto Serif SC', 'Playfair Display', Georgia, serif;
  --font-sans: 'Noto Sans SC', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--font-sans);
  color: var(--text-dark);
  background-color: var(--bg-cream);
  line-height: 1.7;
  overflow-x: hidden;
}

/* ===== Navigation ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(250, 243, 231, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(201, 162, 39, 0.2);
  transition: var(--transition);
}

.navbar.scrolled {
  background: rgba(250, 243, 231, 0.98);
  box-shadow: var(--shadow-soft);
}

.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--primary-red);
}

.nav-logo-text {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.nav-logo-sub {
  font-size: 0.7rem;
  color: var(--primary-gold);
  letter-spacing: 2px;
  text-transform: uppercase;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-link {
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
  transition: var(--transition);
  padding: 0.3rem 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-gold);
  transition: width 0.3s ease;
}

.nav-link:hover {
  color: var(--primary-red);
}

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

.lang-toggle {
  background: var(--primary-red);
  color: var(--text-light);
  border: none;
  padding: 0.5rem 1.2rem;
  border-radius: 25px;
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  transition: var(--transition);
  letter-spacing: 0.5px;
}

.lang-toggle:hover {
  background: var(--primary-gold);
  transform: translateY(-1px);
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-dark);
}

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

.hero-bg {
  position: absolute;
  inset: 0;
  background: url('../assets/images/hero-qipao.jpg') center/cover no-repeat;
  transform: scale(1.05);
  animation: heroZoom 20s ease-in-out infinite alternate;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(26, 26, 26, 0.6) 0%, rgba(139, 0, 0, 0.4) 50%, rgba(44, 24, 16, 0.6) 100%);
}

@keyframes heroZoom {
  from { transform: scale(1.05); }
  to { transform: scale(1.15); }
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--text-light);
  padding: 0 2rem;
  max-width: 900px;
  animation: fadeInUp 1.5s ease;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-eyebrow {
  font-size: 0.9rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--primary-gold);
  margin-bottom: 1.5rem;
  font-weight: 500;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.3rem);
  font-weight: 300;
  max-width: 700px;
  margin: 0 auto 2.5rem;
  opacity: 0.95;
  line-height: 1.8;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--primary-gold);
  color: var(--text-dark);
  padding: 1rem 2.5rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: var(--transition);
  box-shadow: 0 8px 25px rgba(201, 162, 39, 0.4);
}

.hero-cta:hover {
  background: var(--text-light);
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(201, 162, 39, 0.6);
}

.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  color: var(--text-light);
  font-size: 0.8rem;
  letter-spacing: 2px;
  opacity: 0.7;
  animation: bounce 2s infinite;
}

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

/* ===== Section General ===== */
.section {
  padding: 6rem 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-eyebrow {
  font-size: 0.85rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--primary-gold);
  margin-bottom: 1rem;
  font-weight: 600;
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--text-dark);
  margin-bottom: 1rem;
  font-weight: 700;
}

.section-divider {
  width: 80px;
  height: 3px;
  background: var(--primary-gold);
  margin: 0 auto 1.5rem;
  border-radius: 2px;
}

.section-description {
  max-width: 700px;
  margin: 0 auto;
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* ===== History Section ===== */
.history {
  background: var(--bg-white);
}

.history-timeline {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
  padding: 2rem 0;
}

.history-timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(to bottom, var(--primary-gold), var(--primary-red));
  transform: translateX(-50%);
}

.timeline-item {
  position: relative;
  width: 50%;
  padding: 1.5rem 2.5rem;
  margin-bottom: 1rem;
}

.timeline-item:nth-child(odd) {
  left: 0;
  text-align: right;
}

.timeline-item:nth-child(even) {
  left: 50%;
  text-align: left;
}

.timeline-dot {
  position: absolute;
  top: 2rem;
  width: 18px;
  height: 18px;
  background: var(--primary-gold);
  border: 4px solid var(--bg-white);
  border-radius: 50%;
  box-shadow: 0 0 0 3px var(--primary-gold);
  z-index: 2;
}

.timeline-item:nth-child(odd) .timeline-dot {
  right: -9px;
}

.timeline-item:nth-child(even) .timeline-dot {
  left: -9px;
}

.timeline-era {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  color: var(--primary-red);
  font-weight: 700;
  margin-bottom: 0.3rem;
}

.timeline-year {
  font-size: 0.85rem;
  color: var(--primary-gold);
  font-weight: 600;
  margin-bottom: 0.5rem;
  letter-spacing: 1px;
}

.timeline-text {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ===== Craftsmanship Section ===== */
.craft {
  background: var(--bg-cream);
}

.craft-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.craft-card {
  background: var(--bg-white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: var(--transition);
}

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

.craft-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.craft-body {
  padding: 1.8rem;
}

.craft-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
  display: block;
}

.craft-title {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  color: var(--text-dark);
  margin-bottom: 0.8rem;
  font-weight: 700;
}

.craft-text {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ===== Gallery Section ===== */
.gallery {
  background: var(--bg-white);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

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

.gallery-item:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-strong);
}

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

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

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(26, 26, 26, 0.85) 0%, transparent 50%);
  display: flex;
  align-items: flex-end;
  padding: 1.5rem;
  opacity: 0;
  transition: opacity 0.4s ease;
}

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

.gallery-caption {
  color: var(--text-light);
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 600;
}

/* ===== Modern Section ===== */
.modern {
  background: var(--bg-dark);
  color: var(--text-light);
}

.modern .section-title,
.modern .section-eyebrow {
  color: var(--text-light);
}

.modern .section-eyebrow {
  color: var(--primary-gold);
}

.modern .section-description {
  color: rgba(250, 243, 231, 0.7);
}

.modern-feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  margin-top: 3rem;
}

.modern-image {
  width: 100%;
  border-radius: 12px;
  box-shadow: var(--shadow-strong);
}

.modern-text h3 {
  font-family: var(--font-serif);
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: var(--primary-gold);
}

.modern-text p {
  color: rgba(250, 243, 231, 0.8);
  margin-bottom: 1.2rem;
  line-height: 1.8;
}

.modern-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(201, 162, 39, 0.3);
}

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

.stat-number {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  color: var(--primary-gold);
  font-weight: 700;
}

.stat-label {
  font-size: 0.85rem;
  color: rgba(250, 243, 231, 0.6);
  margin-top: 0.3rem;
}

/* ===== Culture Section ===== */
.culture {
  background: var(--bg-cream);
}

.culture-feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  margin-top: 3rem;
}

.culture-image {
  width: 100%;
  border-radius: 12px;
  box-shadow: var(--shadow-medium);
}

.culture-content h3 {
  font-family: var(--font-serif);
  font-size: 2rem;
  color: var(--text-dark);
  margin-bottom: 1.5rem;
}

.culture-content p {
  color: var(--text-muted);
  margin-bottom: 1.2rem;
  line-height: 1.8;
}

.culture-list {
  list-style: none;
  margin-top: 1.5rem;
}

.culture-list li {
  padding: 0.6rem 0;
  padding-left: 1.8rem;
  position: relative;
  color: var(--text-dark);
}

.culture-list li::before {
  content: '✦';
  position: absolute;
  left: 0;
  color: var(--primary-gold);
}

/* ===== Footer ===== */
.footer {
  background: var(--bg-dark);
  color: var(--text-light);
  padding: 4rem 2rem 2rem;
}

.footer-container {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
}

.footer-brand h3 {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  color: var(--primary-gold);
  margin-bottom: 1rem;
}

.footer-brand p {
  color: rgba(250, 243, 231, 0.6);
  font-size: 0.95rem;
  line-height: 1.7;
}

.footer-col h4 {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--text-light);
  margin-bottom: 1.2rem;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 0.7rem;
}

.footer-col a {
  color: rgba(250, 243, 231, 0.6);
  text-decoration: none;
  font-size: 0.9rem;
  transition: var(--transition);
}

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

.footer-bottom {
  max-width: 1400px;
  margin: 3rem auto 0;
  padding-top: 2rem;
  border-top: 1px solid rgba(201, 162, 39, 0.2);
  text-align: center;
  color: rgba(250, 243, 231, 0.5);
  font-size: 0.85rem;
}

/* ===== Animations on Scroll ===== */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* ===== Responsive ===== */
@media (max-width: 968px) {
  .modern-feature,
  .culture-feature {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-container {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-cream);
    flex-direction: column;
    padding: 2rem;
    gap: 1.5rem;
    box-shadow: var(--shadow-medium);
  }

  .nav-menu.active {
    display: flex;
  }

  .mobile-toggle {
    display: block;
  }

  .section {
    padding: 4rem 1.5rem;
  }

  .history-timeline::before {
    left: 30px;
  }

  .timeline-item {
    width: 100%;
    padding-left: 4rem;
    text-align: left !important;
  }

  .timeline-item:nth-child(odd),
  .timeline-item:nth-child(even) {
    left: 0;
    text-align: left;
  }

  .timeline-item:nth-child(odd) .timeline-dot,
  .timeline-item:nth-child(even) .timeline-dot {
    left: 21px;
    right: auto;
  }

  .footer-container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .modern-stats {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}
