/* kiwifruit 响应式布局 */
html,
body {
    overflow-x: hidden;
    max-width: 100%;
}
html {
    height: 100%;
}
body {
    min-height: 100%;
    margin: 0;
}
html {
    -webkit-text-size-adjust: 100%;
}
img {
    max-width: 100%;
    height: auto;
}
.container {
    width: 100%;
    max-width: 1600px;
    padding-left: 15px;
    padding-right: 15px;
    box-sizing: border-box;
}
.product .container a,
.product .container a .thumb {
    box-sizing: border-box;
}
/* 桌面端：推广条三列横排，二维码不溢出绿条 */
@media screen and (min-width: 993px) {
    .adv-1 {
        height: auto;
        min-height: 200px;
        padding: 22px 0;
        overflow: hidden;
    }
    .adv-1 > .container {
        display: flex;
        width: 1600px;
        max-width: 1600px;
        padding-left: 0;
        padding-right: 0;
        flex-wrap: nowrap;
        align-items: center;
        box-sizing: border-box;
    }
    .adv-tip {
        flex: 1 1 auto;
        min-width: 0;
        max-width: 980px;
        width: auto !important;
    }
    .adv-contact {
        flex: 0 0 300px;
        margin-left: 16px !important;
        margin-top: 0 !important;
        order: 2;
    }
    .adv-code {
        flex: 0 0 120px;
        width: 120px !important;
        height: 120px;
        margin: 0 0 0 16px !important;
        order: 3;
        align-self: center;
    }
}
/* 平板：首页 Banner 高度随屏宽 */
@media screen and (min-width: 769px) and (max-width: 992px) {
    .home-banner {
        height: 400px;
    }
    .home-banner-title {
        font-size: 34px;
    }
}
/* 仅桌面端：产品区 1600px 一行 4 个（网格自适应，勿写死 380） */
@media screen and (min-width: 1601px) {
    .product > .container,
    .product > .container.flex-wrap {
        width: 1600px;
        max-width: 1600px;
        padding-left: 0;
        padding-right: 0;
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 26px;
    }
    .product .container a {
        width: 100%;
        margin: 0;
    }
    .product .container a .thumb {
        width: 100%;
        height: auto;
        aspect-ratio: 1;
    }
}
.location {
    width: 100%;
    max-width: 1600px;
    padding-left: 15px;
    padding-right: 15px;
    box-sizing: border-box;
}
.content > .container {
    flex-wrap: wrap;
    gap: 24px;
}
.common-con {
    width: 100%;
    max-width: none;
}
.common-right {
    width: 100%;
    max-width: 340px;
    margin-left: 0;
}
/* 桌面内页：主栏自适应 + 侧栏固定 340 */
@media screen and (min-width: 993px) {
    .content > .container {
        flex-wrap: nowrap;
        gap: 40px;
        width: 1600px;
        max-width: 1600px;
        padding-left: 0;
        padding-right: 0;
    }
    .common-con {
        flex: 1 1 auto;
        width: auto;
        max-width: none;
        min-width: 0;
    }
    .common-right {
        flex: 0 0 340px;
        width: 340px;
        max-width: 340px;
    }
    /* 桌面端产品列表：三列网格填满主栏 */
    .pro-list {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 26px;
    }
    .pro-list a {
        width: 100%;
        margin: 0;
        box-sizing: border-box;
    }
    .pro-list a .thumb {
        width: 100%;
        height: auto;
        aspect-ratio: 1;
    }
}
/* 平板/手机：产品列表两列 */
@media screen and (max-width: 992px) {
    .pro-list {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 13px;
    }
    .pro-list a {
        width: 100%;
        margin: 0;
    }
    .pro-list a .thumb {
        width: 100%;
        height: auto;
        min-height: 0;
        aspect-ratio: 1;
    }
}
#banner .layui-carousel,
#banner .layui-carousel [carousel-item] > div > img {
    max-width: 100%;
}
.home-banner-img {
    max-width: 100%;
}

/* 移动端导航 */
.nav-toggle {
    display: none;
    position: absolute;
    right: 15px;
    top: 50%;
    margin-top: -12px;
    width: 28px;
    height: 24px;
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    z-index: 1001;
}
.nav-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    margin: 4px 0;
    background: #fff;
    border-radius: 2px;
    transition: 0.3s;
}
nav {
    position: relative;
}
nav.nav-open .nav-toggle span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
nav.nav-open .nav-toggle span:nth-child(2) {
    opacity: 0;
}
nav.nav-open .nav-toggle span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

@media screen and (max-width: 1600px) {
    /* 五大优势保持 1200 构图居中，勿拉伸（绝对定位按 1200 设计） */
    .advantage-con {
        width: 1200px;
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
        background-size: auto;
    }
    .product > .container,
    .product > .container.flex-wrap {
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 15px;
        padding-right: 15px;
        box-sizing: border-box;
        display: grid !important;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 26px;
    }
    .product .container a {
        width: 100%;
        margin: 0;
    }
    .product .container a .thumb {
        width: 100%;
        height: auto;
        min-height: 0;
        aspect-ratio: 1;
    }
    .news .container {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px 40px;
    }
    .news .container > li {
        flex: none;
        width: 100%;
        margin-left: 0 !important;
    }
    footer .footer-body {
        flex-wrap: wrap;
        gap: 20px 24px;
    }
    .botnav {
        flex: 1 1 360px;
        max-width: none;
        min-width: 0;
        gap: 0 28px;
    }
    .botnav .botnav-col {
        min-width: 0;
    }
    .botnav .botnav-links a {
        white-space: nowrap;
    }
    .botcontcat {
        flex: 1 1 200px;
        width: auto;
        max-width: 260px;
        margin-top: 0;
    }
    .bewm.bewm-row {
        flex: 1 1 100%;
        width: auto;
        flex-wrap: nowrap;
        justify-content: flex-start;
        gap: 10px;
    }
    .bewm li {
        flex: 0 0 110px;
        width: 110px;
        max-width: 110px;
        margin: 0;
    }
}

@media screen and (max-width: 992px) {
    nav a {
        padding: 0 20px;
        font-size: 15px;
    }
    .product > .container,
    .product > .container.flex-wrap {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 26px;
    }
    .product .container a {
        width: 100%;
        margin: 0;
    }
    .product .container a .thumb {
        width: 100%;
    }
    .news .container {
        display: grid !important;
        grid-template-columns: 1fr;
        gap: 0;
    }
    .news .container > li {
        flex: none;
        width: 100%;
        margin-left: 0 !important;
    }
    .news-list ul li span {
        width: 100% !important;
        white-space: normal;
    }
    .news-list ul li {
        flex-wrap: wrap;
    }
    .news-list ul li a:first-child {
        flex: 0 0 100%;
        width: 100%;
    }
    .news-list ul li a:first-child img {
        width: 100%;
        max-width: 100%;
    }
    .news-list ul li > a:nth-child(2) {
        width: 100%;
        min-width: 0;
    }
    .content > .container {
        width: 100% !important;
        max-width: 100% !important;
    }
    .common-con {
        width: 100% !important;
    }
    .pre-next {
        flex-direction: column;
    }
    .pre-next span {
        width: 100%;
        margin-bottom: 10px;
    }
}

@media screen and (max-width: 768px) {
    .nav-toggle {
        display: block;
    }
    nav {
        position: sticky;
        top: 0;
        z-index: 10001;
    }
    nav > .container {
        display: none;
        flex-direction: column;
        position: fixed;
        left: 0;
        right: 0;
        top: 50px;
        bottom: 0;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0;
        padding: 0;
        background: #4ab344;
        z-index: 10002;
        overflow-x: hidden;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        box-shadow: none;
    }
    nav.nav-open > .container {
        display: flex;
    }
    body.nav-menu-open::before {
        content: "";
        position: fixed;
        left: 0;
        right: 0;
        top: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.4);
        z-index: 9998;
    }
    .nav-toggle {
        z-index: 10003;
    }
    nav a {
        display: block;
        width: 100%;
        padding: 14px 20px;
        border: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.2);
        text-align: center;
        box-sizing: border-box;
        color: #fff !important;
        background: #4ab344;
        font-size: 16px;
    }
    nav a:hover {
        color: #ff0 !important;
        background: #3d9a38;
    }
    body.nav-menu-open {
        overflow: hidden;
        width: 100%;
        height: 100%;
        touch-action: none;
    }
    header.site-header,
    header {
        background-color: #a4cbe8;
        background-image: url(../images/top_m.jpg);
    }
    .site-header-inner.container {
        padding-top: 10px;
        padding-bottom: 10px;
        -webkit-align-items: center;
        align-items: center;
    }
    .site-brand-logo {
        max-height: 48px;
    }
    .site-header-slogan {
        margin-left: 10px;
    }
    .site-slogan-inner {
        padding: 7px 12px 7px 16px;
        font-size:14px;
        letter-spacing: 0;
        border-radius: 6px;
    }
    .nav-links {
        -webkit-flex-direction: column;
        flex-direction: column;
        width: 100%;
    }
    .nav-links a {
        padding: 0 24px;
        font-size: 18px;
        border-left: none;
        border-right: none;
    }
    .nav-user {
        -webkit-order: -1;
        order: -1;
        -webkit-flex-direction: column;
        flex-direction: column;
        width: 100%;
        margin: 0;
        padding: 0;
        background: rgba(0, 0, 0, 0.06);
        border-bottom: 2px solid rgba(255, 255, 255, 0.15);
    }
    .nav-user-name {
        display: block;
        max-width: none;
        width: 100%;
        padding: 12px 20px;
        margin: 0;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.15);
        text-align: center;
        box-sizing: border-box;
        font-size: 15px;
    }
    .nav-user-name::before {
        content: "会员 · ";
        font-weight: normal;
        opacity: 0.85;
    }
    .nav-user a {
        border-left: none;
    }
    .product,
    .news {
        padding: 40px 0;
    }
    .product .container a {
        width: 100%;
        margin-right: 0;
    }
    .product .container a:nth-child(4n),
    .product .container a:nth-child(2n) {
        margin-right: 0;
    }
    .product .container a .thumb {
        width: 100%;
    }
    .pro-list a,
    .pro-list a .thumb {
        width: 100%;
        margin-right: 0;
    }
    .advantage .index-title {
        font-size: 28px;
        padding-top: 40px;
        padding-bottom: 30px;
    }
    .base-display .index-title,
    .base-display-head {
        padding-top: 28px;
        padding-bottom: 10px;
    }
    /* 五大优势：取消绝对定位与背景图，改为卡片列表 */
    .advantage {
        overflow: hidden;
    }
    .advantage .index-title {
        padding-top: 30px;
        padding-bottom: 20px;
    }
    .advantage .index-title h3 {
        font-size: 20px;
        height: auto;
        line-height: 1.4;
    }
    .advantage .index-title span {
        font-size: 32px;
        height: auto;
        line-height: 1.3;
    }
    .advantage .index-title span font {
        font-size: 40px;
    }
    .advantage-con {
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        min-height: 0 !important;
        margin: 0 auto 20px;
        padding: 0 15px 10px;
        background: none !important;
        position: static !important;
        overflow: visible;
    }
    .advantage-con dl {
        position: static !important;
        left: auto !important;
        right: auto !important;
        top: auto !important;
        display: flex !important;
        flex-direction: row !important;
        align-items: center;
        width: 100% !important;
        max-width: 100%;
        margin: 0 0 14px 0 !important;
        padding: 14px;
        background: #f7f7f7;
        border-radius: 8px;
        box-sizing: border-box;
    }
    .advantage-con dl dt {
        order: 1;
        flex: 1;
        width: auto !important;
        min-width: 0;
        padding-top: 0 !important;
    }
    .advantage-con dl dd {
        order: 2;
        flex: 0 0 88px;
        width: 88px !important;
        margin: 0 0 0 12px !important;
    }
    .advantage-con dl dd img {
        width: 100%;
        height: auto;
        display: block;
    }
    .advantage-con dl h3 {
        font-size: 20px;
    }
    .advantage-con dl h3 font {
        font-size: 24px;
    }
    .advantage-con dl p {
        font-size:14px;
        line-height: 1.5;
    }
    /* 页脚 */
    footer {
        overflow: hidden;
        padding: 22px 0 18px;
    }
    footer > .container,
    footer .flink.container {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        flex-wrap: nowrap;
    }
    footer .flink {
        gap: 6px 0;
        padding: 0 16px 14px;
        margin-bottom: 18px;
    }
    footer .flink-links {
        width: 100%;
    }
    footer .footer-body {
        flex-direction: column;
        flex-wrap: wrap;
        gap: 22px;
        padding: 0 16px;
    }
    .botnav,
    .botcontcat {
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 0;
        float: none;
        flex: 0 0 100%;
        margin-left: 0 !important;
    }
    .bewm.bewm-row {
        flex: 0 0 100%;
        width: 100% !important;
        margin-top: 0;
        justify-content: space-between;
        gap: 8px;
    }
    .botnav {
        display: flex;
        flex-wrap: nowrap;
        gap: 0 12px;
        overflow: visible;
    }
    .botnav li,
    .botnav .botnav-col {
        float: none;
        flex: 0 0 50%;
        width: 50%;
        padding: 0 6px 0 0;
        margin-bottom: 0;
        box-sizing: border-box;
    }
    .botnav .botnav-links-2col {
        grid-template-columns: 1fr 1fr;
        column-gap: 8px;
    }
    .footer-col-title {
        margin-bottom: 10px;
    }
    .footer-contact-list li {
        margin-bottom: 8px;
    }
    .botcontcat > div {
        overflow: hidden;
    }
    .botcontcat .order-btn,
    .botcontcat div.order-btn {
        float: none !important;
        display: block;
        width: 100% !important;
        max-width: 100%;
        margin: 10px 0 0 !important;
        box-sizing: border-box;
    }
    ul.bewm,
    ul.bewm.bewm-row {
        display: flex;
        flex-wrap: nowrap;
        justify-content: space-between;
        align-items: stretch;
        width: 100% !important;
        margin: 0;
        padding: 0;
        list-style: none;
        float: none;
        clear: both;
        box-sizing: border-box;
    }
    .bewm li {
        float: none !important;
        flex: 1 1 0;
        width: auto !important;
        max-width: none;
        min-width: 0;
        height: auto !important;
        min-height: 0;
        margin: 0 !important;
        padding: 8px 4px 10px;
        box-sizing: border-box;
    }
    .bewm li img {
        width: 100%;
        max-width: 88px;
        height: auto;
    }
    .bewm li p {
        font-size:14px;
        line-height: 1.35;
        padding-top: 6px;
    }
    footer .copyright {
        height: auto !important;
        min-height: 0;
        line-height: 1.6;
        padding: 12px 12px;
        margin-top: 18px;
        text-align: center;
        word-break: break-word;
        font-size:14px;
    }
    footer .flink > div,
    footer .flink-links {
        margin-top: 0;
    }
    main {
        display: block;
        overflow-x: hidden;
    }
    /* 首页 Banner：手机高度自适应 */
    .home-banner {
        height: auto;
        min-height: 220px;
        max-height: none;
        aspect-ratio: 16 / 7;
    }
    .home-banner-panel {
        padding: 28px 16px 40px;
        align-items: flex-end;
    }
    .home-banner-title {
        font-size: 26px;
    }
    .home-banner-desc {
        font-size: 14px;
        line-height: 1.7;
        margin-bottom: 12px;
    }
    .home-banner-tags {
        margin-bottom: 14px;
    }
    .home-banner-cta {
        padding: 8px 16px;
        font-size: 14px;
    }
    .home-banner-dots {
        bottom: 10px;
    }
    .layui-carousel-ind {
        bottom: 8px !important;
    }
    .second-banner {
        height: auto !important;
    }
    .second-banner img,
    .second-banner-img {
        width: 100%;
        height: auto;
        max-height: 200px;
        object-fit: contain;
    }
    /* 列表页：图文纵向排列，消除固定宽度溢出 */
    .news .container > li {
        flex: 0 0 100% !important;
        margin-left: 0 !important;
        min-width: 0;
    }
    .news .container li,
    .news-list ul li {
        flex-wrap: wrap;
        min-width: 0;
    }
    .news .container li a:first-child,
    .news-list ul li a:first-child {
        flex: 0 0 100%;
        width: 100%;
        max-width: 100%;
        height: auto;
    }
    .news .container li a:first-child img,
    .news-list ul li a:first-child img {
        width: 100%;
        max-width: 100%;
        height: auto;
    }
    .news .container li > a:nth-child(2),
    .news-list ul li > a:nth-child(2) {
        flex: 1 1 100%;
        width: 100%;
        min-width: 0;
        box-sizing: border-box;
    }
    .news .container li span,
    .news-list ul li span {
        width: 100% !important;
        max-width: 100%;
        white-space: normal;
        word-break: break-word;
        height: auto;
        line-height: 1.5;
    }
    .news .container li p,
    .news-list ul li p {
        width: 100%;
        height: auto;
        max-height: none;
    }
    .content > .container {
        flex-direction: column;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0;
        gap: 20px;
        padding-left: 15px;
        padding-right: 15px;
        box-sizing: border-box;
    }
    .common-con,
    .common-right {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0;
        flex: 1 1 100% !important;
    }
    .r-tags .tags-list a {
        font-size: 14px;
        padding: 8px 14px;
    }
    .pro-list {
        width: 100% !important;
    }
    .base-display {
        padding-bottom: 24px;
    }
    .base-display .index-title,
    .base-display-head {
        padding-top: 28px;
        padding-bottom: 10px;
    }
    .base-display .index-title h3,
    .base-display-head h3 {
        font-size: 22px;
    }
    .base-display-box {
        width: 100%;
        padding: 0 12px 20px;
    }
    .base-display-arrow {
        display: none;
    }
    .base-display-grid {
        display: flex;
        flex-wrap: nowrap;
        justify-content: space-between;
        gap: 12px;
    }
    .base-display-grid a {
        flex: 0 0 calc(50% - 6px);
        width: calc(50% - 6px);
        max-width: calc(50% - 6px);
    }
    .base-display-grid a img {
        height: 140px;
    }
    .base-display-grid a span {
        height: 38px;
        line-height: 38px;
        font-size: 14px;
    }
    .base-display-dots {
        margin-top: 14px;
        line-height: 1;
    }
    .base-display-dots button {
        width: 22px;
        height: 4px;
        margin: 0 3px;
    }
    footer .container {
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 15px;
        padding-right: 15px;
        box-sizing: border-box;
    }
    .location {
        font-size:14px;
        word-break: break-all;
    }
}
@media screen and (max-width: 480px) {
    .base-display-grid a img {
        height: 120px;
    }
    .base-display-grid a span {
        height: 34px;
        line-height: 34px;
        font-size:14px;
    }
}

/* 平板/手机：推广条纵向居中，避免固定宽横排挤出视口 */
@media screen and (max-width: 992px) {
    .adv-1 {
        height: auto !important;
        min-height: 0;
        padding: 22px 0 28px;
        overflow: visible;
        background-size: cover;
        background-position: center top;
    }
    .adv-1 > .container {
        display: flex !important;
        flex-direction: column !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        justify-content: center !important;
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
        box-sizing: border-box;
    }
    .adv-tip {
        flex: none !important;
        width: 100% !important;
        max-width: 100% !important;
        text-align: center;
        color: #fff !important;
        margin: 0 0 14px !important;
        order: 1;
    }
    .adv-tip span {
        display: block;
        font-size: 26px;
        line-height: 1.35;
        margin-bottom: 10px;
        color: #fff;
    }
    .adv-tip p {
        font-size: 14px;
        line-height: 1.6;
        color: #fff;
    }
    .adv-contact {
        flex: none !important;
        width: 100% !important;
        max-width: 340px;
        margin: 0 !important;
        order: 2;
    }
    .adv-contact > div {
        width: 100% !important;
        max-width: 100%;
        height: auto;
        min-height: 44px;
        line-height: 44px;
        font-size: 17px;
        box-sizing: border-box;
        white-space: normal;
        word-break: break-all;
    }
    .adv-contact > div:first-child {
        margin-bottom: 12px;
        color: #fff;
    }
    .adv-contact > div:last-child {
        font-size: 16px;
        color: #176200;
    }
    .adv-code {
        flex: none !important;
        width: 110px !important;
        height: auto !important;
        margin: 16px auto 0 !important;
        order: 3;
        float: none;
    }
    .adv-code img {
        width: 100%;
        height: auto;
        max-height: 110px;
        display: block;
    }
}

@media screen and (max-width: 480px) {
    .bewm li {
        flex: 1 1 0;
        width: auto !important;
        margin: 0 2px !important;
        padding: 6px 2px;
    }
    .bewm li p {
        font-size: 14px;
    }
    .adv-tip span {
        font-size: 22px;
    }
    .adv-contact > div {
        font-size: 15px;
        line-height: 40px;
        min-height: 40px;
    }
    .adv-contact > div:first-child i {
        font-size: 22px;
        width: 22px;
        height: 22px;
        margin-right: 8px;
    }
    .common-con .page-con p {
        text-indent: 0;
    }
    .common-con .page-con h2 {
        font-size: 20px;
        margin-top: 24px;
        padding-left: 12px;
    }
    .common-con .page-con h3 {
        font-size: 17px;
    }
}
