/* 主容器 */
.material-category-section {
    width: 760px;
    max-width: 760px;
    margin: 0 auto;
    padding: 10px;
    background: #f5f5f5;
    border-radius: 8px;
    font-size: medium;
    color: #666;
    line-height: 1.6;
}

/* 标题 */
.material-category-section h3 {
    color: #078786;
    border-bottom: 1px solid #ddd;
    padding-bottom: 5px;
    margin-bottom: 10px;
    margin-top: 15px;
    font-weight: 500;
    font-size: 16px;
}


/* 消息样式 */
.material-message {
    padding: 15px;
    margin-bottom: 25px;
    border-radius: 4px;
    font-size: 15px;
}

.material-success {
    background: #edf7ed;
    color: #2e7d32;
    border: 1px solid #c8e6c9;
}

.material-error {
    background: #ffebee;
    color: #c62828;
    border: 1px solid #ffcdd2;
}

/* 表格样式 */
.material-application-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 10px;
    background: white;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    font-size: medium;
}

.material-application-table th {
    background: #f0f0f0;
    color: #666;
    font-weight: 500;
    padding: 5px 10px;
    text-align: center;
    font-size: 14px;
}

.material-application-table td {
    padding: 10px 10px;
    font-size: 14px;
    color: #666;
    font-weight: 400;
    padding: 5px 10px;
    text-align: center;
}
.material-application-table td a{
    text-decoration: none;
    color: #666;
}
.material-application-table td a:hover{
    text-decoration: none;
    color: #078786;
}

.material-application-table tr:last-child td {
    border-bottom: none;
}

.material-application-table tr:nth-child(even) {
    background-color: #fafafa;
}

/* 表单组 */
.material-form-group {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}
.material-form-group2 {
    margin-bottom: 20px;
    text-align: right;
}
/* 标签样式 */
.material-form-label {
    flex: 0 0 auto;
    margin-right: 15px;
    font-weight: 400;
    color: #666;
    font-size: 14px;
}


/* 分类选择区域 */
.material-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 15px;
}

.material-category-radio {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 10px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    transition: all 0.2s;
}

.material-category-radio:hover {
    background: white;
    border: 1px solid #078786;
}

.material-category-radio input {
    margin-right: 8px;
}

/* 输入框样式 */
.material-form-input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 15px;
    color: #666;
    transition: border 0.2s;
}

.material-form-input:focus {
    border-color: #666;
    outline: none;
    box-shadow: 0 0 0 2px rgba(34, 113, 177, 0.1);
}


.material-submit-button:hover,
.button.apply-button:hover {
    background: #999 !important;
    transform: translateY(-1px);
}

/* 禁用状态按钮 */
.button.apply-button[disabled] {
    background: #cccccc !important;
    cursor: not-allowed !important;
    opacity: 0.7;
}

/* 错误提示 */
.material-error-text {
    color: #c62828;
    font-size: 13px;
    margin-top: 5px;
    display: none;
}

/* 加载动画 */
.spinner {
    margin-left: 10px;
    visibility: visible;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s linear infinite;
}
.material-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #ccc;
}
 
.parent-cat {
    font-weight: 400;
    color: #078786;
    font-size: 16px;
    border: 0;
}

.post-count {
    color: #666;
    font-size: 14px;
    padding-right: 10px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* 响应式调整 */
@media (max-width: 800px) {
    .material-application-container {
        width: 95%;
        padding: 20px;
    }
    
    .material-application-table {
        display: block;
        overflow-x: auto;
    }
}