:root {
    --accent: #29C3B4;
    --accent-dark: #0e7c74;
    --accent-deep: #0a5e58;
    --accent-soft: #e7f8f6;
    --ink: #17343c;
    --muted: #5d7278;
    --line: #e4eeed;
    --bg: #ffffff;
    --bg-soft: #f5fbfa;
    --shadow: 0 12px 32px rgba(23, 52, 60, 0.08);
    --header-h: 68px;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: "PingFang SC", "Microsoft YaHei", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--ink);
    line-height: 1.7;
    background: var(--bg);
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--accent-dark); outline-offset: 3px; }
.container { width: min(1080px, calc(100% - 40px)); margin: 0 auto; }
html.ew-bar-on { --ew-bar-h: 42px; }
html.ew-bar-on body { padding-top: var(--ew-bar-h); }
html.ew-bar-on header { top: var(--ew-bar-h); }
html.ew-bar-on .side { top: calc(88px + var(--ew-bar-h)); }
.ew-bar { display: none; position: fixed; top: 0; left: 0; right: 0; z-index: 40; background: #e7f8f6; border-bottom: 1px solid #b7e6e1; }
html.ew-bar-on .ew-bar { display: block; }
.ew-bar__inner { position: relative; max-width: 1100px; margin: 0 auto; min-height: 42px; padding: 6px 44px; display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; }
.ew-bar__ico { width: 16px; height: 16px; border-radius: 50%; background: #0e7c74; color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: center; flex: none; }
.ew-bar__text { font-size: 13.5px; color: #3d555c; }
.ew-bar__text-short { display: none; }
.ew-bar__link { border: 0; background: none; padding: 0; font: inherit; font-size: 13.5px; font-weight: 600; color: #0e7c74; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.ew-bar__close { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); width: 28px; height: 28px; border: 0; background: none; color: #7d9499; border-radius: 6px; cursor: pointer; }
.ew-modal { position: fixed; inset: 0; z-index: 80; display: flex; align-items: center; justify-content: center; padding: 24px; }
.ew-modal[hidden] { display: none; }
.ew-modal__backdrop { position: absolute; inset: 0; background: rgba(23, 52, 60, 0.55); }
.ew-modal__panel { position: relative; width: min(760px, 100%); max-height: 88vh; overflow: auto; background: #fff; border-radius: 16px; }
.ew-modal__close { position: absolute; top: 14px; right: 14px; width: 32px; height: 32px; border: 0; background: none; font-size: 18px; cursor: pointer; }
.ew-modal__head { padding: 26px 52px 4px 24px; }
.ew-modal__title { margin: 0; font-size: 20px; }
.ew-modal__desc { margin: 8px 0 0; color: #5d7278; font-size: 14px; line-height: 1.7; }
.ew-modal__body { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; padding: 18px 24px 8px; }
.ew-card { border: 1px solid #e4eeed; border-radius: 12px; padding: 16px; }
.ew-card h3 { margin: 0 0 12px; font-size: 15px; }
.ew-step { display: flex; gap: 10px; margin-bottom: 10px; }
.ew-step b { flex: none; width: 20px; height: 20px; border-radius: 50%; background: #0e7c74; color: #fff; font-size: 12px; display: grid; place-items: center; }
.ew-step span { font-size: 13.5px; line-height: 1.55; color: #3d555c; }
.ew-modal__foot { margin: 8px 24px 22px; background: #f5fbfa; border-radius: 10px; padding: 12px 14px; color: #5d7278; font-size: 13px; }
html.ew-lock, html.ew-lock body { overflow: hidden; }
@media (max-width: 768px) {
    .ew-bar__text-full { display: none; }
    .ew-bar__text-short { display: inline; }
    .ew-bar__inner { justify-content: flex-start; padding-right: 40px; }
    .ew-modal__body { grid-template-columns: 1fr; }
}
header {
    position: sticky; top: 0; z-index: 20; height: var(--header-h);
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
}
.nav { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { width: 36px; height: 36px; border-radius: 8px; }
.brand-name { font-size: 18px; font-weight: 700; }
.brand-sub { display: block; font-size: 12px; color: var(--muted); margin-top: -2px; }
.nav-links { display: flex; align-items: center; gap: 22px; color: var(--muted); font-size: 15px; }
.nav-links a:hover, .nav-links a.is-active { color: var(--accent-dark); }
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 38px; padding: 0 14px; border-radius: 999px;
    background: var(--accent-dark); color: #fff; font-weight: 600; font-size: 14px;
}
.btn svg { width: 18px; height: 18px; fill: currentColor; }
.page { padding: 36px 0 72px; }
.crumbs { color: var(--muted); font-size: 13px; margin-bottom: 18px; }
.crumbs a:hover { color: var(--accent-dark); }
.page-head { margin-bottom: 28px; max-width: 720px; }
.page-head h1 { font-size: 36px; line-height: 1.3; margin-bottom: 8px; }
.page-head p { color: var(--muted); }
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 28px; align-items: start; }
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.post-card {
    background: #fff; border: 1px solid var(--line); border-radius: 16px;
    padding: 20px; display: flex; flex-direction: column; gap: 10px;
}
.post-card time, .meta { color: var(--muted); font-size: 13px; }
.post-card h2, .post-card h3 { font-size: 18px; line-height: 1.45; }
.post-card h2 a:hover, .post-card h3 a:hover { color: var(--accent-dark); }
.post-card p { color: var(--muted); font-size: 14px; }
.post-tags, .tag-list { display: flex; flex-wrap: wrap; gap: 8px; }
.post-tags { margin-top: auto; }
.post-tags a, .tag-list a, .tag-pill {
    font-size: 12px; color: var(--accent-dark); background: var(--accent-soft);
    border-radius: 999px; padding: 3px 8px;
}
.side { position: sticky; top: 88px; display: grid; gap: 14px; align-content: start; }
.side-card {
    background: #f5fbfa; border: 1px solid #d5e8e4; border-radius: 16px; padding: 16px;
}
.side-card h2 { font-size: 13px; letter-spacing: 0.04em; color: var(--muted); font-weight: 600; margin-bottom: 10px; }
.side-row {
    display: flex; align-items: center; justify-content: space-between; gap: 8px;
    padding: 8px 10px; border-radius: 10px; font-size: 14px; background: #fff;
}
.side-row:hover { background: var(--accent-soft); color: var(--accent-dark); }
.side-row b {
    min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px;
    background: var(--bg-soft); color: var(--muted); font-size: 12px; font-weight: 600;
    display: grid; place-items: center;
}
.side-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.side-tags a {
    font-size: 12px; color: var(--ink); background: var(--bg-soft);
    border-radius: 999px; padding: 4px 8px;
}
.side-tags a span { color: var(--muted); margin-left: 4px; }
.side-tags a:hover { background: var(--accent-soft); color: var(--accent-dark); }
.side-more { display: inline-block; margin-top: 12px; font-size: 13px; color: var(--accent-dark); font-weight: 600; }
.download-card { text-align: left; }
.download-card .brand-row { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.download-card img { width: 40px; height: 40px; border-radius: 10px; }
.download-card strong { display: block; font-size: 16px; }
.download-card .brand-row span { color: var(--muted); font-size: 12px; }
.download-card p { color: var(--muted); font-size: 13px; margin-bottom: 14px; }
.download-card .btn { width: 100%; min-height: 42px; }
.download-card .formats { display: flex; gap: 6px; margin-top: 12px; }
.download-card .formats span {
    font-size: 11px; color: var(--accent-dark); background: var(--accent-soft);
    border-radius: 999px; padding: 2px 8px;
}
.pager { display: flex; align-items: center; gap: 12px; margin-top: 28px; }
.pager a, .pager span {
    min-height: 36px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); font-size: 14px;
}
.pager a:hover { border-color: var(--accent); color: var(--accent-dark); }
.article-layout .article { max-width: none; }
.layout .post-grid { grid-template-columns: 1fr; gap: 12px; }
.layout .post-row {
    flex-direction: row;
    align-items: center;
    gap: 18px;
    padding: 16px 18px;
    border-color: #d7ebe8;
    box-shadow: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.layout .post-row:hover {
    border-color: #8fd0c8;
    box-shadow: 0 10px 24px rgba(14, 124, 116, 0.08);
    transform: translateY(-1px);
}
.layout .post-row time {
    width: 74px;
    height: 74px;
    flex: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    background: #e7f8f6;
    border-radius: 14px;
    line-height: 1.15;
}
.layout .post-row time b { font-size: 16px; color: var(--accent-dark); font-weight: 700; }
.layout .post-row time span { font-size: 12px; color: var(--muted); font-weight: 500; }
.layout .post-row .post-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.layout .post-row h2 { font-size: 17px; line-height: 1.4; }
.layout .post-row .post-main p {
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.layout .post-row .post-tags { margin-top: 2px; }
.post-tags a.tag-pin { background: #17343c; color: #fff; }
.post-tags a.tag-pin:hover { background: var(--accent-dark); color: #fff; }
.article h1 { font-size: 34px; line-height: 1.35; margin: 8px 0 12px; }
.article .meta { display: flex; flex-wrap: wrap; gap: 8px 14px; margin-bottom: 16px; }
.article .post-tags { margin: 0 0 36px; }
.article .prose { margin-top: 0; }
.prose h2 { font-size: 22px; margin: 28px 0 10px; }
.prose h3 { font-size: 18px; margin: 22px 0 8px; }
.prose p { margin-bottom: 14px; }
.prose ul { margin: 0 0 14px 1.2em; }
.prose li { margin: 4px 0; }
.related { margin-top: 36px; padding-top: 22px; border-top: 1px solid var(--line); }
.related h2 { font-size: 20px; margin-bottom: 12px; }
.related ul { list-style: none; display: grid; gap: 8px; }
.related a:hover { color: var(--accent-dark); }
.search-box { display: flex; gap: 8px; margin: 8px 0 22px; }
.search-box input {
    flex: 1; min-height: 44px; border: 1px solid var(--line); border-radius: 12px; padding: 0 14px; font: inherit;
}
.search-box button {
    min-height: 44px; padding: 0 16px; border: 0; border-radius: 12px;
    background: var(--accent-dark); color: #fff; font: inherit; font-weight: 600; cursor: pointer;
}
.empty { color: var(--muted); }
footer { border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--muted); font-size: 13px; }
.foot { display: flex; justify-content: space-between; gap: 24px; }
.foot a { color: var(--accent-dark); }
@media (max-width: 860px) {
    .layout, .post-grid, .layout .post-grid { grid-template-columns: 1fr; }
    .layout .post-row { flex-direction: column; align-items: flex-start; }
    .layout .post-row time { width: auto; height: auto; flex-direction: row; gap: 6px; padding: 6px 10px; }
    .side { position: static; }
    .nav-links, .brand-sub { display: none; }
    .page-head h1, .article h1 { font-size: 28px; }
    .foot { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
