:root {
  --bg: #f5f6f7;
  --surface: #ffffff;
  --surface-soft: #fafafa;
  --surface-tint: #fdf3f4;
  --ink: #212226;
  --ink-soft: #4a4f57;
  --muted: #666b73;
  --line: #ebecef;
  --line-soft: #f3f4f6;
  --band: #edced4;
  --band-ink: #3b2f31;
  --brand: #ff7790;
  --brand-soft: #ffd9e0;
  --brand-ink: #c22f4b;
  --brand-wash: #fff2f4;
  --accent: #ff3355;
  --radius: 4px;
  --radius-sm: 3px;
  --wrap: 1200px;
  --face-a: #f7e4e8;
  --face-b: #fdf7f8;
  --ink-strong: #241c1e;
  --ink-deep: #4b3d40;
  --band-ink-soft: #4d3f42;
  --rose-line: #f0ccd3;
  --rose-deep-text: #8c3e4c;
  --rose-mid: #a8505f;
  --rose-dark: #7a3947;
  --rose-btn: #a92740;
  --chip-bg: #f6f7f8;
  --border-lift: #f3dfe3;
  --rule-wash: #fff8f9;
  --rule-line: #f5dbe0;
  --plate-1: #f6dfe3;
  --plate-2: #f9ebed;
  --plate-3: #fdf6f7;
  --overlay: rgba(255, 255, 255, 0.72);
  --shadow: 0 0 2px rgba(98, 124, 153, 0.14);
  --shadow-lift: 0 4px 14px rgba(98, 124, 153, 0.12);
  --font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Source Han Sans SC", "Noto Sans CJK SC", sans-serif;
  --cta-fill: #8d2b3c;
  --cta-edge: #f0d3d9;
  --cta-elevation: 0 3px 10px rgba(0, 0, 0, 0.14);
  --cta-rail: #fff1f4;
  --cta-sheen: var(--rule-wash);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.75;
  overflow-wrap: anywhere;
}

h1 {
  font-size: 27px;
  line-height: 1.4;
  margin: 0;
  font-weight: 700;
}

h2 {
  font-size: 20px;
  line-height: 1.5;
  margin: 0;
  font-weight: 600;
}

h3 {
  font-size: 17px;
  line-height: 1.55;
  margin: 0;
  font-weight: 600;
}

p {
  margin: 0;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--ink-soft);
  text-decoration: none;
}

a:hover {
  color: var(--brand-ink);
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--brand-ink);
  outline-offset: 2px;
}

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.wrap {
  width: var(--wrap);
  max-width: calc(100% - 32px);
  margin: 0 auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- top strip ---------- */

.topstrip {
  background: var(--band);
  color: var(--band-ink);
}

.topstrip-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 56px;
  flex-wrap: wrap;
}

.strip-menu {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
  font-size: 15px;
}

.strip-menu a {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 4px 12px;
  color: var(--band-ink);
  border-radius: var(--radius-sm);
}

.strip-menu a:hover,
.strip-menu a[aria-current="page"] {
  background: rgba(255, 255, 255, 0.55);
  color: #1c1618;
}

.strip-note {
  font-size: 13px;
  letter-spacing: 0.02em;
  color: var(--band-ink);
  opacity: 0.85;
}

/* ---------- masthead ---------- */

.masthead {
  background: var(--surface);
  box-shadow: var(--shadow);
  position: relative;
  z-index: 20;
}

.masthead-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 12px 0;
  flex-wrap: wrap;
}

.logo {
  display: block;
}

.logo img {
  width: 167px;
  height: 44px;
}

.head-tools {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.head-search {
  display: flex;
  width: 268px;
  max-width: 100%;
  border: 1px solid var(--line);
  background: var(--surface-soft);
  border-radius: var(--radius);
  overflow: hidden;
}

.head-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  padding: 7px 11px;
  font: inherit;
  font-size: 14px;
  color: var(--ink);
}

.head-search button {
  border: 0;
  background: var(--brand-ink);
  color: #fff;
  font: inherit;
  font-size: 14px;
  padding: 0 14px;
  cursor: pointer;
}

.head-search button:hover {
  background: var(--rose-btn);
}

.head-link {
  display: inline-block;
  border: 1px solid var(--brand-soft);
  color: var(--brand-ink);
  background: #fff;
  font-size: 14px;
  line-height: 1.6;
  padding: 6px 14px;
  border-radius: var(--radius);
}

.head-link:hover {
  background: var(--brand-wash);
  text-decoration: none;
}

/* ---------- tab bar ---------- */

.tabbar {
  background: var(--surface);
  border-top: 1px solid var(--line);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 30;
}

.tabbar-in {
  display: flex;
  overflow-x: auto;
  scrollbar-width: none;
}

.tabbar-in::-webkit-scrollbar {
  display: none;
}

.tabbar ul {
  display: flex;
  min-width: max-content;
}

.tabbar a {
  display: block;
  padding: 0 22px;
  line-height: 50px;
  font-size: 16px;
  color: var(--ink-soft);
  border-bottom: 2px solid transparent;
}

.tabbar a:hover,
.tabbar a[aria-current="page"] {
  color: var(--brand-ink);
  border-bottom-color: var(--brand);
  text-decoration: none;
}

/* ---------- page frame ---------- */

.main {
  padding: 18px 0 28px;
}

.page-cols {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
}

.page-cols.with-rail {
  grid-template-columns: minmax(0, 1fr) 300px;
  align-items: start;
}

/* ---------- hero plate ---------- */

.plate {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: linear-gradient(120deg, var(--plate-1) 0%, var(--plate-2) 46%, var(--plate-3) 100%);
  border: 1px solid var(--line);
  padding: 44px 48px 40px;
  min-height: 300px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 26px;
}

.plate::after {
  content: "";
  position: absolute;
  right: -90px;
  bottom: -120px;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(255, 119, 144, 0.28), rgba(255, 119, 144, 0));
  pointer-events: none;
}

.plate-kicker {
  font-size: 13px;
  letter-spacing: 0.12em;
  color: var(--brand-ink);
  text-transform: uppercase;
}

.plate-title {
  font-size: 34px;
  line-height: 1.32;
  font-weight: 700;
  color: var(--ink-strong);
  max-width: 15em;
  margin: 10px 0 12px;
}

.plate-text {
  font-size: 17px;
  line-height: 1.8;
  color: var(--ink-deep);
  max-width: 34em;
}

.plate-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  position: relative;
  z-index: 1;
}

.plate-tags span {
  font-size: 13px;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--overlay);
  border: 1px solid var(--rose-line);
  color: var(--rose-deep-text);
}

/* ---------- notice ---------- */

.notice {
  margin-top: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px 20px;
}

.notice h2 {
  font-size: 16px;
  color: var(--brand-ink);
  margin-bottom: 8px;
}

.notice ul {
  display: grid;
  gap: 4px;
  font-size: 15px;
  line-height: 1.8;
  color: var(--ink);
}

.notice li {
  padding-left: 16px;
  position: relative;
}

.notice li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.72em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand);
}

/* ---------- modules and card grid ---------- */

.module {
  margin-top: 22px;
}

.module-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.module-title {
  font-size: 22px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
}

.module-title::after {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--brand);
  border-radius: 2px;
}

.module-more {
  font-size: 14px;
  color: var(--muted);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}

.card-grid.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.post-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.18s ease, border-color 0.18s ease;
}

.post-card:hover {
  box-shadow: var(--shadow-lift);
  border-color: var(--border-lift);
}

.thumb {
  display: block;
  position: relative;
  padding-top: 70%;
  background: linear-gradient(150deg, var(--face-a), var(--face-b));
  border-bottom: 1px solid var(--line-soft);
}

.thumb-face {
  position: absolute;
  inset: 0;
  padding: 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.face-cat {
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--rose-mid);
  background: rgba(255, 255, 255, 0.7);
  border-radius: 999px;
  padding: 2px 10px;
  align-self: flex-start;
}

.face-word {
  font-size: 18px;
  line-height: 1.35;
  font-weight: 600;
  color: var(--rose-dark);
  word-break: break-word;
}

.card-body {
  padding: 10px 12px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.card-body h3 {
  font-size: 16px;
  font-weight: 500;
  line-height: 1.55;
}

.card-body h3 a {
  color: var(--ink);
}

.card-body h3 a:hover {
  color: var(--brand-ink);
}

.card-excerpt {
  font-size: 13px;
  line-height: 1.65;
  color: var(--muted);
}

/* ---------- column cards on home ---------- */

.column-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.column-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.column-card h3 {
  font-size: 18px;
}

.column-card h3 a {
  color: var(--ink);
}

.column-card p {
  font-size: 14px;
  line-height: 1.75;
  color: var(--muted);
}

.column-meta {
  font-size: 13px;
  color: var(--rose-mid);
}

/* ---------- tag strip ---------- */

.tagstrip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 14px 16px;
}

.tagstrip a {
  font-size: 14px;
  padding: 4px 12px;
  border-radius: var(--radius-sm);
  background: var(--surface-soft);
  border: 1px solid var(--line);
  color: var(--ink-soft);
}

.tagstrip a:hover {
  background: var(--brand-wash);
  border-color: var(--brand-soft);
  color: var(--brand-ink);
  text-decoration: none;
}

.tagstrip a span {
  font-size: 12px;
  color: var(--muted);
  margin-left: 5px;
}

/* ---------- tax band (category header) ---------- */

.tax-band {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px 20px;
  display: grid;
  gap: 14px;
}

.tax-info {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.tax-info h1 {
  font-size: 26px;
}

.tax-info .kicker {
  display: block;
  font-size: 13px;
  color: var(--brand-ink);
  margin-bottom: 4px;
}

.tax-count {
  font-size: 13px;
  color: var(--muted);
  white-space: nowrap;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.chips .chip-label {
  font-size: 13px;
  color: var(--muted);
}

.chip {
  font: inherit;
  font-size: 13px;
  line-height: 1.7;
  padding: 3px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  background: var(--chip-bg);
  color: var(--ink-soft);
  cursor: pointer;
}

.chip:hover {
  border-color: #ddd;
}

.chip.is-on {
  background: var(--brand-wash);
  border-color: var(--brand-soft);
  color: var(--brand-ink);
}

.intro-box {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px 20px;
  display: grid;
  gap: 10px;
}

.intro-box p {
  font-size: 16px;
  line-height: 1.85;
  color: var(--ink);
}

/* ---------- entry list ---------- */

.entry-list {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.entry {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 18px;
  padding: 16px;
  border-bottom: 1px solid var(--line-soft);
}

.entry:last-child {
  border-bottom: 0;
}

.entry:hover {
  background: var(--surface-soft);
}

.entry-thumb {
  position: relative;
  padding-top: 62%;
  border-radius: var(--radius-sm);
  background: linear-gradient(150deg, var(--face-a), var(--face-b));
  border: 1px solid var(--line-soft);
  overflow: hidden;
}

.entry-thumb span {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 600;
  color: var(--rose-dark);
  padding: 10px;
  text-align: center;
}

.entry-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.entry-cat {
  font-size: 12px;
  color: var(--rose-mid);
}

.entry-body h2 {
  font-size: 18px;
  font-weight: 500;
  line-height: 1.55;
}

.entry-body h2 a {
  color: var(--ink);
}

.entry-body h2 a:hover {
  color: var(--brand-ink);
}

.entry-excerpt {
  font-size: 14px;
  line-height: 1.75;
  color: var(--muted);
}

.entry-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag {
  font-size: 12px;
  line-height: 1.6;
  color: var(--ink-soft);
  background: var(--chip-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 1px 8px;
}

a.tag:hover {
  color: var(--brand-ink);
  border-color: var(--brand-soft);
  background: var(--brand-wash);
  text-decoration: none;
}

.empty-note {
  padding: 18px 20px;
  font-size: 15px;
  color: var(--muted);
}

/* ---------- rail widgets ---------- */

.rail {
  display: grid;
  gap: 16px;
  min-width: 0;
}

.widget {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 14px 16px 16px;
}

.widget h2 {
  font-size: 16px;
  padding-bottom: 8px;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.widget ul {
  display: grid;
  gap: 6px;
  font-size: 14px;
  line-height: 1.7;
}

.widget li a {
  color: var(--ink-soft);
}

.widget p {
  font-size: 14px;
  line-height: 1.8;
  color: var(--muted);
}

/* ---------- article ---------- */

.crumb {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 12px;
  line-height: 1.7;
}

.crumb a {
  color: var(--muted);
}

.crumb .sep {
  margin: 0 6px;
}

.article-box {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 26px 30px 30px;
}

.article-box h1 {
  font-size: 28px;
  line-height: 1.45;
  margin-bottom: 10px;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding-bottom: 12px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
}

.article-meta .col-link {
  color: var(--brand-ink);
}

.article-body {
  display: grid;
  gap: 14px;
}

.article-body p {
  font-size: 16px;
  line-height: 1.9;
  color: var(--ink);
}

.lead-line {
  font-size: 17px;
  line-height: 1.85;
  color: #4a3a3d;
  background: var(--brand-wash);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
}

.rule-box {
  margin-top: 20px;
  background: var(--rule-wash);
  border: 1px solid var(--rule-line);
  border-radius: var(--radius);
  padding: 14px 16px;
}

.rule-box h2 {
  font-size: 15px;
  color: var(--brand-ink);
  margin-bottom: 6px;
}

.rule-box ul {
  display: grid;
  gap: 3px;
  font-size: 14px;
  line-height: 1.8;
}

.related {
  margin-top: 22px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.related h2 {
  font-size: 17px;
  margin-bottom: 10px;
}

.related ul {
  display: grid;
  gap: 8px;
}

.related li {
  font-size: 15px;
  line-height: 1.7;
}

.related .rel-col {
  font-size: 13px;
  color: var(--muted);
}

/* ---------- plain page and search ---------- */

.plain {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px 28px;
  display: grid;
  gap: 12px;
}

.plain h1 {
  font-size: 26px;
}

.plain p {
  font-size: 16px;
  line-height: 1.9;
}

.search-form {
  display: flex;
  max-width: 460px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface-soft);
}

.search-form input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  padding: 9px 12px;
  font: inherit;
  font-size: 15px;
}

.search-form button {
  border: 0;
  background: var(--brand-ink);
  color: #fff;
  font: inherit;
  font-size: 15px;
  padding: 0 18px;
  cursor: pointer;
}

.search-status {
  font-size: 14px;
  color: var(--muted);
}

.search-results {
  display: grid;
  gap: 0;
}

.search-results li {
  padding: 12px 0;
  border-bottom: 1px dashed var(--line);
}

.search-results li:last-child {
  border-bottom: 0;
}

.search-results a {
  font-size: 16px;
  color: var(--ink);
}

.search-results span {
  display: block;
  margin-top: 2px;
  font-size: 13px;
  color: var(--muted);
}

/* ---------- footer ---------- */

.site-foot {
  margin-top: 26px;
  background: var(--band);
  color: var(--band-ink);
}

.foot-widgets {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
  gap: 24px;
  padding: 26px 0;
}

.foot-brand a {
  font-size: 19px;
  font-weight: 700;
  color: var(--ink-strong);
}

.foot-brand p {
  margin-top: 6px;
  font-size: 13px;
  line-height: 1.8;
  color: var(--band-ink-soft);
  max-width: 30em;
}

.foot-col h2 {
  font-size: 15px;
  margin-bottom: 8px;
  color: var(--ink-strong);
}

.foot-col ul {
  display: grid;
  gap: 4px;
  font-size: 13px;
}

.foot-col a {
  color: var(--band-ink-soft);
}

.foot-col a:hover {
  color: #1c1618;
}

.foot-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.5);
  padding: 12px 0 56px;
  font-size: 12px;
  color: var(--band-ink-soft);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

/* ---------- responsive ---------- */

@media (max-width: 1080px) {
  .card-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .page-cols.with-rail {
    grid-template-columns: minmax(0, 1fr);
  }

  .rail {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .card-grid,
  .card-grid.four {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .column-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .foot-widgets {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .plate {
    padding: 34px 28px 30px;
    min-height: 260px;
  }

  .plate-title {
    font-size: 27px;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 16px;
  }

  .wrap {
    max-width: calc(100% - 20px);
  }

  .card-grid,
  .card-grid.four {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .column-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .entry {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }

  .entry-thumb {
    padding-top: 42%;
  }

  .rail {
    grid-template-columns: minmax(0, 1fr);
  }

  .article-box {
    padding: 20px 18px 24px;
  }

  .article-box h1 {
    font-size: 23px;
  }

  .plate {
    padding: 26px 20px 24px;
    min-height: 0;
    gap: 18px;
  }

  .plate-title {
    font-size: 23px;
  }

  .foot-widgets {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }

  .masthead-in {
    gap: 10px;
  }

  .logo img {
    width: 140px;
    height: 37px;
  }

  .head-search {
    width: 100%;
  }

  .tax-info h1 {
    font-size: 22px;
  }
}
