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

html {
    scroll-behavior: smooth;
}

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

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

/* 工具类 */
.text-center {
    text-align: center;
}

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

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

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

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
}

.logo-img {
    height: 50px;
    margin-right: 10px;
}

.logo-text h1 {
    font-size: 22px;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 3px;
}

.logo-text p {
    font-size: 12px;
    color: #7f8c8d;
}

/* 导航样式 */
.main-nav {
    display: flex;
    align-items: center;
}

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

.nav-link {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    padding: 8px 0;
    position: relative;
    transition: color 0.3s;
}

.nav-link:hover,
.nav-link.active {
    color: #3498db;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #3498db;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: #333;
    cursor: pointer;
    padding: 5px;
}

/* 移动端菜单 */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100%;
    background: white;
    z-index: 1001;
    transition: right 0.3s ease;
    padding: 20px;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
}

.mobile-menu.active {
    right: 0;
}

.close-menu-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #333;
}

.mobile-nav-list {
    list-style: none;
    margin-top: 60px;
}

.mobile-nav-list li {
    margin-bottom: 20px;
}

.mobile-nav-link {
    text-decoration: none;
    color: #333;
    font-size: 18px;
    font-weight: 500;
    display: block;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.mobile-nav-link.active {
    color: #3498db;
}

/* 英雄横幅 */
.hero-banner {
    background: linear-gradient(135deg, #3498db 0%, #2c3e50 100%);
    color: white;
    padding: 140px 0 80px;
    text-align: center;
    margin-top: 80px;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 15px;
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 20px;
    opacity: 0.9;
}

.hero-desc {
    max-width: 600px;
    margin: 0 auto 30px;
    font-size: 1.1rem;
    opacity: 0.8;
}

.cta-button {
    display: inline-block;
    background: #e74c3c;
    color: white;
    padding: 12px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    font-size: 16px;
}

.cta-button:hover {
    background: #c0392b;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* 产品展示 */
.products-section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-title {
    font-size: 2.2rem;
    color: #2c3e50;
    margin-bottom: 15px;
}

.section-subtitle {
    color: #7f8c8d;
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.section-desc {
    color: #666;
    margin-bottom: 20px;
}

.update-date {
    background: #f8f9fa;
    padding: 10px 20px;
    border-radius: 5px;
    display: inline-block;
    font-size: 14px;
    color: #666;
}

.update-date span {
    color: #3498db;
    font-weight: bold;
}

/* 产品网格 */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.product-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.product-card:hover {
    transform: translateY(-10px);
}

.product-image {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.product-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.product-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #e74c3c;
    color: white;
    padding: 5px 10px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: bold;
}

.product-info {
    padding: 20px;
}

.product-name {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: #2c3e50;
}

.product-desc {
    color: #666;
    margin-bottom: 15px;
    font-size: 14px;
}

.product-specs {
    margin-bottom: 20px;
}

.product-specs p {
    margin-bottom: 8px;
    color: #555;
    font-size: 13px;
    display: flex;
    align-items: center;
}

.product-specs i {
    color: #27ae60;
    margin-right: 8px;
    font-size: 12px;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.product-price {
    font-size: 1.5rem;
    color: #e74c3c;
    font-weight: bold;
}

.inquiry-btn {
    background: #3498db;
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.3s;
}

.inquiry-btn:hover {
    background: #2980b9;
}

.carousel-info {
    text-align: center;
    background: #f8f9fa;
    padding: 15px;
    border-radius: 5px;
    margin-top: 20px;
}

.carousel-info i {
    color: #3498db;
    margin-right: 8px;
}

/* 关于我们 */
.about-section {
    background: #f8f9fa;
    padding: 80px 0;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-text h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: #2c3e50;
}

.about-text p {
    margin-bottom: 20px;
    color: #555;
    line-height: 1.8;
}

.about-text h4 {
    margin: 25px 0 15px;
    color: #3498db;
}

.advantages-list,
.services-list {
    list-style: none;
    margin-bottom: 20px;
}

.advantages-list li,
.services-list li {
    margin-bottom: 10px;
    padding-left: 25px;
    position: relative;
}

.advantages-list li i,
.services-list li i {
    position: absolute;
    left: 0;
    top: 3px;
    color: #27ae60;
}

.services-list li i {
    color: #3498db;
}

.about-image {
    position: relative;
}

.about-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.experience-badge {
    position: absolute;
    bottom: -20px;
    right: 20px;
    background: #e74c3c;
    color: white;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    box-shadow: 0 5px 15px rgba(231, 76, 60, 0.3);
}

.experience-badge span {
    font-size: 24px;
}

.experience-badge p {
    font-size: 12px;
    margin: 0;
}

/* 联系方式 */
.contact-section {
    padding: 80px 0;
}

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

.contact-info h3,
.wechat-info h3 {
    font-size: 1.5rem;
    margin-bottom: 30px;
    color: #2c3e50;
    padding-bottom: 15px;
    border-bottom: 2px solid #3498db;
    display: inline-block;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
}

.contact-item i {
    color: #3498db;
    font-size: 20px;
    margin-right: 15px;
    margin-top: 3px;
    width: 24px;
}

.contact-item h4 {
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: #333;
}

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

.small-text {
    font-size: 13px;
    color: #888;
}

.wechat-info {
    text-align: center;
}

.qrcode-box {
    position: relative;
    width: 200px;
    height: 200px;
    margin: 0 auto 20px;
    border: 1px solid #eee;
    border-radius: 10px;
    overflow: hidden;
    background: white;
    padding: 15px;
}

.wechat-qr {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.qrcode-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(52, 152, 219, 0.9);
    color: white;
    padding: 10px;
    text-align: center;
    font-weight: bold;
}

.wechat-details {
    margin-top: 20px;
}

.copy-btn {
    background: #27ae60;
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 10px;
    font-size: 14px;
    transition: background 0.3s;
}

.copy-btn:hover {
    background: #219653;
}

/* 底部固定联系条 */
.fixed-contact-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: white;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 999;
}

.contact-bar-content {
    display: flex;
    justify-content: center;
    padding: 10px 0;
}

.contact-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    margin: 0 10px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 14px;
    text-decoration: none;
    min-width: 80px;
}

.contact-btn i {
    font-size: 20px;
    margin-bottom: 5px;
}

.phone-btn {
    background: #27ae60;
    color: white;
}

.phone-btn:hover {
    background: #219653;
    transform: translateY(-3px);
}

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

.wechat-btn:hover {
    background: #05a84a;
    transform: translateY(-3px);
}

.copy-btn {
    background: #3498db;
    color: white;
}

.copy-btn:hover {
    background: #2980b9;
    transform: translateY(-3px);
}

.phone-number-display {
    background: #2c3e50;
    color: white;
    text-align: center;
    padding: 8px 0;
    font-size: 16px;
}

.phone-number {
    font-weight: bold;
    margin-right: 15px;
}

.call-now {
    color: #e74c3c;
    font-weight: bold;
}

/* 弹窗样式 */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1002;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: white;
    border-radius: 10px;
    max-width: 400px;
    width: 90%;
    position: relative;
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 24px;
    color: #666;
    cursor: pointer;
    padding: 5px;
    z-index: 1;
}

.modal-close:hover {
    color: #333;
}

.modal-body {
    padding: 30px;
    text-align: center;
}

.modal-body h3 {
    margin-bottom: 10px;
    color: #333;
}

.modal-subtitle {
    color: #666;
    margin-bottom: 20px;
}

.qrcode-modal {
    position: relative;
    width: 250px;
    height: 250px;
    margin: 0 auto 20px;
    border: 1px solid #eee;
    border-radius: 10px;
    padding: 20px;
    background: white;
}

#modalQrCode {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.qrcode-loading {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: white;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 15px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.wechat-info-modal {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin-top: 20px;
}

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

.modal-buttons {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.modal-btn {
    flex: 1;
    padding: 10px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.3s;
}

.copy-wechat-btn {
    background: #27ae60;
    color: white;
}

.copy-wechat-btn:hover {
    background: #219653;
}

.close-btn {
    background: #e74c3c;
    color: white;
}

.close-btn:hover {
    background: #c0392b;
}

/* 咨询表单 */
.inquiry-form {
    margin-top: 20px;
}

.form-group {
    margin-bottom: 15px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #333;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3498db;
}

.form-actions {
    margin-top: 20px;
}

.submit-btn {
    width: 100%;
    padding: 12px;
    background: #3498db;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.3s;
}

.submit-btn:hover {
    background: #2980b9;
}

/* 复制成功提示 */
.copy-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #27ae60;
    color: white;
    padding: 12px 20px;
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    z-index: 1003;
    display: flex;
    align-items: center;
    gap: 10px;
    transform: translateX(150%);
    transition: transform 0.3s ease;
}

.copy-notification.show {
    transform: translateX(0);
}

/* 页面底部 */
.page-footer {
    background: #2c3e50;
    color: white;
    padding: 30px 0;
    margin-top: 50px;
}

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

.copyright p {
    margin-bottom: 5px;
    color: #bdc3c7;
    font-size: 14px;
}

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

.footer-links a:hover {
    color: white;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }
    
    .nav-list {
        display: none;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-btn span {
        font-size: 12px;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .footer-links a {
        margin: 0 10px;
    }
    
    .hero-banner {
        padding: 120px 0 60px;
    }
    
    .products-section,
    .about-section,
    .contact-section {
        padding: 60px 0;
    }
}

@media (max-width: 480px) {
    .contact-bar-content {
        flex-wrap: wrap;
    }
    
    .contact-btn {
        min-width: 70px;
        padding: 8px 15px;
        margin: 0 5px;
    }
    
    .logo-text h1 {
        font-size: 18px;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
}