/* ==========================================================================
   中华人力资源学会 (ZHHR.NET) 官方网站 - 核心视觉样式表
   ========================================================================== */

:root {
  --primary-color: #0f2b5c;       /* 华夏学术深蓝 */
  --primary-dark: #091a38;        /* 暗夜深蓝 */
  --primary-light: #1e4287;       /* 明亮蓝 */
  --accent-gold: #c59b27;         /* 华贵鎏金 */
  --accent-gold-light: #f59e0b;   /* 亮金 */
  --accent-red: #b91c1c;          /* 典雅印章红 */
  --text-main: #1e293b;           /* 正文深色 */
  --text-muted: #64748b;          /* 辅助灰 */
  --text-light: #94a3b8;          /* 浅灰 */
  --bg-main: #ffffff;             /* 白底 */
  --bg-alt: #f8fafc;              /* 浅灰底 */
  --bg-card: #ffffff;             /* 卡片底 */
  --border-color: #e2e8f0;        /* 边框色 */
  --shadow-sm: 0 2px 8px rgba(15, 43, 92, 0.06);
  --shadow-md: 0 8px 24px rgba(15, 43, 92, 0.1);
  --shadow-lg: 0 16px 40px rgba(15, 43, 92, 0.14);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --transition: all 0.28s ease;
  --container-max: 1240px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--text-main);
  background-color: var(--bg-main);
  line-height: 1.68;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}

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

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

ul, ol {
  list-style: none;
}

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 20px;
}

/* --- 顶部通栏（红旗与官方认证标） --- */
.top-bar {
  background: var(--primary-dark);
  color: #94a3b8;
  font-size: 12px;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.top-bar-left {
  display: flex;
  align-items: center;
  gap: 16px;
}
.top-bar-right {
  display: flex;
  align-items: center;
  gap: 16px;
}
.top-bar-right a:hover {
  color: var(--accent-gold);
}

/* --- 主导航栏 (Header) --- */
.site-header {
  background: #ffffff;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 18px rgba(15, 43, 92, 0.08);
  transition: var(--transition);
}
.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}
.logo-box {
  display: flex;
  align-items: center;
  gap: 14px;
}
.logo-emblem {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-gold);
  font-weight: 900;
  font-size: 20px;
  border: 2px solid var(--accent-gold);
  box-shadow: 0 4px 12px rgba(15, 43, 92, 0.2);
}
.logo-text h1 {
  font-size: 20px;
  font-weight: 800;
  color: var(--primary-color);
  letter-spacing: 0.5px;
  line-height: 1.2;
}
.logo-text p {
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 1px;
  font-weight: 500;
  text-transform: uppercase;
}

/* 导航链接 */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-item {
  position: relative;
}
.nav-link {
  display: block;
  padding: 10px 14px;
  font-size: 15px;
  font-weight: 600;
  color: var(--primary-color);
  border-radius: var(--radius-sm);
  transition: var(--transition);
}
.nav-link:hover, .nav-link.active {
  color: var(--accent-gold);
  background: rgba(15, 43, 92, 0.04);
}
.nav-btn-join {
  background: linear-gradient(135deg, #b91c1c, #dc2626);
  color: #ffffff !important;
  font-weight: 700;
  border-radius: 50px;
  padding: 9px 22px;
  box-shadow: 0 4px 14px rgba(185, 28, 28, 0.3);
}
.nav-btn-join:hover {
  background: linear-gradient(135deg, #991b1b, #b91c1c);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(185, 28, 28, 0.4);
}

/* 移动端汉堡按钮 */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  color: var(--primary-color);
  cursor: pointer;
}

/* --- Hero Banner 轮播区 --- */
.hero-banner {
  position: relative;
  background: linear-gradient(135deg, rgba(9, 26, 56, 0.94), rgba(15, 43, 92, 0.88)), url('https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?auto=format&fit=crop&w=1920&q=80') center/cover no-repeat;
  color: #ffffff;
  padding: 90px 0 100px;
  overflow: hidden;
}
.hero-banner::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40px;
  background: linear-gradient(to top, var(--bg-main), transparent);
}
.hero-content {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}
.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(197, 155, 39, 0.18);
  border: 1px solid rgba(197, 155, 39, 0.4);
  color: #fef08a;
  padding: 6px 18px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 20px;
}
.hero-title {
  font-size: 42px;
  font-weight: 800;
  letter-spacing: 1px;
  line-height: 1.25;
  margin-bottom: 20px;
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}
.hero-title span {
  color: #fde047;
}
.hero-desc {
  font-size: 17px;
  color: #cbd5e1;
  line-height: 1.7;
  margin-bottom: 36px;
}
.hero-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 30px;
  font-size: 15px;
  font-weight: 700;
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: none;
  transition: var(--transition);
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent-gold), #b45309);
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(180, 83, 9, 0.35);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(180, 83, 9, 0.45);
}
.btn-outline {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(4px);
}
.btn-outline:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: #ffffff;
  transform: translateY(-2px);
}

/* --- 数据统计指标条 (Stats Bar) --- */
.stats-bar {
  margin-top: -50px;
  position: relative;
  z-index: 10;
  margin-bottom: 60px;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.stat-card {
  background: #ffffff;
  padding: 30px 20px;
  text-align: center;
}
.stat-num {
  font-size: 36px;
  font-weight: 800;
  color: var(--primary-color);
  line-height: 1;
  margin-bottom: 8px;
  font-feature-settings: "tnum";
}
.stat-num span {
  font-size: 20px;
  color: var(--accent-gold);
  margin-left: 2px;
}
.stat-label {
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 500;
}

/* --- 通用区块头部 (Section Header) --- */
.section {
  padding: 70px 0;
}
.section-bg {
  background-color: var(--bg-alt);
}
.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 50px;
}
.section-tag {
  color: var(--accent-red);
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 8px;
}
.section-title {
  font-size: 30px;
  font-weight: 800;
  color: var(--primary-color);
  margin-bottom: 12px;
}
.section-desc {
  color: var(--text-muted);
  font-size: 15px;
}

/* --- 新闻与学术动态选项卡 --- */
.news-tabs {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 35px;
}
.tab-btn {
  padding: 8px 22px;
  border-radius: 50px;
  border: 1px solid var(--border-color);
  background: #ffffff;
  color: var(--text-main);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: var(--transition);
}
.tab-btn:hover, .tab-btn.active {
  background: var(--primary-color);
  color: #ffffff;
  border-color: var(--primary-color);
}
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.news-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}
.news-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: rgba(15, 43, 92, 0.2);
}
.news-thumb {
  height: 200px;
  position: relative;
  overflow: hidden;
}
.news-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.news-card:hover .news-thumb img {
  transform: scale(1.06);
}
.news-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--primary-color);
  color: #ffffff;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 4px;
}
.news-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.news-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-light);
  font-size: 12px;
  margin-bottom: 10px;
}
.news-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 10px;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-summary {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex-grow: 1;
}
.news-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid #f1f5f9;
  padding-top: 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--primary-light);
}

/* --- 会员服务与加入入口 (Membership Cards) --- */
.membership-toggle {
  display: flex;
  justify-content: center;
  margin-bottom: 40px;
}
.toggle-wrapper {
  background: #e2e8f0;
  padding: 4px;
  border-radius: 50px;
  display: inline-flex;
}
.toggle-btn {
  padding: 10px 28px;
  border-radius: 50px;
  border: none;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  background: transparent;
  color: var(--text-muted);
}
.toggle-btn.active {
  background: #ffffff;
  color: var(--primary-color);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  align-items: stretch;
}
.pricing-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  padding: 34px 26px;
  position: relative;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.pricing-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}
.pricing-card.featured {
  border: 2px solid var(--accent-gold);
  background: linear-gradient(to bottom, #ffffff, #fefce8);
  transform: scale(1.03);
}
.pricing-card.featured:hover {
  transform: scale(1.03) translateY(-8px);
}
.featured-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--accent-gold), #b45309);
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 50px;
  letter-spacing: 1px;
}
.pricing-header {
  text-align: center;
  margin-bottom: 24px;
}
.tier-name {
  font-size: 20px;
  font-weight: 800;
  color: var(--primary-color);
  margin-bottom: 8px;
}
.tier-fee {
  font-size: 32px;
  font-weight: 800;
  color: var(--accent-red);
}
.tier-fee span {
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 500;
}
.tier-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent-gold);
  background: rgba(197, 155, 39, 0.12);
  padding: 3px 10px;
  border-radius: 4px;
  margin-top: 6px;
}
.tier-features {
  margin-bottom: 30px;
  flex-grow: 1;
}
.tier-features li {
  font-size: 13.5px;
  color: var(--text-main);
  margin-bottom: 12px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  line-height: 1.5;
}
.tier-features li::before {
  content: "✔";
  color: #16a34a;
  font-weight: 800;
}
.btn-apply {
  width: 100%;
  padding: 12px 0;
  text-align: center;
  background: var(--primary-color);
  color: #ffffff;
  font-weight: 700;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}
.btn-apply:hover {
  background: var(--primary-light);
}
.pricing-card.featured .btn-apply {
  background: linear-gradient(135deg, var(--accent-red), #dc2626);
}

/* --- 核心业务四格 (Services) --- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.service-card {
  background: #ffffff;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  padding: 32px 24px;
  text-align: center;
  transition: var(--transition);
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent-gold);
}
.service-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  background: rgba(15, 43, 92, 0.06);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: var(--primary-color);
  transition: var(--transition);
}
.service-card:hover .service-icon {
  background: var(--primary-color);
  color: #ffffff;
}
.service-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 10px;
}
.service-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* --- 专家委员会与学术阵容 --- */
.experts-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.expert-card {
  background: #ffffff;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  padding: 28px 20px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.expert-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}
.expert-avatar {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  margin: 0 auto 16px;
  background: linear-gradient(135deg, var(--primary-color), var(--accent-gold));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(15, 43, 92, 0.2);
}
.expert-name {
  font-size: 18px;
  font-weight: 800;
  color: var(--primary-color);
  margin-bottom: 4px;
}
.expert-role {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-red);
  margin-bottom: 8px;
}
.expert-title {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* --- 页脚 (Footer) --- */
.site-footer {
  background: #091a38;
  color: #94a3b8;
  padding: 70px 0 24px;
  border-top: 4px solid var(--accent-gold);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  margin-bottom: 50px;
}
.footer-brand h2 {
  color: #ffffff;
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 12px;
}
.footer-brand p {
  font-size: 14px;
  line-height: 1.8;
  margin-bottom: 18px;
}
.footer-heading {
  color: #ffffff;
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 8px;
}
.footer-heading::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background: var(--accent-gold);
}
.footer-links li {
  margin-bottom: 10px;
  font-size: 14px;
}
.footer-links a:hover {
  color: #ffffff;
  padding-left: 4px;
}
.qr-box {
  display: flex;
  gap: 20px;
}
.qr-item {
  text-align: center;
}
.qr-img {
  width: 100px;
  height: 100px;
  background: #ffffff;
  padding: 6px;
  border-radius: 8px;
  margin-bottom: 8px;
}
.qr-label {
  font-size: 12px;
  color: #cbd5e1;
}
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px;
  text-align: center;
  font-size: 13px;
}

/* ==========================================================================
   在线入会申请与收款弹窗组件 (Membership Modal & Payment)
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-backdrop.show {
  display: flex;
}
.modal-box {
  background: #ffffff;
  border-radius: var(--radius-lg);
  max-width: 680px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  animation: modalIn 0.3s ease;
}
@keyframes modalIn {
  from { opacity: 0; transform: translateY(20px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.modal-header {
  background: var(--primary-color);
  color: #ffffff;
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.modal-title {
  font-size: 18px;
  font-weight: 700;
}
.modal-close {
  background: none;
  border: none;
  color: #ffffff;
  font-size: 24px;
  cursor: pointer;
  line-height: 1;
}
.modal-body {
  padding: 28px 24px;
}
.form-group {
  margin-bottom: 20px;
}
.form-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--primary-color);
}
.form-label span.req {
  color: var(--accent-red);
  margin-left: 2px;
}
.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-size: 14px;
  outline: none;
  transition: var(--transition);
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--primary-light);
  box-shadow: 0 0 0 3px rgba(15, 43, 92, 0.1);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* 支付方式选项卡 */
.payment-section {
  background: var(--bg-alt);
  padding: 20px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  margin-top: 24px;
}
.payment-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 18px;
}
.pay-tab {
  flex: 1;
  padding: 10px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  background: #ffffff;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
  font-size: 14px;
  transition: var(--transition);
}
.pay-tab.active {
  border-color: var(--accent-red);
  color: var(--accent-red);
  background: #fef2f2;
}
.qr-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 10px 0;
}
.qr-code-box {
  width: 190px;
  height: 190px;
  background: #ffffff;
  border: 2px dashed var(--border-color);
  border-radius: var(--radius-md);
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  box-shadow: var(--shadow-sm);
}
.qr-code-box svg, .qr-code-box img {
  width: 100%;
  height: 100%;
}
.pay-amount-display {
  font-size: 24px;
  font-weight: 800;
  color: var(--accent-red);
  margin-bottom: 6px;
}
.pay-tip {
  font-size: 12px;
  color: var(--text-muted);
}
.bank-info-box {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 16px;
  font-size: 13px;
  line-height: 1.8;
  color: var(--text-main);
}

/* Toast 提示 */
.toast-box {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: var(--primary-color);
  color: #ffffff;
  padding: 14px 24px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  font-weight: 600;
  z-index: 3000;
  display: none;
  animation: slideUp 0.3s ease;
}
@keyframes slideUp {
  from { transform: translateY(30px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* --- 响应式适配 (Responsive) --- */
@media (max-width: 1024px) {
  .news-grid, .pricing-grid, .services-grid, .experts-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 768px) {
  .header-inner {
    height: 70px;
  }
  .nav-menu {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    background: #ffffff;
    flex-direction: column;
    padding: 20px;
    box-shadow: var(--shadow-lg);
  }
  .nav-menu.show {
    display: flex;
  }
  .mobile-toggle {
    display: block;
  }
  .hero-title {
    font-size: 28px;
  }
  .hero-desc {
    font-size: 15px;
  }
  .news-grid, .pricing-grid, .services-grid, .experts-grid {
    grid-template-columns: 1fr;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .pricing-card.featured {
    transform: none;
  }
}
