/*!*************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ./node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[13].oneOf[12].use[2]!./node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[13].oneOf[12].use[3]!./app/globals.css ***!
  \*************************************************************************************************************************************************************************************************************************************************************/
:root {
  --bg: #FFFDF8;        /* 米白打底 */
  --card: #FFFFFF;      /* 普通卡片白净 */
  --tint: #FFF7E0;      /* 暖黄点缀底：仅用于提示/强调卡 */
  --brand: #FFD66B;     /* 暖黄强调：按钮、品牌 */
  --brand-deep: #E8A100;
  --text: #3A3A3A;
  --muted: #9a9a9a;
  --ok: #7BC47F;
  --warn: #E69138;
  --line: #F0EAD8;      /* 柔和分隔线 */
  --sidebar-w: 220px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

h1 { font-size: 24px; margin: 8px 0; }
h2 { font-size: 18px; margin: 4px 0 10px; }

/* 普通卡片：白净 + 细边 + 柔和暖阴影，靠层次而非色块 */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
  margin: 12px 0;
  box-shadow: 0 2px 10px rgba(190, 160, 50, 0.06);
}
/* 提示/强调卡：暖黄点缀，表达「需要注意」 */
.card-tint { background: var(--tint); border-color: #F2E4B0; }

button { font-family: inherit; }
.btn {
  display: block; width: 100%;
  background: var(--brand); border: none; border-radius: 12px;
  padding: 12px 16px; font-size: 16px; font-weight: 600; color: #5a4a00; cursor: pointer;
}
.btn:active { transform: scale(0.99); }
.btn:disabled { opacity: 0.6; }
.btn-ghost { background: #fff; border: 1.5px solid var(--brand); color: var(--brand-deep); }

input, textarea, select {
  width: 100%; padding: 10px; border: 1px solid var(--line); border-radius: 10px;
  font-size: 15px; background: #fff; font-family: inherit; color: var(--text);
}
input[type="checkbox"], input[type="radio"] { width: auto; }
label { font-size: 13px; color: var(--muted); }

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

.chip {
  display: inline-block; padding: 2px 10px; border-radius: 999px;
  font-size: 12px; background: #fff; border: 1px solid var(--line); color: var(--brand-deep);
  cursor: pointer;
}

.timeline-item { display: flex; gap: 10px; padding: 10px 0; border-bottom: 1px dashed var(--line); align-items: center; }
.time { font-feature-settings: "tnum"; font-variant-numeric: tabular-nums; color: var(--brand-deep); font-weight: 700; min-width: 50px; }

/* ===== 导航：移动端默认为底部 tab ===== */
.nav {
  position: fixed; bottom: 0; left: 0; right: 0; margin: 0 auto; max-width: 440px;
  background: #fff; border-top: 1px solid var(--line);
  display: flex; justify-content: space-around; padding: 6px 0;
  z-index: 20;
}
.nav .brand { display: none; }
.nav a {
  flex: 1 1; display: flex; flex-direction: column; align-items: center; gap: 2px;
  text-decoration: none; color: var(--muted); font-size: 11px;
}
.nav a.active { color: var(--brand-deep); font-weight: 700; }
.nav-icon { font-size: 18px; line-height: 1; }

/* ===== 桌面端（≥768px）：左侧边栏 + 主内容限宽居中 ===== */
@media (min-width: 768px) {
  /* 有侧边栏的页面给左侧让位 */
  body.has-sidebar { padding-left: var(--sidebar-w); }

  .nav {
    flex-direction: column; justify-content: flex-start; align-items: stretch;
    top: 0; bottom: 0; left: 0; right: auto; margin: 0;
    width: var(--sidebar-w); max-width: var(--sidebar-w);
    border-top: none; border-right: 1px solid var(--line);
    padding: 22px 12px; gap: 4px;
  }
  .nav .brand {
    display: block; font-size: 20px; font-weight: 800;
    color: var(--brand-deep); padding: 6px 14px 18px;
  }
  .nav a {
    flex: none; flex-direction: row; justify-content: flex-start; align-items: center;
    gap: 12px; font-size: 15px; padding: 11px 14px; border-radius: 10px;
  }
  .nav a.active { background: var(--tint); color: var(--brand-deep); }

  /* 主内容：在侧边栏右侧的区域内限宽居中 */
  body.has-sidebar .container { max-width: 780px; margin: 0 auto; padding: 28px 36px 48px; }
  /* 登录页（无侧边栏）：窄卡片居中 */
  body:not(.has-sidebar) .container { max-width: 420px; padding-bottom: 32px; }
}

