/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: #f4f4f4;
    color: #333;
    font-size: 14px;
}

a {
    text-decoration: none;
    color: #333;
}

a:hover {
    color: #f40;
}

/* 顶部导航 */
.site-nav {
    background-color: #f5f5f5;
    border-bottom: 1px solid #eee;
    height: 35px;
    line-height: 35px;
}

.site-nav-container {
    width: 1190px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
}

.site-nav-left a, .site-nav-right a {
    margin: 0 10px;
}

.site-nav-left .login {
    color: #f22e00;
}

/* 搜索头部 */
.header {
    background-color: #fff;
    padding: 20px 0;
}

.header-container {
    width: 1190px;
    margin: 0 auto;
    display: flex;
    align-items: center;
}

.logo {
    width: 190px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo a {
    font-size: 32px;
    color: #ff5000;
    font-weight: bold;
}

.search-box {
    margin-left: 60px;
    flex: 1;
}

.search-tabs {
    display: flex;
}

.search-tabs span {
    padding: 5px 15px;
    cursor: pointer;
    background-color: #f5f5f5;
    border-radius: 5px 5px 0 0;
    margin-right: 5px;
}

.search-tabs span.active {
    background-color: #ff5000;
    color: #fff;
}

.search-form {
    display: flex;
    border: 2px solid #ff5000;
    border-radius: 0 0 20px 20px; /* modified radius for visual effect */
    border-radius: 20px; /* full radius for search */
    overflow: hidden;
}

.search-form input {
    flex: 1;
    border: none;
    padding: 10px 15px;
    outline: none;
    font-size: 14px;
}

.search-btn {
    background-color: #ff5000;
    color: #fff;
    border: none;
    width: 100px;
    font-size: 18px;
    cursor: pointer;
    font-weight: bold;
}

.search-hot-words {
    margin-top: 8px;
    font-size: 12px;
}

.search-hot-words a {
    margin-right: 15px;
    color: #666;
}

/* 核心服务栏 */
.core-services {
    width: 1190px;
    margin: 20px auto;
    display: flex;
    gap: 30px;
    font-size: 16px;
    font-weight: bold;
}

.core-services .service-item {
    cursor: pointer;
}

.core-services .service-item:hover {
    color: #ff5000;
}

/* 猜你喜欢商品区域 */
.guess-you-like {
    width: 1190px;
    margin: 0 auto;
}

.section-title {
    margin-bottom: 20px;
}

.section-title h2 {
    font-size: 24px;
    font-weight: bold;
    color: #111;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
}

/* 商品卡片样式 - 方便数据采集定位 */
.product-item {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
}

.product-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.product-image {
    width: 100%;
    height: 235px;
    object-fit: cover;
}

.product-info {
    padding: 12px;
}

.product-title {
    font-size: 14px;
    color: #333;
    line-height: 20px;
    height: 40px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    margin-bottom: 10px;
}

.product-tags {
    margin-bottom: 8px;
}

.tag {
    font-size: 12px;
    color: #ff5000;
    border: 1px solid #ff5000;
    border-radius: 3px;
    padding: 0 4px;
    margin-right: 5px;
}

.product-price-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
}

.price-symbol {
    color: #ff5000;
    font-size: 14px;
}

.product-price {
    color: #ff5000;
    font-size: 22px;
    font-weight: bold;
}

.product-sales {
    color: #999;
    font-size: 12px;
}

.product-shop {
    margin-top: 10px;
    font-size: 12px;
    color: #999;
}

/* 分页 */
.pagination {
    width: 1190px;
    margin: 40px auto;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.page-btn {
    display: inline-block;
    padding: 8px 15px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    color: #333;
}

.page-btn:hover {
    border-color: #ff5000;
    color: #ff5000;
}

.page-btn.active {
    background: #ff5000;
    color: #fff;
    border-color: #ff5000;
}

/* 底部 */
.footer {
    background-color: #fff;
    border-top: 1px solid #eee;
    padding: 40px 0;
    margin-top: 50px;
}

.footer-container {
    width: 1190px;
    margin: 0 auto;
    text-align: center;
    color: #666;
    line-height: 2;
}

.footer-container p {
    font-size: 12px;
}