@charset "UTF-8";
/* ============================================================
   tpl004 重排版样式表  ——  主题「晨报纸感 / Paper Press」
   浅灰纸底 + 纯白卡片 + 1px 细描边 + 暖橙点缀 + 小圆角(4px)
   16:9 横版卡片 / 高密度紧凑排布 / 顶部通栏白色 sticky 导航
   全部类名以 t4- 开头，与旧主题类名（wrap mod row col5 clearfix …）隔离。
   本表在 bootstrap.min.css / common.css / hmlcss.css / app.css 之后加载。
   注意：本文件内禁止出现 “花括号 + ad / list / nav / link” 这类字符序列，
   会被模板解析器的正则误匹配。故所有规则一律换行书写。
   ============================================================ */

.t4-scope,
.t4-scope *,
.t4-scope *::before,
.t4-scope *::after {
    box-sizing: border-box;
}

:root {
    --t4-paper: #f2f3f5;
    --t4-card: #ffffff;
    --t4-line: #e2e5ea;
    --t4-line-soft: #eef0f3;
    --t4-ink: #1b1f26;
    --t4-ink-2: #4a515c;
    --t4-ink-3: #8a919c;
    --t4-brand: #e6620f;
    --t4-brand-soft: #fdf1e8;
    --t4-radius: 4px;
    --t4-gap: 14px;
}

body {
    background: var(--t4-paper);
}

.t4-scope {
    color: var(--t4-ink);
    font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.t4-scope a {
    color: inherit;
    text-decoration: none;
}

.t4-scope a:hover {
    color: var(--t4-brand);
    text-decoration: none;
}

.t4-scope img {
    border: 0;
    display: block;
    max-width: 100%;
}

.t4-scope ul,
.t4-scope ol,
.t4-scope dl,
.t4-scope dd {
    margin: 0;
    padding: 0;
}

.t4-scope li {
    list-style: none;
}

.t4-wrap {
    width: 100%;
    max-width: 1220px;
    margin: 0 auto;
    padding: 0 16px;
}

/* ---------------------------------------------------------- 顶栏 */

.t4-top {
    position: sticky;
    top: 0;
    z-index: 900;
    background: #ffffff;
    border-bottom: 1px solid var(--t4-line);
}

.t4-top-in {
    display: flex;
    align-items: center;
    gap: 18px;
    min-height: 62px;
    padding-top: 8px;
    padding-bottom: 8px;
    flex-wrap: wrap;
}

.t4-brand {
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex: 0 0 auto;
}

.t4-brand b {
    font-size: 21px;
    font-weight: 800;
    letter-spacing: .5px;
    color: var(--t4-ink);
}

.t4-brand i {
    font-style: normal;
    font-size: 11px;
    color: #ffffff;
    background: var(--t4-brand);
    border-radius: 2px;
    padding: 1px 6px;
    letter-spacing: 1px;
}

/* ---------------------------------------------------------- 搜索 */

.t4-search {
    flex: 1 1 320px;
    min-width: 260px;
}

.t4-search form {
    display: flex;
    align-items: stretch;
    border: 1px solid var(--t4-line);
    border-radius: var(--t4-radius);
    background: #fbfbfc;
    overflow: hidden;
    margin: 0;
}

.t4-search form:focus-within {
    border-color: var(--t4-brand);
    background: #ffffff;
}

.t4-search input[type="text"] {
    flex: 1 1 auto;
    min-width: 0;
    height: 38px;
    border: 0;
    outline: 0;
    background: transparent;
    padding: 0 12px;
    font-size: 14px;
    color: var(--t4-ink);
}

.t4-search input[type="text"]::placeholder {
    color: var(--t4-ink-3);
}

.t4-search button {
    flex: 0 0 auto;
    height: 38px;
    border: 0;
    border-left: 1px solid var(--t4-line);
    background: #f6f7f9;
    color: var(--t4-ink-2);
    font-size: 13px;
    padding: 0 16px;
    cursor: pointer;
    transition: background .15s, color .15s;
}

.t4-search button:hover {
    background: var(--t4-brand-soft);
    color: var(--t4-brand);
}

.t4-search button:last-child {
    border-left: 1px solid var(--t4-line);
}

/* ---------------------------------------------------------- 通用区块 */

.t4-block {
    margin: 16px 0;
}

.t4-panel {
    background: var(--t4-card);
    border: 1px solid var(--t4-line);
    border-radius: var(--t4-radius);
}

.t4-panel-pad {
    padding: 14px 16px;
}

.t4-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 0 0 10px 0;
    border-bottom: 1px solid var(--t4-line-soft);
    margin-bottom: 12px;
}

.t4-head h2,
.t4-head h3,
.t4-head h4 {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--t4-ink);
    position: relative;
    padding-left: 10px;
}

.t4-head h2::before,
.t4-head h3::before,
.t4-head h4::before {
    content: "";
    position: absolute;
    left: 0;
    top: 3px;
    bottom: 3px;
    width: 3px;
    background: var(--t4-brand);
    border-radius: 2px;
}

.t4-more {
    font-size: 12px;
    color: var(--t4-ink-3);
    flex: 0 0 auto;
}

/* ---------------------------------------------------------- 分组导航 */

.t4-navwrap {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0;
}

.t4-navgroup {
    padding: 12px 14px;
    border-right: 1px solid var(--t4-line-soft);
}

.t4-navgroup:last-child {
    border-right: 0;
}

.t4-navgroup dt {
    font-size: 12px;
    font-weight: 700;
    color: var(--t4-brand);
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.t4-navlist {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.t4-navlist dd a {
    display: inline-block;
    font-size: 12px;
    line-height: 22px;
    padding: 0 9px;
    color: var(--t4-ink-2);
    background: #f5f6f8;
    border: 1px solid var(--t4-line-soft);
    border-radius: 2px;
    white-space: nowrap;
}

.t4-navlist dd a:hover {
    color: var(--t4-brand);
    background: var(--t4-brand-soft);
    border-color: #f6d2b8;
}

/* ---------------------------------------------------------- 广告位 */

.t4-ad-banner {
    line-height: 0;
    border-radius: var(--t4-radius);
    overflow: hidden;
}

.t4-ad-banner:empty {
    display: none;
}

.t4-ad-banner a {
    display: block;
    width: 100%;
}

.t4-ad-banner img {
    width: 100%;
    object-fit: cover;
}

.t4-icons {
    display: grid;
    grid-template-columns: repeat(10, minmax(0, 1fr));
    gap: 10px;
}

.t4-icons:empty {
    display: none;
}

.t4-icons a {
    display: block;
    text-align: center;
}

.t4-icons img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid var(--t4-line);
    background: #fafafa;
}

.t4-icons span {
    display: block;
    margin-top: 5px;
    font-size: 12px;
    color: var(--t4-ink-2);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ---------------------------------------------------------- 文字链条 */

.t4-linkrow {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 8px;
}

.t4-linkrow:empty {
    display: none;
}

/* 链接位 / 广告位无启用项时整块被替换成空串，让只剩标题的空面板整体消失 */
.t4-panel:has(.t4-linkrow:empty) {
    display: none;
}

.t4-linkrow a {
    font-size: 13px;
    line-height: 24px;
    padding: 0 10px;
    color: var(--t4-ink-2);
    border: 1px dashed var(--t4-line);
    border-radius: 2px;
}

.t4-linkrow a:hover {
    color: var(--t4-brand);
    border-color: var(--t4-brand);
    border-style: solid;
}

.t4-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 8px;
}

.t4-tags a {
    font-size: 12px;
    line-height: 24px;
    padding: 0 10px;
    color: var(--t4-ink-2);
    background: #f5f6f8;
    border-radius: 12px;
}

.t4-tags a:hover {
    color: #ffffff;
    background: var(--t4-brand);
}

/* ---------------------------------------------------------- 卡片栅格 16:9 */

.t4-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--t4-gap);
}

.t4-card {
    background: var(--t4-card);
    border: 1px solid var(--t4-line);
    border-radius: var(--t4-radius);
    overflow: hidden;
    transition: border-color .15s;
}

.t4-card:hover {
    border-color: var(--t4-brand);
}

.t4-thumb {
    display: block;
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #eceef1;
    overflow: hidden;
}

.t4-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .25s ease;
}

.t4-card:hover .t4-thumb img {
    transform: scale(1.04);
}

.t4-meta {
    padding: 8px 10px 10px;
}

.t4-meta h3 {
    margin: 0;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.45;
    color: var(--t4-ink-2);
    height: 2.9em;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
}

.t4-card:hover .t4-meta h3 {
    color: var(--t4-brand);
}

/* ---------------------------------------------------------- 分页 */

.t4-page {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    padding: 22px 0 6px;
}

.t4-page a,
.t4-page span {
    display: inline-block;
    min-width: 34px;
    height: 32px;
    line-height: 30px;
    padding: 0 10px;
    text-align: center;
    font-size: 13px;
    color: var(--t4-ink-2);
    background: #ffffff;
    border: 1px solid var(--t4-line);
    border-radius: 2px;
}

.t4-page a:hover {
    color: var(--t4-brand);
    border-color: var(--t4-brand);
}

.t4-page .t4-page-cur {
    color: #ffffff;
    background: var(--t4-brand);
    border-color: var(--t4-brand);
    cursor: default;
}

/* ---------------------------------------------------------- 详情页 */

.t4-title {
    margin: 0 0 12px;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.5;
    color: var(--t4-ink);
    word-break: break-all;
}

.t4-player {
    background: #000000;
    border-radius: var(--t4-radius);
    overflow: hidden;
}

.t4-player video,
.t4-player iframe {
    display: block;
    width: 100%;
    border: 0;
}

.t4-share {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    padding: 10px 14px;
    background: #ffffff;
    border: 1px dashed var(--t4-line);
    border-radius: var(--t4-radius);
    font-size: 13px;
    color: var(--t4-ink-3);
}

.t4-share span#thisUrlID {
    flex: 1 1 200px;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.t4-share a {
    flex: 0 0 auto;
    color: var(--t4-brand);
    cursor: pointer;
    border-bottom: 1px dashed currentColor;
}

.t4-info {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 18px;
    font-size: 13px;
    color: var(--t4-ink-2);
    word-break: break-all;
}

.t4-info>div {
    padding: 6px 0;
    border-bottom: 1px solid var(--t4-line-soft);
}

.t4-shots {
    margin-top: 12px;
}

.t4-shots img {
    width: 100%;
    height: auto;
    margin-bottom: 8px;
    border-radius: var(--t4-radius);
    border: 1px solid var(--t4-line);
}

.t4-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding-top: 4px;
}

.t4-btn {
    display: inline-block;
    min-width: 118px;
    height: 38px;
    line-height: 36px;
    padding: 0 18px;
    text-align: center;
    font-size: 14px;
    cursor: pointer;
    border-radius: var(--t4-radius);
    border: 1px solid var(--t4-brand);
    color: var(--t4-brand);
    background: #ffffff;
}

.t4-btn:hover {
    color: #ffffff;
    background: var(--t4-brand);
}

.t4-btn-solid {
    color: #ffffff;
    background: var(--t4-brand);
}

.t4-btn-solid:hover {
    filter: brightness(1.08);
    color: #ffffff;
}

.t4-client {
    font-size: 13px;
    color: var(--t4-ink-3);
    padding-top: 10px;
}

.t4-client a {
    color: var(--t4-brand);
}

/* ---------------------------------------------------------- 页脚 */

.t4-foot {
    margin-top: 26px;
    padding: 22px 0 30px;
    background: #ffffff;
    border-top: 1px solid var(--t4-line);
}

.t4-foot-links {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 8px;
    margin-bottom: 16px;
}

.t4-foot-links:empty {
    display: none;
}

.t4-foot-links a {
    font-size: 12px;
    line-height: 22px;
    padding: 0 8px;
    color: var(--t4-ink-3);
    background: #f5f6f8;
    border-radius: 2px;
}

.t4-foot-links a:hover {
    color: var(--t4-brand);
}

.t4-copy {
    font-size: 12px;
    line-height: 1.9;
    color: var(--t4-ink-3);
    text-align: center;
}

.t4-copy p {
    margin: 0 0 4px;
}

/* ---------------------------------------------------------- 端上显隐工具类
   模板里大量使用 .hide_mobile / .hide_pc，站内原本没有任何样式表定义过它们
   （tpl004 的 js/common.js 只按 UA 注入其中一条）。这里补上按视口的定义。 */
}
}

/* ---------------------------------------------------------- 响应式 */

@media (max-width: 1100px) {
    .t4-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .t4-icons {
        grid-template-columns: repeat(8, minmax(0, 1fr));
    }

    .t4-navwrap {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .t4-navgroup {
        border-bottom: 1px solid var(--t4-line-soft);
    }
}

@media (max-width: 900px) {
    .t4-top-in {
        min-height: 0;
        gap: 10px;
    }

    .t4-brand b {
        font-size: 18px;
    }

    .t4-search {
        flex: 1 1 100%;
        min-width: 0;
    }

    .t4-icons {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }

    .t4-info {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 640px) {
    .t4-wrap {
        padding: 0 10px;
    }

    .t4-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .t4-navwrap {
        grid-template-columns: minmax(0, 1fr);
    }

    .t4-navgroup {
        border-right: 0;
    }

    .t4-icons {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .t4-search button {
        padding: 0 11px;
    }

    .t4-btn {
        flex: 1 1 45%;
        min-width: 0;
    }

    .t4-title {
        font-size: 16px;
    }
}
