/* ==========================================================================
   maxiupdate.com — 项目公告页面
   设计理念：严肃、克制、正式公告站风格。米白底、深灰字、暗青强调。
   ========================================================================== */

:root {
  /* 颜色 */
  --bg: #F5F3EE;
  --surface: #FBFAF6;
  --surface-alt: #EEEBE3;
  --border: #D9D5CB;
  --border-strong: #B8B3A6;
  --text: #1F1E1A;
  --text-secondary: #45433D;
  --text-muted: #7A7770;
  --text-faint: #A8A49B;
  --accent: #0E3D45;            /* 深青 */
  --accent-hover: #082A30;
  --accent-soft: #E4ECEE;
  --status-warn: #8C4A1E;       /* 警示状态（小面积） */
  --status-warn-soft: #F2E6DC;
  --status-info: #3C5566;
  --status-info-soft: #E1E7EC;
  --status-active: #2E5938;
  --status-active-soft: #E0E8E2;

  /* 字体 */
  --font-serif: "Source Han Serif SC", "Noto Serif SC", "Songti SC", "宋体", "SimSun", Georgia, "Times New Roman", serif;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "微软雅黑", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "JetBrains Mono", "SF Mono", "Menlo", "Consolas", monospace;

  /* 间距 */
  --container: 1080px;
  --container-narrow: 760px;

  /* 圆角 */
  --radius-sm: 2px;
  --radius: 4px;
  --radius-lg: 6px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  font-feature-settings: "tnum" 1, "lnum" 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* 链接 */
a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 120ms ease, color 120ms ease;
}
a:hover { color: var(--accent-hover); border-bottom-color: var(--accent-hover); }
a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/* 标题 */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0;
  line-height: 1.35;
  margin: 0;
}
h1 { font-size: 30px; line-height: 1.3; }
h2 { font-size: 22px; }
h3 { font-size: 18px; }
h4 { font-size: 16px; }

p { margin: 0 0 1em 0; }
p:last-child { margin-bottom: 0; }

/* 数字、英文等宽 */
.num, time, .version, .doc-version, .meta-num {
  font-variant-numeric: tabular-nums lining-nums;
  font-feature-settings: "tnum" 1, "lnum" 1;
}

/* ==========================================================================
   通用容器
   ========================================================================== */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
.container-narrow {
  max-width: var(--container-narrow);
  margin: 0 auto;
  padding: 0 24px;
}

/* ==========================================================================
   顶部导航
   ========================================================================== */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(180%) blur(6px);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 17px;
  color: var(--text);
  border-bottom: none;
}
.brand:hover { color: var(--text); border-bottom: none; }
.brand-mark {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}
.brand-name { letter-spacing: 0.02em; }
.brand-tld { color: var(--text-muted); font-weight: 400; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  border-bottom: none;
  padding: 4px 0;
  border-bottom: 1px solid transparent;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 6px 10px;
  font-size: 13px;
  color: var(--text-secondary);
  cursor: pointer;
}

@media (max-width: 720px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0; right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    gap: 0;
    padding: 8px 24px 16px;
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a {
    display: block;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
  }
  .nav-links a:last-child { border-bottom: none; }
  .nav-toggle { display: inline-block; }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  padding: 72px 0 56px;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}
.hero-eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 20px;
  font-family: var(--font-sans);
}
.hero h1 {
  font-size: 36px;
  line-height: 1.3;
  margin-bottom: 16px;
  max-width: 820px;
}
.hero-subtitle {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.75;
  max-width: 720px;
  margin-bottom: 28px;
}
.status-bar {
  display: flex;
  align-items: stretch;
  flex-wrap: wrap;
  gap: 0;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
  margin-top: 28px;
}
.status-item {
  flex: 1 1 220px;
  padding: 16px 20px;
  border-right: 1px solid var(--border);
  min-width: 0;
}
.status-item:last-child { border-right: none; }
.status-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  display: block;
  margin-bottom: 6px;
}
.status-value {
  font-size: 14px;
  color: var(--text);
  font-weight: 500;
  line-height: 1.5;
}
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--status-warn-soft);
  color: var(--status-warn);
  letter-spacing: 0.02em;
}
.status-pill::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--status-warn);
  flex-shrink: 0;
}

@media (max-width: 720px) {
  .hero { padding: 48px 0 40px; }
  .hero h1 { font-size: 26px; }
  .status-item { border-right: none; border-bottom: 1px solid var(--border); }
  .status-item:last-child { border-bottom: none; }
}

/* ==========================================================================
   通用 section
   ========================================================================== */
.section {
  padding: 64px 0;
  border-bottom: 1px solid var(--border);
}
.section:last-of-type { border-bottom: none; }
.section-head {
  margin-bottom: 32px;
  max-width: 760px;
}
.section-eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
  display: block;
}
.section h2 {
  font-size: 24px;
  margin-bottom: 12px;
}
.section-desc {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.75;
}

/* ==========================================================================
   最新公告卡（首页主卡片）
   ========================================================================== */
.featured-notice {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin-top: 16px;
  position: relative;
}
.featured-notice::before {
  content: "";
  position: absolute;
  left: -1px; top: -1px; bottom: -1px;
  width: 3px;
  background: var(--accent);
  border-radius: var(--radius-lg) 0 0 var(--radius-lg);
}
.notice-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
  font-size: 13px;
  color: var(--text-muted);
}
.notice-version {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  padding: 3px 8px;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: var(--radius-sm);
  letter-spacing: 0.02em;
}
.notice-date { color: var(--text-secondary); }
.notice-divider { color: var(--text-faint); }
.notice-tag {
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  font-weight: 500;
  padding: 3px 9px;
  background: var(--status-info-soft);
  color: var(--status-info);
  border-radius: var(--radius-sm);
}
.featured-notice h3 {
  font-size: 20px;
  line-height: 1.5;
  margin-bottom: 16px;
  color: var(--text);
}
.featured-notice p {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.8;
}
.notice-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

/* 按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  padding: 10px 18px;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 120ms ease, border-color 120ms ease, color 120ms ease;
  border: 1px solid transparent;
  text-decoration: none;
  line-height: 1.4;
}
.btn:hover { border-bottom: 1px solid transparent; }
.btn-primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.btn-primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: #fff;
}
.btn-secondary {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}
.btn-secondary:hover {
  background: var(--surface-alt);
  border-color: var(--text-secondary);
  color: var(--text);
}
.btn-icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}
.btn[aria-disabled="true"],
.btn.is-disabled {
  cursor: not-allowed;
  opacity: 0.85;
}
.btn-placeholder::after {
  content: "（占位）";
  font-size: 12px;
  color: var(--text-muted);
  margin-left: 2px;
  font-weight: 400;
}

/* ==========================================================================
   公告列表
   ========================================================================== */
.notice-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--border);
}
.notice-list li {
  border-bottom: 1px solid var(--border);
}
.notice-list .notice-row {
  display: grid;
  grid-template-columns: 110px 1fr 130px;
  gap: 24px;
  padding: 20px 0;
  align-items: start;
}
.notice-row-version {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  padding-top: 2px;
}
.notice-row-title {
  font-size: 15px;
  color: var(--text);
  font-weight: 500;
  line-height: 1.6;
  margin-bottom: 4px;
}
.notice-row-summary {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.65;
}
.notice-row-meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-end;
  font-size: 13px;
  color: var(--text-secondary);
}
.notice-row-date { font-family: var(--font-mono); font-size: 12px; color: var(--text-muted); }

.tag {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  letter-spacing: 0.02em;
}
.tag-current { background: var(--status-active-soft); color: var(--status-active); }
.tag-info { background: var(--status-info-soft); color: var(--status-info); }
.tag-warn { background: var(--status-warn-soft); color: var(--status-warn); }
.tag-archived { background: var(--surface-alt); color: var(--text-muted); }

@media (max-width: 720px) {
  .notice-list .notice-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .notice-row-meta { align-items: flex-start; flex-direction: row; gap: 12px; }
}

/* ==========================================================================
   时间线
   ========================================================================== */
.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  border-left: 1px solid var(--border-strong);
  margin-left: 8px;
}
.timeline li {
  position: relative;
  padding: 0 0 32px 32px;
}
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
  content: "";
  position: absolute;
  left: -7px;
  top: 6px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--surface);
  border: 2px solid var(--border-strong);
}
.timeline li.active::before {
  background: var(--accent);
  border-color: var(--accent);
}
.timeline-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
  font-size: 12px;
  color: var(--text-muted);
  font-family: var(--font-mono);
}
.timeline-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
  font-family: var(--font-serif);
}
.timeline-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ==========================================================================
   文件下载区
   ========================================================================== */
.docs-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
.doc-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
}
.doc-info { min-width: 0; }
.doc-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
  font-family: var(--font-serif);
}
.doc-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 10px;
}
.doc-version {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 2px 7px;
  border-radius: var(--radius-sm);
}
.doc-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.65;
}
.doc-action { flex-shrink: 0; }

@media (max-width: 600px) {
  .doc-card {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .doc-action { width: 100%; }
  .doc-action .btn { width: 100%; justify-content: center; }
}

/* ==========================================================================
   信息提示框（callout / note）
   ========================================================================== */
.callout {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  padding: 20px 24px;
  border-radius: var(--radius);
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.75;
}
.callout-title {
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
  font-family: var(--font-serif);
  font-size: 15px;
}
.callout.warn { border-left-color: var(--status-warn); }
.callout.info { border-left-color: var(--status-info); }

/* ==========================================================================
   联系 / 沟通说明
   ========================================================================== */
.contact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
.contact-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.contact-name {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 600;
  color: var(--text);
}
.contact-role {
  font-size: 14px;
  color: var(--text-secondary);
}
.contact-notes {
  margin-top: 8px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.75;
}
.contact-notes ol {
  margin: 8px 0 0;
  padding-left: 22px;
}
.contact-notes li { margin-bottom: 6px; }

/* ==========================================================================
   公告正文页 / 详情
   ========================================================================== */
.article {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 48px;
  margin-top: 32px;
}
.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  color: var(--text-muted);
  padding-bottom: 20px;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--border);
}
.article h1 {
  font-size: 26px;
  line-height: 1.45;
  margin-bottom: 20px;
}
.article h2 {
  font-size: 19px;
  margin-top: 36px;
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}
.article h3 { font-size: 16px; margin-top: 24px; margin-bottom: 10px; }
.article p,
.article li {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.85;
}
.article ol, .article ul { padding-left: 24px; }
.article ol li, .article ul li { margin-bottom: 6px; }
.article blockquote {
  margin: 24px 0;
  padding: 16px 20px;
  border-left: 3px solid var(--accent);
  background: var(--bg);
  color: var(--text-secondary);
  font-size: 14px;
  border-radius: 0 var(--radius) var(--radius) 0;
}
.article blockquote p:last-child { margin-bottom: 0; }

@media (max-width: 600px) {
  .article { padding: 28px 20px; }
  .article h1 { font-size: 22px; }
}

/* details / 折叠 */
details.collapse {
  margin-top: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}
details.collapse > summary {
  cursor: pointer;
  padding: 14px 20px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
details.collapse > summary::-webkit-details-marker { display: none; }
details.collapse > summary::after {
  content: "+";
  font-size: 18px;
  color: var(--text-muted);
  font-family: var(--font-mono);
}
details.collapse[open] > summary::after { content: "−"; }
details.collapse > summary:hover { color: var(--accent); }
details.collapse .collapse-body {
  padding: 0 20px 20px;
  border-top: 1px solid var(--border);
  padding-top: 20px;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--surface-alt);
  border-top: 1px solid var(--border);
  padding: 40px 0 32px;
  margin-top: 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.75;
}
.footer-grid h4 {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 12px;
  font-family: var(--font-sans);
}
.footer-version {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12px;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
}

/* ==========================================================================
   小工具
   ========================================================================== */
.muted { color: var(--text-muted); }
.text-sm { font-size: 13px; }
.mt-8 { margin-top: 8px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; } .mt-32 { margin-top: 32px; }
hr.rule {
  border: none;
  border-top: 1px solid var(--border);
  margin: 32px 0;
}
.page-head {
  padding: 56px 0 24px;
  border-bottom: 1px solid var(--border);
}
.page-head h1 {
  font-size: 30px;
  margin-bottom: 12px;
}
.page-head p {
  font-size: 15px;
  color: var(--text-secondary);
  max-width: 720px;
  line-height: 1.75;
}

/* prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
