
.group-profile-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}
/* 样式参考 user-profile.php 并做调整 */
.group-profile-header {
    width: 100%;
    height: 300px;
    background-size: cover;
    background-position: center;
    position: relative;
    border-radius: 12px;
    margin-bottom: -80px; /* 使下方内容上移 */
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}
.group-profile-header::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.6), rgba(0,0,0,0.1));
    border-radius: 12px;
}
.group-info-container {
    display: flex;
    position: relative;
    padding: 0 2rem;
    align-items: flex-end;
}
.group-details {
    padding: 1.5rem 2rem;
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.group-title {
    margin: 0;
    font-size: 2rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}
.group-id-badge {
    display: inline-block;
    margin-left: 1rem;
    font-size: 1rem;
    font-weight: 500;
    background-color: #eef2f7;
    color: #5a6e8a;
    padding: 0.3rem 0.8rem;
    border-radius: 8px;
    vertical-align: middle;
}
.group-description { color: #555; margin-top: 0.5rem; }
/* 移除旧的统计样式 */
/*
.group-stats {
    display: flex;
    gap: 2rem;
    padding: 1.5rem 0;
    justify-content: center;
    border-bottom: 1px solid #e0e0e0;
    margin-bottom: 2rem;
}
.stat-item { text-align: center; }
.stat-value { font-size: 1.8rem; font-weight: bold; }
.stat-label { color: #777; }
*/
.profile-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
}
.content-section { background: #fff; padding: 1.5rem; border-radius: 8px; box-shadow: 0 2px 8px rgba(0,0,0,0.05); }
.section-title { font-size: 1.5rem; margin-top: 0; margin-bottom: 1rem; border-bottom: 2px solid #f0f0f0; padding-bottom: 0.5rem;}
.members-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 1.5rem;
}
.member-card { text-align: center; }
.member-avatar { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; margin-bottom: 0.5rem; }
.member-name { font-weight: bold; }
.member-role { font-size: 0.8rem; color: #fff; background: #888; padding: 2px 6px; border-radius: 4px; display: inline-block; }
.member-role.founder { background: #e74c3c; }
.member-role.admin { background: #3498db; }
/* Ranking list style from group.php */
.ranking-list { list-style: none; padding: 0; }
.ranking-list li { display: flex; align-items: center; padding: 0.75rem 0; border-bottom: 1px solid #f0f0f0; }
.ranking-list li:last-child { border-bottom: none; }
.ranking-rank { font-weight: bold; font-size: 1.2rem; color: #aaa; width: 40px; }
.ranking-user { flex: 1; }
.ranking-count { color: #2c5282; font-weight: 600; }
.copy-link-container {
    margin-top: 1rem;
    display: flex; /* 让链接和按钮在同一行对齐 */
    align-items: center;
}
.group-profile-url {
    color: #007AFF;
    text-decoration: none;
    font-size: 0.9rem;
    word-break: break-all; /* 确保长链接可以换行 */
}
.group-profile-url:hover {
    text-decoration: underline;
}
#copyLinkBtn {
    margin-left: 1rem; /* 与链接保持间距 */
    padding: 0.4rem 0.8rem;
    border: none;
    background: #007AFF;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    flex-shrink: 0; /* 防止按钮被压缩 */
}
.photo-gallery {
    margin-top: 2rem;
}
.image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}
.image-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.2s;
}
.image-card:hover { transform: translateY(-5px); }
.image-card a { display: block; }
.image-card img { width: 100%; height: 200px; object-fit: cover; }
.image-info { padding: 1rem; }
.image-title { font-weight: bold; margin-bottom: 0.5rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.image-meta { font-size: 0.85rem; color: #777; }

/* 新增统计卡片样式 - 参考自 user-profile.php */
.stats-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    padding: 1.5rem 0;
    border-bottom: 1px solid #e0e0e0;
    margin-bottom: 2rem;
}
.stat-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}
.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.12);
}
.stat-value {
    font-size: 2rem;
    font-weight: 600;
    color: #2c5282;
    display: block;
}
.stat-label {
    font-size: 0.9rem;
    color: #555;
    margin-top: 0.25rem;
    display: block;
}

/* 分页样式 */
.pagination-nav {
    margin: 3rem 0 2rem 0;
    padding: 0;
}

.pagination-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding: 0 1rem;
}

.pagination-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
    min-width: 100px;
    justify-content: center;
}

.pagination-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.4);
    color: white;
    text-decoration: none;
}

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

.pagination-btn i {
    font-size: 0.9rem;
}

.pagination-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    padding: 0.75rem 1.5rem;
    border-radius: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    font-weight: 500;
}

.current-page {
    color: #667eea;
    font-size: 1.1rem;
    font-weight: 600;
}

.page-separator {
    color: #999;
    margin: 0 0.25rem;
}

.total-pages {
    color: #666;
}

.pagination-numbers {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.page-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    color: #666;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.page-number:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
    text-decoration: none;
}

.page-number.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
    transform: scale(1.1);
}

.page-ellipsis {
    color: #999;
    font-weight: 500;
    padding: 0 0.5rem;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .pagination-container {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .pagination-btn {
        min-width: 120px;
    }
    
    .pagination-numbers {
        gap: 0.25rem;
    }
    
    .page-number {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
}