body {
    background: #f5f7fa;
    color: #111827;
}

.uportal-nav-logo {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    flex: 0 0 auto;
}

.uportal-login-logo {
    width: 88px;
    height: 88px;
    border-radius: 24px;
    filter: drop-shadow(0 12px 22px rgba(14, 165, 233, 0.22));
}

.uportal-nav-slogan {
    color: #64748b;
    font-size: 11px;
    line-height: 1.1;
    margin-top: -1px;
}

nav.bg-white,
aside.bg-white {
    box-shadow: none !important;
    border-color: #e5e7eb;
}

aside nav a {
    border-radius: 8px !important;
    min-height: 40px;
}

aside nav a > span:first-child {
    display: none;
}

nav .text-2xl.mr-2,
nav .text-xl.mr-2 {
    display: none;
}

.fas,
.far,
.fa {
    display: none !important;
}

button:has(.fa-undo)::after {
    content: "重置";
}

button:has(.fa-times)::after {
    content: "关闭";
}

.favorite-btn:has(.fa-heart)::after {
    content: "收藏";
}

.rounded-xl,
.rounded-2xl,
.rounded-lg {
    border-radius: 8px !important;
}

.shadow,
.shadow-sm,
.shadow-md,
.shadow-xl {
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06) !important;
}

.stat-card,
.product-card,
.article-card {
    border: 1px solid #e5e7eb;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}

.stat-card:hover,
.product-card:hover,
.article-card:hover {
    transform: none !important;
    border-color: #cbd5e1;
}

main h2 {
    letter-spacing: 0;
}

button,
input,
select {
    border-radius: 8px !important;
}

.page-subtitle {
    color: #64748b;
}

/* Crawler configuration actions are rendered dynamically, so keep their
   dimensions independent from generated Tailwind utilities and icon fonts. */
.crawler-config-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
}

.crawler-config-actions {
    display: grid;
    grid-template-columns: repeat(5, minmax(48px, auto));
    gap: 6px;
    flex-shrink: 0;
}

.crawler-config-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 48px;
    height: 32px;
    padding: 0 10px;
    border: 1px solid #d1d5db;
    border-radius: 6px !important;
    background: #fff;
    color: #4b5563;
    font-size: 12px;
    font-weight: 500;
    line-height: 1;
    white-space: nowrap;
}

.crawler-config-action:hover {
    border-color: #9ca3af;
    background: #f9fafb;
    color: #111827;
}

.crawler-config-action-primary {
    border-color: #2563eb;
    background: #2563eb;
    color: #fff;
}

.crawler-config-action-primary:hover {
    border-color: #1d4ed8;
    background: #1d4ed8;
    color: #fff;
}

.crawler-config-action-danger {
    color: #dc2626;
}

.crawler-config-action:disabled {
    border-color: #e5e7eb;
    background: #f9fafb;
    color: #9ca3af;
    cursor: not-allowed;
}

@media (max-width: 640px) {
    .crawler-config-card {
        grid-template-columns: minmax(0, 1fr);
    }

    .crawler-config-actions {
        grid-template-columns: repeat(5, minmax(0, 1fr));
        width: 100%;
    }

    .crawler-config-action {
        min-width: 0;
        padding: 0 4px;
    }
}
