html,
body {
    padding: 0;
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Oxygen,
        Ubuntu, Cantarell, Fira Sans, Droid Sans, Helvetica Neue, sans-serif;
    background-color: #f4f4f4;
}

a {
    color: inherit;
    text-decoration: none;
}

* {
    box-sizing: border-box;
    color-scheme: only light;
}

:root {
    --primary: #3498db;
    --secondary: #2c3e50;
    --accent: #e74c3c;
    --light: #f8f9fa;
    --dark: #212529;
    --success: #2ecc71;
    --transition: all 0.3s ease;
}

.navbar {
    height: auto;
    padding: 0.5rem 0;  /* 减小垂直内边距 */
}

.navbar-padding {
    padding: 0 3rem;
}

.navbar-nav .nav-item .nav-link {
    padding: 0.5rem 1rem;  /* 减小链接的内边距 */
}

/* 导航下拉菜单样式 */
.navbar-nav .dropdown-menu {
    position: absolute;
    top: 100%;      /* 对齐导航栏底部 */
    left: 0;        /* 默认对齐左侧 */
    margin-top: 8px;/* 增加间距防止鼠标移出 */
    display: none;  /* 默认隐藏 */
    min-width: 160px;
    background-color: #fff;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 0.5rem 0;
    border: none;
}

/* 显示下拉菜单 */
.navbar-nav .dropdown-menu.show {
    display: block;
}

/* 下拉菜单项样式 */
.dropdown-item {
    padding: 0.6rem 1.5rem;
    color: #333;
    transition: background-color 0.2s ease;
}

.dropdown-item:hover, 
.dropdown-item:focus,
.dropdown-item.active {
    background-color: #0d6efd;
    color: #fff;
}

/* 下拉菜单图标 */
.nav-link .fa-angle-down {
    font-size: 0.8rem;
    transition: transform 0.2s;
}

.hover-dropdown:hover .fa-angle-down {
    transform: rotate(180deg);
}

/* 移动设备适配 */
@media (max-width: 991px) {
    .navbar-padding {
        padding: 0 1rem;
    }
    
    .navbar-nav {
        flex-direction: column !important;
        align-items: flex-start;
        width: 100%;
    }
    
    .navbar-nav .nav-item {
        width: 100%;
    }
    
    .navbar-nav .dropdown-menu {
        position: static;
        width: 100%;
        margin-top: 0;
        box-shadow: none;
        border-radius: 0;
        padding-left: 1rem;
        background-color: rgba(255, 255, 255, 0.05);
    }
    
    .navbar-nav .dropdown-menu .dropdown-item {
        color: rgba(255, 255, 255, 0.8);
    }
    
    .navbar-nav .dropdown-menu .dropdown-item:hover,
    .navbar-nav .dropdown-menu .dropdown-item:focus,
    .navbar-nav .dropdown-menu .dropdown-item.active {
        color: #fff;
        background-color: rgba(255, 255, 255, 0.1);
    }
}

.nav-item.dropdown {
    position: relative;
}

.content-container {
    width: 100%;
    padding: 0 3rem;
    display: flex;
    flex-direction: column;
    margin: 0 auto;
    padding-top: 80px;
}

.content-container.slim {
    max-width: 1440px;
}

.footer-section {
    flex: 1;
    justify-content: center;
    display: flex;
    flex-direction: row;
}

.footer-col {
    display: flex;
    flex-direction: column;
    justify-content: start;
    align-items: start;
    width: fit-content;
}

.footer-section h5 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.social-links {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
}

.link-name {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 0.3rem;
}

.link-name span {
    font-size: 1.3rem;
    font-weight: bold;
    margin-bottom: 0;
}

.modal-social .modal-header {
    border-bottom: none;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    background: #f8f9fa;
}

.qr-container {
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 1rem;
    background: white;
}

.social-link-btn {
    transition: transform 0.3s ease;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-link-btn:hover {
    transform: translateY(-2px);
}

.breadcrumb {
    background-color: transparent;
    padding: 0;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: ">";
    color: #6c757d;
}

.navbar-dark .navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.7) !important;
    transition: all 0.3s ease;
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link:focus {
    color:rgba(255, 255, 255, 0.85) !important;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.navbar-dark .navbar-nav .nav-link.active {
    color: #ffffff !important;
    border-bottom: 2px solid #ffffff;
    transition: all 1s ease;
}

.navbar-nav .nav-item .nav-link {
    transition: color 0.3s ease, background-color 0.3s ease;
}

.navbar-nav .nav-item .nav-link:hover,
.navbar-nav .nav-item .nav-link.active {
    color: #fff;
    background-color: rgba(255, 255, 255, 0.1);
}

.dropdown-menu {
    display: none;
    position: absolute;
    background-color: #fff;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
    border-radius: 0.5rem;
    padding: 0.5rem 0;
    margin-top: 0.5rem;
    border: none;
}

.dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-item {
    color: #333;
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    display: block;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.dropdown-item:hover, .dropdown-item:focus, .dropdown-item.active {
    background-color: #0d6efd;
    color: #fff;
}