/* ===== Reset & Base ===== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #1a365d;
  --primary-light: #2b6cb0;
  --accent: #ed8936;
  --accent-hover: #dd6b20;
  --bg-white: #ffffff;
  --bg-light: #f7fafc;
  --bg-dark: #1a365d;
  --text-dark: #2d3748;
  --text-light: #718096;
  --text-white: #ffffff;
  --border: #e2e8f0;
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);
  --radius: 8px;
  --max-width: 1200px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Microsoft YaHei', sans-serif;
  color: var(--text-dark);
  line-height: 1.6;
  background: var(--bg-white);
}

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

ul {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== Header / Nav ===== */
.header {
  background: var(--bg-white);
  box-shadow: 0 2px 4px rgba(0,0,0,0.06);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-icon {
  width: 42px;
  height: 42px;
  background: var(--primary);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-white);
  font-weight: 700;
  font-size: 18px;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.logo-text .en {
  font-size: 15px;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.5px;
}

.logo-text .cn {
  font-size: 13px;
  color: var(--text-light);
}

.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
}

.nav-links a {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-dark);
  transition: color 0.2s;
  position: relative;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary-light);
}

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--primary-light);
  border-radius: 1px;
}

.nav-cta {
  background: var(--accent) !important;
  color: var(--text-white) !important;
  padding: 8px 20px;
  border-radius: 6px;
  font-weight: 600 !important;
  transition: background 0.2s !important;
}

.nav-cta:hover {
  background: var(--accent-hover) !important;
}

.nav-cta::after {
  display: none !important;
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 5px;
  background: none;
  border: none;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-dark);
  border-radius: 2px;
  transition: 0.3s;
}

/* ===== Hero Section ===== */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: var(--text-white);
  padding: 100px 0 80px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: rgba(255,255,255,0.05);
  border-radius: 50%;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: 42px;
  font-weight: 800;
  margin-bottom: 16px;
  line-height: 1.3;
}

.hero h1 .highlight {
  color: var(--accent);
}

.hero p {
  font-size: 18px;
  opacity: 0.9;
  max-width: 560px;
  margin-bottom: 32px;
  line-height: 1.8;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
  text-align: center;
}

.btn-primary {
  background: var(--accent);
  color: var(--text-white);
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--text-white);
  border: 2px solid rgba(255,255,255,0.4);
}

.btn-outline:hover {
  border-color: #fff;
  background: rgba(255,255,255,0.1);
}

/* ===== Section Common ===== */
.section {
  padding: 80px 0;
}

.section-alt {
  background: var(--bg-light);
}

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

.section-title h2 {
  font-size: 32px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
}

.section-title p {
  font-size: 16px;
  color: var(--text-light);
}

/* ===== Service Cards ===== */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.card {
  background: var(--bg-white);
  border-radius: var(--radius);
  padding: 32px 24px;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
  border: 1px solid var(--border);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.card-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  margin-bottom: 16px;
}

.card h3 {
  font-size: 20px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 8px;
}

.card p {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.7;
}

/* ===== Stats / Why Us ===== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
  text-align: center;
}

.stat-item {
  padding: 24px;
}

.stat-number {
  font-size: 42px;
  font-weight: 800;
  color: var(--primary-light);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 15px;
  color: var(--text-light);
}

/* ===== Service Detail (services.html) ===== */
.service-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  margin-bottom: 64px;
}

.service-detail.reverse {
  direction: rtl;
}

.service-detail.reverse > * {
  direction: ltr;
}

.service-detail-img {
  background: linear-gradient(135deg, var(--bg-light) 0%, #e2e8f0 100%);
  border-radius: var(--radius);
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 64px;
}

.service-detail-content h3 {
  font-size: 26px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 12px;
}

.service-detail-content p {
  color: var(--text-light);
  margin-bottom: 16px;
  line-height: 1.8;
}

.service-detail-content ul {
  list-style: none;
}

.service-detail-content ul li {
  padding: 6px 0;
  padding-left: 24px;
  position: relative;
  color: var(--text-dark);
  font-size: 15px;
}

.service-detail-content ul li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--primary-light);
  font-weight: 700;
}

/* ===== Process Steps ===== */
.process-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  margin-top: 32px;
}

.step {
  text-align: center;
  padding: 32px 20px;
  position: relative;
}

.step-number {
  width: 48px;
  height: 48px;
  background: var(--primary);
  color: var(--text-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
  margin: 0 auto 16px;
}

.step h4 {
  font-size: 17px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 8px;
}

.step p {
  font-size: 14px;
  color: var(--text-light);
}

/* ===== Universities Grid ===== */
.uni-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
}

.uni-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  transition: box-shadow 0.2s;
}

.uni-card:hover {
  box-shadow: var(--shadow);
}

.uni-card .uni-icon {
  font-size: 36px;
  margin-bottom: 12px;
}

.uni-card h4 {
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 4px;
}

.uni-card p {
  font-size: 12px;
  color: var(--text-light);
}

/* ===== About Page ===== */
.about-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.about-intro-img {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  border-radius: var(--radius);
  height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 80px;
}

.about-intro-text h2 {
  font-size: 28px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 16px;
}

.about-intro-text p {
  color: var(--text-light);
  line-height: 1.8;
  margin-bottom: 12px;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.value-card {
  text-align: center;
  padding: 32px 24px;
  background: var(--bg-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.value-icon {
  font-size: 40px;
  margin-bottom: 16px;
}

.value-card h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 8px;
}

.value-card p {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.7;
}

.qualification-box {
  background: var(--bg-white);
  border: 2px solid var(--primary);
  border-radius: var(--radius);
  padding: 32px;
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.qualification-box h3 {
  color: var(--primary);
  font-size: 20px;
  margin-bottom: 16px;
}

.qualification-box p {
  color: var(--text-dark);
  font-size: 15px;
  line-height: 1.8;
}

/* ===== Contact Page ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

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

.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 15px;
  font-family: inherit;
  margin-bottom: 20px;
  transition: border-color 0.2s;
  background: var(--bg-white);
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  outline: none;
  border-color: var(--primary-light);
  box-shadow: 0 0 0 3px rgba(43, 108, 176, 0.1);
}

.contact-form textarea {
  height: 120px;
  resize: vertical;
}

.contact-form .btn {
  width: 100%;
}

.contact-info-card {
  background: var(--bg-light);
  border-radius: var(--radius);
  padding: 32px;
}

.contact-info-card h3 {
  font-size: 22px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 24px;
}

.contact-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 24px;
}

.contact-item-icon {
  width: 44px;
  height: 44px;
  background: var(--primary);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.contact-item h4 {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 4px;
}

.contact-item p {
  font-size: 14px;
  color: var(--text-light);
}

.wechat-placeholder {
  margin-top: 24px;
  padding: 24px;
  background: var(--bg-white);
  border-radius: var(--radius);
  text-align: center;
  border: 2px dashed var(--border);
}

.wechat-placeholder p {
  font-size: 14px;
  color: var(--text-light);
  margin-top: 8px;
}

/* ===== Page Banner ===== */
.page-banner {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: var(--text-white);
  padding: 60px 0;
  text-align: center;
}

.page-banner h1 {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 8px;
}

.page-banner p {
  font-size: 16px;
  opacity: 0.85;
}

/* ===== Footer ===== */
.footer {
  background: var(--bg-dark);
  color: var(--text-white);
  padding: 48px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 32px;
}

.footer-brand .logo-text .en {
  color: var(--text-white);
}

.footer-brand .logo-text .cn {
  color: rgba(255,255,255,0.6);
}

.footer-brand p {
  margin-top: 12px;
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  line-height: 1.7;
}

.footer h4 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 16px;
}

.footer-links a {
  display: block;
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  padding: 4px 0;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--text-white);
}

.footer-contact p {
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  padding: 4px 0;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 20px;
  text-align: center;
  font-size: 13px;
  color: rgba(255,255,255,0.4);
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--bg-white);
    flex-direction: column;
    padding: 20px;
    gap: 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  }

  .nav-links.open {
    display: flex;
  }

  .hero {
    padding: 60px 0 50px;
  }

  .hero h1 {
    font-size: 28px;
  }

  .hero p {
    font-size: 16px;
  }

  .section {
    padding: 50px 0;
  }

  .section-title h2 {
    font-size: 24px;
  }

  .service-detail {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .service-detail.reverse {
    direction: ltr;
  }

  .about-intro {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .page-banner h1 {
    font-size: 28px;
  }

  .stat-number {
    font-size: 32px;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 24px;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }
}
