/* 全局重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

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

/* 顶部导航 */
.top-bar {
    background-color: #097c25;
    padding: 12px 0;
}

.top-bar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.top-bar-logo {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    line-height: 0;
}

.top-bar-logo img {
    display: block;
    height: 42px;
    width: auto;
    max-width: 180px;
    object-fit: contain;
}

.top-bar-nav {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px 20px;
}

.top-bar-nav a {
    color: rgba(255, 255, 255, 0.95);
    text-decoration: none;
    font-size: 15px;
    padding: 6px 4px;
    border-radius: 4px;
    transition: color 0.2s, background-color 0.2s;
}

.top-bar-nav a:hover,.top-bar-nav a.active {
    color: #fff;
    background-color: rgba(255, 255, 255, 0.12);
}

.top-bar a.active {
    color: #fff;
    font-weight: 600;
    background-color: rgba(255, 255, 255, 0.15);
}

/* 主视觉大轮播 */
.hero-section {
    position: relative;
    background-color: #000;
    color: #fff;
}

.hero-slider {
    position: relative;
    width: 100%;
    height: 360px;
    overflow: hidden;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.6s ease;
}

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

.hero-slide.active {
    opacity: 1;
}

.hero-overlay {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    padding: 10px 20px;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 8px;
}

.hero-overlay h1 {
    font-size: 32px;
    margin-bottom: 8px;
}

.hero-overlay p {
    font-size: 18px;
}

.hero-dots {
    position: absolute;
    left: 50%;
    bottom: 16px;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

.hero-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.6);
    cursor: pointer;
}

.hero-dot.active {
    background: #097c25;
}

@media (max-width: 768px) {
    .hero-slider {
        height: 240px;
    }
    .hero-overlay h1 {
        font-size: 24px;
    }
    .hero-overlay p {
        font-size: 16px;
    }
}

/* 通用区块样式 */
.section {
    padding: 40px 0;
}
.section h2 {
    text-align: center;
    font-size: 24px;
    margin-bottom: 30px;
    color: #097c25;
}

/* 关于我们 */
.about .links {
    text-align: center;
    margin-top: 20px;
}
.about .links a {
    display: inline-block;
    margin: 0 15px;
    color: #097c25;
    text-decoration: none;
}
.about .links a:hover {
    text-decoration: underline;
}

/* 产品展示 */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 20px 0;
}
.product-item img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    background-color: #eee;
}
.product-item p {
    text-align: center;
    margin-top: 8px;
    font-size: 14px;
}
.more-link {
    display: block;
    text-align: center;
    margin-top: 20px;
    color: #097c25;
    text-decoration: none;
}

/* 分页器 */
.pagination-list {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 28px;
    flex-wrap: wrap;
    list-style: none;
}
.pagination-list li a,.pagination-list li span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 12px;
    font-size: 14px;
    color: #333;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    text-decoration: none;
    cursor: pointer;
    transition: color 0.2s, background-color 0.2s, border-color 0.2s;
    font-family: inherit;
}
.pagination-list li:not(.disabled) a:hover {
    color: #097c25;
    border-color: #097c25;
    background: rgba(9, 124, 37, 0.06);
}
.pagination-list li.active a {
    color: #fff;
    background: #097c25;
    border-color: #097c25;
    cursor: default;
}
.pagination-list li.disabled a, .pagination-list li.disabled span {
    color: #bbb;
    cursor: not-allowed;
    background: #f5f5f5;
}
.pagination-info {
    text-align: center;
    margin-top: 10px;
    font-size: 13px;
    color: #666;
}

/* 新闻动态 */
.news-item {
    background: #f9f9f9;
    padding: 15px;
    margin-bottom: 15px;
    border-left: 4px solid #097c25;
}
.news-item h3 {
    font-size: 18px;
    margin-bottom: 8px;
}
.news-item p {
    font-size: 14px;
    color: #666;
}
.news-item a {
    color: #097c25;
    font-size: 14px;
    text-decoration: none;
}

/* 联系方式 */
.contact-footer {
    background-color: #f0f8ff;
    padding: 30px 0;
    text-align: center;
}
.contact-info p {
    margin: 8px 0;
}
.contact-info a {
    color: #097c25;
    text-decoration: none;
}

/* 版权 */
.copyright {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 15px 0;
    font-size: 14px;
}

/* 右侧悬浮联系我们 */
.contact-float {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 999;
}

.contact-float-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 64px;
    padding: 16px 8px;
    background: linear-gradient(135deg, #097c25 0%, #0a9d2f 100%);
    color: #fff;
    text-decoration: none;
    border-radius: 8px 0 0 8px;
    box-shadow: -2px 0 12px rgba(9, 124, 37, 0.3), 0 4px 16px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    cursor: pointer;
}

.contact-float-btn:hover {
    background: linear-gradient(135deg, #0a9d2f 0%, #0bb83a 100%);
    box-shadow: -4px 0 20px rgba(9, 124, 37, 0.4), 0 6px 24px rgba(0, 0, 0, 0.2);
    transform: translateX(-4px);
}

.contact-float-icon {
    font-size: 24px;
    line-height: 1;
}

.contact-float-text {
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.5px;
    writing-mode: vertical-rl;
    text-orientation: upright;
    line-height: 1.2;
}

@media (max-width: 768px) {
    .contact-float {
        right: -2px;
    }
    .contact-float-btn {
        width: 56px;
        padding: 14px 6px;
    }
    .contact-float-icon {
        font-size: 20px;
    }
    .contact-float-text {
        font-size: 12px;
    }
}
.product-detail-content {
    text-align:center;
}
.pro2 ul { padding-left:25px;}
.pro2 li { float:left; width:182px; margin:8px 8px 16px 12px; overflow:hidden; text-align:center;}
.pro2 li .pimg { width:180px; height:150px; overflow:hidden; border:#ccc 1px solid;}
.pro2 li .pimg img { width:180px; height:150px; transition:all 0.2s;}
.pro2 li .pimg:hover img{ transform:scale(1.1,1.1);transform-origin:center center}
/* 微信二维码遮罩层 */
.wechat-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}
.wechat-overlay.is-visible {
    display: flex;
}
.wechat-overlay-dialog {
    position: relative;
    background: #fff;
    border-radius: 12px;
    padding: 20px 24px 24px;
    max-width: 320px;
    width: 88%;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
    text-align: center;
}
.wechat-overlay-dialog h3 {
    font-size: 18px;
    margin-bottom: 4px;
    color: #097c25;
}
.wechat-overlay-desc {
    font-size: 13px;
    color: #666;
    margin-bottom: 12px;
}
.wechat-overlay-qrcode {
    width: 200px;
    height: 200px;
    margin: 0 auto;
    border-radius: 10px;
    border: 1px dashed #cccccc;
    background: #f9f9f9;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 13px;
}
.wechat-overlay-close {
    position: absolute;
    top: 8px;
    right: 10px;
    border: none;
    background: transparent;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    color: #999;
}
.wechat-overlay-close:hover {
    color: #333;
}

@media (max-width: 768px) {
    .contact-float {
        right: -2px;
    }
    .contact-float-btn {
        width: 56px;
        padding: 14px 6px;
    }
    .contact-float-icon {
        font-size: 20px;
    }
    .contact-float-text {
        font-size: 12px;
    }
}
.product-detail-content {
    text-align:center;
}