/* 微信二维码图片hover放大效果 */
.qr-code img {
    transition: transform 0.3s cubic-bezier(0.4,0,0.2,1), box-shadow 0.3s;
}
.qr-code img:hover {
    transform: scale(1.6);
    z-index: 10;
    box-shadow: 0 8px 32px rgba(0,0,0,0.25);
}
/* 学员案例图片居中 */
.course-image img {
    display: block;
    margin-left: auto;
    margin-right: auto;
}
/* 中文网站样式 - 基于原样式优化 */

/* CSS变量 - 保持原有的蓝色/黄色配色方案 */
:root {
    --primary-blue: #2775AF;
    --primary-yellow: #FFC324;
    --secondary-blue: #1E5A8C;
    --secondary-yellow: #E6B01F;
    --text-dark: #2D3748;
    --text-light: #718096;
    --background-light: #F7FAFC;
    --white: #FFFFFF;
    --gray-100: #F8F9FA;
    --gray-200: #E2E8F0;
    --gray-300: #CBD5E0;
    --gray-600: #4A5568;
    --gray-700: #2D3748;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.1);

    /* 中文字体优化 */
    --font-chinese: 'Noto Sans SC', 'Microsoft YaHei', 'SimHei', 'PingFang SC', 'Helvetica Neue', Arial, sans-serif;
}

/* 重置和基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-chinese);
    line-height: 1.8; /* 中文字符需要更大的行高 */
    color: var(--text-dark);
    background-color: var(--white);
    font-size: 16px; /* 中文字符基础字体稍大 */
}

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

/* 强调色 */
.accent {
    color: var(--primary-yellow);
}

/* 语言切换器 */
.language-switcher {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1001;
    background: rgba(255, 255, 255, 0.95);
    padding: 8px 16px;
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
    font-size: 14px;
    backdrop-filter: blur(10px);
}

.lang-link {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.lang-link:hover {
    color: var(--secondary-blue);
}

.lang-separator {
    margin: 0 8px;
    color: var(--gray-300);
}

.lang-current {
    color: var(--gray-600);
    font-weight: 500;
}

/* 头部导航 */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--white);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar {
    padding: 1rem 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-blue);
    letter-spacing: 0.5px; /* 中文字符字间距 */
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
    font-size: 1rem; /* 中文导航字体稍大 */
}

.nav-link:hover {
    color: var(--primary-blue);
}

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

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

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background: var(--primary-blue);
    margin: 3px 0;
    transition: 0.3s;
}

/* 主导航区域 */
.hero {
    padding: 120px 0 80px;
    background: linear-gradient(135deg, var(--background-light) 0%, var(--white) 100%);
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-title {
    font-size: 3rem; /* 中文标题稍小 */
    font-weight: 700;
    line-height: 1.4; /* 中文标题行高 */
    margin-bottom: 1.5rem;
    color: var(--text-dark);
    letter-spacing: 1px; /* 中文字符间距 */
}

.hero-description {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    line-height: 1.8; /* 中文描述行高 */
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
}

.btn {
    padding: 1rem 2rem;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem; /* 中文按钮字体稍大 */
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    font-family: var(--font-chinese);
    letter-spacing: 0.5px;
}

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

.btn-primary:hover {
    background: var(--secondary-blue);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: var(--primary-yellow);
    color: var(--text-dark);
}

.btn-secondary:hover {
    background: var(--secondary-yellow);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-outline {
    background: transparent;
    color: var(--primary-blue);
    border: 2px solid var(--primary-blue);
}

.btn-outline:hover {
    background: var(--primary-blue);
    color: var(--white);
    transform: translateY(-2px);
}

.hero-stats {
    display: flex;
    gap: 2rem;
}

.stat-item h3 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
}

.stat-item p {
    color: var(--text-light);
    font-weight: 500;
    font-size: 1rem;
}

.hero-placeholder {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
    border-radius: 20px;
    padding: 4rem 2rem;
    text-align: center;
    color: var(--white);
    min-height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: var(--shadow-xl);
}

.hero-placeholder i {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.8;
}

.hero-placeholder p {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.hero-placeholder small {
    opacity: 0.7;
    font-size: 1rem;
}

/* 区域样式 */
section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.2rem; /* 中文区域标题稍小 */
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-dark);
    letter-spacing: 1px;
}

.section-description {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.8;
}

/* 关于我们 */
.about {
    background: var(--white);
}

.about-grid {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    margin-top: 3rem;
}

.about-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
}

.about-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 16px;
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    border: 1px solid var(--gray-200);
}

.about-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-yellow);
}

.card-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: var(--white);
    font-size: 2rem;
}

.about-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-dark);
    letter-spacing: 0.5px;
}

.about-card p {
    color: var(--text-light);
    line-height: 1.8;
}

/* 课程介绍 */
.courses {
    background: var(--background-light);
}

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

.course-card {
    background: var(--white);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    position: relative;
    border: 1px solid var(--gray-200);
}

.course-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.course-card.featured {
    border: 2px solid var(--primary-yellow);
    transform: scale(1.05);
}

.course-card.featured:hover {
    transform: scale(1.05) translateY(-5px);
}

.course-badge {
    position: absolute;
    top: -10px;
    right: 20px;
    background: var(--primary-yellow);
    color: var(--text-dark);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.course-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.course-header h3 {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text-dark);
    letter-spacing: 0.5px;
}

.course-price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-blue);
}

.course-features {
    list-style: none;
    margin-bottom: 2rem;
}

.course-features li {
    padding: 0.6rem 0;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
}

.course-features i {
    color: var(--primary-yellow);
    font-size: 0.9rem;
}

/* 模拟考试 */
.mock-test {
    background: var(--primary-blue);
    color: var(--white);
}

.mock-test-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.mock-test-info h2 {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    letter-spacing: 1px;
}

.mock-test-info p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    line-height: 1.8;
}

.mock-features {
    list-style: none;
    margin-bottom: 2rem;
}

.mock-features li {
    padding: 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
}

.mock-features i {
    color: var(--primary-yellow);
}

.mock-test .btn-primary {
    background: var(--primary-yellow);
    color: var(--text-dark);
}

.mock-test .btn-primary:hover {
    background: var(--secondary-yellow);
}

.mock-placeholder {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 4rem 2rem;
    text-align: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    min-height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.mock-placeholder i {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.8;
}

.mock-placeholder p {
    font-size: 1.3rem;
    font-weight: 600;
}

/* 微信二维码 */
.wechat-qr {
    margin-top: 1rem;
}

.qr-placeholder {
    background: var(--white);
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
    color: var(--text-dark);
    border: 2px dashed var(--gray-300);
    max-width: 120px;
}

.qr-placeholder i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: var(--primary-blue);
}

.qr-placeholder small {
    font-size: 0.8rem;
    color: var(--text-light);
}

/* 页脚 */
.footer {
    background: var(--gray-700);
    color: var(--white);
    padding: 3rem 0 1rem;
}

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

.footer-section h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--white);
}

.footer-section h4 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--primary-yellow);
}

.footer-section p {
    opacity: 0.8;
    margin-bottom: 1rem;
    line-height: 1.8;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    padding: 0.3rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-section ul li a {
    color: var(--white);
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.footer-section ul li a:hover {
    opacity: 1;
    color: var(--primary-yellow);
}

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

.social-links a {
    width: 40px;
    height: 40px;
    background: var(--primary-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--primary-yellow);
    color: var(--text-dark);
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid var(--gray-600);
    padding-top: 1rem;
    text-align: center;
    opacity: 0.7;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .language-switcher {
        top: 10px;
        right: 10px;
        padding: 6px 12px;
        font-size: 12px;
    }

    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: var(--white);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: var(--shadow-lg);
        padding: 2rem 0;
        gap: 1rem;
    }

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

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .hero-title {
        font-size: 2.2rem; /* 移动端中文标题 */
    }

    .hero-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }

    .hero-stats {
        justify-content: center;
        flex-wrap: wrap;
        gap: 1rem;
    }

    .mock-test-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .section-title {
        font-size: 1.8rem; /* 移动端中文区域标题 */
    }

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

    .course-card.featured {
        transform: none;
    }

    .course-card.featured:hover {
        transform: translateY(-5px);
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.8rem; /* 小屏中文标题 */
    }

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

    .btn {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

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

    .section-title {
        font-size: 1.6rem; /* 小屏中文区域标题 */
    }

    .mock-test-info h2 {
        font-size: 1.8rem;
    }
}

/* 动画类 */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.slide-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.6s ease;
}

.slide-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.slide-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.6s ease;
}

.slide-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* 中文特定样式优化 */
.chinese-text {
    word-wrap: break-word;
    word-break: break-word;
}

/* 价格符号调整 */
.course-price::before {
    content: '¥';
    font-size: 0.8em;
    margin-right: 2px;
}/* 关于我们部分的新样式 */
.about {
    padding: 80px 0;
    background: #f8f9fa;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.about-card {
    background: white;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.about-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.card-icon {
    font-size: 40px;
    color: var(--white);
    margin-bottom: 20px;
}

.card-icon i {
    color: var(--white);
}

.about-card h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: #333;
}

.about-card p {
    font-size: 16px;
    color: #666;
    line-height: 1.6;
}

@media (max-width: 992px) {
    .about-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .about-grid {
        grid-template-columns: 1fr;
    }
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 50px;
}

@media (max-width: 1200px) {
    .about-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .about-grid {
        grid-template-columns: 1fr;
    }
}


/* 图标样式更新 */
.about-card .card-icon {
    background-color: var(--primary-blue);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.about-card .card-icon i {
    color: white;
}

/* 轮播图片圆角样式 */
.hero-carousel-container {
    border-radius: 15px;
    overflow: hidden;
}

.carousel-img {
    border-radius: 15px;
}

/* 名师介绍部分新样式 */
.teachers {
    padding: 6rem 0;
    background: #f8f9fa;
}

.teacher-profile {
    display: flex;
    gap: 4rem;
    background: white;
    border-radius: 16px;
    padding: 3rem;
    margin-top: 3rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.teacher-left {
    flex: 0 0 300px;
    text-align: center;
}

.teacher-avatar {
    width: 220px;
    height: 220px;
    margin: 0 auto 2rem;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.teacher-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.teacher-name-block h3 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: #2d3436;
}

.teacher-name-block span {
    font-size: 1.2rem;
    color: #636e72;
}

.teacher-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.teacher-quote {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
}

.teacher-quote i {
    font-size: 2rem;
    color: var(--accent-color);
}

.teacher-quote p {
    font-size: 1.5rem;
    font-style: italic;
    color: #2d3436;
    margin: 0;
}

.teacher-achievements {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.achievement-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.achievement-item i {
    font-size: 1.5rem;
    color: var(--accent-color);
    background: rgba(39, 117, 175, 0.1);
    padding: 1rem;
    border-radius: 12px;
}

.achievement-text h4 {
    font-size: 1.1rem;
    color: #2d3436;
    margin: 0 0 0.5rem 0;
}

.achievement-text p {
    font-size: 1rem;
    color: #636e72;
    margin: 0;
}

@media (max-width: 992px) {
    .teacher-profile {
        flex-direction: column;
        align-items: center;
        gap: 2rem;
    }

    .teacher-left {
        flex: none;
    }

    .teacher-achievements {
        grid-template-columns: 1fr;
    }
}

/* 更新引用样式 */
.teacher-quote {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 2rem;
}

.teacher-quote i {
    font-size: 1.5rem;
    color: var(--accent-color);
}

.quote-text {
    font-size: 1.5rem;
    font-style: italic;
    color: #2d3436;
    margin: 0;

}

/* 成就图标颜色更新 */
.achievement-item i {
    font-size: 1.5rem;
    color: var(--primary-blue) !important;
    background: rgba(39, 117, 175, 0.1);
    padding: 1rem;
    border-radius: 12px;
    width: 3.5rem;
    height: 3.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 成就项布局调整 */
.achievement-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-left: -10px;
}

.achievement-text {
    flex: 1;
    min-width: 0;
}

.achievement-text h4 {
    font-size: 1.1rem;
    color: #2d3436;
    margin: 0 0 0.5rem 0;
}
