body {
    background-color: #f8f9fa;
    font-family: "Segoe UI", "Microsoft YaHei", sans-serif;
}

.hover-effect {
    transition: transform 0.2s;
    cursor: pointer;
}

.hover-effect:hover {
    transform: translateY(-5px);
    box-shadow: 0 .5rem 1rem rgba(0,0,0,.15)!important;
}

/* 适配富文本中的图片 */
.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
    margin: 10px 0;
}

.card {
    border-radius: 10px;
}

.site-card {
    border: 1px solid #e9ecef;
    border-radius: 10px;
    background: #fff;
    transition: all 0.2s ease;
}

.site-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 .5rem 1rem rgba(0,0,0,.12);
}

.site-url {
    word-break: break-all;
}

.btn-open {
    background: linear-gradient(135deg, #3b82f6, #0ea5e9);
    color: #fff;
    border: none;
    padding: 6px 12px;
    font-size: 0.85rem;
    border-radius: 999px;
    white-space: nowrap;
}

.btn-open:hover {
    color: #fff;
    opacity: 0.9;
}

.back-home {
    display: inline-flex;
    width: 36px;
    height: 36px;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: #fff;
    border: 1px solid #e9ecef;
    color: #0d6efd;
    text-decoration: none;
    box-shadow: 0 .35rem .8rem rgba(0, 0, 0, .06);
}

.back-home:hover {
    color: #0b5ed7;
}

.top-banner {
    position: relative;
    width: 100%;
    max-height: 260px;
    overflow: hidden;
    background: #f1f3f5;
}

.top-banner-img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    display: block;
}

.top-banner-title {
    position: absolute;
    left: 20px;
    bottom: 16px;
    color: #fff;
    font-size: 1.5rem;
    font-weight: 700;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.45);
}

.top-banner-home {
    position: absolute;
    left: 16px;
    top: 16px;
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.9);
    color: #0d6efd;
    text-decoration: none;
    box-shadow: 0 .35rem .8rem rgba(0, 0, 0, .08);
}

.top-banner-home:hover {
    color: #0b5ed7;
}

.admin-topbar {
    background: #fff;
    border-bottom: 1px solid #e9ecef;
    padding: 8px 0;
}

.admin-topbar .admin-user {
    font-weight: 600;
}

.admin-topbar .status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22c55e;
    display: inline-block;
}

.icon-preview {
    width: 72px;
    height: 72px;
    border-radius: 12px;
    background: #f1f3f5;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #0d6efd;
}

.icon-preview i {
    font-size: 34px;
}

.site-admin-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.site-admin-card {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 14px;
    padding: 18px 20px;
    box-shadow: 0 .35rem .8rem rgba(0, 0, 0, .06);
}

.site-admin-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0d6efd;
    font-size: 24px;
}

.site-admin-title {
    font-weight: 600;
    font-size: 1.05rem;
}

.site-admin-url a {
    color: #0d6efd;
    text-decoration: none;
}

.site-admin-url a:hover {
    text-decoration: underline;
}

.site-admin-desc {
    margin-top: 6px;
}

.site-admin-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 8px;
    color: #6c757d;
    font-size: 0.9rem;
}

.site-admin-actions .btn {
    min-width: 76px;
}

.admin-menu .accordion-button {
    font-weight: 600;
}

.site-admin-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    justify-content: flex-end;
}

.site-sort-form .input-group-text {
    background: #f8f9fa;
}

.site-sort-form .form-control {
    text-align: center;
}

.site-move-form .btn {
    min-width: 38px;
}

.admin-menu .sub-menu-item {
    padding-left: 4em;
}

.admin-menu .sub-menu-item i {
    width: 1.25em;
    text-align: center;
}