/* 模板23 - 浅灰底白卡 / 顶部通栏图 / 两按钮并排 / 胶囊标签 */

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

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

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

body {
    margin: 0;
    background: #f2f3f5;
    color: #333333;
    font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", Helvetica, sans-serif;
    font-size: 16px;
    line-height: 1.8;
}

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

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

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

a {
    text-decoration: none;
}

/* ---------- 页面容器：浅灰底上的单张白卡 ---------- */

.t23-page {
    display: block;
    max-width: 760px;
    margin: 0 auto;
    padding: 44px 20px 64px;
}

.t23-card {
    display: block;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #ffffff;
}

/* ---------- 图片：卡片顶部通栏 ---------- */

.t23-cover {
    width: 100%;
    margin: 0;
    border-bottom: 1px solid #e5e7eb;
    background: #f7f8fa;
}

.t23-cover-img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* ---------- 卡片内文：标题区 + 正文区 ---------- */

.t23-block {
    padding: 30px 34px 36px;
}

.t23-title {
    color: #1f2328;
    font-size: 28px;
    font-weight: 700;
    line-height: 1.5;
    letter-spacing: -0.2px;
}

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

.t23-quote {
    margin-top: 20px;
    padding: 14px 18px;
    border-left: 3px solid #8c1c13;
    background: #f7f8fa;
    color: #57606a;
    font-size: 16px;
    line-height: 1.9;
}

/* ---------- 标签：胶囊形，前四个带圆形头像 ---------- */

.t23-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 28px;
}

.t23-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 15px 5px 6px;
    border: 1px solid #e5e7eb;
    border-radius: 999px;
    background: #ffffff;
    color: #57606a;
    font-size: 14px;
    line-height: 1.6;
}

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

/* ---------- 两个按钮并排：一个实心、一个描边 ---------- */

.t23-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
    margin-top: 30px;
}

.t23-btn {
    display: inline-block;
    min-width: 150px;
    padding: 13px 26px;
    border: 1px solid #8c1c13;
    border-radius: 6px;
    background: #8c1c13;
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    line-height: 1.4;
    transition: background 0.2s ease;
}

.t23-btn:hover {
    background: #6f150e;
    border-color: #6f150e;
}

.t23-btn2 {
    display: inline-block;
    min-width: 150px;
    padding: 13px 26px;
    border: 1px solid #8c1c13;
    border-radius: 6px;
    background: #ffffff;
    color: #8c1c13;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    line-height: 1.4;
    transition: background 0.2s ease;
}

.t23-btn2:hover {
    background: #faf0ef;
}

/* ---------- 友链区：卡片之外，跟随页面底边 ---------- */

.t23-foot {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 10px 24px;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #d0d7de;
}

.t23-friend {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 8px 18px;
}

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

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

.t23-friend-a:hover {
    color: #8c1c13;
}

/* ---------- 窄屏：卡片内边距收紧，两个按钮等分一行 ---------- */

@media (max-width: 700px) {
    .t23-page {
        padding: 26px 14px 44px;
    }

    .t23-block {
        padding: 22px 18px 26px;
    }

    .t23-title {
        font-size: 22px;
        line-height: 1.45;
    }

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

    .t23-quote {
        margin-top: 16px;
        padding: 12px 14px;
        font-size: 15px;
    }

    .t23-tags {
        gap: 8px;
        margin-top: 22px;
    }

    .t23-actions {
        margin-top: 24px;
        gap: 10px;
    }

    .t23-btn,
    .t23-btn2 {
        flex: 1 1 44%;
        min-width: 0;
        padding: 12px 16px;
        font-size: 15px;
    }

    .t23-foot {
        margin-top: 30px;
        padding-top: 16px;
        flex-direction: column;
    }

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

/* ---------- 超窄屏：继续压缩字号 ---------- */

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

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

    .t23-btn,
    .t23-btn2,
    .t23-friend-a {
        font-size: 13px;
    }
}
