/* 弥米尔 Mímir · 全局样式 */
:root {
  --bg: #f5f3ef;
  --bg2: #ffffff;
  --ink: #2c2c2c;
  --muted: #888;
  --rule: #e8e4dc;
  --accent: #8b6f47;
  --accent2: #c9a96e;
  --danger: #c0392b;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.7;
  min-height: 100vh;
}

.container { max-width: 760px; margin: 0 auto; padding: 0 16px; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* 导航 */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(245,243,239,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--rule);
  padding: 12px 0;
}
.nav-inner { display: flex; justify-content: space-between; align-items: center; }
.brand { font-size: 20px; font-weight: 700; color: #3a3a3a; letter-spacing: 1px; }
.brand span { color: var(--accent); }

/* 按钮 */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 24px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
  text-align: center;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: #6b5637; transform: translateY(-1px); }
.btn-secondary { background: var(--accent2); color: #fff; }
.btn-ghost {
  background: transparent;
  color: var(--accent);
  border: 1.5px solid var(--accent);
}
.btn-ghost:hover { background: var(--accent); color: #fff; }
.btn-large { padding: 16px 40px; font-size: 17px; }

/* 卡片 */
.card {
  background: var(--bg2);
  border-radius: 12px;
  padding: 20px;
  border: 1px solid var(--rule);
}

/* 区块标题 */
.section-title {
  font-size: 22px;
  font-weight: 700;
  margin: 32px 0 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.section-title::before {
  content: ""; width: 4px; height: 22px;
  background: var(--accent); border-radius: 2px;
}

/* 隐藏 */
.hidden { display: none !important; }

/* 加载动画 */
.loading {
  display: inline-block;
  width: 20px; height: 20px;
  border: 2px solid var(--rule);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Toast 提示 */
.toast {
  position: fixed; top: 20px; left: 50%;
  transform: translateX(-50%);
  background: rgba(44,44,44,0.9);
  color: #fff;
  padding: 12px 24px;
  border-radius: 8px;
  z-index: 9999;
  animation: fadeIn 0.3s;
}
@keyframes fadeIn { from { opacity: 0; top: 0; } to { opacity: 1; top: 20px; } }

/* 响应式 */
@media (max-width: 600px) {
  .container { padding: 0 12px; }
  .btn-large { padding: 14px 32px; font-size: 16px; }
}
