/* 模板22 - 白底居中 / 标题上方小图 / 620px 窄栏 / 正文后居中大按钮 */

/* ---------- 基础重置 ---------- */

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

html {
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    background: #ffffff;
    color: #333333;
    font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.8;
}

h1,
p,
figure {
    margin: 0;
    padding: 0;
}

h1 {
    font-size: inherit;
    font-weight: inherit;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
    border: 0;
}

a {
    color: #1f4e79;
    text-decoration: none;
}

/* ---------- 页面容器：整页居中 ---------- */

.t22-page {
    max-width: 760px;
    margin: 0 auto;
    padding: 52px 26px 76px;
    text-align: center;
}

/* ---------- 图片：标题上方的小图，居中 ---------- */

.t22-figure {
    margin: 0 auto 30px;
    width: 100%;
    max-width: 430px;
    padding: 8px;
    border: 1px solid #e5e7eb;
    background: #fafafa;
}

.t22-figure-img {
    width: 100%;
    height: auto;
}

/* ---------- 标题与正文：620px 居中窄栏，正文左对齐阅读更顺 ---------- */

.t22-core {
    display: block;
}

.t22-title {
    margin: 0 auto;
    max-width: 620px;
    color: #1f2328;
    font-size: 29px;
    font-weight: 700;
    line-height: 1.5;
    letter-spacing: 0.2px;
}

.t22-body {
    max-width: 620px;
    margin: 24px auto 0;
    text-align: left;
}

.t22-lead {
    color: #333333;
    font-size: 17px;
    line-height: 1.95;
}

.t22-line {
    margin-top: 18px;
    padding-left: 16px;
    border-left: 2px solid #d0d7de;
    color: #57606a;
    font-size: 16px;
    line-height: 1.9;
}

/* ---------- 标签：居中排列，前四个带圆形头像 ---------- */

.t22-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 34px;
}

.t22-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 16px 5px 6px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #f7f8fa;
    color: #57606a;
    font-size: 14px;
    line-height: 1.5;
}

.t22-tag-av {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    object-fit: cover;
}

/* ---------- 按钮：正文之后居中，大号实心 ---------- */

.t22-ctarow {
    margin-top: 40px;
}

.t22-btn {
    display: inline-block;
    padding: 14px 34px;
    border-radius: 6px;
    background: #1f4e79;
    color: #ffffff;
    font-size: 17px;
    font-weight: 600;
    letter-spacing: 0.5px;
    line-height: 1.3;
    transition: background 0.2s ease;
}

.t22-btn:hover {
    background: #17395a;
}

/* ---------- 友链区：居中一行流式排列 ---------- */

.t22-foot {
    margin-top: 62px;
    padding-top: 24px;
    border-top: 1px solid #e5e7eb;
    text-align: center;
}

.t22-friend {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: baseline;
    gap: 8px 18px;
}

.t22-friend-ttl {
    color: #1f2328;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1px;
}

.t22-friend-a {
    color: #57606a;
    font-size: 14px;
    transition: color 0.2s ease;
}

.t22-friend-a:hover {
    color: #1f4e79;
}

/* ---------- 窄屏：小图与窄栏跟随屏幕收缩 ---------- */

@media (max-width: 700px) {
    .t22-page {
        padding: 34px 18px 52px;
    }

    .t22-figure {
        max-width: 100%;
        margin-bottom: 22px;
        padding: 6px;
    }

    .t22-title {
        font-size: 23px;
        line-height: 1.45;
    }

    .t22-body {
        margin-top: 18px;
    }

    .t22-lead {
        font-size: 16px;
        line-height: 1.9;
    }

    .t22-line {
        margin-top: 14px;
        padding-left: 12px;
        font-size: 15px;
    }

    .t22-tags {
        gap: 8px;
        margin-top: 26px;
    }

    .t22-ctarow {
        margin-top: 30px;
    }

    .t22-btn {
        padding: 13px 28px;
        font-size: 16px;
    }

    .t22-foot {
        margin-top: 42px;
        padding-top: 18px;
    }

    .t22-friend {
        gap: 6px 12px;
    }
}

/* ---------- 超窄屏：收紧字号与内边距 ---------- */

@media (max-width: 380px) {
    .t22-title {
        font-size: 20px;
    }

    .t22-tag {
        font-size: 13px;
        padding: 4px 12px 4px 5px;
    }

    .t22-friend-a,
    .t22-friend-ttl {
        font-size: 13px;
    }
}
