/* 全局样式 */
:root {
    --primary-color: #1e50a2;
    --secondary-color: #0a3d62;
    --text-color: #333;
    --light-gray: #f5f5f5;
    --border-color: #ddd;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
}

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

/* 头部样式 */
.header {
    background: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    width: 100%;
    z-index: 1000;
    position: fixed;
    top: 0;
    left: 0;
}

.header-top {
    padding: 15px 0;
}

.logo {
    float: left;
}

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

/* 搜索框样式 */
.search-box {
    float: right;
    margin: 10px 20px;
    position: relative;
}

.search-box form {
    display: flex;
    align-items: center;
}

.search-box input[type="text"] {
    padding: 8px 15px;
    width: 200px;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    outline: none;
}

.search-box button {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--primary-color);
    cursor: pointer;
    padding: 0;
}

/* 导航菜单样式 */
.main-nav {
    float: right;
}

.main-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    white-space: nowrap;
    overflow: visible;
}

.main-nav li {
    display: inline-block;
    position: relative;
}

.main-nav a {
    display: block;
    padding: 15px 20px;
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s;
}

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

/* 二级菜单样式 */
.dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    min-width: 150px;
    z-index: 1000;
    border-radius: 4px;
    padding: 5px 0;
}

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

.dropdown li {
    display: block;
    margin: 0;
}

.dropdown a {
    padding: 10px 20px;
    font-size: 14px;
    color: var(--text-color);
    transition: all 0.3s;
}

.dropdown a:hover {
    background-color: var(--light-gray);
    color: var(--primary-color);
}

/* 主要内容区域 */
main {
    padding-top: 80px; /* header的高度 */
}

/* 幻灯片和公司介绍区域 */
.hero-section {
    padding: 30px 0;
    background: var(--light-gray);
}

.hero-content {
    display: flex;
    gap: 30px;
    min-height: 300px;
}

.slider-container {
    flex: 0 0 70%;
    max-width: 70%;
    height: 400px;
}

.company-intro {
    flex: 0 0 30%;
    max-width: 30%;
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    height: 400px;
    overflow-y: auto;
}

.company-intro h2 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 24px;
}

.company-intro p {
    margin-bottom: 15px;
    color: var(--text-color);
    line-height: 1.8;
}

.intro-features {
    display: flex;
    justify-content: space-around;
    margin-top: 30px;
}

.feature {
    text-align: center;
}

.feature i {
    font-size: 2em;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.feature span {
    display: block;
    color: var(--text-color);
}

.swiper {
    width: 100%;
    height: 400px;
    border-radius: 10px;
    overflow: hidden;
}

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

/* 视频和产品展示区域 */
.content-section {
    padding: 30px 0;
    background: #fff;
}

.content-wrapper {
    display: flex;
    gap: 30px;
    min-height: 400px;
}

.video-section {
    position: relative;
    cursor: pointer;
    flex: 0 0 30%;
    max-width: 30%;
    border-radius: 10px;
    overflow: hidden;
    height: 100%;
}

.video-control {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    z-index: 2;
    font-size: 16px;
    cursor: pointer;
    border: none;
}

.video-control:hover {
    background: rgba(0, 0, 0, 0.7);
}

.video-section.unmuted .video-control::before {
    content: '🔊';
}

.video-section .video-control::before {
    content: '🔇';
}

/* 暂停状态中间图标 */
.video-section.paused::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-section.paused::before {
    content: '▶️';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 24px;
    z-index: 3;
}

.video-section video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.featured-products {
    flex: 0 0 70%;
    max-width: 70%;
    padding: 20px;
    background: var(--light-gray);
    border-radius: 10px;
}

.featured-products .section-title {
    margin-bottom: 20px;
    font-size: 24px;
}

.product-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

.product-item {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.product-item img {
    width: 100%;
    height: 168px;
    object-fit: cover;
}

.product-item h3 {
    padding: 15px;
    margin: 0;
    color: var(--primary-color);
}

.product-item h3 a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.product-item h3 a:hover {
    color: var(--secondary-color);
}

.product-item p {
    padding: 0 15px 15px;
    color: #666;
}

.view-all {
    display: block;
    width: fit-content;
    margin: 20px auto 0;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .hero-content {
        flex-direction: column;
    }
    
    .slider-container,
    .company-intro {
        flex: 0 0 100%;
        max-width: 100%;
        height: auto;
        min-height: 300px;
    }

    .company-intro {
        height: auto;
    }

    .content-wrapper {
        flex-direction: column;
    }

    .video-section,
    .featured-products {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .video-section {
        height: 300px;
    }
}

@media (max-width: 768px) {
    .header {
        position: relative;
    }

    .logo {
        float: left;
    }

    .logo img {
        height: 40px;
    }

    .search-box {
        margin: 10px 0;
    }

    .search-box button {
        display: none;
    }

    .search-box input[type="text"] {
        width: 100%;
    }

    .main-nav {
        float: none;
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        margin-top: 10px;
    }

    .main-nav ul {
        display: flex;
        justify-content: space-between;
    }

    .main-nav li {
        flex: 0 0 auto;
    }

    .main-nav a {
        padding: 10px 15px;
        font-size: 14px;
    }

    /* 隐藏移动端子菜单 */
    .main-nav .dropdown {
        display: none !important;
    }

    /* 移除下拉箭头或其他指示器 */
    .has-dropdown > a::after {
        display: none;
    }

    /* 移除子菜单相关的交互效果 */
    .has-dropdown:hover .dropdown {
        display: none;
    }

    main {
        padding-top: 0;
    }

    .hero-section {
        padding-top: 30px;
    }

    .slider-container {
        display: none;
    }

    .hero-content {
        flex-direction: column;
    }
    
    .company-intro {
        flex: 0 0 100%;
        max-width: 100%;
        height: auto;
        min-height: 300px;
    }

    .intro-features {
        display: none;
    }

    .product-list {
        grid-template-columns: 1fr;
    }

    .dropdown {
        position: static;
        width: 100%;
        box-shadow: none;
        background: var(--light-gray);
    }

    .footer-content {
        flex-direction: column;
    }
    
    .footer-info {
        flex: 0 0 100%;
        margin-bottom: 30px;
    }
    
    .footer-qrcode {
        display: none;
    }
}

/* 底部区域 */
.footer {
    background: var(--secondary-color);
    color: #fff;
    padding: 50px 0 20px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 30px;
}

.footer-info {
    flex: 0 0 60%;
}

.footer-info h3 {
    margin-bottom: 20px;
    font-size: 20px;
}

.footer-info p {
    margin-bottom: 10px;
}

.footer-info i {
    margin-right: 10px;
}

.footer-qrcode {
    flex: 0 0 35%;
    text-align: right;
    transition: transform 0.3s ease;
}

.footer-qrcode:hover {
    transform: translateY(-5px);
}

.qrcode-wrapper {
    display: inline-block;
    background: #fff;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.qrcode-wrapper img {
    width: 150px;
    height: 150px;
    display: block;
}

.qrcode-text {
    margin-top: 10px;
    text-align: center;
}

.qrcode-text span {
    display: inline-block;
    padding: 5px 12px;
    background: #ff6b00;
    color: #fff;
    border-radius: 4px;
    font-size: 14px;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-bottom a {
    color: #fff;
    text-decoration: none;
}

.footer-bottom a:hover {
    color: #fff;
}

/* 新的产品展示区域样式 */
.product-showcase {
    background: #fff;
    padding: 10px 0;
}

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

.showcase-title {
    text-align: center;
    margin-bottom: 50px;
    color: var(--primary-color);
    font-size: 32px;
    font-weight: bold;
    margin-right: -28px;
}

.showcase-grid {
    display: grid;
    grid-template-columns: repeat(4, calc((100% - 60px) / 4));
    gap: 20px;
    margin: 0 auto;
    margin-right: -28px;
}

.showcase-item {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.showcase-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

.showcase-image {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.showcase-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.showcase-item:hover .showcase-image img {
    transform: scale(1.05);
}

.showcase-content {
    padding: 20px;
}

.showcase-content h3 {
    color: var(--primary-color);
    font-size: 18px;
    margin-bottom: 10px;
    font-weight: 600;
}

.showcase-content h3 a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.showcase-content h3 a:hover {
    color: var(--secondary-color);
}

.showcase-content p {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 15px;
}

.showcase-button {
    display: inline-block;
    padding: 10px 24px;
    background: var(--primary-color);
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.showcase-button:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

@media (max-width: 992px) {
    .showcase-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
        margin-right: 0;
    }
    
    .showcase-title {
        margin-right: 0;
    }
}

@media (max-width: 768px) {
    .showcase-container {
        padding: 0 20px;
    }

    .showcase-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .showcase-image {
        height: 180px;
    }
}

@media (max-width: 576px) {
    .showcase-container {
        padding: 0 25px;
    }

    .showcase-grid {
        grid-template-columns: 1fr;
    }
    
    .product-showcase {
        padding: 40px 0;
    }
    
    .showcase-title {
        margin-bottom: 30px;
        font-size: 28px;
    }
}

/* 热门产品悬浮效果 */
.product-item {
    transition: all 0.3s ease;
    border-radius: 8px;
    overflow: hidden;
}

.product-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.product-item img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-item:hover img {
    transform: scale(1.05);
}

.product-item h3 {
    padding: 15px 15px 5px;
    color: var(--primary-color);
}

.product-item p {
    padding: 0 15px 15px;
    color: #666;
}

.intro-contact {
    margin-top: 30px;
    display: flex;
    gap: 15px;
    justify-content: center;
}

.intro-contact .contact-btn {
    padding: 12px 25px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    color: #fff;
}

.intro-contact .phone-btn {
    background: var(--primary-color);
}

.intro-contact .phone-btn:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

.intro-contact .wechat-btn {
    background: #07c160;
}

.intro-contact .wechat-btn:hover {
    background: #06ad56;
    transform: translateY(-2px);
}

/* 弹窗样式 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal.show {
    opacity: 1;
    visibility: visible;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    position: relative;
    background: #fff;
    width: 90%;
    max-width: 600px;
    border-radius: 12px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.2);
    transform: scale(0.7);
    opacity: 0;
    transition: all 0.3s ease;
}

.modal.show .modal-content {
    transform: scale(1);
    opacity: 1;
}

.modal-header {
    padding: 25px 30px;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-header h2 {
    color: var(--primary-color);
    font-size: 24px;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.modal-header h2 i {
    font-size: 28px;
    color: var(--primary-color);
}

.close-modal {
    font-size: 28px;
    cursor: pointer;
    color: #999;
    transition: color 0.3s ease;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #f5f5f5;
}

.close-modal:hover {
    color: #666;
    background: #eee;
}

.modal-body {
    padding: 30px;
    display: flex;
    gap: 40px;
    align-items: center;
}

.contact-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.contact-item:hover {
    background: #f0f2f5;
    transform: translateX(5px);
}

.contact-item i {
    font-size: 24px;
    color: var(--primary-color);
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.contact-text h3 {
    color: #333;
    font-size: 16px;
    margin: 0 0 5px;
}

.contact-text p {
    color: var(--primary-color);
    font-size: 18px;
    font-weight: 500;
    margin: 0;
}

.modal-qrcode {
    text-align: center;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.modal-qrcode img {
    width: 180px;
    height: 180px;
    margin-bottom: 12px;
    border-radius: 8px;
}

.modal-qrcode p {
    color: #666;
    font-size: 14px;
    margin: 0;
    background: #f8f9fa;
    padding: 8px 15px;
    border-radius: 20px;
    display: inline-block;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        margin: 20px;
    }

    .modal-header {
        padding: 20px;
    }

    .modal-header h2 {
        font-size: 20px;
    }

    .modal-body {
        flex-direction: column-reverse;
        padding: 20px;
        gap: 25px;
    }

    .contact-info {
        width: 100%;
    }

    .modal-qrcode {
        width: 100%;
    }

    .modal-qrcode img {
        width: 160px;
        height: 160px;
    }

    .modal-qrcode p {
        white-space: normal;
    }
}

@media (max-width: 576px) {
    .modal-content {
        margin: 15px;
    }

    .modal-header h2 {
        font-size: 18px;
    }

    .contact-item {
        padding: 12px;
    }

    .contact-item i {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }

    .contact-text p {
        font-size: 16px;
    }
} 