/* 全局样式 - 高级灰主题配色 */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@300;400;500;700&display=swap');

:root {
  --color-charcoal: #2c2c2c;
  --color-deep-gray: #3a3a3a;
  --color-cement: #6b6b6b;
  --color-oat: #d4c5b9;
  --color-champagne: #c9b999;
  --color-emerald: #2d4a3e;
  --color-navy: #1a2a3a;
  --color-platinum: #e5e4e2;
}

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

body {
  font-family: 'Noto Sans SC', 'Helvetica Neue', Arial, sans-serif;
  color: var(--color-charcoal);
  background-color: #fafafa;
  line-height: 1.8;
  overflow-x: hidden;
}

.hero-section {
  position: relative;
  height: 100vh;
  overflow: hidden;
}

.hero-carousel {
  position: absolute;
  inset: 0;
  transition: opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-carousel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.3) 100%);
  z-index: 1;
}

.hero-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 2;
  color: #fff;
  text-align: center;
}

.logo-symbol {
  width: 80px;
  height: 80px;
  margin-bottom: 2rem;
  opacity: 0.95;
}

.brand-tagline {
  font-size: 2.5rem;
  font-weight: 300;
  letter-spacing: 0.1em;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
  animation: fadeSlide 1.5s ease-out;
}

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

.gallery-item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

.gallery-item:hover img {
  filter: brightness(0.85);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(0,0,0,0.7) 100%);
  opacity: 0;
  transition: opacity 0.6s ease;
  display: flex;
  align-items: flex-end;
  padding: 2rem;
}

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

.gallery-overlay-text {
  color: #fff;
  font-size: 0.95rem;
  line-height: 1.6;
  letter-spacing: 0.03em;
}

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.95);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.4s ease;
  cursor: pointer;
}

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

.lightbox img {
  max-width: 90%;
  max-height: 90vh;
  object-fit: contain;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.article-preview {
  cursor: pointer;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.article-preview:hover {
  transform: translateY(-8px);
}

.article-expanded {
  animation: expandIn 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.scroll-reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.scroll-reveal.active {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 768px) {
  .brand-tagline {
    font-size: 1.8rem;
  }
  
  .logo-symbol {
    width: 60px;
    height: 60px;
  }
  
  .gallery-overlay {
    padding: 1rem;
  }
  
  .gallery-overlay-text {
    font-size: 0.85rem;
  }
}

@media (max-width: 480px) {
  .brand-tagline {
    font-size: 1.4rem;
    letter-spacing: 0.05em;
  }
  
  .lightbox img {
    max-width: 95%;
    max-height: 80vh;
  }
}

.loading-spinner {
  display: inline-block;
  width: 40px;
  height: 40px;
  border: 3px solid rgba(0,0,0,0.1);
  border-top-color: var(--color-charcoal);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}