/* ============================
   公共布局组件 - 蓝白灰主题
   ============================ */

/* 区块容器 */
.section-content {
  padding: 80px 20px;
  max-width: 1440px;
  margin: 0 auto;
}

.section-title {
  text-align: center;
  margin-bottom: 48px;
}

.section-title h2 {
  color: var(--color-text);
  font-weight: 600;
}

.section-title .section-desc {
  margin-top: 14px;
  font-size: 16px;
  color: var(--color-text-secondary);
}

/* 浅灰背景区块 */
.section-light {
  background: var(--color-bg);
}

.section-bg {
  background: linear-gradient(135deg, #0F172A 0%, #1E3A5F 100%);
  color: #fff;
}

.section-bg .section-title .section-desc {
  color: rgba(255, 255, 255, 0.80);
}

.section-p { padding: 0 20px; }

/* ======================== 顶部导航 ======================== */

#header {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(20px) saturate(200%);
  -webkit-backdrop-filter: blur(20px) saturate(200%);
  z-index: 888;
  border-bottom: 1px solid rgba(226, 232, 240, 0.80);
}

/* 顶部标识条已移除 */

.nav-shadow {
  top: 0;
  box-shadow: 0 4px 32px rgba(15, 23, 42, 0.08);
}

.nav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 0 0 40px;
  max-width: 1440px;
  margin: 0 auto;
  height: 76px;
}

.nav-header .nav-left {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

.nav-header .nav-left .nav-icon img {
  width: 170px;
  height: 42px;
  margin-right: 64px;
  object-fit: contain;
}

.nav-menu { display: flex; }

.nav-menu .nav-item {
  color: #1E293B;
  display: flex;
  align-items: center;
  height: 76px;
  padding: 0 22px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.3px;
  cursor: pointer;
  border-bottom: 3px solid transparent;
  transition: var(--transition);
  position: relative;
}

.nav-menu .nav-item:hover {
  color: var(--color-primary);
  border-bottom: 3px solid var(--color-primary);
}

.nav-right {
  display: flex;
  align-items: center;
  height: 76px;
  flex-shrink: 0;
}

/* 文字链接区 */
.nav-text-links {
  display: flex;
  align-items: center;
  padding-right: 8px;
}

.nav-link-text {
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  font-size: 14px;
  color: #475569;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.nav-link-text:hover {
  color: var(--color-primary);
}

.nav-sep {
  color: #CBD5E1;
  font-size: 15px;
  user-select: none;
}

/* 全高度注册按鈕 */
.nav-regist-wrap {
  height: 76px;
  display: flex;
  align-items: stretch;
}

.btn-regist-full {
  height: 76px;
  padding: 0 36px;
  background: var(--color-primary);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease;
  white-space: nowrap;
  user-select: none;
}

.btn-regist-full:hover {
  background: var(--color-primary-dark);
}

/* 下拉菜单 */
.nav-cont {
  position: absolute;
  top: 76px;
  width: 100%;
  overflow: hidden;
  background: #F8FAFC;
  transition: height .4s ease;
  height: 0;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.10);
  z-index: 2;
}

.nav-cont .section-content { padding: 0; }

.nav-content {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  padding: 48px 20px;
  max-width: 1440px;
  margin: 0 auto;
  box-sizing: border-box;
}

.nav-content a { width: calc(25% - 12px); }

.nav-cont .nav-cont-menu { display: none; }
.nav-cont .nav-cont-empty { display: none !important; }

/* 下拉菜单项 */
.nav-item-box {
  height: 88px;
  padding: 20px 16px;
  border-radius: var(--radius-md);
  background: #fff;
  display: flex;
  align-items: center;
  cursor: pointer;
  border: 1px solid var(--color-border-light);
  transition: var(--transition);
}

.nav-item-box:hover {
  border-color: var(--color-primary-light);
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.08);
}

.nav-item-box:hover .title {
  color: var(--color-primary);
}

/* 导航图标 */
.nav-item-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-right: 12px;
}

.nav-item-icon svg {
  width: 20px;
  height: 20px;
}

.icon-bg-blue   { background: #EFF6FF; color: #2563EB; }
.icon-bg-indigo { background: #EEF2FF; color: #4F46E5; }
.icon-bg-cyan   { background: #ECFEFF; color: #0891B2; }
.icon-bg-sky    { background: #F0F9FF; color: #0284C7; }
.icon-bg-teal   { background: #F0FDFA; color: #0D9488; }
.icon-bg-slate  { background: #F8FAFC; color: #475569; }

.nav-item-box .item-box-title {
  display: flex;
  flex-direction: column;
  justify-content: center;
  font-size: 15px;
  color: var(--color-text);
}

.nav-item-box .item-box-title .desc {
  font-size: 12px;
  color: var(--color-text-muted);
  margin-top: 3px;
}

/* 登录状态 */
.nav-header .login-in {
  cursor: pointer;
  position: relative;
  height: 76px;
  display: flex;
  align-items: center;
  z-index: 999;
  padding: 0 20px 0 24px;
}

.nav-header .login-in::after {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  height: 28px;
  transform: translateY(-50%);
  border-left: 1px solid var(--color-border);
}

.nav-header .login-in:hover .login-menu { display: block; }

.nav-header .login-in .head-img {
  width: 32px;
  height: 32px;
  background: var(--color-primary);
  border-radius: 50%;
  color: #FFFFFF;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-header .login-in .name {
  display: inline-block;
  max-width: 120px;
  margin-left: 8px;
  font-size: 14px;
  color: var(--color-text);
}

.nav-header .login-in .login-menu {
  display: none;
  padding: 6px;
  position: absolute;
  top: 76px;
  left: 0;
  min-width: 150px;
  background: #FFFFFF;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-md);
  border-radius: var(--radius-md);
}

.nav-header .login-in .login-menu .login-menu-item {
  cursor: pointer;
  height: 38px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--color-text);
  transition: var(--transition);
}

.nav-header .login-in .login-menu .login-menu-item:hover {
  background: var(--color-primary-light);
  color: var(--color-primary);
}

.nav-header .login-in .login-menu .login-menu-item .real-name {
  display: inline-block;
  text-align: center;
  border: 1px solid var(--color-primary);
  color: var(--color-primary);
  font-size: 11px;
  padding: 1px 6px;
  border-radius: 10px;
  margin-left: 6px;
}

.nav-header .login-in .login-menu .login-menu-item .no-real-name {
  border-color: #EF4444;
  color: #EF4444;
}

.no-login, .login-in { margin-left: 16px; }

/* ======================== 页脚 ======================== */

.site-footer {
  background: #0F172A;
  color: rgba(255, 255, 255, 0.85);
}

/* CTA 横幅 */
.footer-cta-banner {
  background: linear-gradient(135deg, #2563EB 0%, #3B82F6 50%, #60A5FA 100%);
  position: relative;
  overflow: hidden;
}

.footer-cta-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
  border-radius: 50%;
}

.cta-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 40px;
  padding-bottom: 40px;
  position: relative;
  z-index: 1;
}

.cta-content {
  flex: 1;
}

.cta-title {
  font-size: 24px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
  letter-spacing: 0.3px;
}

.cta-desc {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.6;
}

.cta-actions {
  display: flex;
  gap: 16px;
  flex-shrink: 0;
}

.btn-cta-primary {
  padding: 12px 28px;
  background: #fff;
  color: #2563EB;
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  text-decoration: none;
  display: inline-block;
}

.btn-cta-primary:hover {
  background: #F8FAFC;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-cta-secondary {
  padding: 12px 28px;
  background: transparent;
  color: #fff;
  font-size: 15px;
  font-weight: 500;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: var(--radius-sm);
  transition: var(--transition);
  text-decoration: none;
  display: inline-block;
}

.btn-cta-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #fff;
  transform: translateY(-2px);
}

/* 服务承诺 */
.footer-promise {
  background: #1E293B;
}

.promise-wrap {
  display: flex;
  flex-wrap: wrap;
  padding-top: 0;
  padding-bottom: 0;
}

.promise-box {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  min-width: 200px;
  padding: 24px 0;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.85);
  transition: var(--transition);
  cursor: default;
}

.promise-box:hover {
  color: #fff;
}

.promise-box:hover svg {
  transform: scale(1.1);
}

.promise-box svg {
  width: 24px;
  height: 24px;
  color: #60A5FA;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

/* 页脚主体 */
.footer-main {
  background: #0F172A;
}

.footer-main .section-content {
  padding-top: 24px;
  padding-bottom: 16px;
}

.footer-main .footer-compact {
  padding-top: 24px;
  padding-bottom: 16px;
}

.footer-nav {
  display: flex;
  justify-content: space-between;
  padding-bottom: 20px;
}

.footer-nav-left {
  display: flex;
  width: 100%;
  gap: 24px;
  margin-right: 100px;
}

.footer-nav-box { flex: 1; }

.footer-nav-box .footer-nav-head {
  padding: 0 0 8px;
  font-size: 14px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 12px;
}

.footer-nav-box .footer-nav-item {
  margin-bottom: 6px;
  font-size: 13px;
}

.footer .link-hover,
.site-footer .link-hover {
  color: rgba(255, 255, 255, 0.50);
}

.footer .link-hover:hover,
.site-footer .link-hover:hover {
  color: var(--color-primary-hover) !important;
}

.footer-nav-right {
  width: 200px;
  flex-shrink: 0;
}

.footer-nav-right .footer-nav-box .footer-nav-item {
  color: rgba(255, 255, 255, 0.50);
  font-size: 13px;
}

.footer-nav-right .qr-code img {
  margin-top: 12px;
  width: 80px;
  height: 80px;
  border-radius: var(--radius-sm);
}

.footer-link {
  display: none;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.30);
  height: 36px;
  line-height: 36px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-link a {
  margin-right: 10px;
  color: rgba(255, 255, 255, 0.35);
}

.footer-link a:hover {
  color: var(--color-primary-hover) !important;
}

.footer-record {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  height: 40px;
  line-height: 40px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.35);
}

.footer-record .left-info a {
  margin-right: 12px;
  color: rgba(255, 255, 255, 0.35);
  transition: var(--transition);
}

.footer-record .left-info a:hover {
  color: var(--color-primary-hover) !important;
}

/* ======================== 侧边工具 ======================== */

.aside-tools {
  position: fixed;
  top: 45%;
  right: 0;
  z-index: 3;
}

.aside-tools .tools-list {
  width: 40px;
  background: #FFFFFF;
  box-shadow: -2px 0 16px rgba(0, 0, 0, 0.08);
  border-radius: 6px 0 0 6px;
}

.aside-tools .tools-list .tools-item {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.aside-tools .tools-list .tools-item .tools-svg {
  margin: 10px;
  height: 22px;
  width: 22px;
  cursor: pointer;
  color: var(--color-text-muted);
  transition: var(--transition);
}

.aside-tools .tools-list .tools-item:hover .tools-svg {
  color: var(--color-primary);
}

.aside-tools .tools-list .tools-item::before {
  content: '';
  position: absolute;
  background: var(--color-border-light);
  bottom: 0;
  right: 8px;
  width: 20px;
  height: 1px;
}

.aside-tools .tools-list .tools-item:last-child:before { content: none; }

.aside-tools .tools-list .tools-item:hover .tools-box { display: block; }

.aside-tools .tools-list .tools-item .tools-box {
  display: none;
  position: absolute;
  left: -228px;
  top: 0;
  padding-right: 28px;
}

.aside-tools .tools-list .tools-item .tools-box-s {
  padding: 18px 16px;
  width: 200px;
  background: #FFFFFF;
  box-shadow: var(--shadow-md);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
}

.aside-tools .tools-list .tools-item .tools-box h5 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--color-text);
}

.aside-tools .tools-list .tools-item .tools-box p {
  font-size: 12px;
  color: var(--color-text-secondary);
}

.aside-tools .tools-list .tools-item .tools-box .button {
  font-size: 12px;
  display: inline-block;
  margin-top: 14px;
  padding: 5px 12px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  color: var(--color-text);
  transition: var(--transition);
  cursor: pointer;
}

.aside-tools .tools-list .tools-item .tools-box .button:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

/* ======================== 新闻列表（公共） ======================== */

.news-content { gap: 24px; }

.news-cont {
  flex: 1;
  min-width: 280px;
}

.news-head {
  padding-bottom: 14px;
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 4px;
}

.news-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--color-text);
}

.news-more {
  font-size: 13px;
  color: var(--color-text-muted);
}

.news-more a {
  color: var(--color-text-muted);
}

.news-more a:hover {
  color: var(--color-primary) !important;
}

.news-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--color-border-light);
  transition: var(--transition);
}

.news-item:hover .title { color: var(--color-primary); }

.news-item .number {
  width: 22px;
  height: 22px;
  background: var(--color-bg);
  color: var(--color-text-muted);
  font-size: 12px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-right: 10px;
}

.news-item:first-child .number,
.news-item:nth-child(2) .number,
.news-item:nth-child(3) .number {
  background: var(--color-primary-light);
  color: var(--color-primary);
}

.news-item .title {
  flex: 1;
  font-size: 14px;
  color: var(--color-text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: var(--transition);
}

.news-item .time {
  font-size: 12px;
  color: var(--color-text-muted);
  margin-left: 16px;
  flex-shrink: 0;
}

/* ======================== 搜索框公共 ======================== */

.input-search {
  display: flex;
  position: relative;
}

.input-search input {
  padding-left: 15px;
  font-size: 16px;
  margin-top: 24px;
  margin-bottom: 16px;
  height: 48px;
  background: #FFFFFF;
  border: 1.5px solid var(--color-primary);
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
  outline: none;
}

.input-search .search-btn {
  cursor: pointer;
  color: #fff;
  margin-top: 24px;
  margin-bottom: 16px;
  padding: 0 28px;
  background: var(--color-primary);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  display: flex;
  align-items: center;
  transition: var(--transition);
}

.input-search .search-btn:hover {
  background: var(--color-primary-hover);
}

/* ======================== 分页 ======================== */

.jr-page .pagination .page-number.active {
  color: #fff;
  border: 1px solid var(--color-primary);
  background: var(--color-primary);
}

.jr-page .pagination .page-number:hover {
  background: var(--color-primary);
  color: #fff !important;
}

.jr-page .pagination > li a {
  margin: 0 4px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  color: var(--color-text-secondary);
}

/* ======================== 通用标签 ======================== */

.tag {
  display: inline-block;
  padding: 3px 10px;
  background: var(--color-primary-light);
  color: var(--color-primary);
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
}

/* ======================== 响应式适配 ======================== */

@media screen and (max-width: 1440px) {
  .nav-content a { width: calc(33.33% - 11px); }
}

@media screen and (max-width: 768px) {
  .cta-wrap {
    flex-direction: column;
    text-align: center;
    gap: 24px;
  }
  
  .cta-title {
    font-size: 20px;
  }
  
  .cta-actions {
    flex-direction: column;
    width: 100%;
  }
  
  .btn-cta-primary,
  .btn-cta-secondary {
    width: 100%;
    text-align: center;
  }
  
  .promise-box {
    min-width: 50%;
  }
}

@media screen and (max-width: 480px) {
  .promise-box {
    min-width: 100%;
    padding: 16px 0;
  }
}

/* ======================== 导航右侧辅助元素 ======================== */

/* 系统状态树 */
.nav-status-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px;
  background: #F0FDF4;
  border: 1px solid #BBF7D0;
  border-radius: 20px;
  margin-right: 4px;
}

.status-dot {
  width: 6px;
  height: 6px;
  background: #16A34A;
  border-radius: 50%;
  box-shadow: 0 0 0 2px rgba(22, 163, 74, 0.22);
  animation: pulse-green 2.4s ease-in-out infinite;
}

.status-text {
  font-size: 12px;
  color: #15803D;
  font-weight: 500;
  white-space: nowrap;
}

@keyframes pulse-green {
  0%, 100% { box-shadow: 0 0 0 2px rgba(22, 163, 74, 0.22); }
  50%       { box-shadow: 0 0 0 5px rgba(22, 163, 74, 0.10); }
}

/* 分隔线 */
.nav-divider {
  width: 1px;
  height: 20px;
  background: var(--color-border);
  margin: 0 8px;
  flex-shrink: 0;
}

/* 文字按鈕（登录） */
.btn-text {
  color: var(--color-text-secondary);
  background: transparent;
  padding: 7px 14px;
  font-size: 14px;
  font-weight: 500;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  cursor: pointer;
}

.btn-text:hover {
  color: var(--color-primary);
  background: var(--color-primary-light);
}

/* 导航注册按鈕 */
.btn-nav {
  padding: 8px 18px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.3px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, #2563EB 0%, #1D4ED8 100%);
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.30);
  transition: var(--transition);
}

.btn-nav:hover {
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.40);
  transform: translateY(-1px);
}
