/* ===== 基础 ===== */
:root {
  --primary: #1e56a0;
  --primary-dark: #143d73;
  --accent: #f97316;
  --accent-dark: #ea580c;
  --text: #333;
  --text-light: #666;
  --bg-light: #f5f7fb;
  --white: #fff;
  --radius: 12px;
  --shadow: 0 10px 30px rgba(20, 61, 115, .12);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  line-height: 1.7;
  background: var(--white);
}

.container { width: min(1160px, 92%); margin: 0 auto; }

a { text-decoration: none; color: inherit; }

img { max-width: 100%; }

/* ===== 顶部导航 ===== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid #eef1f6;
  transition: box-shadow .3s;
}

.site-header.scrolled { box-shadow: 0 4px 18px rgba(20, 61, 115, .08); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  height: 68px;
}


.main-nav { display: flex; gap: 26px; }

.main-nav a {
  font-size: 15px;
  color: var(--text);
  padding: 6px 2px;
  position: relative;
  transition: color .25s;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 2px;
  background: var(--accent);
  transition: width .25s;
}

.main-nav a:hover, .main-nav a.active { color: var(--primary); }
.main-nav a:hover::after, .main-nav a.active::after { width: 100%; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.nav-toggle span {
  width: 24px; height: 2px;
  background: var(--primary-dark);
  transition: transform .3s, opacity .3s;
}

.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== 首屏横幅 ===== */
.hero {
  padding: 180px 0 100px;
  background:
    radial-gradient(900px 400px at 85% -10%, rgba(249, 115, 22, .18), transparent 60%),
    radial-gradient(800px 500px at 0% 110%, rgba(30, 86, 160, .25), transparent 60%),
    linear-gradient(135deg, #0f2c55 0%, #1e56a0 55%, #2d6cc4 100%);
  color: #fff;
}

.hero-inner { text-align: center; }

.hero h1 { font-size: 44px; font-weight: 800; letter-spacing: 1px; }

.hero h1 .accent { color: #ffb066; }

.hero p { margin: 22px auto 36px; font-size: 17px; color: rgba(255, 255, 255, .85); }

.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

.btn {
  display: inline-block;
  padding: 12px 34px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: transform .2s, box-shadow .2s, background .2s;
}

.btn:hover { transform: translateY(-2px); }

.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 8px 22px rgba(249, 115, 22, .35); }
.btn-primary:hover { background: var(--accent-dark); }

.btn-ghost { border: 1.5px solid rgba(255, 255, 255, .7); color: #fff; }
.btn-ghost:hover { background: rgba(255, 255, 255, .12); }

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 60px;
  margin-top: 64px;
  flex-wrap: wrap;
}

.stat { text-align: center; }

.stat strong { display: block; font-size: 30px; color: #ffb066; }

.stat span { font-size: 14px; color: rgba(255, 255, 255, .8); }

/* ===== 通用区块 ===== */
.section { padding: 90px 0; }

.section-head { text-align: center; margin-bottom: 52px; }

.section-head h2 { font-size: 32px; font-weight: 800; color: var(--primary-dark); }

.section-head .section-sub { margin-top: 12px; color: var(--text-light); font-size: 16px; }

.section-head.light h2 { color: #fff; }
.section-head.light .section-sub { color: rgba(255, 255, 255, .8); }

/* ===== 关于我们 ===== */
.about { background: var(--bg-light); }

.about-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }

.about-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 30px 30px;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--primary);
}

.about-card h3 { font-size: 19px; color: var(--primary-dark); margin-bottom: 12px; }

.about-card p { font-size: 14.5px; color: var(--text-light); text-align: justify; }

.about-card.highlight {
  border-left-color: var(--accent);
  background: linear-gradient(135deg, #fff7f0, #fff);
}

/* ===== 平台优势 ===== */
.features {
  background:
    radial-gradient(700px 320px at 10% 0%, rgba(249, 115, 22, .15), transparent 60%),
    linear-gradient(135deg, #0f2c55, #1e56a0);
}

.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }

.feature-card {
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: var(--radius);
  padding: 40px 28px;
  text-align: center;
  color: #fff;
  transition: transform .3s, background .3s;
}

.feature-card:hover { transform: translateY(-6px); background: rgba(255, 255, 255, .12); }

.feature-icon { font-size: 42px; margin-bottom: 16px; }

.feature-card h3 { font-size: 20px; margin-bottom: 12px; }

.feature-card p { font-size: 14.5px; color: rgba(255, 255, 255, .85); }

/* ===== 合作品牌 ===== */
.partner-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  max-width: 1000px;
  margin: 0 auto;
}

.partner-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 96px;
  padding: 16px 18px;
  background: #fff;
  border: 1px solid #e6ebf3;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform .3s, box-shadow .3s;
}

.partner-logo img { max-width: 100%; max-height: 64px; height: auto; display: block; }

.partner-logo:hover { transform: translateY(-4px); box-shadow: 0 14px 34px rgba(20, 61, 115, .16); }


/* ===== 联系我们 ===== */
.contact { background: var(--bg-light); }

.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; align-items: start; }

.contact-info { background: #fff; border-radius: var(--radius); padding: 34px; box-shadow: var(--shadow); }

.contact-info h3 { font-size: 20px; color: var(--primary-dark); margin-bottom: 8px; }

.contact-info p { color: var(--text-light); font-size: 14.5px; margin-bottom: 18px; }

.contact-info ul { list-style: none; }

.contact-info li { padding: 8px 0; font-size: 14.5px; color: var(--text); border-bottom: 1px dashed #e8ecf3; }

.contact-info li:last-child { border-bottom: none; }

.contact-info li span { color: var(--primary); font-weight: 600; }

.contact-form {
  background: #fff;
  border-radius: var(--radius);
  padding: 34px;
  box-shadow: var(--shadow);
}

.contact-form h3 { font-size: 20px; color: var(--primary-dark); margin-bottom: 18px; }

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #dbe2ec;
  border-radius: 8px;
  font-size: 14.5px;
  font-family: inherit;
  color: var(--text);
  margin-bottom: 14px;
  background: #fafbfe;
  transition: border-color .25s, box-shadow .25s;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(30, 86, 160, .12);
  background: #fff;
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.btn-block { width: 100%; margin-top: 4px; }

.form-tip { margin-top: 12px; font-size: 14px; color: #16a34a; text-align: center; min-height: 20px; }

/* ===== 页脚 ===== */
.site-footer { background: #0d2440; color: rgba(255, 255, 255, .7); padding: 26px 0; }

.footer-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; font-size: 14px; }

.footer-links a { color: rgba(255, 255, 255, .7); text-decoration: none; }
.footer-links a:hover { color: #fff; text-decoration: underline; }
.footer-sep { margin: 0 8px; opacity: .45; }

/* ===== 响应式 ===== */
@media (max-width: 960px) {
  .partner-grid { grid-template-columns: repeat(3, 1fr); }
  .about-cards, .feature-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 30px; }
}

@media (max-width: 768px) {
  .partner-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .nav-toggle { display: flex; }
  .header-inner { justify-content: flex-end; }

  .main-nav {
    position: fixed;
    top: 68px; left: 0; right: 0;
    flex-direction: column;
    background: #fff;
    padding: 18px 6%;
    gap: 4px;
    box-shadow: 0 12px 24px rgba(20, 61, 115, .1);
    transform: translateY(-120%);
    transition: transform .3s;
    z-index: 99;
  }

  .main-nav.open { transform: translateY(0); }

  .main-nav a { padding: 12px 4px; border-bottom: 1px solid #f0f3f8; }

  .hero { padding: 150px 0 70px; }
  .hero h1 { font-size: 30px; }
  .hero p { font-size: 15px; }
  .form-row { grid-template-columns: 1fr; }
  .footer-inner { justify-content: center; text-align: center; }
}

/* ===== 登录/注册按钮 ===== */
.header-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }

.btn-login {
  display: inline-block;
  padding: 8px 22px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
  border: 1.5px solid var(--primary);
  transition: background .25s, color .25s;
}

.btn-login:hover { background: rgba(30, 86, 160, .08); }

.btn-register {
  display: inline-block;
  padding: 8px 22px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  background: var(--accent);
  box-shadow: 0 6px 16px rgba(249, 115, 22, .3);
  transition: background .25s;
}

.btn-register:hover { background: var(--accent-dark); }

@media (max-width: 768px) {
  .header-actions { gap: 6px; }
  .btn-login, .btn-register { padding: 6px 14px; font-size: 13px; }
}
/* ===== 登录/注册页面 ===== */
.auth-page {
  background:
    radial-gradient(700px 320px at 85% 0%, rgba(249, 115, 22, .18), transparent 60%),
    linear-gradient(135deg, #0f2c55, #1e56a0);
  min-height: 100vh;
}

.auth-header { background: rgba(255, 255, 255, .06); border-bottom: 1px solid rgba(255, 255, 255, .12); }

.auth-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

.auth-brand { color: #fff; font-size: 18px; font-weight: 700; }

.auth-header-links a { color: rgba(255, 255, 255, .85); font-size: 14px; }
.auth-header-links a:hover { color: #ffb066; }

.auth-main {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
}

.auth-card {
  background: #fff;
  border-radius: 16px;
  padding: 40px 36px;
  width: 100%;
  max-width: 400px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, .25);
}

.auth-card h1 { font-size: 26px; color: var(--primary-dark); text-align: center; }

.auth-sub { text-align: center; color: var(--text-light); font-size: 14px; margin: 8px 0 24px; }

.auth-form label { display: block; font-size: 14px; font-weight: 600; color: var(--text); margin: 14px 0 6px; }

.auth-form input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #dbe2ec;
  border-radius: 8px;
  font-size: 14.5px;
  font-family: inherit;
  background: #fafbfe;
  transition: border-color .25s, box-shadow .25s;
}

.auth-form input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(30, 86, 160, .12);
  background: #fff;
}

.auth-error { min-height: 20px; color: #dc2626; font-size: 13px; margin-top: 10px; }

.auth-switch { text-align: center; margin-top: 16px; font-size: 14px; color: var(--text-light); }

.auth-footer-links { text-align: center; margin-top: 16px; font-size: 13px; color: rgba(255, 255, 255, .65); }
.auth-footer-links a { color: rgba(255, 255, 255, .65); text-decoration: none; margin: 0 6px; }
.auth-footer-links a:hover { color: #fff; text-decoration: underline; }

.agree-row { display: flex; align-items: flex-start; gap: 8px; font-size: 13px; color: #5b6b7b; margin: 16px 0 4px; line-height: 1.6; }
.agree-row input[type="checkbox"] { width: 15px; height: 15px; margin-top: 3px; flex-shrink: 0; accent-color: #2563eb; }
.agree-row a { color: #2563eb; }
.auth-switch a { color: var(--primary); font-weight: 600; }

/* ===== 已登录欢迎状态 ===== */
.user-welcome { color: var(--primary-dark); font-size: 14px; font-weight: 600; white-space: nowrap; }

.logout-link { color: var(--accent); margin-left: 8px; cursor: pointer; }
.logout-link:hover { text-decoration: underline; }
/* ===== 登录弹窗 ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(13, 36, 64, .55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-overlay[hidden] { display: none; }

.modal-card {
  background: #fff;
  border-radius: 16px;
  padding: 36px 32px 28px;
  width: 100%;
  max-width: 380px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, .3);
  position: relative;
}

.modal-card h2 { font-size: 24px; color: var(--primary-dark); text-align: center; }

.modal-sub { text-align: center; color: var(--text-light); font-size: 14px; margin: 8px 0 20px; }

.modal-close {
  position: absolute;
  top: 12px;
  right: 14px;
  background: none;
  border: none;
  font-size: 26px;
  line-height: 1;
  color: #9aa3ad;
  cursor: pointer;
}

.modal-close:hover { color: #333; }
/* ===== 首屏轮播 ===== */
.carousel { position: relative; overflow: hidden; padding: 0; }
.carousel-track { display: flex; transition: transform .6s ease; will-change: transform; }
.carousel-slide { flex: 0 0 100%; min-width: 100%; padding: 180px 0 100px; color: #fff; }
.carousel-inner { text-align: center; }
.carousel-slide h1 { font-size: 44px; font-weight: 800; letter-spacing: 1px; }
.carousel-slide h1 .accent { color: #ffb066; }
.carousel-slide p { margin: 22px auto 36px; font-size: 17px; color: rgba(255,255,255,.85); }
.carousel-slide .slide-tag { display: inline-block; margin: 0 0 14px; padding: 5px 16px; border: 1px solid rgba(255,255,255,.35); border-radius: 999px; font-size: 13px; letter-spacing: 2px; color: rgba(255,255,255,.92); background: rgba(255,255,255,.08); }

.slide-theme-blue { background: radial-gradient(900px 400px at 85% -10%, rgba(249,115,22,.18), transparent 60%), radial-gradient(800px 500px at 0% 110%, rgba(30,86,160,.25), transparent 60%), linear-gradient(135deg, #0f2c55 0%, #1e56a0 55%, #2d6cc4 100%); }
.slide-theme-teal { background: radial-gradient(900px 400px at 85% -10%, rgba(249,115,22,.2), transparent 60%), linear-gradient(135deg, #0c3b4f 0%, #126e82 55%, #1d9aa8 100%); }
.slide-theme-indigo { background: radial-gradient(900px 400px at 85% -10%, rgba(249,115,22,.18), transparent 60%), linear-gradient(135deg, #1a2a6c 0%, #27408b 55%, #4b6cb7 100%); }
.slide-theme-violet { background: radial-gradient(900px 400px at 85% -10%, rgba(249,115,22,.2), transparent 60%), linear-gradient(135deg, #3d1d5e 0%, #5b2a86 55%, #7a3db8 100%); }

.carousel-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.45); background: rgba(255,255,255,.12);
  color: #fff; font-size: 24px; line-height: 1; cursor: pointer; z-index: 5;
  display: flex; align-items: center; justify-content: center;
  transition: background .25s, transform .25s;
}
.carousel-arrow:hover { background: rgba(255,255,255,.28); }
.carousel-prev { left: 24px; }
.carousel-next { right: 24px; }

.carousel-dots { position: absolute; bottom: 26px; left: 0; right: 0; display: flex; justify-content: center; gap: 10px; z-index: 5; }
.carousel-dots button { width: 10px; height: 10px; padding: 0; border: none; border-radius: 50%; background: rgba(255,255,255,.45); cursor: pointer; transition: background .25s, transform .25s; }
.carousel-dots button.active { background: #ffb066; transform: scale(1.3); }

@media (max-width: 768px) {
  .carousel-slide { padding: 150px 0 70px; }
  .carousel-slide h1 { font-size: 30px; }
  .carousel-slide p { font-size: 15px; }
  .carousel-arrow { width: 38px; height: 38px; font-size: 20px; }
  .carousel-prev { left: 10px; }
  .carousel-next { right: 10px; }
  .carousel-dots { bottom: 18px; }
}