/* MIBASE · 实验楼风格绿色教育主题（Bootstrap 3） */
:root {
  /* 品牌深绿：顶栏 / 页脚（全站共用，改这里即可全站换色） */
  --brand: #207821;
  --brand-dark: #186318;
  --brand-deep: #0f4a12;
  /* 品牌点缀青绿：链接 / 按钮 / 强调（取自模板 #0c9 系） */
  --edu-green: #0c9;
  --edu-green-dark: #08bf91;
  --edu-green-deep: #0a8f66;
  --edu-green-soft: #e9fbf5;
  /* 按钮绿：取自模板注册按钮 #11aa8c / 悬停 #10be9d */
  --edu-btn: #11aa8c;
  --edu-btn-hover: #10be9d;
  --edu-ink: #333;
  --edu-muted: #777;
  --edu-line: #e6e6e6;
  --edu-bg: #f7f9f8;
  --edu-card: #fff;
  --nav-h: 50px;
  /* 兼容旧页面变量（充值/技能/文书） */
  --bg: #f7f9f8;
  --s1: #ffffff;
  --s2: #f0f7f4;
  --ink: #333333;
  --muted: #777777;
  --faint: #999999;
  --line: #e6e6e6;
  --accent: #0c9;
  --accent2: #11aa8c;
  --gold: #c9a227;
  --radius: 8px;
}

html { font-size: 14px; }
body {
  font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  color: var(--edu-ink);
  background: var(--edu-bg);
  padding-top: var(--nav-h);
  min-height: 100vh;
}

a { color: var(--edu-green-dark); }
a:hover { color: var(--edu-green); text-decoration: none; }

/* —— Navbar（深绿顶栏） —— */
.navbar.header {
  background: var(--brand);
  border: 0;
  border-bottom: 1px solid var(--brand-dark);
  box-shadow: 0 1px 3px rgba(0,0,0,.12);
  min-height: var(--nav-h);
  margin-bottom: 0;
}
.navbar.header .navbar-brand {
  height: var(--nav-h);
  padding: 8px 15px;
  display: flex;
  align-items: center;
  color: #fff;
}
.navbar.header .navbar-brand:hover { color: #d9f2d9; }
.navbar.header .navbar-brand img { height: 32px; width: auto; }
.navbar.header .navbar-nav > li > a {
  color: rgba(255, 255, 255, 0.85);
  font-size: 15px;
  padding-top: 15px;
  padding-bottom: 15px;
}
.navbar.header .navbar-nav > li > a:hover,
.navbar.header .navbar-nav > li.active > a {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}
.navbar.header .btns .btn {
  margin-left: 6px;
  margin-top: 9px;
  border-radius: 3px;
  padding: 5px 14px;
}
.navbar.header .btns .btn-default {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.55);
  color: rgba(255, 255, 255, 0.75);
}
.navbar.header .btns .btn-default:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: #fff;
  color: #fff;
}
.navbar.header .sign-in {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.55);
  color: #fff;
}
.navbar.header .btns .sign-up,
.navbar.header .btns .btn-primary.sign-up {
  background: var(--edu-btn);
  border: 1px solid var(--edu-btn);
  color: #fff;
  border-radius: 4px;
}
.navbar.header .btns .sign-up:hover { background: var(--edu-btn-hover); border-color: var(--edu-btn-hover); color: #fff; }
.navbar.header .navbar-toggle { border-color: rgba(255, 255, 255, 0.55); margin-top: 8px; }
.navbar.header .navbar-toggle .icon-bar { background: #fff; }
.navbar.header .navbar-toggle:hover,
.navbar.header .navbar-toggle:focus { background: rgba(255, 255, 255, 0.12); }
.navbar.header .navbar-collapse,
.navbar.header .navbar-form { border-color: rgba(255, 255, 255, 0.15); }

/* —— Banner（深绿 → 青绿，与顶栏页脚同一色系） —— */
.navbar-banner {
  background: linear-gradient(120deg, var(--brand) 0%, #1d8a4f 45%, var(--edu-green) 100%);
  color: #fff;
  padding: 48px 0 56px;
  margin-bottom: 0;
}
.navbar-banner .banner-title {
  font-size: 36px;
  font-weight: 700;
  margin: 0 0 14px;
  line-height: 1.25;
}
.navbar-banner .banner-lead {
  font-size: 16px;
  opacity: .92;
  margin-bottom: 24px;
  max-width: 36em;
  line-height: 1.7;
}
.navbar-banner .course-btn,
.btn-edu {
  display: inline-block;
  background: #fff;
  color: var(--edu-green-dark) !important;
  border: 0;
  border-radius: 4px;
  padding: 12px 28px;
  font-size: 16px;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(0,0,0,.12);
}
.navbar-banner .course-btn:hover,
.btn-edu:hover { background: #f4fff9; color: var(--edu-btn-hover) !important; }
.banner-panel {
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 6px;
  padding: 18px 20px;
  backdrop-filter: blur(4px);
}
.banner-panel a {
  display: flex;
  justify-content: space-between;
  color: #fff;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,.18);
  font-size: 14px;
}
.banner-panel a:last-child { border-bottom: 0; }
.banner-panel a:hover { opacity: .9; }

/* —— Introduce / features —— */
.introduce-container {
  background: #fff;
  padding: 36px 0;
  border-bottom: 1px solid var(--edu-line);
}
.introduce-unit {
  text-align: center;
  padding: 16px 12px;
}
.introduce-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 12px;
  border-radius: 50%;
  background: var(--edu-green-soft);
  color: var(--edu-green-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
}
.introduce-span {
  display: block;
  color: #555;
  font-size: 14px;
  line-height: 1.5;
}

/* —— Section headers —— */
.item-header {
  margin: 36px 0 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}
.item-header .line {
  display: inline-block;
  width: 48px;
  height: 2px;
  background: var(--edu-line);
}
.item-header .item-title {
  font-size: 22px;
  font-weight: 600;
  color: #444;
}

/* —— Cards / path-item / course —— */
.line-and-laboratory { padding: 8px 0 40px; }
.path-item,
.edu-card {
  background: var(--edu-card);
  border: 1px solid var(--edu-line);
  border-radius: 4px;
  padding: 16px;
  margin-bottom: 20px;
  transition: box-shadow .2s, border-color .2s;
  display: block;
  color: inherit;
  height: 100%;
  min-height: 120px;
}
.path-item:hover,
.edu-card:hover {
  border-color: #c9efe1;
  box-shadow: 0 4px 16px rgba(32,120,33,.12);
  color: inherit;
}
.path-name,
.edu-card h3 {
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 8px;
  color: #333;
}
.path-course-num,
.edu-card .meta {
  color: var(--edu-muted);
  font-size: 13px;
}
.edu-card .price {
  margin-top: 10px;
  color: var(--edu-green-dark);
  font-weight: 700;
  font-size: 15px;
}
.edu-card .card-shot {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: 3px;
  margin-bottom: 12px;
  background: var(--edu-green-soft);
}
.edu-card p {
  margin: 0;
  color: #666;
  font-size: 13px;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* —— Page body —— */
.page-main { padding: 24px 0 48px; }
.page-main .page-title {
  margin: 0 0 20px;
  font-size: 24px;
  font-weight: 600;
}

/* —— Forms / auth —— */
.auth-box-edu {
  max-width: 440px;
  margin: 40px auto;
  background: #fff;
  border: 1px solid var(--edu-line);
  border-radius: 4px;
  padding: 28px 28px 24px;
  box-shadow: 0 2px 12px rgba(0,0,0,.04);
}
.auth-box-edu h1 { margin: 0 0 8px; font-size: 22px; }
.auth-tabs {
  display: flex;
  gap: 0;
  margin: 18px 0 16px;
  border-bottom: 1px solid var(--edu-line);
}
.auth-tab {
  flex: 1;
  border: 0;
  background: transparent;
  padding: 10px;
  color: #888;
  font-size: 14px;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  cursor: pointer;
}
.auth-tab.on {
  color: var(--edu-green-dark);
  border-bottom-color: var(--edu-green);
  font-weight: 600;
}
.btn-edu-primary {
  background: var(--edu-btn);
  border-color: var(--edu-btn);
  color: #fff;
  width: 100%;
  padding: 10px;
  font-size: 15px;
}
.btn-edu-primary:hover { background: var(--edu-btn-hover); border-color: var(--edu-btn-hover); color: #fff; }
.code-row { display: flex; gap: 8px; }
.code-row input { flex: 1; }
.captcha-img-btn {
  padding: 0;
  border: 1px solid #ddd;
  border-radius: 3px;
  overflow: hidden;
  background: #fff;
}
.captcha-img-btn img { display: block; height: 34px; width: 100px; }

/* —— Flash —— */
.flash {
  padding: 10px 14px;
  border-radius: 3px;
  margin: 16px 0;
}
.flash.ok { background: #e9fbf5; color: #0a9e79; border: 1px solid #c9efe1; }
.flash.err { background: #fff1f0; color: #c0392b; border: 1px solid #f5c6cb; }

/* —— Footer（深绿，与顶栏同一色系） —— */
.footer-edu {
  background: linear-gradient(180deg, var(--brand) 0%, var(--brand-dark) 55%, var(--brand-deep) 100%);
  color: rgba(233, 251, 245, 0.78);
  padding: 40px 0 0;
  margin-top: 40px;
  font-size: 13px;
}
.footer-edu a { color: rgba(233, 251, 245, 0.88); }
.footer-edu a:hover { color: #fff; }
.footer-edu .footer-slogan {
  font-size: 16px;
  color: #fff;
  margin-bottom: 16px;
}
.footer-edu .col-title {
  color: #fff;
  font-weight: 600;
  margin-bottom: 12px;
  font-size: 14px;
}
.footer-edu .footer-col a {
  display: inline-block;
  margin-bottom: 8px;
  line-height: 1.5;
}
.footer-edu .copyright {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  margin-top: 28px;
  padding: 16px 0;
  text-align: center;
  color: rgba(233, 251, 245, 0.55);
  font-size: 12px;
}
.footer-edu .copyright .beian { color: rgba(233, 251, 245, 0.55); margin-left: 8px; }
.footer-edu .copyright .beian:hover { color: #fff; }
.footer-edu .ver-line { margin: 0 8px; color: rgba(255, 255, 255, 0.25); }

/* —— Utilities keep VIP pages working —— */
.muted { color: var(--edu-muted); }
.wrap { /* bootstrap container preferred */ }
.btn-primary { background: var(--edu-btn); border-color: var(--edu-btn); }
.btn-primary:hover, .btn-primary:focus { background: var(--edu-btn-hover); border-color: var(--edu-btn-hover); }
.btn-ghost, .btn-default.edu {
  background: #fff;
  border: 1px solid var(--edu-btn);
  color: var(--edu-btn);
}
.table > thead > tr > th { border-bottom-color: var(--edu-line); }
.panel { border-color: var(--edu-line); box-shadow: none; }
.panel-heading { background: #fafafa; }

.home-sec-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}
.home-sec-head h2 { margin: 0; font-size: 20px; }
.pager-edu { text-align: center; margin: 24px 0; }

@media (max-width: 767px) {
  .navbar-banner .banner-title { font-size: 26px; }
  .banner-panel { margin-top: 24px; }
}

/* ===== 首页新版块（对标威科先行 / Legal AI 产品站） ===== */
.mod-section { padding: 44px 0; }
.mod-alt { background: #f4f9f4; }
.mod-head { text-align: center; margin-bottom: 28px; }
.mod-head h2 { margin: 0 0 8px; font-size: 26px; color: #17351c; }
.mod-head p { margin: 0; color: #6b7a6e; }
.mod-card {
  display: block; background: #fff; border: 1px solid #e3ede4; border-radius: 12px;
  padding: 22px 20px; margin-bottom: 20px; height: calc(100% - 20px);
  color: inherit; text-decoration: none!important;
  transition: box-shadow .2s, transform .2s, border-color .2s;
}
.mod-card:hover { box-shadow: 0 8px 24px rgba(32,120,33,.12); transform: translateY(-3px); border-color: #207821; }
.mod-icon {
  width: 46px; height: 46px; border-radius: 10px; margin-bottom: 12px;
  background: linear-gradient(135deg, #207821, #1d8a4f);
  color: #fff; font-size: 20px; display: flex; align-items: center; justify-content: center;
}
.mod-card h3 { margin: 0 0 8px; font-size: 17px; color: #17351c; }
.mod-card p { margin: 0; font-size: 13.5px; line-height: 1.7; color: #5c6b5f; }
.scene-card {
  background: #fff; border: 1px solid #e3ede4; border-radius: 12px;
  padding: 20px 18px; margin-bottom: 20px; height: calc(100% - 20px);
}
.scene-card h4 { margin: 0 0 8px; font-size: 16px; color: #207821; }
.scene-card p { margin: 0; font-size: 13.5px; line-height: 1.7; color: #5c6b5f; }
.deploy-card {
  background: #fff; border: 1px solid #e3ede4; border-radius: 12px;
  padding: 24px 22px; margin-bottom: 20px; height: calc(100% - 20px);
}
.deploy-card h3 { margin: 0 0 4px; font-size: 18px; color: #17351c; }
.deploy-tag { margin: 0 0 12px; font-size: 12.5px; color: #0c9; font-weight: 600; }
.deploy-card ul { margin: 0; padding-left: 18px; }
.deploy-card li { font-size: 13.5px; line-height: 1.9; color: #5c6b5f; }
.why-card {
  background: #fff; border: 1px solid #e3ede4; border-radius: 12px;
  padding: 24px 22px; margin-bottom: 20px; height: calc(100% - 20px);
}
.why-no { font-size: 26px; font-weight: 700; color: #cfe6d0; line-height: 1; margin-bottom: 10px; }
.why-card h4 { margin: 0 0 8px; font-size: 16px; color: #207821; }
.why-card p { margin: 0; font-size: 13.5px; line-height: 1.7; color: #5c6b5f; }
.faq-item {
  background: #fff; border: 1px solid #e3ede4; border-radius: 10px;
  padding: 0 18px; margin-bottom: 12px;
}
.faq-item summary {
  cursor: pointer; padding: 14px 0; font-size: 15px; font-weight: 600; color: #17351c;
  list-style: none; position: relative;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+'; position: absolute; right: 2px; top: 50%; transform: translateY(-50%);
  font-size: 20px; color: #207821; font-weight: 400;
}
.faq-item[open] summary::after { content: '−'; }
.faq-item p { margin: 0; padding: 0 0 14px; font-size: 13.5px; line-height: 1.8; color: #5c6b5f; }
@media (max-width: 767px) {
  .mod-section { padding: 30px 0; }
  .mod-head h2 { font-size: 21px; }
}

/* ===== 首页横幅轮播 ===== */
.navbar-banner.bnr-carousel { position: relative; overflow: hidden; background: #17351c; }
.bnr-slides { position: absolute; inset: 0; z-index: 0; }
.bnr-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.1s ease; }
.bnr-slide.active { opacity: 1; }
.bnr-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bnr-content { position: relative; z-index: 2; }
.bnr-dots {
  position: absolute; z-index: 3; bottom: 12px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 8px;
}
.bnr-dot {
  width: 10px; height: 10px; border-radius: 50%; padding: 0; cursor: pointer;
  border: 2px solid rgba(255,255,255,.75); background: transparent;
  transition: background .2s, border-color .2s;
}
.bnr-dot.on { background: #fff; border-color: #fff; }
.bnr-dot:hover { border-color: #fff; }
@media (max-width: 767px) {
  .bnr-dots { bottom: 8px; }
}

/* 轮播左右箭头 */
.bnr-arrow {
  position: absolute; z-index: 3; top: 50%; transform: translateY(-50%);
  width: 40px; height: 40px; border-radius: 50%; padding: 0 0 3px; cursor: pointer;
  border: 1px solid rgba(255,255,255,.5); background: rgba(0,0,0,.18); color: #fff;
  font-size: 24px; line-height: 1; transition: background .2s;
}
.bnr-arrow:hover { background: rgba(32,120,33,.75); }
.bnr-prev { left: 14px; }
.bnr-next { right: 14px; }
@media (max-width: 767px) {
  .bnr-arrow { display: none; }
}

/* ===== 全站统一页头（深绿渐变横幅条） ===== */
.page-hero {
  background: linear-gradient(105deg, #207821 0%, #1d8a4f 55%, #0c9 100%);
  color: #fff; padding: 30px 0 26px; margin-bottom: 24px;
}
.page-hero h1 { margin: 0; font-size: 26px; font-weight: 700; color: #fff; }
.page-hero p { margin: 8px 0 0; font-size: 14px; color: rgba(255,255,255,.88); max-width: 720px; }
@media (max-width: 767px) {
  .page-hero { padding: 20px 0 18px; margin-bottom: 16px; }
  .page-hero h1 { font-size: 20px; }
}

/* 卡片网格 flex 化：防止浮动错位，同行卡片等高 */
.mod-grid { display: flex; flex-wrap: wrap; }
.mod-grid > [class*="col-"] { display: flex; flex-direction: column; }
.mod-grid .mod-card, .mod-grid .scene-card, .mod-grid .deploy-card, .mod-grid .why-card { flex: 1; }

/* 帮助中心等页面的问答列表与版块间距 */
.sec { padding: 4px 0 20px; }
.faq details {
  background: #fff; border: 1px solid #e3ede4; border-radius: 10px;
  padding: 0 18px; margin-bottom: 12px;
}
.faq summary {
  cursor: pointer; padding: 14px 0; font-size: 15px; font-weight: 600; color: #17351c;
  list-style: none; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+'; position: absolute; right: 2px; top: 50%; transform: translateY(-50%);
  font-size: 20px; color: #207821; font-weight: 400;
}
.faq details[open] summary::after { content: '−'; }
.faq details p { margin: 0; padding: 0 0 14px; font-size: 13.5px; line-height: 1.8; color: #5c6b5f; }

/* ===== 滚动进入动效（进入视口时上浮淡入） ===== */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .6s ease, transform .6s ease;
  will-change: opacity, transform;
}
.reveal.in { opacity: 1; transform: none; }
.reveal.rd-1 { transition-delay: .08s; }
.reveal.rd-2 { transition-delay: .16s; }
.reveal.rd-3 { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* 横幅标题打字效果 */
.type-line { display: inline-block; }
.type-caret {
  display: inline-block; width: 3px; height: .92em; margin-left: 5px;
  background: #fff; vertical-align: -0.1em;
  animation: caretBlink 1s steps(1) infinite;
}
@keyframes caretBlink { 50% { opacity: 0; } }

/* 打字行占位：删空时保持行高，避免整行塌陷 */
.type-line { min-height: 1.25em; }

/* 空行占位（零宽空格撑住行高，无可见宽度） */
#typeText:empty::before { content: '\200b'; }

/* 打字删空瞬间：光标保持常亮，明确标示空行位置 */
#typeText:empty + .type-caret { animation: none; opacity: 1; }
