/* 沪译通 · 全站样式 */
:root {
  --ink: #1f2a37;
  --muted: #5b6b7c;
  --bg: #f6f8fa;
  --white: #ffffff;
  --blue: #185fa5;
  --blue-l: #e6f1fb;
  --teal: #0f6e56;
  --teal-l: #e1f5ee;
  --coral: #993c1d;
  --coral-l: #faece7;
  --amber-l: #faeeda;
  --border: #d9e1ea;
  --radius: 14px;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
}

/* 顶部 */
.hero {
  background: #12365e;
  color: #fff;
  padding-bottom: 64px;
}
.nav {
  max-width: 1080px; margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center;
  padding: 20px 24px;
}
.logo { font-size: 20px; font-weight: 700; letter-spacing: 2px; }
.nav-links a {
  color: #cfe0f2; text-decoration: none; margin-left: 22px; font-size: 14px;
}
.nav-links a:hover { color: #fff; }
.hero-inner { max-width: 1080px; margin: 0 auto; padding: 56px 24px 0; }
.hero h1 { font-size: 34px; font-weight: 700; margin-bottom: 14px; }
.hero-sub { color: #cfe0f2; font-size: 16px; margin-bottom: 28px; }
.hero-stats { display: flex; gap: 40px; margin-bottom: 30px; }
.stat b { font-size: 30px; display: block; }
.stat span { font-size: 13px; color: #cfe0f2; }
.btn {
  display: inline-block; background: #f5b83d; color: #12365e;
  padding: 12px 34px; border-radius: 999px; font-weight: 700;
  text-decoration: none; font-size: 15px;
}
.btn:hover { background: #ffca62; }

/* 区块 */
.section { max-width: 1080px; margin: 0 auto; padding: 56px 24px; }
.section.alt { background: var(--white); max-width: none; }
.section.alt > * { max-width: 1032px; margin-left: auto; margin-right: auto; }
.section h2 { font-size: 24px; margin-bottom: 10px; color: #12365e; }
.section-sub { color: var(--muted); margin-bottom: 26px; }

/* 卡片 */
.cards { display: grid; gap: 18px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 22px;
}
.card h3 { font-size: 17px; margin-bottom: 8px; }
.card p { font-size: 14px; color: var(--muted); }
.card.mini { background: #f8fafc; }
.card-tag {
  display: inline-block; font-size: 12px; font-weight: 600;
  padding: 3px 12px; border-radius: 999px; margin-bottom: 10px;
}
.tag-blue  { background: var(--blue-l);  color: var(--blue); }
.tag-teal  { background: var(--teal-l);  color: var(--teal); }
.tag-coral { background: var(--coral-l); color: var(--coral); }

code {
  background: var(--blue-l); color: var(--blue);
  padding: 1px 6px; border-radius: 5px; font-size: 13px;
}

/* 练习题 */
.drills { display: flex; flex-direction: column; gap: 16px; }
.drill {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden; cursor: pointer;
}
.drill-head { padding: 18px 22px; display: flex; align-items: center; gap: 12px; }
.drill-no {
  flex: none; width: 34px; height: 34px; border-radius: 10px;
  background: var(--blue-l); color: var(--blue);
  display: flex; align-items: center; justify-content: center; font-weight: 700;
}
.drill-cn { flex: 1; font-size: 15px; }
.drill-hint { font-size: 12px; color: var(--teal); background: var(--teal-l);
  padding: 2px 10px; border-radius: 999px; flex: none; }
.drill-body {
  display: none; padding: 0 22px 20px 68px;
  border-top: 1px dashed var(--border);
}
.drill.open .drill-body { display: block; }
.drill-body h4 { font-size: 13px; color: var(--muted); margin: 14px 0 4px; }
.drill-body .answer { font-size: 15px; font-weight: 600; color: #12365e; }
.drill-body .analysis { font-size: 14px; color: var(--muted); }

/* 自查清单 */
.checklist { list-style: none; }
.checklist li {
  background: var(--white); border: 1px solid var(--border);
  border-radius: 10px; padding: 12px 18px; margin-bottom: 10px;
  font-size: 15px; position: relative; padding-left: 46px;
}
.checklist li::before {
  content: "✓"; position: absolute; left: 16px; top: 10px;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--teal-l); color: var(--teal);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700;
}

/* AI 面板 */
.ai-panel {
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 22px;
}
.ai-panel h3 { font-size: 17px; margin-bottom: 10px; }
.ai-panel ol { padding-left: 22px; font-size: 15px; }
.ai-panel li { margin-bottom: 8px; }
.ai-hint { color: var(--muted); font-size: 13px; margin-top: 14px; }
.ai-quick {
  background: var(--amber-l); border-radius: var(--radius); padding: 20px;
}
.ai-quick h4 { font-size: 15px; margin-bottom: 12px; }
.prompt-chip {
  display: block; width: 100%; text-align: left;
  background: var(--white); border: 1px solid var(--border);
  border-radius: 10px; padding: 10px 14px; margin-bottom: 10px;
  font-size: 13px; cursor: pointer; color: var(--ink);
}
.prompt-chip:hover { border-color: var(--blue); color: var(--blue); }

footer {
  text-align: center; color: var(--muted); font-size: 13px;
  padding: 28px 0; border-top: 1px solid var(--border); background: var(--white);
}

@media (max-width: 760px) {
  .grid-3, .ai-panel { grid-template-columns: 1fr; }
  .hero h1 { font-size: 26px; }
  .hero-stats { gap: 24px; }
  .nav-links a { margin-left: 12px; font-size: 12px; }
}
