/* ==========================================================================
   上海婚姻律师网 · 沪盈家事律师团队
   前台样式：按原站（Vue 版）视觉还原，保持 950px 居中、绿色栏目头、13px 正文字号。
   仅把页面骨架换成了服务端直出，样式与信息结构与原站一致。
   ========================================================================== */

* , *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: #f0f0f0;
  color: #1d1d1d;
  font-family: Arial, 'Microsoft YaHei', sans-serif;
  font-size: 13px;
  line-height: 1.7;
}

a { color: #0050c0; text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; border: 0; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { margin: 0; font-weight: bold; line-height: 1.5; }
ul, ol { margin: 0; padding: 0; }
table { border-collapse: collapse; }

/* --------------------------------------------------------------------------
   站点骨架
   -------------------------------------------------------------------------- */
.site-wrap { min-height: 100vh; display: flex; flex-direction: column; }

.site-header {
  background-image: url('/images/greenBg.jpg');
  background-repeat: repeat-x;
  background-color: #1e6e1e;
}

.site-top-inner {
  max-width: 950px; margin: 0 auto; padding: 10px 8px;
  display: flex; justify-content: space-between; align-items: flex-end; min-height: 90px;
}
.top-logo { display: flex; align-items: flex-end; gap: 8px; }
.top-logo a {
  font-family: '黑体', SimHei, sans-serif;
  font-size: 40px; color: #fff; text-decoration: none; line-height: 1;
}
.top-logo a:hover { text-decoration: underline; }
.top-logo img { display: block; }

.top-contact { color: #fff; text-align: right; font-size: 17px; line-height: 1.7; }
.top-contact div { white-space: nowrap; }
.top-contact strong { font-size: 19px; }
.top-contact a { color: #fff; }
.map-icon-link { display: inline-block; margin-left: 6px; vertical-align: middle; }
.map-icon-link img { border: none; vertical-align: middle; }

.site-nav-inner { max-width: 950px; margin: 0 auto; }
.site-nav {
  display: flex; align-items: center; height: 40px; justify-content: space-between;
}
.site-nav a {
  display: flex; align-items: center; justify-content: center; height: 40px;
  padding: 0 6px; font-size: 16px; font-weight: bold; color: #fff;
  text-decoration: none; white-space: nowrap;
}
.site-nav a:hover, .site-nav a.is-active {
  background-color: rgba(255, 255, 255, .15); text-decoration: underline;
}

.site-body { flex: 1; background: #f0f0f0; }

.site-footer-wrap {
  background-image: url('/images/greenBg.jpg');
  background-repeat: repeat-x;
  background-color: #2a7a2a;
  color: #fff;
  font-size: 17px;
}
.site-footer-inner {
  max-width: 950px; margin: 0 auto; padding: 16px 8px;
  display: flex; align-items: center; justify-content: flex-end; gap: 24px;
}
.footer-qr img { border: none; }
.footer-info { line-height: 1.8; text-align: right; }
.footer-info a { color: #fff; }
.footer-info a:hover { text-decoration: underline; }
.footer-beian { text-align: center; padding: 6px 0 10px; font-size: 16px; }
.footer-beian a { color: #cfc; }

/* --------------------------------------------------------------------------
   通用两栏布局（原站：左 7 / 右 17）
   -------------------------------------------------------------------------- */
.page { max-width: 950px; margin: 0 auto; padding: 10px 8px 24px; }
.page-detail { padding-top: 16px; }

.row { display: flex; gap: 16px; align-items: flex-start; }
.col-side { flex: 0 0 262px; width: 262px; min-width: 0; }
.col-main { flex: 1 1 auto; min-width: 0; }

/* --------------------------------------------------------------------------
   侧栏
   -------------------------------------------------------------------------- */
.sidebar-card, .section-card {
  background: #fff; border: 1px solid #e0e3ca; margin-bottom: 12px;
}
.sidebar-title, .section-title {
  display: flex; justify-content: space-between; align-items: center;
  padding: 7px 12px; background: #024a00; color: #fff;
  font-size: 13px; font-weight: bold;
}
.sidebar-title strong, .section-title strong { font-weight: bold; }
.more-link {
  font-size: 12px; font-weight: normal; cursor: pointer; color: #cfc;
  text-decoration: none;
}
.more-link:hover { text-decoration: underline; color: #fff; }

.lawyer-profile { padding: 10px 12px; font-size: 13px; line-height: 1.8; color: #333; }
.lawyer-photo {
  display: block; width: 100%; height: auto; margin-bottom: 10px;
  border: 1px solid #e0e3ca;
}
.lawyer-intro { font-size: 12px; color: #555; line-height: 1.8; }
.lawyer-profile p { margin: 6px 0; }

.art-list { list-style: none; margin: 0; padding: 4px 10px; }
.art-list li {
  padding: 3px 0; border-bottom: 1px dotted #eee; font-size: 13px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.art-list li:last-child { border-bottom: none; }
.art-list a { color: #1d1d1d; text-decoration: none; }
.art-list a:hover { color: #c00; }
.art-list li::before {
  content: '▸'; color: #2a7a2a; margin-right: 4px; font-size: 10px;
}

.business-list { margin: 0; padding: 6px 10px 6px 26px; font-size: 13px; line-height: 1.9; color: #444; }

/* --------------------------------------------------------------------------
   首页
   -------------------------------------------------------------------------- */
.home-wrap { padding: 10px 0 24px; }
.home-inner { max-width: 950px; margin: 0 auto; padding: 0 8px; }

/* 首屏：介绍 + 图片轮播 */
.hero-section {
  display: flex; gap: 16px; background: #fff; border: 1px solid #e0e3ca;
  padding: 12px; margin-bottom: 8px; align-items: flex-start;
}
.hero-intro { flex: 0 0 390px; font-size: 13px; color: #333; line-height: 1.8; }
.intro-title {
  font-size: 13px; color: #005e00; font-weight: bold; margin: 0 0 8px; line-height: 1.6;
}
.intro-body { margin: 6px 0; text-align: left; line-height: 200%; }
.intro-body a { color: #0050c0; text-decoration: none; }
.intro-body a:hover { text-decoration: underline; }
.intro-buttons { display: flex; gap: 12px; margin-top: 12px; justify-content: center; }
.intro-buttons img { border: none; display: block; }

.hero-carousel {
  flex: 1; min-width: 0; border: 4px solid #e0e0d0; position: relative;
  height: 287px; overflow: hidden; background: #eee;
}
.hero-carousel .slide {
  position: absolute; inset: 0; width: 100%; height: 287px;
  object-fit: cover; opacity: 0; animation: carouselFade 24s infinite;
}
.hero-carousel .slide:nth-child(1) { animation-delay: 0s; }
.hero-carousel .slide:nth-child(2) { animation-delay: 6s; }
.hero-carousel .slide:nth-child(3) { animation-delay: 12s; }
.hero-carousel .slide:nth-child(4) { animation-delay: 18s; }
@keyframes carouselFade {
  0%, 22% { opacity: 1; }
  27%, 96% { opacity: 0; }
  100% { opacity: 1; }
}

/* 关键词条 */
.keywords-strip {
  display: flex; align-items: center; gap: 8px; background: #fff;
  border: 1px solid #e0e3ca; padding: 6px 10px; margin-bottom: 6px; overflow-x: auto;
}
.keywords-icon { flex-shrink: 0; }
.keywords-list {
  display: flex; flex-wrap: wrap; gap: 2px; font-size: 13px;
  color: #045801; line-height: 1.8; flex: 1;
}
.keywords-list span { white-space: nowrap; }
.keywords-list a { color: #045801; text-decoration: none; }
.keywords-list a:hover { color: #c00; text-decoration: underline; }

/* 栏目区块 */
.section-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; min-width: 0; }
/* grid 子项默认 min-width:auto，长标题（nowrap）会把整列撑宽，导致页面右侧没有留白 */
.section-card { margin-bottom: 14px; min-width: 0; }
.section-card .art-list { min-width: 0; }
.section-card .art-list { padding: 4px 10px; }

/* 《上海法治报》专栏 */
.fzb-list { display: flex; flex-wrap: wrap; gap: 10px; padding: 10px 12px; }
.fzb-item { display: flex; flex-direction: column; align-items: center; width: 250px; color: #333; }
.fzb-item img {
  width: 250px; height: 320px; object-fit: cover; border: 1px solid #ddd;
}
.fzb-title {
  margin-top: 6px; font-size: 12px; text-align: center; line-height: 1.4;
  max-width: 250px; overflow: hidden; display: -webkit-box;
  -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.fzb-item:hover .fzb-title { color: #c00; }

/* 证书滚动条 */
.cert-strip {
  overflow: hidden; width: 100%; background: #fff; border: 1px solid #e0e3ca;
  margin: 8px 0; padding: 6px 0;
}
.cert-track {
  display: flex; gap: 16px; width: max-content;
  animation: certScroll 18s linear infinite;
}
.cert-track:hover { animation-play-state: paused; }
.cert-track img { flex-shrink: 0; object-fit: contain; border: 1px solid #eee; }
@keyframes certScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* 友情链接 */
.links-wrap { padding: 10px 12px; display: flex; flex-wrap: wrap; gap: 6px; }
.friend-link {
  display: inline-block; padding: 2px 8px; border: 1px solid #ddd;
  font-size: 12px; color: #555; text-decoration: none;
}
.friend-link:hover { border-color: #024a00; color: #024a00; }
.apply-link { color: #045801; text-decoration: none; margin-left: auto; font-size: 12px; }
.apply-link:hover { color: #c00; text-decoration: underline; }

/* --------------------------------------------------------------------------
   关于沪盈（文章/列表页底部）
   -------------------------------------------------------------------------- */
.suffix-wrap { display: flex; justify-content: center; margin: 24px 0; }
.suffix-inner { width: 600px; max-width: 100%; text-align: center; }
.suffix-logo img { display: inline-block; }
.suffix-card {
  margin-top: -8px; padding: 48px 15px 16px; border: 1px solid #f23e79;
  border-radius: 16px;
}
.suffix-title { font-size: 18px; color: #f23e79; line-height: 1.75; margin: 0 0 12px; }
.suffix-text {
  font-size: 13px; text-align: left; margin: 0 3px 10px; text-indent: 2em;
  line-height: 1.8; color: #333;
}
.suffix-divider { height: 1px; background-color: #f96e57; margin: 12px -15px; }
.suffix-follow { color: #f23e79; font-size: 14px; margin: 12px 0; }
.suffix-card img { max-width: 100%; height: auto; }

/* --------------------------------------------------------------------------
   文章详情
   -------------------------------------------------------------------------- */
.article-detail { padding: 16px; background: #fff; border: 1px solid #e0e3ca; }
.back-link { font-size: 13px; color: #666; display: inline-block; margin-bottom: 8px; }
.article-head h1 {
  font-size: 22px; line-height: 1.5; color: #1d1d1d; margin: 4px 0 10px; font-weight: bold;
}
.article-meta {
  margin: 0 0 12px; padding-bottom: 10px; border-bottom: 1px solid #eee;
  color: #888; font-size: 13px;
}
.article-meta span { margin-right: 14px; }
.article-declaration {
  margin-top: 18px; padding-top: 10px; border-top: 1px dashed #ddd;
  font-size: 12px; color: #888; line-height: 1.8;
}
.article-declaration a { color: #888; }

.article-content { word-wrap: break-word; overflow-wrap: break-word; }
.article-content img { max-width: 100%; height: auto; }
.article-content table {
  width: 100% !important; max-width: 100% !important; table-layout: fixed;
  border-collapse: collapse !important; border: 1px solid #000 !important;
}
.article-content td, .article-content th {
  width: auto !important; border: 1px solid #000 !important; padding: 6px 8px;
  word-wrap: break-word; overflow-wrap: break-word; white-space: normal !important;
}
.article-content > * { max-width: 100%; }

.article-content .definedContent,
.article-content .defaultContent {
  text-align: left; font-family: STSong, serif; font-size: 14pt; line-height: 150%;
  margin: 5px 10px; color: #49394E;
}
.article-content .defaultContent { text-indent: 2em; }
.article-content .definedContent p,
.article-content .defaultContent p { margin-top: 1em; margin-bottom: 1em; }
.article-content .definedContent td,
.article-content .defaultContent td { color: #49394e; }
.article-content .definedContent a,
.article-content .defaultContent a { color: #000; text-decoration: underline; }
.article-content .definedContent a:hover,
.article-content .defaultContent a:hover { color: red; }

/* 结构化后的正文小标题（如「争议焦点」「法院判决」） */
.article-content h2 {
  font-family: STSong, serif; font-size: 14pt; line-height: 150%;
  color: #49394E; margin: 1em 10px .6em; padding: 0; border: 0; text-indent: 0;
}
.article-content h3 {
  font-family: STSong, serif; font-size: 14pt; line-height: 150%;
  color: #49394E; margin: 1em 10px .6em; text-indent: 0;
}
.article-content p { margin: 1em 10px; }

.pdf-viewer { border: 1px solid #e0e3ca; background: #f7f7f7; margin-bottom: 12px; }
.paper-viewer { border: 1px solid #e0e3ca; background: #f7f7f7; margin-bottom: 12px; }
.paper-bar { padding: 8px 12px; font-size: 13px; color: #555; background: #f5f5f0; border-bottom: 1px solid #e0e3ca; }
.paper-bar a { color: #045801; }
.paper-viewer img { display: block; width: 100%; height: auto; background: #fff; }
.pdf-bar { padding: 8px 12px; font-size: 13px; color: #555; background: #f5f5f0; border-bottom: 1px solid #e0e3ca; }
.pdf-bar a { color: #045801; }
.pdf-container { background: #f7f7f7; padding: 8px; }
.pdf-container canvas { display: block; width: 100%; height: auto; margin: 0 auto 8px; background: #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, .15); }
.pdf-status { padding: 24px; text-align: center; color: #666; }
.pdf-error { color: #c00; }
.pdf-page-count { display: none; margin: 0; padding: 0 12px 8px; font-size: 12px; color: #888; }
.summary-section { border: 1px solid #e0e3ca; margin-top: 8px; }
.summary-section summary { padding: 8px 12px; background: #f5f5f0; font-size: 13px; color: #555; cursor: pointer; user-select: none; }
.summary-section summary:hover { background: #ecece5; }
.summary-note { color: #999; font-size: 12px; font-weight: normal; }
.summary-section .summary-body { padding: 12px; }
.summary-section .summary-body p:last-child { margin-bottom: 0; }

/* --------------------------------------------------------------------------
   列表页
   -------------------------------------------------------------------------- */
.list-heading {
  margin: 0 0 12px; padding-bottom: 8px; border-bottom: 2px solid #024a00;
  font-size: 18px; color: #024a00; font-weight: bold;
}
.list-table {
  width: 100%; background: #fff; border: 1px solid #ebeef5; border-radius: 4px;
  border-collapse: separate; border-spacing: 0; table-layout: fixed;
  font-size: 14px; color: #606266;
}
.list-table th {
  background: #f5f7fa; color: #909399; font-weight: bold; font-size: 14px;
  text-align: left; padding: 12px 12px; border-bottom: 1px solid #ebeef5;
}
.list-table td {
  padding: 12px 12px; border-bottom: 1px solid #ebeef5; color: #606266;
  line-height: 23px; word-break: break-word; overflow-wrap: anywhere;
}
.list-table tbody tr { cursor: pointer; }
.list-table tbody tr:hover { background: #f5f7fa; }
.list-table tbody tr:last-child td { border-bottom: none; }
.list-table td a { color: #606266; text-decoration: none; }
.list-table td a:hover { color: #024a00; text-decoration: none; }
.list-table .col-date { width: 120px; text-align: center; }
.list-table .col-author { width: 120px; }
.title-arrow { vertical-align: middle; margin-right: 6px; }

.pager { margin-top: 16px; font-size: 13px; color: #333; line-height: 2; }
.pager-info { color: #666; }
.pager-size {
  padding: 1px 4px; margin: 0 2px; border: 1px solid #ccc;
  color: #045801; background: #fff; font-size: 13px;
}
.pager a, .pager span.pager-num {
  display: inline-block; padding: 2px 8px; margin: 0 2px;
  border: 1px solid #ccc; color: #045801; background: #fff;
  text-decoration: none; line-height: 1.6;
}
.pager a:hover { border-color: #045801; background: #f0f7f0; text-decoration: none; }
.pager span.pager-num.active {
  background: #024a00; border-color: #024a00; color: #fff; font-weight: bold;
}
.pager a.disabled {
  color: #aaa; border-color: #e0e0e0; background: #f5f5f5; cursor: not-allowed;
}
.pager a.disabled:hover { border-color: #e0e0e0; background: #f5f5f5; }
.pager-ellipsis { display: inline-block; padding: 2px 4px; color: #999; }

/* --------------------------------------------------------------------------
   留言 / 问答
   -------------------------------------------------------------------------- */
.guestbook-detail { padding: 16px; background: #fff; border: 1px solid #e0e3ca; }
.guestbook-detail h1 { font-size: 20px; margin-bottom: 6px; }
.guestbook-detail .meta { color: #888; font-size: 13px; margin-bottom: 12px; }
.guestbook-content { font-size: 14px; line-height: 1.9; color: #333; margin-bottom: 18px; }
.reply-box { background: #f5f7fa; border: 1px solid #e4e7ed; padding: 14px 16px; }
.reply-box h3 { font-size: 15px; color: #024a00; margin-bottom: 8px; }
.reply-box .reply-meta { color: #999; font-size: 12px; margin-top: 8px; }
.qa-answer-body { font-size: 14px; line-height: 1.9; color: #333; }

.ask-form { padding: 12px 14px 16px; }
.form-row { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 10px; }
.form-row label { flex: 0 0 82px; text-align: right; font-size: 13px; color: #333; line-height: 32px; }
.form-row label span { color: #c00; }
.form-row input, .form-row textarea {
  flex: 1; min-width: 0; padding: 6px 10px; font-family: inherit; font-size: 13px;
  border: 1px solid #dcdfe6; border-radius: 3px; color: #333; background: #fff;
}
.form-row textarea { line-height: 1.7; resize: vertical; }
.form-row input:focus, .form-row textarea:focus { outline: none; border-color: #024a00; }
.form-actions { padding-left: 92px; display: flex; align-items: center; gap: 12px; }
.form-status { font-size: 13px; color: #666; }
.form-status.is-ok { color: #1c6b3f; }
.form-status.is-error { color: #c00; }

.btn {
  display: inline-block; padding: 7px 18px; border: 1px solid #024a00;
  background: #024a00; color: #fff; font-size: 13px; font-family: inherit;
  border-radius: 3px; cursor: pointer; text-decoration: none;
}
.btn:hover { background: #036b00; border-color: #036b00; color: #fff; text-decoration: none; }
.btn-plain { background: #fff; color: #024a00; }
.btn-plain:hover { background: #f2f7ef; color: #024a00; }

/* --------------------------------------------------------------------------
   团队 / 收费
   -------------------------------------------------------------------------- */
.content-card { background: #fff; border: 1px solid #e0e3ca; padding: 16px; }
.content-card h1 { font-size: 20px; color: #024a00; margin-bottom: 10px; }
.content-card h2 {
  font-family: inherit; font-size: 15px; color: #024a00; margin: 18px 0 8px;
  padding-bottom: 4px; border-bottom: 1px solid #eee;
}
.team-contact { margin-top: 18px; padding: 12px 14px; background: #f9f9f6; border: 1px solid #eee; }
.team-contact ul { list-style: none; }
.team-contact li { padding: 3px 0; }

/* --------------------------------------------------------------------------
   来访路线 / 友链申请
   -------------------------------------------------------------------------- */
.map-card { background: #fff; border: 1px solid #e0e3ca; }
.map-title, .form-title { padding: 8px 12px; background: #024a00; color: #fff; font-size: 13px; }
.map-body { padding: 16px; font-size: 13px; line-height: 1.9; color: #333; }
.map-images { margin: 16px 0; }
.map-images img { display: block; margin-bottom: 16px; max-width: 100%; border: 1px solid #eee; }
.map-body h4 { margin: 16px 0 8px; color: #024a00; line-height: 1.7; font-size: 14px; }
.route-list { margin: 0; padding-left: 22px; line-height: 2; }

.form-card { background: #fff; border: 1px solid #e0e3ca; }
.form-body { padding: 16px; }
.info-section { background: #f9f9f9; border: 1px solid #e8e8e8; padding: 10px 16px; margin-bottom: 12px; }
.info-heading {
  margin: 0 0 8px; font-size: 15px; color: #024a00;
  border-bottom: 1px solid #e8e8e8; padding-bottom: 6px;
}
.info-table { width: 100%; font-size: 13px; line-height: 2; color: #333; }
.info-table .label { color: #666; white-space: nowrap; width: 80px; }
.info-table .value a { color: #045801; }
.info-table .value a:hover { color: #c00; text-decoration: underline; }
.apply-notice {
  margin: 12px 0; padding: 10px 12px; background: #fff8e1;
  border-left: 3px solid #f96e57; color: #c00; font-size: 13px; line-height: 1.7;
}
.stack-form { display: grid; gap: 10px; }
.stack-form .form-row { margin-bottom: 0; }

/* --------------------------------------------------------------------------
   404
   -------------------------------------------------------------------------- */
.notfound { background: #fff; border: 1px solid #e0e3ca; padding: 40px 30px; text-align: center; }
.notfound h1 { font-size: 22px; color: #024a00; margin-bottom: 10px; }
.notfound p { color: #666; }
.notfound-links { list-style: none; display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin: 18px 0; }
.notfound-links a {
  display: inline-block; padding: 4px 12px; border: 1px solid #ddd;
  background: #fff; color: #045801; font-size: 13px;
}
.notfound-links a:hover { border-color: #024a00; text-decoration: none; }

/* --------------------------------------------------------------------------
   响应式（原站为固定 950px，这里仅在窄屏做最小适配，不改变桌面版式）
   -------------------------------------------------------------------------- */
@media (max-width: 980px) {
  .site-top-inner, .site-nav-inner, .home-inner, .page, .site-footer-inner { max-width: 100%; }
  .site-nav { overflow-x: auto; }
}

@media (max-width: 760px) {
  .site-top-inner { flex-direction: column; align-items: flex-start; gap: 8px; min-height: 0; }
  .top-logo a { font-size: 28px; }
  .top-contact { text-align: left; font-size: 14px; }
  .top-contact div { white-space: normal; }
  .site-nav { height: auto; }
  .site-nav a { height: 36px; font-size: 14px; padding: 0 5px; }
  .row { flex-direction: column; }
  .col-side, .col-main { width: 100%; flex: 1 1 auto; }
  .hero-section { flex-direction: column; }
  .hero-intro { flex: 1 1 auto; width: 100%; }
  .hero-carousel { width: 100%; }
  .section-grid { grid-template-columns: 1fr; }
  .fzb-item { width: 100%; }
  .fzb-item img, .fzb-title { width: 100%; max-width: 100%; }
  .site-footer-inner { flex-direction: column; align-items: flex-end; }
  .article-content .defaultContent, .article-content .definedContent { font-size: 12pt; }
  .pdf-container { padding: 4px; }
}

@media print {
  .site-header, .site-footer-wrap, .col-side, .suffix-wrap, .back-link { display: none !important; }
  body { background: #fff; }
  .article-detail { border: none; padding: 0; }
}
