/* ============================================================
   河北省畜牧兽医学会门户 - 全局样式（PC + 移动端响应式）
   配色参考：河北省科协 hbast.org.cn
   主色：深蓝 #083a91；辅色：红 #B91530；强调青 #1ac5ce
   ============================================================ */
:root {
  --primary: #083a91;
  --primary-dark: #062b6b;
  --primary-light: #27649c;
  --accent: #B91530;
  --accent-dark: #a51129;
  --cyan: #1ac5ce;
  --text: #333333;
  --text-light: #666666;
  --bg: #f5f5f5;
  --white: #ffffff;
  --border: #e5e5e5;
  --shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  --radius: 8px;
  --maxw: 1200px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", system-ui, sans-serif;
  color: var(--text);
  background: var(--bg);
  font-size: 15px;
  line-height: 1.7;
}
a { color: var(--text); text-decoration: none; transition: color .2s; }
a:hover { color: var(--primary); }
img { max-width: 100%; display: block; }
ul { list-style: none; }
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 16px; }
.clearfix::after { content: ""; display: block; clear: both; }

/* ---------- 头部固定栏：两行布局（第一行 logo，第二行导航菜单） ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}
/*.header-top { padding: 14px 0; background: #fff; }*/
.header-top { padding: 14px 0; background-image:url('/images/bgtop.jpg'); background-position: center;background-size: cover;}
.header-top .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.header-nav { background: var(--primary); position: relative; }
.header-nav .container { display: flex; align-items: center; justify-content: space-between; height: 48px; gap: 8px; }

.logo { display: flex; align-items: center; gap: 12px; flex: 0 0 auto; }
.logo .badge {
  width: 42px; height: 42px; border-radius: 8px;
  background: var(--primary); color: #fff;
  font-weight: 700; font-size: 14px;
  display: flex; align-items: center; justify-content: center; letter-spacing: 1px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.logo-text { display: flex; flex-direction: column; line-height: 1.2; }
/*.logo .name { font-size: 28px; font-weight: 700; color: var(--primary); }*/
.logo .name { font-size: 28px; font-weight: 700; color: #fff; }
.logo .slogan { font-size: 12px; color: var(--text-light); letter-spacing: 1px; margin-top: 2px; }

/* 头部右侧微信公众号入口（hover 弹二维码，跟 logo 同行；JS 动态对齐到「联系我们」右端） */
.wechat-box {
  position: relative; display: flex; align-items: center; gap: 6px;
  padding: 8px 12px; border-radius: 8px; cursor: pointer; outline: none;
  transition: background .2s;
  margin-left: auto; /* 默认推到 container 右端，JS 再按导航菜单最后一项右端微调 margin-right */
}
/*.wechat-box:hover, .wechat-box:focus { background: var(--primary); }*/
.wechat-icon { display: flex; align-items: center; justify-content: center; line-height: 0; }
.wechat-icon svg { display: block; }
.wechat-text { font-size: 14px; color: #fff; font-weight: 600; }
.wechat-popup {
  position: absolute; top: calc(100% + 8px); right: 0;
  width: 168px; padding: 12px; text-align: center;
  background: #fff; border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.18);
  display: none; z-index: 130;
}
.wechat-popup img { width: 100%; height: auto; display: block; border-radius: 4px; }
.wechat-popup p { margin-top: 8px; font-size: 13px; color: var(--text-light); }
/* 鼠标悬浮或键盘聚焦时显示 */
.wechat-box:hover .wechat-popup,
.wechat-box:focus .wechat-popup,
.wechat-box:focus-within .wechat-popup { display: block; }

.menu-toggle {
  display: none;
  font-size: 24px; cursor: pointer; color: #fff;
  background: none; border: none;
}

/* 导航菜单：横向铺满第二行 */
.nav { display: flex; justify-content:center; align-items: center; gap: 20px; flex: 1 1 auto; }
.nav a {
  padding: 0 18px; font-size: 15px; color: #fff; line-height: 48px;
  display: block; transition: background .2s, color .2s;
  white-space: nowrap;
}
.nav a:hover, .nav a.active {
  background: rgba(255,255,255,0.15); color: #fff;
}
.nav a.active::after { display: none; }

/* 导航二级下拉菜单（相对于第二行 header 定位） */
.nav-item { position: relative; height: 100%; display: flex; align-items: center; }
.nav-item > a { display: flex; align-items: center; gap: 4px; }
.nav-item .arrow-down { font-size: 11px; opacity: .85; }
.submenu {
  position: absolute; top: 48px; left: 0; min-width: 108px;
  background: #fff; box-shadow: 0 8px 22px rgba(0,0,0,.16);
  border-radius: 0 0 8px 8px; overflow: hidden; display: none; flex-direction: column; z-index: 120;
  text-align: center;
}
.nav-item:hover .submenu { display: flex; }
.submenu a {
  padding: 12px 18px; color: var(--text); font-size: 15px; white-space: nowrap;
  line-height: 1.4; border-bottom: 1px solid var(--border);
}
.submenu a:last-child { border-bottom: none; }
.submenu a:hover { background: #f5f5f5; color: var(--primary); }

/* 非首页：内容整体下移，避让固定栏（两行 header 总高 ≈ 140px） */
body:not(.home-page) { padding-top: 140px; }

/* ---------- 轮播 ---------- */
.slider { position: relative; overflow: hidden; height: 420px; background: #ddd; }
/*.home-page .hero-slider { height: calc(100vh - 400px); margin-top: 140px; }*/
.home-page .hero-slider { height: 400px;  margin-top: 140px; }
.home-page .hero-slider .slide .caption { padding-bottom: 30px; }
.slides { display: flex; transition: transform .5s ease; height: 100%; }
.slide { min-width: 100%; height: 100%; position: relative; }
.slide img { width: 100%; height: 100%; object-fit: cover; }
.slide .caption {
  position: absolute; left: 0; bottom: 0; right: 0; padding: 40px 0 30px;
  background: linear-gradient(transparent, rgba(0,0,0,.55)); color: #fff;
}
.slide .caption .container { font-size: 26px; font-weight: 700; }
.slider .arrow {
  position: absolute; top: 50%; transform: translateY(-50%); background: rgba(0,0,0,.35); color: #fff;
  border: none; width: 44px; height: 44px; border-radius: 50%; cursor: pointer; font-size: 22px; z-index: 5;
}
.slider .arrow:hover { background: rgba(0,0,0,.55); }
.slider .arrow.prev { left: 16px; }
.slider .arrow.next { right: 16px; }
.slider .dots { position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; z-index: 5; }
.slider .dots span { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.6); cursor: pointer; }
.slider .dots span.on { background: var(--accent); }

/* ---------- 通用区块 ---------- */
.section { padding: 25px 0; }
.section-title {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 18px; border-left: 4px solid var(--accent); padding-left: 12px;
}
.section-title h2 { font-size: 20px; color: var(--primary); }
.section-title .more { font-size: 13px; color: var(--text-light); }
.section-title .more:hover { color: var(--accent); }

/* 首页布局：固定栏 + 首屏轮播 */
.home-page { padding-top: 0; }
.home-page .nav a:hover, .home-page .nav a.active { background: rgba(255,255,255,0.2); }

/* 首页要闻：左图轮播 + 右标题列表 */
/*.news-focus { display: grid; grid-template-columns: 1.45fr 1fr; gap: 20px; align-items: start; }*/
/*.news-focus { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }*/
.news-focus { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: start; }

.news-slider { height: 240px; border-radius: var(--radius); overflow: hidden; background: #ddd; position: relative; }
.news-slider .slide img { width: 100%; height: 100%; object-fit: cover; }
.news-slider .slide .caption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 16px 0 32px;
  background: linear-gradient(transparent, rgba(0,0,0,.6));
}
.news-slider .slide .caption .container {
  font-size: 15px; font-weight: 700; padding: 0 14px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.news-slider .dots { bottom: 10px; }
.news-list-side { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px 16px; }
.news-list-side .section-title { margin-bottom: 10px; border-left: 4px solid var(--accent); padding-left: 10px; }
.news-list-side .news-list li { padding: 8px 0; }

.home-grid { display: grid; grid-template-columns: 1fr 340px; gap: 24px; }

/* 新闻列表 */
.news-list li { display: flex; align-items: center; padding: 11px 0; border-bottom: 1px dashed var(--border); }
.news-list li .dot { width: 6px; height: 6px; background: var(--primary-light); border-radius: 50%; margin-right: 10px; flex: 0 0 auto; }
.news-list li a { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.news-list li a:hover { color: var(--primary); }
.news-list li .date { color: var(--text-light); font-size: 13px; margin-left: 10px; flex: 0 0 auto; }
.news-list li.top a { color: var(--accent); font-weight: 600; }
.tag-top { background: var(--accent); color: #fff; font-size: 11px; padding: 1px 6px; border-radius: 3px; margin-right: 6px; }

/* 卡片 */
.card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.card-columns { display: grid; grid-template-columns: repeat(3, calc((100% - 36px) / 3)); gap: 18px; align-items: stretch; }
.card-columns > div { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px; display: flex; flex-direction: column; }

/* 统计条 */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 8px 0 28px; }
.stats .stat { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; text-align: center; }
.stats .stat .num { font-size: 30px; font-weight: 700; color: var(--primary); }
.stats .stat .label { color: var(--text-light); font-size: 14px; }

/* 侧边栏盒子 */
.sidebar-box { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px; margin-bottom: 20px; }
.sidebar-box h3 { font-size: 16px; color: var(--primary); margin-bottom: 12px; border-bottom: 2px solid var(--border); padding-bottom: 8px; }
.contact-info li { padding: 6px 0; font-size: 14px; color: var(--text-light); }
.contact-info li b { color: var(--text); }

/* ---------- 列表/详情页 ---------- */
.page-banner {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff; padding: 30px 0; text-align: center;
}
.page-banner h1 { font-size: 26px; }
.page-banner .crumb { font-size: 13px; opacity: .85; margin-top: 6px; }
.page-banner .crumb a { color: #fff; }

.layout-2col { display: grid; grid-template-columns: 200px 1fr; gap: 24px; padding: 28px 0; }
.subnav a {
  display: block; padding: 11px 16px; border-radius: 6px; margin-bottom: 6px; background: var(--white);
  border-left: 3px solid transparent; font-size: 15px;
}
.subnav a:hover, .subnav a.active { background: #eef4fb; border-left-color: var(--primary); color: var(--primary); }

.detail-card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px 32px; }
.detail-card h1 { font-size: 24px; text-align: center; color: var(--primary); margin-bottom: 12px; }
.detail-meta { text-align: center; color: var(--text-light); font-size: 13px; border-bottom: 1px solid var(--border); padding-bottom: 14px; margin-bottom: 20px; }
.detail-content { font-size: 16px; line-height: 1.9; color: #333; }
.detail-content p { margin-bottom: 14px; }
.detail-content img { margin: 14px auto; border-radius: 6px; }
.article-cover { width: 100%; border-radius: var(--radius); margin-bottom: 18px; }

.list-table li { display: flex; align-items: center; padding: 14px 4px; border-bottom: 1px solid var(--border); }
.list-table li .idx { width: 28px; color: var(--primary); font-weight: 700; }
.list-table li a { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 16px; }
.list-table li a:hover { color: var(--primary); }
.list-table li .date { color: var(--text-light); font-size: 13px; margin-left: 12px; }

.pager { display: flex; justify-content: center; gap: 8px; margin: 24px 0; }
.pager a, .pager span { padding: 7px 13px; border: 1px solid var(--border); border-radius: 6px; background: #fff; }
.pager a:hover, .pager span.current { background: var(--primary); color: #fff; border-color: var(--primary); }

/* 置灰按钮（第一页的上一页、最后一页的下一页） */
.pager span.disabled { color: var(--text-light); background: #f7f7f7; cursor: default; }



/* 下载列表 */
/* 专家团队卡片 */
.expert-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; margin-top: 6px; }
.expert-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px 18px; text-align: center; }
.expert-card .avatar { width: 72px; height: 72px; border-radius: 50%; background: var(--primary); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 28px; font-weight: 700; margin: 0 auto 12px; }
.expert-card .e-name { font-size: 18px; font-weight: 700; color: var(--primary); }
.expert-card .e-title { font-size: 13px; color: var(--accent); margin: 4px 0; }
.expert-card .e-org { font-size: 13px; color: var(--text-light); }
.expert-card .e-bio { font-size: 13px; color: #555; margin-top: 10px; text-align: left; line-height: 1.7; }

/* 专家卡片作为链接 */
a.expert-card { display: block; color: inherit; text-decoration: none; transition: transform .18s ease, box-shadow .18s ease; }
a.expert-card:hover { transform: translateY(-4px); }
.expert-card .avatar img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; display: block; margin: 0 auto 12px; border: 2px solid var(--primary); }

/* 专家详情 */
.expert-detail { display: flex; align-items: center; gap: 22px; padding-bottom: 4px; }
.expert-detail .exp-avatar img { width: 110px; height: 110px; border-radius: 50%; object-fit: cover; border: 3px solid var(--primary); }
.expert-detail .exp-info h1 { margin: 0 0 6px; font-size: 24px; color: var(--primary); }
.expert-detail .exp-title { color: var(--accent); font-size: 15px; font-weight: 600; margin-bottom: 4px; }
.expert-detail .exp-org { color: var(--text-light); font-size: 14px; }
@media (max-width: 560px) { .expert-detail { flex-direction: column; text-align: center; } }

/* 联系页 */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.contact-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 26px; }
.contact-card h3 { color: var(--primary); margin-bottom: 16px; }
.contact-card p { margin-bottom: 10px; color: var(--text-light); }
.map-placeholder { height: 240px; background: #e8eef7; border-radius: var(--radius); overflow: hidden; position: relative; }
.map-placeholder:empty { display:flex; align-items:center; justify-content:center; color: var(--primary); font-size: 15px; }
.map-placeholder:empty::before { content: '📍 地图加载中…'; }
.map-placeholder img, .map-placeholder canvas { width: 100%; height: 100%; object-fit: cover; }

/* 首页友情链接 section：4 个链接 + 单位会员 hover 弹窗（弹窗显示在整行上方） */
.friend-section {
  margin-top: 28px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 18px 22px; position: relative;
}
.friend-title { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }
.friend-title .friend-icon { color: var(--primary); display: flex; align-items: center; justify-content: center; }
.friend-title h2 { font-size: 18px; color: var(--primary); font-weight: 700; }
/* 5 列网格：friend-list display:contents 让其 4 个子元素直接参与网格，
   与 friend-member（单位会员）一起均分 5 列，保证宽度完全一致 */
.friend-row {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px;
  align-items: stretch; position: relative;
}
.friend-list { display: contents; }
.friend-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px; background: #f7f9fc; border-radius: 8px;
  border: 1px solid var(--border); color: var(--text); font-size: 14px;
  text-decoration: none; transition: border-color .2s, color .2s, background .2s;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  min-width: 0;
}
/*.friend-item::after { content: '▾'; opacity: .45; margin-left: 8px; flex: 0 0 auto; }*/
.friend-items::after { content: '▾'; opacity: .45; margin-left: 8px; flex: 0 0 auto; }

.friend-items {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px; background: #f7f9fc; border-radius: 8px;
  border: 1px solid var(--border); color: var(--text); font-size: 14px;
  text-decoration: none; transition: border-color .2s, color .2s, background .2s;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  min-width: 0;
}
.friend-item:hover { border-color: var(--primary); color: var(--primary); background: #eef4fb; }
/* 单位会员卡：本身就是 .friend-item，hover/focus 触发兄弟弹窗显示 */
.friend-member { cursor: pointer; }
/* 弹窗：以 friend-row 为锚点，显示在 row 上方，比下方 5 个友情链接卡片左右各宽出 ~14px（一个 gap） */
.friend-row .member-popup {
  display: none; position: absolute;
  bottom: calc(100% + 8px); left: -20px; right: -20px;
  background: #fff; border-radius: 8px;
  box-shadow: 0 -8px 24px rgba(0,0,0,0.18); padding: 16px 20px;
  z-index: 130;
  grid-template-columns: repeat(3, 1fr); gap: 6px 24px;
}
.friend-row .member-popup::after {
  /* 底部小三角，指向单位会员卡（第 5 列中心）：
     popup 右超出 friend-row 14px，第 5 列中心 ≈ popup 宽度的 10% + 12px 处 */
  content: ''; position: absolute;
  bottom: -8px; right: calc(10% + 14px);
  width: 0; height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-top: 8px solid #fff;
}
.friend-row .member-popup a {
  display: block; padding: 6px 0; color: var(--text); font-size: 13px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  border-bottom: 1px dashed var(--border);
}
.friend-row .member-popup a:last-child { border-bottom: none; }
.friend-row .member-popup a:hover { color: var(--primary); }
/* 弹窗显示：由 JS 给 friend-row 加 .is-open 类控制（避免 CSS hover 间隙闪烁） */
.friend-row.is-open .member-popup { display: grid; }

@media (max-width: 768px) {
  .friend-row { grid-template-columns: repeat(2, 1fr); }
  .friend-row .member-popup { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .friend-row { grid-template-columns: 1fr; }
  .friend-row .member-popup { grid-template-columns: 1fr; }
}

/* ---------- 页脚（图片布局：深蓝渐变背景 + 装饰地球图 + 3 列） ---------- */
.site-footer {
  position: relative; overflow: hidden;
  /*background: linear-gradient(135deg, #062b6b, #083a91 60%, #1ac5ce);*/
  color: rgba(255,255,255,0.85); 
  /*margin-top: 40px;*/
  /*width: calc(100% - 32px);*/
  /*max-width: calc(var(--maxw) - 32px);*/
  /*margin: 0 auto;*/
  
  
  padding: 20px 0 18px; 
  font-size: 14px;
  background-image: url('/images/bgbottom.png');
  background-position: center;
  background-size: cover;
  height: 200px;
}
/* 装饰地球图：CSS 径向渐变模拟 + 半透明叠加 */
/*.site-footer .footer-bg {*/
/*  position: absolute; right: -80px; top: 50%; transform: translateY(-50%);*/
/*  width: 420px; height: 420px; border-radius: 50%;*/
/*  background: radial-gradient(circle at 30% 30%, #4f9bce 0%, #1e5d92 35%, #062b6b 70%, transparent 75%);*/
/*  box-shadow: inset -20px -20px 60px rgba(0,0,0,0.45), 0 0 80px rgba(26,197,206,0.25);*/
/*  opacity: .85; pointer-events: none;*/
/*}*/
/*.site-footer .footer-bg::before {*/
  /* 经纬网格线装饰 */
/*  content: ''; position: absolute; inset: 0; border-radius: 50%;*/
/*  background:*/
/*    repeating-linear-gradient(0deg, transparent 0 30px, rgba(255,255,255,0.08) 30px 31px),*/
/*    repeating-linear-gradient(90deg, transparent 0 30px, rgba(255,255,255,0.08) 30px 31px);*/
/*}*/
.site-footer .container { position: relative; z-index: 1; }
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1.2fr 0.8fr; gap: 32px;
  align-items: center; min-height: 180px;
}
.footer-info h4 { color: #fff; margin-bottom: 14px; font-size: 20px; }
.footer-info p { color: rgba(255,255,255,0.75); line-height: 1.9; font-size: 14px; }
/* 品牌区域：底部 logo + 中英学会名 */
.footer-brand { text-align: center; color: #fff; }
.footer-brand-inner {
  display: inline-flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 10px 26px; border-radius: 12px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.15);
  backdrop-filter: blur(2px);
}
.footer-brand .footer-logo { width: 56px; height: 56px; object-fit: contain; }
.footer-brand .footer-name { font-size: 22px; font-weight: 700; letter-spacing: 2px; }
.footer-brand .footer-en { font-size: 11px; opacity: .85; letter-spacing: 1px; }
/* 单位会员 */
.footer-member { position: relative; }
.footer-member .member-card {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 6px; padding: 16px 12px; min-height: 90px;
  background: linear-gradient(135deg, rgba(255,255,255,0.12), rgba(255,255,255,0.04));
  border: 1px solid rgba(255,255,255,0.25); border-radius: 10px;
  color: #fff; cursor: pointer; outline: none;
  transition: background .2s, border-color .2s;
}
.footer-member:hover .member-card { background: rgba(255,255,255,0.18); border-color: rgba(255,255,255,0.5); }
.footer-member .member-icon { display: flex; align-items: center; justify-content: center; }
.footer-member .member-label { font-size: 15px; font-weight: 600; }
.footer-member .member-popup {
  display: none; position: absolute; bottom: calc(100% + 8px); right: 0;
  width: 260px;
  background: #fff; border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.25); padding: 8px 14px; z-index: 130;
}
.footer-member .member-popup a {
  display: block; padding: 8px 0; color: var(--text); font-size: 14px;
  border-bottom: 1px dashed var(--border); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.footer-member .member-popup a:last-child { border-bottom: none; }
.footer-member .member-popup a:hover { color: var(--primary); }
.footer-member:hover .member-popup,
.footer-member:focus .member-popup,
.footer-member:focus-within .member-popup { display: block; }

/* 版权/备案行 */
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.18); margin-top: 24px; padding-top: 14px;
  text-align: center; font-size: 13px; color: rgba(255,255,255,0.65); line-height: 1.9;
}

@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr; gap: 20px; text-align: center; }
  .footer-info p { text-align: left; }
  .site-footer .footer-bg { width: 280px; height: 280px; right: -120px; opacity: .55; }
}

/* ============================================================
   后台管理样式
   ============================================================ */
.admin-body { background: #f0f2f5; }
.admin-layout { display: grid; grid-template-columns: 220px 1fr; min-height: 100vh; }
.admin-side { background: var(--primary); color: rgba(255,255,255,0.8); }
.admin-side .brand { padding: 18px 20px; font-size: 18px; font-weight: 700; color: #fff; border-bottom: 1px solid rgba(255,255,255,0.12); }
.admin-side a { display: block; padding: 13px 22px; color: rgba(255,255,255,0.85); border-left: 3px solid transparent; }
.admin-side a:hover, .admin-side a.active { background: rgba(0,0,0,0.15); color: #fff; border-left-color: var(--cyan); }
.admin-main { padding: 0; }
.admin-top { background: #fff; height: 56px; display: flex; align-items: center; justify-content: space-between; padding: 0 24px; box-shadow: 0 1px 4px rgba(0,0,0,.06); }
.admin-top .user { font-size: 14px; color: var(--text-light); }
.admin-content { padding: 24px; }
.admin-card { background: #fff; border-radius: var(--radius); box-shadow: 0 1px 4px rgba(0,0,0,.05); padding: 22px; }

/* 表格 */
.table { width: 100%; border-collapse: collapse; background: #fff; font-size: 14px; }
.table th, .table td { padding: 11px 12px; border-bottom: 1px solid var(--border); text-align: left; }
.table th { background: #f7f9fc; color: var(--text-light); font-weight: 600; }
.table tr:hover td { background: #fafcff; }
.thumb { width: 70px; height: 46px; object-fit: cover; border-radius: 4px; }
.badge-ok { background: #e6f7ef; color: var(--accent-dark); padding: 2px 8px; border-radius: 10px; font-size: 12px; }
.badge-no { background: #fdeaea; color: #c0392b; padding: 2px 8px; border-radius: 10px; font-size: 12px; }

/* 表单 */
.form-group { margin-bottom: 16px; }
.form-group label { display: block; margin-bottom: 6px; font-weight: 600; font-size: 14px; }
.form-control, .form-control:focus {
  width: 100%; padding: 9px 12px; border: 1px solid var(--border); border-radius: 6px; font-size: 14px; outline: none;
}
.form-control:focus { border-color: var(--primary); }
textarea.form-control { min-height: 160px; font-family: inherit; }
.btn {
  display: inline-block; padding: 9px 20px; border: none; border-radius: 6px; cursor: pointer; font-size: 14px;
  background: var(--primary); color: #fff;
}
.btn:hover { background: var(--primary-dark); color: #fff; }
.btn-sm { padding: 5px 12px; font-size: 13px; }
.btn-green { background: var(--accent); }
.btn-green:hover { background: var(--accent-dark); }
.btn-gray { background: #95a0ad; }
.btn-gray:hover { background: #7c8794; }
.btn-danger { background: #e74c3c; }
.btn-danger:hover { background: #c0392b; }
.actions a, .actions button { margin-right: 6px; }
.login-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--primary-dark), var(--primary)); }
.login-box { background: #fff; border-radius: 12px; padding: 36px 34px; width: 360px; box-shadow: 0 10px 40px rgba(0,0,0,.2); }
.login-box h2 { text-align: center; color: var(--primary); margin-bottom: 6px; }
.login-box .sub { text-align: center; color: var(--text-light); margin-bottom: 22px; font-size: 13px; }
.login-error { background: #fdeaea; color: #c0392b; padding: 8px 12px; border-radius: 6px; font-size: 13px; margin-bottom: 14px; }

#footerContact{
    margin-left: 100px;
}

/* ============================================================
   专家申请表单页（zhuanjia.html）
   ============================================================ */
.expert-form-card { max-width: 860px; }
.expert-form-card .section-title { border-left: 4px solid var(--accent); padding-left: 10px; margin-bottom: 10px; }
.expert-fieldset {
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 16px 18px 4px; margin: 0 0 18px; background: #fafbfd;
}
.expert-fieldset legend {
  padding: 0 10px; font-size: 16px; font-weight: 700; color: var(--primary);
}
.row-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 18px; }
.form-group-full { grid-column: 1 / -1; }
.expert-form-card .form-group label { display: flex; align-items: center; gap: 2px; }
.required-star { color: var(--accent); font-weight: 700; }
.radio-group, .checkbox-group { display: flex; flex-wrap: wrap; gap: 8px 18px; padding-top: 2px; }
.radio-item, .checkbox-item {
  display: inline-flex; align-items: center; gap: 5px; cursor: pointer;
  font-weight: 400; font-size: 14px; color: var(--text); margin: 0;
}
.radio-item input, .checkbox-item input { accent-color: var(--primary); width: 16px; height: 16px; cursor: pointer; }
.expert-form-tip {
  text-align: center; font-size: 13px; color: var(--text-light);
  padding: 6px 0 14px; border-bottom: 1px dashed var(--border); margin-bottom: 16px;
}
.expert-form-submit { text-align: center; padding-bottom: 8px; }
.expert-form-submit .btn { min-width: 240px; padding: 11px 20px; font-size: 16px; border-radius: 8px; }
.expert-form-tip.submitting { color: var(--primary); }



/* ============================================================
   响应式：移动端适配（<= 768px）
   ============================================================ */
@media (max-width: 768px) {
  .logo .name { font-size: 17px; }
  .logo .slogan { display: none; }
  .logo .badge { width: 40px; height: 40px; font-size: 13px; }
  .wechat-box { padding: 6px 8px; }
  .wechat-text { display: none; }
  .wechat-popup { width: 140px; }
  .menu-toggle { display: block; }
  .header-nav .container { height: 48px; }
  .nav {
    position: absolute; top: 48px; left: 0; right: 0; background: #fff; flex-direction: column; align-items: stretch;
    box-shadow: 0 6px 16px rgba(0,0,0,.1); max-height: 0; overflow: hidden; transition: max-height .3s;
  }
  .nav.open { max-height: 80vh; overflow-y: auto; }
  .nav a { padding: 13px 18px; border-bottom: 1px solid var(--border); border-radius: 0; color: var(--text); line-height: 1.6; }
  .nav a:hover, .nav a.active { background: #f5f5f5; color: var(--primary); }
  .nav-item { height: auto; display: block; }
  .nav-item > a { color: var(--text); }
  .nav-item .arrow-down { float: right; }
  .submenu { position: static; display: flex; box-shadow: none; border-radius: 0; }
  .submenu a { padding: 11px 18px 11px 34px; background: #fafafa; }

  .slider { height: 200px; }
  .home-page .slider { height: calc(100vh - 140px); }
  .slide .caption .container { font-size: 17px; padding: 0 16px; }
  .slider .arrow { width: 34px; height: 34px; font-size: 18px; }
  .news-focus { grid-template-columns: 1fr; }
  .news-slider { height: 220px; }
  .news-slider .slide .caption .container { font-size: 15px; }

  .home-grid { grid-template-columns: 1fr; }
  .card-columns { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .layout-2col { grid-template-columns: 1fr; }
  .subnav { display: flex; flex-wrap: wrap; gap: 6px; }
  .subnav a { margin-bottom: 0; flex: 1 1 auto; text-align: center; border-left: none; border: 1px solid var(--border); }
  .contact-grid { grid-template-columns: 1fr; }
  .row-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .detail-card { padding: 18px; }
  .news-list li .date { display: none; }
  .admin-layout { grid-template-columns: 1fr; }
  .admin-side { display: none; }
  .table-responsive { overflow-x: auto; }
  .login-box { width: 90%; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .section-title h2 { font-size: 17px; }
}
