﻿/* 全局样式 */
:root {
    --primary-blue: #3498db; /* 主蓝色 */
    --light-blue: #e3f2fd; /* 浅蓝色 */
    --dark-blue: #1a5276; /* 深蓝色 */
    --white: #ffffff; /* 白色 */
    --border-color: #b3d7f5; /* 边框颜色 */
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --orange-color: #ff9a3c; /* 橙色 */
    --red-color: #ff0000; /* 红色 */
    --black_color: #000000; /* 黑色 */
    
    --primary-color: #3498db; /* 主蓝色 */
    --light-color: #e3f2fd; /* 浅蓝色 */
    --dark-color: #2c3e50; /* 深蓝色 */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    max-width: 100%;
}

body {
    /* font-family: "SimSun", "宋体", serif; */
    font-family: "Arial Unicode MS", "宋体", serif;
    background-color: var(--white);
    color: #333;
    line-height: 1.6;
}

img
{
max-width: 100%;
}

a
{
text-decoration: none;
color: var(--black_color);
}

a:hover
{
color: #ff0000;
}

.container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 20px;
}

/* 头部样式 */
header {
    text-align: center;
    padding: 4px 0;
    background-color: rgba(255, 255, 255, 0.9);    
    border-bottom: 1px solid var(--primary-blue);
    /* box-shadow: var(--shadow);*/

    box-shadow: -5px 5px 10px -4px var(--shadow), 5px 5px 10px -4px #00ff00;
    border-top: 0px none #ff0000;

    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 10px;
}

.logo-icon {
    font-size: 36px;
    color: var(--dark-blue);
    margin-right: 15px;
}

.logo-text {
    font-size: 28px;
    font-weight: normal;
    color: var(--dark-blue);
    letter-spacing: 3px;
}

.subtitle {
    color: var(--dark-blue);
    font-size: 14px;
    margin-top: 5px;
    letter-spacing: 2px;
}

/* 导航栏样式 */
nav {
    display: flex;
    justify-content: center;
    margin: 4px 0;
    flex-wrap: wrap;
    align-items: center;   /* alter */
}

nav a {
    text-decoration: none;
    color: var(--dark-blue);
    padding: 8px 15px;
    margin: 0 8px;
    border: 1px solid var(--primary-blue);
    border-radius: 20px;
    transition: all 0.3s ease;
    font-size: 15px;
}

nav a:hover {
    background-color: var(--primary-blue);
    color: white;
}

/* 下拉菜单样式 */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-toggle {
    text-decoration: none;
    color: var(--dark-blue);
    padding: 8px 15px;
    margin: 0 8px;
    border: 1px solid var(--primary-blue);
    border-radius: 20px;
    transition: all 0.3s ease;
    font-size: 15px;
    display: inline-block;
}

.dropdown-toggle:hover {
    background-color: var(--primary-blue);
    color: white;
}

.dropdown-menu {
    display: none;
    position: absolute;
    background-color: var(--white);
    min-width: 80px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    z-index: 1;
    border-radius: 20px; /* 统一圆弧形 */
    list-style: none;
    padding: 0;
    margin: 0;
    left: 14px;
}

.dropdown-menu li {
    margin: 0;
    padding: 0;
}

.dropdown-menu a {
    color: var(--dark-blue);
    text-decoration: none;
    display: block;
    padding: 6px 16px;
    transition: background-color 0.3s;
    margin: 0;
    border-radius: 20px; /* 统一圆弧形 */
}

.dropdown-menu a:hover {
    background-color: var(--primary-blue);
    color: var(--dark-blue);
}

.forum-post-title:hover font {
    color: red !important;
}
.post-last-reply-author a  {
    color:#666666;
}
.post-last-reply-author a:hover  {
    color: red;
}

        /* 个人风采列表样式 */
        .people-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
            gap: 25px;
        }
        
        .person-card {
            background-color: var(--light-color);
            border-radius: 8px;
            overflow: hidden;
            transition: transform 0.3s ease, box-shadow 0.3s ease;
            background-size: cover;
            background-position: center;
        }
        
        .person-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 10px 20px rgba(255, 0, 255, 0.5);
        }
        
        .person-image {
            height: 300px;
            background-size: cover;
            background-position: center;
        }
        
        .person-info {
            padding: 4 15px;
            text-align: center;
        }
        
        .person-name {
            color: black;
            font-family:"黑体";
            opacity:1;
            margin-bottom: 4px;
        }
        
        .person-title {
            font-size: 14px;
            font-weight: bold;
            color: black;
            opacity:1;
            margin-bottom: 4px;
        }
        
        .person-desc {
            font-size: 14px;
            color: #555;
        }
        
        .person-read-more {
            display: inline-block;
            margin-top: 10px;
            color: #3498db;
            text-decoration: none;
            font-size: 14px;
        }
        
        
/* 活动列表样式 */
        .activities-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
            gap: 25px;
        }
        
        .activity-card {
            background-color: var(--light-color);
            border-radius: 8px;
            overflow: hidden;
            transition: transform 0.3s ease, box-shadow 0.3s ease;
        }
        
        .activity-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
        }
        
        .activity-image {
            height: 200px;
            background-size: cover;
            background-position: center;
        }
        
        .activity-info {
            padding: 10px;
        }
        
        .activity-date {
            font-size: 14px;
            font-weight: bold;
            color: black;
            margin-bottom: 0px;
        }
        
        .activity-title {
            font-size: 18px;
            font-weight: bold;
            color: black;
            margin-bottom: 0px;
        }
       
        .activity-desc {
            font-size: 14px;
            color: #555;
        }
        
        .read-more {
            display: inline-block;
            margin-top: 10px;
            color: var(--primary-color);
            text-decoration: none;
            font-size: 14px;
        }
        
        
        /* 活动详情样式 */
        .activity-details {
            display: flex;
            flex-wrap: wrap;
            gap: 30px;
            align-items: center;
        }
        
        .activity-image {
            flex: auto;
            min-width: 200px;
            height: 300px;
            background-size: cover;
            background-position: center;
            border-radius: 10px;
        }
        
        .activity-info {
            flex: auto;
            min-width: 200px;
        }
        
        .activity-title {
            font-size: 28px;
            font-weight: bold;
            color: var(--dark-color);
            margin-bottom: 10px;
        }
        
        .activity-date {
            font-size: 16px;
            font-weight: bold;
            color: var(--primary-color);
            margin-bottom: 20px;
        }
        
        .activity-description {
            font-size: 16px;
            line-height: 1.8;
            color: #555;
            margin-bottom: 20px;
        }
        
        .back-button {
            display: inline-block;
            background-color: var(--primary-color);
            color: white;
            padding: 8px 15px;
            border-radius: 5px;
            text-decoration: none;
            font-size: 14px;
            transition: background-color 0.3s;
        }
        
        .back-button:hover {
            background-color: var(--dark-color);
        }

        
/* 大屏幕下拉菜单悬停显示 */
@media (min-width: 769px) {
    .dropdown:hover .dropdown-menu {
        display: block;
    }
    
    /* 限制下拉菜单宽度与主菜单一致 */
    .dropdown-menu {
        width: auto;
        max-width: 150px;
    }
    
    		.forum-post {
                display: flex;
                justify-content: space-between;
                align-items: center;
                padding: 4 10px;
                border-bottom: 1px solid #ddd;
            }
            .forum-post-time {
                width: 50%;
                display: flex;
            }
            .post-author {
                width: 50%;
            }
            .post-time {
                width: 50%;
                
            }
            .post-last-reply {
                width: 50%;
                display: flex;
            }
            .post-last-reply-author  {
                width: 50%; 
                color:#666666;               
            }
            .post-last-reply-time  {
                width: 50%;
            }
}

/* 小屏幕下拉菜单点击显示 */
@media (max-width: 768px) {
    .logo-text {
        font-size: 22px;
    }
    
    		.forum-post {
    		    display: inline-block;
                justify-content: space-between;
                padding: 6px;
                border-bottom: 1px solid #ddd;
            }
            .post-author-time {               
                display: flex;
                padding: 4 10px; 
            }
            .post-author {               
                display: inline-block;
                padding: 4 10px;
            }
            .post-time {               
                display: inline-block;
                padding: 4 10px; 
            }
            .post-last-reply {               
                display: flex;
                padding: 4 10px; 
            }
            .post-last-reply-author  {
                display: inline-block;
                padding: 4 10px;
                color:#666666;
            }
            .post-last-reply-time  {                
                display: inline-block;
                padding: 4 10px;
            }
    
    nav a, .dropdown-toggle {
        padding: 6px 4px;
        font-size: 14px;
        margin: 0 5px;
    }
    
    /* 下拉菜单在小屏幕上显示为垂直列表 */
    .dropdown-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: white;
        box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
        z-index: 1;
        border-radius: 0;
        list-style: none;
        padding: 0px 0px;
        margin: 0 0 0 0;
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .dropdown:hover .dropdown-menu {
        display: flex;
        margin: 0 0 0 0;        
    }
    
    .dropdown-menu li {	
        margin: 0 0px;
        padding: 0 0;
    }
    
    .dropdown-menu a {
        color: var(--dark-blue);
        text-decoration: none;
        padding: 6px 6px;
        margin: 0 0px;
        font-size: 14px;
        width: 90%;  
    }

    .nav {
        flex-direction: row;
        justify-content: center;
        margin: 0 0 0 0;
    }

    .nav .dropdown {
        margin: 0 0px; 
    }
    
    .gallery-image {
        height: 250px;
    }
    
    nav {
        flex-wrap: nowrap;        
        padding: 0 10px;        
        justify-content: center;
    }
    
    nav::-webkit-scrollbar {
        height: 5px;
    }
    
    nav::-webkit-scrollbar-track {
        background: #f1f1f1;
    }
    
    nav::-webkit-scrollbar-thumb {
        background: var(--border-color);
        border-radius: 10px;
    }
    
    nav::-webkit-scrollbar-thumb:hover {
        background: var(--primary-blue);
    }
}


/* 滚动公告栏 */
.announcement-bar {
    background-color: var(--light-blue);
    padding: 10px 0;
    overflow: hidden;
    white-space: nowrap;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.announcement-content {
    display: block;
    animation: scroll-left 50s linear infinite;
    color: var(--dark-blue);
    font-weight: bold;
}

@keyframes scroll-left {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

/* 主要内容区 */
.main-content {
    padding: 30px 0 0 0;
}

/* 内容区块通用样式 */
.content-section {
    background-color: white;
    border-radius: 10px;
    margin-bottom: 30px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    padding: 20px;
    transition: transform 0.3s ease;
}

.content-section:hover {
    transform: translateY(-5px);
}

.section-title {
    color: var(--dark-blue);
    margin-top: 0;
    border-bottom: 2px solid var(--primary-blue);
    padding-bottom: 10px;
    font-weight: normal;
    text-align: center;
    margin-bottom: 20px;
}


        /* 新闻列表样式 */
        .news-list {
            list-style-type: none;
        }
        
        .news-item {
            padding: 10px 0;
            border-bottom: 1px solid #eee;
            transition: transform 0.3s;
        }
        
        .news-item:hover {
            transform: translateY(-5px);
            text-decoration: none;
        }
        
        .news-item:last-child {
            border-bottom: none;
        }
        
        .news-title {
            font-size: 20px;
            margin-bottom: 10px;
            text-decoration: none;
            color: var(--dark-color);
        }
        
        .news-title a {
           text-decoration: none;
           color: var(--dark-color);
        }
        
        .news-title a:hover  {
           text-decoration: none;
           color: var(--red-color);
        }
        
        .news-meta {
            font-size: 14px;
            color: #777;
            margin-bottom: 10px;
        }
        
        .news-summary {
            font-size: 16px;
            line-height: 1.6;
            margin-bottom: 15px;
        }
        
        .read-more {
            display: inline-block;
            background-color: var(--primary-color);
            color: white;
            padding: 8px 15px;
            border-radius: 5px;
            text-decoration: none;
            font-size: 14px;
            transition: background-color 0.3s;
        }
        
        .read-more:hover {
            background-color: var(--dark-color);
        }
        

/* 滚动图片展示区域样式 */
.scrolling-gallery {
    background-color: white;
    border-radius: 10px;
    margin-bottom: 30px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    padding: 20px;
}

.gallery-container {
    position: relative;
    overflow: hidden;
    height: 450px;
}

.gallery-wrapper {
    display: flex;
    transition: transform 0.5s ease;
}

.gallery-item {
    min-width: 100%;
    position: relative;
}

.gallery-image {
    width: 100%;
    height: 350px;
    background-size: cover;
    background-position: center;
    border-radius: 8px;
}

.gallery-caption {
    margin-top: 15px;
    font-size: 16px;
    color: var(--dark-blue);
    font-weight: bold;
}

.gallery-desc {
    color: #666;
    font-size: 14px;
    margin-top: 5px;
}

.gallery-controls {
    display: flex;
    justify-content: center;
    margin-top: 15px;
}

.gallery-dot {
    width: 12px;
    height: 12px;
    background-color: #ccc;
    border-radius: 50%;
    margin: 0 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.gallery-dot.active {
    background-color: var(--primary-blue);
}

/* 双栏布局 */
.dual-column {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.column {
    flex: 1;
    min-width: 300px;
}

.title-list {
    list-style-type: none;
}

.title-item {
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}

.title-item:last-child {
    border-bottom: none;
}

.title-link {
    color: var(--dark-blue);
    text-decoration: none;
    font-size: 16px;
    transition: color 0.3s;
}

.title-link:hover {
    color: var(--red-color);
}

.title-date {
    font-size: 12px;
    color: #777;
    margin-top: 5px;
}


/* 表单样式 */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: var(--dark-blue);
}

.form-input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    font-family: inherit;
}

/* 表单按钮 */
.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    margin-top: 30px;
}

.btn {
    padding: 10px 10px;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn-primary {
    background-color: var(--primary-blue);
    color: white;
    border: none;
}

.btn-primary:hover {
    background-color: var(--dark-blue);
}

.btn-secondary {
    background-color: #f1f1f1;
    color: var(--dark-blue);
    border: 1px solid #ddd;
}

.btn-secondary:hover {
    background-color: #e0e0e0;
}

/* Word文档风格编辑器 */
.editor-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
    padding: 10px;
    background-color: #f5f5f5;
    border-radius: 5px;
        position: sticky;
    top: 60;
}

.editor-btn {
    padding: 6px 12px;
    background-color: var(--white);
    border: 1px solid #ddd;
    border-radius: 3px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s;
}

.editor-btn:hover {
    background-color: #e9e9e9;
}

.editor-btn-group {
    display: flex;
    gap: 5px;
    align-items: center;
}

.editor-select {
    padding: 6px;
    border: 1px solid #ddd;
    border-radius: 3px;
    font-size: 14px;
}

.editor-content {
    border: 1px solid #ddd;
    border-radius: 5px;
    min-height: 400px;
    padding: 20px;
    background-color: white;
    font-size: 16px;
    line-height: 1.6;
    overflow-y: auto;
}

/* 头像上传区域 */
.avatar-upload {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 30px;
}

.avatar-preview {
    width: 400px;
    height: 400px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    border: 2px dashed #ddd;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 14px;
}

.upload-btn {
    padding: 8px 15px;
    background-color: var(--primary-blue);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.upload-btn:hover {
    background-color: var(--dark-blue);
}

.upload-input {
    display: none;
}

/* 色块选择器 */
.color-picker {
    display: flex;
    gap: 5px;
}

.color-option {
    width: 20px;
    height: 20px;
    border: 1px solid #ccc;
    cursor: pointer;
    border-radius: 3px;
}

.color-option:hover {
    transform: scale(1.1);
    border-color: #333;
}

/* 表格样式 */
table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    border: 0px solid #ddd;
    padding: 8px;
    text-align: left;
}

th {
    background-color: #f2f2f2;
}

tr:nth-child(even) {
    background-color: #fefefe;
}

/* 页脚样式 */
footer {
    text-align: center;
    padding: 20px 0;
    background-color: rgba(255, 255, 255, 0.9);
    border-top: 2px solid var(--primary-blue);
    color: var(--dark-blue);
    font-size: 14px;
    margin-top: 20px;
}

.contact-info {
    margin-bottom: 15px;
    line-height: 1.8;
}

.social-links a {
    margin: 0 8px;
    color: var(--dark-blue);
    text-decoration: none;
}

.copyright {
    margin-top: 15px;
    color: #666;
}