/* =========================================================
   PharmaCare · 医药行业 Halo 主题
   ========================================================= */

:root {
  --pc-primary: #0b63b0;
  --pc-primary-dark: #084a83;
  --pc-primary-dark: color-mix(in srgb, var(--pc-primary) 78%, #001c38);
  --pc-primary-light: #e8f1fa;
  --pc-primary-light: color-mix(in srgb, var(--pc-primary) 9%, #ffffff);
  --pc-accent: #0e9f8a;
  --pc-ink: #16233b;
  --pc-muted: #5d6d85;
  --pc-bg: #f4f8fc;
  --pc-card: #ffffff;
  --pc-border: #e2eaf3;
  --pc-radius: 14px;
  --pc-radius-sm: 10px;
  --pc-shadow: 0 12px 32px rgba(15, 55, 105, 0.09);
  --pc-shadow-sm: 0 4px 14px rgba(15, 55, 105, 0.07);
  --pc-font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--pc-font);
  font-size: 16px;
  line-height: 1.7;
  color: var(--pc-ink);
  background: var(--pc-bg);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--pc-primary);
  text-decoration: none;
}

a:hover {
  color: var(--pc-primary-dark);
}

h1, h2, h3, h4 {
  line-height: 1.3;
  margin: 0 0 0.5em;
}

p {
  margin: 0 0 1em;
}

ul, ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

button {
  font-family: inherit;
}

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------------- 按钮 ---------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  cursor: pointer;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  padding: 10px 24px;
  line-height: 1.4;
  transition: all 0.2s ease;
}

.btn svg {
  width: 17px;
  height: 17px;
}

.btn-lg {
  padding: 14px 30px;
  font-size: 16px;
}

.btn-sm {
  padding: 7px 16px;
  font-size: 14px;
}

.btn-primary {
  background: var(--pc-primary);
  color: #fff;
  box-shadow: 0 6px 16px rgba(11, 99, 176, 0.28);
}

.btn-primary:hover {
  background: var(--pc-primary-dark);
  color: #fff;
  transform: translateY(-1px);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.45);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
}

.btn-light {
  background: #fff;
  color: var(--pc-primary);
}

.btn-light:hover {
  color: var(--pc-primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
}

.btn-outline {
  border: 1.5px solid var(--pc-primary);
  color: var(--pc-primary);
  background: transparent;
}

.btn-outline:hover {
  background: var(--pc-primary);
  color: #fff;
}

/* ---------------- 顶栏 ---------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
}

.topbar {
  background: var(--pc-primary-dark);
  color: rgba(255, 255, 255, 0.85);
  font-size: 13px;
  transition: margin-top 0.25s ease;
}

.site-header.is-scrolled .topbar {
  margin-top: -38px;
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 38px;
}

.topbar-contact {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.topbar-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.topbar-item svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.topbar-slogan {
  opacity: 0.8;
}

/* ---------------- 导航 ---------------- */

.navbar {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--pc-border);
  transition: box-shadow 0.2s ease;
}

.site-header.is-scrolled .navbar {
  box-shadow: var(--pc-shadow-sm);
}

.navbar-inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 66px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  flex-shrink: 0;
}

.logo-mark {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--pc-primary);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.logo-mark svg {
  width: 18px;
  height: 18px;
}

.logo-img {
  max-height: 36px;
  width: auto;
}

.logo-title {
  font-size: 18px;
  color: var(--pc-ink);
}

.nav {
  margin-left: auto;
}

.menu {
  display: flex;
  align-items: center;
  gap: 4px;
}

.menu-item {
  position: relative;
}

.menu-item > a {
  display: block;
  padding: 10px 14px;
  color: var(--pc-ink);
  font-weight: 500;
  border-radius: 8px;
  white-space: nowrap;
}

.menu-item > a:hover {
  color: var(--pc-primary);
  background: var(--pc-primary-light);
}

.menu .menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 180px;
  flex-direction: column;
  align-items: stretch;
  background: #fff;
  border: 1px solid var(--pc-border);
  border-radius: 12px;
  box-shadow: var(--pc-shadow);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: all 0.18s ease;
}

.menu-item:hover > .menu {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.menu .menu .menu-item > a {
  padding: 9px 12px;
  font-size: 14.5px;
  white-space: normal;
}

.nav-cta {
  flex-shrink: 0;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
}

.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--pc-ink);
  border-radius: 2px;
  transition: all 0.2s ease;
}

body.nav-open .nav-toggle span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

body.nav-open .nav-toggle span:nth-child(2) {
  opacity: 0;
}

body.nav-open .nav-toggle span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* ---------------- 首页横幅 ---------------- */

.hero {
  position: relative;
  color: #fff;
  background: linear-gradient(130deg, #072f5c 0%, var(--pc-primary) 62%, var(--pc-accent) 145%);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.16) 1px, transparent 1.5px);
  background-size: 26px 26px;
  opacity: 0.5;
  pointer-events: none;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.22;
}

.hero-deco {
  position: absolute;
  right: -30px;
  top: 50%;
  transform: translateY(-50%);
  width: min(460px, 44vw);
  color: #fff;
  opacity: 0.26;
  pointer-events: none;
}

.hero-deco svg {
  width: 100%;
  height: auto;
}

.hero-inner {
  position: relative;
  padding: 108px 20px 118px;
}

.hero-eyebrow {
  letter-spacing: 0.35em;
  font-size: 12.5px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 14px;
}

.hero-title {
  font-size: clamp(1.9rem, 4.2vw, 3.1rem);
  letter-spacing: 0.01em;
  margin-bottom: 18px;
}

.hero-sub {
  font-size: clamp(0.98rem, 1.4vw, 1.13rem);
  color: rgba(255, 255, 255, 0.88);
  max-width: 640px;
  margin-bottom: 30px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* ---------------- 区块 ---------------- */

.section {
  padding: 72px 0;
}

.section-alt {
  background: #fff;
  border-top: 1px solid var(--pc-border);
  border-bottom: 1px solid var(--pc-border);
}

.section-head {
  margin-bottom: 36px;
  text-align: center;
}

.section-head-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  text-align: left;
  gap: 16px;
  flex-wrap: wrap;
}

.section-eyebrow {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.3em;
  color: var(--pc-primary);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.section-title {
  font-size: clamp(1.45rem, 2.4vw, 2rem);
  margin: 0;
}

.link-more {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 600;
}

.link-more svg {
  width: 16px;
  height: 16px;
}

/* ---------------- 核心优势 ---------------- */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.feature-card {
  background: #fff;
  border: 1px solid var(--pc-border);
  border-radius: var(--pc-radius);
  padding: 30px 24px;
  box-shadow: var(--pc-shadow-sm);
  transition: all 0.22s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--pc-shadow);
  border-color: transparent;
}

.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--pc-primary-light);
  color: var(--pc-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.feature-icon svg {
  width: 26px;
  height: 26px;
}

.feature-card h3 {
  font-size: 1.08rem;
  margin-bottom: 8px;
}

.feature-card p {
  color: var(--pc-muted);
  font-size: 14.5px;
  margin: 0;
}

/* ---------------- 文章卡片 ---------------- */

.post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.post-card {
  background: #fff;
  border: 1px solid var(--pc-border);
  border-radius: var(--pc-radius);
  overflow: hidden;
  box-shadow: var(--pc-shadow-sm);
  display: flex;
  flex-direction: column;
  transition: all 0.22s ease;
}

.post-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--pc-shadow);
}

.post-card-media {
  display: block;
  position: relative;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, var(--pc-primary) 0%, var(--pc-accent) 120%);
  overflow: hidden;
}

.post-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.post-card:hover .post-card-media img {
  transform: scale(1.04);
}

.post-card-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.85);
}

.post-card-placeholder svg {
  width: 54px;
  height: 54px;
}

.post-card-body {
  padding: 20px 22px 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.post-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 13px;
  color: var(--pc-muted);
}

.post-card-cats {
  display: inline-flex;
  gap: 6px;
  flex-wrap: wrap;
}

.chip {
  display: inline-flex;
  align-items: center;
  padding: 3px 12px;
  border-radius: 999px;
  background: var(--pc-primary-light);
  color: var(--pc-primary);
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
}

a.chip:hover {
  background: var(--pc-primary);
  color: #fff;
}

.post-card-title {
  font-size: 1.05rem;
  margin: 0;
  line-height: 1.45;
}

.post-card-title a {
  color: var(--pc-ink);
}

.post-card-title a:hover {
  color: var(--pc-primary);
}

.post-card-excerpt {
  color: var(--pc-muted);
  font-size: 14.5px;
  margin: 0;
  flex: 1;
}

/* ---------------- 企业简介 ---------------- */

.about-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 48px;
  align-items: center;
}

.about-media img {
  border-radius: var(--pc-radius);
  box-shadow: var(--pc-shadow);
  aspect-ratio: 4 / 3;
  object-fit: cover;
  width: 100%;
}

.about-placeholder {
  aspect-ratio: 4 / 3;
  border-radius: var(--pc-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: linear-gradient(135deg, var(--pc-primary) 0%, var(--pc-accent) 130%);
  box-shadow: var(--pc-shadow);
}

.about-placeholder svg {
  width: 120px;
  height: 120px;
  opacity: 0.85;
}

.about-text {
  color: var(--pc-muted);
  white-space: pre-line;
  margin-bottom: 24px;
}

/* ---------------- 联系引导 ---------------- */

.cta-band {
  background: linear-gradient(120deg, var(--pc-primary-dark) 0%, var(--pc-primary) 55%, var(--pc-accent) 140%);
  color: #fff;
  padding: 56px 0;
}

.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.cta-band h2 {
  font-size: clamp(1.3rem, 2.2vw, 1.75rem);
  margin-bottom: 6px;
}

.cta-band p {
  color: rgba(255, 255, 255, 0.85);
  margin: 0;
}

/* ---------------- 页脚 ---------------- */

.site-footer {
  background: #0d1b30;
  color: rgba(255, 255, 255, 0.78);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding: 56px 20px 40px;
}

.footer-col h4 {
  color: #fff;
  font-size: 15px;
  margin-bottom: 16px;
  letter-spacing: 0.06em;
}

.footer-about .logo {
  margin-bottom: 16px;
}

.footer-about p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  margin: 0;
}

.footer-menu li {
  margin-bottom: 10px;
}

.footer-menu a {
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
}

.footer-menu a:hover {
  color: #fff;
}

.footer-contact li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  margin-bottom: 12px;
}

.footer-contact svg {
  width: 16px;
  height: 16px;
  color: var(--pc-accent);
  flex-shrink: 0;
}

.logo-light .logo-title {
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  padding: 18px 0;
}

.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.55);
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.55);
}

.footer-bottom a:hover {
  color: #fff;
}

/* ---------------- 列表/详情页通用 ---------------- */

.main-page {
  padding: 44px 20px 80px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 13.5px;
  color: var(--pc-muted);
  margin-bottom: 22px;
}

.breadcrumb a {
  color: var(--pc-muted);
}

.breadcrumb a:hover {
  color: var(--pc-primary);
}

.breadcrumb svg.sep {
  width: 13px;
  height: 13px;
}

.breadcrumb .sep {
  opacity: 0.6;
}

.archive-head {
  text-align: center;
  margin-bottom: 40px;
  padding: 44px 24px;
  background: #fff;
  border: 1px solid var(--pc-border);
  border-radius: var(--pc-radius);
  box-shadow: var(--pc-shadow-sm);
}

.archive-head h1 {
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  margin-bottom: 10px;
}

.archive-desc {
  color: var(--pc-muted);
  max-width: 640px;
  margin: 0 auto 8px;
}

.archive-count {
  color: var(--pc-primary);
  font-weight: 600;
  font-size: 14px;
  margin: 0;
}

.author-head {
  display: flex;
  align-items: center;
  gap: 22px;
  text-align: left;
}

.author-head > div {
  text-align: left;
}

.author-avatar {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--pc-primary-light);
  flex-shrink: 0;
}

.author-avatar-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--pc-primary-light);
  color: var(--pc-primary);
}

.author-avatar-fallback svg {
  width: 36px;
  height: 36px;
}

/* ---------------- 文章详情 ---------------- */

.post-detail {
  background: #fff;
  border: 1px solid var(--pc-border);
  border-radius: var(--pc-radius);
  box-shadow: var(--pc-shadow-sm);
  padding: clamp(24px, 4vw, 52px);
}

.post-detail-head {
  border-bottom: 1px solid var(--pc-border);
  padding-bottom: 20px;
  margin-bottom: 28px;
}

.post-detail-head h1 {
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  margin-bottom: 14px;
}

.post-detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  color: var(--pc-muted);
  font-size: 13.5px;
}

.post-detail-meta .meta-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.post-detail-meta svg {
  width: 14px;
  height: 14px;
}

.post-detail-cover {
  margin-bottom: 28px;
}

.post-detail-cover img {
  border-radius: var(--pc-radius-sm);
  width: 100%;
}

.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 34px;
  padding-top: 22px;
  border-top: 1px solid var(--pc-border);
}

.post-tags-label {
  font-size: 13.5px;
  color: var(--pc-muted);
}

.post-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 30px;
}

.post-nav-item {
  border: 1px solid var(--pc-border);
  border-radius: var(--pc-radius-sm);
  padding: 14px 18px;
  transition: all 0.2s ease;
  min-width: 0;
}

.post-nav-item:hover {
  border-color: var(--pc-primary);
  box-shadow: var(--pc-shadow-sm);
}

.post-nav-item small {
  display: block;
  color: var(--pc-muted);
  font-size: 12px;
  margin-bottom: 4px;
}

.post-nav-item span {
  color: var(--pc-ink);
  font-weight: 600;
  font-size: 14.5px;
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.post-nav-next {
  text-align: right;
}

.comments {
  margin-top: 38px;
  padding-top: 26px;
  border-top: 1px solid var(--pc-border);
}

.comments h2 {
  font-size: 1.15rem;
  margin-bottom: 18px;
}

/* ---------------- 正文排版 ---------------- */

.post-content {
  font-size: 16px;
  color: #2a3a55;
  word-break: break-word;
}

.post-content h1,
.post-content h2,
.post-content h3,
.post-content h4 {
  color: var(--pc-ink);
  margin: 1.6em 0 0.7em;
}

.post-content h2 {
  font-size: 1.42rem;
  padding-left: 14px;
  border-left: 4px solid var(--pc-primary);
}

.post-content h3 {
  font-size: 1.2rem;
}

.post-content p {
  margin-bottom: 1.15em;
}

.post-content img {
  border-radius: var(--pc-radius-sm);
  margin: 1.2em auto;
}

.post-content a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.post-content ul,
.post-content ol {
  margin: 0 0 1.2em;
  padding-left: 1.5em;
  list-style: disc;
}

.post-content ol {
  list-style: decimal;
}

.post-content li {
  margin-bottom: 0.4em;
}

.post-content blockquote {
  margin: 1.4em 0;
  padding: 14px 20px;
  background: var(--pc-primary-light);
  border-left: 4px solid var(--pc-primary);
  border-radius: 0 var(--pc-radius-sm) var(--pc-radius-sm) 0;
  color: #33456a;
}

.post-content blockquote p {
  margin: 0;
}

.post-content pre {
  background: #0e1c33;
  color: #dbe7ff;
  padding: 18px 20px;
  border-radius: var(--pc-radius-sm);
  overflow-x: auto;
  font-size: 14px;
  line-height: 1.65;
}

.post-content code {
  font-family: ui-monospace, SFMono-Regular, Consolas, Menlo, monospace;
  font-size: 0.92em;
  background: var(--pc-primary-light);
  color: var(--pc-primary-dark);
  padding: 2px 6px;
  border-radius: 5px;
}

.post-content pre code {
  background: none;
  color: inherit;
  padding: 0;
}

.post-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.4em 0;
  font-size: 14.5px;
  display: block;
  overflow-x: auto;
}

.post-content th,
.post-content td {
  border: 1px solid var(--pc-border);
  padding: 10px 14px;
  text-align: left;
}

.post-content th {
  background: var(--pc-primary-light);
}

.post-content tr:nth-child(even) td {
  background: #f8fbfe;
}

.post-content hr {
  border: none;
  border-top: 1px solid var(--pc-border);
  margin: 2em 0;
}

/* ---------------- 归档时间线 ---------------- */

.timeline-year {
  margin-bottom: 36px;
}

.timeline-year > h2 {
  font-size: 1.4rem;
  color: var(--pc-primary);
  padding-bottom: 10px;
  border-bottom: 2px solid var(--pc-primary-light);
  margin-bottom: 18px;
}

.timeline-month {
  margin-bottom: 20px;
}

.timeline-month h3 {
  font-size: 1rem;
  color: var(--pc-muted);
  margin-bottom: 10px;
}

.timeline-posts li {
  display: flex;
  gap: 14px;
  align-items: baseline;
  padding: 11px 14px;
  border-radius: 10px;
  transition: all 0.15s ease;
}

.timeline-posts li:hover {
  background: #fff;
  box-shadow: var(--pc-shadow-sm);
}

.timeline-posts time {
  color: var(--pc-primary);
  font-size: 13.5px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}

.timeline-posts a {
  color: var(--pc-ink);
  font-weight: 500;
}

.timeline-posts a:hover {
  color: var(--pc-primary);
}

/* ---------------- 分页 ---------------- */

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-top: 40px;
}

.pagination-btn {
  border: 1px solid var(--pc-border);
  background: #fff;
  border-radius: 999px;
  padding: 9px 22px;
  font-weight: 600;
  color: var(--pc-ink);
  transition: all 0.2s ease;
}

.pagination-btn:hover {
  background: var(--pc-primary);
  border-color: var(--pc-primary);
  color: #fff;
}

.pagination-info {
  color: var(--pc-muted);
  font-size: 14px;
}

/* ---------------- 错误页 ---------------- */

.error-page {
  min-height: 56vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
}

.error-code {
  font-size: 5rem;
  font-weight: 800;
  color: var(--pc-primary);
  opacity: 0.25;
  margin: 0;
  line-height: 1;
}

.error-page h1 {
  font-size: 1.5rem;
  margin: 12px 0 6px;
}

.error-detail {
  color: var(--pc-muted);
}

.empty-tip {
  text-align: center;
  color: var(--pc-muted);
  padding: 40px 0;
}

/* ---------------- 分类/标签列表 ---------------- */

.term-list {
  background: #fff;
  border: 1px solid var(--pc-border);
  border-radius: var(--pc-radius);
  box-shadow: var(--pc-shadow-sm);
  padding: 8px 0;
}

.term-list li {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--pc-border);
}

.term-list li:last-child {
  border-bottom: none;
}

.term-name {
  font-weight: 600;
  color: var(--pc-ink);
  flex-shrink: 0;
}

.term-name:hover {
  color: var(--pc-primary);
}

.term-desc {
  color: var(--pc-muted);
  font-size: 13.5px;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.term-count {
  margin-left: auto;
  color: var(--pc-primary);
  font-size: 13px;
  font-weight: 600;
  background: var(--pc-primary-light);
  border-radius: 999px;
  padding: 2px 10px;
  flex-shrink: 0;
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 6px 0 20px;
}

/* ---------------- 返回顶部 ---------------- */

.back-to-top {
  position: fixed;
  right: 22px;
  bottom: 26px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--pc-primary);
  color: #fff;
  border: none;
  cursor: pointer;
  box-shadow: var(--pc-shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.25s ease;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.back-to-top:hover {
  background: var(--pc-primary-dark);
}

.back-to-top svg {
  width: 20px;
  height: 20px;
}

/* ---------------- 响应式 ---------------- */

@media (max-width: 960px) {
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .post-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .hero-deco {
    display: none;
  }

  .topbar-slogan {
    display: none;
  }

  .topbar-hours {
    display: none;
  }

  .nav-cta {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-left: 0;
    background: #fff;
    border-bottom: 1px solid var(--pc-border);
    box-shadow: var(--pc-shadow);
    padding: 12px 20px 20px;
    display: none;
  }

  body.nav-open .nav {
    display: block;
  }

  .menu {
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
  }

  .menu-item > a {
    padding: 12px 10px;
    border-radius: 10px;
  }

  .menu .menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    padding: 0 0 0 18px;
    min-width: 0;
  }
}

@media (max-width: 620px) {
  .feature-grid,
  .post-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .section {
    padding: 52px 0;
  }

  .hero-inner {
    padding: 78px 20px 86px;
  }

  .post-nav {
    grid-template-columns: 1fr;
  }

  .post-nav-next {
    text-align: left;
  }

  .cta-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .author-head {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }

  .author-head > div {
    text-align: center;
  }
}
