/* =========================================================
   四川昭途成人考试资讯网 · 清新主题 (qingxin)
   简单 / 清新 / 轻卡片化设计
   ========================================================= */

:root {
  --brand: #12B39B;
  --brand-dark: #0D8F7C;
  --brand-deep: #0A6E60;
  --brand-light: #E6F7F2;
  --brand-soft: #F3FBF8;
  --accent: #FF9F45;
  --accent-light: #FFF3E5;
  --ink: #1C2B28;
  --text: #3D4F4B;
  --muted: #7C8F8A;
  --line: #E4EEEB;
  --bg: #F6FAF9;
  --card: #FFFFFF;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 6px 24px rgba(18, 179, 155, .09);
  --shadow-hover: 0 10px 32px rgba(18, 179, 155, .16);
  --container: 1200px;
  --font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", -apple-system, "Segoe UI", sans-serif;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.75;
  color: var(--text);
  background: var(--bg);
  min-width: 320px;
}

img { max-width: 100%; border: 0; vertical-align: middle; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--brand); }

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

::selection { background: var(--brand); color: #fff; }

/* ---------- 通用节标题 ---------- */
.section { padding: 42px 0 8px; }
.section-head {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 22px;
}
.section-head .sh-title {
  font-size: 24px; font-weight: 700; color: var(--ink); letter-spacing: .5px;
  position: relative; padding-left: 16px;
}
.section-head .sh-title::before {
  content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 6px; height: 22px; border-radius: 3px;
  background: linear-gradient(180deg, var(--brand), var(--brand-dark));
}
.section-head .sh-sub { color: var(--muted); font-size: 13px; margin-left: 14px; }
.section-head .sh-more {
  font-size: 14px; color: var(--muted); white-space: nowrap;
  display: inline-flex; align-items: center; gap: 4px;
}
.section-head .sh-more:hover { color: var(--brand); }
.section-head .sh-more::after { content: "›"; font-size: 16px; line-height: 1; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 10px 26px; border-radius: 999px; border: 0; cursor: pointer;
  font-size: 15px; font-family: inherit; line-height: 1.5;
  background: var(--brand); color: #fff;
  transition: all .2s ease;
}
.btn:hover { background: var(--brand-dark); color: #fff; box-shadow: var(--shadow-hover); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--brand); box-shadow: inset 0 0 0 1.5px var(--brand); }
.btn-ghost:hover { background: var(--brand-light); color: var(--brand-dark); box-shadow: none; }
.btn-accent { background: var(--accent); }
.btn-accent:hover { background: #F28E2E; }

.tag {
  display: inline-block; padding: 2px 10px; border-radius: 999px;
  font-size: 12px; line-height: 1.7; background: var(--brand-light); color: var(--brand-dark);
}

/* =========================================================
   顶部欢迎条
   ========================================================= */
.topbar { background: var(--brand-deep); color: #BFE6DE; font-size: 13px; }
.topbar .container { display: flex; align-items: center; justify-content: space-between; height: 34px; }
.topbar a { color: #DFF4EE; margin-left: 18px; }
.topbar a:hover { color: #fff; }

/* =========================================================
   页头
   ========================================================= */
.header { background: #fff; }
.header-main { display: flex; align-items: center; gap: 40px; padding: 18px 0; }
.logo img { height: 52px; width: auto; display: block; }
.logo { flex-shrink: 0; }

.search-box { flex: 1; max-width: 460px; }
.search-box form { display: flex; background: var(--brand-soft); border: 1.5px solid var(--brand-light); border-radius: 999px; overflow: hidden; transition: border-color .2s; }
.search-box form:focus-within { border-color: var(--brand); }
.search-box input[type="text"] {
  flex: 1; border: 0; outline: 0; background: transparent;
  padding: 10px 20px; font-size: 14px; color: var(--ink); font-family: inherit;
}
.search-box input[type="text"]::placeholder { color: #A9BCB7; }
.search-box button {
  border: 0; cursor: pointer; padding: 0 24px; font-size: 14px; color: #fff;
  background: var(--brand); font-family: inherit; transition: background .2s;
}
.search-box button:hover { background: var(--brand-dark); }
.search-keys { margin-top: 8px; font-size: 12px; color: var(--muted); }
.search-keys a { margin-left: 10px; color: var(--muted); }
.search-keys a:hover { color: var(--brand); }

.header-cta { margin-left: auto; flex-shrink: 0; display: flex; gap: 12px; }

/* 导航 */
.nav-bar { border-top: 1px solid var(--line); }
.nav-bar > .container > ul { display: flex; }
.nav-bar li { position: relative; }
.nav-bar li > a {
  display: block; padding: 0 26px; height: 52px; line-height: 52px;
  font-size: 16px; color: var(--ink); position: relative; white-space: nowrap;
}
.nav-bar li > a::after {
  content: ""; position: absolute; left: 50%; bottom: 0; transform: translateX(-50%) scaleX(0);
  width: 28px; height: 3px; border-radius: 2px; background: var(--brand);
  transition: transform .2s ease;
}
.nav-bar li:hover > a, .nav-bar li.on > a { color: var(--brand); }
.nav-bar li:hover > a::after, .nav-bar li.on > a::after { transform: translateX(-50%) scaleX(1); }

.nav-bar li .submenu {
  position: absolute; left: 50%; top: 100%; transform: translateX(-50%) translateY(8px);
  min-width: 148px; background: #fff; border-radius: 0 0 12px 12px;
  box-shadow: 0 14px 34px rgba(28, 43, 40, .12); padding: 8px 0;
  opacity: 0; visibility: hidden; transition: all .22s ease; z-index: 90;
}
.nav-bar li:hover .submenu { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.nav-bar li .submenu a {
  display: block; padding: 9px 22px; font-size: 14px; color: var(--text); text-align: center; white-space: nowrap;
}
.nav-bar li .submenu a:hover { background: var(--brand-soft); color: var(--brand); }

/* 移动端导航按钮 */
.nav-toggle { display: none; }

/* =========================================================
   Hero 首屏
   ========================================================= */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(720px 340px at 88% -10%, rgba(47, 217, 182, .28), transparent 60%),
    radial-gradient(560px 300px at -6% 110%, rgba(18, 179, 155, .18), transparent 60%),
    linear-gradient(180deg, #F0FAF7 0%, #F6FAF9 100%);
  padding: 58px 0 54px;
}
.hero::before, .hero::after {
  content: ""; position: absolute; border-radius: 50%; pointer-events: none;
}
.hero::before { width: 220px; height: 220px; right: 6%; bottom: -90px; background: rgba(18, 179, 155, .08); }
.hero::after { width: 120px; height: 120px; right: 16%; top: 20px; background: rgba(255, 159, 69, .12); }

.hero-inner { position: relative; z-index: 1; text-align: center; }
.hero h1 { font-size: 34px; color: var(--ink); letter-spacing: 2px; font-weight: 700; }
.hero h1 .hl { color: var(--brand); }
.hero p.sub { margin-top: 12px; color: var(--muted); font-size: 15px; letter-spacing: 1px; }

.hero-search { max-width: 620px; margin: 26px auto 0; }
.hero-search form {
  display: flex; background: #fff; border-radius: 999px; padding: 6px;
  box-shadow: 0 12px 36px rgba(18, 179, 155, .16);
}
.hero-search input[type="text"] {
  flex: 1; border: 0; outline: 0; padding: 10px 22px; font-size: 15px;
  color: var(--ink); background: transparent; font-family: inherit;
}
.hero-search button {
  border: 0; cursor: pointer; border-radius: 999px; padding: 0 34px;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  color: #fff; font-size: 15px; font-family: inherit; transition: opacity .2s;
}
.hero-search button:hover { opacity: .9; }

.hero-quick { margin-top: 22px; display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; }
.hero-quick a {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 18px; border-radius: 999px; font-size: 14px;
  background: rgba(255, 255, 255, .8); color: var(--text);
  box-shadow: inset 0 0 0 1px var(--line); transition: all .2s;
}
.hero-quick a:hover { background: #fff; color: var(--brand); box-shadow: var(--shadow); transform: translateY(-2px); }
.hero-quick a i {
  width: 8px; height: 8px; border-radius: 50%; background: var(--brand); display: inline-block;
}
.hero-quick a:nth-child(2) i { background: var(--accent); }
.hero-quick a:nth-child(3) i { background: #5B8DEF; }
.hero-quick a:nth-child(4) i { background: #9C6BDF; }

.hero-stats { margin-top: 36px; display: flex; justify-content: center; gap: 64px; flex-wrap: wrap; }
.hero-stats .stat { text-align: center; }
.hero-stats .num { font-size: 30px; font-weight: 700; color: var(--brand); line-height: 1.2; }
.hero-stats .num small { font-size: 14px; font-weight: 500; margin-left: 2px; }
.hero-stats .lab { font-size: 13px; color: var(--muted); margin-top: 2px; }

/* =========================================================
   学历提升路径卡片
   ========================================================= */
.path-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.path-grid.grid-2 { grid-template-columns: repeat(2, 1fr); gap: 20px; }
.path-card {
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 20px 18px 16px; transition: all .25s ease; display: flex; flex-direction: column;
  border-top: 3px solid transparent; min-width: 0;
}
.path-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); border-top-color: var(--brand); }
.path-card .pc-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.path-card .pc-head h3 { font-size: 19px; color: var(--ink); font-weight: 700; }
.path-card .pc-head h3 a:hover { color: var(--brand); }
.path-card .pc-head .more { font-size: 12px; color: var(--muted); }
.path-card .pc-head .more:hover { color: var(--brand); }

.path-card .pc-links { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.path-card .pc-links a {
  font-size: 12px; padding: 2px 12px; border-radius: 999px;
  background: var(--brand-soft); color: var(--brand-dark);
}
.path-card .pc-links a:hover { background: var(--brand-light); }

.path-card ul.pc-list { flex: 1; }
.path-card ul.pc-list li {
  padding: 8px 0; border-bottom: 1px dashed var(--line);
  display: flex; align-items: center; gap: 8px;
}
.path-card ul.pc-list li:last-child { border-bottom: 0; }
.path-card ul.pc-list li::before {
  content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--brand);
  flex-shrink: 0; opacity: .7;
}
.path-card ul.pc-list li a {
  flex: 1; font-size: 14px; color: var(--text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.path-card ul.pc-list li a:hover { color: var(--brand); }

/* =========================================================
   资讯两栏（最新 + 推荐）
   ========================================================= */
.news-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.news-panel { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px 24px; }
.news-panel .np-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 8px; }
.news-panel .np-head h3 { font-size: 19px; color: var(--ink); font-weight: 700; padding-left: 12px; position: relative; }
.news-panel .np-head h3::before {
  content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 5px; height: 18px; border-radius: 3px; background: var(--brand);
}
.news-panel .np-head a { font-size: 13px; color: var(--muted); }
.news-panel .np-head a:hover { color: var(--brand); }

.news-panel ul.np-list li {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 0; border-bottom: 1px dashed var(--line);
}
.news-panel ul.np-list li:last-child { border-bottom: 0; }
.news-panel ul.np-list .idx {
  width: 20px; height: 20px; border-radius: 6px; flex-shrink: 0;
  background: var(--brand-soft); color: var(--brand-dark);
  font-size: 12px; display: flex; align-items: center; justify-content: center; font-weight: 600;
}
.news-panel ul.np-list li:nth-child(-n+3) .idx { background: var(--brand); color: #fff; }
.news-panel ul.np-list li a {
  flex: 1; font-size: 14.5px; color: var(--text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.news-panel ul.np-list li a:hover { color: var(--brand); }
.news-panel ul.np-list .date { font-size: 12px; color: var(--muted); flex-shrink: 0; font-family: Consolas, monospace; }

/* =========================================================
   推荐院校
   ========================================================= */
.school-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.school-card {
  background: var(--card); border-radius: var(--radius-sm); box-shadow: var(--shadow);
  padding: 18px 12px 14px; text-align: center; transition: all .22s ease;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.school-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.school-card .sc-img {
  width: 76px; height: 76px; border-radius: 50%; background: #fff;
  display: flex; align-items: center; justify-content: center; overflow: hidden;
  box-shadow: inset 0 0 0 1px var(--line);
}
.school-card .sc-img img { max-width: 58px; max-height: 58px; object-fit: contain; }
.school-card h3 {
  font-size: 13.5px; font-weight: 500; color: var(--text); line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.school-card:hover h3 { color: var(--brand); }

/* =========================================================
   证书展示
   ========================================================= */
.cert-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.cert-card {
  background: var(--card); border-radius: var(--radius-sm); box-shadow: var(--shadow);
  overflow: hidden; transition: all .22s ease;
}
.cert-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.cert-card .cc-img { height: 210px; background: var(--brand-soft); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.cert-card .cc-img img { width: 100%; height: 100%; object-fit: cover; }
.cert-card h3 {
  font-size: 14px; font-weight: 500; text-align: center; padding: 12px 14px; color: var(--text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.cert-card:hover h3 { color: var(--brand); }

/* =========================================================
   页内布局（列表 / 详情 / 搜索）
   ========================================================= */
.page-banner {
  background: linear-gradient(135deg, #EAF8F4 0%, #F0FAF7 60%, #F6FAF9 100%);
  padding: 30px 0; border-bottom: 1px solid var(--line);
}
.crumb { font-size: 13.5px; color: var(--muted); }
.crumb a { color: var(--muted); }
.crumb a:hover { color: var(--brand); }
.crumb .sep { margin: 0 8px; color: #B9CCC7; }

/* minmax(0,1fr)：轨道最小值归零，避免侧栏内容把 1fr 轨道顶宽导致整页横向溢出 */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; padding: 30px 0 50px; align-items: start; }

.main-col { min-width: 0; }

/* 子栏目选项卡 */
.subnav-tabs {
  display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 20px;
}
.subnav-tabs:empty { display: none; margin-bottom: 0; }
.subnav-tabs a {
  padding: 7px 20px; border-radius: 999px; font-size: 14px;
  background: #fff; color: var(--text); box-shadow: inset 0 0 0 1px var(--line);
  transition: all .2s;
}
.subnav-tabs a:hover { color: var(--brand); box-shadow: inset 0 0 0 1px var(--brand-light); }
.subnav-tabs a.on { background: var(--brand); color: #fff; box-shadow: none; }

/* 列表 */
.post-list { display: flex; flex-direction: column; gap: 16px; }
.post-item {
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 20px 22px; display: flex; gap: 20px; transition: all .22s ease;
}
.post-item:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.post-item .pi-thumb {
  width: 168px; height: 112px; border-radius: var(--radius-sm); overflow: hidden;
  flex-shrink: 0; background: var(--brand-soft);
}
.post-item .pi-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.post-item:hover .pi-thumb img { transform: scale(1.05); }
.post-item .pi-body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.post-item h3 { font-size: 17px; font-weight: 600; line-height: 1.5; }
.post-item h3 a {
  color: var(--ink); display: block;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.post-item h3 a:hover { color: var(--brand); }
.post-item .pi-desc {
  margin-top: 6px; font-size: 13.5px; color: var(--muted); line-height: 1.7;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.post-item .pi-meta {
  margin-top: auto; padding-top: 8px; display: flex; align-items: center; gap: 16px;
  font-size: 12.5px; color: var(--muted);
}
.post-item .pi-meta .cat { color: var(--brand-dark); background: var(--brand-light); padding: 1px 10px; border-radius: 999px; }

/* 纯文字列表（无图栏目） */
.post-item.no-thumb { padding: 18px 22px; }
.post-item.no-thumb .pi-desc { -webkit-line-clamp: 1; }

.empty-tip {
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 60px 20px; text-align: center; color: var(--muted);
}

/* 分页 */
.pager { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.pager a, .pager span.page-num {
  min-width: 38px; height: 38px; padding: 0 14px; border-radius: var(--radius-sm);
  display: inline-flex; align-items: center; justify-content: center;
  background: #fff; color: var(--text); font-size: 14px;
  box-shadow: inset 0 0 0 1px var(--line); transition: all .2s;
}
.pager a:hover { color: var(--brand); box-shadow: inset 0 0 0 1px var(--brand); }
.pager .page-numbar { display: inline-flex; gap: 8px; flex-wrap: wrap; }
.pager .page-num-current, .pager .page-num-current:hover {
  background: var(--brand); color: #fff !important; box-shadow: none;
}

/* ---------- 文章详情 ---------- */
.article {
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 34px 38px 30px;
}
.article-head { border-bottom: 1px solid var(--line); padding-bottom: 18px; margin-bottom: 24px; }
.article-head h1 { font-size: 26px; color: var(--ink); line-height: 1.5; font-weight: 700; }
.article-head .a-meta { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 18px; font-size: 13px; color: var(--muted); }
.article-head .a-meta span::before { content: "·"; margin-right: 6px; color: var(--brand); }

.article-body { font-size: 16.5px; line-height: 2; color: #33443F; word-break: break-word; overflow-wrap: break-word; }
.article-body p { margin: 0 0 16px; }
.article-body h2, .article-body h3, .article-body h4 {
  color: var(--ink); margin: 26px 0 14px; font-weight: 700; line-height: 1.5;
}
.article-body h2 { font-size: 21px; }
.article-body h3 { font-size: 18px; padding-left: 12px; border-left: 4px solid var(--brand); }
.article-body h4 { font-size: 16.5px; }
.article-body img { border-radius: var(--radius-sm); max-width: 100%; height: auto; display: block; margin: 10px auto; }
.article-body ul, .article-body ol { margin: 0 0 16px 26px; }
.article-body ul li { list-style: disc; margin-bottom: 6px; }
.article-body ol li { list-style: decimal; margin-bottom: 6px; }
.article-body blockquote {
  margin: 0 0 16px; padding: 12px 18px; background: var(--brand-soft);
  border-left: 4px solid var(--brand); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; color: var(--brand-deep);
}
.article-body table { width: 100%; border-collapse: collapse; margin: 0 0 16px; font-size: 14.5px; }
.article-body table th, .article-body table td { border: 1px solid var(--line); padding: 9px 12px; text-align: left; }
.article-body table th { background: var(--brand-soft); color: var(--ink); }
.article-body a { color: var(--brand-dark); text-decoration: underline; text-underline-offset: 3px; }
.article-body video { max-width: 100%; }

.article-foot { margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--line); }
.article-foot .tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.article-foot .af-nav { display: flex; flex-direction: column; gap: 8px; font-size: 14px; color: var(--muted); }
.article-foot .af-nav a { color: var(--text); }
.article-foot .af-nav a:hover { color: var(--brand); }

/* 侧栏 */
.sidebar { display: flex; flex-direction: column; gap: 20px; position: sticky; top: 20px; min-width: 0; }
.sidebar > * { min-width: 0; }
.side-box { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px 22px; }
.side-box .sb-title {
  font-size: 17px; font-weight: 700; color: var(--ink); margin-bottom: 12px;
  padding-left: 11px; position: relative;
}
.side-box .sb-title::before {
  content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 5px; height: 17px; border-radius: 3px; background: var(--brand);
}
.side-box ul.sb-list li {
  padding: 9px 0; border-bottom: 1px dashed var(--line);
  display: flex; gap: 8px; align-items: center;
}
.side-box ul.sb-list li:last-child { border-bottom: 0; }
.side-box ul.sb-list li::before {
  content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--brand); flex-shrink: 0; opacity: .7;
}
.side-box ul.sb-list li a {
  flex: 1; font-size: 14px; color: var(--text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.side-box ul.sb-list li a:hover { color: var(--brand); }

.side-cta {
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  border-radius: var(--radius); padding: 26px 24px; color: #fff; text-align: center;
}
.side-cta h3 { font-size: 19px; margin-bottom: 8px; }
.side-cta p { font-size: 13px; opacity: .85; margin-bottom: 16px; }
.side-cta .btn { background: #fff; color: var(--brand-dark); font-weight: 600; }
.side-cta .btn:hover { background: #F2FFFB; color: var(--brand-deep); box-shadow: none; }

/* =========================================================
   搜索结果
   ========================================================= */
.result-tip { font-size: 14px; color: var(--muted); margin-bottom: 16px; }
.result-tip b { color: var(--brand); font-weight: 600; }

/* =========================================================
   预约报名表单
   ========================================================= */
.form-wrap {
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 36px 40px; max-width: 720px; margin: 0 auto;
}
.form-wrap h2 { font-size: 22px; color: var(--ink); text-align: center; margin-bottom: 6px; }
.form-wrap .form-sub { text-align: center; color: var(--muted); font-size: 14px; margin-bottom: 28px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 22px; }
.form-item { display: flex; flex-direction: column; gap: 7px; }
.form-item.full { grid-column: 1 / -1; }
.form-item label { font-size: 14px; color: var(--ink); font-weight: 500; }
.form-item label em { color: #E5484D; font-style: normal; margin-left: 3px; }
.form-item input[type="text"], .form-item select {
  height: 44px; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  padding: 0 14px; font-size: 14.5px; color: var(--ink); outline: 0;
  background: #fff; font-family: inherit; transition: border-color .2s, box-shadow .2s; width: 100%;
}
.form-item input:focus, .form-item select:focus {
  border-color: var(--brand); box-shadow: 0 0 0 3px rgba(18, 179, 155, .12);
}
.radio-row { display: flex; gap: 20px; flex-wrap: wrap; padding-top: 4px; }
.radio-row label { display: inline-flex; align-items: center; gap: 6px; font-weight: 400; cursor: pointer; font-size: 14.5px; }
.radio-row input[type="radio"] { accent-color: var(--brand); width: 16px; height: 16px; }
.form-actions { grid-column: 1 / -1; text-align: center; margin-top: 10px; }
.form-actions .btn { padding: 12px 56px; font-size: 16px; }
.form-note { margin-top: 18px; text-align: center; font-size: 13px; color: var(--muted); }

.tips-card { background: var(--accent-light); border-radius: var(--radius); padding: 22px 26px; max-width: 720px; margin: 22px auto 0; }
.tips-card h3 { font-size: 16px; color: #9A5B14; margin-bottom: 8px; }
.tips-card p { font-size: 13.5px; color: #A9752F; line-height: 1.9; }
.tips-card.tips-alert {
  background: #FFF6EC; border: 1px solid #F6C98A; border-left: 4px solid var(--accent);
}
.tips-card.tips-alert h3 { color: #B5650E; }
.tips-card.tips-alert p { color: #9A6622; }

/* =========================================================
   友情链接
   ========================================================= */
.links-bar { padding: 10px 0 30px; }
.links-box { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px 24px; }
.links-box .lb-title { font-size: 15px; font-weight: 700; color: var(--ink); margin-bottom: 10px; }
.links-box ul { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.links-box ul a { font-size: 13.5px; color: var(--muted); }
.links-box ul a:hover { color: var(--brand); }

/* =========================================================
   页脚
   ========================================================= */
.footer { background: #12332E; color: #A8C6BF; margin-top: 30px; }
.footer-main { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 36px; padding: 44px 0 36px; }
.footer .f-brand img { height: 46px; margin-bottom: 14px; }
.footer .f-brand p { font-size: 13.5px; line-height: 1.9; opacity: .85; }
.footer h4 { color: #fff; font-size: 16px; margin-bottom: 14px; font-weight: 600; }
.footer .f-links li { margin-bottom: 9px; }
.footer .f-links a { font-size: 13.5px; color: #A8C6BF; }
.footer .f-links a:hover { color: #4FE7C6; }
.footer .f-about { font-size: 13.5px; line-height: 2; opacity: .9; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .08); padding: 16px 0;
  font-size: 12.5px; text-align: center; color: #7FA39B;
}
.footer-bottom a { color: #7FA39B; margin: 0 6px; }
.footer-bottom a:hover { color: #4FE7C6; }

/* =========================================================
   右侧浮动工具
   ========================================================= */
.float-tools {
  position: fixed; right: 18px; bottom: 90px; z-index: 80;
  display: flex; flex-direction: column; gap: 10px;
}
.float-tools a, .float-tools button {
  width: 44px; height: 44px; border-radius: 12px; border: 0; cursor: pointer;
  background: #fff; color: var(--brand-dark); box-shadow: var(--shadow);
  display: flex; align-items: center; justify-content: center; font-size: 18px;
  transition: all .2s;
}
.float-tools a:hover, .float-tools button:hover { background: var(--brand); color: #fff; transform: translateY(-2px); }
#backtop { display: none; }

/* =========================================================
   响应式
   ========================================================= */
@media (max-width: 1300px) {
  .path-grid { grid-template-columns: 1fr; }
  .path-grid.grid-2 { grid-template-columns: 1fr; }
}

@media (max-width: 1100px) {
  .school-grid { grid-template-columns: repeat(4, 1fr); }
  .nav-bar li > a { padding: 0 18px; font-size: 15px; }
}

@media (max-width: 900px) {
  .header-main { flex-wrap: wrap; gap: 16px; }
  .search-box { order: 3; max-width: 100%; flex: 1 1 100%; }
  .header-cta { margin-left: auto; }
  .layout { grid-template-columns: minmax(0, 1fr); }
  .sidebar { position: static; }
  .news-cols { grid-template-columns: 1fr; }
  .cert-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-main { grid-template-columns: 1fr 1fr; }

  /* 移动端导航 */
  .nav-toggle {
    display: flex; align-items: center; justify-content: center;
    width: 42px; height: 42px; border-radius: 10px; border: 0; cursor: pointer;
    background: var(--brand-light); color: var(--brand-dark); font-size: 20px;
  }
  .nav-bar { display: none; border-top: 0; }
  .nav-bar.open { display: block; }
  .nav-bar > .container > ul { flex-direction: column; padding: 6px 0 14px; }
  .nav-bar li > a { height: 46px; line-height: 46px; padding: 0 6px; border-bottom: 1px dashed var(--line); }
  .nav-bar li > a::after { display: none; }
  .nav-bar li .submenu {
    position: static; transform: none; opacity: 1; visibility: visible;
    box-shadow: none; padding: 0 0 6px 18px; min-width: 0;
    display: flex; flex-wrap: wrap; gap: 2px;
  }
  .nav-bar li .submenu a { text-align: left; padding: 6px 14px; background: var(--brand-soft); border-radius: 999px; margin: 3px 6px 3px 0; }
}

@media (max-width: 640px) {
  .hero { padding: 38px 0 40px; }
  .hero h1 { font-size: 24px; }
  .hero-stats { gap: 30px; }
  .hero-stats .num { font-size: 24px; }
  .school-grid { grid-template-columns: repeat(2, 1fr); }
  .post-item { flex-direction: column; padding: 16px; }
  .post-item .pi-thumb { width: 100%; height: 170px; }
  .article { padding: 22px 18px; }
  .article-head h1 { font-size: 20px; }
  .article-body { font-size: 15.5px; }
  .form-wrap { padding: 24px 18px; }
  .form-grid { grid-template-columns: 1fr; }
  .topbar .hide-sm { display: none; }
  .section-head .sh-title { font-size: 20px; }
  .section { padding: 30px 0 6px; }
  .float-tools { right: 12px; bottom: 70px; }
  .footer-main { grid-template-columns: 1fr; gap: 26px; padding: 32px 0 26px; }
  .f-links-col { display: none; }
  .cert-grid { grid-template-columns: repeat(2, 1fr); }
  .cert-grid .cert-card:nth-child(n+5) { display: none; }
  .school-grid .school-card:nth-child(n+5) { display: none; }

  /* 移动端：hero 搜索按钮不换行、输入框收窄 */
  .hero-search input[type="text"] { padding: 10px 14px; }
  .hero-search button { padding: 0 20px; white-space: nowrap; }

  /* 移动端：列表标题两行显示，避免长标题被截断 */
  .post-item h3 a {
    white-space: normal; text-overflow: clip;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  }
  /* 移动端：正文超宽元素兜底 */
  .article-body { overflow-wrap: break-word; word-break: break-word; }
  .article-body table { display: block; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .article-body img { max-width: 100% !important; height: auto !important; }
  .article-body pre { max-width: 100%; overflow-x: auto; }
}
