*{
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: 'Segoe UI', 'PingFang SC', 'Hiragino Sans', Arial, sans-serif;
  background: linear-gradient(120deg, #f8fafc 0%, #e0e7ef 100%);
  color: #232a4d;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
}

@font-face {
  font-family: "logo";
  src: url("./logo.ttf");
}

#bg-canvas {
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  z-index: 0;
}
header {
  width:100%;
  background: rgba(255,255,255,0.97);
  border-bottom: 1px solid #e5e7eb;
  box-shadow: 0 2px 16px #e0e7ef55;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 10;
  transition: box-shadow 0.2s;
}
.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
}
.logo {
  font-size: 26px;
  font-weight: 900;
  color: #2563eb;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  text-shadow: 0 0 8px #60a5fa33, 0 0 16px #818cf833;
  font-family: "logo";
}
.logo-icon {
  width: 32px;
  height: 32px;
  /* background: linear-gradient(135deg, #60a5fa 0%, #818cf8 100%); */
  border-radius: 8px;
  margin-right: 10px;
  display: inline-block;
  box-shadow: 0 0 12px #60a5fa33, 0 0 24px #818cf833;
  transform: translateY(2px);
}
nav {
  display: flex;
  align-items: center;
  gap: 38px;
  position: relative;
}
nav a {
  color: #374151;
  text-shadow: 0 0 6px #818cf822;
  font-size: 17px;
  font-weight: 500;
  padding: 6px 0 10px 0;
  position: relative;
  transition: color 0.18s, text-shadow 0.18s, transform 0.18s;
  text-decoration: none;
  letter-spacing: 0.5px;
  background: none;
  z-index: 1;
  display: inline-block;
}
nav a:hover, nav a.active {
  color: #2563eb;
  background: linear-gradient(90deg, #2563eb 30%, #60a5fa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 2px 12px #60a5fa33;
  transform: translateY(-2px) scale(1.04);
}
nav a::after {
  content: '';
  display: block;
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, #2563eb 30%, #60a5fa 100%);
  border-radius: 2px;
  opacity: 0;
  transition: all 0.32s cubic-bezier(.4,0,.2,1);
  z-index: 2;
}
nav a:hover::after, nav a.active::after {
  left: 0;
  width: 100%;
  opacity: 1;
}
main {
  padding-top: 90px;
  position: relative;
  z-index: 1;
  flex: 1;
}
.hero {
  text-align: center;
  padding: 110px 10px 60px 10px;
}
.hero-title {
  font-size: 54px;
  font-weight: 900;
  background: linear-gradient(90deg, #3A5FE9 10%, #2a71c9 90%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: 2px;
  text-shadow: 0 0 18px #60a5fa22, 0 0 32px #818cf822;
  margin-bottom: 18px;
}
.hero-desc {
  font-size: 24px;
  color: #374151;
  margin-bottom: 36px;
  text-shadow: 0 0 8px #e0e7ef;
}
.hero-btns {
  margin-top: 18px;
  display: flex;
  justify-content: center;
  gap: 32px;
}
.btn-primary {
  background: #2563eb;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 17px;
  font-weight: 500;
  padding: 11px 32px;
  box-shadow: none;
  transition: background 0.18s, box-shadow 0.18s, transform 0.18s;
  letter-spacing: 1px;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}
.btn-primary:hover {
  background: #1d4fd7;
  box-shadow: 0 2px 8px #2563eb22;
  transform: translateY(-2px) scale(1.03);
}
.btn-primary .ripple {
  position: absolute;
  border-radius: 50%;
  transform: scale(0);
  animation: ripple-effect 0.5s linear;
  background: rgba(255,255,255,0.4);
  pointer-events: none;
  z-index: 2;
}
@keyframes ripple-effect {
  to {
    transform: scale(2.5);
    opacity: 0;
  }
}
.btn-outline {
  background: #fff;
  color: #2563eb;
  border: 1.5px solid #2563eb;
  border-radius: 6px;
  font-size: 17px;
  font-weight: 500;
  padding: 11px 32px;
  box-shadow: none;
  transition: background 0.18s, color 0.18s, border 0.18s, box-shadow 0.18s, transform 0.18s;
  letter-spacing: 1px;
  text-decoration: none;
  background: linear-gradient(90deg, #fff 60%, #f1f5fd 100%);
  background-size: 200% 100%;
  background-position: 0 0;
  position: relative;
  overflow: hidden;
}
.btn-outline:hover {
  background-position: 100% 0;
  transition: background-position 0.5s cubic-bezier(.4,0,.2,1),
    box-shadow 0.3s cubic-bezier(.4,0,.2,1),
    transform 0.18s;
  box-shadow: 0 4px 24px 0 #60a5fa44, 0 1.5px 8px #2563eb22;
  transform: translateY(-3px) scale(1.04);
}
.advantages {
  max-width: 1100px;
  margin: 0 auto 60px auto;
  display: flex;
  justify-content: space-between;
  gap: 36px;
  flex-wrap: wrap;
  padding: 0 15px;
}
.adv-card {
  flex: 1 1 260px;
  background: rgba(255,255,255,0.96);
  border-radius: 18px;
  box-shadow: 0 4px 32px #60a5fa11, 0 1.5px 8px #e0e7ef88;
  border: 1.5px solid #e5e7eb;
  color: #232a4d;
  padding: 32px 22px;
  min-width: 240px;
  margin-top: 18px;
  transition: box-shadow 0.25s, transform 0.25s;
  position: relative;
  overflow: hidden;
}
.adv-card::before {
  content: '';
  position: absolute;
  top: -40px; left: -40px; right: -40px; bottom: -40px;
  background: radial-gradient(circle at 60% 40%, #60a5fa22 0%, transparent 70%);
  z-index: 0;
}
.adv-card:hover {
  box-shadow: 0 8px 48px #60a5fa44, 0 2px 16px #818cf844;
  transform: translateY(-6px) scale(1.04) rotateZ(-1deg);
}
.adv-title {
  font-size: 24px;
  font-weight: 800;
  color: #2563eb;
  text-shadow: 0 0 8px #60a5fa33, 0 0 16px #818cf833;
  margin-bottom: 12px;
  position: relative;
  z-index: 1;
}
.adv-desc {
  font-size: 16px;
  color: #374151;
  position: relative;
  z-index: 1;
}
footer {
  text-align: center;
  padding: 28px 0 16px 0;
  color: #2563eb;
  font-size: 15px;
  background: rgba(255,255,255,0.97);
  border-top: 1px solid #e5e7eb;
  margin-top: 40px;
  text-shadow: 0 0 8px #60a5fa33, 0 0 16px #818cf833;
}
@media (max-width: 900px) {
  .header-inner, .advantages {
    /* flex-direction: column; */
    align-items: flex-start;
    gap: 0;
    padding: 0 15px;
  }
  .advantages {
    gap: 0;
  }
}
@media (max-width: 600px) {
  .hero-title {
    font-size: 32px;
  }
  .hero-desc {
    font-size: 16px;
  }
  .advantages {
    /* flex-direction: column; */
    gap: 0;
    margin: 0 0 18px 0;
    padding: 0 15px;
  }
  .adv-card {
    width: 96vw;
    max-width: 98vw;
    margin: 10px auto 0 auto;
    padding: 14px 14px 18px 14px;
    border-radius: 18px;
    box-shadow: 0 2px 8px #60a5fa18, 0 1.5px 6px #e0e7ef22;
    border: none;
    background: #fff;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }
  .adv-title {
    font-size: 17px;
    margin-bottom: 6px;
    color: #2563eb;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-align: left;
  }
  .adv-desc {
    font-size: 13px;
    color: #374151;
    line-height: 1.7;
    text-align: left;
  }
  .header-inner {
    padding: 12px 8px;
  }
}
.modal-mask {
  position: fixed;
  left: 0; top: 0; right: 0; bottom: 0;
  width: 100vw; height: 100vh;
  background: rgba(36, 54, 90, 0.38);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.modal-box {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 48px #2563eb22, 0 1.5px 8px #60a5fa22;
  padding: 36px 28px 28px 28px;
  min-width: 320px;
  max-width: 92vw;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: modal-pop 0.28s cubic-bezier(.4,0,.2,1);
}
@keyframes modal-pop {
  0% { transform: scale(0.85) translateY(40px); opacity: 0; }
  100% { transform: scale(1) translateY(0); opacity: 1; }
}
.modal-title {
  font-size: 20px;
  font-weight: 700;
  color: #2563eb;
  margin-bottom: 22px;
  letter-spacing: 1px;
}
.modal-input {
  width: 100%;
  font-size: 16px;
  padding: 12px 14px;
  border: 1.5px solid #e5e7eb;
  border-radius: 7px;
  outline: none;
  margin-bottom: 8px;
  transition: all 0.2s;
  color: #232a4d;
  background: #f8fafc;
  position: relative;
}
.modal-input:focus {
  border-color: #2563eb;
}
.modal-input.error {
  border-color: #f87171;
  animation: shake 0.5s cubic-bezier(.36,.07,.19,.97) both;
}
.error-message {
  color: #f87171;
  font-size: 13px;
  margin: -4px 0 20px 0;
  display: flex;
  align-items: center;
  gap: 4px;
  opacity: 0;
  transform: translateY(-10px);
  transition: all 0.2s;
}
.error-message.show {
  opacity: 1;
  transform: translateY(0);
}
.error-message::before {
  content: "!";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  background: #f87171;
  color: white;
  border-radius: 50%;
  font-size: 12px;
  font-weight: bold;
}
@keyframes shake {
  10%, 90% { transform: translate3d(-1px, 0, 0); }
  20%, 80% { transform: translate3d(2px, 0, 0); }
  30%, 50%, 70% { transform: translate3d(-2px, 0, 0); }
  40%, 60% { transform: translate3d(2px, 0, 0); }
}
.callback-tip {
  font-size: 13px;
  color: #6b7280;
  margin: -20px 0 26px 0;
  text-align: left;
  width: 100%;
}
.captcha-container {
  display: flex;
  gap: 12px;
  width: 100%;
  margin-bottom: 26px;
}
.captcha-input {
  flex: 1;
  margin-bottom: 0;
}
.captcha-img {
  height: 40px;
  border-radius: 7px;
  cursor: pointer;
  transition: transform 0.2s;
}
.captcha-img:hover {
  transform: scale(1.02);
}
.success-box {
  max-width: 400px;
}
.success-content {
  width: 100%;
  margin-bottom: 26px;
}
.success-item {
  display: flex;
  margin-bottom: 12px;
  font-size: 15px;
  line-height: 1.5;
}
.success-label {
  color: #374151;
  min-width: 80px;
}
.success-value {
  color: #2563eb;
  font-weight: 500;
  word-break: break-all;
}
.modal-actions {
  display: flex;
  gap: 18px;
  width: 100%;
  justify-content: flex-end;
}
@media (max-width: 600px) {
  .modal-box {
    min-width: 0;
    padding: 18px 8px 16px 8px;
  }
  .modal-title {
    font-size: 17px;
  }
  .modal-input {
    font-size: 15px;
    padding: 10px 8px;
  }
}
.disclaimer {
  text-align: center;
  padding: 1.5rem 1rem;
  margin-top: 3rem;
  background: rgba(255, 255, 255, 0.95);
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  width: 100%;
}
.disclaimer-content {
  color: #666;
  font-size: 0.9rem;
  line-height: 1.5;
  max-width: 1100px;
  margin: 0 auto;
}
@media (max-width: 600px) {
  .disclaimer {
    padding: 1rem;
    margin-top: 2rem;
  }
  
  .disclaimer-content {
    font-size: 0.85rem;
  }
}
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 38px;
  height: 38px;
  background: none;
  border: none;
  cursor: pointer;
  margin-left: 10px;
  z-index: 20;
}
.nav-toggle .bar {
  width: 26px;
  height: 3px;
  background: #2563eb;
  margin: 4px 0;
  border-radius: 2px;
  transition: all 0.3s;
}
.nav-toggle.open .bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle.open .bar:nth-child(2) {
  opacity: 0;
}
.nav-toggle.open .bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}
@media (max-width: 600px) {
  .header-inner {
    flex-direction: row;
    align-items: center;
    padding: 12px 8px;
  }
  .logo {
    font-size: 22px;
  }
  #main-nav {
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background: #fff;
    box-shadow: 0 4px 24px #60a5fa22;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 0 0 10px 0;
    display: none;
    z-index: 15;
  }
  #main-nav.nav-open {
    display: flex;
  }
  #main-nav a {
    width: 100%;
    padding: 14px 24px;
    font-size: 17px;
    border-bottom: 1px solid #f1f5fd;
    text-align: left;
    background: none;
    color: #2563eb;
    box-sizing: border-box;
  }
  .nav-toggle {
    display: flex;
  }
}