/* ============================================================
   北京市国有资产法治研究会 官网样式(全新开发, 复刻原站视觉)
   主色 #af090b · 辅助蓝 #2188ca · 版心 1200px
   ============================================================ */
:root {
  --red: #af090b;
  --red-dark: #8f0709;
  --red-light: #d9151f;
  --blue: #2188ca;
  --text: #333;
  --text-2: #666;
  --text-3: #999;
  --line: #e6e6e6;
  --bg: #f5f7fa;
  --container: 1200px;
  --font: "Noto Sans CJK SC", "Source Han Sans SC", "Microsoft YaHei", Tahoma, Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  font: 14px/1.75 var(--font);
  color: var(--text);
  background: #fff;
  min-width: 1200px;
}
a { color: inherit; text-decoration: none; }
a:hover { color: var(--red); }
ul, ol { list-style: none; }
img { max-width: 100%; border: 0; vertical-align: middle; }
button { font-family: inherit; cursor: pointer; }
.container { width: var(--container); margin: 0 auto; }
.pull-right { float: right; }

/* ========== 页头 ========== */
.site-header { background: #fff; padding: 22px 0 16px; }
.header-inner { display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 18px; }
.brand-logo { height: 76px; width: auto; }
.brand-cn { display: block; font-size: 30px; letter-spacing: 2px; color: var(--red); font-weight: 700; }
.brand-en { display: block; font-size: 12px; color: var(--text-3); letter-spacing: .4px; max-width: 620px; }
.header-search { display: flex; border: 2px solid var(--red); border-radius: 4px; overflow: hidden; }
.header-search input {
  width: 210px; height: 34px; border: 0; outline: 0; padding: 0 12px; font-size: 13px; color: var(--text-2);
}
.header-search button {
  width: 44px; border: 0; background: var(--red) url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.4'%3E%3Ccircle cx='10.5' cy='10.5' r='6.5'/%3E%3Cpath d='M15.5 15.5L21 21'/%3E%3C/svg%3E") center / 18px no-repeat;
}

/* ========== 主导航 ========== */
.main-nav { background: var(--red); }
.nav-list { display: flex; }
.nav-item { position: relative; flex: 1; text-align: center; }
.nav-item > a {
  display: block; height: 46px; line-height: 46px; color: #fff; font-size: 16px; letter-spacing: 1px;
}
.nav-item > a span { display: inline-block; padding: 0 26px; }
.nav-item:hover > a, .nav-item.active > a { background: var(--red-dark); }
.subnav {
  display: none; position: absolute; z-index: 99; left: 50%; transform: translateX(-50%);
  width: 170px; background: #fff; box-shadow: 0 4px 14px rgba(0,0,0,.14);
}
.nav-item:hover .subnav { display: block; }
.subnav li + li { border-top: 1px solid #f2e9e9; }
.subnav a { display: block; height: 38px; line-height: 38px; font-size: 14px; color: var(--text); }
.subnav a:hover { background: #fbf1f1; color: var(--red); }

/* ========== 首页轮播(原站显示高度 373px, 原图 1920×500 居中裁切) ========== */
.home-slider { position: relative; height: 373px; overflow: hidden; background: #222; }
.slider-track { height: 100%; }
.home-slider .slide {
  display: none; height: 100%; background: center / cover no-repeat;
}
.home-slider .slide.on { display: block; }
.slider-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 5;
  width: 46px; height: 74px; border: 0; opacity: .35;
  background: #000 url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.6'%3E%3Cpath d='M15 4l-8 8 8 8'/%3E%3C/svg%3E") center / 26px no-repeat;
}
.slider-arrow:hover { opacity: .65; }
.slider-arrow.next { right: 0; background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.6'%3E%3Cpath d='M9 4l8 8-8 8'/%3E%3C/svg%3E"); }
.slider-arrow.prev { left: 0; }
.slider-dots { position: absolute; z-index: 5; bottom: 16px; left: 0; right: 0; text-align: center; }
.slider-dots span {
  display: inline-block; width: 34px; height: 5px; margin: 0 4px; border-radius: 3px;
  background: rgba(255,255,255,.45); cursor: pointer; transition: background .25s;
}
.slider-dots span.on { background: #fff; }

/* ========== 首页板块 ========== */
.home-main { padding: 8px 0 40px; }
.home-sec { margin-top: 34px; }

/* 新闻资讯(左) + 学会概况(右) 同行并排 — 与原站一致 */
.home-row { display: flex; gap: 26px; margin-top: 26px; }
.home-row .home-sec { margin-top: 0; }
.col-news { flex: 1 1 690px; min-width: 0; }
.col-intro { flex: 0 0 445px; }
.col-intro .sec-head { min-width: 0; }
.col-intro .sec-title { font-size: 20px; }
.sec-head {
  display: flex; align-items: center; justify-content: space-between;
  border-bottom: 2px solid var(--red); padding-bottom: 10px;
}
.sec-title { font-size: 22px; color: var(--text); font-weight: 700; display: flex; align-items: center; gap: 12px; }
.sec-title i { width: 8px; height: 24px; background: var(--red); display: inline-block; }
.more { color: var(--red); font-size: 13px; }
.sec-body { margin-top: 18px; }

/* 学会概况/新闻 选项卡 */
.intro-tabs, .news-tabs { display: flex; border-bottom: 1px solid var(--line); }
.intro-tab, .news-tab {
  border: 0; background: none; font-size: 15px; color: var(--text-2);
  padding: 8px 22px; position: relative;
}
.intro-tab.on, .news-tab.on { color: #fff; background: var(--red); }
.intro-pane, .news-pane { display: none; }
.intro-pane.on, .news-pane.on { display: block; }
.intro-pane { margin-top: 16px; }

/* 新闻区(左列内: 单图 + 列表) */
.news-cols { display: flex; gap: 20px; margin-top: 16px; }
.news-pics { flex: 0 0 262px; }
.news-pic { display: block; width: 262px; height: 250px; overflow: hidden; border: 1px solid var(--line); }
.news-pic img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.news-pic:hover img { transform: scale(1.05); }
.news-pane { flex: 1; min-width: 0; }

/* 学会概况(右列): 照片 + 鼠标悬停弹出文字(复刻原站 hover 效果) */
.hover-photo { position: relative; height: 250px; overflow: hidden; border: 1px solid var(--line); }
.hover-photo img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s; }
.hover-photo:hover img { transform: scale(1.04); }
.hover-layer {
  position: absolute; left: 0; right: 0; bottom: 0; top: auto;
  max-height: 100%; overflow-y: auto;
  background: rgba(0, 0, 0, .62);
  color: #fff; font-size: 12.5px; line-height: 1.9;
  padding: 12px 14px;
  transform: translateY(100%);
  opacity: 0;
  transition: transform .35s ease, opacity .35s ease;
}
.hover-photo:hover .hover-layer { transform: translateY(0); opacity: 1; }
.hover-layer p { margin: 0; word-break: break-word; }

/* 文章列表 */
.article-list li {
  display: flex; align-items: baseline; gap: 14px;
  border-bottom: 1px dashed var(--line); padding: 9px 2px;
}
.article-list .date { color: var(--red); font-size: 13px; flex: none; }
.article-list .t {
  flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 14px;
}
.article-list.compact li { padding: 6px 2px; }

/* 会员服务三栏 */
.member-row { display: flex; gap: 30px; }
.member-col { flex: 1; min-width: 0; }
.mini-title {
  font-size: 16px; color: var(--text); padding-left: 10px; border-left: 4px solid var(--red);
  margin-bottom: 12px; line-height: 1.3;
}
.logo-wall { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.logo-cell {
  height: 64px; border: 1px solid var(--line); display: flex; align-items: center; justify-content: center;
  padding: 6px; background: #fafafa;
}
.logo-cell img { max-height: 100%; max-width: 100%; object-fit: contain; }
.member-apply img { width: 100%; border: 1px solid var(--line); }

/* 微矩阵 iframe */
.matrix-frame { width: 100%; height: 760px; border: 0; }

/* ========== 栏目页 ========== */
.page-banner {
  height: 240px; background: center / cover no-repeat; position: relative;
}
.page-banner h1 {
  position: absolute; left: 0; right: 0; bottom: 34px; text-align: center;
  color: #fff; font-size: 30px; letter-spacing: 4px; text-shadow: 0 2px 6px rgba(0,0,0,.4);
}
.breadcrumb { padding: 14px 0; color: var(--text-3); font-size: 13px; }
.breadcrumb em { font-style: normal; color: var(--red); margin: 0 6px; }
.page-main { padding-bottom: 50px; }
.page-card { background: #fff; border: 1px solid var(--line); min-height: 400px; }
.page-card-head {
  background: var(--bg); border-bottom: 2px solid var(--red); padding: 12px 22px;
}
.page-card-head h2 { font-size: 19px; color: var(--text); border-left: 5px solid var(--red); padding-left: 12px; }
.page-card-body { padding: 22px 28px 30px; }
.page-list li { padding: 12px 2px; }
.page-list .t { font-size: 15px; }
.empty-tip { color: var(--text-3); text-align: center; padding: 60px 0; }

/* 分页 */
.pager { text-align: center; padding: 26px 0 6px; font-size: 13px; }
.pager a, .pager span {
  display: inline-block; min-width: 32px; height: 32px; line-height: 30px;
  margin: 0 3px; padding: 0 10px; border: 1px solid var(--line); color: var(--text-2);
}
.pager a:hover { border-color: var(--red); color: var(--red); }
.pager a.on { background: var(--red); border-color: var(--red); color: #fff; }
.pager-info { border: 0; }

/* 图墙 */
.photo-wall { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.photo-cell {
  border: 1px solid var(--line); height: 108px; display: flex; align-items: center; justify-content: center;
  padding: 8px; background: #fafafa;
}
.photo-cell img { max-width: 100%; max-height: 100%; object-fit: contain; }
.page-main.embed .page-card { border: 0; }
.page-main.embed .photo-cell { height: 96px; }

/* ========== 文章页 ========== */
.article-card { padding-bottom: 20px; }
.article-head { text-align: center; padding: 30px 40px 16px; border-bottom: 1px solid var(--line); }
.article-title { font-size: 24px; line-height: 1.5; color: var(--text); }
.article-meta { margin-top: 12px; color: var(--text-3); font-size: 13px; }
.article-meta span { margin: 0 14px; }
.article-body { padding: 26px 46px 10px; font-size: 15px; }
.article-adj { padding: 10px 46px 24px; color: var(--text-2); }
.article-adj p { margin: 6px 0; }

/* 富文本容器兜底 */
.rich-text p { margin: 10px 0; }
.rich-text img { max-width: 100%; height: auto; }
.rich-text table { max-width: 100%; border-collapse: collapse; }
.rich-text ul, .rich-text ol { padding-left: 40px; list-style: revert; }
.rich-text a { color: var(--blue); }

/* 机构简介正文(首行缩进) */
.intro-text { font-size: 15px; line-height: 2; }
.intro-text p { text-indent: 2em; }

/* 组织架构图 */
.org-chart { text-align: center; padding: 26px 0 10px; }
.org-chart img { max-width: 420px; width: 90%; border: 1px solid var(--line); }

/* 领导成员卡片 */
.leader-board { padding: 14px 0 26px; }
.leader-row.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px 22px; }
.leader-card {
  text-align: center; padding: 20px 12px 16px;
  border: 1px solid var(--line); border-radius: 8px; background: #fff;
  transition: box-shadow .25s, border-color .25s;
}
.leader-card:hover { border-color: rgba(175,9,11,.45); box-shadow: 0 6px 18px rgba(175,9,11,.10); }
.leader-photo img {
  width: 128px; height: 150px; object-fit: cover;
  border: 1px solid #eee; border-radius: 4px; background: #fafafa;
}
.leader-name { font-size: 17px; color: var(--text); margin-top: 12px; font-weight: 700; }
.leader-name span { color: var(--red); font-size: 14px; margin-left: 8px; font-weight: 400; }
.leader-resume { font-size: 12.5px; color: #777; line-height: 1.9; margin-top: 6px; }
.leader-resume span { display: block; }
.leader-row.president { display: flex; justify-content: center; margin-bottom: 34px; }
.leader-row.president .leader-card { width: 300px; padding: 26px 12px 20px; border-color: rgba(175,9,11,.35); }
.leader-row.president .leader-photo img { width: 150px; height: 175px; }
.leader-row.president .leader-name { font-size: 19px; }
.leader-row.president .leader-name span { font-size: 15px; }

/* 首页"学会概况"选项卡配图(原图为方图, 按原站比例裁切) */
.intro-pane img { object-fit: cover; border-radius: 4px; }

/* 栏目子导航(同级栏目切换) */
.sub-nav { display: flex; flex-wrap: wrap; gap: 0; border-bottom: 2px solid var(--red); margin-top: 6px; }
.sub-nav a {
  padding: 9px 26px; font-size: 15px; color: var(--text-2);
  border: 1px solid var(--line); border-bottom: 0; margin-right: 6px;
  background: #fff; border-radius: 5px 5px 0 0;
}
.sub-nav a:hover { color: var(--red); }
.sub-nav a.on { background: var(--red); border-color: var(--red); color: #fff; }

/* ========== 右侧悬浮工具条(回到顶部/电话/QQ/微信二维码) ========== */
.side-toolbar {
  position: fixed; right: 0; top: 50%; transform: translateY(-50%);
  z-index: 99; display: flex; flex-direction: column;
  background: var(--red); border-radius: 6px 0 0 6px; overflow: visible;
  box-shadow: 0 4px 16px rgba(175, 9, 11, .35);
}
.st-item {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 3px;
  width: 64px; padding: 10px 4px 8px; color: #fff; font-size: 11px; line-height: 1.3;
  border: 0; background: none; cursor: pointer; text-align: center;
}
.st-item + .st-item { border-top: 1px solid rgba(255,255,255,.25); }
.st-item svg { width: 20px; height: 20px; }
.st-item:hover { background: var(--red-dark); color: #fff; }
.st-item span { letter-spacing: .5px; }
/* 微信二维码弹出层(悬停从右侧滑出) */
.st-qr {
  position: absolute; right: 72px; top: 50%; transform: translateY(-50%) translateX(12px);
  width: 128px; background: #fff; border: 1px solid var(--line); border-radius: 6px;
  padding: 10px 8px 8px; text-align: center; opacity: 0; visibility: hidden;
  transition: all .3s ease; box-shadow: 0 6px 20px rgba(0,0,0,.16);
}
.st-wechat:hover .st-qr { opacity: 1; visibility: visible; transform: translateY(-50%) translateX(0); }
.st-qr img { width: 104px; height: 104px; display: block; margin: 0 auto; }
.st-qr p { margin: 6px 0 0; color: var(--text-2); font-size: 12px; }

/* ========== 页脚 ========== */
.footer-banner img { width: 100%; display: block; }
.site-footer { background: var(--red); color: #fff; padding: 26px 0 30px; }
.friend-links { display: flex; align-items: baseline; gap: 26px; padding-bottom: 16px; border-bottom: 1px solid rgba(255,255,255,.22); }
.friend-links-title { font-size: 16px; font-weight: 700; flex: none; }
.friend-links-list { display: flex; flex-wrap: wrap; gap: 8px 26px; }
.friend-links-list a { color: rgba(255,255,255,.85); font-size: 13px; }
.friend-links-list a:hover { color: #fff; }
.copyright { text-align: center; padding-top: 16px; font-size: 12px; color: rgba(255,255,255,.8); }
.copyright a { color: rgba(255,255,255,.8); }
.copyright a:hover { color: #fff; }

/* ========== 错误页 ========== */
.err-page { min-width: 0; }
.err-box { text-align: center; padding: 120px 20px; }
.err-box h1 { font-size: 26px; margin-bottom: 16px; }
.err-box a { color: var(--red); }

/* ========== 名单表格美化(理事/常务理事名单) ========== */
.rich-text table, .page-card-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 14px 0 24px;
  font-size: 14px;
  table-layout: fixed;
  word-break: break-all;
}
.rich-text table td, .rich-text table th,
.page-card-body table td, .page-card-body table th {
  border: 1px solid #e0e0e0;
  padding: 9px 12px;
  line-height: 1.7;
}
.rich-text table th, .page-card-body table th {
  background: var(--red);
  color: #fff;
  font-weight: 600;
  text-align: center;
}
.rich-text table tr:nth-child(even) td, .page-card-body table tr:nth-child(even) td {
  background: #fafafa;
}
.rich-text table tr:hover td, .page-card-body table tr:hover td {
  background: #fdf3f3;
}
.list-title {
  font-size: 20px; text-align: center; margin: 6px 0 18px; color: var(--text);
}

/* ========== 会员申请入口卡片 ========== */
.apply-entry { display: flex; gap: 30px; padding: 20px 0 30px; }
.apply-card {
  flex: 1; border: 2px solid var(--red); border-radius: 10px;
  padding: 40px 30px 34px; text-align: center; background: #fff;
  transition: all .25s;
}
.apply-card:hover { background: var(--red); }
.apply-card h3 { font-size: 22px; color: var(--red); margin-bottom: 12px; }
.apply-card p { color: var(--text-2); font-size: 14px; margin-bottom: 22px; }
.apply-card .apply-btn {
  display: inline-block; border: 1px solid var(--red); color: var(--red);
  border-radius: 24px; padding: 8px 26px; font-size: 14px;
}
.apply-card:hover h3, .apply-card:hover p { color: #fff; }
.apply-card:hover .apply-btn { background: #fff; border-color: #fff; color: var(--red); }

/* ========== 会员名单分类卡片 ========== */
.member-cats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; padding: 24px 0 30px; }
.member-cat-card {
  border: 1px solid var(--line); border-radius: 10px; padding: 34px 12px 28px;
  text-align: center; background: #fff; transition: all .25s;
}
.member-cat-card:hover { border-color: var(--red); box-shadow: 0 8px 22px rgba(175,9,11,.12); transform: translateY(-3px); }
.member-cat-card h3 { font-size: 18px; color: var(--text); position: relative; padding-bottom: 12px; }
.member-cat-card h3::after {
  content: ''; position: absolute; left: 50%; transform: translateX(-50%);
  bottom: 0; width: 34px; height: 3px; background: var(--red); border-radius: 2px;
}
.member-cat-card p { color: var(--text-3); font-size: 13px; margin-top: 10px; }

/* ========== 入会申请表单 ========== */
.apply-form { max-width: 760px; margin: 10px auto 0; padding: 0 10px; }
.af-row { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.af-row.cols { flex-direction: row; gap: 18px; }
.af-row.cols > div { flex: 1; display: flex; flex-direction: column; gap: 8px; }
.af-row label { font-size: 14px; color: var(--text); }
.af-row label i { color: var(--red); font-style: normal; margin-left: 2px; }
.apply-form input, .apply-form textarea {
  border: 1px solid var(--line); border-radius: 5px; padding: 10px 12px;
  font-size: 14px; font-family: inherit; outline: none; resize: vertical;
}
.apply-form input:focus, .apply-form textarea:focus { border-color: var(--red); box-shadow: 0 0 0 3px rgba(175,9,11,.08); }
.af-count { text-align: right; color: var(--text-3); font-size: 12px; margin: 4px 0 0; }
.af-actions { display: flex; align-items: center; gap: 16px; margin-top: 26px; }
.btn-submit {
  border: 0; background: var(--red); color: #fff; font-size: 16px;
  padding: 12px 54px; border-radius: 5px; cursor: pointer; letter-spacing: 6px;
}
.btn-submit:hover { background: var(--red-dark); }
.af-msg { font-size: 13px; color: var(--text-3); }
.af-msg.ok { color: #2e7d32; }
.af-msg.err { color: var(--red); }
.af-tip { margin-top: 22px; color: var(--text-3); font-size: 13px; line-height: 1.9; border-top: 1px dashed var(--line); padding-top: 14px; }
.af-tip a { color: var(--red); }

/* ========== 会员名单聚合页: 四类标签 ========== */
.member-tabs { display: flex; justify-content: center; gap: 10px; margin: 4px 0 26px; flex-wrap: wrap; }
.mtab {
  border: 1px solid var(--red); background: #fff; color: var(--red);
  font-size: 15px; padding: 9px 34px; cursor: pointer; border-radius: 4px;
  transition: all .2s; letter-spacing: 1px;
}
.mtab:hover { background: #fdf1f1; }
.mtab.on { background: var(--red); color: #fff; }
.mpane { display: none; }
.mpane.on { display: block; animation: fadeIn .25s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.member-logo-wall { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.member-logo-wall .logo-cell.big { height: 84px; }
