/* ========================================================================
   土木门户风（tum51）· 轻量资源站 CMS 前台主题
   风格参考：工程资料门户站（tum51.com）——
   白卡片 + 浅灰底 + 工程蓝主导航 + 橙色强调 + 高密度信息卡片流
   ======================================================================== */

:root {
    --t-blue: #1668c8;
    --t-blue-dk: #0f57ad;
    --t-blue-bg: #eaf3fd;
    --t-orange: #ff7a1a;
    --t-orange-dk: #e8690b;
    --t-red: #f03e3e;
    --t-green: #0ca678;
    --t-bg: #f4f5f7;
    --t-card: #ffffff;
    --t-line: #e6e8eb;
    --t-txt: #24292f;
    --t-txt2: #57606a;
    --t-txt3: #8b949e;
    --t-radius: 6px;
    --t-shadow: 0 1px 3px rgba(20, 40, 80, .06);
    --t-shadow-hover: 0 4px 14px rgba(20, 40, 80, .10);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
    font-size: 14px;
    line-height: 1.65;
    color: var(--t-txt);
    background: var(--t-bg);
    min-width: 320px;
}

a { color: var(--t-blue); text-decoration: none; transition: color .15s; }
a:hover { color: var(--t-blue-dk); }

img { max-width: 100%; border: 0; vertical-align: middle; }

ul, ol { list-style: none; }

button { font-family: inherit; cursor: pointer; }

input, select, textarea { font-family: inherit; font-size: 14px; color: var(--t-txt); }

.t-container { max-width: 1200px; margin: 0 auto; padding: 0 16px; }

/* ======================== 顶部公告条 ======================== */
.t-topbar {
    background: #f0f2f5;
    border-bottom: 1px solid var(--t-line);
    font-size: 12px;
    color: var(--t-txt3);
}
.t-topbar-inner {
    display: flex;
    align-items: center;
    gap: 6px;
    min-height: 34px;
    flex-wrap: wrap;
    padding: 3px 0;
}
.t-topbar-label { color: var(--t-orange); font-weight: 600; flex: none; }
.t-topbar-links { display: flex; flex-wrap: wrap; gap: 2px 14px; overflow: hidden; max-height: 44px; }
.t-topbar-links a { color: var(--t-txt2); }
.t-topbar-links a:hover { color: var(--t-blue); }
.t-topbar-right { margin-left: auto; display: flex; gap: 14px; flex: none; }
.t-topbar-right a { color: var(--t-txt3); }
.t-topbar-right a:hover { color: var(--t-blue); }

/* ======================== 头部 ======================== */
.t-header { background: var(--t-card); border-bottom: 1px solid var(--t-line); }
.t-header-inner {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 16px 0;
    flex-wrap: wrap;
}
.t-brand { display: flex; align-items: baseline; gap: 10px; flex: none; }
.t-logo {
    font-size: 26px;
    font-weight: 700;
    color: var(--t-blue);
    letter-spacing: .5px;
    line-height: 1.2;
}
.t-logo:hover { color: var(--t-blue-dk); }
.t-slogan {
    font-size: 12px;
    color: var(--t-txt3);
    border-left: 1px solid var(--t-line);
    padding-left: 10px;
    max-width: 220px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.t-header-search {
    flex: 1 1 260px;
    max-width: 420px;
    margin-left: auto;
    display: flex;
    border: 2px solid var(--t-blue);
    border-radius: 4px;
    overflow: hidden;
    background: #fff;
}
.t-header-search input {
    flex: 1;
    border: 0;
    outline: none;
    padding: 0 12px;
    height: 36px;
    font-size: 13px;
    background: transparent;
    min-width: 0;
}
.t-header-search button {
    border: 0;
    background: var(--t-blue);
    color: #fff;
    padding: 0 18px;
    font-size: 14px;
    flex: none;
}
.t-header-search button:hover { background: var(--t-blue-dk); }
.t-header-auth { display: flex; align-items: center; gap: 8px; flex: none; }

/* 登录态用户徽章 */
.t-user-chip {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 10px 4px 4px;
    border: 1px solid var(--t-line);
    border-radius: 99px;
    background: #fafbfc;
    max-width: 220px;
}
.t-user-avatar {
    width: 28px; height: 28px;
    border-radius: 50%;
    background: var(--t-blue);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 600;
    flex: none;
}
.t-user-avatar.is-vip { background: linear-gradient(135deg, #f7b500, var(--t-orange)); }
.t-user-meta { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.t-user-name { font-size: 12px; font-weight: 600; color: var(--t-txt); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.t-user-level { font-size: 11px; color: var(--t-txt3); }
.t-user-level.is-vip { color: var(--t-orange); font-weight: 600; }
.t-sep { font-style: normal; margin: 0 4px; color: #c9ced6; }

/* ======================== 主导航（工程蓝横条） ======================== */
.t-nav { background: var(--t-blue); }
.t-nav-inner { display: flex; align-items: center; }
.t-nav a.t-nav-link {
    display: block;
    color: #fff;
    font-size: 15px;
    padding: 0 18px;
    line-height: 44px;
    opacity: .92;
    position: relative;
    white-space: nowrap;
}
.t-nav a.t-nav-link:hover, .t-nav a.t-nav-link.on { background: rgba(255, 255, 255, .16); opacity: 1; }
.t-nav-toggle {
    display: none;
    background: transparent;
    border: 0;
    width: 44px;
    height: 44px;
    padding: 10px 9px;
    margin-left: auto;
}
.t-nav-toggle span { display: block; height: 2px; background: #fff; border-radius: 2px; margin: 5px 0; }

/* ======================== 主体两栏（内容 + 侧栏） ======================== */
.t-shell {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 20px 0 30px;
}
.t-main { flex: 1 1 auto; min-width: 0; }
.t-side { flex: 0 0 300px; width: 300px; }

/* ======================== 区块（板块卡片流） ======================== */
.t-block {
    background: var(--t-card);
    border: 1px solid var(--t-line);
    border-radius: var(--t-radius);
    box-shadow: var(--t-shadow);
    margin-bottom: 20px;
    overflow: hidden;
}
.t-block-head {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid #eef0f2;
    background: linear-gradient(180deg, #fcfdff, #f7f9fc);
}
.t-block-title {
    font-size: 17px;
    font-weight: 700;
    color: var(--t-txt);
    display: flex;
    align-items: center;
    gap: 9px;
    min-width: 0;
}
.t-block-title i {
    width: 4px;
    height: 16px;
    background: var(--t-blue);
    border-radius: 2px;
    flex: none;
}
.t-block-sub { display: flex; gap: 10px; margin-left: 14px; font-size: 12px; flex-wrap: wrap; }
.t-block-sub a { color: var(--t-txt2); }
.t-block-sub a:hover { color: var(--t-blue); }
.t-more { margin-left: auto; font-size: 13px; color: var(--t-txt3); flex: none; }
.t-more:hover { color: var(--t-blue); }

/* ======================== 资源卡片（横向列表式，门户风签名样式） ======================== */
.t-cards { padding: 6px 16px; }
.t-card {
    display: flex;
    gap: 14px;
    padding: 14px 2px;
    border-bottom: 1px dashed #edf0f3;
    position: relative;
}
.t-cards .t-card:last-child { border-bottom: 0; }
.t-card-thumb {
    flex: none;
    width: 168px;
    height: 104px;
    border-radius: 4px;
    overflow: hidden;
    background: #eef1f5;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #b9c2cc;
    font-size: 12px;
}
.t-card-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .25s; }
.t-card:hover .t-card-thumb img { transform: scale(1.05); }
.t-card-body { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.t-card-tags { margin-bottom: 4px; font-size: 0; }
.t-card-tags a, .t-badge-cat {
    display: inline-block;
    font-size: 12px;
    line-height: 18px;
    padding: 0 8px;
    border-radius: 3px;
    background: var(--t-blue-bg);
    color: var(--t-blue);
    margin-right: 6px;
    vertical-align: middle;
}
.t-card-tags a:hover { background: var(--t-blue); color: #fff; }
.t-badge-hot {
    display: inline-block;
    font-size: 12px;
    line-height: 18px;
    padding: 0 7px;
    border-radius: 3px;
    color: #fff;
    vertical-align: middle;
    margin-right: 6px;
}
.t-badge-hot.is-free { background: var(--t-green); }
.t-badge-hot.is-hot { background: var(--t-red); }
.t-badge-hot.is-rec { background: var(--t-orange); }
.t-card-title {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.45;
    margin-bottom: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.t-card-title a { color: var(--t-txt); }
.t-card-title a:hover { color: var(--t-blue); }
.t-card-desc {
    font-size: 13px;
    color: var(--t-txt3);
    line-height: 1.6;
    margin-bottom: 6px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.t-card-meta {
    margin-top: auto;
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 12px;
    color: var(--t-txt3);
    flex-wrap: wrap;
}
.t-card-meta .t-meta-item { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.t-price { color: var(--t-orange); font-weight: 700; }
.t-price.is-free {
    color: var(--t-green);
    background: #e6f7f1;
    padding: 0 8px;
    line-height: 18px;
    border-radius: 3px;
    font-weight: 600;
}

/* 无图占位 */
.t-noimg { letter-spacing: 2px; }

/* ======================== 侧栏组件 ======================== */
.t-widget {
    background: var(--t-card);
    border: 1px solid var(--t-line);
    border-radius: var(--t-radius);
    box-shadow: var(--t-shadow);
    margin-bottom: 20px;
    overflow: hidden;
}
.t-widget-head {
    padding: 11px 16px;
    font-size: 15px;
    font-weight: 700;
    border-bottom: 1px solid #eef0f2;
    background: linear-gradient(180deg, #fcfdff, #f7f9fc);
    display: flex;
    align-items: center;
    gap: 8px;
}
.t-widget-head i { width: 4px; height: 14px; background: var(--t-orange); border-radius: 2px; flex: none; }
.t-widget-body { padding: 10px 16px 14px; }

/* 热门榜 */
.t-hotlist li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 0;
    border-bottom: 1px dashed #f0f2f4;
}
.t-hotlist li:last-child { border-bottom: 0; }
.t-hot-idx {
    flex: none;
    width: 18px;
    height: 18px;
    border-radius: 3px;
    background: #eef1f5;
    color: var(--t-txt3);
    font-size: 12px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.t-hot-idx.idx-1 { background: var(--t-red); color: #fff; }
.t-hot-idx.idx-2 { background: var(--t-orange); color: #fff; }
.t-hot-idx.idx-3 { background: #ffb02e; color: #fff; }
.t-hotlist .t-hot-title {
    flex: 1;
    min-width: 0;
    color: var(--t-txt2);
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.t-hotlist .t-hot-title:hover { color: var(--t-blue); }
.t-hotlist .t-hot-views { flex: none; font-size: 11px; color: #b9c2cc; }

/* 侧栏导航/专题 */
.t-navlist li { border-bottom: 1px dashed #f0f2f4; }
.t-navlist li:last-child { border-bottom: 0; }
.t-navlist a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 2px;
    color: var(--t-txt2);
    font-size: 13px;
}
.t-navlist a::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: #c9d4e2; flex: none; transition: background .15s; }
.t-navlist a:hover { color: var(--t-blue); }
.t-navlist a:hover::before { background: var(--t-blue); }
.t-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.t-chip {
    font-size: 12px;
    padding: 3px 10px;
    background: #f2f5f9;
    border: 1px solid #e6ebf1;
    border-radius: 3px;
    color: var(--t-txt2);
    display: inline-block;
}
.t-chip:hover { border-color: var(--t-blue); color: var(--t-blue); background: var(--t-blue-bg); }

/* 会员推广卡 */
.t-vip-promo {
    background: linear-gradient(135deg, #1668c8 0%, #0b4a94 60%, #083a78 100%);
    color: #fff;
    border-radius: var(--t-radius);
    border: 0;
    padding: 20px 16px;
    margin-bottom: 20px;
    text-align: center;
    box-shadow: var(--t-shadow-hover);
}
.t-vip-promo-title { font-size: 18px; font-weight: 700; letter-spacing: 1px; }
.t-vip-promo-sub { font-size: 12px; opacity: .82; margin: 6px 0 14px; }
.t-vip-promo-btn {
    display: inline-block;
    background: var(--t-orange);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    padding: 8px 26px;
    border-radius: 99px;
    transition: background .15s;
}
.t-vip-promo-btn:hover { background: var(--t-orange-dk); color: #fff; }
.t-vip-promo-note { font-size: 11px; opacity: .65; margin-top: 10px; }

/* ======================== 面包屑 ======================== */
.t-crumb {
    background: var(--t-card);
    border: 1px solid var(--t-line);
    border-radius: var(--t-radius);
    box-shadow: var(--t-shadow);
    padding: 10px 16px;
    margin-bottom: 16px;
    font-size: 13px;
    color: var(--t-txt3);
}
.t-crumb a { color: var(--t-txt2); }
.t-crumb a:hover { color: var(--t-blue); }
.t-crumb-sep { margin: 0 8px; color: #c9ced6; }

/* ======================== 页头（搜索/专题/单页等） ======================== */
.t-page-head {
    background: var(--t-card);
    border: 1px solid var(--t-line);
    border-radius: var(--t-radius);
    box-shadow: var(--t-shadow);
    padding: 18px 20px;
    margin-bottom: 16px;
}
.t-page-title { font-size: 21px; font-weight: 700; color: var(--t-txt); line-height: 1.4; }
.t-page-sub { font-size: 13px; color: var(--t-txt3); margin-top: 6px; }

/* ======================== 栏目页头 ======================== */
.t-cat-head {
    background: var(--t-card);
    border: 1px solid var(--t-line);
    border-radius: var(--t-radius);
    box-shadow: var(--t-shadow);
    padding: 18px 20px;
    margin-bottom: 16px;
    border-left: 4px solid var(--t-blue);
}
.t-cat-head .t-page-title { margin-bottom: 4px; }
.t-cat-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }

/* ======================== 子分类标签 ======================== */
.t-sub-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.t-sub-tag {
    background: var(--t-card);
    border: 1px solid var(--t-line);
    border-radius: 3px;
    padding: 4px 12px;
    font-size: 13px;
    color: var(--t-txt2);
}
.t-sub-tag:hover, .t-sub-tag.on { border-color: var(--t-blue); color: var(--t-blue); background: var(--t-blue-bg); }

/* ======================== 空状态 ======================== */
.t-empty {
    background: var(--t-card);
    border: 1px dashed var(--t-line);
    border-radius: var(--t-radius);
    text-align: center;
    padding: 50px 20px;
    color: var(--t-txt3);
    margin-bottom: 20px;
}

/* ======================== 详情页 ======================== */
.t-article-meta {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    font-size: 12px;
    color: var(--t-txt3);
    margin-top: 8px;
}
.t-article-meta span { display: inline-flex; align-items: center; gap: 4px; }

/* 详情 Hero：左图右信息 */
.t-hero {
    background: var(--t-card);
    border: 1px solid var(--t-line);
    border-radius: var(--t-radius);
    box-shadow: var(--t-shadow);
    display: flex;
    gap: 20px;
    padding: 18px;
    margin-bottom: 16px;
}
.t-hero-thumb {
    flex: none;
    width: 260px;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
    background: #eef1f5;
    min-height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #b9c2cc;
    font-size: 13px;
}
.t-hero-thumb img { width: 100%; height: auto; display: block; max-height: 260px; object-fit: cover; }
.t-hero-thumb-bar {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    background: rgba(20, 30, 50, .62);
    color: #fff;
    font-size: 12px;
    text-align: center;
    padding: 4px 6px;
}
.t-hero-info { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.t-hero-info .t-page-title { margin-bottom: 2px; }
.t-hero-fields {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 16px;
    margin-top: 10px;
    padding: 10px 12px;
    background: #f7f9fc;
    border: 1px solid #edf0f4;
    border-radius: 4px;
    font-size: 12px;
    color: var(--t-txt2);
}
.t-hero-fields b { color: var(--t-txt); font-weight: 600; }
.t-hero-price-row {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin: 12px 0 14px;
}
.t-hero-price {
    font-size: 28px;
    font-weight: 700;
    color: var(--t-orange);
    line-height: 1;
}
.t-hero-price small { font-size: 14px; font-weight: 500; margin-left: 2px; }
.t-hero-price-label { font-size: 13px; color: var(--t-txt3); }
.t-hero-free-tag {
    display: inline-block;
    background: var(--t-green);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    line-height: 20px;
    padding: 0 10px;
    border-radius: 3px;
}
.t-btn-row { display: flex; gap: 10px; flex-wrap: wrap; }

.t-hero-services {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px dashed #edf0f3;
    font-size: 12px;
    color: var(--t-txt3);
}
.t-hero-notice {
    margin-top: 10px;
    background: #fffaf0;
    border: 1px solid #ffe7ba;
    color: #a8741a;
    font-size: 12px;
    padding: 7px 10px;
    border-radius: 4px;
    line-height: 1.6;
}

/* 正文卡片 */
.t-content-card {
    background: var(--t-card);
    border: 1px solid var(--t-line);
    border-radius: var(--t-radius);
    box-shadow: var(--t-shadow);
    padding: 22px 24px;
    margin-bottom: 20px;
    font-size: 15px;
    line-height: 1.85;
    color: #333;
    word-break: break-word;
}
.t-content-card p { margin: 0 0 14px; }
.t-content-card img { max-width: 100%; height: auto; border-radius: 4px; }
.t-content-card h1, .t-content-card h2, .t-content-card h3, .t-content-card h4 { margin: 20px 0 10px; color: var(--t-txt); line-height: 1.5; }
.t-content-card h2 { font-size: 19px; border-left: 4px solid var(--t-blue); padding-left: 10px; }
.t-content-card h3 { font-size: 17px; }
.t-content-card ul, .t-content-card ol { padding-left: 22px; margin-bottom: 14px; }
.t-content-card ul { list-style: disc; }
.t-content-card ol { list-style: decimal; }
.t-content-card blockquote {
    margin: 0 0 14px;
    padding: 10px 14px;
    background: #f7f9fc;
    border-left: 4px solid #c9d4e2;
    color: var(--t-txt2);
}
.t-content-card table { border-collapse: collapse; width: 100%; margin-bottom: 14px; }
.t-content-card table td, .t-content-card table th { border: 1px solid #e6e8eb; padding: 8px 10px; }
.t-content-card pre { background: #f4f6f8; padding: 12px; border-radius: 4px; overflow: auto; margin-bottom: 14px; }
.t-content-card code { background: #f4f6f8; padding: 1px 5px; border-radius: 3px; font-size: 13px; }

/* 付费解锁 */
.t-paid-hint {
    background: #fff7ec;
    border: 1px dashed var(--t-orange);
    color: #b35c00;
    text-align: center;
    padding: 16px;
    border-radius: var(--t-radius);
    margin-bottom: 20px;
    cursor: pointer;
    font-size: 14px;
}
.t-paid-hint .t-paid-hint-link { color: var(--t-blue); font-weight: 600; }
.t-paid-box {
    background: linear-gradient(180deg, #f2fbf7, #fff);
    border: 1px solid #bfe8d9;
    border-radius: var(--t-radius);
    padding: 18px 20px;
    margin-bottom: 20px;
}
.t-paid-box.paid-flash { animation: tFlash 1.2s ease; }
@keyframes tFlash {
    0% { box-shadow: 0 0 0 3px rgba(12, 166, 120, .5); }
    100% { box-shadow: 0 0 0 0 rgba(12, 166, 120, 0); }
}
.t-paid-head { font-weight: 700; color: var(--t-green); margin-bottom: 12px; }
.t-paid-body { font-size: 15px; line-height: 1.8; word-break: break-all; }
.t-paid-body p { margin: 0 0 10px; }
.t-paid-copy {
    margin-top: 12px;
    background: var(--t-green);
    color: #fff;
    border: 0;
    border-radius: 4px;
    padding: 8px 18px;
    font-size: 13px;
}
.t-paid-copy:hover { background: #099268; }

/* 购买表单卡 */
.t-buy-card {
    background: #f8fafc;
    border: 1px solid #e6ebf1;
    border-radius: var(--t-radius);
    padding: 18px 20px;
    margin-top: 6px;
}
.t-buy-card h3 { font-size: 16px; margin-bottom: 6px; }
.t-buy-card .t-form-hint { font-size: 12px; color: var(--t-txt3); margin-bottom: 14px; }

/* ======================== 按钮 ======================== */
.t-btn {
    display: inline-block;
    border: 1px solid transparent;
    border-radius: 4px;
    padding: 0 22px;
    line-height: 38px;
    font-size: 14px;
    text-align: center;
    cursor: pointer;
    transition: all .15s;
    background: #fff;
}
a.t-btn { line-height: 36px; }
.t-btn:disabled { opacity: .6; cursor: not-allowed; }
.t-btn-orange { background: var(--t-orange); color: #fff; }
.t-btn-orange:hover { background: var(--t-orange-dk); color: #fff; }
.t-btn-primary { background: var(--t-blue); color: #fff; }
.t-btn-primary:hover { background: var(--t-blue-dk); color: #fff; }
.t-btn-outline { border-color: var(--t-blue); color: var(--t-blue); background: #fff; }
.t-btn-outline:hover { background: var(--t-blue-bg); }
.t-btn-ghost { border-color: var(--t-line); color: var(--t-txt2); background: #fff; }
.t-btn-ghost:hover { border-color: var(--t-blue); color: var(--t-blue); }
.t-btn-suc { background: var(--t-green); color: #fff; }
.t-btn-suc:hover { background: #099268; color: #fff; }
.t-btn-block { display: block; width: 100%; }

/* 头部小按钮 */
.t-btn-sm {
    display: inline-block;
    border: 1px solid var(--t-line);
    border-radius: 4px;
    padding: 0 12px;
    line-height: 30px;
    font-size: 13px;
    color: var(--t-txt2);
    background: #fff;
}
.t-btn-sm:hover { border-color: var(--t-blue); color: var(--t-blue); }
.t-btn-sm.t-btn-primary { border-color: var(--t-blue); }
.t-btn-sm.t-btn-orange { border-color: var(--t-orange); }
.t-btn-sm.t-btn-ghost { background: transparent; border-color: transparent; }
.t-btn-sm.t-btn-ghost:hover { border-color: var(--t-line); color: var(--t-red); }

/* ======================== 表单 ======================== */
.t-form-card {
    background: var(--t-card);
    border: 1px solid var(--t-line);
    border-radius: var(--t-radius);
    box-shadow: var(--t-shadow);
    padding: 26px 28px;
    margin-bottom: 20px;
    max-width: 460px;
}
.t-form-card-wide { max-width: 100%; }
.t-form-card h2 { font-size: 18px; margin-bottom: 16px; }
.t-form-group { margin-bottom: 16px; }
.t-form-group label { display: block; font-size: 13px; color: var(--t-txt2); margin-bottom: 6px; font-weight: 600; }
.t-form-group input[type="text"], .t-form-group input[type="password"], .t-form-group input[type="email"],
.t-form-group select, .t-form-group textarea {
    width: 100%;
    border: 1px solid #d6dae0;
    border-radius: 4px;
    padding: 9px 12px;
    outline: none;
    background: #fff;
    transition: border-color .15s, box-shadow .15s;
}
.t-form-group input:focus, .t-form-group select:focus, .t-form-group textarea:focus {
    border-color: var(--t-blue);
    box-shadow: 0 0 0 3px rgba(22, 104, 200, .12);
}
.t-alert { padding: 10px 14px; border-radius: 4px; font-size: 13px; margin-bottom: 16px; }
.t-alert-error { background: #fdecec; border: 1px solid #f5c2c2; color: #c0392b; }
.t-alert-success { background: #e8f8f2; border: 1px solid #b7e6d2; color: #0a8a62; }

/* ======================== 表格 ======================== */
.t-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.t-table th, .t-table td {
    border-bottom: 1px solid #eef0f2;
    padding: 10px 12px;
    text-align: left;
    vertical-align: middle;
}
.t-table th { background: #f7f9fc; color: var(--t-txt2); font-weight: 600; white-space: nowrap; }
.t-table tr:hover td { background: #fafcfe; }
.t-status-ok { color: var(--t-green); font-weight: 600; }
.t-status-no { color: var(--t-txt3); }

/* ======================== 分页 ======================== */
.pagination {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    padding: 18px 0 6px;
}
.pagination a, .pagination .current {
    display: inline-block;
    min-width: 34px;
    text-align: center;
    line-height: 32px;
    padding: 0 10px;
    border-radius: 4px;
    border: 1px solid var(--t-line);
    background: #fff;
    color: var(--t-txt2);
    font-size: 13px;
}
.pagination a:hover { border-color: var(--t-blue); color: var(--t-blue); }
.pagination .current { background: var(--t-blue); border-color: var(--t-blue); color: #fff; font-weight: 600; }

/* ======================== 会员套餐 ======================== */
.t-pay-type {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--t-card);
    border: 1px solid var(--t-line);
    border-radius: var(--t-radius);
    box-shadow: var(--t-shadow);
    padding: 12px 16px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}
.t-pay-type-label { font-size: 13px; color: var(--t-txt2); }
.t-pay-pill {
    border: 1px solid var(--t-line);
    background: #fff;
    border-radius: 99px;
    padding: 5px 18px;
    font-size: 13px;
    color: var(--t-txt2);
}
.t-pay-pill.active { border-color: var(--t-orange); color: var(--t-orange); background: #fff7ec; font-weight: 600; }

.t-vip-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}
.t-vip-card {
    background: var(--t-card);
    border: 1px solid var(--t-line);
    border-radius: 8px;
    box-shadow: var(--t-shadow);
    padding: 26px 20px;
    text-align: center;
    position: relative;
    transition: transform .15s, box-shadow .15s;
}
.t-vip-card:hover { transform: translateY(-3px); box-shadow: var(--t-shadow-hover); }
.t-vip-card.hot { border-color: var(--t-orange); }
.t-vip-flag {
    position: absolute;
    top: -1px; right: -1px;
    background: var(--t-orange);
    color: #fff;
    font-size: 12px;
    line-height: 22px;
    padding: 0 12px;
    border-radius: 0 8px 0 8px;
}
.t-vip-name { font-size: 16px; font-weight: 700; color: var(--t-txt); }
.t-vip-price { font-size: 30px; font-weight: 700; color: var(--t-orange); margin: 12px 0 6px; }
.t-vip-price small { font-size: 14px; font-weight: 400; }
.t-vip-days { font-size: 12px; color: var(--t-txt3); margin-bottom: 18px; }

/* 会员页底部 CTA */
.t-cta {
    background: var(--t-card);
    border: 1px solid var(--t-line);
    border-radius: var(--t-radius);
    box-shadow: var(--t-shadow);
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 20px;
    flex-wrap: wrap;
    margin-top: 20px;
}
.t-cta-body { flex: 1 1 260px; min-width: 0; }
.t-cta-title { font-size: 15px; font-weight: 700; }
.t-cta-sub { font-size: 13px; color: var(--t-txt2); margin-top: 4px; }
.t-cta-note { font-size: 12px; color: var(--t-txt3); margin-top: 4px; }
.t-cta-actions { display: flex; gap: 10px; flex: none; }

/* ======================== 专题广场 ======================== */
.t-topic-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}
.t-topic-card {
    background: var(--t-card);
    border: 1px solid var(--t-line);
    border-radius: var(--t-radius);
    box-shadow: var(--t-shadow);
    padding: 18px;
    display: block;
    color: var(--t-txt);
    transition: transform .15s, box-shadow .15s;
    position: relative;
    overflow: hidden;
}
.t-topic-card::before {
    content: "";
    position: absolute;
    left: 0; top: 0;
    width: 100%; height: 3px;
    background: linear-gradient(90deg, var(--t-blue), #4da1ff);
    opacity: 0;
    transition: opacity .15s;
}
.t-topic-card:hover { transform: translateY(-3px); box-shadow: var(--t-shadow-hover); }
.t-topic-card:hover::before { opacity: 1; }
.t-topic-name { font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.t-topic-summary {
    font-size: 12px;
    color: var(--t-txt3);
    line-height: 1.6;
    margin-bottom: 10px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.t-topic-meta { font-size: 12px; color: var(--t-blue); background: var(--t-blue-bg); display: inline-block; line-height: 20px; padding: 0 8px; border-radius: 3px; }

/* ======================== 友情链接页 ======================== */
.t-link-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.t-link-card {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--t-card);
    border: 1px solid var(--t-line);
    border-radius: var(--t-radius);
    padding: 12px 14px;
    color: var(--t-txt);
}
.t-link-card:hover { border-color: var(--t-blue); }
.t-link-logo { width: 32px; height: 32px; border-radius: 4px; object-fit: cover; flex: none; }
.t-link-text { min-width: 0; display: flex; flex-direction: column; }
.t-link-name { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.t-link-desc { font-size: 12px; color: var(--t-txt3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.t-links-intro { font-size: 13px; color: var(--t-txt2); background: var(--t-card); border: 1px solid var(--t-line); border-radius: var(--t-radius); padding: 12px 16px; margin-bottom: 16px; }

/* 首页 SEO 版块 */
.t-home-seo {
    background: var(--t-card);
    border: 1px solid var(--t-line);
    border-radius: var(--t-radius);
    box-shadow: var(--t-shadow);
    padding: 18px 20px;
    margin-bottom: 20px;
    font-size: 13px;
    color: var(--t-txt2);
    line-height: 1.8;
}
.t-home-seo-title { font-size: 16px; font-weight: 700; color: var(--t-txt); margin-bottom: 10px; }
.t-home-seo-body p { margin-bottom: 8px; }

/* 首页友链 */
.t-home-links {
    background: var(--t-card);
    border: 1px solid var(--t-line);
    border-radius: var(--t-radius);
    box-shadow: var(--t-shadow);
    padding: 14px 18px;
    margin-bottom: 20px;
    display: flex;
    align-items: baseline;
    gap: 14px;
    flex-wrap: wrap;
}
.t-home-links-title { font-size: 14px; font-weight: 700; color: var(--t-txt); flex: none; }
.t-home-links-body { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; }
.t-home-links-body a { color: var(--t-txt3); }
.t-home-links-body a:hover { color: var(--t-blue); }

/* ======================== 支付弹窗（JS 契约类名，勿改） ======================== */
.pay-mask {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, .55);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}
.pay-modal {
    background: #fff;
    border-radius: 10px;
    width: 340px;
    max-width: 100%;
    padding: 0 0 18px;
    text-align: center;
    box-shadow: 0 12px 40px rgba(0, 0, 0, .25);
}
.pay-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    border-bottom: 1px solid #eef0f2;
    font-size: 15px;
    font-weight: 600;
}
.pay-amount { color: var(--t-orange); }
.pay-close { cursor: pointer; font-size: 22px; line-height: 1; color: #99a1ac; font-weight: 400; }
.pay-close:hover { color: var(--t-txt); }
.pay-qr-wrap { padding: 18px 0 6px; display: flex; justify-content: center; }
.pay-caption { font-size: 13px; color: var(--t-txt2); margin-bottom: 10px; }
.pay-btn-phone {
    display: none;
    border: 1px solid var(--t-blue);
    color: var(--t-blue);
    background: #fff;
    border-radius: 4px;
    padding: 8px 16px;
    font-size: 13px;
    margin-bottom: 10px;
}
.pay-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 12px;
    color: var(--t-txt3);
    margin: 6px 18px;
    padding: 8px;
    background: #f7f8fa;
    border-radius: 4px;
}
.pay-status-ok { background: #e8f8f2; color: var(--t-green); }
.pay-status-expired { background: #fff4e6; color: #b35c00; }
.pay-status-fail { background: #fdecec; color: var(--t-red); }
.pay-spinner {
    width: 12px; height: 12px;
    border: 2px solid #d0d5dd;
    border-top-color: var(--t-blue);
    border-radius: 50%;
    animation: tSpin .8s linear infinite;
    flex: none;
}
@keyframes tSpin { to { transform: rotate(360deg); } }
.pay-btn-refresh {
    /* JS 会 inline 设 display:block —— 必须自带宽度 + auto 边距才能保持居中 */
    display: block;
    width: 200px;
    margin: 4px auto 0;
    border: 0;
    background: var(--t-blue);
    color: #fff;
    border-radius: 4px;
    padding: 8px 18px;
    font-size: 13px;
}
.pay-btn-refresh:disabled { opacity: .6; }

/* ======================== 404 ======================== */
.t-404 { text-align: center; padding: 70px 20px; background: var(--t-card); border: 1px solid var(--t-line); border-radius: var(--t-radius); }
.t-404-num { font-size: 72px; font-weight: 700; color: #e1e5ea; line-height: 1; margin-bottom: 16px; }

/* ======================== 页脚 ======================== */
.t-footer {
    background: #22304a;
    color: #aeb9cc;
    margin-top: 10px;
    padding: 24px 0 20px;
    font-size: 12px;
}
.t-footer a { color: #cdd7e5; }
.t-footer a:hover { color: #fff; }
.t-footer-links { display: flex; flex-wrap: wrap; gap: 6px 18px; padding-bottom: 12px; border-bottom: 1px solid rgba(255, 255, 255, .08); margin-bottom: 12px; }
.t-footer-friend { border-bottom: 0 !important; padding-bottom: 0; }
.t-footer-friend-label { color: #7f8ca3; }
.t-footer p { margin: 4px 0; line-height: 1.8; }
.t-footer-center { text-align: center; }

/* ======================== 响应式 ======================== */
@media (max-width: 992px) {
    .t-shell { flex-direction: column; }
    .t-side { width: 100%; flex: 1 1 auto; }
    .t-side-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; align-items: start; }
    .t-side-inner .t-vip-promo { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
    .t-slogan { display: none; }
    .t-header-auth { margin-left: auto; }
    .t-header-search { max-width: none; order: 3; flex-basis: 100%; }
    .t-nav { position: relative; }
    .t-nav-toggle { display: block; }
    .t-nav-inner { display: none; flex-direction: column; padding: 4px 0; }
    .t-nav-inner.open { display: flex; }
    .t-nav a.t-nav-link { line-height: 40px; font-size: 14px; padding: 0 18px; }
    .t-card-thumb { width: 118px; height: 78px; }
    .t-card-title { font-size: 15px; }
    .t-hero { flex-direction: column; }
    .t-hero-thumb { width: 100%; }
    .t-content-card { padding: 16px; }
    .t-form-card { padding: 20px 16px; }
    .t-side-inner { grid-template-columns: 1fr; }
    .t-topbar-right { display: none; }
}

/* 付费引导卡（七十七期：同步主站 m-paid-cta 形态 —— 大号橙价 + 绿色按钮 + 找回订单） */
.t-paid-cta{background:linear-gradient(180deg,#f1f2f4,#e9eaec);border-radius:10px;padding:22px 16px;text-align:center;margin:18px 0}
.t-paid-cta-price{font-size:14px;color:#555;margin-bottom:14px}
.t-paid-cta-price strong{font-size:30px;color:#ff6600;font-weight:700;margin:0 4px;line-height:1.1}
.t-paid-cta-btn{display:inline-block;border:0;cursor:pointer;padding:13px 64px;border-radius:8px;color:#fff;font-size:16px;font-weight:600;background:linear-gradient(180deg,#2fce5f,#17b34a);box-shadow:0 4px 12px rgba(23,179,74,.28);transition:transform .18s,box-shadow .18s}
.t-paid-cta-btn:hover{transform:translateY(-1px);box-shadow:0 6px 16px rgba(23,179,74,.36)}
.t-paid-cta-tip{font-size:13px;color:#888;margin-top:12px}
.t-paid-cta-tip a{color:#ff8c00;text-decoration:none}
.t-paid-cta-tip a:hover{text-decoration:underline}
@media (max-width:640px){.t-paid-cta-btn{width:100%;padding:13px 0}}

/* ---- 116 期 SEO 内链闭环（上下篇 + 相关推荐）：中性配色，明暗主题自适应 ---- */
.seo-pn { margin: 26px 0 10px; padding: 18px 20px; border: 1px solid rgba(127,127,127,.25); border-radius: 8px; background: rgba(127,127,127,.06); font-size: 14px; }
.seo-pn-row { display: flex; gap: 14px; flex-wrap: wrap; }
.seo-pn a { text-decoration: none; color: inherit; flex: 1 1 260px; min-width: 0; display: block; padding: 10px 14px;
    border: 1px solid rgba(127,127,127,.25); border-radius: 6px; background: rgba(127,127,127,.05); transition: border-color .2s; }
.seo-pn a:hover { border-color: currentColor; text-decoration: none; }
.seo-pn a span { display: block; font-size: 12px; opacity: .65; margin-bottom: 4px; }
.seo-pn a b { display: block; font-weight: 600; line-height: 1.5; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.seo-pn-empty { flex: 1 1 260px; }
.seo-pn-rel h3 { font-size: 15px; font-weight: 700; margin: 0 0 10px; }
.seo-pn-rel ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 6px 18px; }
.seo-pn-rel li { min-width: 0; }
.seo-pn-rel a { display: block; padding: 4px 0; border: 0; background: none; border-radius: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.seo-pn-rel a::before { content: "\2022  "; opacity: .5; }
.seo-pn-rel a:hover { text-decoration: underline; }
@media (max-width: 560px) { .seo-pn { padding: 14px; } .seo-pn a { flex-basis: 100%; } }
/* thumb-full-override 2026-10-09 */
[class*="-post-thumb"] img,[class*="-hero-thumb"] img,[class*="-cathero-media"] img,[class*="s-thumb"] img{object-fit:contain}
