
:root {
    /* 颜色变量 */
    --color-primary: #ff4081;
    --color-primary-dark: #e91e63;
    --color-primary-light: #fff0f5;
    --color-primary-lighter: #ffe6f0;
    --color-primary-transparent: rgba(255, 64, 129, 0.1);
    --color-text-dark: #333;
    --color-text-medium: #666;
    --color-text-light: #999;
    --color-bg-light: #f5f5f5;
    --color-bg-lighter: #fafafa;
    --color-bg-white: #fff;
    --color-border: #eee;
    --border-radius: 2px;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow: 0 4px 8px rgba(0,0,0,0.1);
    --transition: all 0.3s ease;
    --primary: #ff4081;
    --bg-white: #fff;
    --primary-light: #fff0f5;
    --bg-light: #f5f5f5;
    --bg-lighter: #fafafa;
    --bg-white: #fff;
    --border-color: #eee;
    --primary-transparent: rgba(255, 64, 129, 0.1);
}
.header {
    background-color: var(--bg-white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
    width: 100%;
}

.header .container {
    display: flex;
    padding: 4px;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 44px;
    margin-right: 10px;
}

.logo h1 {
    font-size: 22px;
    margin: 0;
}

.main-nav {
    display: flex;
    align-items: center;
}

.main-nav ul {
    display: flex;
    margin-right: 15px;
}

.main-nav li {
    margin: 0 10px;
}

.main-nav a {
    font-size: 16px;
    color: #8491a5;
    position: relative;
    font-weight: 500;
}

.main-nav a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 0;
    height: 2px;
    background-color: var(--primary);
    transition: width 0.3s;
}

.main-nav a:hover::after {
    width: 100%;
}

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

.main-nav a.active::after {
    width: 100%;
}

/* 头部搜索框样式 */
.search-form {
    display: flex;
    align-items: center;
    position: relative;
    margin-left: 20px;
}

.search-icon {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-medium);
    font-size: 16px;
    z-index: 1;
    pointer-events: none;
}

.search-form input {
    padding: 6px;
    border: 1px solid var(--border-color);
    border-radius: 2px;
    font-size: 14px;
    padding-left: 10px;
}

.search-btn {
    background-color: var(--primary);
    color: white;
    border: none;
    border-radius: 2px;
    padding: 6px 15px;
    font-size: 14px;
    margin-left: 6px;
}

/*.search-btn:hover {
    background-color: var(--primary-dark);
}*/

/* 底部区域 */
.footer {
    background-color: #222;
    border-top: 1px solid var(--border-color);
    padding: 20px 0 15px;
    width: 100%;
    color: #d2d2d2;
}

.footer .container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0 15px;
}

.copyright {
    text-align: center;
}

.copyright p {
    font-size: 13px;
    color: var(--color-text-light);
    padding:6px;
}

.copyright a {
    color: #d2d2d2;
    text-decoration: none;
}

.copyright a:hover {
    color: var(--primary);
}

/* Bootstrap 图标支持 */
.bi {
    display: inline-block;
    vertical-align: middle;
    margin-right: 3px;
}

.bi-house-door:before {
    content: "\f3e8";
}

.bi-trophy:before {
    content: "\f84d";
}

.bi-newspaper:before {
    content: "\f529";
}

.bi-play-circle:before {
    content: "\f59e";
}

.bi-search:before {
    content: "\f52a";
}

/* 响应式调整 */
@media screen and (max-width: 1200px) {
    .search-form input {
        width: 200px;
    }
    
  
}

@media screen and (max-width: 992px) {
    .header .container {
        flex-direction: column;
        padding: 10px;
    }
    
    .logo {
        margin-bottom: 10px;
    }
    
    .main-nav {
        width: 100%;
    }
    
    .main-nav ul {
        justify-content: center;
        margin-bottom: 10px;
        flex-wrap: wrap;
        margin-right: 0;
    }
    
    .search-form {
        width: 100%;
        margin-left: 0;
        justify-content: center;
    }
  
}

@media screen and (max-width: 576px) {
    /* 强制宽度100% */
    body, html, .container {
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: hidden !important;
    }
    
    /* 头部导航修复 */
    .header {
        position: sticky;
        top: 0;
        z-index: 100;
    }
    
    .header .container {
        padding: 5px;
    }
    
    .logo {
        width: 100%;
        justify-content: center;
        margin-bottom: 5px;
        padding: 10px;
        border-bottom: 1px solid #eee;
    }
    
    .logo img { }
    
    .logo h1 {
        font-size: 16px;
    }
    
    .main-nav {
        width: 100%;
        flex-direction: column;
    }
    
    .main-nav ul {
        width: 90%;
        justify-content: space-between;
         }
    
    .main-nav ul::-webkit-scrollbar {
        display: none;
    }
    
    .main-nav li {
        margin: 0;
        flex: 0 0 auto;
        padding: 0 8px;
    }
    
    .main-nav a {
        font-size: 16px;
        white-space: nowrap;
        padding: 5px 0;
    }
    
    .search-form {
        width: 100%;
        margin: 8px 0 0;
    }
    
    .search-form input {
       margin-bottom: 10px;
    }
    
  
    
    .search-btn {
        margin-bottom: 10px;
    }
} 


/* 添加返回顶部按钮样式 */
.back-to-top2{position:fixed;right:20px;bottom:20px;width:40px;height:40px;border-radius:50%;background:#ff4081;color:#fff;border:none;display:none;align-items:center;justify-content:center;font-size:20px;transition:all .3s;}
.back-to-top2.show{display:flex}

/* 移动端适配 */
@media screen and (max-width: 576px) {
    .back-to-top2 {
        width: 36px;
        height: 36px;
        bottom: 20px;
        right: 20px;
    }
    
    .back-to-top2 i {
        font-size: 18px;
    }
}