/* ============================================
   照片直播网站 - 主样式表
   ============================================ */

/* CSS变量 */
:root {
    --primary-color: #667eea;
    --primary-dark: #5a67d8;
    --primary-light: #7f9cf5;
    --secondary-color: #ed64a6;
    --success-color: #48bb78;
    --warning-color: #ed8936;
    --danger-color: #e53e3e;
    --info-color: #4299e1;
    --text-primary: #2d3748;
    --text-secondary: #718096;
    --text-muted: #a0aec0;
    --bg-primary: #ffffff;
    --bg-secondary: #f7fafc;
    --bg-dark: #1a202c;
    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.07);
    --shadow-lg: 0 10px 15px rgba(0,0,0,0.1);
    --shadow-xl: 0 20px 25px rgba(0,0,0,0.15);
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --transition: all 0.3s ease;
}

/* 重置样式 */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    color: var(--text-primary);
    background: var(--bg-secondary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* 容器 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.container-sm {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============ 头部导航 ============ */
.site-header {
    background: var(--bg-primary);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-primary);
}

.site-logo img {
    height: 40px;
    width: auto;
}

.site-logo .logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.2rem;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 30px;
}

.header-nav a {
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 500;
    padding: 8px 0;
    border-bottom: 2px solid transparent;
    transition: var(--transition);
}

.header-nav a:hover,
.header-nav a.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.header-search {
    display: flex;
    align-items: center;
    background: var(--bg-secondary);
    border-radius: 50px;
    padding: 8px 16px;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.header-search:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.15);
}

.header-search input {
    border: none;
    background: transparent;
    outline: none;
    font-size: 0.9rem;
    width: 200px;
    color: var(--text-primary);
}

.header-search button {
    border: none;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0;
    font-size: 1.1rem;
}

/* 移动端菜单按钮 */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-primary);
    cursor: pointer;
    padding: 8px;
}

/* ============ Banner/Hero ============ */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, #764ba2 100%);
    padding: 80px 0;
    text-align: center;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: heroFloat 20s ease-in-out infinite;
}

@keyframes heroFloat {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(30px, -30px); }
}

.hero-title {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
}

.hero-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 30px;
    position: relative;
    z-index: 1;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 50px;
    position: relative;
    z-index: 1;
}

.hero-stat {
    text-align: center;
}

.hero-stat .stat-num {
    font-size: 2rem;
    font-weight: 700;
}

.hero-stat .stat-label {
    font-size: 0.85rem;
    opacity: 0.8;
    margin-top: 4px;
}

/* ============ 内容区域 ============ */
.content-section {
    padding: 50px 0;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px;
}

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

.section-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 70%;
    background: linear-gradient(to bottom, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

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

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

/* ============ 活动卡片 ============ */
.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 24px;
}

.event-card {
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

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

.event-card .card-cover {
    position: relative;
    padding-top: 56.25%;
    overflow: hidden;
}

.event-card .card-cover img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: fill;
    transition: transform 0.5s ease;
}

.event-card:hover .card-cover img {
    transform: scale(1.05);
}

.event-card .card-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--primary-color);
    color: #fff;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
}

.event-card .card-badge.hot {
    background: var(--danger-color);
}

.event-card .card-body {
    padding: 20px;
}

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

.event-card .card-title a {
    color: inherit;
}

.event-card .card-title a:hover {
    color: var(--primary-color);
}

.event-card .card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.event-card .card-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.event-card .card-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 15px;
}

.event-card .card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
}

.event-card .card-stats {
    display: flex;
    gap: 16px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.event-card .card-stats span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.event-card .card-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 16px;
    background: var(--primary-color);
    color: #fff;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: var(--transition);
}

.event-card .card-btn:hover {
    background: var(--primary-dark);
    color: #fff;
}

/* ============ 分类标签 ============ */
.category-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
}

.category-tab {
    padding: 8px 20px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
}

.category-tab:hover,
.category-tab.active {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

/* ============ 相册列表 ============ */
.albums-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.album-card {
    background: var(--bg-primary);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.album-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.album-card .album-cover {
    position: relative;
    padding-top: 66.67%;
    overflow: hidden;
}

.album-card .album-cover img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.album-card:hover .album-cover img {
    transform: scale(1.05);
}

.album-card .album-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px 16px 12px;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    color: #fff;
}

.album-card .album-count {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(0,0,0,0.6);
    color: #fff;
    padding: 4px 10px;
    border-radius: 50px;
    font-size: 0.75rem;
}

.album-card .album-info {
    padding: 15px;
}

.album-card .album-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text-primary);
}

.album-card .album-meta {
    font-size: 0.8rem;
    color: var(--text-muted);
    display: flex;
    gap: 12px;
}

/* ============ 照片瀑布流 ============ */
.photos-waterfall {
    column-count: 4;
    column-gap: 16px;
}

.photo-item {
    break-inside: avoid;
    margin-bottom: 16px;
    border-radius: var(--radius-md);
    overflow: hidden;
    position: relative;
    cursor: pointer;
    transition: var(--transition);
}

.photo-item:hover {
    transform: scale(1.02);
}

.photo-item img {
    width: 100%;
    display: block;
}

.photo-item .photo-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 12px;
    transition: var(--transition);
    pointer-events: none;
}

.photo-item:hover .photo-overlay {
    background: linear-gradient(to top, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0.1) 50%, transparent 100%);
}

.photo-item .photo-overlay .btn-icon {
    padding: 8px 16px;
    background: rgba(255,255,255,0.95);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    color: var(--text-primary);
    font-size: 0.85rem;
    font-weight: 500;
    opacity: 0;
    transform: translateY(10px);
    transition: var(--transition);
    cursor: pointer;
    border: none;
    pointer-events: auto;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.photo-item:hover .photo-overlay .btn-icon {
    opacity: 1;
    transform: translateY(0);
}

.photo-item .photo-overlay .btn-icon:hover {
    background: var(--primary-color);
    color: #fff;
}

/* ============ 照片详情/灯箱 ============ */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.95);
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
}

.lightbox-content img {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
    border-radius: var(--radius-sm);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    background: rgba(255,255,255,0.1);
    border: none;
    border-radius: 50%;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    z-index: 10001;
}

.lightbox-close:hover {
    background: rgba(255,255,255,0.2);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(255,255,255,0.1);
    border: none;
    border-radius: 50%;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    z-index: 10001;
}

.lightbox-nav:hover {
    background: rgba(255,255,255,0.2);
}

.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

.lightbox-info {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 20px;
    color: rgba(255,255,255,0.8);
    font-size: 0.9rem;
}

.lightbox-info a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 25px;
    color: #fff;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
    backdrop-filter: blur(10px);
}

.lightbox-info a:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    transform: scale(1.05);
}

.lightbox-tip {
    position: absolute;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    padding: 6px 16px;
    background: rgba(0,0,0,0.5);
    border-radius: 20px;
    color: rgba(255,255,255,0.7);
    font-size: 0.78rem;
    white-space: nowrap;
    backdrop-filter: blur(6px);
    pointer-events: none;
    transition: opacity 0.3s ease;
}

/* ============ 面包屑 ============ */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 16px 0;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.breadcrumb a {
    color: var(--text-secondary);
}

.breadcrumb a:hover {
    color: var(--primary-color);
}

.breadcrumb .separator {
    color: var(--text-muted);
}

/* ============ 活动详情 ============ */
.event-detail {
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.event-detail .event-cover {
    width: 100%;
    max-height: 400px;
    object-fit: fill;
}

.event-detail .event-body {
    padding: 30px;
}

.event-detail .event-title {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 16px;
}

.event-detail .event-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
    padding: 20px;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
}

.event-detail .info-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.event-detail .info-item .info-icon {
    width: 36px;
    height: 36px;
    background: var(--primary-color);
    color: #fff;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}

.event-detail .info-item .info-text {
    font-size: 0.85rem;
}

.event-detail .info-item .info-text .label {
    color: var(--text-muted);
    font-size: 0.75rem;
}

.event-detail .info-item .info-text .value {
    color: var(--text-primary);
    font-weight: 500;
}

.event-detail .event-desc {
    font-size: 0.95rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 30px;
}

/* ============ 空状态 ============ */
.empty-state {
    text-align: center;
    padding: 80px 20px;
}

.empty-state .empty-icon {
    font-size: 4rem;
    margin-bottom: 16px;
    opacity: 0.3;
}

.empty-state .empty-title {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.empty-state .empty-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* ============ 分页 ============ */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    padding: 30px 0;
}

.page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    color: var(--text-secondary);
    background: var(--bg-primary);
    transition: var(--transition);
}

.page-link:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.page-link.active {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

.page-link.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.page-link.dots {
    border: none;
    background: transparent;
}

/* ============ 底部 ============ */
.site-footer {
    background: var(--bg-dark);
    color: rgba(255,255,255,0.7);
    padding: 40px 0 20px;
    margin-top: 60px;
}

.footer-content {
    text-align: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-bottom: 20px;
}

.footer-links a {
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: #fff;
}

.footer-copyright {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.4);
    margin-bottom: 8px;
}

.footer-icp {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.3);
}

.footer-icp a {
    color: rgba(255,255,255,0.3);
}

/* ============ 按钮 ============ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 24px;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.btn-primary {
    background: var(--primary-color);
    color: #fff;
}

.btn-primary:hover {
    background: var(--primary-dark);
    color: #fff;
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
}

.btn-outline:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn-danger {
    background: var(--danger-color);
    color: #fff;
}

.btn-danger:hover {
    background: #c53030;
    color: #fff;
}

.btn-sm {
    padding: 6px 14px;
    font-size: 0.8rem;
}

.btn-lg {
    padding: 14px 32px;
    font-size: 1rem;
}

/* ============ 表单 ============ */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.form-control {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    color: var(--text-primary);
    background: var(--bg-primary);
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.15);
}

textarea.form-control {
    resize: vertical;
    min-height: 100px;
}

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23718096' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

/* ============ 密码访问弹窗 ============ */
.password-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.password-modal.active {
    display: flex;
}

.password-modal .modal-content {
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    padding: 40px;
    max-width: 400px;
    width: 90%;
    text-align: center;
}

.password-modal .modal-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.password-modal .modal-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 24px;
}

/* ============ 搜索结果 ============ */
.search-header {
    padding: 30px 0;
}

.search-header .search-box {
    display: flex;
    gap: 12px;
    max-width: 600px;
}

.search-header .search-box input {
    flex: 1;
    padding: 12px 20px;
    border: 2px solid var(--border-color);
    border-radius: 50px;
    font-size: 1rem;
    outline: none;
    transition: var(--transition);
}

.search-header .search-box input:focus {
    border-color: var(--primary-color);
}

.search-header .search-box button {
    padding: 12px 30px;
    background: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
}

.search-header .search-box button:hover {
    background: var(--primary-dark);
}

.search-result-info {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 20px;
}

/* ============ 响应式 ============ */
@media (max-width: 1024px) {
    .photos-waterfall {
        column-count: 3;
    }
}

@media (max-width: 768px) {
    /* 头部导航紧凑化 */
    .header-inner {
        height: 48px;
    }
    
    .site-logo {
        font-size: 1rem;
        gap: 6px;
    }
    
    .site-logo img {
        height: 28px;
    }
    
    .site-logo .logo-icon {
        width: 28px;
        height: 28px;
        font-size: 0.9rem;
    }

    /* Banner区域紧凑化 */
    .hero-section {
        padding: 20px 0;
    }

    .hero-title {
        font-size: 1.3rem;
        margin-bottom: 6px;
    }
    
    .hero-subtitle {
        font-size: 0.85rem;
        margin-bottom: 12px;
    }

    .hero-stats {
        gap: 15px;
    }
    
    .hero-stat .stat-num {
        font-size: 1.2rem;
    }
    
    .hero-stat .stat-label {
        font-size: 0.7rem;
    }

    /* 内容区域 */
    .content-section {
        padding: 12px 0;
    }
    
    .section-header {
        flex-direction: row;
        align-items: center;
        gap: 6px;
        margin-bottom: 10px;
    }
    
    .section-title {
        font-size: 1rem;
        padding-left: 10px;
    }
    
    .section-title::before {
        width: 3px;
    }

    /* 分类标签紧凑化 */
    .category-tabs {
        gap: 6px;
        margin-bottom: 12px;
    }
    
    .category-tab {
        padding: 5px 12px;
        font-size: 0.8rem;
    }

    /* 活动卡片单列 */
    .events-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .event-card {
        border-radius: var(--radius-sm);
    }
    
    .event-card .card-cover {
        padding-top: 45%;
    }
    
    .event-card .card-body {
        padding: 10px 12px;
    }
    
    .event-card .card-title {
        font-size: 0.95rem;
        margin-bottom: 4px;
    }
    
    .event-card .card-meta {
        font-size: 0.75rem;
        gap: 8px;
        margin-bottom: 8px;
    }
    
    .event-card .card-footer {
        padding-top: 8px;
    }
    
    .event-card .card-stats {
        gap: 10px;
        font-size: 0.72rem;
    }
    
    .event-card .card-btn {
        padding: 4px 12px;
        font-size: 0.78rem;
    }

    /* 相册网格 */
    .albums-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    
    .album-card .album-cover {
        height: 100px;
    }
    
    .album-card .album-info {
        padding: 8px;
    }
    
    .album-card .album-title {
        font-size: 0.8rem;
    }

    /* 瀑布流 */
    .photos-waterfall {
        column-count: 2;
        column-gap: 6px;
    }
    
    .photo-item {
        margin-bottom: 6px;
        border-radius: var(--radius-sm);
    }

    /* 导航 */
    .header-nav {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    /* 移动端导航展开样式 */
    .header-nav.mobile-open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
        padding: 12px 16px;
        gap: 0;
        z-index: 1000;
        border-top: 1px solid var(--border-color);
    }

    .header-nav.mobile-open a {
        padding: 12px 0;
        border-bottom: 1px solid #f0f0f0;
        color: var(--text-primary);
        font-size: 0.95rem;
    }

    .header-nav.mobile-open a:last-child {
        border-bottom: none;
    }

    .header-nav.mobile-open a:hover,
    .header-nav.mobile-open a.active {
        color: var(--primary-color);
    }

    .header-search {
        display: none;
    }

    /* 活动详情 - 移动端优化 */
    .event-detail {
        border-radius: 10px;
        box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    }
    
    .event-detail .event-cover {
        max-height: 280px;
    }
    
    .event-detail .event-info-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
        padding: 12px;
        margin-bottom: 16px;
        border-radius: 8px;
    }
    
    .event-detail .event-body {
        padding: 16px;
    }
    
    .event-detail .event-title {
        font-size: 1.25rem;
        margin-bottom: 12px;
        line-height: 1.4;
    }
    
    .event-detail .info-item .info-icon {
        width: 32px;
        height: 32px;
        font-size: 0.85rem;
    }
    
    .event-detail .info-item .info-text {
        font-size: 0.82rem;
    }
    
    .event-detail .event-desc {
        font-size: 0.9rem;
        line-height: 1.7;
        margin-bottom: 16px;
    }
    
    /* 容器内边距 */
    .container {
        padding: 0 8px;
    }
    
    /* 分页 */
    .pagination {
        padding: 12px 0;
    }
    
    .pagination a, .pagination span {
        padding: 5px 10px;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    /* 更小屏幕进一步优化 */
    .header-inner {
        height: 44px;
    }
    
    .site-logo {
        font-size: 0.9rem;
        gap: 5px;
    }
    
    .site-logo .logo-icon {
        width: 24px;
        height: 24px;
        font-size: 0.8rem;
    }
    
    .hero-section {
        padding: 15px 0;
    }
    
    .hero-title {
        font-size: 1.1rem;
    }
    
    .hero-subtitle {
        font-size: 0.78rem;
        margin-bottom: 10px;
    }
    
    .hero-stats {
        gap: 12px;
    }
    
    .hero-stat .stat-num {
        font-size: 1rem;
    }
    
    .hero-stat .stat-label {
        font-size: 0.65rem;
    }

    /* 瀑布流 */
    .photos-waterfall {
        column-count: 2;
        column-gap: 5px;
    }

    .photo-item {
        margin-bottom: 5px;
    }

    /* 分类标签 */
    .category-tabs {
        gap: 5px;
        margin-bottom: 10px;
    }
    
    .category-tab {
        padding: 4px 10px;
        font-size: 0.75rem;
    }

    /* 活动卡片 */
    .events-grid {
        gap: 8px;
    }
    
    .event-card .card-cover {
        padding-top: 40%;
    }
    
    .event-card .card-body {
        padding: 8px 10px;
    }
    
    .event-card .card-title {
        font-size: 0.88rem;
        margin-bottom: 3px;
        -webkit-line-clamp: 1;
    }
    
    .event-card .card-meta {
        font-size: 0.7rem;
        gap: 6px;
        margin-bottom: 6px;
    }
    
    .event-card .card-footer {
        padding-top: 6px;
    }
    
    .event-card .card-stats {
        gap: 8px;
        font-size: 0.68rem;
    }
    
    .event-card .card-btn {
        padding: 3px 10px;
        font-size: 0.72rem;
    }
    
    /* 相册 */
    .albums-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
    }
    
    .album-card .album-cover {
        height: 85px;
    }
    
    .album-card .album-info {
        padding: 6px;
    }
    
    .album-card .album-title {
        font-size: 0.75rem;
    }

    /* 活动详情 - 移动端优化 */
    .event-detail {
        border-radius: 8px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    }
    
    .event-detail .event-cover {
        max-height: 200px;
    }
    
    .event-detail .event-body {
        padding: 12px;
    }

    .event-detail .event-title {
        font-size: 1.1rem;
        margin-bottom: 10px;
        line-height: 1.4;
    }
    
    .event-detail .event-info-grid {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
        padding: 10px;
        margin-bottom: 12px;
        border-radius: 8px;
    }
    
    .event-detail .info-item {
        gap: 6px;
    }
    
    .event-detail .info-item .info-icon {
        width: 28px;
        height: 28px;
        font-size: 0.75rem;
        border-radius: 6px;
    }
    
    .event-detail .info-item .info-text {
        font-size: 0.78rem;
    }
    
    .event-detail .info-item .info-text .label {
        font-size: 0.68rem;
    }
    
    .event-detail .info-item .info-text .value {
        font-size: 0.8rem;
        font-weight: 600;
    }
    
    .event-detail .event-desc {
        font-size: 0.85rem;
        line-height: 1.6;
        margin-bottom: 12px;
    }
    
    /* 容器 */
    .container {
        padding: 0 6px;
    }
    
    .content-section {
        padding: 10px 0;
    }
    
    .section-header {
        margin-bottom: 8px;
    }
    
    .section-title {
        font-size: 0.9rem;
    }
    
    .section-more {
        font-size: 0.75rem;
    }
    
    /* 搜索框 */
    .search-header .search-box {
        flex-direction: column;
        gap: 6px;
    }
    
    .search-header .search-box input {
        width: 100%;
        padding: 8px 12px;
        font-size: 0.9rem;
    }
    
    .search-header .search-box button {
        width: 100%;
        padding: 8px;
        font-size: 0.9rem;
    }
    
    /* 分页 */
    .pagination {
        padding: 10px 0;
    }
    
    .pagination a, .pagination span {
        padding: 4px 8px;
        font-size: 0.75rem;
    }
}

/* ============ 加载动画 ============ */
.loading-spinner {
    display: flex;
    justify-content: center;
    padding: 40px;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border-color);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ============ 提示消息 ============ */
.alert {
    padding: 14px 20px;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert-success {
    background: #f0fff4;
    color: #276749;
    border: 1px solid #c6f6d5;
}

.alert-error {
    background: #fff5f5;
    color: #c53030;
    border: 1px solid #fed7d7;
}

.alert-warning {
    background: #fffaf0;
    color: #c05621;
    border: 1px solid #feebc8;
}

.alert-info {
    background: #ebf8ff;
    color: #2b6cb0;
    border: 1px solid #bee3f8;
}

/* ============ 标签 ============ */
.tag {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 500;
}

.tag-primary {
    background: rgba(102, 126, 234, 0.1);
    color: var(--primary-color);
}

.tag-success {
    background: rgba(72, 187, 120, 0.1);
    color: var(--success-color);
}

.tag-warning {
    background: rgba(237, 137, 54, 0.1);
    color: var(--warning-color);
}

.tag-danger {
    background: rgba(229, 62, 62, 0.1);
    color: var(--danger-color);
}

/* ============ 分享按钮 ============ */
.btn-share {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    background: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
    flex-shrink: 0;
    margin-top: 4px;
}

.btn-share:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.btn-share:active {
    transform: translateY(0);
}

.btn-share svg {
    flex-shrink: 0;
}

/* ============ 分享弹窗 ============ */
.share-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 20000;
    background: rgba(0, 0, 0, 0.7);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.share-modal.active {
    display: block;
}

.share-modal-mask {
    display: none;
}

.share-modal-content {
    position: relative;
    width: 90%;
    max-width: 400px;
    max-height: 85vh;
    margin: 10vh auto;
    background: #fff;
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -webkit-flex-direction: column;
    flex-direction: column;
    box-shadow: var(--shadow-xl);
    -webkit-animation: modalFadeIn 0.3s ease;
    animation: modalFadeIn 0.3s ease;
}

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

.share-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
}

.share-modal-header h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.share-modal-close {
    width: 32px;
    height: 32px;
    background: none;
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.share-modal-close:hover {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.share-modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 300px;
}

.share-modal-loading {
    text-align: center;
    color: var(--text-secondary);
}

.share-modal-loading .spinner {
    width: 36px;
    height: 36px;
    border: 3px solid var(--border-color);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 12px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.share-modal-loading p {
    font-size: 0.9rem;
    margin: 0;
}

.share-image-wrap {
    width: 100%;
    text-align: center;
}

.share-image-wrap img {
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    -webkit-user-select: all;
    user-select: all;
    -webkit-touch-callout: default;
}

.share-modal-footer {
    padding: 12px 20px 16px;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.share-tip {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .btn-share {
        padding: 8px 14px;
        font-size: 0.85rem;
    }
    
    .btn-share span {
        display: inline;
    }
    
    .share-modal-content {
        width: 92%;
        max-height: 85vh;
    }
    
    .share-modal-body {
        min-height: 250px;
        padding: 16px;
    }
}
