/* 链接展示区域 */
.alm-links-display {
    margin: 2rem 0;
}

.alm-category-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.alm-tab {
    padding: 0.5rem 1rem;
    background-color: #f0f0f0;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.alm-tab.active {
    background-color: #3498db;
    color: white;
}

.alm-all-links,
.alm-category-section {
    margin-bottom: 2rem;
}

.alm-category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.alm-category-description {
    margin-bottom: 1rem;
    padding: 0.75rem;
    background-color: #f9f9f9;
    border-radius: 4px;
}

.alm-link-grid {
    display: grid;
    gap: 1rem;
}

.alm-link-card {
    background-color: white;
    border: 1px solid #eaeaea;
    border-radius: 6px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.alm-link-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.alm-link-card-inner {
    display: flex;
    align-items: center;
    padding: 1rem;
    gap: 1rem;
}

.alm-link-icon {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    border-radius: 50%;
    overflow: hidden;
    background-color: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.alm-link-icon img {
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
}

.alm-link-name {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.alm-link-desc {
    font-size: 0.9rem;
    color: #666;
}

.alm-empty-state,
.alm-empty-category {
    text-align: center;
    padding: 2rem;
    border: 2px dashed #eaeaea;
    border-radius: 8px;
}

/* 模态框样式 */
.alm-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.alm-modal.active {
    opacity: 1;
}

.alm-modal-content {
    background-color: #fff;
    margin: 10% auto;
    padding: 1.5rem;
    border-radius: 0.5rem;
    width: 90%;
    max-width: 500px;
    position: relative;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transform: translateY(-20px);
    transition: transform 0.3s ease;
}

.alm-modal.active .alm-modal-content {
    transform: translateY(0);
}

.alm-close {
    color: #aaa;
    float: right;
    font-size: 1.5rem;
    font-weight: bold;
    cursor: pointer;
}

.alm-close:hover,
.alm-close:focus {
    color: black;
    text-decoration: none;
}

.alm-modal-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    justify-content: center;
}

/* 表单样式 */
.alm-link-submit-form {
    margin-top: 1rem;
}

.alm-form-group {
    margin-bottom: 1rem;
}

.alm-form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.alm-form-control {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
}

.alm-file-upload {
    position: relative;
    display: inline-block;
    margin-top: 0.5rem;
}

.alm-file-upload input[type="file"] {
    position: absolute;
    left: 0;
    top: 0;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.alm-file-upload label {
    background-color: #f0f0f0;
    color: #333;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    display: inline-block;
}

.alm-help-block {
    font-size: 0.9rem;
    color: #666;
    margin-top: 0.3rem;
}

.alm-icon-form-group {
    display: flex;
    gap: 0.5rem;
}

.alm-btn {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.alm-btn-primary {
    background-color: #3498db;
    color: white;
}

.alm-btn-primary:hover {
    background-color: #2980b9;
}

.alm-btn-secondary {
    background-color: #f0f0f0;
    color: #333;
}

.alm-btn-secondary:hover {
    background-color: #e0e0e0;
}

.alm-captcha {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.alm-captcha-input {
    width: 100px;
}

.alm-message {
    padding: 0.75rem;
    margin-bottom: 1rem;
    border-radius: 4px;
    transition: opacity 0.3s ease;
}

.alm-success-message {
    background-color: #d4edda;
    color: #155724;
}

.alm-error-message {
    background-color: #f8d7da;
    color: #721c24;
}