/* 小组功能样式 */

/* 页面标题区域优化 */
.container.my-4 > .row.mb-4:first-child h1 {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #2563eb 0%, #3b82f6 50%, #60a5fa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.container.my-4 > .row.mb-4:first-child p.text-muted {
    font-size: 1.1rem;
    color: #64748b;
    font-weight: 500;
    margin-bottom: 0;
}

/* 页面顶部按钮优化 */
.container.my-4 > .row.mb-4:first-child .btn {
    border-radius: 12px;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border: none;
    letter-spacing: 0.01em;
}

.container.my-4 > .row.mb-4:first-child .btn-primary {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
}

.container.my-4 > .row.mb-4:first-child .btn-primary:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

.container.my-4 > .row.mb-4:first-child .btn-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
}

.container.my-4 > .row.mb-4:first-child .btn-success:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

.container.my-4 > .row.mb-4:first-child .btn-secondary {
    background: linear-gradient(135deg, #94a3b8 0%, #64748b 100%);
    color: white;
    opacity: 0.7;
    cursor: not-allowed;
}

/* 搜索与筛选栏样式 */
.container .card.p-3 {
    border-radius: 16px;
    border: 1px solid rgba(226, 232, 240, 0.8);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}

.container .card.p-3 .form-control,
.container .card.p-3 .form-select {
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    box-shadow: none;
}

.container .card.p-3 .btn-primary {
    border-radius: 12px;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    border: none;
}

.container .card.p-3 .btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.3);
}

/* 小组卡片样式 */
.group-card {
    border: none;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08), 0 8px 24px rgba(0, 0, 0, 0.06);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: white;
    border: 1px solid rgba(226, 232, 240, 0.8);
    position: relative;
}

.group-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.03) 0%, rgba(139, 92, 246, 0.03) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    z-index: 0;
}

.group-card:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12), 0 4px 16px rgba(59, 130, 246, 0.15);
    border-color: rgba(59, 130, 246, 0.3);
}

.group-card:hover::before {
    opacity: 1;
}

.group-card > * {
    position: relative;
    z-index: 1;
}

.group-banner {
    border-radius: 0;
    position: relative;
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.group-card:hover .group-banner {
    transform: scale(1.05);
}

.group-banner::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.2) 50%, rgba(0, 0, 0, 0.4) 100%);
    transition: opacity 0.4s ease;
}

.group-card:hover .group-banner::after {
    opacity: 0.9;
}

/* 卡片内容区域优化 */
.group-card .card-body {
    padding: 1.5rem;
    background: white;
}

.group-card .card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e293b;
    transition: color 0.3s ease;
}

.group-card:hover .card-title a {
    color: #2563eb;
}

.group-card .card-text {
    color: #64748b;
    line-height: 1.6;
    font-size: 0.9rem;
}

.group-card .d-flex.justify-content-between {
    padding: 0.75rem;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 10px;
    margin-bottom: 1rem;
}

.group-card .d-flex.justify-content-between .text-muted {
    font-weight: 600;
    color: #475569;
}

.group-card .d-flex.justify-content-between i {
    margin-right: 0.5rem;
    font-size: 1rem;
}

.group-card .border-top {
    border-color: #e2e8f0 !important;
    padding-top: 1rem;
}

.group-card .border-top small {
    color: #64748b;
    font-weight: 500;
    margin-bottom: 0.75rem;
}

.group-card .border-top small a {
    color: #2563eb;
    font-weight: 600;
    transition: color 0.3s ease;
}

.group-card .border-top small a:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

.group-card .border-top small i {
    color: #f59e0b;
}

/* 小组详情页横幅 */
.group-detail-banner {
    position: relative;
	height: 520px;
    background-size: cover;
    background-position: center;
    border-radius: 0;
    overflow: hidden;
}

.group-detail-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.3) 50%, rgba(0, 0, 0, 0.7) 100%);
    z-index: 1;
}

.group-detail-banner .container {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    align-items: center;
	padding-bottom: 2.5rem;
}

.group-banner-row {
	min-height: 460px;
	align-items: end !important;
}

.group-banner-header {
	gap: 1rem;
	position: absolute;
	left: 24px;
	bottom: 24px;
	z-index: 3;
	display: flex;
	align-items: center;
	/* 预留给左下角圆形Logo的空间，避免与文字重叠 */
	padding-left: 190px;
}

.group-banner-logo {
	position: absolute;
	left: 24px;
	bottom: 24px;
	z-index: 3;
}

.group-banner-logo-img,
.group-banner-logo-placeholder {
	width: 150px;
	height: 150px;
	border: 6px solid rgba(255, 255, 255, 0.95);
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
	border-radius: 50%;
}

.group-banner-logo-img {
    object-fit: cover;
	border-radius: 50% !important;
}

.group-banner-logo-placeholder {
    border-radius: 50%;
}

.group-banner-heading {
	font-size: clamp(2.2rem, 5vw, 4rem);
    font-weight: 800;
	color: #ffffff !important;
	text-shadow: 0 3px 10px rgba(0, 0, 0, 0.65);
    letter-spacing: -0.01em;
}

.group-banner-meta {
	font-size: clamp(0.9rem, 1.8vw, 1rem);
	color: #ffffff !important;
    opacity: 0.95;
    text-transform: lowercase;
    letter-spacing: 0.02em;
	text-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
}

.group-banner-actions .btn,
.group-banner-actions .group-banner-badge {
    width: 100%;
}

.group-banner-actions {
	display: flex;
	justify-content: flex-end;
	align-items: end;
	gap: 0.75rem;
	position: absolute;
	right: 24px;
	bottom: 24px;
	z-index: 3;
}

.group-banner-badge {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.group-banner-action-stack {
    width: 100%;
}

.group-admin-actions {
    gap: 0.5rem;
    width: 100%;
}

.group-admin-actions .btn {
    flex: 1 1 45%;
    min-width: 0;
}

@media (min-width: 768px) {
    .group-banner-actions .btn,
    .group-banner-actions .group-banner-badge,
    .group-banner-action-stack {
        width: auto;
    }
    
    .group-admin-actions {
        width: auto;
    }
    
    .group-admin-actions .btn {
        flex: 0 0 auto;
    }
}

.group-share-controls {
    gap: 0.5rem;
    flex-wrap: wrap;
}

.group-share-controls .form-control {
    min-width: 0;
}

.group-photo-grid {
    width: 100%;
    max-width: 100%;
}

@media (max-width: 768px) {
    .group-share-controls {
        flex-direction: column;
    }
    
    .group-share-controls .btn {
        width: 100%;
    }
}

/* 统计卡片 */
.stat-card {
    text-align: center;
    padding: 1.5rem;
    background: white;
    border-radius: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(13, 110, 253, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.stat-card:hover {
    border-color: #0d6efd;
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 8px 20px rgba(13, 110, 253, 0.25);
}

.stat-card:hover::before {
    opacity: 1;
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #0d6efd, #0a58ca, #667eea);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 1;
}

.stat-label {
    font-size: 0.9rem;
    color: #6c757d;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* 成员卡片 */
.member-card {
    padding: 1.25rem;
    border-radius: 12px;
    background: white !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid #dee2e6;
    position: relative;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.member-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(13, 110, 253, 0.05), rgba(102, 126, 234, 0.05));
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.member-card:hover {
    background: white;
    border-color: #0d6efd;
    box-shadow: 0 8px 16px rgba(13, 110, 253, 0.15);
    transform: translateY(-4px);
}

.member-card:hover::after {
    opacity: 1;
}

/* 照片网格 */
.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

/* 照片网格 - 3列布局（横3竖5，每页15张） */
.photo-grid-3col {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 1.25rem !important;
    margin-top: 1rem;
    margin-bottom: 0;
    padding: 0;
    width: 100%;
    grid-auto-rows: auto;
}

/* 使用图库页面的photo-grid样式 - 横3竖5布局 */
.groups-detail .photo-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    grid-template-rows: repeat(5, auto) !important;
    gap: 24px 16px !important;
    margin: 0 auto 30px !important;
    padding: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
}

@media (max-width: 992px) {
    .groups-detail .photo-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        grid-template-rows: auto !important;
    }
}

@media (max-width: 576px) {
    .groups-detail .photo-grid {
        grid-template-columns: 1fr !important;
        grid-template-rows: auto !important;
    }
}

@media (max-width: 992px) {
    .photo-grid-3col {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1rem !important;
    }
}

@media (max-width: 576px) {
    .photo-grid-3col {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }
}

.photo-grid-item {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 0;
}

/* 照片信息框样式 - 白色框在照片下方 */
.photo-grid-item .photo-card-new {
    display: flex !important;
    flex-direction: column !important;
    background: white !important;
    border: 1px solid #e9ecef !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none !important;
    color: inherit !important;
    height: 100% !important;
    width: 100% !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
    margin: 0 !important;
}

.photo-grid-item .photo-card-new:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    border-color: #0d6efd;
    text-decoration: none;
    color: inherit;
}

.photo-grid-item .photo-image-wrapper {
    position: relative;
    width: 100% !important;
    overflow: hidden !important;
    background: #f8f9fa !important;
    aspect-ratio: 4 / 3 !important;
    flex-shrink: 0;
}

.photo-grid-item .photo-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.photo-grid-item .photo-card-new:hover .photo-image {
    transform: scale(1.08);
}

.photo-grid-item .photo-info {
    padding: 14px;
    background: white;
    border-top: 1px solid #f0f0f0;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.photo-grid-item .photo-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 8px;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-height: 1.4em;
}

.photo-grid-item .photo-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 0;
    border-top: none;
    margin-top: auto;
    font-size: 0.8rem;
    color: #64748b;
}

.photo-grid-item .photo-author {
    font-size: 0.8rem;
    color: #64748b;
    font-weight: 400;
}

.photo-grid-item .photo-stats-inline {
    font-size: 0.8rem;
    color: #64748b;
    font-weight: 400;
    margin-left: 8px;
}

/* 排行榜样式 */
.leaderboard-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.leaderboard-item {
    padding: 1.25rem;
    border-radius: 12px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    margin-bottom: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-left: 4px solid transparent;
    border: 2px solid #e9ecef;
    position: relative;
    overflow: hidden;
}

.leaderboard-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(135deg, #0d6efd, #667eea);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.leaderboard-item:hover {
    background: white;
    border-left-color: #0d6efd;
    border-color: #0d6efd;
    box-shadow: 0 8px 16px rgba(13, 110, 253, 0.15);
    transform: translateX(4px);
}

.leaderboard-item:hover::before {
    transform: scaleY(1);
}

.leaderboard-item.rank-1 {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    border-left-color: #ffd700;
    border-color: #ffd700;
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.3);
}

.leaderboard-item.rank-1::before {
    background: linear-gradient(135deg, #ffd700, #ffed4e);
}

.leaderboard-item.rank-2 {
    background: linear-gradient(135deg, #c0c0c0 0%, #e8e8e8 100%);
    border-left-color: #c0c0c0;
    border-color: #c0c0c0;
    box-shadow: 0 4px 12px rgba(192, 192, 192, 0.3);
}

.leaderboard-item.rank-2::before {
    background: linear-gradient(135deg, #c0c0c0, #e8e8e8);
}

.leaderboard-item.rank-3 {
    background: linear-gradient(135deg, #cd7f32 0%, #e8a87c 100%);
    border-left-color: #cd7f32;
    border-color: #cd7f32;
    box-shadow: 0 4px 12px rgba(205, 127, 50, 0.3);
}

.leaderboard-item.rank-3::before {
    background: linear-gradient(135deg, #cd7f32, #e8a87c);
}

/* 按钮样式 */
.btn-group-action {
    border-radius: 10px;
    padding: 0.625rem 1rem;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
    letter-spacing: 0.01em;
}

.btn-group-action:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(59, 130, 246, 0.4);
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: white;
}

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

/* 标签样式 */
.group-badge {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.875rem;
    display: inline-block;
}

.badge-founder {
    background: linear-gradient(135deg, #dc3545, #c82333);
    color: white;
}

.badge-admin {
    background: linear-gradient(135deg, #0d6efd, #0a58ca);
    color: white;
}

.badge-member {
    background: linear-gradient(135deg, #6c757d, #5a6268);
    color: white;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .photo-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 1rem;
    }
    
    .group-detail-banner {
        height: 250px;
    }
    
    .stat-value {
        font-size: 2rem;
    }
}

/* 移动端适配 - 小组详情页 */
@media (max-width: 768px) {
    /* 横幅区域优化 */
    .group-detail-banner {
		height: 240px !important;
		min-height: 240px;
    }
    
    .group-detail-banner .container {
        padding: 1rem !important;
		padding-bottom: 1.5rem !important;
    }
    
    .group-detail-banner .row {
        flex-direction: column !important;
        align-items: flex-start !important;
    }
    
    .group-detail-banner .col-md-8,
    .group-detail-banner .col-md-4 {
        width: 100% !important;
        max-width: 100% !important;
        flex: 0 0 100% !important;
    }
    
    .group-detail-banner .d-flex {
        flex-wrap: wrap;
        margin-bottom: 1rem !important;
    }
    
    .group-detail-banner .me-3 {
        margin-right: 0.75rem !important;
    }
    
    .group-detail-banner .rounded-circle {
		width: 60px !important;
		height: 60px !important;
		border-width: 3px !important;
    }
	
	/* 移动端：Logo更小，因此为标题区域预留较小空间 */
	.group-banner-header {
		padding-left: 84px !important;
	}
    
    .group-detail-banner h1 {
		font-size: 1.4rem !important;
        margin-bottom: 0.5rem !important;
        line-height: 1.3 !important;
    }
    
    .group-detail-banner p {
        font-size: 0.9rem !important;
        margin-bottom: 1rem !important;
    }
    
    .group-detail-banner .col-md-4 {
        text-align: left !important;
        margin-top: 0.5rem;
    }
    
    .group-detail-banner .btn-lg {
        padding: 0.5rem 1rem !important;
        font-size: 0.9rem !important;
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    .group-detail-banner .btn-group {
        width: 100%;
        flex-direction: column;
    }
    
    .group-detail-banner .btn-group .btn {
        width: 100%;
        margin: 0.25rem 0;
    }
    /* 管理操作按钮在移动端并排显示，避免过宽占满 */
    .group-detail-banner .group-admin-actions {
        width: auto !important;
        flex-direction: row !important;
        flex-wrap: wrap !important;
        gap: 8px !important;
    }
    .group-detail-banner .group-admin-actions .btn {
        width: auto !important;
        margin: 0 !important;
        min-width: 104px !important;
        flex: 0 0 auto !important;
    }
    
    .group-detail-banner .badge {
        font-size: 0.85rem !important;
        padding: 0.4rem 0.8rem !important;
        display: inline-block;
        width: 100%;
        text-align: center;
        margin-bottom: 0.5rem;
    }
	
	/* —— 重新排版横幅（移动端） —— */
	/* 让标题头部改为文流布局，避免与Logo重叠 */
	.group-banner-header {
		position: static !important;
		left: auto !important;
		bottom: auto !important;
		padding-left: 0 !important;
		display: flex !important;
		flex-direction: row !important;
		align-items: center !important;
		gap: 12px !important;
		margin-bottom: 8px !important;
	}
	/* Logo 改为随文流排列 */
	.group-banner-logo {
		position: static !important;
		left: auto !important;
		bottom: auto !important;
	}
	/* 文字容器允许缩小，避免换行拥挤 */
	.group-banner-text {
		min-width: 0 !important;
	}
	/* 操作区改为文流并占满宽度，按钮易点 */
	.group-banner-actions {
		position: static !important;
		right: auto !important;
		bottom: auto !important;
		width: 100% !important;
		justify-content: flex-start !important;
		align-items: center !important;
		gap: 8px !important;
		row-gap: 10px !important;
		flex-wrap: wrap !important;
		margin-top: 8px !important;
	}
	.group-banner-actions .btn,
	.group-banner-actions .group-banner-badge {
		width: auto !important;
	}
	/* 移动端按钮与徽章更轻量 */
	.group-banner-actions .btn {
		padding: 0.45rem 0.8rem !important;
		font-size: 0.95rem !important;
		border-radius: 12px !important;
		min-width: 110px !important;
	}
	.group-banner-actions .group-banner-badge {
		padding: 0.35rem 0.7rem !important;
		font-size: 0.9rem !important;
		border-radius: 10px !important;
	}
	/* 移动端标题与副标题更紧凑 */
	.group-banner-heading {
		font-size: 1.25rem !important;
		line-height: 1.25 !important;
		margin: 0 !important;
	}
	.group-banner-meta {
		font-size: 0.85rem !important;
	}
	/* 统计卡片更紧凑 */
	.stat-card {
		padding: 0.9rem !important;
	}
	.stat-value {
		font-size: 1.35rem !important;
	}
	.stat-label {
		font-size: 0.72rem !important;
	}
    
    /* 小组信息卡片优化 */
    .card.mb-4 {
        margin-bottom: 1rem !important;
    }
    
    .card-body {
        padding: 1rem !important;
    }
    
    .card-title {
        font-size: 1.1rem !important;
        margin-bottom: 0.75rem !important;
    }
    
    .card-text {
        font-size: 0.9rem !important;
        line-height: 1.6;
        margin-bottom: 1rem !important;
    }
    
    .input-group {
        flex-direction: column;
    }
    
    .input-group .form-control {
        border-radius: 8px 8px 0 0 !important;
        margin-bottom: 0.5rem;
        font-size: 0.85rem;
    }
    
    .input-group .btn {
        border-radius: 0 0 8px 8px !important;
        width: 100%;
        margin: 0;
    }
    
    .input-group .btn:first-of-type {
        border-radius: 0 !important;
        border-top: 1px solid #dee2e6;
    }
    
    /* 统计卡片优化 */
    .stat-card {
        padding: 1rem !important;
        margin-bottom: 0.5rem;
    }
    
    .stat-value {
        font-size: 1.5rem !important;
        margin-bottom: 0.25rem !important;
    }
    
    .stat-label {
        font-size: 0.75rem !important;
    }
    
    /* 小组成员卡片优化 */
    .member-card {
        padding: 0.75rem !important;
        margin-bottom: 0.5rem;
    }
    
    .member-card .rounded-circle {
        width: 40px !important;
        height: 40px !important;
        border-width: 2px !important;
    }
    
    .member-card .me-3 {
        margin-right: 0.75rem !important;
    }
    
    .member-card .fw-bold {
        font-size: 0.9rem !important;
    }
    
    .group-badge {
        font-size: 0.7rem !important;
        padding: 0.25rem 0.5rem !important;
    }
    
    /* 排行榜优化 */
    .list-group-item {
        padding: 0.75rem !important;
        flex-wrap: wrap;
    }
    
    .list-group-item .me-3 {
        margin-right: 0.5rem !important;
        min-width: 30px !important;
        font-size: 0.95rem !important;
    }
    
    .list-group-item .rounded-circle {
        width: 35px !important;
        height: 35px !important;
    }
    
    .list-group-item .fw-bold {
        font-size: 0.85rem !important;
    }
    
    .list-group-item small {
        font-size: 0.75rem !important;
    }
    
    .list-group-item .badge {
        font-size: 0.75rem !important;
        padding: 0.3rem 0.6rem !important;
        margin-top: 0.5rem;
        width: 100%;
        text-align: center;
    }
    
    /* 照片网格进一步优化 */
    .groups-detail .photo-grid {
        gap: 12px !important;
    }
    
    .photo-grid-item .photo-info {
        padding: 10px !important;
    }
    
    .photo-grid-item .photo-title {
        font-size: 0.85rem !important;
    }
    
    .photo-grid-item .photo-meta {
        font-size: 0.75rem !important;
    }
    
    .photo-grid-item .photo-footer {
        font-size: 0.7rem !important;
        flex-wrap: wrap;
    }
    
    .photo-action-buttons {
        flex-direction: column !important;
        gap: 8px !important;
        padding: 10px !important;
    }
    
    .btn-view-details,
    .btn-share-chat {
        width: 100% !important;
        padding: 0.6rem !important;
        font-size: 0.85rem !important;
    }
    
    /* 分页优化 */
    .pagination {
        margin-top: 1.5rem !important;
        margin-bottom: 1rem !important;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .pagination .page-link {
        padding: 0.5rem 0.75rem !important;
        font-size: 0.85rem !important;
        margin: 0.25rem !important;
    }
    
    .page-jump-container {
        display: flex;
        gap: 0.5rem;
        margin: 0.25rem;
    }
    
    .page-jump-input {
        width: 60px !important;
        padding: 0.5rem !important;
        font-size: 0.85rem !important;
    }
    
    .page-jump-btn {
        padding: 0.5rem 0.75rem !important;
        font-size: 0.85rem !important;
    }
    
    /* 卡片头部优化 */
    .card-header {
        padding: 0.75rem 1rem !important;
    }
    
    .card-header h5 {
        font-size: 1rem !important;
    }
    
    .card-header .d-flex {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 0.5rem !important;
    }
    
    .card-header .form-select {
        width: 100% !important;
        font-size: 0.85rem !important;
    }
    
    /* 容器优化 */
    .container.my-4 {
        padding-left: 0.75rem !important;
        padding-right: 0.75rem !important;
    }
    
    /* 行布局优化 */
    .row.align-items-start {
        flex-direction: column;
    }
    
    .row .col-lg-8,
    .row .col-lg-4 {
        width: 100% !important;
        max-width: 100% !important;
        flex: 0 0 100% !important;
        margin-bottom: 1rem;
    }
    
    /* 统计卡片网格优化 */
    .row.g-3 {
        margin: 0 !important;
    }
    
    .row.g-3 > [class*="col-"] {
        padding: 0.5rem !important;
    }
    
    /* 成员列表网格优化 */
    .row.g-3 .col-md-4,
    .row.g-3 .col-sm-6 {
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }
}

/* 超小屏幕优化 (小于576px) */
@media (max-width: 576px) {
    .group-detail-banner {
        height: 240px !important;
    }
    
    .group-detail-banner h1 {
        font-size: 1.1rem !important;
    }
    
    .group-detail-banner .rounded-circle {
        width: 45px !important;
        height: 45px !important;
    }
    
    .stat-value {
        font-size: 1.3rem !important;
    }
    
    .stat-label {
        font-size: 0.7rem !important;
    }
    
    .card-body {
        padding: 0.75rem !important;
    }
    
    .member-card {
        padding: 0.6rem !important;
    }
    
    .photo-grid-item .photo-info {
        padding: 8px !important;
    }
    
    .pagination .page-link {
        padding: 0.4rem 0.6rem !important;
        font-size: 0.8rem !important;
    }
}

/* 横屏手机优化 */
@media (max-width: 768px) and (orientation: landscape) {
    .group-detail-banner {
        height: 200px !important;
    }
    
    .group-detail-banner h1 {
        font-size: 1.4rem !important;
    }
}

/* 夜间模式支持 */
@media (prefers-color-scheme: dark) {
    .group-card {
        background: #1a1a1a;
        color: white;
    }
    
    .stat-card {
        background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
    }
    
    .member-card {
        background: #2a2a2a;
        color: white;
    }
    
    .photo-grid-item {
        background: #1a1a1a;
    }
    
    .leaderboard-item {
        background: #2a2a2a;
        color: white;
    }
}

/* 动画效果 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.group-card,
.member-card,
.photo-grid-item {
    animation: fadeIn 0.5s ease;
}

/* 加载状态 */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

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

/* 分享卡片样式 */
.share-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    box-shadow: 0 8px 30px rgba(102, 126, 234, 0.3);
}

.share-button {
    background: white;
    color: #667eea;
    border: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.share-button:hover {
    background: #f8f9fa;
    color: #764ba2;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

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

/* 小组成员和排行榜卡片对齐 */
#members-card,
#leaderboard-card {
    display: flex;
    flex-direction: column;
    position: relative;
}

#members-card .card-body,
#leaderboard-card .card-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
}

#members-card .flex-fill,
#leaderboard-card .flex-fill {
    flex: 1 1 auto;
    background: white;
    min-height: 0;
    width: 100%;
}

/* 确保两个卡片在同一行时顶部对齐 */
.row > .col-lg-8:has(#members-card),
.row > .col-lg-4:has(#leaderboard-card) {
    display: flex;
    flex-direction: column;
}

/* 使用CSS Grid确保对齐（如果支持） */
@supports (display: grid) {
    .row.align-cards {
        display: grid;
        grid-template-columns: 2fr 1fr;
        gap: 1rem;
        align-items: start;
    }
}


/* 空状态提示优化 */
.alert-info {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    border: 2px solid #93c5fd;
    border-radius: 16px;
    padding: 2rem;
    color: #1e40af;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
}

.alert-info i {
    font-size: 1.5rem;
    margin-right: 0.75rem;
    color: #3b82f6;
}

/* 分页样式优化 */
.pagination {
    margin-top: 3rem;
    margin-bottom: 2rem;
}

.pagination .page-link {
    border-radius: 10px;
    margin: 0 4px;
    padding: 0.75rem 1rem;
    border: 2px solid #e2e8f0;
    color: #475569;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.pagination .page-link:hover {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border-color: #3b82f6;
    color: #2563eb;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}

.pagination .page-item.active .page-link {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    border-color: #3b82f6;
    color: white;
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.35);
}

.pagination .page-item.disabled .page-link {
    opacity: 0.5;
    cursor: not-allowed;
    background: #f1f5f9;
}

