/* 图库样本 / 3D图库 页面样式 */

.gallery-page {
  max-width: 1200px;
  margin: 0 auto;
}

.gallery-page-header {
  margin-bottom: 20px;
}

.gallery-page-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 600;
  color: #333;
  margin: 0 0 6px;
}

.gallery-page-subtitle {
  margin: 0;
  font-size: 14px;
  color: #666;
}

.gallery-search-wrap {
  position: relative;
  margin-bottom: 16px;
}

.gallery-search {
  width: 100%;
  padding: 12px 16px 12px 40px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 14px;
  background: #fff;
}

.gallery-search-wrap::before {
  content: '🔍';
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 14px;
  opacity: 0.5;
}

.gallery-type-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.gallery-tab {
  flex: 1;
  min-width: 80px;
  padding: 10px 8px;
  border: 1px solid #ddd;
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  font-size: 14px;
  color: #333;
  transition: all 0.2s;
}

.gallery-tab.active {
  background: #F7D035;
  border-color: #E6C02E;
  font-weight: 600;
}

.gallery-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

.gallery-filter {
  width: calc(12.5% - 9px);
  min-width: 56px;
  padding: 3px;
  border: 2px solid transparent;
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.2s;
}

.gallery-filter img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
}

.gallery-filter.active {
  border-color: #F7D035;
}

.gallery-list-box {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  padding: 8px 0;
  min-height: 200px;
}

.gallery-item {
  padding: 14px 16px;
  border-bottom: 1px solid #f0f0f0;
  cursor: pointer;
  transition: background 0.2s;
}

.gallery-item:hover {
  background: #f9f9f0;
}

.gallery-item:last-child {
  border-bottom: none;
}

.gallery-item-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.gallery-hot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  background: #F7D035;
  color: #333;
  font-size: 11px;
  font-weight: 700;
  border-radius: 4px;
  flex-shrink: 0;
}

.gallery-item-title {
  font-size: 15px;
  font-weight: 600;
  color: #333;
  text-decoration: none;
}

.gallery-item-title:hover {
  color: #b8860b;
}

.gallery-item-title small {
  font-weight: normal;
  color: #999;
  font-size: 12px;
}

.gallery-item-desc {
  margin: 0 0 6px;
  font-size: 13px;
  color: #666;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.gallery-item-date {
  font-size: 12px;
  color: #999;
  text-align: right;
}

.gallery-loading,
.gallery-empty,
.gallery-error {
  padding: 40px 16px;
  text-align: center;
  color: #999;
}

.gallery-error {
  color: #e53935;
}

.gallery-load-more-wrap {
  text-align: center;
  padding: 16px;
}

.gallery-load-more-btn {
  padding: 10px 24px;
  border: 1px solid #ddd;
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  font-size: 14px;
}

.gallery-load-more-btn:hover {
  background: #f9f9f9;
}

/* 登录墙 */
.gallery-login-wall {
  background: #fff;
  border-radius: 12px;
  padding: 48px 24px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.gallery-login-wall h3 {
  margin: 0 0 8px;
  font-size: 18px;
  color: #333;
}

.gallery-login-wall p {
  margin: 0 0 20px;
  color: #666;
  font-size: 14px;
}

.gallery-login-wall-btn {
  padding: 12px 28px;
  background: #F7D035;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  color: #333;
}

.gallery-login-wall-btn:hover {
  background: #E6C02E;
}

/* 详情页 */
.gallery-detail-page {
  max-width: 900px;
  margin: 0 auto;
}

.gallery-detail-card {
  background: #fff;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.gallery-detail-title {
  font-size: 22px;
  font-weight: 600;
  margin: 0 0 12px;
  color: #333;
}

.gallery-detail-meta {
  font-size: 13px;
  color: #999;
  margin-bottom: 20px;
}

.gallery-detail-content {
  font-size: 14px;
  line-height: 1.8;
  color: #444;
  word-break: break-word;
}

.gallery-detail-content img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
}

.gallery-detail-actions {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.gallery-detail-btn {
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 14px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.gallery-detail-btn-primary {
  background: #F7D035;
  border: none;
  color: #333;
  font-weight: 600;
}

.gallery-detail-btn-secondary {
  background: #fff;
  border: 1px solid #ddd;
  color: #333;
}

.gallery-detail-btn:hover {
  opacity: 0.9;
}

.gallery-vip-tip {
  margin-top: 16px;
  padding: 12px 16px;
  background: #fff8e1;
  border-radius: 8px;
  font-size: 13px;
  color: #856404;
}

body.dark-theme .gallery-list-box,
body.dark-theme .gallery-detail-card,
body.dark-theme .gallery-login-wall {
  background: #2a2a2a;
}

body.dark-theme .gallery-page-title,
body.dark-theme .gallery-item-title,
body.dark-theme .gallery-detail-title {
  color: #fff;
}

body.dark-theme .gallery-search,
body.dark-theme .gallery-tab,
body.dark-theme .gallery-filter {
  background: #333;
  border-color: #444;
  color: #eee;
}

@media (max-width: 768px) {
  .gallery-filter {
    width: calc(50% - 6px);
  }

  .gallery-tab {
    min-width: calc(50% - 4px);
  }
}
