/* full-service-18 · 海蓝专业风格（布局源自 marriage-04） */
:root {
  --navy: #003B5C;
  --navy-light: #004E7C;
  --navy-dark: #0a2540;
  --text-dark: #1A2A3A;
  --bg-page: #F7F9FC;
  --bg-warm: #FDFCFA;
  --bg-cream: #F5F3EF;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Noto Sans SC', system-ui, sans-serif;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

h1, h2, h3, h4 {
  font-family: 'Noto Serif SC', Georgia, serif;
  line-height: 1.3;
}

.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;
}

.safe-area-pb {
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

/* 导航滚动态 */
#navbar.nav-scrolled {
  background: rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: blur(8px);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

#navbar.nav-scrolled #logo-icon {
  background-color: var(--navy) !important;
}

#navbar.nav-scrolled #logo-text {
  color: var(--navy) !important;
}

#navbar.nav-scrolled #nav-cta {
  background-color: var(--navy) !important;
  color: #fff !important;
}

#navbar.nav-scrolled #nav-cta:hover {
  background-color: var(--navy-light) !important;
}

#navbar.nav-scrolled #burger-btn {
  color: var(--navy) !important;
}

#navbar.nav-scrolled .nav-desktop-link {
  color: #4b5563 !important;
}

#navbar.nav-scrolled .nav-desktop-link:hover {
  color: var(--navy) !important;
  background: #f9fafb !important;
}

#navbar.nav-scrolled .nav-desktop-link-active {
  color: var(--navy) !important;
  background: rgba(0, 59, 92, 0.08) !important;
}

#navbar.nav-inner-page {
  background: rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: blur(8px);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

#navbar.nav-inner-page #logo-icon {
  background-color: var(--navy) !important;
}

#navbar.nav-inner-page #logo-text {
  color: var(--navy) !important;
}

#navbar.nav-inner-page #nav-cta {
  background-color: var(--navy) !important;
  color: #fff !important;
}

#navbar.nav-inner-page #burger-btn {
  color: var(--navy) !important;
}

#navbar.nav-inner-page .nav-desktop-link {
  color: #4b5563 !important;
}

#navbar.nav-inner-page .nav-desktop-link-active {
  color: var(--navy) !important;
  background: rgba(0, 59, 92, 0.08) !important;
}

/* 内页标题区 */
.page-header {
  background: var(--navy);
  padding-top: 5.5rem;
  padding-bottom: 2.5rem;
}

@media (min-width: 768px) {
  .page-header {
    padding-top: 6rem;
    padding-bottom: 3rem;
  }
}

/* 服务卡片悬停 */
.service-card-hover {
  transition: all 0.3s ease;
}

.service-card-hover:hover {
  background-color: var(--navy) !important;
  border-color: var(--navy) !important;
}

.service-card-hover:hover .svc-icon-wrap {
  background-color: rgba(255, 255, 255, 0.15) !important;
}

.service-card-hover:hover .svc-icon,
.service-card-hover:hover .svc-title,
.service-card-hover:hover .svc-desc,
.service-card-hover:hover .svc-link {
  color: #fff !important;
}

.service-card-hover:hover .svc-desc {
  color: rgba(255, 255, 255, 0.7) !important;
}

/* 文章卡片 */
.article-card img {
  transition: transform 0.5s ease;
}

.article-card:hover img {
  transform: scale(1.05);
}

/* 底部移动导航 */
.bottom-nav {
  display: none;
}

@media (max-width: 767px) {
  .bottom-nav {
    display: block;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 40;
    background: #fff;
    border-top: 1px solid #e5e7eb;
  }

  body {
    padding-bottom: 4rem;
  }
}

.lawyer-intro-content p {
  margin-bottom: 0.75rem;
}

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

.lawyer-intro-content ul,
.lawyer-intro-content ol {
  padding-left: 1.25rem;
  margin-bottom: 0.75rem;
}

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

.footer-powered {
  margin-top: 1rem;
  padding-top: 0;
  padding-bottom: 0;
  border-top: none !important;
  text-align: center;
  font-size: 0.8125rem;
  color: rgba(156, 163, 175, 0.9);
}

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

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

#toast {
  position: fixed;
  bottom: 5rem;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: rgba(10, 37, 64, 0.92);
  color: #fff;
  padding: 0.625rem 1.25rem;
  border-radius: 9999px;
  font-size: 0.8125rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s, transform 0.25s;
  z-index: 9999;
  white-space: nowrap;
}

#toast.active {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.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;
}

.prose img {
  max-width: 100%;
  height: auto;
  border-radius: 0.5rem;
}

/* 内容居中容器 */
.m04-content-wrap {
  width: 100%;
  max-width: 80rem;
  margin-left: auto;
  margin-right: auto;
}

.max-w-7xl {
  max-width: 80rem;
}

/* ===== 首页 / 简介页律师介绍 ===== */
.home-intro-card {
  position: relative;
  padding: 1.25rem 1.25rem 1.25rem 1.5rem;
  background: linear-gradient(135deg, #F0F5FA 0%, #ffffff 100%);
  border-radius: 1rem;
  border: 1px solid rgba(0, 59, 92, 0.08);
  box-shadow: 0 4px 20px rgba(0, 59, 92, 0.06);
}
.home-intro-card--hero {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: none;
}
.home-intro-quote-mark {
  position: absolute;
  top: 0.5rem;
  left: 0.75rem;
  font-family: 'Noto Serif SC', Georgia, serif;
  font-size: 2.5rem;
  line-height: 1;
  color: var(--navy-light);
  opacity: 0.5;
  pointer-events: none;
}
.home-intro-card--hero .home-intro-quote-mark {
  color: rgba(255, 255, 255, 0.35);
}
.home-intro-card .profile-rich-content {
  position: relative;
  z-index: 1;
}
@media (min-width: 768px) {
  .home-intro-card {
    padding: 1.5rem 1.75rem 1.5rem 2rem;
  }
  .home-intro-quote-mark {
    font-size: 3rem;
    top: 0.75rem;
    left: 1rem;
  }
}

.profile-intro-card {
  padding: 1.25rem 1.5rem;
  background: #F0F5FA;
  border-radius: 1rem;
  border: 1px solid rgba(0, 59, 92, 0.08);
  border-left: 4px solid var(--navy);
}
@media (min-width: 768px) {
  .profile-intro-card {
    padding: 1.5rem 1.75rem;
  }
}

.profile-rich-content {
  font-size: 0.9375rem;
  line-height: 1.9;
  color: #4b5563;
}
.home-intro-card--hero .profile-rich-content {
  color: rgba(255, 255, 255, 0.9);
}
@media (min-width: 1024px) {
  .profile-rich-content {
    font-size: 1rem;
    line-height: 1.95;
  }
}
.profile-rich-content p {
  margin-bottom: 1.1em;
  text-align: justify;
}
.profile-rich-content h1,
.profile-rich-content h2,
.profile-rich-content h3,
.profile-rich-content h4 {
  font-family: 'Noto Serif SC', Georgia, serif;
  color: var(--text-dark);
  font-weight: 700;
  margin-top: 2em;
  margin-bottom: 0.75em;
  padding-bottom: 0.5em;
  border-bottom: 1px solid rgba(0, 59, 92, 0.12);
}
.home-intro-card--hero .profile-rich-content h1,
.home-intro-card--hero .profile-rich-content h2,
.home-intro-card--hero .profile-rich-content h3,
.home-intro-card--hero .profile-rich-content h4 {
  color: #fff;
  border-bottom-color: rgba(255, 255, 255, 0.2);
}
.profile-rich-content h1:first-child,
.profile-rich-content h2:first-child,
.profile-rich-content h3:first-child,
.profile-rich-content h4:first-child {
  margin-top: 0;
}
.profile-rich-content h2 { font-size: 1.25rem; }
.profile-rich-content h3 { font-size: 1.0625rem; border-bottom: none; padding-bottom: 0; margin-top: 1.5em; }
.profile-rich-content h4 { font-size: 0.975rem; border-bottom: none; padding-bottom: 0; }
.profile-rich-content ul,
.profile-rich-content ol {
  margin: 0.75em 0 1.25em;
  padding-left: 1.5em;
  list-style: revert;
}
.profile-rich-content li {
  margin-bottom: 0.55em;
  line-height: 1.85;
}
.profile-rich-content li::marker {
  color: var(--navy-light);
}
.profile-rich-content strong,
.profile-rich-content b {
  color: var(--text-dark);
  font-weight: 600;
}
.home-intro-card--hero .profile-rich-content strong,
.home-intro-card--hero .profile-rich-content b {
  color: #fff;
}

/* ===== 内容列表分页 ===== */
.m04-pagination-section {
  padding: 8px 0 0;
  margin-top: 40px;
}
.m04-pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px;
}
.m04-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: #4b5563;
  background: #fff;
  border: 1px solid rgba(0, 59, 92, 0.15);
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  cursor: pointer;
  font-family: inherit;
  text-decoration: none;
}
.m04-page-btn:hover:not(.disabled):not(.active) {
  background: #F0F5FA;
  color: var(--navy);
  border-color: var(--navy-light);
}
.m04-page-btn.active {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}
.m04-page-btn.disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.m04-page-btn.m04-page-nav {
  padding: 0 16px;
}
@media (max-width: 479px) {
  .m04-page-btn {
    min-width: 32px;
    height: 32px;
    padding: 0 10px;
    font-size: 12px;
  }
  .m04-page-btn.m04-page-nav {
    padding: 0 12px;
  }
}

/* ===== Markdown / 富文本内容 ===== */
.lawyer-intro-content.rich-content,
.rich-content {
  font-size: 0.9375rem;
  line-height: 1.85;
  color: var(--text-dark);
  word-wrap: break-word;
  overflow-wrap: break-word;
}
.rich-content p {
  margin-bottom: 1em;
  line-height: 1.85;
}
.rich-content p:last-child {
  margin-bottom: 0;
}
.rich-content h1,
.rich-content h2,
.rich-content h3,
.rich-content h4 {
  font-family: 'Noto Serif SC', Georgia, serif;
  color: var(--navy);
  font-weight: 700;
  line-height: 1.4;
  margin-top: 1.75em;
  margin-bottom: 0.65em;
}
.rich-content h1:first-child,
.rich-content h2:first-child,
.rich-content h3:first-child,
.rich-content h4:first-child {
  margin-top: 0;
}
.rich-content h1 { font-size: 1.375rem; }
.rich-content h2 { font-size: 1.2rem; }
.rich-content h3 { font-size: 1.05rem; }
.rich-content h4 { font-size: 0.95rem; }
.rich-content ul,
.rich-content ol {
  list-style: revert;
  padding-left: 1.35em;
  margin-bottom: 1em;
}
.rich-content li {
  margin-bottom: 0.4em;
}
.rich-content blockquote {
  margin: 1.25em 0;
  padding: 14px 18px;
  background: #F0F5FA;
  border-radius: 12px;
  border-left: 3px solid var(--navy);
  color: var(--text-dark);
  font-style: normal;
}
.rich-content a {
  color: var(--navy);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.rich-content a:hover {
  color: var(--navy-light);
}
.rich-content img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  margin: 12px 0;
}
.rich-content strong,
.rich-content b {
  color: var(--navy);
  font-weight: 600;
}
.rich-content em {
  font-style: italic;
}
.rich-content hr {
  border: none;
  border-top: 1px solid rgba(0, 59, 92, 0.1);
  margin: 2em 0;
}
.rich-content pre {
  margin: 1.25em 0;
  padding: 16px 18px;
  background: var(--navy-dark);
  color: #F0F5FA;
  border-radius: 12px;
  overflow-x: auto;
  font-size: 0.8125rem;
  line-height: 1.6;
  -webkit-overflow-scrolling: touch;
}
.rich-content code {
  font-family: ui-monospace, 'Cascadia Code', 'Source Code Pro', monospace;
  font-size: 0.875em;
  background: #F0F5FA;
  color: var(--navy);
  padding: 2px 6px;
  border-radius: 4px;
}
.rich-content pre code {
  background: transparent;
  color: inherit;
  padding: 0;
}
.rich-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.25em 0;
  font-size: 0.875rem;
  display: block;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.rich-content th,
.rich-content td {
  border: 1px solid rgba(0, 59, 92, 0.15);
  padding: 8px 12px;
  text-align: left;
}
.rich-content th {
  background: #F0F5FA;
  color: var(--text-dark);
  font-weight: 600;
}

/* ===== 详情页分享按钮 ===== */
.m04-share-section {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(0, 59, 92, 0.08);
}
.m04-share-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 1rem;
}
.m04-share-title i {
  color: var(--navy);
  font-size: 1rem;
}
.m04-share-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.m04-share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 9999px;
  border: 1px solid rgba(0, 59, 92, 0.15);
  background: #F0F5FA;
  font-size: 0.8125rem;
  color: #4b5563;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}
.m04-share-btn i {
  font-size: 0.9375rem;
}
.m04-share-btn:hover {
  border-color: var(--navy);
  background: #fff;
  color: var(--navy);
}
.m04-share-btn[data-platform="weibo"] i { color: #E6162D; }
.m04-share-btn[data-platform="qq"] i { color: #12B7F5; }
.m04-share-btn[data-platform="qzone"] i { color: #FBC427; }
.m04-share-btn[data-platform="douban"] i { color: #00B51D; }
.m04-share-btn[data-platform="copy"] i { color: #9ca3af; }
@media (max-width: 479px) {
  .m04-share-buttons {
    gap: 8px;
  }
  .m04-share-btn {
    padding: 7px 12px;
    font-size: 0.75rem;
  }
}
