/* PC端通用样式 */
/* 重置样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
    /*min-width: 1150px;*/
}

body {
    font-family: "Microsoft YaHei", Arial, sans-serif;
}

a {
    text-decoration: none;
    color: #333;
    transition: color 0.3s;
}

a:hover {
    color: #1E9FFF;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}
.layui-container {
    width: 1150px;
}

@media screen and (max-width: 767.98px) {
    .layui-container {
        padding: 0;
    }
}
.layui-nav {
    background-color: #FFF;
}

.layui-nav .layui-nav-item a {
    color: #333;
    padding: 0 10px;
    font-size:24px;
}
.layui-nav .layui-nav-item a:hover, .layui-nav .layui-this a {
    color: #1E9FFF;
}
.layui-form-label {
    width:100px;
}
.layui-input-inline {
    margin-left: 10px;
    display:flex;
}
.layui-input-inline input{
    width:100px;
}
.layui-laydate-shortcut {
    max-height:308px;
}
.laydate-theme-lunar .date-cell-inner {
    padding: 3px;
    width: 36px;
    height: 35px;
    border-radius: 4px !important;
}
.laydate-theme-lunar .date-cell-inner b {
    display: block;
    font-weight: 400;
    height: 16px;
    font-size: 14px;
}
.laydate-theme-lunar .date-cell-inner i {
    display: block;
    font-style: normal;
    font-size: 10px;
}
.container {
    width: 1200px;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 15px;
}

/* 头部样式 */
.header {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
    margin: 0 auto;
}

.logo {
    float: left;
    height: 60px;
    line-height: 60px;
}

.logo a {
    display: block;
    font-size: 24px;
    font-weight: bold;
    color: #333;
}

.logo a img {
    height: 40px;
    margin-top: 10px;
    max-height: 50px;
}

.main-nav {
    float: right;
    height: 60px;
    line-height: 60px;
}

.main-nav, .nav-menu {
    display: flex;
    list-style: none;
    align-items: center;
}

/*.main-nav li, .nav-menu li {*/
/*    margin-left: 30px;*/
/*    float:left;*/
/*}*/

/*.main-nav a, .nav-menu a {*/
/*    font-size: 16px;*/
/*    color: #333;*/
/*    text-decoration: none;*/
/*    padding: 5px 0;*/
/*    border-bottom: 2px solid transparent;*/
/*    transition: all 0.3s;*/
/*    display: block;*/
/*}*/

/*.main-nav a:hover, .main-nav a.active,*/
/*.nav-menu a:hover, .nav-menu a.active {*/
/*    color: #1E9FFF;*/
/*    border-bottom-color: #1E9FFF;*/
/*}*/

.login-btn, .register-btn {
    padding: 8px 15px;
    margin-left: 10px;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.3s;
}

.login-btn {
    color: #1E9FFF;
    border: 1px solid #1E9FFF;
}

.login-btn:hover {
    background-color: #1E9FFF;
    color: #fff;
}

.register-btn {
    background-color: #1E9FFF;
    color: #fff;
}

.register-btn:hover {
    background-color: #0e8ee8;
}
.info-title {
    padding-bottom: 10px;
    margin-bottom: 15px;
    border-bottom: 1px solid #e6e6e6;
}
.head-user-info {
    padding: 15px;
    display: flex;
    align-items: center;
}
.head-user-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    margin: 5px;
    flex-shrink: 0;  /* 防止头像被压缩 */
}

.head-user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.head-user-name {
    font-weight: bold;
    font-size: 18px;
    color: #333;
}


/* 主内容区域 */
.main {
    margin-top: 10px;
    min-height: calc(100vh - 140px);
    /*padding: 30px 0;*/
}

/* 底部样式 */
.footer {
    background-color: #f8d6e3;
    color: #333;
    text-align: center;
    padding: 10px 0;
    margin-top: 20px;
}

.footer-container {
    display: flex;
    justify-content: space-between;
}

.footer-links {
    display: flex;
}

.footer-links a {
    color: #333;
    text-decoration: none;
    margin-right: 20px;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #1E9FFF;
}

.footer-info {
    text-align: right;
}

.footer-info div.beian {
    margin-bottom: 5px;
    font-size: 14px;
    color: #666;
    display:flex;
}
.footer-info div.beian a{
    display:flex;
    margin-left:10px;
    color: #666;
}

/* 返回顶部按钮 */
.back-to-top {
    position: fixed;
    right: 30px;
    bottom: 90px;
    width: 44px;
    height: 44px;
    background-color: #FF589B;
    color: #fff;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    text-align: center;
    transition: all 0.3s;
    z-index: 999;
}

.back-to-top i {
    font-size: 28px;
}

.back-to-top:hover {
    background-color: #FF4A8F;
    transform: translateY(-5px);
}

/* 轮播图样式 */
.carousel, .banner {
    width: 100%;
    height: 500px;
    margin-bottom: 30px;
}

.carousel img, .banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 分页样式 */
.pagination-container {
    display: flex;
    justify-content: center;
    margin: 30px 0;
}

/* 分类按钮样式 */
.category-buttons {
    display: flex;
    flex-wrap: nowrap;
    gap: 10px;
    margin-bottom: 10px;
    justify-content: center;
}

/* 活动列表样式 */
.article-list, .user-list {
    margin-bottom: 40px;

}

.party-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
    gap: 20px;
}


.section-title {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #1E9FFF;
    color: #333;
}


/* 将分类按钮与标题放在同一行 */
.article-list {
    position: relative;
}

.article-list .category-buttons {
    display: inline-flex;
    vertical-align: bottom;
    margin-bottom: 20px;
    position: absolute;
    right: 0;
}

.category-btn {
    padding: 8px 15px;
    background-color: #f5f7fa;
    border: 1px solid #e4e7ed;
    border-radius: 4px;
    color: #606266;
    text-decoration: none;
    transition: all 0.3s;
}

.category-btn:hover,
.category-btn.active {
    background-color: #1E9FFF;
    color: #fff;
    border-color: #1E9FFF;
}

.article-title, .article-item h3, .party-title, .party-item h3 {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.article-title, .party-title {
    margin-bottom: 10px;
}


.article-meta, .party-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 14px;
    color: #999;
}
.party-meta {
    padding: 0 15px;
}

.article-desc, .article-item p, .party-desc, .party-item p {
    color: #666;
    font-size: 14px;
    line-height: 1.5;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.article-item p, .party-item p {
    padding: 0 15px;
    /*margin-bottom: 15px;*/
}

.read-more, .view-detail {
    display: inline-block;
    padding: 8px 20px;
    background-color: #1E9FFF;
    color: #fff;
    border-radius: 4px;
    margin: 0 15px 15px;
}

.party-items, .article-items, .product-items, .section-items {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
}

.party-item, .article-item, .product-item, .section-item {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: all 0.3s;
    margin-bottom: 20px;
}
.section-item {
    display: flex;  /* 添加flex布局 */
    align-items: flex-start;  /* 顶部对齐 */
    position: relative;  /* 添加相对定位 */
}

.party-item:hover, .article-item:hover, .product-item:hover, .section-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.party-item>a, .article-item>a, .section-item>a {
    display: block;
    color: inherit;
    text-decoration: none;
}

.article-image {
    width: 300px;
    height: 200px;
    overflow: hidden;
}
.party-image{
    overflow: hidden;
    height:200px
}

.party-image img, .article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.party-item .party-image{
    position: relative;
}
.party-image-mask{
    background-color: rgba(0, 0, 0, 0.5);
    color: #fff;
    padding: 3px 15px;
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    display: block;
    /*display: flex;     !* 使用flex布局 *!*/
    /*align-items: center; !* 垂直居中 *!*/
    /*justify-content: space-between; !* 两端对齐 *!*/
}
.article-info, .party-info, .party-content,  .article-content {
    padding: 15px;
}

.party-content h3,  .article-content h3 {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 10px;
    color: #333;
}

.party-content p, .article-content p {    color: #666;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 5px;
}

.party-content p span, .article-content p span {
    margin-right: 10px;
}

.party-content p span.status, .article-content p span.status {
    font-weight: bold;
}

.party-content p span.status.enrolling {
    color: #67C23A;
}

.party-content p span.status.ended {
    color: #F56C6C;
}

/* 用户卡片样式 */

.user-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    transition: all 0.3s;
}

.user-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.12);
}

.user-photo {
    height: 280px;
    overflow: hidden;
}

.user-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-avatar {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    overflow: hidden;
    margin: 5px;
    flex-shrink: 0;  /* 防止头像被压缩 */
}

.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.user-detail {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    flex: 1;  /* 占据剩余空间 */
    padding-right: 5px;  /* 添加一些内边距 */
    overflow: auto;  /* 防止内容溢出 */
}
.user-info-text {
    display: flex;  /* 使用flex布局 */
    justify-content: space-between;  /* 两端对齐 */
    align-items: baseline;  /* 基线对齐，使文字底部对齐 */
}
.user-info-text .user-info-id {
    font-weight: normal;
    font-size: 12px;
    color:#666;
    /*right: 5px;*/
}
.user-name {
    font-weight: bold;
    font-size: 18px;
    color: #333;
}
.user-age {
    color: #666;


    
}

.user-basic {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}
.user-actions {
    /*display:block;*/
    position: absolute;
    right: 10px;
    bottom: 10px;
}
/*水印容器*/
.watermark-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;  /* 关键：让水印不影响页面交互 */
    z-index: 9999;
}

/* 搜索表单样式 */
.search-container {
    background: #fff;
    padding: 20px;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    margin-bottom: 20px;
}

.search-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 15px;
    color: #333;
    border-bottom: 2px solid #1E9FFF;
    padding-bottom: 8px;
}

.search-row {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 15px;
}

.search-item {
    margin-right: 20px;
    margin-bottom: 5px;
    width:250px
}
.search-item .layui-input-inline {
    width: 170px;
}
.search-item .layui-form-label {
    width: 80px;
    padding: 9px 5px;
}
.mini-input .layui-input{
    width: 80px;
    float: left;
}

/* 信息展示样式 */
.info-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.info-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.info-item {
    flex: 1;
    min-width: 300px;
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    display: flex;
    align-items: center;
}

.info-full {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
}

.info-label {
    font-weight: bold;
    color: #333;
    min-width: 100px;
    margin-right: 15px;
}

.info-value {
    color: #666;
    flex: 1;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag {
    background: #e6f7ff;
    color: #1890ff;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 14px;
}

.intro {
    line-height: 1.6;
    white-space: pre-wrap;
}

/* 商品列表样式 */
.product-list {
    margin-bottom: 40px;
}



.product-item {
    border-radius: 4px;
}

.product-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.product-item h3 {
    padding: 15px;
    font-size: 16px;
    font-weight: bold;
}

.price {
    padding: 0 15px;
    color: #e4393c;
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 15px;
}
.user-info-rz {
    display: flex;
}
.user-info-rz img{
    width: 20px;
    height: 20px;
    /*margin-right: 5px;*/
    border-radius: 50%;
}

.rz_detail h2{
    text-align: center;
}
.rz_detail img{
    height: 24px;
    border-radius: 50%;
}
.rz-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 5px;
    margin-bottom: 15px;
}
.rz-list {
    display:flex;
    width: 100%;
    height: 150px;
    background-color: #F8F8F8;
    border-radius: 8px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}
.rz-list img {
    vertical-align: middle;  /* 确保图片垂直对齐 */
    height: 60px;  /* 设置图片高度 */
    width: auto;  /* 宽度自动 */
}
/*个人中心*/
.layui-panel{
      display:flex;
      border-radius: 10px;
  }
.layui-menu .layui-menu-item-group>.layui-menu-body-title {
    color: #333;
}
.ws-menu {
    margin: 0;
    /*position: fixed;*/
    /*top: 60px;*/
    /*bottom: 0;*/
    width: 240px;
    /*z-index: 777;*/
    /*min-height: 0;*/
    border-top: none;
    /*overflow: hidden;*/
    background-color: #f8d6e3;
    border-top-left-radius: 10px;
    border-bottom-left-radius: 10px;
    flex: 0 0 240px; /* flex-grow: 0, flex-shrink: 0, flex-basis: 240px */

}

.layui-menu li.ws-menu-title {
    margin-top:10px;
    text-align: center;
    border-bottom: 2px solid #ff5722;
}
.layui-menu li.ws-menu-title:hover {
    background-color: #f8d6e3;
}
.ws-menu-title a {
    font-size: 24px;
    color: #ff5722;
}
.ws-menu .layui-menu-body-title .layui-font-gray {
    padding-left: 6px
}

.ws-menu .layui-menu-body-title .layui-badge,.ws-menu .layui-menu-body-title .layui-badge-dot {
    left: 6px
}

.ws-menu .layui-menu-body-title .layui-badge {
    height: 16px;
    line-height: 16px
}

.ws-menu .layui-menu {
    padding-bottom: 16px
}

.ws-content {
    position: relative;
    box-sizing: border-box;
    flex:1;
}
.edit-tabs-body{

}
.edit-form-footer{
    text-align: center;
}
/*头像预览上传*/
.avatar-crop-container {
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.crop-main {
    flex: 1;
    display: flex;
    gap: 20px;
    min-height: 0;
    margin: 10px auto;
}

.crop-area {
    flex: 1;
    position: relative;
    background: #f5f5f5;
    overflow: hidden;
}

.crop-wrapper {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.crop-wrapper img {
    max-width: 100%;
    max-height: 100%;
    display: block;
}

.crop-preview {
    width: 150px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.preview-item {
    text-align: center;
}

.preview-title {
    margin-bottom: 10px;
    color: #666;
    font-size: 14px;
}

.preview-container {
    width: 120px;
    height: 120px;
    border: 2px solid #ddd;
    overflow: hidden;
}

.preview-container.circular {
    border-radius: 50%;
}

.preview-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.crop-controls {
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 10px 0;
}

.crop-controls .layui-btn {
    flex: 0 0 auto;
}

/* 裁剪框样式 */
.cropper-container {
    width: 100% !important;
    height: 100% !important;
}

.cropper-view-box {
    outline: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
}

.cropper-face {
    border-radius: 50%;
}

/* 详情页 */
.detail-header {
    display: flex;
    margin-bottom: 20px;
    gap: 20px;
    background-color: #FFF;
    border-radius: 10px;
    padding: 20px;
    flex-wrap: nowrap;
    flex-direction: row;
}

.detail-header .header-photo img{
    width: 400px;
    height: 300px;
}
.detail-header .head-info{
    flex: 1;
     display: flex;
     flex-direction: column;
     gap: 10px;
 }
 .detail-header .head-info .head-title{
     font-size: 24px;
     font-weight: bold;
     color: #333;
 }
 .detail-header .head-info .head-desc{
     font-size: 16px;
     color: #666;
 }
 .detail-header .head-info .head-tags{
     display: flex;
     gap: 10px;
     flex-wrap: wrap;
 }
 .detail-header .head-info .head-tags .tag{
     background-color: #f8d
}
.detail-header .head-right{
    padding: 10px;
    width: 200px;
    text-align: center;
    display: flex;
    justify-content: center; /* 水平居中 */
    align-items: center;     /* 垂直居中 */
}
.detail-content{
    background-color: #FFF;
    border-radius: 10px;
    padding: 20px;
}
.detail-content .title{
    font-size: 24px;
    font-weight: bold;
    color: #333;
    margin-bottom: 20px;
    text-align: center;
    border-bottom: 1px solid #d7d7d7;
    padding-bottom: 10px;
}
.detail-content .content{
    font-size: 16px;
    color: #666;
    line-height: 1.5;
}

 /* 报名条件   */
.party-bm-list{
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    justify-content: space-evenly;
}
.party-bm-list .bm-item{
    text-align: center;
    gap: 10px;
    padding: 10px;
}
.party-bm-list .bm-item .bm-num{
    font-weight: bolder;
    font-size: 18px;
}
.party-bm-list .bm-item .bm-label{
    color:#999;
}
/*上传图片预览*/
.layuimini-upload-show {
    margin-top: 40px;
    margin-bottom: 0;
}

.layuimini-upload-show li {
    position: relative;
    display: inline-block;
    padding: 5px 10px;
    border: 1px solid #e2e2e2;
}

.layuimini-upload-show a img {
    height: 80px;
    object-fit: cover;
}

.layuimini-upload-show .uploads-delete-tip {
    position: absolute;
    right: 0;
    font-size: 12px;
    top:0;
}
.bg-red {
    background-color: #e74c3c !important;
}
.badge {
    display: inline-block;
    min-width: 10px;
    padding: 3px 7px;
    font-size: 11px;
    font-weight: bold;
    color: #fff;
    line-height: 1;
    vertical-align: middle;
    white-space: nowrap;
    text-align: center;
    background-color: #777777;
    border-radius: 10px;
}
