/* ============================================================
   jishifa.com Homepage Premium Redesign v3.0
   教育招生平台 — 掌上高考风格 + 现代设计增强
   ============================================================ */

/* ===== CSS Variables ===== */
.home {
  --primary: #0d9488;
  --primary-light: #14b8a6;
  --primary-lighter: #ccfbf1;
  --cta: #F97316;
  --cta-hover: #EA580C;
  --bg: #F8FAFC;
  --surface: #FFFFFF;
  --title: #0F172A;
  --text: #475569;
  --muted: #94A3B8;
  --border: #E2E8F0;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.04);
  --shadow: 0 2px 12px rgba(0,0,0,.05);
  --shadow-lg: 0 8px 30px rgba(0,0,0,.08);
  --font: system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
}

/* ===== Base Reset for Home ===== */
.home * { box-sizing: border-box; }
.home body { margin: 0; background: var(--bg); font-family: var(--font); color: var(--text); line-height: 1.7; }
.home .container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ===== NAVIGATION ENHANCEMENT ===== */
.home .nav, .home header nav, .home .header {
  height: 68px;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0,0,0,.06);
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center;
}

/* ===== HERO — Full-Width Gradient ===== */
.home .hero, .home .hero-section {
  position: relative;
  background: linear-gradient(160deg, #134e4a 0%, #0d9488 35%, #0f766e 65%, #2dd4bf 100%);
  padding: 80px 24px 88px;
  text-align: center;
  overflow: hidden;
}
/* Hero grid texture */
.home .hero::after {
  content: "";
  position: absolute; inset: 0; pointer-events: none;
  background-image: 
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 64px 64px;
  opacity: .6;
}
/* Hero glow orbs */
.home .hero::before {
  content: "";
  position: absolute; pointer-events: none;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(45,212,191,.25) 0%, transparent 70%);
  top: -200px; left: 50%; transform: translateX(-50%);
  border-radius: 50%;
}
/* Hero content z-index */
.home .hero .container,
.home .hero h1,
.home .hero p,
.home .hero .search-wrap { position: relative; z-index: 1; }

.home .hero h1 {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 900;
  color: #fff;
  line-height: 1.15;
  letter-spacing: -2px;
  margin: 0 0 16px;
  text-shadow: 0 2px 8px rgba(0,0,0,.15);
}
.home .hero h1 span {
  background: linear-gradient(135deg, #FDE68A, #F59E0B);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.home .hero p {
  font-size: 18px;
  color: rgba(255,255,255,.78);
  max-width: 640px;
  margin: 0 auto 36px;
  line-height: 1.6;
}

/* Hero Search */
.home .hero .search-wrap {
  display: flex;
  max-width: 600px;
  margin: 0 auto;
  background: #fff;
  border-radius: 60px;
  box-shadow: 0 8px 40px rgba(0,0,0,.18);
  overflow: hidden;
  transition: box-shadow .3s, transform .3s;
}
.home .hero .search-wrap:focus-within {
  box-shadow: 0 16px 48px rgba(13,148,136,.35);
  transform: scale(1.02);
}
.home .hero .search-wrap input {
  flex: 1;
  border: none;
  padding: 18px 24px;
  font-size: 16px;
  outline: none;
  background: transparent;
  color: var(--title);
}
.home .hero .search-wrap input::placeholder { color: var(--muted); }
.home .hero .search-wrap button {
  padding: 18px 36px;
  border: none;
  background: linear-gradient(135deg, #F97316, #EA580C);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all .25s;
  white-space: nowrap;
  letter-spacing: .5px;
}
.home .hero .search-wrap button:hover {
  background: linear-gradient(135deg, #FB923C, #F97316);
  box-shadow: inset 0 0 0 3px rgba(255,255,255,.2);
}

/* ===== STATS BAR — Floating Cards ===== */
.home .stats-section {
  margin-top: -48px;
  position: relative;
  z-index: 10;
  padding: 0 24px;
}
.home .stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  max-width: 960px;
  margin: 0 auto;
}
.home .stat-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 28px 20px;
  text-align: center;
  box-shadow: 0 4px 24px rgba(0,0,0,.06);
  border: 1px solid var(--border);
  transition: all .35s cubic-bezier(.4,0,.2,1);
  position: relative;
  overflow: hidden;
}
.home .stat-card::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-light), #2dd4bf);
  opacity: 0; transition: opacity .3s;
}
.home .stat-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(0,0,0,.1);
}
.home .stat-card:hover::before { opacity: 1; }
.home .stat-num {
  font-size: 40px;
  font-weight: 900;
  color: var(--primary);
  line-height: 1;
  letter-spacing: -1px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.home .stat-label {
  font-size: 14px;
  color: var(--muted);
  margin-top: 6px;
  font-weight: 500;
}

/* ===== SECTION HEADERS ===== */
.home .section-header {
  text-align: center;
  margin-bottom: 40px;
}
.home .section-header h2 {
  font-size: clamp(24px, 3.5vw, 36px);
  font-weight: 800;
  color: var(--title);
  margin: 0 0 10px;
  letter-spacing: -1px;
}
.home .section-header p {
  font-size: 16px;
  color: var(--muted);
  max-width: 500px;
  margin: 0 auto;
}
.home .section-link {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  color: var(--primary-light);
  text-decoration: none;
  transition: all .2s;
  margin-top: 8px;
}
.home .section-link:hover {
  color: var(--primary);
  transform: translateX(4px);
}

/* ===== SCHOOL CARDS — 4-Column Grid ===== */
.home .schools-section,
.home .majors-section,
.home .news-section {
  padding: 64px 24px;
}
.home .schools-section { background: var(--surface); }
.home .school-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.home .school-card {
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: all .35s cubic-bezier(.4,0,.2,1);
  text-decoration: none;
  display: block;
}
.home .school-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-lighter);
}
/* School card image */
.home .school-img {
  height: 140px;
  background: linear-gradient(135deg, #f0fdfa, #ccfbf1);
  display: flex; align-items: center; justify-content: center;
  position: relative;
  overflow: hidden;
}
.home .school-img::after {
  content: "";
  position: absolute; bottom: 0; left: 0; right: 0;
  height: 40px;
  background: linear-gradient(transparent, rgba(0,0,0,.03));
}
.home .school-img .school-icon {
  font-size: 48px;
  opacity: .3;
}
.home .school-badge {
  position: absolute; top: 10px; right: 10px;
  background: linear-gradient(135deg, #10B981, #059669);
  color: #fff;
  font-size: 11px; font-weight: 600;
  padding: 4px 10px; border-radius: 20px;
  z-index: 1;
}
.home .school-info {
  padding: 18px;
}
.home .school-info h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--title);
  margin: 0 0 6px;
  line-height: 1.3;
}
.home .school-info .school-meta {
  font-size: 13px;
  color: var(--muted);
  display: flex; align-items: center; gap: 8px;
}
.home .school-info .school-tags {
  display: flex; gap: 6px; margin-top: 10px; flex-wrap: wrap;
}
.home .school-info .school-tags span {
  font-size: 11px; font-weight: 600;
  padding: 3px 10px;
  border-radius: 20px;
  background: var(--primary-lighter);
  color: var(--primary);
}

/* ===== MAJOR CARDS ===== */
.home .major-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.home .major-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 24px 20px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: all .3s;
  text-decoration: none;
  display: flex; align-items: flex-start; gap: 14px;
}
.home .major-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-lighter);
}
.home .major-card .major-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: var(--primary-lighter);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}
.home .major-card h3 {
  font-size: 16px; font-weight: 700;
  color: var(--title); margin: 0 0 4px;
}
.home .major-card .major-desc {
  font-size: 13px; color: var(--muted);
  line-height: 1.5;
}

/* ===== PROVINCE GRID ===== */
.home .province-section { padding: 64px 24px; }
.home .province-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
  max-width: 960px; margin: 0 auto;
}
.home .province-grid a {
  display: flex; align-items: center; justify-content: center;
  padding: 16px 10px;
  background: var(--surface);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  font-size: 15px; font-weight: 600;
  color: var(--text);
  text-decoration: none;
  transition: all .25s;
  gap: 6px;
}
.home .province-grid a:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(13,148,136,.2);
}

/* ===== NEWS SECTION ===== */
.home .news-section { background: var(--surface); }
.home .news-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.home .news-card {
  display: flex; gap: 16px;
  background: var(--bg);
  border-radius: var(--radius);
  padding: 20px;
  border: 1px solid var(--border);
  transition: all .25s;
  text-decoration: none;
}
.home .news-card:hover {
  background: var(--surface);
  box-shadow: var(--shadow);
  border-color: var(--primary-lighter);
}
.home .news-card .news-tag {
  display: inline-block;
  font-size: 11px; font-weight: 700;
  padding: 3px 10px; border-radius: 6px;
  background: var(--primary-lighter);
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: 8px;
  white-space: nowrap;
}
.home .news-card h3 {
  font-size: 16px; font-weight: 700;
  color: var(--title); margin: 0 0 6px;
  line-height: 1.4;
}
.home .news-card .news-date {
  font-size: 12px; color: var(--muted);
}

/* ===== CTA BANNER — Gradient Bridge to Footer ===== */
.home .cta-section {
  background: linear-gradient(180deg, #f0fdfa 0%, #ccfbf1 30%, #1E293B 100%);
  padding: 80px 24px 100px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.home .cta-section::before {
  content: "";
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 60% 40% at 50% 30%, rgba(13,148,136,.06) 0%, transparent 70%);
}
.home .cta-section h2 {
  font-size: clamp(24px, 4vw, 38px);
  font-weight: 800;
  color: #0F172A;
  position: relative; z-index: 1;
  margin: 0 0 12px;
}
.home .cta-section p {
  font-size: 17px;
  color: #64748B;
  position: relative; z-index: 1;
  margin-bottom: 32px;
}
.home .cta-section .btn-primary {
  display: inline-block;
  padding: 16px 48px;
  background: linear-gradient(135deg, #F97316, #EA580C);
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  border-radius: 60px;
  text-decoration: none;
  box-shadow: 0 8px 30px rgba(249,115,22,.35);
  transition: all .3s;
  position: relative; z-index: 1;
  letter-spacing: .5px;
}
.home .cta-section .btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 40px rgba(249,115,22,.45);
}

/* ===== FOOTER ENHANCEMENT ===== */
.home .footer, .home .site-footer {
  background: #0F172A;
  color: #CBD5E1;
  padding: 60px 24px 0;
}
.home .footer .container, .home .site-footer .container {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
}
.home .footer h4, .home .site-footer h4 {
  color: #fff;
  font-size: 16px; font-weight: 700;
  margin-bottom: 16px;
}
.home .footer a, .home .site-footer a {
  color: #94A3B8;
  text-decoration: none; font-size: 14px;
  display: block; padding: 4px 0;
  transition: color .2s;
}
.home .footer a:hover, .home .site-footer a:hover { color: #fff; }
.home .footer-bottom {
  margin-top: 40px; padding: 20px 24px;
  border-top: 1px solid rgba(255,255,255,.06);
  text-align: center; font-size: 13px;
  color: #64748B;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .home .school-grid { grid-template-columns: repeat(2, 1fr); }
  .home .major-grid { grid-template-columns: repeat(2, 1fr); }
  .home .province-grid { grid-template-columns: repeat(3, 1fr); }
  .home .news-grid { grid-template-columns: 1fr; }
  .home .footer .container { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .home .hero { padding: 48px 16px 56px; }
  .home .hero h1 { font-size: 28px; }
  .home .hero p { font-size: 15px; }
  .home .hero .search-wrap { flex-direction: column; border-radius: var(--radius); }
  .home .hero .search-wrap button { border-radius: 0 0 var(--radius) var(--radius); padding: 14px; }
  .home .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .home .stats-section { margin-top: -32px; }
  .home .stat-card { padding: 20px 14px; }
  .home .stat-num { font-size: 30px; }
  .home .school-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .home .school-img { height: 100px; }
  .home .major-grid { grid-template-columns: 1fr; }
  .home .province-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .home .province-grid a { padding: 12px 6px; font-size: 13px; }
  .home .news-grid { grid-template-columns: 1fr; }
  .home .schools-section, .home .majors-section, 
  .home .news-section, .home .province-section { padding: 40px 16px; }
  .home .footer .container { grid-template-columns: 1fr; }
}
