
/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(135deg, #0f0c29, #302b63, #24243e);
    color: #ffffff;
    line-height: 1.6;
    padding: 20px;
    animation: backgroundAnimation 15s linear infinite;
}

@keyframes backgroundAnimation {
    0% {
        background: linear-gradient(135deg, #0f0c29, #302b63, #24243e);
    }
    50% {
        background: linear-gradient(135deg, #302b63, #24243e, #0f0c29);
    }
    100% {
        background: linear-gradient(135deg, #0f0c29, #302b63, #24243e);
    }
}

/* 头部样式 */
header {
    text-align: center;
    padding: 50px 20px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 10px;
    margin-bottom: 30px;
}

header h1 {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 20px;
    background: linear-gradient(90deg, #00c6ff, #0072ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

header p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto;
}

/* 导航栏样式 */
nav {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
}

nav a {
    text-decoration: none;
    color: #ffffff;
    font-size: 1rem;
    position: relative;
    transition: color 0.3s ease;
}

nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background: #ff7f50;
    left: 0;
    bottom: -5px;
    transition: width 0.3s;
}

nav a:hover::after {
    width: 100%;
}

nav a:hover {
    color: #ff7f50;
}

/* 主要内容样式 */
main {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

article {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 10px;
}

article h2, article h3, article h4 {
    color: #00c6ff;
    margin-bottom: 15px;
}

article h2 {
    font-size: 2.5rem;
}

article h3 {
    font-size: 1.8rem;
}

article h4 {
    font-size: 1.5rem;
}

article p {
    margin-bottom: 15px;
}

article pre {
    background: #1e1e1e;
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
}

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

article table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 15px;
}

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

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

article th {
    background: #00c6ff;
    color: #000;
}

article ul {
    list-style: disc inside;
    margin-bottom: 15px;
}

article li {
    margin-bottom: 10px;
}

/* 模块化布局样式 */
.module {
    display: flex;
    flex-direction: row;
    gap: 20px;
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 10px;
    align-items: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.module:hover {
    transform: scale(1.02);
    box-shadow: 0 0 20px rgba(255, 127, 80, 0.5);
}

.module img {
    width: 150px;
    height: 150px;
    border-radius: 10px;
    object-fit: cover;
}

.module-content {
    flex: 1;
}

.module-content h3 {
    margin-bottom: 10px;
    color: #ff7f50;
}

.module-content p {
    font-size: 1rem;
}

/* 动画与微交互样式 */
.button {
    background: linear-gradient(45deg, #00c6ff, #0072ff);
    border: none;
    padding: 10px 20px;
    color: #ffffff;
    font-size: 1rem;
    border-radius: 50px;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
}

.button:hover {
    transform: scale(1.1);
    box-shadow: 0 0 10px #ff7f50;
}

.button:active {
    background: #ff7f50;
}

@media (max-width: 768px) {
    header h1 {
        font-size: 2rem;
    }

    nav {
        flex-direction: column;
        gap: 10px;
    }

    .module {
        flex-direction: column;
        align-items: flex-start;
    }

    .module img {
        width: 100%;
        height: auto;
    }
}

@media (max-width: 480px) {
    header {
        padding: 30px 10px;
    }

    article h2 {
        font-size: 2rem;
    }

    article h3 {
        font-size: 1.5rem;
    }
}

@media (max-width: 320px) {
    body {
        padding: 10px;
    }

    header h1 {
        font-size: 1.5rem;
    }

    nav a {
        font-size: 0.9rem;
    }

    .button {
        font-size: 0.9rem;
        padding: 8px 16px;
    }
}

/* 响应式表格样式 */
@media (max-width: 768px) {
    article table, article th, article td {
        font-size: 0.9rem;
    }
}

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

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

/* 视觉冲击力增强 */
.section {
    margin-bottom: 40px;
}

.section-title {
    text-align: center;
    margin-bottom: 20px;
    font-size: 2rem;
    color: #ff7f50;
}

@media (min-width: 1024px) {
    main {
        grid-template-columns: 1fr 1fr;
    }
}

