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

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: #ffffff;
    background: linear-gradient(135deg, #0f2027, #203a43, #2c5364);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
}

/* 导航栏设计 */
.navbar {
    width: 100%;
    max-width: 1200px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 15px 30px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.navbar a {
    color: #ffffff;
    text-decoration: none;
    margin: 0 15px;
    position: relative;
    transition: all 0.3s ease;
}

.navbar a::after {
    content: '';
    position: absolute;
    width: 0%;
    height: 2px;
    background: linear-gradient(to right, #ff9a00, #ff7e00);
    left: 0;
    bottom: -5px;
    transition: width 0.3s;
}

.navbar a:hover::after {
    width: 100%;
}

.navbar a:hover {
    color: #ff9a00;
}

/* 主容器设置 */
.container {
    width: 100%;
    max-width: 1200px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

/* 玻璃拟态卡片样式 */
.glass-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.37);
    padding: 20px;
    position: relative;
    overflow: hidden;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, rgba(255,255,255,0.1), rgba(255,255,255,0));
    animation: aurora-move 15s linear infinite;
    z-index: 0;
}

.glass-card > * {
    position: relative;
    z-index: 1;
}

/* 动态背景波浪动画 */
.background-wave {
    position: absolute;
    top: 0;
    left: 0;
    width: 200%;
    height: 200%;
    background: linear-gradient(to bottom, #203a43, #0f2027);
    z-index: -2;
    animation: wave-animation 10s infinite alternate;
}

/* 文章样式 */
article {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.37);
    color: #ffffff;
}

article h2 {
    font-size: 2em;
    margin-bottom: 20px;
    text-align: center;
    color: #ff9a00;
}

article h3 {
    font-size: 1.5em;
    margin: 20px 0 10px;
    color: #ff7e00;
}

article p {
    margin-bottom: 15px;
    line-height: 1.8;
}

article pre {
    background: rgba(0, 0, 0, 0.5);
    padding: 15px;
    border-radius: 10px;
    overflow-x: auto;
    margin-bottom: 15px;
}

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

/* 示例展示样式 */
.example-display {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.37);
    color: #ffffff;
    margin-top: 50px;
    position: relative;
}

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

.example-display pre {
    background: rgba(0, 0, 0, 0.6);
    padding: 15px;
    border-radius: 10px;
    overflow-x: auto;
}

.example-display code {
    font-family: 'Courier New', Courier, monospace;
    color: #00ffea;
}

/* 按钮样式 */
.button {
    position: relative;
    overflow: hidden;
    background: linear-gradient(to right, #ff9a00, #ff7e00);
    color: white;
    border: none;
    padding: 15px 30px;
    cursor: pointer;
    border-radius: 30px;
    font-size: 1em;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 154, 0, 0.4);
}

.button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: all 0.5s ease;
}

.button:hover::before {
    width: 300px;
    height: 300px;
    opacity: 1;
}

.button:hover {
    color: #ffffff;
    box-shadow: 0 6px 20px rgba(255, 126, 0, 0.6);
}

/* 响应式设计 */
@media (min-width: 320px) {
    .container {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 480px) {
    .container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 768px) {
    .container {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1024px) {
    .container {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 1200px) {
    .container {
        grid-template-columns: repeat(5, 1fr);
    }
}

@media (min-width: 1440px) {
    .container {
        grid-template-columns: repeat(6, 1fr);
    }
}

/* 关键帧动画 */
@keyframes wave-animation {
    from {
        background-position: 0 0;
    }
    to {
        background-position: 100px 0;
    }
}

@keyframes aurora-move {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* 图片样式 */
.image-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.image-gallery img {
    width: 100%;
    max-width: 320px;
    height: auto;
    border-radius: 10px;
    object-fit: cover;
}

/* 提示文本样式 */
.reference-note {
    text-align: center;
    margin-top: 40px;
    font-size: 1.2em;
    color: #ff9a00;
}

