/* 全局样式 — 仿 2010 年代 cnBeta 式版式：定宽、方角、无大阴影 */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  background: #d9e2ef;
  font-family: -apple-system, 'PingFang SC', 'Microsoft YaHei', 'Helvetica Neue', sans-serif;
  color: #222;
  font-size: 13px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
.app {
  max-width: 100%;
  margin: 0 auto;
  background: #fff;
  min-height: 100vh;
  position: relative;
  box-shadow: none;
}

/* 顶部品牌条 */
.header {
  background: var(--header-bg, #1457c4);
  border-bottom: 3px solid var(--header-accent, #0d3a94);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  gap: 12px;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 3px;
}

.brand {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  letter-spacing: .5px;
}

.brand-sub {
  font-size: 11px;
  color: rgba(255,255,255,.8);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.home-btn {
  font-size: 12px;
  color: #fff;
  text-decoration: none;
  padding: 5px 10px;
  border-radius: 3px;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.25);
  cursor: pointer;
}

.home-btn:active {
  opacity: 0.7;
}

/* 链接样式 */
a { text-decoration: none; color: inherit; }
a.card-link { display: block; }
a.card-link:active { opacity: .85; }

/* 底部 */
.footer {
  padding: 16px;
  text-align: center;
  color: var(--muted, #6a6a72);
  font-size: 11px;
  border-top: 1px solid var(--border, #e3e3e8);
  background: var(--surface2, #f4f6fa);
}

.footer-brand {
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--text, #1b1b1f);
}

.footer-src {
  margin: 2px 0;
}

.footer-disc {
  margin-top: 8px;
  font-size: 10px;
  opacity: 0.7;
}

/* 桌面端：定宽 980px 居中，经典 web 版式宽度 */
@media (min-width: 860px) {
  body { padding: 16px 0; }
  .app {
    max-width: 980px;
    border: 1px solid var(--border, #c9d6ea);
  }
}
