* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", "PingFang SC", sans-serif;
  color: #1f2937;
  background: #f4f6f9;
  -webkit-font-smoothing: antialiased;
}

body.center {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, #eef2f8 0%, #e3e9f2 100%);
  padding: 24px;
}

/* ---------- 卡片 ---------- */
.card {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(23, 43, 77, .10), 0 2px 6px rgba(23, 43, 77, .06);
  padding: 36px 34px 30px;
  width: 100%;
}
.login-card { max-width: 380px; }

.brand { text-align: center; margin-bottom: 26px; }
.brand h1 { margin: 0; font-size: 1.5rem; letter-spacing: .5px; color: var(--brand); }
.brand .sub { margin: 8px 0 0; font-size: .88rem; color: #6b7280; }

/* ---------- 表单 ---------- */
label { display: block; margin-bottom: 16px; }
label span { display: block; font-size: .82rem; color: #6b7280; margin-bottom: 6px; }

input[type=tel], input[type=password] {
  width: 100%;
  height: 44px;
  padding: 0 14px;
  font-size: 1rem;
  border: 1px solid #d6dce5;
  border-radius: 9px;
  background: #fbfcfe;
  transition: border-color .15s, box-shadow .15s;
  font-family: inherit;
}
input:focus {
  outline: none;
  border-color: var(--brand);
  background: #fff;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 15%, transparent);
}

button[type=submit] {
  width: 100%;
  height: 46px;
  margin-top: 8px;
  border: 0;
  border-radius: 9px;
  background: var(--brand);
  color: #fff;
  font-size: 1rem;
  letter-spacing: 2px;
  cursor: pointer;
  transition: background .15s;
  font-family: inherit;
}
button[type=submit]:hover { background: var(--brand-dark); }

/* ---------- 提示 ---------- */
.alert {
  background: #fef2f2; border: 1px solid #fecaca; color: #b91c1c;
  padding: 10px 14px; border-radius: 9px; font-size: .86rem; margin-bottom: 18px;
}
.alert.ok { background: #f0fdf4; border-color: #bbf7d0; color: #15803d; }
.notice { text-align: center; font-size: .78rem; color: #9ca3af; margin: 20px 0 0; }
.footer { text-align: center; font-size: .76rem; color: #9ca3af; margin-top: 20px; }

/* ---------- 顶栏 ---------- */
.topbar {
  background: #fff; border-bottom: 1px solid #e5e9f0;
  position: sticky; top: 0; z-index: 10;
}
.topbar-inner {
  max-width: 1000px; margin: 0 auto; height: 58px;
  display: flex; align-items: center; justify-content: space-between; padding: 0 22px;
}
.logo { font-weight: 600; color: var(--brand); letter-spacing: .5px; }
.user { font-size: .86rem; color: #6b7280; display: flex; gap: 14px; align-items: center; }
.user a { color: #6b7280; text-decoration: none; border: 1px solid #d6dce5;
          padding: 5px 12px; border-radius: 7px; }
.user a:hover { color: var(--brand); border-color: var(--brand); }

/* ---------- 首页 ---------- */
.page { max-width: 1000px; margin: 0 auto; padding: 30px 22px 60px; }
.page h2 { font-size: 1.35rem; margin: 0 0 6px; }
.lead { color: #6b7280; margin: 0 0 26px; font-size: .92rem; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.tile {
  background: #fff; border: 1px solid #e8ecf2; border-radius: 12px;
  padding: 20px; transition: box-shadow .15s, transform .15s;
}
.tile:hover { box-shadow: 0 6px 18px rgba(23,43,77,.08); transform: translateY(-1px); }
.tile h3 { margin: 0 0 8px; font-size: 1.02rem; }
.tile p { margin: 0; color: #6b7280; font-size: .87rem; line-height: 1.6; }
.soon { display: inline-block; margin-top: 14px; font-size: .74rem; color: #9ca3af;
        border: 1px dashed #d6dce5; padding: 3px 9px; border-radius: 6px; }

.hint { margin-top: 30px; font-size: .8rem; color: #9ca3af; }
