/* 通用UI组件样式 - 第二层B */

/* 头部导航组件 */
.site-header {
  background: #ffffff;
  background-image: linear-gradient(rgba(26, 31, 54, 0.85), rgba(26, 31, 54, 0.85));
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  will-change: transform;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: 70px;
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 20px;
}

.site-logo {
  width: 50px;
  height: 50px;
  background: none;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: transform 0.3s ease;
  overflow: hidden;
}

.site-logo img {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.site-logo:hover {
  transform: scale(1.05);
}

.site-logo:hover img {
  transform: scale(1.1);
}

.site-brand {
  font-size: 22px;
  font-weight: 700;
  color: #ffffff;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.site-brand .tagline {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 400;
  letter-spacing: 0.02em;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 25px;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 20px;
}

.header-nav a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 20px;
  transition: all 0.3s ease;
  position: relative;
  font-size: 15px;
}

.header-nav a:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
}

/* 语言选择器组件 */
.language-selector {
  position: relative;
}

.language-btn {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.9);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.3s ease;
}

.language-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
  color: #ffffff;
}

.language-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 8px;
  background: rgba(26, 31, 54, 0.95);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  padding: 8px;
  min-width: 150px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
}

.language-selector.active .language-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.language-option {
  display: block;
  padding: 10px 12px;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  border-radius: 8px;
  font-size: 14px;
  transition: all 0.2s ease;
}

.language-option:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.language-option.active {
  background: rgba(255, 107, 53, 0.2);
  color: #ff6b35;
  font-weight: 600;
}

/* 底部组件 */
.site-footer {
  background: rgba(26, 31, 54, 0.85);
  backdrop-filter: blur(20px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: auto;
  width: 100%;
}

.footer-container {
  width: 100%;
  margin: 0 auto;
  padding: 40px 20px 20px;
}

.footer-content {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  margin-bottom: 30px;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-links li {
  margin: 0;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: #ffffff;
}

.footer-bottom {
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  padding-top: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.footer-copyright {
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
}


/* 主题卡片组件 (首页) */
.theme-card {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  text-decoration: none;
  color: inherit;
  display: block;
  position: relative;
}

.theme-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(78, 205, 196, 0.1) 0%, rgba(168, 164, 255, 0.1) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

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

.theme-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* 主题预览区 */
.theme-preview {
  height: 200px;
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.theme-preview::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.1);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.theme-card:hover .theme-preview::before {
  opacity: 1;
}

/* 播放按钮 */
.play-button {
  position: relative;
  background: linear-gradient(135deg, #ff6b35 0%, #ff8f65 100%);
  color: #ffffff;
  padding: 8px 20px;
  border-radius: 20px;
  font-weight: 500;
  font-size: 14px;
  z-index: 1;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 2px 8px rgba(255, 107, 53, 0.3), /* 外阴影 */
             inset 0 1px 2px rgba(255, 255, 255, 0.3); /* 内阴影 */
  border: 1px solid rgba(255, 255, 255, 0.2);
  letter-spacing: 0.3px;
}

.theme-card:hover .play-button {
  background: linear-gradient(135deg, #ff5722 0%, #ff6b35 100%);
  transform: scale(1.03);
  box-shadow: 0 4px 12px rgba(255, 107, 53, 0.4), /* 外阴影 */
             inset 0 1px 3px rgba(255, 255, 255, 0.4); /* 内阴影 */
}

/* 主题信息区 */
.theme-info {
  padding: 25px;
  text-align: left;
  flex: 1;
}

.theme-info h3 {
  font-size: 26px;
  font-weight: 600;
  margin-bottom: 12px;
  color: #ffffff;
  letter-spacing: -0.01em;
}

.theme-info p {
  opacity: 0.8;
  line-height: 1.6;
  margin-bottom: 15px;
}

/* 主题状态 */
.theme-stats {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  opacity: 0.7;
}

/* 主题标签 */
.theme-tags {
  margin-top: auto;
  padding-top: 15px;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.tag {
  background: rgba(255, 255, 255, 0.2);
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 12px;
}

/* 状态标识 */
.coming-soon {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(255,255,255,0.9);
  color: #333;
  padding: 5px 15px;
  border-radius: 15px;
  font-size: 12px;
}

.featured-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: #ff6b6b;
  color: #fff;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: bold;
  z-index: 1;
}

/* 分类过滤器 */
.category-filter {
  text-align: center;
  margin: 20px auto;
  padding: 15px 20px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  backdrop-filter: blur(20px);
  max-width: 900px; /* 与卡片网格同宽 */
  box-sizing: border-box;
}

.category-filter span {
  margin-right: 15px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
}

.category-btn {
  margin: 5px;
  padding: 10px 20px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.8);
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  font-size: 14px;
  font-weight: 500;
}

.category-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.4);
  color: #ffffff;
  transform: translateY(-2px);
}

.category-btn.active {
  background: rgba(102, 126, 234, 0.8);
  border-color: rgba(102, 126, 234, 1);
  color: #ffffff;
}

/* 快速导航按钮 */
.more-themes .quick-nav-btn {
  padding: 10px 20px;
  background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
  color: white;
  text-decoration: none;
  border-radius: 25px;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 6px;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(243, 156, 18, 0.3);
}

.more-themes .quick-nav-btn:hover {
  background: linear-gradient(135deg, #e67e22 0%, #f39c12 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(243, 156, 18, 0.4);
}

.more-themes .quick-nav-btn.secondary {
  background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
  box-shadow: 0 4px 15px rgba(243, 156, 18, 0.3);
}

.more-themes .quick-nav-btn.secondary:hover {
  background: linear-gradient(135deg, #e67e22 0%, #f39c12 100%);
  box-shadow: 0 8px 25px rgba(243, 156, 18, 0.4);
}

/* 通用标题样式 */
.section-title {
  color: #f39c12;
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 20px;
  text-align: center;
}

/* 响应式调整 */
@media (max-width: 768px) {
  .site-header {
    height: 60px;
  }

  .header-container {
    padding: 0 15px;
  }

  .site-logo {
    width: 45px;
    height: 45px;
    font-size: 18px;
  }

  .site-brand {
    font-size: 20px;
  }

  .site-brand .tagline {
    display: none;
  }

  .header-right {
    gap: 15px;
  }

  .header-nav {
    gap: 10px;
  }

  .header-nav a {
    padding: 6px 12px;
    font-size: 14px;
  }

  .language-btn {
    padding: 6px 12px;
    font-size: 13px;
  }

  .footer-container {
    padding: 30px 15px 15px;
  }

  .footer-content {
    flex-direction: column;
    gap: 20px;
  }

  .footer-links {
    gap: 16px;
  }

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

  .category-filter {
    padding: 20px 15px;
    margin: 20px 0;
  }

  .category-filter span {
    display: none;
  }

  .category-btn {
    font-size: 12px;
    padding: 6px 12px;
    margin: 3px;
  }

  .theme-preview {
    height: 150px;
  }
}



/* 主题卡片状态样式 */
.theme-card.coming-soon .play-button,
.theme-card.in-development .play-button,
.theme-card.planned .play-button {
  background: rgba(150, 150, 150, 0.8);
  color: #fff;
  pointer-events: none;
  opacity: 0.9;
}

.theme-card.featured::before {
  content: '🔥';
  position: absolute;
  top: 5px;
  right: 5px;
  font-size: 12px;
}

/* 强调框组件 - 用于重要提示 */
.emphasis-box {
  background: rgba(255, 255, 255, 0.1);
  border-left: 4px solid rgba(255, 255, 255, 0.3);
  padding: 20px 25px;
  margin: 20px 0;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.emphasis-box,
.emphasis-box p,
.emphasis-box strong {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
}

.emphasis-box p {
  margin-bottom: 0;
}

.emphasis-box strong {
  font-weight: 700;
}

/* 反馈CTA按钮样式 */
.feedback-cta {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
  color: #ffffff !important;
  padding: 8px 16px !important;
  border-radius: 20px !important;
  font-weight: 600 !important;
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3) !important;
  transition: all 0.3s ease !important;
  animation: pulse 2s infinite;
}

.feedback-cta:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4) !important;
  background: linear-gradient(135deg, #764ba2 0%, #667eea 100%) !important;
}

@keyframes pulse {
  0%, 100% {
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
  }
  50% {
    box-shadow: 0 2px 16px rgba(102, 126, 234, 0.5);
  }
}