/* ==================== 山东畅策律师事务所 - 全新UI样式 V2 ==================== */
/* 设计理念：克制中的力量 · 留白中的权威 */

/* ==================== CSS变量 - 全新色彩系统 ==================== */
:root {
  /* 深海蓝系列 */
  --navy-900: #0a1628;
  --navy-800: #0f1f35;
  --navy-700: #162a47;
  --navy-600: #1e3a5f;
  --navy-500: #2a4a73;
  
  /* 香槟金系列 */
  --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;
  --white: #ffffff;
  
  /* 间距系统 */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 80px;
  --space-10: 120px;
  
  /* 阴影 */
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.06);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.08);
  
  /* 字体 */
  --font-display: "Noto Serif SC", "Source Han Serif CN", "SimSun", serif;
  --font-body: "Noto Sans SC", "Source Han Sans CN", "PingFang SC", "Microsoft YaHei", sans-serif;
}

/* ==================== 基础重置 ==================== */
* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--gray-900);
  line-height: 1.8;
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

/* ==================== 导航栏 - 透明到实色 ==================== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: 80px;
  padding: 0 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: transparent;
  transition: all 0.4s ease;
}

.nav.scrolled {
  height: 64px;
  background: rgba(10, 22, 40, 0.95);
  backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 rgba(255,255,255,0.05);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.nav-logo img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.nav-logo:hover img {
  transform: scale(1.05);
}

.nav-logo-text {
  font-family: var(--font-display);
  color: #fff;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 2px;
}

.nav-logo-text span {
  color: var(--gold-500);
  font-weight: 400;
}

.nav-brand {
  font-family: var(--font-display);
  color: #fff;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 2px;
  text-decoration: none;
}

.nav-brand span {
  color: var(--gold-500);
  font-weight: 400;
}

.nav-links {
  display: flex;
  gap: 48px;
  list-style: none;
}

.nav-links a {
  color: rgba(255,255,255,0.85);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.05em;
  position: relative;
  transition: color 0.3s;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gold-500);
  transition: width 0.3s;
}

.nav-links a:hover {
  color: var(--gold-400);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-phone {
  color: var(--gold-500);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.1em;
}

.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.mobile-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
}

/* ==================== Hero首屏 - 全屏沉浸 ==================== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, var(--navy-800) 0%, var(--navy-900) 100%);
  position: relative;
  overflow: hidden;
  padding: 0 40px;
}

.hero::before {
  content: '';
  position: absolute;
  top: 20%;
  right: 10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(201,169,98,0.06) 0%, transparent 70%);
  border-radius: 50%;
}

.hero-content {
  max-width: 900px;
  text-align: center;
  position: relative;
  z-index: 1;
}

.hero-label {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  color: var(--gold-500);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 24px;
  padding: 8px 20px;
  border: 1px solid rgba(201,169,98,0.3);
}

.hero h1 {
  font-family: var(--font-display);
  color: #fff;
  font-size: 56px;
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 24px;
  letter-spacing: 0.02em;
}

.hero h1 em {
  color: var(--gold-500);
  font-style: normal;
}

.hero p {
  color: rgba(255,255,255,0.65);
  font-size: 18px;
  line-height: 1.8;
  margin-bottom: 40px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.btn-primary {
  display: inline-block;
  background: linear-gradient(135deg, var(--gold-500) 0%, var(--gold-600) 100%);
  color: var(--navy-900);
  padding: 18px 48px;
  border-radius: 4px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-decoration: none;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(201,169,98,0.3);
  color: var(--navy-900);
}

.btn-ghost {
  display: inline-block;
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.3);
  padding: 18px 48px;
  border-radius: 4px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-decoration: none;
  transition: all 0.3s ease;
  margin-left: 16px;
}

.btn-ghost:hover {
  border-color: var(--gold-400);
  color: var(--gold-400);
}

.hero-stats {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0;
  margin-top: 80px;
  padding: 48px 60px;
  background: rgba(201,169,98,0.08);
  border: 1px solid rgba(201,169,98,0.25);
  border-radius: 0;
  backdrop-filter: blur(10px);
}

.hero-stat {
  text-align: center;
  padding: 0 48px;
  position: relative;
}

.stat-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 16px;
  color: #fff;
  opacity: 0.85;
  transition: all 0.3s ease;
}

.stat-icon svg {
  width: 100%;
  height: 100%;
}

.hero-stat:hover .stat-icon {
  opacity: 1;
  transform: translateY(-4px);
  color: var(--gold-500);
}

.stat-divider {
  width: 1px;
  height: 60px;
  background: linear-gradient(180deg, transparent 0%, rgba(201,169,98,0.3) 50%, transparent 100%);
}

.hero-stat .num {
  display: block;
  font-family: var(--font-display);
  font-size: 42px;
  font-weight: 600;
  color: #fff;
  line-height: 1;
  transition: all 0.3s ease;
  font-variant-numeric: tabular-nums;
}

/* 数字跳动动画 */
@keyframes countUp {
  0% { transform: translateY(20px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}

.num.counting {
  animation: countUp 0.5s ease-out;
}

.hero-stat:hover .num {
  transform: scale(1.05);
  color: var(--gold-500);
}

.hero-stat .label {
  font-size: 13px;
  color: rgba(255,255,255,0.85);
  margin-top: 8px;
  letter-spacing: 0.1em;
  transition: color 0.3s ease;
}

.hero-stat:hover .label {
  color: #fff;
}

/* ==================== 区块通用样式 ==================== */
.section {
  padding: var(--space-10) 60px;
  position: relative;
}

.section-alt {
  background: linear-gradient(180deg, var(--gray-50) 0%, #fff 100%);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-9);
  position: relative;
}

.section-header::after {
  content: '';
  display: block;
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold-500), transparent);
  margin: 24px auto 0;
}

.section-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--gold-500);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  margin-bottom: var(--space-4);
  display: inline-block;
  padding: 8px 16px;
  border: 1px solid rgba(201,169,98,0.3);
  background: rgba(201,169,98,0.05);
}

.section-title {
  font-family: var(--font-display);
  font-size: 40px;
  color: var(--navy-900);
  margin-bottom: var(--space-4);
  font-weight: 600;
  letter-spacing: 0.02em;
}

.section-desc {
  font-size: 16px;
  color: var(--gray-500);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.8;
}

/* ==================== 关于我们 ==================== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-text h3 {
  font-family: var(--font-display);
  font-size: 24px;
  color: var(--navy-900);
  margin-bottom: var(--space-5);
  font-weight: 600;
}

.about-text p {
  color: var(--gray-700);
  margin-bottom: var(--space-5);
  font-size: 15px;
  line-height: 1.9;
}

.about-highlights {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-5);
  margin-top: var(--space-7);
}

.about-highlight {
  padding: var(--space-5);
  background: linear-gradient(135deg, #fff 0%, var(--gray-50) 100%);
  border-left: 3px solid var(--gold-500);
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  transition: all 0.3s ease;
}

.about-highlight:hover {
  transform: translateX(4px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

.about-highlight .title {
  font-size: 14px;
  color: var(--navy-900);
  font-weight: 600;
  margin-bottom: var(--space-2);
}

.about-highlight .desc {
  font-size: 13px;
  color: var(--gray-500);
  line-height: 1.6;
}

.about-image {
  background: linear-gradient(135deg, var(--navy-800) 0%, var(--navy-900) 100%);
  padding: 60px;
  min-height: 500px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.about-image h3 {
  font-family: var(--font-display);
  color: var(--gold-500);
  font-size: 20px;
  margin-bottom: var(--space-6);
  font-weight: 600;
}

.about-image ul {
  list-style: none;
}

.about-image li {
  color: rgba(255,255,255,0.85);
  font-size: 15px;
  padding: var(--space-3) 0;
  padding-left: 24px;
  position: relative;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.about-image li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  background: var(--gold-500);
}

/* ==================== 业务领域 ==================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  display: block;
  background: var(--white);
  border: 1px solid var(--gray-100);
  padding: 40px;
  text-decoration: none;
  color: inherit;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--gold-500), var(--gold-300));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.service-card:hover {
  border-color: var(--gold-400);
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-card:hover h3,
.service-card:hover p {
  color: var(--gold-500);
}

.service-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: var(--gold-500);
  margin-bottom: var(--space-5);
  border: 1px solid var(--gold-500);
  transition: all 0.3s ease;
}

.service-card:hover .service-icon {
  background: var(--gold-500);
  color: #fff;
  transform: rotate(5deg);
}

.service-card h3 {
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--navy-900);
  margin-bottom: var(--space-3);
  font-weight: 600;
  transition: color 0.3s ease;
}

.service-card p {
  font-size: 14px;
  color: var(--gray-500);
  line-height: 1.8;
  margin-bottom: var(--space-4);
  transition: color 0.3s ease;
}

.service-arrow {
  font-size: 13px;
  color: var(--gold-500);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.service-arrow::after {
  content: '→';
  transition: transform 0.3s;
}

.service-card:hover .service-arrow::after {
  transform: translateX(4px);
}

/* ==================== 律师团队 - 杂志风 ==================== */
.team-grid {
  display: flex;
  flex-direction: column;
  gap: 48px;
  max-width: 1000px;
  margin: 0 auto;
}

.team-card {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 48px;
  padding: 32px;
  border: 1px solid var(--gray-100);
  background: #fff;
  text-decoration: none;
  color: inherit;
  align-items: center;
  transition: all 0.4s ease;
  position: relative;
}

.team-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, var(--gold-500), var(--gold-300));
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.4s ease;
}

.team-card:hover {
  border-color: var(--gold-400);
  box-shadow: 0 12px 32px rgba(0,0,0,0.08);
}

.team-card:hover::before {
  transform: scaleY(1);
}

.team-avatar {
  width: 240px;
  aspect-ratio: 3/4;
  overflow: hidden;
  filter: grayscale(30%);
  transition: all 0.4s;
  position: relative;
}

.team-avatar::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid rgba(201,169,98,0.3);
  pointer-events: none;
}

.team-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.4s ease;
}

.team-card:hover .team-avatar {
  filter: grayscale(0%);
}

.team-card:hover .team-avatar img {
  transform: scale(1.03);
}

.team-info h3 {
  font-family: var(--font-display);
  font-size: 28px;
  color: var(--navy-900);
  margin-bottom: var(--space-2);
  font-weight: 600;
}

.team-info .title {
  font-size: 14px;
  color: var(--gold-500);
  font-weight: 500;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-4);
}

.team-info p {
  font-size: 15px;
  color: var(--gray-700);
  line-height: 1.9;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.team-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: var(--space-4);
  font-size: 13px;
  color: var(--navy-600);
  font-weight: 500;
}

.team-link::after {
  content: '→';
  transition: transform 0.3s;
}

.team-card:hover .team-link::after {
  transform: translateX(4px);
}

/* ==================== 常见问题 ==================== */
.faq-list {
  max-width: 900px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--gray-100);
  padding: var(--space-6) 0;
  cursor: pointer;
}

.faq-item:first-child {
  border-top: 1px solid var(--gray-100);
}

.faq-q {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  color: var(--navy-900);
}

.faq-q::after {
  content: '+';
  font-size: 24px;
  color: var(--gold-500);
  font-weight: 300;
  transition: transform 0.3s;
}

.faq-item.open .faq-q::after {
  content: '−';
}

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
}

.faq-item.open .faq-a {
  max-height: 500px;
  padding-top: var(--space-4);
}

.faq-a p {
  font-size: 15px;
  color: var(--gray-700);
  line-height: 1.9;
}

/* ==================== 联系我们 ==================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  max-width: 1100px;
  margin: 0 auto;
}

.contact-info h3 {
  font-family: var(--font-display);
  font-size: 24px;
  color: var(--navy-900);
  margin-bottom: var(--space-6);
  font-weight: 600;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
}

.contact-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--gold-500);
  border: 1px solid var(--gray-100);
  flex-shrink: 0;
}

.contact-item .label {
  font-size: 12px;
  color: var(--gray-500);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: var(--space-1);
}

.contact-item .value {
  font-size: 16px;
  color: var(--navy-900);
  font-weight: 500;
}

.contact-form {
  background: var(--gray-50);
  padding: 48px;
}

.contact-form h3 {
  font-family: var(--font-display);
  font-size: 24px;
  color: var(--navy-900);
  margin-bottom: var(--space-6);
  font-weight: 600;
}

.form-group {
  margin-bottom: var(--space-5);
}

.form-group label {
  display: block;
  font-size: 12px;
  color: var(--gray-500);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: var(--space-2);
  font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--gray-100);
  font-size: 15px;
  font-family: inherit;
  background: var(--white);
  transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--gold-500);
}

.form-group textarea {
  height: 120px;
  resize: vertical;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}

.btn-submit {
  width: 100%;
}

/* ==================== 页脚 ==================== */
.footer {
  background: var(--navy-900);
  color: rgba(255,255,255,0.5);
  padding: 80px 60px 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 60px;
  max-width: 1200px;
  margin: 0 auto;
}

.footer h4 {
  font-family: var(--font-display);
  color: #fff;
  font-size: 16px;
  margin-bottom: var(--space-5);
  font-weight: 600;
}

.footer p {
  font-size: 14px;
  line-height: 1.8;
}

.footer ul {
  list-style: none;
}

.footer li {
  margin-bottom: var(--space-3);
}

.footer li a {
  color: rgba(255,255,255,0.5);
  font-size: 14px;
  transition: color 0.3s;
}

.footer li a:hover {
  color: var(--gold-500);
}

.footer-bottom {
  text-align: center;
  padding-top: 40px;
  margin-top: 60px;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 13px;
}

/* ==================== 滚动显示动画 ==================== */
.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;
}

/* 脉冲动画 */
.float-btn-phone {
  background: linear-gradient(135deg, var(--gold-500), var(--gold-600));
  color: #fff;
  animation: pulse 2s infinite;
}

.float-btn-phone::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid var(--gold-500);
  animation: pulseRing 2s infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

@keyframes pulseRing {
  0% { transform: scale(1); opacity: 1; }
  100% { transform: scale(1.5); opacity: 0; }
}

.float-btn-phone:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 24px rgba(201,169,98,0.4);
  animation: none;
}

.float-btn-phone:hover::before {
  animation: none;
}

.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);
}

/* ==================== 导航栏当前页标识 ==================== */
.nav-links a.active {
  color: var(--gold-500);
}

.nav-links a.active::after {
  width: 100%;
}

/* ==================== 页面加载动画 ==================== */
.page-loader {
  position: fixed;
  inset: 0;
  background: var(--navy-900);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.page-loader.hidden {
  opacity: 0;
  visibility: hidden;
}

.loader-content {
  text-align: center;
}

.loader-line {
  width: 80px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold-500), transparent);
  margin: 20px auto;
  animation: loader 1.5s infinite;
}

@keyframes loader {
  0% { transform: scaleX(0); opacity: 0; }
  50% { transform: scaleX(1); opacity: 1; }
  100% { transform: scaleX(0); opacity: 0; }
}

/* ==================== 自定义弹窗 ==================== */
.custom-modal {
  position: fixed;
  inset: 0;
  background: rgba(10, 22, 40, 0.8);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.custom-modal.show {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: #fff;
  border-radius: 16px;
  padding: 48px 40px;
  text-align: center;
  max-width: 400px;
  width: 90%;
  box-shadow: 0 24px 80px rgba(0,0,0,0.2);
  transform: scale(0.9) translateY(20px);
  transition: all 0.3s ease;
}

.custom-modal.show .modal-content {
  transform: scale(1) translateY(0);
}

.modal-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  font-weight: 700;
  margin: 0 auto 24px;
}

.custom-modal.success .modal-icon {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff;
}

.custom-modal.error .modal-icon {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: #fff;
}

.custom-modal.warning .modal-icon {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #fff;
}

.modal-content h3 {
  font-family: var(--font-display);
  font-size: 24px;
  color: var(--navy-900);
  margin-bottom: 12px;
  font-weight: 600;
}

.modal-content p {
  color: var(--gray-700);
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 28px;
}

.modal-content button {
  background: linear-gradient(135deg, var(--gold-500), var(--gold-600));
  color: #fff;
  border: none;
  padding: 14px 48px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.modal-content button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(201,169,98,0.4);
}

/* 弹窗按钮样式 */
.modal-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 32px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  border: none;
}

.modal-btn-primary {
  background: linear-gradient(135deg, var(--gold-500), var(--gold-600));
  color: #fff;
}

.modal-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(201,169,98,0.4);
}

.modal-btn-secondary {
  background: var(--gray-100);
  color: var(--gray-700);
}

.modal-btn-secondary:hover {
  background: var(--gray-200);
}

/* 查看全部律师团队按钮 */
.btn-team-all {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 40px;
  background: linear-gradient(135deg, var(--navy-700), var(--navy-800));
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  border-radius: 50px;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(26,54,93,0.3);
  transition: all 0.3s ease;
}

.btn-team-all:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(26,54,93,0.4);
}

.btn-team-all svg {
  transition: transform 0.3s ease;
}

.btn-team-all:hover svg {
  transform: translateX(4px);
}

/* ==================== 响应式 ==================== */
@media (max-width: 1024px) {
  .nav {
    padding: 0 40px;
  }
  
  .nav-links {
    gap: 32px;
  }
  
  .hero h1 {
    font-size: 42px;
  }
  
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 60px;
  }
  
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .team-card {
    grid-template-columns: 180px 1fr;
    gap: 32px;
  }
  
  .team-avatar {
    width: 180px;
  }
  
  .section {
    padding: 80px 40px;
  }
}

@media (max-width: 768px) {
  .nav {
    padding: 0 20px;
    height: 64px;
  }
  
  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--navy-900);
    flex-direction: column;
    padding: 24px;
    gap: 20px;
  }
  
  .nav-links.show {
    display: flex;
  }
  
  .nav-phone {
    display: none;
  }
  
  .mobile-toggle {
    display: flex;
  }
  
  .hero {
    padding: 100px 20px 60px;
  }
  
  .hero h1 {
    font-size: 32px;
  }
  
  .hero-stats {
    flex-wrap: wrap;
    gap: 32px;
  }
  
  .hero-stat .num {
    font-size: 32px;
  }
  
  .btn-ghost {
    margin-left: 0;
    margin-top: 16px;
  }
  
  .section {
    padding: 60px 20px;
  }
  
  .section-title {
    font-size: 28px;
  }
  
  .services-grid {
    grid-template-columns: 1fr;
  }
  
  .about-highlights {
    grid-template-columns: 1fr;
  }
  
  .team-card {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .team-avatar {
    width: 160px;
    margin: 0 auto;
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
  }
  
  .form-row {
    grid-template-columns: 1fr;
  }
  
  .footer {
    padding: 60px 20px 30px;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}
