@charset "utf-8";
/* ==========================================================================
   客商贸易 - 页面样式 style.css
   ========================================================================== */

/* ==========================================================================
   首页 - 轮播
   ========================================================================== */
.hero { position: relative; height: 620px; background: #0c1a24; overflow: hidden; }
.hero-slide {
    position: absolute; inset: 0;
    background-position: center; background-size: cover;
    opacity: 0; transform: scale(1.06);
    transition: opacity 1s ease;
}
.hero-slide.active { opacity: 1; animation: heroZoom 8s linear forwards; }
@keyframes heroZoom {
    from { transform: scale(1.0); }
    to { transform: scale(1.06); }
}
.hero-slide::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(90deg, rgba(8, 20, 30, .88) 0%, rgba(8, 20, 30, .62) 48%, rgba(8, 20, 30, .12) 100%);
}
.hero .container { position: relative; z-index: 3; height: 100%; display: flex; align-items: center; }
.hero-text { max-width: 640px; color: #fff; }
.hero-tag {
    display: inline-flex; align-items: center; gap: 12px;
    font-size: 13px; letter-spacing: 3px; text-transform: uppercase;
    color: rgba(255, 255, 255, .78);
}
.hero-tag::before { content: ""; width: 38px; height: 2px; background: var(--c-main); }
.hero-text h1 { color: #fff; font-size: 52px; line-height: 1.22; margin: 20px 0 18px; letter-spacing: 2px; }
.hero-text h1 em { font-style: normal; color: #3ddc5a; }
.hero-text p { color: rgba(255, 255, 255, .78); font-size: 16px; max-width: 540px; line-height: 1.9; }
.hero-btns { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.hero-dots {
    position: absolute; left: 0; right: 0; bottom: 34px; z-index: 4;
    display: flex; justify-content: center; gap: 10px;
}
.hero-dots button { width: 36px; height: 3px; background: rgba(255, 255, 255, .35); transition: .3s; }
.hero-dots button.active { background: var(--c-main); }
.hero-arrows { position: absolute; inset: 0; z-index: 4; pointer-events: none; }
.hero-arrows button {
    pointer-events: auto;
    position: absolute; top: 50%; margin-top: -26px;
    width: 52px; height: 52px; border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .35);
    color: #fff; display: flex; align-items: center; justify-content: center;
    transition: .3s;
}
.hero-arrows button:hover { background: var(--c-main); border-color: var(--c-main); }
.hero-arrows .prev { left: 30px; }
.hero-arrows .next { right: 30px; }
.hero-arrows svg { width: 20px; height: 20px; }

/* 首页数据条 */
.data-bar { background: #182633; color: #fff; }
.data-bar .container { display: grid; grid-template-columns: repeat(4, 1fr); }
.data-item { padding: 30px 10px; text-align: center; border-right: 1px solid rgba(255, 255, 255, .09); }
.data-item:last-child { border-right: 0; }
.data-item b { display: block; font-size: 34px; line-height: 1.1; color: #fff; font-weight: 700; }
.data-item b span { color: var(--c-main); font-size: 20px; margin-left: 2px; }
.data-item p { font-size: 13px; color: rgba(255, 255, 255, .55); margin-top: 6px; }

/* ==========================================================================
   首页 - 产品
   ========================================================================== */
.prod-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.prod-card {
    background: #fff; border: 1px solid var(--c-line);
    transition: transform .35s, box-shadow .35s, border-color .35s;
}
.prod-card .pic { display: block; position: relative; aspect-ratio: 1 / 1; overflow: hidden; background: #f7f9fa; }
.prod-card .pic img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s; }
.prod-card .pic .more {
    position: absolute; inset: auto 0 0 0; padding: 12px 0;
    background: rgba(7, 164, 29, .92); color: #fff; text-align: center;
    font-size: 14px; transform: translateY(100%); transition: transform .35s;
}
.prod-card:hover { border-color: transparent; box-shadow: var(--shadow); transform: translateY(-5px); }
.prod-card:hover .pic img { transform: scale(1.06); }
.prod-card:hover .pic .more { transform: translateY(0); }
.prod-card .txt { padding: 20px 20px 24px; text-align: center; }
.prod-card h3 {
    font-size: 16px; font-weight: 500; margin-bottom: 6px;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.prod-card h3 a:hover { color: var(--c-main); }
.prod-card p {
    font-size: 13px; color: var(--c-muted);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.more-btn-wrap { text-align: center; margin-top: 44px; }

/* ==========================================================================
   首页 - 关于我们
   ========================================================================== */
.about-home { display: grid; grid-template-columns: 1fr 1.06fr; gap: 66px; align-items: center; }
.about-pic { position: relative; }
.about-pic img { width: 100%; height: 440px; object-fit: cover; }
.about-pic::before {
    content: ""; position: absolute; left: -16px; top: -16px;
    width: 130px; height: 130px;
    border-left: 3px solid var(--c-main); border-top: 3px solid var(--c-main);
    z-index: 2;
}
.about-pic .exp {
    position: absolute; right: -1px; bottom: -1px;
    background: var(--c-main); color: #fff; padding: 20px 28px; text-align: center;
}
.about-pic .exp b { display: block; font-size: 38px; line-height: 1; font-weight: 700; }
.about-pic .exp span { font-size: 13px; opacity: .88; }
.about-text .sec-title { margin-bottom: 18px; }
.about-text h3 { font-size: 19px; color: var(--c-main); margin-bottom: 14px; font-weight: 500; }
.about-text p { color: var(--c-text); margin-bottom: 14px; }
.about-points { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 24px; margin: 24px 0 30px; }
.about-points li { position: relative; padding-left: 26px; font-size: 15px; color: var(--c-ink); }
.about-points li::before {
    content: ""; position: absolute; left: 0; top: 8px;
    width: 14px; height: 8px; border-left: 2px solid var(--c-main); border-bottom: 2px solid var(--c-main);
    transform: rotate(-45deg);
}
.stats { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--c-line); padding-top: 26px; }
.stats li b { font-size: 32px; color: var(--c-ink); line-height: 1.1; }
.stats li b i { font-style: normal; color: var(--c-main); font-size: 18px; margin-left: 2px; }
.stats li p { font-size: 13px; color: var(--c-muted); margin-top: 4px; }

/* ==========================================================================
   首页 - 核心优势
   ========================================================================== */
.adv-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.adv-item {
    background: #fff; border: 1px solid var(--c-line);
    padding: 38px 28px 34px; transition: .35s; position: relative; overflow: hidden;
}
.adv-item::after {
    content: ""; position: absolute; left: 0; bottom: 0; width: 0; height: 3px;
    background: var(--c-main); transition: width .4s;
}
.adv-item:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.adv-item:hover::after { width: 100%; }
.adv-icon {
    width: 58px; height: 58px; border-radius: 50%;
    background: rgba(7, 164, 29, .08); color: var(--c-main);
    display: flex; align-items: center; justify-content: center; margin-bottom: 22px;
}
.adv-icon svg { width: 28px; height: 28px; }
.adv-item h3 { font-size: 18px; margin-bottom: 10px; }
.adv-item p { font-size: 14px; color: var(--c-muted); line-height: 1.85; }
.adv-num {
    position: absolute; right: 20px; top: 14px;
    font-size: 46px; font-weight: 700; color: #f0f3f5; line-height: 1;
}

/* ==========================================================================
   首页 - 新闻
   ========================================================================== */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.news-card { background: #fff; border: 1px solid var(--c-line); transition: .35s; }
.news-card:hover { box-shadow: var(--shadow); transform: translateY(-5px); border-color: transparent; }
.news-card .pic { display: block; position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: #f2f4f6; }
.news-card .pic img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s; }
.news-card:hover .pic img { transform: scale(1.06); }
.news-card .date {
    position: absolute; left: 0; top: 0;
    background: rgba(24, 38, 51, .88); color: #fff;
    padding: 8px 14px; font-size: 13px; line-height: 1.3; text-align: center;
}
.news-card .date b { display: block; font-size: 22px; font-weight: 700; color: #fff; }
.news-card .txt { padding: 22px 24px 26px; }
.news-card .cat { font-size: 12px; color: var(--c-main); letter-spacing: 1px; }
.news-card h3 {
    font-size: 17px; font-weight: 500; margin: 8px 0 10px; line-height: 1.55;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
    min-height: 52px;
}
.news-card .desc {
    font-size: 13px; color: var(--c-muted);
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.news-card .read { display: inline-block; margin-top: 16px; font-size: 13px; color: var(--c-main); }
.news-card .read::after { content: " →"; transition: .3s; }

/* ==========================================================================
   CTA
   ========================================================================== */
.cta {
    position: relative; padding: 78px 0; color: #fff; text-align: center;
    background: url(/skin/images/banners/b02.jpg) center / cover no-repeat;
}
.cta::before { content: ""; position: absolute; inset: 0; background: rgba(9, 22, 32, .82); }
.cta .container { position: relative; z-index: 2; }
.cta h2 { color: #fff; font-size: 34px; letter-spacing: 1px; }
.cta p { color: rgba(255, 255, 255, .7); margin-top: 12px; font-size: 15px; }
.cta .hero-btns { justify-content: center; }

/* ==========================================================================
   内页 - 产品列表 / 新闻列表
   ========================================================================== */
.news-list > li {
    display: flex; gap: 28px; background: #fff;
    border: 1px solid var(--c-line); padding: 24px; margin-bottom: 20px;
    transition: .35s;
}
.news-list > li:hover { box-shadow: var(--shadow); border-color: transparent; }
.news-list .pic { display: block; flex: 0 0 240px; width: 240px; aspect-ratio: 4 / 3; overflow: hidden; background: #f2f4f6; }
.news-list .pic img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.news-list > li:hover .pic img { transform: scale(1.05); }
.news-list .info { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: center; }
.news-list .meta { font-size: 13px; color: var(--c-muted); margin-bottom: 8px; }
.news-list .meta span { margin-right: 16px; }
.news-list h3 { font-size: 19px; font-weight: 500; margin-bottom: 10px; }
.news-list h3 a:hover { color: var(--c-main); }
.news-list .desc {
    font-size: 14px; color: var(--c-muted);
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.news-list .more-link { margin-top: 12px; font-size: 13px; color: var(--c-main); }

.empty-tip { text-align: center; padding: 70px 0; color: var(--c-muted); font-size: 15px; }

/* ==========================================================================
   内页 - 文章详情
   ========================================================================== */
.article { background: #fff; border: 1px solid var(--c-line); padding: 48px 54px 42px; }
.article-head { text-align: center; padding-bottom: 24px; border-bottom: 1px solid var(--c-line); margin-bottom: 32px; }
.article-head h1 { font-size: 28px; line-height: 1.5; }
.article-meta { margin-top: 16px; font-size: 13px; color: var(--c-muted); }
.article-meta span { margin: 0 12px; }
.article-body { font-size: 15.5px; line-height: 2; color: #4b5762; overflow: hidden; }
.article-body p { margin-bottom: 18px; }
.article-body h3 { font-size: 19px; margin: 30px 0 14px; padding-left: 12px; border-left: 3px solid var(--c-main); }
.article-body h4 { font-size: 17px; margin: 24px 0 12px; }
.article-body img { max-width: 100%; height: auto; margin: 12px auto; }
.article-body ul, .article-body ol { margin: 0 0 18px 22px; }
.article-body ul li { list-style: disc; margin-bottom: 8px; }
.article-body ol li { list-style: decimal; margin-bottom: 8px; }
.article-body table { width: 100%; border-collapse: collapse; margin: 18px 0; }
.article-body table th, .article-body table td { border: 1px solid var(--c-line); padding: 10px 14px; font-size: 14px; }
.article-body table th { background: #f6f8f9; color: var(--c-ink); }
.article-foot { margin-top: 34px; padding-top: 22px; border-top: 1px dashed var(--c-line); }
.article-nav { display: flex; justify-content: space-between; gap: 24px; font-size: 14px; color: var(--c-muted); flex-wrap: wrap; }
.article-nav a:hover { color: var(--c-main); }
.article-nav li { margin-bottom: 8px; }

/* 相关推荐 */
.relate { margin-top: 46px; }
.relate-title { font-size: 20px; margin-bottom: 22px; padding-left: 14px; border-left: 3px solid var(--c-main); line-height: 1.2; }
.relate-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.relate-item { display: flex; gap: 14px; background: #fff; border: 1px solid var(--c-line); padding: 14px; }
.relate-item .pic { display: block; flex: 0 0 92px; width: 92px; aspect-ratio: 1 / 1; overflow: hidden; }
.relate-item .pic img { width: 100%; height: 100%; object-fit: cover; }
.relate-item h4 { font-size: 14px; font-weight: 500; line-height: 1.6; }
.relate-item p { font-size: 12px; color: var(--c-muted); margin-top: 6px; }

/* ==========================================================================
   内页 - 产品详情
   ========================================================================== */
.prod-detail { display: grid; grid-template-columns: 500px 1fr; gap: 54px; align-items: start; }
.prod-gallery { border: 1px solid var(--c-line); padding: 18px; background: #fff; }
.prod-gallery .main-pic { aspect-ratio: 1 / 1; background: #f7f9fa; }
.prod-gallery .main-pic img { width: 100%; height: 100%; object-fit: cover; }
.prod-info h1 { font-size: 28px; line-height: 1.4; margin-bottom: 14px; }
.prod-info .summary { font-size: 14px; color: var(--c-muted); padding-bottom: 20px; border-bottom: 1px solid var(--c-line); }
.prod-info .summary p { margin-bottom: 6px; }
.prod-info .summary b { color: var(--c-ink); font-weight: 500; }
.prod-params { margin: 22px 0 26px; }
.prod-params li {
    display: flex; font-size: 14px; padding: 10px 0;
    border-bottom: 1px dashed var(--c-line);
}
.prod-params li span { flex: 0 0 110px; color: var(--c-muted); }
.prod-params li em { font-style: normal; color: var(--c-ink); }
.prod-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.prod-actions .tel { font-size: 14px; color: var(--c-muted); }
.prod-actions .tel b { display: block; font-size: 24px; color: var(--c-main); line-height: 1.2; }

.prod-body { margin-top: 56px; }
.prod-body .tab-head { display: flex; border-bottom: 1px solid var(--c-line); margin-bottom: 28px; }
.prod-body .tab-head span {
    font-size: 18px; padding: 0 4px 14px; margin-right: 34px;
    border-bottom: 2px solid var(--c-main); color: var(--c-ink); font-weight: 700;
}

/* ==========================================================================
   内页 - 关于 / 联系 / 留言
   ========================================================================== */
.page-article { background: #fff; border: 1px solid var(--c-line); padding: 46px 50px; }
.page-article .page-title { font-size: 24px; margin-bottom: 22px; }
.page-article .article-body { font-size: 15px; }

.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-bottom: 50px; }
.contact-card {
    background: #fff; border: 1px solid var(--c-line); padding: 32px 28px;
    text-align: center; transition: .35s;
}
.contact-card:hover { box-shadow: var(--shadow); transform: translateY(-4px); border-color: transparent; }
.contact-card .ico {
    width: 56px; height: 56px; margin: 0 auto 18px; border-radius: 50%;
    background: rgba(7, 164, 29, .08); color: var(--c-main);
    display: flex; align-items: center; justify-content: center;
}
.contact-card .ico svg { width: 26px; height: 26px; }
.contact-card h3 { font-size: 16px; margin-bottom: 8px; }
.contact-card p { font-size: 14px; color: var(--c-muted); word-break: break-all; }

.contact-layout { display: grid; grid-template-columns: 1.15fr .85fr; gap: 50px; align-items: start; }
.map-box { background: #eef2f4; border: 1px solid var(--c-line); }
.map-box img { width: 100%; height: 100%; min-height: 340px; object-fit: cover; }
.contact-note { background: var(--c-bg); padding: 30px 32px; margin-top: 26px; }
.contact-note h4 { font-size: 17px; margin-bottom: 10px; }
.contact-note p { font-size: 14px; color: var(--c-muted); }

/* 留言表单 */
.msg-layout { display: grid; grid-template-columns: 1fr 330px; gap: 50px; align-items: start; }
.msg-form { background: #fff; border: 1px solid var(--c-line); padding: 40px 44px; }
.msg-form h2 { font-size: 24px; margin-bottom: 8px; }
.msg-form .hint { font-size: 13px; color: var(--c-muted); margin-bottom: 26px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-item { margin-bottom: 18px; }
.form-item label { display: block; font-size: 14px; color: var(--c-ink); margin-bottom: 8px; }
.form-item label em { color: #e64646; font-style: normal; margin-left: 4px; }
.form-item input, .form-item textarea {
    width: 100%; border: 1px solid var(--c-line); background: #fafbfc;
    padding: 12px 16px; font-size: 14px; color: var(--c-ink); transition: .3s;
}
.form-item input:focus, .form-item textarea:focus { border-color: var(--c-main); background: #fff; }
.form-item input { height: 48px; }
.form-item textarea { height: 140px; resize: vertical; }
.form-item.code { display: flex; gap: 12px; align-items: flex-end; }
.form-item.code input { flex: 1; }
.code-row { display: flex; gap: 12px; }
.code-row input { flex: 1; }
.codeimg { width: 120px; height: 48px; object-fit: cover; cursor: pointer; border: 1px solid var(--c-line); }
.form-submit { display: flex; align-items: center; gap: 18px; margin-top: 8px; }
.form-submit .tip { font-size: 12px; color: var(--c-muted); }
.form-submit button { padding: 0 44px; height: 50px; background: var(--c-main); color: #fff; font-size: 15px; }
.form-submit button:hover { background: var(--c-main-dark); }

/* 搜索结果 */
.search-hero { background: var(--c-bg); padding: 60px 0; }
.search-form-big { display: flex; max-width: 760px; margin: 0 auto; }
.search-form-big input {
    flex: 1; height: 56px; border: 1px solid var(--c-line); border-right: 0;
    padding: 0 22px; font-size: 15px; background: #fff;
}
.search-form-big button { width: 130px; height: 56px; background: var(--c-main); color: #fff; font-size: 16px; }
.search-form-big button:hover { background: var(--c-main-dark); }
.search-result-tip { text-align: center; margin-top: 18px; font-size: 14px; color: var(--c-muted); }
.search-result-tip b { color: var(--c-main); }

/* ==========================================================================
   响应式
   ========================================================================== */
@media (max-width: 1200px) {
    .prod-grid { gap: 18px; }
    .about-home { gap: 44px; }
}

@media (max-width: 992px) {
    .hero { height: 500px; }
    .hero-text h1 { font-size: 36px; }
    .hero-text p { font-size: 15px; }
    .hero-arrows { display: none; }
    .data-bar .container { grid-template-columns: repeat(2, 1fr); }
    .data-item:nth-child(2) { border-right: 0; }
    .data-item:nth-child(1), .data-item:nth-child(2) { border-bottom: 1px solid rgba(255, 255, 255, .09); }
    .prod-grid { grid-template-columns: repeat(2, 1fr); }
    .about-home { grid-template-columns: 1fr; gap: 34px; }
    .about-pic img { height: 320px; }
    .about-pic::before { width: 80px; height: 80px; left: -10px; top: -10px; }
    .adv-grid { grid-template-columns: repeat(2, 1fr); }
    .news-grid { grid-template-columns: repeat(2, 1fr); }
    .news-card h3 { min-height: auto; }
    .prod-detail { grid-template-columns: 1fr; gap: 30px; }
    .prod-gallery { max-width: 480px; margin: 0 auto; }
    .relate-grid { grid-template-columns: repeat(2, 1fr); }
    .contact-grid { grid-template-columns: 1fr; }
    .contact-layout { grid-template-columns: 1fr; gap: 30px; }
    .msg-layout { grid-template-columns: 1fr; gap: 30px; }
    .article { padding: 30px 24px; }
    .article-head h1 { font-size: 21px; }
    .page-article { padding: 28px 22px; }
    .cta h2 { font-size: 25px; }
    .cta { padding: 56px 0; }
}

@media (max-width: 600px) {
    .hero { height: 460px; }
    .hero-text h1 { font-size: 27px; letter-spacing: 1px; }
    .hero-text p { font-size: 14px; }
    .hero-btns { margin-top: 24px; }
    .hero-btns .btn { height: 44px; padding: 0 22px; font-size: 14px; }
    .hero-dots { bottom: 22px; }
    .prod-grid { gap: 12px; }
    .prod-card .txt { padding: 14px 10px 16px; }
    .prod-card h3 { font-size: 14px; }
    .prod-card p { display: none; }
    .news-grid { grid-template-columns: 1fr; }
    .adv-grid { grid-template-columns: 1fr; }
    .adv-item { padding: 26px 22px; }
    .about-points { grid-template-columns: 1fr; }
    .about-pic img { height: 240px; }
    .stats li b { font-size: 24px; }
    .news-list > li { flex-direction: column; gap: 14px; padding: 16px; }
    .news-list .pic { flex: none; width: 100%; }
    .news-list h3 { font-size: 16px; }
    .relate-grid { grid-template-columns: 1fr; }
    .msg-form { padding: 26px 20px; }
    .form-grid { grid-template-columns: 1fr; gap: 0; }
    .form-item.code { flex-wrap: wrap; }
    .prod-info h1 { font-size: 21px; }
    .article-body { font-size: 15px; }
    .search-form-big input { height: 48px; padding: 0 14px; }
    .search-form-big button { width: 92px; height: 48px; font-size: 15px; }
    .cta h2 { font-size: 21px; }
    .data-item b { font-size: 26px; }
}
