/* ============================================================
   site.css — 常山县模型无线电运动协会门户公共样式 (首页/通知/规则/看板/查询/报名/注册/登录)
   设计: 藏青顶栏 + 科技蓝主色, 卡片化, PC/手机自适应。
   ============================================================ */
* { margin: 0; padding: 0; box-sizing: border-box; }
:root {
  --navy: #0b2540;
  --navy-2: #123a63;
  --primary: #1877e0;
  --primary-dark: #0e5fc0;
  --cyan: #22b8cf;
  --bg: #f3f6fa;
  --ink: #2c3e50;
  --muted: #8a97a8;
  --line: #e7edf3;
  --radius: 12px;
  --shadow: 0 2px 14px rgba(20, 60, 110, .07);
  --shadow-hover: 0 8px 26px rgba(20, 60, 110, .14);
}
html { scroll-behavior: smooth; }
body {
  font-family: "Microsoft YaHei", "PingFang SC", "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; }
.container { max-width: 1200px; margin: 0 auto; padding: 26px 16px; }
.section-title {
  font-size: 22px; font-weight: 700; margin: 8px 0 18px;
  padding-left: 12px; border-left: 5px solid var(--primary);
  display: flex; align-items: center; gap: 10px;
}
.section-title .sub { font-size: 13px; color: var(--muted); font-weight: 400; }
.section-tip { color: var(--muted); font-size: 14px; margin: -10px 0 18px 17px; }

/* ---------------- 顶栏 (两行: 第一行标识+登录, 第二行频道) ---------------- */
.topbar { background: linear-gradient(90deg, var(--navy), var(--navy-2)); color: #fff; position: sticky; top: 0; z-index: 50; box-shadow: 0 2px 10px rgba(0,0,0,.18); }
/* 第一行 */
.topbar-row1 { width: 100%; }
.topbar-row1-in { max-width: 1200px; margin: 0 auto; height: 60px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 16px; }
.topbar-brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.brand { font-size: 19px; font-weight: 700; letter-spacing: 1px; white-space: nowrap; display: flex; align-items: center; gap: 8px; }
.brand .logo-dot { width: 26px; height: 26px; border-radius: 7px; background: linear-gradient(135deg, var(--primary), var(--cyan)); display: inline-flex; align-items: center; justify-content: center; font-size: 15px; }
/* 第二行: 整条深色频道带 */
.topbar-row2 { width: 100%; background: rgba(3,15,30,.42); border-top: 1px solid rgba(255,255,255,.08); }
.nav { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 4px; padding: 0 8px; }
.nav a { padding: 9px 11px; color: rgba(255,255,255,.82); font-size: 15px; border-radius: 7px; transition: all .15s; white-space: nowrap; }
.nav a:hover { color: #fff; background: rgba(255,255,255,.1); }
.nav a.active { color: #fff; background: var(--primary); }
.nav-user { display: flex; align-items: center; gap: 8px; font-size: 14px; white-space: nowrap; }
.nav-user .welcome { color: rgba(255,255,255,.85); display: inline; }
.nav-user .btn-login, .nav-user .btn-register, .nav-user .btn-logout {
  padding: 6px 14px; border-radius: 7px; font-size: 14px; cursor: pointer; border: 1px solid rgba(255,255,255,.35);
  background: transparent; color: #fff; transition: all .15s;
}
.nav-user .btn-login:hover { border-color: #fff; background: rgba(255,255,255,.12); }
.nav-user .btn-register, .nav-user .btn-logout { background: var(--primary); border-color: var(--primary); }
.nav-user .btn-register:hover, .nav-user .btn-logout:hover { background: var(--primary-dark); }
.menu-btn { display: none; font-size: 24px; background: none; border: none; color: #fff; cursor: pointer; line-height: 1; }

/* ---------------- 按钮 / 表单控件 ---------------- */
.btn { display: inline-block; padding: 9px 20px; background: var(--primary); color: #fff; border: none; border-radius: 8px; cursor: pointer; font-size: 15px; transition: all .15s; }
.btn:hover { background: var(--primary-dark); }
.btn:disabled { background: #a9c8ef; cursor: not-allowed; }
.btn-ghost { background: #fff; color: var(--primary); border: 1px solid #b9d5f5; }
.btn-ghost:hover { background: #eef6ff; }
.btn-sm { padding: 5px 12px; font-size: 13px; border-radius: 6px; }
select, input[type=text], input[type=password], input[type=tel], input[type=email], input[type=number], textarea {
  padding: 9px 11px; border: 1px solid #d4deea; border-radius: 8px; font-size: 15px; background: #fff; color: var(--ink);
  outline: none; font-family: inherit;
}
select:focus, input:focus, textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(24,119,224,.12); }
.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 18px; }
.filter-bar select, .filter-bar input { min-width: 150px; }

/* ---------------- 卡片 / 栅格 ---------------- */
.card { background: #fff; border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.cards.hover .card { transition: transform .18s, box-shadow .18s; }
.cards.hover .card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.card h3 { margin-bottom: 8px; color: var(--primary); font-size: 17px; }
.card p { line-height: 1.75; color: #5a6a7d; font-size: 14px; }
.empty { padding: 40px 20px; text-align: center; color: var(--muted); background: #fff; border-radius: var(--radius); }

/* ---------------- 首页 ---------------- */
.hero { position: relative; background: linear-gradient(120deg, #0e3a6b 0%, #1365c4 55%, #22a8c8 100%); color: #fff; padding: 72px 16px; text-align: center; overflow: hidden; }
.hero::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.14) 1.5px, transparent 1.5px); background-size: 26px 26px; opacity: .35; }
.hero .hero-inner { position: relative; max-width: 820px; margin: 0 auto; }
.hero h1 { font-size: 38px; margin-bottom: 14px; letter-spacing: 2px; text-shadow: 0 2px 14px rgba(0,0,0,.25); }
.hero p { font-size: 17px; opacity: .92; }
.hero .hero-actions { margin-top: 26px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero .hero-actions a { padding: 11px 28px; border-radius: 24px; font-size: 15px; }
.hero .a-primary { background: #fff; color: var(--primary-dark); font-weight: 600; }
.hero .a-ghost { border: 1.5px solid rgba(255,255,255,.8); color: #fff; }
.hero .a-ghost:hover { background: rgba(255,255,255,.14); }

.slider-wrap { max-width: 1200px; margin: 0 auto; padding: 24px 16px 0; }
.slider { position: relative; overflow: hidden; border-radius: var(--radius); background: #e8edf2; box-shadow: var(--shadow); }
.slider-track { display: flex; width: max-content; animation: slide 36s linear infinite; }
.slider-track img { width: min(100vw - 32px, 1168px); max-width: 1168px; height: 280px; object-fit: cover; display: block; flex: none; }
.slider:hover .slider-track { animation-play-state: paused; }
@keyframes slide { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 16px; margin-bottom: 10px; }
.stat { background: #fff; border-radius: var(--radius); padding: 22px 16px; text-align: center; box-shadow: var(--shadow); border-top: 3px solid var(--primary); transition: transform .18s; }
.stat:hover { transform: translateY(-3px); }
.stat .num { font-size: 32px; font-weight: 700; color: var(--primary); line-height: 1.2; }
.stat .lbl { font-size: 14px; color: var(--muted); margin-top: 6px; }

.notice-list { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.notice-list .item { display: flex; align-items: center; gap: 16px; padding: 15px 20px; border-bottom: 1px solid var(--line); transition: background .15s; }
.notice-list .item:last-child { border-bottom: none; }
.notice-list .item:hover { background: #f5f9ff; }
.notice-list .item .t { font-size: 15px; color: var(--ink); flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.notice-list .item:hover .t { color: var(--primary); }
.notice-list .item .date { font-size: 13px; color: #a7b3c2; flex: none; }
.notice-list .empty { box-shadow: none; background: transparent; }

.tag-pin { display: inline-block; background: #fdeaea; color: #e04545; font-size: 12px; padding: 1px 7px; border-radius: 4px; margin-right: 8px; vertical-align: 1px; }
.tag-cat { display: inline-block; background: #eef6ff; color: var(--primary); font-size: 12px; padding: 1px 8px; border-radius: 4px; margin-right: 8px; }

/* ---------------- 通知 / 规则 列表 + 详情 ---------------- */
.page-head { display: flex; flex-wrap: wrap; gap: 14px; align-items: flex-end; justify-content: space-between; margin-bottom: 18px; }
.cat-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.cat-tabs .tab { padding: 7px 18px; border-radius: 20px; background: #fff; color: #5a6a7d; font-size: 14px; cursor: pointer; border: 1px solid var(--line); box-shadow: var(--shadow); transition: all .15s; }
.cat-tabs .tab:hover { color: var(--primary); border-color: #b9d5f5; }
.cat-tabs .tab.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.article-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px 24px; margin-bottom: 14px; cursor: pointer; transition: transform .18s, box-shadow .18s; display: block; }
.article-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.article-card h3 { font-size: 17px; color: var(--ink); margin-bottom: 8px; }
.article-card:hover h3 { color: var(--primary); }
.article-card .meta { font-size: 13px; color: #a0acbb; margin-bottom: 8px; display: flex; gap: 14px; flex-wrap: wrap; }
.article-card .summary { font-size: 14px; color: #6b7a8d; line-height: 1.7; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
/* 党建文章: 带封面的卡片 (左图右文) */
.article-card.has-cover { display: flex; gap: 18px; align-items: stretch; }
.article-card .ac-cover { flex: 0 0 180px; border-radius: 8px; overflow: hidden; background: #eef2f7; }
.article-card .ac-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.article-card .ac-body { flex: 1; min-width: 0; }
.article-detail .ad-cover { margin: 0 0 22px; text-align: center; }
.article-detail .ad-cover img { max-width: 100%; border-radius: 10px; box-shadow: var(--shadow); }
@media (max-width: 600px) {
  .article-card.has-cover { flex-direction: column; }
  .article-card .ac-cover { flex: none; width: 100%; height: 180px; }
}

.article-detail { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 36px 42px; }
.article-detail h1 { font-size: 26px; text-align: center; margin-bottom: 14px; color: #1f2d3d; }
.article-detail .meta { text-align: center; color: #a0acbb; font-size: 13px; padding-bottom: 18px; margin-bottom: 24px; border-bottom: 1px solid var(--line); display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; }
.article-detail .rich { font-size: 16px; color: #34465a; }
.article-detail .rich p { margin: 12px 0; line-height: 1.95; }
.article-detail .rich img { border-radius: 8px; margin: 10px auto; display: block; }
.article-detail .rich h2 { font-size: 20px; margin: 22px 0 10px; }
.article-detail .rich h3 { font-size: 17px; margin: 18px 0 8px; }
.article-detail .rich ul, .article-detail .rich ol { padding-left: 26px; margin: 10px 0; line-height: 1.95; }
.article-detail .rich table { border-collapse: collapse; width: 100%; margin: 12px 0; }
.article-detail .rich td, .article-detail .rich th { border: 1px solid var(--line); padding: 8px 10px; }
.article-detail .rich th { background: #f4f8fd; }
.attach-box { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line); }
.attach-box a { display: inline-flex; align-items: center; gap: 6px; margin: 6px 12px 6px 0; padding: 8px 16px; background: #eef6ff; color: var(--primary); border-radius: 8px; font-size: 14px; }
.attach-box a:hover { background: #dcecff; }
.back-bar { margin-bottom: 16px; }

.pager { display: flex; gap: 8px; justify-content: center; margin-top: 26px; }
.pager button { min-width: 38px; height: 38px; border: 1px solid var(--line); background: #fff; border-radius: 8px; cursor: pointer; font-size: 14px; color: #5a6a7d; }
.pager button:hover:not(:disabled) { border-color: var(--primary); color: var(--primary); }
.pager button.cur { background: var(--primary); color: #fff; border-color: var(--primary); }
.pager button:disabled { color: #c3ccd8; cursor: not-allowed; }

/* ---------------- 看板 / 获奖 ---------------- */
.grid2 { display: grid; grid-template-columns: repeat(auto-fill, minmax(420px, 1fr)); gap: 16px; }
.chart-card { background: #fff; border-radius: var(--radius); padding: 14px; box-shadow: var(--shadow); }
.chart { width: 100%; height: 320px; }
.chart.tall { height: 420px; }
table.data-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.data-table th { background: #f2f7fd; color: #3a4d63; font-weight: 600; font-size: 14px; text-align: left; padding: 12px 14px; white-space: nowrap; }
.data-table td { padding: 11px 14px; border-top: 1px solid var(--line); font-size: 14px; }
.data-table tr:hover td { background: #f7faff; }
.tag-award { display: inline-block; padding: 2px 10px; border-radius: 12px; font-size: 12px; background: #fff5e6; color: #d48806; border: 1px solid #ffe2ad; }
.tag-award.lv1 { background: #fdeaea; color: #d43838; border-color: #f8c9c9; }
.tag-award.lv2 { background: #fff4e5; color: #d98a16; border-color: #ffe0ad; }
.tag-status { display: inline-block; padding: 2px 10px; border-radius: 12px; font-size: 12px; }
.st-pending { background: #f4f5f7; color: #8a97a8; }
.st-approved { background: #e6f7ec; color: #28a05a; }
.st-rejected { background: #fdeaea; color: #e04545; }

/* ---------------- 表单卡片 (报名/注册/登录) ---------------- */
.form-card { background: #fff; padding: 28px; border-radius: var(--radius); max-width: 660px; margin: 0 auto; box-shadow: var(--shadow); }
.form-card.narrow { max-width: 440px; }
.form-row { margin-bottom: 17px; }
.form-row label { display: block; margin-bottom: 7px; color: #3a4d63; font-weight: 500; font-size: 14px; }
.form-row label .req { color: #f56c6c; margin-left: 2px; }
.form-row input, .form-row select, .form-row textarea { width: 100%; }
.form-row .hint { color: var(--muted); font-size: 12px; margin-top: 5px; }
.form-msg { text-align: center; margin-top: 16px; font-size: 14px; min-height: 22px; }
.form-msg.ok { color: #28a05a; }
.form-msg.err { color: #f56c6c; }
.people-head { display: flex; align-items: center; justify-content: space-between; margin: 22px 0 10px; padding-top: 18px; border-top: 1px dashed var(--line); }
.people-head h3 { font-size: 16px; color: var(--primary); }
.btn-add { background: #eaf3ff; color: var(--primary); border: 1px solid #b9d5f5; padding: 6px 14px; border-radius: 7px; cursor: pointer; font-size: 14px; }
.btn-add:hover { background: #dcecff; }
.person-row { display: flex; gap: 10px; margin-bottom: 10px; align-items: center; }
.person-row input { flex: 1; min-width: 0; }
.person-row .idx { width: 26px; flex: none; text-align: center; color: var(--muted); font-size: 13px; }
.btn-del { flex: none; width: 36px; height: 38px; border: 1px solid #fbc4c4; background: #fef0f0; color: #f56c6c; border-radius: 8px; cursor: pointer; font-size: 16px; line-height: 1; }
.btn-del:hover { background: #fde2e2; }
.btn-del:disabled { opacity: .4; cursor: not-allowed; }
.btn-submit { width: 100%; padding: 12px; font-size: 16px; margin-top: 10px; border-radius: 9px; }
.form-alt { margin-top: 18px; text-align: center; font-size: 14px; color: var(--muted); }
.form-alt a { color: var(--primary); }

/* ---------------- 导航下拉 (科技节子菜单) ---------------- */
.nav .has-sub { position: relative; }
.nav .has-sub > a { cursor: default; }
.nav .has-sub .submenu {
  position: absolute; top: 100%; left: 0; min-width: 150px;
  background: #fff; border-radius: 10px; box-shadow: 0 10px 30px rgba(11,37,64,.22);
  padding: 8px; display: none; flex-direction: column; gap: 2px; z-index: 60;
}
.nav .has-sub:hover .submenu, .nav .has-sub.open .submenu { display: flex; }
.nav .has-sub .submenu a {
  color: #3a4d63; font-size: 14px; padding: 9px 14px; border-radius: 7px;
}
.nav .has-sub .submenu a:hover { background: #eef6ff; color: var(--primary); }

/* ---------------- 协会首页: Hero 电波特效 ---------------- */
.hero { position: relative; overflow: hidden; }
.hero .waves { position: absolute; inset: 0; pointer-events: none; opacity: .5; }
.hero .waves span {
  position: absolute; left: 50%; top: 50%; border: 1.5px solid rgba(255,255,255,.35);
  border-radius: 50%; transform: translate(-50%, -50%);
  animation: pulse 4s ease-out infinite;
}
.hero .waves span:nth-child(1) { width: 180px; height: 180px; animation-delay: 0s; }
.hero .waves span:nth-child(2) { width: 320px; height: 320px; animation-delay: 1s; }
.hero .waves span:nth-child(3) { width: 460px; height: 460px; animation-delay: 2s; }
.hero .waves span:nth-child(4) { width: 600px; height: 600px; animation-delay: 3s; }
@keyframes pulse {
  0% { transform: translate(-50%, -50%) scale(.6); opacity: .7; }
  100% { transform: translate(-50%, -50%) scale(1.4); opacity: 0; }
}
.hero .hero-inner { position: relative; z-index: 2; }
.hero .hero-tag {
  display: inline-block; padding: 5px 16px; border: 1px solid rgba(255,255,255,.4);
  border-radius: 20px; font-size: 13px; letter-spacing: 3px; margin-bottom: 18px;
  background: rgba(255,255,255,.08);
}

/* ---------------- 协会首页: 双栏 通知+新闻 ---------------- */
.dual-col { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.dual-col .panel { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.dual-col .panel-hd {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 22px; border-bottom: 1px solid var(--line);
}
.dual-col .panel-hd h3 { font-size: 18px; display: flex; align-items: center; gap: 10px; }
.dual-col .panel-hd h3::before {
  content: ""; width: 5px; height: 20px; background: linear-gradient(var(--primary), var(--cyan)); border-radius: 3px;
}
.dual-col .panel-hd .more { font-size: 13px; color: var(--muted); }
.dual-col .panel-hd .more:hover { color: var(--primary); }
.dual-col .panel-bd { padding: 6px 0; }

/* ---------------- 协会首页: 赛事活动列项 ---------------- */
.event-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.event-card {
  background: #fff; border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow);
  border-left: 4px solid var(--cyan); transition: transform .18s, box-shadow .18s; position: relative;
}
.event-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.event-card h4 { font-size: 16px; margin-bottom: 8px; color: var(--ink); }
.event-card p { font-size: 13px; color: #6b7a8d; line-height: 1.7; }
.event-card .meta { font-size: 12px; color: var(--muted); margin-top: 10px; }

/* ---------------- 协会首页: 科技节专区 ---------------- */
.festival-zone {
  background: linear-gradient(120deg, #0e3a6b 0%, #1365c4 60%, #22a8c8 100%);
  border-radius: 18px; padding: 36px; color: #fff; position: relative; overflow: hidden;
  box-shadow: 0 12px 40px rgba(14,58,107,.25);
}
.festival-zone::before {
  content: ""; position: absolute; right: -60px; top: -60px; width: 280px; height: 280px;
  border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,.18), transparent 70%);
}
.festival-zone .fz-hd { position: relative; z-index: 2; margin-bottom: 22px; }
.festival-zone .fz-badge {
  display: inline-block; padding: 4px 14px; background: rgba(255,255,255,.18);
  border-radius: 20px; font-size: 12px; letter-spacing: 2px; margin-bottom: 12px;
}
.festival-zone h2 { font-size: 28px; margin-bottom: 8px; }
.festival-zone p { opacity: .9; font-size: 15px; }
.festival-zone .fz-cards {
  position: relative; z-index: 2; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px;
}
.festival-zone .fz-card {
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.22);
  border-radius: 12px; padding: 18px 14px; text-align: center; transition: all .18s;
  backdrop-filter: blur(4px);
}
.festival-zone .fz-card:hover { background: rgba(255,255,255,.22); transform: translateY(-3px); }
.festival-zone .fz-card .ic { font-size: 28px; margin-bottom: 8px; }
.festival-zone .fz-card .t { font-size: 15px; font-weight: 600; }
.festival-zone .fz-card .d { font-size: 12px; opacity: .75; margin-top: 4px; }

/* ---------------- 协会首页: 协会简介 ---------------- */
.about-block {
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 32px;
  display: grid; grid-template-columns: 1fr 1.3fr; gap: 36px; align-items: center;
}
.about-block h2 { font-size: 24px; margin-bottom: 14px; color: var(--navy); }
.about-block p { color: #5a6a7d; line-height: 1.9; font-size: 15px; }
.about-block .about-stats { display: flex; gap: 24px; margin-top: 18px; flex-wrap: wrap; }
.about-block .about-stat .n { font-size: 28px; font-weight: 700; color: var(--primary); }
.about-block .about-stat .l { font-size: 13px; color: var(--muted); }
.about-visual {
  height: 240px; border-radius: 14px;
  background: linear-gradient(135deg, #e3f0ff 0%, #d0f0f5 100%);
  position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center;
}
.about-visual .ring {
  position: absolute; border: 2px solid var(--primary); border-radius: 50%;
  animation: spin 18s linear infinite;
}
.about-visual .ring.r1 { width: 200px; height: 200px; border-color: rgba(24,119,224,.25); }
.about-visual .ring.r2 { width: 140px; height: 140px; border-color: rgba(34,184,207,.4); border-style: dashed; animation-duration: 12s; animation-direction: reverse; }
.about-visual .ring.r3 { width: 80px; height: 80px; background: linear-gradient(135deg, var(--primary), var(--cyan)); border: none; }
.about-visual .ring.r3::after { content: "📡"; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 34px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------------- 协会首页: 精彩瞬间 ---------------- */
.gallery-block { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px; }

/* ---------------- 协会首页: 联系我们 ---------------- */
.contact-block {
  background: var(--navy); color: #fff; border-radius: var(--radius); padding: 32px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 24px;
}
.contact-block .ci h4 { font-size: 15px; color: var(--cyan); margin-bottom: 8px; }
.contact-block .ci p { color: rgba(255,255,255,.78); font-size: 14px; line-height: 1.8; }

/* ---------------- 页脚 ---------------- */
.footer { background: var(--navy); color: rgba(255,255,255,.65); text-align: center; padding: 24px 16px; margin-top: 48px; font-size: 13px; line-height: 1.9; }

/* ============================================================
   协会官网 v2 (banner / 快捷入口 / 政府风列表 / 多媒体 / 页脚)
   ============================================================ */
/* 频道行交互细节 */
.nav .has-sub { flex: none; }
.nav .has-sub > a { cursor: pointer; }
.nav .caret { font-size: 10px; opacity: .7; margin-left: 2px; }
@media (max-width: 1280px) {
  .nav { gap: 2px; padding: 0 6px; }
  .nav a { padding: 8px 7px; }
  .nav-user { font-size: 13px; gap: 6px; }
  .nav-user .welcome { display: inline; }
}
/* 窄于 900px: 频道行横向放不下, 改用汉堡菜单展开 */
@media (max-width: 900px) {
  .menu-btn { display: block; }
  .topbar-row2 { background: transparent; border-top: none; }
  .nav { display: none; position: absolute; top: 60px; left: 0; right: 0; max-width: none; margin: 0;
         background: var(--navy); flex-direction: column; justify-content: flex-start;
         padding: 10px 16px 16px; gap: 4px; box-shadow: 0 10px 20px rgba(0,0,0,.25); }
  .nav.open { display: flex; }
  .nav a { padding: 10px 12px; font-size: 14px; }
  .nav .has-sub .submenu { display: none; position: static; box-shadow: none; background: transparent;
                          border: none; border-radius: 0; padding: 4px 0 4px 16px; min-width: 0; }
  .nav .has-sub.open .submenu { display: flex; flex-direction: column; }
  .nav .has-sub .submenu a { color: rgba(255,255,255,.78); }
}

/* 首屏 Banner 轮播 */
.banner-wrap { max-width: 1200px; margin: 18px auto 0; padding: 0 16px; }
.banner { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: #0e3a6b; height: 380px; }
.banner-track { position: absolute; inset: 0; }
.banner-slide { position: absolute; inset: 0; opacity: 0; transition: opacity .8s ease; }
.banner-slide.on { opacity: 1; z-index: 1; }
.banner-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.banner-slide.fallback { background: linear-gradient(120deg,#0e3a6b 0%,#1365c4 55%,#22a8c8 100%); }
.banner-slide.fallback::after { content:""; position:absolute; inset:0; background-image:radial-gradient(rgba(255,255,255,.14) 1.5px,transparent 1.5px); background-size:26px 26px; opacity:.35; }
.banner-cap { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; padding: 46px 28px 20px; color: #fff;
  background: linear-gradient(transparent, rgba(6,25,51,.82)); font-size: 19px; font-weight: 600; letter-spacing: .5px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.banner-cap .b-tag { display: inline-block; font-size: 12px; font-weight: 400; background: var(--primary); border-radius: 4px; padding: 2px 8px; margin-right: 10px; vertical-align: 2px; }
.banner-arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 4; width: 40px; height: 40px; border: none; border-radius: 50%;
  background: rgba(0,0,0,.28); color: #fff; font-size: 20px; cursor: pointer; transition: background .15s; }
.banner-arrow:hover { background: rgba(0,0,0,.5); }
.banner-arrow.prev { left: 14px; } .banner-arrow.next { right: 14px; }
.banner-dots { position: absolute; z-index: 4; bottom: 14px; right: 20px; display: flex; gap: 8px; }
.banner-dots i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,.45); cursor: pointer; transition: all .15s; }
.banner-dots i.on { background: #fff; width: 22px; border-radius: 5px; }

/* 快捷服务条: 登录/注册/报名/查询/下载 */
.quickbar { max-width: 1200px; margin: 14px auto 0; padding: 0 16px; display: grid; grid-template-columns: repeat(5,1fr); gap: 12px; }
.quickbar a { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px 10px; text-align: center;
  font-size: 15px; color: var(--ink); transition: transform .15s, box-shadow .15s; border-top: 3px solid var(--primary); }
.quickbar a:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); color: var(--primary); }
.quickbar .qic { display: block; font-size: 22px; margin-bottom: 4px; }

/* 面板内 tab 切换 (通知公告 / 新闻动态) */
.dual-col .panel-hd .hd-tabs { display: flex; gap: 4px; margin-left: 12px; }
.dual-col .panel-hd .hd-tabs span { padding: 2px 12px; font-size: 14px; cursor: pointer; color: var(--muted); border-radius: 14px; }
.dual-col .panel-hd .hd-tabs span.on { background: var(--primary); color: #fff; }
.dual-col .panel-hd { justify-content: flex-start; }
.dual-col .panel-hd .more { margin-left: auto; }

/* 朴素有序文字列表 (竞赛规则) */
.plain-ol { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); list-style: decimal inside; margin: 0; padding: 8px 24px; }
.plain-ol li { padding: 12px 2px; border-bottom: 1px dashed var(--line); font-size: 15px; color: var(--ink); }
.plain-ol li:last-child { border-bottom: none; }
.plain-ol li::marker { color: var(--primary); font-weight: 700; }
.plain-ol a:hover { color: var(--primary); }
.plain-ol .date { float: right; color: #a7b3c2; font-size: 13px; padding-left: 12px; }

/* 明星运动员 文字列表 */
.star-list { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); }
.star-list .item { display: flex; align-items: center; gap: 12px; padding: 12px 20px; border-bottom: 1px solid var(--line); }
.star-list .item:last-child { border-bottom: none; }
.star-list .item:hover { background: #f5f9ff; }
.star-list .avatar { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; flex: none; background: #dcecff; }
.star-list .t1 { flex: 1; min-width: 0; }
.star-list .nm { font-size: 15px; color: var(--ink); }
.star-list .item:hover .nm { color: var(--primary); }
.star-list .ho { font-size: 12.5px; color: var(--muted); margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* 多媒体双栏 */
.media-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.video-list .v-item { display: flex; gap: 14px; padding: 12px 20px; border-bottom: 1px solid var(--line); align-items: center; cursor: pointer; }
.video-list .v-item:last-child { border-bottom: none; }
.video-list .v-item:hover { background: #f5f9ff; }
.v-thumb { position: relative; width: 148px; height: 86px; border-radius: 6px; overflow: hidden; flex: none; background: #dfe7f1; }
.v-thumb img { width: 100%; height: 100%; object-fit: cover; }
.v-thumb .play { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 30px;
  color: #fff; background: rgba(8,30,60,.25); text-shadow: 0 1px 6px rgba(0,0,0,.4); }
.video-list .v-title { font-size: 15px; color: var(--ink); line-height: 1.5; }
.video-list .v-item:hover .v-title { color: var(--primary); }
.photo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 18px 20px; }
.photo-grid a { display: block; border-radius: 6px; overflow: hidden; height: 108px; }
.photo-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s; }
.photo-grid a:hover img { transform: scale(1.06); }

/* 视频播放弹窗 */
.video-mask { display: none; position: fixed; inset: 0; z-index: 200; background: rgba(6,20,40,.78); align-items: center; justify-content: center; padding: 20px; }
.video-mask.open { display: flex; }
.video-box { background: #0b1d36; border-radius: 10px; max-width: 860px; width: 100%; overflow: hidden; position: relative; }
.video-box .vclose { position: absolute; top: 8px; right: 12px; color: #fff; font-size: 26px; cursor: pointer; z-index: 2; }
.video-box video { width: 100%; display: block; background: #000; max-height: 70vh; }
.video-box .vtip { color: #cdd9e8; padding: 30px 20px; text-align: center; font-size: 15px; }

/* 政府风页脚 */
.gov-footer { background: var(--navy); color: rgba(255,255,255,.72); margin-top: 48px; font-size: 13.5px; }
.gov-footer .gf-inner { max-width: 1200px; margin: 0 auto; padding: 26px 16px 22px; }
.gov-footer .gf-row { display: flex; flex-wrap: wrap; gap: 8px 34px; justify-content: center; line-height: 2; }
.gov-footer .gf-row + .gf-row { margin-top: 4px; border-top: 1px solid rgba(255,255,255,.12); padding-top: 12px; }
.gov-footer b { color: #fff; font-weight: 600; }
.gov-footer a { color: rgba(255,255,255,.72); text-decoration: none; }
.gov-footer a:hover { color: #fff; text-decoration: underline; }

/* 频道内页 (图片/视频/下载/明星/单页) */
.channel-head { background: linear-gradient(120deg,#0e3a6b,#1365c4); color: #fff; border-radius: var(--radius);
  padding: 26px 30px; margin-bottom: 20px; box-shadow: var(--shadow); }
.channel-head h1 { font-size: 24px; margin-bottom: 6px; }
.channel-head p { opacity: .85; font-size: 14px; }
.photos-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(220px,1fr)); gap: 14px; }
.photos-grid a, .photos-grid .ph-item { display: block; border-radius: var(--radius); overflow: hidden; background: #fff; box-shadow: var(--shadow); }
.photos-grid img { width: 100%; height: 160px; object-fit: cover; display: block; transition: transform .25s; }
.photos-grid a:hover img, .photos-grid .ph-item:hover img { transform: scale(1.05); }
.photos-grid .pt { padding: 9px 12px; font-size: 13.5px; color: #5a6a7d; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.videos-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(300px,1fr)); gap: 16px; }
.video-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; cursor: pointer; transition: transform .15s, box-shadow .15s; }
.video-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.video-card .v-thumb { width: 100%; height: 178px; border-radius: 0; }
.video-card .v-cap { padding: 11px 14px; font-size: 15px; color: var(--ink); }
.dl-table { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.dl-row { display: flex; align-items: center; gap: 16px; padding: 15px 22px; border-bottom: 1px solid var(--line); }
.dl-row:last-child { border-bottom: none; }
.dl-row:hover { background: #f5f9ff; }
.dl-row .dlic { font-size: 26px; flex: none; }
.dl-row .dl-name { flex: 1; min-width: 0; font-size: 15px; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dl-row .dl-size { color: var(--muted); font-size: 13px; flex: none; }
.dl-row .dl-btn { flex: none; }
.dl-row .dl-off { color: #b0bac7; font-size: 13px; flex: none; }
.athletes-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(280px,1fr)); gap: 16px; }
.athlete-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px; text-align: center; }
.athlete-card img { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; margin: 0 auto 12px; display: block; border: 3px solid #e4eefb; background: #dcecff; }
.athlete-card .an { font-size: 17px; font-weight: 600; color: var(--ink); }
.athlete-card .ah { font-size: 13px; color: var(--primary); margin: 6px 0 10px; }
.athlete-card .ai { font-size: 13.5px; color: #6b7a8d; line-height: 1.8; text-align: left; display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
.static-page { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 34px 40px; }
.static-page h1 { font-size: 25px; margin-bottom: 18px; padding-bottom: 14px; border-bottom: 1px solid var(--line); color: #1f2d3d; }
.static-page .rich { font-size: 16px; color: #34465a; }
.static-page .rich p { margin: 12px 0; line-height: 1.95; }
.static-page .rich h2 { font-size: 20px; margin: 22px 0 10px; }
.static-page .rich h3 { font-size: 17px; margin: 18px 0 8px; }
.static-page .rich ul, .static-page .rich ol { padding-left: 26px; margin: 10px 0; line-height: 1.95; }
.static-page .rich b { color: #1f2d3d; }

/* ---------------- 手机端 ---------------- */
@media (max-width: 768px) {
  .menu-btn { display: block; }
  .topbar-row2 { background: transparent; border-top: none; }
  .nav { display: none; position: absolute; top: 60px; left: 0; right: 0; max-width: none; margin: 0;
         background: var(--navy); flex-direction: column; justify-content: flex-start;
         padding: 10px 16px 16px; gap: 4px; box-shadow: 0 10px 20px rgba(0,0,0,.25); }
  .nav.open { display: flex; }
  .nav a { padding: 10px 12px; }
  .nav-user { margin-left: auto; gap: 6px; }
  .nav-user .welcome { display: none; }
  .container { padding: 18px 12px; }
  .hero { padding: 44px 14px; }
  .hero h1 { font-size: 26px; letter-spacing: 1px; }
  .hero p { font-size: 15px; }
  .slider-track img { height: 170px; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .stat { padding: 16px 10px; }
  .stat .num { font-size: 25px; }
  .grid2 { grid-template-columns: 1fr; }
  .article-detail { padding: 24px 18px; }
  .article-detail h1 { font-size: 21px; }
  .notice-list .item { padding: 13px 14px; }
  .notice-list .item .date { display: none; }
  .form-card { padding: 20px 16px; }
  .person-row { flex-wrap: wrap; }
  .person-row .idx { width: 100%; text-align: left; }
  .filter-bar select, .filter-bar input { min-width: 0; flex: 1 1 45%; }
  .dual-col { grid-template-columns: 1fr; }
  .about-block { grid-template-columns: 1fr; padding: 22px; }
  .about-visual { height: 180px; }
  .festival-zone { padding: 24px; }
  .festival-zone h2 { font-size: 22px; }
  .nav .has-sub .submenu { display: none; position: static; box-shadow: none; background: transparent; padding: 4px 0 4px 16px; }
  .nav .has-sub.open .submenu { display: flex; }
  .nav .has-sub .submenu a { color: rgba(255,255,255,.78); }
  .banner { height: 210px; }
  .banner-cap { font-size: 14px; padding: 34px 12px 14px; }
  .banner-arrow { width: 32px; height: 32px; font-size: 16px; }
  .quickbar { grid-template-columns: repeat(3,1fr); }
  .media-cols { grid-template-columns: 1fr; }
  .v-thumb { width: 118px; height: 70px; }
  .photo-grid { grid-template-columns: repeat(2,1fr); }
  .gov-footer .gf-row { justify-content: flex-start; gap: 2px 18px; }
  .static-page { padding: 22px 18px; }
}

/* ============================================================
   可读性字号提升层 (v3): 对比主流政府/协会网站, 全站正文基线
   15px -> 16px, 次要 13 -> 14, 辅助 12 -> 13, 标题同步上调。
   仅集中覆盖文字字号, 不动布局/图标尺寸; 如需回退删除本块即可。
   ============================================================ */
body { font-size: 16px; }

/* 顶栏与导航 */
.brand { font-size: 20px; }
.nav a { font-size: 17px; }
.nav .has-sub .submenu { min-width: 160px; }
.nav .has-sub .submenu a { font-size: 16px; }
.nav-user { font-size: 15px; }
.nav-user .btn-login, .nav-user .btn-register, .nav-user .btn-logout { font-size: 15px; }

/* 通用按钮 / 输入控件 / 分页 */
.btn { font-size: 16px; }
.btn-sm { font-size: 14px; }
select, input[type=text], input[type=password], input[type=tel], input[type=email], input[type=number], textarea { font-size: 16px; }
.pager button { font-size: 15px; }

/* 区块标题 */
.section-title { font-size: 24px; }
.section-title .sub { font-size: 14px; }
.section-tip { font-size: 15px; }

/* 卡片 */
.card h3 { font-size: 18px; }
.card p { font-size: 15px; }

/* Hero (备用头图) */
.hero h1 { font-size: 40px; }
.hero p { font-size: 18px; }
.hero .hero-tag { font-size: 14px; }
.hero .hero-actions a { font-size: 16px; }

/* 统计数字 */
.stat .num { font-size: 36px; }
.stat .lbl { font-size: 15px; }

/* 首页通知列表 / 标签 */
.notice-list .item .t { font-size: 16px; }
.notice-list .item .date { font-size: 14px; }
.tag-pin, .tag-cat { font-size: 13px; }
.cat-tabs .tab { font-size: 15px; }

/* 通知 / 规则 列表与详情 */
.article-card h3 { font-size: 18px; }
.article-card .meta { font-size: 14px; }
.article-card .summary { font-size: 15px; }
.article-detail h1 { font-size: 28px; }
.article-detail .meta { font-size: 14px; }
.article-detail .rich { font-size: 17px; }
.article-detail .rich h2 { font-size: 22px; }
.article-detail .rich h3 { font-size: 19px; }
.attach-box a { font-size: 15px; }

/* 表格 */
.data-table th { font-size: 15px; }
.data-table td { font-size: 15px; }
.tag-award, .tag-status { font-size: 13px; }

/* 表单 */
.form-row label { font-size: 15px; }
.form-row .hint { font-size: 13px; }
.form-msg, .form-alt { font-size: 15px; }
.people-head h3 { font-size: 17px; }
.btn-add { font-size: 15px; }
.person-row .idx { font-size: 14px; }
.btn-submit { font-size: 17px; }

/* 双栏面板 */
.dual-col .panel-hd h3 { font-size: 19px; }
.dual-col .panel-hd .more { font-size: 14px; }
.dual-col .panel-hd .hd-tabs span { font-size: 15px; }

/* 赛事卡片 */
.event-card h4 { font-size: 17px; }
.event-card p { font-size: 14px; }
.event-card .meta { font-size: 13px; }

/* 科技节专区 */
.festival-zone .fz-badge { font-size: 13px; }
.festival-zone h2 { font-size: 30px; }
.festival-zone p { font-size: 16px; }
.festival-zone .fz-card .t { font-size: 16px; }
.festival-zone .fz-card .d { font-size: 13px; }

/* 协会简介 / 联系区 / 页脚 */
.about-block h2 { font-size: 26px; }
.about-block p { font-size: 16px; }
.about-block .about-stat .l { font-size: 14px; }
.contact-block .ci h4 { font-size: 16px; }
.contact-block .ci p { font-size: 15px; }
.footer { font-size: 14px; }
.gov-footer { font-size: 14.5px; }

/* Banner 轮播 */
.banner-cap { font-size: 21px; }
.banner-cap .b-tag { font-size: 13px; }

/* 快捷服务条 */
.quickbar a { font-size: 16px; }

/* 竞赛规则朴素列表 / 明星 */
.plain-ol li { font-size: 16px; }
.plain-ol .date { font-size: 14px; }
.star-list .nm { font-size: 16px; }
.star-list .ho { font-size: 13.5px; }

/* 多媒体 */
.video-list .v-title { font-size: 16px; }
.video-box .vtip { font-size: 16px; }
.photos-grid .pt { font-size: 14.5px; }
.video-card .v-cap { font-size: 16px; }

/* 下载 / 运动员 / 协会单页 / 频道头 */
.dl-row .dl-name { font-size: 16px; }
.dl-row .dl-size, .dl-row .dl-off { font-size: 14px; }
.athlete-card .an { font-size: 18px; }
.athlete-card .ah { font-size: 14px; }
.athlete-card .ai { font-size: 14.5px; }
.static-page h1 { font-size: 27px; }
.static-page .rich { font-size: 17px; }
.static-page .rich h2 { font-size: 22px; }
.static-page .rich h3 { font-size: 19px; }
.channel-head h1 { font-size: 26px; }
.channel-head p { font-size: 15px; }

/* 手机端: 大标题/轮播标题回收, 正文保持 16px 可读 */
@media (max-width: 768px) {
  .nav a { font-size: 16px; }
  .hero h1 { font-size: 26px; }
  .hero p { font-size: 16px; }
  .stat .num { font-size: 26px; }
  .article-detail h1 { font-size: 22px; }
  .festival-zone h2 { font-size: 23px; }
  .banner-cap { font-size: 15px; }
}
