/* 基础重置 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #1a3a5c;
  --primary-light: #2e5a8b;
  --accent: #b89b6c;
  --bg: #f7f8f9;
  --text: #333333;
  --text-light: #666666;
  --white: #ffffff;
  --shadow: 0 4px 12px rgba(0,0,0,0.06);
  --radius: 8px;
  --font-serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", serif;
  --font-sans: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-calligraphy: "Ma Shan Zheng", "Zhi Mang Xing", cursive;
}

body {
  font-family: var(--font-sans);
  line-height: 1.8;
  color: var(--text);
  background-color: var(--bg);
}

h1, h2, h3, .page-title, .subtitle {
  font-family: var(--font-serif);
}

.logo-text {
  font-family: var(--font-calligraphy);
}

a {
  color: var(--primary);
  text-decoration: none;
}

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

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* 头部导航 */
.site-header {
  background: var(--white);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--primary);
}

.logo-img {
  height: 42px;
  width: auto;
  display: block;
}

.logo-text {
  font-size: 1.7rem;
  font-weight: 400;
  letter-spacing: 1px;
  line-height: 1;
  white-space: nowrap;
}

.main-nav {
  display: flex;
  gap: 28px;
}

.main-nav a {
  font-size: 0.95rem;
  color: var(--text);
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: all 0.2s ease;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--primary);
  border-bottom-color: var(--accent);
}

/* 首页横幅 */
.hero {
  position: relative;
  background: url('../images/building-hero.jpg') center center / cover no-repeat;
  color: var(--white);
  padding: 120px 0 130px;
  text-align: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(26,58,92,0.88) 0%, rgba(26,58,92,0.72) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: 4rem;
  margin-bottom: 14px;
  letter-spacing: 4px;
  font-weight: 400;
  text-shadow: 0 2px 10px rgba(0,0,0,0.35);
}

.subtitle {
  font-size: 1.45rem;
  color: var(--accent);
  margin-bottom: 22px;
  font-weight: 600;
  letter-spacing: 1px;
}

.lead {
  max-width: 700px;
  margin: 0 auto 40px;
  font-size: 1.08rem;
  line-height: 1.9;
  opacity: 0.96;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
}

.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 500;
  transition: all 0.2s ease;
  cursor: pointer;
}

.btn-primary {
  background: var(--accent);
  color: var(--primary);
}

.btn-primary:hover {
  background: #a78b5b;
  color: var(--primary);
}

.btn-secondary {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.5);
}

.btn-secondary:hover {
  background: rgba(255,255,255,0.12);
  color: var(--white);
}

/* 通用区块 */
.section {
  padding: 64px 0;
}

.section h2 {
  font-size: 1.7rem;
  color: var(--primary);
  margin-bottom: 28px;
  padding-bottom: 12px;
  border-bottom: 2px solid #e8ebed;
}

.section p {
  margin-bottom: 16px;
  color: var(--text);
}

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.feature {
  background: var(--white);
  padding: 32px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.feature h3 {
  color: var(--primary);
  font-size: 1.2rem;
  margin-bottom: 12px;
}

.feature p {
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* 页面标题 */
.page-content {
  padding-top: 56px;
  padding-bottom: 80px;
}

.page-title {
  font-size: 2.2rem;
  color: var(--primary);
  margin-bottom: 12px;
  font-weight: 700;
}

.page-desc {
  color: var(--text-light);
  margin-bottom: 36px;
  font-size: 1rem;
}

.page-image {
  margin-bottom: 48px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.page-image img {
  width: 100%;
  height: auto;
  display: block;
}

.page-image.wide {
  max-height: 320px;
}

.page-image.wide img {
  width: 100%;
  height: 320px;
  object-fit: cover;
}

/* 律所介绍双栏 */
.about-split {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: center;
}

.about-image {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.about-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* 律师卡片 */
.lawyer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 24px;
}

.lawyer-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.lawyer-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

a.lawyer-card-link {
  display: block;
  color: inherit;
}

a.lawyer-card-link:hover .lawyer-card {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

a.lawyer-card-link:hover .lawyer-name {
  color: var(--primary-light);
}

.lawyer-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin: 0 auto 16px;
  font-weight: 600;
}

.lawyer-name {
  font-size: 1.1rem;
  color: var(--primary);
  margin-bottom: 4px;
}

.lawyer-title {
  font-size: 0.9rem;
  color: var(--accent);
  margin-bottom: 10px;
}

.lawyer-years {
  font-size: 0.85rem;
  color: var(--text-light);
}

/* 文章列表 */
.article-list,
.news-list {
  list-style: none;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 0;
  overflow: hidden;
}

.article-list li,
.news-list li {
  border-bottom: 1px solid #eef0f2;
}

.article-list li:last-child,
.news-list li:last-child {
  border-bottom: none;
}

.article-item,
.news-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 24px;
  transition: background 0.15s ease;
  gap: 16px;
}

.article-item:hover,
.news-item:hover {
  background: #f9fafb;
}

.article-main,
.news-main {
  flex: 1;
  min-width: 0;
}

.article-title,
.news-title {
  font-size: 1.05rem;
  color: var(--text);
  margin-bottom: 8px;
  font-weight: 600;
}

.article-meta,
.news-meta {
  font-size: 0.9rem;
  color: var(--text-light);
}

.article-author {
  color: var(--primary);
  font-weight: 500;
}

.article-date {
  color: var(--text-light);
  font-size: 0.9rem;
  white-space: nowrap;
}

.link-more {
  display: inline-block;
  margin-top: 8px;
  font-weight: 500;
}

.center {
  text-align: center;
  margin-top: 36px;
}

/* 律师详情页 */
.lawyer-detail {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  margin-bottom: 40px;
}

.lawyer-detail-header {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 0;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: var(--white);
}

.lawyer-photo-placeholder {
  aspect-ratio: 3/4;
  background: rgba(255,255,255,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: rgba(255,255,255,0.8);
  border-right: 1px solid rgba(255,255,255,0.1);
}

.lawyer-detail-meta {
  padding: 40px 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.lawyer-detail-meta h1 {
  font-size: 2.4rem;
  margin-bottom: 12px;
  font-weight: 700;
  letter-spacing: 2px;
}

.lawyer-detail-title {
  font-size: 1.15rem;
  color: var(--accent);
  margin-bottom: 24px;
  font-weight: 500;
}

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

.lawyer-badge {
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.25);
  padding: 6px 16px;
  border-radius: 100px;
  font-size: 0.85rem;
}

.lawyer-detail-body {
  padding: 48px;
}

.detail-section {
  margin-bottom: 40px;
}

.detail-section:last-child {
  margin-bottom: 0;
}

.detail-section h2 {
  font-size: 1.35rem;
  color: var(--primary);
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--accent);
  display: inline-block;
}

.detail-section p,
.detail-section li {
  color: var(--text);
  font-size: 0.98rem;
  line-height: 1.9;
}

.detail-section p {
  margin-bottom: 16px;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
}

.tag-list li {
  background: #f0f4f8;
  color: var(--primary);
  padding: 6px 16px;
  border-radius: 100px;
  font-size: 0.9rem;
  font-weight: 500;
}

.experience-list,
.education-list {
  list-style: none;
}

.experience-list li,
.education-list li {
  padding-left: 24px;
  position: relative;
  margin-bottom: 14px;
}

.experience-list li::before,
.education-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.detail-contact p {
  margin-bottom: 8px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 24px;
  color: var(--text-light);
  font-size: 0.95rem;
}

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

/* 文章列表增强 */
.article-item,
.news-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 18px 24px;
  transition: background 0.15s ease;
}

.article-item:hover,
.news-item:hover {
  background: #f9fafb;
}

.article-title,
.news-title {
  font-size: 1.05rem;
  color: var(--primary);
  margin-bottom: 8px;
  font-weight: 600;
}

.article-meta,
.news-meta {
  font-size: 0.9rem;
  color: var(--text-light);
}

.article-author {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text);
  font-weight: 500;
}

.article-date {
  color: var(--text-light);
  white-space: nowrap;
  font-size: 0.9rem;
  margin-left: 24px;
}

/* 文章详情页 */
.article-detail {
  max-width: 760px;
  margin: 0 auto;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 48px 56px;
}

.article-detail-header {
  margin-bottom: 40px;
  padding-bottom: 28px;
  border-bottom: 1px solid #eef0f2;
}

.article-detail-header h1 {
  font-size: 1.9rem;
  color: var(--primary);
  margin-bottom: 18px;
  line-height: 1.4;
}

.article-detail-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  color: var(--text-light);
  font-size: 0.95rem;
}

.article-detail-author {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #f0f4f8;
  color: var(--primary);
  padding: 6px 16px;
  border-radius: 100px;
  font-weight: 500;
}

.article-detail-body {
  font-size: 1.05rem;
  line-height: 1.95;
  color: var(--text);
}

.article-detail-body p {
  margin-bottom: 20px;
}

.article-detail-body strong {
  color: var(--primary);
  font-weight: 600;
}

@media (max-width: 768px) {
  .article-detail {
    padding: 32px 24px;
  }

  .article-detail-header h1 {
    font-size: 1.5rem;
  }
}

/* 信息表格 */
.info-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  overflow: hidden;
}

.info-table th,
.info-table td {
  padding: 16px 24px;
  text-align: left;
  border-bottom: 1px solid #eef0f2;
}

.info-table th {
  width: 180px;
  background: #f4f6f8;
  color: var(--primary);
  font-weight: 600;
}

.info-table tr:last-child th,
.info-table tr:last-child td {
  border-bottom: none;
}

/* 底部 */
.site-footer {
  background: #1f2937;
  color: #cbd5e1;
  padding: 48px 0 32px;
  margin-top: 40px;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 24px;
}

.footer-inner strong {
  display: block;
  color: var(--white);
  font-size: 1.1rem;
  margin-bottom: 12px;
}

.footer-inner p {
  font-size: 0.9rem;
  color: #9ca3af;
  margin-bottom: 6px;
}

.copyright {
  align-self: flex-end;
  font-size: 0.85rem;
  color: #6b7280;
}

/* 响应式 */
@media (max-width: 768px) {
  .header-inner {
    flex-direction: column;
    height: auto;
    padding: 16px 0;
  }

  .main-nav {
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    margin-top: 12px;
  }

  .hero {
    padding: 64px 0 72px;
  }

  .hero h1 {
    font-size: 2.2rem;
  }

  .subtitle {
    font-size: 1.1rem;
  }

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

  .lawyer-detail-header {
    grid-template-columns: 1fr;
  }

  .lawyer-detail-meta {
    padding: 32px 24px;
  }

  .lawyer-detail-body {
    padding: 32px 24px;
  }

  .article-item,
  .news-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .article-date {
    margin-left: 0;
    margin-top: 8px;
  }

  .features {
    grid-template-columns: 1fr;
  }

  .lawyer-grid {
    grid-template-columns: 1fr;
  }

  .about-split {
    grid-template-columns: 1fr;
  }

  .about-image {
    order: -1;
  }

  .page-image.wide img {
    height: 220px;
  }

  .info-table th {
    width: 120px;
  }
}

/* 律师照片支持：卡片头像与详情页照片 */
.lawyer-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

.lawyer-photo-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* 中英对照样式 */
.text-en {
  color: var(--text-light);
  font-size: 0.92rem;
  line-height: 1.75;
  margin-top: 12px;
  font-family: Georgia, "Times New Roman", serif;
}

.lawyer-detail-title-en {
  font-size: 0.92rem;
  color: #8f7343;
  margin-top: 4px;
  letter-spacing: 0.02em;
  font-family: Georgia, "Times New Roman", serif;
}

.subtitle-en {
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.82);
  letter-spacing: 0.04em;
  margin-top: 10px;
}

.en-inline {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.55em;
  color: #8f7343;
  font-weight: normal;
  margin-left: 8px;
  letter-spacing: 0.06em;
}

/* 整站双语扩展 */
.nav-en {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.72rem;
  opacity: 0.55;
  margin-left: 3px;
  letter-spacing: 0.03em;
}

.footer-en {
  color: rgba(255, 255, 255, 0.55);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.85rem;
  margin-top: 4px;
  letter-spacing: 0.02em;
}

.copyright-en {
  color: rgba(255, 255, 255, 0.45);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.8rem;
  margin-top: 4px;
}

.lawyer-name-en {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.72rem;
  color: var(--text-light);
  margin-top: -2px;
}

.lawyer-title-en {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.68rem;
  color: #8f7343;
  margin-top: 2px;
}

.lawyer-detail-name-en {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1rem;
  color: var(--text-light);
  margin-top: 2px;
}

.tag-list-en {
  margin-top: 8px;
}

.tag-list-en li {
  background: transparent;
  border: 1px solid rgba(143, 115, 67, 0.45);
  color: #8f7343;
}

.article-title-en {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.85rem;
  color: var(--text-light);
  margin-top: 2px;
}

.article-meta-en {
  font-family: Georgia, "Times New Roman", serif;
  color: #999999;
}

.news-en {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.85rem;
  color: var(--text-light);
  margin-top: 2px;
}

.news-meta-en {
  font-family: Georgia, "Times New Roman", serif;
  color: #999999;
}

/* 专业领域详情 */
.practice-details {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.practice-detail-name {
  font-weight: 600;
  color: var(--primary);
}

.practice-detail-name::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 2px;
  margin-right: 8px;
  vertical-align: 1px;
}

.practice-detail-desc {
  color: var(--text-light);
  font-size: 0.92rem;
  margin-top: 4px;
  line-height: 1.7;
}

.lead-en {
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.78);
  margin-top: 8px;
}

.btn-en {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.82em;
  opacity: 0.75;
  margin-left: 6px;
}
