/**
 * style-enhanced.css
 * 石狮一中官网优化增强样式表
 * 
 * 设计原则:
 * - 严格基于原站颜色系统 (#06bbcc / #0ea5e9 / #181d38)
 * - 渐进式增强,不覆盖原CSS核心变量
 * - 所有新样式仅作用于新增模块和微交互增强
 * 
 * 改动说明:
 * 1. 新增学校荣誉卡片区 (.honors-section)
 * 2. 新增学校简介卡片区 (.about-cards-section)
 * 3. 新增学部设置图标导航 (.divisions-section)
 * 4. 新增快速链接图标导航 (.quick-links-section)
 * 5. 增强Newsletter订阅区视觉
 * 6. 全局微交互动画 (hover/scroll)
 * 7. 响应式强化
 * 
 * 版本: 2.0.0
 */

/* ============================================= */
/*  全局增强 - 平滑滚动与微交互                  */
/* ============================================= */
html {
  scroll-behavior: smooth;
}

/* 页面滚动进度条 */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, #06bbcc, #0ea5e9, #181d38);
  z-index: 2147483646;
  transition: width 0.1s linear;
  border-radius: 0 2px 2px 0;
}

/* 通用卡片悬浮效果 */
.honor-card,
.division-card,
.quick-link-card {
  will-change: transform;
  transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              box-shadow 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* 通用按钮增强 */
.btn {
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
  overflow: hidden;
}
.btn:active {
  transform: scale(0.97);
}

/* ============================================= */
/*  导航栏全面优化 (叠加原样式)                   */
/* ============================================= */

/* 顶部信息栏渐变增强 */
.main_header_area .topbar-wrap {
  background: linear-gradient(135deg, #181d38 0%, #1a2245 100%);
  border-bottom: 1px solid rgba(6, 187, 204, 0.1);
}

/* 主导航栏 */
.header_menu {
  transition: box-shadow 0.4s ease, background 0.4s ease;
  background: #fff;
}

/* 粘性导航增强 - 渐变阴影 + 底部强调线 */
.header_menu.fixed-top {
  box-shadow: 0 4px 25px rgba(6, 187, 204, 0.12);
  border-bottom: 1px solid rgba(6, 187, 204, 0.08);
}

.header_menu.fixed-top::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #06bbcc, #0ea5e9, transparent);
  opacity: 0.8;
}

/* Logo区域增强 */
.header_menu .navbar.navbar-default .navbar-brand {
  transition: all 0.3s ease;
  position: relative;
}

.header_menu .navbar.navbar-default .navbar-brand img {
  transition: transform 0.3s ease;
}

.header_menu .navbar.navbar-default .navbar-brand:hover img {
  transform: scale(1.08);
}

.header_menu .navbar.navbar-default .navbar-brand span {
  font-weight: 700;
  letter-spacing: 1px;
  background: linear-gradient(135deg, #181d38, #06bbcc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* 导航链接基础样式 */
.header_menu .navbar.navbar-default .nav.navbar-nav li a {
  position: relative;
  transition: color 0.3s ease, transform 0.2s ease;
  font-weight: 500;
  padding: 10px 18px;
  border-radius: 4px;
}

.header_menu .navbar.navbar-default .nav.navbar-nav li a:hover {
  color: #06bbcc !important;
}

/* 导航下划线动效 */
.header_menu .navbar.navbar-default .nav.navbar-nav li a::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 18px;
  right: 18px;
  height: 2.5px;
  background: linear-gradient(90deg, #06bbcc, #0ea5e9);
  transform: scaleX(0);
  transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  border-radius: 2px;
  display: block !important;
}

.header_menu .navbar.navbar-default .nav.navbar-nav li a:hover::after {
  transform: scaleX(1);
}

/* 当前激活页 - 永久下划线 + 强调色 */
.header_menu .navbar.navbar-default .nav.navbar-nav li.active a {
  color: #06bbcc !important;
  font-weight: 600;
}

.header_menu .navbar.navbar-default .nav.navbar-nav li.active a::after {
  transform: scaleX(1);
  height: 3px;
  background: #06bbcc;
}

/* 当前激活页小圆点 */
.header_menu .navbar.navbar-default .nav.navbar-nav li.active a::before {
  content: '';
  position: absolute;
  top: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 6px;
  height: 6px;
  background: #06bbcc;
  border-radius: 50%;
  transition: all 0.3s ease;
}

/* 搜索图标增强 */
.topbar-wrap .t-social .ct-search-link a {
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
}

.topbar-wrap .t-social .ct-search-link a:hover {
  background: rgba(6, 187, 204, 0.25);
  transform: scale(1.1);
}

/* 面包屑增强 */
.breadcrumb-main {
  position: relative;
}

.breadcrumb-main::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(24, 29, 56, 0.7), rgba(24, 29, 56, 0.5));
  z-index: 0;
}

.breadcrumb-main .breadcrumb-inner {
  position: relative;
  z-index: 1;
}

.breadcrumb-main .breadcrumb-inner h2 {
  font-size: 2.5rem;
  letter-spacing: 2px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  animation: breadcrumbFadeIn 0.6s ease;
}

@keyframes breadcrumbFadeIn {
  from {
    opacity: 0;
    transform: translateY(15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 移动端汉堡菜单优化 (Slicknav) */
.slicknav_menu {
  background: #181d38;
  padding: 4px 0;
}

.slicknav_menu .slicknav_btn {
  background: rgba(6, 187, 204, 0.15);
  padding: 8px 12px;
  border-radius: 6px;
  margin: 8px 15px;
  transition: background 0.3s ease;
}

.slicknav_menu .slicknav_btn:hover {
  background: rgba(6, 187, 204, 0.3);
}

.slicknav_menu .slicknav_nav {
  background: #181d38;
  padding: 10px 0;
}

.slicknav_menu .slicknav_nav a {
  color: rgba(255, 255, 255, 0.85);
  padding: 12px 20px;
  margin: 2px 10px;
  border-radius: 8px;
  transition: all 0.3s ease;
  font-size: 15px;
}

.slicknav_menu .slicknav_nav a:hover,
.slicknav_menu .slicknav_nav .slicknav_row:hover {
  background: rgba(6, 187, 204, 0.12);
  color: #06bbcc;
  border-radius: 8px;
}

.slicknav_menu .slicknav_nav .active a {
  background: rgba(6, 187, 204, 0.15);
  color: #06bbcc;
  font-weight: 600;
}

@media (max-width: 991px) {
  .breadcrumb-main {
    margin-top: 4rem;
  }

  .breadcrumb-main .breadcrumb-inner h2 {
    font-size: 1.8rem;
  }
}

/* ============================================= */
/*  Banner区域微增强                              */
/* ============================================= */
.banner .banner-head h1 {
  animation: fadeInUp 0.8s ease forwards;
}

.banner .banner-head h4 {
  animation: fadeInUp 0.6s ease 0.15s forwards;
  opacity: 0;
  animation-fill-mode: forwards;
}

.banner .banner-content p {
  animation: fadeInUp 0.6s ease 0.3s forwards;
  opacity: 0;
  animation-fill-mode: forwards;
}

.banner .banner-image img {
  animation: float 6s ease-in-out infinite;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

/* ============================================= */
/*  学校荣誉标签区 (新增)                         */
/* ============================================= */
.honors-section {
  padding: 80px 0 100px;
  position: relative;
  background: #fff;
}

.honors-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #06bbcc, #0ea5e9, #181d38);
}

.honors-grid {
  margin-top: 20px;
}

.honor-card {
  background: #fff;
  border-radius: 16px;
  padding: 35px 20px 30px;
  text-align: center;
  box-shadow: 0 5px 25px rgba(6, 187, 204, 0.08);
  border: 1px solid rgba(6, 187, 204, 0.08);
  height: 100%;
  position: relative;
  overflow: hidden;
}

.honor-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(135deg, #06bbcc, #0ea5e9);
  transform: scaleX(0);
  transition: transform 0.4s ease;
}

.honor-card:hover::before {
  transform: scaleX(1);
}

.honor-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 40px rgba(6, 187, 204, 0.15);
  border-color: rgba(6, 187, 204, 0.2);
}

.honor-icon {
  width: 70px;
  height: 70px;
  margin: 0 auto 20px;
  background: linear-gradient(135deg, rgba(6, 187, 204, 0.1), rgba(14, 165, 233, 0.1));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.4s ease;
}

.honor-card:hover .honor-icon {
  background: linear-gradient(135deg, #06bbcc, #0ea5e9);
  transform: scale(1.1) rotate(-5deg);
}

.honor-card:hover .honor-icon i {
  color: #fff;
}

.honor-icon i {
  font-size: 28px;
  color: #06bbcc;
  transition: all 0.4s ease;
}

.honor-card h5 {
  font-size: 16px;
  margin-bottom: 8px;
  color: #181d38;
  line-height: 1.5;
}

.honor-card p {
  font-size: 13px;
  color: #888;
  margin: 0;
}

/* ============================================= */
/*  学校简介卡片区 (新增)                         */
/* ============================================= */
.about-cards-section {
  padding: 80px 0;
}

.about-image-wrap {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
}

.about-main-img {
  width: 100%;
  border-radius: 20px;
  transition: transform 0.5s ease;
}

.about-image-wrap:hover .about-main-img {
  transform: scale(1.03);
}

.about-badge {
  position: absolute;
  bottom: 30px;
  left: 30px;
  background: #181d38;
  color: #fff;
  padding: 15px 25px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 10px 25px rgba(24, 29, 56, 0.3);
}

.badge-year {
  display: block;
  font-size: 32px;
  font-weight: 700;
  font-family: 'Jost', sans-serif;
  line-height: 1;
  color: #06bbcc;
}

.badge-label {
  font-size: 12px;
  opacity: 0.8;
  margin-top: 4px;
  display: block;
}

.about-text-wrap {
  padding-left: 30px;
}

.about-text-wrap h3 {
  margin-bottom: 20px;
  line-height: 1.4;
}

.about-desc {
  color: #666;
  line-height: 1.8;
  margin-bottom: 25px;
  font-size: 15px;
}

.about-stats {
  display: flex;
  gap: 30px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.stat-item {
  text-align: center;
}

.stat-number {
  display: block;
  font-size: 32px;
  font-weight: 700;
  color: #06bbcc;
  font-family: 'Jost', sans-serif;
  line-height: 1.2;
}

.stat-unit {
  font-size: 16px;
  font-weight: 400;
  margin-left: 2px;
}

.stat-label {
  font-size: 13px;
  color: #888;
  display: block;
  margin-top: 4px;
}

@media (max-width: 991px) {
  .about-text-wrap {
    padding-left: 0;
    margin-top: 40px;
  }
  .about-stats {
    gap: 20px;
  }
}

/* ============================================= */
/*  学部设置图标导航区 (新增)                     */
/* ============================================= */
.divisions-section {
  padding: 80px 0;
  background: #fff;
}

.section-subtitle {
  color: #888;
  font-size: 15px;
  margin-top: 10px;
}

.divisions-grid {
  margin-top: 20px;
}

/* 5列均分布局:让Bootstrap col-lg按20%等分 */
@media (min-width: 992px) {
  .divisions-grid .col-lg {
    flex: 0 0 20%;
    max-width: 20%;
  }
}

.division-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 35px 15px 25px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 5px 25px rgba(6, 187, 204, 0.06);
  border: 1px solid rgba(6, 187, 204, 0.06);
  height: 100%;
  text-decoration: none !important;
  color: inherit;
  position: relative;
  overflow: hidden;
}

.division-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 30px;
  height: 3px;
  background: #06bbcc;
  border-radius: 2px;
  transition: width 0.4s ease;
}

.division-card:hover::after {
  width: 60px;
}

.division-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 45px rgba(6, 187, 204, 0.15);
  border-color: rgba(6, 187, 204, 0.3);
  color: inherit;
}

.division-icon {
  width: 65px;
  height: 65px;
  margin: 0 auto 18px;
  background: linear-gradient(135deg, #06bbcc, #0ea5e9);
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.4s ease;
}

.division-card:hover .division-icon {
  border-radius: 50%;
  transform: rotate(360deg);
}

.division-icon i {
  font-size: 26px;
  color: #fff;
}

.division-card h5 {
  font-size: 16px;
  margin-bottom: 6px;
  color: #181d38;
  font-weight: 600;
}

.division-card p {
  font-size: 13px;
  color: #888;
  margin-bottom: 12px;
}

.division-arrow {
  font-size: 14px;
  color: #06bbcc;
  opacity: 0;
  transform: translateX(-10px);
  transition: all 0.3s ease;
}

.division-card:hover .division-arrow {
  opacity: 1;
  transform: translateX(0);
}

/* ============================================= */
/*  快速链接图标导航区 (新增)                     */
/* ============================================= */
.quick-links-section {
  padding: 80px 0;
}

.quick-links-grid {
  margin-top: 20px;
}

.quick-link-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 30px 20px 25px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.05);
  height: 100%;
  text-decoration: none !important;
  color: inherit;
  border: 1px solid transparent;
}

.quick-link-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 15px 35px rgba(6, 187, 204, 0.12);
  border-color: rgba(6, 187, 204, 0.25);
  color: inherit;
}

.ql-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 15px;
  background: rgba(6, 187, 204, 0.08);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.quick-link-card:hover .ql-icon {
  background: #06bbcc;
}

.ql-icon i {
  font-size: 24px;
  color: #06bbcc;
  transition: color 0.3s ease;
}

.quick-link-card:hover .ql-icon i {
  color: #fff;
}

.quick-link-card h5 {
  font-size: 16px;
  margin-bottom: 4px;
  color: #181d38;
  font-weight: 600;
}

.quick-link-card p {
  font-size: 13px;
  color: #888;
  margin: 0;
}

/* ============================================= */
/*  订阅资讯增强                                  */
/* ============================================= */
.newsletter {
  padding: 80px 0;
  background: linear-gradient(135deg, #06bbcc0f 0%, #fff 50%, #06bbcc08 100%);
}

.newsletter-icon {
  width: 70px;
  height: 70px;
  margin: 0 auto 20px;
  background: linear-gradient(135deg, #06bbcc, #0ea5e9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: newsletterPulse 2s ease-in-out infinite;
}

.newsletter-icon i {
  font-size: 28px;
  color: #fff;
}

@keyframes newsletterPulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(6, 187, 204, 0.4);
  }
  50% {
    box-shadow: 0 0 0 20px rgba(6, 187, 204, 0);
  }
}

.newsletter-input-group {
  max-width: 520px;
  margin: 25px auto 10px;
  display: flex;
  gap: 10px;
}

.newsletter-input-group .form-control {
  flex: 1;
  height: 54px;
  border-radius: 30px;
  padding: 0 25px;
  font-size: 15px;
  border: 2px solid #e8edf5;
  background: #fff;
  transition: all 0.3s ease;
  box-shadow: 0 3px 15px rgba(0, 0, 0, 0.04);
}

.newsletter-input-group .form-control:focus {
  border-color: #06bbcc;
  box-shadow: 0 3px 20px rgba(6, 187, 204, 0.15);
  outline: none;
}

.btn-subscribe {
  height: 54px;
  padding: 0 30px;
  border-radius: 30px;
  font-size: 15px;
  font-weight: 500;
  white-space: nowrap;
  background: linear-gradient(135deg, #06bbcc, #0ea5e9);
  border: none;
  transition: all 0.3s ease;
}

.btn-subscribe:hover {
  background: #181d38;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(6, 187, 204, 0.3);
}

.newsletter-hint {
  font-size: 13px;
  color: #aaa;
  margin-top: 8px;
}

.newsletter-hint i {
  margin-right: 5px;
  color: #06bbcc;
}

@media (max-width: 576px) {
  .newsletter-input-group {
    flex-direction: column;
  }
  .btn-subscribe {
    width: 100%;
  }
}

/* ============================================= */
/*  CTA区域增强                                  */
/* ============================================= */
.call-wrap {
  background: linear-gradient(135deg, #181d38 0%, #1e2a4a 100%);
  border-radius: 20px;
  padding: 50px 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 30px;
  margin: 40px 0;
  position: relative;
  overflow: hidden;
}

.call-wrap::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 300px;
  height: 300px;
  background: rgba(6, 187, 204, 0.06);
  border-radius: 50%;
}

.call-wrap::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: 5%;
  width: 200px;
  height: 200px;
  background: rgba(14, 165, 233, 0.06);
  border-radius: 50%;
}

.call-wrap .call-main {
  position: relative;
  z-index: 1;
}

.call-wrap .call-main h3 {
  color: #fff;
  font-size: 28px;
}

.call-wrap .call-main p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 15px;
  max-width: 500px;
}

.call-wrap .call-btn {
  position: relative;
  z-index: 1;
}

.call-wrap .call-btn .btn {
  background: #06bbcc;
  border: none;
  padding: 15px 40px;
  font-size: 16px;
  border-radius: 30px;
  transition: all 0.3s ease;
}

.call-wrap .call-btn .btn:hover {
  background: #0ea5e9;
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(6, 187, 204, 0.35);
}

@media (max-width: 767px) {
  .call-wrap {
    padding: 40px 25px;
    text-align: center;
    justify-content: center;
  }
  .call-wrap .call-main h3 {
    font-size: 22px;
  }
}

/* ============================================= */
/*  Footer增强                                   */
/* ============================================= */
.ft-lists h4 {
  position: relative;
  padding-bottom: 12px;
}

.ft-lists h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background: #06bbcc;
}

.ft-lists ul li a {
  transition: all 0.3s ease;
  display: inline-block;
}

.ft-lists ul li a:hover {
  color: #06bbcc;
  transform: translateX(5px);
}

.f-maincontent ul li a {
  transition: all 0.3s ease;
}

.f-maincontent ul li a:hover {
  transform: translateY(-3px);
}

/* ===== Footer 全面增强 ===== */
footer {
  position: relative;
}

footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--theme-primary, #06bbcc), var(--theme-secondary, #0ea5e9), var(--theme-primary, #06bbcc));
  z-index: 2;
}

footer .footer-upper {
  padding-top: 30px;
}

/* 强制覆盖原CSS的 footer a/p/li { color: #212832 } 深色文字 */
footer a,
footer p,
footer li {
  color: rgba(255,255,255,0.85) !important;
}

footer .ft-lists h4 {
  color: #fff !important;
}

footer .footer-upper .f-maincontent img.footer-logo {
  width: auto;
  max-width: 140px;
  height: auto;
  margin-bottom: 12px;
  filter: brightness(0) invert(1);
  opacity: 0.95;
  transition: filter 0.4s ease, opacity 0.4s ease;
}

footer .footer-upper .f-maincontent img.footer-logo:hover {
  opacity: 1;
}

footer .footer-upper .f-maincontent p {
  line-height: 1.8;
  font-size: 14px;
  margin: 10px 0 30px;
  color: rgba(255,255,255,0.85) !important;
}

footer .footer-upper .ft-lists h4 {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-bottom: 18px;
  color: #fff !important;
}

footer .footer-upper .ft-lists ul li a {
  font-size: 14px;
  color: rgba(255,255,255,0.8) !important;
  transition: opacity 0.3s ease, color 0.3s ease, transform 0.3s ease;
  padding: 3px 0;
}

footer .footer-upper .ft-lists ul li a:hover {
  opacity: 1;
  color: #06bbcc !important;
  transform: translateX(5px);
}

footer .footer-upper .copyright-main {
  border-top: 1px solid rgba(255,255,255,0.15);
  margin-top: 50px;
}

footer .footer-upper .copyright-main .copyright-text p {
  font-size: 13px;
  color: rgba(255,255,255,0.65) !important;
}

footer .footer-upper .copyright-main .copyright-text a {
  color: rgba(255,255,255,0.75) !important;
  text-decoration: underline;
  text-underline-offset: 2px;
}

footer .footer-upper .copyright-main .copyright-text a:hover {
  opacity: 1;
  color: #06bbcc !important;
}

/* ===== Footer 主题适配 ===== */
[data-theme] footer a,
[data-theme] footer p,
[data-theme] footer li {
  color: var(--theme-footer-text) !important;
}

[data-theme] footer .ft-lists h4 {
  color: #fff !important;
}

[data-theme] footer .ft-lists h4::after {
  background: var(--theme-primary);
}

[data-theme] footer .ft-lists ul li a {
  color: rgba(255,255,255,0.85) !important;
}

[data-theme] footer .ft-lists ul li a:hover {
  color: var(--theme-primary) !important;
}

[data-theme] footer .f-maincontent p {
  color: rgba(255,255,255,0.85) !important;
}

[data-theme] footer .copyright-main {
  border-top-color: rgba(255,255,255,0.12);
}

[data-theme] footer .copyright-main .copyright-text p {
  color: rgba(255,255,255,0.6) !important;
}

[data-theme] footer .copyright-main .copyright-text a {
  color: rgba(255,255,255,0.7) !important;
}

/* ===== Footer Logo 主题适配 ===== */
[data-theme] footer .f-maincontent img.footer-logo {
  filter: var(--theme-logo-footer-filter, brightness(0) invert(1));
  transition: filter 0.4s ease, opacity 0.4s ease;
}

[data-theme="chinese"] footer .f-maincontent img.footer-logo {
  filter: brightness(0) invert(1) sepia(0.3) saturate(1.5) hue-rotate(-10deg);
}

[data-theme="modern"] footer .f-maincontent img.footer-logo {
  filter: brightness(0) invert(1) hue-rotate(200deg) saturate(1.3);
}

/* ===== Dark主题Footer - 高对比度 ===== */
[data-theme="dark"] footer .f-maincontent p {
  color: rgba(255,255,255,0.85) !important;
}

[data-theme="dark"] footer .ft-lists ul li a {
  color: rgba(255,255,255,0.8) !important;
}

[data-theme="dark"] footer .ft-lists ul li a:hover {
  color: #00d4e4 !important;
}

[data-theme="dark"] footer .copyright-main .copyright-text p {
  color: rgba(255,255,255,0.55) !important;
}

[data-theme="dark"] footer .copyright-main .copyright-text a {
  color: rgba(255,255,255,0.65) !important;
}

/* ===== Chinese主题Footer - 高对比度 ===== */
[data-theme="chinese"] footer .f-maincontent p {
  color: rgba(255,255,255,0.85) !important;
}

[data-theme="chinese"] footer .ft-lists ul li a {
  color: rgba(255,255,255,0.8) !important;
}

[data-theme="chinese"] footer .ft-lists ul li a:hover {
  color: #d4943f !important;
}

[data-theme="chinese"] footer .ft-lists h4::after {
  background: #d4943f;
}

[data-theme="chinese"] footer .copyright-main .copyright-text p {
  color: rgba(255,255,255,0.55) !important;
}

/* ===== Modern主题Footer - 高对比度 ===== */
[data-theme="modern"] footer .f-maincontent p {
  color: rgba(255,255,255,0.85) !important;
}

[data-theme="modern"] footer .ft-lists ul li a {
  color: rgba(255,255,255,0.8) !important;
}

[data-theme="modern"] footer .ft-lists ul li a:hover {
  color: #8b5cf6 !important;
}

[data-theme="modern"] footer .copyright-main .copyright-text p {
  color: rgba(255,255,255,0.55) !important;
}

/* ===== Default主题Footer文字颜色修正 ===== */
[data-theme="default"] footer a,
[data-theme="default"] footer p,
[data-theme="default"] footer li {
  color: rgba(255,255,255,0.85) !important;
}

[data-theme="default"] footer .ft-lists h4 {
  color: #fff !important;
}

[data-theme="default"] footer .ft-lists ul li a:hover {
  color: #06bbcc !important;
}

[data-theme="default"] footer .copyright-main .copyright-text p {
  color: rgba(255,255,255,0.55) !important;
}

[data-theme="default"] footer .copyright-main .copyright-text a {
  color: rgba(255,255,255,0.65) !important;
}

/* ===== Footer 社交图标增强 ===== */
footer .f-maincontent ul {
  display: flex;
  gap: 10px;
  margin-top: 5px;
}

footer .f-maincontent ul li a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: all 0.3s ease;
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.7);
}

footer .f-maincontent ul li a:hover {
  background: var(--theme-primary, #06bbcc);
  color: #fff;
  transform: translateY(-3px);
  opacity: 1;
}

[data-theme="chinese"] footer .f-maincontent ul li a:hover {
  background: var(--theme-secondary);
}

/* ===== Footer 响应式 ===== */
@media (max-width: 991px) {
  footer .footer-upper .f-maincontent img.footer-logo {
    max-width: 120px;
  }
}

@media (max-width: 767px) {
  footer .footer-upper .f-maincontent {
    text-align: center;
  }

  footer .footer-upper .f-maincontent ul {
    justify-content: center;
  }

  footer .footer-upper .ft-lists {
    text-align: center;
  }

  footer .footer-upper .ft-lists h4::after {
    left: 50%;
    transform: translateX(-50%);
  }
}

/* ============================================= */
/*  AI Chatbot 增强样式 (叠加,不改原有逻辑)       */
/* ============================================= */
/* 增强悬浮按钮脉冲提示 */
#ssy-chatbot-toggle::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 2px solid rgba(6, 187, 204, 0.5);
  animation: chatbotPulse 2s ease-out infinite;
}

@keyframes chatbotPulse {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  100% {
    transform: scale(1.6);
    opacity: 0;
  }
}

/* 欢迎消息气泡增强 - 由JS动态注入,但预留CSS增强 */
.ssy-message.ssy-bot:first-child {
  background: linear-gradient(135deg, #e8f7f9, #f0f6ff) !important;
  border-left: 3px solid #06bbcc !important;
  font-size: 14px !important;
  line-height: 1.6 !important;
}

/* FAQ按钮区域增强 */
.ssy-faq-suggestions small {
  font-weight: 600 !important;
  color: #181d38 !important;
  font-size: 13px !important;
}

.ssy-faq-btn {
  transition: all 0.25s ease !important;
  font-size: 13px !important;
}

/* ============================================= */
/*  滚动入场动画支持                              */
/* ============================================= */
.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================= */
/*  响应式强化                                    */
/* ============================================= */
@media (max-width: 991px) {
  .honors-section,
  .about-cards-section,
  .divisions-section,
  .quick-links-section {
    padding: 50px 0;
  }

  .banner {
    padding: 40px 0 50px;
  }

  .banner .banner-head h1 {
    font-size: 32px;
  }

  .banner .banner-head h4 {
    font-size: 16px;
  }

  .banner-image {
    margin-top: 30px;
    text-align: center;
  }

  .banner-image img {
    max-width: 80%;
  }

  /* 移动端卡片间距优化 */
  .honor-card {
    margin-bottom: 20px;
  }

  .quick-link-card {
    margin-bottom: 20px;
  }
}

@media (max-width: 767px) {
  .banner .banner-head h1 {
    font-size: 26px;
  }

  .honor-icon {
    width: 55px;
    height: 55px;
  }

  .honor-icon i {
    font-size: 22px;
  }

  .division-icon {
    width: 52px;
    height: 52px;
  }

  .division-icon i {
    font-size: 22px;
  }

  .about-badge {
    bottom: 15px;
    left: 15px;
    padding: 10px 15px;
  }

  .badge-year {
    font-size: 24px;
  }

  .stat-number {
    font-size: 24px;
  }

  .about-stats {
    gap: 15px;
  }
}

@media (max-width: 480px) {
  .banner {
    padding: 30px 0 40px;
  }

  .banner .banner-head h1 {
    font-size: 22px;
  }

  .banner-image img {
    max-width: 100%;
  }

  /* 小屏卡片全宽 */
  .honor-card,
  .division-card,
  .quick-link-card {
    padding: 25px 15px 20px;
  }

  .newsletter h2 {
    font-size: 24px;
  }
}

/* ============================================= */
/*  导航栏滚动固定增强 (叠加原有fixed-top逻辑)    */
/* ============================================= */
.header_menu.fixed-top {
  animation: slideDown 0.4s ease;
}

@keyframes slideDown {
  from {
    transform: translateY(-100%);
  }
  to {
    transform: translateY(0);
  }
}

/* ============================================= */
/*  主题切换系统 (CSS Variables)                  */
/* ============================================= */

/* 主题过渡 */
body, .header_menu, .topbar-wrap, footer, .newsletter,
.breadcrumb-main, section, .btn, .card, .navbar {
  transition: background-color 0.4s ease, color 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}

/* ===== 默认主题 (当前) ===== */
:root, [data-theme="default"] {
  --theme-primary: #06bbcc;
  --theme-primary-dark: #048f9e;
  --theme-secondary: #0ea5e9;
  --theme-dark: #181d38;
  --theme-dark-light: #1f2547;
  --theme-bg: #ffffff;
  --theme-bg-alt: #f8f9fa;
  --theme-bg-card: #ffffff;
  --theme-text: #333333;
  --theme-text-light: #666666;
  --theme-text-muted: #999999;
  --theme-border: #e0e0e0;
  --theme-shadow: rgba(0,0,0,0.08);
  --theme-nav-bg: #ffffff;
  --theme-nav-text: #333333;
  --theme-footer-bg: #181d38;
  --theme-footer-text: rgba(255,255,255,0.85);
  --theme-accent-glow: rgba(6,187,204,0.15);
  --theme-logo-filter: none;
  --theme-logo-footer-filter: brightness(0) invert(1);
}

/* ===== 暗色深蓝主题 ===== */
[data-theme="dark"] {
  --theme-primary: #00d4e4;
  --theme-primary-dark: #00b8c8;
  --theme-secondary: #38bdf8;
  --theme-dark: #0f1119;
  --theme-dark-light: #1a1f2e;
  --theme-bg: #0f1119;
  --theme-bg-alt: #161923;
  --theme-bg-card: #1a1f2e;
  --theme-text: #e0e4ec;
  --theme-text-light: #a8b2c8;
  --theme-text-muted: #6b7394;
  --theme-border: #2a2f3f;
  --theme-shadow: rgba(0,0,0,0.3);
  --theme-nav-bg: #161923;
  --theme-nav-text: #c8d0e0;
  --theme-footer-bg: #0a0d14;
  --theme-footer-text: rgba(255,255,255,0.85);
  --theme-accent-glow: rgba(0,212,228,0.2);
  --theme-logo-filter: brightness(0) invert(1);
  --theme-logo-footer-filter: brightness(0) invert(1);
}

/* ===== 中国风主题 ===== */
[data-theme="chinese"] {
  --theme-primary: #c41e3a;
  --theme-primary-dark: #9a172c;
  --theme-secondary: #d4943f;
  --theme-dark: #2d1b14;
  --theme-dark-light: #4a2c22;
  --theme-bg: #fdf8f0;
  --theme-bg-alt: #f5edd8;
  --theme-bg-card: #fffef9;
  --theme-text: #3d2b1f;
  --theme-text-light: #6b5244;
  --theme-text-muted: #9a8576;
  --theme-border: #d4c5a9;
  --theme-shadow: rgba(196, 30, 58, 0.08);
  --theme-nav-bg: #fffef9;
  --theme-nav-text: #3d2b1f;
  --theme-footer-bg: #2d1b14;
  --theme-footer-text: rgba(255,255,255,0.85);
  --theme-accent-glow: rgba(196,30,58,0.1);
  --theme-logo-filter: sepia(1) saturate(3) hue-rotate(-20deg) brightness(0.9);
  --theme-logo-footer-filter: brightness(0) invert(1);
}
[data-theme="modern"] {
  --theme-primary: #6366f1;
  --theme-primary-dark: #4f46e5;
  --theme-secondary: #8b5cf6;
  --theme-dark: #1e1b4b;
  --theme-dark-light: #312e81;
  --theme-bg: #fafbff;
  --theme-bg-alt: #f0f1ff;
  --theme-bg-card: #ffffff;
  --theme-text: #1e1b4b;
  --theme-text-light: #636690;
  --theme-text-muted: #9d9db8;
  --theme-border: #e4e5f0;
  --theme-shadow: rgba(99,102,241,0.06);
  --theme-nav-bg: #ffffff;
  --theme-nav-text: #1e1b4b;
  --theme-footer-bg: #1e1b4b;
  --theme-footer-text: rgba(255,255,255,0.85);
  --theme-accent-glow: rgba(99,102,241,0.12);
  --theme-logo-filter: hue-rotate(200deg) saturate(1.5) brightness(1.1);
  --theme-logo-footer-filter: brightness(0) invert(1);
}

/* ===== 全局变量应用 ===== */
[data-theme] body {
  background-color: var(--theme-bg);
  color: var(--theme-text);
}

[data-theme] .header_menu {
  background: var(--theme-nav-bg);
}

[data-theme] .header_menu .navbar.navbar-default .nav.navbar-nav li a {
  color: var(--theme-nav-text);
}

[data-theme] .main_header_area .topbar-wrap {
  background: linear-gradient(135deg, var(--theme-dark) 0%, var(--theme-dark-light) 100%);
  border-bottom-color: rgba(255,255,255,0.05);
}

[data-theme] footer {
  background: var(--theme-footer-bg);
}

[data-theme] .newsletter {
  background: linear-gradient(135deg, var(--theme-primary) 0%, var(--theme-secondary) 100%);
}

[data-theme] .breadcrumb-main {
  background-color: var(--theme-dark);
}

/* ===== 主题感知Logo显示 ===== */
[data-theme] .navbar-brand img {
  filter: var(--theme-logo-filter, none);
  transition: filter 0.4s ease;
}

[data-theme] .navbar-brand span {
  transition: all 0.4s ease;
}

[data-theme="dark"] .navbar-brand span {
  background: linear-gradient(135deg, #e0e4ec, #00d4e4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

[data-theme="chinese"] .navbar-brand span {
  background: linear-gradient(135deg, #3d2b1f, #c41e3a);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

[data-theme="modern"] .navbar-brand span {
  background: linear-gradient(135deg, #1e1b4b, #6366f1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

[data-theme] .honors-section {
  background: var(--theme-bg-alt);
}

[data-theme] .honor-card,
[data-theme] .division-card,
[data-theme] .quick-link-card,
[data-theme] .about-card {
  background: var(--theme-bg-card);
  box-shadow: 0 2px 20px var(--theme-shadow);
  border-color: var(--theme-border);
}

[data-theme] .news-headding h2 {
  color: #fff;
}

[data-theme] .news-headding p {
  color: rgba(255,255,255,0.9);
}

/* 暗色主题文字修正 */
[data-theme="dark"] p, [data-theme="dark"] li, [data-theme="dark"] .about-text,
[data-theme="dark"] h1, [data-theme="dark"] h2, [data-theme="dark"] h3,
[data-theme="dark"] h4, [data-theme="dark"] h5, [data-theme="dark"] h6 {
  color: var(--theme-text);
}

[data-theme="dark"] .card,
[data-theme="dark"] .about-us,
[data-theme="dark"] .about-cards-section,
[data-theme="dark"] .divisions-section,
[data-theme="dark"] .quick-links-section {
  background: var(--theme-bg);
}

[data-theme="dark"] .header_menu.fixed-top {
  background: rgba(22, 25, 35, 0.95);
  backdrop-filter: blur(20px);
}

/* 中国风主题装饰 */
[data-theme="chinese"] .header_menu {
  border-bottom: 2px solid var(--theme-primary);
}

[data-theme="chinese"] .honor-card,
[data-theme="chinese"] .division-card,
[data-theme="chinese"] .quick-link-card {
  border: 1px solid var(--theme-border);
  border-radius: 2px;
}

[data-theme="chinese"] .btn-subscribe {
  background: var(--theme-primary);
  border-color: var(--theme-primary);
}

/* 现代主题圆角增强 */
[data-theme="modern"] .honor-card,
[data-theme="modern"] .division-card,
[data-theme="modern"] .quick-link-card {
  border-radius: 16px;
  border: 1px solid var(--theme-border);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

[data-theme="modern"] .honor-card:hover,
[data-theme="modern"] .division-card:hover,
[data-theme="modern"] .quick-link-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px var(--theme-accent-glow);
}

[data-theme="modern"] .btn-subscribe {
  border-radius: 12px;
}


/* ============================================= */
/*  主题切换器 UI                                */
/* ============================================= */
.theme-switcher {
  position: fixed;
  left: 24px;
  bottom: 30px;
  z-index: 2147483640;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.theme-switcher-toggle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--theme-primary, #06bbcc);
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(6,187,204,0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.4s ease;
  position: relative;
}

.theme-switcher-toggle:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 28px rgba(6,187,204,0.4);
}

.theme-switcher-toggle:active {
  transform: scale(0.95);
}

.theme-switcher-toggle i {
  transition: transform 0.5s ease;
}

.theme-switcher.open .theme-switcher-toggle i {
  transform: rotate(180deg);
}

/* 面板 */
.theme-panel {
  position: absolute;
  bottom: 60px;
  left: 0;
  background: var(--theme-bg-card, #fff);
  border-radius: 16px;
  padding: 6px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.12);
  display: flex;
  flex-direction: column;
  gap: 2px;
  opacity: 0;
  transform: translateY(10px) scale(0.95);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  min-width: 160px;
  border: 1px solid var(--theme-border, #e0e0e0);
}

.theme-switcher.open .theme-panel {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.theme-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 16px;
  border: none;
  background: transparent;
  cursor: pointer;
  border-radius: 12px;
  font-size: 14px;
  color: var(--theme-text, #333);
  transition: background 0.2s ease, color 0.2s ease;
  white-space: nowrap;
  width: 100%;
  text-align: left;
}

.theme-option:hover {
  background: var(--theme-accent-glow, rgba(6,187,204,0.1));
  color: var(--theme-primary, #06bbcc);
}

.theme-option.active {
  background: var(--theme-accent-glow, rgba(6,187,204,0.12));
  color: var(--theme-primary, #06bbcc);
  font-weight: 600;
}

.theme-option .theme-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
  border: 2px solid transparent;
}

.theme-option.active .theme-dot {
  border-color: var(--theme-primary, #06bbcc);
  box-shadow: 0 0 8px var(--theme-accent-glow, rgba(6,187,204,0.3));
}

.theme-dot-default {
  background: linear-gradient(135deg, #06bbcc, #0ea5e9);
}

.theme-dot-dark {
  background: linear-gradient(135deg, #0f1119, #1a1f2e);
  border: 2px solid #00d4e4;
}

.theme-dot-chinese {
  background: linear-gradient(135deg, #c41e3a, #d4943f);
}

.theme-dot-modern {
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
}

/* ============================================= */
/*  语言切换器                                   */
/* ============================================= */
.lang-switcher {
  position: fixed;
  left: 24px;
  bottom: 90px;
  z-index: 2147483640;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.lang-toggle-btn {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 8px 12px;
  border-radius: 24px;
  background: var(--theme-bg-card, #fff);
  border: 1px solid var(--theme-border, #e0e0e0);
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  cursor: pointer;
  transition: box-shadow 0.3s ease, transform 0.2s ease;
  font-size: 0;
}

.lang-toggle-btn:hover {
  box-shadow: 0 4px 20px var(--theme-accent-glow, rgba(6,187,204,0.15));
  transform: translateY(-1px);
}

.lang-option {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 16px;
  font-size: 13px;
  font-weight: 500;
  color: var(--theme-text-muted, #999);
  cursor: pointer;
  transition: all 0.3s ease;
  user-select: none;
  letter-spacing: 0.5px;
}

.lang-option.active {
  background: var(--theme-primary, #06bbcc);
  color: #fff;
  font-weight: 600;
}

.lang-option:not(.active):hover {
  color: var(--theme-primary, #06bbcc);
}

.lang-divider {
  font-size: 12px;
  color: var(--theme-text-muted, #ccc);
  margin: 0 1px;
  pointer-events: none;
}

@media (max-width: 767px) {
  .lang-switcher {
    left: 16px;
    bottom: 74px;
  }

  .lang-toggle-btn {
    padding: 6px 10px;
  }

  .lang-option {
    font-size: 12px;
    padding: 3px 6px;
  }
}

@media (max-width: 767px) {
  .theme-switcher {
    left: 16px;
    bottom: 20px;
  }

  .theme-switcher-toggle {
    width: 42px;
    height: 42px;
    font-size: 18px;
  }

  .theme-panel {
    bottom: 52px;
    min-width: 150px;
  }

  .theme-option {
    padding: 10px 14px;
    font-size: 13px;
  }
}
