/* =========================================================
   全站共用样式：统一页头、按钮、首页重点业务、咨询入口、
   Our People 团队页、Insights 专业洞见页
   ========================================================= */

/* =================== 统一页头 =================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 30px;
  background: #fff;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  z-index: 100;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}

.site-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

/* 两个 Logo 比例不同：中文版带中文副标题，需要更高才能看清 */
.site-logo img {
  display: block;
  height: 40px;
  width: auto;
}

.site-header--zh .site-logo img {
  height: 48px;
}

.site-nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  margin: 0;
  padding: 0;
}

.site-nav li {
  margin: 0 13px;
  padding: 0;
}

.site-nav li:last-child {
  margin-right: 0;
}

.site-nav a {
  text-decoration: none;
  color: #333;
  font-size: 1.05rem;
  font-weight: bold;
  white-space: nowrap;
  transition: color 0.3s ease;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: #007BFF;
}

/* 汉堡按钮 */
.site-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  background: none;
  border: 0;
  margin: 0;
  padding: 6px 0 6px 10px;
  cursor: pointer;
}

.site-menu-toggle span {
  display: block;
  background-color: #333;
  height: 3px;
  width: 30px;
  margin: 3px 0;
  border-radius: 2px;
}

@media (max-width: 1080px) {
  .site-menu-toggle {
    display: flex;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 60px;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    max-width: 420px;
    max-height: calc(100vh - 80px);
    overflow-y: auto;
    background-color: #fff;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 10px 0;
    box-sizing: border-box;
  }

  .site-nav.is-open {
    display: block;
  }

  .site-nav ul {
    flex-direction: column;
    text-align: center;
  }

  .site-nav li,
  .site-nav li:last-child {
    margin: 14px 0;
  }
}

@media (max-width: 600px) {
  .site-header {
    padding: 0 16px;
  }

  .site-logo img {
    height: 34px;
  }

  .site-header--zh .site-logo img {
    height: 42px;
  }
}

@media (max-width: 360px) {
  .site-header--zh .site-logo img {
    height: 38px;
  }
}

/* =================== 按钮 =================== */
.btn-primary,
.btn-outline {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 4px;
  font-size: 1rem;
  font-weight: bold;
  text-decoration: none;
  line-height: 1.2;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.btn-primary {
  background-color: #007BFF;
  border: 1px solid #007BFF;
  color: #fff !important;
}

.btn-primary:hover {
  background-color: #0069d9;
}

.btn-outline {
  border: 1px solid #333;
  color: #333 !important;
  background-color: rgba(255, 255, 255, 0.6);
}

.btn-outline:hover {
  background-color: #f0f0f0;
}

/* =================== 首页：重点业务（遗嘱与遗产执行） =================== */
.practice-feature {
  display: flex;
  align-items: center;
  gap: 24px;
  max-width: 860px;
  margin: 0 auto 28px;
  padding: 18px 24px;
  background: rgba(255, 255, 255, 0.55);
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  text-align: left;
  box-sizing: border-box;
}

.practice-feature__icon img {
  display: block;
  width: 110px;
  height: 110px;
  border-radius: 8px;
}

.practice-feature__body {
  flex: 1;
}

.practice-feature h3 {
  margin: 0 0 6px;
  font-size: 1.5rem;
  color: #333;
}

.practice-feature h3 a {
  color: inherit;
  text-decoration: none;
}

.practice-feature p {
  margin: 0 0 14px;
  font-size: 1.05rem;
  line-height: 1.6;
  color: #444;
}

.practice-feature__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

@media (max-width: 768px) {
  .practice-feature {
    gap: 12px;
    padding: 10px 12px;
    margin: 0 auto 16px;
  }

  .practice-feature__icon img {
    width: 64px;
    height: 64px;
  }

  .practice-feature h3 {
    margin: 0 0 4px;
    font-size: 0.95rem;
  }

  .practice-feature p {
    margin: 0 0 8px;
    font-size: 0.78rem;
    line-height: 1.4;
  }

  .practice-feature__actions {
    gap: 6px;
  }

  .practice-feature .btn-primary,
  .practice-feature .btn-outline {
    padding: 6px 10px;
    font-size: 0.75rem;
  }
}

/* 业务卡片：内边距计入宽度，业务页底部四张卡片可排成一行 */
.expertise-card {
  box-sizing: border-box;
}

/* =================== 业务详情页：咨询入口 =================== */
.consult-cta {
  margin: 25px 0 10px;
  padding: 20px 24px;
  background: #f4f7fb;
  border-left: 4px solid #007BFF;
  border-radius: 8px;
}

.consult-cta h2 {
  margin: 0 0 8px;
  font-size: 1.2rem;
  color: #333;
  border: 0;
  padding: 0;
}

.consult-cta p {
  margin: 0 0 15px;
  line-height: 1.6;
  color: #555;
}

.consult-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.consult-inline {
  margin: 5px 0 20px;
}

/* =================== 独立内容页（Our People / Insights）通用容器 =================== */
.content-page {
  margin: 0;
  min-height: 100vh;
  font-family: Arial, sans-serif;
  color: #333;
  background: url("../images/People_background.jpg") no-repeat center center fixed;
  background-size: cover;
}

.content-panel {
  max-width: 1100px;
  margin: 80px auto 60px;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  background-color: rgba(255, 255, 255, 0.95);
  box-sizing: border-box;
}

.content-panel > h1 {
  margin: 0 0 8px;
  font-size: 2rem;
  color: #333;
}

.content-panel__intro {
  margin: 0 0 25px;
  line-height: 1.6;
  color: #555;
}

.site-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2rem;
  z-index: 11;
  margin: 0;
  background: #000;
  color: #fff;
  text-align: center;
  font-size: 0.7rem;
  line-height: 2rem;
}

.site-footer p {
  margin: 0;
}

@media (max-width: 600px) {
  .content-page {
    background-attachment: scroll;
  }

  .content-panel {
    margin: 72px 10px 50px;
    padding: 20px 16px;
  }

  .content-panel > h1 {
    font-size: 1.5rem;
  }
}

/* =================== Our People 团队页 =================== */
.people-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.people-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  color: #333;
  text-decoration: none;
  transition: transform 0.3s ease-in-out;
}

a.people-card:hover {
  transform: translateY(-6px);
}

.people-card__photo {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center top;
  border-bottom: 1px solid #ddd;
}

.people-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 14px 14px 16px;
}

.people-card__name {
  margin: 0 0 4px;
  font-size: 1.15rem;
  color: #333;
}

.people-card__title {
  margin: 0 0 10px;
  font-size: 0.85rem;
  font-weight: bold;
  line-height: 1.4;
  color: #666;
}

.people-card__intro {
  margin: 0 0 12px;
  font-size: 0.85rem;
  line-height: 1.5;
  color: #555;
}

.people-card__more {
  margin-top: auto;
  font-size: 0.85rem;
  font-weight: bold;
  color: #007BFF;
}

.people-card__more--muted {
  color: #888;
  font-weight: normal;
  font-style: italic;
}

@media (max-width: 1000px) {
  .people-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* 手机：横向卡片（照片在左），顺序与电脑端一致 */
@media (max-width: 600px) {
  .people-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .people-card {
    flex-direction: row;
  }

  .people-card__photo {
    width: 104px;
    flex-shrink: 0;
    aspect-ratio: auto;
    height: auto;
    min-height: 138px;
    border-bottom: 0;
    border-right: 1px solid #ddd;
  }

  .people-card__body {
    padding: 10px 12px;
  }

  .people-card__name {
    font-size: 1.05rem;
  }

  .people-card__title {
    margin-bottom: 6px;
    font-size: 0.8rem;
  }

  .people-card__intro {
    margin-bottom: 8px;
    font-size: 0.8rem;
  }

  .people-card__more {
    font-size: 0.8rem;
  }
}

/* =================== Insights 专业洞见 =================== */
.insights-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 22px;
  padding: 0 0 12px;
  border-bottom: 2px solid #eee;
}

.insights-tab {
  padding: 8px 16px;
  border: 1px solid #ccc;
  border-radius: 20px;
  background: #fff;
  color: #333;
  font: bold 0.95rem Arial, sans-serif;
  cursor: pointer;
}

.insights-tab[aria-selected="true"] {
  background: #333;
  border-color: #333;
  color: #fff;
}

.insights-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.insight-item {
  display: flex;
  gap: 20px;
  padding: 18px 0;
  border-bottom: 1px solid #eee;
}

.insight-item:last-child {
  border-bottom: 0;
}

/* 分类筛选通过 hidden 属性隐藏，需覆盖上面的 display: flex */
.insight-item[hidden],
.insights-empty[hidden] {
  display: none;
}

.insight-item__cover {
  flex: 0 0 220px;
}

.insight-item__cover img {
  display: block;
  width: 220px;
  height: 140px;
  object-fit: cover;
  border-radius: 6px;
}

.insight-item__body {
  flex: 1;
  min-width: 0;
}

.insight-meta {
  margin: 0 0 6px;
  font-size: 0.85rem;
  color: #666;
}

.insight-badge {
  display: inline-block;
  margin-right: 8px;
  padding: 2px 8px;
  border-radius: 3px;
  background: #e8eef7;
  color: #1d4f91;
  font-size: 0.75rem;
  font-weight: bold;
  letter-spacing: 0.02em;
}

.insight-badge--events {
  background: #f6ece0;
  color: #8a4b08;
}

.insight-item h2 {
  margin: 0 0 8px;
  font-size: 1.25rem;
  line-height: 1.35;
}

.insight-item h2 a {
  color: #333;
  text-decoration: none;
}

.insight-item h2 a:hover {
  color: #007BFF;
}

.insight-item__summary {
  margin: 0 0 8px;
  line-height: 1.6;
  color: #555;
}

.insight-item__more {
  font-size: 0.9rem;
  font-weight: bold;
  color: #007BFF;
  text-decoration: none;
}

.insights-empty {
  margin: 30px 0 20px;
  padding: 40px 20px;
  text-align: center;
  font-size: 1.2rem;
  color: #777;
  background: #f7f7f7;
  border-radius: 8px;
}

/* 文章页 */
.insight-article {
  max-width: 860px;
}

.insight-back {
  display: inline-block;
  margin: 0 0 18px;
  font-size: 0.9rem;
  font-weight: bold;
  color: #007BFF;
  text-decoration: none;
}

.insight-article h1 {
  margin: 6px 0 18px;
  font-size: 2rem;
  line-height: 1.3;
  color: #333;
}

.insight-cover {
  display: block;
  width: 100%;
  max-height: 440px;
  object-fit: cover;
  border-radius: 6px;
  margin: 0 0 22px;
}

.insight-body {
  font-size: 1.05rem;
  line-height: 1.75;
  color: #333;
}

.insight-body h2 {
  margin: 28px 0 12px;
  font-size: 1.35rem;
}

.insight-body h3 {
  margin: 22px 0 10px;
  font-size: 1.15rem;
}

.insight-body p {
  margin: 0 0 16px;
}

.insight-body img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
}

.insight-body blockquote {
  margin: 0 0 16px;
  padding: 4px 18px;
  border-left: 4px solid #ddd;
  color: #555;
}

.insight-body a {
  color: #007BFF;
}

.insight-body table {
  border-collapse: collapse;
  margin: 0 0 16px;
}

.insight-body th,
.insight-body td {
  border: 1px solid #ddd;
  padding: 6px 10px;
}

.insight-attachments {
  margin: 28px 0 0;
  padding: 16px 20px;
  background: #f4f7fb;
  border-radius: 8px;
}

.insight-attachments h2 {
  margin: 0 0 10px;
  font-size: 1.1rem;
}

.insight-attachments ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.insight-attachments li {
  margin: 6px 0;
}

.insight-attachments a {
  color: #007BFF;
  font-weight: bold;
  text-decoration: none;
}

.insight-attachments a::before {
  content: "PDF";
  display: inline-block;
  margin-right: 8px;
  padding: 1px 5px;
  border-radius: 3px;
  background: #c7000b;
  color: #fff;
  font-size: 0.7rem;
  vertical-align: 2px;
}

@media (max-width: 600px) {
  .insight-item {
    flex-direction: column;
    gap: 10px;
  }

  .insight-item__cover {
    flex: none;
  }

  .insight-item__cover img {
    width: 100%;
    height: 170px;
  }

  .insight-item h2 {
    font-size: 1.1rem;
  }

  .insight-article h1 {
    font-size: 1.45rem;
  }

  .insight-body {
    font-size: 1rem;
  }
}
