/* ===== 主题变量 ===== */
:root {
  --primary: #0070C0;
  --primary-dark: #14337A;
  --primary-deep: #0D2B66;
  --accent: #FFC000;
  --text: #2b3440;
  --text-muted: #6E747A;
  --bg: #ffffff;
  --bg-soft: #F5F7FA;
  --line: #E6EAF0;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(20, 51, 122, .08);
  --shadow-lg: 0 20px 50px rgba(20, 51, 122, .14);
  --font: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", "Segoe UI", "Helvetica Neue", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--text);
  line-height: 1.7;
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }
.section { padding: 88px 0; }

/* ===== 章节标题 ===== */
.section-head { text-align: center; margin-bottom: 52px; }
.section-tag {
  display: inline-block;
  color: var(--primary);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 2px;
  margin-bottom: 12px;
}
.section-title { font-size: 34px; font-weight: 700; color: var(--primary-dark); letter-spacing: 1px; }
.section-desc { color: var(--text-muted); margin-top: 14px; max-width: 640px; margin-left: auto; margin-right: auto; }
.section-head.light .section-title { color: #fff; }
.section-head.light .section-desc { color: rgba(255,255,255,.75); }

/* ===== 导航 ===== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(13, 43, 102, .0);
  transition: background .3s, box-shadow .3s;
}
.nav.scrolled { background: #fff; box-shadow: 0 2px 16px rgba(0,0,0,.08); }
.nav-inner {
  max-width: 1140px; margin: 0 auto; padding: 14px 24px;
  display: flex; align-items: center; justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-logo {
  height: 46px; width: auto; object-fit: contain;
  background: #fff; border-radius: 10px; padding: 4px;
  box-shadow: 0 2px 10px rgba(0,0,0,.12);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-name { font-size: 16px; font-weight: 700; color: #fff; letter-spacing: 1px; transition: color .3s; }
.brand-en { font-size: 11px; color: rgba(255,255,255,.7); letter-spacing: .5px; transition: color .3s; }
.nav.scrolled .brand-name { color: var(--primary-dark); }
.nav.scrolled .brand-en { color: var(--text-muted); }

.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a {
  color: rgba(255,255,255,.92); font-size: 15px; font-weight: 500;
  transition: color .25s; position: relative;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -6px; width: 0; height: 2px;
  background: var(--accent); transition: width .25s;
}
.nav-links a:hover::after { width: 100%; }
.nav.scrolled .nav-links a { color: var(--text); }
.nav-links .nav-cta {
  background: var(--accent); color: #333 !important;
  padding: 9px 20px; border-radius: 30px; font-weight: 600;
}
.nav-links .nav-cta::after { display: none; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; }
.nav-toggle span { width: 24px; height: 2px; background: #fff; transition: .3s; }
.nav.scrolled .nav-toggle span { background: var(--primary-dark); }

/* ===== 首屏 ===== */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center; justify-content: center; text-align: center;
  background: linear-gradient(135deg, #0D2B66 0%, #14337A 40%, #0070C0 100%);
  overflow: hidden;
}
.hero-overlay {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 20% 20%, rgba(255,255,255,.10) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 80%, rgba(255,192,0,.12) 0%, transparent 50%);
}
.hero-content { position: relative; z-index: 2; padding: 0 24px; }
.hero-title {
  font-size: 52px; font-weight: 700; color: #fff; letter-spacing: 4px;
  text-shadow: 0 4px 24px rgba(0,0,0,.2);
}
.hero-sub { color: rgba(255,255,255,.85); font-size: 18px; letter-spacing: 2px; margin-top: 12px; }
.hero-slogan { color: rgba(255,255,255,.7); font-size: 16px; margin-top: 22px; max-width: 560px; margin-left: auto; margin-right: auto; }
.hero-actions { margin-top: 38px; display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

.btn { display: inline-block; padding: 13px 32px; border-radius: 40px; font-size: 16px; font-weight: 600; letter-spacing: 1px; transition: .25s; }
.btn-primary { background: var(--accent); color: #333; box-shadow: 0 8px 20px rgba(255,192,0,.35); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(255,192,0,.45); }
.btn-ghost { border: 1.5px solid rgba(255,255,255,.7); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.12); }
.btn-block { width: 100%; border: none; cursor: pointer; }

.hero-scroll {
  position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%);
  color: rgba(255,255,255,.6); font-size: 13px; letter-spacing: 2px;
  animation: bounce 2s infinite;
}
@keyframes bounce { 0%,100%{transform:translate(-50%,0)} 50%{transform:translate(-50%,8px)} }

/* ===== 关于我们 ===== */
.about-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 56px; align-items: center; }
.about-text .lead { font-size: 19px; color: var(--primary-dark); font-weight: 600; margin-bottom: 18px; line-height: 1.8; }
.about-text p { color: var(--text-muted); margin-bottom: 14px; }
.about-text strong { color: var(--primary); }
.about-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.stat {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 18px; text-align: center; box-shadow: var(--shadow);
  transition: transform .25s;
}
.stat:hover { transform: translateY(-4px); }
.stat-num { font-size: 34px; font-weight: 700; color: var(--primary); line-height: 1.2; }
.stat-plus { font-size: 22px; }
.stat-label { display: block; color: var(--text-muted); font-size: 14px; margin-top: 6px; }

/* ===== 核心优势 ===== */
.advantages { background: linear-gradient(135deg, #0D2B66, #14337A); }
.adv-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.adv-card {
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--radius); padding: 36px 28px; text-align: center;
  transition: transform .25s, background .25s;
}
.adv-card:hover { transform: translateY(-6px); background: rgba(255,255,255,.1); }
.adv-icon { font-size: 40px; margin-bottom: 16px; }
.adv-card h3 { color: #fff; font-size: 18px; margin-bottom: 12px; letter-spacing: 1px; }
.adv-card p { color: rgba(255,255,255,.72); font-size: 14px; }

/* ===== 合作院校 ===== */
.school-logos {
  display: flex; flex-wrap: wrap; gap: 22px; justify-content: center;
  margin-bottom: 48px;
}
.logo-item {
  width: 130px; height: 110px; background: #fff; border: 1px solid var(--line);
  border-radius: 12px; display: flex; align-items: center; justify-content: center;
  padding: 16px; box-shadow: var(--shadow); transition: transform .25s, box-shadow .25s;
}
.logo-item:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.logo-item img { max-width: 100%; max-height: 78px; object-fit: contain; }
.school-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.school-group {
  background: var(--bg-soft); border-radius: var(--radius); padding: 28px;
  border-top: 3px solid var(--primary);
}
.school-group h3 { color: var(--primary-dark); font-size: 18px; margin-bottom: 14px; }
.school-group li { color: var(--text-muted); padding: 6px 0; border-bottom: 1px dashed var(--line); }
.school-group li:last-child { border-bottom: none; }

/* ===== 海外业务 ===== */
.biz-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.biz-card {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 36px 28px; box-shadow: var(--shadow); position: relative; overflow: hidden;
  transition: transform .25s, box-shadow .25s;
}
.biz-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.biz-num { font-size: 44px; font-weight: 700; color: var(--primary); opacity: .15; position: absolute; top: 14px; right: 20px; }
.biz-card h3 { color: var(--primary-dark); font-size: 19px; margin-bottom: 12px; }
.biz-card p { color: var(--text-muted); font-size: 15px; }

/* ===== 回国政策 ===== */
.policy { background: var(--bg-soft); }
.policy-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.policy-card {
  background: #fff; border-radius: var(--radius); padding: 30px 24px;
  border: 1px solid var(--line); box-shadow: var(--shadow); transition: transform .25s;
}
.policy-card:hover { transform: translateY(-4px); }
.policy-card h3 { color: var(--primary); font-size: 17px; margin-bottom: 12px; padding-left: 12px; border-left: 3px solid var(--accent); }
.policy-card p { color: var(--text-muted); font-size: 14px; }

/* ===== 联系我们 ===== */
.contact-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 48px; align-items: start; }
.contact-info { display: flex; flex-direction: column; gap: 26px; }
.contact-item { display: flex; align-items: flex-start; gap: 16px; }
.contact-icon { font-size: 26px; flex-shrink: 0; }
.contact-item h4 { color: var(--primary-dark); font-size: 15px; margin-bottom: 4px; }
.contact-item a, .contact-item p { color: var(--text-muted); font-size: 16px; }
.contact-item a:hover { color: var(--primary); }
.contact-person {
  display: inline-block; margin-left: 8px; padding: 1px 9px;
  font-size: 12px; color: var(--primary); background: rgba(0,112,192,.08);
  border-radius: 20px; vertical-align: middle;
}
.wechat-tag {
  display: inline-block; margin-left: 6px; padding: 1px 9px;
  font-size: 12px; color: #07C160; background: rgba(7,193,96,.10);
  border-radius: 20px; vertical-align: middle; cursor: pointer;
  transition: background .2s, color .2s;
}
.wechat-tag:hover { background: rgba(7,193,96,.22); }
.wechat-tag.copied { color: #fff; background: #07C160; }

.contact-form {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 34px; box-shadow: var(--shadow-lg);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact-form input, .contact-form textarea, .contact-form select {
  width: 100%; padding: 13px 16px; margin-bottom: 16px; font-size: 15px;
  font-family: inherit; color: var(--text); border: 1px solid var(--line); border-radius: 8px;
  background: var(--bg-soft); transition: border-color .25s, background .25s;
}
.contact-form input:focus, .contact-form textarea:focus, .contact-form select:focus {
  outline: none; border-color: var(--primary); background: #fff;
}
.contact-form textarea { resize: vertical; }
.contact-form select {
  appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 40px;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%236E747A' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center;
}
.contact-form select:invalid { color: #9AA3AC; }
.form-note { margin-top: 12px; font-size: 14px; color: var(--primary); text-align: center; }

/* ===== 页脚 ===== */
.footer { background: var(--primary-deep); color: #fff; padding: 40px 0; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.footer-brand { font-size: 18px; font-weight: 700; letter-spacing: 1px; }
.footer-en { color: rgba(255,255,255,.6); font-size: 12px; margin-top: 4px; }
.footer-copy { color: rgba(255,255,255,.55); font-size: 13px; }

/* ===== 滚动显现动画 ===== */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ===== 响应式 ===== */
@media (max-width: 900px) {
  .section { padding: 64px 0; }
  .section-title { font-size: 27px; }
  .hero-title { font-size: 34px; letter-spacing: 2px; }
  .about-grid { grid-template-columns: 1fr; gap: 36px; }
  .adv-grid, .biz-grid { grid-template-columns: 1fr; }
  .school-list { grid-template-columns: 1fr; }
  .policy-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed; top: 0; right: -260px; width: 240px; height: 100vh;
    background: #fff; flex-direction: column; justify-content: flex-start;
    padding: 80px 30px 30px; gap: 22px; box-shadow: -4px 0 20px rgba(0,0,0,.1);
    transition: right .3s;
  }
  .nav-links.open { right: 0; }
  .nav-links a { color: var(--text) !important; font-size: 17px; }
  .nav-links .nav-cta { color: #333 !important; text-align: center; }
  .policy-grid { grid-template-columns: 1fr; }
  .about-stats { grid-template-columns: 1fr 1fr; }
}
