* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    line-height: 1.2;
    background-color: #f5f5f5;
    font-family: arial, sans-serif;
    font-size: 14px;
    color: #333;
}
ul, li {
    list-style: none;
}
.container {
    max-width: 1200px;
    margin: 0 auto;
}
.column {
    width: 862px; /* Width of each column */
    padding: 0 14px; /* Padding */
    background-color: #fff; /* Background color */
}
.column h2 {
    position: relative;
    height: 56px;
    line-height: 56px;
    background-color: #fff;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    border-bottom: 1px solid #f5f5f5;
    font-weight: 700;
    font-size: 20px;
}
.column h2 a {
    float: right;
    color: #999;
    font-size: 14px;
    font-weight: normal;
}
.column h2 a:hover {
    color: #5188a6;
}
.column > div:last-child {
    border-bottom: none;
}
.article-item {
    display: flex;
    align-items: center;
}
.article-item img {
    width: 210px; /* Icon size */
    height: 157px;
    object-fit: cover;
    margin-right: 20px;
}
.article-title {
    font-size: 1.4em;
    color: #333;
    margin-bottom: 16px;
    font-weight: 400;
    width: 515px;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
    line-height: 24px;
}
.article-title a:hover {
    color: #5188a6;
}
.article-time {
    color: #999;
    font-size: 0.9em;
}
/* 头部样式 */
header {
    background-color: #fff;
    padding: 20px 0;
}
.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo a {
    font-size: 28px;
    font-weight: bold;
    text-decoration: none;
    letter-spacing: 2px;
}
.logo a:hover {
    color: #e62828;
}
.search {
    display: flex;
    align-items: center;
    position: relative;
}
.search input {
    padding: 10px 15px;
    border-radius: 2px;
    border: 1px solid #ccc;
    outline: none;
    width: 600px;
    transition: all 0.3s ease;
}
.search input:focus {
    border-color: #e62828;
    box-shadow: 0 0 5px rgba(230,40,40,.3);
}
.solid-btn {
    position: absolute;
    right: 0;
    background-color: #e62828;
    border: none;
    color: #fff;
    padding: 10px 20px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    border-top-right-radius: 2px;
    border-bottom-right-radius: 2px;
    background-image: -webkit-gradient(linear, right top, left top, from(#e62828), to(#ff5a3c));
    background-image: linear-gradient(-90deg, #e62828, #ff5a3c);
}
.solid-btn:hover {
    background-color: #e61b1b;
}
.user-actions .hollow-btn {
    padding: 5px 20px;
    border: 1px solid #333;
    background-color: transparent;
    color: #333;
    border-radius: 2px;
    font-size: 14px;
    transition: all 0.3s ease;
    cursor: pointer;
}
.user-actions .hollow-btn:hover {
    border: 1px solid #e62828;
    background-color: #e62828;
    color: #fff;
}
/* 导航栏样式 */
nav {
    background-color: #fff;
    padding: 10px 0;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    border-bottom: 1px solid #f5f5f5;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.06);
}
nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
    padding: 0;
    margin: 0;
    flex-grow: 1;
    justify-content: center;
    margin-bottom: 20px;
}
nav ul li {
    flex: 1;
    max-width: 110px;
    text-align: center;
    margin-top: 16px;
}
nav ul li a {
    color: #333;
    text-decoration: none;
    font-size: 18px;
    transition: color 0.3s ease;
    display: block;
    white-space: nowrap;
    overflow: hidden;
}
nav ul li a:hover {
    color: #e62828;
}
/* 主内容样式 */
.category-title {
    font-size: 26px;
    color: #333;
    margin: 30px 0;
    border-bottom: 1px solid #eee;
    display: block;
    text-transform: capitalize;
}
.category-title a {
    display: inline-block;
    border-bottom: 2px solid #e62828;
    height: 56px;
    line-height: 56px;
}
.product-list {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    padding-bottom: 20px;
}
.product-item {
    width: calc(25% - 16px);
    background-color: #fff;
    transition: transform 0.3s ease;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}
.product-item:hover {
    transform: translateY(-5px);
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
.product-item img {
    width: 100%;
    height: auto;
    max-height: 240px;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}
.product-info {
    margin-top: 15px;
    padding: 0 20px 20px 20px;
}
.product-info .price {
    text-decoration: line-through;
    text-decoration-thickness: 1px;
    color: #666;
}
.description {
    font-size: 16px;
    margin-bottom: 10px;
    display: -webkit-box;
    display: -moz-box;
    display: box;
    -webkit-line-clamp: 2;
    -moz-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    -moz-box-orient: vertical;
    box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}
.tprice {
    display: flex;
    flex-direction: column;
}
.original-price {
    text-decoration: line-through;
    text-decoration-thickness: 1px;
    color: #a5a5a5;
}
.promo-price {
    color: #e62828;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.promo-price .buy-btn {
    margin-left: 10px;
}
.sale-price {
    color: #e62828;
    margin: 5px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.buy-btn {
    position: relative;
    padding: 5px 15px;
    border: none;
    background-color: #e62828;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    align-self: flex-end;
}
.buy-btn:after {
    content: "";
    position: absolute;
    right: 1px;
    bottom: 1px;
    width: 0;
    height: 0;
    border-color: rgba(0, 0, 0, 0) #fff #fff rgba(0, 0, 0, 0);
    border-style: solid;
    border-width: 4px;
}
.buy-btn:hover {
    background-color: red;
    color: white;
}
/* 相关主题样式 */
.related-topics {
    display: flex;
    flex-wrap: wrap;
    background-color: #fff;
    padding: 10px;
    margin-bottom: 20px;
    transition: transform 0.3s ease;
    max-width: 1200px;
}
.related-topics h3 {
    font-size: 26px;
}
.related-topics a {
    display: block;
    padding: 10px;
    text-align: center;
    color: #333;
    text-decoration: none;
    background-color: #f8f8f8;
    margin: 5px;
}
.related-topics a:hover {
    background-color: #e9e9e9;
}
.topics-grid {
    display: flex;
    flex-wrap: wrap;
    margin-top: 10px;
    transition: transform 0.3s ease;
    max-width: 1150px;
}
.topics-grid a:hover {
    background-color: #e9e9e9;
}
.topics-grid a {
    display: block;
    padding: 10px;
    text-align: center;
    color: #333;
    text-decoration: none;
}
/* 底部样式 */
footer {
    background-color: #fff;
    color: #333;
    text-align: center;
    padding: 20px 0;
    margin-top: 40px;
    box-shadow: 0 -2px 4px 0 rgba(0,0,0,.01);
}
a {
    color: inherit;
    text-decoration: none;
}
/* 文章内容样式 */
.arc_container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    display: flex;
    justify-content: space-between;
}
.article {
    flex: 3;
    margin-right: 20px;
}
.sidebar {
    flex: 1;
    max-width: 200px;
    margin-top: 75px;
}
.article h1 {
    color: #333;
    margin-bottom: 0.5em;
}
.info {
    color: #666;
    font-size: 0.9em;
    margin-bottom: 1em;
}
.content {
    color: #333;
    line-height: 1.6;
}
.content img {
    width: 80%;
    justify-content: center;
}
.sidebar .arc-item {
    /* display: flex; */
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: #fff;
    margin-bottom: 20px;
}
.sidebar .arc-item img {
    width: 100%;
    height: auto;
}
.sidebar .arc-item .description {
    margin: 10px;
}
/* 促销卡片样式 */
.promotion-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background-color: #fff;
    padding: 30px;
}
.promotion-header {
    display: flex;
    flex-direction: row;
    margin-bottom: 20px;
    width: 228px;
}
.promotion-header img {
    width: 100%;
    max-width: 100%;
    height: auto;
    object-fit: contain;
    margin-right: 20px;
}
.promotion-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    position: absolute;
    left: 290px;
    right: 30px;
}
.promotion-title {
    font-size: 24px;
    color: #333;
    margin-bottom: 10px;
}
.promotion-tagline {
    font-size: 18px;
    color: #666;
    margin-bottom: 10px;
}
.promotion-prices {
    font-size: 16px;
    color: #999;
    margin-bottom: 10px;
}
.promotion-real-price {
    text-decoration: line-through;
    margin-right: 10px;
}
.promotion-discount-price {
    color: #e62828;
    font-size: 20px;
}
.buy-button {
    float: right;
    position: relative;
    padding: 5px 15px;
    border: none;
    background-color: #e62828;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    align-self: flex-end;
}
.buy-button:after {
    content: "";
    position: absolute;
    right: 1px;
    bottom: 1px;
    width: 0;
    height: 0;
    border-color: rgba(0, 0, 0, 0) #fff #fff rgba(0, 0, 0, 0);
    border-style: solid;
    border-width: 4px;
}
.buy-button:hover {
    background-color: #e62828;
    color: white;
}
.promotion-card p {
    margin-top: 20px;
    color: #333;
    font-size: 16px;
    line-height: 28px;
    margin-bottom: 20px;
    word-break: break-word;
    word-wrap: break-word;
}
/* 相关产品推荐样式 */
.related-products {
    margin-top: 20px;
    background-color: #fff;
    border: 1px solid #eee;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}
.related-products h1 {
    font-size: 24px;
    color: #333;
    margin-bottom: 20px;
}
.related-product-item {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    cursor: pointer;
}
.related-product-item img {
    width: 60px;
    height: auto;
    margin-right: 20px;
    border-radius: 10px;
}
.product-title {
    font-size: 16px;
    color: #333;
}
.related-products h3 {
    margin-bottom: 10px;
}
/*文章页推荐样式*/
.article-item {
    display: flex;
    justify-content: space-between;
    flex-wrap: nowrap;
    padding: 20px 0;
    border-bottom: 1px solid #f5f5f5;
}
.article-item .arc-item {
    width: 15%;
    height: 192px;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #fff;
    padding: 10px;
    transition: transform 0.3s ease;
}
.article-item .arc-item:hover {
    transform: translateY(-5px);
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
.article-item .arc-item img {
    width: 100%;
    height: 110px;
    max-height: 150px;
    object-fit: cover;
    border-radius: 8px;
}
.article-item .arc-item .description {
    margin-top: 10px;
    font-size: 16px;
    color: #333;
    text-align: center;
}

.article-item-first {
    display: flex;
    justify-content: space-between;
    flex-wrap: nowrap;
    padding: 20px 0;
    border-bottom: 1px solid #f5f5f5;
}
.article-item-first .arc-item {
    width: 15%;
    height: 192px;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #fff;
    padding: 10px;
    transition: transform 0.3s ease;
}
.article-item-first .arc-item:hover {
    transform: translateY(-5px);
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
.article-item-first .arc-item img {
    /* width: 100%; */
    height: 110px;
    max-height: 150px;
    object-fit: cover;
    border-radius: 8px;
}
.article-item-first img {
    /* width: 100%; */
    height: 110px;
    /* max-height: 150px; */
    object-fit: cover;
    border-radius: 8px;
    margin: 10px;
}
.article-item-first .arc-item .description {
    margin-top: 10px;
    font-size: 16px;
    color: #333;
    text-align: center;
}

.article-item-con {
    font-size: 14px;
    line-height: 24px;
    color: #666;
    height: 48px;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}
.article-time a {
    display: block;
    float: right;
    margin-right: 10px;
    color: #5188a6;
}
.article-list {
    display: flex;
    margin-bottom: 20px;
}
#feed-side {
    float: right;
    width: 324px;
    margin-left: 16px;
    background-color: #f5f5f5;
}
.side-hot {
    padding-bottom: 15px;
    background-color: #fff;
}
.side-featured {
    margin-top: 16px;
    padding-bottom: 5px;
}
.side-hot h3 {
    height: 44px;
    line-height: 45px;
    padding: 0 14px;
    border-bottom: 1px solid #f5f5f5;
    font-weight: normal
}
.side-hot h3 a {
    float: right;
    color: #999;
    font-size: .8em
}
.side-hot h3 a:hover {
    color: #5188a6;
}
.imgbox img {
    width: 100%;
    padding: 10px;
}
.side-ul {
    margin-top: 0;
}
.side-featured .side-ul {
    margin-top: 16px;
}
.side-ul li {
    list-style: none;
    margin: 0 14px 14px;
}
.side-ul li a:hover {
    color: #5188a6;
}
.side-ul li a .imgtext-content:hover {
    color: #5188a6;
}
.side-imgbox {
    float: left;
    width: 80px;
    height: 80px;
    margin-right: 14px;
    font-size: 0;
    text-align: center;
    overflow: hidden;
}
.side-imgbox img {
    max-width: 100%;
    max-height: 100%;
    vertical-align: middle;
}
.imgtext-content {
    font-size: 14px;
    color: #333;
    line-height: 24px;
    height: 48px;
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}
.side-ul li:after {
    content: "";
    clear: both;
    display: block;
}
.find-more {
    width: 300px;
    height: 40px;
    line-height: 40px;
    font-size: 14px;
    text-align: center;
    color: #666;
    display: block;
    background: #f7f7f7;
    border-radius: 2px;
    margin: 14px auto 0;
}
.side-featu#e62828 {
    margin-top: 14px;
}
.side-featu#e62828 ul {
    margin-top: 14px;
}
.side-featu#e62828 ul li:last-child {
    margin-bottom: 0;
}
.imgtext-content-f {
    width: 296px;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
    line-height: 26px;
}
#ifocus {
    width: 1200px;
    height: 265px;
    margin: 20px auto;
    border: 1px solid #f5f5f5;
    background: #fff;
}
#ifocus_pic {
    display: inline;
    position: relative;
    float: left;
    width: 1065px;
    height: 245px;
    overflow: hidden;
    margin: 10px 0 0 10px;
}
#ifocus_piclist {
    position: absolute;
}
#ifocus_piclist li {
    width: 1065px;
    height: 245px;
    overflow: hidden;
}
#ifocus_piclist img {
    width: 1065px;
    height: 245px;
}
#ifocus_btn {
    display: inline;
    float: right;
    width: 113px;
    margin: 9px 9px 0 0;
}
#ifocus_btn li {
    width: 111px;
    height: 64px;
    cursor: pointer;
    opacity: 0.5;
    -moz-opacity: 0.5;
    filter: alpha(opacity=50);
}
#ifocus_btn img {
    width: 101px;
    height: 54px;
    margin: 0px 0 0 10px;
}
#ifocus_btn .current {
    background: url(i/ifocus_btn_bg.gif) no-repeat;
    opacity: 1;
    -moz-opacity: 1;
    filter: alpha(opacity=100);
}
#ifocus_opdiv {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 1065px;
    height: 35px;
    background: #000;
    opacity: 0.4;
    -moz-opacity: 0.4;
    filter: alpha(opacity=40);
}
#ifocus_tx {
    position: absolute;
    left: 0;
    bottom: 0;
    right: 0;
    color: #FFF;
    width: 100%;
    height: 40px;
    line-height: 44px;
    padding: 0 10px;
}
#ifocus_tx .normal {
    display: none;
}
/*artlist*/
.art-list {
    width: 884px;
    padding: 0;
    background-color: transparent;
}
.art-list li {
    float: left;
    border-bottom: none;
    padding: 0;
    margin-top: 0;
}
.art-list li .feed-block {
    width: 280px;
    margin-right: 11px;
    background-color: #fff;
    position: relative;
    border-radius: 2px;
    transition: transform 0.3s ease;
}
.art-list li .feed-block .imgbox {
    border-radius: 2px 2px 0 0;
    width: 100%;
    height: 158px;
    margin-right: 0;
    position: relative;
}
.art-list li .feed-block .imgbox img {
    padding: 0;
}
.feed-content {
    width: 100%;
    margin-top: 0;
    height: auto;
    position: static;
}
.feed-title {
    padding: 0 14px;
    font-size: 16px;
    margin: 20px 0;
    max-height: 48px;
    height: 48px;
    line-height: 24px;
    overflow: hidden;
}
.feed-foot {
    height: 44px;
    display: flex;
    justify-content: space-between;
    margin: 16px 0;
    padding: 15px 20px;
    color: #999;
    border-top: 1px solid #f5f5f5;
}
.art-l #feed-side {
    width: 322px;
    margin-left: 0;
}
.art-list-t {
    padding: 14px 13px 12px;
    background-color: #fff;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    border-bottom: 1px solid #f5f5f5;
    font-size: 16px;
    margin-bottom: 10px;
    margin-right: 15px;
}
.art-list li .feed-block:hover {
    transform: translateY(-5px);
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}


/* 移动端自适应样式 */
@media (max-width: 768px) {
    /* nav ul {
        flex-direction: row;
        align-items: center;
        gap: 10px;
    }

    nav ul li {
        max-width: 50%;
    } */
    nav {
        position: relative;
    }
    
    nav ul {
        flex-direction: column;
        gap: 10px;
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #fff;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        z-index: 1000;
    }
    
    nav ul li {
        max-width: none;
        text-align: left;
        margin-top: 0;
        padding: 10px 20px;
    }
    
    nav ul li a {
        font-size: 16px;
    }
    
    .navmenu {
        display: block;
        cursor: pointer;
        padding: 10px;
        font-size: 24px;
    }
    
    nav.active ul {
        display: flex;
    }

    .product-item {
        width: calc(50% - 20px);
    }

    .search input {
        width: 200px;
    }

    .arc_container {
        flex-direction: column;
    }

    .article, .sidebar {
        flex: none;
        width: 100%;
    }

    .article {
        margin-right: 0;
    }

    .sidebar {
        max-width: none;
        padding-left: 0;
        margin-top: 20px;
    }

    .content img {
        width: 100%;
        justify-content: center;
    }

    .promotion-card {
        flex-direction: column;
    }

    .promotion-header {
        flex-direction: column;
        width: 100%;
    }

    .promotion-header img {
        width: 100%;
        margin-right: 0;
        margin-bottom: 20px;
    }

    .promotion-info {
        position: static;
        width: 100%;
    }

    .sidebar .arc-item {
        /* flex-direction: row;
        flex-wrap: wrap;
        justify-content: space-between; */
        width: 100%;
    }

    .sidebar .arc-item img {
        width: 100%;
        margin-bottom: 0;
    }

    .sidebar .arc-item > div {
        width: 100%;
        margin-bottom: 20px;
    }

    .article-item .arc-item {
        width: calc(25% - 20px);
    }
    
    .article-item {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
        padding: 20px 0;
        border-bottom: 1px solid #f5f5f5;
    }

    .article-item > * {
        flex: 1 1 calc(50% - 10px);
    }

    .article-item img {
        width: 100%;
        height: auto;
        margin-right: 0;
    }

    .article-title, .article-time {
        flex-basis: 100%;
    }

    #ifocus, #feed-side {
        display: none;
    }

    .article-item-first {
        flex-direction: column;
        align-items: flex-start;
    }

    .article-item-first img {
        width: 100%;
        height:auto;
        margin-right: 0;
        margin-bottom: 10px;
        object-fit: cover;
    }

    .article-title {
        width: 100%;
        font-size: 1.2em;
        margin-bottom: 10px;
    }

    .article-item-con {
        height: auto;
        -webkit-line-clamp: 3;
    }

    .article-time {
        font-size: 0.8em;
    }
}

@media (max-width: 480px) {
    .product-item {
        width: 100%;
    }

    header, nav, footer {
        flex-direction: column;
        text-align: center;
    }

    .header-container {
        flex-direction: column;
        gap: 10px;
    }

    .search input {
        width: 100%;
    }

    .user-actions {
        display: none;
    }

    .category-title {
        border-bottom: none;
    }

    .description {
        display: block;
        overflow: visible;
        text-overflow: clip;
        -webkit-line-clamp: unset;
    }

    .related-topics a {
        flex: 1 1 calc(50% - 20px);
    }

    .product-item img {
        max-height: none;
    }

    .related-topics {
        display: none;
    }

    .article-item .arc-item {
        width: calc(50% - 20px);
    }
}
@media (min-width: 768px) {
    .navmenu {
        display: none;
    }
}