/* ============================================================
   山东成考帮 sdckb.com — 全站样式
   山东省成人高考 · 学历提升一站式服务平台
   ============================================================ */

:root {
  --primary: #1e5eff;
  --primary-dark: #1743b8;
  --primary-deep: #0d2f86;
  --accent: #ff7a1a;
  --accent-dark: #e86300;
  --gold: #f6b300;
  --ink: #17233d;
  --text: #4a5568;
  --muted: #8892a6;
  --line: #e7ebf3;
  --bg: #f5f7fb;
  --card: #ffffff;
  --success: #16a34a;
  --danger: #dc2626;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, .05), 0 2px 8px rgba(16, 24, 40, .06);
  --shadow: 0 6px 24px rgba(16, 24, 40, .08);
  --shadow-lg: 0 18px 50px rgba(16, 24, 40, .16);
  --container: 1200px;
  --font: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", "Helvetica Neue", Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }

/* ---------- 顶部信息栏 ---------- */
.topbar {
  background: linear-gradient(90deg, var(--primary-deep), var(--primary-dark));
  color: #dbe5ff;
  font-size: 13px;
  height: 38px;
  display: flex;
  align-items: center;
}
.topbar .container { display: flex; align-items: center; justify-content: space-between; }
.topbar a { color: #dbe5ff; }
.topbar a:hover { color: #fff; }
.topbar .hotline { color: #ffd78a; font-weight: 600; }
.topbar .hotline b { font-size: 15px; color: #fff; }

/* ---------- 页头 / 导航 ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }

.brand { display: flex; align-items: center; gap: 12px; }
.brand .logo {
  width: 46px; height: 46px; border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), #4d82ff);
  display: flex; align-items: center; justify-content: center;
  color: #fff; box-shadow: 0 6px 16px rgba(30, 94, 255, .35);
}
.brand .logo svg { width: 26px; height: 26px; }
.brand .name { line-height: 1.2; }
.brand .name strong { font-size: 22px; letter-spacing: .5px; color: var(--ink); display: block; }
.brand .name strong em { font-style: normal; color: var(--primary); }
.brand .name span { font-size: 12px; color: var(--muted); letter-spacing: 1px; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  padding: 8px 14px;
  font-size: 15.5px;
  color: var(--ink);
  border-radius: 8px;
  font-weight: 500;
  transition: .2s;
}
.nav a:hover, .nav a.active { color: var(--primary); background: #edf3ff; }
.nav .cta {
  margin-left: 8px;
  background: linear-gradient(135deg, var(--accent), #ff9540);
  color: #fff !important;
  padding: 9px 20px;
  font-weight: 600;
  box-shadow: 0 6px 16px rgba(255, 122, 26, .35);
}
.nav .cta:hover { background: linear-gradient(135deg, var(--accent-dark), var(--accent)); transform: translateY(-1px); }

.nav-toggle { display: none; width: 42px; height: 42px; border-radius: 10px; background: #edf3ff; color: var(--primary); align-items: center; justify-content: center; }
.nav-toggle svg { width: 22px; height: 22px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  color: #fff;
  overflow: hidden;
  background: radial-gradient(120% 120% at 15% 0%, #2454d6 0%, #143a9e 45%, #0b2568 100%);
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(60% 80% at 85% 10%, rgba(255, 122, 26, .25), transparent 60%),
              radial-gradient(50% 60% at 70% 100%, rgba(80, 150, 255, .25), transparent 60%);
}
.hero .grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 48px;
  align-items: center;
  padding: 84px 0 96px;
}
.hero .badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .22);
  padding: 7px 16px; border-radius: 999px;
  font-size: 13.5px; color: #e7efff;
  margin-bottom: 22px;
}
.hero .badge .dot { width: 7px; height: 7px; border-radius: 50%; background: #7CF5B0; box-shadow: 0 0 0 4px rgba(124, 245, 176, .2); }
.hero h1 { font-size: 46px; line-height: 1.22; font-weight: 800; letter-spacing: 1px; }
.hero h1 .hl { color: #ffd78a; }
.hero .lead { margin-top: 18px; font-size: 17px; color: #cfe0ff; max-width: 560px; }
.hero .actions { margin-top: 34px; display: flex; gap: 14px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px; border-radius: 12px;
  font-size: 16px; font-weight: 600;
  transition: .2s; white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: linear-gradient(135deg, var(--accent), #ff9540); color: #fff; box-shadow: 0 12px 28px rgba(255, 122, 26, .4); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 32px rgba(255, 122, 26, .5); }
.btn-ghost { background: rgba(255, 255, 255, .12); color: #fff; border: 1px solid rgba(255, 255, 255, .3); }
.btn-ghost:hover { background: rgba(255, 255, 255, .2); }

.hero-stats {
  position: relative;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px;
}
.stat-card {
  background: rgba(255, 255, 255, .09);
  border: 1px solid rgba(255, 255, 255, .16);
  backdrop-filter: blur(6px);
  border-radius: var(--radius);
  padding: 24px 22px;
}
.stat-card .num { font-size: 34px; font-weight: 800; color: #fff; line-height: 1.1; }
.stat-card .num i { font-style: normal; font-size: 20px; color: #ffd78a; margin-left: 2px; }
.stat-card .label { font-size: 13.5px; color: #c9d8f8; margin-top: 6px; }

/* ---------- 通用 section ---------- */
.section { padding: 76px 0; }
.section.gray { background: #fff; }
.section-head { text-align: center; margin-bottom: 44px; }
.section-head .tag {
  display: inline-block; font-size: 13px; color: var(--primary);
  background: #eaf1ff; padding: 5px 14px; border-radius: 999px; font-weight: 600; letter-spacing: 1px;
}
.section-head h2 { font-size: 32px; margin-top: 12px; font-weight: 800; letter-spacing: 1px; }
.section-head p { color: var(--muted); margin-top: 10px; }

/* ---------- 报考须知 ---------- */
.notice-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.notice-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 24px; box-shadow: var(--shadow-sm); transition: .25s; position: relative; overflow: hidden;
}
.notice-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #d7e4ff; }
.notice-card .ico {
  width: 50px; height: 50px; border-radius: 13px;
  background: linear-gradient(135deg, #eaf1ff, #dbe6ff);
  color: var(--primary); display: flex; align-items: center; justify-content: center; margin-bottom: 16px;
}
.notice-card .ico svg { width: 25px; height: 25px; }
.notice-card h3 { font-size: 18px; margin-bottom: 8px; }
.notice-card p { color: var(--text); font-size: 14px; }

/* ---------- 招生专业 ---------- */
.major-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.major-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm); transition: .28s; cursor: pointer;
}
.major-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.major-card .thumb { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: #dde4f0; }
.major-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: .5s; }
.major-card:hover .thumb img { transform: scale(1.08); }
.major-card .level {
  position: absolute; top: 12px; left: 12px;
  background: rgba(13, 47, 134, .85); color: #fff; font-size: 12px;
  padding: 4px 10px; border-radius: 999px; backdrop-filter: blur(4px);
}
.major-card .body { padding: 16px 18px 20px; }
.major-card .body h3 { font-size: 17.5px; margin-bottom: 6px; }
.major-card .body p { font-size: 13.5px; color: var(--muted); min-height: 42px; }
.major-card .more { margin-top: 12px; font-size: 13.5px; color: var(--primary); font-weight: 600; display: inline-flex; align-items: center; gap: 4px; }
.major-card .more svg { width: 14px; height: 14px; transition: .2s; }
.major-card:hover .more svg { transform: translateX(3px); }

/* ---------- 资讯 ---------- */
.news-wrap { display: grid; grid-template-columns: 1.6fr 1fr; gap: 24px; }
.panel {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); overflow: hidden;
}
.panel-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 22px; border-bottom: 1px solid var(--line);
}
.panel-head h3 { font-size: 19px; display: flex; align-items: center; gap: 10px; }
.panel-head h3 .bar { width: 5px; height: 20px; border-radius: 3px; background: linear-gradient(180deg, var(--primary), #4d82ff); }
.panel-head a { font-size: 13.5px; color: var(--muted); }
.panel-head a:hover { color: var(--primary); }
.news-list { padding: 8px 22px; }
.news-list li { border-bottom: 1px dashed var(--line); }
.news-list li:last-child { border-bottom: none; }
.news-list a { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 0; }
.news-list .t { color: var(--ink); font-size: 15px; transition: .2s; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.news-list a:hover .t { color: var(--primary); }
.news-list .d { color: var(--muted); font-size: 12.5px; flex-shrink: 0; font-variant-numeric: tabular-nums; }
.news-list .hot { color: var(--accent); font-weight: 700; }

/* ---------- 校园风光 ---------- */
.campus-grid { display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-rows: 150px; gap: 16px; }
.campus-item { position: relative; border-radius: var(--radius-sm); overflow: hidden; cursor: pointer; }
.campus-item img { width: 100%; height: 100%; object-fit: cover; transition: .5s; }
.campus-item:hover img { transform: scale(1.1); }
.campus-item::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(8, 20, 48, .7));
}
.campus-item span {
  position: absolute; left: 14px; bottom: 12px; z-index: 2;
  color: #fff; font-size: 14.5px; font-weight: 600;
}
.campus-item:nth-child(1) { grid-column: span 4; grid-row: span 2; }
.campus-item:nth-child(2) { grid-column: span 4; }
.campus-item:nth-child(3) { grid-column: span 4; }
.campus-item:nth-child(4) { grid-column: span 3; }
.campus-item:nth-child(5) { grid-column: span 3; }
.campus-item:nth-child(6) { grid-column: span 3; }
.campus-item:nth-child(7) { grid-column: span 3; }

/* ---------- 学员案例 ---------- */
.case-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.case-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm); transition: .28s;
}
.case-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.case-card .photo { aspect-ratio: 16 / 10; overflow: hidden; background: #e3e9f4; }
.case-card .photo img { width: 100%; height: 100%; object-fit: cover; transition: .5s; }
.case-card:hover .photo img { transform: scale(1.06); }
.case-card .body { padding: 20px 22px 24px; }
.case-card .who { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.case-card .who .tag { background: #fff3e6; color: var(--accent-dark); font-size: 12.5px; font-weight: 700; padding: 4px 12px; border-radius: 999px; }
.case-card .who .name { font-weight: 700; font-size: 16px; }
.case-card .body p { font-size: 14.5px; color: var(--text); }
.case-card .body .res { margin-top: 12px; font-size: 13.5px; color: var(--success); font-weight: 600; }

/* ---------- 报名流程 ---------- */
.flow-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.flow-step { text-align: center; position: relative; }
.flow-step .num {
  width: 58px; height: 58px; margin: 0 auto 14px; border-radius: 50%;
  background: #fff; border: 2px solid var(--primary); color: var(--primary);
  font-size: 24px; font-weight: 800; display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-sm); position: relative; z-index: 2;
}
.flow-step:not(:last-child)::after {
  content: ""; position: absolute; top: 29px; left: calc(50% + 32px); width: calc(100% - 64px); height: 2px;
  background: repeating-linear-gradient(90deg, #bcd0ff 0 6px, transparent 6px 12px);
}
.flow-step h4 { font-size: 15.5px; margin-bottom: 4px; }
.flow-step p { font-size: 12.5px; color: var(--muted); }

/* ---------- 在线报名 ---------- */
.apply { position: relative; overflow: hidden; }
.apply .grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.apply .info h2 { font-size: 32px; font-weight: 800; }
.apply .info h2 em { font-style: normal; color: var(--accent); }
.apply .info p { color: var(--text); margin-top: 14px; }
.apply .points { margin-top: 22px; display: grid; gap: 14px; }
.apply .points li { display: flex; gap: 12px; align-items: flex-start; }
.apply .points .ck { flex-shrink: 0; width: 24px; height: 24px; border-radius: 50%; background: #e7f6ec; color: var(--success); display: flex; align-items: center; justify-content: center; margin-top: 2px; }
.apply .points .ck svg { width: 14px; height: 14px; }
.apply .points b { display: block; }
.apply .points span { color: var(--muted); font-size: 13.5px; }

.form-card {
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow-lg);
  padding: 30px 30px 32px;
}
.form-card h3 { font-size: 20px; text-align: center; margin-bottom: 4px; }
.form-card .sub { text-align: center; color: var(--muted); font-size: 13px; margin-bottom: 20px; }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 13.5px; color: var(--text); margin-bottom: 6px; font-weight: 500; }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px;
  font-size: 15px; font-family: inherit; background: #fafbfe; transition: .2s; color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--primary); background: #fff; box-shadow: 0 0 0 3px rgba(30, 94, 255, .12); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.submit-btn { width: 100%; padding: 14px; border-radius: 12px; background: linear-gradient(135deg, var(--primary), #4d82ff); color: #fff; font-size: 16.5px; font-weight: 700; box-shadow: 0 10px 22px rgba(30, 94, 255, .35); transition: .2s; }
.submit-btn:hover { transform: translateY(-2px); box-shadow: 0 14px 28px rgba(30, 94, 255, .45); }
.form-tip { text-align: center; font-size: 12px; color: var(--muted); margin-top: 12px; }

/* ---------- 页脚 ---------- */
.footer { background: #0b1d45; color: #aebcde; }
.footer .top { padding: 56px 0 40px; display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; }
.footer .brand .name strong { color: #fff; font-size: 21px; }
.footer .brand .name span { color: #7186b8; }
.footer .brand p { font-size: 13.5px; color: #8295bf; margin-top: 14px; max-width: 300px; }
.footer h4 { color: #fff; font-size: 16px; margin-bottom: 16px; }
.footer ul li { margin-bottom: 10px; font-size: 14px; }
.footer ul a:hover { color: #fff; }
.footer .contact li { display: flex; gap: 10px; align-items: flex-start; }
.footer .contact .ic { color: var(--gold); }
.footer .bottom { border-top: 1px solid rgba(255, 255, 255, .1); padding: 20px 0; text-align: center; font-size: 13px; color: #7186b8; }
.footer .bottom a { color: #9fb2dc; }

/* ---------- 返回顶部 ---------- */
.back-top {
  position: fixed; right: 24px; bottom: 24px; z-index: 90;
  width: 46px; height: 46px; border-radius: 12px;
  background: var(--primary); color: #fff; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 20px rgba(30, 94, 255, .4); opacity: 0; visibility: hidden; transition: .3s;
}
.back-top.show { opacity: 1; visibility: visible; }
.back-top svg { width: 20px; height: 20px; }

/* ---------- 图片放大 lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transition: .25s;
}
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox-mask { position: absolute; inset: 0; background: rgba(6, 14, 34, .9); }
.lightbox-fig { position: relative; z-index: 2; max-width: 90vw; max-height: 88vh; text-align: center; }
.lightbox-fig img { max-width: 90vw; max-height: 78vh; border-radius: 12px; box-shadow: 0 24px 80px rgba(0, 0, 0, .5); }
.lightbox-fig figcaption { color: #fff; margin-top: 14px; font-size: 16px; font-weight: 600; }
.lightbox-close {
  position: absolute; top: -14px; right: -14px; width: 42px; height: 42px; border-radius: 50%;
  background: #fff; color: var(--ink); font-size: 26px; line-height: 1;
  display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-lg);
}

/* ---------- 新闻详情页 ---------- */
.detail-wrap { padding: 32px 0 72px; min-height: 60vh; background: var(--bg); }
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); margin-bottom: 24px; flex-wrap: wrap; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb i { font-style: normal; color: #c3cbdb; }
.breadcrumb span { color: var(--ink); font-weight: 500; }
.detail-layout { display: grid; grid-template-columns: 1fr 320px; gap: 28px; align-items: start; }
.article { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 40px 44px; box-shadow: var(--shadow-sm); }
.article h1 { font-size: 28px; line-height: 1.4; font-weight: 800; }
.article .meta { display: flex; align-items: center; gap: 16px; margin: 16px 0 24px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.article .meta .cat { background: #eaf1ff; color: var(--primary); font-size: 12.5px; font-weight: 600; padding: 3px 12px; border-radius: 999px; }
.article .meta .date { color: var(--muted); font-size: 13.5px; font-variant-numeric: tabular-nums; }
.article .content { font-size: 16px; color: #333d51; line-height: 2; }
.article .content p { margin-bottom: 18px; text-indent: 2em; }
.article .content p:last-child { margin-bottom: 0; }
.article-nav { display: flex; justify-content: space-between; gap: 16px; margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--line); }
.article-nav .nav-item { flex: 1; min-width: 0; }
.article-nav .nav-item.right { text-align: right; }
.article-nav .nav-label { display: block; font-size: 12.5px; color: var(--muted); margin-bottom: 6px; }
.article-nav a { color: var(--ink); font-size: 14.5px; line-height: 1.5; display: inline-block; }
.article-nav a:hover { color: var(--primary); }
.article-nav span { color: #b8c0cf; font-size: 14px; }
.article-cta { margin-top: 28px; }
.side { display: grid; gap: 24px; position: sticky; top: 96px; }
.side-cta { background: linear-gradient(135deg, var(--primary), #4d82ff); color: #fff; border-radius: var(--radius); padding: 30px 26px; text-align: center; }
.side-cta h4 { font-size: 22px; line-height: 1.4; }
.side-cta p { color: #dbe6ff; font-size: 13.5px; margin: 12px 0 20px; }
.side-cta .btn { background: linear-gradient(135deg, var(--accent), #ff9540); }

@media (max-width: 900px) {
  .detail-layout { grid-template-columns: 1fr; }
  .side { position: static; }
  .article { padding: 26px 22px; }
  .article h1 { font-size: 22px; }
}

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
  .hero h1 { font-size: 38px; }
  .major-grid { grid-template-columns: repeat(3, 1fr); }
  .notice-grid { grid-template-columns: repeat(2, 1fr); }
  .flow-grid { grid-template-columns: repeat(3, 1fr); }
  .flow-step:not(:last-child)::after { display: none; }
  .footer .top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .topbar { display: none; }
  .nav { position: fixed; top: 72px; left: 0; right: 0; background: #fff; flex-direction: column; align-items: stretch; padding: 12px 16px 20px; gap: 2px; box-shadow: var(--shadow-lg); transform: translateY(-120%); transition: .3s; border-top: 1px solid var(--line); }
  .nav.open { transform: translateY(0); }
  .nav a { padding: 12px 14px; font-size: 16px; }
  .nav .cta { margin: 8px 0 0; text-align: center; }
  .nav-toggle { display: flex; }
  .hero .grid { grid-template-columns: 1fr; padding: 56px 0 64px; }
  .hero h1 { font-size: 32px; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .major-grid { grid-template-columns: repeat(2, 1fr); }
  .news-wrap { grid-template-columns: 1fr; }
  .campus-grid { grid-auto-rows: 120px; }
  .case-grid { grid-template-columns: 1fr; }
  .flow-grid { grid-template-columns: repeat(2, 1fr); }
  .apply .grid { grid-template-columns: 1fr; }
  .footer .top { grid-template-columns: 1fr; }
  .section { padding: 56px 0; }
  .section-head h2 { font-size: 26px; }
}

@media (max-width: 460px) {
  .major-grid { grid-template-columns: 1fr; }
  .notice-grid { grid-template-columns: 1fr; }
}
