/* ===================================
   淮安市青少年科技教育协会 - 全局样式
   设计风格：科技蓝 + 现代简洁 + 政府公信力
   =================================== */

/* ---------- CSS Variables ---------- */
:root {
  --blue-deep: #0A3D6B;
  --blue: #0A66C2;
  --blue-light: #00A8E8;
  --cyan: #00B4D8;
  --blue-bg: #E8F4FD;
  --blue-bg-light: #F5F9FD;
  --gray-bg: #F4F6F9;
  --gray-light: #E8ECF1;
  --gray: #8899AA;
  --gray-dark: #556677;
  --text: #2C3E50;
  --text-light: #6B7D8E;
  --white: #FFFFFF;
  --red: #E74C3C;
  --orange: #F39C12;
  --green: #27AE60;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
  --shadow: 0 4px 16px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.12);
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 16px;
  --transition: 0.25s ease;
}

/* ---------- Global Reset ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 14px; scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--gray-bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--blue); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--blue-light); }
ul, ol { list-style: none; }
img { max-width: 100%; height: auto; display: block; }

/* ---------- Container ---------- */
.container { max-width: 1260px; margin: 0 auto; padding: 0 20px; }
.container-sm { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

/* ---------- Pintuer Overrides ---------- */
.layout { padding: 0; }
.line, .line-big { margin: 0; }
.line-big .xs1,.line-big .xs2,.line-big .xs3,.line-big .xs4,.line-big .xs5,.line-big .xs6,
.line-big .xs7,.line-big .xs8,.line-big .xs9,.line-big .xs10,.line-big .xs11,.line-big .xs12,
.line .xs1,.line .xs2,.line .xs3,.line .xs4,.line .xs5,.line .xs6,
.line .xs7,.line .xs8,.line .xs9,.line .xs10,.line .xs11,.line .xs12 {
  padding: 0 15px;
}
.xs1{width:8.333%}.xs2{width:16.666%}.xs3{width:25%}.xs4{width:33.333%}
.xs5{width:41.666%}.xs6{width:50%}.xs7{width:58.333%}.xs8{width:66.666%}
.xs9{width:75%}.xs10{width:83.333%}.xs11{width:91.666%}.xs12{width:100%}
[class*=xs] { float: left; }
.line:after, .line-big:after { content: ""; display: table; clear: both; }
.button { display: inline-block; border: none; cursor: pointer; padding: 10px 28px; border-radius: var(--radius-sm); font-size: 14px; transition: all var(--transition); text-align: center; line-height: 1.5; }
.input { border: 1px solid var(--gray-light); border-radius: var(--radius-sm); padding: 10px 14px; font-size: 14px; transition: border var(--transition); outline: none; width: 100%; }
.input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(10,102,194,0.1); }

/* ---------- Header Top Bar ---------- */
.htop {
  background: var(--blue-deep);
  color: rgba(255,255,255,0.85);
  font-size: 13px;
  line-height: 38px;
  height: 38px;
  overflow: hidden;
}
.htop .container { display: flex; justify-content: space-between; align-items: center; }
.htop a { color: rgba(255,255,255,0.9); }
.htop a:hover { color: #fff; }
.htop .htop-l { display: flex; align-items: center; gap: 20px; }
.htop .htop-r { display: flex; align-items: center; gap: 16px; }

/* ---------- Main Header ---------- */
.head-bg { background: var(--white); }
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
}
.header .logo img { height: 56px; }
.header .sobox form { display: flex; }
.header .sobox .input-group {
  display: flex;
  border: 2px solid var(--gray-light);
  border-radius: 30px;
  overflow: hidden;
  transition: border-color var(--transition);
}
.header .sobox .input-group:focus-within { border-color: var(--blue); }
.header .sobox .input {
  border: none;
  padding: 10px 20px;
  width: 240px;
  font-size: 14px;
  background: transparent;
}
.header .sobox .input:focus { box-shadow: none; }
.header .sobox .addbtn .button {
  background: var(--blue);
  color: #fff;
  border-radius: 0 30px 30px 0;
  padding: 10px 22px;
  font-size: 14px;
}
.header .sobox .addbtn .button:hover { background: var(--blue-deep); }

/* ---------- Navigation ---------- */
.menuwrap {
  background: linear-gradient(135deg, var(--blue-deep) 0%, #0A5CAD 100%);
  position: sticky;
  top: 0;
  z-index: 999;
  box-shadow: 0 2px 12px rgba(0,0,0,0.15);
}
.menuwrap .button.icon-navicon { display: none; }

/* 手机侧滑菜单源码，桌面端隐藏 */
@media (min-width: 769px) {
  #menu { display: none !important; }
}

.menu { }
.menu > ul { display: flex; }
.menu > ul > li { position: relative; }
.menu > ul > li > a {
  display: block;
  color: rgba(255,255,255,0.92);
  font-size: 16px;
  font-weight: 500;
  padding: 15px 22px;
  letter-spacing: 0.5px;
  transition: all var(--transition);
  position: relative;
}
.menu > ul > li > a:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 3px;
  background: var(--cyan);
  border-radius: 3px 3px 0 0;
  transition: width var(--transition);
}
.menu > ul > li > a:hover,
.menu > ul > li > a.cur {
  color: #fff;
  background: rgba(255,255,255,0.08);
}
.menu > ul > li > a:hover:after,
.menu > ul > li > a.cur:after { width: 60%; }
.menu > ul > li > a.cur { font-weight: 600; }

/* Dropdown */
.menu > ul > li > ul {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 170px;
  background: #fff;
  box-shadow: var(--shadow-lg);
  border-radius: 0 0 var(--radius) var(--radius);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all 0.3s ease;
  z-index: 99;
  overflow: hidden;
}
.menu > ul > li:hover > ul {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.menu > ul > li > ul > li > a {
  display: block;
  padding: 11px 20px;
  font-size: 14px;
  color: var(--text);
  border-bottom: 1px solid var(--gray-light);
  transition: all var(--transition);
}
.menu > ul > li > ul > li:last-child > a { border-bottom: none; }
.menu > ul > li > ul > li > a:hover {
  background: var(--blue-bg);
  color: var(--blue);
  padding-left: 26px;
}

/* ---------- Page Banner ---------- */
.inbanner {
  background: linear-gradient(135deg, var(--blue-deep) 0%, var(--blue) 50%, var(--blue-light) 100%);
  padding: 50px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.inbanner:before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: rgba(255,255,255,0.04);
}
.inbanner:after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -5%;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: rgba(255,255,255,0.03);
}
.inbanner h1 {
  color: #fff;
  font-size: 32px;
  font-weight: 700;
  position: relative;
  z-index: 1;
}
.inbanner .pos {
  color: rgba(255,255,255,0.75);
  font-size: 14px;
  margin-top: 10px;
  position: relative;
  z-index: 1;
}
.inbanner .pos a { color: rgba(255,255,255,0.8); }
.inbanner .pos a:hover { color: #fff; }

/* ---------- Section Title ---------- */
.sec-title {
  text-align: center;
  margin-bottom: 40px;
}
.sec-title h2 {
  font-size: 30px;
  font-weight: 700;
  color: var(--text);
  display: inline-block;
  position: relative;
  padding-bottom: 16px;
}
.sec-title h2:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--blue);
  border-radius: 2px;
}
.sec-title p {
  font-size: 16px;
  color: var(--text-light);
  margin-top: 14px;
}

/* ---------- Sidebar (Left) ---------- */
.sidebar {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.sidebar h3 {
  background: linear-gradient(135deg, var(--blue-deep), var(--blue));
  color: #fff;
  font-size: 18px;
  font-weight: 600;
  padding: 16px 20px;
}
.sidebar ul { padding: 8px 0; }
.sidebar ul li { }
.sidebar ul li a {
  display: block;
  padding: 11px 24px;
  color: var(--text);
  font-size: 15px;
  border-left: 3px solid transparent;
  transition: all var(--transition);
}
.sidebar ul li a:hover,
.sidebar ul li a.cur {
  color: var(--blue);
  background: var(--blue-bg);
  border-left-color: var(--blue);
}
.sidebar-box {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
  margin-top: 20px;
}
.sidebar-box h4 {
  font-size: 16px;
  color: var(--blue-deep);
  border-bottom: 2px solid var(--blue-light);
  padding-bottom: 8px;
  margin-bottom: 14px;
}

/* ---------- Content Area ---------- */
.content-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 30px;
  min-height: 400px;
}
.section-padding { padding: 60px 0; }
.margin-large-bottom { margin-bottom: 40px; }

/* ---------- Two Column Layout ---------- */
.inner-wrap {
  display: flex;
  gap: 30px;
  padding: 40px 0;
}
.inner-wrap .sidebar-col { width: 260px; flex-shrink: 0; }
.inner-wrap .content-col { flex: 1; min-width: 0; }

/* ---------- News List ---------- */
.news-item {
  display: flex;
  padding: 18px 0;
  border-bottom: 1px solid var(--gray-light);
  align-items: center;
  transition: all var(--transition);
}
.news-item:hover { padding-left: 8px; }
.news-item:last-child { border-bottom: none; }
.news-item .news-date {
  background: var(--blue-bg);
  color: var(--blue);
  font-size: 12px;
  padding: 4px 12px;
  border-radius: 20px;
  white-space: nowrap;
  margin-right: 16px;
  flex-shrink: 0;
}
.news-item .news-title { flex: 1; min-width: 0; }
.news-item .news-title a {
  color: var(--text);
  font-size: 15px;
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.news-item .news-title a:hover { color: var(--blue); }

/* ---------- News Detail ---------- */
.news-detail h2 {
  font-size: 24px;
  color: var(--text);
  text-align: center;
  margin-bottom: 10px;
  line-height: 1.5;
}
.news-detail .detail-meta {
  text-align: center;
  color: var(--gray);
  font-size: 13px;
  padding-bottom: 16px;
  border-bottom: 1px dashed var(--gray-light);
  margin-bottom: 24px;
}
.news-detail .detail-meta span { margin: 0 10px; }
.news-detail .detail-content {
  font-size: 16px;
  line-height: 1.9;
  color: var(--text);
}
.news-detail .detail-content img {
  max-width: 100%;
  border-radius: var(--radius-sm);
  margin: 16px auto;
}
.news-detail .detail-pager {
  border-top: 1px solid var(--gray-light);
  padding-top: 16px;
  margin-top: 30px;
  font-size: 14px;
}
.news-detail .detail-pager a { display: block; padding: 6px 0; color: var(--gray-dark); }
.news-detail .detail-pager a:hover { color: var(--blue); }

/* ---------- Page ---------- */
.page {
  text-align: center;
  padding: 30px 0;
}
.page a, .page span {
  display: inline-block;
  padding: 8px 14px;
  margin: 0 3px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--text);
  background: var(--white);
  border: 1px solid var(--gray-light);
  transition: all var(--transition);
}
.page a:hover { border-color: var(--blue); color: var(--blue); }
.page .current,
.page .page-num-current {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
}

/* ---------- Search Page ---------- */
.search-box { margin-bottom: 30px; }
.search-box form { display: flex; gap: 10px; }
.search-box .input { flex: 1; height: 46px; }
.search-box .button {
  height: 46px;
  padding: 0 30px;
  background: var(--blue);
  color: #fff;
  font-size: 16px;
  border-radius: var(--radius-sm);
}
.search-box .button:hover { background: var(--blue-deep); }

/* ---------- Download List ---------- */
.down-item {
  display: flex;
  align-items: center;
  padding: 14px 18px;
  border-bottom: 1px solid var(--gray-light);
  transition: all var(--transition);
}
.down-item:hover { background: var(--blue-bg-light); }
.down-item .down-icon {
  width: 40px;
  height: 40px;
  background: var(--blue);
  color: #fff;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  margin-right: 14px;
  flex-shrink: 0;
}
.down-item .down-info { flex: 1; }
.down-item .down-info a { color: var(--text); font-size: 15px; }
.down-item .down-info a:hover { color: var(--blue); }
.down-item .down-btn {
  padding: 6px 16px;
  font-size: 13px;
  background: var(--blue);
  color: #fff !important;
  border-radius: 4px;
  flex-shrink: 0;
  white-space: nowrap;
}
.down-item .down-btn:hover { background: var(--blue-deep); color: #fff !important; }
.detail-down {
  text-align: center;
  padding: 24px 0 10px;
  margin-top: 10px;
  border-top: 1px dashed var(--gray-light);
}
.detail-down .down-btn {
  display: inline-block;
  padding: 12px 36px;
  font-size: 15px;
  background: var(--blue);
  color: #fff !important;
  border-radius: 30px;
}
.detail-down .down-btn:hover { background: var(--blue-deep); color: #fff !important; }

/* ---------- Image List ---------- */
.img-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.img-grid .img-item {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}
.img-grid .img-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.img-grid .img-item .img-wrap {
  height: 180px;
  overflow: hidden;
}
.img-grid .img-item .img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.img-grid .img-item:hover .img-wrap img { transform: scale(1.05); }
.img-grid .img-item .img-info {
  padding: 12px;
  text-align: center;
}
.img-grid .img-item .img-info a {
  color: var(--text);
  font-size: 14px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: block;
}

/* ---------- Image List (图片列表页) ---------- */
.images-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
@media (max-width: 992px) { .images-list { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px) { .images-list { grid-template-columns: repeat(2, 1fr); } }
.img-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}
.img-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.img-card a { display: block; }
.img-card .img-box {
  height: 200px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--blue-bg) 0%, #D4EAF7 100%);
}
.img-card .img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.img-card:hover .img-box img { transform: scale(1.08); }
.img-card .img-title {
  padding: 12px 14px;
  font-size: 14px;
  color: var(--text);
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ---------- Form ---------- */
.form-card {
  max-width: 100%;
  margin: 0;
}
.form-group {
  margin-bottom: 20px;
}
.form-group label {
  display: block;
  margin-bottom: 6px;
  font-weight: 500;
  color: var(--text);
}
.form-group .input, .form-group textarea {
  width: 100%;
  border: 1px solid var(--gray-light);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 14px;
  transition: all var(--transition);
}
.form-group .input:focus, .form-group textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(10,102,194,0.1);
  outline: none;
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-submit {
  background: var(--blue);
  color: #fff;
  border: none;
  padding: 12px 40px;
  font-size: 16px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background var(--transition);
}
.form-submit:hover { background: var(--blue-deep); }
.form-tips {
  background: var(--blue-bg);
  border-left: 4px solid var(--blue);
  padding: 14px 18px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin-bottom: 20px;
  font-size: 14px;
  color: var(--blue-deep);
}

/* ---------- Footer ---------- */
.footer2 {
  background: #0B233D;
  color: rgba(255,255,255,0.75);
  padding-top: 50px;
}
.footer2 .fotlogo {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-bottom: 40px;
}
.footer2 .fot_ewm { text-align: center; }
.footer2 .fot_ewm img {
  width: 130px;
  height: 130px;
  border-radius: var(--radius);
  border: 3px solid rgba(255,255,255,0.15);
}
.footer2 .fotnav {
  border-top: 1px solid rgba(255,255,255,0.08);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  padding: 30px 0;
}
.footer2 .fotnav .clearfix {
  display: flex;
  flex-wrap: nowrap;
  justify-content: space-between;
  gap: 12px;
}
.footer2 .fotnav dl {
  flex: 1;
  min-width: 0;
}
.footer2 .fotnav dt {
  font-weight: 600;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.footer2 .fotnav dt a { color: #fff; }
.footer2 .fotnav dd ul li { padding: 5px 0; }
.footer2 .fotnav dd ul li a {
  color: rgba(255,255,255,0.55);
  font-size: 13px;
  transition: color var(--transition);
}
.footer2 .fotnav dd ul li a:hover { color: var(--cyan); }
.footer2 .copyright {
  padding: 24px 0;
  text-align: center;
  font-size: 13px;
  color: rgba(255,255,255,0.45);
  line-height: 2;
}
.footer2 .copyright a { color: rgba(255,255,255,0.55); }
.footer2 .copyright a:hover { color: var(--cyan); }
.footer2 .foot_link {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  flex-wrap: wrap;
  gap: 10px;
}
.footer2 .foot_link .foot_link_title {
  color: rgba(255,255,255,0.6);
  font-size: 13px;
  white-space: nowrap;
}
.footer2 .foot_link .foot_link_text { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }
.footer2 .foot_link .foot_link_text a { color: rgba(255,255,255,0.45); font-size: 13px; }

/* ---------- Mobile Navigation ---------- */
.mm-page { box-shadow: none; }
.mm-menu {
  background: var(--blue-deep);
  color: rgba(255,255,255,0.8);
}
.mm-menu .mm-list > li > a {
  color: rgba(255,255,255,0.8);
  font-size: 16px;
}

/* ---------- Utilities ---------- */
.text-white { color: #fff !important; }
.text-center { text-align: center; }
.f12 { font-size: 12px; }
.f13 { font-size: 13px; }
.f14 { font-size: 14px; }
.f15 { font-size: 15px; }
.f16 { font-size: 16px; }
.f18 { font-size: 18px; }
.f20 { font-size: 20px; }
.f24 { font-size: 24px; }
.f30 { font-size: 30px; }
.fb { font-weight: 600; }
.fs100 { font-weight: 500; }
.fr { float: right; }
.fl { float: left; }
.clearfix:after { content: ""; display: table; clear: both; }
.hidden { display: none; }
.text-more { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; }
