/* CSS Variables for a Unified Color Palette */
:root {
    --primary-color: #1e90ff;
    --secondary-color: #4169e1;
    --accent-color: #ff6b35;
    --accent-hover: #ff4d00;
    --text-dark: #2c3e50;
    --text-light: #5a6a7a;
    --bg-light: #f8f9ff;
    --bg-white: #ffffff;
    --gradient-primary: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    --gradient-accent: linear-gradient(135deg, var(--accent-color) 0%, #ffa500 100%);
    --shadow-sm: 0 4px 15px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 8px 25px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 15px 35px rgba(30, 144, 255, 0.15);
}

body,
html {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    /* 禁止水平滚动 */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans SC', 'Microsoft YaHei', sans-serif;
    line-height: 1.7;
    color: var(--text-dark);
    background-color: var(--bg-white);
    overflow: hidden;
}

.main-scroll-container {
    height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    /* 让主内容可滚动，sticky header 依然生效 */
}

/* --- Animation on Scroll --- */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Header --- */
.header {
    background: var(--gradient-primary);
    color: white;
    height: 52px;
    padding: 0.3rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: box-shadow 0.3s ease;

}

.header.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.nav-container {
    /* max-width: 1300px; */
    display: flex;
    align-items: center;
    padding: 0.2rem 0rem;
    height: 40px;
}

.logo {
    font-size: 2rem;
    font-weight: 700;
    margin-right: auto;
    display: flex;
    align-items: center;
}

.logo-img {
    height: 48px;
    width: auto;
    /* margin-right: 18px; */
    vertical-align: middle;
    font-size: 0;
    display: inline;
}

.logo-text {
    font-size: 1.8rem;
    font-weight: 700;
    color: white;
    display: inline-block;
    position: absolute;
    text-decoration: none;
}

.nav-menu {
    display: flex;
    list-style: none;
}

.nav-item {
    margin: 0 0.2rem;
}

.nav-link {
    color: white;
    text-decoration: none;
    padding: 0.4rem 0.8rem;
    border-radius: 8px;
    transition: background-color 0.3s, color 0.3s;
    font-size: 0.95rem;
    font-weight: 500;
    position: relative;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: width 0.3s ease-in-out;
}

.nav-link:hover::before,
.nav-item.active .nav-link::before {
    width: 60%;
}

.nav-item.active .nav-link {
    color: #fff;
    font-weight: 700;
}

.contact-info {
    display: flex;
    align-items: center;
    font-size: 0.9rem;
    margin-left: 2rem;
    background: rgba(255, 255, 255, 0.312);
    border: none;
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
}

.price-highlight {
    background-color: var(--accent-color);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-weight: bold;
    margin-right: 0.7rem;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* 客服窗口 动态消息样式 */
.message {
    display: flex;
    align-items: flex-start;
    margin-bottom: 24px;
}

.user {
    justify-content: flex-end;
}

.ai {
    justify-content: flex-start;
}

.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.message-content {
    background: #f3f4f6;
    padding: 12px;
    border-radius: 12px;
    font-size: 14px;
    color: #1f2937;
    max-width: 70%;
    margin: 0 12px;
}

.user .message-content {
    background: #2563eb;
    color: white;
}




/* --- Hero Section --- */
.hero-section {
    background: linear-gradient(135deg, #f0f4ff 0%, #e6e9f0 100%);
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}

.hero-bg-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    pointer-events: none;
}

.hero-bg-img {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    pointer-events: none;
}

@media (max-width: 768px) {
    .hero-bg-video {
        display: none !important;
    }

    .hero-bg-img {
        display: block;
    }
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    padding: 0 2rem;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 3.4rem;
    font-weight: 900;
    color: white;
    margin-bottom: 2rem;
    max-width: 800px;
    line-height: 1.3;
    text-shadow: #656565 1px 0px 0px;
}

.hero-title .highlight {
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: none;
}

.hero-subtitle {
    font-size: 1.3rem;
    color: #ffffff;
    margin-bottom: 2rem;
    /* max-width: 90%; */
    text-shadow: #1a2530 0px 0px 10px;
}

.hero-features {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    width: 430px;
}

.feature-tag {
    background: var(--bg-white);
    color: var(--secondary-color);
    padding: 0.6rem 1.3rem;
    border-radius: 50px;
    font-size: 1.rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid #e0e0e0;
    transition: all 0.3s ease;
}

.feature-tag:hover {
    transform: translateY(-3px);
    background: var(--secondary-color);
    color: var(--bg-white);
    box-shadow: var(--shadow-sm);
}

.hero-visual {
    position: relative;
    height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
}





/* --- General Section Styling --- */
.section {
    padding: 5rem 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 3rem;
}

.section-header {
    text-align: center;
    margin-bottom: 2rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
    text-align: center
}

.section-subtitle {
    color: var(--text-light);
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

/* --- Stats Section --- */
.stats-section {
    background: var(--bg-white);
}

.stats-container {
    /* display: grid; */
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    align-items: center;
}

.stats-tutor {
    align-items: center;
    display: flex;
}

.stats-highlight {
    background: var(--gradient-accent);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    display: inline-block;
    font-weight: bold;
    font-size: 1rem;
    box-shadow: 0 5px 15px rgba(255, 107, 53, 0.4);
}

.stats-active-tutor {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    font-size: 13px;
    color: #ffffff;
    text-align: center;
    font-weight: bold;
    border-radius: 8px;
    margin-right: 0.5rem;
    background: var(--gradient-accent);
    box-shadow: 0 5px 15px rgba(255, 107, 53, 0.4);
}

.stats-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
    line-height: 1.4;
}

.stats-description {
    color: var(--text-light);
    font-size: 1.05rem;
    margin-bottom: 1rem;
}

.tutors-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.tutor-card {
    background: var(--bg-white);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid #eee;
    position: relative;
    overflow: hidden;
}

.tutor-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.tutor-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
}

.tutor-card:hover::after {
    opacity: 1;
}

.tutor-header {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.tutor-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--gradient-primary);
    margin-right: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.tutor-info h4 {
    color: var(--text-dark);
    margin-bottom: 0.2rem;
    font-size: 1.2rem;
}

.tutor-title {
    color: var(--text-light);
    font-size: 0.95rem;
}

.tutor-description {
    background: var(--bg-light);
    color: var(--secondary-color);
    font-size: 0.9rem;
    line-height: 1.5;
    padding: 0.6rem 0.8rem;
    border-radius: 8px;
    display: inline-block;
    font-weight: 500;
}

/* --- Services Section --- */
.services-section {
    background: var(--bg-light);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--bg-white);
    border-radius: 15px;
    padding: 2.5rem 2rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s;
    border-top: 4px solid var(--primary-color);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.service-icon {
    width: 70px;
    height: 70px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
    font-size: 1.8rem;
    transition: all 0.4s;
}

.service-card:hover .service-icon {
    transform: rotateY(360deg);
}

.service-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.service-description {
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    min-height: 80px;
}

.service-btn {
    background: var(--gradient-primary);
    color: white;
    padding: 0.8rem 1.8rem;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
    font-size: 0.95rem;
    text-decoration: none;
}

.service-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(30, 144, 255, 0.4);
}

/* --- advantage section --- */
.advantages-section {
    background: white;
    padding: 4rem 0;
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.advantage-card {
    text-align: center;
    padding: 1.5rem;
    background: #f8f9ff;
    border-radius: 15px;
    transition: transform 0.3s;
}

.advantage-card:hover {
    transform: translateY(-5px);
}

.advantage-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #ff6b35, #ffa500);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
    font-size: 2rem;
}

.advantage-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.advantage-description {
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    min-height: 80px;
}


/* --- CTA Section --- */
.cta-section {
    padding: 10rem 5rem;
    text-align: center;
    height: 500px;
    position: relative;
    overflow: hidden;
}

.cta-title {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    margin-top: -2rem;
}

.cta-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-btn {
    background: white;
    color: rgb(255, 103, 48);
    padding: 1rem 1.5rem;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    text-decoration: none;
}

.cta-btn:hover {
    transform: translateY(-5px) scale(1.03);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    background-color: var(--accent-color);
    color: white;
}


.cta-bg-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    pointer-events: none;
}

.cta-section .cta-container {
    position: relative;
    z-index: 1;
}

.cta-bg-img {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    pointer-events: none;
}

@media (max-width: 768px) {
    .cta-bg-video {
        display: none !important;
    }

    .cta-bg-img {
        display: block;
    }
}

/* --- Footer --- */
.footer {
    background: linear-gradient(135deg, #2c3e50, #1a2530);
    color: white;
    padding: 4rem 0 0rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    padding: 0 2rem;
}

.footer-about {
    padding-right: 2rem;
    margin-top: -2rem;

}

.footer-logo {
    font-size: 1.8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    height: 30%;
}

.footer-logo i {
    margin-right: 10px;
    color: #4ecdc4;
}

.footer-about-text {
    color: #bbb;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.1rem;
    transition: all 0.3s;
}

.social-icon:hover {
    background: #1e90ff;
    transform: translateY(-3px);
}

.footer-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: #4ecdc4;
}

.footer-links-container {
    max-width: 200px;
}

.footer-links {
    list-style: none;
}

.footer-link-item {
    margin-bottom: 0.8rem;
}

.footer-link {
    color: #bbb;
    text-decoration: none;
    transition: all 0.3s;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
}

.footer-link i {
    margin-right: 8px;
    font-size: 0.9rem;
}

.footer-link:hover {
    color: white;
    padding-left: 5px;
}

.footer-contact-item {
    display: flex;
    margin-bottom: 1rem;
    color: #bbb;
    font-size: 0.95rem;
    max-width: 100%;
}

.footer-contact-item i {
    margin-right: 10px;
    color: #4ecdc4;
    font-size: 1.1rem;
    min-width: 20px;
}

.footer-bottom {
    max-width: auto;
    margin: 0;
    padding: 1rem 1rem 0.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    color: #999;
    font-size: 0.9rem;
}

.footer-bottom-declaration {
    max-width: auto;
    margin: 0;
    text-align: center;
    color: #999;
    font-size: 0.6rem;
}

/* --- Mobile Menu --- */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.8rem;
    cursor: pointer;
    z-index: 1001;
}

/* --- 悬浮联系组件独立定位 --- */
.floating-contact-wrapper {
    position: fixed;
    right: 0;
    bottom: 0;
    top: 35%;
    align-items: flex-end !important;
    height: 200px;
    /* width: 300px; */
    z-index: 1000;
    display: flex;
    flex-direction: column;
}

.floating-contact {

    left: auto;
    display: flex;
    flex-direction: row;
    gap: 8px;
    padding: 10px 12px;
    cursor: pointer;
    width: 56px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.436);
    border-radius: 8px;
    background: #fff;
    margin-bottom: 0;
    z-index: 9999;
}

.floating-contact-2 {
    margin-right: 0;
    transform: translateY(-50%);
    max-width: 250px;
    height: 90px;
    align-items: center;
}

.floating-contact-3 {
    transform: translateY(-50%);
    max-width: 220px;
}

.floating-contact-4 {
    transform: translateY(-50%);
    max-width: 300px;
}

.floating-contact .contact-icon {
    font-size: 1.3em;
    color: rgb(71, 211, 253);
    flex-shrink: 0;
    transition: color 0.3s;
}

.floating-contact .contact-tip,
.floating-contact .contact-details {
    opacity: 0;
    margin-left: 0;
    transition: opacity 0.3s, max-width 0.3s, margin-left 0.3s;
    white-space: nowrap;
    overflow: hidden;
}

.floating-contact:hover,
.floating-contact:focus {
    width: 100%;
    background: #fff;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
    align-items: center;
}

.floating-contact:hover .contact-tip,
.floating-contact:hover .contact-details,
.floating-contact:focus .contact-tip,
.floating-contact:focus .contact-details {
    opacity: 1;
    max-width: 400px;
}

.floating-contact .contact-phone,
.floating-contact .contact-email {
    font-size: 1em;
    color: var(--accent-color);
    font-weight: 600;
}

.floating-contact .contact-qr {
    width: 72px;
    height: 72px;
    border-radius: 6px;
    border: 1px solid #eee;
}

/* @media (max-width: 768px) {
    .floating-contact { display: none; }
} */


/* --- Responsive Design --- */
@media (max-width: 512px) {
    .hero-section {
        padding: 1.2rem 0;
    }

    .hero-title {
        font-size: 0.5rem;
        margin-bottom: 0.5rem;
    }

    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 1rem;
    }

    .hero-features {
        font-size: smaller;
        gap: 0.5rem;
    }

    .feature-tag {
        padding: 0.3rem 0.6rem;

    }

    .stats-title {
        font-size: 1.5rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .cta-section {
        padding: 10rem 2rem;
        height: auto;
    }

    .cta-title {
        font-size: 1.7rem;
    }

    .footer-logo {
        font-size: 1.6rem;
    }


}

@media (max-width: 1000px) {
    .nav-menu {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
        margin-left: 1rem;
        margin-right: 0.5rem;
    }

    .contact-info {
        display: none;
    }

    /* Styles for the mobile navigation menu */
    .nav-menu.mobile-active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--secondary-color);
        padding: 1rem 0;
        animation: slideDown 0.3s ease-out;
    }

    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-20px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .nav-item {
        margin: 0;
    }

    .nav-link {
        border-radius: 0;
        width: 100%;
    }

    .hero-container {
        grid-template-columns: 1fr;
    }

    .hero-subtitle,
    .hero-features {
        max-width: 340px;
    }

    .stats-container {
        grid-template-columns: 1fr;
    }

    .tutors-grid {
        grid-template-columns: 1fr;
    }

    .footer-container {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {

    .stats-container,
    .news-container,
    .footer-container {
        grid-template-columns: 1fr;
    }

    .hero-container {
        padding: 0 0rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }
}

/* --- News Section --- */
.news-section {
    background: var(--bg-white);
    padding: 5rem 0 4rem;
}

.news-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    /* grid-template-columns: 300px 1fr; */
    gap: 2.5rem;
    padding: 0 2rem;
}

.news-sidebar {
    background: var(--bg-light);
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    /* padding: 2rem 1.2rem 2rem 1.5rem; */
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    min-width: 0px;
}

.news-sidebar h3 {
    font-size: 2rem;
    font-weight: 700;
    color: black;
}

.news-category {
    display: flex;
    align-items: center;
    color: var(--secondary-color);
    background: #f0f4ff;
    border-radius: 8px;
    padding: 0.5rem 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}

.news-category i {
    margin-right: 0.7rem;
}

.news-category:hover {
    background: var(--primary-color);
    color: #fff;
}

.view-more-btn {
    background: var(--gradient-primary);
    color: #fff;
    border: none;
    border-radius: 25px;
    padding: 0.7rem 1rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 8px rgba(30, 144, 255, 0.08);
    text-decoration: none;
    text-align: center;
}

.view-more-btn:hover {
    background: var(--accent-color);
    color: #fff;
}

.news-articles {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.news-article {
    background: var(--bg-light);
    border-radius: 14px;
    box-shadow: var(--shadow-sm);
    padding: 2rem 1.5rem 1.5rem 1.5rem;
    margin-bottom: 0.5rem;
    transition: box-shadow 0.2s, transform 0.2s;
    display: flex;
    flex-direction: column;
    min-height: 180px;

}

.news-article:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px) scale(1.02);
}

.article-country {
    font-size: 0.98rem;
    color: var(--accent-color);
    margin-bottom: 0.7rem;
    display: flex;
    align-items: center;
}

.article-country i {
    margin-right: 0.5rem;
}

.article-title {
    font-size: 1.18rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.7rem;
    text-decoration: none;
}

.article-excerpt {
    color: var(--text-light);
    font-size: 0.98rem;
    line-height: 1.7;
}

@media (max-width: 1024px) {
    .news-container {
        grid-template-columns: 1fr;
    }

    .news-category {
        height: 217px;
        font-size: 0.8rem;
        padding: 0 0.2rem;
    }

    .view-more-btn {
        padding: 50px 1rem;
    }

    .news-articles {
        grid-template-columns: 1fr;
    }

    .news-sidebar h3 {
        font-size: 1.2rem;
    }
}

@media (max-width: 768px) {
    .news-section {
        padding: 2.5rem 0 2rem;
    }

    .news-container {
        padding: 0 1rem;
    }

    .news-article {
        padding: 1.2rem 1rem;
    }
}

/* 友情链接二维码区块 */
.friend-links {
    width: 100%;
    padding: 32px 0 24px 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px 32px;
    align-items: flex-end;
}

.friend-link-title {
    text-align: center;
    font-style: var(--text-light);
    margin-bottom: -20px;
    margin-top: 30px;
}

.friend-link-item {
    text-align: center;
}

.friend-link-item img {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    box-shadow: 0 2px 8px #ddd;
}

.friend-link-item div {
    margin-top: 8px;
    width: 103px;
    font-size: 15px;
    color: #858585;
}

@media (max-width: 600px) {
    .friend-links {
        gap: 24px 8px;
        padding: 20px 0 16px 0;
    }

    .friend-link-item img {
        width: 60px;
        height: 60px;
    }

    .friend-link-item div {
        font-size: 13px;
        width: 75px;
    }
}

.logo,
.logo:hover,
.logo:active,
.logo:focus {
    background: none !important;
    color: inherit !important;
    box-shadow: none !important;
    outline: none !important;
    text-decoration: none !important;
    cursor: default !important;
    filter: none !important;
}

/* --- 动画：卡片左右聚拢、内容浮现 --- */

/* 左右聚拢动画（如导师卡片、服务卡片、优势卡片） */
.card-from-left {
    opacity: 0;
    transform: translateX(-80px);
    transition: opacity 0.9s cubic-bezier(.77, 0, .18, 1), transform 0.9s cubic-bezier(.77, 0, .18, 1);
}

.card-from-right {
    opacity: 0;
    transform: translateX(80px);
    transition: opacity 0.9s cubic-bezier(.77, 0, .18, 1), transform 0.9s cubic-bezier(.77, 0, .18, 1);
}

.card-appear {
    opacity: 1 !important;
    transform: translateX(0) !important;
}

/* 内容渐显动画（如section标题、描述等） */
.fade-in {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1s cubic-bezier(.77, 0, .18, 1), transform 1s cubic-bezier(.77, 0, .18, 1);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}