@charset "utf-8";

/* CSS Document */

@import url(//at.alicdn.com/t/c/font_5093377_o04wlbna9s.css);

:root {
    --main-color: #03B07A;
    --second-color: #cff7eb;
}

html,
body,
div,
h1,
h2,
h3,
h4,
h5,
h6,
ul,
ol,
dl,
li,
dt,
dd,
p,
blockquote,
pre,
form,
fieldset,
table,
th,
td,
span,
input {
    margin: 0;
    padding: 0;
}

body {
    font-size: 14px;
    font-family: "\5FAE\8F6F\96C5\9ED1";
    color: #000;
    -webkit-text-size-adjust: none;
    height: 100%;
    background-color: #f8f8f8;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-size: 14px;
    font-weight: normal;
}

table {
    border-collapse: collapse;
    border-spacing: 0;
}

ul,
li,
ol {
    list-style: none;
}

ins {
    text-decoration: none;
}

i,
em {
    font-style: normal;
}

input {
    border: none;
}

* {
    padding: 0px;
    margin: 0px;
    box-sizing: border-box;
}

select,
input,
button,
button img,
label {
    vertical-align: middle
}

body,
h1,
h2,
h3,
ul,
li,
form,
p,
img {
    border: 0
}

input,
button,
select,
img {
    margin: 0;
    line-height: normal
}

a {
    color: #666;
    text-decoration: none;
    cursor: pointer;
}


.clear,
.area {
    zoom: 1;
}

.pd20 {
    padding: 20px;
}

.pd25 {
    padding: 25px;
}

.pd30 {
    padding: 30px;
}

.mt20 {
    margin-top: 20px !important;
}

.clear:after,
.area:after {
    content: ".";
    display: block;
    visibility: hidden;
    height: 0;
    clear: both;
}

.wd {
    width: 100%;
}

.bgf {
    background-color: #fff;
}

.mtb20px {
    margin-top: 20px !important;
    margin-bottom: 20px !important;
}

.tc {
    text-align: center;
}

.fr {
    float: right;
}

.fl {
    float: left;
}

.dn {
    display: none;
}

.box-shadow {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    transition: box-shadow 0.2s;
}

.box-shadow:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.container {
    max-width: 1296px;
    margin: 0 auto;
    padding: 0;
}



/* 标题行 */
.content-title {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 24px;
    font-weight: 600;
    color: #111;
}

/* 标题图标 */
.content-title img {
    display: block;
}

/* 副标题描述 */
.content-desc {
    margin-top: 8px;
    font-size: 16px;
    color: #666;
}

/***新闻***/
/* 新闻模块 */
.news-section {
    padding: 40px 0;
}

/* 头部 */
.news-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 20px;
    border-bottom: 1px solid #ececec;
    padding-bottom: 10px;
}

.news-title {
    font-size: 22px;
    font-weight: 700;
    margin: 0;
}

.news-more {
    font-size: 14px;
    color: #666;
    text-decoration: none;
}

.news-more a {
    margin-left: 15px;
}

.news-more:hover {
    color: #ff6a00;
}

/* 列表 */
.news-list {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
}

/* 单条新闻 */
.news-item {
    display: block;
    text-decoration: none;
    color: #2c3e50;
    background-color: #f8f8f8;
}

.news-thumb {
    overflow: hidden;
}

.news-thumb img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform .3s ease;
}

.news-item:hover img {
    transform: scale(1.05);
}

.news-item-title {
    font-size: 14px;
    line-height: 1.4;
    margin: 10px 15px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-height: 1.4;
}

/**面包屑导航**/
.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    font-size: 14px;
    color: #666;
    padding: 24px 0;
}

.breadcrumb a {
    color: #333;
    text-decoration: none;
}

.breadcrumb a:hover {
    color: #0A957D;
}

.breadcrumb .sep {
    margin: 0 6px;
    color: #999;
}

.breadcrumb .current {
    color: #999;
    cursor: default;
}

h3.category-title {
    font-size: clamp(1.125rem, 0.4107rem + 1.1161vw, 1.75rem);
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 20px;
}

/* ======================
   Pagination
====================== */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    padding: 30px 0;
    margin: 0;
    list-style: none;
}

/* li 基础 */
.pagination li {
    display: inline-flex;
}

/* a / span 通用样式 */
.pagination a,
.pagination span {
    min-width: 36px;
    height: 36px;
    padding: 0 12px;
    border-radius: 8px;
    font-size: 14px;
    line-height: 36px;
    text-align: center;
    border: 1px solid #e5e7eb;
    color: #555;
    background: #fff;
    text-decoration: none;
    transition: all .2s ease;
}

/* hover */
.pagination a:hover {
    border-color: #0A957D;
    color: #0A957D;
}

/* 当前页 */
.pagination .active span {
    background: #0A957D;
    border-color: #0A957D;
    color: #fff;
    cursor: default;
}

/* 禁用 */
.pagination .disabled span {
    color: #bbb;
    background: #f5f6f7;
    border-color: #eee;
    cursor: not-allowed;
}

/* 上一页 / 下一页 */
.pagination li:first-child span,
.pagination li:last-child a {
    font-size: 16px;
    font-weight: 600;
}

/* ======================
   移动端优化
====================== */
@media (max-width: 480px) {
    .pagination {
        gap: 4px;
    }

    .pagination a,
    .pagination span {
        min-width: 32px;
        height: 32px;
        line-height: 32px;
        font-size: 13px;
        padding: 0 10px;
    }
}


/* ========= 列表项 ========= */
.arc-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.arc-list>li {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 20px;
    transition: box-shadow .25s ease, transform .25s ease;
}

.arc-list>li:hover {
    box-shadow: 0 10px 28px rgba(0, 0, 0, .08);
    transform: translateY(-2px);
}

/* ======================
   布局（自动适配有无图片）
====================== */
.arc-list>li {
    display: flex;
    flex-direction: column;
}

/* PC：有图片才左右布局 */
@media (min-width: 768px) {
    .arc-list>li:has(.item-img) {
        flex-direction: row;
    }
}

/* ======================
   图片区域（可选）
====================== */
.arc-list .item-img {
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

@media (min-width: 768px) {
    .arc-list .item-img {
        width: 38%;
    }
}

.arc-list .item-img-inner {
    display: block;
}

.arc-list .item-img img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform .35s ease;
}

.arc-list>li:hover .item-img img {
    transform: scale(1.05);
}

/* 视频标识 */
.arc-list .item-video::after {
    content: "▶";
    position: absolute;
    left: 12px;
    bottom: 12px;
    width: 36px;
    height: 36px;
    background: rgba(0, 0, 0, .6);
    color: #fff;
    border-radius: 50%;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 分类标签 */
.arc-list .item-category {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #ff6a00;
    color: #fff;
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 20px;
    text-decoration: none;
}

/* ======================
   内容区（核心）
====================== */
.arc-list .item-content {
    padding: 16px 18px 18px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex: 1;
}

/* 没图片时，内容自动全宽 */
.arc-list>li:not(:has(.item-img)) .item-content {
    padding-top: 20px;
}

/* 标题 */
.arc-list .item-title {
    font-size: 18px;
    line-height: 1.4;
    margin: 0 0 10px;
}

.arc-list .item-title a {
    color: #111;
    text-decoration: none;
}

.arc-list .item-title a:hover {
    color: #ff6a00;
}

/* 摘要 */
.arc-list .item-excerpt {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 14px;
}

.arc-list .item-excerpt p {
    margin: 0;
    /* 多行省略 */
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    /* 显示 4 行 */
    overflow: hidden;
}

/* ======================
   Meta 信息
====================== */
.arc-list .item-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: #888;
    gap: 10px;
    flex-wrap: wrap;
}

/* 作者 */
.arc-list .item-meta .author a {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #555;
    text-decoration: none;
}

.arc-list .item-meta .author img {
    width: 28px;
    height: 28px;
    border-radius: 50%;
}

/* 日期 */
.arc-list .item-meta .date {
    white-space: nowrap;
}

/* 右侧数据 */
.arc-list .item-meta-right {
    display: flex;
    align-items: center;
    gap: 12px;
    white-space: nowrap;
}

/* 单个 meta 项 */
.arc-list .item-meta-li {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* ======================
   移动端优化
====================== */
@media (max-width: 767px) {
    .arc-list .item-title {
        font-size: 16px;
    }

    .arc-list .item-meta-right {
        display: none;
    }
}

.news-page {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 30px;
}

.left-side {
    width: 255px;
    background-color: #f8f8f8;
    min-height: 600px;
}

.right-box {
    flex: 1;
}

/* =========================
 * 文章正文整体
 * ========================= */
.article-content {
    margin: 0 auto 30px;
    padding: 30px;
    color: #333;
    font-size: 16px;
    line-height: 1.8;
}

/* =========================
 * 标题
 * ========================= */
.article-content .article-title {
    font-size: 28px;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 12px;
    color: #111;
}

/* =========================
 * meta 信息
 * ========================= */
.article-content .article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 13px;
    color: #999;
    margin-bottom: 24px;
}

.article-content .article-meta .item-meta-li {
    display: inline-flex;
    align-items: center;
}

.article-content .article-meta i {
    font-size: 14px;
    margin-right: 6px;
    color: #aaa;
}

/* =========================
 * 正文内容
 * ========================= */
.article-content-html {
    word-break: break-word;
}

/* 段落 */
.article-content-html p {
    margin: 0 0 1.2em;
}

/* 标题层级 */
.article-content-html h2 {
    font-size: 22px;
    margin: 32px 0 16px;
    font-weight: 600;
}

.article-content-html h3 {
    font-size: 18px;
    margin: 24px 0 12px;
    font-weight: 600;
}

.article-content-html h4 {
    font-size: 16px;
    margin: 20px 0 10px;
    font-weight: 600;
}

/* 列表 */
.article-content-html ul,
.article-content-html ol {
    margin: 0 0 1.2em 1.5em;
    padding: 0;
}

.article-content-html li {
    margin-bottom: 6px;
}

/* 链接 */
.article-content-html a {
    color: #1677ff;
    text-decoration: none;
}

.article-content-html a:hover {
    text-decoration: underline;
}

/* 图片 */
.article-content-html img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 16px auto;
    border-radius: 6px;
}

/* 引用 */
.article-content-html blockquote {
    margin: 20px 0;
    padding: 12px 16px;
    background: #f7f8fa;
    border-left: 4px solid #1677ff;
    color: #555;
}

/* 代码 */
.article-content-html pre {
    background: #0f172a;
    color: #e5e7eb;
    padding: 16px;
    overflow-x: auto;
    border-radius: 6px;
    font-size: 14px;
    line-height: 1.6;
}

.article-content-html code {
    background: #f3f4f6;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 14px;
}

/* 表格 */
.article-content-html table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 14px;
}

.article-content-html th,
.article-content-html td {
    border: 1px solid #e5e7eb;
    padding: 10px;
    text-align: left;
}

.article-content-html th {
    background: #f8fafc;
    font-weight: 600;
}

/* 分割线 */
.article-content-html hr {
    border: none;
    border-top: 1px solid #eee;
    margin: 32px 0;
}

/* =========================
 * 移动端优化
 * ========================= */
@media (max-width: 768px) {
    .article-content {
        padding: 16px 12px;
        font-size: 15px;
    }

    .article-content .article-title {
        font-size: 22px;
    }
}

/**商品页**/

.trade-goodinfo {
    background-color: #FFF2E8;
    padding: 10px;
    margin-bottom: 15px;
    padding-left: 35px;
}

/* 表单基础 */
.trade-form {
    line-height: 20px;
}

/* 商品标题区域 */
.trade-header {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    /* 关键：小屏自动换行 */
    gap: 8px 12px;
    /* 行列间距 */
    margin-bottom: 12px;
}

/* 商品标题 */
.trade-goodname {
    font-size: 20px;
    font-weight: 600;
    color: #222;
    line-height: 1.4;
    margin: 0;
    max-width: 100%;
    word-break: break-word;
}

/* badge 微调（兼容 layui） */
.trade-header .layui-badge {
    font-size: 12px;
    height: auto;
    line-height: 1.4;
    padding: 3px 6px;
    border-radius: 3px;
}

/* 库存信息 */
.trade-header .storage {
    font-size: 13px;
    color: #666;
    white-space: nowrap;
}

.trade-header .storage b {
    color: #333;
    margin: 0 2px;
}

/* 补货提醒 */
.trade-inform {
    font-size: 12px;
    color: #1e9fff;
    text-decoration: none;
}

.trade-inform:hover {
    text-decoration: underline;
}

/* PC 端：库存靠右 */
@media (min-width: 769px) {
    .trade-header .storage {
        margin-left: auto;
        /* 🔥 关键 */
    }
}

/* ======================
   移动端优化
====================== */
@media (max-width: 768px) {
    .trade-header {
        align-items: flex-start;
    }

    /* 标题独占一行 */
    .trade-goodname {
        width: 100%;
        font-size: 18px;
    }

    /* badge 和库存同一行 */
    .trade-header .layui-badge,
    .trade-header .storage {
        font-size: 12px;
    }
}

/* 通用灰色标签 */
.trade-label {
    color: #6c6c6c;
}

/* 库存提示 */
.trade-inform {
    color: darkorange;
    font-weight: bold;
    cursor: pointer;
}

/* 批发按钮 */
.trade-wholesale-btn {
    font-size: 1em;
}

/* 查看优惠 */
.trade-view-youhui {
    margin-left: 5px;
    cursor: pointer;
}

/* 协议文本 */
.trade-agree-text {
    color: #009688;
}

.trade-agree-text a {
    color: #01AAED;
}

/* 按钮组 */
.trade-btn-group {
    display: flex;
    justify-content: space-between;
}

.trade-btn-buy,
.trade-btn-subscribe {
    width: 48%;
}

.trade-price {
    color: #F40;
    font-size: 26px;
    font-weight: 700;
}

.trade-price-ori {
    text-decoration: line-through;
    padding-left: 10px;
}

.storage {
    color: #009688;
    font-size: 0.8em;
    float: right;
}


/* 规格选择整体 */
.specification {
    margin: 16px 0;
    font-size: 14px;
}

/* 标题 */
.specification>p {
    margin-bottom: 8px;
    color: #333;
    font-weight: 500;
}

/* 规格列表 */
.specification ul {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 0;
    margin: 0;
    list-style: none;
}

/* 单个规格 */
.specification li {
    margin: 0;
}

/* 规格项 */
.specification li a {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    color: #333;
    text-decoration: none;
    background: #fff;
    transition: all 0.2s ease;
    white-space: nowrap;
}

/* 价格 */
.specification li a span {
    font-size: 13px;
    color: #f40;
}

/* hover */
.specification li a:hover {
    border-color: #ff5500;
    color: #ff5500;
}

/* 当前选中（兼容你行内 style） */
.specification li a[style*="#f50"],
.specification li.active a {
    border-color: #ff5500;
    color: #ff5500;
    background: #fff7f0;
}

/* 当前价格高亮 */
.specification li a[style*="#f50"] span,
.specification li.active a span {
    color: #ff5500;
}

/* 移动端优化 */
@media screen and (max-width: 768px) {
    .trade-goodinfo {
        padding: 6px;
        margin-bottom: 10px;
        padding-left: 10px;
    }

    .specification ul {
        gap: 8px;
    }

    .specification li a {
        padding: 6px 10px;
        font-size: 13px;
    }

    .specification li a span {
        font-size: 12px;
    }
}

.pay-box {
    padding: 0 20px 20px;
}

.member-title {
    font-size: 16px;
    color: #333;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e6e6e6;
    font-weight: 600;
}