* { box-sizing: border-box; }
body { margin: 0; font: 15px/1.6 "Open Sans", Cantarell, "Segoe UI", system-ui, sans-serif; color: #333; background: #fff; }
a { color: #b3221a; text-decoration: none; } a:hover { text-decoration: underline; }
.wrap { max-width: 1140px; margin: 0 auto; padding: 0 18px; }
/* top bar */
.top { background: linear-gradient(#2a1110, #1c0b0a); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { display: flex; align-items: center; gap: 12px; color: #fff; font-size: 26px; font-weight: 300; letter-spacing: .5px; }
.logo img { width: 40px; height: 40px; } .logo b { font-weight: 700; }
.get { background: #e22a1c; color: #fff; padding: 7px 14px; border-radius: 4px; font-weight: 600; font-size: 14px; }
/* menu */
.menu { background: #5e1510; border-bottom: 3px solid #e22a1c; }
.menu .wrap { display: flex; flex-wrap: wrap; }
.menu a { color: #f3dcd8; padding: 11px 16px; font-size: 14px; }
.menu a.on, .menu a:hover { background: #7a1c15; color: #fff; text-decoration: none; }
/* banner */
.hero { background: #120808 url(https://raw.githubusercontent.com/snapos-distro/SnapOS/main/branding/wallpapers/snapos-default.jpeg) center/cover; position: relative; }
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(12,6,6,.92), rgba(12,6,6,.55)); }
.hero .wrap { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 34px 18px; flex-wrap: wrap; }
.hero h1 { color: #fff; font-weight: 300; font-size: 30px; margin: 0; max-width: 640px; line-height: 1.3; }
.hero .buttons { display: flex; flex-direction: column; gap: 8px; min-width: 230px; }
.hero .buttons a { text-align: center; padding: 9px 16px; border-radius: 4px; font-weight: 600; }
.b1 { background: #fff; color: #5e1510; } .b2 { background: #e22a1c; color: #fff; }
/* page */
.page { display: grid; grid-template-columns: 1fr 270px; gap: 34px; padding: 28px 18px 50px; }
@media (max-width: 860px) { .page { grid-template-columns: 1fr; } }
h1.title { font-weight: 400; color: #222; font-size: 30px; margin: 0 0 6px; border-bottom: 1px solid #ddd; padding-bottom: 8px; }
h2 { font-weight: 400; color: #8f1b12; font-size: 24px; margin: 26px 0 8px; }
h3 { color: #333; font-size: 17px; margin: 22px 0 6px; }
.date { color: #888; font-size: 15px; font-weight: 400; }
.news { display: grid; grid-template-columns: 1fr 170px; gap: 18px; padding: 6px 0 18px; border-bottom: 1px solid #eee; }
.news img { width: 170px; border-radius: 6px; border: 1px solid #ddd; background: #120808; }
@media (max-width: 600px) { .news { grid-template-columns: 1fr; } }
.side .box { border: 1px solid #ddd; border-radius: 4px; margin-bottom: 18px; overflow: hidden; }
.side .box h4 { margin: 0; background: #5e1510; color: #fff; font-size: 14px; padding: 7px 12px; }
.side .box div { padding: 10px 12px; font-size: 14px; }
.side .box ul { margin: 0; padding: 8px 12px 8px 28px; font-size: 14px; }
pre { background: #f6f3f2; border: 1px solid #e3dad8; border-left: 4px solid #e22a1c; padding: 10px 14px; overflow-x: auto; border-radius: 3px; }
code { font-family: "DejaVu Sans Mono", ui-monospace, monospace; font-size: 13.5px; }
p code, li code, td code { background: #f3ecea; padding: 1px 5px; border-radius: 3px; }
.note { background: #fdf3f2; border: 1px solid #f0c9c4; border-left: 4px solid #e22a1c; padding: 10px 14px; margin: 14px 0; border-radius: 3px; }
.warn { background: #fff8e5; border: 1px solid #f0dca0; border-left: 4px solid #d9a400; padding: 10px 14px; margin: 14px 0; border-radius: 3px; }
table { border-collapse: collapse; width: 100%; margin: 10px 0; }
th { background: #f3ecea; text-align: left; } th, td { border: 1px solid #e3dad8; padding: 7px 10px; vertical-align: top; }
.dl { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 14px; margin: 10px 0 6px; }
.dl .card { border: 1px solid #ddd; border-radius: 6px; padding: 14px 16px; }
.dl .card h3 { margin: 0 0 2px; } .dl .card .arch { color: #888; font-size: 13px; }
.dl .card a.btn { display: inline-block; margin-top: 10px; background: #e22a1c; color: #fff; padding: 7px 14px; border-radius: 4px; font-weight: 600; }
.dl .card .small { font-size: 13px; color: #777; margin-top: 6px; }
.soon { display: inline-block; background: #eee; color: #777; padding: 6px 12px; border-radius: 4px; margin-top: 10px; font-size: 13px; }
.toc { border: 1px solid #ddd; float: right; width: 250px; margin: 0 0 14px 20px; font-size: 14px; }
.toc h4 { margin: 0; background: #5e1510; color: #fff; padding: 6px 10px; font-size: 13px; text-align: center; }
.toc .grp { background: #f3ecea; font-weight: 600; text-align: center; padding: 3px; font-size: 13px; }
.toc a { display: block; text-align: center; padding: 2px 6px; }
.toc a.on { font-weight: 700; color: #333; }
@media (max-width: 700px) { .toc { float: none; width: auto; margin: 0 0 14px; } }
footer { background: #1c0b0a; color: #bfaaa6; font-size: 13px; }
footer .wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 20px; padding: 26px 18px; }
footer h5 { color: #fff; margin: 0 0 6px; font-size: 14px; } footer a { color: #f0b5ae; display: block; }
footer .bottom { text-align: center; padding: 10px; border-top: 1px solid #3a1714; }

/* forum */
main.wide { max-width: none; }
.lead { color: #555; }
.forum-bar { display: flex; gap: 10px; margin: 14px 0; flex-wrap: wrap; }
.forum-bar .btn { background: #e22a1c; color: #fff; padding: 8px 16px; border-radius: 4px; text-decoration: none; font-weight: 600; }
.forum-bar .btn.ghost { background: #fff; color: #7a1a12; border: 1px solid #d9c9c6; }
.forum-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.forum-tabs a { padding: 4px 12px; border-radius: 14px; background: #f3eeec; color: #5a2a24; text-decoration: none; font-size: 14px; }
.forum-tabs a.on { background: #7a1a12; color: #fff; }
.forum-list { border: 1px solid #e6dcda; border-radius: 6px; }
.topic { display: flex; justify-content: space-between; gap: 12px; padding: 12px 14px; border-bottom: 1px solid #eee; }
.topic:last-child { border-bottom: 0; }
.topic-title { font-size: 17px; font-weight: 600; color: #9b1c12; text-decoration: none; overflow-wrap: anywhere; }
.topic-meta { font-size: 13px; color: #777; margin-top: 4px; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.topic-count { font-size: 13px; color: #777; white-space: nowrap; }
.tag { font-size: 12px; background: #f3eeec; color: #5a2a24; border-radius: 10px; padding: 1px 8px; }
.tag.ok { background: #e3f3e3; color: #1d6b2a; }
.who { display: inline-flex; align-items: center; gap: 5px; }
.who img { width: 20px; height: 20px; border-radius: 50%; }
.who a { color: #333; font-weight: 600; text-decoration: none; }
.back { display: inline-block; margin: 6px 0 10px; color: #9b1c12; text-decoration: none; }
.topic-h { margin: 4px 0 8px; overflow-wrap: anywhere; }
.post { border: 1px solid #e6dcda; border-radius: 6px; padding: 12px 14px; margin: 12px 0; }
.post.first { border-left: 4px solid #e22a1c; }
.post.reply { margin-left: 32px; background: #fbf9f8; }
.post-head { font-size: 13px; color: #777; display: flex; gap: 6px; align-items: center; margin-bottom: 8px; }
.post-text { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.5; }
.forum-empty { color: #777; }
@media (max-width: 600px) { .post.reply { margin-left: 14px; } .topic { flex-direction: column; gap: 4px; } }
.topic { justify-content: flex-start; }
.topic-main { flex: 1; min-width: 0; }
.votes { display: flex; flex-direction: column; align-items: center; min-width: 38px; color: #9b1c12; }
.votes .arrow { font-size: 13px; line-height: 1; }
.votes .count { font-weight: 700; font-size: 15px; color: #444; }
.post { display: flex; gap: 12px; }
.post-main { flex: 1; min-width: 0; }
.reactions { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.reaction { font-size: 13px; background: #f6f1f0; border: 1px solid #eadfdc; border-radius: 12px; padding: 1px 8px; }
@media (max-width: 600px) { .topic { flex-direction: row; } }
