/* 按钮组件 */
.btn-primary {
  display: inline-flex;
  align-items: center;
  padding: 1rem 2rem;
  background: linear-gradient(45deg, var(--color-primary), var(--color-primary-light));
  color: var(--color-background);
  text-decoration: none;
  border-radius: 2rem;
  font-weight: 600;
  font-size: 1.125rem;
  transition: all 300ms;
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
  border: none;
  cursor: pointer;
}

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

.btn-secondary {
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 500;
  font-size: 1.125rem;
  padding: 1rem 0;
  border-bottom: 2px solid transparent;
  transition: all 300ms;
}

.btn-secondary:hover {
  border-bottom-color: var(--color-primary);
}

/* 头部导航组件 */
.header {
  position: absolute;
  width: 100%;
  z-index: 50;
  background: transparent;
}

.header-inner {
  width: 100%;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  color: white;
  text-decoration: none;
}

.logo h1 {
  font-size: 1.5rem;
  font-weight: bold;
}

.nav {
  display: none;
}

.nav a {
  margin-left: 2rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  transition: color 300ms;
}

.nav a:hover {
  color: white;
}

.nav a.active {
  color: #d4af37ab;
}

.mobile-menu-button {
  display: block;
  color: white;
  background: none;
  border: none;
  cursor: pointer;
}

.mobile-menu {
  position: absolute;
  width: 100%;
  background-color: #121212;
  transition: all 300ms ease-in-out;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
}

.mobile-menu.open {
  max-height: 24rem;
  opacity: 1;
  padding: 1rem 0;
}

.mobile-menu a {
  display: block;
  padding: 0.75rem 1.5rem;
  font-size: 1.125rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color 300ms;
}

.mobile-menu a:hover {
  color: white;
}

.mobile-menu a.active {
  color: var(--color-primary);
}

@media (max-width: 767px) {
  .header-inner {
    padding: 0 1rem;
  }
}

@media (min-width: 768px) {
  .nav {
    display: flex;
  }
  
  .mobile-menu-button {
    display: none;
  }
}

/* 幻灯片组件 */
.slideshow {
  height: 100vh;
  position: relative;
  overflow: hidden;
  background-color: black;
}

.slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transition: opacity 700ms;
  cursor: pointer;
}

.slide-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.slide-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.3);
}

.slide-content {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 1000ms;
}

.slide-quote {
  max-width: 85%;
  margin: 0 auto;
  text-align: center;
}

.slide-quote p {
  font-size: 1.5rem;
  line-height: 2.2;
  color: white;
  font-weight: 300;
  letter-spacing: 0.05em;
  margin-bottom: 1.5rem;
}

.slide-quote .divider {
  width: 12rem;
  height: 1px;
  background-color: rgba(255, 255, 255, 0.4);
  margin: 1.5rem auto;
}

.slide-quote .source {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 300;
  letter-spacing: 0.05em;
}

.slide-author {
  position: absolute;
  bottom: 2rem;
  left: 2rem;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 300;
  letter-spacing: 0.05em;
}

@media (min-width: 768px) {
  .slide-quote p {
    font-size: 2rem;
  }
}

/* 动画类 */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.animate-fadeIn {
  animation: fadeIn 1s ease-in-out;
}

@keyframes float {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-10px) scale(1.05); }
}

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

/* 卡片组件 */
.card {
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  transition: all 400ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
  cursor: pointer;
  background-color: #1a1a1a;
}

.card:hover {
  transform: translateY(-12px) scale(1.02);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
}

.card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 600ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

.card .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, 
    rgba(0, 0, 0, 0.9) 0%, 
    rgba(0, 0, 0, 0.6) 40%, 
    rgba(0, 0, 0, 0.3) 70%, 
    transparent 100%);
  opacity: 0.85;
  transition: opacity 400ms;
}

.card:hover .overlay {
  opacity: 1;
}

.card .info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem;
  transform: translateY(8px);
  transition: transform 400ms;
}

.card:hover .info {
  transform: translateY(0);
}

.card .title {
  font-size: 1.125rem;
  font-weight: 600;
  color: white;
  margin-bottom: 0.5rem;
  line-height: 1.3;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.card .category {
  font-size: 0.875rem;
  color: var(--color-primary);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.card .action {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: all 400ms;
}

.card:hover .action {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.card .action button {
  padding: 0.75rem 1.5rem;
  background: linear-gradient(45deg, var(--color-primary), var(--color-primary-light));
  color: var(--color-background);
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 2rem;
  border: none;
  cursor: pointer;
  transform: scale(0.9);
  transition: all 300ms;
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.card:hover .action button {
  transform: scale(1);
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
}

/* 页脚组件 */
.footer {
  background: linear-gradient(135deg, #111111 0%, var(--color-background) 100%);
  padding: 4rem 0 2rem;
  border-top: 1px solid rgba(212, 175, 55, 0.2);
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 4rem;
  margin-bottom: 3rem;
}

.footer-brand {
  text-align: left;
}

.footer-logo {
  font-family: 'Ma Shan Zheng', cursive;
  font-size: 2rem;
  background: linear-gradient(45deg, var(--color-primary), var(--color-primary-light));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 0.5rem;
}

.footer-slogan {
  font-size: 1.125rem;
  color: var(--color-primary);
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.footer-description {
  color: var(--color-text-secondary);
  font-size: 0.875rem;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.footer-section h4 {
  color: var(--color-text);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.footer-section a {
  display: block;
  color: var(--color-text-muted);
  text-decoration: none;
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
  transition: color 300ms;
}

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

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
  color: var(--color-text-muted);
  font-size: 0.875rem;
}

@media (max-width: 768px) {
  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }
  
  .footer-links {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .footer {
    padding: 3rem 0 1.5rem;
  }
}

/* 共享卡片组件 */
.shared-card {
  background: 
    linear-gradient(145deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.01) 100%),
    radial-gradient(circle at 20% 20%, rgba(212, 175, 55, 0.08) 0%, transparent 70%);
  border-radius: 1.5rem;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(15px) saturate(1.2);
  transition: all 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
  cursor: pointer;
  position: relative;
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.shared-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.05) 0%,
    transparent 50%,
    rgba(212, 175, 55, 0.03) 100%
  );
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
  z-index: 1;
}

.shared-card:hover {
  background: 
    linear-gradient(145deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.04) 100%),
    radial-gradient(circle at 20% 20%, rgba(212, 175, 55, 0.15) 0%, transparent 70%);
  border-color: rgba(212, 175, 55, 0.4);
  transform: translateY(-12px) scale(1.02);
  backdrop-filter: blur(20px) saturate(1.4);
  box-shadow: 
    0 32px 64px rgba(0, 0, 0, 0.3),
    0 0 0 1px rgba(212, 175, 55, 0.2),
    0 0 80px rgba(212, 175, 55, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.shared-card:hover::before {
  opacity: 1;
}

.shared-card-image {
  width: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}

.shared-card:hover .shared-card-image {
  transform: scale(1.05);
}

.shared-card-content {
  padding: 1.8rem;
  position: relative;
  z-index: 2;
}

.shared-card-tag {
  display: inline-block;
  background: linear-gradient(45deg, rgba(212, 175, 55, 0.2), rgba(240, 230, 140, 0.1));
  color: var(--color-primary);
  padding: 0.25rem 0.75rem;
  border-radius: 1rem;
  font-size: 0.75rem;
  font-weight: 500;
  margin-bottom: 1rem;
}

.shared-card-title {
  font-size: 1.3rem;
  font-weight: 600;
  color: white;
  margin-bottom: 0.6rem;
  line-height: 1.4;
}

.shared-card-description {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 1.2rem;
}

.shared-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.shared-card-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.shared-author-avatar {
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(212, 175, 55, 0.3);
}

.shared-author-info {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.6);
}

.shared-author-name {
  color: rgba(255, 255, 255, 0.85);
  font-weight: 500;
}

.shared-card-stats {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.6);
}

.shared-stat-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

/* 图片容器样式 */
.shared-image-container {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
}

.shared-image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.shared-card:hover .shared-image-overlay {
  opacity: 1;
}

/* 网格布局 */
.shared-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 2rem;
  align-items: start;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .shared-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .shared-card-content {
    padding: 1.5rem;
  }
  
  .shared-card-title {
    font-size: 1.2rem;
  }
}

/* Hero区域组件 */
.page-hero {
  padding: 4rem 0 3rem 0;
  margin-bottom: 3rem;
  border-radius: 0 0 2rem 2rem;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(0,0,0,0.95) 0%, rgba(26,26,26,0.9) 100%);
}

.page-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
}

.hero-title {
  font-size: 2.8rem;
  font-weight: 700;
  margin-bottom: 1rem;
  background: linear-gradient(45deg, var(--color-primary), var(--color-primary-light));
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-family: 'Ma Shan Zheng', cursive;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 2rem;
  font-family: 'Spectral', serif;
  font-style: italic;
}

/* Hero变体 - Collection页面的高级效果 */
.page-hero--collection {
  background: 
    radial-gradient(circle at 30% 20%, rgba(212, 175, 55, 0.15) 0%, transparent 60%),
    radial-gradient(circle at 70% 80%, rgba(240, 230, 140, 0.08) 0%, transparent 60%),
    linear-gradient(135deg, rgba(0, 0, 0, 0.85) 0%, rgba(26, 26, 26, 0.7) 100%);
  backdrop-filter: blur(15px) saturate(1.2);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0 0 3rem 3rem;
  box-shadow: 
    0 20px 40px -12px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.page-hero--collection::before {
  opacity: 0.6;
  animation: liquidFlow 25s ease-in-out infinite;
}

@keyframes liquidFlow {
  0%, 100% { 
    transform: rotate(0deg) scale(1);
    opacity: 0.6;
  }
  33% { 
    transform: rotate(2deg) scale(1.01);
    opacity: 0.4;
  }
  66% { 
    transform: rotate(-1deg) scale(0.99);
    opacity: 0.7;
  }
}

/* Hero变体 - Movie页面 */
.page-hero--movie::before {
  background: radial-gradient(circle at 30% 20%, rgba(212, 175, 55, 0.12) 0%, transparent 70%),
              radial-gradient(circle at 70% 80%, rgba(240, 230, 140, 0.06) 0%, transparent 60%),
              linear-gradient(45deg, transparent 30%, rgba(212, 175, 55, 0.03) 50%, transparent 70%);
}

/* Hero变体 - Life页面 */
.page-hero--life::before {
  background: radial-gradient(circle at 25% 25%, rgba(212, 175, 55, 0.1) 0%, transparent 70%),
              radial-gradient(circle at 75% 75%, rgba(240, 230, 140, 0.05) 0%, transparent 60%),
              linear-gradient(45deg, transparent 40%, rgba(212, 175, 55, 0.02) 50%, transparent 60%);
}

/* Hero响应式设计 */
@media (max-width: 768px) {
  .page-hero {
    padding: 3rem 0 2rem 0;
    margin-bottom: 2rem;
  }
  
  .hero-title {
    font-size: 2.2rem;
  }
  
  .page-hero--collection .hero-title {
    font-size: 2rem;
  }
}