html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Noto Sans SC', system-ui, sans-serif;
  color: #1A1A2E;
  background-color: #FFFAF5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-size: 15px;
  line-height: 1.65;
}

.article-content h3,
.lawyer-intro-content h3 {
  font-family: 'Noto Serif SC', serif;
  font-weight: 700;
  color: #1A1A2E;
  font-size: 1.125rem;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

.article-content h1,
.article-content h2,
.lawyer-intro-content h1,
.lawyer-intro-content h2 {
  font-family: 'Noto Serif SC', serif;
  font-weight: 700;
  color: #1A1A2E;
  margin-top: 1.75rem;
  margin-bottom: 0.875rem;
  line-height: 1.35;
}

.article-content h1,
.lawyer-intro-content h1 { font-size: 1.375rem; }
.article-content h2,
.lawyer-intro-content h2 { font-size: 1.25rem; }

.article-content h4,
.lawyer-intro-content h4 {
  font-family: 'Noto Serif SC', serif;
  font-weight: 600;
  color: #1A1A2E;
  font-size: 1rem;
  margin-top: 1.25rem;
  margin-bottom: 0.625rem;
}

@media (min-width: 768px) {
  .article-content h1,
  .lawyer-intro-content h1 { font-size: 1.625rem; }
  .article-content h2,
  .lawyer-intro-content h2 { font-size: 1.375rem; }
  .article-content h3,
  .lawyer-intro-content h3 {
    font-size: 1.25rem;
  }
  .article-content h4,
  .lawyer-intro-content h4 { font-size: 1.0625rem; }
}

.article-content p,
.lawyer-intro-content p {
  margin-top: 0.75rem;
  margin-bottom: 0.75rem;
  color: #4A4A4A;
  line-height: 1.625;
  font-size: 0.875rem;
}

@media (min-width: 768px) {
  .article-content p,
  .lawyer-intro-content p {
    font-size: 1rem;
  }
}

.article-content ul,
.lawyer-intro-content ul {
  margin-top: 0.75rem;
  margin-bottom: 0.75rem;
  padding-left: 1.25rem;
  list-style-type: disc;
}

.article-content li,
.lawyer-intro-content li {
  margin-top: 0.25rem;
  margin-bottom: 0.25rem;
  color: #4A4A4A;
  line-height: 1.625;
  font-size: 0.875rem;
}

@media (min-width: 768px) {
  .article-content li,
  .lawyer-intro-content li {
    font-size: 1rem;
  }
}

.article-content strong,
.lawyer-intro-content strong {
  color: #1A1A2E;
  font-weight: 600;
}

.article-content a,
.lawyer-intro-content a {
  color: #0B7B8F;
  text-decoration: none;
}

.article-content a:hover,
.lawyer-intro-content a:hover {
  text-decoration: underline;
}

.lawyer-intro-panel {
  position: relative;
}

.lawyer-intro-panel::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: linear-gradient(to bottom, #0B7B8F, #66BDC7);
  border-radius: 3px 0 0 3px;
}

.lawyer-intro-content > *:first-child {
  margin-top: 0;
}

.lawyer-intro-content > *:last-child {
  margin-bottom: 0;
}

.article-content ol,
.lawyer-intro-content ol {
  margin-top: 0.75rem;
  margin-bottom: 0.75rem;
  padding-left: 1.25rem;
  list-style-type: decimal;
}

.article-content blockquote,
.lawyer-intro-content blockquote {
  margin: 1rem 0;
  padding: 0.75rem 1rem;
  border-left: 3px solid #0B7B8F;
  background: rgba(11, 123, 143, 0.06);
  border-radius: 0 0.375rem 0.375rem 0;
  color: #4A4A4A;
  font-size: 0.875rem;
}

@media (min-width: 768px) {
  .article-content blockquote,
  .lawyer-intro-content blockquote {
    font-size: 0.9375rem;
  }
}

.article-content hr,
.lawyer-intro-content hr {
  margin: 1.5rem 0;
  border: none;
  border-top: 1px solid rgba(212, 203, 190, 0.6);
}

.article-content img,
.lawyer-intro-content img {
  max-width: 100%;
  height: auto;
  border-radius: 0.375rem;
  margin: 1rem 0;
}

.article-content pre,
.lawyer-intro-content pre {
  margin: 1rem 0;
  padding: 0.875rem 1rem;
  background: #F5F0EB;
  border-radius: 0.375rem;
  overflow-x: auto;
  font-size: 0.8125rem;
  line-height: 1.6;
}

.article-content code,
.lawyer-intro-content code {
  font-size: 0.875em;
  background: rgba(11, 123, 143, 0.08);
  padding: 0.125rem 0.375rem;
  border-radius: 0.25rem;
  color: #0B7B8F;
}

.article-content pre code,
.lawyer-intro-content pre code {
  background: transparent;
  padding: 0;
  color: inherit;
}

.article-content table,
.lawyer-intro-content table {
  width: 100%;
  margin: 1rem 0;
  border-collapse: collapse;
  font-size: 0.875rem;
  overflow-x: auto;
  display: block;
}

@media (min-width: 768px) {
  .article-content table,
  .lawyer-intro-content table {
    display: table;
    font-size: 0.9375rem;
  }
}

.article-content th,
.article-content td,
.lawyer-intro-content th,
.lawyer-intro-content td {
  padding: 0.5rem 0.75rem;
  border: 1px solid rgba(212, 203, 190, 0.6);
  text-align: left;
}

.article-content th,
.lawyer-intro-content th {
  background: #F5F0EB;
  color: #1A1A2E;
  font-weight: 600;
}

.reveal {
  opacity: 0;
  transform: translateY(1.5rem);
  transition: all 0.7s ease-out;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.toast {
  position: fixed;
  bottom: 6rem;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(26, 26, 46, 0.9);
  color: #fff;
  padding: 0.625rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  white-space: nowrap;
  z-index: 60;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.toast.show {
  opacity: 1;
}

@media (min-width: 768px) {
  .toast {
    bottom: 2rem;
  }
}

.js-wechat-copy {
  cursor: pointer;
}

.footer-powered {
  margin-top: 0;
  padding: 1rem 1rem 1.25rem;
  border-top: none !important;
  text-align: center;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.45);
  background: #1A1A2E;
}

.footer-powered-link {
  color: #66BDC7;
  font-weight: 700;
  font-size: 0.9375rem;
  text-decoration: none;
}

.footer-powered-link:hover {
  color: #99D3DA;
}

.watermark {
  position: fixed;
  inset: 0;
  z-index: 9998;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: rgba(0, 0, 0, 0.06);
  transform: rotate(-25deg);
  user-select: none;
}

@media (max-width: 768px) {
  body.is-home,
  body[data-page]:not([data-page=""]) {
    padding-bottom: 4rem;
  }
}

/* ===== 内容列表分页 ===== */
.cd01-pagination-section {
  padding-top: 8px;
  margin-top: 0;
}

.cd01-pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px;
}

.cd01-page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 14px;
  border-radius: 9999px;
  font-size: 13px;
  font-weight: 500;
  color: #4A4A4A;
  background: #fff;
  border: 1px solid rgba(212, 203, 190, 0.6);
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  cursor: pointer;
  font-family: inherit;
  text-decoration: none;
}

.cd01-page-btn:hover:not(.disabled):not(.active) {
  background: #F5F0EB;
  color: #1A1A2E;
  border-color: #0B7B8F;
}

.cd01-page-btn.active {
  background: #0B7B8F;
  color: #fff;
  border-color: #0B7B8F;
}

.cd01-page-btn.disabled {
  color: rgba(74, 74, 74, 0.35);
  cursor: not-allowed;
  pointer-events: none;
}

@media (max-width: 479px) {
  .cd01-page-btn {
    min-width: 32px;
    height: 32px;
    padding: 0 10px;
    font-size: 12px;
  }
}

/* ===== 详情页分享按钮 ===== */
.cd01-share-buttons {
  gap: 10px;
}

.cd01-share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 9999px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #4A4A4A;
  background: #fff;
  border: 1px solid rgba(212, 203, 190, 0.6);
  cursor: pointer;
  font-family: inherit;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.cd01-share-btn:hover {
  background: rgba(11, 123, 143, 0.06);
  border-color: #66BDC7;
  color: #0B7B8F;
  box-shadow: 0 1px 4px rgba(11, 123, 143, 0.12);
}

.cd01-share-btn i {
  font-size: 1rem;
}

.cd01-share-btn[data-share-label="微信"] i,
.cd01-share-btn:has(.ri-wechat-line) i { color: #07C160; }
.cd01-share-btn[data-share-label="微博"] i,
.cd01-share-btn:has(.ri-weibo-line) i { color: #E6162D; }

@media (max-width: 479px) {
  .cd01-share-buttons { gap: 8px; }
  .cd01-share-btn { padding: 7px 12px; font-size: 0.75rem; }
}

/* ===== 底部快速链接 / 服务领域双栏 ===== */
.footer-nav-columns {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0 24px;
  max-height: calc(4 * 2rem);
  overflow: hidden;
}

@media (min-width: 480px) {
  .footer-nav-columns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.footer-nav {
  list-style: none;
  margin: 0;
  padding: 0;
}

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

.footer-nav li:last-child {
  margin-bottom: 0;
}
