:root {
  --course-orange: #e3722e;
  --course-orange-soft: #fff5ee;
  --course-ink: #3d4650;
  --course-muted: #6f7c87;
  --course-line: #e3e8ec;
  --course-soft: #f7f9fa;
}

/* Font Awesome 4.0.3 does not include the later file-type aliases. */
.fa-file-pdf-o:before,
.fa-file-powerpoint-o:before { content: "\f016"; }

html { scroll-behavior: smooth; }

body {
  color: var(--course-ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 14px;
  line-height: 1.7;
}

a { color: #b9551e; }
a:hover, a:focus { color: var(--course-orange); }

.top-header { padding: 5px 0; }
.main-header { padding: 32px 0; }
.main-header-shrink { padding: 20px 0; }
.main-header .logo { margin-top: 1px; }
.main-header .logo h1 { font-size: 23px; letter-spacing: .01em; text-transform: none; }
.main-header .menu ul li { margin-left: 7px; }
.main-header .menu ul li a { font-size: 13px; padding: 8px 12px; }

.flexslider { margin-top: 99px; background: #151d24; }
.flexslider .slides > li { position: relative; }
.flexslider .slides > li:after {
  position: absolute;
  inset: 0;
  content: "";
  background: rgba(8, 20, 30, .18);
  pointer-events: none;
}
.flex-caption { top: 24%; }
.flex-caption h2 { margin-bottom: 28px; font-size: 44px; text-shadow: 0 2px 14px rgba(0, 0, 0, .35); }
.flex-caption p.alg_home { margin: 6px auto; font-family: inherit; font-size: 18px; font-weight: 600; }
.flex-caption .alg_home_schedule { margin-top: 14px; font-size: 14px; font-weight: 400; opacity: .82; }

.course-section { padding: 72px 0 66px; scroll-margin-top: 90px; }
.soft-section { background: var(--course-soft); }
.title-section { margin-bottom: 44px; }
.title-section h2 { margin-bottom: 16px; color: #343b42; font-size: 25px; font-weight: 600; letter-spacing: .05em; }
.title-section span { height: 3px; background: var(--course-orange); }

.info-cards { display: flex; flex-wrap: wrap; }
.info-cards > [class*="col-"] { display: flex; }
.service-item {
  width: 100%;
  margin-bottom: 24px;
  padding: 25px 22px 22px;
  border: 1px solid var(--course-line);
  border-top: 3px solid var(--course-orange);
  border-radius: 4px;
  background: white;
  box-shadow: 0 5px 16px rgba(35, 48, 59, .045);
}
.service-item .service-header { padding-bottom: 4px; }
.service-item .widget-title { margin-bottom: 20px; color: #3d4650; font-size: 17px; }
.service-item .widget-title i { width: 24px; margin-right: 7px; color: var(--course-orange); }
.alg_content { margin-bottom: 13px; color: #4f5b65; font-size: 13px; font-weight: 600; line-height: 1.65; text-align: left; }
.alg_content a { word-break: break-word; }
.assistant-list .alg_content { padding-bottom: 10px; border-bottom: 1px solid #edf0f2; }
.assistant-list .alg_content:last-child { padding-bottom: 0; border-bottom: 0; }
.assistant-list a { color: #8b5b42; font-size: 11px; font-weight: 400; }

.schedule-class { margin-bottom: 14px; padding-bottom: 12px; border-bottom: 1px solid #edf0f2; }
.schedule-class strong { display: inline-block; margin-right: 7px; color: #343b42; }
.schedule-class span { color: var(--course-orange); font-size: 10px; font-weight: 700; }
.schedule-class p { margin: 3px 0 0; color: var(--course-muted); font-size: 11px; line-height: 1.55; }
.room-line { margin: 0; color: #343b42; font-weight: 700; }
.room-line i { margin-right: 6px; color: var(--course-orange); }

.news-box {
  max-width: 860px;
  margin: 0 auto;
  padding: 26px 34px;
  border: 1px solid #f0d9cb;
  border-left: 4px solid var(--course-orange);
  border-radius: 4px;
  background: white;
  text-align: center;
}
.news-box > i { margin-bottom: 9px; color: var(--course-orange); font-size: 22px; }
.news-box .alg_content { margin-bottom: 8px; text-align: center; }
.group-number { margin: 0; color: #343b42; font-size: 18px; }
.group-number strong { color: var(--course-orange); font-size: 13px; }
.group-number span { display: inline-block; height: 16px; margin: 0 22px; border-left: 1px solid #ccd3d8; vertical-align: middle; }

.section-note { margin: -28px 0 26px; color: var(--course-muted); font-size: 12px; }
.resource-list { max-width: 960px; margin: 0 auto; }
.resource-list .alg_content {
  display: flex;
  align-items: center;
  margin-bottom: 12px;
  padding: 15px 18px;
  border: 1px solid var(--course-line);
  border-radius: 4px;
  background: white;
}
.resource-list .alg_content i { margin-right: 12px; color: var(--course-orange); font-size: 17px; }
.resource-list .alg_content a { color: #4b5862; }
.resource-list .alg_content:hover { border-color: #e6b697; box-shadow: 0 4px 12px rgba(35, 48, 59, .05); }
.resource-list .alg_content:hover a { color: var(--course-orange); }
.resource-group-row + .resource-group-row { margin-top: 24px; }
.resource-group-title {
  margin: 0 0 14px;
  padding: 0 2px 10px;
  border-bottom: 1px solid var(--course-line);
  color: var(--course-navy);
  font-size: 16px;
  font-weight: 700;
}

.course-library { max-width: 1080px; margin: 0 auto; }
.material-row { display: flex; flex-wrap: wrap; }
.material-row > [class*="col-"] { display: flex; }
.material-card {
  width: 100%;
  margin-bottom: 24px;
  overflow: hidden;
  border: 1px solid var(--course-line);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 6px 20px rgba(20, 43, 59, .055);
}
.material-card-header {
  display: flex;
  align-items: center;
  min-height: 82px;
  padding: 18px 20px;
  border-bottom: 1px solid #edf1f4;
  background: linear-gradient(135deg, #fff 0%, #f8fafb 100%);
}
.material-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  margin-right: 13px;
  border-radius: 11px;
  color: var(--course-orange);
  background: var(--course-orange-soft);
  font-size: 16px;
}
.material-card-header h3 {
  margin: 0 0 4px;
  color: var(--course-navy);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.25;
}
.material-card-header p { margin: 0; color: var(--course-muted); font-size: 11px; line-height: 1.4; }
.material-count {
  flex: 0 0 auto;
  margin-left: auto;
  padding: 4px 8px;
  border-radius: 10px;
  color: #8b5c3d;
  background: #fff0e5;
  font-size: 10px;
  font-weight: 700;
}
.material-list {
  margin: 0;
  padding: 8px 16px 12px;
  list-style: none;
  counter-reset: material;
}
.material-list li { counter-increment: material; border-bottom: 1px solid #eef2f4; }
.material-list li:last-child { border-bottom: 0; }
.material-list a {
  display: flex;
  align-items: center;
  min-height: 43px;
  padding: 8px 5px;
  color: #435563;
  line-height: 1.35;
  transition: color .18s ease, transform .18s ease;
}
.material-list a:before {
  content: counter(material, decimal-leading-zero);
  width: 25px;
  flex: 0 0 25px;
  color: #a5afb6;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .04em;
}
.material-list a span { padding-right: 8px; }
.material-list a small {
  margin-left: auto;
  padding: 3px 6px;
  border-radius: 5px;
  color: #89959d;
  background: #f0f3f5;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .05em;
}
.material-list a:hover { color: var(--course-orange-deep); transform: translateX(2px); }
.material-list a:hover:before { color: var(--course-orange); }
.material-card-wide .material-card-header { padding-right: 24px; padding-left: 24px; }
.material-list-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding: 14px 18px 18px;
}
.material-list-grid li { border: 0; }
.material-list-grid a {
  height: 100%;
  min-height: 50px;
  padding: 9px 10px;
  border: 1px solid #edf1f3;
  border-radius: 8px;
  background: #fbfcfc;
}
.material-list-grid a:hover { border-color: #efc9ae; background: #fffaf7; }
.material-list-two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.review-card { margin-bottom: 0; }
.review-card .material-card-header { min-height: 74px; }
.review-list a { min-height: 48px; }

.homework-panel {
  height: 100%;
  padding: 27px 28px 20px;
  border: 1px solid var(--course-line);
  border-radius: 4px;
  background: white;
}
.homework-grid { display: flex; flex-wrap: wrap; }
.homework-grid > [class*="col-"] { display: flex; }
.homework-panel .widget-title { padding-bottom: 12px; border-bottom: 1px solid #edf0f2; }
.homework-panel .alg_content i { width: 22px; color: var(--course-orange); }
.homework-details {
  margin-top: 12px;
  padding-top: 14px;
  border-top: 1px solid #edf0f2;
}
.homework-title {
  margin: 0 0 9px;
  color: var(--course-navy);
  font-weight: 700;
}
.homework-title i { width: 22px; color: var(--course-orange); }
.homework-task-list { margin: 0; padding-left: 40px; color: #53636f; }
.homework-task-list li { padding: 3px 0 3px 2px; line-height: 1.55; }
.homework-task-list li::marker { color: var(--course-orange); font-weight: 700; }
.homework-resources { margin-top: 18px; }
.homework-resources a {
  display: flex;
  align-items: center;
  margin-top: 9px;
  padding: 11px 13px;
  border: 1px solid var(--course-line);
  border-radius: 8px;
  color: #4b5862;
  background: #fff;
}
.homework-resources a:hover { border-color: #e6b697; color: var(--course-orange); }
.homework-resources a i { width: 25px; color: var(--course-orange); }
.site-footer { margin-top: 0; padding: 22px 0; }
.site-footer p { margin: 6px 0 0; color: rgba(255, 255, 255, .78); font-size: 12px; }

@media (max-width: 991px) {
  .main-header { padding: 15px 0; }
  .main-header .logo { margin-top: 12px; }
  .flexslider { margin-top: 84px; }
  .info-cards > [class*="col-"] { display: flex; }
  .service-item { margin-bottom: 24px; }
  .material-list-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 767px) {
  .main-header .logo { margin-top: 0; }
  .main-header .logo h1 { font-size: 17px; line-height: 1.25; }
  .responsive-menu { top: -23px; }
  .course-section { padding: 58px 0 48px; }
  .info-cards > [class*="col-"] { display: block; width: 100%; }
  .title-section { margin-bottom: 34px; }
  .title-section h2 { font-size: 22px; }
  .group-number span { display: block; height: 1px; width: 45px; margin: 10px auto; border: 0; border-top: 1px solid #ccd3d8; }
  .news-box { padding: 23px 18px; }
  .resource-group + .resource-group { margin-top: 24px; }
  .material-row { display: block; }
  .material-row > [class*="col-"] { display: block; }
  .material-card-header { min-height: 76px; padding: 15px 16px; }
  .material-card-wide .material-card-header { padding: 15px 16px; }
  .material-card-header h3 { font-size: 15px; }
  .material-list { padding-right: 13px; padding-left: 13px; }
  .material-list-grid { display: block; padding-top: 8px; }
  .material-list-grid li { border-bottom: 1px solid #eef2f4; }
  .material-list-grid li:last-child { border-bottom: 0; }
  .material-list-grid a { min-height: 43px; padding: 8px 5px; border: 0; background: transparent; }
  .homework-grid > [class*="col-"] { display: block; width: 100%; margin-bottom: 18px; }
}

/* Polished visual pass — the original page layout remains unchanged. */
:root {
  --course-orange: #e86f2b;
  --course-orange-deep: #c8561d;
  --course-orange-soft: #fff1e7;
  --course-navy: #142b3b;
  --course-navy-light: #23455a;
  --course-ink: #253746;
  --course-muted: #71808c;
  --course-line: #e6ebef;
  --course-soft: #f5f7f9;
  --course-shadow-sm: 0 5px 16px rgba(20, 43, 59, .06);
  --course-shadow-md: 0 14px 34px rgba(20, 43, 59, .10);
}

body {
  color: var(--course-ink);
  background: #fff;
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
}

.top-header {
  height: 7px;
  padding: 0;
  background: linear-gradient(90deg, var(--course-orange-deep), #f19351 58%, var(--course-orange));
}
.top-header br { display: none; }

.main-header {
  padding: 24px 0 22px;
  border-bottom: 1px solid rgba(20, 43, 59, .08);
  background: rgba(255, 255, 255, .97);
  box-shadow: 0 6px 24px rgba(20, 43, 59, .08);
  backdrop-filter: blur(10px);
}
.main-header-shrink { top: 0; padding: 13px 0 12px; }
.main-header .logo { margin-top: 3px; }
.main-header .logo h1 {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.25;
}
.main-header .logo h1 a { color: var(--course-navy); }
.main-header .menu { margin-top: 6px; }
.main-header .menu ul li { margin-left: 5px; }
.main-header .menu ul li a {
  padding: 8px 13px;
  border-radius: 8px;
  color: #5d6973;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .035em;
}
.main-header .menu ul li a:hover { color: var(--course-orange); background: var(--course-orange-soft); }
.main-header .menu ul li a.current {
  color: #fff;
  background: linear-gradient(135deg, var(--course-orange), #d95f22);
  box-shadow: 0 5px 14px rgba(232, 111, 43, .24);
}

.responsive-menu .toggle-menu { color: var(--course-orange); }
.responsive-menu .menu {
  overflow: hidden;
  border-radius: 10px;
  background: var(--course-navy);
  box-shadow: var(--course-shadow-md);
}
.responsive-menu .menu ul li { border-bottom-color: rgba(255, 255, 255, .1); }
.responsive-menu .menu ul li a.current { background: var(--course-orange); }

.flexslider { margin-top: 75px; background: #111d25; }
.flexslider .slides > li { position: relative; }
.flexslider .slides > li:after {
  position: absolute;
  inset: 0;
  z-index: 1;
  content: "";
  background: linear-gradient(90deg, rgba(8, 22, 31, .56), rgba(8, 22, 31, .25) 52%, rgba(8, 22, 31, .48));
  pointer-events: none;
}
.flex-caption { top: 22%; }
.flex-caption h2 {
  position: relative;
  margin-bottom: 38px;
  font-size: 43px;
  font-weight: 700;
  letter-spacing: .055em;
  line-height: 1.18;
  text-shadow: 0 4px 22px rgba(0, 0, 0, .38);
}
.flex-caption h2:after {
  position: absolute;
  bottom: -18px;
  left: 50%;
  width: 54px;
  height: 3px;
  content: "";
  transform: translateX(-50%);
  border-radius: 4px;
  background: var(--course-orange);
}
.flex-caption p.alg_home {
  margin: 5px auto;
  color: rgba(255, 255, 255, .96);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: .01em;
  text-shadow: 0 2px 10px rgba(0, 0, 0, .32);
}
.flex-caption .alg_home_schedule {
  display: inline-block;
  margin-top: 14px;
  padding: 6px 15px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 999px;
  background: rgba(8, 22, 31, .28);
  font-size: 12px;
  font-weight: 400;
  backdrop-filter: blur(4px);
}

.course-section { padding: 78px 0 72px; scroll-margin-top: 82px; }
.soft-section { background: var(--course-soft); }
.title-section { margin-bottom: 46px; }
.title-section h2 {
  margin-bottom: 17px;
  color: var(--course-navy);
  font-size: 25px;
  font-weight: 700;
  letter-spacing: .075em;
}
.title-section span {
  width: 52px;
  height: 3px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--course-orange), #f4a064);
}

.service-item {
  position: relative;
  overflow: hidden;
  padding: 27px 23px 23px;
  border: 1px solid var(--course-line);
  border-top: 1px solid var(--course-line);
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--course-shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.service-item:before {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  content: "";
  background: linear-gradient(90deg, var(--course-orange), #f5a66d);
}
.service-item:hover {
  transform: translateY(-4px);
  border-color: #f0d1bd;
  box-shadow: var(--course-shadow-md);
}
.service-item .widget-title {
  display: flex;
  align-items: center;
  margin-bottom: 21px;
  color: var(--course-navy);
  font-size: 17px;
  font-weight: 700;
}
.service-item .widget-title i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  margin-right: 10px;
  border-radius: 10px;
  color: var(--course-orange);
  background: var(--course-orange-soft);
  font-size: 15px;
}
.alg_content { color: #53636f; line-height: 1.7; }
.info-cards > div:first-child .alg_content {
  margin-bottom: 9px;
  padding: 10px 12px;
  border-radius: 8px;
  background: #f8fafb;
}
.info-cards > div:first-child .alg_content a { color: var(--course-navy-light); }
.info-cards > div:first-child .alg_content:hover { background: var(--course-orange-soft); }
.info-cards > div:first-child .alg_content:hover a { color: var(--course-orange-deep); }

.assistant-list .alg_content { margin: 0; padding: 11px 2px; border-bottom: 1px solid #edf1f3; }
.assistant-list .alg_content:first-child { padding-top: 2px; }
.assistant-list .alg_content:last-child { padding-bottom: 0; border-bottom: 0; }
.assistant-list a { color: #9a6347; font-weight: 400; }

.schedule-class { margin-bottom: 13px; padding-bottom: 12px; border-bottom: 1px solid #edf1f3; }
.schedule-class strong {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  margin-right: 6px;
  padding: 2px 7px;
  border-radius: 6px;
  color: #fff;
  background: var(--course-navy-light);
  font-size: 11px;
}
.schedule-class span { color: var(--course-orange-deep); font-weight: 700; }
.schedule-class p { margin-top: 5px; color: var(--course-muted); }
.room-line {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: 7px;
  color: var(--course-navy);
  background: var(--course-orange-soft);
  font-weight: 700;
}
.room-line i { margin-right: 7px; color: var(--course-orange); }

.news-box {
  position: relative;
  overflow: hidden;
  padding: 31px 35px;
  border: 0;
  border-radius: 15px;
  color: #fff;
  background: linear-gradient(135deg, var(--course-navy), var(--course-navy-light));
  box-shadow: 0 16px 34px rgba(20, 43, 59, .16);
}
.news-box:after {
  position: absolute;
  right: -42px;
  bottom: -64px;
  width: 170px;
  height: 170px;
  content: "";
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: 50%;
  box-shadow: 0 0 0 30px rgba(255, 255, 255, .025);
}
.news-box > i { color: #ffad76; }
.news-box .alg_content { margin-bottom: 12px; color: rgba(255, 255, 255, .78); }
.group-number { position: relative; z-index: 1; color: #fff; font-size: 20px; letter-spacing: .035em; }
.group-number strong {
  display: inline-block;
  margin-right: 6px;
  padding: 3px 8px;
  border-radius: 5px;
  color: #ffd1b1;
  background: rgba(255, 255, 255, .08);
  font-size: 11px;
}
.group-number span { border-left-color: rgba(255, 255, 255, .2); }

.section-note { color: var(--course-muted); }
.resource-list .alg_content {
  padding: 15px 17px;
  border: 1px solid var(--course-line);
  border-radius: 11px;
  box-shadow: 0 3px 10px rgba(20, 43, 59, .035);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.resource-list .alg_content i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  margin-right: 12px;
  border-radius: 9px;
  color: var(--course-orange);
  background: var(--course-orange-soft);
  font-size: 14px;
}
.resource-list .alg_content a { color: #495d6b; }
.resource-list .alg_content:hover { transform: translateY(-2px); border-color: #efc5a8; box-shadow: var(--course-shadow-sm); }
.resource-list .alg_content:hover a { color: var(--course-orange-deep); }

.homework-panel {
  width: 100%;
  padding: 29px 30px 23px;
  border: 1px solid var(--course-line);
  border-radius: 14px;
  box-shadow: var(--course-shadow-sm);
}
.homework-panel .widget-title { color: var(--course-navy); font-weight: 700; }
.site-footer { background: var(--course-navy); }
.site-footer p { color: rgba(255, 255, 255, .65); font-size: 11px; letter-spacing: .03em; }
.site-footer a { color: rgba(255, 255, 255, .78); }
.site-footer a:hover { color: #ffad76; }

@media (max-width: 991px) {
  .main-header { padding: 14px 0 13px; }
  .main-header .logo { margin-top: 10px; }
  .flexslider { margin-top: 70px; }
}

@media (max-width: 767px) {
  .top-header { height: 6px; }
  .main-header { height: 60px; padding: 13px 0 10px; }
  .main-header .logo { margin-top: 0; }
  .main-header .logo h1 { font-size: 15px; letter-spacing: -.025em; white-space: nowrap; }
  .responsive-menu { top: -25px; }
  .responsive-menu .menu { top: 39px; }
  .flexslider { margin-top: 60px; }
  .course-section { padding: 60px 0 50px; }
  .title-section { margin-bottom: 35px; }
  .title-section h2 { font-size: 21px; }
  .service-item { padding: 25px 22px 21px; border-radius: 12px; }
  .news-box { padding: 27px 19px; border-radius: 12px; }
  .group-number span { border-top-color: rgba(255, 255, 255, .2); }
  .resource-list .alg_content { padding: 13px 14px; }
  .homework-panel { padding: 25px 22px 20px; border-radius: 12px; }
}
