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

body {
    background-color: #F2F2F2;
    color: #333;
    font-size: 14px;
}

.cardcon {
    margin-top: 20px;
}

.logo {
    pointer-events: none;
}

.footer-wrap {
    text-align: center;
    color: #909399;
    font-size: 15px;
    line-height: 24px;
}

.footer-wrap p {
    margin: 0;
}

.product-info {
    background-color: #e2e2e2;
    padding: 10px;
    padding-left: 35px;
    margin-bottom: 5px;
}

.product-price {
    color: #1E9FFF;
    font-size: 20px;
    font-weight: 500;
}

.product-pay-price {
    margin-top: 10px;
    color: #F40;
    font-size: 20px;
    font-weight: 500;
}

.ws-price {
    color: #01AAED;
    font-size: 14px;
    font-weight: 500;
}

.product-price-cost-price {
    text-decoration: line-through;
    padding-left: 10px;
}

.buy-prompt {
    padding: 20px;
}

.errpanl {
    margin-top: 20px;
}

.order-info {
    height: 200px;
    border: 1px solid #ccc;
    overflow-wrap: break-word;
    padding: 5px;
    border-radius: 2px 2px 0 0;
    overflow: auto;
}

.info-box {
    border-top: 2px solid #fd7f83;
    padding-top: 20px;
}

.info-ui {
    font-size: 15px;
}

.info-ui strong {
    font-size: 16px;
    color: #666;
    font-weight: bold;
}

ul {
    display: block;
    list-style-type: disc;
    margin-top: 1em;
    margin-bottom: 1em;
    padding-left: 20px;
}

.product-box {
    padding: 10px;
}

.product-panl {
    border: 1px solid #dddddd;
    transition: all 0.2s ease;
}

.product-panl:hover {
    border-color: #d5d5d5;
}

.product-img {
    padding: 14px 14px 6px;
}

.product-box-info {
    padding: 8px 10px 10px;
}

.product-box-price {
    display: inline-block;
    color: #1E9FFF;
    font-size: 15px;
    font-weight: 500;
    margin-top: 8px;
}

.product-title {
    width: 100%;
    overflow: hidden;
    color: #666;
    font-size: 14px;
    line-height: 20px;
    height: 40px;
    margin-top: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    white-space: normal;
    word-break: break-word;
}

.product-class {
    margin-top: 8px;
}

.product-class span {
    height: 20px;
    line-height: 20px;
    border-radius: 2px;
}

.product-volume {
    float: right;
    font-size: 10px;
    color: #666;
    font-weight: 500;
    margin-top: 10px;
}

.product-content img {
    max-width: 100%;
    height: auto;
}

/* 首页知识区 */
.home-knowledge-body {
    padding: 22px 24px 24px;
    color: #666;
}

.home-knowledge-body h2 {
    margin: 0 0 14px;
    color: #333;
    font-size: 22px;
    line-height: 32px;
    font-weight: 600;
}

.home-knowledge-desc {
    margin: 0 0 18px;
    color: #666;
    font-size: 15px;
    line-height: 28px;
}

.home-knowledge-grid {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -8px;
}

.home-knowledge-item {
    width: 33.3333%;
    padding: 0 8px;
}

.home-knowledge-item h3 {
    margin: 0 0 10px;
    padding-left: 10px;
    border-left: 3px solid #1E9FFF;
    color: #333;
    font-size: 17px;
    line-height: 24px;
    font-weight: 600;
}

.home-knowledge-item p {
    margin: 0;
    min-height: 88px;
    padding: 14px 16px;
    background: #fafafa;
    border: 1px solid #eeeeee;
    border-radius: 4px;
    color: #666;
    font-size: 14px;
    line-height: 26px;
}

/* 首页分类直达 */
.home-category-card .layui-card-body {
    padding: 14px 16px 12px;
}

.home-category-title {
    margin-bottom: 10px;
    color: #333;
    font-size: 15px;
    line-height: 22px;
    font-weight: 600;
    text-align: center;
}

.home-category-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 12px;
}

.home-category-link {
    display: inline-block;
    padding: 5px 14px;
    background: #f8f8f8;
    border: 1px solid #e5e5e5;
    border-radius: 18px;
    color: #666;
    font-size: 13px;
    line-height: 20px;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.home-category-link:hover {
    background: #f0f0f0;
    color: #333;
}

.home-category-link.active {
    background: #eef2f6;
    border-color: #dde4ea;
    color: #666;
}

.layui-row[id^="group-"] {
    scroll-margin-top: 20px;
}

/* 联系我们页面 */
.contact-page {
    margin: 20px 0 30px;
}

.contact-title {
    margin-bottom: 18px;
    text-align: center;
}

.contact-title h1 {
    margin: 0 0 8px;
    color: #333;
    font-size: 28px;
    line-height: 38px;
    font-weight: 600;
}

.contact-title p {
    margin: 0;
    color: #888;
    font-size: 14px;
    line-height: 24px;
}

.contact-card-body {
    color: #666;
    font-size: 14px;
    line-height: 28px;
}

.contact-card-body p {
    margin: 0 0 10px;
}

.contact-card-body p:last-child {
    margin-bottom: 0;
}

.contact-card-body ul {
    margin: 0;
    padding-left: 20px;
}

.contact-card-body li {
    margin-bottom: 8px;
    color: #666;
    font-size: 14px;
    line-height: 26px;
}

.contact-card-body li:last-child {
    margin-bottom: 0;
}

.contact-service-body {
    text-align: center;
}

.contact-btn {
    display: inline-block;
    margin-top: 8px;
    padding: 10px 22px;
    background: #1E9FFF;
    color: #fff;
    text-decoration: none;
    border-radius: 3px;
    font-size: 14px;
    line-height: 22px;
}

.contact-btn:hover {
    color: #fff;
    opacity: 0.9;
}

/* 使用条款页面 */
.terms-page {
    margin: 20px 0 30px;
}

.terms-title {
    margin-bottom: 18px;
    text-align: center;
}

.terms-title h1 {
    margin: 0 0 8px;
    color: #333;
    font-size: 28px;
    line-height: 38px;
    font-weight: 600;
}

.terms-title p {
    margin: 0;
    color: #888;
    font-size: 14px;
    line-height: 24px;
}

.terms-card-body {
    color: #666;
    font-size: 14px;
    line-height: 28px;
}

.terms-card-body p {
    margin: 0 0 12px;
}

.terms-card-body p:last-child {
    margin-bottom: 0;
}

.terms-list {
    margin: 0;
    padding-left: 22px;
}

.terms-list li {
    margin-bottom: 8px;
    color: #666;
    font-size: 14px;
    line-height: 26px;
}

.terms-list li:last-child {
    margin-bottom: 0;
}

@media screen and (max-width: 768px) {
    .home-knowledge-body {
        padding: 16px 15px 18px;
    }

    .home-knowledge-body h2 {
        font-size: 18px;
        line-height: 28px;
        margin-bottom: 10px;
    }

    .home-knowledge-desc {
        margin-bottom: 14px;
        font-size: 13px;
        line-height: 24px;
    }

    .home-knowledge-item {
        width: 100%;
        margin-bottom: 14px;
    }

    .home-knowledge-item:last-child {
        margin-bottom: 0;
    }

    .home-knowledge-item h3 {
        margin-bottom: 8px;
        font-size: 16px;
        line-height: 22px;
    }

    .home-knowledge-item p {
        min-height: auto;
        padding: 12px 13px;
        font-size: 13px;
        line-height: 24px;
    }

    .home-category-card .layui-card-body {
        padding: 12px 12px 10px;
    }

    .home-category-title {
        margin-bottom: 8px;
        font-size: 14px;
        line-height: 20px;
    }

    .home-category-nav {
        justify-content: flex-start;
        flex-wrap: nowrap;
        gap: 8px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .home-category-nav::-webkit-scrollbar {
        display: none;
    }

    .home-category-link {
        flex: 0 0 auto;
        padding: 5px 12px;
        font-size: 12px;
        line-height: 18px;
    }

    .contact-page,
    .terms-page {
        margin: 15px 0 24px;
    }

    .contact-title h1,
    .terms-title h1 {
        font-size: 22px;
        line-height: 32px;
    }

    .contact-card-body,
    .contact-card-body li,
    .terms-card-body,
    .terms-list li {
        font-size: 13px;
        line-height: 24px;
    }

    .contact-btn {
        width: 100%;
        box-sizing: border-box;
    }
}