.hy-12nova-container {
    width: 100%;
    /* max-width: 1200px; */
    /* margin: 20px auto; */
    padding: 15px;
    padding-bottom: 20px;
    background: var(--main-bg-color);
    border-radius: 8px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
}

.hy-12nova-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    /* padding-bottom: 10px; */
    gap: 15px;
}

.hy-12nova-tabs {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.hy-12nova-tabs button {
    padding: 5px 10px;
    border: none;
    cursor: pointer;
    background: #ddd;
    border-radius: 5px;
    white-space: nowrap;
}

.hy-12nova-tabs button.hy-12nova-active {
    background: #527ef6;
    color: white;
}

.hy-12nova-btn-group {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.hy-12nova-btn-group button {
    background: #527ef6;
    color: white;
    border: none;
    padding: 5px 10px;
    cursor: pointer;
    border-radius: 5px;
    white-space: nowrap;
}

hr {
    margin-top: 0.5rem;
    margin-bottom: 0.3rem;
}

.recent-intro {
    margin: 0;
    font-size: 12px;
    margin-bottom: 0.8rem;
}

.hy-12nova-site-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
    padding-top: 5px;
    width: 100%;
}

.hy-12nova-site-item {
    width: 100%;
    min-width: 80px;
    background: white;
    padding: 8px 10px;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--main-bg-color);
    border: 1px solid #dce1e8;
    box-shadow: inset 0 0 25px 0 var(--muted-shadow), 0 0 0 0 var(--main-shadow);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    box-sizing: border-box;
}

.hy-12nova-site-item a {
    flex: 1;
    text-decoration: none;
    /*color: black; */
    overflow: hidden;
    text-overflow: ellipsis;
    padding-right: 10px;
    padding-left: 5px;
}

.hy-12nova-site-item button {
    background: none;
    border: none;
    cursor: pointer;
    color: red;
    font-size: 16px;
    flex-shrink: 0;
}

/* 响应式优化 */
@media (min-width: 1200px) {
    .hy-12nova-site-list {
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    }
}

@media (max-width: 480px) {
    .hy-12nova-header {
        flex-direction: column;
        align-items: flex-start;
    }
    .hy-12nova-btn-group {
        width: 100%;
        justify-content: flex-start;
    }
    .hy-12nova-site-list {
        grid-template-columns: 1fr;
    }
}

/* 弹窗样式 */
.hy-12nova-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.hy-12nova-modal-content {
    background: white;
    padding: 25px;
    border-radius: 8px;
    min-width: 400px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    position: relative;
}

.hy-12nova-modal-header {
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.hy-12nova-modal-title {
    margin: 0;
    font-size: 1.2em;
}

.hy-12nova-form-group {
    margin-bottom: 15px;
}

.hy-12nova-form-group label {
    display: block;
    margin-bottom: 5px;
    color: #666;
}

.hy-12nova-form-group input {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
}

.hy-12nova-modal-actions {
    margin-top: 20px;
    text-align: right;
}

.hy-12nova-modal-actions button {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin-left: 10px;
}

.hy-12nova-btn-confirm {
    background: #527ef6;
    color: white;
}

.hy-12nova-btn-cancel {
    background: #ddd;
    color: #666;
}

.hy-12nova-category-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px;
    margin: 5px 0;
    background: #f8f9fa;
    border-radius: 4px;
}

.hy-12nova-category-actions button {
    margin-left: 8px;
    padding: 4px 8px;
}

.hy-12nova-danger-btn {
    background: #ff4444 !important;
    color: white;
}

#hy-12nova-categorySelect,
#hy-12nova-target-category {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-color: #f8f9fa;
    border: 1px solid #ced4da;
    border-radius: 4px;
    padding: 8px 12px;
    font-size: 16px;
    color: #495057;
    cursor: pointer;
}

#hy-12nova-categorySelect:focus,
#hy-12nova-target-category:focus {
    border-color: #80bdff;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* 中等设备（平板，768px 及以上） */
@media (min-width: 768px) and (max-width: 991.98px) {
    .hy-12nova-site-list {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* 超小设备（手机，小于 576px） */
@media (max-width: 575.98px) {
    .hy-12nova-container {
        padding: 0.5rem;
    }
    .hy-12nova-site-list {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
    .hy-12nova-modal-content {
        min-width: 60%;
    }
}

.hy-12nova-site-item:hover {
    color: red;
}    