/* 
 * POP SHOOP 样式文件
 * 版本: 1.0
 * 更新时间: 2024-12-19
 * 缓存控制: 添加版本号防止缓存问题
 */

html, body {
    overflow-x: hidden;  /* 禁止水平滚动 */
    width: 100%;
    position: relative;
}

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

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
}

/* 导航栏样式 */
.navbar {
    display: flex;
    justify-content: space-between; /* logo、标题和按钮分别靠左、中间、靠右 */
    align-items: center;
    padding: 1rem 15px;
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    height: 70px;
}


/* 商品区域样式 */
.products {
    padding: 2rem 15px;
    max-width: 1230px; /* 1200px + 左右padding */
    margin: 0 auto;
    margin-top: 70px; /* 为固定导航栏留出空间 */
}

.products h2 {
    text-align: center;
    margin-bottom: 2rem;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 一排三个 */
    gap: 15px; /* 减小间距 */
    margin: 0 auto;
}

.product-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

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

/* 产品图片容器 */
.product-image {
    position: relative;
    width: 100%;
    height: 200px; /* 固定高度 */
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    border-radius: 8px 8px 0 0;
}

/* 产品主图样式 */
.product-image .product-main-img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* 保持图片比例，完整显示 */
    background: #fff; /* 添加白色背景 */
    max-width: 100%;
    max-height: 100%;
}

/* hot标签样式 */
.product-image .hot-tag {
    position: absolute;
    top: 5px;
    left: 5px;
    width: 25px;
    height: 25px;
    z-index: 2;
}

.product-info {
    padding: 15px;
    text-align: center;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* 修改产品信息样式 */
.product-info h3 {
    margin: 5px 0;
    font-size: 0.75rem; /* 更小的字体大小 */
    color: #333;
    line-height: 1.2; /* 更紧凑的行高 */
    height: auto; /* 移除高度限制 */
    overflow: visible; /* 移除溢出隐藏 */
    text-overflow: clip; /* 移除省略号 */
    display: block; /* 恢复正常显示 */
    word-break: break-word;
    padding: 0 5px; /* 添加一些水平内边距 */
}

.product-specs {
    margin-bottom: 15px;
}

/* 修改规格选项样式 */
.spec-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    margin: 10px 0;
    border: 2px solid rgba(255,255,255,0.4);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #333;
    background: rgba(255,255,255,0.95);
    position: relative;
    font-weight: 600;
    font-size: 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* 添加分隔线 */
.spec-option span:first-child {
    padding-right: 15px;
    position: relative;
}

.spec-option span:first-child::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 70%;
    width: 1px;
    background: rgba(51,51,51,0.3);
}

.spec-option span:last-child {
    padding-left: 15px;
}

.spec-option.selected {
    background: linear-gradient(135deg, #ff6b6b, #ee5a52);
    border-color: #ff4444;
    color: white;
    transform: scale(1.02);
    box-shadow: 0 6px 20px rgba(255,68,68,0.4);
}

/* 悬停效果 */
.spec-option:hover {
    background: linear-gradient(135deg, #ff8a8a, #ff6b6b);
    border-color: #ff6b6b;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255,68,68,0.3);
}

/* 调整价格和按钮的间距 */
.product-info .price {
    color: #ff4444;
    font-weight: bold;
    font-size: 0.9rem; /* 稍微减小价格字体 */
    margin: 5px 0; /* 减小间距 */
}

.add-to-cart {
    width: 100%;
    padding: 6px; /* 减小按钮内边距 */
    background: #ff4444;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.8rem; /* 减小按钮字体 */
    margin-top: 3px; /* 减小上方间距 */
}

/* 页脚样式 */
footer {
    background-color: #333;
    color: white;
    padding: 3rem 0; /* 修改内边距 */
    text-align: center; /* 确保所有内容居中 */
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    padding: 0 15px;
    max-width: 1200px; /* 限制最大宽度 */
    margin: 0 auto; /* 居中显示 */
}

.footer-section {
    text-align: center; /* 文字居中 */
    padding: 15px;
}

.footer-section h3 {
    margin-bottom: 1.5rem;
    font-size: 1.4rem;
    color: #fff;
    position: relative;
    display: inline-block;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin: 0;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .navbar {
        height: 60px;
    }
    .buy-now-btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.85rem;
    }
    .about-content {
        padding: 15px;
    }
    
    .about-content p {
        font-size: 0.9rem;
        line-height: 1.6;
    }
    .product-grid {
        grid-template-columns: repeat(3, 1fr); /* 保持三列布局 */
        gap: 8px; /* 减小间距 */
    }
    
    .product-info {
        padding: 8px;
    }
    
    .product-info h3 {
        font-size: 0.9rem;
        margin-bottom: 5px;
    }
    
    .product-info .price {
        font-size: 1rem;
        margin: 5px 0 10px;
    }
}

@media (max-width: 480px) {
    .navbar {
        height: 50px;
    }
    .product-grid {
        grid-template-columns: repeat(3, 1fr); /* 保持三列布局 */
        gap: 6px; /* 进一步减小间距 */
    }
    
    .product-info {
        padding: 6px;
    }
    
    .product-info h3 {
        font-size: 0.9rem;
    }
    
    .product-info .price {
        font-size: 1rem;
    }
    
    .add-to-cart {
        padding: 6px;
        font-size: 0.8rem;
    }
    .hot-tag {
        width: 20px;
        height: 20px;
        top: 3px;
        left: 3px;
    }
}

/* 修改logo样式 */
.logo {
    display: flex;
    align-items: center;
    height: 100%; /* 让logo容器填满导航栏高度 */
}

.logo img {
    height: 40px;
    width: auto;
    display: block;
    pointer-events: none; /* 禁止图片交互 */
    user-select: none; /* 禁止选择 */
}

/* 导航栏标题样式 */
.navbar-title {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.navbar-title h2 {
    margin: 0;
    font-size: 1.5rem;
    position: relative;
    padding: 8px 20px;
    color: #333;
    font-weight: 800;
    font-family: "Microsoft YaHei", "微软雅黑", sans-serif;
    letter-spacing: 2px;
    background: linear-gradient(45deg, #333 30%, #666);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: none;
    white-space: nowrap;
}

/* 导航栏标题装饰线样式 */
.navbar-title h2::before,
.navbar-title h2::after {
    content: '';
    position: absolute;
    width: 3px;
    height: calc(100% + 6px);
    background: linear-gradient(to bottom, 
        transparent 0%,
        #ff4444 20%,
        #ff6b6b 50%,
        #ff4444 80%,
        transparent 100%
    );
    top: -3px;
    opacity: 0.8;
    box-shadow: 0 0 6px rgba(255, 68, 68, 0.3);
}

.navbar-title h2::before {
    left: 0;
    transform: scaleY(0);
    animation: lineDown 0.5s ease forwards;
}

.navbar-title h2::after {
    right: 0;
    transform: scaleY(0);
    animation: lineDown 0.5s ease forwards;
}

.navbar-title h2 span {
    position: absolute;
    height: 3px;
    width: calc(100% + 10px);
    background: linear-gradient(to right,
        transparent 0%,
        #ff4444 20%,
        #ff6b6b 50%,
        #ff4444 80%,
        transparent 100%
    );
    left: -5px;
    opacity: 0.8;
    box-shadow: 0 0 6px rgba(255, 68, 68, 0.3);
}

.navbar-title h2 span:first-child {
    top: 0;
    transform: scaleX(0);
    animation: lineRight 0.5s ease forwards;
}

.navbar-title h2 span:last-child {
    bottom: 0;
    transform: scaleX(0);
    animation: lineRight 0.5s ease forwards;
}

/* 移除所有可能的动画效果 */
.navbar,
.logo,
.logo img {
    transition: none;
    transform: none;
    animation: none;
}

/* 更新立即购买按钮样式 */
.buy-now-btn {
    background: linear-gradient(45deg, #ff4444, #ff6b6b);
    color: white;
    border: none;
    padding: 10px 25px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 68, 68, 0.2);
    position: relative;
    overflow: hidden;
}

.buy-now-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 68, 68, 0.3);
}

.buy-now-btn:active {
    transform: translateY(1px);
}

/* 添加光泽效果 */
.buy-now-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        120deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    transition: 0.5s;
}

.buy-now-btn:hover::before {
    left: 100%;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .buy-now-btn {
        padding: 8px 20px;
        font-size: 14px;
    }
}




/* 修改分类项样式 */
.category-item {
    position: relative;
    border-radius: 12px;
    overflow: visible;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    background: white;
    border: 1px solid rgba(0,0,0,0.1);
    aspect-ratio: 1/1.2;
}

/* 添加热门标记样式 */
.hot-mark {
    position: absolute;
    top: -10px;
    left: -10px;
    width: 40px;
    height: 40px;
    z-index: 2;
    object-fit: contain;
    border-radius: 50%;
    background: rgba(255,255,255,0.9);
    padding: 5px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

/* 图片容器样式保持不变，但添加overflow:hidden */
.category-item .img-container {
    width: 100%;
    flex: 1;
    padding: 10px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 12px 12px 0 0;
}

.category-item .img-container img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    max-height: 120px; /* 限制最大高度 */
}

/* 修改分类名称样式 */
.category-item span {
    padding: 8px;
    background: #333;
    color: white;
    text-align: center;
    font-size: 0.85rem;
    height: 32px; /* 使用固定高度替代min-height */
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .category-grid {
        gap: 6px;
        padding: 6px;
    }
    .hot-mark {
        width: 35px;
        height: 35px;
        top: -8px;
        left: -8px;
    }
}

@media (max-width: 480px) {
    .category-grid {
        gap: 4px;
        padding: 4px;
    }
    .hot-mark {
        width: 30px;
        height: 30px;
        top: -6px;
        left: -6px;
    }
    .category-item span {
        height: 28px;
        font-size: 0.8rem;
    }
}

/* 添加文字动画效果 */
@keyframes textShine {
    0% {
        background-position: 0% 50%;
    }
    100% {
        background-position: 100% 50%;
    }
}

.categories h2 {
    background-size: 200% auto;
    animation: textShine 3s linear infinite;
    background-image: linear-gradient(
        45deg, 
        #333 0%,
        #666 25%,
        #333 50%,
        #666 75%,
        #333 100%
    );
}

/* 添加排序输入框样式 */
#sortOrder {
    width: 80px;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

/* 分类项中的排序号样式 */
.sort-order {
    background: #f0f0f0;
    padding: 2px 8px;
    border-radius: 3px;
    margin-right: 10px;
    font-size: 0.9em;
    color: #666;
}

/* 调整分类项布局 */
.category-item-admin {
    display: flex;
    align-items: center;
    padding: 15px;
    gap: 15px;
    background: white;
    border-radius: 8px;
    margin-bottom: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.category-item-admin img {
    margin-right: 15px;
}

.category-info {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 15px;
}

.sort-order {
    background: #f0f0f0;
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 0.9em;
    color: #666;
    min-width: 60px;
    text-align: center;
}

.category-name {
    font-weight: 500;
}

.actions {
    display: flex;
    gap: 8px;
}

.actions button {
    padding: 6px 12px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9em;
    transition: all 0.2s ease;
}

.actions button:first-child {
    background: #4CAF50;
    color: white;
}

.actions button:last-child {
    background: #f44336;
    color: white;
}

.actions button:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

/* 后台热门标记样式 */
.hot-badge {
    background: #ff4444;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.8em;
    margin-left: 10px;
}

/* 表单中的复选框组样式 */
.form-group {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 10px 0;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
}

.form-group input[type="checkbox"] {
    width: 16px;
    height: 16px;
}

/* 确保所有容器都不会造成水平滚动 */
.navbar,
.hero,
.categories,
.products,
footer {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

/* 调整内容边距，确保不会产生水平滚动 */
.navbar {
    padding: 1rem 15px;
}

.products {
    padding: 2rem 15px;
}

.footer-content {
    padding: 0 15px;
}

/* 修改关于我们内容样式 */
.about-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.about-chinese, 
.about-english {
    text-align: justify;
    line-height: 1.8;
    margin-bottom: 30px;
}

.about-chinese p,
.about-english p {
    margin-bottom: 15px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
}

.about-english {
    font-family: 'Arial', sans-serif;
    border-top: 2px solid rgba(255, 255, 255, 0.4); /* 加粗横线并增加透明度 */
    padding-top: 30px;
    margin-top: 30px;
    position: relative; /* 添加定位 */
}

/* 添加装饰效果 */
.about-english::before {
    content: '';
    position: absolute;
    top: -2px; /* 与border-top同宽 */
    left: 50%;
    transform: translateX(-50%);
    width: 100px; /* 中间部分加强 */
    height: 2px;
    background: rgba(255, 255, 255, 0.8); /* 更明显的颜色 */
}

.about-chinese p:last-child,
.about-english p:last-child {
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .about-content {
        padding: 15px;
    }
    
    .about-chinese p,
    .about-english p {
        font-size: 0.9rem;
        line-height: 1.6;
    }
}

/* WhatsApp 按钮样式 */
.whatsapp-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: linear-gradient(145deg, #25D366, #128C7E);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
    overflow: hidden;
}

/* Facebook 按钮样式 */
.facebook-btn {
    position: fixed;
    bottom: 80px;
    right: 20px;
    background: linear-gradient(145deg, #1877f2, #0d5ab9);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: 0 4px 12px rgba(24, 119, 242, 0.4);
    z-index: 1000;
    transition: all 0.3s ease;
    animation: pulse 2s infinite 0.3s; /* 错开动画时间 */
    overflow: hidden;
}

/* 添加波纹效果 */
.whatsapp-btn::before,
.facebook-btn::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: scale(0);
    animation: ripple 2s infinite;
}

/* 悬浮效果 */
.whatsapp-btn:hover,
.facebook-btn:hover {
    transform: scale(1.1) rotate(5deg);
}

.whatsapp-btn:hover {
    box-shadow: 0 6px 16px rgba(37, 211, 102, 0.6);
}

.facebook-btn:hover {
    box-shadow: 0 6px 16px rgba(24, 119, 242, 0.6);
}

/* 工具提示样式 */
.tooltip {
    position: absolute;
    left: -120px;
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(145deg, #333, #222);
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 14px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.tooltip::after {
    content: '';
    position: absolute;
    right: -8px;
    top: 50%;
    transform: translateY(-50%);
    border-width: 8px 0 8px 8px;
    border-style: solid;
    border-color: transparent transparent transparent #222;
}

.whatsapp-btn:hover .tooltip,
.facebook-btn:hover .tooltip {
    opacity: 1;
    visibility: visible;
    animation: fadeIn 0.3s ease;
}

/* 动画关键帧 */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.4);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(255, 255, 255, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
    }
}

@keyframes ripple {
    0% {
        transform: scale(0);
        opacity: 1;
    }
    100% {
        transform: scale(2);
        opacity: 0;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateX(10px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* 移动端适配 */
@media (max-width: 768px) {
    .whatsapp-btn,
    .facebook-btn {
        width: 45px;
        height: 45px;
        font-size: 20px;
    }
    
    .facebook-btn {
        bottom: 75px;
    }
    
    .tooltip {
        display: none;
    }
}

/* 分类标题样式 */
.category-section {
    margin-bottom: 2rem;
}

.category-title {
    font-size: 1.5rem;
    color: #ff4444;
    margin-bottom: 1rem;
    padding: 10px 0;
    border-bottom: 2px solid #ff4444;
    font-weight: bold;
}

/* 调整产品网格样式 */
.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 2rem;
}

@media (max-width: 768px) {
    .category-title {
        font-size: 1.2rem;
        padding: 8px 0;
    }
}

@media (max-width: 480px) {
    .category-title {
        font-size: 1.1rem;
        padding: 6px 0;
    }
}



/* 修改模态框样式 */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.7);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: flex-start; /* 改为顶部对齐 */
    animation: fadeIn 0.3s ease;
    overflow-y: auto; /* 添加垂直滚动 */
    padding: 20px 0; /* 添加上下内边距 */
}

.modal-content {
    position: relative;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    margin: 0 auto; /* 修改边距 */
    padding: 0;
    width: 90%;
    max-width: 500px;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.4);
    z-index: 1001;
    max-height: none; /* 移除最大高度限制 */
    overflow-y: visible; /* 移除内容区域的滚动 */
    border: 2px solid rgba(255,255,255,0.3);
    backdrop-filter: blur(10px);
}

.close {
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 28px;
    cursor: pointer;
    color: #ffffff;
    z-index: 10;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(0,0,0,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255,255,255,0.5);
    font-weight: bold;
    text-shadow: 0 2px 4px rgba(0,0,0,0.8);
}

.close:hover {
    background: rgba(255,255,255,0.9);
    color: #333;
    transform: scale(1.1);
    border-color: rgba(255,255,255,1);
}

.product-detail {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 25px;
    border-radius: 20px;
    color: white;
    margin-bottom: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    border: 1px solid rgba(255,255,255,0.1);
}

.product-detail img {
    width: 100%;
    max-width: 250px;
    height: 250px;
    object-fit: contain;
    margin: 0 auto 20px;
    display: block;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
    background: rgba(255,255,255,0.95);
    padding: 10px;
}

.product-detail h3 {
    color: #ffffff;
    text-align: center;
    font-size: 1.5rem;
    margin-bottom: 25px;
    font-weight: 700;
    text-shadow: 0 2px 8px rgba(0,0,0,0.8);
    line-height: 1.3;
    background: rgba(0,0,0,0.3);
    padding: 15px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.2);
}

.product-detail h4 {
    color: #ffffff;
    margin-bottom: 15px;
    font-size: 1.3rem;
    font-weight: 700;
    text-shadow: 0 2px 6px rgba(0,0,0,0.8);
    border-bottom: 3px solid rgba(255,255,255,0.6);
    padding-bottom: 10px;
    background: rgba(0,0,0,0.2);
    padding: 12px 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

/* 规格选择器样式 */
.specifications {
    background: rgba(255,255,255,0.15);
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 25px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.3);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.quantity-selector {
    background: rgba(255,255,255,0.15);
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 25px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.3);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.quantity-control {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-top: 10px;
}

.quantity-btn {
    width: 40px;
    height: 40px;
    border: 2px solid rgba(255,255,255,0.4);
    background: rgba(255,255,255,0.9);
    color: #333;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: bold;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.quantity-btn:hover {
    background: rgba(255,255,255,1);
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

#quantity {
    width: 80px;
    text-align: center;
    background: rgba(255,255,255,0.9);
    border: 2px solid rgba(255,255,255,0.4);
    color: #333;
    border-radius: 25px;
    padding: 8px 12px;
    font-size: 16px;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* 联系表单样式 */
.contact-form {
    background: rgba(255,255,255,0.15);
    padding: 25px;
    border-radius: 15px;
    margin: 25px 0;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.3);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    overflow-y: visible; /* 确保表单内容可见 */
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 12px 15px;
    margin-bottom: 15px;
    background: rgba(255,255,255,0.95);
    border: 2px solid rgba(255,255,255,0.4);
    border-radius: 10px;
    color: #333;
    font-size: 14px;
    transition: all 0.3s ease;
    max-height: none; /* 移除最大高度限制 */
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: rgba(102, 126, 234, 0.6);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.2);
    transform: translateY(-2px);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: rgba(51,51,51,0.8);
    font-weight: 500;
}

.contact-form select {
    width: 100%;
    padding: 12px 15px;
    margin-bottom: 15px;
    background: rgba(255,255,255,0.95);
    border: 2px solid rgba(255,255,255,0.4);
    border-radius: 10px;
    color: #333 !important; /* 强制文字颜色为深色 */
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
    appearance: none; /* 移除默认的下拉箭头 */
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23333' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14L2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: calc(100% - 15px) center;
    padding-right: 40px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.contact-form select:disabled {
    background-color: rgba(255,255,255,0.4);
    cursor: not-allowed;
    color: rgba(51,51,51,0.5) !important;
    border-color: rgba(255,255,255,0.2);
}

.contact-form select option {
    background: #ffffff;
    color: #333;
    padding: 10px;
}

/* 确保选择框中的文字可见 */
.contact-form select,
.contact-form select option,
.contact-form select:disabled {
    text-shadow: none;
}

/* 添加焦点效果 */
.contact-form select:focus {
    outline: none;
    border-color: rgba(255,255,255,0.5);
    box-shadow: 0 0 0 2px rgba(255,255,255,0.1);
}

/* 修改确认按钮样式 */
.confirmation-buttons {
    margin-top: 30px;
    margin-bottom: 20px; /* 添加底部间距 */
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.go-payment,
.cancel-order {
    padding: 15px 35px;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 150px;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.go-payment {
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: white;
    border: 2px solid rgba(255,255,255,0.2);
}

.go-payment i {
    font-size: 1.3em;
}

.cancel-order {
    background: linear-gradient(135deg, #f44336, #d32f2f);
    color: white;
    border: 2px solid rgba(255,255,255,0.2);
}

.go-payment:hover,
.cancel-order:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

.go-payment:active,
.cancel-order:active {
    transform: translateY(-1px) scale(1.02);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

/* 防止背景滚动 */
body.modal-open {
    overflow: hidden;
}

/* 运输与退货政策样式 */
.shipping-policy {
    margin-top: 20px;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 8px;
    font-size: 14px;
}

.policy-section {
    margin-bottom: 20px;
}

.policy-section:last-child {
    margin-bottom: 0;
}

.policy-section h4 {
    font-size: 16px;
    color: #333;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 1px solid #eee;
}

.policy-item {
    margin-bottom: 15px;
}

.policy-item h5 {
    font-size: 14px;
    color: #666;
    margin: 10px 0 5px;
}

.policy-item p {
    margin: 5px 0;
    line-height: 1.5;
    color: #666;
}

.policy-item ul {
    list-style: none;
    padding-left: 0;
    margin: 5px 0;
}

.policy-item li {
    margin: 5px 0;
    padding-left: 15px;
    position: relative;
    color: #666;
}

.policy-item li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: #ff4444;
}

/* 英文版本样式 */
.policy-section.en {
    border-top: 1px solid #eee;
    padding-top: 20px;
}

/* 移动端适配 */
@media (max-width: 480px) {
    .shipping-policy {
        padding: 12px;
        font-size: 13px;
    }

    .policy-section h4 {
        font-size: 15px;
    }

    .policy-item h5 {
        font-size: 13px;
    }
}

/* 订单确认弹窗样式 */
.order-confirmation-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    backdrop-filter: blur(5px);
}

.order-confirmation-modal .order-content {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 30px;
    border-radius: 20px;
    width: 90%;
    max-width: 550px;
    color: white;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0,0,0,0.4);
    border: 2px solid rgba(255,255,255,0.2);
    position: relative;
}

/* SOP图片样式 */
.sop-image {
    margin-top: 25px;
    text-align: center;
}

.sop-image img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

/* 支付按钮样式 */
.go-payment {
    width: 100%;
    padding: 12px 30px;
    background: #25D366; /* WhatsApp绿色 */
    color: white;
    border: none;
    border-radius: 25px;
    font-weight: bold;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.go-payment i {
    font-size: 1.2em;
}

.go-payment:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.3);
}

.order-confirmation-modal h3 {
    text-align: center;
    margin-bottom: 25px;
    font-size: 1.8rem;
    font-weight: 700;
    text-shadow: 0 2px 8px rgba(0,0,0,0.8);
    background: rgba(0,0,0,0.3);
    padding: 15px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.2);
}

.order-details {
    margin-bottom: 20px;
}

.product-summary,
.shipping-info {
    background: rgba(255,255,255,0.95);
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.3);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.product-summary h4,
.shipping-info h4 {
    color: #333333;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 15px;
    text-shadow: none;
    border-bottom: 2px solid rgba(102, 126, 234, 0.3);
    padding-bottom: 8px;
}

.product-summary p,
.shipping-info p {
    color: #333333;
    margin: 8px 0;
    font-size: 14px;
    line-height: 1.5;
    font-weight: 500;
}

.product-summary span:first-child,
.shipping-info span:first-child {
    font-weight: 600;
    color: #666666;
}

.product-summary span:last-child,
.shipping-info span:last-child {
    font-weight: 500;
    color: #333333;
}

.confirmation-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.confirm-order,
.cancel-order {
    padding: 12px 30px;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
}

.confirm-order {
    background: #4CAF50;
    color: white;
}

.cancel-order {
    background: #f44336;
    color: white;
}

.confirm-order:hover,
.cancel-order:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* 确认按钮样式 */
.confirm-btn {
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: 2px solid rgba(255,255,255,0.2);
    border-radius: 30px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.3);
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* 添加悬停效果 */
.confirm-btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
    background: linear-gradient(135deg, #5a6fd8, #6a4190);
}

/* 添加点击效果 */
.confirm-btn:active {
    transform: translateY(-1px) scale(0.98);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

/* 添加光泽效果 */
.confirm-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        120deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    transition: 0.5s;
}

.confirm-btn:hover::before {
    left: 100%;
}

/* 添加加载状态样式 */
.loading {
    text-align: center;
    padding: 20px;
    color: rgba(255,255,255,0.7);
}

/* 修改图片加载过渡效果 */
#modalProductImage {
    transition: opacity 0.3s ease;
    opacity: 1; /* 默认透明度为1 */
    max-width: 200px;
    height: 200px;
    object-fit: contain;
    margin: 0 auto;
    display: none; /* 默认隐藏 */
}

/* 移除之前的选择器，因为我们现在使用 display 属性来控制显示 */
/* #modalProductImage:not([src]) {
    opacity: 0;
}

#modalProductImage[src] {
    opacity: 1;
} */

/* 确保导航栏布局正确 */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 15px;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .music-btn {
        width: 35px;
        height: 35px;
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .music-btn {
        width: 30px;
        height: 30px;
        font-size: 16px;
    }
}

@media (max-width: 768px) {
    .whatsapp-btn,
    .facebook-btn {
        width: 45px;
        height: 45px;
        font-size: 20px;
    }
    
    .facebook-btn {
        bottom: 75px;
    }
    
    .tooltip {
        display: none; /* 在移动端隐藏提示框 */
    }
}

/* 社交媒体按钮样式优化 */
.social-buttons {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 1000;
}


.whatsapp-btn,
.facebook-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    transition: all 0.3s ease;
    text-decoration: none;
    overflow: hidden;
}

.whatsapp-btn {
    background: linear-gradient(145deg, #25D366, #128C7E);
    color: white;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    animation: pulse 2s infinite;
}

.facebook-btn {
    background: linear-gradient(145deg, #1877f2, #0d5ab9);
    color: white;
    box-shadow: 0 4px 12px rgba(24, 119, 242, 0.4);
    animation: pulse 2s infinite 0.3s;
}

/* 波纹效果 */
.whatsapp-btn::before,
.facebook-btn::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: scale(0);
    animation: ripple 2s infinite;
}

/* 悬浮效果 */
.whatsapp-btn:hover,
.facebook-btn:hover {
    transform: scale(1.1) rotate(5deg);
}

.whatsapp-btn:hover {
    box-shadow: 0 6px 16px rgba(37, 211, 102, 0.6);
}

.facebook-btn:hover {
    box-shadow: 0 6px 16px rgba(24, 119, 242, 0.6);
}

/* 工具提示样式 */
.tooltip {
    position: absolute;
    left: -120px;
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(145deg, #333, #222);
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 14px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.tooltip::after {
    content: '';
    position: absolute;
    right: -8px;
    top: 50%;
    transform: translateY(-50%);
    border-width: 8px 0 8px 8px;
    border-style: solid;
    border-color: transparent transparent transparent #222;
}

.whatsapp-btn:hover .tooltip,
.facebook-btn:hover .tooltip {
    opacity: 1;
    visibility: visible;
    animation: fadeIn 0.3s ease;
}

/* 添加防盗图提示消息样式 */
.protection-message {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 14px;
    z-index: 9999;
    animation: fadeInOut 2s ease;
}

@keyframes fadeInOut {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.9);
    }
    20% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
    80% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.9);
    }
}

/* 确保所有图片都不能被选中和拖拽 */
img {
    user-select: none;
    -webkit-user-drag: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    pointer-events: none; /* 禁用鼠标事件 */
}

/* 对于需要点击的图片（如按钮），单独启用鼠标事件 */
.clickable-img {
    pointer-events: auto;
}

.shipping-info {
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
}

.shipping-info h4 {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 12px;
    color: #333;
    border-bottom: 1px solid #eee;
    padding-bottom: 8px;
    text-align: center;
}

.shipping-info p {
    margin: 10px 0;
    line-height: 1.6;
    display: flex;
    align-items: center;
}

.shipping-info span:first-child {
    width: 130px;
    color: #555;
    font-weight: 500;
    text-align: right;
    padding-right: 10px;
}

.shipping-info span:last-child {
    color: #333;
    font-weight: bold;
    flex: 1;
}

.payment-info {
    background: linear-gradient(135deg, #ffd700 0%, #ffb347 100%);
    box-shadow: 0 4px 15px rgba(255, 179, 71, 0.3);
    border: 2px solid #ffb347;
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
}

.payment-info h4 {
    color: #333;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 15px;
    text-shadow: 0 1px 3px rgba(0,0,0,0.2);
    border-bottom: 2px solid rgba(255,255,255,0.5);
    padding-bottom: 8px;
}

.payment-info p {
    color: #333;
    margin: 8px 0;
    font-size: 14px;
    line-height: 1.5;
}

.payment-info span:first-child {
    font-weight: 600;
    color: #555;
}

.payment-info span:last-child {
    font-weight: 500;
    color: #333;
}

.payment-info h4 {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 12px;
    color: #333;
    border-bottom: 2px solid rgba(255, 255, 255, 0.5);
    padding-bottom: 8px;
    text-align: center;
}

.payment-info p {
    margin: 10px 0;
    line-height: 1.6;
    display: flex;
    align-items: center;
}

.payment-info span:first-child {
    width: 130px;
    color: #555;
    font-weight: 500;
    text-align: right;
    padding-right: 10px;
}

.payment-info span:last-child {
    color: #333;
    font-weight: bold;
    flex: 1;
} 

/* =====================
   Minimal Modern Design v4
   极简现代风格，完全不同的视觉体验
   ===================== */

/* 全局背景：纯白极简 */
body {
    background: #ffffff;
    color: #1a1a1a;
    font-family: "SF Pro Display", "Helvetica Neue", "Microsoft YaHei", "微软雅黑", Arial, sans-serif;
    min-height: 100vh;
    line-height: 1.6;
}

/* 图片自适应优化 */
img {
    max-width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
}

/* 产品图片特殊处理 */
.product-main-img,
.category-item img {
    object-fit: contain;
    background: #f8f9fa;
    border-radius: 8px;
}

/* 横幅图片自适应 */
.hero-image {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 0;
    box-shadow: none;
}

/* 导航栏：极简白色风格 */
.navbar {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 0 2rem;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.navbar .logo {
    display: flex;
    align-items: center;
}

.navbar .logo img {
    height: 40px;
    filter: none;
}

.navbar-title {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.navbar-title h2 {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 600;
    color: #1a1a1a;
    white-space: nowrap;
    letter-spacing: 1px;
}

.navbar .buy-now-btn {
    background: #000000;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    padding: 10px 20px;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.2s ease;
    cursor: pointer;
}

.navbar .buy-now-btn:hover {
    background: #333333;
    transform: none;
    box-shadow: none;
}




.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    padding: 0;
}

.category-item {
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    transition: all 0.2s ease;
    cursor: pointer;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.category-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-color: #d1d5db;
}

.category-item .img-container {
    background: #f8f9fa;
    padding: 1.5rem;
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.category-item .img-container img {
    max-height: 100px;
    width: auto;
    object-fit: contain;
}

.category-item span {
    background: #1a1a1a;
    color: #ffffff;
    font-weight: 500;
    padding: 1rem;
    text-align: center;
    font-size: 0.9rem;
}

.hot-mark {
    background: #ef4444;
    border-radius: 50%;
    padding: 6px;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
}

/* 产品区域：极简卡片布局 */
.products {
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    background: #ffffff;
}


.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

.product-card {
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    transition: all 0.2s ease;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.product-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-color: #d1d5db;
}

.product-image {
    background: #f8f9fa;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px 12px 0 0;
    overflow: hidden;
}

.product-image .product-main-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #fff;
    max-width: 100%;
    max-height: 100%;
}

.product-info {
    padding: 1.5rem;
}

.product-info h3 {
    font-size: 1rem;
    color: #1a1a1a;
    font-weight: 500;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.product-info .price {
    color: #1a1a1a;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.add-to-cart {
    width: 100%;
    background: #1a1a1a;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    padding: 12px;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    cursor: pointer;
}

.add-to-cart:hover {
    background: #333333;
    transform: none;
    box-shadow: none;
}


/* 页脚：极简白色风格 */
footer {
    background: #f8f9fa;
    border-top: 1px solid #e5e7eb;
    padding: 4rem 2rem 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
    background: transparent;
    border: none;
    box-shadow: none;
    border-radius: 0;
    padding: 0;
}

.footer-section h3 {
    color: #1a1a1a;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.footer-section p {
    color: #6b7280;
    line-height: 1.6;
}

.about-english {
    border-top: 1px solid #d1d5db;
    padding-top: 2rem;
    margin-top: 2rem;
}

.about-english::before {
    background: #9ca3af;
}

/* 悬浮按钮：极简设计 */
.social-buttons a {
    background: #1a1a1a;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border: 1px solid #e5e7eb;
}

.whatsapp-btn,
.facebook-btn {
    animation: none;
}

.tooltip {
    background: #1a1a1a;
    border: 1px solid #e5e7eb;
    color: #ffffff;
}

.tooltip::after {
    border-color: transparent transparent transparent #1a1a1a;
}

/* 模态框：极简白色风格 */
.modal-content {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.product-detail {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    color: #1a1a1a;
}

.specifications,
.quantity-selector,
.product-summary,
.shipping-info {
    background: #f8f9fa;
    border: 1px solid #e5e7eb;
    color: #1a1a1a;
}

.quantity-btn,
#quantity {
    background: #ffffff;
    border: 1px solid #d1d5db;
    color: #1a1a1a;
}

.confirm-btn {
    background: #1a1a1a;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.confirm-btn:hover {
    background: #333333;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .products {
        grid-template-columns: 1fr;
    }
    
}

/* 平板端优化 */
@media (max-width: 1024px) {
    .hero-image {
        height: 50vh;
        min-height: 350px;
    }
    
    .hero-content {
        padding: 1.5rem 2rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .categories,
    .products {
        padding: 3rem 1.5rem;
    }
    
    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
        gap: 1.5rem;
    }
    
    .category-grid {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        gap: 1.5rem;
    }
}

/* 手机端优化 */
@media (max-width: 768px) {
    /* 导航栏手机版优化 */
    .navbar {
        padding: 0 1rem;
        height: 60px;
    }
    
    .navbar .logo {
        position: static;
        transform: none;
    }
    
    .navbar .logo img {
        height: 35px;
    }
    
    .navbar-title h2 {
        font-size: 1.1rem;
        letter-spacing: 0.5px;
    }
    
    .navbar .buy-now-btn {
        padding: 8px 16px;
        font-size: 0.9rem;
    }
    
    
    
    .category-grid {
        gap: 1rem;
        padding: 0.5rem 0;
    }
    
    .category-item {
        min-width: 140px;
        aspect-ratio: 1;
        border-radius: 16px;
    }
    
    .category-item .img-container {
        padding: 1rem;
        height: 120px;
    }
    
    .category-item .img-container img {
        max-height: 80px;
    }
    
    .category-item span {
        font-size: 0.85rem;
        padding: 0.8rem;
        border-radius: 0 0 12px 12px;
    }
    
    .hot-mark {
        width: 30px;
        height: 30px;
        top: -8px;
        left: -8px;
        padding: 6px;
    }
    
    /* 产品区域手机版 */
    .products {
        padding: 2rem 1rem;
        gap: 1.5rem;
    }
    
    
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .product-card {
        border-radius: 16px;
    }
    
    .product-image {
        height: 160px;
    }
    
    .product-image .product-main-img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }
    
    .product-info {
        padding: 1rem;
    }
    
    .product-info h3 {
        font-size: 0.9rem;
        margin-bottom: 0.4rem;
    }
    
    .product-info .price {
        font-size: 1rem;
        margin-bottom: 0.8rem;
    }
    
    .add-to-cart {
        padding: 10px;
        font-size: 0.85rem;
        border-radius: 20px;
    }
    
    /* 页脚手机版 */
    footer {
        padding: 2rem 1rem 1rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .footer-section h3 {
        font-size: 1.3rem;
        margin-bottom: 1rem;
    }
    
    .footer-section p {
        font-size: 0.9rem;
        line-height: 1.5;
    }
    
    .about-english {
        padding-top: 1.5rem;
        margin-top: 1.5rem;
    }
    
    /* 悬浮按钮手机版 */
    .whatsapp-btn,
    .facebook-btn {
        width: 45px;
        height: 45px;
        font-size: 20px;
    }
    
    .whatsapp-btn {
        bottom: 20px;
        right: 20px;
    }
    
    .facebook-btn {
        bottom: 75px;
        right: 20px;
    }
    
    
}

/* 手机端触摸优化 */
@media (max-width: 768px) {
    /* 触摸友好的按钮大小 */
    .category-item,
    .product-card,
    .add-to-cart,
    .buy-now-btn {
        min-height: 44px; /* iOS 推荐的最小触摸目标 */
    }
    
    /* 改善滚动体验 */
    .category-grid {
        -webkit-overflow-scrolling: touch;
        scroll-behavior: smooth;
    }
    
    /* 减少动画以提升性能 */
    .category-item:hover,
    .product-card:hover {
        transform: none;
    }
    
    .category-item:active,
    .product-card:active {
        transform: scale(0.98);
        transition: transform 0.1s ease;
    }
    
    /* 优化文字选择 */
    .hero-title,
    .hero-subtitle,
    .categories h2 {
        -webkit-user-select: none;
        user-select: none;
    }
    
    /* 防止双击缩放 */
    .navbar,
    .hero,
    .categories,
    .products {
        touch-action: manipulation;
    }
}

/* 小屏手机优化 */
@media (max-width: 480px) {
    .navbar {
        padding: 0 0.8rem;
        height: 55px;
    }
    
    .navbar .logo img {
        height: 30px;
    }
    
    .navbar-title h2 {
        font-size: 1rem;
        letter-spacing: 0.3px;
    }
    
    .navbar .buy-now-btn {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
    
    
    .products {
        padding: 1.5rem 0.8rem;
    }
    
    
    .category-item {
        min-width: 120px;
        border-radius: 12px;
    }
    
    .category-item .img-container {
        padding: 0.8rem;
        height: 100px;
    }
    
    .category-item .img-container img {
        max-height: 60px;
    }
    
    .category-item span {
        font-size: 0.8rem;
        padding: 0.6rem;
        border-radius: 0 0 12px 12px;
    }
    
    .hot-mark {
        width: 25px;
        height: 25px;
        top: -6px;
        left: -6px;
        padding: 4px;
    }
    
    
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
    }
    
    .product-card {
        border-radius: 12px;
    }
    
    .product-image {
        height: 140px;
    }
    
    .product-image .product-main-img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }
    
    .product-info {
        padding: 0.8rem;
    }
    
    .product-info h3 {
        font-size: 0.85rem;
    }
    
    .product-info .price {
        font-size: 0.95rem;
    }
    
    .add-to-cart {
        padding: 8px;
        font-size: 0.8rem;
        border-radius: 16px;
    }
    
    footer {
        padding: 1.5rem 0.8rem 1rem;
    }
    
    .footer-section h3 {
        font-size: 1.2rem;
    }
    
    .footer-section p {
        font-size: 0.85rem;
    }
    
    .whatsapp-btn,
    .facebook-btn {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
    
    .whatsapp-btn {
        bottom: 15px;
        right: 15px;
    }
    
    .facebook-btn {
        bottom: 65px;
        right: 15px;
    }
    
    
}
