/* 模板20 - 白底 · 标签与按钮紧跟标题 · 小图插在段落中间 */
/* ============================================================
   自包含皮肤：自带重置，不引用 base.css，不含任何渐变/毛玻璃/动画
   配色：强调色 #7a4b1e（每套只用 1 个强调色）+ 中性色
   ============================================================ */

/* ---------- 1. 重置 ---------- */
*,
*::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", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.9;
}

img {
    border: 0;
    max-width: 100%;
}

h1,
p,
figure {
    margin: 0;
}

a {
    color: #7a4b1e;
    text-decoration: none;
}

/* ---------- 2. 页面容器 ---------- */
.t20-page {
    max-width: 700px;
    margin: 0 auto;
    padding: 48px 22px 46px;
}

/* ---------- 3. 标题容器（标题 + 标签 + 按钮同一块） ---------- */
.t20-topbox {
    display: block;
    padding: 0 0 24px;
    border-bottom: 1px solid #e5e7eb;
}

.t20-h1 {
    font-size: 26px;
    line-height: 1.5;
    font-weight: 700;
    color: #1a1a1a;
    text-align: left;
    letter-spacing: 0.1px;
    word-break: break-word;
}

.t20-meta {
    display: block;
    margin: 18px 0 0;
}

/* ---------- 4. 标签（紧跟标题） ---------- */
.t20-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 9px 10px;
}

.t20-tag {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 3px 13px;
    border: 1px solid #d0d7de;
    border-radius: 12px;
    background: #fafafa;
    color: #7a4b1e;
    font-size: 13px;
    line-height: 26px;
    font-weight: 500;
}

.t20-tag-av {
    display: block;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    object-fit: cover;
    background: #e5e7eb;
}

/* ---------- 5. 按钮（紧跟标签） ---------- */
.t20-acts {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin: 18px 0 0;
}

.t20-btn {
    display: inline-block;
    padding: 11px 26px;
    border: 1px solid #7a4b1e;
    border-radius: 5px;
    background: #7a4b1e;
    color: #ffffff;
    font-size: 15px;
    line-height: 1.5;
    font-weight: 600;
    text-align: center;
    transition: background-color 0.2s, color 0.2s;
}

.t20-btn:hover {
    background: #333333;
    border-color: #333333;
    color: #ffffff;
}

.t20-btn-line {
    background: #ffffff;
    color: #7a4b1e;
}

.t20-btn-line:hover {
    background: #7a4b1e;
    border-color: #7a4b1e;
    color: #ffffff;
}

/* ---------- 6. 正文段落 ---------- */
.t20-text {
    display: block;
    margin: 26px 0 0;
}

.t20-p {
    margin: 0 0 18px;
    font-size: 16px;
    line-height: 1.95;
    color: #333333;
    text-align: left;
    word-break: break-word;
}

.t20-text .t20-p:first-child {
    color: #1f2328;
    font-weight: 500;
}

/* ---------- 7. 段落中间的小尺寸横屏图（居中，最大 400px） ---------- */
.t20-fig {
    max-width: 400px;
    margin: 26px auto;
    padding: 0;
}

.t20-fig-img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 4px;
    background: #f2f3f5;
    object-fit: cover;
}

/* ---------- 8. 底部友链 ---------- */
.t20-friend {
    display: block;
    margin: 42px 0 0;
    padding: 18px 0 0;
    border-top: 1px solid #e5e7eb;
    font-size: 13px;
    line-height: 2.1;
    color: #57606a;
}

.t20-friend-ttl {
    display: inline-block;
    margin: 0 8px 0 0;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1px;
    color: #7a4b1e;
}

.t20-friend-a {
    display: inline-block;
    margin: 0 15px 3px 0;
    color: #57606a;
    transition: color 0.2s;
}

.t20-friend-a:hover {
    color: #7a4b1e;
    text-decoration: underline;
}

/* ---------- 9. 窄屏适配 ---------- */
@media (max-width: 700px) {
    .t20-page {
        padding: 32px 18px 38px;
    }

    .t20-h1 {
        font-size: 22px;
    }

    .t20-p {
        font-size: 15.5px;
    }

    .t20-fig {
        max-width: 100%;
        margin: 22px auto;
    }

    .t20-btn {
        padding: 10px 22px;
    }
}

@media (max-width: 480px) {
    body {
        font-size: 15px;
    }

    .t20-h1 {
        font-size: 20px;
    }

    .t20-tag {
        font-size: 12px;
        line-height: 24px;
        padding: 3px 10px;
    }

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

    .t20-acts {
        gap: 10px;
    }

    .t20-btn {
        display: block;
        width: 100%;
        padding: 11px 8px;
    }

    .t20-p {
        font-size: 15px;
        margin-bottom: 15px;
    }

    .t20-friend-a {
        margin-right: 12px;
    }
}
