/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: #f5f5f5;
    color: #333;
}

/* 页面容器 */
#app {
    min-height: 100vh;
    background-color: #f5f5f5;
}

/* 主内容区域 */
.page-main {
    width: 100%;
    max-width: 768px;
    margin: 0 auto;
    background-color: #f5f5f5;
}

.page-body {
    background-color: #f5f5f5;
}

/* 固定加入按钮 */
.join-group-btn {
    position: fixed;
    bottom: 43px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 12;
    padding: 8px 16px;
    width: 292px;
    text-align: center;
}

.join-group-btn button {
    width: 100%;
    color: #ffffff;
    background: linear-gradient(45deg, #ed6a42, #ed6a42);
    border: none;
    border-radius: 4px;
    height: 37px;
    line-height: 37px;
    font-size: 15px;
    cursor: pointer;
    font-weight: 500;
}

/* 内容卡片 */
.content-card {
    margin-bottom: 8px;
    background-color: #ffffff;
    overflow: hidden;
}

/* 主图展示 */
.main-image {
    width: 100%;
    height: 396px;
}

.main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 支付通知提示 */
.payment-toast {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    pointer-events: none;
    z-index: 9999;
    transition: opacity 0.3s ease;
}

.payment-toast.show {
    opacity: 1;
}

.toast-content {
    min-width: 300px;
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 12px 16px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.icon-container {
    width: 24px;
    height: 24px;
}

.icon-container img {
    width: 100%;
    height: 100%;
}

.username {
    font-weight: 600;
}

.amount {
    color: #ff4500;
    font-weight: 600;
}

/* 群聊头部 */
.group-header {
    background-color: #f2f2f2;
    padding: 15px;
    text-align: center;
}

.avatar-wrapper {
    width: 70px;
    height: 70px;
    margin: 0 auto 10px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.group-name {
    color: #000000;
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 8px;
}

.group-intro {
    color: #666;
    font-size: 13px;
    line-height: 1.6;
}

.group-intro p {
    margin: 0;
}

.vip-text {
    color: red;
    font-weight: 600;
}

/* 响应式设计 */
@media (max-width: 480px) {
    .join-group-btn {
        width: 90%;
        padding: 6px 12px;
    }
    
    .main-image {
        height: auto;
        max-height: 300px;
    }
    
    .toast-content {
        min-width: 250px;
        font-size: 14px;
    }
}