/* 全局样式 */
body {
    padding-top: 97px; /* 调整顶部内边距以适应固定导航栏和顶部链接 */
}

/* 导航栏样式 */
.navbar {
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.navbar-brand img {
    max-height: 40px;
}

.navbar-nav .nav-link {
    color: #333;
    font-weight: 500;
    padding: 0.5rem 1rem;
}

.navbar-nav .nav-link:hover {
    color: #0066cc;
}

.social-icons a {
    color: #666;
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.social-icons a:hover {
    color: #0066cc;
}

/* 页脚样式 */
.footer {
    background-color: #095add !important;
    color: white;
    padding: 40px 0;
    margin-top: 40px;
}

.footer h5 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.footer-logo {
    margin-bottom: 6rem; /* 增加间距匹配Contact区域高度 */
}

@media (max-width: 768px) {
    .footer-logo {
        margin-bottom: 3rem; /* 移动端适当减小间距 */
    }
}

.footer .contact-info {
    font-size: 0.9rem;
}

.footer .contact-info i {
    width: 20px;
}

.footer ul li a {
    font-size: 0.9rem;
    transition: opacity 0.3s ease;
}

.footer ul li a:hover {
    opacity: 0.8;
} 
.footer .social-links a {
    transition: opacity 0.3s ease;
}

.footer .social-links a:hover {
    opacity: 0.8;
}

.footer .copyright {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* 响应式调整 */
@media (max-width: 992px) {
    .navbar-nav {
        text-align: center;
    }
    
    .social-icons {
        justify-content: center;
        margin-top: 10px;
    }
}

/* 主要内容区域样式 */
main {
    min-height: calc(100vh - 160px); /* 减去导航栏和页脚的高度 */
}

/* 顶部链接样式 */
.top-links {
    background-color: #f8f9fa;
    padding: 8px 0;
}

.top_link {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.top-links a {
    color: #333;
    text-decoration: none;
    font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, Arial, sans-serif;
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin: 0 12px;
    transition: color 0.2s ease;
    display: inline-block;
    line-height: 1;
}

.top-links span {
    color: #999;
    margin: 0 2px;
    font-size: 13px;
}

.top-links a:hover {
    color: #0066cc;
}

/* 按钮样式 */
.btn-primary {
    background-color: #0066cc;
    border-color: #0066cc;
}

.btn-primary:hover {
    background-color: #0052a3;
    border-color: #0052a3;
}

/* 表单样式 */
.form-control:focus {
    border-color: #0066cc;
    box-shadow: 0 0 0 0.2rem rgba(0, 102, 204, 0.25);
}

/* 通用间距 */
.mb-4 {
    margin-bottom: 1.5rem !important;
}

.mt-4 {
    margin-top: 1.5rem !important;
}

/* 图片样式 */
.img-fluid {
    max-width: 100%;
    height: auto;
}

/* 管理后台深色主题 */
.admin-theme {
    background: linear-gradient(135deg, #0f172a, #1e293b);
    color: #f8fafc;
    min-height: 100vh;
}

.admin-theme .card {
    background-color: rgba(15, 23, 42, 0.7);
    border: 1px solid #334155;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.admin-theme .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.2);
}

.admin-theme .card-title {
    color: #38bdf8;
    font-weight: 600;
}

.admin-theme .btn-light {
    background-color: #38bdf8;
    color: #0f172a;
    border: none;
    font-weight: 500;
}

.admin-theme .btn-light:hover {
    background-color: #7dd3fc;
}

.admin-theme h2 {
    color: #f8fafc;
    border-bottom: 2px solid #38bdf8;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

/* 管理后台导航栏 */
.admin-theme .navbar-dark {
    background-color: #0f172a !important;
    border-bottom: 1px solid #334155 !important;
}

.admin-theme .nav-link {
    color: #f8fafc !important;
}

.admin-theme .nav-link:hover {
    color: #38bdf8 !important;
}

/* 管理后台侧边栏 */
.admin-theme .sidebar {
    background-color: #0f172a;
    border-right: 1px solid #334155;
}

.admin-theme .nav-sidebar .nav-link {
    color: #94a3b8;
    margin-bottom: 2px;
}

.admin-theme .nav-sidebar .nav-link:hover {
    background-color: rgba(56, 189, 248, 0.1);
    color: #38bdf8;
}

.admin-theme .nav-sidebar .nav-link.active {
    background-color: rgba(56, 189, 248, 0.2);
    color: #38bdf8;
    border-left: 3px solid #38bdf8;
}

/* 登录部分样式 */
.admin-theme .login-info-box {
    background-color: rgba(15, 23, 42, 0.7) !important;
    border: 1px solid #334155 !important;
}

.admin-theme .text-dark {
    color: #f8fafc !important;
}

.admin-theme .btn-link {
    color: #38bdf8 !important;
}

/* 添加footer区块h5标题箭头样式 */
.footer h5.with-arrow {
    display: flex;
    align-items: center;
    gap: 5px;
}

.footer h5.with-arrow .arrow {
    color: #FFA500; /* 橘色 */
    font-size: 10px; 
}