* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: "Microsoft YaHei", "PingFang SC", sans-serif; color: #333; line-height: 1.6; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

/* === Header === */
.header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    background: rgba(255,255,255,0.97);
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 5%; height: 70px;
}
.logo { display: flex; align-items: center; gap: 10px; }
.logo img { height: 40px; }
.nav { display: flex; gap: 30px; }
.nav a { font-size: 15px; color: #555; transition: color 0.3s; }
.nav a:hover, .nav a.active { color: #1a5276; }
.header-phone { font-size: 18px; color: #e67e22; font-weight: 600; }

/* === Hero === */
.hero {
    margin-top: 70px;
    position: relative;
    height: 560px;
    background: linear-gradient(135deg, #1a5276 0%, #2980b9 100%);
    display: flex; align-items: center; justify-content: center;
    text-align: center; color: #fff; overflow: hidden;
}
.hero::before {
    content: ''; position: absolute; inset: 0;
    background: url('/static/upload/site/bg22.jpg') center/cover no-repeat;
    opacity: 0.18;
}
.hero-content { position: relative; z-index: 1; max-width: 700px; padding: 0 20px; }
.hero h1 { font-size: 42px; font-weight: 700; margin-bottom: 16px; letter-spacing: 2px; }
.hero p { font-size: 18px; opacity: 0.9; margin-bottom: 30px; }
.hero-tags { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 30px; }
.hero-tags span {
    background: rgba(255,255,255,0.18); border: 1px solid rgba(255,255,255,0.35);
    padding: 6px 18px; border-radius: 20px; font-size: 14px;
}
.btn-primary {
    display: inline-block; background: #e67e22; color: #fff;
    padding: 14px 40px; border-radius: 30px; font-size: 16px; font-weight: 600;
    transition: all 0.3s; box-shadow: 0 4px 15px rgba(230,126,34,0.4);
}
.btn-primary:hover { background: #d35400; transform: translateY(-2px); }

/* === Section Common === */
.section { padding: 80px 5%; }
.section-title { text-align: center; margin-bottom: 50px; }
.section-title h2 { font-size: 30px; color: #1a5276; margin-bottom: 10px; }
.section-title p { color: #888; font-size: 15px; }
.section-title::after {
    content: ''; display: block; width: 50px; height: 3px;
    background: #e67e22; margin: 14px auto 0; border-radius: 2px;
}

/* === Courses === */
.courses { background: #f8f9fa; }
.course-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px; max-width: 1100px; margin: 0 auto;
}
.course-card {
    background: #fff; border-radius: 12px; overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06); transition: all 0.3s;
    text-align: center;
}
.course-card:hover { transform: translateY(-6px); box-shadow: 0 8px 30px rgba(0,0,0,0.12); }
.course-icon {
    height: 140px; display: flex; align-items: center; justify-content: center;
    font-size: 50px; background: linear-gradient(135deg, #1a5276, #2980b9); color: #fff;
}
.course-card:nth-child(2) .course-icon { background: linear-gradient(135deg, #e67e22, #f39c12); }
.course-card:nth-child(3) .course-icon { background: linear-gradient(135deg, #27ae60, #2ecc71); }
.course-card:nth-child(4) .course-icon { background: linear-gradient(135deg, #8e44ad, #9b59b6); }
.course-info { padding: 20px; }
.course-info h3 { font-size: 18px; margin-bottom: 8px; color: #1a5276; }
.course-info p { font-size: 13px; color: #888; }

/* === About === */
.about { background: #fff; }
.about-content {
    display: flex; align-items: center; gap: 50px;
    max-width: 1100px; margin: 0 auto; flex-wrap: wrap;
}
.about-img { flex: 1; min-width: 300px; border-radius: 12px; overflow: hidden; box-shadow: 0 8px 30px rgba(0,0,0,0.1); }
.about-img img { width: 100%; height: 320px; object-fit: cover; }
.about-text { flex: 1; min-width: 300px; }
.about-text h3 { font-size: 22px; color: #1a5276; margin-bottom: 16px; }
.about-text p { color: #666; font-size: 15px; margin-bottom: 12px; }

/* === Environment === */
.environment { background: #f8f9fa; }
.env-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px; max-width: 1100px; margin: 0 auto;
}
.env-item {
    border-radius: 10px; overflow: hidden; position: relative;
    height: 200px; cursor: pointer;
}
.env-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.env-item:hover img { transform: scale(1.08); }
.env-item .overlay {
    position: absolute; inset: 0; background: rgba(26,82,118,0.5);
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 15px; font-weight: 600;
    opacity: 0; transition: opacity 0.3s;
}
.env-item:hover .overlay { opacity: 1; }

/* === Advantages === */
.advantages { background: #fff; }
.adv-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px; max-width: 1100px; margin: 0 auto;
}
.adv-item { text-align: center; padding: 30px 20px; }
.adv-icon {
    width: 70px; height: 70px; border-radius: 50%;
    background: linear-gradient(135deg, #1a5276, #2980b9);
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 16px; font-size: 28px; color: #fff;
}
.adv-item h4 { font-size: 16px; margin-bottom: 8px; color: #1a5276; }
.adv-item p { font-size: 13px; color: #888; }

/* === Teachers === */
.teachers { background: #f8f9fa; }
.teacher-grid {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 24px; max-width: 900px; margin: 0 auto;
}
.teacher-card {
    background: #fff; border-radius: 12px; overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06); transition: all 0.3s;
    text-align: center;
}
.teacher-card:hover { transform: translateY(-6px); box-shadow: 0 8px 30px rgba(0,0,0,0.12); }
.teacher-card img { width: 100%; height: 280px; object-fit: cover; }
.teacher-info { padding: 16px; }
.teacher-info h4 { font-size: 16px; color: #1a5276; margin-bottom: 4px; }
.teacher-info p { font-size: 13px; color: #888; }

/* === News === */
.news-section { background: #f8f9fa; }
.news-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px; max-width: 1100px; margin: 0 auto;
}
.news-card {
    background: #fff; border-radius: 12px; overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06); transition: all 0.3s;
    text-decoration: none; color: inherit;
}
.news-card:hover { transform: translateY(-4px); box-shadow: 0 8px 30px rgba(0,0,0,0.12); }
.nc-img { height: 180px; overflow: hidden; background: #f0f0f0; display: flex; align-items: center; justify-content: center; }
.nc-img img { width: 100%; height: 100%; object-fit: cover; }
.nc-body { padding: 16px; }
.nc-date { font-size: 13px; color: #e67e22; }
.nc-body h4 { font-size: 16px; color: #1a5276; margin: 6px 0; }
.nc-body p { font-size: 13px; color: #888; margin-bottom: 8px; }
.nc-more { font-size: 13px; color: #e67e22; }
.news-card-noimg { display: flex; flex-direction: column; }
.news-card-noimg .nc-body { padding: 20px; flex: 1; display: flex; flex-direction: column; justify-content: center; }

/* === Contact === */
.contact { background: linear-gradient(135deg, #1a5276 0%, #2980b9 100%); color: #fff; }
.contact .section-title h2 { color: #fff; }
.contact .section-title p { color: rgba(255,255,255,0.7); }
.contact .section-title::after { background: #e67e22; }
.contact-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px; max-width: 900px; margin: 0 auto; text-align: center;
}
.contact-item { padding: 20px; }
.contact-icon { font-size: 36px; margin-bottom: 14px; }
.contact-item h4 { font-size: 17px; margin-bottom: 8px; }
.contact-item p { font-size: 14px; opacity: 0.85; }

/* === Footer === */
.footer {
    background: #0e2f44; color: rgba(255,255,255,0.6);
    text-align: center; padding: 24px 5%; font-size: 13px;
}
.footer a { color: rgba(255,255,255,0.8); }

/* === 悬浮工具栏 === */
.float-toolbar {
    position: fixed; bottom: 30px; right: 24px; z-index: 99;
    display: flex; flex-direction: column; gap: 0;
    border-radius: 28px; overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}
.ftb-btn {
    width: 48px; height: 48px; display: flex; align-items: center; justify-content: center;
    font-size: 20px; color: #fff; text-decoration: none;
    transition: all 0.3s; cursor: pointer;
}
.ftb-consult {
    background: #e67e22; animation: ctaPulse 2s infinite;
}
.ftb-consult:hover { background: #d35400; }
.ftb-top {
    background: #1a5276; opacity: 0; max-height: 0; pointer-events: none;
    transition: all 0.3s ease;
}
.ftb-top.show { opacity: 1; max-height: 48px; pointer-events: auto; }
.ftb-top:hover { background: #2980b9; }
@keyframes ctaPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(230,126,34,0.4); }
    50% { box-shadow: 0 0 0 8px rgba(230,126,34,0); }
}

/* === Mobile === */
.mobile-menu-btn { display: none; font-size: 24px; cursor: pointer; color: #1a5276; background: none; border: none; }
@media (max-width: 768px) {
    .header { padding: 0 3%; }
    .logo img { height: 32px; }
    .nav { display: none; }
    .mobile-menu-btn { display: block; }
    .header-phone { font-size: 14px; white-space: nowrap; }
    .hero { height: 420px; }
    .hero h1 { font-size: 28px; }
    .hero p { font-size: 15px; }
    .section { padding: 50px 5%; }
    .section-title h2 { font-size: 24px; }
    .about-content { gap: 30px; }
    .about-img img { height: 220px; }
    .teacher-grid { grid-template-columns: repeat(2, 1fr); }
}

/* === Scroll Animation === */
.fade-in { opacity: 0; transform: translateY(30px); transition: all 0.6s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }