
/* Reset default browser styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 设置全局字体和背景 */
body {
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(135deg, #1e90ff, #8a2be2, #00ced1);
    color: #ffffff;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* 标题样式 */
header {
    text-align: center;
    padding: 50px 20px;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
}

header h1 {
    font-size: 2.5em;
    margin-bottom: 20px;
    background: linear-gradient(90deg, #ffffff, #ffd700);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

header p {
    font-size: 1.2em;
    color: #f0f0f0;
}

/* 导航栏样式 */
nav {
    display: flex;
    justify-content: center;
    background: rgba(0, 0, 0, 0.3);
    padding: 15px 0;
}

nav a {
    color: #ffffff;
    text-decoration: none;
    margin: 0 15px;
    font-size: 1em;
    position: relative;
    transition: color 0.3s ease;
}

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

nav a:hover {
    color: #ffd700;
}

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

/* 主内容区布局 */
main {
    flex: 1;
    padding: 40px 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    background: rgba(255, 255, 255, 0.1);
}

/* 文章样式 */
article {
    flex: 2;
    min-width: 300px;
    background: rgba(0, 0, 0, 0.6);
    padding: 20px;
    border-radius: 10px;
    backdrop-filter: blur(5px);
}

article h2, article h3 {
    color: #ffd700;
    margin-bottom: 15px;
}

article p {
    margin-bottom: 15px;
}

article pre {
    background: #2f2f2f;
    padding: 10px;
    border-radius: 5px;
    overflow-x: auto;
    margin-bottom: 15px;
}

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

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

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

table th {
    background: #333;
}

table tr:nth-child(even) {
    background: #2a2a2a;
}

/* 示例数据展示区 */
.section-data {
    flex: 1;
    min-width: 300px;
    background: rgba(0, 0, 0, 0.6);
    padding: 20px;
    border-radius: 10px;
    backdrop-filter: blur(5px);
}

.section-data h2 {
    color: #ffd700;
    margin-bottom: 15px;
    text-align: center;
}

.section-data ul {
    list-style: none;
}

.section-data li {
    background: linear-gradient(45deg, #1e90ff, #00ced1);
    margin-bottom: 10px;
    padding: 10px;
    border-radius: 5px;
}

/* 图片画廊 */
.gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.gallery img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 5px;
    transition: transform 0.3s ease;
}

.gallery img:hover {
    transform: scale(1.1);
}

/* 页脚样式 */
footer {
    text-align: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
}

footer p {
    font-size: 0.9em;
    color: #f0f0f0;
}

/* 提示信息 */
.alert {
    position: fixed;
    top: 10px;
    right: 10px;
    background: #ff4500;
    color: #ffffff;
    padding: 10px 20px;
    border-radius: 5px;
    display: none;
    z-index: 1000;
}

/* 动画效果 */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.animate-fadeIn {
    animation: fadeIn 2s ease-in-out;
}

/* 响应式布局 */
@media (max-width: 1440px) {
    header h1 {
        font-size: 2em;
    }

    nav a {
        margin: 0 10px;
        font-size: 0.9em;
    }

    main {
        padding: 30px 15px;
    }
}

@media (max-width: 1200px) {
    article, .section-data {
        flex: 1 1 45%;
    }
}

@media (max-width: 1024px) {
    main {
        padding: 20px 10px;
    }

    article, .section-data {
        flex: 1 1 100%;
    }
}

@media (max-width: 768px) {
    header {
        padding: 30px 15px;
    }

    header h1 {
        font-size: 1.8em;
    }

    nav a {
        margin: 0 8px;
        font-size: 0.8em;
    }

    .gallery img {
        width: 80px;
        height: 80px;
    }
}

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

    nav a {
        margin: 0 5px;
        font-size: 0.7em;
    }

    .gallery img {
        width: 70px;
        height: 70px;
    }
}

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

    nav a {
        margin: 0 3px;
        font-size: 0.6em;
    }

    .gallery img {
        width: 60px;
        height: 60px;
    }
}

/* 按钮样式 */
button {
    background: linear-gradient(to right, #1e90ff, #8a2be2);
    border: none;
    padding: 10px 20px;
    color: #ffffff;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.5s ease;
}

button:hover {
    background: linear-gradient(to right, #8a2be2, #1e90ff);
}

/* 链接样式 */
a.nofollow {
    text-decoration: none;
    color: #ffd700;
}

a.nofollow:hover {
    text-decoration: underline;
}

/* 输入框禁用样式 */
input, textarea {
    display: none;
}

/* 代码块样式 */
pre code {
    display: block;
    white-space: pre-wrap;
    word-wrap: break-word;
    background: #2f2f2f;
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
    font-family: 'Courier New', Courier, monospace;
    color: #f8f8f2;
}

/* 表单元素样式（非必需，但预防出现输入框） */
form {
    display: none;
}

