/* 设置所有文本的默认字体为无衬线字体 */
body {
    font-family: Arial, sans-serif;
    background-color: #E6F2FF; /* 柔和的浅蓝色 */
    margin: 0;
    padding: 0;
    padding-top: 60px; /* 为固定导航栏留出空间 */
}

/* 固定在顶部的导航栏 */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background-color: #fff; /* 白色 */
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* 导航栏左侧：汉堡菜单 + Logo */
.navbar-left {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 12px;
}

.navbar-logo-wrap {
    display: flex;
    align-items: center;
    text-decoration: none;
    margin-left: 14px;
}

.hamburger-menu {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    cursor: pointer;
}

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

.logo-img {
    height: 40px;
    width: auto;
    cursor: pointer;
    display: block;
}

/* 导航栏右侧：文字链接 + 功能图标 */
.navbar-right {
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    min-width: 0;
}

.navbar-links {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px 12px;
}

.navbar-link {
    color: #1e3a5f;
    text-decoration: none;
    font-size: 1.08rem;
    font-weight: bold;
    white-space: nowrap;
    padding: 4px 6px;
    border-radius: 4px;
    transition: background-color 0.2s, color 0.2s;
}

.navbar-search-icon {
    margin-right: 4px;
}

.navbar-link:hover {
    color: #2d4f7a;
    background-color: rgba(30, 58, 95, 0.1);
}

.navbar-icons {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: 12px;
}

.navbar-right .icon {
    font-size: 20px;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.navbar-right .icon-img {
    height: 24px;
    width: auto;
    display: block;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.navbar-right .icon:hover,
.navbar-right .icon-img:hover {
    transform: scale(1.1);
}

@media (max-width: 900px) {
    .navbar-links .navbar-link {
        display: none;
    }
    .navbar-links .navbar-search-icon {
        margin-right: 0;
    }
    .navbar-icons {
        margin-left: 0;
    }
}

/* 导航栏下方的搜索栏 */
.navbar-search-bar {
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    height: 0;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 0 20px;
    transition: height 0.3s ease, padding 0.3s ease;
}

.navbar-search-bar.show {
    height: 56px;
    padding: 10px 20px;
}

.navbar-search-bar input {
    max-width: 400px;
    flex: 1;
    padding: 10px 16px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
}

.navbar-search-bar input:focus {
    outline: none;
    border-color: #1e3a5f;
}

.navbar-search-bar button {
    padding: 10px 24px;
    background-color: #1e3a5f;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    cursor: pointer;
    white-space: nowrap;
}

.navbar-search-bar button:hover {
    background-color: #2d4f7a;
}

.navbar-search-close {
    cursor: pointer;
    font-size: 24px;
    color: #666;
    line-height: 1;
    padding: 0 4px;
}

.navbar-search-close:hover {
    color: #333;
}

/* 飞入愿望清单动画的小圆点（红色） */
.cart-fly-dot {
    position: fixed;
    width: 16px;
    height: 16px;
    background: #e53935;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
}

/* 愿望清单图标右上角数量角标 */
.cart-icon-wrap {
    position: relative;
    display: inline-block;
}

.cart-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    background: #e53935;
    color: #fff;
    font-size: 12px;
    font-weight: bold;
    line-height: 18px;
    text-align: center;
    border-radius: 9px;
    display: none;
    box-sizing: border-box;
}

.cart-badge.show {
    display: block;
}

/* 愿望清单图标到达时的弹跳效果 */
.cart-icon-bounce {
    display: inline-block;
    animation: cartBounce 0.3s ease-out;
}

@keyframes cartBounce {
    0% { transform: scale(1); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

/* ========== 全局底栏 ========== */

.site-footer {
    background-color: #1e3a5f;
    color: #fff;
    padding: 100px 20px;
    margin-top: 0;
}

.footer-content {
    max-width: 960px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.footer-logo {
    display: block;
    transition: opacity 0.3s ease;
}

.footer-logo:hover {
    opacity: 0.9;
}

.footer-logo-img {
    height: 36px;
    width: auto;
    display: block;
}

.footer-text {
    margin: 0;
    font-size: 0.95rem;
    opacity: 0.9;
}

.footer-xhs {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    text-decoration: none;
    font-size: 0.95rem;
    transition: opacity 0.3s ease;
}

.footer-xhs:hover {
    opacity: 0.85;
}

.footer-xhs .xhs-icon {
    width: 28px;
    height: 28px;
    display: block;
}

@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
}

/* 当搜索栏展开时，为页面内容增加顶部间距 */
body.search-bar-open {
    padding-top: 116px;
}

/* 容器类：最大宽度 960px，居中显示 */
.container {
    max-width: 960px;
    margin: 0 auto;
    padding: 20px;
}

.hero-section,
.hero {
    width: 100%;
    box-sizing: border-box;
    background: url('../assets/images/其他图片/background.jpg') center center no-repeat;
    background-size: cover;
    background-position: center;
    text-align: center;
    padding: 60px 24px 80px;
}

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    pointer-events: none;
}

.hero h1,
.hero p,
.hero button {
    position: relative;
    z-index: 1;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.hero p {
    color: rgba(255, 255, 255, 0.95);
}

.hero-section button,
.hero button {
    background-color: #1677ff;
    color: #fff;
    padding: 12px 32px;
    border: none;
    border-radius: 24px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s;
    margin-top: 24px;
}

.hero-section button:hover {
    background-color: #3e73c1;
}

/* ========== 全屏区块样式 ========== */

/* 全屏区块基础样式 */
.fullscreen-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 20px 20px; /* 顶部留出导航栏空间 */
    box-sizing: border-box;
}

/* 区块内容容器 */
.section-content {
    text-align: center;
    max-width: 1200px;
    width: 100%;
}

/* 区块标题样式 */
.fullscreen-section h2 {
    font-size: 2.5rem;
    margin-bottom: 30px;
    color: #333;
}

/* 区域一：精品展示 */
.featured-section {
    background-color: #fff;
}

/* 精品展示区内容容器：允许内容自然高度以展示故事文字 */
.featured-section .section-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    max-width: 800px;
}

.featured-section .clickable-image {
    max-height: 70vh;
    width: auto;
    height: auto;
    border-radius: 12px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    object-fit: contain; /* 确保图片完整显示，保持原始纵横比 */
}

.featured-section .clickable-image:hover {
    transform: translateY(-8px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.15);
}

.featured-section .product-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.featured-section .product-name {
    margin: 18px 0 0 0;
    font-size: 1.75rem;
    font-weight: 600;
    color: #333;
}

.featured-story {
    margin-top: 20px;
    text-align: left;
    max-width: 560px;
}

.featured-story-p {
    font-size: 0.95rem;
    line-height: 1.85;
    color: #555;
    margin: 0 0 14px 0;
}

.featured-story-p:last-child {
    margin-bottom: 0;
}



.products-section .product-price {
    margin: 6px 0 0 0;
    font-size: 0.9rem;
    font-weight: 600;
    color: #1e3a5f;
}

.featured-description {
    margin-top: 16px;
    font-size: 0.95rem;
    line-height: 1.75;
    color: #666;
    text-align: left;
    max-width: 560px;
}

/* 区域二：探索摸的着的文化 */
.story-section {
    background-color: #ffffff;
}

.story-section p {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 40px;
    line-height: 1.8;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.story-section .image-row {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.story-section .clickable-image {
    width: 300px;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.story-section .clickable-image:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.15);
}

.story-section .product-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.story-section .product-name {
    margin: 10px 0 0 0;
    font-size: 0.95rem;
    color: #333;
    max-width: 300px;
}

.story-section-story {
    margin-top: 12px;
    text-align: left;
    max-width: 300px;
}

.story-section-story-p {
    font-size: 0.95rem;
    line-height: 1.85;
    color: #555;
    margin: 0 0 14px 0;
}

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

.story-section-cta {
    display: flex;
    justify-content: center;
    margin-top: 32px;
}

.story-section-cta .btn-explore-products {
    display: inline-block;
}

/* 区域三：随机产品 */
.products-section {
    background-color: #fff;
}

/* 产品分类栏 */
.products-section .category-bar {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-bottom: 30px;
}

.products-section .category-btn {
    padding: 8px 16px;
    border: 1px solid #1e3a5f;
    background-color: #fff;
    color: #1e3a5f;
    border-radius: 20px;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.products-section .category-btn:hover {
    background-color: #e6f2ff;
}

.products-section .category-btn.active {
    background-color: #1e3a5f;
    color: #fff;
}

.products-section .image-row {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    transition: max-height 0.3s ease;
}

/* 收起状态：只显示前4行（约4行产品卡片高度） */
.products-section .image-row.collapsed {
    max-height: 1500px;
    overflow: hidden;
}

.products-section .category-toggle-btn {
    padding: 8px 16px;
    border: 1px solid #1e3a5f;
    background-color: #fff;
    color: #1e3a5f;
    border-radius: 20px;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-left: auto;
}

.products-section .category-toggle-btn:hover {
    background-color: #e6f2ff;
}

/* 商品列表下方的展开按钮（仅收起时显示） */
.products-section .expand-bottom-wrap {
    display: flex;
    justify-content: center;
    margin-top: 24px;
}

.products-section .expand-bottom-btn {
    padding: 12px 32px;
    border: 1px solid #1e3a5f;
    background-color: #fff;
    color: #1e3a5f;
    border-radius: 24px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.products-section .expand-bottom-btn:hover {
    background-color: #e6f2ff;
}

.products-section .product-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.products-section .product-name {
    margin: 10px 0 0 0;
    font-size: 0.95rem;
    color: #333;
    max-width: 250px;
    line-height: 1.4;
}

.products-section .clickable-image {
    width: 250px;
    height: 300px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.products-section .clickable-image:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.15);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .fullscreen-section h2 {
        font-size: 2rem;
    }
    
    .story-section .clickable-image,
    .products-section .clickable-image {
        width: 100%;
        max-width: 300px;
    }
    
    .products-section .product-name {
        max-width: 100%;
    }
    
    .story-section .image-row,
    .products-section .image-row {
        flex-direction: column;
        align-items: center;
    }
}

/* ========== 详情页样式 ========== */

.detail-container {
    max-width: 1200px;
    margin: 80px auto 40px;
    padding: 40px;
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden; /* 包含浮动，避免塌陷 */
}

/* 图片区左浮动：有图时占左侧，图结束后文字自然铺满整行 */
.detail-left {
    float: left;
    width: 42%;
    max-width: 480px;
    margin-right: 2.5rem;
    margin-bottom: 1rem;
}

.detail-gallery {
    width: 100%;
}

.detail-container .product-image {
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    display: block;
}

/* 详情页缩略图条（多图时显示） */
.detail-thumbnails {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

.detail-thumb {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 6px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
}

.detail-thumb:hover {
    border-color: #1e3a5f;
    opacity: 0.9;
}

.detail-thumb.active {
    border-color: #1e3a5f;
    box-shadow: 0 2px 8px rgba(30, 58, 95, 0.3);
}

/* 文字区：不设 BFC，让内部块级元素自然绕图；图结束后自动铺满整行 */
.detail-right {
    min-height: 1px;
}

.detail-container h1 {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 20px;
    text-align: left;
}

.detail-container .price {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1e3a5f;
    margin-bottom: 20px;
    text-align: left;
}

.detail-container .price.price-multi #productPrice {
    display: inline;
}

.detail-container .origin {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 30px;
    text-align: left;
}

.detail-container .content {
    margin: 30px 0;
}

.detail-container .content h3 {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 15px;
}

.detail-container .content p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 20px;
}

.detail-container .detail-story-p {
    font-size: 1.05rem;
    line-height: 1.85;
    color: #555;
    margin: 0 0 14px 0;
}

.detail-container .detail-story-p:last-child {
    margin-bottom: 0;
}

.detail-container .size {
    font-size: 1rem;
    color: #666;
    margin-bottom: 30px;
}

/* 按钮组 */
.button-group {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.detail-container .btn-add-cart {
    background-color: #1677ff;
    color: #ffffff;
    padding: 14px 32px;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
    flex: 1;
}

.detail-container .btn-add-cart:hover {
    background-color: #3e73c1;
}

.detail-container .btn-back {
    background-color: #1e3a5f;
    color: #ffffff;
    padding: 14px 32px;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
    flex: 1;
}

.detail-container .btn-back:hover {
    background-color: #2d4f7a;
}

/* 响应式：小屏取消浮动，改为上图下文 */
@media (max-width: 768px) {
    .detail-container {
        margin: 60px 20px 20px;
        padding: 20px;
    }

    .detail-left {
        float: none;
        width: 100%;
        max-width: none;
        margin-right: 0;
        margin-bottom: 24px;
    }
    
    .detail-container h1 {
        font-size: 2rem;
        text-align: center;
    }
    
    .detail-container .origin {
        text-align: center;
    }
    
    .detail-container .product-image {
        max-width: 100%;
    }
    
    .button-group {
        flex-direction: column;
    }
    
    .detail-container .btn-add-cart,
    .detail-container .btn-back {
        width: 100%;
    }
}

/* ========== 愿望清单页面样式 ========== */

.cart-page-container {
    max-width: 1000px;
    margin: 80px auto 40px;
    padding: 40px 20px;
}

.cart-page-container h1 {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 30px;
    text-align: center;
}

.cart-container {
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    padding: 30px;
    margin-bottom: 30px;
    min-height: 200px;
}

.empty-message {
    text-align: center;
    font-size: 1.2rem;
    color: #999;
    padding: 60px 20px;
}

.cart-item {
    display: flex;
    gap: 20px;
    padding: 20px 0;
    border-bottom: 1px solid #eee;
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-item-image {
    flex-shrink: 0;
    width: 120px;
    height: 120px;
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.cart-item-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.cart-item-info h3 {
    font-size: 1.3rem;
    color: #333;
    margin: 0 0 10px 0;
}

.cart-item-info .cart-price {
    font-size: 1rem;
    font-weight: 600;
    color: #1e3a5f;
    margin: 5px 0;
}

.cart-item-info .cart-origin,
.cart-item-info .cart-size,
.cart-item-info .cart-qty {
    font-size: 0.95rem;
    color: #666;
    margin: 5px 0;
}

.cart-item-info .btn-remove {
    align-self: flex-start;
    background-color: #ff4d4f;
    color: #ffffff;
    padding: 8px 20px;
    border: none;
    border-radius: 6px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-top: 10px;
}

.cart-item-info .btn-remove:hover {
    background-color: #ff7875;
}

.cart-footer {
    display: flex;
    gap: 15px;
    justify-content: center;
    padding: 20px 0;
}

.cart-footer .btn-continue,
.cart-footer .btn-submit,
.cart-footer .btn-clear {
    padding: 14px 32px;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.cart-footer .btn-continue {
    background-color: #1e3a5f;
    color: #ffffff;
}

.cart-footer .btn-continue:hover {
    background-color: #2d4f7a;
}

.cart-footer .btn-submit {
    background-color: #1677ff;
    color: #ffffff;
}

.cart-footer .btn-submit:hover {
    background-color: #3e73c1;
}

.cart-footer .btn-clear {
    background-color: #ff4d4f;
    color: #ffffff;
}

.cart-footer .btn-clear:hover {
    background-color: #ff7875;
}

/* 愿望清单确认删除弹窗 */
.confirm-modal {
    position: fixed;
    inset: 0;
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.confirm-modal.show {
    opacity: 1;
    visibility: visible;
}

.confirm-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
}

.confirm-modal-box {
    position: relative;
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    text-align: center;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.confirm-modal.show .confirm-modal-box {
    transform: scale(1);
}

.confirm-modal-text {
    font-size: 1.1rem;
    color: #333;
    margin: 0 0 25px 0;
    line-height: 1.6;
}

.confirm-modal-btns {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.confirm-modal-btn {
    padding: 12px 28px;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.confirm-modal-btn.cancel {
    background: #f0f0f0;
    color: #666;
}

.confirm-modal-btn.cancel:hover {
    background: #e0e0e0;
}

.confirm-modal-btn.confirm {
    background: #ff4d4f;
    color: #fff;
}

.confirm-modal-btn.confirm:hover {
    background: #ff7875;
}

/* ========== 探索贵州文化页面 ========== */

.explore-page-container {
    max-width: 800px;
    margin: 80px auto 60px;
    padding: 40px 20px;
}

.explore-page-container h1 {
    font-size: 2.5rem;
    color: #333;
    text-align: center;
    margin-bottom: 50px;
}

.explore-section {
    margin-bottom: 40px;
}

.explore-section h2 {
    font-size: 1.5rem;
    color: #1e3a5f;
    margin-bottom: 15px;
}

.explore-section p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
}

.explore-footer {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 50px;
}

.btn-explore-products,
.btn-back-home {
    display: inline-block;
    padding: 12px 32px;
    background-color: #1e3a5f;
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    font-size: 1rem;
    transition: background-color 0.3s ease;
}

.btn-explore-products:hover,
.btn-back-home:hover {
    background-color: #2d4f7a;
}

.btn-explore-products {
    background-color: #1677ff;
}

.btn-explore-products:hover {
    background-color: #3e73c1;
}

/* 愿望清单页面响应式设计 */
@media (max-width: 768px) {
    .cart-page-container {
        margin: 60px 10px 20px;
        padding: 20px 10px;
    }
    
    .cart-page-container h1 {
        font-size: 2rem;
    }
    
    .cart-container {
        padding: 20px;
    }
    
    .cart-item {
        flex-direction: column;
        gap: 15px;
    }
    
    .cart-item-image {
        width: 100%;
        height: 200px;
    }
    
    .cart-footer {
        flex-direction: column;
    }
    
    .cart-footer .btn-continue,
    .cart-footer .btn-submit,
    .cart-footer .btn-clear {
        width: 100%;
    }
}

/* ========== 搜索页面样式 ========== */

.search-page-container {
    max-width: 1200px;
    margin: 80px auto 40px;
    padding: 40px 20px;
}

.search-page-container h1 {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 30px;
    text-align: center;
}

.search-box {
    display: flex;
    gap: 12px;
    max-width: 500px;
    margin: 0 auto 20px;
}

.search-box input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
}

.search-box input:focus {
    outline: none;
    border-color: #1677ff;
}

.search-box button {
    padding: 12px 24px;
    background-color: #1e3a5f;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.search-box button:hover {
    background-color: #2d4f7a;
}

.search-tip {
    text-align: center;
    margin-bottom: 30px;
    font-size: 1rem;
}

.search-results {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.search-product-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    cursor: pointer;
    padding: 10px;
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.search-product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.15);
}

.search-product-card img {
    width: 250px;
    height: 300px;
    object-fit: cover;
    border-radius: 8px;
}

.search-product-card .product-name {
    margin: 10px 0 0 0;
    font-size: 0.95rem;
    color: #333;
    max-width: 250px;
}

.search-product-card .product-price {
    margin: 6px 0 0 0;
    font-size: 0.9rem;
    font-weight: 600;
    color: #1e3a5f;
}

@media (max-width: 768px) {
    .search-page-container {
        margin: 60px 10px 20px;
        padding: 20px 10px;
    }
    
    .search-box {
        flex-direction: column;
    }
    
    .search-product-card img {
        width: 100%;
        max-width: 300px;
        height: auto;
        aspect-ratio: 250/300;
    }
}