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

body {
    font-family: 'Microsoft YaHei', 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

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

/* 深蓝色主题 */
:root {
    --primary-color: #1a365d;
    --secondary-color: #2c5282;
    --accent-color: #4299e1;
    --light-color: #ebf8ff;
    --dark-color: #0d2438;
    --text-light: #f7fafc;
    --text-dark: #2d3748;
    --border-color: #e2e8f0;
}

/* 头部样式 */
header {
    background-color: var(--primary-color);
    color: var(--text-light);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

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

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--text-light);
    text-decoration: none;
    display: flex;
    align-items: center;
}

.logo span {
    color: var(--accent-color);
}

.logo-icon {
    margin-right: 10px;
    font-size: 2rem;
}

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

nav ul li {
    margin-left: 1.5rem;
}

nav ul li a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    padding: 0.5rem 0;
    position: relative;
}

nav ul li a:hover {
    color: var(--accent-color);
}

nav ul li a.active {
    color: var(--accent-color);
}

nav ul li a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--accent-color);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

/* 轮播图样式 */
.hero-slider {
    position: relative;
    overflow: hidden;
    height: 500px;
    margin-bottom: 3rem;
}

.slider-container {
    display: flex;
    transition: transform 0.5s ease-in-out;
    height: 100%;
}

.slide {
    min-width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    position: relative;
}

.slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(26, 54, 93, 0.8), rgba(44, 82, 130, 0.6));
}

.slide-content {
    position: relative;
    z-index: 2;
    color: white;
    max-width: 600px;
    padding: 2rem;
}

.slide-content h1 {
    font-size: 2.8rem;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.slide-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.btn {
    display: inline-block;
    background-color: var(--accent-color);
    color: white;
    padding: 0.8rem 2rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(66, 153, 225, 0.3);
}

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

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

.slider-dot.active {
    background-color: white;
}

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    transition: background-color 0.3s;
    z-index: 10;
}

.slider-arrow:hover {
    background-color: rgba(255, 255, 255, 0.3);
}

.slider-prev {
    left: 20px;
}

.slider-next {
    right: 20px;
}

/* 主要内容区域 */
.section {
    padding: 4rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    font-size: 2.2rem;
    color: var(--primary-color);
    position: relative;
    display: inline-block;
    padding-bottom: 1rem;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--accent-color);
}

/* 产品卡片 */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

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

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

.product-img {
    height: 220px;
    background-color: var(--light-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 4rem;
}

.product-info {
    padding: 1.5rem;
}

.product-info h3 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.product-info p {
    color: #666;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

/* 文章列表 */
.article-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

.article-card {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s;
}

.article-card:hover {
    transform: translateY(-5px);
}

.article-img {
    height: 200px;
    background-color: var(--light-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 3rem;
}

.article-content {
    padding: 1.5rem;
}

.article-content h3 {
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
    color: var(--primary-color);
}

.article-content p {
    color: #666;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.article-meta {
    display: flex;
    justify-content: space-between;
    color: #888;
    font-size: 0.9rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

/* 文章详情 */
.article-detail-container {
    background-color: white;
    border-radius: 8px;
    padding: 2.5rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 2rem;
}

.article-header {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.article-header h1 {
    font-size: 2.2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.article-body {
    line-height: 1.8;
    color: #444;
}

.article-body p {
    margin-bottom: 1.5rem;
}

.article-body h2 {
    color: var(--secondary-color);
    margin: 2rem 0 1rem;
    font-size: 1.6rem;
}

.article-body ul {
    margin-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.article-body li {
    margin-bottom: 0.5rem;
}

/* 联系我们 */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
}

.contact-info {
    background-color: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.contact-info h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.contact-icon {
    background-color: var(--light-color);
    color: var(--primary-color);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    flex-shrink: 0;
}

.contact-text h4 {
    color: var(--primary-color);
    margin-bottom: 0.3rem;
}

.contact-form {
    background-color: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-color);
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

/* 页脚 */
footer {
    background-color: var(--dark-color);
    color: var(--text-light);
    padding: 3rem 0 1.5rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-column h3 {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    color: white;
}

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

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

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

.footer-links a:hover {
    color: var(--accent-color);
}

.footer-contact p {
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
}

.footer-contact i {
    margin-right: 10px;
    color: var(--accent-color);
}

.copyright {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #a0aec0;
    font-size: 0.9rem;
}
.copyright a{color: #a0aec0;text-decoration: none;}

/* 响应式设计 */
@media (max-width: 992px) {
    .slide-content h1 {
        font-size: 2.2rem;
    }
    
    .hero-slider {
        height: 400px;
    }
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
		margin-left: 43%;
		margin-top: 2%;
    }
    
    nav ul {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background-color: var(--primary-color);
        flex-direction: column;
        align-items: center;
        padding: 2rem 0;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    }
    
    nav ul.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    nav ul li {
        margin: 0.8rem 0;
    }
    
    .hero-slider {
        height: 350px;
    }
    
    .slide-content h1 {
        font-size: 1.8rem;
    }
    
    .slide-content p {
        font-size: 1rem;
    }
    
    .section {
        padding: 3rem 0;
    }
    
    .article-list {
        grid-template-columns: 1fr;
    }
    
    .article-detail-container {
        padding: 1.5rem;
    }
}

@media (max-width: 576px) {
    .hero-slider {
        height: 300px;
    }
    
    .slider-arrow {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .section-title h2 {
        font-size: 1.8rem;
    }
    
    .product-grid {
        grid-template-columns: 1fr;
    }
}




/* ========== 底部悬浮按钮栏 ========== */
.bottom-action-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    display: flex;
    z-index: 9999;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

.bottom-action-bar .action-btn {
    flex: 1;
    text-align: center;
    padding: 14px 0;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* 联系我们按钮 */
.bottom-action-bar .contact-btn {
    background-color: #333;
    color: #fff;
}
.bottom-action-bar .contact-btn:hover {
    background-color: #555;
}

/* 在线购买按钮（主色调，醒目） */
.bottom-action-bar .buy-btn {
    background-color: #e74c3c; /* 你可以用品牌主色替换，比如 #007bff */
    color: #fff;
}
.bottom-action-bar .buy-btn:hover {
    background-color: #c0392b;
}

/* 图标大小微调 */
.bottom-action-bar .action-btn i {
    font-size: 18px;
}

/* ======= 防止页面真实底部内容被悬浮栏挡住 ======= */
body {
    padding-bottom: 56px; /* 和悬浮栏高度保持一致，PC/移动都不被遮 */
}

/* ======= 仅移动端显示悬浮栏（可选，推荐）======= */
@media (min-width: 768px) {
    .bottom-action-bar {
        display: none; /* PC端一般有顶部导航和banner，不需要悬浮占地方 */
    }
    body {
        padding-bottom: 0;
    }
}


/* ========== 右侧悬浮客服按钮 ========== */
.float-service {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 9998;
}
.float-service-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 64px;
    background: linear-gradient(135deg, #e74c3c, #ff6b5f);
    color: #fff;
    border: none;
    border-radius: 8px 0 0 8px;
    cursor: pointer;
    box-shadow: -2px 2px 12px rgba(231,76,60,.35);
    transition: all .3s ease;
    font-size: 12px;
    gap: 4px;
}
.float-service-btn i {
    font-size: 20px;
}
.float-service-btn:hover {
    width: 60px;
    background: linear-gradient(135deg, #c0392b, #e74c3c);
}

/* ========== 弹窗遮罩 ========== */
.service-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .55);
    z-index: 10000;
    justify-content: center;
    align-items: center;
}
.service-modal-overlay.active {
    display: flex;
}

/* ========== 弹窗主体 ========== */
.service-modal {
    position: relative;
    background: #fff;
    border-radius: 12px;
    padding: 32px 28px 24px;
    width: 300px;
    max-width: 88vw;
    text-align: center;
    animation: modalFadeIn .3s ease;
    box-shadow: 0 8px 30px rgba(0,0,0,.15);
}
@keyframes modalFadeIn {
    from { opacity: 0; transform: scale(.85); }
    to   { opacity: 1; transform: scale(1); }
}

/* 关闭按钮 */
.modal-close {
    position: absolute;
    top: 10px;
    right: 14px;
    background: none;
    border: none;
    font-size: 26px;
    color: #bbb;
    cursor: pointer;
    line-height: 1;
    transition: color .2s;
}
.modal-close:hover {
    color: #e74c3c;
}

/* 二维码区域 */
.qrcode-wrap {
    margin: 16px auto 12px;
    width: 180px;
    height: 180px;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
}
.qrcode-wrap img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}
.wechat-id {
    font-size: 15px;
    color: #333;
    margin: 6px 0 4px;
}
.wechat-id strong {
    color: #e74c3c;
}
.wechat-tip {
    font-size: 13px;
    color: #999;
}





.policy-modal-overlay {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,.55);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

.policy-modal-overlay.active {
    display: flex;
}

.policy-modal {
    background: #fff;
    border-radius: 10px;
    max-width: 520px;
    width: 100%;
    padding: 28px 22px 22px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,.25);
    max-height: 80vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.policy-close {
    position: absolute;
    right: 14px;
    top: 10px;
    background: none;
    border: none;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    color: #666;
}

.policy-modal h3 {
    margin: 0 0 14px;
    color: #123047;
    font-size: 20px;
}

.policy-modal-content {
    font-size: 14px;
    line-height: 1.8;
    color: #444;
    overflow-y: auto;
}

.policy-modal-content p {
    margin: 0 0 10px;
}