/* 新概念AI教育 · 全流程页面公共样式（2026-10-10）
 * 顶栏 / 页脚 / 弹窗 / 提示等外壳样式在 shell.css，这里只放页面内容组件。 */
@import url('/app/shell.css?v=20261010b');
:root {
  --brand: #0e9f6e;
  --brand-dark: #057a55;
  --brand-soft: #e7f7f0;
  --ink: #1f2937;
  --ink-2: #4b5563;
  --ink-3: #9ca3af;
  --line: #e5e7eb;
  --bg: #f5f7f6;
  --card: #ffffff;
  --warn: #d97706;
  --warn-soft: #fff7e6;
  --danger: #dc2626;
  --danger-soft: #fdecec;
  --info: #2563eb;
  --info-soft: #eaf1ff;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(16, 24, 40, 0.04), 0 2px 8px rgba(16, 24, 40, 0.06);
}
* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  padding: 0;
}
body {
  background: var(--bg);
  color: var(--ink);
  font:
    15px/1.6 -apple-system,
    BlinkMacSystemFont,
    'PingFang SC',
    'Microsoft YaHei',
    'Segoe UI',
    sans-serif;
  -webkit-font-smoothing: antialiased;
}
a {
  color: var(--brand-dark);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
h1,
h2,
h3,
h4 {
  margin: 0;
  line-height: 1.3;
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

/* ---------- 布局 ---------- */
.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 20px 16px 48px;
}
.wrap.narrow {
  max-width: 720px;
}
.page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.page-head h1 {
  font-size: 22px;
}
.page-head p {
  margin: 4px 0 0;
  color: var(--ink-2);
  font-size: 14px;
}
.grid {
  display: grid;
  gap: 16px;
}
.grid.c2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.grid.c3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.grid.c4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.grid.side {
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
}
@media (max-width: 900px) {
  .grid.c4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .grid.c3,
  .grid.side {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 560px) {
  .grid.c2 {
    grid-template-columns: minmax(0, 1fr);
  }
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px;
  min-width: 0;
}
.card h2 {
  font-size: 16px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.card h2 small {
  font-weight: 400;
  color: var(--ink-3);
  font-size: 13px;
}
.muted {
  color: var(--ink-3);
}
.small {
  font-size: 13px;
}
.row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.row.between {
  justify-content: space-between;
}
.stack > * + * {
  margin-top: 12px;
}
.hide {
  display: none !important;
}

/* ---------- 指标 ---------- */
.stat {
  padding: 16px;
}
.stat .v {
  font-size: 26px;
  font-weight: 700;
  line-height: 1.2;
}
.stat .k {
  color: var(--ink-2);
  font-size: 13px;
  margin-top: 4px;
}
.stat .v small {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-2);
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 38px;
  padding: 0 16px;
  border-radius: 10px;
  border: 1px solid transparent;
  background: var(--brand);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s;
  font-size: 14px;
}
.btn:hover {
  background: var(--brand-dark);
  text-decoration: none;
}
.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.btn.ghost {
  background: #fff;
  color: var(--ink);
  border-color: var(--line);
}
.btn.ghost:hover {
  background: var(--bg);
}
.btn.danger {
  background: #fff;
  color: var(--danger);
  border-color: #f5c2c2;
}
.btn.danger:hover {
  background: var(--danger-soft);
}
.btn.sm {
  height: 30px;
  padding: 0 12px;
  font-size: 13px;
  border-radius: 8px;
}
.btn.lg {
  height: 46px;
  padding: 0 24px;
  font-size: 16px;
}
.btn.block {
  width: 100%;
}

/* ---------- 表单 ---------- */
.field {
  display: block;
  margin-bottom: 14px;
}
.field > span {
  display: block;
  font-size: 13px;
  color: var(--ink-2);
  margin-bottom: 6px;
  font-weight: 500;
}
.field > span em {
  color: var(--danger);
  font-style: normal;
  margin-left: 2px;
}
.input,
select.input,
textarea.input {
  width: 100%;
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  outline: none;
  transition:
    border-color 0.15s,
    box-shadow 0.15s;
}
textarea.input {
  height: auto;
  min-height: 88px;
  padding: 10px 12px;
  resize: vertical;
}
.input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(14, 159, 110, 0.15);
}
.hint {
  font-size: 12px;
  color: var(--ink-3);
  margin-top: 4px;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chip {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 18px;
  padding: 5px 14px;
  cursor: pointer;
  font-size: 14px;
  color: var(--ink-2);
}
.chip.on {
  border-color: var(--brand);
  color: var(--brand-dark);
  background: var(--brand-soft);
  font-weight: 600;
}
.seg {
  display: inline-flex;
  background: var(--bg);
  border-radius: 10px;
  padding: 3px;
  gap: 2px;
  flex-wrap: wrap;
}
.seg button {
  border: 0;
  background: transparent;
  padding: 6px 14px;
  border-radius: 8px;
  cursor: pointer;
  color: var(--ink-2);
  font-size: 14px;
}
.seg button.on {
  background: #fff;
  color: var(--ink);
  font-weight: 600;
  box-shadow: var(--shadow);
}

/* ---------- 标签 / 状态 ---------- */
.tag {
  display: inline-block;
  font-size: 12px;
  line-height: 20px;
  padding: 0 8px;
  border-radius: 6px;
  background: var(--bg);
  color: var(--ink-2);
  white-space: nowrap;
}
.tag.ok {
  background: var(--brand-soft);
  color: var(--brand-dark);
}
.tag.warn {
  background: var(--warn-soft);
  color: var(--warn);
}
.tag.bad {
  background: var(--danger-soft);
  color: var(--danger);
}
.tag.info {
  background: var(--info-soft);
  color: var(--info);
}

.banner {
  border-radius: var(--radius);
  padding: 14px 16px;
  margin-bottom: 16px;
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}
.banner.info {
  background: var(--info-soft);
  color: #1e40af;
}
.banner.warn {
  background: var(--warn-soft);
  color: #92400e;
}
.banner.ok {
  background: var(--brand-soft);
  color: var(--brand-dark);
}
.banner.bad {
  background: var(--danger-soft);
  color: #991b1b;
}

/* ---------- 列表 / 表格 ---------- */
.list > .item {
  padding: 12px 0;
  border-top: 1px solid var(--line);
}
.list > .item:first-child {
  border-top: 0;
  padding-top: 0;
}
.table-wrap {
  overflow-x: auto;
}
table.t {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
table.t th,
table.t td {
  text-align: left;
  padding: 10px 8px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
table.t th {
  color: var(--ink-3);
  font-weight: 500;
  font-size: 13px;
  white-space: nowrap;
}
table.t tr:last-child td {
  border-bottom: 0;
}
.empty {
  text-align: center;
  color: var(--ink-3);
  padding: 28px 12px;
  font-size: 14px;
}
.empty .btn {
  margin-top: 12px;
}
.loading {
  color: var(--ink-3);
  padding: 20px;
  text-align: center;
  font-size: 14px;
}

.bar {
  height: 8px;
  background: var(--bg);
  border-radius: 4px;
  overflow: hidden;
}
.bar > i {
  display: block;
  height: 100%;
  background: var(--brand);
  border-radius: 4px;
}
.bar.warn > i {
  background: var(--warn);
}
.bar.bad > i {
  background: var(--danger);
}

/* ---------- 老师卡片 ---------- */
.avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand-dark);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 18px;
  flex: none;
}
.avatar.lg {
  width: 72px;
  height: 72px;
  font-size: 28px;
}
.tcard {
  display: flex;
  gap: 14px;
}
.tcard .meta {
  flex: 1;
  min-width: 0;
}
.tcard .name {
  font-weight: 700;
  font-size: 16px;
}
.tcard .bio {
  color: var(--ink-2);
  font-size: 13px;
  margin-top: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.price {
  color: var(--danger);
  font-weight: 700;
}
.price small {
  font-weight: 400;
  color: var(--ink-3);
  font-size: 12px;
}
.stars {
  color: #f59e0b;
  letter-spacing: 1px;
}

/* ---------- 时间线 ---------- */
.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
}
.timeline li {
  position: relative;
  padding: 0 0 14px 22px;
  font-size: 14px;
}
.timeline li::before {
  content: '';
  position: absolute;
  left: 5px;
  top: 7px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--line);
}
.timeline li.done::before {
  background: var(--brand);
}
.timeline li::after {
  content: '';
  position: absolute;
  left: 9px;
  top: 18px;
  bottom: 0;
  width: 1px;
  background: var(--line);
}
.timeline li:last-child::after {
  display: none;
}

/* ---------- 练习 ---------- */
.q {
  padding: 16px 0;
  border-top: 1px solid var(--line);
}
.q:first-child {
  border-top: 0;
}
.q .stem {
  font-weight: 600;
  margin-bottom: 10px;
}
.opts {
  display: grid;
  gap: 8px;
}
.opt {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 9px 12px;
  cursor: pointer;
  background: #fff;
  text-align: left;
  width: 100%;
}
.opt b {
  flex: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--bg);
  display: grid;
  place-items: center;
  font-size: 13px;
}
.opt:hover {
  border-color: var(--brand);
}
.opt.on {
  border-color: var(--brand);
  background: var(--brand-soft);
}
.opt.on b {
  background: var(--brand);
  color: #fff;
}
.opt.right {
  border-color: var(--brand);
  background: var(--brand-soft);
}
.opt.wrong {
  border-color: var(--danger);
  background: var(--danger-soft);
}
.analysis {
  margin-top: 10px;
  background: var(--bg);
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 14px;
  color: var(--ink-2);
}

/* ---------- 登录注册 ---------- */
.auth-box {
  max-width: 420px;
  margin: 32px auto;
}
.auth-box .card {
  padding: 24px;
}
.role-pick {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}
.role-pick button {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 12px;
  padding: 12px;
  cursor: pointer;
  text-align: left;
}
.role-pick button b {
  display: block;
  font-size: 15px;
}
.role-pick button span {
  font-size: 12px;
  color: var(--ink-3);
}
.role-pick button.on {
  border-color: var(--brand);
  background: var(--brand-soft);
}
.divider {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink-3);
  font-size: 13px;
  margin: 16px 0;
}
.divider::before,
.divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--line);
}

.ai-box .msgs {
  max-height: 320px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 10px;
}
.ai-box .m {
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 14px;
  max-width: 90%;
  white-space: pre-wrap;
}
.ai-box .m.u {
  align-self: flex-end;
  background: var(--brand);
  color: #fff;
}
.ai-box .m.b {
  align-self: flex-start;
  background: var(--bg);
}

.footer {
  text-align: center;
  color: var(--ink-3);
  font-size: 12px;
  padding: 24px 16px;
}

/* ---------- 内容页（关于 / 帮助 / 条款等） ---------- */
.doc {
  line-height: 1.85;
  color: var(--ink-2);
}
.doc h2 {
  font-size: 17px;
  color: var(--ink);
  margin: 22px 0 8px;
}
.doc h2:first-child {
  margin-top: 0;
}
.doc p {
  margin: 0 0 10px;
}
.doc ol,
.doc ul {
  margin: 0 0 10px;
  padding-left: 22px;
}
.doc li {
  margin: 4px 0;
}
.doc .muted {
  font-size: 13px;
}
.qa {
  border-top: 1px solid var(--line);
  padding: 14px 0;
}
.qa:first-child {
  border-top: 0;
  padding-top: 0;
}
.qa summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--ink);
  list-style: none;
}
.qa summary::-webkit-details-marker {
  display: none;
}
.qa summary::before {
  content: '＋';
  color: var(--brand);
  margin-right: 8px;
}
.qa[open] summary::before {
  content: '－';
}
.qa > div {
  margin-top: 8px;
  color: var(--ink-2);
  line-height: 1.8;
}
.hero {
  background: linear-gradient(135deg, #0e9f6e, #057a55);
  color: #fff;
  border-radius: 16px;
  padding: 36px 28px;
  margin-bottom: 20px;
}
.hero h1 {
  font-size: 30px;
  line-height: 1.35;
}
.hero p {
  margin: 10px 0 18px;
  opacity: 0.92;
  font-size: 16px;
}
.hero .btn.ghost {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.5);
}
.hero .btn.light {
  background: #fff;
  color: var(--brand-dark);
}
@media (max-width: 560px) {
  .hero {
    padding: 26px 18px;
  }
  .hero h1 {
    font-size: 24px;
  }
}
