/* 模板35 - 等宽标题单页 */

/* ===== 1. 基础重置（自包含，不引用任何外部样式） ===== */
*,
*::before,
*::after {
    box-sizing: border-box;
}

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

body,
h1,
p {
    margin: 0;
}

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

a {
    color: inherit;
}

/* ===== 2. 页面骨架：浅灰底、840px 单栏，顶部通栏图贴边 ===== */
body {
    background-color: #f2f3f5;
    color: #333333;
    font-family: -apple-system, "Segoe UI", "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.75;
}

.t35-main {
    display: block;
    max-width: 840px;
    margin: 0 auto;
    padding: 0 0 32px;
    background-color: #ffffff;
}

/* ===== 3. 横屏图：标题上方通栏低矮，高 160px，object-fit: cover ===== */
.t35-hero {
    display: block;
    width: 100%;
    height: 160px;
    overflow: hidden;
    background-color: #e5e7eb;
}

.t35-hero-img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    object-position: center;
    border-radius: 0;
}

/* ===== 4. 正文容器与标题：标题使用等宽字体 ===== */
.t35-art {
    display: block;
    padding: 30px 28px 8px;
}

.t35-h1 {
    font-family: ui-monospace, "Consolas", "Courier New", monospace;
    font-size: 26px;
    font-weight: 700;
    line-height: 1.5;
    letter-spacing: 0.01em;
    color: #1a1a1a;
    margin-bottom: 16px;
    padding-bottom: 14px;
    border-bottom: 3px solid #8c1c13;
}

/* ===== 5. 关键标签：等宽方框，横向排布 ===== */
.t35-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 9px;
    margin: 0 0 22px;
    padding: 0;
}

.t35-tag {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 5px 11px;
    border: 1px solid #d0d7de;
    border-radius: 0;
    background-color: #f7f8fa;
    color: #8c1c13;
    font-family: ui-monospace, "Consolas", "Courier New", monospace;
    font-size: 12.5px;
    line-height: 1.5;
    white-space: nowrap;
}

.t35-tag-av {
    width: 22px;
    height: 22px;
    flex: none;
    border-radius: 50%;
    object-fit: cover;
    background-color: #e5e7eb;
}

/* ===== 6. 正文段落：常规无衬线，16px ===== */
.t35-p {
    font-size: 16px;
    line-height: 1.75;
    color: #333333;
    margin-bottom: 16px;
}

.t35-p:last-child {
    margin-bottom: 0;
}

/* ===== 7. 按钮：等宽实心，方角 ===== */
.t35-act {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 22px 0;
}

.t35-btn {
    display: inline-block;
    padding: 12px 24px;
    border: 1px solid #8c1c13;
    border-radius: 0;
    background-color: #8c1c13;
    color: #ffffff;
    font-family: ui-monospace, "Consolas", "Courier New", monospace;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: 0.02em;
    text-decoration: none;
    transition: background-color 0.15s ease;
}

.t35-btn:hover {
    background-color: #741710;
    border-color: #741710;
}

.t35-btn--line {
    background-color: #ffffff;
    color: #8c1c13;
}

.t35-btn--line:hover {
    background-color: #f7f8fa;
    color: #741710;
    border-color: #741710;
}

/* ===== 8. 底部友链：等宽小标题 + 常规链接 ===== */
.t35-foot {
    display: block;
    max-width: 840px;
    margin: 0 auto;
    padding: 20px 28px 46px;
    font-size: 14px;
    line-height: 1.9;
}

.t35-friend {
    display: block;
    padding-top: 16px;
    border-top: 1px solid #e5e7eb;
    color: #57606a;
}

.t35-friend-ttl {
    display: inline-block;
    margin-right: 12px;
    color: #8c1c13;
    font-family: ui-monospace, "Consolas", "Courier New", monospace;
    font-size: 12.5px;
    font-weight: 700;
}

.t35-friend-lk {
    display: inline-block;
    margin-right: 12px;
    color: #57606a;
    text-decoration: none;
    transition: color 0.15s ease;
}

.t35-friend-lk:hover {
    color: #8c1c13;
    text-decoration: underline;
}

/* ===== 9. 窄屏适配：通栏图降低、标题降档、按钮通栏 ===== */
@media (max-width: 640px) {
    .t35-art {
        padding: 22px 16px 6px;
    }

    .t35-hero,
    .t35-hero-img {
        height: 130px;
    }

    .t35-h1 {
        font-size: 20px;
        line-height: 1.55;
        border-bottom-width: 2px;
    }

    .t35-tags {
        gap: 7px;
    }

    .t35-tag {
        font-size: 12px;
        padding: 4px 9px;
    }

    .t35-act {
        flex-direction: column;
        gap: 8px;
    }

    .t35-btn {
        display: block;
        width: 100%;
        text-align: center;
    }

    .t35-foot {
        padding: 16px 16px 34px;
    }
}

/* ===== 10. 超窄屏：通栏图再降、标签头像收小 ===== */
@media (max-width: 360px) {
    .t35-hero,
    .t35-hero-img {
        height: 110px;
    }

    .t35-h1 {
        font-size: 18px;
    }

    .t35-tag-av {
        width: 20px;
        height: 20px;
    }
}
