:root {
    --primary-color: #028fd7;
    --secondary-color: #e9731f;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
}

body {
    font-family: "Microsoft YaHei", sans-serif;
}

.navbar {
    background: linear-gradient(to bottom, rgba(0,0,0,.8), rgba(0,0,0,0));
    padding: 15px 0;
}
.top200{
    background: none;
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-brand img {
    height: 50px;
}

.nav-link {
    color: var(--light-color);
    opacity: 0.7;
    font-weight: 500;
    padding: 0.5rem 1rem;
    margin: 0 0.25rem;
}
.top200 .nav-link{
    color: var(--dark-color);
}

.nav-link:hover {
    opacity: 1;
    color: var(--light-color);
}
.top200 .nav-link:hover{
    color: var(--dark-color);
}
.nav-link:focus{
    color: var(--light-color) !important;
}
.top200 .nav-link:focus{
    color: var(--dark-color) !important;
}
.top200 .nav-link.show{
    color: var(--dark-color) !important;
}
.navbar-nav .nav-link.active, .navbar-nav .nav-link.show{
    color: var(--light-color);
    opacity: 1;
}
.top200 .navbar-nav .nav-link.active{
    color: var(--dark-color);
}
.navbar-toggler{
    background-color: var(--light-color);
}
.top200 .navbar-toggler{
    color: var(--dark-color);
}
.dropdown-menu {
    border: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.hero-section {
    height: 100vh;
    position: relative;
    overflow: hidden;
}

/* 主轮播图样式 */
#heroCarousel .carousel-item {
    height: 100vh;
}

#heroCarousel .carousel-item img {
    object-fit: cover;
    height: 100%;
    width: 100%;
}

/* 新闻轮播图样式 */
#newsCarousel .carousel-item {
    height: auto;
}

#newsCarousel .carousel-item img {
    height: 400px;
    object-fit: cover;
    width: 100%;
}

#newsCarousel .carousel-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 15px;
    background-color: rgba(255, 255, 255, 0.9);
    color: #333;
}

#newsCarousel .carousel-indicators {
    bottom: 0;
    margin-bottom: 0;
}

#newsCarousel .carousel-control-prev,
#newsCarousel .carousel-control-next {
    width: 10%;
}

.carousel-item video {
    object-fit: cover;
    height: 100%;
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    /* 确保iOS设备上显示正常 */
    -webkit-transform-style: preserve-3d;
    transform-style: preserve-3d;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

/* 视频容器样式，确保全屏和响应式 */
.video-container {
    height: 100%;
    width: 100%;
    overflow: hidden;
    position: relative;
    background-color: #000;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.hero-btn {
    background-color: var(--primary-color);
    border: none;
    padding: 0.75rem 2rem;
    font-weight: 600;
    transition: all 0.3s;
}

.hero-btn:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
}

/* 视频播放按钮样式 */
.video-play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 20;
    transition: all 0.3s;
}

.video-play-button i {
    color: white;
    font-size: 3rem;
}
.video-play-button:hover {
    background-color: var(--primary-color);
    transform: translate(-50%, -50%) scale(1.1);
}
@media (min-width: 1400px) {
    .container, .container-lg, .container-md, .container-sm, .container-xl, .container-xxl {
        max-width: 1500px;
    }
}

@media (max-width: 768px) {
    .video-play-button {
        width: 60px;
        height: 60px;
    }
    
    .video-play-button i {
        font-size: 2rem;
    }
    
    #newsCarousel .carousel-item img {
        height: 300px;
    }
    
    #newsCarousel .carousel-caption h5 {
        font-size: 16px;
    }
    
    #newsCarousel .carousel-caption p {
        font-size: 14px;
    }
    
    /* 手机端轮播图高度自适应 */
    .hero-section {
        height: auto;
    }
    
    #heroCarousel .carousel-item {
        height: auto;
    }
    
    #heroCarousel .carousel-item img {
        height: auto;
        max-height: 50vh;
        object-fit: cover;
    }
    
    .video-container {
        height: 0;
        padding-bottom: 56.25%; /* 16:9比例 */
        position: relative;
        overflow: hidden;
        max-height: 50vh;
    }
    
    .carousel-item video {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        max-height: 50vh;
    }
}

@media (max-width: 576px) {
    .carousel-item {
        height: auto;
    }
    
    .video-container {
        height: 0;
        padding-bottom: 56.25%; /* 16:9比例 */
        max-height: 40vh;
    }
    
    #heroCarousel .carousel-item img {
        height: auto;
        max-height: 40vh;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 1rem;
    }
    
    .hero-btn {
        padding: 0.5rem 1.5rem;
        font-size: 0.9rem;
    }
    
    #newsCarousel .carousel-item img {
        height: 250px;
    }
    
    .carousel-item video {
        max-height: 40vh;
    }
}

.news-section {
    padding: 5rem 0;
    background-color: var(--light-color);
}

.section-title {
    position: relative;
    margin-bottom: 3rem;
    font-weight: 700;
    color: var(--primary-color);
}

/* .section-title::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -15px;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--secondary-color);
} */

.card {
    border: none;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.card-title {
    color: var(--primary-color);
    font-weight: 600;
}

.footer {
    background-color: var(--dark-color);
    color: white;
    padding: 3rem 0;
}

.footer-title {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.footer-link {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    display: block;
    margin-bottom: 0.5rem;
    transition: all 0.3s;
}

.footer-link:hover {
    color: white;
    padding-left: 5px;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    margin-right: 10px;
    color: white;
    transition: all 0.3s;
}

.social-icon:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
}

/* 专业设置区域 */
.major-card {
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.major-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.icon-box {
    width: 80px;
    height: 80px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: rgba(0, 82, 155, 0.1);
    transition: all 0.3s;
}

.major-card:hover .icon-box {
    background-color: var(--primary-color);
    transform: scale(1.1);
}

.major-card:hover .icon-box i {
    color: white !important;
}

/* 学校特色 */
.feature-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
}

/* 校园环境 */
.campus-item {
    position: relative;
    margin-bottom: 24px;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.campus-item img {
    transition: all 0.5s ease;
}

.campus-item:hover img {
    transform: scale(1.1);
}

.campus-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    padding: 20px;
    color: white;
    transition: all 0.3s;
}

.campus-item:hover .campus-overlay {
    background: linear-gradient(to top, var(--primary-color), transparent);
}

/* 数据统计 */
.counter-section {
    background: url('https://www.szpu.edu.cn/images/home4_bg.jpg') no-repeat center center;
    background-size: cover;
    background-attachment: fixed;
    position: relative;
    padding: 5rem 0;
}

.counter-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.counter-box {
    text-align: center;
    color: white;
    position: relative;
    z-index: 1;
}

.counter-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

.counter-number {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.counter-text {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* 联系表单 */
.contact-form .form-control {
    border: none;
    border-radius: 0;
    border-bottom: 1px solid #ddd;
    padding: 0.8rem 0.5rem;
    box-shadow: none !important;
}

.contact-form .form-control:focus {
    border-color: var(--primary-color);
}

.contact-form-btn {
    background-color: var(--primary-color);
    border: none;
    padding: 0.8rem 2rem;
    font-weight: 600;
    transition: all 0.3s;
}

.contact-form-btn:hover {
    background-color: var(--secondary-color);
}

/* 返回顶部按钮 */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.back-to-top i {
    font-size: 24px;
}

.back-to-top:hover {
    background-color: var(--secondary-color);
    transform: translateY(-5px);
    color: white;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

/* 添加一些动画效果 */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.fadeIn {
    animation: fadeIn 1s ease forwards;
}

/* 中科特色区域样式 */
.enrollment-link-item {
    transition: all 0.3s ease;
    cursor: pointer;
}

.enrollment-link-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.enrollment-link-item .arrow-icon {
    transition: transform 0.3s ease;
}

.enrollment-link-item:hover .arrow-icon {
    transform: translateX(5px);
}

.border-primary {
    border-color: #028fd7 !important;
}

.text-primary, .arrow-icon {
    color: #028fd7 !important;
}

.feature-description p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
}

.display-5 {
    font-weight: 700;
    color: #333;
}

.features-section .section-title {
    font-size: 1.2rem;
    letter-spacing: 1px;
    color: #777;
    margin-bottom: 0.5rem;
}

@media (max-width: 768px) {
    .features-section .display-5 {
        font-size: 2.5rem;
    }
    
    .feature-description p {
        font-size: 1rem;
        line-height: 1.6;
    }
    
    .enrollment-link-item h5 {
        font-size: 1rem;
    }
}

/* 教育教学区域样式 */
.section-header {
    border-bottom: 1px solid #eee;
    padding-bottom: 1rem;
    margin-bottom: 2rem;
}

.section-tabs .btn-outline-primary {
    font-size: 0.85rem;
    padding: 0.25rem 0.75rem;
    border-radius: 2rem;
}

.article-card {
    transition: all 0.3s ease;
    height: 100%;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.article-img-container {
    position: relative;
    overflow: hidden;
}

.article-img {
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.article-card:hover .article-img {
    transform: scale(1.1);
}

.category-tag {
    position: absolute;
    top: 10px;
    left: 0;
    background-color: var(--primary-color);
    color: white;
    padding: 0.2rem 1rem;
    font-size: 0.8rem;
    font-weight: 500;
    border-radius: 0 2rem 2rem 0;
}

.article-title {
    font-weight: 600;
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
    color: #333;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.article-excerpt {
    color: #666;
    font-size: 0.85rem;
    line-height: 1.5;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.article-date {
    color: #999;
    font-size: 0.8rem;
}

.more-link {
    display: inline-block;
    color: var(--primary-color);
    font-weight: 500;
    text-decoration: none;
    padding: 0.5rem 1.5rem;
    border: 1px solid var(--primary-color);
    border-radius: 2rem;
    transition: all 0.3s ease;
}

.more-link:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

@media (max-width: 992px) {
    .article-card {
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 768px) {
    .section-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .section-tabs {
        margin-top: 1rem;
        width: 100%;
        overflow-x: auto;
        white-space: nowrap;
        padding-bottom: 0.5rem;
    }
    
    .article-title {
        font-size: 1rem;
    }
    
    .article-excerpt {
        font-size: 0.8rem;
        -webkit-line-clamp: 2;
    }
}
