/* ===== 新知教育主题样式（智能学习科技风） ===== */
:root {
    --teal: #0d9488;
    --teal-light: #14b8a6;
    --teal-dark: #0f766e;
    --ink: #1e293b;
    --muted: #64748b;
    --bg: #f8fafc;
    --tag-bg: #f0fdfa;
    --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:var(--bg); }
.container { max-width:1200px; margin:0 auto; padding:0 20px; }
img { max-width:100%; }

/* Header */
.header { background:rgba(255,255,255,0.95); backdrop-filter:blur(20px); padding:0; position:sticky; top:0; z-index:100; border-bottom:1px solid rgba(13,148,136,0.1); }
.header-inner { display:flex; justify-content:space-between; align-items:center; padding:14px 0; }
.logo { display:flex; align-items:center; gap:12px; text-decoration:none; }
.logo img { max-height:34px; }
.logo-dot { position:relative; width:12px; height:12px; background:var(--teal); border-radius:2px; transform:rotate(45deg); }
.logo-dot::before { content:''; position:absolute; width:6px; height:6px; background:var(--teal-light); border-radius:1px; transform:rotate(0deg); top:10px; left:10px; }
.logo-text { font-size:20px; font-weight:700; color:var(--ink); letter-spacing:-0.5px; }
.logo-text span { color:var(--teal); }
.nav { display:flex; gap:4px; list-style:none; }
.nav > li { position:relative; }
.nav a { color:var(--muted); text-decoration:none; padding:8px 18px; font-size:14px; font-weight:500; transition:all 0.3s; border-radius:6px; display:block; }
.nav a:hover,.nav a.active { background:var(--teal); color:#fff; }
.nav .subnav { display:none; position:absolute; top:100%; left:0; min-width:170px; background:#fff; list-style:none; border-radius:10px; box-shadow:0 12px 35px rgba(30,41,59,0.12); z-index:110; padding:6px; }
.nav > li:hover .subnav { display:block; }
.nav .subnav a { padding:9px 14px; font-size:13px; white-space:nowrap; border-radius:8px; }
.nav .subnav a:hover { background:var(--tag-bg); color:var(--teal); }

/* Hero */
.hero { min-height:88vh; display:flex; align-items:center; position:relative; background:linear-gradient(135deg,#f0fdfa,var(--bg)); overflow:hidden; }
.hero::before { content:''; position:absolute; top:-30%; right:-10%; width:600px; height:600px; background:radial-gradient(circle,rgba(13,148,136,0.08) 0%,transparent 70%); pointer-events:none; }
.hero::after { content:''; position:absolute; bottom:-20%; left:-5%; width:400px; height:400px; background:radial-gradient(circle,rgba(20,184,166,0.06) 0%,transparent 70%); pointer-events:none; }
.hero-content { position:relative; z-index:2; display:grid; grid-template-columns:1fr 1fr; gap:50px; align-items:center; padding:60px 0; }
.hero-text h1 { font-size:48px; color:var(--ink); margin-bottom:16px; font-weight:700; letter-spacing:-1px; line-height:1.15; }
.hero-text h1 span { color:var(--teal); }
.hero-text > p { color:var(--muted); font-size:16px; line-height:1.8; margin-bottom:32px; max-width:480px; }
.hero-tag { display:inline-block; background:#fff; border:1px solid rgba(13,148,136,0.2); color:var(--teal); padding:6px 18px; border-radius:50px; font-size:13px; font-weight:600; margin-bottom:20px; }
.hero-stats { display:flex; gap:30px; margin-bottom:32px; }
.hero-stats .item { text-align:center; }
.hero-stats .num { font-size:32px; font-weight:700; color:var(--teal); }
.hero-stats .label { font-size:13px; color:#94a3b8; }
.hero-visual { position:relative; }
.hero-card { background:rgba(255,255,255,0.8); backdrop-filter:blur(12px); border-radius:16px; padding:30px; box-shadow:0 8px 40px rgba(13,148,136,0.08); border:1px solid rgba(13,148,136,0.1); }
.hero-card .bar { display:flex; align-items:center; gap:12px; margin-bottom:14px; }
.hero-card .bar:last-child { margin-bottom:0; }
.hero-card .bar-label { font-size:13px; color:var(--muted); min-width:60px; }
.hero-card .bar-track { flex:1; height:8px; background:#e2e8f0; border-radius:4px; overflow:hidden; }
.hero-card .bar-fill { height:100%; background:linear-gradient(90deg,var(--teal),var(--teal-light)); border-radius:4px; transition:width 1.5s; }
.hero-card .bar-value { font-size:13px; font-weight:600; color:var(--teal); min-width:36px; text-align:right; }
.hero-btns { display:flex; gap:14px; }
.btn { padding:13px 34px; font-size:14px; font-weight:600; cursor:pointer; transition:all 0.3s; text-decoration:none; display:inline-block; border:none; border-radius:8px; font-family:inherit; }
.btn-primary { background:var(--teal); color:#fff; }
.btn-primary:hover { background:var(--teal-dark); transform:translateY(-2px); box-shadow:0 8px 30px rgba(13,148,136,0.3); }
.btn-outline { background:transparent; color:var(--teal); border:2px solid var(--teal); }
.btn-outline:hover { background:var(--teal); color:#fff; transform:translateY(-2px); }

/* Section */
.section { padding:100px 0; }
.section-title { margin-bottom:60px; }
.section-title .tag { display:inline-block; background:var(--tag-bg); color:var(--teal); padding:4px 16px; border-radius:6px; font-size:12px; font-weight:600; margin-bottom:12px; }
.section-title h2 { font-size:34px; font-weight:700; color:var(--ink); margin-bottom:10px; }
.section-title .sub { color:var(--muted); font-size:16px; }

/* Features */
.features-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:30px; }
.feature-card { background:#fff; padding:32px 28px; border-radius:16px; border:1px solid #e2e8f0; transition:all 0.3s; }
.feature-card:hover { transform:translateY(-6px); border-color:var(--teal); box-shadow:0 12px 40px rgba(13,148,136,0.08); }
.feature-card .icon { width:52px; height:52px; background:var(--tag-bg); border-radius:12px; display:flex; align-items:center; justify-content:center; font-size:24px; color:var(--teal); 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:#fff; }
.courses-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:30px; }
.course-card { background:#fff; border-radius:16px; overflow:hidden; border:1px solid #e2e8f0; transition:all 0.4s; text-decoration:none; color:inherit; display:block; }
.course-card:hover { transform:translateY(-6px); border-color:var(--teal); box-shadow:0 12px 40px rgba(13,148,136,0.08); }
.course-card img { width:100%; height:200px; object-fit:cover; }
.course-body { padding:24px; }
.course-body .tag { background:var(--teal); color:#fff; padding:3px 14px; border-radius:6px; font-size:11px; font-weight:500; 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:28px 20px; background:#fff; border-radius:16px; border:1px solid #e2e8f0; transition:all 0.3s; }
.teacher-card:hover { transform:translateY(-6px); border-color:var(--teal); box-shadow:0 12px 40px rgba(13,148,136,0.06); }
.teacher-card .avatar { width:120px; height:120px; border-radius:50%; object-fit:cover; margin:0 auto 16px; border:3px solid var(--tag-bg); display:block; }
.teacher-card h4 { font-size:18px; font-weight:600; }
.teacher-card .title { color:var(--teal); font-size:13px; 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; border-radius:16px; height:280px; }
.env-item img { width:100%; height:100%; object-fit:cover; transition:transform 0.5s; }
.env-item:hover img { transform:scale(1.08); }
.env-overlay { position:absolute; bottom:0; left:0; right:0; background:linear-gradient(transparent,rgba(13,148,136,0.85)); padding:30px 20px 20px; color:#fff; border-radius:0 0 16px 16px; 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; border-radius:16px; overflow:hidden; border:1px solid #e2e8f0; transition:all 0.3s; text-decoration:none; color:inherit; display:block; }
.news-card:hover { transform:translateY(-6px); border-color:var(--teal); box-shadow:0 12px 40px rgba(13,148,136,0.06); }
.news-card img { width:100%; height:200px; object-fit:cover; }
.news-body { padding:24px; }
.news-body .date { color:var(--teal); 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(--teal); text-decoration:none; font-weight:600; display:inline-block; margin-top:10px; }
.news-body .more:hover { color:var(--teal-dark); }

/* Stats */
.stats-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:24px; margin-top:50px; }
.stat-item { text-align:center; padding:28px; background:#fff; border-radius:12px; border:1px solid #e2e8f0; }
.stat-item .num { font-size:40px; font-weight:700; color:var(--teal); }
.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; color:var(--teal-light); }
.footer p { color:rgba(255,255,255,0.55); font-size:14px; line-height:1.8; }
.footer a { color:rgba(255,255,255,0.55); text-decoration:none; display:block; padding:5px 0; font-size:14px; transition:color 0.3s; }
.footer a:hover { color:var(--teal-light); }
.footer-links, .footer-contact { list-style:none; }
.footer-contact li { color:rgba(255,255,255,0.55); font-size:14px; padding:5px 0; }
.footer-bottom { border-top:1px solid rgba(255,255,255,0.05); padding:20px 0; margin-top:40px; text-align:center; font-size:13px; color:rgba(255,255,255,0.35); }

/* Page Header */
.page-header { padding:100px 0 70px; text-align:center; color:#fff; position:relative; }
.page-header h1 { font-size:40px; 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.75); }
.breadcrumb a { color:rgba(255,255,255,0.92); text-decoration:none; }
.breadcrumb a:hover { color:#fff; }
.breadcrumb-light { color:var(--muted); margin:0 0 30px; font-size:14px; }
.breadcrumb-light a { color:var(--teal); text-decoration:none; }

/* About */
.about-intro { display:grid; grid-template-columns:1fr 1fr; gap:50px; align-items:center; }
.about-intro img { width:100%; border-radius:16px; box-shadow:0 10px 40px rgba(0,0,0,0.06); }
.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; border-radius:16px; border:1px solid #e2e8f0; transition:all 0.3s; }
.product-item:hover { transform:translateY(-4px); border-color:var(--teal); box-shadow:0 12px 40px rgba(13,148,136,0.06); }
.product-item h3 { font-size:22px; font-weight:600; }
.product-item .level { color:var(--teal); font-size:13px; 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; border-radius:6px; font-size:12px; color:var(--teal); }

/* Filters */
.filters { display:flex; flex-wrap:wrap; gap:12px; justify-content:center; margin-bottom:45px; }
.filter-btn { padding:9px 24px; border-radius:8px; 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; }
.filter-btn:hover { border-color:var(--teal); color:var(--teal); }
.filter-btn.active { background:var(--teal); border-color:var(--teal); 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-radius:8px; 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(--teal); color:var(--teal); }
.pagination a.active { background:var(--teal); border-color:var(--teal); 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; border-radius:12px; }
.news-item .date { color:var(--teal); 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(--teal); }
.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%; border-radius:16px; box-shadow:0 10px 40px rgba(0,0,0,0.06); }
.detail-title { font-size:32px; font-weight:700; color:var(--ink); margin-bottom:14px; }
.badge-cat { display:inline-block; background:var(--teal); color:#fff; padding:4px 16px; border-radius:6px; font-size:12px; font-weight:500; 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%; border-radius:16px; }

/* 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; border-radius:12px; }

/* Contact */
.contact-grid { display:grid; grid-template-columns:1fr 1fr; gap:40px; }
.contact-info h3 { font-size:24px; font-weight:700; 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:var(--tag-bg); border-radius:10px; display:flex; align-items:center; justify-content:center; color:var(--teal); font-size:16px; flex-shrink:0; }
.contact-form input, .contact-form textarea, .contact-form select { width:100%; padding:14px; border:2px solid #e2e8f0; border-radius:10px; font-family:inherit; font-size:14px; margin-bottom:16px; transition:border-color 0.3s; background:#fff; }
.contact-form input:focus, .contact-form textarea:focus, .contact-form select:focus { outline:none; border-color:var(--teal); }
.contact-form textarea { height:150px; resize:vertical; }
.map-block { margin-top:60px; }
.map-block iframe { width:100%; border:0; border-radius:16px; }

/* Search */
.search-box { display:flex; max-width:640px; margin:0 auto 45px; }
.search-box input { flex:1; padding:14px 18px; border:2px solid var(--teal); border-right:none; border-radius:10px 0 0 10px; font-family:inherit; font-size:15px; background:#fff; }
.search-box input:focus { outline:none; }
.search-box button { padding:14px 34px; background:var(--teal); color:#fff; border:2px solid var(--teal); border-radius:0 10px 10px 0; 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(--teal); padding:2px 12px; border-radius:6px; 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(--teal); }
.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); }
}
@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:32px; }
  .hero-stats { gap:16px; }
  .hero-stats .num { font-size:24px; }
  .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; }
}
