
/* 基本样式 */
body {
    margin: 0;
    padding: 0;
    font-family: 'IBM Plex Sans', sans-serif;
    background: linear-gradient(to bottom, #001f3f, #000000);
    color: #ffffff;
    line-height: 1.6;
    letter-spacing: 0.5px;
}

/* 全局链接样式 */
a {
    color: #39ff14;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #0074d9;
}

/* 头部样式 */
header {
    background: rgba(0, 0, 0, 0.8);
    padding: 20px;
    text-align: center;
    position: relative;
}

header h1 {
    font-family: 'Roboto', sans-serif;
    font-size: 2.5em;
    margin: 0;
    color: #39ff14;
    text-transform: uppercase;
    letter-spacing: 2px;
    animation: fadeInDown 1s ease-out;
}

header p {
    margin-top: 10px;
    font-size: 1em;
    color: #ffffff;
    animation: fadeInUp 1s ease-out;
}

/* 导航栏样式 */
nav {
    display: flex;
    justify-content: center;
    background: rgba(0, 0, 0, 0.7);
    padding: 10px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav a {
    margin: 0 15px;
    font-size: 1em;
    transition: transform 0.3s ease, color 0.3s ease;
}

nav a:hover {
    transform: scale(1.1);
    color: #39ff14;
}

/* 主内容区域 */
.main-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    padding: 40px 20px;
}

.section {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease, background 0.3s ease;
}

.section:hover {
    transform: scale(1.02);
    background: rgba(255, 255, 255, 0.15);
}

/* 图片样式 */
.section img {
    width: 100%;
    height: auto;
    border-radius: 5px;
    margin-bottom: 15px;
}

/* 标题样式 */
.section h2 {
    font-family: 'Roboto', sans-serif;
    font-size: 1.8em;
    margin-bottom: 10px;
    color: #39ff14;
    border-bottom: 2px solid #39ff14;
    display: inline-block;
    animation: fadeInLeft 1s ease-out;
}

.section h3 {
    font-family: 'Roboto', sans-serif;
    font-size: 1.5em;
    margin-top: 20px;
    color: #39ff14;
    animation: fadeInLeft 1s ease-out;
}

/* 文章样式 */
.article {
    background: rgba(0, 0, 0, 0.8);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.6);
    animation: fadeIn 1s ease-out;
}

.article h2 {
    font-family: 'Roboto', sans-serif;
    font-size: 2em;
    color: #39ff14;
    margin-bottom: 20px;
}

.article p {
    margin-bottom: 15px;
    font-size: 1em;
}

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

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

/* 表格样式 */
.table-container {
    overflow-x: auto;
}

.table-container table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

.table-container th, .table-container td {
    border: 1px solid #39ff14;
    padding: 10px;
    text-align: left;
}

.table-container th {
    background: #39ff14;
    color: #000;
}

.table-container tr:nth-child(even) {
    background: rgba(57, 255, 20, 0.1);
}

/* 动画效果 */
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInLeft {
    from { opacity: 0; transform: translateX(-20px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* 按钮样式 */
.button {
    display: inline-block;
    padding: 10px 20px;
    background: #0074d9;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: transform 0.3s ease, background 0.3s ease;
    text-align: center;
}

.button:hover {
    transform: scale(1.05);
    background: #39ff14;
    color: #000;
}

/* 提示信息样式 */
.notice {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: rgba(57, 255, 20, 0.8);
    color: #000;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: bold;
    animation: slideIn 0.5s ease-out;
}

@keyframes slideIn {
    from { opacity: 0; transform: translateX(100%); }
    to { opacity: 1; transform: translateX(0); }
}

/* 响应式设计 */
@media (max-width: 1440px) {
    header h1 {
        font-size: 2.2em;
    }

    .section h2 {
        font-size: 1.6em;
    }
}

@media (max-width: 1200px) {
    .main-content {
        padding: 30px 15px;
    }
}

@media (max-width: 1024px) {
    nav a {
        margin: 0 10px;
        font-size: 0.9em;
    }

    .section h2 {
        font-size: 1.4em;
    }
}

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

    nav {
        flex-direction: column;
    }

    nav a {
        margin: 5px 0;
    }

    .section {
        padding: 15px;
    }

    .article {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 1.5em;
    }

    .section h2 {
        font-size: 1.2em;
    }

    .article h2 {
        font-size: 1.5em;
    }

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

@media (max-width: 320px) {
    header h1 {
        font-size: 1.2em;
    }

    nav a {
        font-size: 0.8em;
    }

    .section h2 {
        font-size: 1em;
    }

    .article h2 {
        font-size: 1.2em;
    }

    .button {
        padding: 6px 12px;
        font-size: 0.8em;
    }
}

