@charset "UTF-8";
/* 世纪大学 SEGi University 中文官网 - 首页样式 */

/* Hero Banner */
.hero-banner {
    position: relative;
    height: 700px;
    overflow: hidden;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.8s ease;
}

.hero-slide.active {
    opacity: 1;
}

.slide-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    animation: zoomIn 10s ease infinite;
}

@keyframes zoomIn {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.3) 100%);
}

.slide-content {
    position: relative;
    z-index: 2; /* 导航层 */ /* 导航层 */ /* 导航层 */ /* 导航层 */
    height: 100%;
    display: flex;
    align-items: center;
}

.slide-content .container {
    max-width: 700px;
}

.slide-content .tag {
    display: inline-block;
    padding: 6px 16px;
    background: var(--primary);
    color: var(--text-white);
    font-size: 13px;
    font-weight: 600;
    border-radius: 20px;
    margin-bottom: 20px;
}

.slide-content h1 {
    font-size: 52px;
    font-weight: 700;
    color: var(--text-white);
    line-height: 1.2;
    margin-bottom: 20px;
}

.slide-content h1 span {
    color: var(--primary);
}

.slide-content p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.7;
    margin-bottom: 32px;
}

.slide-btns {
    display: flex;
    gap: 16px;
}

/* 轮播指示器 */
.hero-dots {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.hero-dots .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: var(--transition);
}

.hero-dots .dot.active {
    background: var(--primary);
    width: 32px;
    border-radius: 6px;
}

/* 轮播箭头 */
.hero-arrows {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 30px;
    z-index: 10;
    pointer-events: none;
}

.hero-arrows button {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--text-white);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    pointer-events: all;
    backdrop-filter: blur(10px);
}

.hero-arrows button:hover {
    background: var(--primary);
    border-color: var(--primary);
}

.hero-arrows i {
    font-size: 22px;
}

/* 数据展示条 */
.stats-bar {
    background: var(--primary);
    padding: 50px 0;
    color: var(--text-white);
}

.stats-bar .container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.stat-item {
    text-align: center;
}

.stat-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.stat-icon i {
    font-size: 24px;
    color: var(--text-white);
}

.stat-number {
    font-size: 40px;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 14px;
    opacity: 0.85;
}

/* 关于我们 */
.about-section {
    padding: 100px 0;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-images {
    position: relative;
}

.img-main {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

.img-main img {
    width: 100%;
    height: auto;
    display: block;
}

.img-float {
    position: absolute;
    bottom: -30px;
    right: -20px;
    width: 100px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border: 4px solid var(--text-white);
	background:#ffffff;
}

.img-float img {
    width: 100%;
    height: auto;
    display: block;
}

.experience-badge {
    position: absolute;
    top: -20px;
    left: -20px;
    background: var(--primary);
    color: var(--text-white);
    padding: 20px 24px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(var(--primary-rgb), 0.3);
}

.experience-badge .years {
    font-size: 36px;
    font-weight: 700;
    line-height: 1;
}

.experience-badge .text {
    font-size: 14px;
    margin-top: 4px;
}

.about-text h3 {
    font-size: 36px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 20px;
}

.about-text p {
    color: var(--text-light);
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 16px;
}

.about-features {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin: 24px 0;
}

.about-features li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    color: var(--text);
}

.about-features li i {
    color: var(--primary);
    font-size: 18px;
}

/* 热门课程 */
.programs-section {
    padding: 100px 0;
    background: var(--bg-light);
}

.programs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.program-card {
    background: var(--bg-white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: var(--transition);
}

.program-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.program-img {
    height: 180px;
    overflow: hidden;
}

.program-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.program-card:hover .program-img img {
    transform: scale(1.1);
}

.program-body {
    padding: 24px;
}

.program-tag {
    display: inline-block;
    padding: 4px 12px;
    background: var(--primary-light);
    color: var(--primary);
    font-size: 12px;
    font-weight: 600;
    border-radius: 20px;
    margin-bottom: 12px;
}

.program-body h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 10px;
}

.program-body > p {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 16px;
}

.program-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.program-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    color: var(--text-light);
}

.program-meta i {
    font-size: 16px;
    color: var(--primary);
}

.program-link {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 4px;
    transition: gap 0.3s;
}

.program-link:hover {
    gap: 8px;
}

/* 为什么选择 */
.why-section {
    padding: 100px 0;
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.why-card {
    background: var(--bg-white);
    border-radius: 16px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: var(--transition);
    border: 1px solid var(--border);
}

.why-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-color: var(--primary);
}

.why-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    transition: var(--transition);
}

.why-card:hover .why-icon {
    background: var(--primary);
}

.why-icon i {
    font-size: 30px;
    color: var(--primary);
    transition: var(--transition);
}

.why-card:hover .why-icon i {
    color: var(--text-white);
}

.why-card h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 12px;
}

.why-card p {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.7;
}

/* 校园展示 */
.campus-section {
    padding: 100px 0;
    background: var(--bg-light);
}

.campus-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.campus-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    height: 300px;
    cursor: pointer;
}

.campus-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.campus-card:hover img {
    transform: scale(1.1);
}

.campus-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, transparent 60%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 24px;
    color: var(--text-white);
    transition: var(--transition);
}

.campus-card:hover .campus-overlay {
    background: linear-gradient(to top, rgba(var(--primary-rgb), 0.85) 0%, rgba(var(--primary-rgb), 0.3) 100%);
}

.campus-overlay h3 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 6px;
}

.campus-overlay p {
    font-size: 14px;
    opacity: 0.9;
}

/* 新闻动态 */
.news-section {
    padding: 100px 0;
}

.news-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.news-featured {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    height: 100%;
    min-height: 400px;
}

.news-featured img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.news-featured:hover img {
    transform: scale(1.05);
}

.news-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, transparent 60%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 30px;
    color: var(--text-white);
}

.news-overlay .news-tag {
    display: inline-block;
    width: fit-content;
    padding: 6px 14px;
    background: var(--primary);
    font-size: 12px;
    font-weight: 600;
    border-radius: 20px;
    margin-bottom: 16px;
}

.news-overlay h3 {
    font-size: 24px;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 12px;
}

.news-date {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    opacity: 0.85;
}

.news-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.news-item {
    display: flex;
    gap: 20px;
    background: var(--bg-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.06);
    transition: var(--transition);
}

.news-item:hover {
    transform: translateX(5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.news-thumb {
    width: 140px;
    flex-shrink: 0;
    overflow: hidden;
}

.news-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.news-item:hover .news-thumb img {
    transform: scale(1.1);
}

.news-item .news-body {
    padding: 20px 20px 20px 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.news-tag-sm {
    display: inline-block;
    width: fit-content;
    padding: 4px 10px;
    background: var(--primary-light);
    color: var(--primary);
    font-size: 11px;
    font-weight: 600;
    border-radius: 20px;
    margin-bottom: 10px;
}

.news-item h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--dark);
    line-height: 1.5;
    margin-bottom: 10px;
}

.news-item .news-date {
    font-size: 13px;
    color: var(--text-light);
}


/* 响应式 */
@media (max-width: 1024px) {
    .main-nav {
        display: none;
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--bg-white);
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.1);
        z-index: 999;
        max-height: calc(100vh - 70px);
        overflow-y: auto;
    }
    
    .main-nav.active {
        display: flex;
    }
    
    .main-nav > li {
        width: 100%;
    }
    
    .main-nav > li > a {
        padding: 12px 16px;
        justify-content: space-between;
    }
    
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        display: none;
        padding-left: 20px;
    }
    
    .main-nav > li.dropdown-open .dropdown-menu {
        display: block;
    }
    
    .mobile-menu-btn.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    .mobile-menu-btn.active span:nth-child(2) {
        opacity: 0;
    }
    .mobile-menu-btn.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    .mobile-menu-btn {
        display: flex;
    }

    .hero-banner {
        height: 600px;
    }

    .slide-content h1 {
        font-size: 40px;
    }

    .stats-bar .container {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .about-images {
        order: 2;
        max-width: 500px;
        margin: 0 auto;
    }

    .programs-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .why-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .campus-grid {
        grid-template-columns: 1fr;
    }

    .news-grid {
        grid-template-columns: 1fr;
    }

    .news-featured {
        min-height: 300px;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .top-bar {
        display: none;
    }

    .main-header .container {
        height: 60px;
    }

    .logo img {
        height: 32px;
    }

    .nav-actions .btn {
        padding: 6px 14px;
        font-size: 13px;
        white-space: nowrap;
    }

    .hero-banner {
        height: 500px;
    }

    .slide-content h1 {
        font-size: 32px;
    }

    .slide-content p {
        font-size: 15px;
    }

    .slide-btns {
        flex-direction: column;
    }

    .stats-bar .container {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }

    .stat-number {
        font-size: 28px;
    }

    .section-header h2 {
        font-size: 28px;
    }

    .programs-grid,
    .why-grid {
        grid-template-columns: 1fr;
    }

    .about-features {
        grid-template-columns: 1fr;
    }

    .experience-badge {
        display: none;
    }

    .img-float {
        display: none;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }

    .footer-bottom a {
        margin: 0 12px;
    }

    .cta-section h2 {
        font-size: 28px;
    }

    .hero-arrows {
        display: none;
    }
}

@media (max-width: 480px) {
    .main-header .container {
        height: 56px;
    }

    .logo img {
        height: 28px;
    }

    .nav-actions .btn {
        padding: 5px 10px;
        font-size: 12px;
    }
}

/* 动画 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}