/* activity.css - 活动中心页面专用样式 */
* {
    margin:0; padding:0; box-sizing:border-box;
    font-family: "Microsoft YaHei", sans-serif;
}
body {
    background-image: url('/background1.jpg');
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
    padding: 5px;
}
/* 顶部导航条样式 */
.nav-bar {
    width: 100%;
    background: rgba(255,255,255,0.95);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    padding: 0 20px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 999;            
    margin-bottom: 5px;
}
.nav-logo {
    font-size: 20px;
    font-weight: bold;
    color: #ff6b9d;
    text-decoration: none;
}
.nav-menu {
    display: flex;
    gap: 30px;
}
.nav-menu a {
    color: #333;
    text-decoration: none;
    font-size: 16px;
    transition: color 0.3s;
}
.nav-menu a:hover {
    color: #ff6b9d;
}
.nav-user {
    color: #666;
    font-size: 14px;
}
/* 容器样式 */
.container {
    max-width: 1000px;
    margin: 20px auto;
    background: rgba(255,255,255,0.9);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}
.page-title {
    font-size: 24px;
    color: #333;
}
.create-btn {
    background: #ff6b9d;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
}
/* 活动列表样式 */
.activity-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.activity-item {
    display: flex;
    align-items: center;
    background: #fff;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}
.activity-item img {
    width: 90px;
    height: 90px;
    object-fit: cover;
    border-radius: 6px;
    margin-right: 15px;
    cursor: pointer;
    transition: transform 0.2s;
}
.activity-item img:hover {
    transform: scale(1.02);
}
.activity-info {
    flex: 1;
}
.activity-info h3 {
    font-size: 18px;
    margin-bottom: 6px;
}
.activity-info p {
    font-size: 14px;
    color: #666;
}
.activity-btns {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.like-btn {
    padding: 6px 12px;
    color: #fff; /* 修复：补充白色文字 */
    border: none;
    border-radius: 4px;
    cursor: pointer;
}
.join-btn {
    padding: 6px 12px;
    background: #00b42a;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}
/* 图片弹窗样式 */
.img-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.85);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.img-modal-content {
    max-width: 90%;
    max-height: 90%;
    border-radius: 8px;
}
.close-modal {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 30px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
}
.close-modal:hover {
    color: #ff6b9d;
}
.create-box {
    max-width: 800px;
    margin: 30px auto;
    padding: 24px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}
.form-item {
    margin-bottom: 18px;
}
.form-item label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
}
.form-item input,
.form-item textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    box-sizing: border-box;
}
.btn-group {
    margin-top: 24px;
    display: flex;
    gap: 12px;
}
.btn-back {
    padding: 10px 22px;
    border: 1px solid #999;
    background: #fff;
    border-radius: 6px;
    cursor: pointer;
}
.btn-submit {
    padding: 10px 22px;
    background: #409eff;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}
    .img-modal {
        display:none;
        position:fixed;
        top:0;
        left:0;
        width:100%;
        height:100%;
        background:rgba(0,0,0,0.6);
        align-items:center;
        justify-content:center;
    }
    #imgModal { z-index: 99999 !important; }
    #detailModal { z-index: 9998 !important; overflow-y:auto; }
    .detail-wrap {
        background:#fff;
        width:90%;
        max-width:800px;
        margin:0 auto;
        padding:25px;
        border-radius:10px;
        max-height:85vh;
    }
    .close-modal {
        position:absolute;
        top:20px;
        right:30px;
        font-size:32px;
        color:#fff;
        cursor:pointer;
    }
    .active-item {
        box-shadow:0 0 12px #ff6b9d;
    }