/* ========================================
   北京市炜衡（密云区）律师事务所 - 统一设计系统
   完全对齐总所官网风格
   ======================================== */

/* ==================== CSS Variables ==================== */
:root {
  /* 品牌色彩体系 */
  --color-brand: #C4935E;
  --color-brand-dark: #A07A4D;
  --color-brand-light: #D4B07A;
  --color-accent: #D4B07A;
  --color-accent-light: #E5C899;
  
  --color-bg-dark: #3E3E3F;
  --color-bg-secondary: #555555;
  --color-text-primary: #333333;
  --color-text-secondary: #666666;
  --color-text-light: #999999;
  
  --color-bg-white: #ffffff;
  --color-bg-light: #F7F7F7;
  --color-border: #e4e7ed;
  
  /* 排版系统 */
  --font-family-sans: -apple-system, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", sans-serif;
  --font-family-serif: "Noto Serif SC", "Songti SC", "SimSun", serif;
  
  --font-size-h1: 48px;
  --font-size-h2: 36px;
  --font-size-h3: 30px;
  --font-size-h4: 24px;
  --font-size-body: 15px;
  --font-size-small: 14px;
  --font-size-tiny: 12px;
  
  --line-height-tight: 1.4;
  --line-height-normal: 1.6;
  --line-height-relaxed: 1.8;
  
  /* 布局系统 */
  --container-max-width: 1200px;
  --section-spacing: 100px;
  --section-spacing-mobile: 60px;
  
  /* 圆角 */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  
  /* 阴影 */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.12);
  --shadow-xl: 0 20px 50px rgba(0, 0, 0, 0.15);
  
  /* 过渡 */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  
  /* Z-index */
  --z-dropdown: 1000;
  --z-sticky: 1020;
  --z-fixed: 1030;
  --z-modal-backdrop: 1040;
  --z-modal: 1050;
  --z-popover: 1060;
  --z-tooltip: 1070;
  --z-chat: 1080;
}

/* ==================== Reset & Base ==================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-family-sans);
  font-size: var(--font-size-body);
  line-height: var(--line-height-relaxed);
  color: var(--color-text-primary);
  background-color: var(--color-bg-white);
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul, ol {
  list-style: none;
}

button, input, textarea, select {
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
}

/* ==================== Layout ==================== */
.container {
  width: 100%;
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0;
}

.section {
  padding: var(--section-spacing) 0;
}

.section--light {
  background-color: var(--color-bg-light);
}

.section--honors-page {
  padding-bottom: 0;
}

.section--dark {
  background-color: var(--color-bg-dark);
  color: var(--color-bg-white);
}

.section__header {
  text-align: center;
  margin-bottom: 50px;
  margin-top: 50px;
}

.section__tag {
  display: inline-block;
  padding: 6px 16px;
  font-size: var(--font-size-small);
  font-weight: 500;
  color: var(--color-brand);
  background: rgba(196, 147, 94, 0.1);
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
}

.section__title {
  font-size: var(--font-size-h3);
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--color-text-primary);
}

.section__desc {
  font-size: var(--font-size-body);
  color: var(--color-text-secondary);
  max-width: 700px;
  margin: 0 auto;
}

/* ==================== Grid System ==================== */
.grid {
  display: grid;
  gap: 30px;
}

.grid--2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid--3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid--4 {
  grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 1024px) {
  .grid--4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .grid--2,
  .grid--3,
  .grid--4 {
    grid-template-columns: 1fr;
  }
  
  :root {
    --font-size-body: 16px;
    --font-size-small: 15px;
    --font-size-tiny: 13px;
    --section-spacing: 64px;
  }

  body {
    font-size: var(--font-size-body);
  }

  .container {
    padding: 0 16px;
  }

  .grid {
    gap: 20px;
  }

  .section__header {
    margin-bottom: 36px;
  }
  
  .section__title {
    font-size: 30px;
  }
  
  h1 {
    font-size: 34px;
  }
}

/* ==================== Typography ==================== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-family-sans);
  font-weight: 700;
  line-height: var(--line-height-tight);
  color: var(--color-text-primary);
}

h1 { font-size: var(--font-size-h1); letter-spacing: 0; }
h2 { font-size: var(--font-size-h2); letter-spacing: 0; }
h3 { font-size: var(--font-size-h3); letter-spacing: 0; }
h4 { font-size: var(--font-size-h4); }

/* ==================== Buttons ==================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 32px;
  font-size: var(--font-size-body);
  font-weight: 500;
  text-align: center;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-normal);
  border: 1px solid transparent;
  white-space: nowrap;
}

.btn--primary {
  background-color: var(--color-brand);
  color: white;
  border-color: var(--color-brand);
}

.btn--primary:hover {
  background-color: var(--color-brand-dark);
  border-color: var(--color-brand-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn--outline {
  background-color: transparent;
  color: var(--color-brand);
  border-color: var(--color-brand);
}

.btn--outline:hover {
  background-color: var(--color-brand);
  color: white;
  transform: translateY(-2px);
}

.btn--white {
  background-color: white;
  color: var(--color-brand);
  border-color: white;
}

.btn--white:hover {
  background-color: var(--color-brand);
  color: white;
  border-color: var(--color-brand);
}

.btn__group {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* 链接式按钮 - 文字+箭头 */
.btn-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--color-brand);
  font-size: var(--font-size-small);
  font-weight: 500;
  transition: all var(--transition-fast);
}

.btn-link:hover {
  gap: 10px;
}

.btn-link svg {
  width: 14px;
  height: 14px;
  transition: transform var(--transition-fast);
}

.btn-link:hover svg {
  transform: translateX(4px);
}

/* ==================== Header ==================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: white;
  z-index: var(--z-fixed);
  transition: all var(--transition-normal);
}

.header.scrolled {
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  padding: 0;
  transition: height var(--transition-normal);
}

.header.scrolled .container {
  height: 60px;
}

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

.logo__img {
  height: 40px;
  width: auto;
}

.logo__text {
  display: flex;
  flex-direction: column;
  color: var(--color-text-primary);
  font-weight: 600;
  font-size: 16px;
}

.logo__text--small {
  font-size: 11px;
  font-weight: 400;
  color: var(--color-text-light);
}

.nav__list {
  display: flex;
  gap: 32px;
  align-items: center;
}

.nav__link {
  color: var(--color-text-primary);
  font-size: var(--font-size-body);
  font-weight: 500;
  line-height: 1;
  padding: 8px 0;
  position: relative;
  transition: color var(--transition-fast);
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-brand);
  transition: width var(--transition-normal);
}

.nav__link:hover,
.nav__link.active {
  color: var(--color-brand);
}

.nav__link:hover::after,
.nav__link.active::after {
  width: 100%;
}

.nav__item--dropdown {
  position: relative;
}

.nav__item--dropdown .nav__link::after {
  display: none;
}

.nav__item--dropdown .nav__link {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav__item--dropdown .nav__link svg {
  width: 12px;
  height: 12px;
  transition: transform var(--transition-fast);
}

.nav__item--dropdown:hover .nav__link svg {
  transform: rotate(180deg);
}

/* Dropdown Menu */
.nav__dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  min-width: 440px;
  background: white;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-fast);
  padding: 12px 0;
  z-index: var(--z-dropdown);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
}

.nav__item--dropdown:hover .nav__dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.nav__dropdown-item {
  padding: 10px 20px;
  color: var(--color-text-primary);
  font-size: var(--font-size-small);
  transition: all var(--transition-fast);
  text-align: left;
}

.nav__dropdown-item:hover {
  background: rgba(196, 147, 94, 0.1);
  color: var(--color-brand);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text-primary);
  transition: all var(--transition-fast);
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Nav */
.mobile-nav {
  display: none;
  position: fixed;
  top: 80px;
  left: 0;
  right: 0;
  bottom: 0;
  background: white;
  z-index: var(--z-fixed);
  overflow-y: auto;
  padding: 20px;
}

.mobile-nav.active {
  display: block;
}

.mobile-nav__list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.mobile-nav__link {
  display: block;
  padding: 16px 0;
  color: var(--color-text-primary);
  font-size: 16px;
  font-weight: 500;
  border-bottom: 1px solid var(--color-border);
  transition: color var(--transition-fast);
}

.mobile-nav__link:hover,
.mobile-nav__link.active {
  color: var(--color-brand);
}

@media (max-width: 1024px) {
  .nav {
    display: none;
  }
  
  .menu-toggle {
    display: flex;
  }
  
  .header .container {
    padding: 0 24px;
  }
}

@media (max-width: 768px) {
  .header .container,
  .header.scrolled .container {
    height: 72px;
    padding: 0 16px;
  }

  .logo__img {
    height: 42px;
  }

  .menu-toggle {
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    padding: 0;
  }

  .menu-toggle span {
    width: 26px;
  }

  .mobile-nav {
    top: 72px;
    padding: 8px 16px 28px;
  }

  .mobile-nav__link {
    padding: 18px 0;
    font-size: 17px;
  }
}

/* ==================== Hero Section ==================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: url("../assets/hero-bg.png") center / cover no-repeat;
  padding-top: 80px;
  overflow: hidden;
}
/* 半透明黑色遮罩，提升文字可读性 */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.5); 
  pointer-events: none;
}

.hero .container {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  justify-content: center;
}

.hero__content {
  max-width: 800px;
  margin-bottom: 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero__title {
  font-size: 56px;
  font-weight: 700;
  color: white;
  line-height: 1.2;
  margin-bottom: 24px;
  letter-spacing: 0;
  text-align: center;
}

.hero__title span {
  color: var(--color-brand-light);
}

.hero__subtitle {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.8;
  margin-bottom: 32px;
  text-align: center;
}

.hero__stats {
  display: flex;
  gap: 60px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero__stat {
  text-align: center;
}

.hero__stat-value {
  font-size: 48px;
  font-weight: 700;
  color: white;
  line-height: 1;
  margin-bottom: 8px;
}

.hero__stat-label {
  font-size: var(--font-size-small);
  color: rgba(255, 255, 255, 0.7);
}

@media (max-width: 768px) {
  .hero {
    min-height: 100svh;
    padding-top: 72px;
  }

  .hero__content {
    margin-bottom: 42px;
  }

  .hero__title {
    font-size: 38px;
    margin-bottom: 20px;
  }

  .hero__subtitle {
    font-size: 16px;
    line-height: 1.75;
    margin-bottom: 28px;
  }

  .hero .btn__group {
    width: 100%;
    max-width: 320px;
    justify-content: center;
  }

  .hero .btn {
    min-height: 48px;
    flex: 1 1 100%;
  }
  
  .hero__stats {
    width: 100%;
    gap: 20px;
    justify-content: space-between;
  }

  .hero__stat {
    flex: 1 1 0;
  }
  
  .hero__stat-value {
    font-size: 38px;
  }

  .hero__stat-label {
    font-size: 15px;
  }
}

/* ==================== Brand Section (总所背书) ==================== */
.brand-section {
  background: var(--color-bg-dark);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

/* 装饰性背景图案 */
.brand-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(ellipse at 20% 50%, rgba(22, 17, 12, 0.4) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 50%, rgba(196, 147, 94, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

/* .brand-section::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    repeating-linear-gradient(
      45deg,
      transparent,
      transparent 60px,
      rgba(255, 255, 255, 0.02) 60px,
      rgba(255, 255, 255, 0.02) 120px
    );
  pointer-events: none;
} */

.brand-section .grid--2 {
  align-items: center;
}

.brand-section__text {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1rem;
  line-height: 2;
}

.brand-section__title {
  color: white;
  text-align: left;
  position: relative;
}

.brand-section__title::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: var(--color-brand);
  margin-top: 16px;
}

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

.brand-stat {
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-lg);
  padding: 24px;
  text-align: center;
  transition: all var(--transition-normal);
  border-left: 3px solid var(--color-brand);
}

.brand-stat:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-4px);
}

.brand-stat__value {
  font-size: 42px;
  font-weight: 700;
  color: white;
  line-height: 1;
  margin-bottom: 8px;
}

.brand-stat__label {
  font-size: var(--font-size-small);
  color: rgba(255, 255, 255, 0.7);
}

@media (max-width: 768px) {
  .brand-section {
    padding: 64px 0;
  }

  .brand-section__title {
    font-size: 28px;
  }

  .brand-section__text {
    font-size: 16px;
    line-height: 1.9;
  }

  .brand-section__stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .brand-stat {
    padding: 22px 16px;
  }
  
  .brand-stat__value {
    font-size: 36px;
  }

  .brand-stat__label {
    font-size: 15px;
  }
}

/* ==================== Services Carousel (Horizontal Infinite) ==================== */
.services-carousel-section {
  background: var(--color-bg-light);
  padding: 100px 0;
}

.services-carousel {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 60px 40px;
}

.services-carousel__viewport {
  overflow: hidden;
  border-radius: var(--radius-lg);
}

.services-carousel__track {
  display: flex;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
}

.service-card {
  flex-shrink: 0;
  position: relative;
  width: 346px;
  min-height: 360px;
  background: linear-gradient(135deg, var(--color-bg-dark) 0%, var(--color-bg-secondary) 100%);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 32px 24px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  margin-right: 20px;
}

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

.service-card__bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
  background: linear-gradient(135deg, #3E3E3F 0%, #555555 100%);
}

.service-card__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.35;
  transition: opacity 0.4s ease;
}

.service-card:hover .service-card__bg img {
  opacity: 0.45;
}

.service-card__overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, rgba(62,62,63,0.1) 0%, rgba(62,62,63,0.85) 100%);
  z-index: 1;
  transition: background 0.4s ease;
}

.service-card:hover .service-card__overlay {
  background: linear-gradient(180deg, rgba(62,62,63,0.2) 0%, rgba(62,62,63,0.9) 100%);
}

.service-card__content {
  position: relative;
  z-index: 2;
}

.service-card__title {
  font-size: 20px;
  font-weight: 700;
  color: white;
  margin-bottom: 12px;
}

.service-card__desc {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.7;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.service-card .text-link-btn {
  color: #ffffff;
  font-size: 13px;
}

.service-card .text-link-btn:hover {
  color: rgba(255, 255, 255, 0.8);
}

/* Arrow buttons */
.services-carousel__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid var(--color-brand);
  background: rgba(255, 255, 255, 0.95);
  color: var(--color-brand);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.services-carousel__arrow:hover {
  background: var(--color-brand);
  color: white;
  border-color: var(--color-brand);
}

.services-carousel__arrow--prev {
  left: 4px;
}

.services-carousel__arrow--next {
  right: 4px;
}

/* Dots */
.services-carousel__dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
}

.services-carousel__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-border);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}

.services-carousel__dot.active {
  background: var(--color-brand);
  width: 24px;
  border-radius: 4px;
}

@media (max-width: 1024px) {
  .services-carousel {
    padding: 20px 50px 40px;
  }
  .service-card {
    width: 280px;
    min-height: 320px;
  }
}

@media (max-width: 768px) {
  .services-carousel-section {
    padding: 64px 0;
  }

  .services-carousel {
    padding: 16px 34px 40px;
  }

  .services-carousel__arrow {
    width: 42px;
    height: 42px;
  }

  .service-card {
    width: min(300px, calc(100vw - 100px));
    min-height: 330px;
    padding: 28px 22px;
    margin-right: 14px;
  }

  .service-card__title {
    font-size: 20px;
  }

  .service-card__desc,
  .service-card .text-link-btn {
    font-size: 15px;
  }
}

/* 旧轮播样式保留但隐藏 */
.carousel {
  display: none;
}

/* ==================== Cards ==================== */
.card {
  background-color: var(--color-bg-white);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  overflow: hidden;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.card__icon {
  width: 60px;
  height: 60px;
  background-color: var(--color-bg-light);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--color-brand);
  transition: all var(--transition-normal);
}

.card:hover .card__icon {
  background-color: var(--color-brand);
  color: white;
  transform: scale(1.1);
}

.card__icon svg {
  width: 28px;
  height: 28px;
}

.card__title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--color-text-primary);
}

.card__text {
  font-size: var(--font-size-body);
  color: var(--color-text-secondary);
  line-height: var(--line-height-relaxed);
}

.card__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--color-brand);
  font-size: var(--font-size-small);
  font-weight: 500;
  transition: all var(--transition-fast);
}

.card__link:hover {
  gap: 10px;
}

.card__link svg {
  transition: transform var(--transition-fast);
}

.card__link:hover svg {
  transform: translateX(4px);
}

@media (max-width: 768px) {
  .card {
    padding: 26px 22px;
  }

  .card__icon {
    width: 58px;
    height: 58px;
    margin-bottom: 18px;
  }

  .card__title {
    font-size: 21px;
  }

  .card__text,
  .card__link {
    font-size: 16px;
  }
}

/* ==================== Lawyer Card ==================== */
.team-card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px;
}

.lawyer-card {
  background: var(--color-bg-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  overflow: hidden;
}

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

.lawyer-card__link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.lawyer-card__media {
  aspect-ratio: 1 / 1;
  background: #eef1f5;
  overflow: hidden;
}

.lawyer-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.lawyer-card__media img[alt="高慧倩"] {
  object-position: center 35%;
}

.lawyer-card__media img[alt="贾文文"] {
  object-position: center 30%;
}

.lawyer-card__body {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  padding: 26px 28px 24px;
}

.lawyer-card__name {
  color: #333;
  font-family: "PingFang SC", sans-serif;
  font-size: 18px;
  font-style: normal;
  font-weight: 400;
  line-height: 18px;
  margin-bottom: 10px;
  text-align: left;
}

.lawyer-card__title {
  color: #C4935E;
  font-family: "PingFang SC", sans-serif;
  font-size: 12px;
  font-style: normal;
  font-weight: 400;
  line-height: 12px;
  text-align: left;
}

.lawyer-card__more-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #C4935E;
  text-align: center;
  font-family: "PingFang SC", sans-serif;
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: 14px;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.lawyer-card__more-link:hover {
  gap: 10px;
}

@media (max-width: 768px) {
  .team-card-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .lawyer-card {
    border-radius: 24px;
  }

  .lawyer-card__body {
    display: block;
    padding: 22px 20px;
  }

  .lawyer-card__name {
    font-size: 18px;
    line-height: 18px;
  }

  .lawyer-card__title {
    font-size: 12px;
    line-height: 12px;
  }

  .lawyer-card__more-link {
    display: inline-flex;
    margin-top: 18px;
    font-size: 14px;
    line-height: 14px;
  }
}

/* ==================== Honor Cards ==================== */
.honor-grid {
  column-count: 4;
  column-gap: 24px;
}

.honor-card {
  background: var(--color-bg-white);
  border-radius: var(--radius-lg);
  padding: 16px;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  gap: 16px;
  justify-content: flex-start;
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
  page-break-inside: avoid;
  margin-bottom: 24px;
  width: 100%;
}

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

.honor-card__media {
  width: 100%;
  aspect-ratio: 2908 / 2056;
  overflow: hidden;
  border-radius: 4px;
  background: #f6f1e6;
}

.honor-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.honor-card__description {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  font-weight: 700;
  color: #333333;
  text-align: center;
  word-break: break-word;
}

@media (max-width: 1024px) {
  .honor-grid {
    column-count: 2;
  }
}

@media (max-width: 768px) {
  .honor-grid {
    column-count: 1;
  }

  .honor-card {
    padding: 16px;
  }

  .honor-card__description {
    font-size: 15px;
    line-height: 1.7;
  }
}

/* 保留旧列表样式但隐藏 */
.honor-list {
  display: none;
}

.honors-page-section--industry {
  padding-bottom: 32px;
}

.industry-honors__years {
  display: grid;
  grid-template-columns: repeat(10, minmax(0, 1fr));
  gap: 0;
  overflow-x: auto;
  padding-bottom: 18px;
  border-bottom: 1px solid #dddddd;
  scrollbar-width: none;
}

.industry-honors__years::-webkit-scrollbar {
  display: none;
}

.industry-honors__year {
  position: relative;
  width: 100%;
  padding: 0 0 16px;
  border: none;
  background: transparent;
  color: #8e8e8e;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  text-align: center;
}

.industry-honors__year::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -19px;
  height: 2px;
  background: transparent;
  transition: background 0.2s ease;
}

.industry-honors__year.is-active {
  color: #3a3a3a;
}

.industry-honors__year.is-active::after {
  background: #d7a25f;
}

.industry-honors__panels {
  padding-top: 44px;
}

.industry-honors__panel {
  display: flex;
  flex-direction: column;
  gap: 72px;
}

.industry-honors__panel[hidden] {
  display: none !important;
}

.industry-honors__empty {
  padding: 40px 32px;
  border-radius: var(--radius-xl);
  background: #f7f7f7;
  color: #666666;
  text-align: center;
}

.industry-honor-group {
  display: grid;
  grid-template-columns: 236px minmax(0, 1fr);
  gap: 62px;
  align-items: start;
}

.industry-honor-group__brand {
  min-height: 130px;
  display: flex;
  align-items: center;
}

.industry-honor-group__content {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}

.industry-honor-group__title {
  margin: 0;
  color: #666666;
  font-size: 19px;
  line-height: 1.2;
  font-weight: 400;
}

.industry-honor-group__cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  width: 100%;
}

.industry-honor-group__cards--single {
  max-width: none;
}

.industry-honor-group__cards--single .industry-honor-item {
  width: 100%;
}

.industry-honor-logo {
  width: 100%;
  max-width: 230px;
}

.industry-honor-logo__image {
  width: 100%;
  height: auto;
  display: block;
}

.industry-honor-item {
  display: flex;
  gap: 15px;
  align-items: flex-start;
  padding: 18px 26px 24px;
  background: #f8f8f8;
  border-top: 1px solid #e3e3e3;
}

.industry-honor-item__icon {
  color: #d8a562;
  flex-shrink: 0;
  margin-top: 3px;
}

.industry-honor-item__body {
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
}

.industry-honor-item__title {
  margin: 0;
  color: #333333;
  font-size: 19px;
  line-height: 1.65;
  font-weight: 400;
}

.industry-honor-item__facts {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.industry-honor-item__fact {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 22px;
  align-items: start;
}

.industry-honor-item__fact-label {
  color: #a0a0a0;
  font-size: 16px;
  line-height: 1.8;
  white-space: nowrap;
}

.industry-honor-item__fact-value {
  color: #444444;
  font-size: 16px;
  line-height: 1.9;
}

.honors-page-section--spaced {
  margin-top: 96px;
}

.honors-page-section--qualifications {
  background: #f7f7f7;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding: 72px max(24px, calc((100vw - var(--container-max-width)) / 2));
}

.qualification-carousel {
  position: relative;
  display: flex;
  align-items: center;
  gap: 20px;
}

.qualification-carousel__viewport {
  overflow: hidden;
  flex: 1;
}

.qualification-carousel__track {
  display: flex;
  gap: 24px;
  transition: transform 0.45s ease;
  will-change: transform;
}

.qualification-carousel__arrow {
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 999px;
  background: #ffffff;
  color: var(--color-primary);
  box-shadow: var(--shadow-md);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.qualification-carousel__arrow:hover {
  background: var(--color-primary);
  color: #ffffff;
  transform: translateY(-2px);
}

.qualification-card {
  background: var(--color-bg-white);
  border-radius: var(--radius-xl);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: calc((100% - 48px) / 3);
  min-width: calc((100% - 48px) / 3);
  height: 420px;
  flex-shrink: 0;
}

.qualification-card__media {
  width: 100%;
  height: 272px;
  overflow: hidden;
  border-radius: 8px;
  background: #f6f1e6;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  box-sizing: border-box;
}

.qualification-card__media-image {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
}

.qualification-card__description {
  margin: 0;
  color: #333333;
  line-height: 1.6;
  font-size: 15px;
  font-weight: 700;
  word-break: break-word;
  overflow: hidden;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.qualification-card__description--only {
  padding: 4px 0;
}

.qualification-empty {
  padding: 48px 32px;
  background: var(--color-bg-white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  text-align: center;
}

@media (max-width: 1024px) {
  .industry-honor-group {
    grid-template-columns: 180px minmax(0, 1fr);
    gap: 32px;
  }

  .industry-honor-group__cards {
    grid-template-columns: 1fr;
  }

  .industry-honor-group__cards--single {
    max-width: none;
  }

  .industry-honor-logo {
    max-width: 170px;
  }

  .qualification-card {
    width: calc((100% - 24px) / 2);
    min-width: calc((100% - 24px) / 2);
  }
}

@media (max-width: 768px) {
  .honors-page-section--industry {
    padding-bottom: 8px;
  }

  .industry-honors__years {
    display: flex;
    gap: 28px;
    padding-bottom: 14px;
  }

  .industry-honors__year {
    padding-bottom: 12px;
  }

  .industry-honors__year::after {
    bottom: -15px;
  }

  .industry-honors__panels {
    padding-top: 28px;
  }

  .industry-honors__panel {
    gap: 40px;
  }

  .industry-honor-group {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .industry-honor-group__brand {
    min-height: auto;
  }

  .industry-honor-group__title {
    font-size: 18px;
  }

  .industry-honor-logo {
    max-width: 190px;
  }

  .industry-honor-item {
    padding: 18px 18px 20px;
  }

  .industry-honor-item__title {
    font-size: 17px;
  }

  .industry-honor-item__fact {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .industry-honor-item__fact-label,
  .industry-honor-item__fact-value {
    font-size: 15px;
  }

  .honors-page-section--qualifications {
    padding-top: 48px;
    padding-bottom: 48px;
  }

  .qualification-carousel {
    gap: 12px;
  }

  .qualification-carousel__arrow {
    width: 40px;
    height: 40px;
  }

  .qualification-card {
    width: 100%;
    min-width: 100%;
    height: 396px;
  }

  .qualification-card__media {
    height: 248px;
  }

  .qualification-card__description {
    line-height: 1.7;
  }
}

/* ==================== FAQ ==================== */
.faq {
  max-width: 800px;
  margin: 0 auto;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq__item {
  padding: 20px 24px;
  background: var(--color-bg-white);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  transition: all var(--transition-normal);
}

.faq__item:hover {
  border-color: var(--color-brand);
  box-shadow: var(--shadow-sm);
}

.faq__question {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  padding: 0;
}

.faq__question-mark {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  background: var(--color-brand);
  color: white;
  font-size: var(--font-size-small);
  font-weight: 700;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.faq__question-text {
  flex: 1;
  font-size: var(--font-size-body);
  font-weight: 600;
  color: var(--color-text-primary);
  line-height: var(--line-height-normal);
}

.faq__answer {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--color-border);
  color: var(--color-text-secondary);
  line-height: var(--line-height-relaxed);
}

@media (max-width: 768px) {
  .faq-list {
    gap: 14px;
  }

  .faq__item {
    padding: 22px 20px;
  }

  .faq__question-mark {
    width: 28px;
    height: 28px;
    font-size: 15px;
  }

  .faq__question-text,
  .faq__answer {
    font-size: 16px;
  }
}

/* 隐藏FAQ分类 */
.faq-category {
  display: none;
}

/* ==================== Contact Page ==================== */
.contact-row__icon {
  color: var(--color-brand);
}

.contact-row__icon svg {
  width: 24px;
  height: 24px;
}

/* ==================== Page Header ==================== */
.page-header {
  background-image: linear-gradient(90deg, rgba(24, 24, 26, 0.82) 0%, rgba(24, 24, 26, 0.54) 52%, rgba(24, 24, 26, 0.28) 100%), var(--page-header-image);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  padding: 160px 0 80px;
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.12), transparent 65%);
}

.page-header::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 40%;
  height: 100%;
  background: 
    radial-gradient(ellipse at right center, rgba(196, 147, 94, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.page-header .container {
  position: relative;
  z-index: 1;
}

.page-header__title {
  font-size: var(--font-size-h2);
  font-weight: 700;
  color: white;
  margin-bottom: 16px;
}

.page-header__subtitle {
  font-size: 18px;
  line-height: var(--line-height-relaxed);
  color: rgba(255, 255, 255, 0.8);
  max-width: 700px;
}

.breadcrumb {
  margin-bottom: 20px;
  font-size: var(--font-size-small);
  color: rgba(255, 255, 255, 0.6);
}

.breadcrumb__item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.breadcrumb__link {
  color: rgba(255, 255, 255, 0.8);
  transition: color var(--transition-fast);
}

.breadcrumb__link:hover {
  color: var(--color-brand-light);
}

.breadcrumb__separator {
  opacity: 0.5;
}

.breadcrumb__current {
  color: rgba(255, 255, 255, 0.9);
}

.breadcrumb--plain {
  margin-bottom: 24px;
  color: var(--color-text-light);
}

.breadcrumb--plain .breadcrumb__link {
  color: var(--color-text-secondary);
}

.breadcrumb--plain .breadcrumb__link:hover {
  color: var(--color-brand);
}

.breadcrumb--plain .breadcrumb__current {
  color: var(--color-brand);
}

@media (max-width: 768px) {
  .page-header {
    padding: 128px 0 64px;
  }

  .page-header__title {
    font-size: 34px;
  }

  .page-header__subtitle {
    font-size: 16px;
  }

  .breadcrumb {
    margin-bottom: 18px;
    font-size: 15px;
  }
}

/* ==================== CTA Section ==================== */
.cta {
  background-image: linear-gradient(rgba(91, 58, 29, 0.72), rgba(91, 58, 29, 0.72)), url("../assets/cta.webp");
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  color: white;
  padding: 80px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* CTA装饰背景 */
.cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(ellipse at 30% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 50%, rgba(255, 255, 255, 0.08) 0%, transparent 50%);
  pointer-events: none;
}

.cta .container {
  position: relative;
  z-index: 1;
}

.cta__title {
  font-size: var(--font-size-h3);
  font-weight: 700;
  margin-bottom: 16px;
  color: white;
}

.cta__desc {
  font-size: var(--font-size-body);
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 32px;
}

@media (max-width: 768px) {
  .cta {
    padding: 64px 0;
  }

  .cta__title {
    font-size: 30px;
  }

  .cta__desc {
    font-size: 16px;
  }
}

/* ==================== Footer ==================== */
.footer {
  background-color: var(--color-bg-dark);
  color: white;
  padding: 60px 0 30px;
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 40px;
}

.footer__brand {
  padding-right: 40px;
}

.footer__logo {
  margin-bottom: 20px;
  max-width: 200px;
}

.footer__name {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 12px;
  color: white;
}

.footer__text {
  font-size: var(--font-size-small);
  color: rgba(255, 255, 255, 0.7);
  line-height: var(--line-height-relaxed);
}

.footer__title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 20px;
  color: white;
}

.footer__list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer__link {
  font-size: var(--font-size-small);
  color: rgba(255, 255, 255, 0.7);
  transition: color var(--transition-fast);
}

.footer__link:hover {
  color: rgba(255, 255, 255, 0.95);
}

.footer__contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
  color: rgba(255, 255, 255, 0.7);
  font-size: var(--font-size-small);
}

.footer__contact-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: var(--color-brand);
}

.footer__bottom {
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer__copyright {
  font-size: var(--font-size-tiny);
  color: rgba(255, 255, 255, 0.6);
}

.footer__copyright a {
  color: rgba(255, 255, 255, 0.8);
}

.footer__copyright a:hover {
  color: white;
}

.footer__extra {
  display: flex;
  gap: 16px;
  align-items: center;
  font-size: var(--font-size-tiny);
  color: rgba(255, 255, 255, 0.6);
}

.footer__extra a {
  color: rgba(255, 255, 255, 0.8);
  transition: color var(--transition-fast);
}

.footer__extra a:hover {
  color: white;
}

@media (max-width: 1024px) {
  .footer__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }
}

@media (max-width: 768px) {
  .footer {
    padding: 48px 0 28px;
  }

  .footer__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  
  .footer__brand {
    padding-right: 0;
  }

  .footer__name,
  .footer__title {
    font-size: 18px;
  }

  .footer__text,
  .footer__link,
  .footer__contact-item {
    font-size: 15px;
  }
  
  .footer__bottom {
    flex-direction: column;
    text-align: center;
  }
}

/* ==================== Back to Top ==================== */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background-color: var(--color-brand);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-normal);
  z-index: var(--z-sticky);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  border: none;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background-color: var(--color-brand-dark);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

/* ==================== Online Chat Widget ==================== */
.chat-widget {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: var(--z-chat);
}

.chat-widget__btn {
  width: 56px;
  height: 56px;
  background: var(--color-brand);
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  transition: all var(--transition-normal);
}

.chat-widget__btn:hover {
  background: var(--color-brand-dark);
  transform: scale(1.1);
}

.chat-widget__btn svg {
  width: 24px;
  height: 24px;
}

.chat-panel {
  position: absolute;
  bottom: 70px;
  right: 0;
  width: 350px;
  height: 500px;
  max-height: 80vh;
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px) scale(0.95);
  transition: all var(--transition-normal);
}

.chat-panel.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.chat-panel__header {
  background: var(--color-bg-dark);
  color: white;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.chat-panel__title {
  font-size: 16px;
  font-weight: 600;
}

.chat-panel__close {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color var(--transition-fast);
}

.chat-panel__close:hover {
  color: white;
}

.chat-panel__messages {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  background: var(--color-bg-light);
}

.chat-message {
  margin-bottom: 16px;
  display: flex;
  gap: 10px;
}

.chat-message--bot {
  justify-content: flex-start;
}

.chat-message--user {
  justify-content: flex-end;
}

.chat-message__avatar {
  width: 32px;
  height: 32px;
  background: var(--color-brand);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 14px;
  flex-shrink: 0;
}

.chat-message--user .chat-message__avatar {
  background: var(--color-bg-secondary);
}

.chat-message__content {
  max-width: 75%;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-size: var(--font-size-small);
  line-height: var(--line-height-normal);
}

.chat-message--bot .chat-message__content {
  background: white;
  color: var(--color-text-primary);
}

.chat-message--user .chat-message__content {
  background: var(--color-brand);
  color: white;
}

.chat-panel__input {
  padding: 16px;
  background: white;
  border-top: 1px solid var(--color-border);
}

.chat-panel__input-row {
  display: flex;
  gap: 8px;
  align-items: flex-end;
}

.chat-panel__tools {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
}

.chat-panel__tool-btn {
  width: 32px;
  height: 32px;
  background: var(--color-bg-light);
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-secondary);
  transition: all var(--transition-fast);
}

.chat-panel__tool-btn:hover {
  background: var(--color-brand);
  color: white;
}

.chat-panel__tool-btn svg {
  width: 16px;
  height: 16px;
}

.chat-panel__textarea {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: var(--font-size-small);
  resize: none;
  min-height: 40px;
  max-height: 80px;
  line-height: var(--line-height-normal);
}

.chat-panel__textarea:focus {
  outline: none;
  border-color: var(--color-brand);
}

.chat-panel__send {
  width: 40px;
  height: 40px;
  background: var(--color-brand);
  border: none;
  border-radius: var(--radius-sm);
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.chat-panel__send:hover {
  background: var(--color-brand-dark);
}

.chat-panel__send svg {
  width: 18px;
  height: 18px;
}

/* Emoji Picker */
.emoji-picker {
  position: absolute;
  bottom: 100%;
  left: 0;
  background: white;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 12px;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 4px;
  margin-bottom: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all var(--transition-fast);
}

.emoji-picker.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.emoji-picker__item {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: background var(--transition-fast);
}

.emoji-picker__item:hover {
  background: var(--color-bg-light);
}

/* Image Preview */
.chat-panel__image-preview {
  margin-top: 8px;
  display: none;
}

.chat-panel__image-preview.active {
  display: block;
}

.chat-panel__image-preview img {
  max-width: 100px;
  max-height: 100px;
  border-radius: var(--radius-sm);
}

.chat-panel__image-preview button {
  margin-left: 8px;
  background: none;
  border: none;
  color: var(--color-text-light);
  cursor: pointer;
}

@media (max-width: 480px) {
  .chat-panel {
    width: calc(100vw - 40px);
    right: -10px;
  }
}

/* ==================== News Cards ==================== */
.news-card {
  background: var(--color-bg-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
}

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

.news-card__image {
  width: 100%;
  height: 200px;
  overflow: hidden;
  position: relative;
}

.news-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-normal);
}

.news-card:hover .news-card__image img {
  transform: scale(1.05);
}

.news-card__content {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.news-card__date {
  display: inline-block;
  color: var(--color-text-light);
  font-size: var(--font-size-tiny);
  font-weight: 500;
  margin-bottom: 16px;
}

.news-card__title {
  font-size: 18px;
  font-weight: 600;
  color: var(--color-text-primary);
  margin-bottom: 12px;
  line-height: var(--line-height-tight);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color var(--transition-fast);
}

.news-card:hover .news-card__title {
  color: var(--color-brand);
}

.news-card__excerpt {
  color: var(--color-text-secondary);
  font-size: var(--font-size-small);
  line-height: var(--line-height-relaxed);
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.news-card__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--color-brand);
  font-size: var(--font-size-small);
  font-weight: 500;
  transition: all var(--transition-fast);
}

.news-card__link:hover {
  gap: 10px;
}

.news-card__link svg {
  transition: transform var(--transition-fast);
}

.news-card__link:hover svg {
  transform: translateX(4px);
}

@media (max-width: 768px) {
  .news-card__image {
    height: 210px;
  }

  .news-card__content {
    padding: 24px 22px;
  }

  .news-card__date {
    font-size: 14px;
  }

  .news-card__title {
    font-size: 21px;
  }

  .news-card__excerpt,
  .news-card__link {
    font-size: 15px;
  }
}

/* ==================== Service Detail ==================== */
.service-detail {
  padding: 20px 0;
}

.service-detail__content {
  display: grid;
  grid-template-columns: 900px 1fr;
  gap: 60px;
  align-items: start;
}

.service-detail__main {
  background: white;
  padding: 40px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.service-detail__title {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 24px;
  color: var(--color-text-primary);
}

.service-detail__desc {
  color: var(--color-text-secondary);
  line-height: 2;
  margin-bottom: 40px;
}

.service-detail__section-title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--color-brand);
}

.service-detail__list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.service-detail__list + .service-detail__section-title {
  margin-top: 40px;
}

.service-detail__body + .service-detail__section-title,
.service-detail__advisor-list + .service-detail__section-title {
  margin-top: 40px;
}

.service-detail__list-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 16px;
  background: var(--color-bg-light);
  border-radius: var(--radius-sm);
}

.service-detail__list-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: var(--color-brand);
  margin-top: 2px;
}

.service-detail__advisor-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding-left: 24px;
}

.service-detail__advisor-item {
  padding: 12px 16px;
  color: var(--color-text-secondary);
  line-height: 1.7;
  background: var(--color-bg-light);
  border-radius: var(--radius-sm);
}

.service-detail__advisor-item::marker {
  color: var(--color-brand);
  font-weight: 700;
}

.service-detail__case-card {
  display: block;
}

.service-detail__case-details {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.service-detail__case-summary {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  list-style: none;
  cursor: pointer;
}

.service-detail__case-summary::-webkit-details-marker {
  display: none;
}

.service-detail__case-title {
  display: block;
  margin-bottom: 12px;
}

.service-detail__case-preview {
  display: -webkit-box;
  margin-bottom: 18px;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.service-detail__case-details[open] .service-detail__case-preview {
  display: none;
}

.service-detail__case-details[open] .service-detail__case-summary {
  order: 2;
  align-self: flex-end;
}

.service-detail__case-body {
  order: 1;
  margin-top: 18px;
  margin-bottom: 18px;
}

.service-detail__case-details[open] .service-detail__case-body {
  margin-top: 0;
}

.service-detail__case-paragraph {
  margin: 0 0 12px;
  line-height: 1.9;
}

.service-detail__case-paragraph:last-child {
  margin-bottom: 0;
}

.service-detail__case-toggle {
  color: var(--color-brand);
  font-size: var(--font-size-small);
  font-weight: 600;
  text-align: right;
}

.service-detail__case-toggle:hover,
.service-detail__case-toggle:focus-visible {
  color: var(--color-brand-dark);
}

.service-detail__case-toggle-close {
  display: none;
}

.service-detail__case-details[open] .service-detail__case-toggle-open {
  display: none;
}

.service-detail__case-details[open] .service-detail__case-toggle-close {
  display: inline;
}

.service-detail__sidebar {
  position: sticky;
  top: 100px;
}

.service-detail__contact-card {
  background: var(--color-bg-dark);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  color: white;
  text-align: center;
  max-width: 350px;
  margin: 0 auto;
}

.service-detail__contact-title {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 28px;
  color: white;
}

.service-detail__contact-info {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 28px;
  align-items: center;
}

.service-detail__contact-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.85);
  font-size: var(--font-size-small);
}

.service-detail__contact-icon {
  width: 36px;
  height: 36px;
  background: rgba(196, 147, 94, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-brand);
  padding: 8px;
}

.service-detail__contact-icon svg {
  width: 20px;
  height: 20px;
}

@media (max-width: 1024px) {
  .service-detail__content {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .service-detail__sidebar {
    position: static;
  }
}

@media (max-width: 768px) {
  .service-detail {
    padding: 0;
  }

  .service-detail__main {
    padding: 28px 22px;
  }

  .service-detail__title {
    font-size: 30px;
  }

  .service-detail__desc {
    font-size: 16px;
    line-height: 1.9;
    margin-bottom: 32px;
  }

  .service-detail__section-title {
    font-size: 22px;
  }

  .service-detail__list-item {
    padding: 14px 16px;
    font-size: 16px;
  }

  .service-detail__contact-card {
    max-width: none;
    padding: 32px 24px;
  }

  .service-detail__contact-title {
    font-size: 24px;
  }

  .service-detail__contact-item {
    font-size: 15px;
  }
}

/* Case Cards */
.case-card {
  background: linear-gradient(135deg, var(--color-bg-dark) 0%, var(--color-bg-secondary) 100%);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition-normal);
}

.case-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.case-card__image {
  height: 160px;
  background: linear-gradient(135deg, var(--color-brand) 0%, var(--color-brand-dark) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.case-card__image-icon {
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.case-card__content {
  padding: 24px;
  color: white;
}

.case-card__title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 12px;
}

.case-card__desc {
  font-size: var(--font-size-small);
  color: rgba(255, 255, 255, 0.8);
  line-height: var(--line-height-relaxed);
  margin-bottom: 16px;
}

.case-card__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--color-brand-light);
  font-size: var(--font-size-small);
  font-weight: 500;
  transition: all var(--transition-fast);
}

.case-card__link:hover {
  gap: 10px;
}

/* ==================== Form Styles ==================== */
.form input,
.form textarea,
.form select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  transition: border-color var(--transition-fast);
}

.form input:hover,
.form textarea:hover,
.form select:hover {
  border-color: var(--color-brand);
}

.form input:focus,
.form textarea:focus,
.form select:focus {
  outline: none;
  border-color: var(--color-brand);
  box-shadow: 0 0 0 3px rgba(196, 147, 94, 0.1);
}

.form label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 8px;
  color: var(--color-text-primary);
}

.form label span {
  color: var(--color-brand);
}

/* 路线图标 */
.route-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  margin-right: 8px;
  color: var(--color-brand);
  vertical-align: middle;
}

.route-icon svg {
  width: 18px;
  height: 18px;
}

/* ==================== Animations ==================== */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-delay-1 { transition-delay: 0.1s; }
.fade-in-delay-2 { transition-delay: 0.2s; }
.fade-in-delay-3 { transition-delay: 0.3s; }

/* ==================== Utilities ==================== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }

.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }

/* Screen Reader Only */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ==================== Pagination ==================== */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.pagination__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  font-size: var(--font-size-small);
  color: var(--color-text-secondary);
  background: white;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.pagination__btn:hover {
  border-color: var(--color-brand);
  color: var(--color-brand);
}

.pagination__btn.active {
  background: var(--color-brand);
  border-color: var(--color-brand);
  color: white;
}

.pagination__btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.pagination__ellipsis {
  padding: 0 8px;
  color: var(--color-text-light);
}

/* ==================== Sticky Tag ==================== */
.sticky-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 10px;
  font-size: var(--font-size-tiny);
  font-weight: 600;
  color: white;
  background: var(--color-brand);
  border-radius: var(--radius-sm);
  z-index: 1;
}

/* ==================== Text Link Button ==================== */
.text-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--color-brand);
  font-size: var(--font-size-small);
  font-weight: 500;
  background: none;
  border: none;
  cursor: pointer;
  transition: all var(--transition-fast);
  padding: 0;
}

.text-link-btn:hover {
  gap: 10px;
}

.text-link-btn svg {
  transition: transform var(--transition-fast);
}

.text-link-btn:hover svg {
  transform: translateX(4px);
}

/* ==================== Case List (Service Detail) ==================== */
.case-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 20px;
}

.case-item {
  padding: 20px 0;
}

.case-item + .case-item {
  border-top: 1px solid var(--color-border);
}

.case-item__title {
  font-size: 16px;
  font-weight: 600;
  color: var(--color-text-primary);
  margin-bottom: 8px;
}

.case-item__desc {
  font-size: var(--font-size-small);
  color: var(--color-text-secondary);
  line-height: var(--line-height-relaxed);
}

/* ==================== Lawyer Detail Page ==================== */
.lawyer-detail {
  padding: 120px 0 80px;
}

.lawyer-detail__profile {
  display: flex;
  align-items: center;
  gap: 72px;
  background: white;
  border-radius: var(--radius-lg);
  padding: 44px 56px;
  box-shadow: var(--shadow-sm);
}

.lawyer-detail__avatar-wrapper {
  flex-shrink: 0;
}

.lawyer-detail__avatar {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  overflow: hidden;
  background: #eef1f5;
}

.lawyer-detail__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  border-radius: 50%;
}

.lawyer-detail__name {
  font-size: 32px;
  font-weight: 700;
  color: var(--color-text-primary);
  margin-bottom: 24px;
}

.lawyer-detail__position {
  font-size: 20px;
  color: var(--color-brand);
  font-weight: 500;
  margin-bottom: 34px;
}

.lawyer-detail__content {
  flex: 1;
}

.lawyer-detail__info {
  display: grid;
  gap: 20px;
}

.lawyer-detail__info-item {
  display: grid;
  grid-template-columns: 22px 72px 1fr;
  align-items: flex-start;
  gap: 12px;
  margin: 0;
}

.lawyer-detail__info-icon {
  width: 20px;
  height: 20px;
  color: var(--color-brand);
  flex-shrink: 0;
  margin-top: 2px;
}

.lawyer-detail__info-label {
  font-size: 15px;
  color: var(--color-text-light);
  min-width: 0;
}

.lawyer-detail__info-value {
  font-size: 15px;
  color: var(--color-text-primary);
  flex: 1;
  margin: 0;
}

.lawyer-detail__section {
  margin-top: 48px;
}

.lawyer-detail__section-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--color-text-primary);
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 2px solid rgba(196, 147, 94, 0.9);
}

.lawyer-detail__bio {
  color: var(--color-text-secondary);
  line-height: 2.05;
  font-size: 15px;
}

.lawyer-detail__bio-paragraph {
  margin: 0 0 26px;
  text-indent: 2em;
}

.lawyer-detail__bio-paragraph:last-child {
  margin-bottom: 0;
}

.lawyer-detail__areas {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.lawyer-detail__area-tag {
  display: inline-block;
  padding: 9px 18px;
  font-size: 15px;
  color: var(--color-brand);
  background: #f7f0e7;
  border-radius: 4px;
}

@media (max-width: 768px) {
  .lawyer-detail__profile {
    display: block;
    padding: 28px 22px;
  }
  
  .lawyer-detail__avatar {
    width: 160px;
    height: 160px;
    margin: 0 auto 24px;
  }

  .lawyer-detail__name {
    font-size: 28px;
    margin-bottom: 16px;
  }

  .lawyer-detail__position {
    font-size: 18px;
    margin-bottom: 24px;
  }

  .lawyer-detail__info-item {
    grid-template-columns: 22px 56px 1fr;
    gap: 10px;
  }
}
