/* 主题样式 */

/* 全局样式 */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f8f8;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 头部样式 */
.site-header {
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    padding: 10px 0;
}

/* 为登陆页面设置透明头部 */
.landing-page .site-header {
    background-color: transparent;
    box-shadow: none;
    position: absolute;
    width: 100%;
    z-index: 100;
}

.landing-page .site-title a,
.landing-page .site-description {
    color: #fff;
}

.site-branding {
    display: flex;
    align-items: center;
}

.site-title {
    font-size: 1.5em;
    margin: 0;
}

.site-title a {
    color: #0066cc;
    text-decoration: none;
}

.site-description {
    margin: 5px 0 0;
    color: #666;
}

/* 导航菜单样式 */
.main-navigation {
    background-color: transparent;
    transition: all 0.3s ease;
    width: 100%;
}

/* 为登陆页面设置透明导航 */
.landing-page .main-navigation {
    background-color: transparent;
}

/* 导航容器样式 */
.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

/* Logo样式 */
.nav-logo {
    flex: 0 0 25%;
    display: flex;
    align-items: center;
}

.custom-logo {
    max-height: 90px;
    width: auto;
}

/* 中间菜单样式 */
.nav-menu-container {
    flex: 0 0 55%;
    display: flex;
    justify-content: center;
}

/* 下载按钮样式 */
.nav-download {
    flex: 0 0 20%;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.nav-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
}

.main-navigation li {
    margin: 0 20px;
    position: relative;
}

.main-navigation a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    padding: 8px 0;
    transition: all 0.3s ease;
    position: relative;
    letter-spacing: 0.5px;
}

.main-navigation a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #ffb400;
    transition: width 0.3s ease;
}

.main-navigation a:hover::after {
    width: 100%;
}

.main-navigation a:hover {
    color: #ffb400;
}

/* 非首页导航样式 */
body:not(.landing-page) .main-navigation a {
    color: #333;
}

body:not(.landing-page) .main-navigation a:hover {
    color: #0066cc;
}

body:not(.landing-page) .main-navigation a::after {
    background-color: #0066cc;
}

.menu-toggle {
    display: none;
    background-color: transparent;
    color: #fff;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 4px;
    padding: 10px 15px;
    cursor: pointer;
    font-size: 1em;
    transition: all 0.3s ease;
}

.menu-toggle:hover {
    background-color: rgba(255,255,255,0.1);
}

.hidden-menu {
    display: none;
}

.download-button a {
    background-color: #ffb400;
    color: #333;
    border-radius: 30px;
    padding: 10px 25px;
    font-weight: 600;
    font-size: 16px;
    border: 2px solid #ffb400;
    white-space: nowrap;
    letter-spacing: 0.5px;
}

.download-button a:hover {
    background-color: transparent;
    color: #ffb400;
}

body:not(.landing-page) .download-button a {
    background-color: #0066cc;
    border-color: #0066cc;
    color: #fff;
}

body:not(.landing-page) .download-button a:hover {
    background-color: transparent;
    color: #0066cc;
}

/* 响应式设计 */
@media screen and (max-width: 992px) {
    .nav-logo {
        flex: 0 0 20%;
    }
    
    .nav-menu-container {
        flex: 0 0 60%;
    }
    
    .nav-download {
        flex: 0 0 20%;
    }
    
    .main-navigation li {
        margin: 0 15px;
    }
}

@media screen and (max-width: 768px) {
    .menu-toggle {
        display: block;
        margin: 10px auto;
    }
    
    .nav-container {
        display: none;
        flex-direction: column;
        padding: 20px 0;
    }
    
    .main-navigation.toggled .nav-container {
        display: flex;
        animation: fadeIn 0.3s ease;
    }
    
    @keyframes fadeIn {
        from { opacity: 0; }
        to { opacity: 1; }
    }
    
    .nav-logo,
    .nav-menu-container,
    .nav-download {
        flex: 0 0 100%;
        width: 100%;
        margin: 10px 0;
        justify-content: center;
    }
    
    .nav-menu {
        flex-direction: column;
        align-items: center;
    }
    
    .main-navigation li {
        margin: 10px 0;
    }
    
    .main-navigation a {
        padding: 10px;
        display: block;
        text-align: center;
    }
    
    body:not(.landing-page) .menu-toggle {
        color: #333;
        border-color: rgba(0,0,0,0.2);
    }
    
    body:not(.landing-page) .menu-toggle:hover {
        background-color: rgba(0,0,0,0.05);
    }
}

/* 固定顶部导航样式 */
.site-header.sticky {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    padding: 5px 0;
    animation: slideDown 0.3s ease;
    }

@keyframes slideDown {
    from { transform: translateY(-100%); }
    to { transform: translateY(0); }
}

.footer-widgets {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 30px;
}

.footer-widget-area {
    flex: 1;
    min-width: 250px;
    margin-bottom: 20px;
    padding: 0 15px;
}

.footer-widget-area h3 {
    color: #fff;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.social-links a {
    color: #fff;
    margin-right: 15px;
    text-decoration: none;
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.9em;
}

/* 新闻资讯区域样式 */
.news-section {
    padding: 80px 0;
    background-color: #edf7ff;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

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

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.news-image {
    height: 200px;
    overflow: hidden;
}

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

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

.news-content {
    padding: 20px;
}

.news-content h3 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.news-content h3 a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.news-content h3 a:hover {
    color: #007bff;
}

.news-meta {
    font-size: 0.85rem;
    color: #777;
    margin-bottom: 10px;
}

.news-excerpt {
    font-size: 0.95rem;
    line-height: 1.5;
    color: #555;
    margin-bottom: 15px;
}

.read-more {
    display: inline-block;
    color: #007bff;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.3s ease;
}

.read-more:hover {
    color: #0056b3;
}

.news-cta {
    text-align: center;
    margin-top: 40px;
}

.no-news {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px;
    background: #fff;
    border-radius: 8px;
}

@media screen and (max-width: 992px) {
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

/* 响应式设计 */
@media screen and (max-width: 992px) {
    .nav-container {
        flex-direction: column;
    }
    
    .nav-left, .nav-right {
        justify-content: center;
    }
    
    .nav-center {
        margin: 10px 0;
    }
}

@media screen and (max-width: 768px) {
    .menu-toggle {
        display: block;
        margin: 0 auto 10px;
    }
    
    .nav-container {
        display: none;
        padding: 10px 0;
    }
    
    .main-navigation.toggled .nav-container {
        display: flex;
        animation: fadeIn 0.3s ease;
    }
    
    @keyframes fadeIn {
        from { opacity: 0; transform: translateY(-10px); }
        to { opacity: 1; transform: translateY(0); }
    }
    
    .nav-left, .nav-right {
        flex-direction: column;
        align-items: center;
        width: 100%;
    }
    
    .nav-menu {
        flex-direction: column;
        align-items: center;
        width: 100%;
    }
    
    .main-navigation li {
        margin: 8px 0;
        width: 100%;
        text-align: center;
    }
    
    .main-navigation a {
        display: block;
        padding: 8px 0;
    }
    
    .download-button {
        margin-top: 10px;
    }
    
    .download-button a {
        display: block;
        width: 200px;
        text-align: center;
    }
    
    .footer-widgets {
        flex-direction: column;
    }
}

.footer-widgets {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 30px;
}

.footer-widget-area {
    flex: 1;
    min-width: 250px;
    margin-bottom: 20px;
    padding: 0 15px;
}

.footer-widget-area h3 {
    color: #fff;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.social-links a {
    color: #fff;
    margin-right: 15px;
    text-decoration: none;
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.9em;
}