/* 群聊页面整体样式 */
.groupchat-page {
    background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
    min-height: 100vh;
    padding-bottom: 140px;
}

/* 顶部导航栏 */
.groupchat-page .aui-navBar {
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}

.groupchat-page .aui-center-title {
    color: #f1f5f9;
    font-weight: 600;
    font-size: 18px;
    letter-spacing: 0.5px;
}

/* 移除原来的header，改为更简洁的设计 */
.groupchat-header {
    padding: 24px 20px 32px;
    text-align: center;
    background: transparent;
}

.groupchat-header h1 {
    margin: 0 0 8px 0;
    font-size: 28px;
    font-weight: 700;
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
}

.groupchat-header p {
    margin: 0;
    color: rgba(226, 232, 240, 0.6);
    font-size: 14px;
    line-height: 1.5;
}

/* 群聊列表容器 */
.groupchat-list {
    padding: 0 16px 20px;
}

/* 群聊卡片 - 重新设计 */
.groupchat-card {
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid rgba(148, 163, 184, 0.12);
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.groupchat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(251, 191, 36, 0.4), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}

.groupchat-card:hover {
    transform: translateY(-4px);
    border-color: rgba(251, 191, 36, 0.3);
    background: rgba(30, 41, 59, 0.8);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
}

.groupchat-card:hover::before {
    opacity: 1;
}

/* 卡片头部 */
.groupchat-card-header {
    display: flex;
    align-items: center;
    margin-bottom: 16px;
    gap: 12px;
}

/* 群聊图标 - 重新设计 */
.groupchat-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.15) 0%, rgba(236, 72, 153, 0.15) 100%);
    border: 1px solid rgba(251, 191, 36, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}

.groupchat-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 16px;
}

.groupchat-icon::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}

.groupchat-card:hover .groupchat-icon::after {
    opacity: 1;
}

/* 标题区域 */
.groupchat-title {
    flex: 1;
    min-width: 0;
}

.groupchat-title h3 {
    margin: 0 0 4px 0;
    font-size: 18px;
    font-weight: 600;
    color: #f1f5f9;
    letter-spacing: -0.3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 价格标签 - 重新设计 */
.groupchat-price {
    font-size: 15px;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 12px;
    white-space: nowrap;
    flex-shrink: 0;
    letter-spacing: 0.3px;
}

.groupchat-price.free {
    background: linear-gradient(135deg, rgba(81, 224, 145, 0.15) 0%, rgba(16, 185, 129, 0.15) 100%);
    color: #51e091;
    border: 1px solid rgba(81, 224, 145, 0.3);
}

.groupchat-price.paid {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.15) 0%, rgba(245, 158, 11, 0.15) 100%);
    color: #fbbf24;
    border: 1px solid rgba(251, 191, 36, 0.3);
}

/* 描述文字 */
.groupchat-description {
    color: rgba(226, 232, 240, 0.7);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 18px;
    padding-left: 68px;
    min-height: 42px;
}

/* 按钮 - 重新设计 */
.groupchat-btn {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    letter-spacing: 0.5px;
}

.groupchat-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.groupchat-btn:active::before {
    width: 300px;
    height: 300px;
}

.groupchat-btn.free {
    background: linear-gradient(135deg, #51e091 0%, #10b981 100%);
    color: #fff;
    box-shadow: 0 4px 16px rgba(81, 224, 145, 0.3);
}

.groupchat-btn.free:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(81, 224, 145, 0.4);
}

.groupchat-btn.free:active {
    transform: translateY(0);
}

.groupchat-btn.paid {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: #fff;
    box-shadow: 0 4px 16px rgba(251, 191, 36, 0.3);
}

.groupchat-btn.paid:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(251, 191, 36, 0.4);
}

.groupchat-btn.paid:active {
    transform: translateY(0);
}

/* 空状态 */
.groupchat-empty {
    text-align: center;
    padding: 80px 20px 40px;
    color: rgba(226, 232, 240, 0.5);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 300px;
}

.groupchat-empty-icon {
    font-size: 64px;
    margin-bottom: 20px;
    opacity: 0.4;
    line-height: 1;
    filter: grayscale(0.3);
}

.groupchat-empty-text {
    font-size: 16px;
    line-height: 1.6;
    color: rgba(226, 232, 240, 0.5);
    max-width: 280px;
}

/* 底部菜单样式 - 保持与其他页面一致 */
.aui-footer {
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    position: fixed;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    display: flex;
    align-items: center;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(15, 23, 42, .92);
    box-shadow: 0 20px 45px rgba(2, 6, 23, .65);
    border: 1px solid rgba(99, 102, 241, .3);
    backdrop-filter: blur(24px);
}

.aui-footer:after {
    display: none;
}

.aui-tabBar-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    color: #94a3b8;
    font-size: 12px;
    transition: color .2s ease;
}

.aui-tabBar-item-icon {
    width: 44px;
    height: 44px;
    border-radius: 16px;
    background: rgba(148, 163, 184, .08);
    border: 1px solid rgba(148, 163, 184, .3);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .2s ease;
}

.aui-tabBar-item-icon svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    fill: none;
}

.aui-tabBar-item-text {
    font-size: 12px;
    letter-spacing: .05em;
    color: inherit;
}

.aui-tabBar-item-active {
    color: #fbbf24;
}

.aui-tabBar-item-active .aui-tabBar-item-icon {
    background: linear-gradient(135deg, rgba(251, 191, 36, .15), rgba(236, 72, 153, .2));
    border-color: rgba(251, 191, 36, .6);
    color: #fbbf24;
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(15, 23, 42, .85);
}

/* 响应式优化 */
@media (max-width: 375px) {
    .groupchat-header h1 {
        font-size: 24px;
    }
    
    .groupchat-card {
        padding: 16px;
    }
    
    .groupchat-icon {
        width: 48px;
        height: 48px;
        font-size: 24px;
    }
    
    .groupchat-description {
        padding-left: 60px;
    }
}
