/* 模板28 - 浅灰双分区 */
/* 1. 基础重置 */
*,
*::before,
*::after { box-sizing: border-box; }

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

body {
    margin: 0;
    padding: 0;
    background: #f7f8fa;
    color: #333333;
    font-family: -apple-system, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.9;
    -webkit-font-smoothing: antialiased;
}

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

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

a {
    color: #1f4e79;
    text-decoration: none;
    transition: opacity 0.18s ease, border-color 0.18s ease;
}

a:focus-visible {
    outline: 2px solid #1f4e79;
    outline-offset: 2px;
}

/* 2. 页面容器 */
.t28-canvas {
    display: block;
    width: 100%;
    max-width: 760px;
    margin: 0 auto;
    padding: 44px 20px 40px;
}

/* 3. 浅底分区：两块白底圆角面板，间距 20px */
.t28-block {
    display: block;
    padding: 34px 38px;
    background: #ffffff;
    border-radius: 4px;
}

.t28-block + .t28-block {
    margin-top: 20px;
}

/* 4. 第一块：标题 */
.t28-h1 {
    font-size: 26px;
    line-height: 1.5;
    font-weight: 600;
    color: #1f2328;
    letter-spacing: 0.01em;
}

/* 5. 第一块：标签 */
.t28-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid #f2f3f5;
}

.t28-tag {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 3px 12px;
    min-height: 26px;
    background: #f7f8fa;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    font-size: 13px;
    line-height: 20px;
    color: #57606a;
    white-space: nowrap;
}

.t28-tag-av {
    display: block;
    width: 26px;
    height: 26px;
    margin-left: -7px;
    border-radius: 50%;
    object-fit: cover;
    background: #f2f3f5;
}

/* 6. 第二块：正文 */
.t28-text {
    display: block;
}

.t28-p {
    font-size: 16px;
    line-height: 1.9;
    color: #333333;
    margin-bottom: 17px;
}

.t28-p:first-child {
    color: #1f2328;
}

.t28-quote {
    font-size: 15.5px;
    line-height: 1.9;
    color: #57606a;
    margin-bottom: 17px;
    padding-left: 15px;
    border-left: 2px solid #d0d7de;
}

.t28-text > p:last-child {
    margin-bottom: 0;
}

/* 7. 第二块：图 */
.t28-fig {
    display: block;
    margin-top: 26px;
}

.t28-img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 4px;
    background: #f7f8fa;
}

/* 8. 第二块：按钮，实心 */
.t28-acts {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.t28-btn {
    display: inline-block;
    padding: 11px 28px;
    background: #1f4e79;
    border: 1px solid #1f4e79;
    border-radius: 4px;
    color: #ffffff;
    font-size: 15px;
    font-weight: 500;
    line-height: 22px;
    text-align: center;
}

.t28-btn:hover {
    opacity: 0.88;
}

.t28-btn2 {
    display: inline-block;
    padding: 11px 28px;
    background: #ffffff;
    border: 1px solid #d0d7de;
    border-radius: 4px;
    color: #57606a;
    font-size: 15px;
    font-weight: 500;
    line-height: 22px;
    text-align: center;
}

.t28-btn2:hover {
    border-color: #1f4e79;
    color: #1f4e79;
}

/* 9. 底部友链：留在浅灰底上 */
.t28-friend {
    display: block;
    margin-top: 26px;
    padding: 0 6px;
    font-size: 13px;
    line-height: 2;
    color: #8a8f98;
}

.t28-friend-ttl {
    display: inline-block;
    margin-right: 12px;
    color: #57606a;
    font-weight: 500;
}

.t28-friend a {
    display: inline-block;
    margin-right: 14px;
    color: #57606a;
    border-bottom: 1px solid #e5e7eb;
}

.t28-friend a:hover {
    color: #1f4e79;
    border-bottom-color: #1f4e79;
}

/* 10. 窄屏适配 */
@media (max-width: 700px) {
    .t28-canvas {
        padding: 20px 12px 28px;
    }

    .t28-block {
        padding: 22px 18px;
    }

    .t28-block + .t28-block {
        margin-top: 20px;
    }

    .t28-h1 {
        font-size: 21px;
        line-height: 1.5;
    }

    .t28-tags {
        margin-top: 15px;
        padding-top: 14px;
        gap: 8px;
    }

    .t28-tag {
        font-size: 12.5px;
        padding: 3px 10px;
    }

    .t28-p {
        font-size: 15.5px;
        line-height: 1.85;
        margin-bottom: 14px;
    }

    .t28-quote {
        font-size: 15px;
        margin-bottom: 14px;
        padding-left: 12px;
    }

    .t28-fig {
        margin-top: 20px;
    }

    .t28-acts {
        margin-top: 22px;
    }

    .t28-btn,
    .t28-btn2 {
        display: block;
        width: 100%;
        padding: 11px 18px;
    }
}

@media (max-width: 400px) {
    .t28-block {
        padding: 18px 14px;
    }

    .t28-h1 {
        font-size: 19px;
    }

    .t28-friend a {
        margin-right: 10px;
    }
}
