
: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: 8px;
    --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;
    justify-content: space-between;
    align-items: center;
    height: auto;
    padding: 10px 15px;
}

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

.logo img {
    height: 32px;
    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: 8px 15px 8px 35px;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    font-size: 14px;
    width: 250px;
    background-color: var(--bg-lighter);
    transition: all 0.3s ease;
}

.search-form input:focus {
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(255, 64, 129, 0.1);
    outline: none;
    width: 300px;
}

.search-btn {
    background-color: var(--primary);
    color: white;
    border: none;
    border-radius: 20px;
    padding: 6px 15px;
    margin-left: 8px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

/*.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(--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;
    }
    
    .search-form input:focus {
        width: 250px;
    }
}

@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;
    }
    
    .search-form input {
        width: calc(100% - 80px);
    }
    
    .search-form input:focus {
        width: calc(100% - 80px);
    }
}

@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 {
        height: 28px;
    }
    
    .logo h1 {
        font-size: 16px;
    }
    
    .main-nav {
        width: 100%;
        flex-direction: column;
    }
    
    .main-nav ul {
        width: 100%;
        justify-content: space-between;
        margin: 0;
        overflow-x: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
        display: flex;
        flex-wrap: nowrap;
        padding: 10px 0;
    }
    
    .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 {
        width: calc(100% - 70px);
        max-width: 100%;
        font-size: 12px;
    }
    
    .search-form input:focus {
        width: calc(100% - 70px);
    }
    
    .search-btn {
        padding: 4px 10px;
        font-size: 12px;
    }
} 


/* 添加返回顶部按钮样式 */
.back-to-top2 {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 30px;
    height: 30px;
    background-color: #ff4081;
    color: white;
    border-radius: 50%;
    display: block;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: none;
    box-shadow: 0 4px 12px rgba(255, 64, 129, 0.5);
    z-index: 99999; /* 确保最高层级 */
    transition: all 0.3s ease;
    opacity: 1;
}

.back-to-top2:hover {
    background-color: #e03770;
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(255, 64, 129, 0.6);
}

.back-to-top2.show {
    display: flex;
    opacity: 1;
    pointer-events: auto; /* 显示时可点击 */
}

.back-to-top2 i {
    font-size: 24px;
}

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