
body {
  margin: 0;
  padding: 8px;
  background: #008080;
  min-height: 100vh;
  font-size: 12px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-smooth: auto;
}

/* Restore font aliasing that 98.css disables */
*, *::before, *::after {
  -webkit-font-smoothing: antialiased !important;
  -moz-osx-font-smoothing: grayscale !important;
}

/* The main IE window */
.ie-frame {
  max-width: 860px;
  margin: 0 auto;
  overflow: hidden;
}

/* IE chrome area (menu + toolbar + address bar) */
.ie-chrome {
  background: silver;
  padding: 0;
}

/* Menu bar */
.ie-menubar {
  display: flex;
  padding: 1px 0;
  border-bottom: 1px solid #808080;
  user-select: none;
}
.ie-menubar span {
  padding: 1px 6px;
  font-size: 11px;
  cursor: default;
}
.ie-menubar span:hover {
  background: #000080;
  color: #fff;
}

/* Toolbar */
.ie-toolbar {
  display: flex;
  gap: 2px;
  padding: 2px 4px;
  align-items: center;
  border-bottom: 1px solid #808080;
}
.ie-toolbar a { text-decoration: none; }
.ie-toolbar button { min-width: 50px; font-size: 11px; }

/* Address bar */
.ie-addressbar {
  padding: 2px 4px;
  border-bottom: 1px solid #808080;
}
.ie-addressbar label { flex-shrink: 0; font-size: 11px; }
.ie-addr {
  flex: 1;
  font-size: 11px;
}
.ie-addressbar button { font-size: 11px; }

/* Content viewport — white page area */
.ie-viewport {
  background: #fff;
  padding: 10px 14px;
  font-family: "Noto Serif SC", "Source Han Serif SC", "Songti SC", serif;
  font-size: 16px;
  line-height: 1.8;
  color: #000;
}

/* ============================================================
   Page Content Styles
   ============================================================ */

/* Home heading */
.page-heading {
  text-align: center;
  padding: 12px 0;
  border-bottom: 2px solid #f9da93;
  margin-bottom: 14px;
}
.page-heading h1 {
  margin: 0 0 4px;
  font-size: 22px;
  color: #800000;
  font-family: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", sans-serif;
}
.page-heading p {
  color: #666;
  margin: 0;
  font-size: 12px;
}

/* Issue title on index pages */
.issue-title {
  color: #800000;
  font-size: 16px;
  margin: 0 0 10px;
  padding-bottom: 4px;
  border-bottom: 2px solid #f9da93;
  font-family: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", sans-serif;
}

/* Outlook-style issue list */
.outlook-list {
  border: 2px inset;
  background: #fff;
}
.outlook-item {
  display: block;
  text-decoration: none;
  color: #000;
  padding: 6px 8px;
  border-bottom: 1px solid #d4d0c8;
  cursor: pointer;
}
.outlook-item:hover {
  background: #000080;
  color: #fff;
}
.outlook-item:hover .outlook-item-preview {
  color: #c0c0ff;
}
.outlook-item-header {
  display: flex;
  align-items: center;
  gap: 6px;
}
.outlook-item-icon {
  font-size: 14px;
  flex-shrink: 0;
}
.outlook-item-title {
  font-size: 13px;
  font-weight: bold;
  font-family: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", sans-serif;
}
.outlook-item-date {
  font-size: 11px;
  color: #808080;
  font-weight: normal;
  margin-left: auto;
}
.outlook-item:hover .outlook-item-date {
  color: #c0c0ff;
}
.outlook-item-preview {
  font-size: 12px;
  color: #666;
  margin-top: 2px;
  padding-left: 22px;
  line-height: 1.5;
}
.issue-date {
  font-size: 13px;
  font-weight: normal;
  color: #808080;
}

/* Section fieldsets (issue TOC) */
.content-section {
  margin-bottom: 6px;
}
.content-section legend {
  color: #800000;
  font-weight: bold;
  font-family: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", sans-serif;
}

/* Article tree-view list */
.article-list {
  padding: 0 4px;
  margin: 0;
  columns: 2;
  column-gap: 16px;
}
.article-list li {
  padding: 1px 0;
  font-size: 13px;
  break-inside: avoid;
}
.article-list a {
  color: #0000ff;
  text-decoration: none;
}
.article-list a:hover { text-decoration: underline; color: #ff0000; }
.article-list a:visited { color: #800080; }

/* Article body */
.article-body {
  line-height: 1.85;
}
.article-body h1 {
  font-size: 18px;
  color: #800000;
  margin: 0 0 8px;
  padding-bottom: 6px;
  border-bottom: 2px solid #f9da93;
  font-family: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", sans-serif;
}
.article-author {
  color: #666;
  font-size: 12px;
  margin: -4px 0 8px;
  padding: 0;
}
.ai-summary {
  background: #ffffcc;
  border: 1px solid #c0c0c0;
  padding: 6px 10px;
  margin: 6px 0 10px;
  font-size: 14px;
  line-height: 1.6;
}
.article-body p { margin: 0.5em 0; }
.article-body img {
  max-width: 100%;
  height: auto;
  border: 1px solid #808080;
  margin: 6px 0;
  display: block;
}
.article-body strong { color: #000080; }
.article-body a { color: #0000ff; }
.article-body a:hover { color: #ff0000; text-decoration: underline; }
.article-body a:visited { color: #800080; }
.article-body table { border-collapse: collapse; margin: 8px 0; }
.article-body td, .article-body th {
  border: 1px solid #808080;
  padding: 2px 6px;
}
.article-body th { background: #d4d0c8; }

/* Sub-page tabs (multi-part articles) */
.sub-pages {
  margin-top: 10px;
}
.sub-pages a { text-decoration: none; }

/* Page nav (back links) */
.page-nav {
  border-top: 1px solid #c0c0c0;
  margin-top: 14px;
  padding-top: 6px;
  font-size: 12px;
  text-align: center;
}
.page-nav a { color: #0000ff; text-decoration: none; }
.page-nav a:hover { text-decoration: underline; }

/* Status bar links */
.status-bar a { color: #0000ff; text-decoration: none; font-size: 11px; }
.status-bar a:hover { text-decoration: underline; }

/* Responsive */
@media (max-width: 600px) {
  body { padding: 2px; }
  .article-list { columns: 1; }
  .outlook-list { max-height: none; }
  .ie-menubar { display: none; }
}
