/* 移动端导航样式 */
.hamburger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    margin-right: 15px;
}

.hamburger-menu span {
    display: block;
    height: 2px;
    width: 100%;
    background-color: #333;
    transition: all 0.3s ease;
    border-radius: 1px;
}

.hamburger-menu.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.hamburger-menu.active span:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

.mobile-nav-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1998;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-nav-overlay.active {
    display: block;
    opacity: 1;
}

.mobile-nav {
    position: fixed;
    top: 0;
    left: -280px;
    width: 280px;
    height: 100%;
    background-color: white;
    z-index: 1999;
    transition: left 0.3s ease;
    overflow-y: auto;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
}

.mobile-nav.active {
    left: 0;
}

.mobile-nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background-color: #ff5000;
    color: white;
}

.mobile-nav-title {
    font-size: 18px;
    font-weight: bold;
}

.mobile-nav-close {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-nav-content {
    padding: 0;
}

.mobile-nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mobile-nav-item {
    border-bottom: 1px solid #f0f0f0;
}

.mobile-nav-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    color: #333;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s;
}

.mobile-nav-link:hover {
    background-color: #f9f9f9;
    color: #ff5000;
}

.mobile-nav-link.active {
    background-color: #fff5f0;
    color: #ff5000;
}

.mobile-dropdown-arrow {
    transition: transform 0.3s ease;
}

.mobile-nav-link.active .mobile-dropdown-arrow {
    transform: rotate(180deg);
}

.mobile-dropdown {
    display: none;
    background-color: #f9f9f9;
    padding: 0;
}

.mobile-dropdown.active {
    display: block;
}

.mobile-dropdown-link {
    display: block;
    padding: 12px 20px 12px 35px;
    color: #666;
    text-decoration: none;
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
    transition: all 0.3s;
}

.mobile-dropdown-link:hover {
    background-color: #fff5f0;
    color: #ff5000;
}

.mobile-dropdown-link:last-child {
    border-bottom: none;
}

/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
    color: #333;
    background-color: #f4f4f4;
    line-height: 1.6;
}

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

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

ul {
    list-style: none; /* 确保所有ul都没有小圆点 */
}

/* 头部区域样式 */
.top-header {
    background-color: #f5f5f5;
    padding: 8px 0;
    font-size: 12px;
    border-bottom: 1px solid #e8e8e8;
}

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

.header-left .favorite-link {
    font-weight: bold;
    color: #ff5000;
}

.header-left .bookmark-tip {
    color: #999;
    margin-left: 5px;
}

.header-right a {
    margin-left: 30px;
    font-weight: bold;
    color: #000000;
    transition: color 0.3s;
}

.header-right a:hover {
    color: #ff5000;
}

/* 搜索区域样式 - 桌面端默认样式 */
.search-area {
    background-color: #fff;
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.search-box {
    display: flex;
    align-items: center;
    max-width: 800px;
    margin: 0 auto;
    border-radius: 25px;
    overflow: hidden;
    border: 2px solid #ff5000;
    background-color: white;
    box-shadow: 0 4px 15px rgba(255, 80, 0, 0.1);
    transition: box-shadow 0.3s ease;
}

.search-box:focus-within {
    box-shadow: 0 4px 20px rgba(255, 80, 0, 0.2);
}

.category-select {
    width: 120px;
}

.category-select select {
    width: 100%;
    padding: 10px;
    border: none;
    outline: none;
    background: transparent;
    font-size: 14px;
    cursor: pointer;
    padding-left: 15px;
}

.search-input {
    flex: 1;
}

.search-input input {
    width: 100%;
    padding: 10px;
    border: none;
    outline: none;
    font-size: 14px;
}

.search-buttons {
    display: flex;
}

.image-search, .search-btn {
    padding: 10px 15px;
    border: none;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s;
}

.image-search {
    background-color: #f5f5f5;
    color: #666;
    display: flex;
    align-items: center;
    gap: 5px;
}

.search-btn {
    background: linear-gradient(135deg, #ff5000, #ff8000);
    color: white;
    font-weight: bold;
    position: relative;
    overflow: hidden;
}

.search-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 0;
    border-radius: 100%;
    transform: scale(1, 1) translate(-50%);
    transform-origin: 50% 50%;
}

.search-btn:focus:not(:active)::after {
    animation: ripple 1s ease-out;
}

@keyframes ripple {
    0% {
        transform: scale(0, 0);
        opacity: 0.5;
    }
    100% {
        transform: scale(20, 20);
        opacity: 0;
    }
}

.image-search:hover {
    background-color: #eee;
}

.search-btn:hover {
    background: linear-gradient(135deg, #ff8000, #ff5000);
}

/* 图片搜索模态框基础样式 */
.image-search-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: white;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.modal-title {
    font-size: 18px;
    font-weight: bold;
    color: #ff5000;
}

.close-modal {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #999;
    transition: color 0.3s;
}

.close-modal:hover {
    color: #ff5000;
}

.upload-area {
    border: 2px dashed #ddd;
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    margin-bottom: 20px;
    transition: border-color 0.3s;
    cursor: pointer;
}

.upload-area:hover, .upload-area.dragover {
    border-color: #ff5000;
}

.upload-icon {
    font-size: 48px;
    color: #ddd;
    margin-bottom: 15px;
    transition: color 0.3s;
}

.upload-area:hover .upload-icon {
    color: #ff5000;
}

.upload-text {
    margin-bottom: 15px;
    color: #666;
}

.upload-btn {
    background-color: #ff5000;
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s;
}

.upload-btn:hover {
    background-color: #ff8000;
}

.image-preview {
    display: none;
    margin-bottom: 20px;
    text-align: center;
}

.preview-image {
    max-width: 100%;
    max-height: 200px;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.search-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.cancel-btn, .search-image-btn {
    padding: 8px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s;
}

.cancel-btn {
    background-color: #f5f5f5;
    color: #666;
}

.cancel-btn:hover {
    background-color: #eee;
}

.search-image-btn {
    background-color: #ff5000;
    color: white;
}

.search-image-btn:hover {
    background-color: #ff8000;
}

.search-image-btn:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

/* 导航栏样式 - 更新后包含门市分布 */
.main-nav {
    background-color: #ff5000;
    color: white;
}

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

.nav-list > li {
    position: relative;
}

.nav-list > li > a {
    display: block;
    padding: 8px 12px; /* ← 修改后的内边距 */
    color: white;
    font-weight: bold;
    transition: background-color 0.3s;
}

.nav-list > li > a:hover,
.nav-list > li > a.active {
    background-color: #ff8000;
}

.nav-list > li.has-dropdown:hover .dropdown-menu {
    display: flex;
}

/* 门市分布下拉菜单特殊样式 - 多列显示 */
.dropdown-menu.markets-dropdown {
    width: 800px; /* 更宽的下拉菜单 */
    left: 0;
    display: none;
    position: absolute;
    top: 100%;
    background-color: white;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    z-index: 999;
    padding: 20px;
    border-radius: 0 0 8px 8px;
    animation: fadeInDown 0.3s ease;
}

.nav-list > li.has-dropdown:hover .dropdown-menu.markets-dropdown {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 三列布局 */
    gap: 15px;
}

.markets-column {
    display: flex;
    flex-direction: column;
}

.markets-column a {
    display: block;
    padding: 8px 10px;
    color: #666;
    font-size: 13px;
    transition: color 0.3s;
    border-radius: 4px;
}

.markets-column a:hover {
    color: #ff5000;
    background-color: #f9f9f9;
}

/* 其他下拉菜单保持原样 */
.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: white;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    z-index: 999;
    padding: 20px;
    width: 600px;
    border-radius: 0 0 8px 8px;
    animation: fadeInDown 0.3s ease;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown-column {
    flex: 1;
    padding: 0 15px;
}

.dropdown-column h4 {
    margin-bottom: 10px;
    color: #ff5000;
    font-size: 14px;
    font-weight: bold;
}

.dropdown-column a {
    display: block;
    padding: 5px 0;
    color: #666;
    font-size: 13px;
    transition: color 0.3s;
}

.dropdown-column a:hover {
    color: #ff5000;
}

/* 主体内容区域 */
.main-content {
    padding: 20px 0;
}

.main-content .container {
    display: flex;
    gap: 20px;
}

/* 右侧内容区域 */
.right-content {
    flex: 1;
    width: 100%; /* 占据全部宽度，因为左侧边栏已移除 */
}

/* 商品区域通用样式 */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #ff5000;
}

.section-title {
    font-size: 20px;
    font-weight: bold;
    color: #ff5000;
}

.more-link {
    color: #666;
    font-size: 14px;
    transition: color 0.3s;
}

.more-link:hover {
    color: #ff5000;
}

/* 商品卡片增强效果 */
.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #ff5000, #ff8000);
    transform: scaleX(0);
    transition: transform 0.3s ease;
    z-index: 2;
}

.product-card:hover::before {
    transform: scaleX(1);
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.product-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(255,80,0,0.1), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-card:hover .product-image::after {
    opacity: 1;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

/* 增强标签效果 */
.hot-tag, .discount-tag {
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    transition: transform 0.3s ease;
}

.product-card:hover .hot-tag,
.product-card:hover .discount-tag {
    transform: translateY(-3px);
}

.product-title {
    font-size: 14px;
    margin-bottom: 10px;
    height: 40px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.product-card:hover .product-title {
    color: #ff5000;
}

/* 价格显示优化 */
.product-price {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

.current-price {
    font-size: 18px;
    font-weight: bold;
    color: #ff5000;
    margin-right: 10px;
    position: relative;
}

.current-price::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: rgba(255, 80, 0, 0.2);
}

.original-price {
    font-size: 14px;
    color: #999;
    text-decoration: line-through;
    position: relative;
}

/* 销售数据样式优化 */
.product-sales {
    font-size: 12px;
    color: #999;
    display: flex;
    align-items: center;
}

.product-sales::before {
    content: '🔥';
    margin-right: 5px;
}

/* 底部样式 - 保留管理员登录部分 */
.footer-bottom {
    background-color: #fff;
    border-top: 2px solid #ff5000;
    padding: 15px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: #999;
}

.footer-links a {
    margin-left: 15px;
    color: #666;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #ff5000;
}

/* 管理员登录链接特殊样式 */
.admin-login-link {
    color: #ff5000 !important;
    font-weight: bold !important;
    position: relative;
}

.admin-login-link:hover {
    color: #ff8000 !important;
}

.admin-login-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: #ff5000;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.admin-login-link:hover::after {
    transform: scaleX(1);
}

/* 联系我们模态框样式 */
.contact-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
}

.contact-modal .modal-content {
    background-color: white;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.contact-modal .modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.contact-modal .modal-title {
    font-size: 18px;
    font-weight: bold;
    color: #ff5000;
}

.contact-modal .close-modal {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #999;
    transition: color 0.3s;
}

.contact-modal .close-modal:hover {
    color: #ff5000;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 20px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 15px;
    border-radius: 6px;
    background-color: #f9f9f9;
    transition: background-color 0.3s;
}

.contact-item:hover {
    background-color: #f0f0f0;
}

.contact-item i {
    font-size: 20px;
    color: #ff5000;
    margin-top: 5px;
    width: 24px;
    text-align: center;
}

.contact-details h4 {
    margin: 0 0 5px 0;
    color: #333;
    font-size: 16px;
}

.contact-details p {
    margin: 0 0 5px 0;
    color: #ff5000;
    font-weight: bold;
    font-size: 15px;
}

.contact-details span {
    color: #666;
    font-size: 13px;
}

.contact-tips {
    background-color: #e8f4ff;
    padding: 12px 15px;
    border-radius: 6px;
    border-left: 4px solid #1890ff;
}

.contact-tips p {
    margin: 0;
    color: #1890ff;
    font-size: 14px;
}

.contact-tips i {
    margin-right: 8px;
}

/* 底部联系我们链接样式优化 */
.footer-links a[href="#"]:nth-child(3) {
    position: relative;
    cursor: pointer;
}

.footer-links a[href="#"]:nth-child(3):hover {
    color: #ff5000;
}

/* 小程序二维码模态框样式 */
.mini-program-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
}

.mini-program-modal .modal-content {
    background-color: white;
    border-radius: 8px;
    width: 90%;
    max-width: 300px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    text-align: center;
}

.mini-program-modal .modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.mini-program-modal .modal-title {
    font-size: 18px;
    font-weight: bold;
    color: #ff5000;
}

.mini-program-modal .close-modal {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #999;
    transition: color 0.3s;
}

.mini-program-modal .close-modal:hover {
    color: #ff5000;
}

.qrcode-container {
    padding: 10px;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.qrcode-image {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.qrcode-tip {
    margin-top: 15px;
    color: #666;
    font-size: 14px;
}

/* 加载状态样式 */
.loading-state {
    padding: 30px 20px;
    text-align: center;
    color: #666;
}

.loading-state i {
    font-size: 36px;
    margin-bottom: 15px;
    color: #ff5000;
}

.loading-state p {
    margin: 5px 0;
}

/* 错误状态样式 */
.error-state {
    padding: 30px 20px;
    text-align: center;
    color: #ff6b6b;
}

.error-state i {
    font-size: 48px;
    margin-bottom: 15px;
}

.error-state p {
    margin: 5px 0;
}

.error-detail {
    font-size: 12px;
    color: #999;
}

/* 成功状态样式 */
.success-state {
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* 外部链接样式提示 */
.nav-list a[target="_blank"]::after {
    content: " ↗";
    font-size: 12px;
    color: #ff5000;
}

/* ===== 统一商品卡片样式（复用类目页面样式） ===== */

/* 产品网格 */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

/* 产品卡片 */
.product-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* 图片容器 - 严格正方形 */
.product-image {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 100%; /* 1:1 比例 */
    overflow: hidden;
    background: #f8f8f8;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* 图片 - 完全填充 */
.product-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
}

/* 图片悬停效果 - 仅图片浮动 */
.product-image:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.product-image:hover img {
    transform: scale(1.05);
}

/* 图片悬停提示 */
.product-image::after {
    content: '点击查看';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 2;
}

.product-image:hover::after {
    opacity: 1;
}

/* 标签样式 */
.hot-tag, .new-tag {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: bold;
    color: white;
    z-index: 3;
}

.hot-tag {
    background: linear-gradient(135deg, #ff5000, #ff8000);
}

.new-tag {
    background: linear-gradient(135deg, #4CAF50, #45a049);
}

/* 极简紧凑版本 */
.product-content {
    padding: 8px;
    flex: 1;
    display: flex;
    flex-direction: column;
    margin: 0;
}

.product-name {
    font-size: 12px;
    font-weight: bold;
    color: #333;
    line-height: 1.1;
    min-height: 20px;
    margin: 0;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.product-price {
    color: #ff5000;
    font-weight: bold;
    font-size: 15px;
    line-height: 1;
    margin: 0;
}

.merchant-info {
    margin-top: auto;
    padding-top: 4px;
    border-top: 1px solid #f0f0f0;
    display: flex;
    flex-direction: column;
    gap: 1px;
    cursor: pointer;
}

.merchant-name {
    font-size: 14px;
    color: #000000;
    font-weight: bold;
    line-height: 1.1;
    margin: 0;
}

.merchant-contact {
    font-size: 14px;
    color: #888;
    line-height: 1.1;
    margin: 0;
}

/* ===== 移除不需要的卡片整体效果 ===== */

/* 移除卡片顶部的渐变条效果 */
.product-card::before {
    display: none;
}

/* 移除卡片整体的悬停变换效果 */
.product-card:hover {
    transform: none;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1); /* 保持原始阴影 */
}

/* 移除卡片整体的渐变背景效果 */
.product-image::after {
    /* 只保留点击查看文字，移除渐变背景 */
    background: rgba(0, 0, 0, 0.7);
}

/* 移除标签的悬停效果 */
.product-card:hover .hot-tag,
.product-card:hover .new-tag {
    transform: none;
}

/* 移除商品标题的悬停颜色变化 */
.product-card:hover .product-name {
    color: #333; /* 保持原始颜色 */
}

/* ===== 响应式设计 - 整合所有移动端样式 ===== */
@media (max-width: 768px) {
    .hamburger-menu {
        display: flex;
        margin-right: 0;
    }
    
    .main-nav {
        display: none;
    }
    
    /* 移除搜索区域的白色背景和边框 */
    .search-area {
        background-color: transparent;
        box-shadow: none;
        border: none;
        padding: 10px 0 0 0;
        position: relative;
        z-index: 1000;
    }
    
    /* 调整搜索框容器布局 */
    .search-area .container {
        display: flex;
        align-items: center;
        gap: 10px;
    }
    
    /* 调整搜索框样式 */
    .search-box {
        flex: 1;
        margin: 0;
        border: 1px solid #ddd;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        background-color: white;
    }
    
    /* 隐藏分类选择器 */
    .category-select {
        display: none;
    }
    
    /* 修复关注公众号文本换行问题 */
    .header-right {
        display: flex;
        align-items: center;
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .header-right a {
        margin-left: 0;
        white-space: nowrap;
        font-size: 13px;
    }
    
    /* 收藏本站文本样式 */
    .favorite-link {
        line-height: 1.3;
        text-align: left;
    }
    
    .favorite-link br {
        display: block;
        content: "";
        margin-top: 2px;
    }
    
    /* 商品网格改为两列布局 */
    .products-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px;
        margin-bottom: 0;
    }
    
    /* 缩小商品卡片尺寸 */
    .product-card {
        min-height: auto;
        border-radius: 6px;
    }
    
    /* 调整图片容器比例 */
    .product-image {
        padding-bottom: 80%; /* 调整为4:5比例，更加紧凑 */
    }
    
    /* 调整商品内容区域 */
    .product-content {
        padding: 6px;
    }
    
    /* 调整商品名称字体大小 */
    .product-name {
        font-size: 11px;
        line-height: 1.2;
        min-height: 26px;
        -webkit-line-clamp: 2;
    }
    
    /* 调整价格字体大小 */
    .product-price {
        font-size: 13px;
        margin: 4px 0;
    }
    
    /* 调整商家信息区域 */
    .merchant-info {
        padding-top: 3px;
        gap: 0;
    }
    
    .merchant-name {
        font-size: 14px;
    }
    
    .merchant-contact {
        font-size: 14px;
    }
    
    /* 调整标签大小 */
    .hot-tag, .new-tag {
        font-size: 10px;
        padding: 2px 6px;
        top: 5px;
        left: 5px;
    }
    
    /* 确保触摸目标足够大 */
    .product-image, .merchant-info {
        min-height: 44px; /* 苹果推荐的最小触摸目标尺寸 */
    }
    
    /* 商品区域通用样式 - 移动端 */
    .section-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 10px;
        padding-bottom: 0;
        border-bottom: none; /* 移除橙色横线 */
    }
    
    .section-title {
        font-size: 18px;
        font-weight: bold;
        color: #333; /* 改为深灰色 */
    }
    
    .more-link {
        color: #666;
        font-size: 13px;
        transition: color 0.3s;
    }
    
    /* 消除热门推荐与搜索框间距 */
    .products-section:first-child {
        margin-top: 0;
        padding-top: 0;
    }
    
    /* 调整主内容区域上边距 */
    .main-content {
        padding-top: 0;
    }
    
    /* 移除热门推荐和新品上架区域的边框 */
    .products-section {
        background-color: transparent;
        border: none;
        box-shadow: none;
        margin-bottom: 0;
    }
}

/* 针对小屏幕手机的额外优化 */
@media (max-width: 375px) {
    .products-grid {
        gap: 6px;
    }
    
    .product-content {
        padding: 4px;
    }
    
    .product-name {
        font-size: 10px;
        min-height: 24px;
    }
    
    .product-price {
        font-size: 12px;
    }
}

/* 针对超小屏幕的优化 */
@media (max-width: 360px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 5px;
    }
    
    .product-card {
        min-height: auto;
    }
}
