/* 基层社区公示栏：墙面米色、木色顶栏、印章红、墨色、纸白 */
:root {
  --wall: #E8DCC8;
  --wood: #6B3E26;
  --wood-mid: #8B5340;
  --stamp: #B91C1C;
  --ink: #1F2937;
  --paper: #FFFBF3;
  --paper-edge: #F4E6CF;
  --line: #C9B8A0;
  --muted: #4B5563;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  min-height: 100%;
}

body {
  font-family: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", sans-serif;
  color: var(--ink);
  background: var(--wall);
  line-height: 1.8;
  font-size: 16px;
}

img,
svg {
  display: inline-block;
  vertical-align: middle;
}

a {
  color: var(--stamp);
  text-decoration: underline;
}

a:hover {
  color: var(--wood);
}

.top-ribbon {
  height: 8px;
  background: var(--stamp);
}

.brand-bar {
  background: var(--wood);
  color: var(--paper);
  border-bottom: 3px solid #4A2A18;
}

.brand-bar .wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 12px 16px 14px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
}

.brand-bar h2,
.brand-bar .brand-name {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.brand-bar p {
  font-size: 13px;
  opacity: 0.92;
  margin-top: 2px;
}

.site-nav {
  background: var(--stamp);
  border-bottom: 2px solid #7F1212;
}

.site-nav .wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 0;
}

.site-nav a {
  color: #fff;
  text-decoration: none;
  padding: 10px 18px;
  font-weight: 700;
  letter-spacing: 0.04em;
  border-right: 1px solid rgba(255, 255, 255, 0.22);
}

.site-nav a:hover {
  background: #9F1515;
  color: #fff;
}

.site-nav a.is-on {
  background: #fff;
  color: var(--stamp);
}

.wall {
  background-color: var(--wall);
  background-image:
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 46px,
      rgba(107, 62, 38, 0.045) 47px
    ),
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 46px,
      rgba(107, 62, 38, 0.045) 47px
    );
  padding-bottom: 40px;
}

.board {
  max-width: 1120px;
  margin: 0 auto;
  padding: 26px 16px 8px;
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(250px, 0.86fr);
  gap: 20px;
  align-items: start;
}

.col-main,
.col-side {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.notice {
  background: var(--paper);
  border: 2px solid var(--stamp);
  position: relative;
  padding: 30px 22px 22px;
  box-shadow: 4px 5px 0 rgba(107, 62, 38, 0.1);
}

.notice--hero {
  padding-top: 34px;
}

.notice-tag {
  position: absolute;
  top: -11px;
  left: 14px;
  background: var(--stamp);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 2px 10px;
  letter-spacing: 0.08em;
  line-height: 1.5;
}

.pin {
  position: absolute;
  top: -8px;
  right: 16px;
  width: 18px;
  height: 22px;
}

h1 {
  font-size: 26px;
  line-height: 1.35;
  margin: 4px 0 12px;
  color: var(--wood);
}

.notice h2 {
  font-size: 20px;
  color: var(--wood);
  margin: 0 0 10px;
  padding-bottom: 6px;
  border-bottom: 1px dashed var(--line);
}

.notice h3 {
  font-size: 17px;
  color: var(--stamp);
  margin: 14px 0 6px;
}

.notice p,
.notice li {
  color: var(--ink);
  margin-bottom: 10px;
}

.notice li {
  margin-left: 1.2em;
}

.kicker {
  font-size: 13px;
  color: var(--stamp);
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}

.meta-line {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 2px solid var(--stamp);
  background: var(--stamp);
  color: #fff;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  padding: 10px 18px;
  cursor: pointer;
  line-height: 1.3;
}

.btn:hover {
  background: #8F1414;
  border-color: #8F1414;
}

.btn--wood {
  background: var(--wood);
  border-color: var(--wood);
}

.btn--wood:hover {
  background: #542F1C;
  border-color: #542F1C;
}

.btn--ghost {
  background: var(--paper);
  color: var(--stamp);
}

.btn--ghost:hover {
  background: #F8E8E8;
  color: var(--stamp);
}

.btn[disabled] {
  cursor: wait;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 12px 0 4px;
}

.cta-block {
  border: 2px solid var(--stamp);
  background: #FFF4E8;
  padding: 14px 14px 10px;
  margin: 16px 0 8px;
  text-align: center;
}

.cta-block .btn {
  min-width: 220px;
}

.clip {
  background: var(--paper);
  border: 2px solid var(--wood);
  padding: 16px 16px 12px;
  position: relative;
  box-shadow: 3px 4px 0 rgba(107, 62, 38, 0.08);
}

.clip::before {
  content: "";
  position: absolute;
  top: -8px;
  left: 50%;
  width: 54px;
  height: 14px;
  margin-left: -27px;
  background: #C4C4C4;
  border: 1px solid #8A8A8A;
  border-radius: 2px;
}

.clip h2,
.clip h3 {
  font-size: 16px;
  color: var(--wood);
  margin-bottom: 8px;
}

.clip p,
.clip li {
  font-size: 14px;
  margin-bottom: 8px;
}

.clip li {
  margin-left: 1.1em;
}

.cap-list {
  list-style: none;
  margin: 8px 0 0;
}

.cap-list li {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 10px;
  margin: 0 0 14px;
  padding: 0 0 12px;
  border-bottom: 1px dashed var(--line);
}

.cap-list li:last-child {
  border-bottom: 0;
  margin-bottom: 0;
  padding-bottom: 0;
}

.cap-no {
  width: 48px;
  height: 48px;
  border: 2px solid var(--stamp);
  color: var(--stamp);
  font-weight: 700;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #FFF7F0;
}

.bar-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 8px;
}

.plat-bar {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  border: 1px solid var(--stamp);
  background: #FFF8EE;
  padding: 10px 12px;
}

.plat-bar h3 {
  margin: 0;
  font-size: 16px;
  color: var(--wood);
}

.plat-bar p {
  margin: 2px 0 0;
  font-size: 13px;
}

.deep-article h3 {
  margin-top: 16px;
}

.stamp-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 8px;
}

.stamp-num {
  border: 3px double var(--stamp);
  border-radius: 50%;
  width: 100%;
  max-width: 132px;
  aspect-ratio: 1;
  margin: 0 auto 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--stamp);
  background: #FFF8F4;
  text-align: center;
  padding: 8px;
}

.stamp-num strong {
  font-size: 26px;
  line-height: 1.1;
}

.stamp-num span {
  font-size: 12px;
  font-weight: 700;
}

.stamp-card p {
  font-size: 13px;
  text-align: center;
  margin: 0;
}

.compare {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  margin-top: 8px;
}

.compare th,
.compare td {
  border: 1px solid #D7C4A8;
  padding: 8px 10px;
  text-align: left;
  vertical-align: top;
}

.compare th {
  background: #F8E8D8;
  color: var(--wood);
}

.compare td:first-child,
.compare th:first-child {
  font-weight: 700;
  white-space: nowrap;
}

.letter {
  border-left: 4px solid var(--wood);
  background: #FFF8EE;
  padding: 10px 12px 4px;
  margin-bottom: 12px;
}

.letter h3 {
  margin-top: 0;
  color: var(--wood);
}

.faq-item {
  border-top: 1px dashed var(--line);
  padding: 10px 0 4px;
}

.faq-item:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.check-list {
  list-style: none;
  margin: 8px 0 12px;
}

.check-list li {
  margin: 0 0 8px;
  padding-left: 28px;
  position: relative;
}

.check-list svg {
  position: absolute;
  left: 0;
  top: 4px;
}

.step-ol {
  margin: 6px 0 12px 1.2em;
}

.step-ol li {
  margin-bottom: 8px;
}

.req-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  margin: 8px 0 12px;
}

.req-table th,
.req-table td {
  border: 1px solid #D7C4A8;
  padding: 7px 9px;
  text-align: left;
}

.req-table th {
  background: #F8E8D8;
  color: var(--wood);
}

.site-foot {
  background: var(--wood);
  color: var(--paper);
  padding: 22px 16px 28px;
  border-top: 6px solid var(--stamp);
}

.site-foot .wrap {
  max-width: 1120px;
  margin: 0 auto;
}

.site-foot p {
  font-size: 13px;
  margin-bottom: 8px;
  line-height: 1.7;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 860px) {
  .board {
    grid-template-columns: 1fr;
  }

  .stamp-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .plat-bar {
    grid-template-columns: 36px minmax(0, 1fr);
  }

  .plat-bar .btn {
    grid-column: 1 / -1;
    width: 100%;
  }

  h1 {
    font-size: 22px;
  }
}

@media (max-width: 520px) {
  .site-nav a {
    flex: 1 1 auto;
    text-align: center;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  }

  .stamp-row {
    grid-template-columns: 1fr;
  }

  .cap-list li {
    grid-template-columns: 44px minmax(0, 1fr);
  }

  .compare,
  .req-table {
    display: block;
    overflow-x: auto;
  }
}
