/* ==============================================
   首页公共样式
   ============================================== */

/* ---------- 模块标题栏（橙色竖线标题，无背景） ---------- */
/* 标题外层容器，控制整体外边距、flex横向布局，支持左右布局（标题 + 更多） */
.live-box-title-banner {
    display:flex;
    align-items:center;
    justify-content: space-between; /* 左侧标题，右侧更多，左右分开 */
    gap:12px;
    margin:22px 16px 12px 9px;
}
/* 左侧组合：橙色竖线 + 标题内容区域 */
.live-box-title-left {
    display: flex;
    align-items: center;            /* 垂直居中对齐 */
    gap: 3px;                       /* 竖线与文字之间距离，越小越靠近，推荐4‑6px */
}
/* 左侧橙色竖线装饰条 */
.live-box-orange-line {
    width: 4px;                     /* 竖线宽度 */
    height: 26px;                   /* 竖线高度 */
    background: #ff782c;            /* 主题橙色 */
    border-radius: 2px;             /* 小圆角 */
    margin-right:0px;
}
/* 主标题+副标题行容器 */
.live-box-title-text {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;                      /* 主标题与副标题间距 */
}
/* 分类主标题文字 */
.live-box-main-title {
    font-size: 18px;
    font-weight: bold;
    color: #111;
}
/* 分类副标题/描述文字（灰色小字） */
.live-box-sub-title {
    font-size: 13px;
    color: #777;
}

/* 移动端适配 767px以下 */
@media (max-width: 767px) {
    .live-box-title-banner {
        justify-content: space-between;
        gap:10px;
        margin:20px 12px 10px 8px;
    }
    .live-box-main-title {
        font-size: 18px;
    }
    .live-box-orange-line {
        height: 20px; /* 手机端竖线高度缩小 */
    }
    .live-box-title-text {
        gap: 8px; /* 移动端主副标题间距缩小 */
    }
}

/* ---------- APP应用网格容器 ---------- */
/* APP列表外层白色卡片容器 */
.app-grid-box {
    background: #fff;               /* 白色背景卡片 */
    border-radius: 20px;            /* 大圆角 */
    padding: 20px 15px;             /* 卡片内边距 上下｜左右 */
    margin: 15px 0;                 /* 模块上下外边距 */
}
/* 网格行：三列布局 */
.app-grid-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);  /* 均等3列 */
    gap: 20px 12px;                /* 行间距｜列间距 */
}
/* 单个app格子项 */
.app-grid-item {
    text-align: center;
    position: relative;
}
/* app图标外层容器，用于定位HOT角标 */
.app-item-icon-wrap {
    position: relative;
    width: 68px;
    height: 68px;
    margin: 0 auto 13px;             /* 水平居中，底部留间距 */
}
/* APP图标图片 */
.app-grid-icon {
    width: 68px;
    height: 68px;
    border-radius: 12px;
    object-fit: cover;              /* 图片不变形裁剪 */
}
/* HOT红色角标标签 */
.app-hot-tag {
    position: absolute;
    top: -6px;
    right: -6px;
    background: #f53844;
    color: #fff;
    font-size: 8px;
    font-weight: bold;
    padding: 2px 8px;
    border-radius: 12px;
    z-index: 2;                     /* 层级高于图标，防止被遮挡 */
}
/* APP名称文字 */
.app-grid-name {
    font-size: 15px;
    color: #222;
    margin-bottom: 10px;
}
/* 下载按钮胶囊样式 */
.app-grid-download {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    background: #ff7324;
    color: #ffffff;
    border-radius: 9999px;          /* 胶囊圆角，越大越圆 */
    padding: 6px 0;
    text-decoration: none;          /* 去掉a标签下划线 */
    font-size: 12px;
    font-weight: 500;
    transition: all 0.2s ease;      /* 过渡动画，hover平滑变色 */
}
/* 鼠标悬浮状态 */
.app-grid-download:hover {
    background: #ff6017;
}
/* 点击按下状态 */
.app-grid-download:active {
    background: #e55410;
}

/* ---------- 文章资讯头部（旧，不再使用，改用live‑box‑title‑banner） ---------- */
.news-header-wrap {
    display: flex;
    justify-content: space-between; /* 左右两边分开：标题居左，更多居右 */
    align-items: center;
    margin: 20px 0 12px;
}
.news-title-left {
    font-size: 18px;
    font-weight: bold;
    color: #111;
}
.news-title-left small {
    font-size: 14px;
    color: #888;
    font-weight: normal;
    margin-left: 6px;
}
/* “更多”链接 */
.news-more-right a {
    color: #ff782c;
    font-size: 16px;
    text-decoration: none;
}

/* ---------- 文章资讯卡片容器 ---------- */
.news-card-wrap {
    background: #ffffff;
    border-radius: 22px;
    overflow: hidden;               /* 圆角裁剪内部子元素，子内容不会溢出圆角 */
    margin-bottom: 20px;
}
/* 强制资讯区域全部文字15px */
.news-card-wrap,
.news-card-wrap * {
    font-size: 15px !important;
}
/* 单条新闻条目 */
.news-item {
    display: flex;
    padding: 18px 16px;
    border-bottom: 1px solid #eeeeee; /* 条目底部分割线 */
}
/* 最后一条新闻取消底部分割线 */
.news-item:last-child {
    border-bottom: none;
}
/* 左侧日期列 */
.news-date-col {
    width: 70px;
    flex-shrink: 0;                 /* 禁止被flex压缩，固定宽度 */
}
/* 大号日期数字 */
.news-day-big {
    font-size: 36px;
    font-weight: bold;
    line-height: 1;
    color: #111;
}
/* 年月小字 */
.news-ym-small {
    margin-top: 4px;
}
/* 右侧文章内容区域 */
.news-content-col {
    flex: 1;                        /* 占剩余全部宽度 */
}
/* 文章分类标签 */
.news-tag {
    display: inline-block;
    background: #fff1e5;
    color: #f27c38;
    padding: 3px 10px;
    border-radius: 6px;
    margin-bottom: 8px;
}
/* 文章标题 */
.news-title-text {
    font-weight: bold;
    color: #111;
    margin-bottom: 8px;
}
.news-title-text a {
    color: #111;
    text-decoration: none;
}
/* 文章摘要，最多显示2行，超出省略 */
.news-desc-text {
    color: #666;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;         /* 限制2行 */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ---------- 滚动公告栏 ---------- */
.notice-box {
    display: flex;
    align-items: center;
    background: #ffffff;
    border: 1px solid #e2e2e2;
    border-radius: 18px;
    padding: 7px 14px;
    gap: 10px;
    margin: 10px 0;
    overflow: hidden;               /* 滚动文字溢出部分隐藏 */
}
/* 公告栏左侧：喇叭+公告标题 */
.notice-left {
    display: flex;
    align-items: center;
    flex-shrink: 0;                 /* 左侧固定不压缩 */
    gap: 14px;
}
/* 喇叭图标圆形橙色背景 */
.notice-speaker-icon {
    width: 23px;
    height: 23px;
    border-radius: 50%;
    background-color: #ff7722;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 20px;
}
/* 喇叭emoji图标 */
.notice-speaker-icon::before {
    content: "🔊";
}
/* 公告标题文字 */
.notice-title {
    font-size: 16px;
    font-weight: bold;
    color: #ff6c20;
}
/* 中间灰色分割竖线 */
.notice-divider {
    width: 1px;
    height: 28px;
    background-color: #cccccc;
    flex-shrink: 0;
}
/* 滚动文字外层容器 */
.notice-scroll-wrap {
    flex: 1;
    overflow: hidden;
}
/* 滚动文本，开启横向跑马灯 */
.notice-scroll-text {
    display: inline-block;
    white-space: nowrap;            /* 禁止换行，实现横向滚动 */
    font-size: 15px;
    color: #333333;
    animation: noticeScroll 14s linear infinite; /* 滚动动画：14秒循环，匀速 */
}
/* 公告横向跑马灯动画 */
@keyframes noticeScroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* 公告栏移动端适配 */
@media (max-width: 768px) {
    .notice-box {
        padding: 8px 12px;
        gap: 10px;
    }
    .notice-speaker-icon {
        width: 23px;
        height: 23px;
        font-size: 16px;
    }
    .notice-title {
        font-size: 14px;
    }
    .notice-divider {
        height: 20px;
    }
    .notice-scroll-text {
        font-size: 13px;
        animation-duration: 10s;    /* 手机端滚动速度加快 */
    }
}
/*==================== 仅文章资讯标题单独设置 ====================*/
/* 电脑端：竖条和文字的水平距离 */
.article-title-banner .live-box-title-left {
    gap: 3px;   /* 修改这个数值：越小线条越贴文字，例如1/2/3/4/5 */
}
/* 可选：文章资讯单独设置竖条高矮 */
.article-title-banner .live-box-orange-line {
    height:26px;
}
/* 可选：文章资讯标题整体上下外边距 */
.article-title-banner {
    margin-top:24px;
    margin-bottom:10px;
}

/* 手机端单独 */
@media (max-width:767px){
    .article-title-banner .live-box-title-left{
        gap:6px;
    }
    .article-title-banner .live-box-orange-line{
        height:19px;
    }
    .article-title-banner{
        margin-top:20px;
        margin-bottom:8px;
    }
}