/* 字体声明已移至 css/common/fonts.css 统一管理 */

  @font-face {
    font-family: "DIN-Medium";
    src: url("../fonts/DIN-Medium.otf") format("opentype");
    font-weight: normal;
    font-style: normal;
  }

.hot-activities {
    background: #f5f7fa;
    padding: 40px 0;
}
/* 基础活动卡片样式 */
.activity-card {
    width: 75%;
    margin: 0 auto 32px auto;
    background: #fff;
    border-radius: 3px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    padding: 32px;
    position: relative;
}

/* 左侧图片布局（默认） */
.activity-card-left {
    display: flex;
    align-items: center;
    gap: 32px;
}

/* 右侧图片布局 */
.activity-card-right {
    display: flex;
    align-items: center;
    gap: 32px;
    flex-direction: row-reverse;
}

/* 左上角图片布局 */
.activity-card-left-top {
    display: flex;
    align-items: stretch;
    gap: 24px;
}

.activity-card-left-top .activity-img {
    flex: 0 0 250px;
    width: 250px;
    height: auto;
}

/* 右上角图片布局 */
.activity-card-right-top {
    display: flex;
    align-items: stretch;
    gap: 24px;
    flex-direction: row-reverse;
}

.activity-card-right-top .activity-img {
    flex: 0 0 250px;
    width: 250px;
    height: auto;
}

/* 无图片布局 */
.activity-card-no-image {
    display: block;
}
/* 基础图片样式 */
.activity-img {
    overflow: hidden;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eee;
}

.activity-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

/* 左侧和右侧布局的图片样式 */
.activity-card-left .activity-img,
.activity-card-right .activity-img {
    max-width: 320px;
    min-width: 220px;
    height: 180px;
}

/* 左上角和右上角布局的图片样式 */
.activity-card-left-top .activity-img,
.activity-card-right-top .activity-img {
    border-radius: 8px;
    overflow: hidden;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 左上角和右上角布局的图片内容样式 */
.activity-card-left-top .activity-img img,
.activity-card-right-top .activity-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #fff;
}

/* 左上角和右上角布局不再需要清除浮动，因为使用了flexbox */
/* 活动信息区域样式 */
.activity-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    min-height: 0;
}

/* 左上角和右上角布局的信息区域 */
.activity-card-left-top .activity-info,
.activity-card-right-top .activity-info {
    flex: none;
}

/* 无图片布局的信息区域 */
.activity-card-no-image .activity-info {
    flex: none;
    width: 100%;
}
/* 标题样式 - 参考央视新闻样式 */
.activity-title {
    font-size: 18px;
    color: #333;
    font-family: var(--font-medium);
    line-height: 1.4;
    margin-bottom: 20px;
    font-weight: 65 Medium;
    text-align: center;
}

/* 内容样式 - 参考央视新闻样式 */
.activity-content {
    color: #333;
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 20px;
    text-align: justify;
    font-family: var(--font-primary);
}

/* 内容段落间距 */
.activity-content p {
    margin-bottom: 16px;
    line-height: 1.8;
}

.activity-content p:last-child {
    margin-bottom: 0;
}

/* 时间样式 - 参考央视新闻样式 */
.activity-time {
    color: #999;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    margin-top: auto;
    padding-top: 16px;
}
/* 时间图标样式 */
.icon-time {
    display: inline-block;
    width: 14px;
    height: 14px;
    background: url('../images/common/time.svg') no-repeat center/contain;
    opacity: 0.6;
    flex-shrink: 0;
}
/* 加载状态样式 */
.loading-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #0066FF;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 16px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-state p {
    color: #666;
    font-size: 16px;
    margin: 0;
}

/* 错误状态样式 */
.error-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
}

.error-state p {
    color: #999;
    font-size: 16px;
    margin-bottom: 16px;
}

.retry-btn {
    padding: 8px 24px;
    background: #0066FF;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.retry-btn:hover {
    background: #0052CC;
}

/* 空状态样式 */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
}

.empty-state p {
    color: #999;
    font-size: 16px;
    margin: 0;
}

/* 响应式样式 */
@media (max-width: 900px) {
    .activity-card {
        padding: 16px;
    }

    /* 移动端统一为垂直布局 */
    .activity-card-left,
    .activity-card-right {
        flex-direction: column;
        gap: 16px;
    }

    /* 移动端图片样式 */
    .activity-card-left .activity-img,
    .activity-card-right .activity-img {
        width: 100%;
        min-width: 0;
        max-width: 100%;
        height: 180px;
        flex: none;
    }

    /* 移动端左上角和右上角布局调整 */
    .activity-card-left-top,
    .activity-card-right-top {
        flex-direction: column;
        gap: 16px;
    }

    .activity-card-left-top .activity-img,
    .activity-card-right-top .activity-img {
        width: 100%;
        height: 180px;
        flex: none;
    }

    /* 移动端信息区域 */
    .activity-card-left .activity-info,
    .activity-card-right .activity-info {
        flex: none;
        width: 100%;
    }

    /* 移动端标题和内容调整 */
    .activity-title {
        font-size: 20px;
        margin-bottom: 16px;
    }

    .activity-content {
        font-size: 15px;
        line-height: 1.7;
        margin-bottom: 16px;
    }

    .activity-time {
        font-size: 13px;
        padding-top: 12px;
    }
}
.activity-detail {
    display: flex;
    justify-content: center;
    align-items: center;
    background: #f5f7fa;
}
.detail-container {
    display: flex;
    background: #fff;
    border-radius: 3px;
    width: 75%;
    height: 400px;
}
.detail-img-box {
    position: relative;
    left: -35px;
    top: -35px;
    width: 400px;
    height: 460px;
    z-index: 1;
}
.detail-img-box img {
    width: 100%;
    height: 100%;
    border-radius: 8px;
    position: relative;
    z-index: 2;
}
.detail-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}
.detail-title {
    width:fit-content;
    font-size: 18px;
    margin: 15px auto;
    padding:8px;
    color: #333333;
    text-align: center;
    font-family: var(--font-medium);
    border-bottom: 2px solid #0D7DFC;

}
.detail-content {
    color: #333333;
    font-family: var(--font-primary);
    font-size: 14px;
    text-indent: 2em;
    line-height: 24px;
    margin-bottom: 16px;
}
.detail-times {
    display: flex;
    gap: 48px;

    margin-bottom: 32px;
}
.detail-time {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.time-date {
    color: #0D7DFC;
    font-family: var(--font-number);
    font-size: 24px;
    margin-bottom: 4px;
}
.time-desc {
    color: #333;
    font-family: var(--font-light);
    font-size: 16px;
}
.detail-btn {
    display: inline-block;
    width:fit-content;
    padding: 10px 32px;
    background: #ECF5FC;
    color: #0D7DFC;
    border:1px solid #0D7DFC;
    border-radius: 3px;
    font-size: 16px;
    text-decoration: none;
    transition: background 0.2s;
}
.detail-btn:hover {
    background: rgba(13, 125, 252, 0.3);
}
.arrow {
    margin-left: 6px;
    font-size: 18px;
}
@media (max-width: 900px) {
    .detail-container {
        flex-direction: column;
        align-items: center;
        padding: 24px 8px;
        gap: 24px;
    }
    .detail-img-box {
        margin-right: 0;
        margin-bottom: 16px;
        width: 100%;
        height: 220px;
    }
}