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

/* Header 主容器 */
.header {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
    z-index: 1000;
    transition: all 0.3s ease;
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

/* Logo 样式 */
.logo-link {
    display: block;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.logo-link:hover {
    transform: scale(1.05);
}

.logo-img {
    height: 50px;
    width: auto;
    display: block;
}

/* ========== 导航样式 ========== */
.nav-list {
    display: flex;
    list-style: none;
    gap: 4px;
    margin: 0 20px;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 10px 20px;
    color: #333;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.3s ease;
    white-space: nowrap;
    cursor: pointer;
    position: relative; /* ★ 关键修复：让下划线定位生效 */
}

/* 下拉箭头动画 */
.submenu-arrow {
    transition: transform 0.3s ease;
    opacity: 0.6;
}

.nav-item.has-submenu:hover .submenu-arrow {
    transform: rotate(180deg);
    opacity: 1;
}

.nav-link:hover {
    color: #a00000;
}

/* 当前激活的导航项 */
.nav-item.active .nav-link {
    color: #a00000;
    font-weight: 600;
}

/* 导航下划线动画效果 */
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 20px;
    height: 2px;
    background: #a00000;
    border-radius: 2px;
    transition: transform 0.3s ease;
}

.nav-item.active .nav-link::after,
.nav-link:hover::after {
    transform: translateX(-50%) scaleX(1);
}

/* ========== 二级菜单样式（彻底修复版） ========== */
.submenu {
    position: absolute;
    top: calc(100% + 5px);
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    min-width: 180px;
    z-index: 1001;
}
/* ★ 桥接区域：填充 nav-item 和 submenu 之间的间隙 */
.nav-item.has-submenu::before {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 20px;
    z-index: 1002;
    pointer-events: auto;
    background: transparent;
}
/* ★ 悬停时显示子菜单 */
.nav-item.has-submenu:hover .submenu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
}
.nav-item.has-submenu.active:hover .submenu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
}

/* ★ 鼠标在子菜单上时保持显示 */
.submenu:hover {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
}
.nav-item.has-submenu.active .submenu:hover {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
}

/* ★ 鼠标在子菜单上时，父级也保持 hover 状态 */
.nav-item.has-submenu:hover .nav-link {
    color: #a00000;
}

.submenu-inner {
    position: relative;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15), 
                0 0 0 1px rgba(0, 0, 0, 0.05);
    padding: 8px;
    overflow: visible;
}

/* 下拉菜单三角箭头 */
.submenu-inner::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    width: 12px;
    height: 12px;
    background: white;
    border-left: 1px solid rgba(0, 0, 0, 0.05);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    z-index: -1;
}

.submenu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    color: #555;
    text-decoration: none;
    font-size: 14px;
    border-radius: 8px;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.submenu-item:hover {
    /*background: rgba(160, 0, 0, 0.05);*/
    color: #a00000;
    transform: translateX(4px);
}

/* 二级菜单项分隔线 */
.submenu-item + .submenu-item {
    border-top: 1px solid rgba(0, 0, 0, 0.04);
}

/* ========== 联系方式样式 ========== */
.header-contact {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex-shrink: 0;
}

.contact-info {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #a00000;
}

.contact-icon {
    color: #a00000;
    flex-shrink: 0;
    opacity: 0.8;
}

.contact-phone,
.contact-tel {
    font-size: 18px;
    font-weight: 700;
    font-family: '微软雅黑', sans-serif;
    letter-spacing: 0.5px;
}

/* ========== 菜单项动画 ========== */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.nav-item.has-submenu:hover .submenu-item {
    animation: slideDown 0.3s ease backwards;
}

.nav-item.has-submenu:hover .submenu-item:nth-child(1) { animation-delay: 0.05s; }
.nav-item.has-submenu:hover .submenu-item:nth-child(2) { animation-delay: 0.1s; }
.nav-item.has-submenu:hover .submenu-item:nth-child(3) { animation-delay: 0.15s; }
.nav-item.has-submenu:hover .submenu-item:nth-child(4) { animation-delay: 0.2s; }
.nav-item.has-submenu:hover .submenu-item:nth-child(5) { animation-delay: 0.25s; }

/* 有二级菜单的父级，改变光标样式 */
.nav-item.has-submenu > .nav-link {
    cursor: default;
}

/* 轮播图容器 */
.hero-slider {
    width: 100%;
    position: relative;
    overflow: hidden;
}
.heroSwiper {
    width: 100%;
    height: 600px; /* 根据需要调整 */
}
/* 轮播项 */
.swiper-slide {
    position: relative;
    overflow: hidden;
}
.slide-inner {
    position: relative;
    width: 100%;
    height: 100%;
}
/* 图片样式 - 现代全屏覆盖 */
.slide-image {
    width: 100%;
    height: 100%;
    object-fit: cover; /* 保持比例填充 */
    transform: scale(1);
    transition: transform 6s ease;
}
/* 激活状态的图片缓慢放大效果 */
.swiper-slide-active .slide-image {
    transform: scale(1.05);
}
/* 遮罩层 - 增强文字可读性 */
.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient( to bottom, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.4) 50%, rgba(0, 0, 0, 0.7) 100% );
    pointer-events: none;
}
/* 轮播图上的文字内容 */
.slide-content {
    position: absolute;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: #fff;
    z-index: 10;
    width: 80%;
    max-width: 800px;
}
.slide-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 16px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 0.3s;
}
.slide-desc {
    font-size: 18px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 0.6s;
}
/* 文字入场动画 */
@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
/* 自定义导航按钮 */
.swiper-button-next,.swiper-button-prev {
    width: 50px !important;
    height: 50px !important;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}
.swiper-button-next:after,.swiper-button-prev:after {
    font-size: 18px !important;
    color: #333;
    font-weight: bold;
}
.swiper-button-next:hover,.swiper-button-prev:hover {
    background: #fff;
    transform: scale(1.1);
}
/* 隐藏默认导航按钮（如果不需要可以删除对应HTML） */
.swiper-button-next {
    right: 20px;
}
.swiper-button-prev {
    left: 20px;
}


/* Footer 主体 */
.footer {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    color: #c8d6e5;
    position: relative;
    overflow: hidden;
}
/* 背景装饰 */
.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(160, 0, 0, 0.08) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(160, 0, 0, 0.05) 0%, transparent 50%);
    pointer-events: none;
}
.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    position: relative;
    z-index: 1;
}
/* 主体区域 */
.footer-main {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 60px;
    padding: 60px 0 40px;
}
.footer-company-name {
    font-size: 20px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 24px;
}
.footer-contact-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 14px;
    color: #a4b0be;
    line-height: 1.6;
    transition: color 0.3s ease;
}
.contact-item:hover {
    color: #ffffff;
}

.contact-svg {
    flex-shrink: 0;
    margin-top: 2px;
    color: #a00000;
}
/* 导航区块 */
.footer-nav-section {
    /* 确保容器不拉伸子元素 */
    align-self: start;
}
.footer-title {
    font-size: 18px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 24px;
    position: relative;
    padding-bottom: 12px;
}
.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: #a00000;
    border-radius: 1px;
}
.footer-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0;  /* 改为 0，间距由父级 nav-column 控制 */
}
.footer-nav-link {
    color: #a4b0be;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
    display: inline-block;
}
.footer-nav-link::before {
    content: '›';
    margin-right: 8px;
    color: #a00000;
    font-weight: bold;
}
.footer-nav-link:hover {
    color: #ffffff;
    transform: translateX(5px);
}
/* 二维码区块 */
.footer-qrcode-section {
    display: flex;
    flex-direction: column;
}
.qrcode-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
}
.qrcode-img {
    width: 140px;
    height: 140px;
    border-radius: 8px;
    background: #ffffff;
    padding: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}
.qrcode-img:hover {
    transform: scale(1.05);
}
.qrcode-tip {
    font-size: 13px;
    color: #a4b0be;
    line-height: 1.6;
}
/* 底部版权栏 */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 24px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}
.footer-bottom-left {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    font-size: 13px;
    color: #747d8c;
}
.icp-link {
    color: #747d8c;
    text-decoration: none;
    transition: color 0.3s ease;
}
.icp-link:hover {
    color: #a4b0be;
}
.footer-bottom-right {
    display: flex;
    align-items: center;
    gap: 12px;
}
/* 一级分类（不可点击的父级标题） */
.footer-nav-parent {
    color: #ffffff;
    font-size: 14px;
    font-weight: 500;
    cursor: default;
    display: inline-block;
    margin-bottom: 8px;
}

.footer-nav-parent::before {
    content: '›';
    margin-right: 8px;
    color: #a00000;
    font-weight: bold;
}

/* 二级分类列表 */
.footer-sub-nav {
    list-style: none;
    padding: 0 0 0 20px;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}


.footer-sub-nav .sub-link {
    font-size: 13px;
    color: #747d8c;
}

.footer-sub-nav .sub-link::before {
    content: '—';
    margin-right: 6px;
    color: #57606f;
}

.footer-sub-nav .sub-link:hover {
    color: #ffffff;
    transform: translateX(3px);
}
/* 导航网格容器 - 替代原来的 footer-nav-list */
.footer-nav-grid {
    columns: 2;               /* 两列 */
    column-gap: 40px;         /* 列间距 */
}

/* 每列独立，不跨列断裂 */
.nav-column {
    break-inside: avoid;      /* 防止内容在列中断开 */
    margin-bottom: 16px;      /* 项之间的间距 */
    min-width: 0;
}

/* 如果希望"网站首页"始终在顶部，可以给它加个标记 */
.nav-column:first-child {
    margin-top: 0;
}





.bottom-link {
    color: #747d8c;
    text-decoration: none;
    font-size: 13px;
    transition: color 0.3s ease;
}
.bottom-link:hover {
    color: #a4b0be;
}
.divider {
    color: rgba(255, 255, 255, 0.15);
    font-size: 12px;
}
/* 标题区域容器 */
.section-header {
    text-align: center;        /* 让 H1 居中 */
    margin-bottom: 40px;       /* 与下方内容的间距 */
}
/* H1 标题样式 */
.section-header .tit {
    font-size: 28px;
    font-weight: bold;
    color: #333;
    margin: 0 0 12px 0;        /* 下边距留出线条空间 */
    padding: 0;
}
/* 红色装饰线条 */
.title-line {
    width: 60px;              /* 线条宽度 */
    height: 3px;              /* 线条高度（粗细） */
    background-color: #a00000; /* 红色 */
    margin: 0 auto;           /* 居中显示 */
    border-radius: 2px;       /* 圆角（可选） */
}
.content>.teacher-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center; /* 居中显示 */
    gap: 20px; /* 卡片间距 */
    max-width: 1360px;
    margin: 0 auto;
}
.teacher-card {
    flex: 0 0 calc(20% - 20px); /* 一行显示5个 */
    max-width: calc(20% - 20px);
    box-sizing: border-box;
    text-align: center;
    overflow: hidden;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}
.teacher-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}
.teacher-card img {
    width: 100%;
    height: 371px;
    object-fit: cover;
    display: block;
}
.teacher-card h3 {
    padding: 12px 0;
    margin: 0;
    font-size: 16px;
    color: #333;
}

/* ===== 导航栏（左标题 + 右链接） ===== */
.section-nav {
    display: flex;
    justify-content: space-between;  /* 左右两端对齐 */
    align-items: center;            /* 垂直居中 */
    margin: 20px 0 20px 0;          /* 上下间距 */
    padding: 0 4px;                /* 左右内边距，与卡片对齐 */
}

.section-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.view-all {
    font-size: 14px;
    color: #a00000;
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 4px 12px;
    border: 1px solid #a00000;
    border-radius: 20px;
}

.view-all:hover {
    background-color: #a00000;
    color: #fff;
}

/* ===== FAQ网格（核心） ===== */
.faq-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 一行4列，等宽 */
    gap: 20px;                           /* 卡片间距 */
    max-width: 1360px;
    margin: 0 auto;
}

/* ===== 每个FAQ卡片 ===== */
.faq-card {
    background: #ffffff;
    border-radius: 8px;
    padding: 20px;
    border: 2px solid #a00000;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.faq-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
    background: #f8f9fa;
}

.faq-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin: 0 0 10px 0;
    /* 如果标题过长，可以限制行数 */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.faq-desc {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin: 0;
    /* 描述文字最多显示3行 */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.news {
    padding: 50px 0;
}
/* ===== 品牌动态网格 ===== */
.brand-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 一行4列 */
    gap: 24px;
    max-width: 1360px;
    margin: 0 auto;
}
/* ===== 每个品牌卡片 ===== */
.brand-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border: 1px solid #eee;
}
.brand-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
    border-color: #a4102a;
}
.brand-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}
.brand-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin: 14px 16px 8px 16px;
    /* 标题最多显示2行 */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.brand-summary {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    flex: 1;               /* 撑满剩余空间，推动日期到底部 */
    /* 简介最多显示3行 */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 60px;      /* 约3行高度，保持卡片整齐 */
    margin: 0px 16px 20px;
}
.brand-meta {
    display: flex;
    justify-content: space-between;
    padding: 0 16px 16px 16px;
    font-size: 13px;
    color: #999;
}
.brand-meta time {
    display: inline-block;
    margin-right: 12px;
}
/* 服务板块主体 */
.service-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 50%, #f8f9fa 100%);
    position: relative;
    overflow: hidden;
}
/* 背景装饰 */
.service-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}
/* ========== 左侧图片区域 ========== */
.service-image-wrapper {
    position: relative;
}
.service-image-box {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}
.service-image-box:hover {
    transform: translateY(-5px);
}
.service-image {
    width: 620px;
    height: 530px;
    display: block;
    transition: transform 0.6s ease;
}
.service-image-box:hover .service-image {
    transform: scale(1.05);
}
/* 图片装饰边框 */
.image-decoration {
    position: absolute;
    top: 20px;
    left: 20px;
    right: -20px;
    bottom: -20px;
    border: 2px solid rgba(160, 0, 0, 0.15);
    border-radius: 20px;
    z-index: -1;
    pointer-events: none;
}
/* ========== 右侧内容区域 ========== */
.service-content {
    padding: 20px 0;
}
/* 标题头部 */
.service-header {
    margin-bottom: 30px;
}
.service-title {
    font-size: 42px;
    font-weight: 700;
    color: #1a1a2e;
    line-height: 1.2;
    margin-bottom: 20px;
}
/* 分割线 */
.service-divider {
    display: flex;
    align-items: center;
    gap: 12px;
}
.divider-line {
    width: 40px;
    height: 2px;
    background: #a00000;
    border-radius: 1px;
}
.divider-dot {
    width: 8px;
    height: 8px;
    background: #a00000;
    border-radius: 50%;
}
/* 描述文字 */
.service-description {
    font-size: 16px;
    line-height: 1.8;
    color: #555;
    margin-bottom: 40px;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    /*-webkit-line-clamp: 6;*/
    overflow: hidden;
    text-overflow: ellipsis;
}
.feature-text h4 {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a2e;
    margin-bottom: 4px;
}
.feature-text p {
    font-size: 14px;
    color: #888;
    margin: 0;
}
/* 按钮样式 */
.service-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 16px 36px;
    background: linear-gradient(135deg, #a00000, #c0392b);
    color: #ffffff;
    text-decoration: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(160, 0, 0, 0.2);
}
.service-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(160, 0, 0, 0.3);
    gap: 12px;
}
.service-btn svg {
    transition: transform 0.3s ease;
}
.service-btn:hover svg {
    transform: translateX(3px);
}
/* ========== 动画 ========== */
@keyframes floatCard {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}
@keyframes pulse {
    0%, 100% {
        box-shadow: 0 10px 30px rgba(160, 0, 0, 0.3);
    }
    50% {
        box-shadow: 0 20px 40px rgba(160, 0, 0, 0.5);
    }
}

.news {
    padding: 50px 0 80px;
}

.content {
    width: 1360px;
    margin: 0 auto;
}
a{text-decoration:none;color: inherit;}
ul,li{list-style-type:none;}