/* ===================== 全局重置与基础规范 ===================== */
html {
  overflow-x: hidden;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
    color: #333;
    line-height: 1.7;
    background: #fff;
    padding-bottom: 0;
}
img {
    max-width: 100%;
    height: auto;
    display: block;
}
a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s;
}
ul {
    list-style: none;
}

/* ===================== 公共居中容器 ===================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* =====================顶部信息条===================== */
.top-bar{
    background:#f5f7fa;
    font-size:14px;
    color:#666;
    padding:6px 0;
}
.top-bar .container{
    display:flex;
    justify-content:space-between;
    align-items:center;
}

/* ===================== 头部导航 ===================== */
.header {
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 9999 !important;
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    height: 72px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

/* ==========LOGO修复========== */
.logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    min-width: 0;
}
.logo img {
    height: 48px;
    width: auto !important;
    display: block;
    object-fit: contain;
}

.nav {
    min-width: 0;
    display:block;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 22px;
    flex-wrap: nowrap;
}

.nav-list > li {
    flex-shrink: 0;
    position: relative;
}

.nav-list a {
    font-size: 16px;
    color: #333;
    padding: 8px 0;
    position: relative;
    white-space: nowrap;
}

.nav-list a:hover,
.nav-list a.active {
    color: #007acc;
}

.nav-list a.active::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: #007acc;
}

/*=====更多下拉子菜单（仅用于收纳溢出一级栏目，不再做栏目子菜单）=====*/
.submenu {
    display: none;
    position: absolute;
    left: 0;
    top: 100%;
    margin-top:4px;
    min-width: 140px;
    background:#fff;
    border:1px solid #eee;
    border-radius:4px;
    box-shadow:0 3px 12px rgba(0,0,0,0.07);
    z-index:999999 !important;
}
.submenu li{
    display:block;
}
.submenu li a{
    display:block;
    padding:10px 14px;
}
.submenu li a.active {
    color: #007acc;
    background: #f6f9fc;
}
.submenu li a:hover {
    background: #f6f9fc;
}
.nav-more:hover .submenu {
    display:block;
}

/* ========= 移动端汉堡按钮 ========= */
.mobile-menu-btn {
    display: none;
    font-size: 24px;
    cursor: pointer;
    color:#333;
    flex-shrink:0 !important;
    z-index:999999 !important;
    position: relative;
    padding: 8px 12px;
}

/*移动端展开菜单样式 */
.nav.mobile-show {
    display: block !important;
    position: absolute;
    top: 72px;
    left: 0;
    width: 100%;
    background: #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    max-height: calc(100vh - 72px);
    overflow-y: auto;
    z-index: 99998;
}

.nav.mobile-show .nav-list {
    flex-direction: column;
    gap: 0;
    align-items: stretch;
}

.nav.mobile-show .nav-list > li {
    width: 100%;
    border-bottom: 1px solid #f0f0f0;
}

.nav.mobile-show .nav-list a {
    display: block;
    padding: 14px 20px;
}
.nav.mobile-show .nav-more {
    display: none;
}

/* 屏幕小于1200：显示汉堡按钮，隐藏原始PC导航 */
@media(max-width:1200px){
    .mobile-menu-btn{
        display:block;
    }
    .nav{
        display:none;
    }
    .nav.mobile-show{
        display:block !important;
    }
}
/* ===================== 首页专属Banner ===================== */
.banner {
    width: 100%;
    height: 460px;
    background: linear-gradient(rgba(0,60,120,0.10), rgba(0,60,120,0.10)),
                url("/images/banner-main.jpg") center/cover no-repeat;
    display: flex;
    align-items: center;
    color: #fff;
}
.banner-content h1 {
    font-size: 40px;
    margin-bottom: 16px;
    font-weight: 700;
}
.banner-content p {
    font-size: 18px;
    max-width: 650px;
    opacity: 0.95;
}

/* ===================== 内页通用Banner ===================== */
.page-banner {
    width: 100%;
    height: 320px;
    background: linear-gradient(rgba(0,60,120,0.10), rgba(0,60,120,0.10)),
                url("/images/banner-inner.jpg") center/cover no-repeat;
    display: flex;
    align-items: center;
    color: #fff;
    text-align: center;
}
.page-banner h1 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 8px;
}
.page-banner p {
    font-size: 15px;
    opacity: 0.9;
}

/* ===================== 通用区块 ===================== */
.section {
    padding: 40px 0;
}
.section-gray {
    background: #f7f9fc;
}
.section-title {
    text-align: center;
    margin-bottom: 30px;
}
.section-title h2 {
    font-size: 30px;
    color: #222;
    margin-bottom: 10px;
    font-weight: 600;
}
.section-title p {
    color: #777;
    font-size: 15px;
}

/* ===================== 首页介绍文本 ===================== */
.intro-text {
    max-width: 820px;
    margin: 0 auto;/*
    text-align: center;*/
    font-size: 16px;
    color: #555;
}
.intro-text p {
    margin-bottom: 14px;
	text-indent: 2em; /*首行空两格*/
    text-align: justify; /*两端对齐，换行整齐*/
    line-height:1.8;
}

/* ===================== 首页产品展示 左图右文 ===================== */
.product-wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}
.product-img {
    width: 100%;
    height: 360px;
    background: #e8f4fc;
    border-radius: 6px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}
.product-info h3 {
    font-size: 26px;
    color: #222;
    margin-bottom: 20px;
}
.product-info p {
    margin-bottom: 14px;
    color: #555;
    font-size: 16px;
}
.product-feature {
    margin-top: 20px;
}
.product-feature li {
    padding: 6px 0;
    color: #444;
    padding-left: 20px;
    position: relative;
}
.product-feature li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #007acc;
    font-weight: bold;
}

/* ===================== 服务优势 四列 ===================== */
.advantage-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}
.adv-item {
    text-align: center;
    padding: 30px 20px;
    background: #fff;
    border-radius: 6px;
    border: 1px solid #eef2f7;
    transition: box-shadow 0.3s;
}
.adv-item:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}
.adv-icon {
    font-size: 36px;
    color: #007acc;
    margin-bottom: 16px;
}
.adv-item h4 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #222;
}
.adv-item p {
    font-size: 14px;
    color: #777;
}

/* ===================== 配送区域 ===================== */
.area-box {
    max-width: 1000px;
    margin: 0 auto;
    background: #fff;
    padding: 36px 40px;
    border-radius: 6px;
    border: 1px solid #eef2f7;
}
.area-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-bottom: 20px;
}
.area-tags span {
    padding: 8px 18px;
    background: #f0f7fc;
    color: #007acc;
    border-radius: 4px;
    font-size: 15px;
}
.area-tip {
    text-align: center;
    color: #666;
    font-size: 14px;
}

/* ===================== 页脚 ===================== */
footer {
    background: #7a4fb1;
    color: #fff;
    padding: 30px 0;
    text-align: center;
    font-size: 14px;
}

/* ===================== 移动端底部固定双按钮 紫色系，对应页脚颜色 ===================== */
.mobile-footer-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 56px;
    z-index: 9999;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
}
.mobile-footer-bar a {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
}
.btn-call {
    background: #7a4fb1;
}
.btn-book {
    background: #6b3fa3;
}

/* ===================== 响应式公共适配 统一断点1200px ===================== */
@media (max-width:1200px) {
    .header-inner{
        height:64px;
    }
    /*移动端LOGO缩小一点*/
    .logo img{
        height:48px;
    }
    .nav{
        display:none;
    }
    .mobile-menu-btn{
        display:block !important;
    }
    .nav.mobile-show{
        display:block;
        position:absolute;
        top:64px;
        left:0;
        width:100%;
        background:#fff;
        box-shadow:0 4px 12px rgba(0,0,0,0.08);
        max-height:calc(100vh - 64px);
        overflow-y:auto;
        z-index:999998 !important;
    }
    .nav.mobile-show .nav-list{
        flex-direction:column;
        gap:0;
    }
    .nav.mobile-show .nav-list>li{
        border-bottom:1px solid #f0f0f0;
    }
    .nav.mobile-show .nav-list a{
        display:block;
        padding:14px 20px;
    }

    .banner {
        height: 360px;
    }
    .banner-content h1 {
        font-size: 30px;
    }
    .product-wrap {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .advantage-list {
        grid-template-columns: repeat(2, 1fr);
    }
    .page-banner {
        height: 180px;
    }
    .page-banner h1 {
        font-size: 26px;
    }
}

@media (max-width: 576px) {
    body {
        padding-bottom: 56px;
    }
    .section {
        padding: 50px 0;
    }
    .section-title h2 {
        font-size: 24px;
    }
    .banner {
        height: 280px;
    }
    .banner-content h1 {
        font-size: 24px;
    }
    .banner-content p {
        font-size: 15px;
    }
    .advantage-list {
        grid-template-columns: 1fr;
    }
    .page-banner {
        height: 150px;
    }
    .page-banner h1 {
        font-size: 22px;
    }
    .top-bar .container {
        flex-direction: column;
        gap: 4px;
        text-align: center;
    }
    /*小屏幕开启底部双按钮*/
    .mobile-footer-bar {
        display: flex;
    }
}

/* ===================== 1. 关于我们页面样式 ===================== */
.about-wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    margin-bottom: 50px;
}
.about-img {
    width: 100%;
    height: 320px;
    background: #e8f4fc;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #007acc;
}
.about-text h3 {
    font-size: 24px;
    color: #222;
    margin-bottom: 20px;
}
.about-text p {
    margin-bottom: 14px;
    color: #555;
    line-height: 1.8;
}
.culture-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 30px;
}
.culture-item {
    text-align: center;
    padding: 30px 20px;
    background: #fff;
    border-radius: 6px;
    border: 1px solid #eef2f7;
}
.culture-item h4 {
    font-size: 18px;
    color: #007acc;
    margin-bottom: 10px;
}
.culture-item p {
    font-size: 14px;
    color: #666;
}

@media (max-width: 992px) {
    .about-wrap {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .culture-list {
        grid-template-columns: 1fr;
    }
}

/* ===================== 产品列表样式 ===================== */
.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}
.product-card {
    background: #fff;
    border: 1px solid #eef2f7;
    border-radius: 6px;
    overflow: hidden;
    transition: box-shadow 0.3s;
}
.product-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}
.product-card-img {
    width: 100%;
    height: 220px;
    background: #f0f7fc;
    display: flex;
    align-items: center;
    justify-content: center;
}
.product-card-img img{
    width:100%;
    height:100%;
    object-fit:cover;
}
.product-card-body {
    padding: 20px;
}
.product-card-body h3 {
    font-size: 18px;
    color: #222;
    margin-bottom: 8px;
}
.product-card-body p {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
    line-height: 1.6;
}
.product-card-body .btn-more {
    display: inline-block;
    padding: 6px 18px;
    border: 1px solid #007acc;
    color: #007acc;
    border-radius: 4px;
    font-size: 14px;
    transition: all 0.2s;
}
.product-card-body .btn-more:hover {
    background: #007acc;
    color: #fff;
}
.pagination{margin-top:30px;text-align:center;}
.pagination a{margin:0 4px;padding:4px 10px;border:1px solid #ccc;}

@media (max-width: 992px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 576px) {
    .product-grid {
        grid-template-columns: 1fr;
    }
}
/* ===================== 3. 产品详情页面样式 ===================== */
.product-detail-wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}
.product-detail-img {
    width: 100%;
    height: 400px;
    background: #f0f7fc;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #007acc;
    position: sticky;
    top: 100px;
}
.product-detail-info h2 {
    font-size: 28px;
    color: #222;
    margin-bottom: 15px;
}
.product-price {
    font-size: 24px;
    color: #e63946;
    font-weight: 700;
    margin-bottom: 20px;
}
.product-desc {
    color: #555;
    margin-bottom: 25px;
    line-height: 1.8;
}
.product-param {
    border-top: 1px solid #eee;
    padding-top: 25px;
}
.product-param h3 {
    font-size: 18px;
    margin-bottom: 15px;
    color: #222;
}
.param-table {
    width: 100%;
    border-collapse: collapse;
}
.param-table td {
    padding: 10px 12px;
    border: 1px solid #eee;
    font-size: 14px;
}
.param-table td:first-child {
    background: #f7f9fc;
    width: 120px;
    color: #666;
}
.product-detail-content {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid #eee;
}
.product-detail-content h3 {
    font-size: 20px;
    margin-bottom: 20px;
    color: #222;
}
.product-detail-content p {
    margin-bottom: 14px;
    color: #555;
    line-height: 1.8;
}

@media (max-width: 992px) {
    .product-detail-wrap {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .product-detail-img {
        position: static;
        height: 320px;
    }
}

/* ===================== 4. 新闻列表页面样式 ===================== */
.news-list {
    max-width: 900px;
    margin: 0 auto;
}
.news-item {
    padding: 22px 0;
    border-bottom: 1px dashed #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}
.news-item:last-child {
    border-bottom: none;
}
.news-item-title {
    flex: 1;
}
.news-item-title a {
    font-size: 17px;
    color: #333;
    line-height: 1.5;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.news-item-title a:hover {
    color: #007acc;
}
.news-item-title p {
    font-size: 14px;
    color: #888;
    margin-top: 6px;
    line-height: 1.6;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
}
.news-item-date {
    flex-shrink: 0;
    text-align: right;
    color: #999;
    font-size: 14px;
}

@media (max-width: 576px) {
    .news-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    .news-item-date {
        text-align: left;
    }
}

/* ===================== 5. 新闻详情页面样式 ===================== */
.news-detail {
    max-width: 850px;
    margin: 0 auto;
    background: #fff;
    padding: 40px;
    border-radius: 6px;
}
.news-detail-title {
    text-align: center;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}
.news-detail-title h1 {
    font-size: 24px;
    color: #222;
    line-height: 1.5;
    margin-bottom: 12px;
}
.news-detail-meta {
    color: #999;
    font-size: 14px;
}
.news-detail-meta span {
    margin: 0 10px;
}
.news-detail-content {
    color: #444;
    line-height: 1.9;
    font-size: 16px;
}
.news-detail-content p {
    margin-bottom: 18px;
    text-indent: 2em;
}
.news-prev-next {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}
.news-prev-next p {
    padding: 8px 0;
    font-size: 15px;
    color: #666;
}
.news-prev-next a {
    color: #007acc;
}

@media (max-width: 576px) {
    .news-detail {
        padding: 25px 20px;
    }
    .news-detail-title h1 {
        font-size: 20px;
    }
}

/* ===================== 在线留言页面（table表单新版） ===================== */
.message-form {
    max-width: 800px;
    margin: 0 auto;
    background: #fff;
    padding: 40px;
    border-radius: 6px;
    border: 1px solid #eef2f7;
}
/* table表单全局适配 */
.message-form table{
    width:100%;
}
.message-form table td{
    padding:8px 4px;
    font-size:15px;
}
.message-form input.intxt{
    border:1px solid #ccc;
    padding:6px;
    border-radius:3px;
}
.message-form select{
    padding:4px;
    border:1px solid #ccc;
    border-radius:3px;
}
.message-form textarea{
    border:1px solid #ccc;
    border-radius:3px;
    padding:6px;
}
.message-form input.coolbg{
    padding:6px 18px;
    border:1px solid #ccc;
    background:#f5f5f5;
    border-radius:3px;
    cursor:pointer;
}

/* 移动端适配，table表单变成流式，防止挤爆屏幕 */
@media (max-width: 640px) {
    .message-form {
        padding:20px 15px;
    }
    /* 小屏幕表格转上下布局 */
    .message-form table,.message-form table tbody,.message-form table tr{
        display:block;
        width:100%;
    }
    .message-form table td{
        display:block;
        width:100% !important;
        text-align:left !important;
        padding:6px 0;
    }
    .message-form input.intxt,
    .message-form select{
        width:100% !important;
    }
}
/* ===================== 7. 联系我们页面样式 ===================== */
.contact-wrap {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 50px;
}
.contact-info h3 {
    font-size: 22px;
    color: #222;
    margin-bottom: 25px;
}
.contact-item {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px dashed #eee;
}
.contact-item:last-child {
    border-bottom: none;
}
.contact-item h4 {
    font-size: 16px;
    color: #007acc;
    margin-bottom: 8px;
}
.contact-item p {
    color: #555;
    font-size: 15px;
}
.contact-map {
    width: 100%;
    height: 380px;
    background: #e8f4fc;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #007acc;
}

@media (max-width: 992px) {
    .contact-wrap {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .contact-map {
        height: 300px;
    }
}

/* ===================== 新增：内容区通用方框样式 ===================== */
.content-box {
    background: #fff;
    border: 1px solid #eef2f7;
    border-radius: 6px;
    padding: 40px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}

/* ===================== 分页样式（适配织梦默认li输出） ===================== */
.pagination {
    text-align: center;
    margin-top: 40px;
    line-height: 1;
}
.pagination li {
    display: inline-block;
    list-style: none;
    margin: 0 4px;
    padding: 0;
    vertical-align: middle;
}
.pagination li a,
.pagination li.thisclass {
    display: inline-block;
    padding: 6px 14px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    color: #666;
    background: #fff;
    text-decoration: none;
    transition: all 0.2s;
}
.pagination li a:hover,
.pagination li.thisclass {
    background: #7a4fb1;
    border-color: #7a4fb1;
    color: #fff;
}

/* ===================== 修正：产品列表图自适应 ===================== */
.product-card-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

/*==========全部内容区域图片强制居中（文章+栏目content）==========*/
.news-detail-content img,
.content-box img,
.message-form img {
    display: block !important;
    max-width:100% !important;
    height:auto !important;
    margin:15px auto !important;
    float:none !important;
}

.news-detail-content p.text-center,
.content-box p.text-center,
.message-form p.text-center{
    text-align:center !important;
}

.news-detail-content,
.content-box,
.message-form{
    overflow:hidden;
}
/* 禁止移动端横向拖动 */
html,body{
    overscroll-behavior:none;
    touch-action: pan-y;
    height:100%;
    overflow-x:hidden;
}

@media (max-width:1200px) {
    .header-inner{
        height:64px;
        padding:0 15px; /*左右边距，防止贴屏幕边缘*/
        display:flex;
        justify-content: space-between;
        align-items:center;
    }
    /*移动端LOGO缩小一点，允许压缩，不挤汉堡按钮*/
    .logo{
        flex:1;
        min-width:0;
        padding-right:10px;
    }
    .logo img{
        height:42px;
        max-width: 180px;
    }
    .nav{
        display:none;
    }
    .mobile-menu-btn{
        display:block !important;
        flex-shrink:0 !important;/*汉堡按钮绝不被压缩，固定右侧*/
    }
    .nav.mobile-show{
        display:block;
        position:absolute;
        top:64px;
        left:0;
        width:100%;
        background:#fff;
        box-shadow:0 4px 12px rgba(0,0,0,0.08);
        max-height:calc(100vh - 64px);
        overflow-y:auto;
        -webkit-overflow-scrolling: touch;
        z-index:999998 !important;
    }
    .nav.mobile-show .nav-list{
        flex-direction:column;
        gap:0;
    }
    .nav.mobile-show .nav-list>li{
        border-bottom:1px solid #f0f0f0;
    }
    .nav.mobile-show .nav-list a{
        display:block;
        padding:14px 20px;
    }
    /*移动端菜单，隐藏更多按钮*/
    .nav.mobile-show .nav-more {
        display: none !important;
    }

    .banner {
        height: 360px;
    }
    .banner-content h1 {
        font-size: 30px;
    }
    .product-wrap {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .advantage-list {
        grid-template-columns: repeat(2, 1fr);
    }
    .page-banner {
        height: 180px;
    }
    .page-banner h1 {
        font-size: 26px;
    }
}