
/* 全局样式 */
body {
    margin: 0;
    padding: 0;
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(135deg, #0f2027, #203a43, #2c5364);
    color: #ffffff;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* 导航栏样式 */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 250px;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-right: 1px solid rgba(255, 255, 255, 0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 60px;
    transition: all 0.3s ease;
}

.navbar a {
    color: #ffffff;
    text-decoration: none;
    margin: 20px 0;
    font-size: 18px;
    position: relative;
    transition: color 0.3s ease;
}
.navbar a:hover {
    color: #ffa500;
}

.navbar .hover-button {
    position: relative;
    background-color: #ffa500;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: auto;
    margin-bottom: 20px;
}
.navbar .hover-button::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.navbar .hover-button:hover::after {
    opacity: 1;
}

/* 主内容区域 */
.main-content {
    margin-left: 250px;
    padding: 20px;
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(5px);
    overflow-y: auto;
}

/* 标题样式 */
.header {
    text-align: center;
    padding: 40px 0 20px 0;
}
.header h1 {
    font-size: 48px;
    font-weight: bold;
    background: linear-gradient(90deg, #ff7e5f, #feb47b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.header h2 {
    font-size: 24px;
    color: #cccccc;
    margin-top: 10px;
}

/* 示例展示 */
.example-section {
    margin-top: 40px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}
.example-section h2 {
    color: #ffa500;
    margin-bottom: 20px;
}
.example-section pre {
    background: #1e1e1e;
    padding: 15px;
    border-radius: 8px;
    overflow-x: auto;
}
.example-section code {
    color: #d4d4d4;
    font-family: 'Courier New', Courier, monospace;
}
.example-section img {
    width: 100%;
    max-width: 320px;
    margin: 10px;
    border-radius: 8px;
}

/* 卡片样式 */
.card-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    padding: 20px 0;
}
.card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 20px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 60px rgba(0, 0, 0, 0.3);
}
.card img {
    width: 100%;
    border-radius: 8px;
}

.card .card-title {
    font-size: 20px;
    margin-top: 15px;
    color: #ffa500;
}

.card .card-description {
    margin-top: 10px;
    font-size: 16px;
    color: #dddddd;
}

/* 动态背景效果 */
@keyframes aurora-move {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}
body {
    background: radial-gradient(circle, rgb(0, 123, 255), transparent);
    animation: aurora-move 15s linear infinite;
}

/* 响应式设计 */
@media (max-width: 1440px) {
    .navbar {
        width: 200px;
    }
    .header h1 {
        font-size: 42px;
    }
}

@media (max-width: 1200px) {
    .navbar {
        width: 180px;
    }
    .header h1 {
        font-size: 36px;
    }
}

@media (max-width: 1024px) {
    .navbar {
        width: 160px;
    }
    .card-container {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}

@media (max-width: 768px) {
    .navbar {
        width: 140px;
    }
    .header h1 {
        font-size: 30px;
    }
    .card-container {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
}

@media (max-width: 480px) {
    .navbar {
        width: 60px;
    }
    .navbar a {
        font-size: 14px;
        display: none;
    }
    .navbar .hover-button {
        display: none;
    }
    .header h1 {
        font-size: 24px;
    }
    .card-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 320px) {
    .navbar {
        display: none;
    }
    .main-content {
        margin-left: 0;
    }
    .header h1 {
        font-size: 20px;
    }
}

