/* 济宁家教 · 优雅极简版式 */
:root {
  --paper: #faf9f6;
  --ink: #23211d;
  --muted: #8a857c;
  --line: #e7e3db;
  --accent: #1e5f56;
  --accent-soft: #e7f0ed;
  --serif: Georgia, "Songti SC", "STSong", "SimSun", serif;
  --sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.65;
  font-size: 16px;
}

/* ---------- 头部 ---------- */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  border-bottom: 1px solid var(--line);
  background: rgba(250, 249, 246, 0.92);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 10;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-link { display: flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; }
.brand-mark {
  width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent); color: #fff;
  border-radius: 10px;
  font-family: var(--serif); font-size: 18px;
}
.brand-name { font-family: var(--serif); font-size: 18px; letter-spacing: 0.05em; font-weight: 600; }
.brand-sub { font-size: 12px; color: var(--muted); font-weight: 400; margin-left: 6px; }
.back-link { color: var(--muted); text-decoration: none; font-size: 14px; }
.back-link:hover { color: var(--accent); }

main { max-width: 720px; margin: 0 auto; padding: 0 16px 48px; }

/* ---------- 首屏 ---------- */
.hero { padding: 44px 0 28px; }
.hero h1 {
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.4;
}
.hero-sub { color: var(--muted); margin-top: 12px; font-size: 15px; }
.hero-steps {
  display: flex; align-items: center; flex-wrap: wrap; gap: 6px;
  margin-top: 22px;
  font-size: 12.5px;
  color: var(--ink);
}
.step {
  background: #fff; border: 1px solid var(--line);
  border-radius: 99px; padding: 5px 12px;
  display: inline-flex; align-items: center; gap: 6px;
}
.step i {
  font-style: normal; width: 18px; height: 18px; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent);
  display: inline-flex; align-items: center; justify-content: center; font-size: 11px;
}
.step-arrow { color: var(--line); }

/* ---------- 筛选 ---------- */
.filter-bar {
  display: flex; gap: 8px; overflow-x: auto;
  padding: 14px 0 6px;
  scrollbar-width: none;
}
.filter-bar::-webkit-scrollbar { display: none; }
.chip {
  flex-shrink: 0;
  padding: 7px 16px;
  border-radius: 99px;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 14px;
  color: var(--ink);
  cursor: pointer;
  transition: all 0.15s;
}
.chip.active { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ---------- 老师卡片 ---------- */
.teacher-list { padding: 12px 0 8px; display: flex; flex-direction: column; gap: 14px; }
.teacher-card {
  display: flex; gap: 14px; align-items: flex-start;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.2s, transform 0.2s;
}
.teacher-card:hover { box-shadow: 0 6px 24px rgba(35, 33, 29, 0.07); transform: translateY(-1px); }
.avatar {
  width: 60px; height: 60px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.avatar-ph {
  display: flex; align-items: center; justify-content: center;
  background: hsl(var(--h, 160), 32%, 92%);
  color: hsl(var(--h, 160), 38%, 34%);
  font-family: var(--serif); font-size: 24px;
}
.avatar-lg { width: 92px; height: 92px; font-size: 36px; }
.tc-main { flex: 1; min-width: 0; }
.tc-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.tc-name { font-size: 17px; font-weight: 600; }
.tag {
  font-size: 12px; color: var(--accent);
  background: var(--accent-soft);
  padding: 1px 9px; border-radius: 99px;
}
.tc-school { color: var(--muted); font-size: 13px; margin-top: 4px; }
.tc-subjects { font-size: 14px; margin-top: 4px; }
.tc-fee { font-size: 13px; color: #9a5b13; margin-top: 6px; }
.tc-go {
  align-self: center;
  color: var(--accent); font-size: 13px;
  flex-shrink: 0;
}

/* ---------- 服务承诺 ---------- */
.promise {
  display: flex; gap: 12px;
  margin-top: 24px;
}
.promise-item {
  flex: 1;
  background: #fff; border: 1px solid var(--line);
  border-radius: 14px; padding: 14px 12px;
  font-size: 12.5px;
}
.promise-item b { display: block; font-size: 14px; margin-bottom: 3px; }
.promise-item span { color: var(--muted); }

/* ---------- 双线课程 ---------- */
.tracks { display: flex; gap: 12px; margin-top: 24px; }
.track {
  flex: 1; position: relative; overflow: hidden;
  background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 20px 18px 18px;
}
.track::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--accent), #c8a86a);
}
.track-kicker {
  font-family: var(--serif); font-size: 13px; color: #c8a86a;
  letter-spacing: 2px; margin-bottom: 8px;
}
.track h3 { font-family: var(--serif); font-size: 16.5px; margin-bottom: 8px; }
.track-desc { font-size: 13px; color: var(--muted); line-height: 1.75; margin-bottom: 12px; }
.track-tags { font-size: 12px; color: var(--accent); letter-spacing: 0.5px; }

/* ---------- 科目快捷标签 ---------- */
.pick-row { display: flex; flex-wrap: wrap; gap: 8px; margin: -4px 0 16px; }
.pick {
  padding: 6px 13px; border: 1px solid var(--line); border-radius: 99px;
  background: #fff; color: var(--ink); font-size: 13px; font-family: inherit; cursor: pointer;
}
.pick:active { background: var(--accent-soft); }
.pick.on { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); }
.pick-wu { border-color: #e8dcbb; background: #fdfaf3; }
.pick-wu.on { background: #f5efe0; border-color: #c8a86a; color: #9a7b1e; }

/* ---------- 详情页 ---------- */
.detail { padding-top: 32px; }
.detail-head { display: flex; gap: 16px; align-items: center; margin-bottom: 24px; }
.detail-head h2 { font-family: var(--serif); font-size: 24px; }
.d-meta { color: var(--muted); font-size: 14px; margin-top: 4px; }
.d-subjects { font-size: 15px; margin-top: 6px; }
.detail-block {
  background: #fff; border: 1px solid var(--line);
  border-radius: 14px; padding: 18px;
  margin-bottom: 14px;
}
.detail-block h3 { font-size: 15px; margin-bottom: 8px; color: var(--accent); }
.detail-block p { font-size: 15px; white-space: pre-wrap; }

/* ---------- 表单 ---------- */
.form-view, .success-view { padding-top: 32px; }
.form-view h2 { font-family: var(--serif); font-size: 22px; }
.form-sub { color: var(--muted); font-size: 14px; margin: 8px 0 20px; }
#bookForm label {
  display: block; margin-bottom: 14px;
  font-size: 14px;
}
#bookForm input, #bookForm select, #bookForm textarea {
  width: 100%;
  margin-top: 6px;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 15px;
  font-family: inherit;
  background: #fff;
  color: var(--ink);
}
#bookForm input:focus, #bookForm select:focus, #bookForm textarea:focus, .form-grid input:focus, .form-grid select:focus, .form-grid textarea:focus {
  outline: none;
  border-color: var(--accent);
}
textarea { resize: vertical; }

.btn-primary {
  display: block;
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 12px;
  background: var(--accent);
  color: #fff;
  font-size: 16px;
  font-family: inherit;
  cursor: pointer;
  margin-top: 8px;
  transition: opacity 0.2s;
}
.btn-primary:disabled { opacity: 0.6; cursor: default; }
.btn-primary:active { opacity: 0.85; }
.link-btn { text-align: center; text-decoration: none; margin-top: 20px; }
.book-hint { color: var(--muted); font-size: 13px; text-align: center; margin-top: 10px; }

/* ---------- 成功页 ---------- */
.success-view { text-align: center; }
.success-icon {
  width: 64px; height: 64px;
  margin: 8px auto 16px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 30px;
  display: flex; align-items: center; justify-content: center;
}
.success-view h2 { font-family: var(--serif); font-size: 24px; }
.success-sub { color: var(--muted); font-size: 14px; margin-top: 8px; }
.next-card {
  background: #fff; border: 1px solid var(--line);
  border-radius: 16px; padding: 20px;
  text-align: left;
  margin-top: 22px;
}
.next-card h3 { font-size: 16px; margin-bottom: 14px; }
.next-step { display: flex; gap: 12px; margin-bottom: 16px; }
.next-step:last-child { margin-bottom: 0; }
.next-step i {
  font-style: normal;
  width: 26px; height: 26px; flex-shrink: 0;
  border-radius: 50%;
  background: var(--accent); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px;
}
.next-step b { font-size: 15px; }
.next-step p { color: var(--muted); font-size: 13.5px; margin-top: 3px; }
.next-step code {
  background: var(--accent-soft);
  color: var(--accent);
  padding: 1px 8px;
  border-radius: 6px;
  font-size: 14px;
}
.btn-mini {
  padding: 3px 10px;
  border-radius: 7px;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 12px;
  cursor: pointer;
  color: var(--accent);
}

/* ---------- 空状态 / 页脚 ---------- */
.empty {
  text-align: center;
  color: var(--muted);
  padding: 48px 16px;
  font-size: 14px;
}
.err { color: #b3261e; font-size: 13px; margin-top: 8px; min-height: 16px; }
.site-footer {
  border-top: 1px solid var(--line);
  text-align: center;
  padding: 28px 16px 40px;
  color: var(--muted);
  font-size: 13px;
}
.footer-admin a { color: #c4c0b8; text-decoration: none; font-size: 12px; }

@media (max-width: 480px) {
  .hero h1 { font-size: 25px; }
  .promise { flex-direction: column; }
  .tracks { flex-direction: column; }
  .avatar-lg { width: 72px; height: 72px; font-size: 28px; }
}

/* 诚信标记 */
.tag-verified { background: #f5efe0; color: #9a7b1e; border-color: #e8dcbb; }
.tag-diploma { background: #eef1f5; color: #5a6b80; }
