/* ==================== 西部书画网站 - 页面样式 ==================== */

/* ==================== 首页 ==================== */

/* Banner 轮播 */
.banner-section {
  margin-bottom: 32px;
}

.banner-wrapper {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 16/5;
  background: var(--bg-gray);
}

.banner-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.6s ease;
}

.banner-slide.active {
  opacity: 1;
}

.banner-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.banner-slide .banner-text {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px 24px;
  background: linear-gradient(transparent, rgba(0,0,0,0.7));
  color: #fff;
}

.banner-slide .banner-text h3 {
  font-size: 1.4rem;
  margin-bottom: 4px;
}

.banner-dots {
  position: absolute;
  bottom: 12px;
  right: 16px;
  display: flex;
  gap: 6px;
}

.banner-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  cursor: pointer;
  transition: var(--transition);
}

.banner-dot.active {
  background: #fff;
  width: 24px;
  border-radius: 4px;
}

/* 分类导航 */
.category-nav {
  display: flex;
  gap: 16px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.category-nav-item {
  flex: 1;
  min-width: 100px;
  background: var(--bg-white);
  border-radius: var(--radius);
  padding: 20px 12px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: var(--transition);
  cursor: pointer;
}

.category-nav-item:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px);
}

.category-nav-item .cat-icon {
  font-size: 2rem;
  margin-bottom: 8px;
}

.category-nav-item .cat-name {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
}

/* 区块标题 */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.section-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text);
  position: relative;
  padding-left: 16px;
}

.section-title::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 24px;
  background: var(--primary);
  border-radius: 2px;
}

.section-more {
  font-size: 0.9rem;
  color: var(--text-muted);
}

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

/* 名家推荐 - 统一 6 列 */
.author-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}

/* 视频卡片 - 统一 4 列 */
.video-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}

.video-card {
  background: var(--bg-white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  cursor: pointer;
}

.video-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px);
}

.video-thumbnail {
  position: relative;
  aspect-ratio: 16/9;
  background: var(--bg-gray);
  overflow: hidden;
}

.video-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 50px;
  height: 50px;
  background: rgba(0,0,0,0.6);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.2rem;
}

.video-duration {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(0,0,0,0.7);
  color: #fff;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
}

.video-card .card-body {
  padding: 12px 16px;
}

/* 文章列表 */
.article-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 40px;
}

.article-item {
  display: flex;
  gap: 16px;
  background: var(--bg-white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  cursor: pointer;
}

.article-item:hover {
  box-shadow: var(--shadow-hover);
}

.article-thumb {
  width: 200px;
  min-width: 200px;
  aspect-ratio: 16/9;
  background: var(--bg-gray);
  overflow: hidden;
}

.article-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.article-item:hover .article-thumb img {
  transform: scale(1.05);
}

.article-content {
  flex: 1;
  padding: 16px 16px 16px 0;
  display: flex;
  flex-direction: column;
}

.article-title {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.article-summary {
  font-size: 0.9rem;
  color: var(--text-light);
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.article-meta {
  display: flex;
  gap: 16px;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 8px;
}

/* ==================== 作品详情页 ==================== */
.detail-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.detail-image {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--bg-white);
}

.detail-image img {
  width: 100%;
  height: auto;
}

.detail-info h1 {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.detail-info .detail-price {
  font-size: 1.8rem;
  color: var(--primary);
  font-weight: 700;
  margin-bottom: 16px;
}

.detail-attrs {
  margin-bottom: 20px;
}

.detail-attr {
  display: flex;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
}

.detail-attr-label {
  width: 80px;
  color: var(--text-muted);
}

.detail-attr-value {
  flex: 1;
  color: var(--text);
}

.detail-desc {
  padding: 16px;
  background: var(--bg-white);
  border-radius: var(--radius);
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--text-light);
}

/* ==================== 名家详情页 ==================== */
.artist-hero {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow);
  display: flex;
  gap: 40px;
  margin-bottom: 32px;
}

.artist-hero-avatar {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid var(--border);
  flex-shrink: 0;
}

.artist-hero-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.artist-hero-info {
  flex: 1;
}

.artist-hero-info h1 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.artist-hero-info .artist-title {
  font-size: 1rem;
  color: var(--primary);
  margin-bottom: 8px;
}

.artist-hero-info .artist-region {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.artist-hero-info .artist-bio {
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--text-light);
  max-height: 300px;
  overflow-y: auto;
}

/* ==================== 文章详情页 ==================== */
.article-detail {
  background: var(--bg-white);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow);
  margin-bottom: 32px;
}

.article-detail h1 {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 16px;
  line-height: 1.4;
}

.article-meta-bar {
  display: flex;
  gap: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 24px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.article-content-body {
  font-size: 1.05rem;
  line-height: 1.9;
  color: var(--text);
}

.article-content-body p {
  margin-bottom: 16px;
}

.article-content-body img {
  max-width: 100%;
  border-radius: var(--radius-sm);
  margin: 16px 0;
}

.article-content-body h2,
.article-content-body h3 {
  margin: 24px 0 12px;
  font-weight: 700;
}

/* ==================== 视频详情页 ==================== */
.video-player-section {
  background: #000;
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 24px;
}

.video-player-section video {
  width: 100%;
  display: block;
}

.video-info {
  background: var(--bg-white);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  margin-bottom: 32px;
}

.video-info h1 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 12px;
}

/* ==================== 搜索页 ==================== */
.search-page-title {
  font-size: 1.4rem;
  margin-bottom: 20px;
}

.search-results {
  margin-top: 20px;
}

.search-tab-content {
  display: none;
}

.search-tab-content.active {
  display: block;
}

/* ==================== 关于我们 ==================== */
.about-page {
  background: var(--bg-white);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow);
}

.about-page h1 {
  font-size: 1.8rem;
  margin-bottom: 24px;
}

.about-content {
  font-size: 1rem;
  line-height: 1.9;
  color: var(--text-light);
}

.about-content p {
  margin-bottom: 16px;
}

.about-content .promise-text {
  font-size: 1.2rem;
  font-weight: bold;
  color: var(--primary);
  text-align: center;
  padding: 16px;
  border: 2px solid var(--primary);
  border-radius: var(--radius);
  margin: 16px auto;
}
}

/* ==================== 响应式 ==================== */
@media (max-width: 1200px) {
  .author-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .video-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .detail-container {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .article-item {
    flex-direction: column;
  }

  .article-thumb {
    width: 100%;
    aspect-ratio: 16/9;
  }

  .article-content {
    padding: 16px;
  }

  .artist-hero {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 24px;
  }

  .article-detail {
    padding: 20px;
  }

  .article-detail h1 {
    font-size: 1.4rem;
  }

  .video-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .author-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .banner-wrapper {
    aspect-ratio: 16/9;
  }

  .banner-slide .banner-text h3 {
    font-size: 1rem;
  }

  .category-nav {
    gap: 8px;
  }

  .category-nav-item {
    min-width: 80px;
    padding: 14px 8px;
  }

  .category-nav-item .cat-icon {
    font-size: 1.5rem;
  }

  .section-title {
    font-size: 1.1rem;
  }

  .about-page {
    padding: 20px;
  }
}

@media (max-width: 480px) {
  .author-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .video-grid {
    grid-template-columns: 1fr;
  }
}
