:root { --dark: #0b3d4d; --main: #0a6e8a; --light: #9fd3e3; --foot: #cfe6ee; }
* { box-sizing: border-box; }
body { margin: 0; font-family: system-ui, Arial, sans-serif; background: #f2f5f7; color: #222; line-height: 1.6; }
a { color: var(--main); }
.wrap { max-width: 1100px; margin: 0 auto; padding: 0 16px; }

.site-header { background: var(--dark); color: #fff; padding: 18px 0; }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 20px; }
.logo { color: #fff; font-size: 1.8rem; font-weight: 700; text-decoration: none; }
.tagline { color: var(--light); }

.mainnav { background: var(--main); }
.mainnav .wrap { display: flex; flex-wrap: wrap; }
.mainnav a { color: #fff; text-decoration: none; padding: 10px 14px; font-weight: 600; }
.mainnav a:hover { background: var(--dark); }

.layout { display: grid; grid-template-columns: 1fr 280px; gap: 24px; margin-top: 24px; }
@media (max-width: 800px) { .layout { grid-template-columns: 1fr; } }

h1.section { font-size: 1.3rem; border-bottom: 3px solid var(--main); padding-bottom: 4px; }
.crumbs { font-size: .9rem; color: #667; margin-bottom: 6px; }
.backhome { margin-top: 20px; }
.card { display: flex; gap: 16px; background: #fff; border-radius: 8px; padding: 14px; margin-bottom: 16px; box-shadow: 0 1px 3px rgba(0,0,0,.1); }
.card img { width: 180px; height: 120px; object-fit: cover; border-radius: 6px; }
.card h2 { margin: 4px 0; font-size: 1.25rem; }
.card h2 a { text-decoration: none; }
@media (max-width: 600px) { .card { flex-direction: column; } .card img { width: 100%; height: auto; } }

.meta { color: #667; font-size: .85rem; }
.box { background: #fff; border-radius: 8px; padding: 14px 16px; margin-bottom: 16px; box-shadow: 0 1px 3px rgba(0,0,0,.1); }
.box h3 { margin-top: 0; }
.box ul { list-style: none; padding-left: 0; margin: 0; }
.box ul ul { padding-left: 16px; }

.post { background: #fff; border-radius: 8px; padding: 18px 22px; margin-bottom: 16px; box-shadow: 0 1px 3px rgba(0,0,0,.1); }
.post img { max-width: 100%; height: auto; border-radius: 6px; }
.post figure { margin: 16px 0; }
.post figcaption { color: #667; font-size: .85rem; }
.post pre { background: #1e2a30; color: #e8f1f4; padding: 12px; overflow-x: auto; border-radius: 6px; }
.post table { border-collapse: collapse; }
.post td, .post th { border: 1px solid #ccd; padding: 4px 8px; }

.stars button { background: #f5b800; border: 0; border-radius: 6px; padding: 6px 10px; cursor: pointer; margin-right: 4px; }
.comment { border-bottom: 1px solid #e3e8ea; padding: 8px 0; }
form input[type=text], form textarea { width: 100%; padding: 8px; border: 1px solid #bbc; border-radius: 6px; }
form button[type=submit] { background: var(--main); color: #fff; border: 0; border-radius: 6px; padding: 8px 16px; cursor: pointer; }
.hp { position: absolute; left: -9999px; }
.search input[type=text] { margin-bottom: 8px; }

.msg { padding: 10px 14px; border-radius: 6px; margin-bottom: 14px; }
.msg.success { background: #dff3e4; }
.msg.error { background: #f8dcdc; }

.site-footer { background: var(--dark); color: var(--foot); text-align: center; padding: 18px 0; margin-top: 30px; }
.site-footer a { color: #fff; }

.pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px; margin: 20px 0; }
.pager a, .pager span { padding: 8px 12px; min-width: 40px; text-align: center; border-radius: 6px; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.1); text-decoration: none; }
.pager span.cur { background: var(--main); color: #fff; font-weight: 700; }
.pager span.off { color: #aab; }
.pager span.gap { background: none; box-shadow: none; }
