:root {
  --primary: #116dc3;
  --primary-dark: #0b4f91;
  --text: #111827;
  --muted: #667085;
  --line: #eeeeee;
  --soft: #fafbfc;
  --white: #ffffff;
  --shadow: 0 8px 22px rgba(17, 109, 195, .08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  background: #fff;
  font-family: "Microsoft Yahei", Arial, Helvetica, sans-serif;
  line-height: 1.65;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
.container { width: min(1200px, calc(100% - 32px)); margin: 0 auto; }

.header { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.header-main { height: 96px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: flex; align-items: center; gap: 14px; min-width: 0; }
.brand img { width: 64px; height: 64px; object-fit: contain; }
.brand-title { margin: 0; font-size: 24px; font-weight: 800; color: #000; }
.brand-subtitle { margin: 2px 0 0; font-size: 13px; color: var(--muted); }
.header-actions { display: flex; align-items: center; gap: 18px; }
.search { display: grid; grid-template-columns: minmax(0, 1fr) 72px; width: 360px; height: 42px; padding: 0; border: 0; border-radius: 8px; overflow: hidden; background: #fff; box-shadow: 0 0 0 1px #c7ddf3, 0 4px 12px rgba(17, 109, 195, .06); }
.search:focus-within { box-shadow: 0 0 0 1px var(--primary), 0 0 0 4px rgba(17, 109, 195, .1); }
.search-input { appearance: none; -webkit-appearance: none; display: block; width: 100%; min-width: 0; height: 42px; margin: 0; border: 0; border-radius: 0; padding: 0 13px; outline: 0; background: #fff; color: var(--text); font: inherit; font-size: 14px; line-height: 42px; }
.search-button { appearance: none; -webkit-appearance: none; display: flex; align-items: center; justify-content: center; width: 72px; height: 42px; margin: 0; border: 0; border-radius: 0; padding: 0; background: var(--primary); color: #fff; cursor: pointer; font: inherit; font-size: 14px; font-weight: 800; line-height: 1; }
.search-button:hover { background: var(--primary-dark); }
.location { font-size: 14px; color: #333; }
.location strong { color: var(--primary); margin-right: 5px; }
.mobile-menu { display: none; border: 1px solid var(--primary); background: #fff; color: var(--primary); border-radius: 4px; padding: 7px 12px; }
.nav { display: flex; align-items: center; justify-content: flex-start; height: 48px; }
.nav a { width: 150px; text-align: center; font-weight: 700; color: #0a0a0a; padding-bottom: 12px; }
.nav a:hover, .nav a.active { color: var(--primary); border-bottom: 2px solid var(--primary); }

.hero { background: #f3f8ff; }
.platform-hero { background: linear-gradient(120deg, #eef7ff 0%, #f7fbff 52%, #ffffff 100%); }
.hero-grid { display: grid; grid-template-columns: 1fr 360px; gap: 40px; padding: 26px 0 30px; align-items: start; }
.platform-copy { min-height: 356px; display: flex; flex-direction: column; justify-content: center; padding: 38px 0; }
.platform-copy h1 { margin: 0; max-width: 720px; color: #061a33; font-size: 42px; line-height: 1.18; font-weight: 900; }
.platform-copy p { max-width: 680px; margin: 18px 0 0; color: #344054; font-size: 17px; }
.eyebrow { margin: 0 0 10px !important; color: var(--primary) !important; font-size: 13px !important; font-weight: 900; text-transform: uppercase; letter-spacing: 0; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.slider { height: 356px; border-radius: 10px; overflow: hidden; position: relative; background: #dbeafe; box-shadow: var(--shadow); }
.slider.single { box-shadow: var(--shadow); }
.slide { position: absolute; inset: 0; opacity: 0; transition: opacity .25s ease; background: center/cover no-repeat; }
.slide.active { opacity: 1; }
.slide-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.55), rgba(0,0,0,.08)); display: flex; align-items: center; }
.slide-content { color: #fff; width: min(620px, 80%); margin-left: 42px; }
.slide-content h1 { margin: 0; font-size: 38px; line-height: 1.2; font-weight: 900; }
.slide-content p { margin: 14px 0 22px; font-size: 17px; }
.dots { position: absolute; left: 42px; bottom: 22px; display: flex; gap: 8px; }
.dots button { width: 30px; height: 4px; border: 0; border-radius: 99px; background: rgba(255,255,255,.55); cursor: pointer; }
.dots button.active { background: #fff; }
.button-primary, .button-ghost { display: inline-flex; align-items: center; justify-content: center; height: 42px; padding: 0 20px; border-radius: 6px; font-weight: 800; }
.button-primary { background: var(--primary); color: #fff; }
.button-ghost { background: #fff; color: var(--primary); border: 1px solid var(--primary); }

.consult-card { background: #fff; border-radius: 10px; border: 1px solid var(--line); padding: 22px; box-shadow: var(--shadow); }
.consult-card h2 { margin: 0 0 8px; font-size: 22px; color: #000; }
.consult-card p { margin: 0 0 16px; color: var(--muted); font-size: 14px; }
.form-row { display: grid; gap: 10px; margin-bottom: 12px; }
.form-row input, .form-row select, .form-row textarea { width: 100%; border: 1px solid #d0d5dd; border-radius: 8px; padding: 12px 13px; font: inherit; background: #fff; outline: 0; transition: border-color .16s ease, box-shadow .16s ease, background .16s ease; }
.form-row input, .form-row select { min-height: 46px; }
.form-row textarea { min-height: 96px; resize: vertical; }
.form-row input:focus, .form-row select:focus, .form-row textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(17, 109, 195, .1); }
.form-row input.is-invalid, .form-row select.is-invalid, .form-row textarea.is-invalid { border-color: #e5484d; background: #fffafa; box-shadow: 0 0 0 3px rgba(229, 72, 77, .08); }
.form-message { min-height: 24px; margin: 8px 0 0; color: var(--primary); font-weight: 700; font-size: 14px; }
.consult-card .button-primary { width: 100%; height: 46px; border: 0; cursor: pointer; }
.consult-card button:disabled { opacity: .65; cursor: not-allowed; }

.main { display: grid; grid-template-columns: 800px 360px; gap: 40px; padding: 24px 0 36px; align-items: start; }
.section { margin-bottom: 28px; }
.section-title { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.section-title h2 { margin: 0; font-size: 22px; color: #000; font-weight: 900; }
.section-title a { color: var(--primary); font-weight: 800; font-size: 14px; }
.search-summary { margin: 0 0 16px; color: var(--primary); font-weight: 800; }
.search-summary.empty { color: #e5484d; }
.panel { border: 1px solid var(--line); border-radius: 10px; background: #fff; padding: 21px; }
.school-info { display: grid; grid-template-columns: 255px 1fr; gap: 24px; align-items: start; }
.school-info img { width: 255px; height: 164px; border-radius: 10px; object-fit: cover; background: #f0f4f8; }
.info-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; color: #000; }
.info-list li { padding-left: 26px; position: relative; }
.info-list li:before { content: ""; position: absolute; left: 0; top: 10px; width: 8px; height: 8px; border-radius: 50%; background: var(--primary); }
.school-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.school-card { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: #fff; transition: .2s ease; }
.school-card:hover { transform: translateY(-3px); box-shadow: 0 10px 20px rgba(17, 109, 195, .1); }
.school-poster { display: block; height: 170px; background: #eef4fb; overflow: hidden; }
.school-poster img { width: 100%; height: 100%; object-fit: cover; transition: transform .2s ease; }
.school-card:hover .school-poster img { transform: scale(1.03); }
.school-card-body { padding: 17px; }
.school-meta { color: var(--primary); font-size: 13px; font-weight: 900; }
.school-card h3 { margin: 6px 0 8px; color: #000; font-size: 20px; line-height: 1.35; }
.school-card p { margin: 0; color: var(--muted); font-size: 14px; min-height: 68px; }
.school-contact { display: grid; gap: 4px; margin-top: 12px; color: #334155; font-size: 13px; font-weight: 800; }
.school-contact a { color: var(--primary); overflow-wrap: anywhere; }
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; }
.tag-list span { display: inline-flex; align-items: center; height: 26px; padding: 0 9px; border-radius: 4px; background: #eef6ff; color: var(--primary); font-size: 12px; font-weight: 800; }
.more-link { color: var(--primary); font-weight: 900; font-size: 14px; }
.major-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.major-card { border: 1px solid var(--line); border-radius: 10px; padding: 18px; background: var(--soft); min-height: 128px; }
.major-card strong { display: block; color: #000; font-size: 18px; margin-bottom: 8px; }
.major-card span { color: var(--primary); font-size: 13px; font-weight: 800; }
.major-card p { margin: 8px 0 0; color: var(--muted); font-size: 14px; }
.news-card { border: 1px solid var(--line); border-radius: 10px; padding: 20px; display: grid; grid-template-columns: 58px 1fr; gap: 15px; margin-bottom: 16px; transition: .2s ease; }
.news-card:hover { transform: translateY(-3px); box-shadow: 0 8px 16px rgba(0,0,0,.08); }
.date { width: 54px; height: 54px; background: var(--primary); color: #fff; border-radius: 8px; display: grid; place-items: center; line-height: 1.1; font-weight: 800; font-size: 13px; }
.news-card h3 { margin: 0 0 5px; font-size: 18px; color: #000; }
.news-card p { margin: 0; color: var(--muted); font-size: 14px; }

.side-card { border: 1px solid var(--line); border-radius: 10px; background: #fff; padding: 18px; margin-bottom: 20px; }
.side-card h3 { margin: 0 0 12px; font-size: 20px; color: #000; }
.side-card p { overflow-wrap: anywhere; }
.contact-card a { color: var(--primary); font-weight: 800; }
.rank-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.rank-list li { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rank-list span { display: inline-grid; place-items: center; width: 22px; height: 22px; margin-right: 9px; border-radius: 4px; background: #eef0fa; color: #999; font-size: 12px; }
.rank-list li:nth-child(-n+3) span { background: var(--primary); color: #fff; }
.tel-box { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; background: var(--soft); border: 1px solid var(--line); border-radius: 10px; padding: 18px; }
.tel-box a { height: 44px; border-radius: 6px; background: var(--primary); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; }

.page-hero { padding: 42px 0; background: linear-gradient(120deg, #0f5fa9, #1477e7); color: #fff; }
.page-hero h1 { margin: 0; font-size: 34px; }
.page-hero p { max-width: 760px; margin: 8px 0 0; color: rgba(255,255,255,.9); }
.page-content { padding: 28px 0 40px; }
.compat-panel { max-width: 760px; }
.compat-panel p { margin-top: 0; color: var(--muted); }
.plan-table { width: 100%; border-collapse: collapse; }
.plan-table th, .plan-table td { border: 1px solid var(--line); padding: 12px; text-align: left; }
.plan-table th { background: #eef6ff; color: #000; }

.footer { background: #fafafa; border-top: 1px solid var(--line); padding: 26px 0 18px; }
.footer-grid { display: grid; grid-template-columns: 1fr 160px; gap: 28px; align-items: start; }
.footer h3 { margin: 0 0 8px; font-size: 20px; }
.footer p { margin: 4px 0; color: #333; font-size: 14px; }
.qr { width: 120px; height: 120px; border: 1px solid var(--line); border-radius: 8px; background: #fff; padding: 8px; }
.copyright { text-align: center; margin-top: 18px; color: #666; font-size: 13px; }
.float-actions { position: fixed; right: 24px; bottom: 22%; z-index: 10; display: grid; gap: 10px; }
.float-actions a { min-width: 104px; height: 42px; border-radius: 999px; background: #fff; color: var(--primary); border: 1px solid #c7ddf3; display: inline-flex; align-items: center; justify-content: center; gap: 6px; text-align: center; font-size: 14px; font-weight: 900; box-shadow: 0 10px 24px rgba(15, 95, 169, .14); }
.float-actions a:first-child { background: var(--primary); color: #fff; border-color: var(--primary); }
.float-actions a:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(15, 95, 169, .2); }
.float-actions a:first-child:before { content: "✎"; font-size: 13px; }
.float-actions a:last-child:before { content: "⌕"; font-size: 14px; }

@media (max-width: 900px) {
  .header-main { height: auto; padding: 12px 0; }
  .brand img { width: 48px; height: 48px; }
  .brand-title { font-size: 18px; }
  .header-actions { display: none; }
  .mobile-menu { display: inline-flex; }
  .nav { display: none; height: auto; flex-direction: column; align-items: stretch; }
  .nav.open { display: flex; }
  .nav a { width: 100%; text-align: left; padding: 12px 0; border-top: 1px solid var(--line); }
  .hero-grid, .main, .footer-grid, .school-info { grid-template-columns: 1fr; }
  .platform-copy { min-height: auto; padding: 20px 0 0; }
  .platform-copy h1 { font-size: 30px; }
  .platform-copy p { font-size: 15px; }
  .slider { height: 360px; }
  .slide-content { margin-left: 24px; width: calc(100% - 48px); }
  .slide-content h1 { font-size: 28px; }
  .main { gap: 10px; }
  .school-grid, .major-grid { grid-template-columns: 1fr; }
  .school-card p { min-height: 0; }
  .tel-box { grid-template-columns: 1fr; }
  .float-actions { left: 12px; right: 12px; bottom: 12px; grid-template-columns: repeat(2, 1fr); }
  .float-actions a { min-width: 0; width: auto; height: 44px; }
  body { padding-bottom: 66px; }
}
