
/* 基础样式 */
body {
    margin: 0;
    padding: 0;
    font-family: 'Helvetica', 'Roboto', sans-serif;
    background: linear-gradient(135deg, #0f2027, #203a43, #2c5364);
    color: #ffffff;
    overflow-x: hidden;
}

/* 动态渐变背景 */
@keyframes gradientBackground {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

body {
    background: linear-gradient(-45deg, #1c92d2, #f2fcfe, #f2fcfe, #1c92d2);
    background-size: 400% 400%;
    animation: gradientBackground 15s ease infinite;
    position: relative;
}

/* 固定导航栏 */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 50px;
    box-sizing: border-box;
}

.navbar .logo {
    font-size: 24px;
    font-weight: bold;
    color: #ffffff;
    cursor: pointer;
}

.navbar ul {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}

.navbar ul li {
    margin-left: 30px;
    position: relative;
}

.navbar ul li a {
    text-decoration: none;
    color: #ffffff;
    font-size: 16px;
    transition: color 0.3s ease;
}

.navbar ul li a:hover {
    color: #ffdd57;
    position: relative;
}

.navbar ul li a::after {
    content: '';
    display: block;
    width: 0%;
    height: 2px;
    background: #ffdd57;
    transition: width 0.3s ease;
    position: absolute;
    bottom: -5px;
    left: 0;
}

.navbar ul li a:hover::after {
    width: 100%;
}

/* 悬停涟漪动画 */
.navbar ul li a:hover {
    animation: ripple 0.6s linear;
}

@keyframes ripple {
    0% {
        box-shadow: 0 0 5px #ffdd57;
    }
    50% {
        box-shadow: 0 0 20px #ffdd57;
    }
    100% {
        box-shadow: 0 0 5px #ffdd57;
    }
}

/* 主内容区 */
.main {
    padding-top: 100px;
    padding-bottom: 50px;
}

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

.section:nth-child(even) {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.section h2 {
    text-align: center;
    font-size: 32px;
    margin-bottom: 20px;
    color: #ffdd57;
}

.section p {
    font-size: 18px;
    line-height: 1.8;
    color: #ffffff;
    margin-bottom: 20px;
}

.section img {
    width: 100%;
    max-width: 320px;
    height: auto;
    border-radius: 10px;
    margin: 10px 0;
}

/* 示例数据展示 */
.sample-data {
    background: rgba(0, 0, 0, 0.5);
    padding: 40px;
    border-radius: 10px;
    margin-top: 40px;
}

.sample-data h2 {
    color: #ffdd57;
    margin-bottom: 20px;
}

.sample-data ul {
    list-style: none;
    padding: 0;
}

.sample-data ul li {
    font-size: 18px;
    margin-bottom: 15px;
    position: relative;
    padding-left: 30px;
}

.sample-data ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 5px;
    width: 20px;
    height: 20px;
    background-size: cover;
}

.sample-data ul li:nth-child(1)::before {
    background-image: url('images/sample1.png');
}

.sample-data ul li:nth-child(2)::before {
    background-image: url('images/sample2.png');
}

.sample-data ul li:nth-child(3)::before {
    background-image: url('images/sample3.png');
}

.sample-data ul li:nth-child(4)::before {
    background-image: url('images/sample4.png');
}

.sample-data ul li:nth-child(5)::before {
    background-image: url('images/sample5.png');
}

.sample-data ul li:nth-child(6)::before {
    background-image: url('images/sample6.png');
}

.sample-data ul li:nth-child(7)::before {
    background-image: url('images/sample7.png');
}

.sample-data ul li:nth-child(8)::before {
    background-image: url('images/sample8.png');
}

.sample-data ul li:nth-child(9)::before {
    background-image: url('images/sample9.png');
}

.sample-data ul li:nth-child(10)::before {
    background-image: url('images/sample10.png');
}

.sample-data ul li:nth-child(11)::before {
    background-image: url('images/sample11.png');
}

.sample-data ul li:nth-child(12)::before {
    background-image: url('images/sample12.png');
}

/* 示例文章展示 */
.article-section {
    background: rgba(255, 255, 255, 0.1);
    padding: 40px;
    border-radius: 10px;
    margin-top: 40px;
}

.article-section h2, .article-section h3, .article-section h4 {
    color: #ffdd57;
}

.article-section pre {
    background: rgba(0, 0, 0, 0.7);
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
}

.article-section code {
    color: #ffdd57;
    font-family: 'Courier New', Courier, monospace;
}

.article-section img {
    width: 100%;
    max-width: 320px;
    height: auto;
    border-radius: 10px;
    margin: 10px 0;
}

/* 按钮样式 */
.button {
    background: #ffdd57;
    color: #000000;
    padding: 15px 30px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-size: 16px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.button:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px #ffdd57;
}

.button:active {
    animation: particleExplosion 0.5s ease-out;
}

@keyframes particleExplosion {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(1.5); opacity: 0; }
}

/* 提示信息 */
.reference-note {
    text-align: center;
    font-size: 18px;
    color: #ffdd57;
    margin-top: 20px;
}

/* 响应式设计 */
@media (max-width: 1440px) {
    .navbar {
        padding: 15px 30px;
    }
    .navbar ul li {
        margin-left: 20px;
    }
    .section h2 {
        font-size: 28px;
    }
    .section p {
        font-size: 16px;
    }
}

@media (max-width: 1200px) {
    .navbar {
        padding: 10px 20px;
    }
    .navbar .logo {
        font-size: 20px;
    }
    .navbar ul li {
        margin-left: 15px;
    }
    .section h2 {
        font-size: 24px;
    }
    .section p {
        font-size: 15px;
    }
}

@media (max-width: 1024px) {
    .section {
        padding: 50px 15px;
    }
    .sample-data ul li {
        font-size: 16px;
    }
    .article-section h2 {
        font-size: 28px;
    }
}

@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        align-items: flex-start;
    }
    .navbar ul {
        flex-direction: column;
        width: 100%;
    }
    .navbar ul li {
        margin-left: 0;
        margin-top: 10px;
    }
    .section h2 {
        font-size: 22px;
    }
    .section p {
        font-size: 14px;
    }
    .button {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .navbar {
        padding: 8px 10px;
    }
    .navbar .logo {
        font-size: 18px;
    }
    .navbar ul li a {
        font-size: 14px;
    }
    .section {
        padding: 40px 10px;
    }
    .section h2 {
        font-size: 20px;
    }
    .section p {
        font-size: 13px;
    }
    .sample-data ul li {
        font-size: 14px;
    }
    .article-section h2 {
        font-size: 24px;
    }
}

@media (max-width: 320px) {
    .navbar ul li a {
        font-size: 12px;
    }
    .section h2 {
        font-size: 18px;
    }
    .section p {
        font-size: 12px;
    }
    .button {
        padding: 10px 20px;
        font-size: 14px;
    }
    .article-section h2 {
        font-size: 20px;
    }
}

/* 动态威胁地图 */
#threatMap {
    width: 100%;
    height: 400px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 10px;
}

/* 粒子效果 */
.particles {
    position: absolute;
    width: 100%;
    height: 100%;
    background: transparent;
    top: 0;
    left: 0;
    pointer-events: none;
}

/* 链接样式 */
a {
    color: #ffdd57;
    text-decoration: none;
}

a:hover {
    color: #ffffff;
}


