/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333;
}

.container {
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 公司名称样式 - 通用 */
.company-name {
    text-align: right;
}

/* 导航栏样式 */
header {
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: background-color 0.3s ease;
}

/* 滚动时的导航栏样式 */
header.scrolled {
    background-color: rgba(255, 255, 255, 0.9);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.logo img {
    height: 50px;
    width: auto;
}

.main-nav ul {
    display: flex;
    list-style: none;
}

.main-nav ul li {
    position: relative;
    margin-left: 30px;
}

.main-nav ul li a,
.main-nav ul li .menu-title {
    color: #333;
    text-decoration: none;
    padding: 10px;
    display: block;
    transition: color 0.3s;
    cursor: pointer;
}

.main-nav ul li a:hover,
.main-nav ul li .menu-title:hover {
    color: #990000;
}

/* 当前激活菜单项样式 */
.main-nav ul li.active > a,
.main-nav ul li.active > .menu-title {
    color: #990000;
}

/* 下拉菜单 */
.submenu {
    position: absolute;
    top: 100%;
    left: 0%;
    transform: translateX(0%);
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    padding: 10px 0;
    width: 120px;
    display: none;
    border-radius: 0 0 5px 5px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* 关于福投的下拉菜单特殊样式 */
.main-nav ul li:nth-child(2) .submenu {
    left: 0%;
    transform: translateX(0%);
}

.main-nav ul li:hover .submenu {
    display: block !important;
    opacity: 1;
}

.submenu li {
    margin: 0;
}

.submenu li a {
    color: #333;
    padding: 8px 15px;
    text-align: center;
}

.submenu li a:hover {
    background-color: rgba(0,51,102,0.1);
    color: #003366;
}

/* 二级菜单激活状态 */
.submenu li.active a {
    color: #990000;
}

/* 移动端菜单按钮 */
.mobile-menu-btn {
    display: none;
    cursor: pointer;
}

.mobile-menu-btn span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #333;
    margin: 5px 0;
    transition: all 0.3s;
}

/* 轮播图样式 */
.banner {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding-top: 50%; /* 假设图片比例为2:1，根据实际比例调整 */
}

.banner-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 100%;
    width: 100%;
    height: 100%;
    opacity: 1;
    transition: left 0.5s ease-in-out, opacity 0.5s ease-in-out;
}

.slide.active {
    left: 0;
}

.slide.prev {
    left: -100%;
    opacity: 0;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide-content {
    position: absolute;
    bottom: 50px;
    left: 50px;
    color: #fff;
    background-color: rgba(0,51,102,0.8);
    padding: 20px;
    border-radius: 5px;
}

.slide-content h2 {
    font-size: 24px;
    margin-bottom: 10px;
}

/* 轮播指示器 */
.banner-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.5);
    margin: 0 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.dot.active {
    background-color: #ffcc00;
}

/* 新闻动态样式 */
.news {
    padding: 30px 0 15px;
    background-color: #fff;
}

.news-content {
    display: flex;
    gap: 90px;
    margin-bottom: 10px;
}

.news-slider {
    flex: 1;
    position: relative;
    overflow: hidden;
    background-color: #fff;
    display: flex;
    flex-direction: column;
}

/* 新闻动态轮播图 */
.slider-images {
    position: relative;
    width: 100%;
    /* 设置宽高比，确保轮播图按比例显示 */
    aspect-ratio: 16/9;
    min-height: 300px;
    overflow: hidden;
    background-color: #f5f5f5;
}

.slider-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.slider-item {
    position: absolute;
    top: 0;
    left: 100%;
    width: 100%;
    height: 100%;
    opacity: 1;
    transition: left 0.5s ease-in-out, opacity 0.5s ease-in-out;
}

.slider-item.active {
    left: 0;
}

.slider-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.slider-controls {
    position: absolute;
    bottom: 0;
    left: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 10;
    background-color: #fff;
    padding: 10px 15px;
    border-radius: 0 20px 0 0;
    box-shadow: 0 -2px 8px rgba(0,0,0,0.15);
}

.slider-info {
    padding: 15px;
    background-color: #fff;
}

.info-item {
    display: none;
}

.info-item.active {
    display: block;
}

.info-item h4 {
    font-size: 20px;
    margin-bottom: 5px;
    color: #333;
    font-weight: bold;
}

.slider-date {
    font-size: 14px;
    color: #000;
}

.prev-btn, .next-btn {
    background-color: transparent;
    color: #003366;
    border: none;
    width: 30px;
    height: 30px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: bold;
}

.prev-btn:hover, .next-btn:hover {
    color: #990000;
}

.slider-pagination {
    display: flex;
    align-items: center;
    gap: 5px;
}

.page {
    display: none;
}

.slider-counter {
    color: #003366;
    font-size: 14px;
    margin: 0 5px;
}

/* 新闻列表 */
.news-list {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.news-list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.news-list h3 {
    font-size: 32px;
    margin-bottom: 0;
    margin-top: 0;
    color: #333;
    font-weight: bold;
}

.news-item {
    background-color: #fff;
    padding: 15px;
    display: flex;
    gap: 20px;
    transition: all 0.3s;
    align-items: center;
    height: auto;
    min-height: 120px;
    flex-wrap: wrap;
}

.news-item:hover {
    background-color: #f5f5f5 !important;
}

.news-item:hover .news-info h4 {
    color: #990000 !important;
}

.news-item:hover .news-info p {
    color: #990000 !important;
}

.news-item.active {
    background-color: #fff;
}

.news-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100px;
    height: 100px;
    background-image: url('images/news_date.jpg');
    background-size: cover;
    background-position: center;
    color: #990000;
    padding: 12px;
    border-radius: 6px;
}

.date-day {
    font-size: 36px;
    font-weight: bold;
    color: #990000;
}

.date-month {
    font-size: 16px;
    color: #990000;
    margin-top: 4px;
}

.news-info {
    flex: 1;
    min-width: 220px;
}

.news-info h4 {
    font-size: 24px;
    margin-bottom: 10px;
    color: #333;
    font-weight: bold;
    line-height: 1.3;
}

.news-info p {
    font-size: 18px;
    color: #666;
    margin: 0;
    line-height: 1.4;
}

.news-list .more-btn {
    display: inline-block;
    width: 68px;
    height: 68px;
    border: none;
    border-radius: 0;
    background-image: url('images/20240110_icon_more.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    text-decoration: none;
    margin-top: 0;
    margin-left: 20px;
    font-size: 18px;
    transition: transform 0.3s ease;
    text-indent: -9999px;
    overflow: hidden;
}

.news-list .more-btn:hover {
    transform: translateX(10px);
    background-color: transparent;
    color: transparent;
}

/* 响应式样式 */
@media screen and (max-width: 768px) {
    .news-content {
        flex-direction: column;
        gap: 30px;
    }
    
    .slider-images {
        /* 在平板竖屏时调整轮播图高度 */
        min-height: 250px;
        height: auto;
    }
    
    .slider-wrapper {
        height: 100%;
    }
    
    .slider-item img {
        height: 100%;
    }
    
    .news-list-header {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
    
    .news-list h3 {
        font-size: 28px;
    }
    
    .news-list .more-btn {
        width: 60px;
        height: 60px;
        margin-left: 15px;
    }
    
    .news-item {
        height: auto;
        padding: 10px;
        flex-direction: row;
        align-items: center;
    }
    
    .news-date {
        width: 70px;
        height: 70px;
    }
    
    .date-day {
        font-size: 24px;
    }
    
    .date-month {
        font-size: 12px;
    }
    
    .news-info h4 {
        font-size: 18px;
    }
    
    .news-info p {
        font-size: 14px;
    }
}

/* 竖屏专用响应式样式 */
@media screen and (orientation: portrait) {
    /* 优化轮播图在竖屏时的显示 - 按比例跟随拉伸 */
    .slider-images {
        min-height: 200px;
        height: auto;
        aspect-ratio: 16/9;
        max-height: none;
    }
    
    /* 确保轮播图控制按钮在竖屏时仍可见 */
    .slider-controls {
        padding: 8px 12px;
        border-radius: 0 15px 0 0;
    }
    
    .prev-btn, .next-btn {
        width: 25px;
        height: 25px;
        font-size: 16px;
    }
    
    /* 优化新闻列表在竖屏时的显示 - 保持三行排列 */
    .news-list {
        gap: 15px;
    }
    
    .news-list-header {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
    
    .news-list h3 {
        font-size: 24px;
        text-align: center;
        margin-bottom: 0;
    }
    
    .news-list .more-btn {
        align-self: center;
        width: 50px;
        height: 50px;
        margin-left: 0;
    }
    
    .news-item {
        flex-direction: row;
        align-items: center;
        gap: 15px;
        padding: 15px;
    }
    
    .news-date {
        width: 60px;
        height: 60px;
    }
    
    .date-day {
        font-size: 20px;
    }
    
    .news-info {
        width: calc(100% - 75px);
        text-align: left;
    }
    
    .news-info h4 {
        font-size: 16px;
    }
    
    .news-info p {
        font-size: 13px;
    }
    
    .news-list .more-btn {
        align-self: center;
        width: 50px;
        height: 50px;
    }
    
    /* 移动端菜单样式 - 竖屏时显示 */
    .mobile-menu-btn {
        display: block !important;
        z-index: 1001;
    }
    
    /* 导航栏在竖屏时的样式 */
    .main-nav {
        position: fixed !important;
        top: 70px !important;
        left: -100% !important;
        width: 80% !important;
        height: calc(100vh - 70px) !important;
        background-color: #fff !important;
        box-shadow: 2px 0 4px rgba(0,0,0,0.2) !important;
        transition: left 0.3s !important;
        z-index: 1000 !important;
    }
    
    .main-nav.active {
        left: 0 !important;
    }
    
    .main-nav ul {
        flex-direction: column !important;
    }
    
    .main-nav ul li {
        margin: 0 !important;
        border-bottom: 1px solid rgba(0,0,0,0.1) !important;
    }
    
    .main-nav ul li a,
    .main-nav ul li .menu-title {
        padding: 15px !important;
        color: #333 !important;
    }
    
    /* 二级菜单在竖屏时的样式 */
    .submenu {
        position: static !important;
        box-shadow: none !important;
        padding: 0 !important;
        display: none !important;
        border-radius: 0 !important;
        background-color: rgba(0,0,0,0.05) !important;
    }
    
    .main-nav ul li:hover .submenu {
        display: block !important;
    }
    
    .submenu li a {
        padding-left: 30px !important;
        color: #333 !important;
    }
}

/* 小屏幕竖屏专用样式 */
@media screen and (orientation: portrait) and (max-width: 480px) {
    .slider-images {
        min-height: 180px;
    }
    
    .info-item h4 {
        font-size: 16px;
    }
    
    .slider-date {
        font-size: 12px;
    }
    
    /* 底部信息在超小屏幕竖屏时的优化 */
    .footer-content {
        gap: 15px;
    }
    
    .footer-links {
        gap: 10px;
    }
    
    .footer-links a {
        font-size: 12px;
    }
    
    .footer-info p {
        font-size: 11px;
    }
    
    .footer-qrcode {
        margin: 0;
        align-items: center;
        justify-content: center;
        width: 100%;
    }
    
    .footer-qrcode img {
        width: 50px;
        height: 50px;
    }
    
    .footer-qrcode p {
        font-size: 11px;
    }
}

/* 公司简介样式 */
.company-profile {
    padding: 50px 0;
    background-color: #fff;
}

.profile-title {
    font-size: 32px;
    margin-bottom: 40px;
    text-align: center;
    color: #333;
    font-weight: bold;
}

.profile-cards {
    display: flex;
    justify-content: center;
    gap: 60px;
    flex-wrap: wrap;
    max-width: 1800px;
    margin: 0 auto;
}

.profile-card {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

.profile-icon {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background-color: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-icon img {
    width: 150px;
    height: 150px;
}

.profile-content {
    display: flex;
    flex-direction: column;
    gap: 7.5px;
    align-items: center;
    text-align: center;
}

.profile-label {
    font-size: 24px;
    color: #666;
}

.profile-value img {
    max-width: 180px;
    height: auto;
}

/* 业务板块样式 */
.business-section {
    padding: 50px 0;
    background-color: #fff;
    position: relative;
    overflow: hidden;
}

.business-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('images/20240110_bg_home_business.jpg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: top left;
    transform: scale(0.675);
    transform-origin: top left;
    z-index: 0;
}

.business-section h3 {
    font-size: 32px;
    margin-bottom: 40px;
    text-align: left;
    color: #fff;
    position: relative;
    z-index: 1;
    padding-left: 20px;
}

.business-carousel {
    position: relative;
    z-index: 1;
    overflow: hidden;
    width: 100%;
    max-width: 1600px;
    margin: 0 auto 0 0;
    padding: 0 20px 0 20px;
}

.business-track {
    display: flex;
    gap: 20px;
    transition: transform 0.3s ease;
    cursor: grab;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding-bottom: 20px;
    width: 100%;
}

.business-track::-webkit-scrollbar {
    display: none;
}

.business-track {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.business-track:active {
    cursor: grabbing;
}

.business-item {
    flex: 0 0 455px;
    height: 520px;
    background-color: #fff;
    border-radius: 0;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s;
    position: relative;
}

.business-item:hover {
    transform: translateY(-5px);
}

.business-item a {
    display: block;
    text-decoration: none;
    color: #333;
    height: 100%;
    position: relative;
}

.business-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.business-item .text-container {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 20%;
    background-color: rgba(51,51,51,0.7);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 10px;
}

.business-item h4 {
    font-size: 18px;
    margin: 0 0 5px;
    color: #fff;
    font-weight: bold;
    text-align: center;
}

.business-item p {
    font-size: 14px;
    margin: 0;
    color: #f0f0f0;
    line-height: 1.4;
    text-align: center;
}

/* 业务板块响应式优化 */
@media screen and (orientation: portrait) {
    .business-section {
        padding: 30px 0;
    }
    
    .business-section h3 {
        font-size: 24px;
        text-align: center;
        padding-left: 0;
    }
    
    .business-section::before {
        background-size: cover;
        transform: none;
        opacity: 0.3;
    }
    
    .business-carousel {
        margin: 0 auto;
        padding: 0 10px;
    }
    
    .business-item {
        flex: 0 0 280px;
        height: 350px;
    }
    
    .business-item h4 {
        font-size: 16px;
    }
    
    .business-item p {
        font-size: 12px;
    }
}

/* 底部信息样式 */
footer {
    background-color: #be3838;
    color: #fff;
    padding: 30px 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
}

.footer-left {
    flex: 1;
    min-width: 60%;
}

/* 竖屏适配 - 底部信息垂直居中 */
@media screen and (orientation: portrait) {
    .footer-content {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
    
    .footer-left {
        min-width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .footer-links {
        justify-content: center;
    }
    
    .footer-divider {
        max-width: 100%;
        width: 80%;
    }
    
    .footer-qrcode {
        margin: 0;
        align-items: center;
        justify-content: center;
        width: 100%;
    }
    
    .footer-info {
        text-align: center;
    }
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.footer-links a {
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #ffcc00;
}

.footer-links span {
    color: #fff;
    opacity: 0.7;
}

.footer-divider {
    width: 100%;
    max-width: 550px;
    height: 1px;
    background-color: #fff;
    margin: 15px 0;
}

.footer-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-info p {
    font-size: 12px;
    line-height: 1.4;
    margin: 0;
}

.footer-info a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-info a:hover {
    color: #ffcc00;
}

.footer-qrcode {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    margin-left: 30px; /* 微信二维码的位置偏移设置 */
    margin: 0; /* 确保没有任何外边距影响居中 */
}

.footer-qrcode img {
    width: 60px;
    height: 60px;
}

.footer-qrcode p {
    font-size: 12px;
    margin: 0;
    text-align: center;
}

/* 响应式样式 */
@media screen and (max-width: 768px) {
    /* 导航栏 */
    .main-nav {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 80%;
        height: calc(100vh - 70px);
        background-color: #fff;
        box-shadow: 2px 0 4px rgba(0,0,0,0.2);
        transition: left 0.3s;
    }

    .main-nav.active {
        left: 0;
    }

    .main-nav ul {
        flex-direction: column;
    }

    .main-nav ul li {
        margin: 0;
        border-bottom: 1px solid rgba(0,0,0,0.1);
    }

    .main-nav ul li a,
    .main-nav ul li .menu-title {
        padding: 15px;
        color: #333;
    }

    .submenu {
        position: static;
        box-shadow: none;
        padding: 0;
        display: none;
        border-radius: 0;
        background-color: rgba(0,0,0,0.05);
    }

    .main-nav ul li:hover .submenu {
        display: block;
    }

    .submenu li a {
        padding-left: 30px;
        color: #333;
    }

    .mobile-menu-btn {
        display: block;
    }

    /* 轮播图 */
    .banner {
        height: 300px;
    }

    .slide-content {
        bottom: 20px;
        left: 20px;
        padding: 10px;
    }

    .slide-content h2 {
        font-size: 18px;
    }

    /* 新闻动态 */
    .news-list li a {
        flex-direction: column;
        align-items: flex-start;
    }

    .news-list .date {
        margin-right: 0;
        margin-bottom: 5px;
    }

    /* 轮播图控制按钮 */
    .slider-controls {
        position: absolute;
        bottom: 0;
        left: 0;
        display: flex;
        align-items: center;
        gap: 10px;
        z-index: 10;
        background-color: #fff;
        padding: 10px 15px;
        border-radius: 0 20px 0 0;
        box-shadow: 0 -2px 8px rgba(0,0,0,0.15);
    }

    /* 业务板块 */
    .business-grid {
        grid-template-columns: 1fr;
    }
}

@media screen and (max-width: 480px) {
    /* 轮播图 */
    .banner {
        height: 200px;
    }

    .slide-content h2 {
        font-size: 16px;
    }

    /* 轮播图控制按钮 */
    .slider-controls {
        position: absolute;
        bottom: 0;
        left: 0;
        display: flex;
        align-items: center;
        gap: 10px;
        z-index: 10;
        background-color: #fff;
        padding: 8px 12px;
        border-radius: 0 15px 0 0;
        box-shadow: 0 -2px 6px rgba(0,0,0,0.15);
    }

    /* 底部信息 */
    .footer-links a {
        display: block;
        margin: 10px 0;
    }
}