/* ===== 卓越教育主题样式（现代教育先锋风） ===== */
:root {
    --purple: #7c3aed;
    --dark-purple: #6d28d9;
    --orange: #ea580c;
    --ink: #1e1e2f;
    --muted: #64748b;
    --bg-light: #f8f7fc;
    --tag-bg: #f0e6ff;
    --font: 'Inter','Microsoft YaHei','Helvetica Neue',Arial,sans-serif;
}
* { margin:0; padding:0; box-sizing:border-box; }
body { font-family: var(--font); color:var(--ink); background:#ffffff; overflow-x:hidden; }
.container { max-width:1200px; margin:0 auto; padding:0 20px; }
img { max-width:100%; }

/* Header */
.header { background:#fff; padding:0; position:sticky; top:0; z-index:100; box-shadow:0 2px 30px rgba(0,0,0,0.06); }
.header-inner { display:flex; justify-content:space-between; align-items:center; padding:16px 0; }
.logo { display:flex; align-items:center; gap:10px; text-decoration:none; }
.logo img { max-height:36px; }
.logo-marks { display:flex; gap:2px; }
.logo-marks span { width:8px; height:24px; background:var(--purple); display:block; }
.logo-marks span:nth-child(2) { background:var(--orange); height:16px; align-self:flex-end; }
.logo-marks span:nth-child(3) { background:var(--purple); height:20px; }
.logo-text { font-size:22px; font-weight:800; color:var(--ink); letter-spacing:-0.5px; }
.logo-text span { color:var(--orange); }
.nav { display:flex; gap:2px; list-style:none; }
.nav > li { position:relative; }
.nav a { color:#475569; text-decoration:none; padding:8px 20px; font-size:14px; font-weight:500; transition:all 0.3s; display:block; clip-path:polygon(8px 0,100% 0,calc(100% - 8px) 100%,0 100%); }
.nav a:hover,.nav a.active { background:var(--purple); color:#fff; }
.nav .subnav { display:none; position:absolute; top:100%; left:0; min-width:170px; background:#fff; list-style:none; box-shadow:0 12px 35px rgba(30,30,47,0.12); z-index:110; padding:6px 0; }
.nav > li:hover .subnav { display:block; }
.nav .subnav a { clip-path:none; padding:10px 18px; font-size:13px; white-space:nowrap; }
.nav .subnav a:hover { background:var(--bg-light); color:var(--purple); }

/* Hero */
.hero { min-height:90vh; display:flex; align-items:center; position:relative; background:var(--bg-light); overflow:hidden; }
.hero-bg { position:absolute; top:0; right:0; width:55%; height:100%; background:linear-gradient(135deg,var(--purple),var(--dark-purple)); clip-path:polygon(20% 0,100% 0,100% 100%,0 100%); pointer-events:none; }
.hero-bg::before { content:''; position:absolute; top:20%; left:-10%; width:300px; height:300px; border:2px solid rgba(255,255,255,0.08); border-radius:50%; }
.hero-bg::after { content:''; position:absolute; bottom:10%; right:10%; width:200px; height:200px; background:rgba(234,88,12,0.15); border-radius:50%; }
.hero-content { position:relative; z-index:2; display:grid; grid-template-columns:1fr 1fr; gap:60px; align-items:center; padding:80px 0; }
.hero-text h1 { font-size:54px; color:var(--ink); margin-bottom:16px; font-weight:800; line-height:1.15; letter-spacing:-1px; }
.hero-text h1 .highlight { background:linear-gradient(135deg,var(--purple),var(--orange)); -webkit-background-clip:text; background-clip:text; -webkit-text-fill-color:transparent; }
.hero-text p { color:var(--muted); font-size:17px; line-height:1.8; margin-bottom:32px; max-width:480px; }
.hero-image { position:relative; }
.hero-image .card-stack { position:relative; }
.hero-image .card-item { background:#fff; padding:24px; box-shadow:0 10px 40px rgba(124,58,237,0.1); position:relative; transform:rotate(-2deg); margin-bottom:16px; }
.hero-image .card-item:nth-child(2) { transform:rotate(3deg); margin-left:40px; }
.hero-image .card-item:nth-child(3) { transform:rotate(-1deg); }
.hero-image .card-item h4 { font-size:16px; color:var(--purple); margin-bottom:4px; }
.hero-image .card-item p { font-size:13px; color:#94a3b8; }
.hero-btns { display:flex; gap:14px; }
.btn { padding:14px 36px; font-size:14px; font-weight:600; cursor:pointer; transition:all 0.3s; text-decoration:none; display:inline-block; border:none; font-family:inherit; }
.btn-primary { background:linear-gradient(135deg,var(--purple),var(--dark-purple)); color:#fff; }
.btn-primary:hover { transform:translateY(-3px); box-shadow:0 10px 35px rgba(124,58,237,0.35); }
.btn-outline { background:transparent; color:var(--purple); border:2px solid var(--purple); }
.btn-outline:hover { background:var(--purple); color:#fff; transform:translateY(-3px); }

/* Section */
.section { padding:100px 0; }
.section-title { margin-bottom:60px; }
.section-title .tag { display:inline-block; background:var(--tag-bg); color:var(--purple); padding:4px 16px; font-size:12px; font-weight:600; letter-spacing:2px; margin-bottom:12px; }
.section-title h2 { font-size:36px; font-weight:700; color:var(--ink); margin-bottom:10px; letter-spacing:-0.5px; }
.section-title .sub { color:var(--muted); font-size:16px; }
.section-title-center { text-align:center; }

/* Features */
.features-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:30px; }
.feature-card { background:#fff; padding:36px 28px; box-shadow:0 4px 30px rgba(0,0,0,0.04); transition:all 0.4s; position:relative; overflow:hidden; clip-path:polygon(0 0,100% 0,100% calc(100% - 12px),calc(100% - 12px) 100%,0 100%); }
.feature-card::before { content:''; position:absolute; top:0; left:0; width:4px; height:100%; background:linear-gradient(180deg,var(--purple),var(--orange)); }
.feature-card:hover { transform:translateY(-8px); box-shadow:0 20px 60px rgba(124,58,237,0.1); }
.feature-card .icon { font-size:36px; margin-bottom:16px; }
.feature-card h3 { font-size:18px; font-weight:600; margin-bottom:10px; }
.feature-card p { color:var(--muted); font-size:14px; line-height:1.8; }

/* Courses */
.courses { background:var(--bg-light); }
.courses-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:30px; }
.course-card { background:#fff; box-shadow:0 4px 30px rgba(0,0,0,0.04); transition:all 0.4s; position:relative; overflow:hidden; text-decoration:none; color:inherit; display:block; }
.course-card::before { content:''; position:absolute; top:0; left:0; right:0; height:4px; background:linear-gradient(90deg,var(--purple),var(--orange)); transform:scaleX(0); transform-origin:left; transition:transform 0.4s; z-index:2; }
.course-card:hover::before { transform:scaleX(1); }
.course-card:hover { transform:translateY(-8px); box-shadow:0 20px 60px rgba(124,58,237,0.1); }
.course-card img { width:100%; height:200px; object-fit:cover; }
.course-body { padding:24px; }
.course-body .tag { background:linear-gradient(135deg,var(--purple),var(--orange)); color:#fff; padding:3px 14px; font-size:11px; font-weight:600; display:inline-block; }
.course-body h3 { font-size:20px; font-weight:600; margin:12px 0 8px; }
.course-body p { color:var(--muted); font-size:14px; line-height:1.7; }
.course-body .meta { display:flex; gap:20px; margin-top:14px; color:#94a3b8; font-size:13px; }

/* Teachers */
.teachers-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:30px; }
.teacher-card { text-align:center; padding:30px 20px; background:#fff; box-shadow:0 4px 30px rgba(0,0,0,0.04); transition:all 0.4s; clip-path:polygon(12px 0,100% 0,100% 100%,0 100%,0 12px); }
.teacher-card:hover { transform:translateY(-6px); box-shadow:0 16px 50px rgba(124,58,237,0.1); }
.teacher-card .avatar { width:120px; height:120px; object-fit:cover; margin:0 auto 16px; transform:rotate(-2deg); box-shadow:0 8px 25px rgba(0,0,0,0.1); display:block; }
.teacher-card h4 { font-size:18px; font-weight:600; }
.teacher-card .title { color:var(--orange); font-size:13px; font-weight:500; margin-top:4px; }
.teacher-card p { color:var(--muted); font-size:13px; margin-top:10px; line-height:1.7; }

/* Environment */
.env-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:24px; }
.env-item { position:relative; overflow:hidden; height:280px; }
.env-item img { width:100%; height:100%; object-fit:cover; transition:transform 0.6s; }
.env-item:hover img { transform:scale(1.08); }
.env-overlay { position:absolute; bottom:0; left:0; right:0; background:linear-gradient(transparent,rgba(124,58,237,0.85)); padding:30px 20px 20px; color:#fff; pointer-events:none; }
.env-overlay h4 { font-size:18px; font-weight:600; }
.env-overlay p { font-size:13px; opacity:0.85; }

/* News */
.news-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:30px; }
.news-card { background:#fff; box-shadow:0 4px 30px rgba(0,0,0,0.04); transition:all 0.3s; text-decoration:none; color:inherit; display:block; }
.news-card:hover { transform:translateY(-6px); box-shadow:0 16px 50px rgba(124,58,237,0.08); }
.news-card img { width:100%; height:200px; object-fit:cover; }
.news-body { padding:24px; }
.news-body .date { color:var(--orange); font-size:13px; font-weight:500; }
.news-body h3 { font-size:18px; font-weight:600; margin:8px 0; }
.news-body p { color:var(--muted); font-size:14px; line-height:1.7; }
.news-body .more { color:var(--purple); text-decoration:none; font-weight:600; display:inline-block; margin-top:10px; }
.news-body .more:hover { color:var(--orange); }

/* Stats */
.stats-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:24px; margin-top:50px; }
.stat-item { text-align:center; padding:30px; background:var(--bg-light); clip-path:polygon(8px 0,100% 0,100% 100%,0 100%,0 8px); }
.stat-item .num { font-size:40px; font-weight:700; color:var(--purple); }
.stat-item p { color:var(--muted); font-size:14px; margin-top:4px; }

/* Footer */
.footer { background:var(--ink); color:#fff; padding:60px 0 0; }
.footer-grid { display:grid; grid-template-columns:2fr 1fr 1fr 1fr; gap:40px; }
.footer h4 { font-size:16px; font-weight:600; margin-bottom:16px; position:relative; padding-bottom:10px; }
.footer h4::after { content:''; position:absolute; bottom:0; left:0; width:24px; height:2px; background:var(--orange); }
.footer p { color:rgba(255,255,255,0.6); font-size:14px; line-height:1.8; }
.footer a { color:rgba(255,255,255,0.6); text-decoration:none; display:block; padding:5px 0; font-size:14px; transition:color 0.3s; }
.footer a:hover { color:var(--purple); }
.footer-links, .footer-contact { list-style:none; }
.footer-contact li { color:rgba(255,255,255,0.6); font-size:14px; padding:5px 0; }
.footer-bottom { border-top:1px solid rgba(255,255,255,0.06); padding:20px 0; margin-top:40px; text-align:center; font-size:13px; color:rgba(255,255,255,0.4); }

/* Page Header */
.page-header { padding:100px 0 70px; text-align:center; color:#fff; clip-path:polygon(0 0,100% 0,100% calc(100% - 20px),0 100%); position:relative; }
.page-header h1 { font-size:42px; font-weight:700; margin-bottom:10px; position:relative; z-index:2; }
.page-header p { color:rgba(255,255,255,0.85); font-size:16px; position:relative; z-index:2; }
.page-header .breadcrumb { position:relative; z-index:2; }
.page-header-sm { padding:80px 0 50px; }

/* Breadcrumb */
.breadcrumb { margin-top:18px; font-size:13px; color:rgba(255,255,255,0.7); }
.breadcrumb a { color:rgba(255,255,255,0.9); text-decoration:none; }
.breadcrumb a:hover { color:#fff; }
.breadcrumb-light { color:var(--muted); margin:0 0 30px; font-size:14px; clip-path:none; }
.breadcrumb-light a { color:var(--purple); text-decoration:none; }

/* About */
.about-intro { display:grid; grid-template-columns:1fr 1fr; gap:50px; align-items:center; }
.about-intro img { width:100%; box-shadow:0 10px 40px rgba(0,0,0,0.1); }
.about-intro h2 { font-size:32px; font-weight:700; margin-bottom:16px; }
.about-intro p { color:var(--muted); line-height:1.8; margin-bottom:12px; }

/* Products (特色/列表) */
.product-list { display:grid; grid-template-columns:1fr 1fr; gap:30px; }
.product-item { background:#fff; padding:36px; box-shadow:0 4px 30px rgba(0,0,0,0.04); transition:all 0.3s; border-left:4px solid var(--purple); }
.product-item:hover { transform:translateX(6px); box-shadow:0 12px 40px rgba(124,58,237,0.1); }
.product-item h3 { font-size:22px; font-weight:600; }
.product-item .level { color:var(--orange); font-size:13px; font-weight:500; margin-top:4px; }
.product-item p { color:var(--muted); font-size:14px; line-height:1.7; margin-top:10px; }
.product-item .features { display:flex; flex-wrap:wrap; gap:8px; margin-top:14px; }
.product-item .features span { background:var(--tag-bg); padding:4px 14px; font-size:12px; color:var(--purple); font-weight:500; }

/* Filters */
.filters { display:flex; flex-wrap:wrap; gap:12px; justify-content:center; margin-bottom:45px; }
.filter-btn { padding:9px 24px; border:2px solid #e2e8f0; background:#fff; color:var(--muted); font-size:14px; font-weight:500; text-decoration:none; transition:all 0.3s; font-family:inherit; clip-path:polygon(8px 0,100% 0,calc(100% - 8px) 100%,0 100%); }
.filter-btn:hover { border-color:var(--purple); color:var(--purple); }
.filter-btn.active { background:var(--purple); border-color:var(--purple); color:#fff; }

/* Pagination */
.pagination { display:flex; justify-content:center; gap:8px; margin-top:50px; }
.pagination a, .pagination span { min-width:40px; height:40px; display:flex; align-items:center; justify-content:center; border:2px solid #e2e8f0; background:#fff; color:var(--muted); text-decoration:none; font-size:14px; transition:all 0.3s; }
.pagination a:hover { border-color:var(--purple); color:var(--purple); }
.pagination a.active { background:var(--purple); border-color:var(--purple); color:#fff; }

/* News list page */
.news-list { max-width:800px; margin:0 auto; }
.news-item { display:grid; grid-template-columns:200px 1fr; gap:24px; padding:24px 0; border-bottom:1px solid #e2e8f0; }
.news-item img { width:200px; height:140px; object-fit:cover; }
.news-item .date { color:var(--orange); font-size:13px; }
.news-item h3 { font-size:18px; font-weight:600; margin:4px 0; }
.news-item h3 a { color:var(--ink); text-decoration:none; }
.news-item h3 a:hover { color:var(--purple); }
.news-item p { color:var(--muted); font-size:14px; line-height:1.7; }

/* Detail pages */
.detail-grid { display:grid; grid-template-columns:1fr 1fr; gap:50px; align-items:center; margin-bottom:60px; }
.detail-media img { width:100%; box-shadow:0 10px 40px rgba(0,0,0,0.1); }
.detail-title { font-size:32px; font-weight:700; color:var(--ink); margin-bottom:14px; }
.badge-cat { display:inline-block; background:linear-gradient(135deg,var(--purple),var(--orange)); color:#fff; padding:4px 16px; font-size:12px; font-weight:600; margin-bottom:16px; }
.detail-desc { color:var(--muted); font-size:16px; line-height:1.8; margin-bottom:26px; }
.detail-section { margin-top:60px; }
.detail-section .section-title { margin-bottom:35px; }
.news-detail { max-width:860px; margin:0 auto; }
.news-detail-meta { display:flex; gap:26px; color:var(--muted); font-size:14px; margin-bottom:28px; }
.news-detail-meta b { color:var(--ink); font-weight:600; }
.news-detail-img { margin-bottom:32px; }
.news-detail-img img { width:100%; }

/* Rich text */
.rich-text { font-size:15px; line-height:1.9; color:var(--muted); }
.rich-text p { margin-bottom:16px; }
.rich-text h2, .rich-text h3, .rich-text h4 { color:var(--ink); margin:26px 0 12px; }
.rich-text ul, .rich-text ol { margin:0 0 16px 22px; }
.rich-text img { max-width:100%; height:auto; }

/* Contact */
.contact-grid { display:grid; grid-template-columns:1fr 1fr; gap:40px; }
.contact-info h3 { font-size:24px; font-weight:600; margin-bottom:16px; }
.contact-info > p { color:var(--muted); line-height:1.8; margin-bottom:20px; }
.contact-info .item { display:flex; gap:14px; margin-bottom:16px; align-items:flex-start; color:var(--muted); font-size:14px; line-height:1.7; }
.contact-info .item strong { color:var(--ink); }
.contact-info .item .icon { width:40px; height:40px; background:linear-gradient(135deg,var(--purple),var(--orange)); display:flex; align-items:center; justify-content:center; color:#fff; font-size:16px; flex-shrink:0; clip-path:polygon(50% 0,100% 50%,50% 100%,0 50%); }
.contact-form input, .contact-form textarea, .contact-form select { width:100%; padding:14px; border:2px solid #e2e8f0; font-family:inherit; font-size:14px; margin-bottom:16px; transition:border-color 0.3s; }
.contact-form input:focus, .contact-form textarea:focus, .contact-form select:focus { outline:none; border-color:var(--purple); }
.contact-form textarea { height:150px; resize:vertical; }
.map-block { margin-top:60px; }
.map-block iframe { width:100%; border:0; }

/* Search */
.search-box { display:flex; max-width:640px; margin:0 auto 45px; }
.search-box input { flex:1; padding:14px 18px; border:2px solid var(--purple); border-right:none; font-family:inherit; font-size:15px; }
.search-box input:focus { outline:none; }
.search-box button { padding:14px 34px; background:var(--purple); color:#fff; border:2px solid var(--purple); font-family:inherit; font-size:15px; font-weight:600; cursor:pointer; }
.search-empty { text-align:center; color:var(--muted); padding:50px 0; }
.search-result { padding:22px 0; border-bottom:1px solid #e2e8f0; text-decoration:none; }
.search-result .type { display:inline-block; background:var(--tag-bg); color:var(--purple); padding:2px 12px; font-size:12px; font-weight:500; margin-bottom:8px; }
.search-result h3 { font-size:18px; color:var(--ink); font-weight:600; margin-bottom:6px; }
.search-result:hover h3 { color:var(--purple); }
.search-result p { color:var(--muted); font-size:14px; line-height:1.7; }

/* Animations（初始隐藏由 JS 内联设置，无 JS 时内容始终可见） */
.fade-in.visible { opacity:1 !important; transform:none !important; transition:all 0.6s; }

/* Responsive */
@media (max-width:992px) {
  .hero-content { grid-template-columns:1fr; }
  .features-grid,.courses-grid,.env-grid,.news-grid,.teachers-grid { grid-template-columns:repeat(2,1fr); }
  .footer-grid { grid-template-columns:repeat(2,1fr); }
  .about-intro, .detail-grid { grid-template-columns:1fr; }
  .contact-grid { grid-template-columns:1fr; }
  .product-list { grid-template-columns:1fr; }
  .stats-grid { grid-template-columns:repeat(2,1fr); }
  .hero-bg { width:100%; clip-path:polygon(0 50%,100% 30%,100% 100%,0 100%); }
}
@media (max-width:768px) {
  .header-inner { flex-direction:column; gap:12px; }
  .nav { flex-wrap:wrap; justify-content:center; }
  .nav .subnav { position:static; box-shadow:none; }
  .hero-text h1 { font-size:34px; }
  .features-grid,.courses-grid,.env-grid,.news-grid,.teachers-grid { grid-template-columns:1fr; }
  .footer-grid { grid-template-columns:1fr; }
  .news-item { grid-template-columns:1fr; }
  .news-item img { width:100%; height:200px; }
}
