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

/* 页面背景与字体 */
body {
    background: linear-gradient(to bottom, #6C5CE7, #383557);
    color: #FFFFFF;
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    padding: 20px;
}

/* 容器布局 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* 标题样式 */
h1, h2, h3, h4 {
    font-family: 'Roboto', sans-serif;
    color: #FFFFFF;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3);
    margin-bottom: 20px;
}

h1 {
    font-size: 3rem;
    text-align: center;
    margin-top: 40px;
}

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

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

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

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

/* 按钮样式 */
.button {
    padding: 10px 20px;
    background: rgba(108, 92, 231, 0.8);
    color: #FFFFFF;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    display: inline-block;
    text-decoration: none;
    margin-top: 10px;
}

.button:hover {
    background: rgba(75, 68, 174, 0.8);
}

.button:active {
    background: rgba(108, 92, 231, 1);
}

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

/* 卡片样式 */
.card {
    width: 100%;
    max-width: 300px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    margin: 20px;
    padding: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

/* 浮动布局 */
.float-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    margin-top: 40px;
}

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

th, td {
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 10px;
    text-align: left;
}

th {
    background: rgba(108, 92, 231, 0.6);
}

tr:nth-child(even) {
    background: rgba(255, 255, 255, 0.1);
}

/* 代码块样式 */
pre {
    background: rgba(0, 0, 0, 0.5);
    padding: 15px;
    border-radius: 10px;
    overflow-x: auto;
    margin-bottom: 20px;
}

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

/* 动态光影效果 */
.light-effect {
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3), transparent);
    animation: light-fade 5s infinite;
    pointer-events: none;
}

@keyframes light-fade {
    0% { opacity: 0; }
    50% { opacity: 1; }
    100% { opacity: 0; }
}

/* 响应式设计 */
@media (max-width: 1440px) {
    h1 {
        font-size: 2.8rem;
    }
    h2 {
        font-size: 2.3rem;
    }
    h3 {
        font-size: 1.8rem;
    }
}

@media (max-width: 1200px) {
    .container {
        padding: 15px;
    }
    .card {
        max-width: 45%;
    }
}

@media (max-width: 1024px) {
    .float-container {
        flex-direction: column;
        align-items: center;
    }
    .card {
        max-width: 80%;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.2rem;
    }
    h2 {
        font-size: 2rem;
    }
    .card {
        max-width: 90%;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.8rem;
    }
    h2 {
        font-size: 1.6rem;
    }
    h3 {
        font-size: 1.4rem;
    }
    .card {
        max-width: 100%;
        margin: 10px 0;
    }
}

@media (max-width: 320px) {
    h1 {
        font-size: 1.5rem;
    }
    h2 {
        font-size: 1.3rem;
    }
    h3 {
        font-size: 1.2rem;
    }
    p {
        font-size: 0.9rem;
    }
}

/* 导航栏样式 */
.navbar {
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 15px 0;
    background: rgba(56, 53, 87, 0.8);
    border-radius: 10px;
    margin-bottom: 40px;
}

.navbar a {
    color: #FFFFFF;
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.navbar a:hover {
    color: #00FFAA;
}

/* 脚注样式 */
.footer {
    text-align: center;
    padding: 20px 0;
    margin-top: 40px;
    background: rgba(56, 53, 87, 0.8);
    border-radius: 10px;
}

.footer p {
    font-size: 0.9rem;
    color: #CCCCCC;
}

