/**
 * 福仁齐摄影展览平台 - 首页样式
 * 暗色高端展览主题，突出视觉艺术氛围
 */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', sans-serif;
    background: #0a0a0f;
    color: #e8e8ec;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ===== 认证遮罩 ===== */
.auth-overlay {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: #0a0a0f;
    display: flex; align-items: center; justify-content: center;
    z-index: 9999;
}
.auth-loading { text-align: center; color: #888; }
.auth-spinner {
    width: 40px; height: 40px; margin: 0 auto 16px;
    border: 3px solid rgba(255,255,255,0.1);
    border-top-color: #6366f1;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.btn-goto-login {
    display: inline-block; padding: 10px 24px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #fff; border-radius: 8px; font-size: 14px;
}

/* ===== 顶部导航 ===== */
.photo-header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    background: rgba(10, 10, 15, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    transition: background 0.3s;
}
.photo-header-inner {
    max-width: 1400px; margin: 0 auto;
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 24px; height: 64px;
}
.photo-logo { display: flex; align-items: center; gap: 10px; }
.photo-logo-icon { font-size: 24px; }
.photo-logo-text { font-size: 18px; font-weight: 600; letter-spacing: 1px; }
.photo-nav { display: flex; gap: 4px; }
.photo-nav-item {
    padding: 8px 16px; border-radius: 6px;
    font-size: 14px; color: #999; transition: all 0.2s;
}
.photo-nav-item:hover { color: #fff; background: rgba(255,255,255,0.06); }
.photo-nav-item.active { color: #fff; background: rgba(99,102,241,0.2); }
.photo-header-actions { display: flex; align-items: center; gap: 12px; }
.btn-my-space {
    padding: 7px 16px; border-radius: 6px; font-size: 13px;
    background: rgba(99,102,241,0.15); color: #a5b4fc;
    border: 1px solid rgba(99,102,241,0.3); transition: all 0.2s;
}
.btn-my-space:hover { background: rgba(99,102,241,0.25); }
.photo-user-avatar {
    width: 36px; height: 36px; border-radius: 50%; overflow: hidden;
    border: 2px solid rgba(99,102,241,0.4); cursor: pointer;
}
.photo-user-avatar img { width: 100%; height: 100%; object-fit: cover; }

/* ===== ★ Hero 主视觉 ===== */
.photo-hero {
    position: relative;
    min-height: 100vh;
    display: flex; align-items: center; justify-content: center;
    overflow: hidden;
    padding: 80px 24px 60px;
}
.hero-bg {
    position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background: 
        radial-gradient(ellipse at 20% 50%, rgba(99,102,241,0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(139,92,246,0.12) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 80%, rgba(59,130,246,0.08) 0%, transparent 50%),
        linear-gradient(180deg, #0a0a0f 0%, #0d0d1a 50%, #0a0a0f 100%);
    animation: heroGlow 8s ease-in-out infinite alternate;
}
@keyframes heroGlow {
    0% { opacity: 0.8; }
    100% { opacity: 1; }
}
.hero-particles {
    position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    pointer-events: none;
}
.particle {
    position: absolute; bottom: -10px;
    background: rgba(99,102,241,0.6);
    border-radius: 50%;
    animation: particleFloat linear infinite;
}
@keyframes particleFloat {
    0% { transform: translateY(0) scale(1); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 0.6; }
    100% { transform: translateY(-100vh) scale(0.3); opacity: 0; }
}
.hero-content {
    position: relative; z-index: 2;
    text-align: center; max-width: 800px;
}
.hero-badge {
    display: inline-block;
    padding: 6px 18px; border-radius: 20px;
    background: rgba(99,102,241,0.12);
    border: 1px solid rgba(99,102,241,0.3);
    color: #a5b4fc; font-size: 13px; letter-spacing: 2px;
    margin-bottom: 28px;
}
.hero-title {
    font-size: clamp(36px, 7vw, 64px);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #fff 0%, #c7d2fe 50%, #a5b4fc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero-dot { color: #6366f1; -webkit-text-fill-color: #6366f1; }
.hero-subtitle {
    font-size: clamp(15px, 2.5vw, 18px);
    color: #9ca3af;
    line-height: 1.8;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto; margin-right: auto;
}
.hero-stats {
    display: flex; justify-content: center; gap: 48px;
    margin-bottom: 44px;
}
.hero-stat { text-align: center; }
.hero-stat-num {
    display: block; font-size: 32px; font-weight: 700;
    background: linear-gradient(135deg, #a5b4fc, #6366f1);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero-stat-label { font-size: 13px; color: #6b7280; margin-top: 4px; display: block; }
.hero-actions { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }
.hero-btn {
    padding: 14px 36px; border-radius: 10px; font-size: 15px; font-weight: 500;
    transition: all 0.3s; display: inline-block;
}
.hero-btn-primary {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #fff;
    box-shadow: 0 8px 32px rgba(99,102,241,0.3);
}
.hero-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(99,102,241,0.4);
}
.hero-btn-ghost {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.2);
    color: #d1d5db;
}
.hero-btn-ghost:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(99,102,241,0.5);
    color: #fff;
}
.hero-scroll-hint {
    position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%);
    text-align: center; color: #4b5563; font-size: 12px;
}
.scroll-arrow {
    width: 20px; height: 20px; margin: 8px auto 0;
    border-right: 2px solid #4b5563; border-bottom: 2px solid #4b5563;
    transform: rotate(45deg);
    animation: scrollBounce 2s infinite;
}
@keyframes scrollBounce {
    0%, 100% { transform: rotate(45deg) translate(0, 0); opacity: 0.5; }
    50% { transform: rotate(45deg) translate(4px, 4px); opacity: 1; }
}

/* ===== ★ 展览分区 ===== */
.photo-zones {
    max-width: 1400px; margin: 0 auto;
    padding: 80px 24px;
}
.section-header { text-align: center; margin-bottom: 48px; }
.section-title {
    font-size: 28px; font-weight: 700; margin-bottom: 12px;
    background: linear-gradient(135deg, #fff, #c7d2fe);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}
.section-desc { color: #6b7280; font-size: 15px; }
.zone-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.zone-card {
    position: relative;
    padding: 40px 28px;
    border-radius: 20px;
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.06);
    text-align: center;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}
.zone-card::before {
    content: '';
    position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(circle at 50% 0%, var(--zone-glow), transparent 70%);
    opacity: 0; transition: opacity 0.4s;
}
.zone-card:hover::before { opacity: 1; }
.zone-card:hover {
    transform: translateY(-8px);
    border-color: rgba(99,102,241,0.3);
    box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}
.zone-photo { --zone-glow: rgba(99,102,241,0.08); }
.zone-video { --zone-glow: rgba(236,72,153,0.08); }
.zone-story { --zone-glow: rgba(34,197,94,0.08); }
.zone-icon { font-size: 48px; margin-bottom: 16px; position: relative; }
.zone-card h3 { font-size: 20px; font-weight: 600; margin-bottom: 8px; position: relative; }
.zone-card p { font-size: 13px; color: #6b7280; position: relative; }
.zone-count {
    display: inline-block; margin-top: 16px;
    padding: 4px 14px; border-radius: 12px;
    background: rgba(99,102,241,0.1);
    color: #a5b4fc; font-size: 12px;
    position: relative;
}

/* ===== 轮播Banner ===== */
.photo-banner {
    position: relative; max-width: 1400px; margin: 0 auto 60px;
    padding: 0 24px; overflow: hidden;
}
.banner-slider { position: relative; height: 360px; border-radius: 16px; overflow: hidden; }
.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-title {
    position: absolute; bottom: 0; left: 0; right: 0;
    padding: 40px 24px 20px;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    font-size: 20px; font-weight: 600;
}
.banner-dots {
    position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%);
    display: flex; gap: 8px; z-index: 10;
}
.banner-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: rgba(255,255,255,0.4); cursor: pointer; transition: all 0.2s;
}
.banner-dot.active { background: #6366f1; width: 24px; border-radius: 4px; }

/* ===== ★ 作品展厅 ===== */
.photo-gallery { max-width: 1400px; margin: 0 auto; padding: 0 24px 80px; }
.photo-filter-bar { margin-bottom: 32px; }
.filter-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.filter-categories { display: flex; gap: 8px; flex-wrap: wrap; }
.filter-tag {
    padding: 6px 14px; border-radius: 20px; font-size: 13px;
    background: rgba(255,255,255,0.06); color: #aaa;
    border: 1px solid rgba(255,255,255,0.1); cursor: pointer; transition: all 0.2s;
}
.filter-tag:hover { border-color: rgba(99,102,241,0.4); color: #ddd; }
.filter-tag.active { background: rgba(99,102,241,0.2); border-color: #6366f1; color: #a5b4fc; }
/* ★ 分类图片图标：完整显示不裁剪，与文字对齐 */
.filter-tag-icon { width: 16px; height: 16px; object-fit: contain; vertical-align: -3px; margin-right: 4px; display: inline-block; border-radius: 3px; }
.sort-select {
    padding: 6px 12px; border-radius: 6px; font-size: 13px;
    background: rgba(255,255,255,0.06); color: #ccc;
    border: 1px solid rgba(255,255,255,0.1); outline: none;
}
.sort-select option { background: #1a1a2e; color: #ccc; }

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}
.work-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 12px; overflow: hidden;
    cursor: pointer; transition: all 0.3s;
}
.work-card:hover {
    transform: translateY(-4px);
    border-color: rgba(99,102,241,0.3);
    box-shadow: 0 12px 40px rgba(0,0,0,0.4);
}
.work-card-cover { position: relative; aspect-ratio: 4/3; overflow: hidden; background: #151520; }
.work-card-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.work-card:hover .work-card-cover img { transform: scale(1.05); }
.work-card-placeholder {
    width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
    font-size: 48px; background: linear-gradient(135deg, #1a1a2e, #16213e);
}
.work-card-type {
    position: absolute; top: 10px; right: 10px;
    background: rgba(0,0,0,0.6); padding: 4px 8px; border-radius: 4px; font-size: 12px;
}
.work-card-info { padding: 14px 16px; }
.work-card-title { font-size: 15px; font-weight: 500; margin-bottom: 8px; line-height: 1.4;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.work-card-meta { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: #888; }
.work-card-author { color: #a5b4fc; }
.work-card-category {
    display: inline-block; margin-top: 8px; padding: 2px 8px;
    background: rgba(99,102,241,0.1); border-radius: 4px; font-size: 11px; color: #a5b4fc;
}

/* ===== 加载状态 ===== */
.gallery-loading { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 40px; color: #888; }
.loading-spinner {
    width: 24px; height: 24px;
    border: 2px solid rgba(255,255,255,0.1); border-top-color: #6366f1;
    border-radius: 50%; animation: spin 0.8s linear infinite;
}
.gallery-empty { text-align: center; padding: 80px 20px; }
.gallery-empty h3 { font-size: 20px; color: #d1d5db; margin-bottom: 12px; }
.gallery-empty p { color: #6b7280; font-size: 14px; margin-bottom: 24px; }
.empty-art {
    display: flex; justify-content: center; gap: 16px; margin-bottom: 32px;
}
.empty-frame {
    width: 80px; height: 100px;
    border: 2px solid rgba(99,102,241,0.2);
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(99,102,241,0.05), rgba(139,92,246,0.05));
    animation: frameFloat 3s ease-in-out infinite;
}
.empty-frame-2 { height: 120px; animation-delay: 0.5s; }
.empty-frame-3 { height: 90px; animation-delay: 1s; }
@keyframes frameFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}
.empty-cta {
    display: inline-block; padding: 12px 28px; border-radius: 8px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #fff; font-size: 14px; transition: all 0.3s;
}
.empty-cta:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(99,102,241,0.3); }
.gallery-loadmore { text-align: center; padding: 30px; }
.btn-loadmore {
    padding: 12px 36px; border-radius: 8px; font-size: 14px;
    background: rgba(99,102,241,0.15); color: #a5b4fc;
    border: 1px solid rgba(99,102,241,0.3); cursor: pointer; transition: all 0.2s;
}
.btn-loadmore:hover { background: rgba(99,102,241,0.25); }

/* ===== ★ 签约摄影师 ===== */
.photo-photographers { max-width: 1400px; margin: 0 auto; padding: 0 24px 80px; }
.photographer-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.photographer-card {
    display: flex; align-items: center; gap: 14px;
    padding: 16px; border-radius: 12px;
    background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.06);
    transition: all 0.2s;
}
.photographer-card:hover { border-color: rgba(99,102,241,0.3); background: rgba(99,102,241,0.05); }
.photographer-avatar { width: 56px; height: 56px; border-radius: 50%; overflow: hidden; flex-shrink: 0; }
.photographer-avatar img { width: 100%; height: 100%; object-fit: cover; }
.photographer-info h4 { font-size: 15px; margin-bottom: 4px; }
.photographer-info p { font-size: 12px; color: #888; margin-bottom: 4px; }
.photographer-stats { font-size: 11px; color: #666; }
.photographer-empty { text-align: center; padding: 40px; color: #6b7280; font-size: 14px; }

/* ===== ★ 入驻CTA ===== */
.photo-cta {
    position: relative;
    padding: 100px 24px;
    text-align: center;
    overflow: hidden;
}
.photo-cta::before {
    content: '';
    position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background: 
        radial-gradient(ellipse at 50% 50%, rgba(99,102,241,0.1) 0%, transparent 60%),
        linear-gradient(180deg, transparent, rgba(99,102,241,0.03), transparent);
}
.cta-content { position: relative; z-index: 1; max-width: 600px; margin: 0 auto; }
.cta-content h2 {
    font-size: 32px; font-weight: 700; margin-bottom: 16px;
    background: linear-gradient(135deg, #fff, #c7d2fe);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}
.cta-content p { color: #9ca3af; font-size: 15px; line-height: 1.8; margin-bottom: 32px; }
.cta-btn {
    display: inline-block; padding: 14px 40px; border-radius: 10px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #fff; font-size: 16px; font-weight: 500;
    transition: all 0.3s;
    box-shadow: 0 8px 32px rgba(99,102,241,0.3);
}
.cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 48px rgba(99,102,241,0.4);
}

/* ===== ★ 底部 ===== */
.photo-footer {
    text-align: center; padding: 48px 24px;
    border-top: 1px solid rgba(255,255,255,0.04);
    background: rgba(0,0,0,0.2);
}
.footer-brand {
    display: flex; align-items: center; justify-content: center; gap: 10px;
    font-size: 16px; font-weight: 600; margin-bottom: 12px;
}
.footer-logo { font-size: 24px; }
.footer-slogan { color: #6b7280; font-size: 13px; margin-bottom: 8px; letter-spacing: 2px; }
.footer-copy { color: #4b5563; font-size: 12px; }

/* ===== 作品详情弹窗 ===== */
.work-modal { position: fixed; top: 0; left: 0; right: 0; bottom: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; }
.work-modal-overlay { position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.85); }
.work-modal-content {
    position: relative; width: 90%; max-width: 900px; max-height: 90vh;
    background: #14141f; border-radius: 16px; overflow-y: auto;
    border: 1px solid rgba(255,255,255,0.08);
}
.work-modal-close {
    position: absolute; top: 16px; right: 16px; z-index: 10;
    width: 36px; height: 36px; border-radius: 50%;
    background: rgba(0,0,0,0.6); color: #fff; font-size: 20px;
    border: none; cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.work-detail-media { background: #000; }
.work-detail-img { width: 100%; max-height: 60vh; object-fit: contain; }
.work-story-content { padding: 24px; line-height: 1.8; }
.work-detail-info { padding: 24px; }
.work-detail-info h2 { font-size: 20px; margin-bottom: 12px; }
.work-detail-desc { color: #aaa; font-size: 14px; line-height: 1.6; margin-bottom: 16px; }
.work-detail-meta { display: flex; gap: 16px; flex-wrap: wrap; font-size: 13px; color: #888; margin-bottom: 20px; }
.work-detail-actions { display: flex; gap: 12px; }
.work-detail-actions button, .work-detail-actions a {
    padding: 8px 20px; border-radius: 8px; font-size: 13px; cursor: pointer;
    border: 1px solid rgba(255,255,255,0.15); background: rgba(255,255,255,0.05); color: #ccc;
    transition: all 0.2s;
}
.work-detail-actions button:hover, .work-detail-actions a:hover { background: rgba(99,102,241,0.15); border-color: rgba(99,102,241,0.4); }
.work-detail-actions .active { background: rgba(99,102,241,0.2); border-color: #6366f1; color: #a5b4fc; }
.work-detail-loading { padding: 60px; text-align: center; }
.work-detail-error { padding: 40px; text-align: center; color: #888; }

/* ===== 响应式 ===== */
@media (max-width: 768px) {
    .photo-header-inner { padding: 0 16px; }
    .photo-nav { display: none; }
    .photo-hero { min-height: 90vh; padding: 80px 16px 60px; }
    .hero-stats { gap: 24px; }
    .hero-stat-num { font-size: 24px; }
    .hero-actions { flex-direction: column; align-items: center; }
    .hero-btn { width: 100%; max-width: 260px; text-align: center; }
    .zone-grid { grid-template-columns: 1fr; gap: 16px; }
    .zone-card { padding: 28px 20px; }
    .banner-slider { height: 200px; }
    .gallery-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
    .photo-filter-bar { padding: 0; }
    .photo-gallery { padding: 0 16px 60px; }
    .photo-zones { padding: 60px 16px; }
    .photographer-grid { grid-template-columns: 1fr; }
    .photo-cta { padding: 60px 16px; }
    .cta-content h2 { font-size: 24px; }
    .work-modal-content { width: 95%; max-height: 95vh; }
    .section-title { font-size: 22px; }
}
@media (max-width: 480px) {
    .hero-stats { flex-direction: column; gap: 16px; }
    .empty-art { gap: 10px; }
    .empty-frame { width: 60px; height: 75px; }
    .empty-frame-2 { height: 90px; }
    .empty-frame-3 { height: 68px; }
}
