/* ========== 场地页面：复用 comp-layout 布局，自定义卡片和弹窗 ========== */

/* 场地卡片网格 */
.venue-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* 场地卡片 */
.venue-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  position: relative;
  aspect-ratio: 4 / 3;
  display: flex;
  flex-direction: column;
}

.venue-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

/* 卡片图片区域 */
.venue-card-image {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  transition: opacity 0.35s ease;
  display: flex;
  align-items: flex-end;
  padding: 16px;
  z-index: 1;
}

.venue-card:hover .venue-card-image {
  opacity: 0;
}

.venue-card-image .venue-card-title {
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 悬浮信息层 */
.venue-card-info {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(10, 10, 30, 0.92);
  backdrop-filter: blur(8px);
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  opacity: 0;
  transition: opacity 0.35s ease;
  z-index: 2;
}

.venue-card:hover .venue-card-info {
  opacity: 1;
}

.venue-card-info .venue-info-type {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  align-self: flex-start;
  background: rgba(0, 123, 255, 0.2);
  color: #64b5f6;
}

.venue-card-info .venue-info-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.8);
}

.venue-card-info .venue-info-label {
  color: rgba(255, 255, 255, 0.45);
  min-width: 70px;
  flex-shrink: 0;
}

/* ========== 场地详情弹窗 ========== */
.venue-detail-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: venueFadeIn 0.2s ease;
}

.venue-detail-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
}

.venue-detail-content {
  position: relative;
  background: rgba(10, 10, 30, 0.95);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  width: 640px;
  max-width: 92%;
  max-height: 85vh;
  overflow-y: auto;
  animation: venueSlideUp 0.25s ease;
}

.venue-detail-header {
  padding: 28px 32px 20px;
  border-radius: 16px 16px 0 0;
  position: relative;
}

.venue-detail-close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  font-size: 24px;
  color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: color 0.15s;
}

.venue-detail-close:hover {
  color: #fff;
}

.venue-detail-title {
  font-size: 22px;
  color: #fff;
  font-weight: 700;
  margin-bottom: 6px;
  padding-right: 32px;
}

.venue-detail-subtitle {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
}

.venue-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 24px 32px 32px;
}

.venue-detail-field {
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  border-left: 3px solid rgba(0, 123, 255, 0.5);
}

.venue-detail-field-label {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.venue-detail-field-value {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
}

.venue-detail-field-value a {
  color: #64b5f6;
  text-decoration: none;
}

.venue-detail-field-value a:hover {
  text-decoration: underline;
}

/* 区域标题 */
.venue-detail-section-title {
  grid-column: 1 / -1;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding-top: 8px;
  margin-top: 4px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.venue-detail-field-contact {
  border-left-color: rgba(76, 175, 80, 0.5);
}

/* 描述区域 */
.venue-detail-desc {
  grid-column: 1 / -1;
  padding: 16px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.75);
}

/* 登录提示 */
.venue-detail-login-prompt {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  border: 1px dashed rgba(255, 255, 255, 0.12);
}

.venue-detail-login-icon {
  font-size: 32px;
}

.venue-detail-login-text {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  text-align: center;
}

.venue-detail-login-btn {
  padding: 8px 24px;
  background: linear-gradient(135deg, #1565c0, #1976d2);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
}

.venue-detail-login-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(21, 101, 192, 0.4);
}

/* ========== 动画 ========== */
@keyframes venueFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes venueSlideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

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

@media (max-width: 768px) {
  .venue-grid {
    grid-template-columns: 1fr;
  }

  .venue-detail-grid {
    grid-template-columns: 1fr;
  }

  .venue-detail-content {
    max-height: 90vh;
  }
}

/* ========== 亮色主题 - 详情弹窗 ========== */
body[data-theme="light"] .venue-detail-content {
  background: #ffffff;
  border-color: #e0e0e0;
  color: #1a1a2e;
}

body[data-theme="light"] .venue-detail-header {
  background: #f5f7fa !important;
}

body[data-theme="light"] .venue-detail-title {
  color: #1a1a2e !important;
}

body[data-theme="light"] .venue-detail-subtitle {
  color: rgba(0, 0, 0, 0.5) !important;
}

body[data-theme="light"] .venue-detail-close {
  color: rgba(0, 0, 0, 0.4);
}

body[data-theme="light"] .venue-detail-close:hover {
  color: #1a1a2e;
}

body[data-theme="light"] .venue-detail-field {
  background: #f5f7fa;
  border-left-color: rgba(0, 123, 255, 0.4);
}

body[data-theme="light"] .venue-detail-field-label {
  color: rgba(0, 0, 0, 0.45);
}

body[data-theme="light"] .venue-detail-field-value {
  color: #1a1a2e;
}

body[data-theme="light"] .venue-detail-section-title {
  color: rgba(0, 0, 0, 0.45);
  border-top-color: rgba(0, 0, 0, 0.08);
}

body[data-theme="light"] .venue-detail-desc {
  background: #f5f7fa;
  color: rgba(0, 0, 0, 0.75);
}

body[data-theme="light"] .venue-detail-login-prompt {
  background: #f5f7fa;
  border-color: rgba(0, 0, 0, 0.1);
}

body[data-theme="light"] .venue-detail-login-text {
  color: rgba(0, 0, 0, 0.5);
}
