/* ================= Reset ================= */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  line-height: 1.6;
}

body {
  margin: 0;
  background-color: #fdfdfb;
  color: #333;
}

/* ================= Layout ================= */
.layout-container {
  min-height: 100vh;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
}

/* 桌面端两栏布局 */
@media (min-width: 1024px) {
  .layout-container {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    column-gap: 3rem;

    max-width: 1200px;
    margin: 0 auto;
    padding: 2.5rem 2rem;
  }
}

/* ================= Main Content ================= */
.main-content {
  flex: 1;
}

@media (min-width: 1024px) {
  .main-content {
    max-width: 720px;
  }
}

.section-title {
  font-size: 1.1rem;
  margin-bottom: 1.4rem;
  position: relative;
}

.section-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.4rem;
  width: 100%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    currentColor 40%,
    currentColor 60%,
    transparent
  );
  opacity: 0.5;
}

.loading-text {
  text-align: center;
  color: #777;
  font-style: italic;
}

/* ================= Side Column ================= */
.side-column {
  display: flex;
}

/* 整个右侧栏在列中居中 */
@media (min-width: 1024px) {
  .side-column {
    justify-content: center;
  }
}

/* 右侧栏内部宽度 + 右对齐 */
.side-inner {
  width: 100%;
  max-width: 320px;
  margin-top: 6rem;
  text-align: right;
}

/* ================= Header ================= */
.site-title {
  font-size: 2rem;
  margin: 0 0 0.4rem;
  font-weight: bold;
}

.site-subtitle {
  font-size: 1.2rem;
  letter-spacing: 0.35em;
  color: #555;
  margin: 0 0 0.6rem;
}

.subtitle-description {
  font-size: 0.9rem;
  color: #666;
}

/* ================= Text Blocks ================= */
.virtue-text {
  margin: 1.8rem 0;
  font-size: 0.9rem;
  font-family: "Times New Roman", serif;
}

.site-intro {
  font-size: 0.85rem;
  color: #777;
  line-height: 1.7;
  margin-bottom: 2rem;
}

/* ================= Footer ================= */
.footer {
  font-size: 0.75rem;
}

.footer-content {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.footer a {
  color: inherit;
  text-decoration: none;
}

.footer a:hover {
  text-decoration: underline;
}

.footer-links span {
  opacity: 0.4;
  padding: 0 0.25rem;
}

/* 备案信息：严格同一行 */
.footer-records {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 0.8rem;

  white-space: nowrap;
  flex-wrap: nowrap;
}

.footer-record {
  display: inline-flex;
}

.police-record a {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.police-record img {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}
