:root {
    --primary-color: #563d7c;
    --secondary-color: #6c757d;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #17a2b8;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
}

[v-cloak] {
    display: none;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
    background-color: #f5f7fa;
}

/* 导航栏样式 */
.bd-navbar {
    min-height: 4rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, .05), inset 0 -1px 0 rgba(0, 0, 0, .1);
    background-color: #fff;
}

.bd-navbar-index {
    min-height: 4rem;
    background-color: var(--primary-color);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, .05), inset 0 -1px 0 rgba(0, 0, 0, .1);
    height: auto;
}

.navbar-brand img {
    transition: transform 0.3s ease;
}

.navbar-brand:hover img {
    transform: scale(1.1);
}

/* 侧边栏样式 */
.bd-sidebar {
    padding: 0;
    background-color: #f8f9fa;
    border-right: 1px solid #dee2e6;
    overflow-y: auto;
    position: sticky;
    top: 4rem;
    z-index: 1000;
    transition: all 0.25s ease;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.bd-sidebar.collapsed {
    width: 70px !important;
    overflow-x: hidden;
}

.bd-sidebar.collapsed .menu-text,
.bd-sidebar.collapsed .fa-caret-down {
    display: none !important;
}

.bd-sidebar.collapsed .menu-item > a > i:first-child {
    margin-right: 0;
    font-size: 1.25rem;
}

.bd-sidebar.collapsed .menu-link {
    text-align: center;
    padding: 0.75rem 0;
}

.bd-sidebar.collapsed .collapse {
    display: none !important;
}

.bd-sidebar .menu-item > a {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    color: var(--secondary-color);
    text-decoration: none;
}

.bd-sidebar .menu-item > a:hover,
.bd-sidebar .menu-item > a.active {
    color: var(--primary-color);
    background-color: rgba(0, 0, 0, 0.05);
}

.bd-sidebar .menu-item > a > i:first-child {
    margin-right: 0.5rem;
    width: 1.25rem;
    text-align: center;
}

.bd-sidebar .menu-item .collapse {
    padding-left: 1.5rem;
}

.bd-sidebar .menu-item .collapse a {
    padding: 0.5rem 1rem;
    display: block;
    color: var(--secondary-color);
    text-decoration: none;
}

.bd-sidebar .menu-item .collapse a:hover,
.bd-sidebar .menu-item .collapse a.active {
    color: var(--primary-color);
}

#main-content {
    padding: 1.5rem;
    transition: margin-left 0.25s ease;
}

#main-content.expanded {
    margin-left: 70px;
}

.nav-logo-name {
    color: var(--primary-color);
    font-weight: bold;
    font-size: 20px;
}

.nav-menu {
    padding-top: 12px;
    padding-left: 0.2rem !important;
    color: #333;
}

.menu-link {
    display: block;
    height: 3rem;
    line-height: 3rem;
    color: #495057;
    font-weight: 500;
    border-bottom: 1px solid #eee;
    padding: 0 1rem;
    transition: all 0.2s ease;
}

.menu-link:hover {
    background-color: rgba(0, 0, 0, .03);
    color: var(--primary-color);
}

.menu-link .fa {
    height: 3rem;
    line-height: 3rem;
    width: 1.5rem;
    text-align: center;
    margin-right: 0.5rem;
    color: var(--secondary-color);
}

.menu-item a {
    text-decoration: none;
}

.menu-item ul {
    list-style: none;
    padding: 0 1rem;
}

.menu-item ul li a {
    display: block;
    height: 2.5rem;
    line-height: 2.5rem;
    color: #6c757d;
    padding: 0 1rem;
    border-radius: 0.25rem;
    transition: all 0.2s ease;
}

.menu-item ul li a:hover {
    background-color: rgba(0, 0, 0, .03);
    color: var(--primary-color);
}

.menu-item .collapse {
    margin: 0 !important;
    border-bottom: 1px solid #eee;
    padding: 0.5rem 0;
}

.bd-sidebar .active a {
    color: var(--primary-color);
    font-weight: 500;
}

/* 主内容区域 */
.bd-content {
    padding: 1.5rem;
}

.card {
    border: none;
    border-radius: 0.5rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, .075);
    transition: box-shadow 0.3s ease;
}

.card:hover {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, .12);
}

.card-header {
    background-color: transparent;
    border-bottom: 1px solid rgba(0, 0, 0, .125);
    padding: 1rem 1.25rem;
}

.card-footer {
    background-color: transparent;
    border-top: 1px solid rgba(0, 0, 0, .125);
    padding: 1rem 1.25rem;
}

/* 首页特殊样式 */
.bd-masthead {
    padding: 3rem 0;
}

.domain-search-box {
    background-color: #fff;
    border-radius: 0.5rem;
    padding: 1.5rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, .1);
}

/* 表单样式 */
.form-control, .form-select {
    border: 1px solid #ddd;
    border-radius: 0.375rem;
    padding: 0.5rem 0.75rem;
    transition: all 0.2s ease;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(86, 61, 124, .25);
}

.btn {
    border-radius: 0.375rem;
    padding: 0.5rem 1rem;
    transition: all 0.2s ease;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: #4c3367;
    border-color: #4c3367;
}

.input_tips {
    border: 1px solid #ced4da;
    padding: .375rem .75rem;
    border-radius: .25rem;
    margin-top: 0.25rem;
    font-size: 12px;
    background-color: #f8f9fa;
}

/* 卡片视图样式 */
.domain-card {
    transition: all 0.3s ease;
    border: none;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: relative;
}

.domain-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.card-status-bar {
    height: 5px;
    width: 100%;
}

.domain-info {
    margin-top: 15px;
}

.info-item {
    margin-bottom: 8px;
    display: flex;
    align-items: center;
}

.info-item i {
    width: 20px;
    margin-right: 8px;
    color: #6c757d;
}

.domain-desc {
    font-size: 0.875rem;
    color: #6c757d;
    max-height: 100px;
    overflow-y: auto;
    padding: 0.5rem;
    background-color: rgba(0,0,0,0.02);
    border-radius: 0.25rem;
}

/* 响应式样式 */
@media (min-width: 992px) {
    .bd-sidebar {
        position: sticky;
        top: 4rem;
        z-index: 1000;
        height: calc(100vh - 4rem);
    }
}

@media (max-width: 576px) {
    .container-fluid .row {
        display: block !important;
    }

    .bd-content {
        margin-top: 4rem;
    }

    .bd-navbar {
        width: 100%;
        height: 4rem;
        top: 0;
        position: fixed;
        z-index: 999;
    }

    .bd-sidebar {
        top: 4rem;
        width: 15rem;
        position: fixed;
        overflow-x: hidden;
        overflow-y: auto;
        visibility: hidden;
        z-index: 999;
        background-color: #fff;
    }

    .openMenu {
        visibility: visible;
        -webkit-transform: translate(0, 0);
        -ms-transform: translate(0, 0);
        -moz-transform: translate(0, 0);
        -o-transform: translate(0, 0);
        transform: translate(0, 0);
        -webkit-transition: all 350ms;
        -ms-transition: all 350ms;
        -moz-transition: all 350ms;
        -o-transition: all 350ms;
        transition: all 350ms;
        -webkit-backface-visibility: hidden;
        -ms-backface-visibility: hidden;
        -moz-backface-visibility: hidden;
        -o-backface-visibility: hidden;
        backface-visibility: hidden;
    }

    .moveRight {
        -webkit-transition: all 350ms;
        -ms-transition: all 350ms;
        -moz-transition: all 350ms;
        -o-transition: all 350ms;
        transition: all 350ms;
        -webkit-transform: translate3d(250px, 0, 0);
        -ms-transform: translate3d(250px, 0, 0);
        -moz-transform: translate3d(250px, 0, 0);
        -o-transform: translate3d(250px, 0, 0);
        transform: translate3d(250px, 0, 0);
        -webkit-transform-origin: 0 0;
        -ms-transform-origin: 0 0;
        -moz-transform-origin: 0 0;
        -o-transform-origin: 0 0;
        transform-origin: 0 0;
        -webkit-backface-visibility: hidden;
        -ms-backface-visibility: hidden;
        -moz-backface-visibility: hidden;
        -o-backface-visibility: hidden;
        backface-visibility: hidden;
    }

    .moveAnimation {
        -webkit-transition: all 350ms;
        -ms-transition: all 350ms;
        -moz-transition: all 350ms;
        -o-transition: all 350ms;
        transition: all 350ms;
        -webkit-transform: translate3d(0, 0, 0);
        -ms-transform: translate3d(0, 0, 0);
        -moz-transform: translate3d(0, 0, 0);
        -o-transform: translate3d(0, 0, 0);
        transform: translate3d(0, 0, 0);
        -webkit-transform-origin: 0 0;
        -ms-transform-origin: 0 0;
        -moz-transform-origin: 0 0;
        -o-transform-origin: 0 0;
        transform-origin: 0 0;
        -webkit-backface-visibility: hidden;
        -ms-backface-visibility: hidden;
        -moz-backface-visibility: hidden;
        -o-backface-visibility: hidden;
        backface-visibility: hidden;
    }
    
    .domain-card {
        margin-bottom: 1rem;
    }
}