/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

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

/* 导航栏样式 */
.navbar {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.nav-logo h2 {
    color: #2c5aa0;
    font-size: 24px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-item {
    position: relative;
}

.nav-link {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-link:hover {
    color: #2c5aa0;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    list-style: none;
    padding: 10px 0;
    min-width: 120px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
}

.dropdown-menu li a {
    display: block;
    padding: 8px 20px;
    color: #333;
    text-decoration: none;
    transition: background-color 0.3s;
}

.dropdown-menu li a:hover {
    background-color: #f8f9fa;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: #333;
    margin: 3px 0;
    transition: 0.3s;
}

/* 轮播图样式 */
.slider {
    position: relative;
    height: 500px;
    margin-top: 70px;
    overflow: hidden;
}

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

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.5s;
}

.slide.active {
    opacity: 1;
}

.slide:nth-child(2) {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.slide-content {
    text-align: center;
    color: white;
    max-width: 600px;
    padding: 0 20px;
}

.slide-content h1 {
    font-size: 48px;
    margin-bottom: 20px;
    animation: slideInUp 0.8s ease-out;
}

.slide-content p {
    font-size: 20px;
    margin-bottom: 30px;
    animation: slideInUp 0.8s ease-out 0.2s both;
}

.cta-button {
    background: #ff6b6b;
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 16px;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s;
    animation: slideInUp 0.8s ease-out 0.4s both;
}

.cta-button:hover {
    background: #ff5252;
}

.slider-nav {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    transform: translateY(-50%);
}

.slider-nav button {
    background: rgba(255,255,255,0.3);
    border: none;
    color: white;
    font-size: 20px;
    padding: 10px 15px;
    cursor: pointer;
    border-radius: 50%;
    transition: background 0.3s;
}

.slider-nav button:hover {
    background: rgba(255,255,255,0.5);
}

.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

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

.dot.active {
    background: white;
}

/* 产品中心样式 */
.products {
    padding: 80px 0;
    background: #f8f9fa;
}

.section-title {
    text-align: center;
    font-size: 36px;
    margin-bottom: 10px;
    color: #333;
}

.section-subtitle {
    text-align: center;
    font-size: 18px;
    color: #666;
    margin-bottom: 50px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.product-card {
    background: white;
    padding: 40px 20px;
    text-align: center;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.product-icon {
    font-size: 48px;
    color: #2c5aa0;
    margin-bottom: 20px;
}

.product-card h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: #333;
}

.product-card p {
    color: #666;
    font-size: 14px;
}

/* 服务优势样式 */
.advantages {
    padding: 80px 0;
    background: white;
}

.learn-more {
    display: block;
    text-align: center;
    color: #2c5aa0;
    text-decoration: none;
    margin-bottom: 50px;
    font-weight: 500;
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
}

.advantage-item {
    text-align: center;
}

.advantage-number {
    font-size: 48px;
    font-weight: bold;
    color: #2c5aa0;
    margin-bottom: 10px;
}

.advantage-item h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: #333;
}

.advantage-item p {
    color: #666;
    font-size: 14px;
}

/* 新闻资讯样式 */
.news {
    padding: 80px 0;
    background: #f8f9fa;
}

.news-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.news-item.featured {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.news-image img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.news-content {
    padding: 30px;
}

.news-content h3 {
    font-size: 22px;
    margin-bottom: 10px;
    color: #333;
}

.news-date {
    color: #999;
    font-size: 14px;
    margin-bottom: 15px;
}

.news-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.news-item-small {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: transform 0.3s;
}

.news-item-small:hover {
    transform: translateY(-2px);
}

.news-item-small h4 {
    font-size: 16px;
    margin-bottom: 8px;
    color: #333;
}

.news-item-small p {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
}

/* 联系我们样式 */
.contact {
    padding: 80px 0;
    background: white;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-info h2,
.contact-details h2 {
    font-size: 24px;
    margin-bottom: 30px;
    color: #333;
}

.quick-nav {
    list-style: none;
}

.quick-nav li {
    margin-bottom: 15px;
}

.quick-nav li a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s;
}

.quick-nav li a:hover {
    color: #2c5aa0;
}

.contact-item h3 {
    font-size: 20px;
    color: #2c5aa0;
    margin-bottom: 15px;
}

.contact-item p {
    margin-bottom: 10px;
    color: #666;
}

.qr-code {
    margin-top: 30px;
}

.qr-placeholder {
    width: 150px;
    height: 150px;
    border: 2px dashed #ccc;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}

.qr-placeholder i {
    font-size: 40px;
    color: #1aad19;
    margin-bottom: 10px;
}

.qr-placeholder p {
    font-size: 12px;
    color: #666;
}

/* 页脚样式 */
.footer {
    background: #333;
    color: white;
    text-align: center;
    padding: 30px 0;
}

/* 固定联系按钮 */
.fixed-contact {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.contact-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #2c5aa0;
    color: white;
    padding: 12px 15px;
    border-radius: 25px;
    text-decoration: none;
    transition: all 0.3s;
    cursor: pointer;
    border: none;
    font-size: 14px;
}

.contact-btn:hover {
    background: #1e3a8a;
    transform: translateY(-2px);
}

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

.contact-btn.phone {
    background: #ff6b6b;
}

.contact-btn span {
    white-space: nowrap;
}

/* 底部横向悬浮微信复制框 */
.bottom-wechat-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #07c160 0%, #00a651 100%);
    color: white;
    z-index: 998;
    box-shadow: 0 -2px 20px rgba(0, 0, 0, 0.15);
    transform: translateY(100%);
    transition: transform 0.3s ease-in-out;
    -webkit-tap-highlight-color: transparent; /* 移除iOS点击高亮 */
    touch-action: manipulation; /* 优化触摸响应 */
}

.bottom-wechat-bar.show {
    transform: translateY(0);
}

.bottom-bar-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 20px;
}

.wechat-info-horizontal {
    display: flex;
    align-items: center;
    gap: 15px;
}

.wechat-icon-horizontal {
    font-size: 32px;
    color: white;
}

.wechat-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.wechat-label {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
}

.wechat-id-horizontal {
    font-size: 18px;
    font-weight: bold;
    color: white;
    user-select: all; /* 允许用户选择微信号文字 */
    -webkit-user-select: all;
    -moz-user-select: all;
    -ms-user-select: all;
}

.bottom-bar-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.copy-btn-horizontal {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    user-select: none;
}

.copy-btn-horizontal:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-1px);
}

.copy-btn-horizontal:active {
    transform: translateY(0);
    background: rgba(255, 255, 255, 0.4);
}

.copy-btn-horizontal.copied {
    background: rgba(255, 255, 255, 0.9);
    color: #07c160;
    border-color: rgba(255, 255, 255, 0.9);
}

.close-btn-horizontal {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    user-select: none;
}

.close-btn-horizontal:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.close-btn-horizontal:active {
    background: rgba(255, 255, 255, 0.3);
}

/* 动画效果 */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 复制微信悬浮框样式 */
.wechat-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    width: 320px;
    max-width: 90vw;
}

.wechat-popup.active {
    opacity: 1;
    visibility: visible;
}

.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1900;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

.popup-content {
    padding: 0;
    border-radius: 15px;
    overflow: hidden;
}

.popup-header {
    background: linear-gradient(135deg, #1aad19 0%, #0f9c0f 100%);
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.popup-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.3s;
}

.close-btn:hover {
    background: rgba(255,255,255,0.2);
}

.popup-body {
    padding: 25px;
}

.wechat-info {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.wechat-icon {
    font-size: 40px;
    color: #1aad19;
    margin-right: 15px;
}

.wechat-details p {
    margin: 5px 0;
    font-size: 14px;
}

.wechat-id {
    font-weight: bold;
    color: #1aad19;
    font-size: 16px;
}

.wechat-desc {
    color: #666;
    font-size: 12px !important;
}

.popup-actions {
    margin: 20px 0;
}

.copy-btn {
    width: 100%;
    background: linear-gradient(135deg, #1aad19 0%, #0f9c0f 100%);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.copy-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(26, 173, 25, 0.3);
}

.copy-btn:active {
    transform: translateY(0);
}

.copy-btn.copied {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
}

.popup-footer {
    text-align: center;
    margin-top: 15px;
}

.popup-footer p {
    color: #999;
    font-size: 12px;
    margin: 0;
}

/* 复制成功提示动画 */
@keyframes copySuccess {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.copy-success {
    animation: copySuccess 0.3s ease;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0,0,0,0.05);
        padding: 20px 0;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .slide-content h1 {
        font-size: 32px;
    }
    
    .slide-content p {
        font-size: 16px;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .advantages-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .wechat-popup {
        width: 300px;
    }

    /* 底部悬浮框响应式 */
    .bottom-bar-content {
        flex-direction: column;
        gap: 12px;
        padding: 12px 15px;
    }
    
    .wechat-info-horizontal {
        gap: 10px;
        justify-content: center;
    }
    
    .wechat-icon-horizontal {
        font-size: 26px;
    }
    
    .wechat-text {
        text-align: center;
    }
    
    .wechat-label {
        font-size: 12px;
    }
    
    .wechat-id-horizontal {
        font-size: 16px;
    }
    
    .bottom-bar-actions {
        width: 100%;
        justify-content: center;
        gap: 12px;
    }
    
    .copy-btn-horizontal {
        flex: 1;
        max-width: 180px;
        justify-content: center;
        padding: 12px 16px;
        font-size: 14px;
    }
    
    .close-btn-horizontal {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .advantages-grid {
        grid-template-columns: 1fr;
    }
    
    .fixed-contact {
        right: 15px;
        bottom: 15px;
    }
    
    .contact-btn span {
        display: none;
    }
    
    .wechat-popup {
        width: 280px;
    }
    
    .popup-header {
        padding: 15px;
    }
    
    .popup-body {
        padding: 20px;
    }

    /* 底部悬浮框小屏幕样式 */
    .bottom-bar-content {
        padding: 10px 12px;
        gap: 10px;
    }
    
    .wechat-info-horizontal {
        flex-direction: row;
        gap: 8px;
        text-align: center;
        align-items: center;
    }
    
    .wechat-icon-horizontal {
        font-size: 22px;
    }
    
    .wechat-text {
        flex: 1;
    }
    
    .wechat-label {
        font-size: 11px;
        line-height: 1.2;
    }
    
    .wechat-id-horizontal {
        font-size: 14px;
        line-height: 1.2;
    }
    
    .bottom-bar-actions {
        gap: 8px;
        min-height: 44px;
    }
    
    .copy-btn-horizontal {
        padding: 10px 14px;
        min-width: 44px;
        min-height: 44px;
        border-radius: 22px;
        font-size: 13px;
        max-width: 120px;
    }
    
    .copy-btn-horizontal span {
        font-size: 12px;
    }
    
    .close-btn-horizontal {
        width: 44px;
        height: 44px;
        font-size: 16px;
        min-width: 44px;
        min-height: 44px;
    }
}

/* 超小屏幕设备适配 (小于375px) */
@media (max-width: 375px) {
    .bottom-bar-content {
        padding: 8px 10px;
        gap: 8px;
    }
    
    .wechat-info-horizontal {
        gap: 6px;
    }
    
    .wechat-icon-horizontal {
        font-size: 20px;
    }
    
    .wechat-label {
        font-size: 10px;
    }
    
    .wechat-id-horizontal {
        font-size: 13px;
    }
    
    .copy-btn-horizontal {
        padding: 8px 12px;
        min-width: 40px;
        min-height: 40px;
        font-size: 12px;
        max-width: 100px;
    }
    
    .copy-btn-horizontal span {
        font-size: 11px;
    }
    
    .close-btn-horizontal {
        width: 40px;
        height: 40px;
        min-width: 40px;
        min-height: 40px;
        font-size: 14px;
    }
    
    /* 固定联系按钮在超小屏幕上的调整 */
    .fixed-contact {
        right: 10px;
        bottom: 10px;
        gap: 8px;
    }
    
    .contact-btn {
        padding: 10px 12px;
        font-size: 12px;
    }
} 