/* FAQ7777 主样式文件 */

/* 阅读量图标样式 */
.cx_like {
    display: flex;
    align-items: center;
    margin-left: 10px;
    color: #666;
    font-size: 12px;
}

.cx_like i {
    margin-right: 4px;
    color: #999;
}

.cx_like:hover i {
    color: #007bff;
}

/* 增强型轮播图样式 */
.hero-carousel {
    position: relative;
    width: 100%;
    height: 600px;
    overflow: hidden;
    margin-bottom: 30px;
}

@media (max-width: 768px) {
    .hero-carousel {
        height: 400px;
    }
}

@media (max-width: 480px) {
    .hero-carousel {
        height: 300px;
    }
}

.swiper {
    width: 100%;
    height: 100%;
}

.swiper-slide {
    position: relative;
    height: 100%;
}

.slide-content {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: transform 10s ease-in-out;
}

.swiper-slide:hover .slide-image {
    transform: scale(1.05);
}

.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.3) 50%, rgba(0, 0, 0, 0) 100%);
}

.slide-text {
    position: absolute;
    top: 50%;
    left: 10%;
    transform: translateY(-50%);
    max-width: 600px;
    color: #fff;
    z-index: 10;
}

@media (max-width: 768px) {
    .slide-text {
        left: 5%;
        max-width: 90%;
    }
    
    .slide-overlay {
        background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.3) 100%);
    }
}

.slide-title {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.8s ease forwards;
}

@media (max-width: 768px) {
    .slide-title {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .slide-title {
        font-size: 1.5rem;
    }
}

.slide-desc {
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 30px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.8s ease 0.3s forwards;
}

@media (max-width: 768px) {
    .slide-desc {
        font-size: 1rem;
    }
}

.slide-button {
    display: inline-flex;
    align-items: center;
    padding: 12px 30px;
    background-color: #007bff;
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 14px rgba(0, 123, 255, 0.3);
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.8s ease 0.6s forwards;
}

.slide-button:hover {
    background-color: #0056b3;
    transform: translateY(20px) translateY(-3px);
    box-shadow: 0 7px 20px rgba(0, 123, 255, 0.4);
}

@media (max-width: 768px) {
    .slide-button {
        padding: 10px 20px;
    }
}

/* 导航按钮样式 */
.swiper-button-prev,
.swiper-button-next {
    position: absolute;
    top: 50%;
    width: 50px;
    height: 50px;
    margin-top: -25px;
    background-color: rgba(255, 255, 255, 0.2);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 20;
}

.swiper-button-prev:hover,
.swiper-button-next:hover {
    background-color: rgba(255, 255, 255, 0.9);
    color: #007bff;
    transform: scale(1.1);
}

.swiper-button-prev {
    left: 30px;
}

.swiper-button-next {
    right: 30px;
}

@media (max-width: 768px) {
    .swiper-button-prev {
        left: 10px;
    }
    
    .swiper-button-next {
        right: 10px;
    }
}

/* 自定义导航按钮图标 */
.swiper-button-prev::after,
.swiper-button-next::after {
    font-family: 'FontAwesome';
    font-size: 18px;
    font-weight: bold;
}

.swiper-button-prev::after {
    content: '\f053';
}

.swiper-button-next::after {
    content: '\f054';
}

/* 分页指示器样式 */
.swiper-pagination {
    position: absolute;
    bottom: 30px;
    left: 0;
    width: 100%;
    text-align: center;
    z-index: 20;
}

.swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    margin: 0 8px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    display: inline-block;
    transition: all 0.3s ease;
    opacity: 1;
}

.swiper-pagination-bullet-active {
    width: 30px;
    background-color: #fff;
    border-radius: 6px;
}

/* 动画效果 */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f9f9f9;
    overflow-x: hidden;
}

/* 清除浮动 */
.cl::before,
.cl::after {
    content: "";
    display: table;
    clear: both;
}

/* 头部样式 */
.faq7777-header {
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    height: 90px;
    transition: all 0.3s ease;
}

/* 头部内部容器 */
.faq7777-header-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Logo样式 */
.header-logo {
    flex-shrink: 0;
}

.header-logo a {
    display: block;
}

.site-logo {
    height: 50px;
    max-width: 100%;
    object-fit: contain;
}

/* 导航菜单样式 */
.main-navigation {
    flex: 1;
    margin: 0 40px;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-menu > li {
    margin: 0 15px;
    position: relative;
}

.nav-menu > li > a {
    display: block;
    padding: 10px 0;
    color: #333;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-menu > li > a:hover,
.nav-menu > li.current > a {
    color: #007bff;
}

/* 子菜单样式 */
.nav-menu li.menu-item-has-children > a {
    position: relative;
    padding-right: 20px;
}

.nav-menu li.menu-item-has-children > a::after {
    content: '\f107';
    font-family: 'FontAwesome';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
}

/* 修复视评图说菜单项右侧错误图标问题 */
.nav-menu > li > a:not([data-icon])::after {
    display: none;
}

.sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 180px;
    background-color: #fff;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    padding: 10px 0;
    z-index: 1001;
}

.nav-menu li:hover > .sub-menu {
    display: block;
}

.sub-menu li {
    position: relative;
}

.sub-menu a {
    display: block;
    padding: 10px 20px;
    color: #666;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
}

.sub-menu a:hover {
    color: #007bff;
    background-color: #f5f5f5;
}

/* 右侧功能区 */
.header-right {
    display: flex;
    align-items: center;
}

/* 搜索框样式 */
.header-search {
    position: relative;
    margin-right: 20px;
}

.search-toggle {
    background: none;
    border: 1px solid transparent;
    color: #007bff;
    font-size: 20px;
    cursor: pointer;
    padding: 10px;
    border-radius: 4px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
}

.search-toggle:hover {
    color: #0056b3;
    background-color: rgba(0, 123, 255, 0.1);
    border-color: #007bff;
}

.search-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    width: 300px;
    background-color: #fff;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    padding: 15px;
    z-index: 1001;
    display: none;
    margin-top: 10px;
}

.search-dropdown.show {
    display: block;
    animation: fadeIn 0.3s ease;
}

.search-form {
    position: relative;
}

.search-form input[type="search"] {
    width: 100%;
    padding: 10px 40px 10px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.3s ease;
}

.search-form input[type="search"]:focus {
    border-color: #007bff;
}

.search-form input[type="submit"] {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #999;
    font-size: 16px;
    cursor: pointer;
    padding: 5px;
    transition: color 0.3s ease;
}

.search-form input[type="submit"]:hover {
    color: #007bff;
}

/* 用户登录/注销按钮样式 */
.header-user a {
    display: flex;
    align-items: center;
    padding: 8px 15px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    border: 1px solid #ddd;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.header-user a:hover {
    background-color: #007bff;
    color: #fff;
    border-color: #007bff;
}

.header-user i {
    margin-right: 5px;
}

.user-text {
    display: inline;
}

/* 移动端菜单按钮 */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #333;
    font-size: 24px;
    cursor: pointer;
    padding: 8px;
    margin-left: 20px;
}

/* 移动端下拉菜单 */
.mobile-menu {
    display: none;
    background-color: #fff;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    z-index: 999;
}

.mobile-menu.hidden {
    display: none;
}

.mobile-nav-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mobile-nav-menu li {
    border-bottom: 1px solid #eee;
}

.mobile-nav-menu li:last-child {
    border-bottom: none;
}

.mobile-nav-menu a {
    display: block;
    padding: 15px 20px;
    color: #333;
    text-decoration: none;
    font-size: 15px;
    transition: background-color 0.3s ease;
}

.mobile-nav-menu a:hover {
    background-color: #f5f5f5;
}

.mobile-search {
    padding: 15px 20px;
    border-top: 1px solid #eee;
}

/* 滚动时的头部样式 */
.faq7777-header.scrolled {
    height: 80px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.15);
}

.faq7777-header.scrolled .site-logo {
    height: 45px;
}

/* 动画效果 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .nav-menu > li {
        margin: 0 10px;
    }
    
    .nav-menu > li > a {
        font-size: 14px;
    }
}

@media (max-width: 992px) {
    .main-navigation {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .header-user a {
        padding: 6px 12px;
        font-size: 13px;
    }
    
    .user-text {
        display: none;
    }
    
    .header-user i {
        margin-right: 0;
    }
}

@media (max-width: 768px) {
    .faq7777-header {
        height: 80px;
    }
    
    .faq7777-header-inner {
        padding: 0 15px;
    }
    
    .site-logo {
        height: 45px;
    }
    
    .header-search {
        margin-right: 15px;
    }
    
    .search-dropdown {
        width: 280px;
        right: -15px;
    }
}

@media (max-width: 480px) {
    .faq7777-header {
        height: 70px;
    }
    
    .site-logo {
        height: 40px;
    }
    
    .search-dropdown {
        width: 250px;
    }
    
    .search-form input[type="search"] {
        padding: 8px 35px 8px 12px;
        font-size: 13px;
    }
}

/* 推荐内容和友情链接样式 */
.link_tit {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #007bff;
    display: inline-block;
}

.link_tit span {
    position: relative;
    z-index: 1;
}

.links-list {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -10px;
    padding: 0;
    list-style: none;
}

.links-list li {
    flex: 0 0 calc(20% - 20px);
    margin: 10px;
    text-align: center;
}

.links-list a {
    display: block;
    padding: 8px 15px;
    color: #666;
    text-decoration: none;
    background-color: #f5f5f5;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.links-list a:hover {
    background-color: #007bff;
    color: #fff;
}

/* 兼容旧样式 */
/* 内容区域样式 */
.cxudy-indextj, .update_area, .imodule-box {
    background-color: #fff;
    padding: 30px;
    margin: 30px 0;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* 文章列表样式 */
.update_area_lists {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin: 0 -10px;
}

.update_area_content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.i_list {
    flex: 0 0 calc(25% - 20px);
    margin: 10px;
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.i_list:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

/* 文章缩略图样式 */
.thumb-srcbox {
    display: block;
    width: 100%;
    height: 0;
    padding-bottom: 50%;
    position: relative;
    overflow: hidden;
}

.thumb-srcbox figure {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    margin: 0;
}

.thumb-srcbox img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

/* 文章内容样式 */
.case_info {
    padding: 15px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.meta-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    text-decoration: none;
    margin-bottom: 10px;
    line-height: 1.4;
    display: -webkit-box;
    display: -moz-box;
    display: box;
    -webkit-line-clamp: 2;
    -moz-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    -moz-box-orient: vertical;
    box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.3s ease;
}

.meta-title:hover {
    color: #007bff;
}

.meta-post {
    font-size: 13px;
    color: #999;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.cx_like {
    display: flex;
    align-items: center;
    font-size: 13px;
}

/* 轮播图样式 */
.swiper {
    width: 100%;
    height: auto;
    max-height: 500px;
    overflow: hidden;
    border-radius: 8px;
    position: relative;
}

.swiper-wrapper {
    transition-timing-function: ease-in-out;
}

.swiper-slide {
    position: relative;
    width: 100%;
}

.swiper-slide img {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: cover;
}

/* 轮播图分页指示器样式 */
.swiper-pagination {
    position: absolute;
    bottom: 20px;
    left: 0;
    width: 100%;
    text-align: center;
}

.swiper-pagination-bullet {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.6);
    margin: 0 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.swiper-pagination-bullet-active {
    background-color: #fff;
    width: 30px;
    border-radius: 5px;
}

.update_area, .imodule-box {
    margin: 30px 0;
    padding: 20px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.h-screen-wrap {
    background-color: #f5f5f5;
    padding: 15px 0;
    margin-bottom: 30px;
}

.faq7777-header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq7777-logo img {
    max-height: 50px;
}

.faq7777-main-navigation ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.faq7777-main-navigation li {
    margin: 0 15px;
    position: relative;
}

.faq7777-main-navigation a {
    color: #333;
    text-decoration: none;
    font-weight: 500;
}

.faq7777-main-navigation li.current a {
    color: #007bff;
}

/* 移动端菜单样式 */
.faq7777-mobile-menu-toggle {
    display: none;
}

.faq7777-header-search-bar {
    position: relative;
}

.faq7777-search-bar-input {
    padding: 8px 15px;
    border-radius: 20px;
    border: 1px solid #ddd;
}

.faq7777-header-mobile-menu {
    display: none;
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    background: #fff;
    padding: 20px;
    box-shadow: 0 5px 10px rgba(0,0,0,0.1);
}

/* 移动端样式 */
@media (max-width: 768px) {
    .faq7777-header, .index_header {
        height: 60px;
    }
    
    .site-wrap {
        margin: 60px auto 20px;
        padding: 0 10px;
    }
    
    .swiper {
        max-height: 200px;
    }
    
    .cxudy-indextj, .update_area, .imodule-box {
        padding: 15px;
        margin: 15px 0;
    }
    
    .i_list {
        flex: 0 0 calc(50% - 10px);
        margin: 5px;
    }
    
    .thumb-srcbox {
        padding-bottom: 120%;
    }
    
    .links-list li {
        flex: 0 0 calc(50% - 10px);
        margin: 5px;
    }
}

/* 平板设备样式 */
@media (min-width: 769px) and (max-width: 1024px) {
    .i_list {
        flex: 0 0 calc(33.333% - 20px);
    }
    
    .links-list li {
        flex: 0 0 calc(33.333% - 20px);
    }
}

/* 大屏设备样式 */
@media (min-width: 1200px) {
    .site-wrap,
    .update_area_content,
    .faq7777-header-inner {
        max-width: 1400px;
    }
}

/* 图标字体样式 */
.iconfont {
    font-family: "iconfont" !important;
    font-size: 16px;
    font-style: normal;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* 返回顶部按钮样式 */
.position-right.pc {
    position: fixed;
    right: 30px;
    bottom: 30px;
    z-index: 99;
}

.angle-up a {
    display: block;
    width: 40px;
    height: 40px;
    background-color: rgba(0, 123, 255, 0.8);
    color: white !important;
    text-align: center;
    line-height: 40px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.angle-up a:hover {
    background-color: #007bff;
    transform: translateY(-3px);
}

/* 文本居中样式 */
.text-center {
    text-align: center;
}

/* 搜索框样式 */
.faq7777-search-bar-input {
    width: 200px;
    padding: 8px 15px;
    border-radius: 20px;
    border: 1px solid #ddd;
    font-size: 14px;
    transition: all 0.3s ease;
}

.faq7777-search-bar-input:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

/* 页脚样式 */
#footer-boot {
    background-color: #fff;
    padding: 30px 0;
    border-top: 1px solid #eee;
}

.w1080 {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 15px;
}