/*
 * 教务处首页样式（设计稿）
 * 仅 front page 加载，全部置于 body.jwc-home-page 作用域
 */
body.jwc-home-page{
  --jwc-red:#cf202f;
  --jwc-ink:#20232a;
  --jwc-muted:#777f89;
  --jwc-line:#edf0f3;
  --jwc-shadow:0 16px 38px rgba(15,23,42,.08);
  --jwc-radius:6px;
  color:var(--jwc-ink);
  background:#fff;
  line-height:1.6;
}

body.jwc-home-page a{text-decoration:none;color:inherit}
body.jwc-home-page img{display:block;max-width:100%}
body.jwc-home-page .container{width:min(1050px,calc(100% - 60px));margin:0 auto}

/*
 * Hero：严格按设计稿 min-height:370px
 * 必须覆盖父主题 .hero{height:100vh;min-height:760px}
 */
body.jwc-home-page .site-header .hero,
body.jwc-home-page .hero{
  height:auto !important;
  min-height:370px !important;
  max-height:none !important;
  display:block !important;
  align-items:initial !important;
  overflow:visible !important;
  background-size:cover !important;
  background-position:center !important;
  background-repeat:no-repeat !important;
  position:relative !important;
  color:#fff !important;
  padding:0 !important;
  margin:0 !important;
}
body.jwc-home-page .hero::before{
  display:none !important;
  content:none !important;
}
body.jwc-home-page .hero::after{
  content:"" !important;
  position:absolute !important;
  inset:auto 0 0 0 !important;
  height:90px !important;
  width:auto !important;
  background:linear-gradient(180deg,transparent,rgba(2,8,18,.38)) !important;
  pointer-events:none !important;
}
body.jwc-home-page .hero-inner{
  height:auto !important;
  min-height:370px !important;
  position:relative !important;
  z-index:1 !important;
  display:flex !important;
  align-items:center !important;
  justify-content:space-between !important;
  padding-top:60px !important;
  padding-bottom:0 !important;
  width:min(1050px,calc(100% - 60px)) !important;
  margin:0 auto !important;
  max-width:none !important;
}
body.jwc-home-page .hero-copy{
  padding-top:16px !important;
  max-width:620px !important;
  text-shadow:0 2px 20px rgba(0,0,0,.25) !important;
  position:relative !important;
  z-index:2 !important;
}
body.jwc-home-page .hero h1{
  font-size:42px !important;
  line-height:1.2 !important;
  letter-spacing:.05em !important;
  margin:0 0 16px !important;
  font-weight:800 !important;
  color:#fff !important;
  font-family:inherit !important;
  max-width:none !important;
}
body.jwc-home-page .hero p{
  margin:0 0 28px !important;
  font-size:16px !important;
  color:rgba(255,255,255,.94) !important;
  letter-spacing:.08em !important;
  max-width:none !important;
}
body.jwc-home-page .hero-actions{
  display:flex !important;
  gap:14px !important;
  flex-wrap:wrap !important;
  margin:0 !important;
  padding:0 !important;
}
body.jwc-home-page .hero .btn,
body.jwc-home-page .btn{
  min-width:108px !important;
  text-align:center !important;
  border-radius:4px !important;
  padding:13px 24px !important;
  background:#fff !important;
  color:#1e2735 !important;
  font-weight:700 !important;
  font-size:inherit !important;
  box-shadow:0 10px 24px rgba(0,0,0,.1) !important;
  transition:.22s !important;
  border:0 !important;
  line-height:1.2 !important;
}
body.jwc-home-page .hero .btn:hover,
body.jwc-home-page .btn:hover{
  transform:translateY(-2px) !important;
  box-shadow:0 14px 28px rgba(0,0,0,.16) !important;
}
body.jwc-home-page .hero .btn-primary,
body.jwc-home-page .btn-primary{
  background:var(--jwc-red) !important;
  color:#fff !important;
}

body.jwc-home-page .stat-card{
  position:absolute;
  right:0;
  bottom:35px;
  width:535px;
  display:grid;
  grid-template-columns:repeat(4,1fr);
  background:#fff;
  color:#20232a;
  border-radius:5px;
  box-shadow:0 16px 34px rgba(0,0,0,.16);
  overflow:hidden;
}
body.jwc-home-page .stat-card div{text-align:center;padding:17px 10px;position:relative}
body.jwc-home-page .stat-card div+div{border-left:1px solid #e4e6ea}
body.jwc-home-page .stat-card b{
  display:block;
  color:var(--jwc-red);
  font-size:18px;
  line-height:1;
  font-weight:800;
  margin-bottom:7px;
}
body.jwc-home-page .stat-card b::before{
  content:"";
  display:inline-block;
  width:17px;
  height:17px;
  margin-right:6px;
  vertical-align:-3px;
  background:currentColor;
  mask:radial-gradient(circle at 50% 32%,transparent 4px,#000 4.5px 8px,transparent 8.5px),linear-gradient(#000 0 0) center bottom/14px 8px no-repeat;
  -webkit-mask:radial-gradient(circle at 50% 32%,transparent 4px,#000 4.5px 8px,transparent 8.5px),linear-gradient(#000 0 0) center bottom/14px 8px no-repeat;
}
body.jwc-home-page .stat-card span{display:block;font-size:12px;color:#505762;font-weight:700}

body.jwc-home-page .section{padding:26px 0;background:#fff}
body.jwc-home-page .section.first-screen{padding-top:30px}
body.jwc-home-page .compact{padding-top:12px}
body.jwc-home-page .grid-2{display:grid;grid-template-columns:2fr 1fr;gap:34px;align-items:start}
body.jwc-home-page .panel{background:#fff;border-radius:var(--jwc-radius)}
body.jwc-home-page .section-title{display:flex;align-items:center;justify-content:space-between;margin-bottom:18px}
body.jwc-home-page .section-title h2{
  margin:0;
  font-size:23px;
  line-height:1.2;
  font-weight:800;
  letter-spacing:.04em;
  position:relative;
  padding-left:18px;
}
body.jwc-home-page .section-title h2::before{
  content:"";
  position:absolute;
  left:0;
  top:3px;
  bottom:3px;
  width:4px;
  border-radius:2px;
  background:var(--jwc-red);
}
body.jwc-home-page .section-title a,
body.jwc-home-page .more{color:#8c9299;font-weight:700;font-size:13px}

body.jwc-home-page .notice-list{display:grid;grid-template-columns:repeat(2,1fr);gap:22px}
body.jwc-home-page .notice-card{
  display:block;
  padding-bottom:16px;
  border-bottom:1px solid var(--jwc-line);
  transition:.25s;
  color:inherit;
}
body.jwc-home-page .notice-card:hover{transform:translateY(-3px)}
body.jwc-home-page .pic-wrap{position:relative;height:98px;overflow:hidden;border-radius:2px;background:#f0f2f5}
body.jwc-home-page .pic-wrap img{width:100%;height:100%;object-fit:cover;object-position:center;transition:.35s}
body.jwc-home-page .notice-card:hover img{transform:scale(1.035)}
body.jwc-home-page .date-flag{
  position:absolute;
  left:0;
  top:0;
  background:var(--jwc-red);
  color:#fff;
  width:40px;
  height:52px;
  text-align:center;
  font-weight:800;
  line-height:1.05;
  font-size:16px;
  padding-top:7px;
  letter-spacing:.03em;
}
body.jwc-home-page .notice-card h3{font-size:17px;line-height:1.55;margin:18px 0 8px;font-weight:800;color:#1f2530}
body.jwc-home-page .notice-card p{
  font-size:13px;
  color:#8a9098;
  margin:0 0 22px;
  line-height:1.8;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
}
body.jwc-home-page .meta{display:flex;gap:18px;color:#8b929b;font-size:13px;font-weight:600}

body.jwc-home-page .services{border-left:1px solid #eef0f3;padding-left:28px}
body.jwc-home-page .service-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:21px 22px;padding:5px 0 8px}
body.jwc-home-page .service-grid a{
  display:flex;
  align-items:center;
  gap:12px;
  min-height:38px;
  font-size:15px;
  font-weight:800;
  color:#2d333b;
  transition:.22s;
}
body.jwc-home-page .service-grid a:hover{color:var(--jwc-red);transform:translateX(2px)}

body.jwc-home-page .icon{width:28px;height:28px;color:var(--jwc-red);display:inline-block;position:relative;flex:0 0 auto}
body.jwc-home-page .icon::before,
body.jwc-home-page .icon::after{content:"";position:absolute;box-sizing:border-box}
body.jwc-home-page .icon-monitor::before{inset:5px 4px 8px;border:2px solid currentColor;border-radius:2px}
body.jwc-home-page .icon-monitor::after{width:14px;height:2px;background:currentColor;left:7px;bottom:4px}
body.jwc-home-page .icon-screen::before{inset:6px 4px 8px;border:2px solid currentColor;border-radius:2px}
body.jwc-home-page .icon-screen::after{width:10px;height:7px;border-left:2px solid currentColor;border-bottom:2px solid currentColor;left:10px;bottom:3px}
body.jwc-home-page .icon-user::before{width:9px;height:9px;border:2px solid currentColor;border-radius:50%;left:9px;top:4px}
body.jwc-home-page .icon-user::after{width:18px;height:10px;border:2px solid currentColor;border-bottom:0;border-radius:14px 14px 0 0;left:5px;bottom:5px}
body.jwc-home-page .icon-book::before{width:20px;height:18px;border:2px solid currentColor;border-radius:2px;left:4px;top:5px}
body.jwc-home-page .icon-book::after{width:2px;height:18px;background:currentColor;left:14px;top:5px}
body.jwc-home-page .icon-calendar::before{inset:5px 4px 4px;border:2px solid currentColor;border-radius:3px}
body.jwc-home-page .icon-calendar::after{left:8px;right:8px;height:2px;top:11px;background:currentColor}
body.jwc-home-page .icon-pen::before{width:18px;height:6px;border:2px solid currentColor;transform:rotate(-45deg);left:5px;top:12px}
body.jwc-home-page .icon-pen::after{width:13px;height:2px;background:currentColor;left:6px;bottom:5px}
body.jwc-home-page .icon-doc::before{inset:4px 6px 4px;border:2px solid currentColor;border-radius:2px}
body.jwc-home-page .icon-doc::after{width:8px;height:8px;border-top:2px solid currentColor;border-right:2px solid currentColor;right:6px;top:4px}
body.jwc-home-page .icon-file::before{inset:4px 6px 4px;border:2px solid currentColor;border-radius:2px}
body.jwc-home-page .icon-file::after{height:2px;background:currentColor;left:10px;right:10px;top:13px;box-shadow:0 5px 0 currentColor}
body.jwc-home-page .icon-people::before{width:8px;height:8px;border:2px solid currentColor;border-radius:50%;left:5px;top:6px;box-shadow:10px 0 0 -1px #fff,10px 0 0 1px currentColor}
body.jwc-home-page .icon-people::after{width:24px;height:10px;border:2px solid currentColor;border-bottom:0;border-radius:15px 15px 0 0;left:2px;bottom:5px}
body.jwc-home-page .icon-briefcase::before{inset:8px 3px 5px;border:2px solid currentColor;border-radius:2px}
body.jwc-home-page .icon-briefcase::after{width:10px;height:6px;border:2px solid currentColor;border-bottom:0;left:9px;top:4px}
body.jwc-home-page .icon-bag::before{inset:8px 4px 5px;border:2px solid currentColor;border-radius:2px}
body.jwc-home-page .icon-bag::after{width:10px;height:8px;border:2px solid currentColor;border-bottom:0;left:9px;top:4px;border-radius:6px 6px 0 0}
body.jwc-home-page .icon-heart::before{width:17px;height:17px;border-left:2px solid currentColor;border-bottom:2px solid currentColor;transform:rotate(-45deg);left:6px;top:7px}
body.jwc-home-page .icon-heart::after{width:8px;height:8px;border:2px solid currentColor;border-radius:50%;left:6px;top:4px;box-shadow:8px 0 0 -2px #fff,8px 0 0 0 currentColor}
body.jwc-home-page .icon-chart::before{inset:4px;border-left:2px solid currentColor;border-bottom:2px solid currentColor}
body.jwc-home-page .icon-chart::after{width:5px;height:13px;background:currentColor;left:9px;bottom:6px;box-shadow:7px -5px 0 currentColor,14px -10px 0 currentColor}

body.jwc-home-page .grid-dynamic{display:grid;grid-template-columns:1.55fr 1fr;gap:28px;align-items:start}
body.jwc-home-page .feature-news{
  position:relative;
  display:block;
  min-height:260px;
  border-radius:3px;
  overflow:hidden;
  background:#111;
  box-shadow:var(--jwc-shadow);
  color:#fff;
}
body.jwc-home-page .feature-news img{width:100%;height:260px;object-fit:cover;object-position:center;opacity:.82;transition:.35s}
body.jwc-home-page .feature-news:hover img{transform:scale(1.03);opacity:.92}
body.jwc-home-page .feature-news::after{content:"";position:absolute;inset:35% 0 0;background:linear-gradient(180deg,transparent,rgba(0,0,0,.78))}
body.jwc-home-page .feature-news .tag{position:absolute;top:18px;left:18px;background:var(--jwc-red);color:#fff;font-weight:800;border-radius:2px;font-size:13px;padding:4px 9px;z-index:1}
body.jwc-home-page .feature-copy{position:absolute;left:22px;right:22px;bottom:18px;color:#fff;z-index:1}
body.jwc-home-page .feature-copy h3{font-size:24px;margin:0 0 6px;letter-spacing:.05em;color:#fff}
body.jwc-home-page .feature-copy p{font-size:14px;margin:0 0 8px;color:rgba(255,255,255,.88)}
body.jwc-home-page .feature-copy time{font-size:14px;font-weight:700}

/* 右侧列表总高度对齐左侧图片 260px（上方 46px 对应左侧栏目标题区） */
body.jwc-home-page .dynamic-side{
  padding:46px 0 0 10px;
  position:relative;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  box-sizing:border-box;
  height:calc(46px + 260px);
}
body.jwc-home-page .dynamic-side .more{position:absolute;right:8px;top:5px}
body.jwc-home-page .thumb-row{
  display:grid;
  grid-template-columns:104px minmax(0,1fr);
  grid-template-rows:auto auto;
  column-gap:16px;
  flex:1 1 0;
  min-height:0;
  padding:0;
  margin:0;
  border-bottom:1px solid #edf0f3;
  align-items:center;
  color:inherit;
}
body.jwc-home-page .thumb-row:last-child{border-bottom:0}
body.jwc-home-page .thumb-row img{grid-row:1/3;width:104px;height:58px;object-fit:cover;object-position:center;border-radius:2px}
body.jwc-home-page .thumb-row b{
  font-size:16px;
  line-height:1.45;
  font-weight:800;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  min-width:0;
}
body.jwc-home-page .thumb-row span{color:#8d949b;font-size:13px;margin-top:3px}

body.jwc-home-page .card-row{display:grid;grid-template-columns:repeat(4,1fr);gap:24px}
body.jwc-home-page .card-row > a{display:block;color:inherit;min-width:0}
body.jwc-home-page .card-row article{border-bottom:1px solid #edf0f3;padding-bottom:14px;transition:.25s}
body.jwc-home-page .card-row article:hover{transform:translateY(-3px)}
body.jwc-home-page .card-row img{height:116px;width:100%;object-fit:cover;object-position:center;border-radius:3px}
body.jwc-home-page .card-row h3{
  font-size:16px;
  margin:13px 0 6px;
  line-height:1.5;
  font-weight:800;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
body.jwc-home-page .card-row time{color:#8d949b;font-size:13px;font-weight:600}

body.jwc-home-page .platform-wrap{padding-top:18px;padding-bottom:28px}
body.jwc-home-page .platform{
  background:linear-gradient(135deg,#be1d28,#d72a36);
  border-radius:8px;
  display:grid;
  grid-template-columns:210px 1fr;
  gap:22px;
  padding:30px;
  box-shadow:0 20px 42px rgba(203,32,47,.2);
}
body.jwc-home-page .platform-title{color:#fff}
body.jwc-home-page .platform-title h2{margin:0;font-size:28px;letter-spacing:.08em;color:#fff}
body.jwc-home-page .platform-title p{margin:8px 0 0;color:rgba(255,255,255,.86);font-size:14px}
body.jwc-home-page .platform-links{display:grid;grid-template-columns:repeat(5,1fr);gap:9px}
body.jwc-home-page .platform-links a{
  background:rgba(255,255,255,.92);
  border:1px solid rgba(255,255,255,.55);
  border-radius:4px;
  display:grid;
  grid-template-columns:38px 1fr;
  grid-template-rows:auto auto;
  align-items:center;
  padding:15px 10px;
  min-height:72px;
  transition:.25s;
  color:#20232a;
}
body.jwc-home-page .platform-links a:hover{background:#fff;transform:translateY(-3px)}
body.jwc-home-page .platform-links .icon{grid-row:1/3;width:34px;height:34px}
body.jwc-home-page .platform-links b{font-size:15px;line-height:1.15}
body.jwc-home-page .platform-links span{font-size:12px;color:#7a8087;margin-top:2px}

body.jwc-home-page .lower-section{padding-top:4px;padding-bottom:38px}
body.jwc-home-page .lower-grid{display:grid;grid-template-columns:1fr 1fr;gap:32px;align-items:stretch}
body.jwc-home-page .list-panel{
  border-top:1px solid #f1f2f4;
  padding:20px 4px 0;
  display:flex;
  flex-direction:column;
  height:100%;
  box-sizing:border-box;
}
body.jwc-home-page .file-list,
body.jwc-home-page .guide-list{
  list-style:none;
  padding:0;
  margin:0;
  flex:1 1 auto;
}
/* 左侧：4 条，行距略增以贴近右侧总高 */
body.jwc-home-page .file-list li{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  padding:12px 0;
  color:#6c747d;
}
body.jwc-home-page .file-list a{
  font-size:15px;
  font-weight:700;
  color:#4b535c;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  min-width:0;
  flex:1;
}
body.jwc-home-page .file-list time{color:#8b929a;font-size:13px;flex:0 0 auto}
body.jwc-home-page .file-icon{display:inline-grid;place-items:center;width:16px;height:20px;border-radius:2px;margin-right:10px;color:#fff;font-size:10px;font-weight:800}
body.jwc-home-page .file-icon.blue{background:#3b82f6}
body.jwc-home-page .file-icon.green{background:#36b37e}
body.jwc-home-page .file-icon.red{background:#e04f5f}
/* 右侧：保持设计稿样式与行距 */
body.jwc-home-page .guide-list li{
  display:flex;
  align-items:center;
  justify-content:space-between;
  border-bottom:1px solid #eff1f4;
  padding:12px 4px;
  color:#6c747d;
}
body.jwc-home-page .guide-list a{font-weight:700}
body.jwc-home-page .guide-list span{font-size:24px;color:#a1a7ad}

@media (max-width:960px){
  body.jwc-home-page .container{width:min(100% - 32px,760px)}
  /* 设计稿断点：hero 变高以容纳纵向排版 + 统计卡 */
  body.jwc-home-page .site-header .hero,
  body.jwc-home-page .hero,
  body.jwc-home-page .hero-inner{
    height:auto !important;
    min-height:520px !important;
  }
  body.jwc-home-page .hero-inner{
    align-items:flex-start !important;
    justify-content:center !important;
    flex-direction:column !important;
    padding-top:120px !important;
    width:min(100% - 32px,760px) !important;
  }
  body.jwc-home-page .hero h1{font-size:34px !important}
  body.jwc-home-page .stat-card{position:static !important;margin-top:36px !important;width:100% !important;grid-template-columns:repeat(2,1fr) !important}
  body.jwc-home-page .grid-2,
  body.jwc-home-page .grid-dynamic,
  body.jwc-home-page .lower-grid{grid-template-columns:1fr}
  body.jwc-home-page .services{border-left:0;padding-left:0}
  body.jwc-home-page .card-row{grid-template-columns:repeat(2,1fr)}
  body.jwc-home-page .platform{grid-template-columns:1fr}
  body.jwc-home-page .platform-links{grid-template-columns:repeat(2,1fr)}
  body.jwc-home-page .dynamic-side{padding:0;height:auto}
  body.jwc-home-page .dynamic-side .more{position:static;display:block;text-align:right;margin:-6px 0 16px}
  body.jwc-home-page .thumb-row{grid-template-columns:120px minmax(0,1fr);flex:none;padding:0 0 16px;margin-bottom:11px}
  body.jwc-home-page .thumb-row img{width:120px;height:68px}
}

@media (max-width:560px){
  body.jwc-home-page .container{width:calc(100% - 24px)}
  body.jwc-home-page .site-header .hero,
  body.jwc-home-page .hero,
  body.jwc-home-page .hero-inner{
    height:auto !important;
    min-height:610px !important;
  }
  body.jwc-home-page .hero-inner{width:calc(100% - 24px) !important}
  body.jwc-home-page .hero h1{font-size:30px !important}
  body.jwc-home-page .hero p{font-size:14px !important}
  body.jwc-home-page .btn{flex:1 1 130px}
  body.jwc-home-page .notice-list,
  body.jwc-home-page .card-row,
  body.jwc-home-page .platform-links{grid-template-columns:1fr}
  body.jwc-home-page .service-grid{gap:15px 10px}
  body.jwc-home-page .stat-card{grid-template-columns:1fr 1fr !important}
  body.jwc-home-page .platform{padding:24px 18px}
  body.jwc-home-page .platform-title h2{font-size:25px}
  body.jwc-home-page .thumb-row{grid-template-columns:96px minmax(0,1fr)}
  body.jwc-home-page .thumb-row img{width:96px;height:58px}
  body.jwc-home-page .file-list li{align-items:flex-start;flex-direction:column;gap:2px}
}
