/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #0b2852;
    --accent-color: #2f76d2;
    --text-dark: #14243d;
    --text-light: #607089;
    --bg-light: #f3f7fc;
    --white: #ffffff;
    --border-radius: 10px;
    --floating-right: 24px;
    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', 'Segoe UI', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    background: #fff;
}

body.menu-open {
    overflow: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

/* Page Loader */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.3s ease;
}

.loader-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid var(--bg-light);
    border-top: 4px solid var(--accent-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.text-center {
    text-align: center;
}

/* Header */
header {
    background: var(--primary-color);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

header.sticky {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--white);
    font-size: 1.5rem;
    font-weight: 700;
    transition: var(--transition);
}

.logo:hover {
    opacity: 0.9;
}

.logo-icon {
    display: flex;
    align-items: center;
    color: var(--accent-color);
}

.logo-icon svg {
    width: 32px;
    height: 32px;
}

.logo-accent {
    color: var(--accent-color);
}

/* Navigation */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.nav-item {
    position: relative;
}

.nav-link {
    color: var(--white);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
    padding: 0.5rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: width 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--accent-color);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* Dropdown */
.dropdown {
    position: relative;
}

.dropdown-toggle {
    color: var(--white);
    font-weight: 500;
    padding: 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    transition: var(--transition);
    cursor: pointer;
}

.dropdown-arrow {
    font-size: 0.7rem;
    transition: transform 0.3s ease;
}

.dropdown:hover .dropdown-toggle,
.dropdown.open .dropdown-toggle {
    color: var(--accent-color);
}

.dropdown:hover .dropdown-arrow,
.dropdown.open .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    min-width: 200px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    margin-top: 0.5rem;
    z-index: 100;
}

.dropdown:hover .dropdown-menu,
.dropdown.open .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: block;
    padding: 0.75rem 1.25rem;
    color: var(--text-dark);
    transition: var(--transition);
    border-left: 3px solid transparent;
}

.dropdown-item:hover {
    background: var(--bg-light);
    border-left-color: var(--accent-color);
    color: var(--accent-color);
    padding-left: 1.5rem;
}

/* Header Buttons */
.header-buttons {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.btn-enroll {
    background: var(--accent-color);
    color: var(--primary-color);
    padding: 0.75rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
}

.btn-enroll:hover {
    background: #6d73ff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(81, 89, 245, 0.4);
}

/* Mobile Toggle */
.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    padding: 0.5rem;
    background: transparent;
    border: none;
    cursor: pointer;
}

.hamburger-line {
    width: 25px;
    height: 3px;
    background: var(--white);
    border-radius: 2px;
    transition: var(--transition);
}

.mobile-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 70px);
    background: var(--primary-color);
    padding: 2rem;
    overflow-y: auto;
    transition: left 0.3s ease;
    z-index: 999;
}

.mobile-menu.active {
    left: 0;
}

.mobile-nav-menu {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.mobile-nav-item .nav-link {
    display: block;
    padding: 1rem;
    border-radius: 8px;
    transition: var(--transition);
}

.mobile-nav-item .nav-link:hover {
    background: rgba(81, 89, 245, 0.1);
}

.mobile-dropdown-toggle {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    color: var(--white);
    font-weight: 500;
    border-radius: 8px;
    transition: var(--transition);
}

.mobile-dropdown-toggle:hover {
    background: rgba(81, 89, 245, 0.1);
}

.mobile-dropdown-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    margin-left: 1rem;
}

.mobile-dropdown-menu.active {
    max-height: 500px;
}

.mobile-dropdown-item {
    display: block;
    padding: 0.75rem 1rem;
    color: var(--white);
    opacity: 0.8;
    transition: var(--transition);
    border-radius: 6px;
}

.mobile-dropdown-item:hover {
    opacity: 1;
    background: rgba(81, 89, 245, 0.1);
    padding-left: 1.5rem;
}

.mobile-menu-footer {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-block {
    width: 100%;
    text-align: center;
    display: block;
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(81, 89, 245, 0.85) 0%, rgba(63, 70, 216, 0.78) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--white);
    max-width: 800px;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    letter-spacing: 2px;
    font-weight: 800;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    letter-spacing: 1px;
    font-weight: 700;
    line-height: 1.3;
}

.hero-description {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
    text-align: center;
}

.btn-primary {
    background: var(--accent-color);
    color: var(--primary-color);
}

.btn-primary:hover {
    background: #6d73ff;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(81, 89, 245, 0.5);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--accent-color);
    border-radius: 6px;
}

.btn-secondary:hover {
    background: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(81, 89, 245, 0.4);
}

.btn-hero {
    background: var(--accent-color);
    color: var(--primary-color);
    padding: 1.25rem 3rem;
    font-size: 1.1rem;
}

.btn-hero:hover {
    background: #6d73ff;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(81, 89, 245, 0.5);
}

/* Section Styles */
section {
    padding: 5rem 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 3rem;
    letter-spacing: 1px;
    font-weight: 700;
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--accent-color);
    border-radius: 2px;
}

.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 700px;
    margin: -1.5rem auto 3rem;
}

/* Languages Section */
.languages-section {
    background: var(--bg-light);
}

.languages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.language-card {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.language-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(81, 89, 245, 0.3);
}

.language-flag {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.language-name {
    color: var(--primary-color);
    font-weight: 600;
}

/* Feature Section */
.feature-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.feature-image-wrapper {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

/* 首页第三屏「专业教学 · 稳步提升」配图：不要投影 */
.feature-section .feature-image-wrapper {
    box-shadow: none;
}

.feature-image {
    width: 100%;
    height: 500px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.feature-image-wrapper:hover .feature-image {
    transform: scale(1.05);
}

.feature-content {
    padding: 2rem 0;
}

.feature-title {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-weight: 700;
    line-height: 1.3;
}

.feature-description {
    color: var(--text-light);
    margin-bottom: 2rem;
    line-height: 1.8;
    font-size: 1.1rem;
}

.feature-list {
    margin-bottom: 2rem;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    color: #555;
    font-size: 1.05rem;
}

.feature-icon {
    background: var(--accent-color);
    color: var(--white);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    flex-shrink: 0;
}

/* Why Section */
.why-section {
    background: var(--primary-color);
    color: var(--white);
}

.why-section .section-title {
    color: var(--white);
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
}

.why-card {
    text-align: center;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.why-card:hover {
    background: rgba(81, 89, 245, 0.1);
    transform: translateY(-10px);
}

.why-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: var(--accent-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    transition: var(--transition);
}

.why-card:hover .why-icon {
    transform: scale(1.1) rotate(5deg);
}

.why-icon svg {
    width: 40px;
    height: 40px;
}

.why-card h3 {
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.why-card p {
    color: rgba(255, 255, 255, 0.8);
}

/* Stats Section */
.stats-section {
    background: #3f46d8;
    color: var(--white);
    padding: 4rem 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.stat-card {
    text-align: center;
    padding: 2rem;
}

.stat-number {
    font-size: 3.5rem;
    color: var(--accent-color);
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
}

/* Testimonials Section */
.testimonials-section {
    background: var(--bg-light);
}

.testimonial-slider {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.testimonial-content {
    padding: 0 80px;
}

.testimonial-card {
    background: var(--white);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.testimonial-stars {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.star-filled {
    color: #ffc107;
}

.star-filled svg {
    width: 24px;
    height: 24px;
    fill: #ffc107;
}

.testimonial-text {
    color: #555;
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.testimonial-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.testimonial-name {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 1.1rem;
}

.testimonial-role {
    color: #999;
}

/* Slider Controls */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--accent-color);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--white);
    transition: var(--transition);
    z-index: 10;
}

.slider-btn:hover {
    background: #6d73ff;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 5px 15px rgba(81, 89, 245, 0.4);
}

.slider-btn svg {
    width: 24px;
    height: 24px;
}

.slider-btn.prev {
    left: 0;
}

.slider-btn.next {
    right: 0;
}

.slider-dots,
.testimonial-dots {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ddd;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.dot.active,
.dot:hover {
    background: var(--accent-color);
    transform: scale(1.3);
}

/* Teachers Section */
.teacher-slider {
    position: relative;
}

.teacher-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    /* padding: 0 80px; */
}

.teacher-card {
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.teacher-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(81, 89, 245, 0.3);
}

.teacher-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.teacher-info {
    padding: 1.5rem;
    text-align: center;
}

.teacher-info h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.teacher-specialty {
    color: var(--accent-color);
    margin: 0.5rem 0;
    font-weight: 600;
}

.teacher-experience {
    color: #999;
    margin-bottom: 1rem;
}

/* Blog Section */
.blog-section {
    background: var(--bg-light);
}

.blog-slider {
    position: relative;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    /* padding: 0 80px; */
      height: auto;           /* make sure it grows with content */
  overflow: visible;      /* allow all rows to display */
}

.blog-card {
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
    cursor: pointer;
}

.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.blog-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.blog-card:hover .blog-image {
    transform: scale(1.1);
}

.blog-content {
    padding: 1.5rem;
}

.blog-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    font-size: 0.85rem;
}

.blog-category {
    background: var(--accent-color);
    color: var(--white);
    padding: 0.3rem 1rem;
    border-radius: 20px;
    font-weight: 600;
}

.blog-date {
    color: #999;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.blog-date svg {
    width: 14px;
    height: 14px;
}

.blog-title {
    color: var(--primary-color);
    margin-bottom: 0.75rem;
    font-weight: 700;
    line-height: 1.4;
    font-size: 1.2rem;
}

.blog-excerpt {
    color: var(--text-light);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.blog-link {
    color: var(--accent-color);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
}

.blog-link:hover {
    gap: 1rem;
    color: #6d73ff;
}

.blog-link svg {
    width: 16px;
    height: 16px;
}

/* News Section */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.news-card {
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
}

.news-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.news-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-card:hover .news-image {
    transform: scale(1.1);
}

.news-content {
    padding: 1.5rem;
}

.news-type {
    background: var(--primary-color);
    color: var(--white);
    padding: 0.3rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 1rem;
}

.news-title {
    color: var(--primary-color);
    margin-bottom: 0.75rem;
    font-weight: 700;
    line-height: 1.4;
}

.news-date {
    color: #999;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.news-date svg {
    width: 16px;
    height: 16px;
}

.news-link {
    color: var(--accent-color);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
}

.news-link:hover {
    gap: 1rem;
    color: #6d73ff;
}

.news-link svg {
    width: 16px;
    height: 16px;
}

/* Newsletter Section */
.newsletter-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, #3f46d8 100%);
    color: var(--white);
}

.newsletter-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
    text-align: center;
}

.newsletter-content p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    text-align: center;
}

.newsletter-form {
    display: flex;
    gap: 1rem;
    max-width: 500px;
    margin: 0 auto;
}

.newsletter-input {
    flex: 1;
    padding: 1rem 1.5rem;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    outline: none;
}

/* Footer */
.footer {
    background: #23234a;
    color: var(--white);
    padding: 4rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.footer-logo .logo-icon {
    color: var(--accent-color);
}

/* 页脚 logo（反白版图片） */
.footer-logo-img {
    height: 36px;
    width: auto;
    display: block;
}

.footer-col p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.social-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.social-link {
    width: 40px;
    height: 40px;
    background: rgba(81, 89, 245, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    transition: var(--transition);
}

.social-link:hover {
    background: var(--accent-color);
    color: var(--primary-color);
    transform: translateY(-3px);
}

.footer-col h4 {
    color: var(--accent-color);
    margin-bottom: 1.5rem;
    font-weight: 700;
    font-size: 1.2rem;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--accent-color);
    padding-left: 5px;
}

.footer-contact li {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0.75rem;
    line-height: 1.6;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.footer-contact svg {
    flex-shrink: 0;
    margin-top: 3px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
}

/* Contact Page */
.contact-info-section {
    background: var(--bg-light);
}

.contact-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.contact-info-card {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    text-align: center;
    transition: var(--transition);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.contact-info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(81, 89, 245, 0.3);
}

.contact-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem;
    background: var(--accent-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
}

.contact-icon svg {
    width: 30px;
    height: 30px;
}

.contact-info-card h3 {
    margin-bottom: 0.75rem;
    color: var(--primary-color);
}

.contact-info-card p {
    color: var(--text-light);
}

/* Contact Form */
.contact-form-section {
    padding: 5rem 0;
}

.contact-form-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    font-weight: 600;
    color: var(--primary-color);
}

.form-group label .required {
    color: #d4183d;
}

.form-control {
    padding: 1rem 1.5rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: var(--transition);
    font-family: inherit;
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(81, 89, 245, 0.1);
}

.form-control.error {
    border-color: #d4183d;
}

textarea.form-control {
    resize: vertical;
    min-height: 150px;
}

/* Map */
#map {
    width: 100%;
    height: 400px;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

/* About Page */
.about-hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, #3f46d8 100%);
    color: var(--white);
    padding: 5rem 0;
    text-align: center;
}

.about-hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.about-hero p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
    opacity: 0.9;
}

.mission-vision-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 3rem;
}

.mission-card,
.vision-card {
    background: var(--bg-light);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    border-left: 5px solid var(--accent-color);
}

/* Pricing Page */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.pricing-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    text-align: center;
    border: 2px solid transparent;
}

.pricing-card:hover,
.pricing-card.featured {
    transform: translateY(-10px);
    border-color: var(--accent-color);
    box-shadow: 0 10px 30px rgba(81, 89, 245, 0.3);
}

.pricing-card.featured {
    background: linear-gradient(135deg, #5159F5 0%, #3f46d8 100%);
    color: var(--white);
}

.pricing-header {
    margin-bottom: 2rem;
}

.pricing-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.pricing-card.featured .pricing-title {
    color: var(--white);
}

.pricing-price {
    font-size: 3rem;
    font-weight: 800;
    color: var(--accent-color);
}

.pricing-price span {
    font-size: 1.2rem;
    font-weight: normal;
}

.pricing-features {
    margin-bottom: 2rem;
    text-align: left;
}

.pricing-features li {
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pricing-card.featured .pricing-features li {
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

.pricing-features li::before {
    content: '\2713';
    color: var(--accent-color);
    font-weight: bold;
}

/* Team Page */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

/* FAQ Page */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--white);
    margin-bottom: 1rem;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.faq-question {
    width: 100%;
    padding: 1.5rem;
    background: none;
    border: none;
    text-align: left;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-color);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

.faq-question:hover {
    color: var(--accent-color);
}

.faq-question::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--accent-color);
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question::after {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

.faq-answer-content {
    padding: 0 1.5rem 1.5rem;
    color: var(--text-light);
    line-height: 1.8;
}

/* Blog Detail Page */
.blog-detail-hero {
    padding: 3rem 0;
    background: var(--bg-light);
}

.blog-detail-meta {
    display: flex;
    gap: 2rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.blog-detail-content {
    max-width: 800px;
    margin: 3rem auto;
    line-height: 1.8;
}

.blog-detail-content h2 {
    margin: 2rem 0 1rem;
    color: var(--primary-color);
}

.blog-detail-content p {
    margin-bottom: 1.5rem;
    color: var(--text-light);
}

.blog-detail-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: var(--border-radius);
    margin: 2rem 0;
}

/* Services & Gallery Grid */
.services-grid,
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
    text-align: center;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(81, 89, 245, 0.3);
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: var(--accent-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
}

.service-icon svg {
    width: 40px;
    height: 40px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius);
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(81, 89, 245, 0.8);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

/* Back to Top Button */
#back-to-top {
    position: fixed;
    bottom: 30px;
    right: var(--floating-right);
    width: 50px;
    height: 50px;
    background: var(--accent-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
    box-shadow: 0 4px 15px rgba(81, 89, 245, 0.4);
}

#back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

#back-to-top:hover {
    background: #6d73ff;
    transform: translateY(-5px);
}

/* Animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .feature-grid,
    .mission-vision-grid {
        grid-template-columns: 1fr;
    }

    .teacher-grid,
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.8rem;
    }
}

@media (max-width: 768px) {
    nav,
    .header-buttons {
        display: none;
    }

    .mobile-toggle {
        display: flex;
    }

    .hero-section {
        height: 500px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.5rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .teacher-grid,
    .blog-grid {
        grid-template-columns: 1fr;
        /* padding: 0 20px; */
    }

    .slider-btn {
        width: 40px;
        height: 40px;
    }

    .testimonial-content {
        padding: 0 60px;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .stat-number {
        font-size: 2.5rem;
    }

    .about-hero h1 {
        font-size: 2rem;
    }
}

/* Subtle motion for the public site */
.hero-image {
    animation: hero-drift 18s ease-in-out infinite alternate;
    transform-origin: center center;
}

.hero-content > * {
    animation: hero-enter 0.75s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.hero-content > *:nth-child(2) { animation-delay: 0.1s; }
.hero-content > *:nth-child(3) { animation-delay: 0.2s; }
.hero-content > *:nth-child(4) { animation-delay: 0.3s; }

.section-title::after {
    transform-origin: center;
    animation: title-rule 0.8s ease-out both;
}

.language-card,
.course-card,
.journey-card,
.exam-calendar-card,
.service-card,
.teacher-card,
.blog-card,
.news-card,
.pricing-card,
.contact-info-card {
    position: relative;
    overflow: hidden;
    will-change: transform;
}

.language-card::before,
.course-card::before,
.journey-card::before,
.service-card::before,
.pricing-card::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, 0.35) 50%, transparent 65%);
    transform: translateX(-120%);
    transition: transform 0.7s ease;
}

.language-card:hover::before,
.course-card:hover::before,
.journey-card:hover::before,
.service-card:hover::before,
.pricing-card:hover::before {
    transform: translateX(120%);
}

.stat-number {
    animation: stat-glow 3.5s ease-in-out infinite;
}

.float-wechat a,
#back-to-top {
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.float-wechat a:hover,
#back-to-top:hover {
    box-shadow: 0 10px 26px rgba(47, 118, 210, 0.38);
}

@keyframes hero-drift {
    from { transform: scale(1.02); }
    to { transform: scale(1.08) translate3d(1%, -0.5%, 0); }
}

@keyframes hero-enter {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes title-rule {
    from { opacity: 0; transform: translateX(-50%) scaleX(0); }
    to { opacity: 1; transform: translateX(-50%) scaleX(1); }
}

@keyframes stat-glow {
    0%, 100% { text-shadow: 0 0 0 rgba(139, 197, 255, 0); }
    50% { text-shadow: 0 0 18px rgba(139, 197, 255, 0.24); }
}

@media (prefers-reduced-motion: reduce) {
    .hero-image,
    .hero-content > *,
    .section-title::after,
    .stat-number {
        animation: none;
    }
}

.error-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 2rem;
    color: #fff;
    background: linear-gradient(135deg, #061b38 0%, #0b2852 58%, #18558a 100%);
}

.error-shell {
    position: relative;
    width: min(100%, 680px);
    padding: clamp(2rem, 7vw, 5rem);
    overflow: hidden;
    text-align: center;
    border: 1px solid rgba(164, 211, 255, 0.22);
    background: rgba(6, 27, 56, 0.58);
    box-shadow: 0 24px 70px rgba(1, 13, 31, 0.28);
}

.error-shell::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0.16;
    pointer-events: none;
    background-image: linear-gradient(rgba(139, 197, 255, 0.35) 1px, transparent 1px), linear-gradient(90deg, rgba(139, 197, 255, 0.35) 1px, transparent 1px);
    background-size: 36px 36px;
    mask-image: linear-gradient(135deg, #000, transparent 72%);
}

.error-shell > * {
    position: relative;
    z-index: 1;
}

.error-mark {
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    margin: 0 auto 1.25rem;
    color: #08244b;
    background: #8bc5ff;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.error-kicker {
    margin-bottom: 1rem;
    color: #9ed0ff;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.16em;
}

.error-code {
    color: #fff;
    font-size: clamp(5.5rem, 17vw, 10rem);
    font-weight: 800;
    line-height: 0.95;
    letter-spacing: 0.04em;
}

.error-shell h1 {
    margin: 1.25rem 0 0.75rem;
    font-size: clamp(1.6rem, 4vw, 2.3rem);
}

.error-message {
    max-width: 450px;
    margin: 0 auto;
    color: rgba(255, 255, 255, 0.72);
    line-height: 1.8;
}

.error-actions {
    display: flex;
    justify-content: center;
    gap: 0.8rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.error-actions .btn-secondary {
    color: #fff;
    border-color: #8bc5ff;
}

.dropdown-menu {
    min-width: 218px;
    padding: 0.5rem;
    margin-top: 0.9rem;
    border: 1px solid rgba(169, 200, 233, 0.7);
    border-top: 3px solid #4f99e8;
    border-radius: 4px 4px 8px 8px;
    box-shadow: 0 18px 36px rgba(7, 29, 61, 0.2);
    background: rgba(255, 255, 255, 0.98);
    transform: translateY(8px) scale(0.98);
    transform-origin: top left;
}

.dropdown-menu::before {
    content: '';
    position: absolute;
    top: -9px;
    left: 24px;
    width: 14px;
    height: 14px;
    background: #fff;
    border-top: 1px solid #a9c8e9;
    border-left: 1px solid #a9c8e9;
    transform: rotate(45deg);
}

.dropdown:hover .dropdown-menu,
.dropdown.open .dropdown-menu {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) scale(1);
}

.dropdown-item {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.8rem 0.8rem 0.8rem 0.7rem;
    border-left: 0;
    border-radius: 4px;
    color: #284362;
    font-size: 0.92rem;
}

.dropdown-item::before {
    content: '';
    width: 4px;
    height: 4px;
    flex: 0 0 4px;
    border-radius: 50%;
    background: #a9c8e9;
    transition: transform 0.25s ease, background 0.25s ease;
}

.dropdown-item:hover {
    padding-left: 0.95rem;
    color: #165da5;
    background: #eef5fc;
}

.dropdown-item:hover::before {
    background: #2f76d2;
    transform: scale(1.7);
}

@media (max-width: 480px) {
    :root {
        --floating-right: 14px;
    }

    .error-page {
        padding: 1rem;
    }

    .error-shell {
        padding: 2.5rem 1.25rem;
    }
}

@media (max-width: 480px) {
    .languages-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .language-flag {
        font-size: 2rem;
    }

    .hero-section {
        height: 400px;
    }

    .testimonial-content {
        padding: 0 25px;
    }

    .why-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: repeat(1, 1fr);
    }

    .slider-btn {
        width: 35px;
        height: 35px;
    }

    section {
        padding: 3rem 0;
    }
}

/* ===== 官网课程页 ===== */
.page-hero {
    background: linear-gradient(135deg, #5159f5 0%, #6d73ff 100%);
    padding: 100px 0 80px;
    text-align: center;
    color: #fff;
}
.page-hero-title { font-size: 42px; font-weight: 700; margin-bottom: 12px; }
.page-hero-subtitle { font-size: 18px; opacity: 0.85; }
.courses-section { padding: 60px 0; }
.course-group { margin-bottom: 48px; }
.course-group-title {
    font-size: 26px; font-weight: 700; color: #2a2a3e;
    padding-left: 16px; border-left: 5px solid #5159f5; margin-bottom: 24px;
}
.course-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.course-card {
    background: #fff; border-radius: 12px; padding: 24px;
    border: 1px solid #f0f1f6; box-shadow: 0 4px 16px rgba(81,89,245,0.06);
    transition: transform .2s ease, box-shadow .2s ease;
}
.course-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(81,89,245,0.15); }
.course-card-name { font-size: 17px; font-weight: 600; color: #2a2a3e; margin-bottom: 12px; }
.course-card-cta { font-size: 13px; color: #5159f5; }
.cta-section { background: #f4f6fc; padding: 60px 0; text-align: center; }
.cta-content h2 { font-size: 30px; color: #2a2a3e; margin-bottom: 10px; }
.cta-content p { color: #8a93ad; margin-bottom: 24px; }

/* ===== 百试通模块/页面 ===== */
.baishitong-section { padding: 70px 0; background: #fff; }
.baishitong-content { display: flex; align-items: center; gap: 60px; flex-wrap: wrap; }
.baishitong-info { flex: 1; min-width: 300px; }
.baishitong-desc { color: #666; line-height: 1.8; margin: 16px 0 24px; font-size: 16px; }
.baishitong-features { list-style: none; padding: 0; margin-bottom: 28px; }
.baishitong-features li { padding: 8px 0 8px 28px; position: relative; color: #444; font-size: 15px; }
.baishitong-features li::before { content: "\2713"; position: absolute; left: 0; color: #5159f5; font-weight: 700; }
.baishitong-qr { flex-shrink: 0; }
.qr-box { width: 200px; text-align: center; }
.qr-placeholder {
    width: 200px; height: 200px; border-radius: 16px;
    background: linear-gradient(135deg, #eef0ff, #f7f8ff);
    border: 2px dashed #c3c9f5; display: flex; align-items: center; justify-content: center;
    color: #9aa5c8; font-size: 14px;
}
.qr-tip { margin-top: 12px; color: #8a93ad; font-size: 13px; }
.baishitong-cta { margin-top: 8px; }
.bs-section { padding: 60px 0; background: #f4f6fc; }
.bs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; }
.bs-card { background: #fff; border-radius: 14px; padding: 28px; box-shadow: 0 4px 16px rgba(81,89,245,0.05); }
.bs-card-title { font-size: 18px; font-weight: 600; color: #2a2a3e; margin-bottom: 12px; }
.bs-card-desc { color: #666; line-height: 1.7; font-size: 14px; }

/* 一朴国际 logo 图片（反白版，深色导航上直接显示，不加白底） */
.logo-img {
    height: 38px;
    width: auto;
    display: block;
    background: transparent;
    border-radius: 0;
    padding: 0;
    box-sizing: content-box;
}
/* 语言切换按钮样式 */
.lang-switch {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    margin-right: 18px;
    border: 1px solid rgba(255,255,255,0.35);
    border-radius: 4px;
    padding: 4px 10px;
}
.lang-btn {
    background: transparent;
    border: none;
    color: rgba(255,255,255,0.7);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    padding: 2px 6px;
    line-height: 1;
}
.lang-btn.active {
    color: #fff;
    background: rgba(255,255,255,0.25);
    border-radius: 3px;
}
.lang-divider {
    color: rgba(255,255,255,0.5);
    font-size: 12px;
}

/* ===== 四阶段服务路径 ===== */
.journey-section {
    padding: 80px 0;
    background: linear-gradient(180deg, #f4f6fc 0%, #ffffff 100%);
}
.journey-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-top: 40px;
}
.journey-card {
    background: #fff;
    border-radius: 16px;
    padding: 32px 26px;
    border: 1px solid #eef0ff;
    box-shadow: 0 6px 20px rgba(81, 89, 245, 0.06);
    transition: all 0.3s ease;
    position: relative;
}
.journey-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(81, 89, 245, 0.15);
    border-color: #c3c9f5;
}
.journey-step {
    font-size: 40px;
    font-weight: 800;
    color: rgba(81, 89, 245, 0.15);
    line-height: 1;
    margin-bottom: 16px;
}
.journey-card h3 {
    font-size: 20px;
    color: #2a2a3e;
    margin-bottom: 12px;
}
.journey-card p {
    color: #666;
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 16px;
}
.journey-link {
    color: #5159F5;
    font-size: 14px;
    font-weight: 600;
}
.journey-link:hover {
    text-decoration: underline;
}

/* ===== 国际考试日历 ===== */
.exam-calendar-section {
    padding: 80px 0;
}
.exam-calendar-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 40px;
}
.exam-calendar-card {
    background: #fff;
    border-radius: 14px;
    padding: 26px 28px;
    border-left: 5px solid #5159F5;
    box-shadow: 0 4px 16px rgba(81, 89, 245, 0.08);
    transition: all 0.3s ease;
}
.exam-calendar-card:hover {
    transform: translateX(4px);
    box-shadow: 0 8px 24px rgba(81, 89, 245, 0.15);
}
.exam-calendar-card h3 {
    font-size: 20px;
    color: #2a2a3e;
    margin-bottom: 8px;
}
.exam-time {
    font-size: 16px;
    font-weight: 700;
    color: #5159F5;
    margin-bottom: 6px;
}
.exam-desc {
    font-size: 14px;
    color: #666;
}
.exam-calendar-note {
    text-align: center;
    color: #8a93ad;
    font-size: 13px;
    margin-top: 28px;
}

/* ===== 微信咨询浮动按钮 ===== */
.float-wechat {
    position: fixed;
    right: var(--floating-right);
    bottom: 90px;
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.float-wechat a {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #5159F5;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 18px rgba(81, 89, 245, 0.4);
    transition: all 0.3s ease;
    position: relative;
}
.float-wechat a:hover {
    transform: scale(1.08);
}
.float-wechat .fw-icon {
    width: 24px;
    height: 24px;
    display: block;
    line-height: 0;
}

.float-wechat .fw-icon svg {
    width: 100%;
    height: 100%;
    display: block;
}
.float-wechat .fw-tip {
    position: absolute;
    right: 60px;
    top: 50%;
    transform: translateY(-50%);
    background: #2a2a3e;
    color: #fff;
    font-size: 12px;
    padding: 6px 12px;
    border-radius: 6px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
}
.float-wechat a:hover .fw-tip {
    opacity: 1;
    right: 66px;
}
.float-wechat .fw-qr {
    position: absolute;
    right: calc(52px + 12px);
    bottom: 0;
    width: 160px;
    padding: 12px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
    text-align: center;
    font-size: 12px;
    color: #666;
}
.float-wechat a.fw-qr-trigger:hover .fw-qr {
    opacity: 1;
    bottom: 8px;
}
.float-wechat .fw-qr img {
    width: 120px;
    height: 120px;
    margin: 0 auto 8px;
    object-fit: contain;
}
.float-wechat .fw-qr .qr-placeholder {
    width: 120px;
    height: 120px;
    margin: 0 auto 8px;
    border: 2px dashed #c3c9f5;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9aa5c8;
    font-size: 12px;
}

header {
    background: rgba(7, 29, 61, 0.97);
    padding: 0.85rem 0;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 8px 24px rgba(7, 29, 61, 0.16);
}

#header-placeholder {
    height: 81px;
}

.header-container {
    min-height: 54px;
}

.logo-img {
    height: 34px;
    padding: 0;
}

.nav-menu {
    gap: 2rem;
}

.nav-link,
.dropdown-toggle {
    font-size: 0.95rem;
    letter-spacing: 0.02em;
}

.nav-link::after {
    background: #72b7ff;
    height: 3px;
}

.nav-link:hover,
.nav-link.active,
.dropdown:hover .dropdown-toggle,
.dropdown.open .dropdown-toggle {
    color: #8bc5ff;
}

.btn-enroll,
.btn-hero,
.btn-primary {
    background: #4f99e8;
    color: #fff;
    border-radius: 6px;
    box-shadow: 0 8px 20px rgba(29, 91, 163, 0.2);
}

.btn-enroll {
    padding: 0.7rem 1.35rem;
}

.btn-enroll:hover,
.btn-hero:hover,
.btn-primary:hover {
    background: #72b7ff;
    color: #08244b;
    box-shadow: 0 10px 24px rgba(29, 91, 163, 0.3);
}

.hero-section {
    min-height: 650px;
    height: min(72vh, 720px);
    justify-content: flex-start;
}

.hero-overlay {
    background: linear-gradient(90deg, rgba(5, 25, 55, 0.94) 0%, rgba(8, 42, 83, 0.78) 46%, rgba(8, 42, 83, 0.22) 100%);
}

.hero-content {
    max-width: 1200px;
    width: 100%;
    text-align: left;
    padding-left: 8vw;
    padding-right: 38%;
}

.hero-title {
    font-size: clamp(2.8rem, 5vw, 4.8rem);
    letter-spacing: 0.08em;
    margin-bottom: 1.25rem;
    white-space: nowrap;
}

.hero-subtitle {
    max-width: 720px;
    font-size: clamp(1.4rem, 2.6vw, 2.45rem);
    line-height: 1.35;
    letter-spacing: 0.02em;
}

.hero-description {
    max-width: 560px;
    color: rgba(255, 255, 255, 0.86);
    font-size: 1.05rem;
    margin-bottom: 2.25rem;
}

@media (min-width: 769px) {
    .hero-content {
        padding-right: 20px;
    }

    .hero-subtitle {
        max-width: 900px;
        white-space: nowrap;
    }
}

.btn-hero {
    padding: 1rem 2rem;
    font-size: 1rem;
}

section {
    padding: 5.5rem 0;
}

.section-title {
    color: var(--primary-color);
    font-size: clamp(2rem, 3.5vw, 2.8rem);
    letter-spacing: 0.03em;
    margin-bottom: 2rem;
}

.section-title::after {
    width: 52px;
    height: 3px;
    background: var(--accent-color);
}

.section-subtitle {
    color: #708097;
    font-size: 1rem;
}

.languages-section,
.testimonials-section,
.journey-section,
.bs-section {
    background: #f3f7fc;
}

.languages-grid {
    gap: 1rem;
}

.language-card,
.journey-card,
.exam-calendar-card,
.service-card,
.contact-info-card,
.testimonial-card,
.teacher-card,
.blog-card,
.news-card {
    border: 1px solid #e0e9f4;
    border-radius: 8px;
    box-shadow: 0 12px 30px rgba(20, 52, 92, 0.07);
}

.language-card {
    padding: 1.5rem 1rem;
    border-top: 3px solid transparent;
}

.language-card:hover,
.journey-card:hover,
.exam-calendar-card:hover {
    border-top-color: #4f99e8;
    transform: translateY(-5px);
    box-shadow: 0 16px 34px rgba(20, 52, 92, 0.12);
}

.language-name,
.journey-card h3,
.exam-calendar-card h3,
.feature-title,
.testimonial-name,
.teacher-info h3,
.blog-title,
.news-title {
    color: var(--primary-color);
}

.language-sub,
.journey-card p,
.exam-desc,
.feature-description,
.baishitong-desc,
.baishitong-features li,
.testimonial-text {
    color: #607089;
}

.feature-image-wrapper {
    border-radius: 8px;
    box-shadow: 0 18px 38px rgba(7, 29, 61, 0.18);
}

.feature-icon,
.contact-icon,
.why-icon,
.float-wechat a,
.slider-btn,
#back-to-top {
    background: #2f76d2;
}

.journey-section {
    background: linear-gradient(180deg, #f3f7fc 0%, #fff 100%);
}

.journey-grid,
.exam-calendar-grid {
    margin-top: 2.5rem;
}

.journey-step {
    color: rgba(47, 118, 210, 0.22);
}

.journey-link,
.exam-time,
.blog-link,
.news-link {
    color: #2369bb;
}

.exam-calendar-card {
    border-left: 4px solid #2f76d2;
}

.exam-calendar-card:hover {
    border-left-color: #4f99e8;
}

.why-section {
    background: linear-gradient(135deg, #08244b 0%, #0d3970 100%);
}

.why-card {
    border: 1px solid rgba(155, 204, 255, 0.18);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.06);
}

.why-card:hover {
    background: rgba(255, 255, 255, 0.1);
}

.why-icon {
    color: #fff;
    border-radius: 8px;
}

.stats-section {
    background: #0b2d59;
}

.stat-number {
    color: #8bc5ff;
}

.baishitong-section {
    background: #fff;
}

.qr-placeholder {
    background: #f1f6fc;
    border-color: #a9c8e9;
}

.footer {
    background: #061b38;
}

.footer-col h4 {
    color: #8bc5ff;
}

@media (max-width: 768px) {
    .hero-section {
        min-height: 540px;
        height: 72vh;
    }

    .hero-content {
        padding: 0 24px;
    }

    .hero-title {
        font-size: 2.65rem;
    }

    .hero-subtitle {
        font-size: 1.55rem;
    }

    .hero-description {
        font-size: 0.98rem;
    }

    .mobile-menu {
        top: 70px;
        background: #08244b;
    }

    .mobile-nav-item .nav-link:hover,
    .mobile-dropdown-toggle:hover {
        background: rgba(139, 197, 255, 0.12);
    }
}

@media (max-width: 480px) {
    .hero-section {
        min-height: 500px;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .hero-subtitle {
        font-size: 1.3rem;
    }

    .hero-content {
        padding: 0 20px;
    }

    .section-title {
        font-size: 2rem;
    }

    .float-wechat {
        right: var(--floating-right);
    }
}

.page-hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(120deg, #061c3b 0%, #0c3971 60%, #165b9d 100%);
    padding: 7rem 0 5.5rem;
}

.page-hero::before,
.cta-section::before,
.newsletter-section::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.12;
    background-image: linear-gradient(rgba(139, 197, 255, 0.22) 1px, transparent 1px), linear-gradient(90deg, rgba(139, 197, 255, 0.22) 1px, transparent 1px);
    background-size: 36px 36px;
    mask-image: linear-gradient(135deg, #000 0%, transparent 75%);
}

.page-hero > *,
.cta-section > *,
.newsletter-section > * {
    position: relative;
    z-index: 1;
}

.page-hero-title {
    letter-spacing: 0.08em;
}

.courses-section,
.exam-calendar-section,
.contact-form-section {
    background-color: #fff;
}

.course-group-title {
    color: var(--primary-color);
    border-left-color: var(--accent-color);
}

.course-card,
.bs-card {
    border-radius: 8px;
    border-color: #e0e9f4;
    box-shadow: 0 10px 24px rgba(20, 52, 92, 0.06);
}

.course-card:hover,
.bs-card:hover {
    border-color: #a9c8e9;
    box-shadow: 0 16px 30px rgba(20, 52, 92, 0.12);
}

.course-card-name,
.bs-card-title,
.cta-content h2 {
    color: var(--primary-color);
}

.course-card-cta {
    color: #2369bb;
}

.cta-section,
.bs-section {
    position: relative;
    background: #eef4fb;
}

.cta-section::before,
.newsletter-section::before {
    display: none;
}

.bs-card-desc,
.cta-content p {
    color: #607089;
}

.about-hero,
.newsletter-section {
    position: relative;
    overflow: hidden;
    background: linear-gradient(120deg, #061c3b 0%, #0c3971 100%);
}

.pricing-card.featured {
    background: linear-gradient(145deg, #0b2852 0%, #1765a7 100%);
}

.pricing-card,
.faq-item,
.mission-card,
.vision-card,
.service-card {
    border-radius: 8px;
    border-color: #e0e9f4;
    box-shadow: 0 10px 26px rgba(20, 52, 92, 0.07);
}

.pricing-card:hover,
.pricing-card.featured,
.service-card:hover,
.faq-item:hover {
    border-color: #8bb9e5;
    box-shadow: 0 16px 34px rgba(20, 52, 92, 0.13);
}

.pricing-title,
.faq-question,
.contact-info-card h3 {
    color: var(--primary-color);
}

.mission-card,
.vision-card {
    background: #f3f7fc;
    border-left-color: var(--accent-color);
}

.service-icon,
.contact-icon {
    border-radius: 8px;
    background: #2f76d2;
}

.gallery-overlay {
    background: rgba(8, 42, 83, 0.84);
}

.animate-on-scroll {
    animation: rise-in 0.7s ease both;
}

.language-card,
.journey-card,
.course-card,
.exam-calendar-card,
.service-card {
    will-change: transform;
}

@keyframes rise-in {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

body:has(.course-grid) .about-hero {
    background: linear-gradient(120deg, #061c3b 0%, #0b3971 62%, #1f6ea9 100%);
}

body:has(.course-grid) .courses-section {
    padding-top: 4.5rem;
}

body:has(.course-grid) .course-group {
    position: relative;
    padding: 1.5rem 1.5rem 1.75rem;
    margin-bottom: 2rem;
    border: 1px solid #e1ebf5;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.82);
}

body:has(.course-grid) .course-group-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

body:has(.course-grid) .course-group-title::after {
    content: 'CURRICULUM';
    color: #7e9cbb;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.14em;
}

body:has(.course-grid) .course-card {
    position: relative;
    min-height: 116px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: #fff;
}

body:has(.pricing-grid) .about-hero {
    background: linear-gradient(120deg, #061c3b 0%, #123f78 58%, #2a75aa 100%);
}

body:has(.pricing-grid) .pricing-grid {
    align-items: stretch;
}

body:has(.pricing-grid) .pricing-card {
    position: relative;
    overflow: visible;
    padding: 2.75rem 2rem 2rem;
}

body:has(.pricing-grid) .pricing-card:not(.featured)::before {
    content: 'FOUNDATION';
    display: inline-block;
    margin-bottom: 1.25rem;
    color: #7e9cbb;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.14em;
}

body:has(.pricing-grid) .pricing-card.featured::before {
    content: 'RECOMMENDED PATH';
    display: inline-block;
    margin-bottom: 1.25rem;
    color: #9ed0ff;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.14em;
}

body:has(.pricing-grid) .pricing-card.featured .pricing-price {
    color: #9ed0ff;
}

body:has(.pricing-grid) .pricing-card::before {
    content: none;
}

body:has(.pricing-grid) .pricing-card:not(.featured)::before,
body:has(.pricing-grid) .pricing-card.featured::before {
    content: none !important;
}

body:has(.pricing-grid) .pricing-card.featured {
    transform: none;
}

body:has(.pricing-grid) .pricing-card.featured:hover {
    transform: translateY(-6px);
}

body:has(.pricing-grid) .pricing-card::after {
    content: '';
    position: absolute;
    top: -18%;
    bottom: -18%;
    left: -32%;
    width: 64%;
    z-index: 0;
    pointer-events: none;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.03) 22%, rgba(255, 255, 255, 0.18) 50%, rgba(255, 255, 255, 0.03) 78%, transparent 100%);
    filter: blur(18px);
    opacity: 0.72;
    transform: translateX(-115%);
    transition: transform 1s ease;
}

body:has(.pricing-grid) .pricing-card:hover::after {
    transform: translateX(115%);
}

body:has(.pricing-grid) .pricing-card > * {
    position: relative;
    z-index: 1;
}

body:has(.services-grid) .services-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

body:has(.services-grid) .service-card {
    min-height: 390px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2.25rem 1.75rem;
    text-align: center;
}

body:has(.services-grid) .service-card:nth-child(3n + 2) {
    transform: translateY(1.5rem);
}

body:has(.services-grid) .service-card:nth-child(3n + 2):hover {
    transform: translateY(1rem);
}

body:has(.services-grid) .service-card ul {
    width: 100%;
    margin-top: auto !important;
    padding-top: 1rem !important;
    border-top: 1px solid #e3ebf4;
}

body:has(.services-grid) .service-card li {
    padding: 0.3rem 0;
}

body:has(.team-grid) .about-hero {
    background: linear-gradient(120deg, #061c3b 0%, #123f78 55%, #275d8d 100%);
}

body:has(.team-grid) .team-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

body:has(.team-grid) .teacher-card {
    border-radius: 4px;
    background: #fff;
}

body:has(.team-grid) .teacher-image {
    height: 320px;
    filter: saturate(0.75);
    transition: filter 0.4s ease, transform 0.5s ease;
}

body:has(.team-grid) .teacher-card:hover .teacher-image {
    filter: saturate(1);
}

body:has(.team-grid) .teacher-info {
    position: relative;
    text-align: left;
    padding: 1.5rem;
}

body:has(.team-grid) .teacher-info::before {
    content: '';
    display: block;
    width: 34px;
    height: 3px;
    margin-bottom: 1rem;
    background: #4f99e8;
}

body:has(.mission-vision-grid) .feature-grid {
    padding-bottom: 4rem;
    border-bottom: 1px solid #dce8f3;
}

body:has(.mission-vision-grid) .mission-card,
body:has(.mission-vision-grid) .vision-card {
    position: relative;
    min-height: 245px;
    padding: 2.5rem;
    overflow: hidden;
}

body:has(.mission-vision-grid) .mission-card::after,
body:has(.mission-vision-grid) .vision-card::after {
    content: '01';
    position: absolute;
    right: 1.5rem;
    bottom: -1rem;
    color: rgba(47, 118, 210, 0.1);
    font-size: 7rem;
    font-weight: 800;
    line-height: 1;
}

body:has(.mission-vision-grid) .vision-card::after {
    content: '02';
}

body:has(.faq-container) .faq-container {
    position: relative;
}

body:has(.faq-container) .faq-item {
    border-left: 3px solid transparent;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

body:has(.faq-container) .faq-item.active,
body:has(.faq-container) .faq-item:hover {
    border-left-color: #4f99e8;
}

body:has(.contact-info-grid) .contact-info-grid {
    grid-template-columns: repeat(3, 1fr);
}

body:has(.contact-info-grid) .contact-info-section {
    padding: 5rem 0 3rem;
    background: #f3f7fc;
}

body:has(.contact-info-grid) .contact-intro {
    max-width: 640px;
    margin: 0 auto 2.5rem;
    text-align: center;
}

body:has(.contact-info-grid) .contact-eyebrow {
    margin-bottom: 0.8rem;
    color: #2f76d2;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.18em;
}

body:has(.contact-info-grid) .contact-intro h2 {
    margin-bottom: 0.8rem;
    color: var(--primary-color);
    font-size: clamp(1.65rem, 3vw, 2.25rem);
    line-height: 1.35;
}

body:has(.contact-info-grid) .contact-intro > p:last-child {
    color: #6d7e95;
}

body:has(.contact-info-grid) .contact-info-card {
    min-height: 190px;
    padding: 1.75rem 1.25rem;
    background: rgba(255, 255, 255, 0.86);
}

/* Temporary page imagery: replace these files with client-approved assets later. */
body:has(.course-grid) .page-hero,
body:has(.course-grid) .about-hero {
    background-image: linear-gradient(90deg, rgba(5, 25, 55, 0.9), rgba(10, 53, 103, 0.58)), url('/site-assets/images/photo-1524995997946-a1c2e315a42f-82514a2b.jpg');
    background-position: center 42%;
    background-size: cover;
}

body:has(.pricing-grid) .about-hero {
    background-image: linear-gradient(90deg, rgba(5, 25, 55, 0.9), rgba(17, 60, 112, 0.58)), url('/site-assets/images/photo-1488190211105-8b0e65b80b4e-b460fdd3.jpg');
    background-position: center 48%;
    background-size: cover;
}

body:has(.services-grid) .about-hero {
    background-image: linear-gradient(90deg, rgba(5, 25, 55, 0.9), rgba(12, 57, 113, 0.56)), url('/site-assets/images/photo-1517245386807-bb43f82c33c4-ce51a4d8.jpg');
    background-position: center 44%;
    background-size: cover;
}

body:has(.team-grid) .about-hero {
    background-image: linear-gradient(90deg, rgba(5, 25, 55, 0.88), rgba(15, 57, 103, 0.54)), url('/site-assets/images/photo-1560250097-0b93528c311a-7aeb02bc.jpg');
    background-position: center 36%;
    background-size: cover;
}

body:has(.contact-info-grid) .about-hero {
    background-image: linear-gradient(90deg, rgba(5, 25, 55, 0.9), rgba(14, 58, 107, 0.58)), url('/site-assets/images/photo-1529070538774-1843cb3265df-3eac52b9.jpg');
    background-position: center 48%;
    background-size: cover;
}

body:has(.gallery-grid) .about-hero {
    background-image: linear-gradient(90deg, rgba(5, 25, 55, 0.86), rgba(18, 61, 108, 0.5)), url('/site-assets/images/photo-1511632765486-a01980e01a18-21742bb0.jpg');
    background-position: center 42%;
    background-size: cover;
}

body:has(.blog-grid) .about-hero {
    background-image: linear-gradient(90deg, rgba(5, 25, 55, 0.9), rgba(13, 55, 105, 0.54)), url('/site-assets/images/photo-1504384308090-c894fdcc538d-54362c50.jpg');
    background-position: center 44%;
    background-size: cover;
}

body:has(.faq-container) .about-hero {
    background-image: linear-gradient(90deg, rgba(5, 25, 55, 0.9), rgba(14, 58, 107, 0.58)), url('/site-assets/images/photo-1509062522246-3755977927d7-60bdbe16.jpg');
    background-position: center 45%;
    background-size: cover;
}

body:has(.mission-vision-grid) .about-hero {
    background-image: linear-gradient(90deg, rgba(5, 25, 55, 0.88), rgba(14, 58, 107, 0.54)), url('/site-assets/images/photo-1522202176988-66273c2fd55f-48cda12d-1.jpg');
    background-position: center 44%;
    background-size: cover;
}

body:has(.bs-section) .page-hero {
    background-image: linear-gradient(90deg, rgba(5, 25, 55, 0.9), rgba(12, 57, 113, 0.54)), url('/site-assets/images/photo-1522202176988-66273c2fd55f-b84ddad8.jpg');
    background-position: center 42%;
    background-size: cover;
}

body:has(.bs-section) .page-hero {
    min-height: 308px;
    display: grid;
    place-items: center;
}

body:has(.bs-section) .page-hero-title {
    max-width: 760px;
    margin: 0 auto 0.8rem;
}

body:has(.bs-section) .page-hero-subtitle::before {
    content: 'ONLINE LEARNING PLATFORM';
    display: block;
    margin-bottom: 0.8rem;
    color: #9ed0ff;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.18em;
}

body:has(.bs-section) .bs-section {
    padding: 5.5rem 0 6rem;
    background: #f3f7fc;
}

body:has(.bs-section) .bs-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

body:has(.bs-section) .bs-card {
    position: relative;
    min-height: 250px;
    padding: 1.75rem 1.4rem;
    overflow: hidden;
    border-top: 3px solid #4f99e8;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

body:has(.bs-section) .bs-card::after {
    content: '';
    position: absolute;
    right: -1.5rem;
    bottom: -2.5rem;
    width: 7rem;
    height: 7rem;
    border: 1px solid rgba(79, 153, 232, 0.16);
    border-radius: 50%;
    box-shadow: 0 0 0 16px rgba(79, 153, 232, 0.035), 0 0 0 32px rgba(79, 153, 232, 0.025);
}

body:has(.bs-section) .bs-card:hover {
    transform: translateY(-7px);
    border-color: #2f76d2;
    box-shadow: 0 18px 34px rgba(20, 52, 92, 0.13);
}

body:has(.bs-section) .bs-card-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
    color: var(--primary-color);
}

body:has(.bs-section) .bs-card-title::after {
    content: '01';
    margin-left: auto;
    color: #9bb4cc;
    font-size: 0.7rem;
    letter-spacing: 0.1em;
}

body:has(.bs-section) .bs-card:nth-child(2) .bs-card-title::after { content: '02'; }
body:has(.bs-section) .bs-card:nth-child(3) .bs-card-title::after { content: '03'; }
body:has(.bs-section) .bs-card:nth-child(4) .bs-card-title::after { content: '04'; }

body:has(.bs-section) .bs-card-icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    flex: 0 0 42px;
    color: #2f76d2;
    border: 1px solid #b9d4ed;
    border-radius: 8px;
    background: #f1f7fd;
}

body:has(.bs-section) .bs-card-icon svg {
    width: 22px;
    height: 22px;
}

body:has(.bs-section) .bs-card-desc {
    position: relative;
    z-index: 1;
    line-height: 1.85;
}

body:has(.bs-section) .cta-section {
    padding: 5.5rem 0;
    background: linear-gradient(135deg, #08244b 0%, #0d4a86 100%);
}

body:has(.bs-section) .cta-content h2 {
    color: #fff;
}

body:has(.bs-section) .cta-content p {
    color: rgba(255, 255, 255, 0.78);
}

body:has(.bs-section) .cta-content .qr-box {
    width: 232px;
    box-sizing: border-box;
    padding: 1rem;
    border: 1px solid rgba(158, 208, 255, 0.35);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.08);
}

body:has(.bs-section) .cta-content .qr-placeholder {
    width: 200px;
    height: 200px;
    background: #fff;
    border-color: #9fc7e9;
}

body:has(.bs-section) .cta-content .qr-tip {
    margin-bottom: 0;
}

@media (max-width: 900px) {
    body:has(.bs-section) .bs-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    body:has(.bs-section) .bs-grid {
        grid-template-columns: 1fr;
    }

    body:has(.bs-section) .bs-card {
        min-height: 210px;
    }
}

body:has(.contact-info-grid) .contact-info-card p {
    line-height: 1.8;
}

body:has(#contact-form) .contact-form-section {
    padding: 5rem 0 6rem;
    background: #fff;
}

body:has(#contact-form) .contact-form-wrapper {
    max-width: 900px;
    padding: 3rem clamp(1.25rem, 5vw, 4rem);
    border: 1px solid #e1ebf5;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 20px 48px rgba(20, 52, 92, 0.1);
}

body:has(#contact-form) .contact-form-wrapper .section-title {
    margin-bottom: 0.75rem;
}

body:has(#contact-form) .contact-form-wrapper .section-subtitle {
    margin-top: 0;
    margin-bottom: 2.5rem;
}

body:has(#contact-form) .form-grid {
    gap: 1.25rem;
}

body:has(#contact-form) .form-control {
    border-color: #d7e3ef;
    background: #fbfdff;
}

body:has(#contact-form) .form-control:hover {
    border-color: #a9c8e9;
}

body:has(#contact-form) .form-control:focus {
    border-color: #4f99e8;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(79, 153, 232, 0.12);
}

body:has(.map-container) .map-container {
    overflow: hidden;
    border: 1px solid #dce8f3;
    border-radius: 10px;
    box-shadow: 0 14px 32px rgba(20, 52, 92, 0.1);
}

body:has(.map-container) .map-container iframe {
    display: block;
    filter: saturate(0.78) contrast(0.96);
}

@media (max-width: 768px) {
    body:has(.contact-info-grid) .contact-intro {
        margin-bottom: 1.75rem;
    }

    body:has(#contact-form) .contact-form-wrapper {
        padding-top: 2.25rem;
        padding-bottom: 2.25rem;
    }
}

body:has(.contact-info-grid) .contact-info-card {
    padding: 2.25rem 1.5rem;
    border-top: 3px solid #4f99e8;
}

@media (max-width: 768px) {
    body:has(.services-grid) .services-grid,
    body:has(.team-grid) .team-grid,
    body:has(.contact-info-grid) .contact-info-grid {
        grid-template-columns: 1fr;
    }

    body:has(.services-grid) .service-card:nth-child(3n + 2) {
        transform: none;
    }

    body:has(.services-grid) .service-card:nth-child(3n + 2):hover {
        transform: translateY(-5px);
    }

    body:has(.course-grid) .course-group {
        padding: 1.25rem;
    }
}

/* 雅思托福标签卡 */
.lang-card-tag {
    border: 2px dashed #5159F5;
    background: linear-gradient(135deg, #eef0ff 0%, #f7f8ff 100%);
    cursor: pointer;
}
.lang-card-tag:hover {
    border-style: solid;
}
.lang-tag-badge {
    display: inline-block;
    margin-top: 8px;
    padding: 4px 12px;
    border-radius: 20px;
    background: #5159F5;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
}

/* 课程卡片图片/描述 */
.language-card-img {
    width: 100%;
    height: 90px;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 12px;
}
.language-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.language-desc {
    font-size: 13px;
    color: #8a93ad;
    margin-top: 8px;
    line-height: 1.6;
}
.course-group-desc {
    font-size: 14px;
    color: #8a93ad;
    margin: -14px 0 20px 16px;
}

/* ===== 资讯详情页 ===== */
.blog-detail-hero {
    background: linear-gradient(135deg, #5159F5 0%, #3f46d8 100%);
    color: #fff;
    padding: 5rem 0 3.5rem;
    text-align: center;
}
.blog-detail-hero .section-title { color: #fff; }
.blog-detail-hero .section-subtitle { color: rgba(255,255,255,0.85); }
.blog-detail-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}
.blog-detail-meta .blog-date {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: rgba(255,255,255,0.85);
    font-size: 14px;
}
.blog-detail-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 3rem;
}
.blog-detail-cover {
    width: 100%;
    border-radius: 14px;
    margin-bottom: 2rem;
    max-height: 420px;
    object-fit: cover;
}
.article-content {
    font-size: 16px;
    line-height: 1.9;
    color: #2a2a3e;
}
.article-content p { margin-bottom: 1.2rem; }
.article-content h1, .article-content h2, .article-content h3, .article-content h4 {
    color: #2a2a3e;
    margin: 1.6rem 0 0.8rem;
    font-weight: 700;
}
.article-content h2 { font-size: 1.5rem; }
.article-content h3 { font-size: 1.25rem; }
.article-content img { max-width: 100%; border-radius: 10px; margin: 1rem 0; }
.article-content ul, .article-content ol { padding-left: 1.5rem; margin-bottom: 1.2rem; }
.article-content ul { list-style: disc; }
.article-content ol { list-style: decimal; }
.article-content li { margin-bottom: 0.4rem; }
.article-content blockquote {
    border-left: 4px solid #5159F5;
    background: #f4f6fc;
    padding: 1rem 1.2rem;
    margin: 1.2rem 0;
    border-radius: 0 10px 10px 0;
    color: #555;
}
.article-content table { width: 100%; border-collapse: collapse; margin: 1rem 0; }
.article-content table th, .article-content table td {
    border: 1px solid #e0e0e0;
    padding: 8px 12px;
    text-align: left;
}
.article-content table th { background: #f4f6fc; font-weight: 600; }
.article-content a { color: #5159F5; }
.blog-detail-side {
    border-left: 1px solid #eef0ff;
    padding-left: 2rem;
}
.blog-detail-side .related-item:hover { color: #5159F5; }
@media (max-width: 768px) {
    .blog-detail-layout { grid-template-columns: 1fr; }
    .blog-detail-side { border-left: none; padding-left: 0; }
}

/* ===== 资讯列表页(列表式) ===== */
.blog-list {
    max-width: 100%;
}
.blog-list-item {
    display: flex;
    gap: 24px;
    padding: 24px 0;
    border-bottom: 1px solid #eef0ff;
    transition: all 0.3s ease;
    align-items: flex-start;
}
.blog-list-item:hover .blog-list-title { color: #5159F5; }
.blog-list-thumb {
    flex-shrink: 0;
    width: 240px;
    height: 150px;
    border-radius: 10px;
    overflow: hidden;
    background: #f4f6fc;
}
.blog-list-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.blog-list-content { flex: 1; }
.blog-list-meta {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 8px;
}
.blog-list-date {
    font-size: 13px;
    color: #8a93ad;
}
.blog-list-title {
    font-size: 19px;
    font-weight: 700;
    color: #2a2a3e;
    margin-bottom: 8px;
    line-height: 1.4;
    transition: color 0.3s ease;
}
.blog-list-excerpt {
    font-size: 14px;
    color: #666;
    line-height: 1.7;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.blog-list-more {
    font-size: 14px;
    color: #5159F5;
    font-weight: 600;
}
.blog-pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 3rem;
}
.blog-page-btn {
    min-width: 38px;
    height: 38px;
    padding: 0 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    color: #2a2a3e;
    transition: all 0.3s ease;
    background: #fff;
}
.blog-page-btn:hover { border-color: #5159F5; color: #5159F5; }
.blog-page-btn.active {
    background: #5159F5;
    border-color: #5159F5;
    color: #fff;
}
.blog-page-btn.disabled {
    opacity: 0.4;
    pointer-events: none;
}
@media (max-width: 768px) {
    .blog-list-item { flex-direction: column; gap: 14px; }
    .blog-list-thumb { width: 100%; height: 180px; }
}

/* ===== 课程中心展示页 ===== */
.course-show-group { margin-bottom: 3.5rem; }
.course-show-title {
    font-size: 24px;
    font-weight: 700;
    color: #2a2a3e;
    padding-left: 16px;
    border-left: 5px solid #5159F5;
    margin-bottom: 24px;
}
.course-show-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.course-show-card {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid #eef0ff;
    box-shadow: 0 4px 16px rgba(81, 89, 245, 0.06);
    transition: all 0.3s ease;
}
.course-show-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 28px rgba(81, 89, 245, 0.15);
}
.course-show-img {
    width: 100%;
    height: 150px;
    overflow: hidden;
    background: #f4f6fc;
}
.course-show-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.course-show-card:hover .course-show-img img { transform: scale(1.05); }
.course-show-info { padding: 16px 18px 18px; }
.course-show-info h3 {
    font-size: 16px;
    font-weight: 700;
    color: #2a2a3e;
    margin-bottom: 8px;
    line-height: 1.4;
}
.course-show-info p {
    font-size: 13px;
    color: #666;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
@media (max-width: 992px) {
    .course-show-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 576px) {
    .course-show-grid { grid-template-columns: 1fr; }
}

/* ===== 意向课程多选 ===== */
.form-grid-3 {
    grid-template-columns: repeat(3, 1fr);
}
@media (max-width: 768px) {
    .form-grid-3 { grid-template-columns: 1fr; }
}
.course-multi-select {
    position: relative;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: #fff;
    min-height: 46px;
    cursor: pointer;
}
.course-select-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 8px 10px 0;
}
.course-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #eef0ff;
    color: #5159F5;
    border-radius: 20px;
    padding: 4px 12px;
    font-size: 13px;
    font-weight: 500;
}
.course-tag .course-tag-close {
    cursor: pointer;
    font-size: 14px;
    line-height: 1;
    opacity: 0.7;
}
.course-tag .course-tag-close:hover { opacity: 1; }
.course-select-trigger {
    padding: 12px 14px;
    color: #8a93ad;
    font-size: 14px;
}
.course-multi-select.has-value .course-select-trigger { display: none; }
.course-select-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    max-height: 260px;
    overflow-y: auto;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    z-index: 100;
    padding: 6px 0;
}
.course-multi-select.open .course-select-dropdown { display: block; }
.course-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 14px;
    cursor: pointer;
    font-size: 14px;
    color: #2a2a3e;
    transition: background 0.2s ease;
}
.course-option:hover { background: #f4f6fc; }
.course-option input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #5159F5;
}

/* ===== 提交状态浮层 ===== */
.submit-toast {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(42, 42, 62, 0.92);
    color: #fff;
    padding: 18px 28px;
    border-radius: 12px;
    font-size: 15px;
    z-index: 9999;
    align-items: center;
    gap: 12px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
    max-width: 320px;
    text-align: center;
}
.submit-toast.show { display: flex; flex-direction: column; }
.toast-spinner {
    width: 26px;
    height: 26px;
    border: 3px solid rgba(255, 255, 255, 0.25);
    border-top-color: #fff;
    border-radius: 50%;
    animation: toast-spin 0.8s linear infinite;
    margin: 0 auto 8px;
}
@keyframes toast-spin {
    to { transform: rotate(360deg); }
}
.toast-icon { font-size: 30px; line-height: 1; margin-bottom: 6px; }
.submit-toast.toast-success { background: rgba(46, 125, 50, 0.95); }
.submit-toast.toast-error { background: rgba(211, 47, 47, 0.95); }
