
/* 基本样式 */
body {
    margin: 0;
    padding: 0;
    font-family: 'Roboto', sans-serif;
    background: radial-gradient(circle, #001f3f, transparent);
    color: #ffffff;
    line-height: 1.6;
    overflow-x: hidden;
}

/* 全局链接样式 */
a {
    color: #00bfff;
    text-decoration: none;
    transition: color 0.3s ease;
}
a:hover {
    color: #8a2be2;
}

/* 头部导航栏 */
header {
    background: rgba(0, 23, 51, 0.9);
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 50px;
}
.navbar .logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #00bfff;
}
.navbar ul {
    list-style: none;
    display: flex;
    gap: 20px;
}
.navbar ul li a {
    font-size: 1rem;
    transition: color 0.3s ease;
}
.navbar ul li a:hover {
    color: #8a2be2;
}

/* 主要内容区 */
.main {
    padding: 100px 50px 50px 50px;
    background: linear-gradient(135deg, #00083e, #1e1e4d);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.main h1 {
    font-size: 3rem;
    font-weight: bold;
    color: #00bfff;
    margin-bottom: 20px;
    text-align: center;
}
.main p {
    max-width: 800px;
    text-align: center;
    margin-bottom: 40px;
}

/* 示例展示 */
.sample-display {
    background: rgba(30, 30, 77, 0.8);
    padding: 30px;
    border-radius: 10px;
    width: 100%;
    max-width: 900px;
    margin-bottom: 50px;
}
.sample-display h2 {
    color: #8a2be2;
    margin-bottom: 20px;
}
.sample-display article {
    font-size: 1rem;
}
.sample-display pre {
    background: #1e1e4d;
    padding: 15px;
    border-radius: 5px;
    overflow: auto;
}
.sample-display code {
    color: #00bfff;
    font-family: 'Courier New', Courier, monospace;
}
.sample-display table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}
.sample-display table, .sample-display th, .sample-display td {
    border: 1px solid #8a2be2;
}
.sample-display th, .sample-display td {
    padding: 10px;
    text-align: left;
}
.sample-display th {
    background: #00bfff;
    color: #ffffff;
}
.sample-display td {
    background: #1e1e4d;
}
.sample-display img {
    width: 100%;
    max-width: 320px;
    height: auto;
    margin: 10px;
    border-radius: 5px;
}

/* 按钮样式 */
.button {
    background: #00bfff;
    border: none;
    padding: 15px 30px;
    color: #ffffff;
    font-size: 1rem;
    border-radius: 5px;
    cursor: pointer;
    transition: transform 0.3s ease-in-out, background 0.3s ease;
}
.button:hover {
    background: linear-gradient(90deg, #00bfff, #8a2be2);
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.5);
}
.button:active {
    transform: scale(0.95);
}

/* 图标样式 */
.icon {
    width: 50px;
    height: 50px;
    fill: #ffffff;
    stroke: #00bfff;
    stroke-width: 2;
    transition: transform 0.3s ease;
}
.icon:hover {
    transform: scale(1.2);
}

/* 代码块样式 */
.code-block {
    background: #1e1e4d;
    padding: 20px;
    border-radius: 5px;
    overflow: auto;
    font-family: 'Courier New', Courier, monospace;
    margin-bottom: 30px;
}
.code-block code {
    color: #00bfff;
}

/* 底部信息栏 */
footer {
    background: rgba(0, 23, 51, 0.9);
    padding: 20px 50px;
    text-align: center;
    color: #ffffff;
    position: relative;
    bottom: 0;
    width: 100%;
}
.footer-links {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 10px;
}
.footer-links li a {
    color: #00bfff;
    transition: color 0.3s ease;
}
.footer-links li a:hover {
    color: #8a2be2;
}

/* 提示信息 */
.reference-note {
    margin-top: 20px;
    font-size: 0.9rem;
    color: #cccccc;
}

/* 响应式设计 */
@media (max-width: 1440px) {
    .navbar {
        padding: 15px 30px;
    }
    .main {
        padding: 100px 30px 30px 30px;
    }
}
@media (max-width: 1200px) {
    .navbar ul {
        gap: 15px;
    }
    .main h1 {
        font-size: 2.5rem;
    }
    .main p {
        max-width: 700px;
    }
}
@media (max-width: 1024px) {
    .navbar {
        flex-direction: column;
        align-items: flex-start;
    }
    .navbar ul {
        flex-direction: column;
        width: 100%;
    }
    .navbar ul li {
        width: 100%;
        text-align: left;
        padding: 10px 0;
    }
    .main h1 {
        font-size: 2rem;
    }
    .sample-display {
        padding: 20px;
    }
}
@media (max-width: 768px) {
    .navbar {
        padding: 10px 20px;
    }
    .navbar .logo {
        font-size: 1.2rem;
    }
    .navbar ul {
        display: none;
    }
    .main {
        padding: 100px 20px 20px 20px;
    }
    .main h1 {
        font-size: 1.8rem;
    }
    .sample-display {
        padding: 15px;
    }
    .button {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}
@media (max-width: 480px) {
    .navbar {
        padding: 10px 15px;
    }
    .main h1 {
        font-size: 1.5rem;
    }
    .sample-display h2 {
        font-size: 1.2rem;
    }
    .sample-display table, .sample-display th, .sample-display td {
        font-size: 0.9rem;
    }
}
@media (max-width: 320px) {
    .navbar {
        padding: 8px 10px;
    }
    .navbar .logo {
        font-size: 1rem;
    }
    .main h1 {
        font-size: 1.2rem;
    }
    .sample-display h2 {
        font-size: 1rem;
    }
    .sample-display table, .sample-display th, .sample-display td {
        font-size: 0.8rem;
    }
    .button {
        padding: 8px 15px;
        font-size: 0.8rem;
    }
}

