* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    padding-top: 70px;
}

/* 导航栏基础样式 */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    background-color: #1c1c1c;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 9999;
    height: 70px;
}

.logo {
    flex: 0 0 auto;
}

.logo img {
    height: 40px;
    filter: invert(1);
}

.menu-toggle {
    display: none;
}

.nav-links {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
}

.nav-links li {
    margin: 0 1rem;
}

.nav-links li a {
    text-decoration: none;
    color: #ffffff;
    font-weight: 500;
}

/* 移动端样式 */
@media screen and (max-width: 768px) {
    .menu-toggle {
        display: block;
        font-size: 1.5rem;
        color: white;
        cursor: pointer;
        padding: 0.5rem;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        width: 100%;
        background-color: #1c1c1c;
        padding: 0;
        flex-direction: column;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        width: 100%;
        text-align: center;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }

    .nav-links li a {
        display: block;
        padding: 1rem;
        color: white;
    }
}

/* 轮播图样式 */
.slider {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: hidden;
    z-index: 1;
}

.slides {
    display: flex;
    width: 300%;
    height: 100%;
    transition: transform 0.5s ease-in-out;
}

.slide {
    width: 33.33%;
    height: 100%;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.prev, .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    color: white;
    padding: 1rem;
    border: none;
    cursor: pointer;
}

.prev { left: 1rem; }
.next { right: 1rem; }

/* 新闻部分样式 */
.news {
    padding: 3rem 5%;
    background: #f8f8f8;
}

.news h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: #333;
    font-size: 2.5rem;
    position: relative;
}

.news h2:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: #1c69d4;
}

.news-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.news-item {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.news-item:hover {
    transform: translateY(-10px);
}

.news-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.news-item:hover img {
    transform: scale(1.05);
}

.news-content {
    padding: 1.5rem;
}

.news-item h3 {
    color: #333;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.news-item p {
    color: #666;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.news-date {
    color: #1c69d4;
    font-size: 0.9rem;
    display: block;
    margin-bottom: 0.5rem;
}

.read-more {
    color: #1c69d4;
    text-decoration: none;
    font-weight: bold;
    display: inline-block;
    margin-top: 1rem;
    position: relative;
}

.read-more:after {
    content: '→';
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.read-more:hover:after {
    transform: translateX(5px);
}

/* 响应式调整 */
@media screen and (max-width: 1024px) {
    .news-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 768px) {
    .news {
        padding: 2rem 1rem;
    }

    .news h2 {
        font-size: 2rem;
        margin-bottom: 2rem;
    }

    .news-container {
        grid-template-columns: 1fr;
    }

    .news-item img {
        height: 200px;
    }
}

/* 快捷方式样式 */
.shortcuts {
    padding: 3rem 5%;
    background: #f5f5f5;
}

.shortcuts h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: #333;
    font-size: 2.5rem;
    position: relative;
}

.shortcuts h2:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: #1c69d4;
}

.shortcuts-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.shortcut {
    background: #fff;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.shortcut:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.shortcut h3 {
    color: #333;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.shortcut p {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.btn {
    display: inline-block;
    padding: 0.5rem 2rem;
    background: #1c69d4;
    color: white;
    border: none;
    border-radius: 5px;
    margin-top: 1rem;
    cursor: pointer;
    transition: background 0.3s ease;
    text-decoration: none;
    font-size: 1rem;
}

.btn:hover {
    background: #0c4da2;
}

/* 响应式调整 */
@media screen and (max-width: 1200px) {
    .shortcuts-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 768px) {
    .shortcuts {
        padding: 2rem 1rem;
    }

    .shortcuts h2 {
        font-size: 2rem;
        margin-bottom: 2rem;
    }

    .shortcuts-container {
        grid-template-columns: 1fr;
    }
}

/* 手机设备 (小于 768px) */
@media screen and (max-width: 768px) {
    .menu-toggle {
        display: block;
        position: relative;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #1c1c1c;
        padding: 1rem 0;
        flex-direction: column;
        align-items: center;
        z-index: 999;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        margin: 1rem 0;
        width: 100%;
        text-align: center;
    }

    .nav-links li a {
        display: block;
        padding: 0.5rem 0;
        width: 100%;
    }
}

/* 页脚样式 */
.footer {
    background-color: #1c1c1c;
    color: #fff;
    padding-top: 3rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    padding: 0 5%;
}

.footer-section h4 {
    color: #fff;
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.8rem;
}

.footer-section ul li a {
    color: #999;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #1c69d4;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.social-link {
    color: #999;
    text-decoration: none;
    transition: color 0.3s ease;
}

.social-link:hover {
    color: #1c69d4;
}

.contact-info p {
    color: #999;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.footer-bottom {
    margin-top: 3rem;
    padding: 1.5rem 5%;
    border-top: 1px solid #333;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
}

.footer-bottom p {
    color: #666;
}

.legal-links {
    display: flex;
    gap: 2rem;
}

.legal-links a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s ease;
}

.legal-links a:hover {
    color: #1c69d4;
}

/* 响应式调整 */
@media screen and (max-width: 1024px) {
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 768px) {
    .footer {
        padding-top: 2rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 1.5rem;
    }

    .footer-section {
        text-align: center;
        padding: 0.5rem 0;
        border-bottom: 1px solid #333;
    }

    .footer-section:last-child {
        border-bottom: none;
    }

    .footer-section h4 {
        margin-bottom: 1rem;
        font-size: 1.1rem;
    }

    .footer-section ul li {
        margin-bottom: 0.6rem;
    }

    .social-links {
        justify-content: center;
        margin: 1rem 0;
    }

    .social-link {
        padding: 0.5rem 1rem;
        background: rgba(255,255,255,0.1);
        border-radius: 5px;
    }

    .contact-info {
        text-align: center;
    }

    .contact-info p {
        margin-bottom: 0.3rem;
    }

    .footer-bottom {
        margin-top: 1.5rem;
        padding: 1rem 1.5rem;
        flex-direction: column;
        text-align: center;
        gap: 0.8rem;
    }

    .legal-links {
        justify-content: center;
        flex-wrap: wrap;
        gap: 1rem;
    }

    .legal-links a {
        font-size: 0.8rem;
    }
}

/* 官方文件请求模块样式 */
.official-requests {
    background: #fff; /* 使用白色背景区分两个模块 */
}

/* 确保两个模块之间有足够间距 */
.shortcuts + .official-requests {
    margin-top: 0;
    padding-top: 3rem;
}

/* 响应式调整 */
@media screen and (max-width: 1200px) {
    .official-requests .shortcuts-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 768px) {
    .official-requests .shortcuts-container {
        grid-template-columns: 1fr;
    }
}

/* 用户信息样式 */
.user-info {
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
}

.username {
    color: #fff;
    font-size: 0.9rem;
}

/* 修改导航栏响应式样式 */
@media screen and (max-width: 768px) {
    .nav-links .user-info {
        border-bottom: 1px solid rgba(255,255,255,0.1);
        display: flex;
        justify-content: center;
    }

    .username {
        display: inline-block;
        padding: 0.5rem 0;
    }
}