:root {
  --bg: #fdf9fb;
  --bg-card: #ffffff;
  --text: #4a4458;
  --text-dim: #a89cb8;
  --line: #f0e6f3;
  --accent: #ffb3a7;
  --accent-deep: #ff9686;
  --accent-soft: #fff0ed;
  --shadow: 0 6px 20px rgba(190, 160, 200, 0.14);
  color-scheme: light;
}
[data-element="earth"] { --accent: #a8d5a0; --accent-deep: #8ec684; --accent-soft: #eef8ec; }
[data-element="air"]   { --accent: #b9aee8; --accent-deep: #a190dd; --accent-soft: #f2eefc; }
[data-element="water"] { --accent: #8fd0e8; --accent-deep: #6ebedb; --accent-soft: #ebf8fc; }

* { box-sizing: border-box; }

html, body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  line-height: 1.8;
}

body {
  position: relative;
  overflow-x: hidden;
}
body::before, body::after {
  content: "";
  position: fixed;
  border-radius: 50%;
  filter: blur(50px);
  z-index: -1;
  opacity: .55;
}
body::before {
  width: 320px; height: 320px;
  top: -80px; right: -60px;
  background: radial-gradient(circle, #ffd9e6, transparent 70%);
}
body::after {
  width: 360px; height: 360px;
  bottom: -100px; left: -80px;
  background: radial-gradient(circle, #d9ecff, transparent 70%);
}

a { color: inherit; }

.wrap {
  max-width: 680px;
  margin: 0 auto;
  padding-inline: 20px;
  padding-block: 40px 72px;
  position: relative;
}

.site-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding-bottom: 22px;
  margin-bottom: 34px;
}
.site-header .brand {
  font-weight: 700;
  font-size: 22px;
  text-decoration: none;
  color: var(--accent-deep);
  letter-spacing: .02em;
}
.site-header .tagline {
  font-family: "Quicksand", "PingFang SC", sans-serif;
  font-weight: 500;
  font-size: 12px;
  letter-spacing: .06em;
  color: var(--text-dim);
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 30px;
}
.filters select {
  font-family: "Quicksand", "PingFang SC", sans-serif;
  font-weight: 500;
  font-size: 13px;
  background-color: var(--bg-card);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 30px 8px 14px;
  box-shadow: var(--shadow);
  cursor: pointer;
  /* 原生 select 的宽度会按下拉列表里最长的选项预留，不管当前显示的文字多短，
     导致"全部维度"这种短文案的框比实际需要宽一大截、箭头被挤到很靠后。
     去掉原生外观自己画箭头，宽度就只取决于当前文字了。 */
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23a89cb8' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 13px center;
}
.filters a.clear {
  font-family: "Quicksand", "PingFang SC", sans-serif;
  font-weight: 600;
  font-size: 13px;
  color: var(--accent-deep);
  text-decoration: none;
  align-self: center;
}

.card-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.card {
  display: block;
  text-decoration: none;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 22px 24px;
  box-shadow: var(--shadow);
  transition: transform .15s ease, box-shadow .15s ease;
}
.card:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(190, 160, 200, 0.22); }
.card .meta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: "Quicksand", "PingFang SC", sans-serif;
  font-weight: 600;
  font-size: 11.5px;
  letter-spacing: .04em;
  color: var(--accent-deep);
  background: var(--accent-soft);
  border-radius: 999px;
  padding: 4px 12px;
  margin-bottom: 12px;
}
.card h2 {
  font-weight: 700;
  font-size: 18px;
  margin: 0 0 8px;
  color: var(--text);
  text-wrap: balance;
  letter-spacing: .01em;
}
.card p {
  margin: 0;
  color: var(--text-dim);
  font-size: 14.5px;
  line-height: 1.7;
}
.card .date {
  margin-top: 14px;
  font-family: "Quicksand", "PingFang SC", sans-serif;
  font-size: 11px;
  color: var(--text-dim);
}

.empty {
  color: var(--text-dim);
  font-family: "Quicksand", "PingFang SC", sans-serif;
  font-size: 14px;
  text-align: center;
  padding: 60px 0;
}

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 18px;
  margin-top: 40px;
  font-family: "Quicksand", "PingFang SC", sans-serif;
  font-weight: 600;
  font-size: 13px;
}
.pagination a { color: var(--accent-deep); text-decoration: none; }
.pagination .disabled { color: var(--text-dim); opacity: .5; }
.pagination .current { color: var(--text-dim); }

/* article detail */
.back-link {
  display: inline-block;
  margin-bottom: 30px;
  font-family: "Quicksand", "PingFang SC", sans-serif;
  font-weight: 600;
  font-size: 12.5px;
  letter-spacing: .03em;
  color: var(--accent-deep);
  text-decoration: none;
}

.eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: "Quicksand", "PingFang SC", sans-serif;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 26px;
}
.eyebrow .dot { color: var(--accent-deep); }

.chart-wrap {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
  padding: 18px 10px 8px;
  margin: 0 0 30px;
}
.chart { display: block; margin: 0 auto; }
.chart .link { stroke: var(--accent); stroke-width: 1.4; opacity: .7; }
.chart .star { fill: var(--accent-deep); }
.chart .star.bright { fill: var(--accent-deep); }
.chart text {
  font-family: "Quicksand", "PingFang SC", sans-serif;
  font-weight: 500;
  font-size: 8.5px;
  fill: var(--text-dim);
  letter-spacing: .02em;
}

.article-title {
  font-weight: 700;
  font-size: clamp(23px, 5vw, 30px);
  line-height: 1.5;
  letter-spacing: .01em;
  text-align: center;
  text-wrap: balance;
  margin: 0 0 26px;
  color: var(--text);
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 0 0 40px;
}
.meta-chip {
  font-family: "Quicksand", "PingFang SC", sans-serif;
  font-weight: 500;
  font-size: 12px;
  letter-spacing: .02em;
  background: var(--accent-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 14px;
  white-space: nowrap;
  color: var(--text);
}
.meta-chip b { color: var(--accent-deep); font-weight: 700; }

.rule {
  border: none;
  text-align: center;
  margin: 0 0 40px;
  color: var(--accent);
  font-size: 14px;
  letter-spacing: .3em;
}
.rule::after { content: "✦ ✧ ✦"; }

.wechat-toolbar {
  background: var(--accent-soft);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px 20px;
  margin-bottom: 36px;
}
.wechat-copy-btn {
  font-family: "Quicksand", "PingFang SC", sans-serif;
  font-weight: 700;
  font-size: 14px;
  color: #fff;
  background: var(--accent-deep);
  border: none;
  border-radius: 999px;
  padding: 10px 20px;
  cursor: pointer;
}
.wechat-hint {
  margin: 12px 0 0;
  color: var(--text-dim);
  font-size: 12.5px;
  line-height: 1.7;
}

.wechat-divider {
  text-align: center;
  color: var(--accent);
  font-size: 14px;
  letter-spacing: .3em;
  margin: 0 0 40px;
}

.article-body h2 {
  font-weight: 700;
  font-size: 19px;
  color: var(--accent-deep);
  margin: 42px 0 14px;
  letter-spacing: .01em;
}
.article-body p { margin: 0 0 18px; max-width: 64ch; }
.article-body ul { margin: 0 0 18px; padding-left: 0; list-style: none; }
.article-body li { position: relative; padding-left: 24px; margin-bottom: 14px; max-width: 62ch; }
.article-body li::before { content: "✿"; position: absolute; left: 0; top: 1px; color: var(--accent); font-size: 13px; }
.article-body li b { color: var(--accent-deep); font-weight: 700; }

.article-body .tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 30px; }
.article-body .tag {
  font-family: "Quicksand", "PingFang SC", sans-serif;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .02em;
  background: var(--accent-soft);
  border: 1px solid var(--line);
  color: var(--accent-deep);
  border-radius: 999px;
  padding: 6px 16px;
}

.article-body .punch {
  margin: 0 0 18px;
  padding: 14px 20px;
  border-left: 3px solid var(--accent-deep);
  background: var(--accent-soft);
  border-radius: 0 14px 14px 0;
  font-weight: 700;
  font-size: 15.5px;
  max-width: 62ch;
}

.article-body .share-hook {
  margin-top: 16px;
  text-align: center;
  font-size: 13px;
  color: var(--text-dim);
}

.closing {
  margin-top: 48px;
  padding: 26px 28px;
  background: var(--accent-soft);
  border-radius: 20px;
  text-align: center;
}
.closing p {
  margin: 0;
  font-weight: 600;
  font-size: 16px;
  line-height: 1.85;
  color: var(--text);
}

.site-footer, .article-footer {
  margin-top: 60px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  font-family: "Quicksand", "PingFang SC", sans-serif;
  font-weight: 500;
  font-size: 11px;
  letter-spacing: .04em;
  color: var(--text-dim);
}

@media (max-width: 420px) {
  .wrap { padding-block: 30px 56px; }
  .article-title { font-size: 24px; }
  .meta-chip { font-size: 11px; padding: 6px 12px; }
}
