:root{
  --primary:#2F6BFF;
  --secondary:#6FA3FF;
  --bg:#F4F7FB;
  --card-bg:#FFFFFF;
  --text-main:#1F2D3D;
  --text-dark:#000000;
  --border:#D6E2FF;
  --glow:#A5C4FF;
  --btn-gradient:linear-gradient(180deg,#4A8BFF 0%,#2F6BFF 100%);
  --header-offset:122px;
}
body{
  padding-top:var(--header-offset);
  margin:0;
  font-family:'Segoe UI',Roboto,'Helvetica Neue',Arial,sans-serif;
  background:var(--bg);
  color:var(--text-main);
  line-height:1.6;
}
.site-header{
  position:fixed;
  top:0;
  left:0;
  right:0;
  width:100%;
  z-index:1000;
  box-shadow:0 4px 18px rgba(47,107,255,0.16);
  background:var(--card-bg);
}
.header-top{
  box-sizing:border-box;
  width:100%;
  height:68px;
  min-height:68px;
  display:flex;
  align-items:center;
  overflow:hidden;
  background:linear-gradient(180deg,#1E4FD6 0%,#2F6BFF 100%);
}
.header-container{
  box-sizing:border-box;
  width:100%;
  height:100%;
  max-width:1200px;
  margin:0 auto;
  padding-left:28px;
  padding-right:28px;
  display:flex;
  justify-content:space-between;
  align-items:center;
}
.logo{
  display:inline-block;
  font-size:28px;
  font-weight:800;
  letter-spacing:0.5px;
  color:#FFFFFF;
  text-decoration:none;
  text-shadow:0 2px 6px rgba(0,0,0,0.18);
  line-height:1;
}
.logo:hover{color:#EAF1FF;}
.logo img{
  display:block;
  max-height:60px;
  height:auto;
  width:auto;
  max-width:280px;
  object-fit:contain;
}
.desktop-nav-buttons{
  display:flex;
  gap:12px;
  align-items:center;
}
.mobile-nav-buttons{
  box-sizing:border-box;
  display:none;
  min-height:48px;
}
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:10px 22px;
  border-radius:8px;
  font-size:14px;
  font-weight:700;
  text-decoration:none;
  border:1px solid transparent;
  cursor:pointer;
  transition:transform .2s ease,box-shadow .2s ease,background .2s ease;
  white-space:nowrap;
  line-height:1.2;
}
.btn:hover{transform:translateY(-1px);}
.btn-login{
  background:rgba(255,255,255,0.16);
  color:#FFFFFF;
  border:1px solid rgba(255,255,255,0.65);
}
.btn-login:hover{background:rgba(255,255,255,0.26);}
.btn-register{
  background:var(--card-bg);
  color:var(--primary);
  box-shadow:0 4px 14px rgba(0,0,0,0.18);
}
.btn-register:hover{background:#EAF1FF;}
.main-nav{
  box-sizing:border-box;
  width:100%;
  height:52px;
  min-height:52px;
  display:flex;
  align-items:center;
  overflow:hidden;
  background:linear-gradient(180deg,#F4F7FB 0%,#E4ECFF 100%);
  border-bottom:1px solid var(--border);
}
.nav-container{
  box-sizing:border-box;
  width:100%;
  height:100%;
  max-width:1200px;
  margin:0 auto;
  padding:0 20px;
  display:flex;
  justify-content:center;
  align-items:center;
}
.nav-menu{
  list-style:none;
  margin:0;
  padding:0;
  display:flex;
  flex-direction:row;
  justify-content:center;
  align-items:center;
  gap:6px;
  flex-wrap:nowrap;
}
.nav-menu li{margin:0;padding:0;}
.nav-link{
  display:block;
  padding:8px 12px;
  font-size:14px;
  font-weight:600;
  color:var(--text-main);
  text-decoration:none;
  border-radius:6px;
  transition:background .2s ease,color .2s ease;
  white-space:nowrap;
}
.nav-link:hover{
  background:var(--primary);
  color:#FFFFFF;
}
.hamburger-menu{
  display:none;
  position:absolute;
  top:16px;
  left:14px;
  width:40px;
  height:36px;
  background:transparent;
  border:none;
  cursor:pointer;
  z-index:1001;
  flex-direction:column;
  justify-content:space-between;
  padding:8px 6px;
  box-sizing:border-box;
  border-radius:6px;
}
.hamburger-line{
  display:block;
  width:100%;
  height:3px;
  background:#FFFFFF;
  border-radius:2px;
  transition:transform .3s ease,opacity .3s ease;
}
.hamburger-menu.active .hamburger-line:nth-child(1){transform:translateY(7px) rotate(45deg);}
.hamburger-menu.active .hamburger-line:nth-child(2){opacity:0;}
.hamburger-menu.active .hamburger-line:nth-child(3){transform:translateY(-7px) rotate(-45deg);}
.menu-overlay{
  display:none;
  position:fixed;
  top:0;left:0;right:0;bottom:0;
  background:rgba(15,25,45,0.55);
  z-index:999;
  opacity:0;
  visibility:hidden;
  transition:opacity .3s ease,visibility .3s ease;
}
.menu-overlay.active{
  opacity:1;
  visibility:visible;
}
.site-footer{
  background:linear-gradient(180deg,#16305E 0%,#0E2145 100%);
  color:#DDE7FF;
  margin-top:40px;
}
.footer-container{
  box-sizing:border-box;
  width:100%;
  max-width:1200px;
  margin:0 auto;
  padding:0 24px;
}
.footer-top{
  padding:40px 0 28px;
  border-bottom:1px solid rgba(165,196,255,0.18);
}
.footer-top-grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:24px;
  align-items:start;
}
.footer-col{
  min-width:0;
  overflow-wrap:break-word;
  word-wrap:break-word;
}
.footer-logo{
  display:inline-block;
  font-size:26px;
  font-weight:800;
  color:#FFFFFF;
  text-decoration:none;
  letter-spacing:.5px;
  margin-bottom:12px;
}
.footer-logo:hover{color:var(--glow);}
.footer-description{
  font-size:14px;
  color:#C4D4F5;
  line-height:1.7;
  margin:0 0 12px;
  overflow-wrap:break-word;
  word-wrap:break-word;
}
.footer-heading{
  font-size:16px;
  font-weight:700;
  color:#FFFFFF;
  margin:0 0 14px;
  padding-bottom:8px;
  border-bottom:2px solid var(--primary);
  display:inline-block;
}
.footer-nav{
  list-style:none;
  margin:0;
  padding:0;
}
.footer-nav li{margin:0 0 8px;}
.footer-nav a{
  color:#C4D4F5;
  text-decoration:none;
  font-size:14px;
  transition:color .2s ease,padding-left .2s ease;
}
.footer-nav a:hover{
  color:#FFFFFF;
  padding-left:4px;
}
.footer-mid{
  padding:24px 0 12px;
}
.footer-mid-grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:16px;
}
.footer-bottom{
  padding:18px 0 22px;
  border-top:1px solid rgba(165,196,255,0.18);
  text-align:center;
}
.footer-copyright{
  margin:0;
  font-size:13.5px;
  color:#AFC4EC;
}
.footer-slot-anchor-inner{
  min-height:0;
}
@media (max-width:768px){
  :root{--header-offset:110px;}
  .header-top{height:60px !important;min-height:60px !important;}
  .header-container{
    width:100%;
    max-width:none;
    padding-left:60px;
    padding-right:15px;
  }
  .logo{
    flex:1 !important;
    display:flex !important;
    justify-content:center !important;
    align-items:center !important;
    font-size:24px;
    text-align:center;
  }
  .logo img{
    display:block !important;
    max-height:56px !important;
    max-width:100%;
    height:auto;
  }
  .desktop-nav-buttons{display:none !important;}
  .mobile-nav-buttons{
    display:flex !important;
    align-items:center;
    justify-content:center;
    width:100%;
    max-width:100%;
    box-sizing:border-box;
    padding-left:15px;
    padding-right:15px;
    overflow:hidden;
    gap:10px;
    flex-wrap:nowrap;
    min-height:48px;
    background:linear-gradient(180deg,#2F6BFF 0%,#1E4FD6 100%);
  }
  .mobile-nav-buttons .btn{
    flex:1;
    min-width:0;
    max-width:calc(50% - 5px);
    box-sizing:border-box;
    padding:8px 12px;
    font-size:13px;
    white-space:normal;
    word-wrap:break-word;
    overflow-wrap:break-word;
  }
  .hamburger-menu{display:flex;}
  .main-nav{
    display:none;
    position:fixed;
    top:0;
    left:0;
    width:82%;
    max-width:320px;
    height:100vh;
    min-height:100vh;
    flex-direction:column;
    background:linear-gradient(180deg,#14294F 0%,#0E2145 100%);
    padding-top:70px;
    box-shadow:4px 0 24px rgba(0,0,0,0.35);
    transform:translateX(-100%);
    transition:transform .3s ease;
    z-index:999;
    overflow-y:auto;
  }
  .main-nav.active{
    display:flex;
    transform:translateX(0);
  }
  .nav-container{
    width:100%;
    max-width:none;
    height:auto;
    padding:10px 0 30px;
    flex-direction:column;
    justify-content:flex-start;
    align-items:stretch;
  }
  .nav-menu{
    flex-direction:column;
    align-items:stretch;
    gap:0;
    width:100%;
  }
  .nav-link{
    padding:14px 24px;
    font-size:15px;
    color:#E4ECFF;
    border-bottom:1px solid rgba(165,196,255,0.12);
    border-radius:0;
  }
  .nav-link:hover{
    background:rgba(47,107,255,0.35);
    color:#FFFFFF;
  }
  .menu-overlay{display:block;}
  .footer-top-grid{
    grid-template-columns:1fr;
    gap:24px;
  }
  .footer-mid-grid{
    grid-template-columns:1fr 1fr;
    gap:12px;
  }
  .footer-container{padding:0 16px;}
  .footer-top{padding:30px 0 22px;}
  .page-content img{
    max-width:100% !important;
    height:auto !important;
    display:block;
  }
  .page-content{
    overflow-x:hidden;
    max-width:100%;
  }
  body{
    overflow-x:hidden;
  }
}
/* 移动端内容区防溢出（系统追加，请勿删除） */
@media (max-width: 768px) {
  .page-content img {
    max-width: 100% !important;
    height: auto !important;
    display: block;
  }
  .page-content {
    overflow-x: hidden;
    max-width: 100%;
  }
  body {
    overflow-x: hidden;
  }
}
/* 内容保护（系统追加，请勿删除） */
body {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}
input, textarea, select, [contenteditable="true"] {
  -webkit-user-select: text;
  -moz-user-select: text;
  user-select: text;
}
