:root {
    --primary: #d30;
    --text: #222;
    --muted: #666;
    --border: #eee;
    --bg: #fff;
    --wrap: 880px;
}
* { box-sizing: border-box; }
body {
    margin: 0;
    color: #333;
    font-size: 14px;
    font-family: "Microsoft YaHei","STHeiti Light","Trebuchet MS",Tahoma,Arial,sans-serif;
    background: var(--bg);
    line-height: 1.6;
}
i, em { font-style: normal; }
a { color: #222; text-decoration: none; transition: all .3s linear; }
a:hover { color: var(--primary); }
img { max-width: 100%; border: 0; }
.bzw-wrap { width: 880px; max-width: 94%; margin: 0 auto; }
.bzw-flex { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; }
.bzw-m-bot { margin-bottom: 30px; }
.bzw-tct { text-align: center; }
.bzw-num-font { font-family: Consolas, monaco, monospace; }

.header { background: #fff; border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 20; position: sticky; }
.header-inner { display: flex; align-items: center; gap: 12px; padding: 14px 0; }
.logo-block { display: flex; align-items: center; gap: 6px; min-width: 0; padding: 20px 0; }
.logo-link { font-size: 20px; font-weight: 700; letter-spacing: .5px; }
.tagline { color: #999; font-size: 12px; max-width: 240px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav-toggle { display: none; width: 40px; height: 40px; border: 1px solid var(--border); background: #fff; border-radius: 6px; align-items: center; justify-content: center; cursor: pointer; margin-left: auto; }
.bzw-navbar { display: flex; align-items: center; flex: 1; gap: 16px; padding-bottom: 14px; }
.bzw-menu { display: flex; gap: 18px; padding: 0; margin: 0; list-style: none; }
.bzw-menu > li { position: relative; }
.bzw-menu > li > a { display: inline-block; font-size: 1.05em; }
.bzw-menu > li > a:hover, .bzw-menu > li.cu > a { color: var(--primary); }
.sub-menu { display: none; position: absolute; top: 100%; left: 0; min-width: 160px; background: #fff; border-radius: 0 0 5px 5px; box-shadow: 0 6px 6px rgba(0,0,0,.2); padding: 5px 0; z-index: 10; }
.sub-menu li a { display: block; text-align: center; white-space: nowrap; border-bottom: 1px rgba(0,0,0,.08) solid; padding: 0 15px; color: #222; }
.sub-menu li:last-child a { border-bottom: 0; }
.navbar-item:hover > .sub-menu { display: block; }

.bzw-search { margin-left: auto; }
.bzw-search form { display: flex; align-items: center; }
.bzw-search input {
    width: 150px;
    height: 28px;
    line-height: 28px;
    border: 1px #ddd solid;
    border-right: 0;
    border-radius: 30px 0 0 30px;
    padding: 0 12px;
    box-sizing: border-box;
    font-size: 14px;
    color: #333;
}
.bzw-search button {
    height: 28px;
    line-height: 28px;
    color: #fff;
    font-size: 12px;
    background: #333;
    border: 0;
    padding: 0 12px;
    border-radius: 0 30px 30px 0;
    cursor: pointer;
}
.bzw-search button:hover { opacity: .9; }

.bzw-main { min-height: calc(100vh - 220px); }
.bzw-content { align-items: flex-start; overflow: hidden; padding: 24px 0 36px; }
.bzw-list-box,
.article-card,
.related-panel,
.bzw-hero-box {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 18px 20px;
    box-shadow: 0 6px 16px rgba(0,0,0,0.03);
}
.bzw-list-box { margin-bottom: 20px; }

.list-hat { display: flex; gap: 8px; align-items: center; margin-bottom: 12px; flex-wrap: wrap; }
.list-hat a,
.list-hat span {
    display: inline-block;
    font-size: 13px;
    padding: 5px 18px;
    background: #eee;
    text-shadow: 1px 1px 0 #fff;
    border-radius: 30px;
    color: #444;
}
.list-hat a.cu,
.list-hat span.cu {
    color: #fff;
    background: #333;
    background-image: linear-gradient(135deg, transparent 25%, rgba(255,255,255,.1) 25%, rgba(255,255,255,.1) 50%, transparent 50%, transparent 75%, rgba(255,255,255,.1) 75%, rgba(255,255,255,.1), transparent);
    background-size: 30px 30px;
    text-shadow: none;
}
.list-hat a:nth-child(2) { margin: 0 4px; }

.bzw-list { list-style: none; padding: 0; margin: 0; min-height: 48vh; }
.bzw-list .item { position: relative; display: flex; justify-content: space-between; align-items: center; padding: 0 0 1.2em; border-bottom: 1px dashed var(--border); }
.bzw-list .item:last-child { border-bottom: 0; }
.bzw-list .item.istop { background: none; border: 1px solid rgba(211,48,0,0.2); padding: 12px; border-radius: 8px; }
.bzw-list .a { flex: 1 1 auto; min-width: 0; }
.bzw-list .a em { color: var(--primary); font-weight: 600; margin-right: 8px; }
.bzw-list .a .main { font-size: 16px; font-weight: 600; color: #222; line-height: 1.6; margin-right: 8px; }
.bzw-list .a .intro { margin-top: 6px; color: var(--muted); font-size: 13px; line-height: 1.7; }
.bzw-list .i { flex: 0 0 auto; min-width: 90px; text-align: right; color: var(--muted); font-size: 12px; margin-left: auto; display: inline-flex; flex-direction: row; gap: 12px; align-items: center; justify-content: flex-end; }
.bzw-list .i .time { display: inline-block; white-space: nowrap; }
.bzw-list .i .views { display: inline-flex; gap: 6px; align-items: center; white-space: nowrap; }
.bzw-list .tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 4px; }
.bzw-list .tags a { padding: 2px 8px; border-radius: 12px; font-size: 12px; color: #fff; line-height: 1.4; }
.bzw-list .tags a.red { background: #e74c3c; }
.bzw-list .tags a.green { background: #16a085; }
.bzw-list .tags a.blue { background: #2980b9; }
.bzw-list .tags a.orange { background: #e67e22; }
.bzw-list .tags a.cyan { background: #1abc9c; }
.bzw-list .tags a.gray { background: #7f8c8d; }
.bzw-list.tags { display: flex; flex-wrap: wrap; gap: 8px; padding: 4px 0; min-height: auto; margin: 0; }
.tag-chip { display: inline-block; height: 28px; line-height: 28px; padding: 0 10px; border: 1px solid var(--border); border-radius: 10px; background: #f5f6f8; color: #222; font-size: 13px; white-space: nowrap; }
.tag-chip:hover { border-color: var(--primary); color: var(--primary); background: #fff; }

.bzw-empty { padding: 24px 0; text-align: center; color: var(--muted); }

.bzw-pagebar { padding: 12px 0; text-align: center; display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; }
.bzw-pagebar a span,
.bzw-pagebar span.page {
    display: inline-flex;
    min-width: 28px;
    height: 28px;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    border: 1px solid var(--border);
    color: #333;
    background: #fff;
    padding: 0 8px;
}
.bzw-pagebar .now-page { background: #333; border-color: #333; color: #fff; }
.bzw-pagebar a:hover span { background: var(--primary); border-color: var(--primary); color: #fff; }

.bzw-hero { padding: 24px 0 12px; }
.bzw-hero-box { padding: 18px 18px 12px; }
.bzw-hero .crumb { color: var(--muted); font-size: 13px; margin-bottom: 6px; }
.bzw-hero h1 { margin: 6px 0 10px; font-size: 22px; }
.bzw-hero .desc { color: var(--muted); line-height: 1.6; }

.article-card { margin-bottom: 20px; }
.breadcrumb { display: flex; gap: 6px; flex-wrap: wrap; font-size: 13px; color: var(--muted); margin-bottom: 10px; }
.article-title { font-size: 24px; margin: 6px 0 12px; line-height: 1.35; }
.article-meta { display: flex; gap: 12px; flex-wrap: wrap; color: var(--muted); font-size: 12px; margin-bottom: 12px; }
.article-meta span { display: inline-flex; align-items: center; gap: 6px; }
.article-body { margin-top: 6px; line-height: 1.85; color: #222; }
.article-body p { margin: 0 0 1em; }
.article-body img { display: block; margin: 12px auto; border-radius: 3px; }
.article-tags { margin-top: 16px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.article-tags .label { color: var(--muted); }
.article-tags a { padding: 6px 10px; border-radius: 8px; background: #f5f6f8; color: #222; border: 1px solid var(--border); }
.article-nav { margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--border); display: flex; flex-direction: column; gap: 6px; }
.article-nav a { color: #333; }
.article-nav a:hover { color: var(--primary); }

.related-panel { margin-bottom: 32px; }
.related-panel .panel-head { margin-bottom: 10px; }
.related-panel h2 { font-size: 16px; margin: 0 0 4px; }
.related-panel p { color: var(--muted); margin: 0; }
.related-panel .related-list .item { padding: 10px 0; }

.footer { line-height: 1.8; color: #999; font-size: 12px; background: #fff; border-top: 1px solid var(--border); padding: 20px 0; margin-top: 6px; }
.footer .flinks { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; color: #999; margin-bottom: 6px; }
.footer .flinks .label { font-weight: 600; color: #666; }
.footer p { margin: 4px 0; color: #999; font-size: 12px; }
.footer a { color: #999; }
.footer a:hover { text-decoration: underline; }

.bzw-gotop {
    display: none;
    position: fixed;
    right: 50%;
    bottom: 20%;
    height: 40px;
    line-height: 40px;
    margin-right: -700px;
    color: #fff;
    font-family: Arial;
    background: #ccc;
    padding: 0 9px;
    border: 3px #eee solid;
    border-radius: 50px;
    box-shadow: none;
    text-align: center;
}
.bzw-gotop.show { display: inline-block; }
.bzw-gotop:hover { background: #bbb; }

@media (max-width: 980px) {
    .header-inner { flex-wrap: wrap; }
    .nav-toggle { display: inline-flex; }
    .bzw-navbar { width: 100%; flex-direction: column; align-items: stretch; display: none; position: absolute; left: 0; top: 100%; background: #fff; padding: 0; box-shadow: 0 10px 20px rgba(0,0,0,0.12); }
    body.nav-open .bzw-navbar { display: flex; }
    .bzw-menu { flex-direction: column; width: 100%; gap: 0; background: rgba(0,0,0,.96); padding: 8px 0; }
    .bzw-menu a { display: block; padding: 12px 16px; color: #fff; border-bottom: 1px rgba(255,255,255,.2) solid; text-indent: 0; background: transparent; }
    .bzw-menu .navbar-item { margin-right: 0; }
    .bzw-menu > li.cu > a,
    .bzw-menu > li > a:hover { background: rgba(255,255,255,.08); }
    .sub-menu { position: static; display: block; border-radius: 0; box-shadow: none; padding: 0; background: transparent; }
    .sub-menu li a { text-align: left; padding: 12px 32px; background: transparent; border-bottom: 1px rgba(255,255,255,.08) solid; }
    .bzw-search { width: 100%; padding: 10px 12px; background: #fff; }
    .bzw-search form { width: 100%; gap: 6px; }
    .bzw-search input { width: 100%; border-radius: 6px; border: 1px solid #ddd; }
    .bzw-search button { border-radius: 6px; width: 90px; justify-content: center; }
}
@media (max-width: 720px) {
    .logo-block { padding: 10px 0; }
    .tagline { display: none; }
    .bzw-search input { width: calc(100vw - 160px); }
    .bzw-list .item { flex-direction: column; align-items: flex-start; padding: .8em 0; }
    .bzw-list .i { width: 100%; align-items: flex-start; justify-content: flex-start; flex-direction: column; gap: 4px; }
    .list-hat a { font-size: 12px; padding: 4px 15px; border-radius: 0; }
    .list-hat a:first-child { border-radius: 20px 0 0 20px; }
    .list-hat a:last-child { border-radius: 0 20px 20px 0; }
    .bzw-pagebar { justify-content: flex-start; }
    .bzw-pagebar a span,
    .bzw-pagebar span.page { min-width: 32px; height: 32px; }
    .footer { padding: 15px 0; }
    .bzw-gotop { margin-right: 0; right: 20px; }
}
