:root {
    --primary: #0a4a8a;
    --secondary: #1a6fb0;
    --accent: #ffc107;
    --light: #f0f8ff;
    --dark: #062e54;
    --transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    --card-shadow: 0 12px 30px rgba(10, 74, 138, 0.15);}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;}

body {
    font-family: 'Noto Sans SC', sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(to bottom, #f8fbff 0%, #edf5ff 100%);
    overflow-x: hidden;}

h1, h2, h3, h4 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--dark);}

.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;}

.top-banner {
    height: 300px;
    background: linear-gradient(105deg, rgba(10,74,138,0.85) 0%, rgba(26,111,176,0.9) 100%), 
                url(/images/dbbanner.jpg) no-repeat center center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    animation: bannerScale 30s infinite alternate;}

.banner-content {
    display: flex;
    align-items: center;
    max-width: 1400px;
    width: 100%;
    padding: 40px 30px;
    z-index: 2;
    position: relative;
    margin: 0 auto;}

.banner-logo {
    margin-right: 50px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0; 
    transition: none;
    animation: logoFloat 8s ease-in-out infinite;
    position: relative;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 30px rgba(0,0,0,0.3);}

.banner-logo img {
    height: 140px;
    width: auto;
    display: block;
    filter: drop-shadow(0 5px 15px rgba(0,0,0,0.3));}

.banner-text {
    color: white;
    flex: 1;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);}

.banner-text h1 {
    font-size: 3.0rem;
    margin-bottom: 10px;
    position: relative;
    display: block;
    line-height: 1.2;
    color: #fff;
    text-shadow: 0 2px 6px rgba(0,0,0,0.5);
    animation: titleAppear 1.2s ease-out forwards,
               titleFloat 6s ease-in-out infinite 1.2s;
    opacity: 0;
    transform: translateY(30px);
    white-space: nowrap;}

.banner-text h1::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 180px;
    height: 4px;
    background: var(--accent);
    border-radius: 2px;
    box-shadow: 0 0 15px var(--accent);
    animation: lineExpand 1s ease-out 1.5s forwards;
    transform: scaleX(0);
    transform-origin: left;}

.banner-text h2 {
    font-size: 1.8rem;
    font-weight: 500;
    margin-bottom: 15px;
    letter-spacing: 2px;
    font-family: 'Arial', sans-serif;
    color: rgba(255, 255, 255, 0.95);
    text-transform: uppercase;
    animation: fadeInUp 1s ease 0.8s forwards;
    opacity: 0;
    transform: translateY(20px);}

.banner-text p {
    font-size: 1.0rem;
    max-width: 900px;
    line-height: 1.8;
    font-weight: 500;
    position: relative;
    animation: floatText 4s ease-in-out infinite;
    padding: 10px 15px;
    background: rgba(6, 46, 84, 0.3);
    border-radius: 8px;
    display: inline-block;
    margin-top: 10px;}

.bga-certification {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    padding: 12px 15px;
    border-radius: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    border: 1px solid rgba(255,255,255,0.3);
    animation: fadeIn 1s ease 1s forwards;
    opacity: 0;
    z-index: 5;}

.bga-certification img {
    height: 40px;
    margin-right: 12px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));}

.bga-certification span {
    color: white;
    font-weight: 600;
    font-size: 0.95rem;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
    letter-spacing: 0.5px;}

.wave-animation {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 120px;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 120"><path fill="white" fill-opacity="0.2" d="M0,64L80,69.3C160,75,320,85,480,80C640,75,800,53,960,48C1120,43,1280,53,1360,58.7L1440,64L1440,120L1360,120C1280,120,1120,120,960,120C800,120,640,120,480,120C320,120,160,120,80,120L0,120Z"></path></svg>');
    background-size: 100% 100%;
    animation: wave 15s linear infinite;}

.wave-animation.wave2 {
    opacity: 0.5;
    animation: wave 10s linear infinite reverse;
    bottom: 10px;}

.bubble {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    animation: floatBubble linear infinite;
    z-index: 1;}


.ocean-decoration {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;}

.seaweed {
    position: absolute;
    bottom: 0;
    width: 30px;
    height: 120px;
    background: rgba(10, 90, 40, 0.3);
    border-radius: 15px 15px 0 0;
    animation: seaweedSway 10s ease-in-out infinite;}

.coral {
    position: absolute;
    bottom: 0;
    width: 40px;
    height: 40px;
    background: rgba(220, 80, 60, 0.3);
    border-radius: 50%;
    clip-path: polygon(50% 0%, 80% 10%, 100% 35%, 100% 70%, 80% 90%, 50% 100%, 20% 90%, 0% 70%, 0% 35%, 20% 10%);
    animation: coralPulse 6s ease-in-out infinite;}


header {
    background: linear-gradient(to right, var(--primary) 0%, var(--secondary) 100%);
    box-shadow: 0 5px 25px rgba(0,0,0,0.15);
    position: sticky;
    top: 0;
    z-index: 1000;}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    position: relative;}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: white;
    font-weight: 700;
    font-size: 1.5rem;
    transition: var(--transition);}

.logo img {
    height: 50px;
    margin-right: 15px;
    transition: var(--transition);}

.logo:hover img {
    transform: rotate(5deg);}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;}

.logo-subtitle {
    font-size: 0.9rem;
    font-weight: 400;
    opacity: 0.9;}

.nav-menu {
    display: flex;
    list-style: none;
    position: relative;}

.nav-menu > li {
    position: relative;}

/* 任务四：减少一级导航间距 */
.nav-menu > li > a {
    display: flex;
    align-items: center;
    color: rgba(255,255,255,0.92);
    text-decoration: none;
    padding: 18px 15px; /* 减少左右内边距（原为25px） */
    font-size: 1.15rem;
    font-weight: 500;
    transition: var(--transition);
    height: 100%;}

.nav-menu > li > a:hover {
    color: white;
    background: rgba(255,255,255,0.15);}

.nav-menu > li > a i {
    margin-left: 8px;
    font-size: 0.9rem;
    transition: var(--transition);
    color: rgba(255,255,255,0.92);}

.nav-menu > li > a:hover i {
    color: var(--accent);
    transform: rotate(180deg);}

.sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    width: 280px;
    box-shadow: var(--card-shadow);
    border-radius: 0 0 12px 12px;
    overflow: hidden;
    display: none;
    z-index: 100;
    transform: translateY(15px);
    opacity: 0;
    transition: var(--transition);
    padding: 20px;}

.nav-menu > li:hover .sub-menu {
    display: block;
    transform: translateY(0);
    opacity: 1;}

.sub-menu-column h4 {
    color: var(--primary);
    padding-bottom: 12px;
    margin-bottom: 15px;
    border-bottom: 2px solid var(--accent);
    font-size: 1.2rem;}

.sub-menu-links {
    list-style: none;}

.sub-menu-links li {
    margin-bottom: 12px;}

.sub-menu-links a {
    display: block;
    padding: 8px 12px;
    color: var(--dark);
    text-decoration: none;
    transition: var(--transition);
    border-radius: 5px;}

.sub-menu-links a:hover {
    background: var(--light);
    color: var(--primary);
    padding-left: 15px;}

.mobile-toggle {
    display: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: white;
    padding: 10px;}

.mobile-toggle .menu-text {
    font-size: 0.9rem;
    margin-left: 8px;
    vertical-align: middle;
    font-weight: 500;
    letter-spacing: 0.5px;}

/* 搜索框优化 - 任务一 */
.search-container {
    margin-left: 20px;
    position: relative;
    width: 150px; /* 调整宽度以适应"搜索"两字 */
    display: flex;
    align-items: center;}

.search-container form {
    display: flex;
    align-items: center;
    width: 100%;
    position: relative;}

.search-input {
    width: 100%;
    padding: 8px 35px 8px 15px; /* 调整内边距 */
    border-radius: 30px;
    border: none;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 0.9rem;
    transition: var(--transition);}

.search-input::placeholder {
    color: rgba(255, 255, 255, 0.7);}

.search-input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.3);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.3);}

.search-btn {
    position: absolute;
    right: 10px; /* 移到右侧 */
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: rgba(255,255,255,0.8);
    cursor: pointer;
    padding: 0;
    margin: 0;
    font-size: 0.9rem;}

.featured-section {
    display: flex;
    gap: 30px;
    margin: 8px 0;} 


.slider-container {
    position: relative;
    width: 50%;
    height: 0;
    padding-bottom: 28.125%; /* 16:9比例 */
    overflow: hidden;
    border-radius: 15px;
    box-shadow: var(--card-shadow);
    flex: 1;}

.slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    transition: transform 0.8s ease;}

.slide {
    min-width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 8s ease;}

.slide:hover img {
    transform: scale(1.05);}


.slide-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px 30px;
    background: linear-gradient(to top, rgba(0,0,0,0.85), transparent);
    color: white;
    transform: translateY(100px);
    opacity: 0;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    height: 40%;}

.slide.active .slide-content {
    transform: translateY(0);
    opacity: 1;}

.slide-content h3 {
    font-size: 1.6rem; 
    line-height: 1.4; 
    color: white;
    margin-bottom: 12px;
    text-shadow: 0 1px 4px rgba(0,0,0,0.8);
    font-weight: 700;
    background: rgba(0, 0, 0, 0.4); 
    padding: 8px 15px;
    border-radius: 5px;
    display: inline-block;
    max-width: 90%;}

.slide-content p {
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
    font-size: 0.95rem;
    line-height: 1.5;
    background: rgba(0, 0, 0, 0.4);
    padding: 6px 12px;
    border-radius: 4px;
    margin-top: 5px;}

.slider-nav {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
    background: rgba(0, 0, 0, 0.3);
    padding: 8px 15px;
    border-radius: 30px;}

.slider-dot {
    width: 14px; 
    height: 14px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.2);}

.slider-dot.active {
    background: var(--accent);
    transform: scale(1.3);
    border: 1px solid rgba(0,0,0,0.5);
    box-shadow: 0 0 5px rgba(0,0,0,0.3);}

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.25);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition);
    backdrop-filter: blur(5px);
    font-size: 1.3rem;
    opacity: 0.8; 
    border: 1px solid rgba(255,255,255,0.3);}

.slider-container:hover .slider-arrow {
    opacity: 1;}

.slider-arrow:hover {
    background: var(--accent);
    color: var(--dark);
    transform: translateY(-50%) scale(1.1);
    border: 1px solid rgba(0,0,0,0.3);}

.slider-arrow.prev {
    left: 20px;}

.slider-arrow.next {
    right: 20px;}

.college-news-card {
    width: 50%;
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    flex: 1;
    border-top: 5px solid var(--secondary);}

.college-news-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(10, 74, 138, 0.25);}

.card-header {
    color: white;
    padding: 22px 30px;
    font-size: 1.35rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(to right, var(--secondary), #2a8fd8);}

/* 优化：增加图标与文字间距 */
.card-header i {
    margin-right: 12px; /* 增加图标右侧间距 */
}

.card-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    font-size: 1.6rem;
    color: white;
    position: relative;
    z-index: 1;
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    text-decoration: none;
    font-weight: bold;
    font-size: 14px;}

.card-icon.more-icon {
    font-weight: bold;
    font-size: 14px;
    background: rgba(255, 255, 255, 0.1); /* 统一背景 */
    color: white;}

.card-icon::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    z-index: -1;
    transform: scale(0);
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);}

.college-news-card:hover .card-icon,
.dynamic-card:hover .card-icon {
    transform: rotate(15deg) scale(1.15);
    background: white;
    color: var(--dark);
    box-shadow: 0 6px 18px rgba(0,0,0,0.2);}

.college-news-card:hover .card-icon::after,
.dynamic-card:hover .card-icon::after {
    transform: scale(1.8);
    opacity: 0;}

/* 移除特定栏目的图标背景色 */
#announcements .card-icon,
#party-news .card-icon,
#education-news .card-icon,
#science-news .card-icon,
#student-news .card-icon,
#alumni-news .card-icon {
    background: rgba(255, 255, 255, 0.1) !important;
    color: white !important;}

.card-content {
    padding: 30px;
    flex: 1;
    display: flex;
    flex-direction: column;}

.news-list {
    list-style: none;
    flex: 1;}

.news-list li {
    padding: 17px 0;
    border-bottom: 1px solid rgba(0,0,0,0.07);
    transition: var(--transition);}

.news-list li:hover {
    background: rgba(240, 248, 255, 0.5);
    transform: translateX(5px);}

.news-list li:last-child {
    border-bottom: none;}

.news-list a {
    display: flex;
    text-decoration: none;
    color: var(--dark);
    transition: var(--transition);}

.news-list a:hover {
    color: var(--primary);}

.news-date {
    color: var(--secondary);
    font-size: 0.95rem;
    font-weight: 500;
    white-space: nowrap;
    margin-right: 10px;}

.news-title {
    flex: 1;
    position: relative;
    padding-left: 20px;
    font-weight: 500;}

.news-title::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
    transition: var(--transition);}

.news-list li:hover .news-title::before {
    background: var(--primary);
    transform: translateY(-50%) scale(1.5);}

.more-link {
    display: block;
    text-align: center;
    margin-top: 25px;
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    padding: 12px;
    border: 2px solid var(--primary);
    border-radius: 8px;
    font-size: 1.05rem;}

.more-link:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(10, 74, 138, 0.2);}

.ocean-decoration {
    position: absolute;
    top: 20%;
    right: -50px;
    width: 250px;
    height: 250px;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 200"><path fill="%230a4a8a" fill-opacity="0.1" d="M43.8,-59.3C56.4,-49.2,65.3,-33.7,70.6,-15.6C75.9,2.5,77.5,23.2,69.6,39.5C61.7,55.8,44.3,67.7,25.6,73.8C7,79.9,-13,80.2,-29.5,73.2C-46,66.2,-58.9,51.9,-66.9,34.9C-74.9,17.9,-77.9,-1.8,-73.8,-19.8C-69.7,-37.8,-58.4,-54.1,-43.9,-64C-29.3,-73.9,-11.5,-77.4,5.8,-81.5C23.1,-85.7,46.2,-90.5,43.8,-59.3Z" transform="translate(100 100)"/></svg>');
    background-size: contain;
    background-repeat: no-repeat;
    z-index: -1;
    opacity: 0.3;
    animation: float 15s infinite ease-in-out;}


.section {
    padding: 30px 0; 
    background: linear-gradient(135deg, #f0f8ff 0%, #e6f0ff 100%);
    position: relative;
    overflow: hidden;}

.section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 10% 20%, rgba(26, 111, 176, 0.05) 0%, transparent 20%),
        radial-gradient(circle at 90% 80%, rgba(10, 74, 138, 0.05) 0%, transparent 20%);
    animation: bubbleBackground 20s linear infinite;
    z-index: -1;}

.section-title {
    text-align: center;
    margin-bottom: 25px; 
    position: relative;}

.section-title h2 {
    font-size: 2.5rem;
    display: inline-block;
    padding-bottom: 15px;
    position: relative;}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: var(--accent);
    border-radius: 2px;}

.dynamic-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 30px;}

.dynamic-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
    transform: translateY(50px);
    opacity: 0;
    height: 100%;
    display: flex;
    flex-direction: column;}

.dynamic-card.animated {
    transform: translateY(0);
    opacity: 1;}

.dynamic-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 50px rgba(10, 74, 138, 0.25);}

/* 栏目特色样式 */
#announcements {
    border-top: 5px solid #d4af37;}

#announcements .card-header {
    background: linear-gradient(to right, #d4af37, #e6c257);}

#party-news {
    border-top: 5px solid #c62d30;}

#party-news .card-header {
    background: linear-gradient(to right, #c62d30, #d94a4d);}

#education-news {
    border-top: 5px solid #2e8b57;}

#education-news .card-header {
    background: linear-gradient(to right, #2e8b57, #3da76a);}

#science-news {
    border-top: 5px solid #4169e1;}

#science-news .card-header {
    background: linear-gradient(to right, #4169e1, #5a7df1);}

#student-news {
    border-top: 5px solid #ff7f50;}

#student-news .card-header {
    background: linear-gradient(to right, #ff7f50, #ff9b75);}

#alumni-news {
    border-top: 5px solid #9c27b0;}

#alumni-news .card-header {
    background: linear-gradient(to right, #9c27b0, #ba68c8);}

.card-header {
    color: white;
    padding: 22px 30px;
    font-size: 1.35rem;
    display: flex;
    align-items: center;
    justify-content: space-between;}

footer {
    background: linear-gradient(to right, var(--dark), #0c3a6d);
    color: rgba(255,255,255,0.75);
    padding: 25px 0 15px; 
    position: relative;
    margin-top: 60px;} 

.footer-wave {
    position: absolute;
    top: -50px; /* 向上延伸50px */
    left: 0;
    width: 100%;
    height: 50px; /* 高度减少 */
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 100"><path fill="%234db8ff" fill-opacity="0.5" d="M0,0L60,5.3C120,11,240,21,360,26.7C480,32,600,32,720,26.7C840,21,960,11,1080,5.3C1200,0,1320,0,1380,0L1440,0L1440,100L1380,100C1320,100,1200,100,1080,100C960,100,840,100,720,100C600,100,480,100,360,100C240,100,120,100,60,100L0,100Z"></path></svg>');
    background-size: cover;
    animation: wave 20s linear infinite;
    opacity: 0.6;}

.footer-wave::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 100"><path fill="%230a4a8a" fill-opacity="0.3" d="M0,30L60,35C120,40,240,50,360,48C480,46,600,32,720,35C840,38,960,58,1080,65C1200,72,1320,67,1380,64L1440,60L1440,100L1380,100C1280,100,1120,100,1080,100C960,100,840,100,720,100C600,100,480,100,360,100C240,100,120,100,60,100L0,100Z"></path></svg>');
    background-size: cover;
    animation: waveReverse 15s linear infinite;}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px; 
    margin-bottom: 25px;} 

.footer-col h4 {
    color: white;
    margin-bottom: 20px; 
    font-size: 1.3rem;
    position: relative;
    padding-bottom: 15px;}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--accent);}

.footer-links {
    list-style: none;}

.footer-links li {
    margin-bottom: 12px;}

.footer-links a {
    color: rgba(255,255,255,0.75);
    text-decoration: none;
    transition: var(--transition);
    display: flex;
    align-items: center;
    padding: 5px 0;}

.footer-links a i {
    margin-right: 10px;
    width: 24px;
    font-size: 1.1rem;}

.footer-links a:hover {
    color: var(--accent);
    padding-left: 8px;}

.social-footer {
    display: flex;
    gap: 15px;
    margin-top: 25px;}

.social-footer a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    color: white;
    transition: var(--transition);
    font-size: 1.2rem;}

.social-footer a:hover {
    background: var(--accent);
    color: var(--dark);
    transform: translateY(-5px);}

.copyright {
    text-align: center;
    padding-top: 15px; 
    border-top: 1px solid rgba(255,255,255,0.15);
    font-size: 0.95rem;
    color: rgba(255,255,255,0.6);}

.contact-phone {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;}

.contact-phone i {
    margin-right: 10px;
    min-width: 24px;}

.phone-details {
    display: flex;
    flex-direction: column;}

.phone-line {
    margin-bottom: 5px;
    line-height: 1.4;}

/* 快捷登录和友情链接 */
.quick-links-section {
    background: linear-gradient(135deg, #f0f8ff 0%, #e6f0ff 100%);
    padding: 10px 0;} 

.quick-links-container {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 20px;} 
.quick-login {
    flex: 1;
    min-width: 300px;
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: var(--card-shadow);}

.quick-login h3 {
    color: var(--primary);
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--accent);}

.login-links {
    display: flex;
    flex-direction: column;
    gap: 15px;}

.login-link {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    background: var(--light);
    border-radius: 8px;
    text-decoration: none;
    color: var(--dark);
    transition: var(--transition);
    border: 1px solid rgba(10, 74, 138, 0.1);}

.login-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(10, 74, 138, 0.1);
    border-color: rgba(10, 74, 138, 0.3);}

.login-link i {
    font-size: 1.4rem;
    color: var(--secondary);
    margin-right: 15px;
    min-width: 30px;
    text-align: center;}

.link-details {
    flex: 1;}

.link-title {
    font-weight: 600;
    margin-bottom: 5px;}

.link-url {
    font-size: 0.85rem;
    color: var(--secondary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;}

.friend-links {
    flex: 1;
    min-width: 300px;
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: var(--card-shadow);}

.friend-links h3 {
    color: var(--primary);
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--accent);}

.friend-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 15px;}

.friend-link {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    background: var(--light);
    border-radius: 8px;
    text-decoration: none;
    color: var(--dark);
    transition: var(--transition);
    border: 1px solid rgba(10, 74, 138, 0.1);}

.friend-link:hover {
    background: rgba(10, 74, 138, 0.05);
    transform: translateX(5px);}

.friend-link i {
    margin-right: 10px;
    color: var(--secondary);}

@keyframes bannerScale {
    0% { background-position: center center;}
    100% { background-position: center 30%;}
}

@keyframes floatBubble {
    0% {
        transform: translateY(0) translateX(0);}
    25% {
        transform: translateY(-250px) translateX(20px);}
    50% {
        transform: translateY(-500px) translateX(-20px);}
    75% {
        transform: translateY(-750px) translateX(10px);}
    100% {
        transform: translateY(-1000px) translateX(0);}
}

@keyframes bubbleBackground {
    0% { background-position: 0 0, 0 0;}
    100% { background-position: 500px 500px, 1000px 1000px;}
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);}
    to {
        opacity: 1;
        transform: translateY(0);}
}

@keyframes fadeIn {
    from { opacity: 0;}
    to { opacity: 1;}
}

@keyframes wave {
    0% {
        background-position-x: 0;}
    100% {
        background-position-x: 1000px;}
}

@keyframes waveReverse {
    0% {
        background-position-x: 0;}
    100% {
        background-position-x: -1000px;}
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);}
    50% {
        transform: translateY(-20px) rotate(5deg);}
}

@keyframes titleAppear {
    from {
        opacity: 0;
        transform: translateY(30px);}
    to {
        opacity: 1;
        transform: translateY(0);}
}

@keyframes titleFloat {
    0%, 100% {
        transform: translateY(0);}
    50% {
        transform: translateY(-10px);}
}

@keyframes lineExpand {
    from {
        transform: scaleX(0);}
    to {
        transform: scaleX(1);}
}

@keyframes logoFloat {
    0%, 100% {
        transform: translateY(0);}
    50% {
        transform: translateY(-15px);}
}

@keyframes floatText {
    0%, 100% {
        transform: translateY(0);}
    50% {
        transform: translateY(-8px);}
}

@keyframes seaweedSway {
    0%, 100% {
        transform: skewX(0deg) scaleY(1);}
    50% {
        transform: skewX(5deg) scaleY(1.1);}
}

@keyframes coralPulse {
    0%, 100% {
        transform: scale(1);}
    50% {
        transform: scale(1.1);}
}

@media (max-width: 1200px) {
    .featured-section {
        flex-direction: column;}
    
    .slider-container, .college-news-card {
        width: 100%;}
}

@media (max-width: 992px) {
    .top-banner {
        height: auto;
        min-height: 300px;
        padding-top: 70px;}
    
    .banner-content {
        flex-direction: column;
        text-align: center;
        padding: 30px;}
    
    .banner-logo {
        margin-right: 0;
        margin-bottom: 20px;
        align-self: center;
        max-width: 180px;
        margin-left: auto;
        margin-right: auto;
        margin-top: 20px;
        width: 140px;
        height: 140px;
        z-index: 2;}
    
    .banner-logo img {
        height: 100px;}
    
    .banner-text h1 {
        font-size: 2.5rem;
        white-space: normal;
        line-height: 1.3;}
    
    .banner-text h2 {
        font-size: 1.4rem;}
    
    .banner-text p {
        font-size: 1.1rem;}
    
    .slider-container {
        padding-bottom: 56.25%;}
    
    .sub-menu {
        width: 250px;}
    
    .logo img {
        height: 40px;}
    
    .logo-text {
        font-size: 1.3rem;}

    .bga-certification {
        position: relative;
        top: auto;
        right: auto;
        display: flex !important;
        margin: 30px auto 15px;
        justify-content: center;
        width: 90%;
        max-width: 400px;
        z-index: 5;
        background: rgba(10,74,138,0.85);
        animation: none !important;
        opacity: 1 !important;}
}

@media (max-width: 768px) {
    /* 任务二：移动端不隐藏搜索框 */
    .search-container {
        display: flex !important;}
    
    /* 任务五：移动端布局调整 */
    .navbar {
        flex-wrap: wrap;
        justify-content: flex-start;
        padding: 10px 0;}
    
    .mobile-toggle {
        display: flex;
        align-items: center;
        order: 1; /* 任务三：放到搜索框前面 */
        margin-right: 15px;
        padding: 8px 12px;
        background: rgba(10, 74, 138, 0.2);
        border-radius: 30px;
        z-index: 1002;
        transition: var(--transition);}
    
    .search-container {
        order: 2; /* 搜索框放在汉堡菜单后面 */
        margin-left: 0;
        flex-grow: 1;
        max-width: 200px;}
    
    /* 任务五：居中显示 */
    .nav-menu-container {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        order: 3;
        margin-top: 15px;}
    
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: var(--primary);
        flex-direction: column;
        align-items: center;
        padding-top: 20px;
        transition: var(--transition);
        z-index: 1001;
        overflow-y: auto;}
    
    .nav-menu.active {
        left: 0;}
    
    header {
        height: auto;}
    
    .navbar {
        height: 100%;}
    
    .nav-menu > li {
        width: 100%;
        text-align: center;
        height: auto;
        padding: 5px 0;}
    
    .nav-menu > li > a {
        padding: 20px 18px;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        justify-content: center;
        position: relative;
        color: white !important;
        font-size: 1.25rem;
        line-height: 1.5;
        font-weight: 500;
        height: auto;}
    
    /* 移动端添加下拉箭头 */
    .nav-menu > li.has-submenu > a::after {
        content: "\f078";
        font-family: "Font Awesome 5 Free";
        font-weight: 900;
        position: absolute;
        right: 20px;
        transition: transform 0.3s ease;}
    
    .nav-menu > li.has-submenu.menu-expanded > a::after {
        transform: rotate(180deg);}
    
    .sub-menu {
        position: static;
        width: 100%;
        display: none;
        background: rgba(255,255,255,0.1);
        transform: none;
        opacity: 1;
        box-shadow: none;
        border-radius: 0;
        padding: 15px 20px;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;}
    
    .nav-menu > li.menu-expanded .sub-menu {
        display: block;
        max-height: 1000px;}
    
    .sub-menu-links a {
        color: rgba(255,255,255,0.9);
        padding: 10px 15px;}
    
    .banner-text h1 {
        font-size: 2.0rem;
        line-height: 1.3;}
    
    .banner-text h2 {
        font-size: 1.2rem;}
    
    .banner-text p {
        font-size: 1.0rem;}
    
    .slider-container {
        margin: 30px 0 20px;}
    
    .logo-text {
        display: none;}
    
    .quick-links-container {
        flex-direction: column;}
    
    /* 移动端调整图标间距 */
    .card-header i {
        margin-right: 8px; /* 移动端适当减小间距 */
    }
}

@media (max-width: 576px) {
    .top-banner {
        height: auto;
        min-height: 300px;}
    
    .banner-content {
        padding: 20px;}
    
    .banner-logo {
        margin-top: 15px;}
    
    .banner-logo img {
        height: 100px;}
    
    .banner-text h1 {
        font-size: 1.8rem;
        line-height: 1.3;}
    
    .banner-text h2 {
        font-size: 1.0rem;}
    
    .section {
        padding: 25px 0;}
    
    .dynamic-grid {
        grid-template-columns: 1fr;}
    
    .slide-content h3 {
        font-size: 1.3rem;
        padding: 6px 12px;}
    
    /* 任务五：移动端小屏幕调整 */
    .mobile-toggle {
        margin-right: 10px;}
    
    .search-container {
        max-width: 150px;}
    
    .search-input {
        width: 100%;
        padding: 8px 30px 8px 12px;}
    
    .search-btn {
        right: 8px;}
    
    /* 移动端调整图标间距 */
    .card-header i {
        margin-right: 6px; /* 小屏幕设备进一步减小间距 */
    }
}


@media (min-width: 1201px) {
    .featured-section {
        align-items: stretch;}
    
    .slider-container {
        height: 100%;
        padding-bottom: 0;}
    
    .slider {
        position: relative;
        height: 100%;}
    
    .slide {
        height: 100%;}
}