/* 重置样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Microsoft YaHei", Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #fff;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* 头部样式 */
header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
}

.top {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #2c3e50;
    padding: 5px;
}

.logo img {
    height: 40px;
    width: auto;
}

.mobile-nav {
    display: flex;
}

.mobile-nav > ul {
    display: flex;
    gap: 30px;
}

.mobile-nav li {
    position: relative;
}

.mobile-nav > ul > li > a {
    font-size: 16px;
    font-weight: 500;
    color: #2c3e50;
    padding: 10px 0;
    position: relative;
    transition: color 0.3s;
}

.mobile-nav > ul > li > a:hover {
    color: #0066cc;
}

.mobile-nav > ul > li > a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #0066cc;
    transition: width 0.3s;
}

.mobile-nav > ul > li > a:hover::after {
    width: 100%;
}

/* 下拉菜单 */
.mobile-nav > ul > li > ul {
    position: absolute;
    top: 100%;
    left: -20px;
    background: #fff;
    min-width: 200px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s;
    padding: 10px 0;
    z-index: 100;
}

.mobile-nav > ul > li:hover > ul {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.mobile-nav ul ul li {
    padding: 0;
}

.mobile-nav ul ul a {
    display: block;
    padding: 8px 20px;
    font-size: 14px;
    color: #555;
    transition: all 0.3s;
}

.mobile-nav ul ul a:hover {
    background: #f5f5f5;
    color: #0066cc;
}

/* 三级菜单 */
.mobile-nav ul ul ul {
    position: absolute;
    left: 100%;
    top: 0;
    background: #fff;
    min-width: 180px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* 移动端样式 */
@media (max-width: 768px) {
    .nav-toggle {
        display: block;
    }
    
    .mobile-nav {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background: #fff;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: all 0.3s;
        max-height: calc(100vh - 70px);
        overflow-y: auto;
    }
    
    .mobile-nav.open {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
    
    .mobile-nav > ul {
        flex-direction: column;
        gap: 0;
    }
    
    .mobile-nav > ul > li {
        border-bottom: 1px solid #eee;
    }
    
    .mobile-nav > ul > li > a {
        display: block;
        padding: 15px 20px;
        font-size: 16px;
    }
    
    /* 移动端下拉菜单 */
    .mobile-nav > ul > li > ul {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: #f9f9f9;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s;
        padding: 0;
    }
    
    .mobile-nav > ul > li:hover > ul {
        max-height: 300px;
    }
    
    .mobile-nav ul ul a {
        padding-left: 40px;
        padding-top: 12px;
        padding-bottom: 12px;
        font-size: 14px;
    }
    
    /* 移动端三级菜单 */
    .mobile-nav ul ul ul {
        position: static;
        box-shadow: none;
        background: #f0f0f0;
    }
    
    .mobile-nav ul ul ul a {
        padding-left: 60px;
    }
}

/* 尾部样式 */
footer {
    background: #2c3e50;
    color: #fff;
    margin-top: auto;
    width: 100%;
}

.ft-top {
    padding: 40px 20px;
}

.ft-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 40px;
    align-items: center;
}

.links .title {
    margin-bottom: 15px;
    font-size: 16px;
    font-weight: 500;
}

.links-list {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
}

.links-list a {
    color: #ddd;
    transition: color 0.3s;
    font-size: 14px;
}

.links-list a:hover {
    color: #0066cc;
}

.links-list a:not(:last-child)::after {
    content: "|";
    margin-left: 15px;
    color: #666;
}

.qrcode img {
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.contact-info {
    text-align: right;
}

.contact-info p {
    margin-bottom: 8px;
    font-size: 14px;
    color: #ddd;
}

.ft-bottom {
    background: rgba(0, 0, 0, 0.2);
    padding: 20px;
    text-align: center;
}

.ft-bottom p {
    font-size: 14px;
    color: #aaa;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .ft-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 30px;
    }
    
    .links-list {
        justify-content: center;
    }
    
    .contact-info {
        text-align: center;
    }
    
    .links-list a:not(:last-child)::after {
        content: "";
        margin: 0;
    }
}

/* 公告列表页特有样式 */
.content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    flex: 1;
}

.banner {
    margin-bottom: 40px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.banner img {
    width: 100%;
    height: auto;
    display: block;
}

/* 标题部分 */
.c1 {
    text-align: center;
    margin-bottom: 40px;
    padding: 40px 30px;
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e8f0 100%);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.c1-title h1 {
    font-size: 36px;
    color: #2c3e50;
    margin-bottom: 10px;
    font-weight: 600;
}

.c1-title p {
    font-size: 18px;
    color: #666;
    font-style: italic;
    letter-spacing: 1px;
}

/* 新闻文字列表样式 */
.news-list {
    margin-bottom: 50px;
}

.news-item {
    background: #fff;
    border-radius: 8px;
    margin-bottom: 15px;
    padding: 20px 25px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid #eee;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.news-item:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    border-color: #0066cc;
    border-left-width: 4px;
}

.news-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 0;
    background: linear-gradient(180deg, #0066cc, #004488);
    transition: width 0.3s;
}

.news-item:hover::before {
    width: 4px;
}

.news-item a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: inherit;
    text-decoration: none;
}

.news-list-title {
    flex: 1;
    font-size: 18px;
    font-weight: 500;
    color: #2c3e50;
    line-height: 1.5;
    padding-right: 20px;
    transition: color 0.3s;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.news-item:hover .news-list-title {
    color: #0066cc;
}

.news-list-time {
    font-size: 14px;
    color: #888;
    white-space: nowrap;
    padding: 5px 12px;
    background: #f5f7fa;
    border-radius: 4px;
    border: 1px solid #e8eaed;
    transition: all 0.3s;
}

.news-item:hover .news-list-time {
    background: #e6f2ff;
    border-color: #b3d9ff;
    color: #0066cc;
}

/* 空列表状态 */
.news-list.empty {
    text-align: center;
    padding: 60px 20px;
    color: #888;
    font-size: 16px;
}

/* 加载更多/底部提示 */
.news-nomore {
    text-align: center;
    padding: 30px 0;
    color: #aaa;
    font-size: 14px;
    position: relative;
}

.news-nomore::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 1px;
    background: linear-gradient(90deg, transparent, #ddd, transparent);
}

/* 分页样式 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin: 40px 0;
}

.page-item {
    min-width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    color: #555;
    cursor: pointer;
    transition: all 0.3s;
}

.page-item:hover {
    border-color: #0066cc;
    color: #0066cc;
}

.page-item.active {
    background: #0066cc;
    border-color: #0066cc;
    color: white;
}

.page-item.disabled {
    color: #ccc;
    cursor: not-allowed;
    border-color: #eee;
}

.page-item.disabled:hover {
    color: #ccc;
    border-color: #eee;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .content {
        padding: 15px;
    }
    
    .c1 {
        padding: 30px 20px;
        margin-bottom: 30px;
    }
    
    .c1-title h1 {
        font-size: 28px;
    }
    
    .c1-title p {
        font-size: 16px;
    }
    
    .news-item {
        padding: 18px 20px;
        margin-bottom: 12px;
    }
    
    .news-item a {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .news-list-title {
        padding-right: 0;
        font-size: 17px;
        -webkit-line-clamp: 3;
    }
    
    .news-list-time {
        align-self: flex-start;
    }
}

@media (max-width: 480px) {
    .c1-title h1 {
        font-size: 24px;
    }
    
    .news-item {
        padding: 15px;
    }
    
    .news-list-title {
        font-size: 16px;
    }
    
    .news-list-time {
        font-size: 13px;
        padding: 4px 10px;
    }
}

/* 动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.news-item {
    animation: fadeInUp 0.5s ease-out forwards;
    opacity: 0;
}

.news-item:nth-child(1) { animation-delay: 0.1s; }
.news-item:nth-child(2) { animation-delay: 0.2s; }
.news-item:nth-child(3) { animation-delay: 0.3s; }
.news-item:nth-child(4) { animation-delay: 0.4s; }
.news-item:nth-child(5) { animation-delay: 0.5s; }
.news-item:nth-child(6) { animation-delay: 0.6s; }
.news-item:nth-child(7) { animation-delay: 0.7s; }
.news-item:nth-child(8) { animation-delay: 0.8s; }
.news-item:nth-child(9) { animation-delay: 0.9s; }
.news-item:nth-child(10) { animation-delay: 1.0s; }