/* ==========================================================
   智慧课 · 门户官网
   版式基准：国家职业教育智慧教育平台
   ========================================================== */

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--t2);
  background: var(--bg);
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }
button, input, select { font-family: inherit; font-size: inherit; outline: none; }
ul, ol { list-style: none; }

.wrap { width: 100%; max-width: var(--container); margin: 0 auto; }

/* ============ 顶部细条 ============ */
.topbar {
  height: 36px;
  background: #191a23;
  color: rgba(255,255,255,.72);
  font-size: 12px;
}
.topbar .wrap {
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.topbar-left { display: flex; align-items: center; gap: 14px; }
.topbar-right { display: flex; align-items: center; gap: 16px; }
.topbar a { color: rgba(255,255,255,.72); transition: color .18s; }
.topbar a:hover { color: #fff; }
.topbar .sep { width: 1px; height: 12px; background: rgba(255,255,255,.2); }
.topbar .hi { color: var(--warning); }

/* ============ 站点头部 ============ */
.masthead {
  background: #fff;
  border-bottom: 1px solid var(--line-soft);
}
.masthead .wrap {
  height: 96px;
  display: flex;
  align-items: center;
  gap: 40px;
}

.logo { display: flex; align-items: center; gap: 12px; flex: none; }
.logo-mark {
  width: 48px; height: 48px;
  border-radius: 10px;
  background: var(--brand-grad-v);
  display: grid; place-items: center;
  box-shadow: 0 4px 12px rgba(33,115,220,.28);
  flex: none;
}
.logo-text { display: flex; flex-direction: column; line-height: 1.25; }
.logo-name {
  font-size: 22px; font-weight: 700; color: var(--brand-deep);
  letter-spacing: 2px;
}
.logo-sub {
  font-size: 11px; color: var(--t3); letter-spacing: .5px;
}

/* 搜索 */
.search { flex: 1; max-width: 520px; }
.search-box {
  display: flex; align-items: center;
  height: 42px;
  border: 2px solid var(--brand);
  border-radius: var(--radius-pill);
  overflow: hidden;
  background: #fff;
  transition: box-shadow .2s;
}
.search-box:focus-within { box-shadow: 0 0 0 3px rgba(45,140,240,.18); }
.search-box input {
  flex: 1; height: 100%;
  border: none; padding: 0 18px;
  font-size: 14px; color: var(--t1); background: transparent;
}
.search-box input::placeholder { color: var(--t4); }
.search-btn {
  flex: none; width: 92px; height: 100%;
  border: none; cursor: pointer;
  background: var(--brand-grad);
  color: #fff; font-size: 15px; font-weight: 500; letter-spacing: 2px;
  display: grid; place-items: center;
  transition: filter .2s;
}
.search-btn:hover { filter: brightness(1.08); }
.hot-words {
  display: flex; align-items: center; gap: 14px;
  margin-top: 7px; font-size: 12px; color: var(--t3);
}
.hot-words a { color: var(--t3); transition: color .18s; }
.hot-words a:hover { color: var(--brand); }
.hot-words .hw-label { color: var(--t4); }

/* 右侧动作 */
.mast-actions { display: flex; align-items: center; gap: 12px; flex: none; }
.mast-link {
  display: flex; align-items: center; gap: 6px;
  font-size: 13px; color: var(--t2); padding: 6px 4px;
  transition: color .18s;
}
.mast-link:hover { color: var(--brand); }
.btn-workspace {
  height: 40px; padding: 0 20px;
  border: none; border-radius: var(--radius-pill);
  background: var(--brand-grad);
  color: #fff; font-size: 14px; font-weight: 500;
  cursor: pointer;
  display: inline-flex; align-items: center; gap: 7px;
  box-shadow: 0 4px 12px rgba(33,115,220,.26);
  transition: transform .18s, box-shadow .18s;
}
.btn-workspace:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(33,115,220,.34);
}

/* ============ 主导航（课件帮式 · 白色 + 分组下拉） ============ */
.mainnav {
  position: relative;
  z-index: 50;
  background: #fff;
  border-bottom: 1px solid var(--line-soft);
  box-shadow: 0 1px 6px rgba(29, 66, 171, .05);
}
.mainnav .wrap {
  height: 52px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-list { display: flex; align-items: center; height: 100%; }
.nav-list > li { height: 100%; }
.nav-item {
  position: relative;
  height: 52px; padding: 0 22px;
  display: flex; align-items: center; gap: 6px;
  color: var(--t1);
  font-size: 15.5px;
  transition: color .18s, background .18s;
  white-space: nowrap;
}
.nav-item .caret { color: var(--t4); transition: transform .2s, color .18s; }
.nav-item:hover { color: var(--brand); background: var(--brand-tint); }
.nav-item:hover .caret { color: var(--brand); transform: rotate(180deg); }
.nav-item.active { color: var(--brand); font-weight: 600; background: var(--brand-tint); }
.nav-item.active::after {
  content: ""; position: absolute; left: 50%; bottom: -1px;
  transform: translateX(-50%);
  width: calc(100% - 44px); height: 2px; border-radius: 2px 2px 0 0;
  background: var(--brand);
}

/* 下拉分组面板 */
.nav-drop { position: relative; }
.nav-panel {
  position: absolute; left: 0; top: 100%;
  display: none;
  width: 620px; padding: 18px 20px;
  background: #fff;
  border: 1px solid var(--line-soft);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  box-shadow: 0 12px 32px rgba(29, 66, 171, .16);
  grid-template-columns: repeat(3, 1fr);
  gap: 8px 26px;
}
.nav-drop:hover .nav-panel,
.nav-drop:focus-within .nav-panel { display: grid; }
.nav-panel .np-col { display: flex; flex-direction: column; gap: 2px; }
.nav-panel h4 {
  font-size: 12px; font-weight: 600; color: var(--t4);
  letter-spacing: 1px; margin-bottom: 8px;
  padding-bottom: 8px; border-bottom: 1px solid var(--line-soft);
}
.nav-panel a {
  display: flex; align-items: center; gap: 9px;
  padding: 8px 10px; border-radius: var(--radius);
  font-size: 13.5px; color: var(--t2);
  transition: background .16s, color .16s, padding-left .16s;
}
.nav-panel a svg { width: 16px; height: 16px; flex: none; color: var(--t3); transition: color .16s; }
.nav-panel a:hover { background: var(--brand-tint); color: var(--brand); padding-left: 14px; }
.nav-panel a:hover svg { color: var(--brand); }

.nav-new {
  font-size: 10px; line-height: 1;
  padding: 2px 4px; border-radius: 3px;
  background: var(--danger); color: #fff;
  transform: translateY(-6px);
}
.nav-intl {
  display: flex; align-items: center; gap: 6px;
  color: var(--brand); font-size: 13px;
  padding: 5px 12px; border-radius: var(--radius-pill);
  border: 1px solid rgba(45, 140, 240, .4);
  background: var(--brand-tint);
  transition: background .18s, color .18s;
}
.nav-intl:hover { background: var(--brand); border-color: var(--brand); color: #fff; }

/* 板块内二级小标题 */
.sub-hd {
  display: flex; align-items: center; justify-content: space-between;
  margin: 26px 0 14px;
  padding-top: 20px;
  border-top: 1px dashed var(--line);
}
.sub-hd h3 { font-size: 16px; font-weight: 600; color: var(--t1); }

/* ============ Hero ============ */
.hero {
  position: relative;
  background: var(--brand-grad-v);
  overflow: hidden;
}
.hero::before,
.hero::after {
  content: ""; position: absolute; border-radius: 50%;
  background: rgba(255,255,255,.07);
}
.hero::before { width: 460px; height: 460px; right: -80px; top: -160px; }
.hero::after  { width: 300px; height: 300px; right: 220px; bottom: -180px; background: rgba(255,255,255,.05); }
.hero .wrap {
  position: relative; z-index: 1;
  min-height: 300px;
  padding: 46px 0 40px;
  display: flex; align-items: center; gap: 48px;
}
.hero-copy { flex: 1; color: #fff; }
.hero-kicker {
  display: inline-flex; align-items: center; gap: 8px;
  height: 28px; padding: 0 14px; margin-bottom: 18px;
  border-radius: var(--radius-pill);
  background: rgba(255,255,255,.16);
  border: 1px solid rgba(255,255,255,.28);
  font-size: 12px; letter-spacing: .5px;
}
.hero-kicker .dot {
  width: 6px; height: 6px; border-radius: 50%; background: #4ade80;
  box-shadow: 0 0 0 3px rgba(74,222,128,.28);
}
.hero h1 {
  font-size: 38px; line-height: 1.28; font-weight: 700;
  letter-spacing: 1px; margin-bottom: 14px;
}
.hero h1 em { font-style: normal; color: #ffd166; }
.hero-desc {
  font-size: 15px; color: rgba(255,255,255,.85);
  max-width: 560px; margin-bottom: 24px;
}
.hero-quick { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-quick a {
  height: 34px; padding: 0 16px;
  display: inline-flex; align-items: center; gap: 7px;
  border-radius: var(--radius-pill);
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.26);
  color: #fff; font-size: 13px;
  transition: background .18s, transform .18s;
}
.hero-quick a:hover { background: rgba(255,255,255,.26); transform: translateY(-1px); }

/* Hero 右侧 AI 入口卡 */
.hero-ai {
  flex: none; width: 340px;
  background: #fff; border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: 0 12px 32px rgba(16,32,72,.24);
}
.hero-ai h3 {
  font-size: 16px; color: var(--t1); margin-bottom: 4px;
  display: flex; align-items: center; gap: 8px;
}
.hero-ai .ai-sub { font-size: 12px; color: var(--t3); margin-bottom: 16px; }
.ai-entry {
  display: flex; align-items: center; gap: 12px;
  padding: 10px; border-radius: var(--radius);
  border: 1px solid var(--line-soft);
  margin-bottom: 8px;
  transition: border-color .18s, background .18s, transform .18s;
}
.ai-entry:hover {
  border-color: var(--primary); background: var(--brand-tint);
  transform: translateX(2px);
}
.ai-entry .ico {
  width: 34px; height: 34px; border-radius: 8px; flex: none;
  display: grid; place-items: center; color: #fff; font-size: 15px; font-weight: 600;
}
.ai-entry .ico.c1 { background: linear-gradient(135deg,#2b85e4,#2d8cf0); }
.ai-entry .ico.c2 { background: linear-gradient(135deg,#eb2f96,#f0659a); }
.ai-entry .ico.c3 { background: linear-gradient(135deg,#19be6b,#3ddb93); }
.ai-entry .txt { flex: 1; min-width: 0; }
.ai-entry .txt b { display: block; font-size: 14px; color: var(--t1); font-weight: 600; }
.ai-entry .txt span { font-size: 12px; color: var(--t3); }
.ai-entry .go { color: var(--t4); font-size: 16px; }
.hero-ai .ai-foot {
  margin-top: 12px; padding-top: 12px;
  border-top: 1px dashed var(--line-soft);
  font-size: 12px; color: var(--t3);
  display: flex; align-items: center; justify-content: space-between;
}

/* ============ 数据条 ============ */
.stats { background: #fff; border-bottom: 1px solid var(--line-soft); }
.stats .wrap {
  display: grid; grid-template-columns: repeat(4, 1fr);
  padding: 26px 0;
}
.stat { text-align: center; position: relative; }
.stat + .stat::before {
  content: ""; position: absolute; left: 0; top: 50%;
  transform: translateY(-50%);
  width: 1px; height: 34px; background: var(--line-soft);
}
.stat b {
  display: block; font-size: 28px; font-weight: 700;
  color: var(--brand-deep); line-height: 1.2;
  font-variant-numeric: tabular-nums;
}
.stat span { font-size: 13px; color: var(--t3); }

/* ============ 板块通用 ============ */
.section { padding: 34px 0 8px; }
.section.alt { background: #fff; }

.sec-hd {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 24px; margin-bottom: 20px;
}
.sec-title { display: flex; align-items: center; gap: 10px; }
.sec-title .bar {
  width: 4px; height: 20px; border-radius: 2px;
  background: var(--brand-grad-v);
}
.sec-title h2 { font-size: 22px; font-weight: 700; color: var(--t1); letter-spacing: 1px; }
.sec-title .en { font-size: 12px; color: var(--t4); letter-spacing: 1px; text-transform: uppercase; }
.sec-hd .more {
  font-size: 13px; color: var(--t3);
  display: inline-flex; align-items: center; gap: 4px;
  padding-bottom: 4px; transition: color .18s;
}
.sec-hd .more:hover { color: var(--brand); }

/* Tab 组 */
.tabs { display: flex; align-items: center; gap: 6px; }
.tab {
  height: 30px; padding: 0 16px;
  border: 1px solid transparent; border-radius: var(--radius-pill);
  background: transparent; color: var(--t2); font-size: 13px; cursor: pointer;
  transition: all .18s;
}
.tab:hover { color: var(--brand); background: var(--brand-tint); }
.tab.active {
  background: var(--brand); border-color: var(--brand); color: #fff;
}

/* 栅格 */
.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-6 { grid-template-columns: repeat(6, 1fr); }

/* ============ 资源卡片 ============ */
.rcard {
  background: #fff; border-radius: var(--radius);
  border: 1px solid var(--line-soft);
  overflow: hidden; cursor: pointer;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.rcard:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(45,140,240,.4);
}
.rcover {
  position: relative; aspect-ratio: 16 / 9;
  display: grid; place-items: center;
  overflow: hidden;
}
.rcover img { width: 100%; height: 100%; object-fit: cover; }
.rcover .gicon { color: rgba(255,255,255,.9); }
.rcover .mask {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.35), rgba(0,0,0,0) 55%);
}
.rcover .badge {
  position: absolute; left: 8px; top: 8px;
  height: 22px; padding: 0 8px;
  display: inline-flex; align-items: center;
  border-radius: 3px; font-size: 11px;
  background: rgba(0,0,0,.42); color: #fff;
  backdrop-filter: blur(4px);
}
.rcover .badge.hot  { background: rgba(237,64,20,.88); }
.rcover .badge.new  { background: rgba(25,190,107,.9); }
.rcover .play {
  position: absolute; right: 8px; bottom: 8px;
  height: 22px; padding: 0 8px;
  display: inline-flex; align-items: center; gap: 4px;
  border-radius: 3px; font-size: 11px;
  background: rgba(0,0,0,.45); color: #fff;
}
.rbody { padding: 12px 14px 14px; }
.rbody h3 {
  font-size: 14px; font-weight: 600; color: var(--t1);
  line-height: 1.5; margin-bottom: 8px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; min-height: 42px;
}
.rcard:hover .rbody h3 { color: var(--brand); }
.rmeta {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 12px; color: var(--t3);
}
.rtags { display: flex; gap: 6px; }
.rtag {
  padding: 1px 6px; border-radius: 3px; font-size: 11px;
  background: var(--brand-tint); color: var(--brand);
}
.rtag.g { background: #e8f8f0; color: #17915a; }
.rtag.o { background: #fff4e6; color: #c47a12; }

/* 渐变封面（按序循环） */
.gv1 { background: linear-gradient(135deg, #1d42ab, #2d8cf0); }
.gv2 { background: linear-gradient(135deg, #0f7b6c, #35b8a4); }
.gv3 { background: linear-gradient(135deg, #8e2de2, #c471ed); }
.gv4 { background: linear-gradient(135deg, #c2410c, #f28b30); }
.gv5 { background: linear-gradient(135deg, #0e7490, #22a7c8); }
.gv6 { background: linear-gradient(135deg, #9f1239, #e0457b); }

/* ============ 教师提升 · AI 能力卡 ============ */
.ai-card {
  background: #fff; border-radius: var(--radius);
  border: 1px solid var(--line-soft);
  overflow: hidden; cursor: pointer;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.ai-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(45,140,240,.4);
}
.ai-card .top {
  height: 108px; position: relative;
  display: grid; place-items: center; color: #fff;
  overflow: hidden;
}
.ai-card .top .ring {
  position: absolute; width: 190px; height: 190px;
  border: 1px solid rgba(255,255,255,.18); border-radius: 50%;
}
.ai-card .top .ring.r2 { width: 130px; height: 130px; }
.ai-card .top .glyph {
  position: relative; z-index: 1;
  font-size: 30px; font-weight: 700; letter-spacing: 2px;
  text-shadow: 0 2px 8px rgba(0,0,0,.18);
}
.ai-card .bd { padding: 14px; }
.ai-card .bd h3 { font-size: 15px; color: var(--t1); margin-bottom: 6px; font-weight: 600; }
.ai-card .bd p { font-size: 12.5px; color: var(--t3); line-height: 1.7; min-height: 44px; }
.ai-card .bd .foot {
  margin-top: 12px; padding-top: 10px;
  border-top: 1px solid var(--line-soft);
  display: flex; align-items: center; justify-content: space-between;
  font-size: 12px; color: var(--brand);
}
.ai-card .bd .foot .chips { display: flex; gap: 5px; }
.ai-card .bd .foot .chips span {
  padding: 1px 6px; border-radius: 3px;
  background: var(--bg-soft); color: var(--t3); font-size: 11px;
}

/* ============ 专题 / 共享专区 ============ */
.subject {
  position: relative; border-radius: var(--radius); overflow: hidden;
  height: 168px; color: #fff; cursor: pointer;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 16px;
  transition: transform .2s, box-shadow .2s;
}
.subject:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.subject .mask {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.62), rgba(0,0,0,.05));
}
.subject .txt { position: relative; z-index: 1; }
.subject .txt h3 { font-size: 17px; font-weight: 600; margin-bottom: 4px; }
.subject .txt p { font-size: 12.5px; color: rgba(255,255,255,.82); }

.zone {
  background: #fff; border: 1px solid var(--line-soft);
  border-radius: var(--radius); padding: 16px 18px;
  transition: border-color .2s, box-shadow .2s;
}
.zone:hover { border-color: rgba(45,140,240,.4); box-shadow: var(--shadow-card); }
.zone h3 {
  font-size: 15px; color: var(--t1); margin-bottom: 12px;
  display: flex; align-items: center; gap: 8px; font-weight: 600;
}
.zone h3 .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--brand); }
.zone ul li {
  display: flex; align-items: center; justify-content: space-between;
  padding: 7px 0; font-size: 13px; color: var(--t2);
  border-bottom: 1px dashed var(--line-soft);
  cursor: pointer; transition: color .18s, padding-left .18s;
}
.zone ul li:last-child { border-bottom: none; }
.zone ul li:hover { color: var(--brand); padding-left: 4px; }
.zone ul li span { font-size: 12px; color: var(--t4); }

/* ============ 右侧悬浮 ============ */
.dock {
  position: fixed; right: 18px; top: 50%; transform: translateY(-50%);
  z-index: 60; display: flex; flex-direction: column; gap: 8px;
}
.dock button, .dock a {
  width: 52px; height: 52px;
  border: 1px solid var(--line-soft); border-radius: var(--radius);
  background: #fff; color: var(--t2);
  display: grid; place-items: center; gap: 2px;
  cursor: pointer; font-size: 10px;
  box-shadow: var(--shadow-card);
  transition: all .2s;
}
.dock button:hover, .dock a:hover {
  background: var(--brand); border-color: var(--brand); color: #fff;
  transform: translateY(-2px);
}
.dock .ai {
  background: var(--brand-grad-v); color: #fff; border-color: transparent;
}
.dock svg { width: 18px; height: 18px; }

/* ============ 页脚 ============ */
.footer { background: #191a23; color: rgba(255,255,255,.6); margin-top: 36px; }
.footer .wrap { padding: 34px 0 24px; }
.foot-top {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px; padding-bottom: 26px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.foot-brand .logo-name { color: #fff; }
.foot-brand p { font-size: 12.5px; line-height: 1.9; margin-top: 10px; }
.foot-col h4 {
  font-size: 14px; color: #fff; font-weight: 600; margin-bottom: 14px;
}
.foot-col li { font-size: 12.5px; padding: 5px 0; }
.foot-col li a { transition: color .18s; }
.foot-col li a:hover { color: #fff; }
.foot-links {
  padding: 16px 0; font-size: 12px;
  border-bottom: 1px solid rgba(255,255,255,.1);
  display: flex; gap: 10px; flex-wrap: wrap; align-items: center;
}
.foot-links a { padding: 0 8px; border-right: 1px solid rgba(255,255,255,.18); }
.foot-links a:first-child { padding-left: 0; }
.foot-copy { padding-top: 18px; font-size: 12px; line-height: 2; text-align: center; }
.foot-copy .badges { display: flex; justify-content: center; gap: 12px; margin-top: 8px; }
.foot-copy .badges span {
  padding: 1px 8px; border: 1px solid rgba(255,255,255,.2); border-radius: 3px;
  font-size: 11px;
}

/* ============ 响应式 ============ */
@media (max-width: 1240px) {
  .wrap { padding: 0 20px; }
  .nav-item { padding: 0 13px; font-size: 14px; }
}
@media (max-width: 1024px) {
  .masthead .wrap { height: auto; padding: 16px 0; flex-wrap: wrap; gap: 20px; }
  .search { max-width: none; order: 3; width: 100%; }
  .hero .wrap { flex-direction: column; align-items: stretch; }
  .hero-ai { width: 100%; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-6 { grid-template-columns: repeat(3, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .nav-list { overflow-x: auto; }
  .dock { display: none; }
}
@media (max-width: 640px) {
  .grid-4, .grid-3, .grid-6 { grid-template-columns: 1fr; }
  .stats .wrap { grid-template-columns: repeat(2, 1fr); gap: 18px 0; }
  .foot-top { grid-template-columns: 1fr 1fr; }
  .hero h1 { font-size: 26px; }
}
