/* 活动列表容器 */
.xhb_article-list {
    background: #fff;
    padding: 20px;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* 列表基础样式 */
.xhb_list-txt {
    padding: 0;
    margin: 0;
    list-style: none;
}

.xhb_list-txt li {
    position: relative;
    min-height: 120px;
    padding: 20px 120px 20px 220px;
    border-bottom: 1px dashed #eee;
    background-position: 0 center;
    background-repeat: no-repeat;
    background-size: 200px 120px;
}

.xhb_list-txt li:hover {
    background-color: #f8f8f8;
}

.xhb_list-txt li:last-child {
    border-bottom: none;
}

/* 标题链接样式 */
.xhb_list-txt li a {
    display: block;
    font-size: 15px;
    color: #333;
    text-decoration: none;
    line-height: 24px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.xhb_list-txt li a:hover {
    color: #0066cc;
}

/* 日期样式 */
.xhb_list-txt li .f_r {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    font-size: 14px;
    white-space: nowrap;
}

/* 无图片的列表样式 */
.xhb_list-txt li.no-thumb {
    min-height: auto;
    padding: 16px 120px 16px 20px;
    background-image: none !important;
}

/* 栏目标题样式 */
.xhb_column-head {
    padding: 15px 0;
    border-bottom: 2px solid #0066cc;
    margin-bottom: 15px;
    background: #fff;
}

.xhb_column-head strong {
    font-size: 18px;
    color: #333;
    position: relative;
    padding-left: 12px;
    font-weight: 500;
}

.xhb_column-head strong:before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 18px;
    background: #0066cc;
    border-radius: 2px;
}

/* 分页样式 */
.xhb_column {
    margin: 30px 0 20px;
    text-align: center;
    background: #fff;
}

/* 无数据状态 */
.no-data {
    text-align: center;
    padding: 40px 0;
    color: #999;
    font-size: 14px;
}

/* 活动详情页样式 */
.xhb_article-show {
    background: #fff;
    padding: 40px 50px;
    border-radius: 6px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

/* 标题样式 */
.xhb_article-show-title h1 {
    font-size: 24px;
    color: #2c2c2c;
    text-align: center;
    margin: 0 0 20px;
    line-height: 1.5;
    font-weight: 600;
    letter-spacing: 1px;
}

/* 基本信息样式 */
.xhb_article-show-info {
    color: #999;
    font-size: 14px;
    text-align: center;
    padding: 12px 0;
    margin-bottom: 30px;
    background: #f5f7fa;
    border-radius: 6px;
}

.xhb_article-show-info span {
    margin: 0 15px;
}

.xhb_article-show-info .hits em {
    font-style: normal;
}

/* 活动信息表格样式 */
.activity-info {
    margin-bottom: 30px;
    background: #fafbfc;
    border: 1px solid #eef0f3;
    border-radius: 6px;
    overflow: hidden;
}

.activity-info table {
    width: 100%;
    border-collapse: collapse;
}

.activity-info tr {
    border-bottom: 1px solid #eef0f3;
}

.activity-info tr:last-child {
    border-bottom: none;
}

.activity-info th,
.activity-info td {
    padding: 14px 18px;
    line-height: 24px;
    text-align: left;
    vertical-align: middle;
}

.activity-info th {
    width: 110px;
    color: #666;
    font-weight: 500;
    background: #f0f3f7;
    border-right: 1px solid #eef0f3;
    white-space: nowrap;
}

.activity-info td {
    color: #333;
}

/* 活动说明样式 */
.activity-desc h3 {
    font-size: 18px;
    color: #2c2c2c;
    margin: 0 0 20px;
    padding-left: 12px;
    border-left: 4px solid #0066cc;
    line-height: 1;
    font-weight: 600;
}

.activity-desc #content {
    font-size: 16px;
    line-height: 1.85;
    color: #333;
    letter-spacing: 0.5px;
    word-break: break-all;
}

.activity-desc #content img {
    max-width: 100%;
    height: auto;
    margin: 15px 0;
    border-radius: 4px;
}

.activity-desc #content p {
    margin: 0 0 15px;
}

/* 联系方式区域样式 */
.contact-info {
    margin-top: 35px;
    padding: 25px 30px;
    background: #fafbfc;
    border: 1px solid #eef0f3;
    border-radius: 6px;
}

.contact-info h3 {
    font-size: 18px;
    color: #2c2c2c;
    margin: 0 0 18px;
    padding-left: 12px;
    border-left: 4px solid #0066cc;
    line-height: 1;
    font-weight: 600;
}

.contact-info ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.contact-info li {
    line-height: 36px;
    color: #333;
    font-size: 15px;
}

.contact-info .label {
    display: inline-block;
    width: 80px;
    color: #666;
}

.contact-info .value {
    color: #333;
}

.activity-status {
    display: inline-block;
    padding: 3px 12px;
    border-radius: 20px;
    margin-left: 10px;
    font-size: 12px;
    font-weight: 500;
}

.status-ended {
    background: #f4f4f5;
    color: #909399;
}

.status-ongoing {
    background: #f0f9eb;
    color: #67c23a;
}

.status-registering {
    background: #ecf5ff;
    color: #409eff;
}

.btn-register {
    display: inline-block;
    background-color: #C3272B;
    color: white;
    border: none;
    padding: 8px 22px;
    border-radius: 4px;
    cursor: pointer;
    margin-left: 15px;
    font-size: 14px;
    line-height: 1.5;
    transition: all 0.25s ease;
}

.btn-register:hover {
    background-color: #a51f23;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(195,39,43,0.3);
}

.btn-register:active {
    transform: translateY(0);
    box-shadow: none;
}


/* 报名弹窗样式 */
.registration-form {
    padding: 20px 25px;
}

.registration-form .form-group {
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
}

.registration-form label {
    width: 85px;
    line-height: 32px;
    text-align: right;
    padding-right: 10px;
    color: #606266;
    font-size: 14px;
    flex-shrink: 0;
}

.registration-form .required {
    color: #f56c6c;
    margin-right: 4px;
}

.registration-form .input-wrap {
    flex: 1;
}

.registration-form .form-control {
    width: 100%;
    height: 32px;
    line-height: 32px;
    padding: 0 12px;
    border: 1px solid #dcdfe6;
    border-radius: 4px;
    color: #606266;
    font-size: 14px;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.registration-form .form-control:focus {
    border-color: #409eff;
    outline: none;
}

.registration-form .form-control::placeholder {
    color: #c0c4cc;
}

.registration-form .radio-group {
    padding-top: 5px;
}

.registration-form .radio-label {
    margin-right: 20px;
    cursor: pointer;
    font-size: 14px;
    color: #606266;
}

.registration-form .radio-label input[type="radio"] {
    margin-right: 4px;
    vertical-align: -2px;
}

.registration-form .form-footer {
    text-align: center;
    margin-top: 25px;
    padding-bottom: 10px;
}

.registration-form .btn-submit {
    min-width: 100px;
    height: 36px;
    line-height: 36px;
    padding: 0 20px;
    background-color: #409eff;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.registration-form .btn-submit:hover {
    background-color: #66b1ff;
}

.registration-form .btn-submit:active {
    background-color: #3a8ee6;
}

/* 修改layer弹窗样式 */
.layui-layer-title {
    background-color: #f5f7fa !important;
    border-bottom: 1px solid #e4e7ed !important;
    color: #303133 !important;
    font-size: 15px !important;
    height: 46px !important;
    line-height: 46px !important;
}

/* ===== 活动详情双栏布局 ===== */
.activity-detail-layout {
    display: flex;
    gap: 28px;
    align-items: flex-start;
}

.activity-detail-main {
    flex: 1;
    min-width: 0;
}

.activity-detail-sidebar {
    width: 300px;
    flex-shrink: 0;
    position: sticky;
    top: 20px;
}

/* 报名卡片 */
.register-card {
    background: #fff;
    border: 1px solid #eef0f3;
    border-radius: 10px;
    padding: 24px 22px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    text-align: center;
}

.register-card-status {
    margin-bottom: 20px;
}

.register-card-status .activity-status {
    display: inline-block;
    padding: 5px 18px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    margin-left: 0;
}

/* 二维码区域 */
.register-qr {
    margin-bottom: 20px;
    position: relative;
}

.register-qr img {
    width: 200px;
    height: 200px;
    border-radius: 8px;
    border: 1px solid #eef0f3;
}

.register-qr-tip {
    margin-top: 10px;
    font-size: 14px;
    color: #606266;
    font-weight: 500;
}

/* 二维码加载骨架屏 */
.qr-loading {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    background: #fff;
    width: 200px;
    height: 200px;
    border-radius: 8px;
    border: 1px solid #eef0f3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    overflow: hidden;
}

.qr-skeleton {
    width: 48px;
    height: 48px;
    border-radius: 6px;
    background: linear-gradient(90deg, #f0f2f5 25%, #e6e8eb 37%, #f0f2f5 63%);
    background-size: 400% 100%;
    animation: qr-shimmer 1.4s ease infinite;
}

.qr-loading-text {
    font-size: 13px;
    color: #999;
}

@keyframes qr-shimmer {
    0%   { background-position: 100% 50%; }
    100% { background-position: 0 50%; }
}

.qr-img {
    opacity: 0;
    transition: opacity 0.4s ease;
}

.qr-img.loaded {
    opacity: 1;
}

.qr-loading.hidden {
    display: none;
}

/* 侧边栏联系方式 */
.register-contact {
    border-top: 1px solid #eef0f3;
    padding-top: 18px;
    margin-bottom: 20px;
    text-align: left;
}

.register-contact-title {
    font-size: 14px;
    font-weight: 600;
    color: #2c2c2c;
    margin-bottom: 12px;
}

.register-contact-row {
    display: flex;
    align-items: center;
    padding: 6px 0;
    font-size: 14px;
    color: #333;
}

.register-contact-row .contact-text {
    color: #606266;
}

/* 在线报名按钮 */
.btn-register-online {
    display: block;
    width: 100%;
    height: 44px;
    line-height: 44px;
    background-color: #C3272B;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.25s ease;
    margin-bottom: 20px;
}

.btn-register-online:hover {
    background-color: #a51f23;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(195,39,43,0.35);
}

.btn-register-online:active {
    transform: translateY(0);
    box-shadow: none;
}

/* 已报名状态 */
.register-signed {
    width: 100%;
    height: 44px;
    line-height: 44px;
    background: #f0f9eb;
    color: #67c23a;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 20px;
}

/* 报名统计 */
.register-stats {
    border-top: 1px solid #eef0f3;
    padding-top: 18px;
}

.register-stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    font-size: 14px;
}

.register-stat-item .stat-label {
    color: #909399;
}

.register-stat-item .stat-value {
    color: #333;
    font-weight: 500;
}

/* 响应式：小屏幕双栏变单栏 */
@media screen and (max-width: 1024px) {
    .activity-detail-layout {
        flex-direction: column;
    }

    .activity-detail-sidebar {
        width: 100%;
        position: static;
    }

    .register-qr img {
        width: 180px;
        height: 180px;
    }

    .qr-loading {
        width: 180px;
        height: 180px;
    }
}