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

body {
    font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
    background: #f5f5f5;
    color: #333;
    font-size: 14px;
    min-width: 1200px;
    user-select: none;
    -webkit-user-select: none;
}

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

a:hover {
    color: #ff2d5b;
}

ul, ol {
    list-style: none;
}

img {
    display: block;
    border: 0;
}

.clearfix::after {
    content: "";
    display: block;
    clear: both;
}

.container {
    width: 1200px;
    margin: 0 auto;
}

h1, h2, h3, h4, h5, h6 {
    margin: 0;
    padding: 0;
    font-weight: normal;
}

@font-face {
    font-family: 'iconfont';  /* Project id 4518112 */
    src: url('//at.alicdn.com/t/c/font_4518112_hutujvb8xc.woff2?t=1785052382260') format('woff2'),
    url('//at.alicdn.com/t/c/font_4518112_hutujvb8xc.woff?t=1785052382260') format('woff'),
    url('//at.alicdn.com/t/c/font_4518112_hutujvb8xc.ttf?t=1785052382260') format('truetype');
}

.iconfont {
    font-family: "iconfont", serif !important;
    font-size: 16px;
    font-style: normal;
    -webkit-font-smoothing: antialiased;
    -webkit-text-stroke-width: 0.2px;
    -moz-osx-font-smoothing: grayscale;
}

/* ========== Goods Grid ========== */
.goods-grid {
    background: #fff;
    border-radius: 6px;
    padding: 16px;
    min-height: calc(100vh - 410px);
}

.goods-grid .grid-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.goods-grid .grid-item {
    display: block;
    width: calc(20% - 10px);
    border-radius: 6px;
    overflow: hidden;
    transition: all 0.2s;
    border: 1px solid #f0f0f0;
    text-decoration: none;
    color: inherit;
    background: #fff;
}

.goods-grid .grid-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.goods-grid .grid-item .item-img {
    width: 100%;
    /*height: 200px;*/
    background: #f5f5f5;
    overflow: hidden;
    position: relative;
    aspect-ratio: 1 / 1;
}

.goods-grid .grid-item .item-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.goods-grid .grid-item .item-detail {
    padding: 10px;
}

.goods-grid .grid-item .item-title {
    font-size: 14px;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    line-height: 1.5;
    height: 21px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.goods-grid .grid-item .item-title .brand-tag {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    margin-top: 1px;
    object-fit: contain;
    vertical-align: middle;
}

.goods-grid .grid-item .item-title span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.goods-grid .grid-item:hover .item-title {
    color: #ff2d5b;
}

.goods-grid .grid-item .item-price {
    margin-top: 8px;
    display: flex;
    align-items: baseline;
}

.goods-grid .grid-item .price-now {
    color: #ff2d5b;
    font-size: 25px;
}

.goods-grid .grid-item .yen {
    color: #ff2d5b;
    font-size: 15px;
}

.goods-grid .grid-item .price-old {
    color: #bbb;
    font-size: 12px;
    text-decoration: line-through;
    padding-left: 4px;
}

.goods-grid .grid-item .item-tags {
    margin-top: 8px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    min-height: 19.5px;
}

.goods-grid .grid-item .coupon-tag {
    display: inline-block;
    background: #fff2f4;
    color: #ff2d5b;
    font-size: 12px;
    padding: 2px 4px;
    border-radius: 2px;
    max-width: 130px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.goods-grid .grid-item .sold-info {
    font-size: 11px;
    color: #999;
    margin-left: auto;
}

/* ========== Pagination ========== */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 24px 0 8px;
    flex-wrap: wrap;
}

.pagination .page-btn {
    display: inline-flex;
    align-items: center;
    font-size: 14px;
    color: #666;
    padding: 8px 16px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fff;
    transition: all 0.2s;
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
}

.pagination .page-btn:hover {
    color: #ff2d5b;
    border-color: #ff2d5b;
}

.pagination .page-btn.disabled {
    color: #ccc;
    border-color: #eee;
    cursor: not-allowed;
    pointer-events: none;
}

.pagination .page-numbers {
    display: flex;
    align-items: center;
    gap: 4px;
}

.pagination .page-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 8px;
    font-size: 14px;
    color: #666;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fff;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s;
}

.pagination .page-num:hover {
    color: #ff2d5b;
    border-color: #ff2d5b;
}

.pagination .page-num.active {
    color: #fff;
    background: #ff2d5b;
    border-color: #ff2d5b;
}

.pagination .page-ellipsis {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    font-size: 14px;
    color: #999;
    cursor: default;
}

/* ========== Page Content ========== */
.page-content {
    margin-top: 20px;
    margin-bottom: 40px;
}

.page-content .page-inner {
    background: #fff;
    border-radius: 6px;
    padding: 30px;
}

.page-content .page-inner .page-title {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 20px;
}

.page-content .page-inner .page-body {
    line-height: 1.8;
    color: #333;
}

/* ========== Error Page ========== */
.error-page {
    margin-top: 60px;
    margin-bottom: 60px;
    text-align: center;
}

.error-page .error-inner {
    background: #fff;
    border-radius: 6px;
    padding: 60px 30px;
}

.error-page .error-code {
    font-size: 72px;
    font-weight: bold;
    color: #ff2d5b;
}

.error-page .error-msg {
    font-size: 18px;
    color: #666;
    margin-top: 16px;
}

.error-page .error-btn {
    display: inline-block;
    margin-top: 24px;
    background: #ff2d5b;
    color: #fff;
    padding: 10px 30px;
    border-radius: 4px;
    font-size: 14px;
}

/* ========== Scrollbar ========== */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-thumb {
    background: #ddd;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #bbb;
}

/* ========== Placeholder image ========== */
.placeholder-img {
    background: linear-gradient(135deg, #f0f0f0 25%, #e8e8e8 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ccc;
    font-size: 24px;
}

/* ========== Top Bar ========== */
.top-bar {
    background: #fff;
    border-bottom: 1px solid #eee;
    height: 36px;
    line-height: 36px;
    font-size: 12px;
    color: #999;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar a {
    color: #666;
    font-size: 12px;
}

.top-bar a:hover {
    color: #ff2d5b;
}

.top-bar .welcome {
    color: #999;
}

.top-bar .top-links a {
    margin-left: 15px;
}

/* ========== Header ========== */
.header {
    background: #fff;
    padding: 12px 0;
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    width: 320px;
    height: 90px;
    display: inline-block;
    float: left;
    background-size: inherit;
    text-align: left;
    line-height: 80px;
    font-size: 36px;
    color: #333;
    overflow: hidden;
}

.logo img {
    max-width: 100%;
    max-height: 100%;
}

/* Search */
.search-area {
    flex: 1;
    max-width: 560px;
    margin: 0 40px;
}

.search-box {
    display: flex;
    align-items: center;
    border: 2px solid #ff2d5b;
    border-radius: 25px;
    overflow: hidden;
    height: 42px;
    background: #fff;
}

.search-box .search-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-left: 15px;
    flex-shrink: 0;
}

.search-box .search-icon img {
    width: 16px;
    height: 16px;
    object-fit: contain;
}

.search-box input {
    flex: 1;
    border: none;
    outline: none;
    padding: 0 10px;
    font-size: 14px;
    color: #333;
    background: transparent;
}

.search-box input::placeholder {
    color: #999;
}

.search-box button {
    width: 100px;
    background: #ff2d5b;
    color: #fff;
    border: none;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s;
    border-radius: 0 25px 25px 0;
    height: 100%;
}

.hot-keywords {
    margin-top: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.hot-keywords span {
    font-size: 12px;
    color: #999;
    flex-shrink: 0;
}

.hot-keywords a {
    font-size: 12px;
    color: #666;
    padding: 2px 8px;
    border-radius: 3px;
    transition: all 0.2s;
}

.hot-keywords a:hover {
    color: #ff2049;
}

/* Save info */
.save-info {
    width: 200px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.save-info .save-info-img {
    margin-right: 10px;
}

.save-info img {
    width: 80px;
    height: 80px;
}

.save-info .save-info-text {
    text-align: center;
    font-size: 14px;
    line-height: 1.6;
}

.save-info .save-info-text h5 {
    font-size: 14px;
    color: red;
}


/* ========== Nav ========== */
.main-nav {
    background: #fe2e54;
    height: 35px;
    line-height: 35px;
}

.main-nav .container {
    display: flex;
    align-items: center;
}

.main-nav a {
    color: #fff;
    font-size: 14px;
    padding: 0 30px;
    display: inline-block;
    height: 35px;
    transition: background 0.2s;
    position: relative;
}

.main-nav a:hover,
.main-nav a.active {
    background: rgba(0, 0, 0, 0.15);
    color: #fff;
}

.main-nav .nav-new {
    position: absolute;
    top: 4px;
    right: 4px;
    background: #ffaa00;
    color: #fff;
    font-size: 10px;
    padding: 1px 4px;
    border-radius: 2px;
    line-height: 1;
}

/* ========== Footer ========== */
.footer {
    margin-top: 30px;
    color: hsla(0, 0%, 100%, .6);
    background: #1e1e1e;
    border-top: 1px solid #eee;
    padding: 30px 0 20px;
}

.footer-nav {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 20px;
}

.footer-nav a {
    font-size: 13px;
    color: hsla(0, 0%, 100%, .6);
}

.footer-nav a:hover {
    color: #fff;
    text-decoration: underline;
}

.footer-info {
    text-align: center;
    font-size: 12px;
    line-height: 2;
}

.footer-info a {
    color: hsla(0, 0%, 100%, .6);
}

.footer-info a:hover {
    color: #fff;
    text-decoration: underline;
}

/* ========== Back to top ========== */
#scrollUp {
    position: fixed;
    right: 20px;
    bottom: 40px;
    z-index: 999;
    display: block;
    width: 40px;
    height: 40px;
    background: url("../img/top.png") no-repeat center center;
    background-size: 40px 40px;
    cursor: pointer;
}