* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "SimHei", "Microsoft YaHei", sans-serif;
}

body {
  background-image: url('https://upload-bbs.miyoushe.com/upload/2024/11/19/245838258/38b39865a0836c24df7bd197ba16f9a7_345272283936178455.jpg?x-oss-process=image/resize,s_600,l_16000/auto-orient,0/interlace,1/quality,q_70/format,webp');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  background-attachment: fixed;
  background-color: #001428;
  color: #fff;
  line-height: 1.6;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 10, 30, 0.85) 0%);
    z-index: -1;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    z-index: 1;
}

/* 左侧导航菜单样式 */
.menu-toggle {
    position: fixed;
    top: 20px;
    left: 20px;
    width: 50px;
    height: 50px;
    background: rgba(20, 40, 80, 0.8);
    border-radius: 5px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 1000;
    transition: all 0.3s;
    border: 1px solid rgba(100, 150, 255, 0.5);
}

.menu-toggle:hover {
    background: rgba(30, 60, 120, 0.9);
    transform: translateY(-2px);
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: #66ccff;
    margin: 3px 0;
    border-radius: 2px;
    transition: all 0.3s;
}

.nav-menu {
    position: fixed;
    top: 0;
    left: -300px;
    width: 300px;
    height: 100%;
    background: rgba(10, 30, 60, 0.95);
    z-index: 999;
    padding: 80px 20px 20px;
    transition: left 0.4s ease;
    backdrop-filter: blur(10px);
    border-right: 1px solid rgba(100, 150, 255, 0.3);
    box-shadow: 5px 0 25px rgba(0, 0, 0, 0.5);
}

.nav-menu.active {
    left: 0;
}

.nav-menu ul {
    list-style: none;
}

.nav-menu li {
    margin-bottom: 15px;
}

.nav-menu a {
    display: block;
    color: #fff;
    text-decoration: none;
    padding: 15px 20px;
    border-radius: 5px;
    transition: all 0.3s;
    font-size: 18px;
    border-left: 3px solid transparent;
}

.nav-menu a:hover {
    background: rgba(100, 150, 255, 0.2);
    border-left: 3px solid #66ccff;
    padding-left: 25px;
}

.nav-menu a.active {
    background: rgba(100, 150, 255, 0.3);
    border-left: 3px solid #ffcc00;
}

header {
    display: flex;
    align-items: center;
    padding: 20px 0;
    margin-bottom: 40px;
    border-bottom: 2px solid rgba(100, 150, 255, 0.5);
}

.logo-container {
    display: flex;
    align-items: center;
    margin-left: 70px; /* 为左侧菜单留出空间 */
}

.logo {
    width: 60px;
    height: 60px;
    margin-right: 15px;
    border-radius: 8px;
    background-color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: 0 0 10px rgba(100, 150, 255, 0.5);
}

.logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.site-title {
    font-size: 28px;
    font-weight: bold;
    color: #fff;
    text-shadow: 0 0 10px rgba(100, 150, 255, 0.7);
    letter-spacing: 2px;
}

/* 标题容器样式 */
.title-container {
    display: flex;
    flex-direction: column;
}

/* 副标题样式 */
.site-subtitle {
    font-size: 18px;
    color: #aaccff;
    margin-top: 8px;
    text-shadow: 0 0 5px rgba(100, 150, 255, 0.5);
    letter-spacing: 1px;
    font-weight: normal;
    border-left: 2px solid #66ccff;
    padding-left: 15px;
    opacity: 0.9;
}

.section {
    background-color: rgba(0, 20, 40, 0.8);
    padding: 50px;
    border-radius: 12px;
    margin-bottom: 40px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(100, 150, 255, 0.3);
    backdrop-filter: blur(5px);
}

.section-title {
    font-size: 32px;
    margin-bottom: 25px;
    color: #66ccff;
    border-bottom: 2px solid rgba(100, 150, 255, 0.5);
    padding-bottom: 15px;
    text-shadow: 0 0 5px rgba(100, 150, 255, 0.5);
}

/* 新闻列表样式 */
.news-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.news-item {
    background: rgba(20, 50, 100, 0.7);
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(100, 150, 255, 0.5);
    transition: all 0.3s;
}

.news-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
    border-color: #66ccff;
}

.news-title {
    font-size: 24px;
    margin-bottom: 15px;
    color: #66ccff;
}

.news-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s;
}

.news-title a:hover {
    color: #ffcc00;
    text-decoration: underline;
}

.news-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
    font-size: 14px;
    color: #aaccff;
}

.news-excerpt {
    font-size: 16px;
    line-height: 1.6;
    color: #e0e0e0;
}

/* 新闻详情样式 */
.news-detail {
    max-width: 900px;
    margin: 0 auto;
}

.news-detail .news-title {
    font-size: 32px;
    margin-bottom: 20px;
    color: #66ccff;
    text-align: center;
}

.news-detail .news-meta {
    justify-content: center;
    margin-bottom: 30px;
    font-size: 16px;
}

.news-content {
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 40px;
}

.news-content p {
    margin-bottom: 20px;
    text-align: justify;
}

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

.back-button {
    display: inline-block;
    padding: 12px 25px;
    background: rgba(100, 150, 255, 0.3);
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s;
    border: 1px solid rgba(100, 150, 255, 0.5);
}

.back-button:hover {
    background: rgba(100, 150, 255, 0.5);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* 加载和错误状态样式 */
.loading, .error, .no-news {
    text-align: center;
    padding: 40px;
    font-size: 18px;
    color: #aaccff;
}

.error {
    color: #ff6666;
}

footer {
    text-align: center;
    padding: 30px 0;
    margin-top: 60px;
    border-top: 1px solid rgba(100, 150, 255, 0.3);
    font-size: 16px;
    color: rgba(200, 220, 255, 0.8);
}

.footer-logo {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 10px;
    color: #66ccff;
}

.scroll-indicator {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: rgba(20, 40, 80, 0.7);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s;
    border: 1px solid rgba(100, 150, 255, 0.5);
    z-index: 100;
    opacity: 0;
}

.scroll-indicator:hover {
    background: rgba(30, 60, 120, 0.8);
    transform: translateY(-5px);
}

/* 新闻图片样式 */
.news-image {
    margin: 0 0 25px 0;
    text-align: center;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(100, 150, 255, 0.3);
    max-width: 80%;
    margin-left: auto;
    margin-right: auto;
}

.news-image img {
    max-width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

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

.image-caption {
    font-size: 14px;
    color: #aaccff;
    padding: 10px;
    background: rgba(10, 30, 60, 0.7);
    margin: 0;
    font-style: italic;
    border-top: 1px solid rgba(100, 150, 255, 0.3);
}

/* 调整新闻元数据的底部边距，为图片留出空间 */
.news-detail .news-meta {
    justify-content: center;
    margin-bottom: 20px;
    font-size: 16px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .section {
        padding: 30px 20px;
    }
    
    .site-title {
        font-size: 22px;
    }
    
    .logo {
        width: 50px;
        height: 50px;
    }
    
    .nav-menu {
        width: 250px;
        left: -250px;
    }
    
    .logo-container {
        margin-left: 60px;
    }
    
    .news-detail .news-title {
        font-size: 24px;
    }
    
    .news-content {
        font-size: 16px;
    }
    
    .news-meta {
        flex-direction: column;
        gap: 10px;
    }

    .title-container {
        display: flex;
        flex-direction: column;
    }

    .site-subtitle {
        font-size: 14px;
        margin-top: 5px;
        padding-left: 10px;
    }

    .news-image {
        margin: 0 0 15px 0;
        max-width: 95%;
    }
    
    .image-caption {
        font-size: 12px;
        padding: 8px;
    }
    
    .news-detail .news-meta {
        margin-bottom: 15px;
    }
}

/* 多图片缩略图计数样式 */
.image-count {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: bold;
}

.news-thumbnail {
    position: relative;
    margin: 15px 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(100, 150, 255, 0.3);
    max-width: 300px;
    height: 180px;
    transition: all 0.3s ease;
}

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

.news-thumbnail:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    border-color: #66ccff;
}

.news-thumbnail:hover img {
    transform: scale(1.05);
}
/* 响应式调整 */
@media (max-width: 768px) {
    .news-thumbnail {
        max-width: 100%;
        height: 200px;
    }
}
