
/* 基础重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(135deg, #00008B, #8A2BE2);
    color: #FFFFFF;
    line-height: 1.6;
    overflow-x: hidden;
    transition: background 3s ease-in-out;
}

/* 动态背景悬停效果 */
body:hover {
    background: linear-gradient(135deg, #FFD700, #FFA500);
}

/* 导航栏样式 */
.navbar {
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    background: rgba(0, 0, 0, 0.5);
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
}

.navbar .logo {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    color: #FFD700;
}

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

.navbar ul li {
    margin-left: 20px;
}

.navbar ul li a {
    text-decoration: none;
    color: #FFFFFF;
    font-weight: bold;
    position: relative;
    padding: 5px 0;
}

.navbar ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background: #FFD700;
    left: 0;
    bottom: 0;
    transition: width 0.3s;
}

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

.container {
    max-width: 1200px;
    margin: 100px auto 50px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}

/* 标题样式 */
h1, h2, h3, h4 {
    font-family: 'Orbitron', sans-serif;
    color: #FFD700;
    margin-bottom: 20px;
}

h1 {
    font-size: 3rem;
    text-align: center;
}

h2 {
    font-size: 2.5rem;
    margin-top: 40px;
}

h3 {
    font-size: 2rem;
    margin-top: 30px;
}

h4 {
    font-size: 1.5rem;
    margin-top: 25px;
}

/* 段落样式 */
p {
    margin-bottom: 20px;
    font-size: 1.1rem;
}

/* 表格样式 */
table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

table, th, td {
    border: 1px solid #FFD700;
}

th, td {
    padding: 10px;
    text-align: left;
}

th {
    background: rgba(255, 215, 0, 0.3);
}

td {
    background: rgba(255, 255, 255, 0.1);
}

/* 代码块样式 */
pre {
    background: #1e1e1e;
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
    margin-bottom: 20px;
}

code {
    color: #00FF00;
    font-family: 'Courier New', Courier, monospace;
}

/* 列表样式 */
ul, ol {
    margin-bottom: 20px;
    padding-left: 20px;
}

li {
    margin-bottom: 10px;
}

/* 按钮样式 */
.button {
    display: inline-block;
    padding: 10px 20px;
    background: #FFD700;
    color: #00008B;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: background 0.3s;
}

.button:hover {
    background: #FFA500;
}

.button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    animation: ripple 1s ease-out;
    opacity: 0;
}

.button:hover::before {
    transform: translate(-50%, -50%) scale(2);
    opacity: 1;
}

@keyframes ripple {
    to {
        transform: translate(-50%, -50%) scale(2);
        opacity: 0;
    }
}

/* 视觉元素样式 */
.particle {
    position: absolute;
    width: 10px;
    height: 10px;
    background-color: #FFFFFF;
    border-radius: 50%;
    animation: float 5s infinite ease-in-out;
}

@keyframes float {
    0% {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
    50% {
        transform: translateY(-20px) scale(1.5);
        opacity: 0.5;
    }
    100% {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

/* 流动性布局 */
.section {
    margin-bottom: 50px;
}

.section:nth-child(even) {
    background: rgba(138, 43, 226, 0.2);
    padding: 20px;
    border-radius: 10px;
}

/* 图片样式 */
img {
    width: 100%;
    max-width: 320px;
    height: auto;
    border-radius: 10px;
    margin-bottom: 20px;
}

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

.sample-data h2 {
    color: #FFA500;
    text-align: center;
    margin-bottom: 20px;
}

.sample-data pre {
    background: #2e2e2e;
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
}

.sample-data code {
    color: #00FF7F;
}

/* 响应式设计 */
@media (max-width: 1440px) {
    .container {
        max-width: 1100px;
    }
}

@media (max-width: 1200px) {
    .container {
        max-width: 900px;
    }
}

@media (max-width: 1024px) {
    .navbar {
        padding: 15px 30px;
    }

    .navbar .logo {
        font-size: 1.3rem;
    }

    .navbar ul li {
        margin-left: 15px;
    }

    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2.2rem;
    }

    h3 {
        font-size: 1.8rem;
    }

    h4 {
        font-size: 1.3rem;
    }
}

@media (max-width: 768px) {
    .navbar ul {
        flex-direction: column;
        background: rgba(0, 0, 0, 0.7);
        position: absolute;
        top: 60px;
        right: 20px;
        width: 200px;
        display: none;
    }

    .navbar ul.active {
        display: flex;
    }

    .navbar ul li {
        margin: 10px 0;
    }

    .container {
        margin-top: 80px;
    }

    .button {
        padding: 8px 16px;
    }
}

@media (max-width: 480px) {
    .navbar {
        padding: 10px 20px;
    }

    .navbar .logo {
        font-size: 1.2rem;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    h3 {
        font-size: 1.5rem;
    }

    h4 {
        font-size: 1.1rem;
    }

    p, li, table, pre {
        font-size: 1rem;
    }
}

@media (max-width: 320px) {
    .navbar ul {
        width: 100%;
    }

    h1 {
        font-size: 1.8rem;
    }
}

