/* ===== 全局重置 ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
    color: #333;
    line-height: 1.6;
    background: #fff;
    min-width: 1200px;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color .2s;
}

img {
    max-width: 100%;
    display: block;
}

ul,
li {
    list-style: none;
}

/* ===== 通用容器 ===== */
.container {
    width: 1200px;
    margin: 0 auto;
}

/* ===== 顶部导航 ===== */
.header {
    height: 90px;
    background: #fff;
    position: relative;
    z-index: 100;
}

.header .container {
    display: flex;
    align-items: center;
    height: 100%;
}

.logo {
    width: 220px;
    height: 60px;
}

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

.nav {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 0;
}

.nav a {
    display: block;
    padding: 0 22px;
    height: 90px;
    line-height: 90px;
    font-size: 16px;
    color: #333;
    position: relative;
}

.nav a:hover,
.nav a.active {
    color: #1f6ee0;
}

.nav a.active::after {
    content: "";
    position: absolute;
    left: 22px;
    right: 22px;
    bottom: 22px;
    height: 2px;
    background: #1f6ee0;
}

/* ===== 通用按钮 ===== */
.btn {
    display: inline-block;
    padding: 0 22px;
    height: 38px;
    line-height: 36px;
    border-radius: 19px;
    font-size: 14px;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all .2s;
}

.btn-primary {
    background: #1f6ee0;
    color: #fff;
    border-color: #1f6ee0;
}

.btn-primary:hover {
    background: #1857b8;
    border-color: #1857b8;
}

.btn-white {
    background: #fff;
    color: #1f6ee0;
    border-color: #fff;
}

.btn-white:hover {
    background: #f5f5f5;
}

.btn-outline-white {
    background: transparent;
    color: #fff;
    border-color: #fff;
}

.btn-outline-white:hover {
    background: #fff;
    color: #1f6ee0;
}

.more-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 18px;
    border-radius: 20px;
    background: #ecf3ff;
    color: #1f6ee0;
    font-size: 14px;
}

.more-btn .arrow {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    object-fit: contain;
}

/* ===== 通用 section ===== */
.section {
    padding: 70px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
    position: relative;
}

.section-title .en {
    color: #1f6ee0;
    font-size: 30px;
    font-weight: bold;
    letter-spacing: 2px;
    display: none;
}

.section-title .cn {
    display: inline;
    font-size: 22px;
    color: #333;
    font-weight: bold;
    margin-top: 4px;
    letter-spacing: 4px;
}

.section-title::before,
.section-title::after {
    content: "";
    display: inline-block;
    width: 60px;
    height: 18px;
    vertical-align: middle;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

.section-title::before {
    background-image: url("../images/title-deco-1.png");
    margin-right: 18px;
}

.section-title::after {
    background-image: url("../images/title-deco-2.png");
    margin-left: 18px;
}

.section-sub {
    text-align: center;
    color: #888;
    font-size: 14px;
    margin-top: 12px;
    margin-bottom: 30px;
}

/* ===== 首页轮播 ===== */
.hero {
    position: relative;
    width: 100%;
    height: 480px;
    overflow: hidden;
    background: #1f6ee0;
}

.hero .slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s;
}

.hero .slide.active {
    opacity: 1;
}

.hero .hero-content {
    position: relative;
    z-index: 2;
    width: 1200px;
    margin: 0 auto;
    color: #fff;
    padding-top: 90px;
}

.hero .small {
    font-size: 18px;
    margin-bottom: 12px;
}

.hero .big {
    font-size: 48px;
    font-weight: bold;
    margin-bottom: 16px;
}

.hero .big em {
    color: #f7c948;
    font-style: normal;
}

.hero .lead {
    font-size: 22px;
    margin-bottom: 24px;
}

.hero .lead-underline {
    font-size: 18px;
    margin-bottom: 24px;
    border-bottom: 2px solid #f7c948;
    display: inline-block;
    padding-bottom: 4px;
}

.hero .tags {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, .15);
    border-radius: 24px;
    padding: 6px 18px;
    font-size: 14px;
    backdrop-filter: blur(4px);
}

.hero .tags span {
    padding: 0 10px;
    border-right: 1px solid rgba(255, 255, 255, .3);
}

.hero .tags span:last-child {
    border-right: none;
}

.hero .dots {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    text-align: center;
    z-index: 3;
}

.hero .dots span {
    display: inline-block;
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, .5);
    border-radius: 50%;
    margin: 0 5px;
    cursor: pointer;
}

.hero .dots span.active {
    background: #fff;
    width: 24px;
    border-radius: 5px;
}

/* ===== 核心产品 ===== */
.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.product-card {
    position: relative;
    height: 200px;
    border-radius: 6px;
    overflow: hidden;
    color: #fff;
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
    align-items: center;
    text-align: center;
    gap: 16px;
    background-size: cover;
    background-position: center;
}

.product-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .25);
    z-index: 1;
}

.product-card > * {
    position: relative;
    z-index: 2;
}

.product-card .more {
    align-self: center;
}

.product-card .tag {
    font-size: 13px;
    opacity: .9;
}

.product-card .name {
    font-size: 22px;
    font-weight: bold;
    line-height: 1.4;
    margin-top: 10px;
}

.product-card .name span {
    display: block;
}

.product-card .more {
    padding: 6px 18px;
    background: rgba(255, 255, 255, .2);
    border: 1px solid rgba(255, 255, 255, .6);
    border-radius: 18px;
    font-size: 12px;
    color: #fff;
    backdrop-filter: blur(2px);
}

.product-card.bg-blue {
    background: linear-gradient(135deg, #3a8ee6 0%, #1f6ee0 50%, #1857b8 100%);
}

.product-card.bg-orange {
    background: linear-gradient(135deg, #ffb84d 0%, #ff8a3d 50%, #f06820 100%);
}

.product-card.bg-green {
    background: linear-gradient(135deg, #6dd6a8 0%, #3fb98a 50%, #1f9a6e 100%);
}

.product-card.bg-pink {
    background: linear-gradient(135deg, #ff97c2 0%, #f56aa3 50%, #d8438e 100%);
}

.product-card.bg-purple {
    background: linear-gradient(135deg, #a47cff 0%, #7a4ff5 50%, #5b32c8 100%);
}

.product-card.bg-cyan {
    background: linear-gradient(135deg, #54c6f0 0%, #2ea2d6 50%, #1a7eaa 100%);
}

/* ===== 我们的服务 ===== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.service-card {
    position: relative;
    height: 280px;
    border-radius: 6px;
    overflow: hidden;
    background-size: cover;
    background-position: center;
}

.service-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .35);
}

.service-card .info {
    position: absolute;
    inset: 0;
    z-index: 2;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.service-card .info .name {
    font-size: 15px;
    letter-spacing: 4px;
    margin-bottom: 10px;
    opacity: .95;
}

.service-card .info .desc {
    font-size: 28px;
    font-weight: bold;
    color: #f5c044;
    margin-bottom: 18px;
    padding: 0 20px;
}

.service-card .info .more {
    padding: 6px 20px;
    border: 1px solid #fff;
    border-radius: 18px;
    font-size: 13px;
}

/* ===== 名师展示 ===== */
.teachers-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.teacher-card {
    background: #fff;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .06);
}

.teacher-card .photo {
    width: 100%;
    aspect-ratio: 4/3;
    background-size: cover;
    background-position: center;
    position: relative;
}

.teacher-card .name-tag {
    position: absolute;
    left: 0;
    bottom: -10px;
    background: rgba(247, 144, 30, .95);
    color: #fff;
    padding: 6px 16px;
    font-size: 14px;
    font-weight: bold;
    border-radius: 0 4px 4px 0;
    z-index: 2;
}

.teacher-card .info {
    padding: 14px;
    background: #fff;
    color: #666;
    transition: all .25s;
}

.teacher-card .info .title {
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 6px;
    color: #333;
}

.teacher-card .info p {
    font-size: 12px;
    line-height: 1.5;
    margin: 2px 0;
}

.teacher-card:hover .info {
    background: linear-gradient(180deg, #1f6ee0 0%, #1857b8 100%);
    color: #fff;
}

.teacher-card:hover .info .title {
    color: #fff;
}

.teacher-card.simple .info {
    background: #fff;
    color: #666;
    padding: 12px 14px;
}

/* ===== 我们的优势 ===== */
.advantages {
    background: linear-gradient(180deg, #1f6ee0 0%, #1857b8 100%);
    color: #fff;
}

.advantages .section-title .en,
.advantages .section-title .cn {
    color: #fff;
}

.advantages .section-sub {
    color: rgba(255, 255, 255, .8);
}

.adv-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.adv-card {
    background: #fff;
    border-radius: 6px;
    padding: 22px 24px;
    display: flex;
    gap: 18px;
    position: relative;
    border: 1px solid rgba(255, 255, 255, .1);
    flex-direction: column;
}

.adv-card .icon {
    width: 56px;
    height: 56px;
    flex-shrink: 0;
}

.adv-card .icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.adv-card .text {
    font-size: 15px;
    font-weight: 500;
    line-height: 1.4;
    color: #1f6ee0;
}

.adv-card .num {
    position: absolute;
    right: 16px;
    top: 0px;
    font-size: 80px;
    font-weight: bold;
    color: rgba(31, 110, 224, .15);
    font-style: italic;
}

/* ===== 我们的荣誉 ===== */
.honors {
    background: #f5f9ff;
}

.honors-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
}

.honor-card {
    background: #fff;
    aspect-ratio: 3/4;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .05);
}

.honor-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ===== 新闻中心 ===== */
.news-section {
    background: #fff;
}

.news-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.news-tabs {
    display: flex;
    gap: 30px;
    border-bottom: 1px solid #eee;
    margin-bottom: 24px;
}

.news-tab {
    padding: 8px 0;
    font-size: 16px;
    cursor: pointer;
    position: relative;
    color: #666;
}

.news-tab.active {
    color: #1f6ee0;
    font-weight: bold;
}

.news-tab.active::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 2px;
    background: #1f6ee0;
}

.news-imgs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.news-imgs .item {
    aspect-ratio: 16/9;
    background-size: cover;
    background-position: center;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.news-imgs .item .label {
    position: absolute;
    top: 8px;
    left: 8px;
    background: rgba(0, 0, 0, .5);
    color: #fff;
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 2px;
}

.news-imgs .item .caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, .5);
    color: #fff;
    padding: 6px 8px;
    font-size: 12px;
    line-height: 1.4;
}

.news-text-list .item {
    padding: 16px 0;
    border-bottom: 1px dashed #eee;
}

.news-text-list .item h4 {
    font-size: 15px;
    color: #333;
    margin-bottom: 8px;
    cursor: pointer;
}

.news-text-list .item h4:hover {
    color: #1f6ee0;
}

.news-text-list .item p {
    font-size: 13px;
    color: #888;
    line-height: 1.5;
}

.news-text-list .item .date {
    font-size: 12px;
    color: #aaa;
    margin-top: 6px;
}

/* ===== 底部 ===== */
.footer {
    background: #2b2b2b;
    color: #ccc;
    padding: 50px 0 0;
}

.footer .container {
    display: flex;
    align-items: flex-start;
    gap: 60px;
}

.footer .follow-us h3 {
    color: #fff;
    font-size: 18px;
    margin-bottom: 12px;
}

.footer .follow-us .navs {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
    font-size: 14px;
    margin-bottom: 24px;
}

.footer .follow-us .navs a:hover {
    color: #fff;
}

.footer .contact h4 {
    color: #fff;
    font-size: 14px;
    margin-bottom: 6px;
}

.footer .contact .phone {
    color: #fff;
    font-size: 30px;
    font-weight: bold;
    margin-bottom: 30px;
}

.footer .qrs {
    display: flex;
    gap: 30px;
    margin-left: auto;
}

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

.footer .qr img {
    width: 100px;
    height: 100px;
    border: 4px solid #fff;
    border-radius: 4px;
    margin-bottom: 6px;
}

.footer .qr p {
    font-size: 12px;
    color: #fff;
}

.footer .copyright {
    text-align: center;
    font-size: 12px;
    color: #999;
    padding: 18px 0;
    margin-top: 30px;
    border-top: 1px solid #3a3a3a;
}

/* ===== 内页 banner ===== */
.page-banner {
    position: relative;
    width: 100%;
    height: 360px;
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

.page-banner::after {
    content: "";
    position: absolute;
    inset: 0;
    background: none;
}

.page-banner .info {
    position: relative;
    z-index: 2;
    width: 1200px;
    margin: 0 auto;
    color: #fff;
    padding-top: 100px;
    font-size: 50px;
    line-height: 80px;
    color: #ffffff;
    font-weight: bold;
}

.page-banner .info .en {
    font-weight: bold;
    letter-spacing: 2px;
}

.page-banner .info .cn {
    font-weight: bold;
}

.page-banner .info .en::after {
    content: "";
    display: block;
    width: 65px;
    height: 2px;
    background: #fff;
}

/* ===== 关于我们 ===== */
.about-content {
    padding: 60px 0;
}

.about-content .title {
    font-size: 26px;
    font-weight: bold;
    margin-bottom: 24px;
}

.about-content .row {
    display: flex;
    gap: 50px;
    align-items: flex-start;
    margin-bottom: 50px;
}

.about-content .row .text {
    flex: 1;
    color: #555;
    font-size: 15px;
    line-height: 1.9;
}

.about-content .row .text p {
    margin-bottom: 16px;
    text-indent: 2em;
}

.about-content .row .img {
    width: 500px;
    aspect-ratio: 16/9;
    background-size: cover;
    background-position: center;
    border-radius: 4px;
    flex-shrink: 0;
}

.about-content .culture .subtitle {
    color: #1f6ee0;
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 10px;
    margin-top: 10px;
}

.about-content .culture p {
    color: #444;
    font-size: 15px;
    line-height: 1.9;
}

.about-timeline {
    padding: 30px 0 80px;
}

.timeline {
    position: relative;
    padding-left: 30px;
    border-left: 2px solid #d6e4ff;
}

.timeline-item {
    position: relative;
    padding: 16px 0 16px 30px;
    display: flex;
    align-items: center;
    gap: 18px;
}

.timeline-item::before {
    content: "";
    position: absolute;
    left: -38px;
    top: 24px;
    width: 12px;
    height: 12px;
    border: 2px solid #1f6ee0;
    border-radius: 50%;
    background: #fff;
}

.timeline-item .year {
    color: #1f6ee0;
    font-size: 18px;
    font-weight: bold;
    width: 80px;
    flex-shrink: 0;
}

.timeline-item .desc {
    color: #444;
    font-size: 15px;
}

/* ===== 产品页 ===== */
.products-page {
    padding: 60px 0 80px;
}

.products-page h2 {
    font-size: 26px;
    font-weight: bold;
    margin-bottom: 30px;
}

.products-page .grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px 24px;
}

.product-item .img {
    background-size: 100%;
    aspect-ratio: 16/9;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
    color: #fff;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.product-item .img .tag {
    font-size: 14px;
    margin-bottom: 12px;
}

.product-item .img .name {
    font-size: 22px;
    font-weight: bold;
    line-height: 1.4;
}

.product-item .img .name span {
    display: block;
}

.product-item .name-label {
    margin-top: 14px;
    color: #333;
    font-size: 15px;
}

/* ===== 名师展示页 ===== */
.teachers-page {
    padding: 60px 0 80px;
}

.teachers-page h2 {
    font-size: 26px;
    font-weight: bold;
    margin-bottom: 30px;
}

.teachers-page .grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 40px;
}

.teacher-item {
    border: 1px solid #e8e8e8;
    border-radius: 4px;
}

.teacher-item .photo {
    aspect-ratio: 4/3;
    background-size: cover;
    background-position: center;
    position: relative;
}

.teacher-item .name-tag {
    position: absolute;
    left: 0;
    bottom: -10px;
    background: rgba(247, 144, 30, .95);
    color: #fff;
    padding: 6px 16px;
    font-size: 14px;
    font-weight: bold;
    border-radius: 0 4px 4px 0;
    z-index: 2;
}

.teacher-item .info {
    padding: 14px;
    background: #fff;
    color: #666;
    min-height: 110px;
}

.teacher-item .info .title {
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 6px;
    color: #333;
}

.teacher-item .info p {
    font-size: 12px;
    line-height: 1.5;
    margin: 2px 0;
}

/* ===== 新闻中心列表 ===== */
.news-page {
    padding: 30px 0 80px;
}

.news-page .tabs {
    display: flex;
    gap: 30px;
    border-bottom: 1px solid #eee;
    margin-bottom: 30px;
}

.news-page .tab {
    padding: 10px 0;
    font-size: 16px;
    cursor: pointer;
    color: #666;
    position: relative;
}

.news-page .tab.active {
    color: #1f6ee0;
    font-weight: bold;
}

.news-page .tab.active::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 2px;
    background: #1f6ee0;
}

.news-list-page .item {
    display: flex;
    gap: 30px;
    padding: 24px 0;
    border-bottom: 1px solid #f0f0f0;
}

.news-list-page .item .img {
    width: 280px;
    aspect-ratio: 16/9;
    background-size: cover;
    background-position: center;
    border-radius: 4px;
    flex-shrink: 0;
}

.news-list-page .item .info {
    flex: 1;
}

.news-list-page .item h3 {
    font-size: 18px;
    color: #1f6ee0;
    margin-bottom: 12px;
    cursor: pointer;
}

.news-list-page .item h3:hover {
    text-decoration: underline;
}

.news-list-page .item p {
    color: #666;
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 16px;
}

.news-list-page .item .date {
    color: #999;
    font-size: 13px;
}

/* ===== 新闻详情 ===== */
.news-detail {
    padding: 50px 0;
}

.news-detail .content {
    width: 900px;
    margin: 0 auto;
}

.news-detail h1 {
    font-size: 26px;
    color: #222;
    font-weight: bold;
    line-height: 1.5;
    margin-bottom: 14px;
}

.news-detail .meta {
    color: #999;
    font-size: 13px;
    margin-bottom: 30px;
}

.news-detail .body {
    color: #444;
    font-size: 15px;
    line-height: 1.9;
}

.news-detail .body p {
    margin-bottom: 16px;
    text-indent: 2em;
}

.news-detail .body h3 {
    font-size: 16px;
    font-weight: bold;
    color: #222;
    margin: 20px 0 10px;
    text-indent: 0;
}

.news-detail .body img {
    margin: 20px auto;
    border-radius: 4px;
}

/* ===== 联系我们 ===== */
.contact-page {
    padding: 60px 0 80px;
}

.contact-page h2 {
    font-size: 26px;
    font-weight: bold;
    margin-bottom: 30px;
}

.contact-page .row {
    display: flex;
    gap: 60px;
    align-items: center;
}

.contact-page .row .img {
    width: 500px;
    aspect-ratio: 4/3;
    background-size: cover;
    background-position: center;
    border-radius: 4px;
}

.contact-page .row .info {
    flex: 1;
}

.contact-page .row .info .big {
    color: #f7a200;
    font-size: 36px;
    font-weight: bold;
    margin-bottom: 4px;
}

.contact-page .row .info .lead {
    color: #333;
    font-size: 30px;
    font-weight: bold;
    margin-bottom: 30px;
}

.contact-page .row .info .item {
    margin-bottom: 18px;
    color: #555;
    font-size: 16px;
}

.contact-page .row .info .item b {
    color: #333;
    font-weight: bold;
}

/* ===== 卡片链接化(详情页入口) ===== */
a.service-card,
a.adv-card,
a.honor-card,
a.teacher-item {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: transform .2s, box-shadow .2s;
}

a.service-card:hover,
a.adv-card:hover,
a.honor-card:hover,
a.teacher-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, .12);
}
