/* 模板24 - 白底 / 720px 左对齐标题与标签 / 底部固定按钮条 */

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

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

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

body {
    margin: 0;
    padding: 0;
    background: #ffffff;
    color: #333333;
    font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.9;
}

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

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

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

a {
    color: #37474f;
    text-decoration: none;
}

/* ---------- 页面容器：720px 单栏，底部预留固定按钮条的高度 ---------- */

.t24-main {
    max-width: 720px;
    margin: 0 auto;
    padding: 60px 24px 80px;
}

.t24-box {
    display: block;
}

/* ---------- 标题区：标题左对齐，标签紧跟标题下方 ---------- */

.t24-head {
    padding-bottom: 18px;
    border-bottom: 1px solid #d0d7de;
}

.t24-title {
    color: #1a1a1a;
    font-size: 31px;
    font-weight: 700;
    line-height: 1.42;
    letter-spacing: -0.3px;
}

.t24-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 16px;
}

.t24-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 12px 4px 5px;
    border: 1px solid #e5e7eb;
    border-radius: 3px;
    background: #fafafa;
    color: #57606a;
    font-size: 13px;
    line-height: 1.6;
}

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

/* ---------- 正文区 ---------- */

.t24-lead {
    margin-top: 28px;
    color: #333333;
    font-size: 17px;
    line-height: 1.95;
}

.t24-quote {
    margin-top: 22px;
    padding-left: 18px;
    border-left: 3px solid #37474f;
    color: #57606a;
    font-size: 16px;
    line-height: 1.9;
}

/* ---------- 图片：正文之后，直角细边框 ---------- */

.t24-plate {
    display: block;
    margin-top: 32px;
}

.t24-plate-img {
    width: 100%;
    height: auto;
    border: 1px solid #e5e7eb;
}

/* ---------- 友链区 ---------- */

.t24-foot {
    margin-top: 56px;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
}

.t24-friend {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 8px 18px;
}

.t24-friend-ttl {
    color: #1a1a1a;
    font-size: 14px;
    font-weight: 600;
}

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

.t24-friend-a:hover {
    color: #37474f;
}

/* ---------- 底部固定按钮条：白底 + 上边框，不随滚动移动 ---------- */

.t24-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10;
    border-top: 1px solid #d0d7de;
    background: #ffffff;
}

.t24-bar-in {
    display: flex;
    justify-content: center;
    max-width: 720px;
    margin: 0 auto;
    padding: 12px 24px;
}

.t24-btn {
    display: inline-block;
    padding: 11px 30px;
    border: 1px solid #37474f;
    border-radius: 4px;
    background: #37474f;
    color: #ffffff;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
    transition: background 0.2s ease;
}

.t24-btn:hover {
    background: #263238;
    border-color: #263238;
}

/* ---------- 窄屏：底部按钮条按钮通栏，正文底部留白保持 80px ---------- */

@media (max-width: 700px) {
    .t24-main {
        padding: 36px 18px 80px;
    }

    .t24-title {
        font-size: 24px;
        line-height: 1.45;
    }

    .t24-tags {
        gap: 7px;
        margin-top: 13px;
    }

    .t24-lead {
        margin-top: 20px;
        font-size: 16px;
        line-height: 1.9;
    }

    .t24-quote {
        margin-top: 16px;
        padding-left: 13px;
        font-size: 15px;
    }

    .t24-plate {
        margin-top: 24px;
    }

    .t24-foot {
        margin-top: 36px;
        padding-top: 16px;
    }

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

    .t24-bar-in {
        padding: 10px 18px;
    }

    .t24-btn {
        width: 100%;
        text-align: center;
    }
}

/* ---------- 超窄屏：标签与链接字号下调 ---------- */

@media (max-width: 400px) {
    .t24-title {
        font-size: 21px;
    }

    .t24-tag {
        font-size: 12px;
        padding: 3px 10px 3px 4px;
    }

    .t24-tag-av {
        width: 22px;
        height: 22px;
    }

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