/* ============================================================
   北京华泰（郑州）律师事务所 - 公共样式
   设计风格：新中式商务
   ============================================================ */

/* ---------- 自托管西文展示字体：Cormorant Garamond（仅 latin / latin-ext 子集）----------
   原样式通过 @import 直连 fonts.googleapis.com，该域名在中国大陆无法访问，
   且 @import 会阻塞首屏渲染。此处改为本地托管，站点不再依赖任何外部字体服务。 */
  @font-face {
    font-family: 'Cormorant Garamond';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/cormorant-garamond-latin-ext-400.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
  }
  @font-face {
    font-family: 'Cormorant Garamond';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/cormorant-garamond-latin-400.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
  }
  @font-face {
    font-family: 'Cormorant Garamond';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('../fonts/cormorant-garamond-latin-ext-500.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
  }
  @font-face {
    font-family: 'Cormorant Garamond';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('../fonts/cormorant-garamond-latin-500.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
  }
  @font-face {
    font-family: 'Cormorant Garamond';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('../fonts/cormorant-garamond-latin-ext-600.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
  }
  @font-face {
    font-family: 'Cormorant Garamond';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('../fonts/cormorant-garamond-latin-600.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
  }
  @font-face {
    font-family: 'Cormorant Garamond';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('../fonts/cormorant-garamond-latin-ext-700.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
  }
  @font-face {
    font-family: 'Cormorant Garamond';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('../fonts/cormorant-garamond-latin-700.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
  }

/* ============================================================
   1. CSS Variables
   ============================================================ */
:root {
  /* 主色调 */
  --color-primary: #8B3A3A;
  --color-primary-light: #A85050;
  --color-primary-dark: #6E2E2E;

  /* 辅助色 - 水墨灰调 */
  --color-gold: #7A8B8B;
  --color-gold-light: #9AADAD;
  --color-gold-dark: #5A6B6B;

  /* 文字色 */
  --color-text-heading: #1A1A1A;
  --color-text-body: #333333;
  --color-text-secondary: #666666;
  --color-text-light: #999999;
  --color-text-white: #FFFFFF;

  /* 背景色 */
  --color-bg-white: #FFFFFF;
  --color-bg-cream: #F8F6F3;
  --color-bg-dark: #1A1A1A;

  /* 边框色 */
  --color-border: #E5E0D8;
  --color-border-light: #F0ECE6;

  /* 字体 */
  /* 中文走系统字体：各平台自带字体的显示质量优于网络字体，且零下载、零外部依赖。
     后台新增内容也不会出现缺字。 */
  --font-serif: 'Songti SC', 'Source Han Serif SC', 'Noto Serif SC', 'STSong', 'SimSun', 'Songti TC', serif;
  --font-sans: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Hiragino Sans GB',
               'Microsoft YaHei', 'Source Han Sans SC', 'Noto Sans SC', 'Heiti SC',
               'WenQuanYi Micro Hei', sans-serif;
  --font-en: 'Cormorant Garamond', 'Georgia', 'Times New Roman', 'Songti SC', serif;

  /* 间距 */
  --spacing-xs: 8px;
  --spacing-sm: 16px;
  --spacing-md: 24px;
  --spacing-lg: 32px;
  --spacing-xl: 48px;
  --spacing-xxl: 64px;

  /* 圆角 */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;

  /* 阴影 */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.12);
  --shadow-hover: 0 8px 24px rgba(139, 58, 58, 0.15);

  /* 过渡 */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;

  /* 头部高度 */
  --header-height: 80px;

  /* 全站内容宽度 */
  --container-max: 1400px;
  --container-gutter: clamp(32px, 22vw, 340px);
}

/* ============================================================
   2. CSS Reset & Base Styles
   ============================================================ */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  font-weight: 400;
  color: var(--color-text-body);
  background-color: var(--color-bg-white);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

a:hover {
  color: var(--color-primary);
}

ul, ol {
  list-style: none;
}

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

button {
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
}

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

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: 600;
  color: var(--color-text-heading);
  line-height: 1.4;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

p {
  margin-bottom: 1em;
}

::selection {
  background-color: var(--color-primary);
  color: var(--color-text-white);
}

/* ============================================================
   3. Layout - Container
   ============================================================ */
.container {
  max-width: none;
  margin: 0 auto;
  padding: 0;
  width: min(var(--container-max), calc(100% - var(--container-gutter)));
}

.container-fluid {
  width: 100%;
  padding: 0 clamp(20px, 4vw, 64px);
}

/* ============================================================
   4. Header / Navigation
   ============================================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.85) 0%,
    rgba(255, 255, 255, 0.6) 60%,
    rgba(255, 255, 255, 0.2) 100%
  );
  backdrop-filter: blur(12px) saturate(1.2);
  -webkit-backdrop-filter: blur(12px) saturate(1.2);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  height: var(--header-height);
}

.header.scrolled {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 1px 20px rgba(0, 0, 0, 0.06);
  backdrop-filter: blur(16px) saturate(1.1);
  -webkit-backdrop-filter: blur(16px) saturate(1.1);
}

.header.scrolled .header__logo-text,
.header.scrolled .header__nav-link,
.header.scrolled .header__phone-text {
  color: var(--color-text-heading);
}

.header .header__nav-link:hover,
.header.scrolled .header__nav-link:hover {
  color: var(--color-primary);
}

.header.scrolled .hamburger span {
  background-color: var(--color-text-heading);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  max-width: none;
  width: min(var(--container-max), calc(100% - var(--container-gutter)));
  margin: 0 auto;
  padding: 0;
}

/* Logo */
.header__logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.header__logo-img {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.header__logo-text {
  font-family: var(--font-serif);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--color-text-heading);
  letter-spacing: 1px;
  white-space: nowrap;
  transition: color var(--transition-normal);
}

/* 导航菜单 */
.header__nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.header__nav-item {
  position: relative;
}

.header__nav-link {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 14px;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--color-text-heading);
  white-space: nowrap;
  transition: color var(--transition-fast);
  position: relative;
}

.header__nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-primary), transparent);
  transition: width var(--transition-normal);
  opacity: 0.6;
}

.header__nav-link:hover::after,
.header__nav-item.active > .header__nav-link::after {
  width: 40%;
}

.header__nav-item.active > .header__nav-link {
  color: var(--color-primary);
  font-weight: 600;
}

/* 下拉箭头 */
.header__nav-arrow {
  display: none;
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  margin-left: 2px;
  transition: transform var(--transition-fast);
}

.header__nav-item:hover .header__nav-arrow {
  transform: rotate(180deg);
}

/* 下拉菜单 */
.header__dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  min-width: 180px;
  background-color: var(--color-bg-white);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
  z-index: 100;
}

.header__nav-item:hover > .header__dropdown {
  display: none;
}

.header__dropdown-item {
  display: block;
  padding: 10px 24px;
  font-size: 0.875rem;
  color: var(--color-text-body);
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.header__dropdown-item:hover {
  color: var(--color-primary);
  background-color: var(--color-bg-cream);
  padding-left: 28px;
}

/* 服务领域下拉（多列） */
.header__dropdown--wide {
  min-width: 520px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  padding: 16px;
}

.header__dropdown--wide .header__dropdown-item {
  padding: 8px 16px;
  border-radius: var(--radius-sm);
}

/* 右侧电话 */
.header__phone {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 16px;
  flex-shrink: 0;
}

.header__phone-icon {
  width: 20px;
  height: 20px;
  fill: var(--color-gold);
  flex-shrink: 0;
}

.header__phone-text {
  font-family: var(--font-en);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--color-gold);
  white-space: nowrap;
  transition: color var(--transition-normal);
}

/* 汉堡菜单 */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 36px;
  height: 36px;
  cursor: pointer;
  z-index: 1001;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background-color: var(--color-text-heading);
  margin: 3px 0;
  transition: all var(--transition-normal);
}

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

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

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

/* 移动端导航 */
.mobile-nav {
  display: none;
  position: fixed;
  top: var(--header-height);
  left: 0;
  width: 100%;
  height: calc(100vh - var(--header-height));
  background-color: var(--color-bg-white);
  overflow-y: auto;
  z-index: 999;
  padding: 16px 0;
  transform: translateX(100%);
  transition: transform var(--transition-normal);
}

.mobile-nav.open {
  transform: translateX(0);
}

.mobile-nav__item {
  border-bottom: 1px solid var(--color-border-light);
}

.mobile-nav__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  font-size: 1rem;
  font-weight: 500;
  color: var(--color-text-heading);
}

.mobile-nav__sub {
  display: none;
  background-color: var(--color-bg-cream);
}

.mobile-nav__sub.open {
  display: block;
}

.mobile-nav__sub-link {
  display: block;
  padding: 10px 20px 10px 40px;
  font-size: 0.875rem;
  color: var(--color-text-secondary);
}

.mobile-nav__sub-link:hover {
  color: var(--color-primary);
}

/* ============================================================
   5. Footer
   ============================================================ */
.footer {
  background-color: var(--color-bg-dark);
  color: var(--color-text-light);
}

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 8px 18px;
}

.footer__copyright {
  margin-bottom: 0;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.78);
}

.footer__icp {
  margin-bottom: 0;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.62);
}

.footer__icp a {
  color: inherit;
  transition: color var(--transition-fast);
}

.footer__icp a:hover {
  color: var(--color-text-white);
}

.footer--compact {
  padding: 0;
  background-color: #050505;
}

.footer--compact .footer__bottom {
  min-height: 72px;
  padding: 18px 0;
}

.pre-footer-bg {
  --pre-footer-bg-image: url('../images/inner-bg-open-mountain.webp');
  --pre-footer-bg-position: center bottom;
  --pre-footer-bg-height: clamp(220px, 24vw, 340px);
  position: relative;
  isolation: isolate;
}

.pre-footer-bg::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 100vw;
  height: var(--pre-footer-bg-height);
  transform: translateX(-50%);
  background-image:
    linear-gradient(180deg, rgba(255,255,255,0.9) 0%, rgba(248,247,244,0.48) 28%, rgba(245,244,241,0.22) 100%),
    var(--pre-footer-bg-image);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center, var(--pre-footer-bg-position);
  -webkit-mask-image: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 0.08) 16%,
    rgba(0, 0, 0, 0.42) 38%,
    rgba(0, 0, 0, 0.78) 62%,
    rgba(0, 0, 0, 1) 100%
  );
  mask-image: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 0.08) 16%,
    rgba(0, 0, 0, 0.42) 38%,
    rgba(0, 0, 0, 0.78) 62%,
    rgba(0, 0, 0, 1) 100%
  );
  pointer-events: none;
  z-index: -1;
}

.pre-footer-bg > * {
  position: relative;
  z-index: 1;
}

.pre-footer-bg--about {
  --pre-footer-bg-image: url('../images/inner-bg-open-mountain.webp');
  --pre-footer-bg-position: center bottom;
}

.pre-footer-bg--team,
.pre-footer-bg--contact {
  --pre-footer-bg-image: url('../images/inner-bg-soft-ridge.webp');
  --pre-footer-bg-position: center bottom;
}

.pre-footer-bg--service,
.pre-footer-bg--charity {
  --pre-footer-bg-image: url('../images/inner-bg-layered-mountain.webp');
  --pre-footer-bg-position: center bottom;
}

.pre-footer-bg--news {
  --pre-footer-bg-image: url('../images/inner-bg-long-ridge.webp');
  --pre-footer-bg-position: center bottom;
}

.pre-footer-bg--party {
  --pre-footer-bg-image: url('../images/inner-bg-mist-wide.webp');
  --pre-footer-bg-position: center bottom;
}

.pre-footer-bg--join {
  --pre-footer-bg-image: url('../images/inner-bg-open-mountain.webp');
  --pre-footer-bg-position: center bottom;
}

.home-contact-copyright {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 72px;
  padding-top: 24px;
  border-top: 1px solid var(--color-border-light);
  font-size: 0.875rem;
  color: var(--color-text-secondary);
}

.home-contact-copyright a {
  color: var(--color-text-light);
}

.home-contact-copyright a:hover {
  color: var(--color-primary);
}

/* ============================================================
   6. Common Components
   ============================================================ */

/* ---------- Buttons ---------- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 32px;
  background-color: var(--color-primary);
  color: var(--color-text-white);
  font-size: 0.9375rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  transition: all var(--transition-normal);
  letter-spacing: 1px;
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
  transition: left var(--transition-slow);
}

.btn-primary:hover {
  background-color: var(--color-primary-dark);
  box-shadow: var(--shadow-hover);
  color: var(--color-text-white);
  transform: translateY(-1px);
}

.btn-primary:hover::before {
  left: 100%;
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 31px;
  background-color: transparent;
  color: var(--color-primary);
  font-size: 0.9375rem;
  font-weight: 500;
  border: 1px solid var(--color-primary);
  border-radius: var(--radius-sm);
  transition: all var(--transition-normal);
  letter-spacing: 1px;
}

.btn-outline:hover {
  background-color: var(--color-primary);
  color: var(--color-text-white);
  transform: translateY(-1px);
}

.btn-gold {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 32px;
  background-color: var(--color-gold);
  color: var(--color-text-white);
  font-size: 0.9375rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  transition: all var(--transition-normal);
  letter-spacing: 1px;
}

.btn-gold:hover {
  background-color: var(--color-gold-dark);
  color: var(--color-text-white);
  transform: translateY(-1px);
}

.btn-sm {
  padding: 8px 20px;
  font-size: 0.8125rem;
}

.btn-lg {
  padding: 16px 40px;
  font-size: 1rem;
}

/* ---------- Card ---------- */
.card {
  background-color: var(--color-bg-white);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all var(--transition-normal);
}

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

.card__img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  overflow: hidden;
}

.card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.card:hover .card__img img {
  transform: scale(1.05);
}

.card__body {
  padding: var(--spacing-md);
}

.card__title {
  font-family: var(--font-serif);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--color-text-heading);
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card__desc {
  font-size: 0.875rem;
  color: var(--color-text-secondary);
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card__meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
  font-size: 0.8125rem;
  color: var(--color-text-light);
}

/* ---------- Tag ---------- */
.tag {
  display: inline-block;
  padding: 4px 12px;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--color-primary);
  background-color: rgba(139, 58, 58, 0.08);
  border-radius: 2px;
  transition: all var(--transition-fast);
}

.tag:hover {
  background-color: var(--color-primary);
  color: var(--color-text-white);
}

.tag--gold {
  color: var(--color-text-secondary);
  background-color: rgba(122, 139, 139, 0.12);
}

.tag--gold:hover {
  background-color: var(--color-text-secondary);
  color: var(--color-text-white);
}

/* ---------- Breadcrumb ---------- */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: var(--spacing-sm) 0;
  font-size: 0.8125rem;
  color: var(--color-text-light);
}

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

.breadcrumb__sep {
  color: var(--color-border);
}

.breadcrumb__link {
  color: var(--color-text-light);
  transition: color var(--transition-fast);
}

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

.breadcrumb__current {
  color: var(--color-text-secondary);
}

/* ---------- Pagination ---------- */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: var(--spacing-lg) 0;
}

.pagination__item {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 8px;
  font-size: 0.875rem;
  color: var(--color-text-body);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.pagination__item:hover {
  color: var(--color-primary);
  border-color: var(--color-primary);
}

.pagination__item.active {
  background-color: var(--color-primary);
  color: var(--color-text-white);
  border-color: var(--color-primary);
}

.pagination__item.disabled {
  color: var(--color-text-light);
  cursor: not-allowed;
  pointer-events: none;
}

/* ---------- Section Title ---------- */
.section-title {
  text-align: center;
  margin-bottom: var(--spacing-xl);
}

.section-title--left {
  text-align: left;
}

.section-title__bar {
  display: inline-block;
  width: 4px;
  height: 32px;
  background: linear-gradient(180deg, var(--color-primary), #4A4A4A);
  margin-right: 12px;
  vertical-align: middle;
  border-radius: 2px;
}

.section-title--left .section-title__bar {
  display: inline-block;
  vertical-align: middle;
}

.section-title__heading {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-text-heading);
  margin-bottom: 8px;
  display: inline-block;
  vertical-align: middle;
}

.section-title__heading-en {
  font-family: var(--font-en);
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--color-text-light);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.section-title__sub {
  font-size: 0.9375rem;
  color: var(--color-text-secondary);
  font-weight: 300;
  max-width: 600px;
  margin: 0 auto;
}

.section-title--left .section-title__sub {
  margin: 0;
}

/* 装饰线 */
.section-title__divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 16px;
}

.section-title__divider-line {
  width: 40px;
  height: 1px;
  background-color: var(--color-gold);
}

.section-title__divider-dot {
  width: 6px;
  height: 6px;
  background-color: var(--color-gold);
  transform: rotate(45deg);
}

/* ---------- News List ---------- */
.news-list {
  display: flex;
  flex-direction: column;
}

.news-list__item {
  display: flex;
  align-items: flex-start;
  gap: clamp(16px, 2vw, 32px);
  padding: var(--spacing-md) 0;
  border-bottom: 1px solid var(--color-border-light);
  transition: all var(--transition-fast);
}

.news-list__item:hover {
  padding-left: 8px;
}

.news-list__item:last-child {
  border-bottom: none;
}

.news-list__date {
  flex-shrink: 0;
  text-align: center;
  min-width: 76px;
}

.news-list__day {
  font-family: var(--font-en);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1.2;
}

.news-list__month {
  font-size: 0.75rem;
  color: var(--color-text-light);
}

.news-list__content {
  flex: 1;
  min-width: 0;
  max-width: 980px;
}

.news-list__title {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text-heading);
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color var(--transition-fast);
}

.news-list__item:hover .news-list__title {
  color: var(--color-primary);
}

.news-list__desc {
  font-size: 0.875rem;
  color: var(--color-text-secondary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.7;
}

/* ---------- Lawyer Card ---------- */
.lawyer-card {
  text-align: center;
  padding: var(--spacing-md);
  border-radius: var(--radius-md);
  transition: all var(--transition-normal);
  background-color: var(--color-bg-white);
  border: 1px solid var(--color-border-light);
}

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

.lawyer-card__avatar {
  width: 120px;
  height: 160px;
  margin: 0 auto var(--spacing-sm);
  border-radius: var(--radius-sm);
  overflow: hidden;
  position: relative;
}

.lawyer-card__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.lawyer-card:hover .lawyer-card__avatar img {
  transform: scale(1.05);
}

.lawyer-card__name {
  font-family: var(--font-serif);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--color-text-heading);
  margin-bottom: 4px;
}

.lawyer-card__title {
  font-size: 0.8125rem;
  color: var(--color-primary);
  margin-bottom: 8px;
}

.lawyer-card__desc {
  font-size: 0.8125rem;
  color: var(--color-text-light);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.6;
}

.lawyer-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
  margin-top: 12px;
}

/* ---------- Service Card ---------- */
.service-card {
  padding: var(--spacing-lg) var(--spacing-md);
  text-align: center;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border-light);
  background-color: var(--color-bg-white);
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--color-primary), #4A4A4A);
  transform: scaleX(0);
  transition: transform var(--transition-normal);
}

.service-card:hover::before {
  transform: scaleX(1);
}

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

.service-card__icon {
  width: 56px;
  height: 56px;
  margin: 0 auto var(--spacing-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-color: rgba(139, 58, 58, 0.06);
  color: var(--color-primary);
  font-size: 1.5rem;
  transition: all var(--transition-normal);
}

.service-card:hover .service-card__icon {
  background-color: var(--color-primary);
  color: var(--color-text-white);
}

.service-card__icon svg {
  width: 28px;
  height: 28px;
  fill: currentColor;
}

.service-card__name {
  font-family: var(--font-serif);
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--color-text-heading);
  margin-bottom: 8px;
}

.service-card__desc {
  font-size: 0.8125rem;
  color: var(--color-text-secondary);
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ---------- Honor List ---------- */
.honor-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-md);
}

.honor-list__item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: var(--spacing-sm);
  border-radius: var(--radius-sm);
  transition: background-color var(--transition-fast);
}

.honor-list__item:hover {
  background-color: var(--color-bg-cream);
}

.honor-list__icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  fill: var(--color-gold);
  margin-top: 2px;
}

.honor-list__text {
  font-size: 0.9375rem;
  color: var(--color-text-body);
  line-height: 1.6;
}

.honor-list__year {
  font-family: var(--font-en);
  font-size: 0.8125rem;
  color: var(--color-text-light);
  margin-top: 4px;
}

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

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes shimmer {
  0% {
    background-position: -200% center;
  }
  100% {
    background-position: 200% center;
  }
}

/* ============================================================
   滚动动画系统 - 双向触发，多种动效
   ============================================================ */

/* 基础类：默认从下方淡入上浮 */
.scroll-animate {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: opacity, transform;
}

.scroll-animate.visible {
  opacity: 1;
  transform: translateY(0);
}

/* 隐藏状态（用于离开视口时） */
.scroll-animate.hidden {
  opacity: 0;
}

/* 从左滑入 */
.scroll-animate--left {
  opacity: 0;
  transform: translateX(clamp(-44px, -3vw, -28px));
  transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.scroll-animate--left.visible {
  opacity: 1;
  transform: translateX(0);
}

/* 从右滑入 */
.scroll-animate--right {
  opacity: 0;
  transform: translateX(clamp(28px, 3vw, 44px));
  transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.scroll-animate--right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* 缩放淡入 */
.scroll-animate--scale {
  opacity: 0;
  transform: scale(0.85);
  transition: opacity 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.scroll-animate--scale.visible {
  opacity: 1;
  transform: scale(1);
}

/* 旋转淡入 */
.scroll-animate--rotate {
  opacity: 0;
  transform: rotate(-5deg) scale(0.95);
  transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.scroll-animate--rotate.visible {
  opacity: 1;
  transform: rotate(0) scale(1);
}

/* 翻转淡入 */
.scroll-animate--flip {
  opacity: 0;
  transform: perspective(600px) rotateX(15deg) translateY(30px);
  transition: opacity 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.scroll-animate--flip.visible {
  opacity: 1;
  transform: perspective(600px) rotateX(0) translateY(0);
}

/* 模糊淡入 */
.scroll-animate--blur {
  opacity: 0;
  filter: blur(10px);
  transform: translateY(20px);
  transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              filter 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.scroll-animate--blur.visible {
  opacity: 1;
  filter: blur(0);
  transform: translateY(0);
}

/* 延迟动画 - 级联效果 */
.delay-1 { transition-delay: 0.08s; }
.delay-2 { transition-delay: 0.16s; }
.delay-3 { transition-delay: 0.24s; }
.delay-4 { transition-delay: 0.32s; }
.delay-5 { transition-delay: 0.40s; }
.delay-6 { transition-delay: 0.48s; }
.delay-7 { transition-delay: 0.56s; }
.delay-8 { transition-delay: 0.64s; }

/* 快速动画 */
.scroll-animate--fast {
  transition-duration: 0.5s;
}

/* 慢速动画 */
.scroll-animate--slow {
  transition-duration: 1s;
}

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

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

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

.back-to-top svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

/* ============================================================
   9. Banner / Carousel
   ============================================================ */
.banner {
  position: relative;
  width: 100%;
  height: 600px;
  overflow: hidden;
}

.banner__slides {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform var(--transition-slow);
}

.banner__slide {
  min-width: 100%;
  height: 100%;
  position: relative;
}

.banner__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.banner__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(26, 26, 26, 0.6) 0%, rgba(26, 26, 26, 0.2) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.banner__content {
  text-align: center;
  color: var(--color-text-white);
  max-width: 700px;
  padding: 0 20px;
}

.banner__subtitle {
  font-family: var(--font-en);
  font-size: 0.875rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--color-gold-light);
  margin-bottom: 16px;
  animation: fadeInDown 0.8s ease;
}

.banner__title {
  font-family: var(--font-serif);
  font-size: 2.75rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 16px;
  animation: fadeInUp 0.8s ease 0.2s both;
}

.banner__desc {
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.8;
  opacity: 0.9;
  margin-bottom: 32px;
  animation: fadeInUp 0.8s ease 0.4s both;
}

.banner__actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  animation: fadeInUp 0.8s ease 0.6s both;
}

/* 轮播指示器 */
.banner__dots {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}

.banner__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: all var(--transition-normal);
}

.banner__dot.active {
  background-color: var(--color-gold);
  width: 28px;
  border-radius: 5px;
}

/* 轮播箭头 */
.banner__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  background-color: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(4px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-white);
  cursor: pointer;
  transition: all var(--transition-fast);
  z-index: 10;
}

.banner__arrow:hover {
  background-color: rgba(255, 255, 255, 0.3);
}

.banner__arrow--prev {
  left: 24px;
}

.banner__arrow--next {
  right: 24px;
}

.banner__arrow svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

/* ============================================================
   10. Page Banner (内页Banner)
   ============================================================ */
.page-banner {
  position: relative;
  height: 300px;
  margin-top: var(--header-height);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-banner__bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-banner__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(139, 58, 58, 0.75) 0%, rgba(26, 26, 26, 0.6) 100%);
}

.page-banner__content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--color-text-white);
}

.page-banner__title {
  font-family: var(--font-serif);
  font-size: 2.25rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.page-banner__subtitle {
  font-size: 0.9375rem;
  font-weight: 300;
  opacity: 0.9;
}

/* ============================================================
   11. Utility Classes
   ============================================================ */
.text-primary { color: var(--color-primary); }
.text-gold { color: var(--color-text-secondary); }
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-sm { margin-top: var(--spacing-sm); }
.mt-md { margin-top: var(--spacing-md); }
.mt-lg { margin-top: var(--spacing-lg); }
.mt-xl { margin-top: var(--spacing-xl); }
.mb-sm { margin-bottom: var(--spacing-sm); }
.mb-md { margin-bottom: var(--spacing-md); }
.mb-lg { margin-bottom: var(--spacing-lg); }
.mb-xl { margin-bottom: var(--spacing-xl); }

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

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

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

/* 分隔线 */
.divider {
  width: 100%;
  height: 1px;
  background-color: var(--color-border-light);
  margin: var(--spacing-md) 0;
}

.divider--gold {
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--color-text-secondary), transparent);
}

/* 装饰角标 */
.corner-decoration {
  position: relative;
}

.corner-decoration::before,
.corner-decoration::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  border-color: var(--color-text-light);
  border-style: solid;
}

.corner-decoration::before {
  top: -1px;
  left: -1px;
  border-width: 2px 0 0 2px;
}

.corner-decoration::after {
  bottom: -1px;
  right: -1px;
  border-width: 0 2px 2px 0;
}

/* ============================================================
   12. Responsive Design
   ============================================================ */

/* ---------- max-width: 1200px ---------- */
@media (max-width: 1200px) {
}

/* ---------- max-width: 992px ---------- */
@media (max-width: 992px) {
  :root {
    --header-height: 70px;
  }

  h1 { font-size: 2rem; }
  h2 { font-size: 1.75rem; }

  .header__nav {
    display: none;
  }

  .header__phone {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .mobile-nav {
    display: block;
  }

  .header.scrolled .hamburger span {
    background-color: var(--color-text-heading);
  }

  .header__logo-text {
    font-size: 1rem;
  }

  .banner {
    height: 450px;
  }

  .banner__title {
    font-size: 2rem;
  }

  .page-banner {
    height: 240px;
  }

  .page-banner__title {
    font-size: 1.75rem;
  }

  .section-title__heading {
    font-size: 1.75rem;
  }
}

/* ---------- max-width: 768px ---------- */
@media (max-width: 768px) {
  :root {
    --spacing-xl: 36px;
    --spacing-xxl: 48px;
    --container-gutter: 32px;
  }

  h1 { font-size: 1.75rem; }
  h2 { font-size: 1.5rem; }
  h3 { font-size: 1.25rem; }

  .container {
    width: calc(100% - var(--container-gutter));
  }

  .scroll-animate--left,
  .scroll-animate--right {
    transform: translateY(28px);
  }

  .scroll-animate--left.visible,
  .scroll-animate--right.visible {
    transform: translateY(0);
  }

  .footer__bottom {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .home-contact-copyright {
    justify-content: center;
    margin-top: 48px;
    text-align: center;
  }

  .banner {
    height: 380px;
  }

  .banner__title {
    font-size: 1.75rem;
  }

  .banner__subtitle {
    font-size: 0.75rem;
    letter-spacing: 2px;
  }

  .banner__actions {
    flex-direction: column;
    align-items: center;
  }

  .banner__arrow {
    width: 36px;
    height: 36px;
  }

  .banner__arrow--prev {
    left: 12px;
  }

  .banner__arrow--next {
    right: 12px;
  }

  .page-banner {
    height: 200px;
  }

  .page-banner__title {
    font-size: 1.5rem;
  }

  .section-title {
    margin-bottom: var(--spacing-lg);
  }

  .section-title__heading {
    font-size: 1.5rem;
  }

  .news-list__item {
    flex-direction: column;
    gap: 8px;
  }

  .news-list__date {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: auto;
  }

  .news-list__day {
    font-size: 1.25rem;
  }

  .news-list__month {
    font-size: 0.8125rem;
  }

  .lawyer-card__avatar {
    width: 100px;
    height: 130px;
  }

  .back-to-top {
    bottom: 24px;
    right: 24px;
    width: 40px;
    height: 40px;
  }

  .header__dropdown--wide {
    min-width: auto;
    grid-template-columns: 1fr;
  }
}

/* ---------- max-width: 576px ---------- */
@media (max-width: 576px) {
  :root {
    --header-height: 60px;
  }

  h1 { font-size: 1.5rem; }
  h2 { font-size: 1.25rem; }

  .header__logo-img {
    width: 36px;
    height: 36px;
  }

  .header__logo-text {
    font-size: 0.875rem;
  }

  .banner {
    height: 320px;
  }

  .banner__title {
    font-size: 1.5rem;
  }

  .banner__desc {
    font-size: 0.875rem;
  }

  .btn-primary,
  .btn-outline,
  .btn-gold {
    padding: 10px 24px;
    font-size: 0.875rem;
  }

  .pagination__item {
    min-width: 36px;
    height: 36px;
    font-size: 0.8125rem;
  }

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

/* ---------- Print Styles ---------- */
@media print {
  .header,
  .footer,
  .back-to-top,
  .banner__arrow,
  .banner__dots,
  .hamburger {
    display: none !important;
  }

  body {
    color: #000;
    background: #fff;
  }

  .container {
    max-width: 100%;
    width: 100%;
  }
}
