/* 模板8 - 编号段落 */

/* ---------- 重置 ---------- */
.t08-body,
.t08-body * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    border: 0;
    font: inherit;
    list-style: none;
}

/* ---------- 页面底色 ---------- */
.t08-body {
    background: #ffffff;
    color: #333333;
    font-family: "Segoe UI", "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.88;
    counter-reset: t08-num;
    -webkit-font-smoothing: antialiased;
}

.t08-body img {
    display: block;
    max-width: 100%;
    height: auto;
}

/* ---------- 单页版心 ---------- */
.t08-wrap {
    width: 100%;
    max-width: 720px;
    margin: 0 auto;
    padding: 76px 30px 68px;
}

/* ---------- 标题区 ---------- */
.t08-masthead {
    display: block;
    padding: 0;
    margin: 0 0 12px;
    border-bottom: 1px solid #e5e7eb;
}

.t08-h1 {
    font-size: 31px;
    font-weight: 700;
    line-height: 1.36;
    letter-spacing: 0.1px;
    color: #1f2328;
    margin: 0 0 20px;
    word-break: break-word;
    overflow-wrap: break-word;
}

.t08-related {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 10px;
    margin: 0 0 22px;
    padding: 0;
}

/* ---------- 关键标签（方框） ---------- */
.t08-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border: 1px solid #d0d7de;
    background: #fafafa;
    font-size: 13px;
    line-height: 1.6;
    color: #57606a;
    white-space: nowrap;
}

.t08-tag-av {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid #e5e7eb;
    flex: none;
}

/* ---------- 正文（左侧强调色竖线内缩） ---------- */
.t08-copy {
    margin: 0;
    padding: 26px 0 0 22px;
    border-left: 2px solid #6b2737;
}

.t08-copy + .t08-copy {
    padding-top: 22px;
}

/* ---------- 段落编号 ---------- */
.t08-p {
    position: relative;
    margin: 0 0 20px;
    padding-left: 26px;
    font-size: 16px;
    line-height: 1.88;
    color: #333333;
    text-align: left;
    word-break: break-word;
    overflow-wrap: break-word;
    counter-increment: t08-num;
}

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

.t08-p::before {
    content: counter(t08-num, decimal-leading-zero);
    position: absolute;
    left: 0;
    top: 0.28em;
    font-size: 12.5px;
    line-height: 1;
    font-weight: 700;
    letter-spacing: 0.4px;
    color: #6b2737;
    font-family: "Consolas", "Courier New", monospace;
}

/* ---------- 图片（编号段落之间） ---------- */
.t08-media {
    margin: 28px 0 28px 22px;
    padding: 0;
}

.t08-media-img {
    width: 100%;
    max-height: 340px;
    object-fit: cover;
    border: 1px solid #e5e7eb;
    border-left: 2px solid #6b2737;
    background: #fafafa;
}

/* ---------- 按钮（实心小方块） ---------- */
.t08-acts {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 34px 0 0;
    padding: 0 0 0 22px;
}

.t08-btn {
    display: inline-block;
    padding: 10px 18px;
    background: #6b2737;
    color: #ffffff;
    font-size: 14px;
    line-height: 1.2;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color 0.18s ease;
}

.t08-btn:hover {
    background: #4f1d29;
}

.t08-btn-alt {
    background: #3f3f46;
}

.t08-btn-alt:hover {
    background: #2b2b31;
}

/* ---------- 底部友链 ---------- */
.t08-links {
    display: block;
    margin: 46px 0 0;
    padding: 22px 0 0;
    border-top: 1px solid #e5e7eb;
}

.t08-links-ttl {
    display: inline-block;
    margin: 0 0 12px;
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: 2.4px;
    color: #6b2737;
}

.t08-links-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 18px;
}

.t08-links-a {
    display: inline-block;
    font-size: 13px;
    line-height: 1.9;
    color: #8a8f98;
    text-decoration: none;
    border-left: 2px solid #e5e7eb;
    padding-left: 8px;
    transition: color 0.18s ease, border-color 0.18s ease;
}

.t08-links-a:hover {
    color: #6b2737;
    border-left-color: #6b2737;
}

/* ---------- 窄屏适配 ---------- */
@media (max-width: 720px) {
    .t08-wrap {
        padding: 48px 20px 44px;
    }
    .t08-h1 {
        font-size: 25px;
    }
    .t08-copy,
    .t08-acts {
        padding-left: 16px;
    }
    .t08-media {
        margin-left: 16px;
    }
    .t08-p {
        padding-left: 22px;
    }
}

@media (max-width: 420px) {
    .t08-wrap {
        padding: 36px 16px 34px;
    }
    .t08-h1 {
        font-size: 21px;
        line-height: 1.42;
    }
    .t08-tag {
        padding: 3px 8px;
        font-size: 12.5px;
    }
    .t08-tag-av {
        width: 20px;
        height: 20px;
    }
    .t08-btn {
        padding: 9px 14px;
        font-size: 13.5px;
    }
}
