/* ---------- 首页独特布局 ---------- */
.teahouse-homepage {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

/* 作者介绍 */
.author-section {
  display: flex;
  gap: 2.5rem;
  margin-bottom: 3rem;
  align-items: center;
}

.artistic-portrait {
  flex: 0 0 300px;
}

.elegant-frame {
  background: linear-gradient(135deg, #f9f5f0 0%, #f0e6d6 100%);
  padding: 25px 25px 50px 25px;
  border-radius: 12px;
  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.8),
    0 1px 2px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.06);
  transform: rotate(-1.5deg);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.elegant-frame:hover {
  transform: rotate(0deg) translateY(-8px);
  box-shadow:
    0 30px 60px rgba(0, 0, 0, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 2px 4px rgba(0, 0, 0, 0.1);
}

.art-photo {
  width: 100%;
  height: auto;
  border-radius: 6px;
  filter: contrast(1.08) brightness(1.03) saturate(1.1);
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.author-intro {
  flex: 1;
  padding-top: 1rem;
}

.teahouse-concept {
  line-height: 1.7;
}

.concept-lead {
  font-size: 1.15rem;
  color: var(--text-primary);
  margin: 0 0 0.75rem 0;
  padding-left: 1.2rem;
  font-weight: 450;
}

.quote-mark {
  font-size: 1.3rem;
  color: var(--primary-color);
  opacity: 0.6;
  font-weight: 300;
}

.concept-line {
  margin: 0.4rem 0;
  color: var(--text-secondary);
  padding-left: 1.2rem;
  font-size: 1.02rem;
}

.concept-line:last-of-type {
  display: inline;
  margin-right: 0.3rem;
}

.concept-line:last-of-type + .quote-mark {
  display: inline;
  margin-left: 0;
}

.teahouse-name {
  color: var(--primary-color);
  font-weight: 650;
  position: relative;
  padding: 0 2px;
}

.teahouse-name::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
  opacity: 0.3;
}

/* 图标导航 */
.icon-navigation {
  margin-bottom: 3rem;
  border-radius: 12px;
  position: relative;
  overflow: visible;
}

.nav-header {
  text-align: center;
  margin-bottom: 3rem;
}

.nav-header h2 {
  font-size: 1.6rem;
  color: var(--text-primary);
  margin: 0 0 0.5rem 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  font-weight: 650;
}

.nav-subtitle {
  color: var(--text-secondary);
  font-size: 0.95rem;
  opacity: 0.8;
}

.nav-icons-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 900px;
  margin: 0 auto;
}

.nav-card {
  background: white;
  border-radius: 12px;
  padding: 1.5rem 1.25rem;
  text-decoration: none;
  color: inherit;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
}

.nav-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
  border-color: rgba(var(--primary-rgb), 0.15);
}

.card-icon {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.1) 0%, rgba(var(--primary-rgb), 0.05) 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  transition: all 0.3s ease;
}

.nav-card:hover .card-icon {
  transform: scale(1.1);
  background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.15) 0%, rgba(var(--primary-rgb), 0.08) 100%);
}

.card-content {
  flex: 1;
}

.card-title {
  font-size: 1.1rem;
  color: var(--text-primary);
  margin: 0 0 0.35rem 0;
  font-weight: 600;
}

.card-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.4;
  margin: 0;
  opacity: 0.8;
}

/* 摄影故事区 */
.photography-section {
  margin-bottom: 3rem;
  background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.02), transparent 30%);
  border-radius: 12px;
  padding: 2.5rem;
}

.photo-header {
  margin-bottom: 2rem;
}

.photo-header h2 {
  font-size: 1.3rem;
  color: var(--text-primary);
  margin: 0 0 0.25rem 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.photo-subtitle {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.photo-story {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
}

.story-timeline {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.timeline-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.timeline-year {
  flex-shrink: 0;
  width: 50px;
  height: 50px;
  background: var(--primary-color);
  color: white;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.9rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.timeline-content {
  flex: 1;
}

.timeline-content p {
  margin: 0.2rem 0;
  color: var(--text-primary);
  font-size: 0.95rem;
}

.timeline-content .timeline-detail {
  color: var(--text-secondary);
  font-size: 0.85rem;
}

.quote {
  font-style: italic;
  color: var(--primary-color) !important;
  font-weight: 500;
}

.invitation-card {
  background: var(--card-bg);
  border-radius: 8px;
  padding: 1.5rem;
  border: 1px solid var(--border-color);
}

.invitation-card h3 {
  font-size: 1.1rem;
  margin: 0 0 0.75rem 0;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.invitation-card p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin: 0.5rem 0;
  line-height: 1.5;
}

.invitation-features {
  margin: 1rem 0;
  padding-left: 1.2rem;
  font-size: 0.9rem;
}

.invitation-features li {
  margin: 0.3rem 0;
  color: var(--text-secondary);
}

.invitation-card p.invitation-final {
  font-style: italic;
  color: var(--text-primary);
  font-size: 0.95rem;
  margin-top: 1rem;
  border-left: 2px solid var(--primary-color);
  padding-left: 0.75rem;
}

/* 横幅 */
.film-banner {
  margin-top: 3rem;
  border-radius: 12px;
  overflow: hidden;
  max-width: 100%;
  width: 100%;
  background: var(--card-bg);
  padding: 0;
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.2),
    0 6px 20px rgba(0, 0, 0, 0.15),
    0 3px 10px rgba(0, 0, 0, 0.1);
  position: relative;
  z-index: 10;
}

.banner-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  object-position: center;
  border-radius: 0;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.15),
    inset 0 -1px 0 rgba(0, 0, 0, 0.05),
    0 2px 6px rgba(0, 0, 0, 0.1);
}

/* 首页响应式 */
@media (max-width: 992px) {
  .nav-icons-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.75rem;
  }
}

@media (max-width: 1024px) {
  .photo-story {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .teahouse-homepage {
    padding: 1.5rem;
  }
  .author-section {
    flex-direction: column;
    text-align: center;
    gap: 2rem;
    align-items: center;
  }
  .icon-navigation {
    padding: 2rem 1.5rem;
    margin-bottom: 4rem;
  }
  .nav-header h2 {
    font-size: 1.4rem;
  }
  .nav-icons-container {
    grid-template-columns: 1fr;
    gap: 1.25rem;
    max-width: 400px;
  }
  .nav-card {
    padding: 1.5rem;
  }
  .artistic-portrait {
    flex: 0 0 260px;
  }
  .elegant-frame {
    padding: 20px 20px 40px 20px;
  }
  .photography-section {
    padding: 1.5rem;
  }
}

@media (max-width: 480px) {
  .teahouse-homepage {
    padding: 1.25rem;
  }
  .icon-navigation {
    padding: 1.75rem 1.25rem;
    margin-bottom: 3.5rem;
  }
  .nav-header h2 {
    font-size: 1.3rem;
    gap: 0.5rem;
  }
  .nav-subtitle {
    font-size: 0.9rem;
  }
  .nav-card {
    padding: 1.25rem;
    gap: 1rem;
  }
  .card-icon {
    width: 50px;
    height: 50px;
    font-size: 1.6rem;
  }
  .card-title {
    font-size: 1.05rem;
  }
  .card-desc {
    font-size: 0.82rem;
  }
  .artistic-portrait {
    flex: 0 0 220px;
  }
  .elegant-frame {
    padding: 18px 18px 36px 18px;
    transform: rotate(-0.5deg);
  }
  .elegant-frame:hover {
    transform: rotate(0deg) translateY(-5px);
  }
}

/* 深色模式下的首页组件 */
@media (prefers-color-scheme: dark) {
  .icon-navigation {
    background: linear-gradient(135deg, rgba(30, 30, 30, 0.9) 0%, rgba(40, 40, 40, 0.95) 100%);
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  }
  .nav-card {
    background: rgba(50, 50, 50, 0.6);
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  }
  .nav-card:hover {
    border-color: rgba(var(--primary-rgb), 0.3);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.25);
  }
  .card-icon {
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.15) 0%, rgba(var(--primary-rgb), 0.08) 100%);
  }
  .nav-card:hover .card-icon {
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.2) 0%, rgba(var(--primary-rgb), 0.12) 100%);
  }
  .elegant-frame {
    background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 1px 2px rgba(0, 0, 0, 0.2);
  }
  .art-photo {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  }
  .film-banner {
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.4), 0 8px 30px rgba(0, 0, 0, 0.3), 0 4px 15px rgba(0, 0, 0, 0.25);
  }
  .banner-image {
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), inset 0 -1px 0 rgba(0, 0, 0, 0.2), 0 2px 8px rgba(0, 0, 0, 0.3);
  }
}

