
/* 基础样式设置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: #ffffff;
    line-height: 1.6;
    overflow-x: hidden;
}

/* 容器 */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 0;
}

/* 标题样式 */
h1, h2, h3, h4 {
    font-family: 'Helvetica Neue', sans-serif;
    font-weight: bold;
    color: #ffffff;
    margin-bottom: 20px;
    text-align: center;
}

h1 {
    font-size: 3em;
    background: linear-gradient(90deg, #00d2ff, #928dab);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

h2 {
    font-size: 2.5em;
    margin-top: 60px;
}

h3 {
    font-size: 2em;
    margin-top: 40px;
}

h4 {
    font-size: 1.5em;
    margin-top: 30px;
}

/* 段落样式 */
p {
    font-size: 1.1em;
    margin-bottom: 20px;
    text-align: justify;
    padding: 0 10px;
}

/* 链接样式 */
a {
    color: #00d2ff;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

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

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

th {
    background: rgba(255, 255, 255, 0.2);
}

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

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

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

/* 按钮样式 */
.button {
    display: inline-block;
    padding: 10px 20px;
    margin: 20px 0;
    background: linear-gradient(45deg, #ff6ec4, #7873f5);
    border: none;
    border-radius: 25px;
    color: #ffffff;
    font-size: 1em;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.button:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* 卡片式设计 */
.card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 20px;
    margin: 20px 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-10px);
}

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

/* 网格布局 */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

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

@media (max-width: 1200px) {
    .container {
        width: 95%;
    }
}

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

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

    .grid {
        grid-template-columns: 1fr;
    }
}

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

    h2 {
        font-size: 1.5em;
    }

    p {
        font-size: 1em;
    }

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

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

    h2 {
        font-size: 1.2em;
    }

    p {
        font-size: 0.9em;
    }

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

/* 背景动画 */
@keyframes gradientAnimation {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

body {
    background: linear-gradient(-45deg, #1e3c72, #2a5298, #00d2ff, #928dab);
    background-size: 400% 400%;
    animation: gradientAnimation 15s ease infinite;
}

/* 导航栏样式 */
.navbar {
    width: 100%;
    padding: 20px 0;
    background: rgba(0, 0, 0, 0.5);
    position: fixed;
    top: 0;
    z-index: 1000;
}

.navbar ul {
    display: flex;
    justify-content: center;
    list-style: none;
}

.navbar li {
    margin: 0 15px;
}

.navbar a {
    color: #ffffff;
    font-size: 1.1em;
    transition: color 0.3s ease;
}

.navbar a:hover {
    color: #00d2ff;
}

/* 响应式图片 */
.responsive-img {
    width: 100%;
    height: auto;
    border-radius: 10px;
}

/* 表单样式（尽管要求中不使用输入框，但保留此样式以备未来使用） */
input, textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 20px;
    border: none;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    font-size: 1em;
}

input:focus, textarea:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.3);
}

/* 卡片内的图标 */
.card-icon {
    font-size: 2em;
    margin-bottom: 10px;
    color: #00d2ff;
}

/* 展示区域样式 */
.showcase {
    padding: 100px 0;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 15px;
}

.showcase h2 {
    margin-bottom: 40px;
}

.showcase pre {
    font-size: 0.9em;
}

/* 示例展示区 */
.example-display {
    background: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 10px;
    margin-top: 40px;
}

.example-display h2 {
    text-align: left;
    margin-bottom: 20px;
    color: #ff6ec4;
}

/* 图文并茂 */
.media {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.media img {
    max-width: 200px;
    margin-right: 20px;
}

.media-text {
    flex: 1;
}

