/* vLLM Ascend 项目文档通用样式 */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
}

/* 导航栏样式 */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 15px 30px;
    margin-bottom: 30px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.navbar-brand {
    font-size: 1.3rem;
    font-weight: bold;
    color: #667eea;
    text-decoration: none;
}

.navbar-nav {
    display: flex;
    gap: 20px;
    list-style: none;
    flex-wrap: wrap;
}

.navbar-nav a {
    color: #555;
    text-decoration: none;
    padding: 8px 15px;
    border-radius: 20px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.navbar-nav a:hover,
.navbar-nav a.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

/* 页面标题样式 */
.page-header {
    text-align: center;
    color: white;
    margin-bottom: 40px;
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.page-header p {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* 模块卡片样式 */
.module-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 25px;
}

.module-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.3);
}

.module-card h3 {
    color: #667eea;
    font-size: 1.4rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.module-card h3 .icon {
    font-size: 1.6rem;
}

.module-card p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
}

.module-card ul {
    list-style: none;
    padding: 0;
}

.module-card ul li {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
    color: #555;
    display: flex;
    align-items: center;
    gap: 8px;
}

.module-card ul li:last-child {
    border-bottom: none;
}

.module-card ul li::before {
    content: "→";
    color: #667eea;
    font-weight: bold;
}

/* 链接按钮样式 */
.module-link {
    display: inline-block;
    margin-top: 15px;
    padding: 10px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 500;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.module-link:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

/* 代码块样式 */
.code-block {
    background: #1e1e1e;
    color: #d4d4d4;
    border-radius: 10px;
    padding: 20px;
    margin: 20px 0;
    overflow-x: auto;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 0.9rem;
    line-height: 1.5;
}

.code-block .comment {
    color: #6a9955;
}

.code-block .keyword {
    color: #569cd6;
}

.code-block .string {
    color: #ce9178;
}

.code-block .function {
    color: #dcdcaa;
}

/* 信息框样式 */
.info-box {
    background: rgba(102, 126, 234, 0.1);
    border-left: 4px solid #667eea;
    border-radius: 0 10px 10px 0;
    padding: 20px;
    margin: 20px 0;
}

.info-box h4 {
    color: #667eea;
    margin-bottom: 10px;
}

.info-box p {
    color: #555;
    line-height: 1.6;
}

/* 网格布局 */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
}

/* 文件树样式 */
.file-tree {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 0.9rem;
}

.file-tree .folder {
    color: #667eea;
    font-weight: bold;
}

.file-tree .file {
    color: #555;
    margin-left: 20px;
}

/* 页脚样式 */
footer {
    text-align: center;
    color: white;
    margin-top: 40px;
    padding: 20px;
    opacity: 0.8;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        text-align: center;
    }
    
    .navbar-nav {
        justify-content: center;
    }
    
    .page-header h1 {
        font-size: 2rem;
    }
    
    .grid-2,
    .grid-3 {
        grid-template-columns: 1fr;
    }
}