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

body {
    font-family: "Microsoft YaHei", "SimSun", sans-serif;
    line-height: 1;
    color: #333;
}

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

ul {
    list-style: none;
}

/* 容器 */
.container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 15px;
}

/* 头部样式 */
.header {
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
    width: 100%;
    border-bottom: 3px solid #ffA500;
}

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

/* Logo样式 */
.logo {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 60px;
    width: auto;
}

.flex-row {
    width: 100%;
    max-width: 1600px;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    padding-left: 16px;
    padding-right: 16px;
    margin: 0 auto;
}

/* 导航样式 */
/* .nav {
  left: 40%;
} */
.breadcrumb {
    background-color: #eaeaea;
    padding: 10px 0;
    border-bottom: 1px solid #e9ecef;
}

.breadcrumb .container {
    display: flex;
    align-items: center;
}

.breadcrumb a {
    color: #6c757d;
    transition: color 0.3s;
}

.breadcrumb a:hover {
    color: #ff6600;
}

.breadcrumb span {
    margin: 0 10px;
    color: #6c757d;
}

.breadcrumb .content .breadcrumb-active {
    font-weight: 550;
    color: #ff6600;
}

.nav-list {
    display: flex;
    gap: 60px;
}

.nav-item {
    position: relative;
    font-size: 16px;
    color: #333;
    transition: color 0.3s;
}

.nav-item:hover,
.nav-item.active {
    color: #ff6600;
    font-weight: 600;
}

/* 汉堡菜单按钮 */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}

.hamburger-line {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px 0;
    background-color: #333;
    transition: all 0.3s ease;
}

/* 页脚样式 */
.footer {
    background: #c65925;
    color: white;
    padding: 3rem 0 1rem;
}

.footer-top {
    display: grid;
    grid-template-columns: 1fr 3fr 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-logo {
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    top: -30px;
}

.footer-logo img {
    max-width: 250px;
    height: auto;
}

.teacher-img {
    gap: 40px;
    margin-top: 15px;
    align-items: center;
}

.teacher-img .teacher-content img {
    width: 80px;
    height: auto;
    padding-bottom: 15px;
}

.footer-nav {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
    padding-top: 15px;
}

.footer-title {
    font-size: 1rem;
    font-weight: bolder;
    margin-bottom: 0.4rem;
    color: white;
}

.footer-nav .footer-title {
    margin-bottom: 2rem;
}

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

.footer-links a {
    font-size: 1rem;
    transition: opacity 0.3s;
    font-weight: bold;
}

.footer-links a:hover {
    opacity: 0.8;
}

.footer-contact {
    display: flex;
    flex-direction: column;
}

.social-media,
.wechat {
    gap: 15px;
    padding-top: 15px;
}

.address,
.consultation {
    font-size: 20px;
}

.address p {
    font-size: 20px;
}

.social-icons {
    display: flex;
    gap: 1.5rem;
}

.social-icon img {
    width: 30px;
    height: 30px;
    transition: transform 0.3s;
}

.social-icon:hover img {
    transform: scale(1.1);
}

.qrcode img {
    width: 60px;
    height: 60px;
}

.address p,
.consultation p {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 0.8rem;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .footer {
        background: #ff6600;
    }

    .footer-top {
        grid-template-columns: 1fr 2fr;
    }

    .footer-logo {
        grid-column: 1;
        grid-row: 1;
    }

    .footer-nav {
        grid-column: 1 / span 2;
        grid-row: 2;
        grid-template-columns: repeat(3, 1fr);
    }

    .footer-contact {
        grid-column: 2;
        grid-row: 1;
    }
}

/* 分割线 */
.dottod-divider {
    content: "";
    display: block;
    width: 100%;
    border-bottom: 2px dotted #000;
    /* 底部边框 */
    margin-top: 40px;
    margin-bottom: 40px;
}

.img-fluid {
    width: 100%;
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

@media (max-width: 768px) {
    .footer-top {
        grid-template-columns: 1fr;
    }

    .footer-logo {
        grid-column: 1;
        grid-row: 1;
        justify-content: center;
        align-items: center;
        margin-bottom: 1rem;
    }

    .footer-nav {
        grid-column: 1;
        grid-row: 2;
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
        display: none;
    }

    .footer-contact {
        grid-column: 1;
        grid-row: 3;
        grid-template-columns: 1fr;
    }

    .teacher-img {
        justify-content: center;
    }

    .social-media,
    .wechat,
    .address,
    .consultation {
        grid-column: span 1;
    }

    .qrcode {
        display: flex;
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .footer-nav {
        grid-template-columns: 1fr;
        text-align: center;
    }

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

    .social-icons {
        justify-content: center;
    }
}

/* 移动端导航样式 */
@media (max-width: 768px) {
    body.menu-open {
        overflow: hidden;
    }

    .header .container {
        height: 70px;
    }

    .logo-img {
        height: 50px;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .nav {
        position: fixed;
        top: 0;
        left: 100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background-color: white;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        transition: right 0.3s ease;
        z-index: 1000;
        overflow-y: auto;
        padding: 80px 20px 20px;
    }

    .nav.open {
        left: 32%;
    }

    .nav-list {
        flex-direction: column;
        gap: 0;
    }

    .nav-item {
        padding: 15px 0;
        font-size: 18px;
        border-bottom: 1px solid #eee;
    }

    .nav-item:last-child {
        border-bottom: none;
    }

    .nav-item.active::after {
        display: none;
    }

    /* 汉堡菜单动画 */
    .mobile-menu-toggle.active .hamburger-line:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

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

    .mobile-menu-toggle.active .hamburger-line:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    /* 遮罩层 */
    .menu-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 5;
    }

    .menu-overlay.active {
        display: block;
    }
}

/* 全宽下拉栏样式 */
.mega-dropdown {
    position: absolute;
    top: 80px;
    left: 0;
    width: 100%;
    height: 250px;
    background-color: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    border-top: 1px solid #eee;
}

.mega-dropdown .container {
    display: flex;
    justify-content: flex-end;
}

.mega-dropdown-content {
    display: flex;
    gap: 60px;
    position: relative;
    top: 50px;
}

.mega-dropdown-section {
    flex: 1;
}

.mega-dropdown-section {
    color: #ff6600;
    font-size: 16px;
    margin-bottom: 15px;
}

.mega-dropdown-section ul {

    list-style: none;
}

.mega-dropdown-section ul li {
    margin-bottom: 10px;
}

.mega-dropdown-section ul li a {
    color: #333;
    font-size: 16px;
    margin-bottom: 15px;
    transition: color 0.2s ease;
}

.mega-dropdown-section ul li a:hover {
    color: #ff6600;
}

/* 显示下拉栏的状态 */
.header.dropdown-active .mega-dropdown {
    opacity: 0.8;
    visibility: visible;
    transform: translateY(0);
}

/* 响应式调整 */
@media (max-width: 768px) {
    .mega-dropdown {
        display: none;
        /* 在移动端不显示下拉栏 */
    }
}