/* ==========================================
   外国语学院主页美化样式
   保留原有配色：#004EA3(蓝) #C95412(橙)
   全面现代化设计
   ========================================== */

/* ----- 全局基础 ----- */
*, body {
    font-family: "Microsoft YaHei", "微软雅黑", "PingFang SC", "Helvetica Neue", sans-serif;
    -webkit-font-smoothing: antialiased;
}

body {
    background: linear-gradient(180deg, #fcfdff 0%, #f8f9fc 100%);
    min-height: 100vh;
}

::selection {
    background: #C95412;
    color: #fff;
}

/* ----- 滚动条美化 ----- */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #004EA3, #0066cc);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #003d82, #004EA3);
}

/* ----- 头部区域美化 ----- */
.head_box {
    background: linear-gradient(135deg, #ffffff 0%, #f8faff 50%, #ffffff 100%);
    height: auto;
    padding: 10px 0;
    box-shadow: 0 4px 20px rgba(0, 78, 163, 0.08);
    position: relative;
    z-index: 100;
}

.head_box::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #004EA3, #C95412, #004EA3);
}

.head .logo {
    transition: transform 0.3s ease;
}
.head .logo:hover {
    transform: scale(1.02);
}

/* 搜索框美化 */
.head .search form div {
    background: #fff !important;
    border: 2px solid #e8ecf1;
    border-radius: 25px !important;
    transition: all 0.4s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.head .search form div:hover {
    border-color: #004EA3;
    box-shadow: 0 4px 16px rgba(0, 78, 163, 0.12);
}
.head .search form div:focus-within {
    border-color: #004EA3;
    box-shadow: 0 4px 20px rgba(0, 78, 163, 0.18);
    transform: translateY(-1px);
}
.head .search input[type="text"] {
    background: transparent !important;
    transition: all 0.3s ease;
}
.head .search input[type="image"] {
    opacity: 0.7;
    transition: all 0.3s ease;
}
.head .search input[type="image"]:hover {
    opacity: 1;
    transform: scale(1.1);
}

/* ----- 导航栏美化 ----- */
.nav {
    background: linear-gradient(135deg, #004EA3 0%, #0066cc 50%, #004EA3 100%);
    box-shadow: 0 4px 15px rgba(0, 78, 163, 0.25);
    position: sticky;
    top: 0;
    z-index: 999;
}

.cssmenu > ul > li {
    transition: all 0.3s ease;
}
.cssmenu > ul > li > a {
    position: relative;
    transition: all 0.3s ease;
    font-size: 16px;
    letter-spacing: 1px;
}
.cssmenu > ul > li > a::after {
    content: '';
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 60%;
    height: 3px;
    background: #ffdc1f;
    border-radius: 1.5px;
    transition: transform 0.3s ease;
}
.cssmenu > ul > li:hover > a::after,
.cssmenu > ul > li.active > a::after {
    transform: translateX(-50%) scaleX(1);
}
.cssmenu > ul > li:hover > a,
.cssmenu > ul > li.active > a {
    color: #ffdc1f !important;
    background-color: rgba(255,255,255,0.08) !important;
}

/* 下拉菜单美化 */
.cssmenu ul ul li a {
    background: linear-gradient(135deg, #003d82, #004EA3) !important;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}
.cssmenu ul ul li a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 3px;
    height: 100%;
    background: #ffdc1f;
    transform: scaleY(0);
    transition: transform 0.3s ease;
}
.cssmenu ul ul li:hover > a {
    background: linear-gradient(135deg, #002d5c, #003d82) !important;
    padding-left: 20px !important;
}
.cssmenu ul ul li:hover > a::before {
    transform: scaleY(1);
}
.cssmenu ul ul {
    border-radius: 0 0 8px 8px;
    overflow: visible;
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

/* 三级菜单美化 */
.cssmenu ul ul ul {
    border-radius: 6px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.25);
}
.cssmenu ul ul ul li a {
    background: linear-gradient(135deg, #002d5c, #003d82) !important;
    font-size: 14px;
    white-space: nowrap;
}
.cssmenu ul ul ul li:hover > a {
    background: linear-gradient(135deg, #001f40, #002d5c) !important;
}

/* ----- 轮播图美化 ----- */
.slider {
    border-radius: 0 0 20px 20px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
    margin-bottom: 20px;
}

.slider .slider-arrow {
    width: 50px !important;
    height: 50px !important;
    line-height: 50px !important;
    font-size: 1.5em !important;
    background: rgba(0, 78, 163, 0.6) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 2px solid rgba(255,255,255,0.3);
    transition: all 0.3s ease;
    border-radius: 50% !important;
}
.slider .slider-arrow:hover {
    background: rgba(0, 78, 163, 0.85) !important;
    border-color: #fff;
    transform: scale(1.1);
}

.slider-nav__item {
    width: 10px !important;
    height: 10px !important;
    background: rgba(255,255,255,0.5) !important;
    border: 2px solid rgba(255,255,255,0.3);
    transition: all 0.3s ease;
}
.slider-nav__item--current,
.slider-nav__item:hover {
    background: #C95412 !important;
    border-color: #C95412;
    transform: scale(1.2);
    box-shadow: 0 0 8px rgba(201, 84, 18, 0.5);
}

/* ----- 内容容器 ----- */
.container {
    background: transparent;
}

/* ----- 标题栏美化 ----- */
.title_box {
    border-bottom: 2px solid transparent;
    border-image: linear-gradient(90deg, #C95412, #004EA3) 1;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    padding-bottom: 6px;
}

.title {
    background: linear-gradient(135deg, #C95412, #e8651a);
    border-radius: 6px 6px 0 0;
    padding: 10px 24px;
    font-size: 17px;
    letter-spacing: 1px;
    box-shadow: 0 3px 10px rgba(201, 84, 18, 0.2);
}

.more {
    color: #999;
    font-size: 13px;
    transition: all 0.3s ease;
    padding-right: 5px;
}
.more:hover {
    color: #C95412 !important;
    transform: translateX(3px);
}

/* ----- 内容区域卡片 ----- */
.content_1, .content_2, .content_3 {
    background: #fff;
    border-radius: 16px;
    padding: 25px 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    margin-bottom: 20px;
    transition: box-shadow 0.3s ease;
    box-sizing: border-box; /* 关键：padding计入宽度，而非叠加 */
    width: 100%; /* 明确继承.container宽度 */    
}
.content_1:hover, .content_2:hover, .content_3:hover {
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
}

/* ----- 动态新闻列表 ----- */
.content_1 .content_left .news_list1 {
    padding: 20px 0 0 5px;
}
.content_1 .content_left .news_list1 li {
    border-radius: 8px;
    margin-bottom: 2px;
    transition: all 0.3s ease;
    padding: 6px 12px;
}
.content_1 .content_left .news_list1 li:hover {
    background: linear-gradient(90deg, rgba(201, 84, 18, 0.05), transparent);
    transform: translateX(5px);
}
.content_1 .content_left .news_list1 li a .tit_style {
    font-weight: 400;
    transition: color 0.3s ease;
}
.content_1 .content_left .news_list1 li:hover a .tit_style {
    color: #C95412 !important;
}
.content_1 .content_left .news_list1 li i.fa-angle-right {
    color: #C95412 !important;
    transition: transform 0.3s ease;
}
.content_1 .content_left .news_list1 li:hover i.fa-angle-right {
    transform: translateX(4px);
}

/* ----- 公告栏美化 ----- */
.content_1 .content_right .meet li {
    background: #fafbfc;
    border-radius: 10px;
    padding: 10px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}
.content_1 .content_right .meet li:hover {
    background: #fff;
    border-color: #e0e5ec;
    box-shadow: 0 4px 15px rgba(0,0,0,0.06);
    transform: translateY(-2px);
}
.content_1 .content_right .meet .date {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.content_1 .content_right .meet .date .month {
    background: linear-gradient(135deg, #C95412, #d4651f);
    font-size: 14px;
    font-weight: bold;
}
.content_1 .content_right .meet .date .year {
    font-weight: bold;
    font-size: 13px;
}

/* ----- 院训横幅（无外层装饰，图片直接铺满） ----- */
.banner_section {
    width: 100%;
    margin: 0 auto;
    margin-bottom: 20px;
}
.banner_section img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.banner_section img:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

/* ----- 图片新闻美化 ----- */
.content_2 .pic_list {
    transition: transform 0.3s ease;
}
.content_2 .pic_list:hover {
    transform: translateY(-6px);
}
.content_2 .pic_list .pic_img_box {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: box-shadow 0.3s ease;
}
.content_2 .pic_list:hover .pic_img_box {
    box-shadow: 0 10px 30px rgba(0,0,0,0.18);
}
/* 图片已有hover放大，增强效果 */
.content_2 .pic_list .pic_img_box::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, transparent 60%, rgba(0,0,0,0.3));
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    border-radius: 12px;
    z-index: 1;
}
.content_2 .pic_list:hover .pic_img_box::after {
    opacity: 1;
}
.content_2 .pic_list a {
    font-size: 14px;
    color: #444 !important;
    margin-top: 8px;
    transition: color 0.3s ease;
    text-align: center;
    font-weight: 500;
}
.content_2 .pic_list:hover a {
    color: #C95412 !important;
}

/* ----- 学习栏目 + 科研动态 ----- */
.content_3 .content_left .news_list2 li {
    border-radius: 8px;
    transition: all 0.3s ease;
    border-bottom: 1px dashed #e8ecf1 !important;
    margin-bottom: 4px;
}
.content_3 .content_left .news_list2 li:hover {
    background: linear-gradient(90deg, rgba(0, 78, 163, 0.04), transparent);
    padding-left: 10px;
    border-bottom-color: #004EA3 !important;
}
.content_3 .content_left .news_list2 li a .tit_style {
    font-weight: 500;
    transition: color 0.3s ease;
}
.content_3 .content_left .news_list2 li:hover a .tit_style {
    color: #004EA3 !important;
}

.content_3 .content_right .news_list3 li {
    padding: 6px 0;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.3s ease;
}
.content_3 .content_right .news_list3 li:hover {
    background: linear-gradient(90deg, rgba(201, 84, 18, 0.04), transparent);
    padding-left: 5px;
}
.content_3 .content_right .news_list3 li a {
    transition: color 0.3s ease;
}
.content_3 .content_right .news_list3 li:hover a {
    color: #C95412 !important;
}

/* 科研动态圆点美化 */
.content_3 .content_right .news_list3 li:before {
    background: linear-gradient(135deg, #C95412, #e8651a) !important;
    width: 7px !important;
    height: 7px !important;
    box-shadow: 0 0 4px rgba(201, 84, 18, 0.4);
}

/* ----- 党建活动 + 二维码美化 ----- */
.content_3 .content_right table tr td {
    text-align: center;
}
.content_3 .content_right table img {
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}
.content_3 .content_right table img:hover {
    transform: scale(1.05);
}

/* ----- 友情链接美化 ----- */
.content_2 .pic_link {
    transition: all 0.3s ease;
}
.content_2 .pic_link a {
    display: block;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 3px 12px rgba(0,0,0,0.06);
    border: 1px solid #e8ecf1;
}
.content_2 .pic_link a:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 78, 163, 0.15);
    border-color: #004EA3;
}
.content_2 .pic_link img {
    display: block;
    width: 100%;
    transition: transform 0.3s ease;
    background: #fff;
    padding: 10px;
    box-sizing: border-box;
}
.content_2 .pic_link a:hover img {
    transform: scale(1.05);
}

/* ----- 页脚美化 ----- */
.banquan {
    background: linear-gradient(135deg, #002d5c, #004EA3, #003d82) !important;
    padding: 30px 0 !important;
    box-shadow: 0 -4px 20px rgba(0, 78, 163, 0.2);
    position: relative;
}
.banquan::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, #ffdc1f, transparent);
}
.banquan p {
    margin: 4px 0;
    line-height: 1.8;
}
.banquan p span {
    background: transparent !important;
    opacity: 0.85;
    transition: opacity 0.3s ease;
}
.banquan p span:hover {
    opacity: 1;
}

/* ----- 全局链接动效 ----- */
a {
    transition: all 0.25s ease;
}
a:hover {
    text-decoration: none !important;
}

/* ----- 返回顶部按钮（需要JS配合，这里预设样式） ----- */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #004EA3, #0066cc);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 999;
    font-size: 20px;
    box-shadow: 0 4px 15px rgba(0, 78, 163, 0.3);
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
}
.back-to-top.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}
.back-to-top:hover {
    background: linear-gradient(135deg, #C95412, #e8651a);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(201, 84, 18, 0.4);
}

/* ----- 入场动画 ----- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.content_1, .content_2, .content_3 {
    animation: fadeInUp 0.6s ease;
}
.content_2 { animation-delay: 0.1s; }
.content_3 { animation-delay: 0.2s; }

/* ----- 响应式优化 ----- */
@media (max-width: 1024px) {
    .container {
        width: 94%;
    }
    .slider {
        width: 94%;
        border-radius: 0 0 12px 12px;
    }
    .content_1, .content_2, .content_3 {
        padding: 15px 20px;
        border-radius: 12px;
    }
    .title {
        font-size: 15px;
        padding: 8px 16px;
    }
}

@media (max-width: 768px) {
    .content_2 .pic_list .pic_img_box::after {
        display: none;
    }
}