/* 模板30 - 两端对齐 */
/* 1. 基础重置 */
*,
*::before,
*::after { box-sizing: border-box; }

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

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

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

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

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

a:focus-visible {
    outline: 2px solid #7a4b1e;
    outline-offset: 2px;
}

/* 2. 页面容器 */
.t30-page {
    display: block;
    width: 100%;
    max-width: 720px;
    margin: 0 auto;
    padding: 52px 22px 44px;
}

/* 3. 标题：左对齐 */
.t30-h1 {
    font-size: 26px;
    line-height: 1.5;
    font-weight: 600;
    color: #1f2328;
    letter-spacing: 0.01em;
    text-align: left;
    padding-left: 14px;
    border-left: 4px solid #7a4b1e;
}

/* 4. 首段 */
.t30-lead {
    margin-top: 24px;
    font-size: 16px;
    line-height: 1.95;
    color: #1f2328;
    text-align: justify;
    text-justify: inter-ideograph;
}

/* 5. 首段之后的小图：左对齐，最大 340px */
.t30-fig {
    margin-top: 22px;
    text-align: left;
}

.t30-img {
    display: block;
    width: 100%;
    max-width: 340px;
    height: auto;
    margin: 0;
    border: 1px solid #e5e7eb;
    border-radius: 2px;
    background: #fafafa;
}

/* 6. 其余正文：两端对齐 */
.t30-flow {
    display: block;
    margin-top: 24px;
}

.t30-p {
    font-size: 16px;
    line-height: 1.95;
    color: #333333;
    text-align: justify;
    text-justify: inter-ideograph;
    margin-bottom: 17px;
}

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

/* 7. 尾部：标签右对齐 + 按钮左对齐 */
.t30-tail {
    display: block;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid #e5e7eb;
}

.t30-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px 14px;
    text-align: right;
}

.t30-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 26px;
    padding: 2px 0 2px 12px;
    border-left: 2px solid #d0d7de;
    font-size: 13px;
    line-height: 20px;
    color: #57606a;
    white-space: nowrap;
}

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

.t30-acts {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 12px;
    margin-top: 26px;
}

.t30-btn {
    display: inline-block;
    padding: 10px 26px;
    background: #ffffff;
    border: 1px solid #7a4b1e;
    border-radius: 2px;
    color: #7a4b1e;
    font-size: 15px;
    font-weight: 500;
    line-height: 22px;
    text-align: center;
}

.t30-btn:hover {
    background: #7a4b1e;
    color: #ffffff;
}

.t30-btn2 {
    display: inline-block;
    padding: 10px 26px;
    background: #ffffff;
    border: 1px solid #d0d7de;
    border-radius: 2px;
    color: #57606a;
    font-size: 15px;
    font-weight: 400;
    line-height: 22px;
    text-align: center;
}

.t30-btn2:hover {
    border-color: #7a4b1e;
    color: #7a4b1e;
}

/* 8. 底部友链 */
.t30-friend {
    display: block;
    margin-top: 30px;
    padding-top: 18px;
    border-top: 1px dashed #e5e7eb;
    font-size: 13px;
    line-height: 2;
    color: #8a8f98;
    text-align: left;
}

.t30-friend-ttl {
    display: inline-block;
    margin-right: 12px;
    color: #57606a;
    font-weight: 600;
    letter-spacing: 0.08em;
}

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

.t30-friend a:hover {
    color: #7a4b1e;
    border-bottom-color: #7a4b1e;
}

/* 9. 窄屏适配 */
@media (max-width: 700px) {
    .t30-page {
        padding: 30px 16px 30px;
    }

    .t30-h1 {
        font-size: 21px;
        line-height: 1.5;
        padding-left: 11px;
        border-left-width: 3px;
    }

    .t30-lead {
        margin-top: 18px;
        font-size: 15.5px;
        line-height: 1.9;
    }

    .t30-fig {
        margin-top: 16px;
    }

    .t30-img {
        max-width: 100%;
    }

    .t30-flow {
        margin-top: 18px;
    }

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

    .t30-tail {
        margin-top: 24px;
        padding-top: 18px;
    }

    .t30-tags {
        gap: 7px 10px;
    }

    .t30-tag {
        font-size: 12.5px;
    }

    .t30-acts {
        margin-top: 20px;
    }

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

    .t30-friend {
        margin-top: 22px;
    }
}

@media (max-width: 400px) {
    .t30-h1 {
        font-size: 19px;
    }

    .t30-tags {
        justify-content: flex-start;
    }

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