/* 模板18 - 白底 · 横屏图右浮动 · 正文文字环绕 */
/* ============================================================
   自包含皮肤：自带重置，不引用 base.css，不含任何渐变/毛玻璃/动画
   配色：强调色 #1f4e79（每套只用 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: "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.95;
}

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

h1,
p {
    margin: 0;
}

a {
    color: #1f4e79;
    text-decoration: none;
}

/* ---------- 2. 页面容器 ---------- */
.t18-page {
    max-width: 900px;
    margin: 0 auto;
    padding: 44px 24px 50px;
}

.t18-col {
    max-width: 780px;
    margin: 0 auto;
}

/* ---------- 3. 标题（左对齐） ---------- */
.t18-h1 {
    font-size: 26px;
    line-height: 1.5;
    font-weight: 700;
    color: #1f2328;
    text-align: left;
    padding-bottom: 16px;
    margin-bottom: 24px;
    border-bottom: 2px solid #1f4e79;
    word-break: break-word;
}

/* ---------- 4. 正文：右浮动图 + 环绕文字 ---------- */
.t18-flow {
    display: block;
    text-align: left;
}

.t18-flow::after {
    content: "";
    display: block;
    clear: both;
}

.t18-float {
    float: right;
    width: 300px;
    max-width: 45%;
    height: auto;
    margin: 0 0 18px 24px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    background: #f7f8fa;
    object-fit: cover;
}

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

.t18-flow .t18-p:first-of-type {
    color: #1f2328;
}

.t18-p:last-of-type {
    margin-bottom: 0;
}

/* ---------- 5. 关键标签（正文之后） ---------- */
.t18-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 10px;
    clear: both;
    margin: 30px 0 0;
    padding-top: 22px;
    border-top: 1px solid #e5e7eb;
}

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

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

/* ---------- 6. 按钮（实心） ---------- */
.t18-act {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    margin: 30px 0 0;
}

.t18-btn {
    display: inline-block;
    padding: 12px 30px;
    border: 1px solid #1f4e79;
    border-radius: 6px;
    background: #1f4e79;
    color: #ffffff;
    font-size: 15px;
    line-height: 1.5;
    font-weight: 600;
    text-align: center;
    box-shadow: 0 1px 2px rgba(31, 35, 40, 0.06);
    transition: background-color 0.2s, border-color 0.2s;
}

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

/* ---------- 7. 底部友链 ---------- */
.t18-friend {
    margin: 44px 0 0;
    padding: 20px 0 0;
    border-top: 3px double #d0d7de;
    font-size: 13px;
    line-height: 2.1;
    color: #57606a;
}

.t18-friend-ttl {
    display: inline-block;
    margin: 0 10px 0 0;
    padding: 2px 10px;
    background: #f2f3f5;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    color: #57606a;
}

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

.t18-friend-a:hover {
    color: #1f4e79;
    text-decoration: underline;
}

/* ---------- 8. 窄屏适配（取消浮动） ---------- */
@media (max-width: 720px) {
    .t18-page {
        padding: 30px 18px 38px;
    }

    .t18-h1 {
        font-size: 22px;
        margin-bottom: 20px;
    }

    .t18-float {
        float: none;
        display: block;
        width: 100%;
        max-width: 100%;
        margin: 0 auto 18px;
    }

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

    .t18-btn {
        padding: 11px 24px;
    }
}

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

    .t18-h1 {
        font-size: 20px;
        padding-bottom: 12px;
    }

    .t18-p {
        font-size: 15px;
    }

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

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

    .t18-act {
        gap: 10px;
    }

    .t18-btn {
        display: block;
        width: 100%;
        padding: 12px 8px;
    }

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