* { box-sizing: border-box; margin: 0; padding: 0; }
html, body {
    background: #fff;
    color: #222;
    font-family: Georgia, 'Times New Roman', Times, 'PingFang SC', 'Microsoft YaHei', serif;
    font-size: 15px;
    line-height: 1.55;
}
a { color: #1b69c2; text-decoration: none; }
a:hover { text-decoration: underline; color: #0d488a; }
img { max-width: 100%; display: block; }
ul, ol { list-style: none; }

.wrap {
    max-width: 1120px;
    margin: 0 auto;
    padding: 24px 20px 40px;
}

/* ---------- 顶部 ---------- */
.toprow {
    border-bottom: 1px solid #dcdcdc;
    padding: 6px 0 18px;
    margin-bottom: 18px;
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 14px;
}
.toprow h1 {
    font-size: 26px;
    font-weight: bold;
    color: #222;
    letter-spacing: 0.2px;
}
.toprow h1 a { color: #222; text-decoration: none; }
.toprow h1 a:hover { text-decoration: none; }
.toprow .lang { display: inline-flex; gap: 6px; font-size: 13px; }
.toprow .lang-btn {
    padding: 3px 10px;
    border: 1px solid #bbb;
    border-radius: 3px;
    color: #555;
    font-family: Arial, sans-serif;
    font-size: 13px;
}
.toprow .lang-btn.active {
    background: #333;
    color: #fff;
    border-color: #333;
}
.toprow .lang-btn:hover { text-decoration: none; color: #222; border-color: #777; }
.toprow .lang-btn.active:hover { color: #fff; }

/* ---------- 搜索 ---------- */
.search-row {
    margin-bottom: 22px;
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}
.search-row input {
    flex: 1;
    min-width: 220px;
    padding: 6px 10px;
    font-size: 14px;
    border: 1px solid #b9b9b9;
    border-radius: 2px;
    font-family: inherit;
    outline: none;
}
.search-row input:focus { border-color: #1b69c2; }
.search-row button {
    padding: 6px 16px;
    border: 1px solid #333;
    background: #fff;
    color: #222;
    font-size: 14px;
    cursor: pointer;
    border-radius: 2px;
    font-family: inherit;
}
.search-row button:hover { background: #333; color: #fff; }

/* ---------- 两栏 ---------- */
.cols {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 26px;
    align-items: start;
}

/* ---------- 侧边栏 ---------- */
.side {
    border: 1px solid #ddd;
    padding: 14px 12px;
    background: #fafafa;
    font-family: Arial, sans-serif;
    font-size: 13px;
}
.side h2 {
    font-size: 14px;
    font-weight: bold;
    padding: 0 6px 8px;
    margin-bottom: 8px;
    border-bottom: 1px solid #ddd;
    color: #222;
}
.side ul { max-height: 70vh; overflow-y: auto; }
.side ul li {
    border-bottom: 1px dotted #e2e2e2;
}
.side ul li:last-child { border-bottom: 0; }
.side ul li a {
    display: block;
    padding: 6px 8px;
    color: #333;
    font-size: 13px;
}
.side ul li a:hover {
    background: #eceef2;
    text-decoration: none;
    color: #1b69c2;
}
.side ul li a.active {
    background: #1b69c2;
    color: #fff;
}
.side ul li .cnt {
    float: right;
    font-size: 11px;
    color: #999;
    padding: 0 4px;
}
.side ul li a.active .cnt { color: #d7e4f4; }
.side .muted { padding: 10px 8px; color: #888; text-align: center; font-size: 12px; }

/* ---------- 主内容 ---------- */
.content h2 {
    font-size: 19px;
    font-weight: bold;
    color: #222;
    padding-bottom: 8px;
    margin-bottom: 14px;
    border-bottom: 1px solid #dcdcdc;
    display: flex;
    align-items: baseline;
    gap: 10px;
}
.content h2 small {
    font-size: 12px;
    color: #888;
    font-weight: normal;
    font-family: Arial, sans-serif;
}

/* 列表：左图右文字（cotpe.tw 原版风） */
.tpl-list {
    border: 1px solid #ddd;
    border-bottom: 0;
}
.tpl-list > li {
    display: flex;
    gap: 14px;
    padding: 14px 14px;
    border-bottom: 1px solid #ddd;
    background: #fff;
    align-items: flex-start;
    transition: background 0.1s;
}
.tpl-list > li:hover { background: #fbfcfe; }
.tpl-list > li .thumb {
    flex-shrink: 0;
    width: 120px;
    min-height: 80px;
    border: 1px solid #d3d3d3;
    background: #f0f0f0;
    overflow: hidden;
}
.tpl-list > li .thumb a { display: block; }
.tpl-list > li .thumb img {
    width: 120px;
    height: 90px;
    object-fit: cover;
}
.tpl-list > li .thumb .no-img {
    width: 120px;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    font-size: 40px;
    color: #888;
}
.tpl-list > li .thumb .no-img span { font-size: 11px; margin-top: 4px; font-family: Arial, sans-serif; }

.tpl-list > li .info {
    flex: 1;
    min-width: 0;
}
.tpl-list > li .info h3 {
    font-size: 15px;
    line-height: 1.45;
    margin-bottom: 6px;
    font-weight: normal;
}
.tpl-list > li .info h3 a { color: #1b69c2; }
.tpl-list > li .info .country {
    display: inline-block;
    font-family: Arial, sans-serif;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: #777;
    margin-bottom: 6px;
}
.tpl-list > li .info .country .flag { margin-right: 3px; }
.tpl-list > li .info .meta {
    font-size: 12px;
    color: #666;
    font-family: Arial, sans-serif;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    margin-top: 6px;
}
.tpl-list > li .info .meta div span { color: #222; }
.tpl-list > li .info .act {
    margin-top: 8px;
    font-family: Arial, sans-serif;
    font-size: 12px;
}
.tpl-list > li .info .act a {
    display: inline-block;
    padding: 3px 10px;
    border: 1px solid #c9c9c9;
    background: #fff;
    color: #333;
    border-radius: 2px;
    margin-right: 6px;
}
.tpl-list > li .info .act a:hover {
    background: #1b69c2;
    color: #fff;
    text-decoration: none;
    border-color: #1b69c2;
}
.tpl-list > li .info .act a.dl {
    background: #1b69c2;
    color: #fff;
    border-color: #1b69c2;
}
.tpl-list > li .info .act a.dl:hover { background: #0d488a; border-color: #0d488a; }
.tpl-list .muted {
    padding: 40px 20px;
    text-align: center;
    color: #888;
    font-family: Arial, sans-serif;
    font-size: 13px;
}

/* ---------- 空状态 ---------- */
.empty {
    border: 1px dashed #ccc;
    padding: 30px;
    text-align: center;
    color: #888;
    font-family: Arial, sans-serif;
    font-size: 13px;
    background: #fafafa;
    margin-top: 10px;
}

/* ---------- 底部 ---------- */
.foot {
    margin-top: 40px;
    border-top: 1px solid #dcdcdc;
    padding-top: 16px;
    font-size: 12px;
    color: #777;
    text-align: center;
    font-family: Arial, sans-serif;
}
.foot a { color: #555; }

/* ---------- 响应式 ---------- */
@media (max-width: 820px) {
    .cols { grid-template-columns: 1fr; gap: 20px; }
    .side ul { max-height: none; display: flex; flex-wrap: wrap; }
    .side ul li { border-bottom: 0; border-right: 1px dotted #e2e2e2; }
    .side ul li a { padding: 4px 10px; }
    .tpl-list > li { flex-direction: column; }
    .tpl-list > li .thumb { width: 100%; }
    .tpl-list > li .thumb img, .tpl-list > li .thumb .no-img { width: 100%; height: auto; aspect-ratio: 4/3; }
    .toprow h1 { font-size: 22px; }
}
@media (max-width: 480px) {
    .wrap { padding: 16px 14px 30px; }
    .tpl-list > li { padding: 12px; gap: 10px; }
}
