/* ===== 基础重置 ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
  color: #333;
  background: #fff;
  line-height: 1.6;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

/* ===== Header ===== */
.site-header {
  border-bottom: 3px solid #B32D2E;
  padding: 20px 0 15px;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-circle {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #1a6fb5;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: bold;
  flex-shrink: 0;
}

.logo-text h1 {
  font-size: 22px;
  font-weight: bold;
  color: #222;
  line-height: 1.3;
}

.logo-text p {
  font-size: 11px;
  color: #888;
  letter-spacing: 0.5px;
}

.header-info {
  font-size: 12px;
  color: #666;
  line-height: 1.8;
}

.header-btn {
  background: #e8831a;
  color: #fff;
  padding: 8px 16px;
  border-radius: 4px;
  font-size: 13px;
  white-space: nowrap;
  transition: background 0.2s;
}

.header-btn:hover { background: #cf7315; }

/* ===== 导航栏 ===== */
.site-nav {
  background: #eef2f6;
  border-bottom: 1px solid #ddd;
}

.nav-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  padding: 10px 15px;
  gap: 4px;
}

.nav-inner a {
  font-size: 14px;
  color: #333;
  padding: 4px 6px;
  transition: color 0.2s;
}

.nav-inner a:hover,
.nav-inner a.active { color: #B32D2E; }

.nav-inner span {
  color: #ccc;
  font-size: 12px;
}

/* ===== 面包屑 ===== */
.breadcrumb {
  background: #f5f5f5;
  border-bottom: 1px solid #eee;
  padding: 8px 0;
  font-size: 13px;
  color: #888;
}

/* ===== 主体布局 ===== */
.main-wrap {
  display: flex;
  gap: 20px;
  padding-top: 20px;
  padding-bottom: 40px;
}

/* ===== 左侧菜单 ===== */
.sidebar {
  width: 220px;
  flex-shrink: 0;
}

.sidebar-title {
  background: #B32D2E;
  color: #fff;
  text-align: center;
  padding: 12px 0;
  font-size: 16px;
  font-weight: bold;
}

.sidebar-menu li {
  border: 1px solid #eee;
  border-top: none;
}

.sidebar-menu li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  font-size: 14px;
  color: #555;
  transition: color 0.2s;
}

.sidebar-menu li a::before {
  content: "●";
  font-size: 8px;
  color: #ccc;
  margin-right: 8px;
}

.sidebar-menu li a::after {
  content: "›";
  font-size: 16px;
  color: #ccc;
}

.sidebar-menu li a:hover,
.sidebar-menu li a.active {
  color: #B32D2E;
}

.sidebar-menu li a.active::before,
.sidebar-menu li a.active::after {
  color: #B32D2E;
}

/* ===== 右侧内容 ===== */
.content {
  flex: 1;
  min-width: 0;
}

/* ===== 搜索栏 ===== */
.search-bar {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
  flex-wrap: wrap;
  padding: 20px;
  background: #f8f8f8;
  border: 1px solid #eee;
}

.search-select,
.search-input {
  flex: 1;
  min-width: 150px;
  height: 42px;
  border: 1px solid #ddd;
  border-radius: 2px;
  padding: 0 12px;
  font-size: 14px;
  color: #555;
  background: #fff;
  outline: none;
  transition: border-color 0.2s;
}

.search-select:focus,
.search-input:focus {
  border-color: #B32D2E;
}

.search-input::placeholder { color: #aaa; }

.search-btn {
  height: 42px;
  padding: 0 32px;
  background: #B32D2E;
  color: #fff;
  border: none;
  border-radius: 2px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s;
  letter-spacing: 1px;
}

.search-btn:hover { background: #962526; }

/* ===== 律师列表 ===== */
.lawyer-list {
  border: 1px solid #eee;
}

.lawyer-item {
  display: flex;
  align-items: center;
  padding: 22px 24px;
  border-bottom: 1px solid #e8e8e8;
  background: #fafafa;
  gap: 24px;
  transition: background 0.15s;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.lawyer-item:nth-child(even) {
  background: #fff;
}

.lawyer-item:hover {
  background: #f3f0f0;
}

.lawyer-item:last-child {
  border-bottom: none;
}

/* 姓名 + 地点 */
.lawyer-name-col {
  width: 225px;
  flex-shrink: 0;
}

.lawyer-name {
  font-size: 27px;
  /* font-weight: 700; */
  color: #1a1a1a;
  margin-bottom: 20px;
  letter-spacing: 1px;
  line-height: 1.3;
  transition: color 0.2s;
}

.lawyer-item:hover .lawyer-name {
  color: #B32D2E;
}

.lawyer-location {
  font-size: 16px;
  color: #888;
  display: flex;
  align-items: center;
  gap: 8px;
}

.lawyer-location .pin {
  width: 16px;
  height: 16px;
  color: #B32D2E;
  flex-shrink: 0;
}

/* 职位 */
.lawyer-position {
  width: 225px;
  flex-shrink: 0;
  font-size: 18px;
  color: #777;
  font-weight: 500;
}

/* 业务领域 */
.lawyer-area {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: baseline;
  flex-direction: column;
  gap: 10px;
  line-height: 1.6;
}

.area-label {
  flex-shrink: 0;
  font-size: 15px;
  color: #aaa;
}

.area-text {
  font-size: 18px;
  color: #333;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* CV 链接 */
.lawyer-cv {
  flex-shrink: 0;
  color: #B32D2E;
  font-size: 18px;
  /* font-weight: 700; */
  text-decoration: underline;
  text-underline-offset: 3px;
  padding: 0 12px;
  letter-spacing: 1px;
  transition: color 0.2s;
}

.lawyer-cv:hover,
.lawyer-item:hover .lawyer-cv { color: #962526; }

/* ===== Footer ===== */
.site-footer {
  background: #f5f5f5;
  border-top: 1px solid #eee;
  padding: 20px 0;
  text-align: center;
  font-size: 13px;
  color: #999;
}

/* ===== 响应式 H5 ===== */
@media (max-width: 768px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .header-btn { align-self: flex-start; }

  .nav-inner {
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
  }

  .nav-inner span { display: none; }

  .nav-inner a {
    white-space: nowrap;
    padding: 4px 10px;
  }

  .main-wrap {
    flex-direction: column;
    padding-top: 12px;
  }

  .sidebar {
    width: 100%;
  }

  .sidebar-menu {
    display: flex;
    flex-wrap: wrap;
  }

  .sidebar-menu li {
    flex: 1 1 50%;
    border-top: 1px solid #eee;
  }

  .search-bar {
    flex-direction: column;
  }

  .search-select,
  .search-input {
    width: 100%;
    min-width: unset;
    flex: auto;
  }

  .search-btn {
    width: 100%;
  }

  .lawyer-item {
    flex-wrap: wrap;
    padding: 18px 16px;
    gap: 10px;
  }

  .lawyer-name-col {
    width: auto;
    flex: 1;
    min-width: 120px;
  }

  .lawyer-name {
    font-size: 20px;
  }

  .lawyer-position {
    width: auto;
    font-size: 14px;
  }

  .lawyer-area {
    width: 100%;
    flex-direction: column;
    gap: 4px;
  }

  .area-text {
    white-space: normal;
  }

  .lawyer-cv {
    margin-left: auto;
    font-size: 15px;
  }
}

@media (max-width: 480px) {
  .logo-text h1 { font-size: 18px; }

  .logo-circle {
    width: 48px;
    height: 48px;
    font-size: 20px;
  }

  .lawyer-name { font-size: 18px; }

  .search-bar {
    padding: 14px;
  }
}
