/* 自定义样式 */
html, body {
    height: 100%;
}

/* 导航栏样式 */
.navbar {
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.navbar-brand {
    font-weight: 600;
    color: #1a73e8 !important;
}

.nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    color: #202124 !important;
}

.nav-link:hover,
.nav-link.active {
    color: #1a73e8 !important;
}

/* 按钮样式 */
.btn-primary {
    background-color: #1a73e8;
    border-color: #1a73e8;
}

.btn-primary:hover {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

.btn-outline-primary {
    color: #1a73e8;
    border-color: #1a73e8;
}

.btn-outline-primary:hover {
    background-color: #1a73e8;
    border-color: #1a73e8;
}

/* 卡片样式 */
.card {
    border: 1px solid #dadce0;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    transition: box-shadow 0.3s ease;
}

.card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* 页脚样式 */
footer {
    border-top: 1px solid #dadce0;
}

/* 区块标题样式 */
.section-title {
    position: relative;
    padding-bottom: 15px;
    margin-bottom: 30px;
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: #1a73e8;
}

/* 错误提示样式 */
#blazor-error-ui {
    background: #f8f9fa;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.05);
    display: none;
    left: 0;
    padding: 1rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

/* 响应式优化 */
@media (max-width: 991px) {
    .navbar-nav {
        flex-direction: column !important;
    }
    
    .navbar-collapse {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        box-shadow: 0 10px 10px rgba(0,0,0,0.1);
        padding: 1rem;
        z-index: 100;
    }
    
    .navbar-collapse:not(.show) {
        display: none !important;
    }
    
    .section-title:after {
        left: 0;
        transform: none;
    }
}

/* 针对移动端菜单按钮的额外样式 */
.navbar-toggler {
    transition: none;
}

.navbar-toggler:focus {
    box-shadow: none;
}

/* 确保移动端菜单正确显示/隐藏 */
@media (max-width: 991px) {
    .navbar-collapse:not(.show) {
        height: 0;
        overflow: hidden;
    }
    
    .navbar-collapse.show {
        height: auto;
        overflow: visible;
    }
}