/*
功能简介：
前端CSS文件，负责定义插件前端页面的样式，包括布局、搜索框样式、分类导航、材料列表和响应式设计等。

插件作者：瀚海微澜
插件微信：zhzu6
插件主页：www.zhzux.com
*/

.max-manual-materials-frontend {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.max-manual-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid #eee;
}

.max-manual-header h2 {
    margin: 0;
    color: #23282d;
    font-size: 24px;
}

.max-manual-search {
    display: flex;
    gap: 10px;
}

.max-manual-search input {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    width: 250px;
}

.max-manual-search button {
    padding: 8px 20px;
    background-color: #0073aa;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.max-manual-search button:hover {
    background-color: #005a87;
}

.max-manual-content {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 30px;
}

.max-manual-categories {
    background: #f9f9f9;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.max-manual-categories h3 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #23282d;
    font-size: 18px;
}

.max-manual-categories ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.max-manual-categories li {
    margin-bottom: 8px;
}

.max-manual-categories a {
    display: block;
    padding: 8px 12px;
    color: #0073aa;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.max-manual-categories a:hover, 
.max-manual-categories a.active {
    background-color: #0073aa;
    color: #fff;
}

.max-manual-categories .dashicons {
    margin-right: 8px;
    font-size: 16px;
}

.max-manual-materials-list {
    background: #f9f9f9;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.material-item {
    background: #fff;
    border-radius: 6px;
    padding: 15px;
    margin-bottom: 15px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    transition: transform 0.2s, box-shadow 0.2s;
}

.material-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 3px 6px rgba(0,0,0,0.15);
}

.material-name {
    margin-top: 0;
    margin-bottom: 12px;
    color: #23282d;
    font-size: 20px;
    border-bottom: 1px solid #eee;
    padding-bottom: 8px;
}

.material-info p {
    margin: 8px 0;
    color: #333;
    font-size: 14px;
}

.material-info strong {
    color: #23282d;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .max-manual-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .max-manual-content {
        grid-template-columns: 1fr;
    }
    
    .max-manual-categories ul {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .max-manual-categories li {
        margin-bottom: 0;
    }
    
    .max-manual-categories a {
        white-space: nowrap;
    }
}
