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

body {
    font-family: 'Roboto', sans-serif;
    background: radial-gradient(circle, rgba(0, 4, 46, 1) 0%, rgba(28, 181, 224, 0) 70%);
    color: #ffffff;
    overflow-x: hidden;
}

.container {
    display: flex;
    flex-direction: row;
    min-height: 100vh;
    padding: 20px;
}

/* 左侧导航栏 */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 200px;
    height: 100%;
    background: rgba(128, 0, 128, 0.7);
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 50px;
}

.navbar a {
    color: #00FF7F;
    text-decoration: none;
    margin: 20px 0;
    font-size: 18px;
    transition: all 0.3s ease;
}

.navbar a:hover {
    color: #7FFFD4;
    transform: scale(1.1);
}

/* 主内容区 */
.main-content {
    margin-left: 220px;
    flex: 1;
    padding: 40px;
    backdrop-filter: blur(5px);
}

.header {
    text-align: center;
    margin-bottom: 40px;
}

.header h1 {
    font-size: 48px;
    color: #FF69B4;
    text-shadow: 2px 2px 10px rgba(255, 105, 180, 0.7);
}

.sub-header {
    font-size: 24px;
    color: #E6E6FA;
    margin-top: 10px;
}

/* 玻璃拟态卡片 */
.glass-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    padding: 30px;
    margin-bottom: 40px;
}

.glass-card h2 {
    font-size: 32px;
    color: #FFD700;
    margin-bottom: 20px;
}

.glass-card p {
    font-size: 18px;
    line-height: 1.6;
    color: #F0F8FF;
}

/* 示例展示区 */
.sample-display {
    margin-top: 20px;
}

.sample-display h3 {
    font-size: 24px;
    color: #7B68EE;
    margin-bottom: 15px;
}

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

.sample-display code {
    color: #00FA9A;
    font-family: 'Courier New', Courier, monospace;
    display: block;
}

/* 图文并茂 */
.image-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    margin-top: 30px;
}

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

.image-gallery img:hover {
    transform: scale(1.05);
}

/* 按钮样式 */
.button {
    display: inline-block;
    padding: 10px 20px;
    background: linear-gradient(45deg, #00FFFF, #FF00FF);
    border: none;
    border-radius: 30px;
    color: #000000;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.button:hover {
    box-shadow: 0 0 20px rgba(255, 105, 180, 0.8);
    transform: scale(1.1);
}

/* 动画效果 */
@keyframes aurora-move {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.background-animate {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgb(255, 87, 34), transparent);
    animation: aurora-move 15s linear infinite;
    z-index: -1;
}

/* 响应式设计 */
@media (max-width: 1440px) {
    .container {
        padding: 15px;
    }
}

@media (max-width: 1200px) {
    .navbar {
        width: 180px;
    }
    .navbar a {
        font-size: 16px;
    }
    .main-content {
        margin-left: 200px;
        padding: 30px;
    }
    .header h1 {
        font-size: 40px;
    }
}

@media (max-width: 1024px) {
    .image-gallery {
        justify-content: space-around;
    }
}

@media (max-width: 768px) {
    .navbar {
        width: 160px;
    }
    .main-content {
        margin-left: 180px;
        padding: 20px;
    }
    .header h1 {
        font-size: 32px;
    }
    .header .sub-header {
        font-size: 20px;
    }
    .glass-card h2 {
        font-size: 28px;
    }
    .glass-card p {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .navbar {
        width: 140px;
    }
    .navbar a {
        font-size: 14px;
    }
    .main-content {
        margin-left: 160px;
        padding: 15px;
    }
    .header h1 {
        font-size: 24px;
    }
    .glass-card {
        padding: 20px;
    }
    .button {
        padding: 8px 16px;
        font-size: 14px;
    }
}

@media (max-width: 320px) {
    .navbar {
        display: none;
    }
    .main-content {
        margin-left: 0;
        padding: 10px;
    }
    .header h1 {
        font-size: 20px;
    }
    .glass-card h2 {
        font-size: 24px;
    }
    .glass-card p {
        font-size: 14px;
    }
    .image-gallery img {
        width: 100px;
        height: 100px;
    }
}

/* 提示信息样式 */
.reference-note {
    text-align: center;
    margin-top: 50px;
    font-size: 18px;
    color: #FFD700;
    animation: fadeIn 3s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

