/* 全局样式 - 保持不变 */
.nav-card-hover {
    display: block;
    text-decoration: none;
    color: inherit;
    height: 176px;
    border-radius: 12px;
    transition: transform 0.3s, box-shadow 0.3s;
}
.nav-card-hover:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}
.card-base {
    /* 移除硬编码的背景和阴影，以便在 index.html 中使用 Tailwind 玻璃效果 */
    /* background-color: white; */ 
    /* box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); */
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    height: 100%;
    padding: 24px;
}
.card-add {
    background-color: #f1f8ff;
    border: 2px dashed #007bff;
    box-shadow: none;
}
.card-add:hover {
    background-color: #e6f0ff;
}
.link-img-icon {
    max-width: 100px;
    height: 48px;
    width: auto;
    object-fit: contain;
    margin-bottom: 8px;
}
.link-title {
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
    padding: 0 5px;
}
/* 修复文本框聚焦效果 - 新增 */
input:focus, textarea:focus, select:focus {
    box-shadow: 0 0 0 2px rgba(81, 165, 255, 0.801) !important;
    outline: none !important;
}

/* 修复按钮背景色 - 新增 */
.btn-primary {
    background-color: #007bff !important;
    color: white !important;
    padding: 0.5rem 1rem !important;
    border-radius: 0.5rem !important;
    transition: all 0.3s !important;
    width: 100% !important;
    border: none !important;
    cursor: pointer !important;
    font-weight: 500 !important;
    display: block !important;
    text-align: center !important;
    font-size: 1rem !important;
    line-height: 1.5 !important;
}

.btn-primary:hover {
    background-color: #0056b3 !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3) !important;
}
/* 修复卡片悬停显示操作按钮 */
.nav-card-hover {
    position: relative;
}

.nav-card-hover .handle,
.nav-card-hover .absolute.top-2.right-2 {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.nav-card-hover:hover .handle,
.nav-card-hover:hover .absolute.top-2.right-2 {
    opacity: 1;
}

/* 确保按钮可点击 */
.nav-card-hover .handle i,
.nav-card-hover .fa-pen,
.nav-card-hover .fa-trash {
    pointer-events: auto;
    z-index: 20;
}