/* ===== 全局重置 ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #1a73e8;
  --primary-dark: #1557b0;
  --primary-light: #e8f0fe;
  --text-main: #202124;
  --text-sub: #5f6368;
  --border: #e0e0e0;
  --bg: #f8f9fa;
  --white: #ffffff;
  --shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  --radius: 8px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Microsoft YaHei", "PingFang SC", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text-main);
  background: var(--bg);
  line-height: 1.6;
  min-height: 100vh;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

/* ===== 顶部导航栏 ===== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--white);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.navbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.logo {
  font-size: 20px;
  font-weight: 700;
  color: var(--primary);
  white-space: nowrap;
}

.nav-links {
  display: flex;
  gap: 28px;
  align-items: center;
}

.nav-links a {
  color: var(--text-main);
  font-size: 15px;
  transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* 语言切换按钮组 */
.lang-switch {
  display: inline-flex;
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  background: var(--white);
}

.lang-btn {
  padding: 6px 14px;
  background: var(--white);
  color: var(--text-sub);
  font-size: 13px;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}

.lang-btn + .lang-btn {
  border-left: 1px solid var(--border);
}

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

.lang-btn.active {
  background: var(--primary);
  color: var(--white);
}

/* 登录按钮 */
.login-btn {
  padding: 7px 18px;
  background: var(--primary);
  color: var(--white);
  border-radius: 20px;
  font-size: 14px;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
}

.login-btn:hover {
  background: var(--primary-dark);
}

/* 汉堡菜单按钮 */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  background: none;
  border: none;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--text-main);
  border-radius: 2px;
  transition: 0.3s;
}

/* ===== 主容器 ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 20px;
}

.page-title {
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-main);
}

.page-subtitle {
  color: var(--text-sub);
  font-size: 15px;
  margin-bottom: 28px;
}

/* ===== 首页：公司简介横幅 ===== */
.hero {
  background: linear-gradient(135deg, #1a73e8, #4285f4);
  color: var(--white);
  border-radius: var(--radius);
  padding: 40px 32px;
  margin-bottom: 32px;
  box-shadow: var(--shadow);
}

.hero h1 {
  font-size: 28px;
  margin-bottom: 12px;
}

.hero p {
  font-size: 15px;
  opacity: 0.95;
  max-width: 800px;
}

/* ===== 卡片 ===== */
.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
  margin-bottom: 24px;
}

.card-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-title .more {
  font-size: 14px;
  color: var(--primary);
  font-weight: 400;
}

/* ===== 人员列表（首页 + 列表页通用）===== */
.person-list {
  display: flex;
  flex-direction: column;
}

.person-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 12px;
  border-bottom: 1px solid var(--border);
  transition: background 0.2s;
  flex-wrap: wrap;
  gap: 8px;
}

.person-item:last-child {
  border-bottom: none;
}

.person-item:hover {
  background: var(--primary-light);
}

.person-info {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
  min-width: 200px;
}

.person-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 600;
  flex-shrink: 0;
}

.person-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: nowrap;
  overflow: hidden;
  white-space: nowrap;
}

.person-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-main);
  letter-spacing: 0.3px;
}

.person-name::after {
  content: "";
  display: inline-block;
  width: 4px;
  height: 4px;
  margin-left: 10px;
  border-radius: 50%;
  background: var(--border);
  vertical-align: middle;
}

.person-tag {
  font-size: 13px;
  color: var(--text-sub);
  overflow: hidden;
  text-overflow: ellipsis;
}

.person-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.tag {
  display: inline-block;
  padding: 3px 10px;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: 12px;
  font-size: 12px;
}

.btn-view {
  padding: 6px 16px;
  border: 1px solid var(--primary);
  color: var(--primary);
  border-radius: 16px;
  font-size: 13px;
  background: var(--white);
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.btn-view:hover {
  background: var(--primary);
  color: var(--white);
}

/* ===== 关于我们 ===== */
.about-section h2 {
  font-size: 20px;
  margin: 20px 0 12px;
  color: var(--primary);
}

.about-section p {
  color: var(--text-sub);
  margin-bottom: 12px;
  line-height: 1.8;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 20px;
  margin: 24px 0;
}

.stat-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
  text-align: center;
}

.stat-num {
  font-size: 32px;
  font-weight: 700;
  color: var(--primary);
}

.stat-label {
  font-size: 14px;
  color: var(--text-sub);
  margin-top: 4px;
}

/* ===== 详情页 ===== */
.detail-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}

.detail-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 600;
}

.detail-name {
  font-size: 24px;
  font-weight: 700;
}

.detail-sub {
  color: var(--text-sub);
  font-size: 14px;
  margin-top: 4px;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px 32px;
}

.detail-field {
  display: flex;
  flex-direction: column;
  padding: 12px 0;
  border-bottom: 1px dashed var(--border);
}

.detail-field .label {
  font-size: 13px;
  color: var(--text-sub);
  margin-bottom: 4px;
}

.detail-field .value {
  font-size: 15px;
  color: var(--text-main);
}

.detail-block {
  margin-top: 20px;
}

.detail-block h3 {
  font-size: 16px;
  color: var(--primary);
  margin-bottom: 10px;
  padding-left: 10px;
  border-left: 3px solid var(--primary);
}

.detail-block p {
  color: var(--text-sub);
  line-height: 1.8;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--primary);
  font-size: 14px;
  margin-bottom: 20px;
}

.back-link:hover {
  text-decoration: underline;
}

/* ===== 页脚 ===== */
.footer {
  text-align: center;
  padding: 24px 20px;
  color: var(--text-sub);
  font-size: 13px;
  border-top: 1px solid var(--border);
  margin-top: 40px;
  background: var(--white);
}

/* ===== 响应式：移动端 ===== */
@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }

  .nav-links {
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    gap: 0;
    padding: 0;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s;
  }

  .nav-links.open {
    max-height: 300px;
    padding: 8px 0;
  }

  .nav-links li {
    width: 100%;
    text-align: center;
  }

  .nav-links a {
    display: block;
    padding: 12px 20px;
  }

  .navbar-inner {
    position: relative;
  }

  .hero {
    padding: 28px 20px;
  }

  .hero h1 {
    font-size: 22px;
  }

  .page-title {
    font-size: 22px;
  }

  .container {
    padding: 20px 16px;
  }

  .person-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .person-info {
    width: 100%;
  }

  .btn-view {
    align-self: flex-end;
  }

  .detail-header {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }

  .lang-btn {
    padding: 5px 10px;
    font-size: 12px;
  }

  .login-btn {
    padding: 6px 14px;
    font-size: 13px;
  }
}
