/* ==========================================================================
   LoveShine Web - 极简法律文档样式 (Minimal Legal Page Styles)
   ========================================================================== */

.minimal-legal {
  background-color: #FFFFFF;
  color: #334155;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

/* ==========================================================================
   顶部全局导航栏 (Site Header - 与首页保持一致)
   ========================================================================== */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 72px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.6);
  z-index: 1000;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
}

.site-header * {
  box-sizing: border-box;
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 20px;
  font-weight: 800;
  color: #0F172A;
  letter-spacing: -0.5px;
  text-decoration: none;
}

.brand-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(245, 158, 11, 0.2);
  object-fit: cover;
  display: block;
}

.brand-text {
  background: linear-gradient(135deg, #1E293B 0%, #88632F 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-tag {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 9999px;
  background: #FEF3C7;
  color: #88632F;
  margin-left: 2px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links li {
  margin: 0;
}

.nav-links a {
  font-size: 15px;
  font-weight: 500;
  color: #475569;
  text-decoration: none;
  transition: color 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: #D97706;
  font-weight: 600;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* 按钮规范 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 15px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  text-align: center;
  text-decoration: none;
}

.btn-sm {
  padding: 8px 18px;
  font-size: 14px;
}

.btn-primary {
  background: linear-gradient(135deg, #FFB800 0%, #FF8C00 100%);
  color: #FFFFFF;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(245, 158, 11, 0.45);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 32px;
  height: 32px;
  justify-content: center;
  align-items: center;
  padding: 4px;
  background: none;
  border: none;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: #0F172A;
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* 极简顶部导航 (兼容保留) */
.minimal-nav {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid #F1F5F9;
  z-index: 100;
}

.minimal-nav-inner {
  max-width: 800px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.minimal-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 17px;
  font-weight: 700;
  color: #0F172A;
  text-decoration: none;
}

.minimal-brand-icon {
  width: 28px;
  height: 28px;
  border-radius: 6px;
}

.minimal-links {
  display: flex;
  gap: 20px;
  font-size: 14px;
  list-style: none;
}

.minimal-links a {
  color: #64748B;
  text-decoration: none;
  transition: color 0.2s ease;
}

.minimal-links a:hover,
.minimal-links a.active {
  color: #0F172A;
  font-weight: 600;
}

/* 单栏极简正文容器 - 适配 App 与纯净阅读无菜单模式 */
.minimal-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 24px 60px 24px;
}

/* 极简底部版权 */
.doc-footer-simple {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid #F1F5F9;
  text-align: center;
  font-size: 13px;
  color: #94A3B8;
}

/* 文档标题区 */
.doc-header {
  margin-bottom: 40px;
  padding-bottom: 24px;
  border-bottom: 1px solid #F1F5F9;
}

.doc-title {
  font-size: 32px;
  font-weight: 800;
  color: #0F172A;
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}

.doc-meta {
  font-size: 13px;
  color: #94A3B8;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* 强调提示块 */
.minimal-notice {
  background: #F8FAFC;
  border-left: 3px solid #CBD5E1;
  padding: 16px 20px;
  border-radius: 4px;
  margin: 28px 0;
  font-size: 14px;
  color: #475569;
  line-height: 1.7;
}

.minimal-notice strong {
  color: #0F172A;
}

/* 正文标题与段落排版 */
.doc-body h2 {
  font-size: 20px;
  font-weight: 700;
  color: #0F172A;
  margin-top: 40px;
  margin-bottom: 16px;
}

.doc-body h3 {
  font-size: 16px;
  font-weight: 600;
  color: #1E293B;
  margin-top: 24px;
  margin-bottom: 10px;
}

.doc-body p {
  margin-bottom: 14px;
  color: #334155;
  font-size: 15px;
  text-align: justify;
}

.doc-body ul,
.doc-body ol {
  margin-bottom: 20px;
  padding-left: 20px;
  color: #334155;
  font-size: 15px;
}

.doc-body li {
  margin-bottom: 8px;
}

.doc-body strong {
  color: #0F172A;
  font-weight: 600;
}

/* 极简表格 */
.minimal-table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 14px;
}

.minimal-table th,
.minimal-table td {
  padding: 12px 14px;
  border: 1px solid #E2E8F0;
  text-align: left;
}

.minimal-table th {
  background: #F8FAFC;
  color: #0F172A;
  font-weight: 600;
}

/* ==========================================================================
   网站通用页脚 (Site Footer - 与首页保持一致)
   ========================================================================== */

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  box-sizing: border-box;
}

.site-footer {
  background: #FFFFFF;
  border-top: 1px solid rgba(226, 232, 240, 0.8);
  padding: 64px 0 32px 0;
  width: 100%;
  box-sizing: border-box;
}

.site-footer * {
  box-sizing: border-box;
}

.site-footer .footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr;
  max-width: 800px;
  margin: 0 auto 40px auto;
  gap: 48px;
}

.site-footer .brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 20px;
  font-weight: 800;
  color: #0F172A;
  letter-spacing: -0.5px;
  text-decoration: none;
}

.site-footer .brand-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(245, 158, 11, 0.2);
  object-fit: cover;
  display: block;
}

.site-footer .brand-text {
  background: linear-gradient(135deg, #1E293B 0%, #88632F 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.site-footer .footer-brand p {
  font-size: 14px;
  color: #475569;
  margin-top: 16px;
  line-height: 1.7;
  max-width: 320px;
}

.site-footer .footer-col h5 {
  font-size: 14px;
  font-weight: 700;
  color: #1E293B;
  margin: 0 0 20px 0;
  letter-spacing: 0.5px;
}

.site-footer .footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 0;
  margin: 0;
}

.site-footer .footer-col li {
  margin: 0;
}

.site-footer .footer-col a {
  font-size: 14px;
  color: #475569;
  text-decoration: none;
  transition: color 0.2s ease;
}

.site-footer .footer-col a:hover {
  color: #D97706;
}

.site-footer .footer-bottom {
  padding-top: 32px;
  border-top: 1px solid #F1F5F9;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: #94A3B8;
  flex-wrap: wrap;
  gap: 16px;
}

.site-footer .footer-legal-links {
  display: flex;
  gap: 20px;
}

.site-footer .footer-legal-links a {
  font-size: 13px;
  color: #64748B;
  text-decoration: none;
  transition: color 0.2s ease;
}

.site-footer .footer-legal-links a:hover {
  color: #0F172A;
}

/* 兼容保留的极简页脚样式（如仍有地方引用） */
.minimal-footer {
  margin-top: 60px;
  padding-top: 24px;
  border-top: 1px solid #F1F5F9;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: #94A3B8;
  flex-wrap: wrap;
  gap: 16px;
}

.minimal-footer a {
  color: #64748B;
  text-decoration: none;
}

.minimal-footer a:hover {
  color: #0F172A;
}

/* 极简法律模式与 WebView 模式（隐藏顶部导航和底部菜单） */
body.minimal-legal .site-header,
body.minimal-legal .minimal-nav,
body.minimal-legal .minimal-footer,
body.minimal-legal .site-footer,
body.webview-mode .site-header,
body.webview-mode .minimal-nav,
body.webview-mode .minimal-footer,
body.webview-mode .site-footer {
  display: none !important;
}

body.webview-mode .minimal-container {
  padding-top: 20px !important;
  padding-bottom: 40px !important;
}

@media (max-width: 768px) {
  .site-header .nav-links,
  .site-header .nav-actions .btn-download {
    display: none;
  }

  .site-header .menu-toggle {
    display: flex;
  }

  .site-header.nav-mobile-open .nav-links {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: #FFFFFF;
    padding: 24px;
    box-shadow: 0 20px 40px -8px rgba(136, 99, 47, 0.12), 0 8px 16px -4px rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    gap: 16px;
  }

  .site-footer .footer-top {
    grid-template-columns: 1fr !important;
    gap: 32px;
  }

  .site-footer .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  .doc-title {
    font-size: 26px;
  }
  
  .minimal-container {
    padding: 24px 16px 40px 16px;
  }

  .minimal-nav-inner {
    padding: 12px 16px;
  }
  
  .minimal-links {
    gap: 12px;
    font-size: 13px;
  }
}
