* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: var(--bg-primary);
}

header {
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(255, 255, 255, 0.98);
    box-shadow: none;
}


nav {
    margin: 0 auto;
    padding: 0.6rem 4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: padding 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

header.scrolled nav {
    padding: 0.4rem 4rem;
}

/* logo */
.logo img {
    height: 80px;
    object-fit: cover;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

header.scrolled .logo img {
    filter: none;
    transform: scale(0.95); /* 轻微缩小效果 */
}

nav ul {
    list-style: none;
    display: flex;;
}

nav ul li {
    width: 120px;
    margin-left: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

nav ul li a {
    text-decoration: none;
    color: #333333;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}


/* 导航链接悬停效果 */
nav ul li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #ffc801;
    transition: width 0.3s ease;
}

nav ul li a:hover::after {
    width: 100%;
}

.operations{
    display: flex;
    align-items: center;
    gap: 1rem;
    color: #333;

}


/* 主题切换按钮样式 */
.theme-switch {
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.theme-switch i {
    font-size: 1.2rem;
}

/* 微信qrcode 展示 */
.operations .wechat-icon{
    position: relative;
    cursor: pointer;
    margin-right: 1rem;
    width: 30px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.operations .wechat-icon .wechat-qrcode {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.5rem;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    display: none;
}
.operations .wechat-icon .wechat-qrcode img {
    max-width: 200px;
    max-height: 200px;
}

/* 微信图标过渡 */
.operations .wechat-icon i {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}


/* 立即咨询按钮 */
.operations button {
    padding: 0.5rem 1.25rem;
    margin-left: 0.5rem;
    border: 2px solid #ffc801;
    background: transparent;
    border-radius: 999px;
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.operations button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: #ffc801;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: -1;
}

header.scrolled .operations button {
    color: #333;
}

header.scrolled .operations button::before {
    left: 0;
}

/* 按钮悬停效果 */
.operations button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 200, 1, 0.3);
}

/* 轮播图样式 */
.carousel {
    position: relative;
    width: 100%;
    height: 600px;
    overflow: hidden;
}

.carousel-inner {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.carousel-slide.active {
    opacity: 1;
}

.carousel-content {
    text-align: center;
    color: white;
    padding: 20px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 10px;
    max-width: 800px;
    margin: 0 auto;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.5s ease-out;
}

.carousel-slide.active .carousel-content {
    transform: translateY(0);
    opacity: 1;
}

.carousel-buttons {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid white;
    background: transparent;
    margin: 0 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-dot.active {
    background: white;
    transform: scale(1.2);
}

.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.carousel-arrow:hover {
    background: rgba(255, 255, 255, 0.4);
}

.carousel-prev {
    left: 20px;
}

.carousel-next {
    right: 20px;
}

.hero {
    margin-top: 0;
    margin-bottom: 6rem;
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7));
    color: white;
    text-align: center;
    padding: 0;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}


/* 核心内容部分 */
main {
    margin-top: 63px;
    /* 限制两侧宽度 */
    max-width: 1200px;
    margin: 0 auto;
}

/* 关于我们 */
.about-us {
    padding: 6rem 0;
    margin-bottom: 6rem;
    max-width: 100%;
    margin: 0 auto;
}

.about-us-content {
   width: 50%;
   text-align: center;
   margin-bottom: 0 !important;
}

.services {
    padding: 6rem 0;
    margin-bottom: 6rem;
    max-width: 100%;
    margin: 0 auto;
    
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
    width: 100%;
}

.service-item {
    padding: 2rem;
    background: #f8f9fa;
    /* 盒子阴影 */
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    border-radius: 8px;
    text-align: center;
}

/* 部分合作讲师 */
.cooperation-teachers {
    padding: 6rem 0;
    margin-bottom: 6rem;
    max-width: 100%;
    margin: 0 auto;
}

/* 人物图片 */
.cooperation-teachers-list img{
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 50%;
}

.cooperation-teachers-list .centerAvatar{
   object-position: right;
}

.cooperation-teachers-description {
    width: 70%;
    margin: 0 auto;
    text-align: center;
    margin-bottom: 4rem;
}

.cooperation-teachers-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
    width: 100%;
}

.cooperation-teacher {
    cursor: pointer;
    padding: 2rem;
    background: #f8f9fa;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* 合作伙伴 */
.partners {
    padding: 6rem 0;
    margin-bottom: 6rem;
    max-width: 100%;
    margin: 0 auto;
}

.partners-description {
    text-align: center;
    width: 70%;
    margin: 0 auto;
    margin-bottom: 4rem;
}

.partners-list {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
}

/* 评价和反馈 */
.feedback {
    padding: 6rem 0;
    margin-bottom: 6rem;
    max-width: 100%;
    margin: 0 auto;
}

.feedback-description {
    width: 70%;
    margin: 0 auto;
    text-align: center;
    margin-bottom: 4rem;
}
.feedback-container {
    width: 100%;
    margin: 0 auto;
}

.feedback-track {
    display: flex;
    gap: 3rem;
    /* 居中 */
    align-items: center;
    justify-content: center;
}

.feedback-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    width: 300px;
    height: 370px;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease;
}

.feedback-card:hover {
    transform: translateY(-5px);
}

/* 卡片内容样式 */
.feedback-header {
    margin-bottom: 1.5rem;
}

.feedback-header h4 {
    font-size: 1.4rem;
    color: #333;
}

.feedback-header p {
    color: #666;
    font-size: .8rem;
}

.feedback-content {
    color: #444;
    font-style: italic;
    font-size: .9rem;
    display: flex;
    align-items: center;
}

/* 响应式调整 */
@media (max-width: 1200px) {
    .feedback-track {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .feedback-track {
        grid-template-columns: 1fr;
    }

    .feedback-card {
        padding: 2rem 1.5rem;
        height: 250px;
    }

    .feedback-header h4 {
        font-size: 1.2rem;
    }

    .feedback-content {
        font-size: 1rem;
    }
}



.qr-codes {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
}

.qr-code {
    text-align: center;
}

.qr-codes img {
    max-width: 150px;
    max-height: 150px;
    object-fit: cover;
    margin-bottom: 1rem;
}
footer{
    background: var(  --footer-bg);
    color: var(--text-primary);
    text-align: center;
    padding: 4rem 0;
    padding-bottom: 0;
}

footer .footer-content{
    width: 70%;
    margin: 0 auto;
}

footer .footer-left{
    display: flex;
    flex-direction: column;
    align-items: start;
    background-image: url("/image/address.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    width: 40%;
}
/* 选择第一个p */
footer .footer-left .address{
    margin-bottom: 1rem;
    text-align: left;
}
/* 选择第二个p */
footer .footer-left .beian{
    margin-bottom: 1rem;
    text-align: left;
    font-size: 14px;
}
footer .footer-left .beian a{
    text-decoration: none;
}


footer .copyright{
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    /* 浅色 */
    color: var(--text-secondary);
    /* 居中 */
    text-align: center;
    /* 下划线 */
    width: 100%;
    /* border  */
    border-top: 1px solid var(--border-color);
    font-size: 0.9rem;
}


footer .footer-left button{
    margin-top: 1rem;
    background: transparent;
    border: 1px solid #ffc801;
    color: #ffc801;
    border-radius: 999px;
    padding: 0.5rem 1.25rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

footer .footer-right{
    width: 50%;
}

@media (max-width: 768px) {
    .qr-codes {
        flex-direction: column;
        align-items: center;
    }
    
    .hero h1 {
        font-size: 2rem;
    }

    .carousel {
        height: 400px;
    }

    .carousel-arrow {
        width: 40px;
        height: 40px;
    }
}

/* 语言切换器过渡 */
.language-switcher {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.language-options {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: top;
    transform: scaleY(0);
    opacity: 0;
}

.language-options.show {
    transform: scaleY(1);
    opacity: 1;
}

/* 合作伙伴滚动展示 */
.partners-container {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 4rem 0;
}

.partners-track {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.partners-row {
    display: flex;
    gap: 3rem;
    animation: scrollX 30s linear infinite;
    padding: 1rem 0;
}

.partners-row:hover {
    animation-play-state: paused;
}

.partners-row img {
    height: 80px;
    object-fit: contain;
    flex-shrink: 0;
}

/* 第二行反向滚动 */
.partners-row:nth-child(2) {
    animation-direction: reverse;
}

/* 第三行正向滚动 */
.partners-row:nth-child(3) {
    animation-direction: normal;
}

@keyframes scrollX {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-100%);
    }
}

/* 在每行前后添加渐变遮罩 */
.partners-container::before,
.partners-container::after {
    content: '';
    position: absolute;
    top: 0;
    width: 100px;
    height: 100%;
    z-index: 1;
}

.partners-container::before {
    left: 0;
    background: linear-gradient(to right, #fff, transparent);
}

.partners-container::after {
    right: 0;
    background: linear-gradient(to left, #fff, transparent);
}


/* 调整描述文字与内容的间距 */
.about-us-content,
.cooperation-teachers-description,
.partners-description,
.feedback-description {
    margin-bottom: 3rem;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .hero {
        margin-bottom: 4rem;
    }

    .about-us,
    .services,
    .cooperation-teachers,
    .partners,
    .feedback {
        padding: 4rem 0;
        margin-bottom: 4rem;
    }

    section h2 {
        margin-bottom: 2rem;
    }

    .about-us-content,
    .cooperation-teachers-description,
    .partners-description,
    .feedback-description {
        margin-bottom: 3rem;
    }
}

/* 主题相关的 CSS 变量 */
:root {
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    --text-primary: #333333;
    --text-secondary: #666666;
    --border-color: #e0e0e0;
    --card-bg: #ffffff;
    --card-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    --nav-bg: rgba(255, 255, 255, 0.98);
    --footer-bg: #f8f9fa;
    --breadcrumb-bg: #f5f5f5;
}

/* 暗色模式变量 */
[data-theme="dark"] {
    --bg-primary: #1a1a1a;
    --bg-secondary: #2d2d2d;
    --text-primary: #ffffff;
    --text-secondary: #bebebe;
    --border-color: #404040;
    --card-bg: #2d2d2d;
    --card-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    --nav-bg: rgba(26, 26, 26, 0.98);
    --footer-bg: #1a1a1a;
    --breadcrumb-bg: #1a1a1a;
}


/* 更新现有样式以使用CSS变量 */
body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
}


.feedback-card,
.service-item,
.cooperation-teacher {
    background: var(--card-bg);
    box-shadow: var(--card-shadow);
}

.feedback-card h4 {
    color: var(--text-primary);
}

.feedback-card p {
    color: var(--text-secondary);
}

.partners-container::before {
    background: linear-gradient(to right, var(--bg-primary), transparent);
}

.partners-container::after {
    background: linear-gradient(to left, var(--bg-primary), transparent);
}

/* 关于页面样式 */
.about-page {
    padding-top: 70px;
}

.page-hero {
    height: 400px;
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('../image/about-hero.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero-content p {
    font-size: 1.5rem;
    opacity: 0.9;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--text-primary);
}

/* 公司简介部分 */
.company-intro {
    padding: 6rem 0;
    background: var(--bg-primary);
}

.intro-content {
    display: flex;
    gap: 4rem;
    align-items: center;
}

.text-content {
    flex: 1;
}

.text-content p {
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    line-height: 1.8;
}

/* Logo styles */
.default-logo {
    display: block;
}

.jp-logo {
    display: none;
}

.about-us-content-container{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}
.right-logo{
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40%;
}
#about-us-logo{
    width: 86%;
}

/* 10月10日 版权区域 同步添加备案号 代码 */
footer .copyright a{
    text-decoration: none;
    color: var(--text-secondary);
}
footer .copyright a:hover{
    color: var(--text-primary);
}