/* ==================== 子页面样式增强 - 与V2设计系统统一 ==================== */

/* CSS变量（确保子页面可用） */
:root {
  --navy-900: #0a1628;
  --navy-800: #0f1f35;
  --navy-700: #162a47;
  --navy-600: #1e3a5f;
  --gold-500: #c9a962;
  --gold-400: #d4b978;
  --gold-300: #e0c88f;
  --gold-600: #b8984f;
  --gray-900: #1a1a1a;
  --gray-700: #4a4a4a;
  --gray-500: #8a8a8a;
  --gray-300: #c4c4c4;
  --gray-100: #f5f6f8;
  --gray-50: #fafbfc;
}

/* ==================== 滚动显示动画 ==================== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-left.active {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(50px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-right.active {
  opacity: 1;
  transform: translateX(0);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.9);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-scale.active {
  opacity: 1;
  transform: scale(1);
}

/* 延迟类 */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }

/* ==================== 悬浮咨询组件 ==================== */
.float-contact {
  position: fixed;
  right: 24px;
  bottom: 100px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.float-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
  position: relative;
  text-decoration: none;
}

.float-btn-phone {
  background: linear-gradient(135deg, var(--gold-500), var(--gold-600));
  color: #fff;
}

.float-btn-phone:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 24px rgba(201,169,98,0.4);
}

.float-btn-wechat {
  background: #fff;
  color: #07c160;
  border: 1px solid var(--gray-100);
}

.float-btn-wechat:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 24px rgba(0,0,0,0.12);
}

.float-btn-top {
  background: var(--navy-800);
  color: #fff;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
}

.float-btn-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.float-btn-top:hover {
  background: var(--navy-700);
  transform: translateY(-4px);
}

.float-tooltip {
  position: absolute;
  right: 70px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--navy-900);
  color: #fff;
  padding: 8px 16px;
  font-size: 13px;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.float-btn:hover .float-tooltip {
  opacity: 1;
  visibility: visible;
  right: 66px;
}

/* ==================== 底部固定CTA ==================== */
.bottom-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(90deg, var(--navy-900), var(--navy-800));
  padding: 16px 60px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 998;
  transform: translateY(100%);
  transition: transform 0.4s ease;
}

.bottom-cta.show {
  transform: translateY(0);
}

.bottom-cta-text {
  color: #fff;
  font-size: 15px;
}

.bottom-cta-text strong {
  color: var(--gold-500);
  font-weight: 600;
}

.bottom-cta-btn {
  background: linear-gradient(135deg, var(--gold-500), var(--gold-600));
  color: var(--navy-900);
  padding: 12px 32px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}

.bottom-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(201,169,98,0.3);
}

/* 页面Banner - 深海蓝渐变 */
.page-banner {
  background: linear-gradient(135deg, var(--navy-800) 0%, var(--navy-900) 100%);
  padding: 160px 60px 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 30% 50%, rgba(201,169,98,0.08) 0%, transparent 50%);
}

.page-banner h1 {
  font-family: var(--font-display);
  font-size: 40px;
  color: #fff;
  margin-bottom: 20px;
  font-weight: 600;
  position: relative;
}

.page-banner p {
  color: rgba(255,255,255,0.7);
  font-size: 16px;
  max-width: 700px;
  margin: 0 auto 30px;
  line-height: 1.8;
  position: relative;
}

.breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  position: relative;
  padding: 10px 20px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
}

.breadcrumb a {
  color: rgba(255,255,255,0.7);
  transition: color 0.3s;
}

.breadcrumb a:hover {
  color: var(--gold-500);
}

/* 文章内容区 */
.article-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 80px 40px;
}

.article-content h2 {
  font-family: var(--font-display);
  font-size: 28px;
  color: var(--navy-900);
  margin: 60px 0 24px;
  font-weight: 600;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--gold-500);
}

.article-content h2:first-child {
  margin-top: 0;
}

.article-content h3 {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--navy-800);
  margin: 40px 0 16px;
  font-weight: 600;
}

.article-content h4 {
  font-size: 18px;
  color: var(--navy-700);
  margin: 28px 0 12px;
  font-weight: 600;
}

.article-content p {
  font-size: 15px;
  line-height: 1.9;
  color: var(--gray-700);
  margin-bottom: 20px;
}

.article-content ul,
.article-content ol {
  margin: 20px 0;
  padding-left: 24px;
}

.article-content li {
  font-size: 15px;
  line-height: 1.9;
  color: var(--gray-700);
  margin-bottom: 12px;
}

.article-content strong {
  color: var(--navy-900);
  font-weight: 600;
}

.article-content a {
  color: var(--gold-600);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}

.article-content a:hover {
  border-bottom-color: var(--gold-500);
}

/* 引用块 */
.article-content blockquote {
  background: linear-gradient(135deg, var(--gray-50) 0%, #fff 100%);
  border-left: 4px solid var(--gold-500);
  padding: 24px 28px;
  margin: 32px 0;
  font-style: italic;
  color: var(--gray-700);
}

.article-content blockquote p:last-child {
  margin-bottom: 0;
}

/* 表格样式 */
.article-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 32px 0;
  font-size: 14px;
}

.article-content th {
  background: var(--navy-800);
  color: #fff;
  padding: 14px 16px;
  text-align: left;
  font-weight: 500;
}

.article-content td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--gray-100);
  color: var(--gray-700);
}

.article-content tr:hover td {
  background: var(--gray-50);
}

/* FAQ样式 - 增强版 */
.faq-section {
  background: linear-gradient(180deg, var(--gray-50) 0%, #fff 100%);
  padding: 80px 40px;
  margin: 60px -40px -80px;
}

.faq-section h2 {
  text-align: center;
  border-bottom: none;
  margin-top: 0;
  font-size: 32px;
}

/* FAQ列表容器 */
.faq-list {
  max-width: 900px;
  margin: 0 auto;
}

/* FAQ项目 - 增强视觉效果 */
.faq-item,
.faq-item-page {
  background: #fff;
  border: 1px solid var(--gray-100);
  margin-bottom: 16px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.faq-item:hover,
.faq-item-page:hover {
  border-color: var(--gold-300);
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  transform: translateY(-2px);
}

.faq-item.open,
.faq-item-page.open {
  border-color: var(--gold-400);
  box-shadow: 0 12px 32px rgba(201,169,98,0.12);
}

/* FAQ问题 */
.faq-q,
.faq-q-page {
  padding: 24px 28px;
  font-weight: 600;
  color: var(--navy-900);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.3s ease;
  font-size: 17px;
  line-height: 1.5;
}

.faq-q:hover,
.faq-q-page:hover {
  color: var(--gold-600);
  background: linear-gradient(90deg, transparent 0%, rgba(201,169,98,0.03) 100%);
}

/* 展开图标 */
.faq-q::after,
.faq-q-page::after {
  content: '+';
  font-size: 28px;
  color: var(--gold-500);
  font-weight: 300;
  transition: all 0.3s ease;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(201,169,98,0.1);
}

.faq-item.open .faq-q::after,
.faq-item-page.open .faq-q-page::after {
  transform: rotate(45deg);
  background: var(--gold-500);
  color: #fff;
}

/* FAQ答案 */
.faq-a,
.faq-a-page {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
}

.faq-item.open .faq-a,
.faq-item-page.open .faq-a-page {
  max-height: 500px;
  padding: 0 28px 24px;
}

.faq-a p,
.faq-a-page p {
  font-size: 15px;
  color: var(--gray-700);
  line-height: 1.9;
  margin: 0;
}

/* CTA区块 */
.cta-section {
  background: linear-gradient(135deg, var(--navy-800) 0%, var(--navy-900) 100%);
  padding: 80px 40px;
  text-align: center;
  margin: 60px -40px -80px;
}

.cta-section h3 {
  font-family: var(--font-display);
  font-size: 28px;
  color: #fff;
  margin-bottom: 16px;
}

.cta-section p {
  color: rgba(255,255,255,0.7);
  margin-bottom: 32px;
  font-size: 16px;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.cta-btn-primary {
  background: linear-gradient(135deg, var(--gold-500), var(--gold-600));
  color: var(--navy-900);
  padding: 16px 40px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}

.cta-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(201,169,98,0.3);
}

.cta-btn-secondary {
  background: transparent;
  color: #fff;
  padding: 16px 40px;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,0.3);
  transition: all 0.3s ease;
}

.cta-btn-secondary:hover {
  border-color: var(--gold-500);
  color: var(--gold-500);
}

/* 律师卡片 - 页面内 */
.lawyer-card-page {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 40px;
  background: linear-gradient(135deg, #fff 0%, var(--gray-50) 100%);
  border: 1px solid var(--gray-100);
  padding: 40px;
  margin: 40px 0;
  transition: all 0.4s ease;
}

.lawyer-card-page:hover {
  border-color: var(--gold-300);
  box-shadow: 0 12px 32px rgba(0,0,0,0.08);
}

.lawyer-avatar-page {
  width: 200px;
  aspect-ratio: 3/4;
  overflow: hidden;
  filter: grayscale(20%);
  transition: filter 0.4s;
}

.lawyer-card-page:hover .lawyer-avatar-page {
  filter: grayscale(0%);
}

.lawyer-avatar-page img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lawyer-info-page h4 {
  font-family: var(--font-display);
  font-size: 24px;
  color: var(--navy-900);
  margin-bottom: 8px;
}

.lawyer-info-page .title {
  color: var(--gold-500);
  font-size: 14px;
  letter-spacing: 0.1em;
  margin-bottom: 20px;
}

.lawyer-info-page p {
  font-size: 15px;
  line-height: 1.8;
  color: var(--gray-700);
}

.lawyer-contact-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  padding: 12px 24px;
  background: var(--navy-800);
  color: #fff;
  font-size: 14px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.lawyer-contact-btn:hover {
  background: var(--gold-500);
  color: var(--navy-900);
}

/* 导航栏品牌链接样式 */
.nav-brand {
  text-decoration: none;
  cursor: pointer;
}

.nav-brand:hover {
  opacity: 0.9;
}

/* ==================== FAQ区域增强样式 ==================== */
.faq-section-page {
  background: linear-gradient(180deg, var(--gray-50) 0%, #fff 100%);
  padding: 80px 40px;
  margin: 60px -40px -80px;
}

.faq-section-page .section-header {
  text-align: center;
  margin-bottom: 48px;
}

.faq-section-page .section-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--gold-500);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  margin-bottom: 16px;
  display: inline-block;
  padding: 8px 16px;
  border: 1px solid rgba(201,169,98,0.3);
  background: rgba(201,169,98,0.05);
}

.faq-section-page .section-title {
  font-family: var(--font-display);
  font-size: 36px;
  color: var(--navy-900);
  margin-bottom: 16px;
  font-weight: 600;
}

.faq-section-page .section-desc {
  font-size: 16px;
  color: var(--gray-500);
  max-width: 600px;
  margin: 0 auto;
}

.faq-list-page {
  max-width: 900px;
  margin: 0 auto;
}

.faq-item-page {
  background: #fff;
  border: 1px solid var(--gray-100);
  border-radius: 8px;
  margin-bottom: 16px;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.faq-item-page:hover {
  border-color: var(--gold-300);
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  transform: translateY(-2px);
}

.faq-q-page {
  padding: 24px 28px;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  color: var(--navy-900);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.3s ease;
  background: linear-gradient(90deg, transparent 0%, rgba(201,169,98,0.03) 100%);
}

.faq-q-page:hover {
  color: var(--gold-600);
  background: linear-gradient(90deg, transparent 0%, rgba(201,169,98,0.06) 100%);
}

.faq-q-page::after {
  content: '+';
  font-size: 24px;
  color: var(--gold-500);
  font-weight: 300;
  transition: all 0.3s ease;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(201,169,98,0.1);
}

.faq-item-page.open .faq-q-page::after {
  content: '−';
  background: var(--gold-500);
  color: #fff;
}

.faq-a-page {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
}

.faq-item-page.open .faq-a-page {
  max-height: 500px;
  padding: 0 28px 24px;
}

.faq-a-page p {
  font-size: 15px;
  color: var(--gray-700);
  line-height: 1.9;
  margin: 0;
}

/* 导航栏品牌链接样式 */
.nav-brand {
  text-decoration: none;
  cursor: pointer;
  transition: opacity 0.3s;
}

.nav-brand:hover {
  opacity: 0.8;
}

/* ==================== 律师页面CTA区域修复 ==================== */
.cta-section {
  background: linear-gradient(135deg, var(--navy-900) 0%, var(--navy-800) 100%);
  padding: 80px 40px 100px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -20%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(201,169,98,0.15) 0%, transparent 70%);
  border-radius: 50%;
}

.cta-section h2 {
  color: #fff;
  font-size: 32px;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}

.cta-section p {
  color: rgba(255,255,255,0.7);
  font-size: 18px;
  margin-bottom: 30px;
  position: relative;
  z-index: 1;
}

.cta-phone {
  font-size: 48px;
  font-weight: 700;
  color: var(--gold-500);
  margin-bottom: 30px;
  position: relative;
  z-index: 1;
}

/* 相关链接区域 */
.related-section {
  padding: 80px 40px;
  background: var(--gray-50);
  position: relative;
  z-index: 1;
}

.related-section h3 {
  text-align: center;
  font-size: 28px;
  color: var(--navy-900);
  margin-bottom: 40px;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.related-card {
  background: #fff;
  padding: 32px;
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  transition: all 0.3s ease;
}

.related-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

.related-card h4 {
  color: var(--navy-900);
  font-size: 18px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--gold-500);
}

.related-card a {
  color: var(--navy-700);
  text-decoration: none;
  font-weight: 500;
  display: block;
  margin-bottom: 4px;
  transition: color 0.3s;
}

.related-card a:hover {
  color: var(--gold-600);
}

.related-card p {
  color: var(--gray-500);
  font-size: 14px;
  margin-bottom: 12px;
}

/* 响应式 */
@media (max-width: 768px) {
  .cta-section {
    padding: 60px 20px 80px;
  }
  
  .cta-section h2 {
    font-size: 24px;
  }
  
  .cta-phone {
    font-size: 32px;
  }
  
  .related-section {
    padding: 60px 20px;
  }
  
  .related-grid {
    grid-template-columns: 1fr;
  }
@media (max-width: 768px) {
  .page-banner {
    padding: 120px 20px 60px;
  }
  
  .page-banner h1 {
    font-size: 28px;
  }
  
  .article-content {
    padding: 40px 20px;
  }
  
  .article-content h2 {
    font-size: 22px;
  }
  
  .lawyer-card-page {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .lawyer-avatar-page {
    margin: 0 auto;
  }
  
  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .float-contact {
    right: 16px;
    bottom: 80px;
  }
  
  .float-btn {
    width: 48px;
    height: 48px;
    font-size: 20px;
  }
  
  .bottom-cta {
    padding: 12px 20px;
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
  
  .bottom-cta-text {
    font-size: 13px;
  }
  
  .faq-section-page {
    padding: 60px 20px;
    margin: 40px -20px -40px;
  }
  
  .faq-section-page .section-title {
    font-size: 28px;
  }
  
  .faq-q-page {
    padding: 20px;
    font-size: 15px;
  }
  
  .faq-item-page.open .faq-a-page {
    padding: 0 20px 20px;
  }
}
