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

body {
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(135deg, #0f2027, #203a43, #2c5364);
    color: #ffffff;
    line-height: 1.6;
    padding: 20px;
}

/* 标题样式 */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Orbitron', sans-serif;
    color: #00aaff;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
    margin-bottom: 15px;
}

h2 {
    font-size: 2em;
}

h3 {
    font-size: 1.75em;
}

h4 {
    font-size: 1.5em;
}

/* 段落样式 */
p {
    margin-bottom: 15px;
    font-size: 1em;
    color: #ffffff;
}

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

a:hover {
    color: #00aaff;
}

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

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

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

th, td {
    border: 1px solid #ffffff;
    padding: 10px;
    text-align: left;
}

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

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

/* 按钮样式 */
button {
    padding: 10px 20px;
    background-color: #00aaff;
    color: #ffffff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: transform 0.5s ease, background-color 0.3s ease;
}

button:hover {
    transform: rotateY(180deg);
    background-color: #ff4081;
}

button:active {
    transform: scale(0.95);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
}

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

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

.layer {
    position: relative;
    padding: 20px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

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

.navbar a {
    margin-right: 15px;
    color: #ffffff;
}

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

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

@media (max-width: 1024px) {
    h2 {
        font-size: 1.8em;
    }
}

@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        align-items: flex-start;
    }

    h3 {
        font-size: 1.5em;
    }

    pre {
        font-size: 0.9em;
    }
}

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

    h1 {
        font-size: 2em;
    }

    h4 {
        font-size: 1.2em;
    }

    button {
        width: 100%;
        padding: 12px 0;
    }
}

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

    p {
        font-size: 0.9em;
    }

    table, th, td {
        font-size: 0.8em;
    }
}

/* 动画效果 */
@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.icon {
    display: inline-block;
    width: 50px;
    height: 50px;
    background-image: url('https://images.gptkong.com/demo/sample1.png');
    animation: spin 2s linear infinite;
}

/* 提示信息样式 */
.reference-note {
    background: rgba(255, 255, 255, 0.1);
    padding: 10px;
    border-left: 5px solid #00aaff;
    margin-bottom: 20px;
    border-radius: 3px;
}

