/* 中一照片直播 - Client Frontend */

/* ============== CLIENT BODY ============== */
.client-body { background: #0a0a0a; color: white; min-height: 100vh; }

.client-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: var(--space-4) var(--space-6);
  background: linear-gradient(to bottom, rgba(0,0,0,0.8) 0%, transparent 100%);
  display: flex; align-items: center; justify-content: space-between;
}
.client-brand { display: flex; align-items: center; gap: var(--space-3); color: white; font-weight: 700; font-size: 18px; }
.client-brand-logo { width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; }

/* ============== CLIENT HERO ============== */
.client-hero { position: relative; height: 50vh; min-height: 400px; display: flex; align-items: flex-end; padding: var(--space-8); overflow: hidden; }
.hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(to top, #0a0a0a 0%, rgba(10,10,10,0.4) 60%, transparent 100%); }
.hero-content { position: relative; z-index: 1; max-width: 800px; }
.hero-title { font-size: clamp(28px, 5vw, 48px); font-weight: 700; margin-bottom: var(--space-3); line-height: 1.2; }
.hero-meta { display: flex; flex-wrap: wrap; gap: var(--space-6); color: rgba(255,255,255,0.7); font-size: 14px; }
.hero-meta-item { display: flex; align-items: center; gap: var(--space-2); }

/* ============== CLIENT GALLERY ============== */
.client-gallery { padding: var(--space-8); max-width: 1600px; margin: 0 auto; }

/* ============== MASONRY GRID ============== */
.masonry-grid { columns: 4; column-gap: var(--space-4); }
.masonry-item { break-inside: avoid; margin-bottom: var(--space-4); border-radius: var(--radius-md); overflow: hidden; cursor: pointer; position: relative; }
.masonry-item img { width: 100%; display: block; transition: transform 0.3s ease; -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }
/* 全局禁用图片长按时弹出的原生保存/下载菜单 */
img { -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }
.masonry-item:hover img { transform: scale(1.02); }
.masonry-item-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.3); opacity: 0; transition: var(--transition); display: flex; align-items: center; justify-content: center; }
.masonry-item:hover .masonry-item-overlay { opacity: 1; }

/* ============== LIGHTBOX ============== */
.lightbox { position: fixed; inset: 0; background: rgba(0,0,0,0.95); z-index: 1000; display: none; align-items: center; justify-content: center; flex-direction: column; }
.lightbox.active { display: flex; }
.lightbox-close { position: absolute; top: var(--space-6); right: var(--space-6); width: 48px; height: 48px; background: rgba(255,255,255,0.1); border: none; border-radius: 50%; color: white; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: var(--transition); }
.lightbox-close:hover { background: rgba(255,255,255,0.2); }
.lightbox-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; background: rgba(255,255,255,0.1); border: none; border-radius: 50%; color: white; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: var(--transition); }
.lightbox-nav:hover { background: rgba(255,255,255,0.2); }
.lightbox-prev { left: var(--space-6); }
.lightbox-next { right: var(--space-6); }
.lightbox-img { max-width: 90vw; max-height: 80vh; object-fit: contain; border-radius: var(--radius-md); -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }
.lightbox-toolbar { position: absolute; bottom: var(--space-6); display: flex; gap: var(--space-3); }
.lightbox-btn { display: flex; align-items: center; gap: var(--space-2); padding: var(--space-3) var(--space-5); background: rgba(255,255,255,0.15); border: none; border-radius: var(--radius-lg); color: white; font-size: 14px; cursor: pointer; transition: var(--transition); }
.lightbox-btn:hover { background: rgba(255,255,255,0.25); }

/* ============== LOGIN PAGE ============== */
.login-body { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); padding: var(--space-4); }
.login-card { background: var(--surface); border-radius: var(--radius-xl); padding: var(--space-12); width: 100%; max-width: 420px; box-shadow: var(--shadow-lg); }
.login-header { text-align: center; margin-bottom: var(--space-10); }
.login-logo { width: 64px; height: 64px; display: flex; align-items: center; justify-content: center; margin: 0 auto var(--space-4); }
.login-title { font-size: 24px; font-weight: 700; margin-bottom: var(--space-2); }
.login-subtitle { color: var(--text-sub); font-size: 14px; }
.login-form .btn { width: 100%; margin-top: var(--space-6); }
.login-error { background: #FEE2E2; color: #991B1B; padding: var(--space-3) var(--space-4); border-radius: var(--radius-md); font-size: 13px; margin-bottom: var(--space-4); display: none; }
.login-error.show { display: block; }
.login-hint { text-align: center; margin-top: var(--space-6); font-size: 12px; color: var(--text-muted); }

/* ============== INDEX (Platform Home) ============== */
.platform-body { background: var(--bg); min-height: 100vh; }
.platform-header { background: var(--surface); border-bottom: 1px solid var(--border); padding: var(--space-4) var(--space-8); display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; z-index: 50; }
.platform-brand { display: flex; align-items: center; gap: var(--space-3); }
.platform-brand-logo { width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; }
.brand-logo-img { width: 100%; height: 100%; object-fit: contain; }
.platform-brand-name { font-size: 18px; font-weight: 700; }
.platform-main { max-width: 1200px; margin: 0 auto; padding: var(--space-8); }
.platform-hero { text-align: center; margin-bottom: var(--space-10); }
.platform-hero h1 { font-size: clamp(28px, 4vw, 40px); font-weight: 800; margin-bottom: var(--space-3); }
.platform-hero p { color: var(--text-sub); font-size: 16px; }
.activity-card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: var(--space-6); }
.activity-card { position: relative; background: var(--surface); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid var(--border); transition: var(--transition); cursor: pointer; }
.activity-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.activity-card-cover-wrap { position: relative; cursor: pointer; }
.activity-card-cover { width: 100%; aspect-ratio: 16/9; object-fit: cover; background: var(--bg); }
.activity-card-status { position: absolute; bottom: var(--space-3); right: var(--space-3); padding: 4px var(--space-2); border-radius: var(--radius-sm); font-size: 12px; font-weight: 600; box-shadow: var(--shadow-sm); z-index: 1; }
.activity-card-share { position: absolute; top: var(--space-3); right: var(--space-3); width: 34px; height: 34px; padding: 0; border-radius: 50%; border: none; background: rgba(255,255,255,0.92); color: var(--primary); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; box-shadow: var(--shadow-sm); transition: var(--transition); z-index: 2; }
.activity-card-share:hover { background: var(--primary); color: white; transform: scale(1.08); }
.activity-card-share svg { display: block; }
.activity-card-body { padding: var(--space-5); }
.activity-card-title { font-size: 16px; font-weight: 600; margin-bottom: var(--space-2); }
.activity-card-meta { display: flex; gap: var(--space-4); color: var(--text-sub); font-size: 13px; }
.activity-card-meta-item { display: flex; align-items: center; gap: 4px; }
.activity-card-footer { display: flex; align-items: center; justify-content: space-between; margin-top: var(--space-3); gap: var(--space-3); }
.activity-card-footer .tag { font-size: 12px; font-weight: 600; padding: 3px var(--space-2); flex-shrink: 0; }

/* ============== HOME SEARCH HEADER ============== */
.home-search-header { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); flex-wrap: wrap; margin-bottom: var(--space-6); }
.home-search-title { font-size: 20px; font-weight: 700; margin: 0; flex-shrink: 0; }
.home-search-box { position: relative; flex: 1; min-width: 200px; max-width: 420px; display: inline-flex; align-items: center; }
.home-search-icon { position: absolute; left: var(--space-4); top: 50%; transform: translateY(-50%); color: var(--text-muted); pointer-events: none; display: inline-flex; align-items: center; }
.home-search-input { width: 100%; padding: var(--space-3) var(--space-4) var(--space-3) 40px; border: 1px solid var(--border); border-radius: var(--radius-md); font-size: 14px; font-family: inherit; color: var(--text); background: var(--surface); transition: var(--transition); }
.home-search-input::placeholder { color: var(--text-muted); }
.home-search-input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-light); background: var(--surface); }

@media (max-width: 640px) {
  .home-search-header { flex-direction: column; align-items: stretch; gap: var(--space-3); }
  .home-search-box { max-width: 100%; }
}

/* ============== HOME PAGINATION ============== */
.home-pagination { display: flex; align-items: center; justify-content: center; gap: var(--space-2); margin-top: var(--space-8); flex-wrap: wrap; }
.home-pagination .page-btn { display: inline-flex; align-items: center; gap: 4px; min-width: 36px; height: 36px; padding: 0 var(--space-3); border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface); color: var(--text-sub); font-size: 14px; font-family: inherit; cursor: pointer; transition: var(--transition); }
.home-pagination .page-btn:hover:not(:disabled):not(.active) { border-color: var(--primary); color: var(--primary); background: var(--primary-light); }
.home-pagination .page-btn.active { background: var(--primary); border-color: var(--primary); color: white; cursor: default; }
.home-pagination .page-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.home-pagination .page-btn svg { width: 16px; height: 16px; }
