/* ============================================
   内页通用样式 - 关于我们/业务/案例/团队/联系
   ============================================ */

/* ---------- 关于我们 - 律所介绍 ---------- */
.about-section {
  padding: 80px 0;
  background: var(--white);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 64px;
  align-items: stretch;
}

.about-text .eyebrow {
  font-size: 13px;
  color: var(--primary);
  font-weight: 600;
  letter-spacing: 4px;
  margin-bottom: 12px;
}

.about-text h2 {
  font-family: "STSong", "SimSun", serif;
  font-size: 36px;
  color: var(--dark);
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 24px;
}

.about-text h2 .accent {
  color: var(--primary);
}

.about-text .lead {
  font-size: 17px;
  line-height: 1.9;
  color: var(--text);
  margin-bottom: 20px;
  padding-left: 16px;
  border-left: 4px solid var(--primary);
}

.about-text p {
  font-size: 15px;
  color: var(--text-light);
  line-height: 1.9;
  margin-bottom: 16px;
}

.about-image {
  position: relative;
  height: 100%;
  min-height: 600px;
}

.about-image .main-img {
  width: 100%;
  height: 100%;
  min-height: 600px;
  border-radius: 8px;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}
.about-image .main-img.has-photo {
  background: transparent;
  padding: 0;
}
.about-image .main-img.has-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 8px;
}

.about-image .badge {
  position: absolute;
  bottom: -24px;
  left: -24px;
  background: var(--white);
  padding: 20px 28px;
  border-radius: 8px;
  box-shadow: var(--shadow-lg);
  border-top: 3px solid var(--primary);
}

.about-image .badge .num {
  font-family: "STSong", "SimSun", serif;
  font-size: 40px;
  color: var(--primary);
  font-weight: 700;
  line-height: 1;
}

.about-image .badge .label {
  font-size: 13px;
  color: var(--text-light);
  margin-top: 4px;
}

/* ---------- 理念价值观 ---------- */
.philosophy {
  background: var(--bg-light);
  padding: 80px 0;
}

.philosophy-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.philosophy-card {
  background: var(--white);
  padding: 40px 32px;
  border-radius: 8px;
  text-align: center;
  position: relative;
  overflow: hidden;
  border-top: 4px solid var(--primary);
  transition: var(--transition);
}

.philosophy-card:nth-child(2) { border-top-color: var(--gold); }
.philosophy-card:nth-child(3) { border-top-color: var(--primary-dark); }

.philosophy-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.philosophy-card .num {
  font-family: "STSong", "SimSun", serif;
  font-size: 56px;
  color: var(--primary);
  opacity: 0.15;
  font-weight: 700;
  position: absolute;
  top: 16px;
  right: 24px;
  line-height: 1;
}

.philosophy-card .icon {
  width: 72px;
  height: 72px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  margin: 0 auto 24px;
}

.philosophy-card:nth-child(2) .icon {
  background: linear-gradient(135deg, var(--gold) 0%, #b8964f 100%);
}

.philosophy-card h3 {
  font-family: "STSong", "SimSun", serif;
  font-size: 24px;
  color: var(--dark);
  margin-bottom: 16px;
}

.philosophy-card .quote {
  font-family: "STSong", "SimSun", serif;
  font-size: 17px;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 16px;
  padding: 12px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.philosophy-card p {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.9;
}

/* ---------- 办公环境 ---------- */
.office {
  padding: 80px 0;
  background: var(--white);
}

.office-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  margin-bottom: 48px;
}

.office-text h2 {
  font-family: "STSong", "SimSun", serif;
  font-size: 36px;
  color: var(--dark);
  margin-bottom: 24px;
}

.office-text p {
  font-size: 15px;
  color: var(--text-light);
  line-height: 1.9;
  margin-bottom: 16px;
}

.office-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 24px;
}

.office-feature {
  display: flex;
  gap: 12px;
  padding: 12px;
  background: var(--bg-light);
  border-radius: 6px;
}

.office-feature .ico {
  width: 36px;
  height: 36px;
  background: var(--primary);
  color: var(--white);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.office-feature .info strong {
  display: block;
  font-size: 14px;
  color: var(--dark);
  margin-bottom: 2px;
}

.office-feature .info span {
  font-size: 12px;
  color: var(--text-light);
}

.office-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.office-gallery .img {
  height: 180px;
  border-radius: 8px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-family: "STSong", "SimSun", serif;
  font-size: 18px;
  font-weight: 600;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.office-gallery .img-1 {
  background: linear-gradient(135deg, #b12a2a 0%, #8b0000 100%);
}
.office-gallery .img-2 {
  background: linear-gradient(135deg, #c9a961 0%, #8b6914 100%);
}
.office-gallery .img-3 {
  background: linear-gradient(135deg, #6b6b6b 0%, #2c2c2c 100%);
}
.office-gallery .img-4 {
  background: linear-gradient(135deg, #c8161d 0%, #b12a2a 100%);
}
.office-gallery .img-5 {
  background: linear-gradient(135deg, #5a5a5a 0%, #1a1a1a 100%);
}
.office-gallery .img-6 {
  background: linear-gradient(135deg, #a04040 0%, #600000 100%);
}

.office-gallery .img:hover {
  transform: scale(1.03);
  transition: var(--transition);
}

/* ---------- 执业原则 ---------- */
.principles {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  color: var(--white);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.principles::before {
  content: '守';
  position: absolute;
  bottom: -40px;
  left: -40px;
  font-family: "STSong", "SimSun", serif;
  font-size: 280px;
  color: rgba(255,255,255,0.04);
  font-weight: 700;
}

.principles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  position: relative;
  z-index: 1;
}

.principle-card {
  text-align: center;
  padding: 32px 20px;
  border-right: 1px solid rgba(255,255,255,0.15);
}

.principle-card:last-child {
  border-right: none;
}

.principle-card .word {
  font-family: "STSong", "SimSun", serif;
  font-size: 60px;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 12px;
  line-height: 1;
}

.principle-card h3 {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 16px;
  letter-spacing: 4px;
}

.principle-card p {
  font-size: 14px;
  color: rgba(255,255,255,0.85);
  line-height: 1.8;
}

/* ---------- 发展历程时间线 ---------- */
.timeline-section {
  padding: 80px 0;
  background: var(--bg-light);
}

.timeline {
  position: relative;
  max-width: 880px;
  margin: 0 auto;
  padding: 32px 0;
}

.timeline::before {
  content: '';
  position: absolute;
  left: calc(160px + 24px);
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--primary) 0%, var(--gold) 100%);
}

.timeline-item {
  display: flex;
  gap: 48px;
  align-items: center;
  margin-bottom: 48px;
  position: relative;
}

.timeline-item:nth-child(even) {
  flex-direction: row-reverse;
}

.timeline-year {
  flex: 0 0 160px;
  text-align: center;
  font-family: "STSong", "SimSun", serif;
  font-size: 36px;
  font-weight: 700;
  color: var(--primary);
  background: var(--white);
  padding: 16px;
  border-radius: 8px;
  border: 2px solid var(--primary);
  box-shadow: var(--shadow-sm);
}

.timeline-content {
  flex: 1;
  background: var(--white);
  padding: 24px;
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
  border-left: 4px solid var(--gold);
}

.timeline-content h4 {
  font-size: 18px;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 8px;
}

.timeline-content p {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.7;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: calc(160px + 24px);
  top: 50%;
  transform: translate(-50%, -50%);
  width: 16px;
  height: 16px;
  background: var(--gold);
  border: 3px solid var(--white);
  border-radius: 50%;
  box-shadow: 0 0 0 2px var(--gold);
  z-index: 2;
}
.timeline-item:nth-child(even)::before {
  left: auto;
  right: calc(160px + 24px);
}

/* ---------- 业务介绍 ---------- */
.practice-hero {
  background: var(--white);
  padding: 80px 0;
  border-bottom: 1px solid var(--border);
}

.practice-hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 64px;
  align-items: center;
}

.practice-hero-text .eyebrow {
  font-size: 13px;
  color: var(--primary);
  font-weight: 600;
  letter-spacing: 4px;
  margin-bottom: 12px;
}

.practice-hero-text h2 {
  font-family: "STSong", "SimSun", serif;
  font-size: 42px;
  color: var(--dark);
  margin-bottom: 20px;
  line-height: 1.3;
}

.practice-hero-text h2 .accent {
  color: var(--primary);
}

.practice-hero-text p {
  font-size: 15px;
  color: var(--text-light);
  line-height: 1.9;
  margin-bottom: 16px;
}

.practice-hero-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.ph-stat {
  padding: 24px;
  background: linear-gradient(135deg, var(--bg-light) 0%, var(--white) 100%);
  border-radius: 8px;
  text-align: center;
  border-left: 4px solid var(--primary);
}

.ph-stat .n {
  font-family: "STSong", "SimSun", serif;
  font-size: 36px;
  color: var(--primary);
  font-weight: 700;
  line-height: 1;
}

.ph-stat .l {
  font-size: 13px;
  color: var(--text-light);
  margin-top: 8px;
}

/* 业务分类 */
.practice-categories {
  padding: 80px 0;
  background: var(--bg-light);
}

.category-block {
  margin-bottom: 80px;
}

.category-block:last-child {
  margin-bottom: 0;
}

.category-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 32px;
  padding-bottom: 20px;
  border-bottom: 2px solid var(--primary);
}

.category-num {
  font-family: "STSong", "SimSun", serif;
  font-size: 48px;
  font-weight: 700;
  color: var(--primary);
  background: var(--white);
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid var(--primary);
  flex-shrink: 0;
}

.category-header .title-area h3 {
  font-family: "STSong", "SimSun", serif;
  font-size: 28px;
  color: var(--dark);
  margin-bottom: 4px;
}

.category-header .title-area p {
  font-size: 14px;
  color: var(--text-light);
}

.category-items {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.cat-item {
  background: var(--white);
  padding: 28px;
  border-radius: 8px;
  border-left: 4px solid var(--gold);
  transition: var(--transition);
}

.cat-item:hover {
  border-left-color: var(--primary);
  box-shadow: var(--shadow-md);
  transform: translateX(4px);
}

.cat-item h4 {
  font-family: "STSong", "SimSun", serif;
  font-size: 18px;
  color: var(--dark);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.cat-item h4 .badge {
  font-family: "PingFang SC", sans-serif;
  background: var(--primary);
  color: var(--white);
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 10px;
  font-weight: 400;
}

.cat-item p {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.8;
}

.cat-item ul {
  margin-top: 12px;
  padding-left: 4px;
}

.cat-item ul li {
  font-size: 13px;
  color: var(--text-light);
  line-height: 1.9;
  position: relative;
  padding-left: 18px;
}

.cat-item ul li::before {
  content: '◆';
  position: absolute;
  left: 0;
  color: var(--primary);
  font-size: 8px;
  top: 8px;
}

/* ---------- 案例页 ---------- */
.cases-section {
  padding: 80px 0;
  background: var(--white);
}

.case-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-bottom: 48px;
}

.case-filter button {
  padding: 10px 24px;
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: 24px;
  cursor: pointer;
  font-size: 14px;
  color: var(--text);
  transition: var(--transition);
}

.case-filter button:hover,
.case-filter button.active {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

.cases-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.case-item {
  background: var(--white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid var(--border);
}

.case-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
}

.case-head {
  padding: 24px 28px;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  color: var(--white);
  position: relative;
}

.case-head .tag {
  display: inline-block;
  background: var(--gold);
  color: var(--white);
  font-size: 12px;
  padding: 4px 12px;
  border-radius: 12px;
  margin-bottom: 12px;
  font-weight: 600;
}

.case-head h3 {
  font-family: "STSong", "SimSun", serif;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.4;
}

.case-body-new {
  padding: 24px 28px;
}

.case-body-new .meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px dashed var(--border);
  font-size: 13px;
  color: var(--text-light);
}

.case-body-new .meta span i {
  color: var(--primary);
  margin-right: 4px;
}

.case-body-new .desc {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.9;
  margin-bottom: 16px;
}

.case-body-new .result-bar {
  background: linear-gradient(90deg, rgba(177,42,42,0.05) 0%, rgba(201,169,97,0.05) 100%);
  border-left: 3px solid var(--primary);
  padding: 12px 16px;
  border-radius: 4px;
  font-size: 13px;
  color: var(--text);
}

.case-body-new .result-bar strong {
  color: var(--primary);
  font-weight: 600;
}

/* ---------- 团队页 ---------- */
.team-section {
  padding: 80px 0;
  background: var(--white);
}

.team-categories {
  margin-bottom: 48px;
}

.team-cat-title {
  font-family: "STSong", "SimSun", serif;
  font-size: 28px;
  color: var(--dark);
  margin-bottom: 24px;
  padding-left: 20px;
  border-left: 4px solid var(--primary);
  position: relative;
}

.team-cat-title::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 60px;
  height: 2px;
  background: var(--gold);
}

.team-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 64px;
}

.lawyer-card {
  background: var(--white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid var(--border);
  text-align: center;
  grid-column: span 1;
  min-width: 0;
}

.lawyer-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

.lawyer-photo {
  height: 320px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.6);
  overflow: hidden;
}

.lawyer-photo.partner {
  background: linear-gradient(135deg, #8b0000 0%, #b12a2a 100%);
}
.lawyer-photo.senior {
  background: linear-gradient(135deg, #b12a2a 0%, #c8161d 100%);
}
.lawyer-photo.lawyer {
  background: linear-gradient(135deg, #c9a961 0%, #8b6914 100%);
}

.lawyer-photo .avatar {
  font-family: "STSong", "SimSun", serif;
  font-size: 80px;
  font-weight: 700;
  letter-spacing: 4px;
}

.lawyer-photo .tag {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--white);
  color: var(--primary);
  font-size: 12px;
  padding: 4px 12px;
  border-radius: 12px;
  font-weight: 600;
}

.lawyer-photo .quote-icon {
  position: absolute;
  bottom: 16px;
  left: 16px;
  font-family: "STSong", "SimSun", serif;
  font-size: 48px;
  color: rgba(255,255,255,0.2);
  line-height: 1;
}

.lawyer-info {
  padding: 24px;
}

.lawyer-info .name {
  font-family: "STSong", "SimSun", serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 4px;
}

.lawyer-info .title {
  font-size: 13px;
  color: var(--primary);
  font-weight: 600;
  letter-spacing: 1px;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px dashed var(--border);
}

.lawyer-info .specialty {
  font-size: 13px;
  color: var(--text-light);
  line-height: 1.9;
  text-align: left;
  min-height: 100px;
}

.lawyer-info .meta {
  display: flex;
  justify-content: space-between;
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px dashed var(--border);
  font-size: 12px;
  color: var(--text-light);
}

.lawyer-info .meta span i {
  color: var(--primary);
  margin-right: 4px;
}

/* ---------- 联系页 ---------- */
.contact-section {
  padding: 80px 0;
  background: var(--white);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
}

.contact-info {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  color: var(--white);
  padding: 48px;
  border-radius: 8px;
  position: relative;
  overflow: hidden;
}

.contact-info::before {
  content: '联';
  position: absolute;
  bottom: -40px;
  right: -20px;
  font-family: "STSong", "SimSun", serif;
  font-size: 280px;
  color: rgba(255,255,255,0.05);
  font-weight: 700;
  line-height: 1;
}

.contact-info h2 {
  font-family: "STSong", "SimSun", serif;
  font-size: 30px;
  margin-bottom: 12px;
  position: relative;
}

.contact-info .lead {
  font-size: 14px;
  color: rgba(255,255,255,0.85);
  margin-bottom: 32px;
  position: relative;
  line-height: 1.8;
}

.contact-list {
  position: relative;
}

.contact-item {
  display: flex;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid rgba(255,255,255,0.15);
}

.contact-item:last-child {
  border-bottom: none;
}

.contact-item .ico {
  width: 48px;
  height: 48px;
  background: rgba(255,255,255,0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--gold);
  flex-shrink: 0;
}

.contact-item .info strong {
  display: block;
  font-size: 15px;
  color: var(--gold);
  margin-bottom: 6px;
  letter-spacing: 1px;
}

.contact-item .info p {
  font-size: 15px;
  line-height: 1.6;
  color: rgba(255,255,255,0.95);
}

.contact-form-wrap {
  background: var(--bg-light);
  padding: 48px;
  border-radius: 8px;
}

.contact-form-wrap h2 {
  font-family: "STSong", "SimSun", serif;
  font-size: 30px;
  color: var(--dark);
  margin-bottom: 8px;
}

.contact-form-wrap .lead {
  font-size: 14px;
  color: var(--text-light);
  margin-bottom: 32px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 14px;
  color: var(--text);
  margin-bottom: 6px;
  font-weight: 500;
}

.form-group label .req {
  color: var(--primary);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 14px;
  background: var(--white);
  font-family: inherit;
  transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(177, 42, 42, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-submit {
  width: 100%;
  padding: 14px;
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: 4px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}

.form-submit:hover {
  background: var(--primary-light);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(177, 42, 42, 0.3);
}

/* 地图 */
.map-section {
  padding: 0 0 80px;
  background: var(--white);
}

.map-wrap {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
}

.map-wrap iframe {
  width: 100%;
  height: 420px;
  border: none;
  display: block;
}

/* 交通指引 */
.transport {
  padding: 80px 0;
  background: var(--bg-light);
}

.transport-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 32px;
}

.transport-card {
  background: var(--white);
  padding: 32px 24px;
  border-radius: 8px;
  text-align: center;
  border-top: 3px solid var(--primary);
  transition: var(--transition);
}

.transport-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.transport-card .ico {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin: 0 auto 20px;
}

.transport-card h3 {
  font-family: "STSong", "SimSun", serif;
  font-size: 20px;
  color: var(--dark);
  margin-bottom: 12px;
}

.transport-card p {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.8;
}

/* ---------- FAQ 常见问题 ---------- */
.faq-section {
  padding: 80px 0;
  background: var(--white);
}

.faq-list {
  max-width: 880px;
  margin: 0 auto;
}

.faq-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 6px;
  margin-bottom: 12px;
  overflow: hidden;
  transition: var(--transition);
}

.faq-item.open {
  border-color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.faq-q {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  cursor: pointer;
  background: var(--bg-light);
  font-weight: 600;
  font-size: 15px;
  color: var(--dark);
}

.faq-item.open .faq-q {
  background: var(--primary);
  color: var(--white);
}

.faq-q .num {
  width: 28px;
  height: 28px;
  background: var(--primary);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  flex-shrink: 0;
}

.faq-item.open .faq-q .num {
  background: var(--gold);
}

.faq-q .arrow {
  margin-left: auto;
  transition: transform 0.3s ease;
}

.faq-item.open .faq-q .arrow {
  transform: rotate(180deg);
}

.faq-a {
  display: none;
  padding: 20px 24px;
  background: var(--white);
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.9;
}

.faq-item.open .faq-a {
  display: block;
}

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
  .about-grid,
  .office-content,
  .practice-hero-grid,
  .contact-grid { grid-template-columns: 1fr; }
  .philosophy-cards,
  .principles-grid,
  .transport-grid { grid-template-columns: repeat(2, 1fr); }
  .team-list,
  .cases-list { grid-template-columns: 1fr; }
  .category-items { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .principles-grid,
  .philosophy-cards,
  .transport-grid { grid-template-columns: 1fr; }
  .principle-card { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.15); padding: 24px 0; }
  .office-features { grid-template-columns: 1fr; }
  .office-gallery { grid-template-columns: repeat(2, 1fr); }
  .timeline::before { left: 20px; }
  .timeline-item,
  .timeline-item:nth-child(even) {
    display: block;
    padding-left: 48px;
  }
  .timeline-item:nth-child(even) .timeline-year { order: 0; }
  .timeline-item:nth-child(even) .timeline-content { order: 0; }
  .timeline-year { margin-bottom: 12px; }
  .timeline-item::before { left: 20px; top: 24px; transform: translate(-50%, 0); }
  .form-row { grid-template-columns: 1fr; }
  .contact-info, .contact-form-wrap { padding: 32px 24px; }
}
/* ---------- 地图占位 ---------- */
.map-placeholder {
  position: relative;
  width: 100%;
  height: 420px;
  background: linear-gradient(135deg, #e8e4dc 0%, #d8d4cc 100%);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.map-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 40%, rgba(177, 42, 42, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 70% 60%, rgba(201, 169, 97, 0.1) 0%, transparent 50%);
}

.map-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.4) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.4) 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: 0.6;
}

.map-roads .road {
  position: absolute;
  background: rgba(255,255,255,0.7);
  box-shadow: 0 0 0 1px rgba(0,0,0,0.06);
}
.map-roads .road-1 { top: 0; left: 20%; width: 8px; height: 100%; }
.map-roads .road-2 { top: 30%; left: 0; width: 100%; height: 6px; }
.map-roads .road-3 { top: 0; right: 25%; width: 6px; height: 100%; }
.map-roads .road-4 { top: 70%; left: 0; width: 100%; height: 8px; }

.map-pin {
  position: relative;
  z-index: 2;
}

.pin-marker {
  background: var(--white);
  padding: 20px 28px;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
  display: flex;
  align-items: center;
  gap: 16px;
  border-left: 5px solid var(--primary);
  position: relative;
}

.pin-marker::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 32px;
  width: 0;
  height: 0;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-top: 10px solid var(--white);
}

.pin-icon {
  font-size: 36px;
  color: var(--primary);
  line-height: 1;
}

.pin-text strong {
  display: block;
  font-family: "STSong", "SimSun", serif;
  font-size: 18px;
  color: var(--dark);
  margin-bottom: 4px;
  font-weight: 700;
}

.pin-text span {
  font-size: 13px;
  color: var(--text-light);
}

/* ============================================
   预约弹窗
   ============================================ */
.booking-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.65);
  align-items: center;
  justify-content: center;
  padding: 20px;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  animation: modalFadeIn 0.25s ease;
}

.booking-modal.active {
  display: flex;
}

@keyframes modalFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes modalSlideUp {
  from { opacity: 0; transform: translateY(40px) scale(0.96); }
  to   { opacity: 1; transform: translateY(0)    scale(1); }
}

.booking-modal-content {
  background: #fff;
  border-radius: 14px;
  max-width: 580px;
  width: 100%;
  max-height: 92vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.4);
  animation: modalSlideUp 0.35s cubic-bezier(0.2, 0.9, 0.3, 1.2);
  position: relative;
}

.booking-modal-header {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  color: #fff;
  padding: 22px 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.booking-modal-header::before {
  content: '';
  position: absolute;
  top: -50%; right: -10%;
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(201, 169, 97, 0.25) 0%, transparent 60%);
  border-radius: 50%;
}

.booking-modal-header h3 {
  font-family: "STSong", "SimSun", serif;
  font-size: 22px;
  font-weight: 700;
  margin: 0;
  position: relative;
  letter-spacing: 1px;
}

.booking-modal-header h3 small {
  display: block;
  font-family: "PingFang SC", sans-serif;
  font-size: 12px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.75);
  margin-top: 4px;
  letter-spacing: 1px;
}

.booking-modal-close {
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: #fff;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.booking-modal-close:hover {
  background: rgba(255, 255, 255, 0.28);
  transform: rotate(90deg);
}

.booking-modal-body {
  padding: 28px 32px 32px;
  overflow-y: auto;
}

.modal-lead {
  font-size: 14px;
  color: var(--text-light);
  background: linear-gradient(90deg, rgba(177, 42, 42, 0.05) 0%, transparent 100%);
  border-left: 3px solid var(--primary);
  padding: 10px 14px;
  border-radius: 4px;
  margin-bottom: 24px;
  line-height: 1.6;
}

.booking-modal-body .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 0;
}

.booking-modal-body .form-group {
  margin-bottom: 16px;
}

.booking-modal-body label {
  display: block;
  font-size: 13px;
  color: var(--text);
  margin-bottom: 6px;
  font-weight: 500;
}

.booking-modal-body label .req {
  color: var(--primary);
  margin-left: 2px;
}

.booking-modal-body input,
.booking-modal-body select,
.booking-modal-body textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 14px;
  background: #fff;
  font-family: inherit;
  transition: var(--transition);
  color: var(--text);
}

.booking-modal-body input:focus,
.booking-modal-body select:focus,
.booking-modal-body textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(177, 42, 42, 0.1);
}

.booking-modal-body textarea {
  resize: vertical;
  min-height: 90px;
  max-height: 200px;
}

.form-submit {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  letter-spacing: 2px;
  margin-top: 8px;
}

.form-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(177, 42, 42, 0.3);
}

.form-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.form-agree {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 12px;
  color: var(--text-light);
  margin-top: 12px;
  line-height: 1.6;
}

.form-agree input[type="checkbox"] {
  width: auto;
  margin-top: 2px;
  flex-shrink: 0;
}

.form-agree a {
  color: var(--primary);
  text-decoration: underline;
}

/* ---------- 移动端适配 ---------- */
@media (max-width: 600px) {
  .booking-modal { padding: 12px; align-items: flex-end; }
  .booking-modal-content { max-height: 95vh; border-radius: 14px 14px 0 0; }
  .booking-modal-header { padding: 18px 20px; }
  .booking-modal-header h3 { font-size: 18px; }
  .booking-modal-body { padding: 20px; }
  .booking-modal-body .form-row { grid-template-columns: 1fr; gap: 0; }
}

/* ============================================
   律师真实照片支持（覆盖原有的文字头像）
   ============================================ */
.lawyer-photo.has-photo {
  background: var(--bg-light);
  padding: 0;
}

.lawyer-photo.has-photo .avatar {
  display: none;                  /* 隐藏文字头像 */
}

.lawyer-photo .photo-img {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  z-index: 0;
}

.lawyer-photo.has-photo .tag,
.lawyer-photo.has-photo .quote-icon {
  z-index: 2;
}

/* 首页 team-photo 同样支持图片 */
.team-photo.has-photo {
  background: var(--bg-light);
  padding: 0;
}

.team-photo.has-photo .placeholder {
  display: none;
}

.team-photo .photo-img {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  z-index: 0;
}

.team-photo.has-photo::after {
  background: linear-gradient(to top, rgba(177,42,42,0.4), transparent 60%);
}

.team-photo.has-photo .tag {
  z-index: 2;
}
