/* =====================================================================
   spa base.css — 深色主题 token + 复位 + 通用组件（全 SPA 共用）
   只写新 class（md-* 前缀），不复用 meCen.css 系类名，避免覆盖战
   ===================================================================== */

:root {
    --bg: #1e293b;
    --bg-grad: linear-gradient(160deg, #0f172a 0%, #1e293b 60%, #0b1220);
    --panel: rgba(30, 36, 46, 0.88);
    --panel-solid: #1e242e;
    --text: #e8eaed;
    --text-dim: #9aa4b2;
    --accent: #3b82f6;
    --brand-1: #3b82f6;
    --brand-2: #2563eb;
    --btn-grad: linear-gradient(135deg, #3b82f6, #2563eb);
    --shadow-btn: 0 2px 8px rgba(37, 99, 235, 0.35);
    --line: rgba(255, 255, 255, 0.08);
    --line-soft: rgba(255, 255, 255, 0.06);
    --radius: 12px;
    --shadow-card: 0 8px 24px rgba(0, 0, 0, 0.35);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html {
    background: #0b1220;
}

html, body {
    max-width: 750px; /* 与旧页一致：内容区最大 750px 居中 */
    margin: 0 auto;
    background: var(--bg);
    background: var(--bg-grad);
    background-attachment: fixed;
    color: var(--text);
    font-family: -apple-system, "PingFang SC", "Helvetica Neue", "Microsoft YaHei", sans-serif;
    font-size: 14px;
    -webkit-font-smoothing: antialiased;
}

body { padding-bottom: 64px; /* 给底部固定导航留位 */ }

a { text-decoration: none; color: inherit; }
ul, li { list-style: none; }
img { display: block; border: 0; }

/* ---------- 加载态 ---------- */
.md-loading {
    padding: 60px 0;
    text-align: center;
    color: var(--text-dim);
    font-size: 14px;
}

/* ---------- 全局底部三 tab 导航（App 布局层统一渲染；禁用 inset 兼容老 WebView） ---------- */
.md-footer-nav {
    position: fixed;
    bottom: 0;
    left: 50%;
    -webkit-transform: translateX(-50%);
    transform: translateX(-50%);
    width: 100%;
    max-width: 750px;
    display: -webkit-flex;
    display: flex;
    background: rgba(15, 23, 42, 0.95);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--line);
    z-index: 900;
}
.md-footer-nav a {
    -webkit-flex: 1;
    flex: 1;
    padding: 8px 0 10px;
    text-align: center;
    border-right: 1px solid var(--line-soft);
}
.md-footer-nav a:last-child { border-right: 0; }
.md-footer-nav a img {
    width: 24px;
    height: 24px;
    margin: 0 auto;
}
.md-footer-nav a p {
    margin-top: 4px;
    font-size: 12px;
    color: var(--text-dim);
}
.md-footer-nav a.md-cur p { color: #fff; }

/* ---------- 全局 toast ---------- */
.md-toast {
    position: fixed;
    top: 18%;
    left: 50%;
    -webkit-transform: translateX(-50%);
    transform: translateX(-50%);
    max-width: 80%;
    padding: 10px 18px;
    background: rgba(20, 27, 38, 0.95);
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--text);
    font-size: 14px;
    text-align: center;
    z-index: 9999;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}
