* { box-sizing: border-box; }
html { scroll-padding-top: 8px; }
body { margin: 8px; background: #fff; color: #000; font: 12px/1.5 SimSun, "宋体", "Songti SC", serif; }
button, input, textarea { font: inherit; }
button { cursor: pointer; border: 0; padding: 0; background: none; color: #0000ee; text-decoration: underline; }
a { color: #0000ee; text-decoration: underline; }
a:visited { color: #551a8b; }
button:hover, a:hover { color: red; }
button:focus-visible, a:focus-visible, textarea:focus-visible { outline: 1px dotted #000; outline-offset: 2px; }
h1, h2, h3, p { margin: 0; }
i, em { font-style: normal; }
img { object-fit: contain; image-rendering: pixelated; }
.site-width { width: 760px; margin: 0 auto; }
.top-line { color: #333; }
.top-line > div { display: flex; justify-content: space-between; border-bottom: 1px solid #888; padding: 2px 0; }
.top-line i { padding: 0 5px; }
.masthead { height: 78px; display: flex; align-items: center; gap: 20px; }
.brand { display: flex; align-items: center; gap: 3px; text-decoration: none; width: 250px; flex-shrink: 0; }
.brand-penguin { width: 48px; height: 48px; }
.wordmark { color: #000080; font: bold italic 34px/1 "Times New Roman", serif; text-shadow: 1px 1px #aaa; }
.wordmark span { color: #f00; font: bold 17px "Times New Roman", serif; padding-left: 3px; }
.brand-caption { color: #000; letter-spacing: 3px; font-size: 12px; margin-top: 4px; }
.header-note { background: #000080; border: 2px ridge #aaa; flex: 1; height: 60px; text-align: center; color: #fff; padding: 2px; }
.tiny-badge { color: #0ff; font: 10px "Courier New", monospace; letter-spacing: 1px; }
.header-note p { font-weight: bold; color: #ff0; font-size: 19px; line-height: 1.25; letter-spacing: 3px; }
.header-note small { font-size: 12px; color: #fff; }
.time-stamp { display: none; }
.main-nav { display: flex; background: #000080; border: 2px outset #ccc; padding: 2px; }
.main-nav a, .main-nav button { flex: 1; color: #fff; text-align: center; font-weight: bold; border-right: 1px solid #aaa; padding: 1px 0; }
.main-nav > :last-child { border: 0; }
.main-nav .active, .main-nav a:hover, .main-nav button:hover { color: #ff0; }
.sub-nav { border: 1px solid #888; background: #eee; padding: 3px 6px; display: flex; justify-content: space-between; }
.sub-nav b { color: #800000; margin-right: 10px; }
.sub-nav em { margin: 0 8px; }
.online { color: #008000; }
.status-dot, .online i { display: inline-block; width: 6px; height: 6px; background: #0f0; border: 1px solid #008000; }
.welcome-ticker { display: flex; align-items: center; gap: 6px; height: 28px; border-bottom: 1px dotted #777; margin-bottom: 6px; white-space: nowrap; }
.welcome-ticker b { color: red; }
.welcome-ticker .speaker { color: #000080; }
.new-tag { color: red; font: bold italic 10px Arial, sans-serif; animation: blink-new 1.5s steps(1) infinite; }
.ticker-right { margin-left: auto; color: #008000; }
.main-grid { display: grid; grid-template-columns: 158px 424px 166px; gap: 6px; }
.left-column, .center-column, .right-column { min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.panel { border: 1px solid #808080; background: #fff; padding: 2px; }
.panel-title { font: bold 12px/20px SimSun, "宋体", serif; background: #ccc; color: #000080; border: 1px outset #ddd; padding: 0 5px; display: flex; justify-content: space-between; }
.panel-title small { font-weight: normal; font-size: 12px; color: #333; }
.qq-panel { background: #c0c0c0; border: 2px outset #ddd; padding: 2px; }
.window-bar { background: #000080; color: #fff; display: flex; justify-content: space-between; align-items: center; font-weight: bold; padding: 1px 3px; height: 20px; }
.window-bar > span:first-child { display: flex; align-items: center; gap: 3px; }
.window-bar img { width: 14px; height: 14px; }
.window-controls { font: bold 11px Arial, sans-serif; color: #000; background: #c0c0c0; border: 1px outset white; height: 14px; line-height: 11px; }
.qq-profile { padding: 7px 3px 4px; display: flex; gap: 5px; align-items: center; }
.avatar { border: 2px inset #eee; width: 34px; height: 36px; background: #fff; padding: 1px; flex-shrink: 0; }
.avatar img { width: 28px; height: 28px; }
.qq-profile > div:last-child { display: flex; flex-direction: column; }
.qq-profile b { font-weight: normal; }
.qq-profile span, .qq-profile small { font: 10px/1.4 SimSun, serif; }
.qq-profile .down { margin-left: 14px; }
.signature { font-size: 10px; padding: 2px 2px 5px; color: #444; }
.qq-tools { border: 1px inset #eee; display: flex; padding: 0 5px; gap: 13px; }
.qq-tools button { color: #000; font-size: 16px; text-decoration: none; line-height: 22px; }
.friends-heading { border: 2px inset #eee; border-bottom: 0; background: white; padding: 3px; margin-top: 4px; }
.friends-heading span { color: #666; }
.friend { display: flex; align-items: center; gap: 5px; width: 100%; padding: 4px; background: #fff; border-inline: 2px inset #eee; color: #000; text-align: left; text-decoration: none; }
.friend:hover { background: #000080; color: white; }
.friend-avatar { width: 16px; height: 18px; color: #000080; font: 15px Arial, sans-serif; text-align: center; }
.friend > span:nth-child(2) { flex: 1; }
.friend small { display: none; }
.friend .status-dot { width: 5px; height: 5px; }
.offline-friends { display: flex; flex-direction: column; gap: 3px; background: white; padding: 4px 7px; border: 2px inset #eee; border-top: 0; color: #808080; }
.qq-bottom { display: flex; justify-content: space-between; font-size: 10px; border: 1px inset #eee; padding: 2px; margin-top: 4px; }
.quick-links { display: flex; flex-direction: column; align-items: start; gap: 3px; padding: 5px 8px; }
.quick-panel > p { border-top: 1px dotted #999; padding: 4px; font-size: 10px; color: #555; }
.connection { display: flex; align-items: center; gap: 4px; border: 1px dotted #888; background: #ffffcc; padding: 4px; }
.connection-icon { color: #008000; font-size: 20px; }
.connection b { font-size: 11px; font-weight: normal; }
.connection small { display: block; font: 9px "Courier New", SimSun, monospace; }
.hero { background: #ffffcc; border: 1px solid #808000; position: relative; min-height: 114px; padding: 5px 8px; }
.hero-grid, .hero-footer, .hero-small, .chat-bubble { display: none; }
.hero-copy { width: 320px; }
.hero-kicker { color: #800000; font-weight: bold; font-size: 12px; }
.hero h1 { color: #f00; font: bold 20px/1.6 SimSun, "宋体", serif; margin: 1px 0; }
.hero h1 br { display: none; }
.hero h1 span { color: #000080; }
.hero-copy p { color: #000; font-size: 12px; }
.hero-copy p br { display: none; }
.retro-button { color: #000; text-decoration: none; background: #c0c0c0; border: 2px outset #eee; padding: 1px 8px; font-size: 12px; }
.retro-button:active { border-style: inset; }
.retro-button:hover { color: #000; background: #d3d3d3; }
.hero .retro-button { margin-top: 5px; }
.hero-mascot { position: absolute; right: 5px; top: 18px; width: 74px; text-align: center; }
.hero-mascot img { width: 62px; height: 62px; }
.mascot-caption { display: block; font-size: 10px; color: #008000; }
.news-tabs { display: flex; height: 23px; background: #c0c0c0; border-bottom: 1px solid #888; }
.news-tabs button { border: 2px outset #ddd; padding: 0 9px; color: #000080; text-decoration: none; }
.news-tabs .selected { background: #000080; color: #fff; border-style: inset; }
.news-tabs > span { margin-left: auto; font: 9px/22px "Courier New", monospace; padding-right: 3px; color: #333; }
.news-content-body { padding: 5px; }
.headline { font-size: 14px; color: red; display: block; text-align: center; width: 100%; font-weight: bold; }
.headline-summary { text-align: center; font-size: 10px; color: #555; border-bottom: 1px dashed #888; margin-bottom: 4px; padding: 3px 0; }
.news-item { display: flex; gap: 4px; align-items: baseline; line-height: 21px; }
.news-item::before { content: '·'; }
.news-item button { text-align: left; white-space: nowrap; text-overflow: ellipsis; overflow: hidden; }
.news-item .category { color: #008000; flex-shrink: 0; }
.news-item time { margin-left: auto; font: 10px "Times New Roman", serif; color: #555; }
.letter-banner { background: #008080; color: #fff; border: 2px ridge #aaa; display: flex; align-items: center; gap: 5px; padding: 3px 5px; }
.letter-symbol { font-size: 19px; }
.letter-banner span { display: none; }
.letter-banner h2 { font-size: 12px; font-weight: normal; }
.letter-banner button { margin-left: auto; color: #ff0; font-size: 12px; }
.life-grid { display: grid; grid-template-columns: repeat(3, 1fr); padding: 5px 0; }
.life-grid > button { display: flex; flex-direction: column; align-items: center; gap: 1px; border-right: 1px solid #999; }
.life-grid > button:last-child { border: 0; }
.life-icon { font: bold 16px/1.3 "Times New Roman", serif; color: #800080; }
.life-grid b { font-size: 12px; font-weight: normal; }
.life-grid small { font-size: 10px; color: #333; text-decoration: none; }
.text-link { font-size: 11px; }
.bulletin-body { background: #ffffcc; padding: 6px; }
.bulletin .stamp { float: right; color: #f00; font: bold italic 11px Arial, sans-serif; }
.bulletin h3 { font-size: 12px; color: #f00; margin-bottom: 4px; }
.bulletin h3 br { display: none; }
.bulletin p { font-size: 12px; margin-bottom: 4px; }
.bulletin-sign { color: #800000; font-size: 11px; text-align: right; }
.ranking ol { padding: 3px 5px; list-style: none; margin: 0; }
.ranking li { display: flex; gap: 5px; line-height: 21px; border-bottom: 1px dotted #aaa; }
.ranking li > span { color: red; font-family: "Courier New", monospace; }
.ranking em { color: red; font: italic bold 9px/21px Arial, sans-serif; margin-left: auto; }
.ranking i { color: #008000; margin-left: auto; }
.ranking p { font-size: 10px; text-align: center; padding: 3px 0; }
.daily { text-align: center; }
.quote-mark { display: none; }
.daily blockquote { margin: 5px; font-size: 12px; color: #800080; }
.daily > small { font-size: 10px; }
.memory-strip { margin-top: 6px; padding: 3px; display: grid; grid-template-columns: 150px repeat(4, 1fr); border: 1px solid #888; background: #eee; }
.memory-title { text-align: center; border-right: 1px solid #888; }
.memory-title > span { font: 9px "Courier New", monospace; color: #333; }
.memory-title h2 { font-size: 12px; color: #800000; }
.memory-title small { font-size: 10px; }
.memory-strip > button { border-right: 1px solid #888; display: flex; flex-direction: column; align-items: center; }
.memory-strip > button:last-child { border: 0; }
.memory-strip button > b { font: bold 16px/1.4 "Courier New", SimSun, monospace; color: #000080; }
.memory-strip button > span { font-size: 11px; }
.memory-strip button > small { display: none; }
.friend-links { display: flex; justify-content: center; gap: 15px; padding: 5px 0; border: 1px solid #888; margin-top: 6px; }
.friend-links b { color: #800000; }
.friend-links > span { display: none; }
footer { text-align: center; padding: 7px 0; border-top: 2px groove #ddd; margin-top: 6px; line-height: 1.8; }
footer i { margin: 0 9px; }
footer > small { font-size: 10px; color: #555; }
.web-badges { display: flex; justify-content: center; gap: 5px; margin-top: 4px; }
.web-badges span { width: 88px; height: 31px; border: 2px outset #ddd; background: #000080; color: white; font: bold 10px/13px "Courier New", monospace; padding: 1px; }
.web-badges span:nth-child(2) { background: #c0c0c0; color: #000; }
.web-badges span:nth-child(3) { background: #000; color: #0f0; }
.visitor-counter { padding: 5px 0 0; }
.visitor-counter strong { display: inline-block; font: 14px "Courier New", monospace; color: #0f0; background: #000; letter-spacing: 3px; border: 2px inset #ccc; padding: 1px 4px; }
.visitor-counter small { font-size: 10px; color: #777; }
.desktop-bar { width: 760px; margin: 0 auto; background: #c0c0c0; border: 2px outset #ddd; display: flex; gap: 5px; padding: 1px; font-size: 10px; }
.desktop-bar > span { border: 1px inset #ddd; padding: 0 4px; }
.desktop-bar > span:first-child { flex: 1; }
.retro-dialog { background: #c0c0c0; border: 3px outset #ddd; padding: 2px; width: 440px; max-width: calc(100% - 20px); max-height: 85vh; color: #000; }
.retro-dialog::backdrop { background: #0004; }
.retro-dialog .window-bar button { border: 2px outset #eee; background: #c0c0c0; color: #000; font: bold 12px/12px Arial, sans-serif; width: 16px; height: 16px; text-decoration: none; }
.retro-dialog article { background: #fff; border: 2px inset #ddd; margin: 7px; padding: 12px; font-size: 12px; line-height: 1.8; }
.retro-dialog article h3 { color: #000080; font-size: 14px; margin-bottom: 8px; }
.retro-dialog article p + p { margin-top: 8px; }
.dialog-actions { text-align: right; padding: 2px 8px 6px; }
.chat-note { padding: 4px; font-size: 11px; }
.chat-messages { background: #fff; border: 2px inset #eee; height: 200px; padding: 5px; overflow: auto; margin: 0 5px; }
.message { margin-bottom: 10px; white-space: pre-wrap; overflow-wrap: anywhere; }
.message b { display: block; color: #008000; font-size: 11px; font-weight: normal; }
.message.mine b { color: #0000ee; }
.chat-dialog form { padding: 5px; }
.chat-dialog label { display: block; }
.chat-dialog textarea { width: 100%; height: 60px; border: 2px inset #eee; border-radius: 0; resize: vertical; padding: 4px; }
.chat-form-bottom { display: flex; justify-content: space-between; align-items: center; }
.chat-form-bottom small { font-size: 10px; }
#toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); background: #ffffcc; color: #000; border: 1px solid #000; padding: 5px 10px; z-index: 10; }
@keyframes blink-new { 50% { color: #800000; } }
@media (max-width: 775px) { .site-width, .desktop-bar { margin-inline: 0; } }
@media (prefers-reduced-motion: reduce) { .new-tag { animation: none; } }
