/*
 * 雅途考试平台 H5 2026 网页改版
 * 基于现有 uni-app 页面提供统一网页框架、信息层级和多端布局。
 */
:root {
  --yatu-brand: #1769e0;
  --yatu-brand-dark: #0b4fb3;
  --yatu-brand-soft: #eaf3ff;
  --yatu-navy: #14243a;
  --yatu-text: #34475e;
  --yatu-muted: #718197;
  --yatu-line: #dfe8f3;
  --yatu-canvas: #f4f8fc;
  --yatu-white: #fff;
  --yatu-green: #159769;
  --yatu-orange: #e48525;
  --yatu-header-height: 72px;
  --yatu-sidebar-width: 92px;
  --yatu-content-width: 1180px;
  --yatu-radius: 18px;
  --yatu-shadow: 0 12px 35px rgba(30, 67, 110, .09);
  --yatu-shadow-hover: 0 20px 50px rgba(30, 67, 110, .14);
}

.web-archived-hidden { display: none !important; }

/* 桌面网站顶栏 */
.web-site-header {
  display: none;
  position: fixed;
  z-index: 40000;
  top: 0;
  right: 0;
  left: 0;
  height: var(--yatu-header-height);
  border-bottom: 1px solid rgba(215, 227, 240, .94);
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 8px 30px rgba(31, 66, 105, .05);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.web-site-header__inner {
  width: min(calc(100% - 40px), 1440px);
  height: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 30px;
}

.web-site-brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 11px;
  color: var(--yatu-navy);
  text-decoration: none;
}

.web-site-brand__mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(145deg, #2785ef, #0956c4);
  box-shadow: 0 8px 20px rgba(23, 105, 224, .24);
  font-size: 20px;
  font-weight: 800;
}

.web-site-brand strong,
.web-site-brand small { display: block; }
.web-site-brand strong { font-size: 16px; letter-spacing: .04em; }
.web-site-brand small { margin-top: 1px; color: #7c8b9d; font-size: 10px; letter-spacing: .12em; }

.web-site-nav {
  display: flex;
  align-items: center;
  align-self: stretch;
  gap: 4px;
  margin-left: auto;
}

.web-site-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 15px;
  border-radius: 10px;
  color: #53657b;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: color .18s ease, background-color .18s ease;
}

.web-site-nav a:hover,
.web-site-nav a.is-active {
  color: var(--yatu-brand);
  background: var(--yatu-brand-soft);
}

.web-site-header__action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 18px;
  border-radius: 10px;
  color: #fff;
  background: linear-gradient(135deg, var(--yatu-brand), var(--yatu-brand-dark));
  box-shadow: 0 9px 20px rgba(23, 105, 224, .2);
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
}

/* 首页欢迎区 */
.web-home-hero {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 30px;
  width: 100%;
  margin: 0 0 18px;
  padding: 34px 38px;
  border: 1px solid rgba(202, 221, 243, .9);
  border-radius: 24px;
  color: var(--yatu-navy);
  background:
    radial-gradient(circle at 88% 16%, rgba(74, 164, 255, .24), transparent 18rem),
    linear-gradient(145deg, #f8fbff 0%, #eaf3ff 58%, #f8fbff 100%);
  box-shadow: var(--yatu-shadow);
}

.web-home-hero::after {
  content: "";
  position: absolute;
  right: -54px;
  bottom: -100px;
  width: 260px;
  height: 260px;
  border: 44px solid rgba(23, 105, 224, .06);
  border-radius: 50%;
}

.web-home-hero__copy,
.web-home-hero__stats { position: relative; z-index: 1; }
.web-home-hero__eyebrow { color: var(--yatu-brand); font-size: 12px; font-weight: 800; letter-spacing: .18em; }
.web-home-hero h1 { margin: 11px 0 12px; color: var(--yatu-navy); font-size: clamp(28px, 3vw, 42px); line-height: 1.22; letter-spacing: -.035em; }
.web-home-hero h1 em { color: var(--yatu-brand); font-style: normal; }
.web-home-hero p { max-width: 650px; margin: 0; color: #61758c; font-size: 15px; line-height: 1.8; }
.web-home-hero__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 23px; }
.web-home-hero__actions a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 19px; border-radius: 11px; text-decoration: none; font-size: 14px; font-weight: 700; }
.web-home-hero__primary { color: #fff; background: linear-gradient(135deg, var(--yatu-brand), var(--yatu-brand-dark)); box-shadow: 0 10px 22px rgba(23,105,224,.22); }
.web-home-hero__secondary { border: 1px solid #c9dbef; color: #35506e; background: rgba(255,255,255,.8); }

.web-home-hero__stats {
  display: grid;
  align-content: center;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.web-home-stat {
  min-width: 0;
  padding: 20px 10px;
  border: 1px solid rgba(255,255,255,.9);
  border-radius: 16px;
  background: rgba(255,255,255,.76);
  box-shadow: 0 8px 22px rgba(40, 78, 120, .07);
  text-align: center;
}
.web-home-stat span { display: grid; place-items: center; width: 38px; height: 38px; margin: 0 auto 10px; border-radius: 12px; color: #fff; background: linear-gradient(145deg,#368cf0,#1769e0); font-size: 17px; font-weight: 800; }
.web-home-stat strong { display: block; color: #24415f; font-size: 14px; }
.web-home-stat small { display: block; margin-top: 4px; color: #8190a1; font-size: 11px; }

/* 非首页页面说明条 */
.web-page-intro {
  width: min(100%, var(--yatu-content-width));
  margin: 0 auto 16px;
  padding: 18px 22px;
  border: 1px solid var(--yatu-line);
  border-radius: 16px;
  background: rgba(255,255,255,.92);
  box-shadow: 0 7px 24px rgba(30,67,110,.06);
}
.web-page-intro__eyebrow { color: var(--yatu-brand); font-size: 11px; font-weight: 800; letter-spacing: .14em; }
.web-page-intro h1 { margin: 5px 0 4px; color: var(--yatu-navy); font-size: 22px; line-height: 1.3; }
.web-page-intro p { margin: 0; color: var(--yatu-muted); font-size: 13px; line-height: 1.65; }

/* 首页内容重排 */
body[data-h5-route="pages/index/index"] .page-index-list > .tn-flex.tn-flex-col-center.tn-flex-row-between {
  min-height: 54px;
  margin-bottom: 12px;
  padding: 0 18px !important;
  border: 1px solid var(--yatu-line);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 6px 20px rgba(30,67,110,.05);
}

body[data-h5-route="pages/index/index"] .page-index-list > .tn-flex .tn-text-bold {
  color: #28445f;
  font-size: 15px !important;
}

body[data-h5-route="pages/index/index"] .cu-bar.search {
  margin: 0 0 18px;
  padding: 9px 10px 9px 15px;
  border-color: #d8e5f2;
  box-shadow: 0 8px 25px rgba(30,67,110,.06);
}

body[data-h5-route="pages/index/index"] .template-course {
  margin-bottom: 40px !important;
}

body[data-h5-route="pages/index/index"] .template-course > uni-view > .about-shadow,
body[data-h5-route="pages/index/index"] .template-course > uni-view > .tui-rolling-news {
  margin-right: 0 !important;
  margin-left: 0 !important;
}

body[data-h5-route="pages/index/index"] .template-course > uni-view > .about-shadow.tn-flex {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 12px;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body[data-h5-route="pages/index/index"] .classify-item-box {
  width: auto !important;
  min-width: 0;
}

body[data-h5-route="pages/index/index"] .classify-item-box > uni-view {
  min-height: 106px;
  margin: 0 !important;
  padding: 16px 12px !important;
  border: 1px solid var(--yatu-line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 7px 22px rgba(30,67,110,.06);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

body[data-h5-route="pages/index/index"] .classify-item-box .icon15__item--icon {
  width: 48px !important;
  height: 48px !important;
  margin-bottom: 9px;
  border-radius: 14px !important;
  background: linear-gradient(145deg,#368cf0,#1769e0) !important;
  box-shadow: 0 8px 18px rgba(23,105,224,.18) !important;
}

body[data-h5-route="pages/index/index"] .classify-item-box:nth-child(1) .icon15__item--icon { background: linear-gradient(145deg,#28ad7c,#13865f) !important; }
body[data-h5-route="pages/index/index"] .classify-item-box:nth-child(3) .icon15__item--icon { background: linear-gradient(145deg,#f2a048,#d97817) !important; }

body[data-h5-route="pages/index/index"] .classify-item-box uni-text { color: #304860; font-weight: 700; }

body[data-h5-route="pages/index/index"] .tui-rolling-news {
  display: grid !important;
  grid-template-columns: auto 1fr;
  align-items: center;
  width: 100% !important;
  min-height: 68px !important;
  height: 68px !important;
  margin: 0 0 18px !important;
  padding: 0 18px !important;
  border: 1px solid #d5e4f4 !important;
  border-radius: 14px !important;
  background: #f4f8ff !important;
  box-shadow: none !important;
  overflow: hidden;
}

body[data-h5-route="pages/index/index"] .tui-rolling-news .tui-swiper,
body[data-h5-route="pages/index/index"] .tui-rolling-news uni-swiper,
body[data-h5-route="pages/index/index"] .tui-rolling-news .uni-swiper-wrapper {
  width: 100% !important;
  height: 54px !important;
  min-height: 54px !important;
}
body[data-h5-route="pages/index/index"] .tui-rolling-news .tui-swiper-item { display: flex; align-items: center; color: #526b86; }

body[data-h5-route="pages/index/index"] .template-course > uni-view > .about-shadow.tn-margin-bottom {
  overflow: hidden;
  margin-bottom: 18px !important;
  padding: 6px 8px 12px;
  border-radius: 18px !important;
}

body[data-h5-route="pages/index/index"] .template-course > uni-view > .about-shadow.tn-margin-bottom > .tn-flex:first-child {
  min-height: 58px;
  padding: 10px 14px !important;
  border-bottom: 1px solid #edf2f7;
}

body[data-h5-route="pages/index/index"] .skill-sequence-panel-content-wrapper > .tn-flex {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 10px;
}

body[data-h5-route="pages/index/index"] .skill-sequence-panel-content-wrapper > .tn-flex > uni-view {
  width: auto !important;
  min-width: 0;
}

body[data-h5-route="pages/index/index"] .tn-blogger-content__wrap {
  height: 100%;
  min-height: 175px;
  margin: 0 !important;
  padding: 18px !important;
  border: 1px solid #e0e9f3;
  border-radius: 15px !important;
  background: #fff !important;
  box-shadow: 0 7px 22px rgba(30,67,110,.06) !important;
}

body[data-h5-route="pages/index/index"] .tn-blogger-content__wrap .tn-text-bold { color: #263f5a; line-height: 1.55; }

/* 列表与卡片统一 */
.paper-contains .article-shadow,
.message .wallpaper-shadow,
.question-card,
.card-view,
.user-info-view,
.member-view {
  border-color: var(--yatu-line) !important;
  background: #fff !important;
  box-shadow: 0 7px 24px rgba(30,67,110,.06) !important;
}

.paper-contains .article-shadow,
.message .wallpaper-shadow {
  margin-bottom: 13px !important;
  padding: 17px !important;
}

.paper-contains .article-shadow .tn-text-bold,
.message .wallpaper-shadow .tn-text-bold { color: #29435e; }

/* 左侧导航去除已停用入口后按四项均分 */
.index-bottom > uni-navigator,
.footerfixed.tabbar .action {
  flex: 1 1 0;
}

/* 人性化空状态和按钮 */
.tn-empty__tips,
.tui-empty-text,
.empty-text { color: var(--yatu-muted) !important; }

[class*="btn"],
.cu-btn,
uni-button {
  transition: transform .16s ease, box-shadow .16s ease, opacity .16s ease;
}

@media (hover: hover) and (pointer: fine) {
  .web-home-hero__actions a:hover,
  .web-site-header__action:hover,
  .classify-item-box > uni-view:hover,
  .tn-blogger-content__wrap:hover {
    transform: translateY(-2px);
    box-shadow: var(--yatu-shadow-hover) !important;
  }
}

/* 手机 */
@media (max-width: 767px) {
  .web-home-hero {
    display: block;
    margin: 8px 10px 14px;
    width: calc(100% - 20px);
    padding: 24px 20px;
    border-radius: 19px;
  }
  .web-home-hero h1 { font-size: 27px; }
  .web-home-hero p { font-size: 14px; }
  .web-home-hero__stats { margin-top: 20px; }
  .web-home-stat { padding: 14px 6px; }
  .web-home-stat span { width: 34px; height: 34px; }
  .web-home-stat small { display: none; }
  .web-home-hero__actions a { flex: 1 1 0; padding: 0 10px; }

  .web-page-intro {
    width: calc(100% - 20px);
    margin: 8px 10px 12px;
    padding: 14px 16px;
    border-radius: 14px;
  }
  .web-page-intro h1 { font-size: 18px; }

  body[data-h5-route="pages/index/index"] .page-index-list > .tn-flex.tn-flex-col-center.tn-flex-row-between,
  body[data-h5-route="pages/index/index"] .cu-bar.search { margin-right: 10px; margin-left: 10px; }

  body[data-h5-route="pages/index/index"] .template-course > uni-view > .about-shadow.tn-flex {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    padding: 8px 10px;
  }
  body[data-h5-route="pages/index/index"] .classify-item-box > uni-view { min-height: 96px; padding: 13px 5px !important; }
  body[data-h5-route="pages/index/index"] .classify-item-box .icon15__item--icon { width: 43px !important; height: 43px !important; }

  body[data-h5-route="pages/index/index"] .tui-rolling-news {
    width: calc(100% - 20px) !important;
    margin: 0 10px 14px !important;
    padding: 0 12px !important;
  }

  body[data-h5-route="pages/index/index"] .template-course > uni-view > .about-shadow.tn-margin-bottom {
    margin-right: 10px !important;
    margin-left: 10px !important;
  }

  body[data-h5-route="pages/index/index"] .skill-sequence-panel-content-wrapper > .tn-flex {
    display: block !important;
    padding: 8px;
  }

  body[data-h5-route="pages/index/index"] .skill-sequence-panel-content-wrapper > .tn-flex > uni-view { margin-bottom: 10px; }
  body[data-h5-route="pages/index/index"] .tn-blogger-content__wrap { min-height: 0; }
}

/* 平板 */
@media (min-width: 768px) and (max-width: 1023px) {
  .web-home-hero { margin-top: 12px; grid-template-columns: 1fr; }
  .web-home-hero__stats { grid-template-columns: repeat(3, 1fr); }
  body[data-h5-route="pages/index/index"] .skill-sequence-panel-content-wrapper > .tn-flex { grid-template-columns: repeat(2, minmax(0,1fr)); }
}

/* 桌面 */
@media (min-width: 1024px) {
  .web-site-header { display: block; }

  uni-app { padding-top: var(--yatu-header-height); }

  .tn-custom-nav-bar,
  .tn-custom-nav-bar__bar,
  uni-page-head {
    top: var(--yatu-header-height) !important;
  }

  body[data-h5-route="pages/index/index"] .page-index-list > .tn-custom-nav-bar,
  body[data-h5-route="pages/index/index"] .page-index-list > .tn-custom-nav-bar + uni-view {
    display: none !important;
  }

  body[data-h5-route="pages/index/index"] uni-page-body {
    padding-top: 24px !important;
  }

  body:not([data-h5-route="pages/index/index"]):not([data-h5-route="pages/user/login-reg"]) uni-page-body {
    padding-top: 88px !important;
  }

  body[data-h5-route="pages/user/login-reg"] uni-app { padding-top: 0; }
  body[data-h5-route="pages/user/login-reg"] .web-site-header { display: none; }

  .index-bottom,
  .footerfixed.tabbar {
    top: calc(var(--yatu-header-height) + 24px) !important;
  }

  body[data-h5-route="pages/index/index"] .page-index-list > .tn-margin-sm {
    display: none !important;
  }

  body[data-h5-route="pages/index/index"] .page-index-list,
  body[data-h5-route="pages/index/index"] .template-course {
    width: 100%;
  }
}

/* 桌面固定导航必须脱离页面动画形成的 containing block */
.index-bottom > .web-archived-hidden,
.footerfixed.tabbar > .web-archived-hidden,
.footerfixed.tabbar .action.web-archived-hidden,
.classify-item-box.web-archived-hidden {
  display: none !important;
}

@media (min-width: 1024px) {
  uni-page-body > uni-view {
    animation: none !important;
    transform: none !important;
  }
}
