/* ================================================================
   河南省高校创新创业实践联盟 — 共享样式
   现代政务风：公文蓝 #1A4480 + 中国红 #C41E3A + 鎏金 #C9A961
   ================================================================ */

:root {
  --primary: #1A4480;
  --primary-dark: #0D2E5C;
  --primary-light: #E8F0FB;
  --accent: #C41E3A;
  --accent-light: #FDF2F4;
  --gold: #C9A961;
  --gold-light: #E8D9B0;
  --ink: #1A1A1A;
  --text: #333333;
  --muted: #666666;
  --muted-light: #999999;
  --border: #E0E5EA;
  --border-light: #EFF2F5;
  --bg: #F5F7FA;
  --bg-warm: #FAF8F5;
  --surface: #FFFFFF;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.08);
  --shadow-lg: 0 12px 32px rgba(0,0,0,0.12);
  --transition: all 0.3s ease;
  --serif: "Noto Serif SC", "SimSun", "宋体", serif;
  --sans: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --radius: 8px;
  --radius-sm: 6px;
  --radius-lg: 12px;
}

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

body {
  font-family: var(--sans);
  color: var(--text);
  background: var(--bg);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  font-size: 15px;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.container-narrow { max-width: 900px; margin: 0 auto; padding: 0 20px; }

a { color: var(--primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--accent); }

/* ===== 顶部信息条 ===== */
.top-bar { background: var(--primary-dark); color: rgba(255,255,255,0.85); font-size: 13px; padding: 6px 0; }
.top-bar .container { display: flex; justify-content: space-between; align-items: center; }
.top-bar .tb-left { display: flex; align-items: center; gap: 6px; }
.top-bar .tb-right a { color: rgba(255,255,255,0.85); margin-left: 20px; }
.top-bar .tb-right a:hover { color: var(--gold); }

/* ===== 导航 ===== */
.header { background: var(--surface); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 100; box-shadow: var(--shadow-sm); }
.header .container { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.logo-mark {
  height: 44px; max-height: 44px; width: auto; border-radius: var(--radius-sm);
  display: block; object-fit: contain;
}
.logo-text h1 { font-family: var(--serif); font-size: 18px; font-weight: 700; color: var(--ink); letter-spacing: 1px; line-height: 1.3; }
.logo-text .sub { font-size: 11px; color: var(--muted); letter-spacing: 1.5px; }
.nav { display: flex; align-items: center; gap: 0; }
.nav a {
  font-size: 15px; font-weight: 500; color: var(--text); text-decoration: none;
  padding: 10px 18px; transition: var(--transition); border-radius: var(--radius-sm);
}
.nav a:hover { color: var(--primary); background: var(--primary-light); }
.nav a.active { color: var(--primary); background: var(--primary-light); font-weight: 600; }
/* 二级下拉：鼠标划过展开 */
.nav-item { position: relative; }
.nav-item .nav-caret { font-size: 9px; margin-left: 3px; color: var(--muted-light); transition: var(--transition); }
.nav-item:hover .nav-caret { transform: rotate(180deg); color: var(--primary); }
.nav-sub {
  position: absolute; top: 100%; left: 50%; min-width: 160px; z-index: 300;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md); padding: 6px;
  opacity: 0; visibility: hidden; transform: translateX(-50%) translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}
.nav-item:hover .nav-sub { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.nav-sub a {
  display: flex; align-items: center; gap: 8px; white-space: nowrap;
  font-size: 14px; padding: 9px 14px; border-radius: 4px; color: var(--text);
}
.nav-sub a i { color: var(--muted-light); width: 15px; text-align: center; font-size: 13px; transition: var(--transition); }
.nav-sub a:hover { background: var(--primary-light); color: var(--primary); }
.nav-sub a:hover i { color: var(--primary); }
/* 加宽面板（联盟单位：两列直列单位名称） */
.nav-sub.sub-wide { display: flex; gap: 8px; width: 660px; min-width: 0; padding: 12px; }
.nav-sub.sub-wide .sw-col { flex: 1; min-width: 0; }
.nav-sub.sub-wide .sw-col + .sw-col { border-left: 1px solid var(--border-light); padding-left: 12px; }
.nav-sub.sub-wide .sw-title { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: var(--primary); padding: 4px 14px 8px; border-bottom: 1px solid var(--border-light); margin-bottom: 4px; white-space: nowrap; }
.nav-sub.sub-wide .sw-title .sw-count { font-weight: 400; color: var(--muted); font-size: 12px; }
.nav-sub.sub-wide a { padding: 6px 14px; font-size: 13px; border-radius: 4px; overflow: hidden; text-overflow: ellipsis; position: relative; }
/* 单位等级奖牌——右上角 */
.nav-sub.sub-wide a .sw-medal { position: absolute; top: 1px; right: 6px; font-size: 10px; line-height: 1; opacity: 0.9; }
@media (max-width: 991px) { .nav-sub.sub-wide { display: none; } }
.login-btn {
  background: var(--primary); color: #fff; padding: 8px 22px; border-radius: var(--radius-sm);
  text-decoration: none; font-size: 14px; font-weight: 500; transition: var(--transition);
  display: inline-flex; align-items: center; gap: 6px;
}
.login-btn:hover { background: var(--primary-dark); }

/* ===== 用户入口抽屉（绝对定位浮动，白底深灰字，悬停块身展开/收起） ===== */
.user-drawer { position: absolute; top: 0; right: 20px; z-index: 200; }
.user-drawer .ud-main {
  display: block; background: #fff; color: #333; text-decoration: none;
  font-size: 13px; font-weight: 600; letter-spacing: 1px; white-space: nowrap;
  border: 1px solid var(--border); border-top: none; border-radius: 0 0 8px 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  overflow: hidden; max-height: 16px;
  transition: max-height 0.25s ease;
}
/* 收缩态只露一条细带 + 向下箭头 */
.user-drawer .ud-main { display: flex; flex-direction: column; align-items: center; }
.user-drawer .ud-main .ud-chev { order: 1; text-align: center; font-size: 9px; line-height: 14px; color: #666; }
.user-drawer .ud-main .ud-chev i { transition: transform 0.25s ease; }
.user-drawer .ud-main .ud-label { order: 2; text-align: center; padding: 2px 18px 4px; color: #333; }
.user-drawer .ud-main .ud-label i { color: #555; margin-right: 4px; }
/* 悬停：块身展开，箭头隐藏 */
.user-drawer:hover .ud-main { max-height: 60px; }
.user-drawer:hover .ud-main .ud-chev { display: none; }
.user-drawer:hover .ud-main .ud-label { padding: 6px 18px 8px; }
.user-drawer .ud-main:hover { color: #333; }

/* ===== 页面通用 ===== */
  .page-body { padding: 40px 0 60px; }
  .page-title-bar {
    background: url('/static/img/banner-bg.svg') center center / cover no-repeat, linear-gradient(135deg, #E8F1FB 0%, #D5E5F5 100%);
    color: var(--ink); padding: 56px 0 52px; position: relative; overflow: hidden;
    border-bottom: 1px solid rgba(26,68,128,0.1);
    text-align: center;
  }
  .page-title-bar::before {
    content: ''; position: absolute; top: 0; right: 0; width: 40%; height: 100%;
    background: radial-gradient(ellipse at center, rgba(201,169,97,0.06) 0%, transparent 70%);
    pointer-events: none;
  }
  .page-title-bar .container { position: relative; z-index: 2; }
  .page-title-bar h2 {
    font-family: var(--serif); font-size: 32px; font-weight: 700; letter-spacing: 3px; margin-bottom: 10px;
    color: var(--primary); text-shadow: 0 1px 2px rgba(255,255,255,0.8);
  }
  .page-title-bar .breadcrumb { font-size: 13px; color: var(--muted); }
  .page-title-bar .breadcrumb a { color: var(--muted); }
  .page-title-bar .breadcrumb a:hover { color: var(--primary); }
  .page-title-bar .breadcrumb .sep { margin: 0 8px; opacity: 0.5; }

/* ===== 区块标题 ===== */
.section-head { margin-bottom: 32px; }
.section-head .label { font-size: 12px; color: var(--primary); letter-spacing: 4px; margin-bottom: 8px; font-weight: 600; }
.section-head h3 {
  font-family: var(--serif); font-size: 26px; font-weight: 700; color: var(--ink);
  margin-bottom: 8px; letter-spacing: 1px; display: flex; align-items: center; gap: 12px;
}
.section-head h3::before { content: ''; width: 4px; height: 28px; background: var(--primary); border-radius: 2px; flex-shrink: 0; }
.section-head .sub { font-size: 14px; color: var(--muted); }
.section-head.center { text-align: center; }
.section-head.center h3 { justify-content: center; }
.section-head.center h3::before { display: none; }
.section-head.center .label { display: block; }

/* ===== 通用按钮 ===== */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 28px; border-radius: var(--radius-sm); font-size: 15px; font-weight: 600; text-decoration: none; transition: var(--transition); cursor: pointer; border: none; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); color: #fff; transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: #A01831; color: #fff; }
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover { background: #B89651; color: var(--ink); }
.btn-outline { border: 1px solid var(--border); color: var(--text); background: var(--surface); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }
.btn-ghost { color: var(--primary); background: var(--primary-light); }
.btn-ghost:hover { background: var(--primary); color: #fff; }

/* ===== 通用卡片 ===== */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); transition: var(--transition); }
.card:hover { box-shadow: var(--shadow-md); }

/* ===== 底部 ===== */
.footer { background: #1A1A1A; color: rgba(255,255,255,0.6); padding: 40px 0 20px; }
.footer-main { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 30px; margin-bottom: 30px; }
.footer-info { flex: 1 1 200px; }
.footer-info h4 { color: #fff; font-size: 16px; margin-bottom: 12px; font-family: var(--serif); }
.footer-info p { font-size: 13px; line-height: 1.8; }
.footer-info a { color: rgba(255,255,255,0.6); }
.footer-info a:hover { color: var(--gold); }
.footer-contact .fc-sub { font-size: 13px; color: rgba(255,255,255,0.5); margin-bottom: 4px; }
.footer-contact .fc-row { font-size: 13px; line-height: 1.9; }
.footer-contact .fc-row b { color: rgba(255,255,255,0.8); font-weight: 500; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 20px; text-align: center; font-size: 13px; }
.footer-bottom a { color: rgba(255,255,255,0.6); text-decoration: none; }
.footer-bottom a:hover { color: var(--gold); }
.footer-bottom img { width: 20px; height: 20px; display: inline-block; vertical-align: text-bottom; margin-right: 4px; }
.footer-bottom .sep { margin: 0 12px; color: rgba(255,255,255,0.3); }

/* ===== 响应式 ===== */
@media (max-width: 991px) {
  .nav { display: none; }
}
@media (max-width: 768px) {
  .page-title-bar h2 { font-size: 24px; }
  .logo-text h1 { font-size: 16px; }
  .logo-text .sub { display: none; }
  .top-bar .tb-left { display: none; }
}
