/* AwakeLine SEO 站样式。单一外部 CSS，被 9534 个页面共用（不内联，省 20MB）。 */

:root {
  --ink: #23231f;
  --muted: #6a6a63;
  --line: #e3e1d9;
  --paper: #fbfaf6;
  --brand: #c84640;
  --brand-dark: #a5371f;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans SC",
        "PingFang SC", "Microsoft YaHei", Roboto, Helvetica, Arial, sans-serif;
}

.wrap { max-width: 880px; margin: 0 auto; padding: 0 20px; }

a { color: var(--brand-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

/* 顶栏 */
.nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 14px 20px; border-bottom: 1px solid var(--line);
  background: #fff;
}
.nav .brand { font-weight: 600; font-size: 17px; color: var(--ink); }
.nav nav { display: flex; align-items: center; gap: 18px; font-size: 15px; }
.cta-sm {
  background: var(--brand); color: #fff !important; padding: 6px 14px;
  border-radius: 999px; font-size: 14px;
}
.cta-sm:hover { background: var(--brand-dark); text-decoration: none; }

main { padding: 28px 20px 48px; }

h1 { font-size: 27px; line-height: 1.3; margin: 0 0 10px; font-weight: 600; }
h2 { font-size: 19px; margin: 30px 0 12px; font-weight: 600; }
.lead { color: var(--muted); font-size: 16px; margin: 0 0 20px; }
.muted { color: var(--muted); font-size: 14px; }

.py { color: var(--muted); font-weight: 400; }

/* 动图 */
.anim { margin: 0 0 18px; text-align: center; }
.anim img {
  width: 196px; height: 196px; background: #f6f6f4;
  border: 1px solid var(--line); border-radius: 6px;
}
.anim figcaption { color: var(--muted); font-size: 14px; margin-top: 8px; }

/* 引流按钮 */
.cta { margin: 22px 0; }
.cta a {
  display: inline-block; background: var(--brand); color: #fff;
  padding: 11px 22px; border-radius: 8px; font-weight: 500;
}
.cta a:hover { background: var(--brand-dark); text-decoration: none; }

/* 事实表 */
.facts { border-collapse: collapse; width: 100%; max-width: 520px; }
.facts th, .facts td {
  text-align: left; padding: 8px 12px; border-bottom: 1px solid var(--line);
  font-size: 15px; vertical-align: top;
}
.facts th { width: 130px; color: var(--muted); font-weight: 400; }
.facts .big { font-size: 26px; line-height: 1.2; }

.defs { margin: 0; padding-left: 20px; }
.defs li { margin: 3px 0; }

/* 组词表 */
.words { border-collapse: collapse; width: 100%; }
.words th, .words td {
  text-align: left; padding: 7px 10px; border-bottom: 1px solid var(--line); font-size: 15px;
}
.words th { color: var(--muted); font-weight: 400; }
.words .w { font-size: 19px; white-space: nowrap; }

/* 字格瓦片 */
.tiles {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 12px;
}
.tiles a {
  display: block; text-align: center; padding: 10px 4px;
  border: 1px solid var(--line); border-radius: 8px; background: #fff;
}
.tiles a:hover { border-color: var(--brand); text-decoration: none; }
.tiles img { display: block; margin: 0 auto 6px; width: 96px; height: 96px; }
.tiles span { display: block; font-size: 22px; color: var(--ink); }
.tiles em { display: block; font-style: normal; font-size: 12px; color: var(--muted); }

/* 简单列表网格 */
.grid { list-style: none; padding: 0; margin: 0; display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.grid li { font-size: 15px; }

.rel { list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 8px; }
.rel li { font-size: 17px; }

/* 搜索框 */
.search { display: flex; gap: 10px; margin: 18px 0 26px; flex-wrap: wrap; }
.search input {
  flex: 1 1 240px; font-size: 17px; padding: 10px 14px;
  border: 1px solid var(--line); border-radius: 8px; background: #fff;
}
.search button {
  font-size: 16px; padding: 10px 20px; border: 0; border-radius: 8px;
  background: var(--brand); color: #fff; cursor: pointer;
}

.foot {
  border-top: 1px solid var(--line); padding: 20px;
  color: var(--muted); font-size: 14px;
}

/* 页脚语言切换（同时是各语言版本的内链入口） */
.langs {
  margin: 10px 0 0; display: flex; flex-wrap: wrap; gap: 6px 14px;
}
.langs a { font-size: 13px; white-space: nowrap; }
.langs a.cur { color: var(--ink); font-weight: 500; text-decoration: underline; }

@media (max-width: 560px) {
  h1 { font-size: 23px; }
  .nav nav { gap: 12px; font-size: 14px; }
  .anim img { width: 160px; height: 160px; }
}
