/* ===== 固定宽度顶部栏整体样式 ===== */
.header-container {
    width: 1000px;
    margin: 0 auto;
    font-family: "Microsoft YaHei", Arial, sans-serif;
    position: relative;
}

/* ===== 标题栏 - 固定1000×176像素 ===== */
.title-section {
    position: relative;
    width: 1000px;
    height: 176px;
    overflow: hidden;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
}

/* 标题图片 - 1000×176全尺寸显示 */
.title-background {
    width: 1000px;
    height: 176px;
    object-fit: cover;
    object-position: center;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

/* ===== 校徽容器 - 彻底解决鼠标滑过问题 ===== */
.school-logo-container {
    position: absolute;
    left: 30px;
    top: 50%;
    transform: translateY(-50%);
    width: 140px;
    height: 140px;
    z-index: 10;
    
    /* 圆形遮罩容器 */
    border-radius: 50%;
    overflow: hidden;
    
    /* 边框效果 */
    border: 4px solid rgba(255, 255, 255, 0.9);
    
    /* 发光效果 */
    box-shadow: 
        0 0 30px rgba(255, 215, 0, 0.7),
        inset 0 0 15px rgba(255, 255, 255, 0.2);
    
    /* 关键：完全禁用transform动画 */
    animation: logo-float-no-transform 4s ease-in-out infinite;
}

/* 校徽图片 */
.school-logo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    filter: brightness(1.1) contrast(1.1);
}

/* 关键：使用margin代替transform进行浮动动画 */
@keyframes logo-float-no-transform {
    0% {
        margin-top: 0px;
        transform: translateY(-50%) rotate(0deg); /* 只保留必要的transform */
    }
    33% {
        margin-top: -5px; /* 使用margin-top代替transform */
        transform: translateY(-50%) rotate(5deg);
    }
    66% {
        margin-top: 5px; /* 使用margin-top代替transform */
        transform: translateY(-50%) rotate(-5deg);
    }
    100% {
        margin-top: 0px;
        transform: translateY(-50%) rotate(0deg);
    }
}

/* 鼠标滑过效果 - 完全不改变尺寸 */
.school-logo-container:hover {
    /* 重要：绝对不改变transform或尺寸 */
    animation-play-state: paused;
    border-color: rgba(255, 255, 255, 1);
    box-shadow: 
        0 0 50px rgba(255, 215, 0, 1),
        inset 0 0 25px rgba(255, 255, 255, 0.4);
}

/* 校徽发光动画层 */
.school-logo-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, 
                rgba(255, 255, 255, 0) 0%, 
                rgba(255, 255, 255, 0.1) 40%,
                rgba(255, 215, 0, 0.2) 60%,
                transparent 80%);
    border-radius: 50%;
    z-index: 1;
    animation: logo-glow 3s ease-in-out infinite;
    opacity: 0;
    pointer-events: none;
}

/* 悬停时只增强发光效果 */
.school-logo-container:hover::before {
    opacity: 0.8;
}

@keyframes logo-glow {
    0% {
        opacity: 0;
    }
    50% {
        opacity: 0.6;
    }
    100% {
        opacity: 0;
    }
}
/* 标题文字效果 */
.title-text {
    position: absolute;
    right: 40px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    text-align: right;
}

.title-text h1 {
    color: white;
    font-size: 40px;
    font-weight: bold;
    margin: 0 0 10px 0;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
    letter-spacing: 2px;
}

.title-text p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 32px;
    margin: 0;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
    font-weight: 300;
}

/* ===== 导航菜单 ===== */
.nav-container {
    background: linear-gradient(to right, #1e5799 0%, #207cca 100%);
    width: 1000px;
    height: 50px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.nav-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    height: 100%;
    align-items: center;
    width: 100%;
}

.nav-menu li {
    position: relative;
    flex: 1;
    text-align: center;
}

.nav-menu li a {
    display: block;
    color: white;
    text-decoration: none;
    padding: 0 10px;
    height: 50px;
    line-height: 50px;
    font-size: 15px;
    font-weight: bold;
    transition: all 0.3s;
    position: relative;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nav-menu li a:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #ffa500;
}

.nav-menu li a.active {
    background: rgba(255, 255, 255, 0.3);
    color: #ffa500;
}

.nav-menu li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: #ffa500;
    transition: width 0.3s;
}

.nav-menu li a:hover::after {
    width: 80%;
}

/* ===== 信息栏 - 时间、跑马灯、搜索并成一行 ===== */
.info-bar {
    background: #DDECCD;
    width: 1000px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 2px solid #b8d0a5;
    padding: 0;
    box-sizing: border-box;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* 时间显示 - 左侧固定宽度 */
.datetime {
    width: 280px;
    font-weight: bold;
    color: #333;
    font-size: 14px;
    white-space: nowrap;
    padding: 0 15px;
    text-align: center;
    background: rgba(255, 255, 255, 0.9);
    height: 100%;
    line-height: 40px;
    border-right: 2px solid #b8d0a5;
    box-sizing: border-box;
    font-family: "Consolas", "Monaco", monospace;
}

/* 跑马灯 - 中间区域 */
.announcement {
    flex: 1;
    height: 100%;
    overflow: hidden;
    position: relative;
    background: white;
    border-right: 2px solid #b8d0a5;
}

.announcement-text {
    display: inline-block;
    color: #ff00ff;
    white-space: nowrap;
    font-size: 15px;
    line-height: 40px;
    padding: 0 20px;
    animation: marquee 25s linear infinite;
    font-weight: bold;
}

@keyframes marquee {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

/* 搜索框 - 右侧固定宽度 */
.search-box {
    width: 350px;
    height: 100%;
    display: flex;
    align-items: center;
    padding: 0 15px;
    box-sizing: border-box;
    background: white;
}

.search-form {
    display: flex;
    align-items: center;
    width: 100%;
    gap: 8px;
}

.search-form span {
    font-size: 14px;
    color: #333;
    font-weight: bold;
    white-space: nowrap;
}

.search-form input[type="text"] {
    flex: 1;
    min-width: 100px;
    padding: 6px 12px;
    border: 2px solid #1e5799;
    border-radius: 20px;
    font-size: 13px;
    box-sizing: border-box;
    background: white;
    transition: all 0.3s;
}

.search-form input[type="text"]:focus {
    outline: none;
    border-color: #ff9900;
    box-shadow: 0 0 0 3px rgba(255, 153, 0, 0.2);
}

.search-form button {
    background: #1e5799;
    border: none;
    padding: 6px 15px;
    cursor: pointer;
    transition: all 0.3s;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 60px;
}

.search-form button:hover {
    background: #207cca;
    transform: scale(1.05);
}

.search-form img {
    width: 18px;
    height: 18px;
    filter: brightness(0) invert(1);
}

/* ===== 合作伙伴栏 - 终极解决方案 ===== */
.partner-bar {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    width: 1000px;
    height: 65px;
    display: flex;
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
}

/* 电脑端完美显示 */
@media (min-width: 769px) {
    .partner-bar {
        width: 1000px;
        height: 65px;
    }
    
    .partner-bar a {
        height: 100%;
    }
    
    .partner-bar img {
        width: calc(100% - 2px);
        height: calc(100% - 2px);
border-radius: 10px;
        padding: 1px;
    }
}

/* 平板设备 */
@media (max-width: 768px) and (min-width: 481px) {
    .partner-bar {
        width: 100%;
        height: 55px;
        min-height: 55px;
        max-height: 55px;
    }
    
    .partner-bar a {
        height: 100%;
        padding: 3px 0;
    }
    
    .partner-bar img {
        width: 98%;
        height: 94%;
border-radius: 10px;
        padding: 0.5px;
        max-height: 94%;
        min-height: 50px;
    }
}

/* 手机设备 */
@media (max-width: 480px) {
    .partner-bar {
        width: 100%;
        height: 48px;
        min-height: 48px;
        max-height: 48px;
        -webkit-tap-highlight-color: transparent;
    }
    
    .partner-bar a {
        height: 100%;
        padding: 2px 0;
    }
    
    .partner-bar img {
        width: 98%;
        height: 96%;
border-radius: 10px;
        padding: 0.3px;
        max-height: 96%;
        min-height: 45px;
        /* 修复移动端图片显示 */
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
        -webkit-backface-visibility: hidden;
        backface-visibility: hidden;
    }
    
    /* 隐藏分隔线，让界面更干净 */
    .partner-bar a:not(:last-child)::after {
        display: none;
    }
}

/* 横屏模式 */
@media (max-width: 768px) and (orientation: landscape) {
    .partner-bar {
        height: 42px;
        min-height: 42px;
        max-height: 42px;
    }
    
    .partner-bar img {
        height: 98%;
        padding: 0.2px;
    }
}

/* 修复iOS Safari的flexbox问题 */
@supports (-webkit-touch-callout: none) {
    @media (max-width: 768px) {
        .partner-bar {
            display: -webkit-flex;
            display: flex;
            -webkit-align-items: stretch;
            align-items: stretch;
        }
        
        .partner-bar a {
            -webkit-flex: 1;
            flex: 1;
            display: -webkit-flex;
            display: flex;
            -webkit-align-items: center;
            align-items: center;
            -webkit-justify-content: center;
            justify-content: center;
        }
    }
}
/* ===== 打印样式 ===== */
@media print {
    .nav-container,
    .search-box,
    .partner-bar {
        display: none;
    }
}