/*
Theme Name: 教育机构展示主题
Theme URI: https://example.com/
Author: OpenAI
Author URI: https://openai.com/
Description: 仿阿里云教育机构模板风格的 WordPress 多页展示主题，适合机构演示、课程展示、新闻动态与联系页。
Version: 1.0.0
License: GPL-2.0-or-later
Text Domain: edu-showcase
*/

:root{
  --primary:#163b67;
  --primary-deep:#122f51;
  --accent:#ff8a1f;
  --accent-soft:#fff2e5;
  --text:#1f2d3d;
  --muted:#66788a;
  --bg:#f5f7fb;
  --line:#e8edf3;
  --white:#ffffff;
  --shadow:0 12px 32px rgba(10,34,57,.08);
  --radius:18px;
  --container:1200px;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family:"Microsoft YaHei","PingFang SC","Hiragino Sans GB",Arial,sans-serif;
  color:var(--text);
  background:var(--bg);
  line-height:1.7;
}
img{max-width:100%;height:auto;display:block}
a{color:inherit;text-decoration:none}
ul,ol{padding:0;margin:0;list-style:none}
p{margin:0 0 16px}
h1,h2,h3,h4,h5,h6{margin:0 0 16px;line-height:1.25;color:#0f2540}
.site-wrap{overflow:hidden}
.container{
  width:min(var(--container),calc(100% - 40px));
  margin:0 auto;
}
.topbar{
  background:var(--primary);
  color:#fff;
  position:sticky;
  top:0;
  z-index:99;
  box-shadow:0 3px 18px rgba(8,21,35,.18);
}
.topbar-inner{
  min-height:84px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
}
.brand{
  display:flex;
  align-items:center;
  gap:14px;
  min-width:240px;
}
.brand-mark{
  width:54px;height:54px;border-radius:50%;
  background:var(--accent);
  color:#fff;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:28px;
  font-weight:800;
  box-shadow:0 8px 18px rgba(255,138,31,.24);
}
.brand-text{
  font-size:17px;
  font-weight:800;
  letter-spacing:.5px;
}
.brand-text span{
  display:block;
  font-size:38px;
  line-height:1;
}
.brand-title{font-size:16px}
.primary-menu-wrap{
  flex:1;
  display:flex;
  justify-content:center;
}
.primary-menu{display:flex;gap:18px;align-items:center;flex-wrap:wrap}
.primary-menu a{
  color:#fff;
  padding:12px 18px;
  border-radius:10px;
  font-size:18px;
  font-weight:700;
  transition:.25s ease;
  opacity:.92;
}
.primary-menu li.current-menu-item > a,
.primary-menu li.current_page_item > a,
.primary-menu a:hover{
  background:rgba(255,255,255,.10);
  color:var(--accent);
  opacity:1;
}
.header-contact{
  display:flex;
  align-items:center;
  gap:10px;
  color:#fff;
  font-size:18px;
  font-weight:700;
  white-space:nowrap;
}
.header-contact .icon{color:var(--accent);font-size:20px}
.mobile-toggle{display:none}
.page-hero{
  min-height:420px;
  color:#fff;
  position:relative;
  display:flex;
  align-items:center;
  text-align:center;
}
.page-hero.has-content{text-align:left}
.page-hero::before{
  content:"";
  position:absolute;inset:0;
  background:linear-gradient(90deg,rgba(20,55,95,.76),rgba(24,64,109,.68));
}
.page-hero::after{
  content:"";
  position:absolute;inset:0;
  background:rgba(12,37,69,.24);
}
.page-hero .container{position:relative;z-index:2}
.page-hero h1{
  font-size:74px;
  color:#fff;
  font-weight:900;
  margin-bottom:18px;
  text-shadow:0 4px 18px rgba(0,0,0,.16);
}
.page-hero p{
  max-width:780px;
  font-size:24px;
  color:rgba(255,255,255,.92);
}
.hero-actions{display:flex;gap:16px;flex-wrap:wrap;margin-top:28px}
.btn{
  display:inline-flex;align-items:center;justify-content:center;
  min-height:54px;
  padding:0 28px;
  border-radius:999px;
  font-size:17px;
  font-weight:800;
  transition:.25s ease;
  cursor:pointer;
}
.btn-primary{
  background:var(--accent);
  color:#fff;
  box-shadow:0 10px 20px rgba(255,138,31,.22);
}
.btn-primary:hover{transform:translateY(-2px)}
.btn-outline{
  border:1px solid rgba(255,255,255,.55);
  color:#fff;
  background:rgba(255,255,255,.06);
}
.section{
  padding:78px 0;
}
.section-white{background:#fff}
.section-title{
  text-align:center;
  font-size:46px;
  font-weight:900;
  margin-bottom:10px;
}
.section-subtitle{
  text-align:center;
  max-width:760px;
  margin:0 auto 48px;
  color:var(--muted);
  font-size:19px;
}
.feature-grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:26px;
}
.feature-card{
  background:#fff;
  border:1px solid var(--line);
  border-radius:22px;
  box-shadow:var(--shadow);
  padding:34px 24px;
  text-align:center;
  transition:.25s ease;
}
.feature-card:hover{transform:translateY(-4px)}
.feature-icon{
  width:78px;height:78px;border-radius:50%;
  margin:0 auto 22px;
  background:linear-gradient(180deg,#fff7ef,#ffe7d0);
  color:var(--accent);
  font-size:34px;
  display:flex;align-items:center;justify-content:center;
  border:1px solid #ffe1c2;
}
.feature-card h3{font-size:28px;margin-bottom:14px}
.feature-card p{color:var(--muted);font-size:16px;line-height:1.8}
.split-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:62px;
  align-items:center;
}
.media-card{
  border-radius:28px;
  overflow:hidden;
  box-shadow:0 18px 42px rgba(10,34,57,.10);
  position:relative;
  background:#ddd;
}
.media-card img{
  width:100%;
  height:100%;
  object-fit:cover;
}
.media-card.tall{height:520px}
.media-card.wide{height:460px}
.media-card .float-badge{
  position:absolute;
  left:-12px;
  bottom:-24px;
  width:156px;
  min-height:156px;
  background:var(--accent);
  color:#fff;
  border-radius:26px;
  padding:22px;
  box-shadow:0 18px 36px rgba(255,138,31,.25);
  display:flex;flex-direction:column;justify-content:center;
}
.float-badge strong{
  display:block;font-size:64px;line-height:1;font-weight:900;margin-bottom:6px;
}
.content-block h2{
  font-size:56px;
  margin-bottom:24px;
  font-weight:900;
}
.content-block p{
  color:#4e6276;
  font-size:19px;
  margin-bottom:20px;
}
.stat-row{
  display:flex;gap:56px;flex-wrap:wrap;margin-top:28px
}
.stat-item strong{
  display:block;font-size:56px;color:var(--accent);font-weight:900;line-height:1.1
}
.stat-item span{color:#556a7e;font-size:17px}
.dual-card-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:34px;
}
.color-card{
  border-radius:28px;
  padding:44px 42px;
  min-height:290px;
  box-shadow:var(--shadow);
}
.color-card.orange{background:linear-gradient(135deg,#ff8a1f,#ef6e00);color:#fff}
.color-card.blue{background:linear-gradient(135deg,#163b67,#24558f);color:#fff}
.color-card h3{
  font-size:54px;
  color:#fff;
  font-weight:900;
}
.color-card p{
  margin-top:22px;
  font-size:26px;
  line-height:1.7;
  color:rgba(255,255,255,.96);
}
.course-grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:26px;
}
.course-card,.teacher-card,.news-card,.contact-card{
  background:#fff;
  border-radius:22px;
  overflow:hidden;
  box-shadow:var(--shadow);
  border:1px solid var(--line);
}
.course-card .thumb,.teacher-card .thumb,.news-card .thumb{
  height:240px;
  overflow:hidden;
}
.course-card .thumb img,.teacher-card .thumb img,.news-card .thumb img{
  width:100%;height:100%;object-fit:cover;
}
.course-card .body,.teacher-card .body,.news-card .body,.contact-card .body{padding:22px}
.course-card h3,.teacher-card h3,.news-card h3{font-size:28px;margin-bottom:10px}
.course-card p,.teacher-card p,.news-card p{font-size:16px;color:var(--muted)}
.teacher-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:32px;
}
.teacher-card .body{
  padding:24px 26px 26px;
}
.teacher-role{
  color:var(--accent);
  font-size:18px;
  font-weight:800;
  margin-bottom:14px;
}
.tag-list{
  display:flex;gap:10px;flex-wrap:wrap;
  margin-bottom:18px;
}
.tag{
  padding:8px 14px;
  border-radius:999px;
  font-size:14px;
  font-weight:700;
  background:#eef4ff;
  color:#4670b8;
}
.skill-tags .tag{background:#fff2e5;color:#d9750c}
.filter-row{
  display:flex;justify-content:center;gap:16px;flex-wrap:wrap;margin:0 auto 42px;
}
.filter-pill{
  display:inline-flex;align-items:center;justify-content:center;
  min-width:118px;height:54px;padding:0 20px;
  border-radius:12px;border:1px solid var(--accent);font-size:18px;font-weight:800;
  color:var(--accent);background:#fff;
}
.filter-pill.active,.filter-pill:hover{background:var(--accent);color:#fff}
.news-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:36px;
}
.news-meta{
  color:#7c8ea0;
  font-size:15px;
  margin-bottom:10px;
  display:flex;align-items:center;gap:8px
}
.news-card .body h3{
  font-size:25px;
  margin-bottom:14px;
}
.news-excerpt{margin-bottom:14px}
.news-card .badge{
  position:absolute;
  left:16px;
  top:16px;
  z-index:2;
  background:var(--accent);
  color:#fff;
  border-radius:999px;
  padding:8px 14px;
  font-size:14px;
  font-weight:800;
}
.news-card .thumb{position:relative}
.pagination{
  display:flex;justify-content:center;gap:10px;margin-top:40px
}
.page-numbers{
  width:44px;height:44px;border-radius:10px;background:#fff;border:1px solid var(--line);
  display:flex;align-items:center;justify-content:center;color:#56708a;font-weight:800
}
.page-numbers.current,.page-numbers:hover{background:var(--accent);color:#fff;border-color:var(--accent)}
.contact-grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:28px;
}
.contact-card{
  text-align:center;
  min-height:240px;
}
.contact-icon{
  font-size:42px;
  margin-bottom:18px;
}
.contact-card h3{
  font-size:26px;
  margin-bottom:14px;
}
.contact-card p{
  color:var(--muted);
  font-size:17px;
}
.contact-card.phone .contact-icon{color:#ff6d1f}
.contact-card.email .contact-icon{color:#3d7eff}
.contact-card.address .contact-icon{color:#28bf63}
.contact-card.time .contact-icon{color:#8d52ff}
.form-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:36px;
  align-items:start;
}
.form-panel,.map-panel{
  background:#fff;border-radius:24px;box-shadow:var(--shadow);border:1px solid var(--line);padding:34px
}
.form-panel h3,.map-panel h3{font-size:34px;margin-bottom:20px}
.form-field{margin-bottom:16px}
.form-field input,.form-field textarea{
  width:100%;
  border:1px solid #dfe6ef;
  background:#f8fafc;
  border-radius:14px;
  min-height:54px;
  padding:14px 16px;
  font-size:16px;
  font-family:inherit;
}
.form-field textarea{min-height:180px;resize:vertical}
.fake-map{
  min-height:330px;
  border-radius:18px;
  background:
    linear-gradient(135deg,rgba(255,138,31,.08),rgba(22,59,103,.12)),
    url('https://images.unsplash.com/photo-1524661135-423995f22d0b?auto=format&fit=crop&w=1400&q=80') center/cover no-repeat;
  display:flex;align-items:end;justify-content:start;
  padding:22px;
  color:#fff;font-size:16px;font-weight:700;
}
.cta-strip{
  background:linear-gradient(135deg,#163b67,#204d80);
  color:#fff;
  border-radius:30px;
  padding:46px 50px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:30px;
  box-shadow:0 24px 50px rgba(17,43,73,.16);
}
.cta-strip h3{font-size:42px;color:#fff}
.cta-strip p{font-size:18px;color:rgba(255,255,255,.9);margin:0;max-width:680px}
.site-footer{
  margin-top:0;
  background:var(--primary);
  color:#fff;
}
.footer-main{
  padding:64px 0 54px;
}
.footer-grid{
  display:grid;
  grid-template-columns:1.2fr 1fr 1fr;
  gap:50px;
}
.footer-col h3{
  color:#fff;
  font-size:34px;
  margin-bottom:18px;
}
.footer-col p,.footer-col li,.footer-col a{
  color:rgba(255,255,255,.88);
  font-size:18px;
}
.footer-col li{margin-bottom:14px}
.footer-contact-item{
  display:flex;align-items:flex-start;gap:10px;margin-bottom:14px
}
.copyright{
  border-top:1px solid rgba(255,255,255,.1);
  color:rgba(255,255,255,.65);
  text-align:center;
  padding:18px 0 28px;
  font-size:15px;
}
.entry-single{
  background:#fff;
  border-radius:28px;
  box-shadow:var(--shadow);
  border:1px solid var(--line);
  padding:46px;
}
.entry-meta{
  color:#7c8ea0;
  font-size:15px;
  margin-bottom:18px;
}
.entry-single .featured{border-radius:22px;overflow:hidden;margin-bottom:22px}
.entry-single .featured img{width:100%;max-height:520px;object-fit:cover}
.post-nav-links{margin-top:30px}
@media (max-width: 1199px){
  .page-hero h1{font-size:58px}
  .feature-grid,.course-grid,.contact-grid{grid-template-columns:repeat(2,1fr)}
  .news-grid,.teacher-grid{grid-template-columns:repeat(2,1fr)}
}
@media (max-width: 860px){
  .container{width:min(var(--container),calc(100% - 24px))}
  .mobile-toggle{
    display:inline-flex;
    background:rgba(255,255,255,.08);
    color:#fff;
    border:1px solid rgba(255,255,255,.14);
    width:48px;height:48px;border-radius:12px;align-items:center;justify-content:center;
    font-size:24px;
  }
  .topbar-inner{min-height:76px}
  .primary-menu-wrap{display:none}
  .topbar.open .primary-menu-wrap{
    display:block;position:absolute;left:0;right:0;top:100%;
    background:var(--primary-deep);padding:14px 12px 22px
  }
  .topbar.open .primary-menu{flex-direction:column;align-items:stretch;gap:8px}
  .topbar.open .primary-menu a{display:block;text-align:center}
  .header-contact{display:none}
  .page-hero{min-height:320px}
  .page-hero h1{font-size:42px}
  .page-hero p{font-size:18px}
  .feature-grid,.course-grid,.contact-grid,.teacher-grid,.news-grid,
  .split-grid,.dual-card-grid,.form-grid,.footer-grid{grid-template-columns:1fr}
  .section{padding:56px 0}
  .content-block h2,.section-title,.color-card h3{font-size:36px}
  .color-card p{font-size:20px}
  .feature-card h3,.course-card h3,.teacher-card h3,.news-card h3,.contact-card h3{font-size:24px}
  .stat-row{gap:28px}
  .stat-item strong{font-size:40px}
  .cta-strip{padding:36px 26px;flex-direction:column;align-items:flex-start}
  .cta-strip h3{font-size:34px}
  .media-card.tall,.media-card.wide{height:320px}
}
