/* ============================================================
   玛亚克教育科技（新疆）有限公司 - 官网全局样式
   ============================================================ */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", "Helvetica Neue", Arial, sans-serif;
  color: #374151; font-size: 15px; line-height: 1.75; background: #fff;
}
a { text-decoration: none; color: inherit; transition: all .25s ease; }
img { max-width: 100%; display: block; }
ul, ol { list-style: none; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ---------- 顶部信息条 ---------- */
.topbar { background: #0b7d56; color: #fff; font-size: 13px; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; height: 36px; }
.topbar .hotline b { color: #ffe08a; font-size: 15px; letter-spacing: 1px; }

/* ---------- 主导航 ---------- */
.header { position: sticky; top: 0; z-index: 999; background: #fff; box-shadow: 0 2px 12px rgba(0,0,0,.06); }
.header .container { display: flex; justify-content: space-between; align-items: center; height: 78px; }
.logo { display: flex; align-items: center; gap: 12px; }
.logo img { height: 46px; width: auto; }
.logo .brand { line-height: 1.2; }
.logo .brand .t1 { font-size: 20px; font-weight: 700; color: #0b7d56; }
.logo .brand .t2 { font-size: 12px; color: #9ca3af; letter-spacing: 2px; }
.nav { display: flex; gap: 6px; }
.nav > li { position: relative; }
.nav > li > a { display: block; padding: 10px 16px; font-size: 15px; color: #1f2937; font-weight: 500; border-radius: 6px; }
.nav > li > a:hover, .nav > li > a.active { color: #0e9f6e; background: #e8f5f0; }
.nav .dropdown { position: absolute; top: 100%; left: 0; min-width: 140px; background: #fff; border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,.12); padding: 8px 0; opacity: 0; visibility: hidden; transform: translateY(8px); transition: all .25s ease; }
.nav > li:hover .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.nav .dropdown a { display: block; padding: 9px 18px; font-size: 14px; color: #4b5563; }
.nav .dropdown a:hover { color: #0e9f6e; background: #f3f6f5; }
.nav-toggle { display: none; background: none; border: 0; font-size: 24px; color: #0b7d56; cursor: pointer; }

/* ---------- 通用区块 ---------- */
.section { padding: 64px 0; }
.section.gray { background: #f3f6f5; }
.section-title { text-align: center; margin-bottom: 44px; }
.section-title .en { font-size: 13px; letter-spacing: 4px; color: #9ca3af; text-transform: uppercase; }
.section-title .cn { font-size: 30px; font-weight: 700; color: #1f2937; margin-top: 6px; }
.section-title .cn::after { content: ""; display: block; width: 44px; height: 3px; background: #0e9f6e; margin: 14px auto 0; border-radius: 2px; }

/* ---------- 按钮 ---------- */
.btn { display: inline-block; padding: 11px 30px; border-radius: 30px; font-size: 14px; font-weight: 500; }
.btn-primary { background: #0e9f6e; color: #fff; }
.btn-primary:hover { background: #0b7d56; }
.btn-outline { border: 1.5px solid #0e9f6e; color: #0e9f6e; }
.btn-outline:hover { background: #0e9f6e; color: #fff; }

/* ---------- Banner ---------- */
.banner { position: relative; height: 520px; overflow: hidden; }
.banner .slide { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0; transition: opacity 1s ease; }
.banner .slide.active { opacity: 1; }
.banner .slide .mask { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(11,125,86,.55), rgba(11,125,86,.1) 60%, rgba(0,0,0,.05)); }
.banner .slide .text { position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); text-align: center; color: #fff; width: 90%; max-width: 800px; }
.banner .slide .text .t1 { font-size: 44px; font-weight: 700; text-shadow: 0 2px 12px rgba(0,0,0,.3); }
.banner .slide .text .t2 { font-size: 18px; margin-top: 14px; opacity: .95; text-shadow: 0 1px 6px rgba(0,0,0,.3); }
.banner .dots { position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; }
.banner .dots span { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.5); cursor: pointer; }
.banner .dots span.active { background: #ffe08a; }

/* ---------- 卡片网格 ---------- */
.grid { display: grid; gap: 24px; }
.grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.card { background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 4px 16px rgba(0,0,0,.06); transition: all .3s ease; }
.card:hover { transform: translateY(-6px); box-shadow: 0 12px 32px rgba(0,0,0,.12); }
.card .pic { height: 210px; overflow: hidden; }
.card .pic img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.card:hover .pic img { transform: scale(1.06); }
.card .body { padding: 20px 22px; }
.card .body .title { font-size: 17px; font-weight: 600; color: #1f2937; line-height: 1.5; }
.card .body .title:hover { color: #0e9f6e; }
.card .body .desc { font-size: 13.5px; color: #6b7280; margin-top: 8px; line-height: 1.7; }
.card .body .meta { font-size: 12.5px; color: #9ca3af; margin-top: 12px; display: flex; justify-content: space-between; }

/* ---------- 首页特色 ---------- */
.features { display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; }
.feature { text-align: center; padding: 36px 20px; background: #fff; border-radius: 12px; box-shadow: 0 4px 16px rgba(0,0,0,.05); transition: all .3s ease; }
.feature:hover { transform: translateY(-6px); box-shadow: 0 12px 28px rgba(0,0,0,.1); }
.feature .ico { width: 64px; height: 64px; margin: 0 auto 18px; border-radius: 50%; background: #e8f5f0; display: flex; align-items: center; justify-content: center; font-size: 28px; color: #0e9f6e; }
.feature .t { font-size: 17px; font-weight: 600; color: #1f2937; }
.feature .d { font-size: 13.5px; color: #6b7280; margin-top: 8px; }

/* ---------- 首页新闻双栏 ---------- */
.news-split { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.news-split .col-title { display: flex; justify-content: space-between; align-items: center; border-bottom: 2px solid #e5e7eb; padding-bottom: 12px; margin-bottom: 6px; }
.news-split .col-title h3 { font-size: 20px; color: #1f2937; }
.news-split .col-title a { font-size: 13px; color: #0e9f6e; }
.news-list li { border-bottom: 1px dashed #e5e7eb; }
.news-list li a { display: flex; justify-content: space-between; align-items: center; padding: 14px 4px; gap: 16px; }
.news-list li a .t { font-size: 15px; color: #374151; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.news-list li a:hover .t { color: #0e9f6e; }
.news-list li a .d { font-size: 12.5px; color: #9ca3af; flex-shrink: 0; }

/* ---------- 内页 Banner ---------- */
.page-banner { height: 260px; background-size: cover; background-position: center; position: relative; }
.page-banner .mask { position: absolute; inset: 0; background: rgba(11,125,86,.45); display: flex; align-items: center; }
.page-banner .mask .container { width: 100%; }
.page-banner h1 { color: #fff; font-size: 34px; font-weight: 700; }
.page-banner .crumb { color: rgba(255,255,255,.85); font-size: 14px; margin-top: 8px; }
.page-banner .crumb a:hover { color: #ffe08a; }

/* ---------- 详情页 ---------- */
.detail-wrap { max-width: 900px; margin: 0 auto; }
.detail-head { text-align: center; padding: 40px 0 24px; border-bottom: 1px solid #e5e7eb; margin-bottom: 30px; }
.detail-head h1 { font-size: 28px; color: #1f2937; line-height: 1.5; }
.detail-head .meta { font-size: 13px; color: #9ca3af; margin-top: 14px; }
.detail-body { font-size: 15.5px; line-height: 2; color: #374151; }
.detail-body img { margin: 18px auto; border-radius: 8px; }
.detail-body p { margin: 14px 0; text-indent: 2em; }
.detail-body strong { color: #0b7d56; }
.detail-body h3 { font-size: 18px; color: #0b7d56; margin: 26px 0 10px; }
.detail-nav { display: flex; justify-content: space-between; margin-top: 40px; padding-top: 20px; border-top: 1px solid #e5e7eb; font-size: 14px; color: #6b7280; }
.detail-nav a { color: #0e9f6e; max-width: 46%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- 关于我们 ---------- */
.about-intro { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; }
.about-intro .txt h2 { font-size: 26px; color: #1f2937; margin-bottom: 18px; }
.about-intro .txt p { margin-bottom: 14px; text-indent: 2em; }
.about-intro .txt .hl { color: #0e9f6e; font-weight: 600; }
.about-intro .pic { border-radius: 12px; overflow: hidden; box-shadow: 0 8px 28px rgba(0,0,0,.1); }
.info-table { width: 100%; border-collapse: collapse; margin-top: 20px; }
.info-table td { padding: 12px 16px; border: 1px solid #e5e7eb; font-size: 14px; }
.info-table td:first-child { background: #f3f6f5; font-weight: 600; color: #0b7d56; width: 160px; }

/* ---------- 联系我们 ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.contact-item { display: flex; gap: 16px; padding: 22px; background: #f3f6f5; border-radius: 12px; margin-bottom: 16px; }
.contact-item .ico { font-size: 26px; color: #0e9f6e; }
.contact-item .t { font-size: 14px; color: #9ca3af; }
.contact-item .v { font-size: 16px; color: #1f2937; font-weight: 500; margin-top: 2px; }

/* ---------- 页脚 ---------- */
.footer { background: #123b2e; color: #cfe8de; }
.footer .container { padding: 52px 20px 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; padding-bottom: 36px; }
.footer h4 { color: #fff; font-size: 16px; margin-bottom: 18px; }
.footer .links a { display: block; color: #cfe8de; font-size: 14px; padding: 5px 0; }
.footer .links a:hover { color: #ffe08a; padding-left: 6px; }
.footer .contact p { font-size: 14px; padding: 5px 0; }
.footer .contact p b { color: #ffe08a; }
.footer .copy { border-top: 1px solid rgba(255,255,255,.15); padding: 18px 0; text-align: center; font-size: 13px; color: #9fc4b5; }
.footer .copy a { color: #ffe08a; }
.footer .copy a:hover { text-decoration: underline; }

/* ---------- 分页 ---------- */
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 44px; }
.pagination a, .pagination span { display: inline-block; min-width: 38px; height: 38px; line-height: 38px; text-align: center; padding: 0 10px;
  border: 1px solid #e5e7eb; border-radius: 8px; font-size: 14px; color: #4b5563; background: #fff; }
.pagination a:hover { border-color: #0e9f6e; color: #0e9f6e; }
.pagination .current { background: #0e9f6e; color: #fff; border-color: #0e9f6e; }

/* ---------- 响应式 ---------- */
@media (max-width: 992px) {
  .grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
  .grid.cols-3 { grid-template-columns: repeat(2, 1fr); }
  .features { grid-template-columns: repeat(2, 1fr); }
  .news-split { grid-template-columns: 1fr; gap: 30px; }
  .about-intro { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .banner { height: 420px; }
  .banner .slide .text .t1 { font-size: 32px; }
}
@media (max-width: 640px) {
  .topbar .container { justify-content: center; }
  .topbar .welcome { display: none; }
  .nav { display: none; position: absolute; top: 78px; left: 0; right: 0; background: #fff; flex-direction: column;
    padding: 12px 20px 20px; box-shadow: 0 8px 20px rgba(0,0,0,.1); }
  .nav.open { display: flex; }
  .nav .dropdown { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; padding: 0 0 0 16px; }
  .nav-toggle { display: block; }
  .grid.cols-4, .grid.cols-3, .grid.cols-2 { grid-template-columns: 1fr; }
  .features { grid-template-columns: 1fr; }
  .section { padding: 44px 0; }
  .section-title .cn { font-size: 24px; }
  .banner { height: 320px; }
  .banner .slide .text .t1 { font-size: 24px; }
  .page-banner { height: 190px; }
  .page-banner h1 { font-size: 24px; }
  .detail-head h1 { font-size: 22px; }
}