/* 通用布局与响应式样式 */
.responsive-container {
    max-width: 1000px;
    margin: 32px auto 0 auto;
    padding: 18px 32px 32px 32px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 8px 36px 0 rgba(0,0,0,.05);
}

.alert {
  margin-top: 10px;
  font-size: 16px;
  min-height: 32px;
  background: #def6b2;
  color: #c00;
}

.list-item-detail {
    display: flex;
    align-items: flex-start;
    gap: 32px;
    padding-bottom: 20px;
   /* border-bottom: 1px solid #ececec;*/
    flex-wrap: wrap;
}
/* 图片可放大查看效果 */
/*.zoomable-img {
    cursor: zoom-in;
    transition: transform 0.25s ease, box-shadow 0.25s;
    z-index: 2;
}
.zoomable-img:hover {
    transform: scale(1.7);
    box-shadow: 0 8px 36px 0 rgba(0,0,0,.2);
    z-index: 22;
    position: relative;
}*/

/* 保证放大时不溢出容器 */
 .list-item-detail {
    overflow: visible;
}
.list-item-detail .zoomable-img {
    width: 400px;
    max-width: 100%;
    border-radius: 8px;
    background: #fafafa;
    object-fit: cover;
    min-height: 160px;
}
.detail-texts {
    flex: 1;
    min-width: 210px;
}
.activity-title {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 0;
    display: flex;
    align-items: center;
    gap: 15px;
}
.activity-title strong {
    margin-left: 18px;
    font-size: 19px;
    font-style: oblique;
    white-space: nowrap;
}
.activity-time, .activity-deadline {
    color: #444;
    font-size: 16px;
    display: flex;
    align-items: center;
    margin-top: 11px;
    gap: 6px;
}
.activity-time span, .activity-deadline span {
    font-weight: bold;
    margin-right: 8px;
}
.act-des {
    margin-top: 28px;
    padding: 20px 20px 8px 20px;
    border: 1px solid #76d050;
    border-radius: 10px;
    background: #f9fff8;
}
.act-des h3 {
    margin-top: 0;
    font-size: 22px;
    font-weight: 600;
    color: #1f8907;
    margin-bottom: 18px;
}
.act-des-info p {
    color: #333;
    font-size: 16.5px;
    line-height: 1.8;
    margin-bottom: 8px;
    margin-top: 0;
    word-break: break-word;
}
/* 报名按钮样式 */
#btn-signUp {
    width: 100%;
    max-width: 340px;
    display: block;
    margin: 30px 10px;
    padding: 14px 0;
    background-color: #cc0000;
    border-color: #cc0000;
    transition: 0.3s all;
    outline: none;
    color: #fff;
    font-size: 20px;
    border-radius: 5px;
    font-weight: 600;
}
#btn-signUp:active, #btn-signUp:focus {
    outline: none;
}
#btn-signUp:hover {
    background-color: #ad0e0e;
    color: #fff;
}

.btn-liked{
  background-color: #ff7221;
}
.oc2 .alert button {
  position: relative !important;
  top: 50%;
left:20px;
  -webkit-transform: translateY(-50%);
  transform: translateY(-10%);
  cursor: pointer;
  opacity: .6;
  color: #000;
  font-size: 20px;
  font-weight: bold;
}
.organizer-section {
    margin-top: 32px;
    padding: 18px 22px;
    border: 1px solid #e6e6e6;
    background: #fcfcfc;
    border-radius: 8px;
    display: flex;
    align-items: flex-start;
    gap: 18px;
}
.organizer-logo {
    width: 50px;
    height: 50px;
    min-width: 50px;
    border-radius: 50%;
    object-fit: cover;
    background: #f4f4f4;
    border: 3px solid #c6c9c9; /* light cyan border for a 'clean/disinfected' look */
    margin-right: 12px;
    box-shadow: 0 0 10px 0 rgba(106,214,214,0.2);
    display: inline-block;
    vertical-align: middle;
}
.organizer-title{
  font-size:22px;
  font-weight: bold;
  color:#1f8907;
  margin-bottom: 18px;
}
.organizer-info {
    flex: 1;
    min-width: 140px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.organizer-name {
    font-size: 19px;
    font-weight: bold;
    margin-bottom: 0;
    color: #1459af;
    display: flex;
    align-items: center;
    gap: 10px;
}
.organizer-arrow {
    display: inline-flex;
    align-items: center;
    margin-left: 2px;
    color: #1571d3;
    font-size: 20px;
    transition: color 0.2s;
    text-decoration: none;
}
.organizer-arrow:hover {
    color: #e17722;
    text-decoration: underline;
}
.organizer-desc {
    font-size: 16px;
    line-height: 1.7;
    color: #333;
}

/* 自定义确认弹窗样式 */
.modal-confirm-mask {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.55);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
}
.modal-confirm-box {
    background: #ffffff;
    width: 90%;
    max-width: 420px;
    border-radius: 12px;
    padding: 30px 25px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    text-align: center;
}
.modal-confirm-title {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
}
.modal-confirm-desc {
    font-size: 16px;
    color: #666;
    margin-bottom: 28px;
    line-height: 1.6;
}
.modal-confirm-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
}
.btn-modal-cancel {
    padding: 11px 28px;
    border: 1px solid #dddddd;
    background: #fff;
    border-radius: 6px;
    font-size: 16px;
    color: #666;
    cursor: pointer;
    transition: all 0.25s;
}
.btn-modal-cancel:hover {
    background-color: #f7f7f7;
}
.btn-modal-confirm {
    padding: 11px 28px;
    background-color: #cc0000;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    color: #fff;
    cursor: pointer;
    transition: all 0.25s;
}
.btn-modal-confirm:hover {
    background-color: #ad0e0e;
}

/* ===== Custom style for breaking .activity-time into two rows on mobile ===== */
@media (max-width: 760px) {
    .responsive-container {
        border-radius: 3px;
        margin: 0;
        box-shadow: none;
        padding: 4px 0 18px 0;
    }
   
    .list-item-detail {
        flex-direction: column;
        gap: 10px;
        align-items: stretch;
        padding-bottom: 6px;
    }
    .list-item-detail .zoomable-img,
    .zoomable-img {
        margin: auto;
        width: 98vw;
        max-width: calc(100vw - 35px);
        min-height: 98px;
        border-radius: 5px;
    }
    .detail-texts {
        padding-left: 10px;
    }
    .activity-title {
        font-size: 20px;
        flex-direction: column;
        gap: 6px;
        align-items: flex-start;
    }
    .activity-title strong {
        padding-left: 0;
        margin-left: 0;
        font-size: 16px;
    }
    .act-des {
        margin: 14px 5px;
        padding: 10px 6px 8px 6px;
        border-radius: 6px;
        font-size: 15px;
    }
    #btn-signUp {
        font-size: 17px;
        padding: 10px 0;
    }
    .organizer-section {
        flex-direction: column;
        text-align: left;
        align-items: left;
        margin-right: 10px;
    }
    .organizer-info {
        align-items: left;
    }
    .organizer-name {
        justify-content: left;
    }
    /* New: Force activity-time inner .activity-time-date to new line on mobile */
    .activity-time {
        flex-direction: column;
        align-items: flex-start;
        gap: 2px;
    }
    .activity-time-date {
        margin-left: 0 !important;
        margin-top: 2px;
    }
}
@media (max-width: 1024px) {
    .responsive-container {
        padding: 12px 8px 18px 8px;
    }
    .list-item-detail {
        gap: 18px;
    }
    .list-item-detail .zoomable-img,
    .zoomable-img {
        width: 300px;
        min-height: 150px;
    }
    .organizer-section {
        padding: 12px 8px;
        gap: 10px;
    }
    .organizer-logo {
        width: 48px;
        height: 48px;
        min-width: 48px;
    }
}