/* ===================================
   响应式优化样式
   Nike Sport Template - Responsive Enhancements
   =================================== */

/* 分类显示更多按钮 */
.category-show-more {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    padding: 10px;
    margin-top: 10px;
    background: transparent;
    border: 1px solid var(--color-border);
    border-radius: 4px;
    color: var(--color-secondary);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.category-show-more:hover {
    background: var(--color-gray-light);
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.category-show-more .show-more-icon {
    transition: transform 0.3s ease;
}

.category-total-count {
    color: var(--color-secondary);
    font-size: 13px;
    margin-left: 4px;
}

.category-item-hidden {
    display: none;
}

/* 移动端菜单按钮 */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    z-index: 1001;
}

.mobile-menu-toggle svg {
    width: 24px;
    height: 24px;
    stroke: var(--color-primary);
    stroke-width: 2;
}

/* 移动端菜单覆盖层 */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
}

/* 移动端菜单抽屉 */
.mobile-menu {
    position: fixed;
    top: 0;
    left: -100%;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    background: white;
    z-index: 1000;
    overflow-y: auto;
    transition: left 0.3s ease;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
}

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

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--color-border);
}

.mobile-menu-close {
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
}

.mobile-menu-close svg {
    width: 24px;
    height: 24px;
    stroke: var(--color-primary);
    stroke-width: 2;
}

.mobile-menu-content {
    padding: 20px;
}

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

.mobile-menu-nav > li {
    border-bottom: 1px solid var(--color-border);
}

.mobile-menu-nav > li:last-child {
    border-bottom: none;
}

.mobile-menu-nav a {
    display: block;
    padding: 16px 0;
    color: var(--color-primary);
    font-weight: 500;
    font-size: 16px;
    text-decoration: none;
}

.mobile-menu-nav a:hover {
    color: var(--color-accent);
}

/* ===================================
   平板设备 (iPad, 768px - 1024px)
   =================================== */

@media (max-width: 1024px) {
    /* 容器调整 */
    .container {
        padding: 0 24px;
    }

    /* 头部导航调整 */
    .main-nav ul {
        gap: 16px;
    }

    .main-nav a {
        font-size: 14px;
    }

    /* 搜索框调整 */
    .search-box {
        max-width: 200px;
    }

    /* 产品网格 */
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }

    .featured-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }

    /* 产品详情页 */
    .product-detail-layout {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }

    /* 购物车布局 */
    .cart-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    /* 页脚 */
    .footer-columns {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

/* ===================================
   移动设备 (手机横屏, 481px - 768px)
   =================================== */

@media (max-width: 768px) {
    /* 显示移动端菜单按钮 */
    .mobile-menu-toggle {
        display: block;
    }

    .mobile-menu-overlay {
        display: block;
    }

    /* 隐藏桌面导航 */
    .main-nav {
        display: none !important;
    }

    /* 移动端所有筛选器默认折叠 */
    .filter-accordion {
        background: white;
        border: 1px solid var(--color-border);
        border-radius: 8px;
        margin-bottom: 10px;
        overflow: hidden;
    }

    .filter-accordion summary {
        cursor: pointer;
        padding: 14px 16px;
        background: white;
        transition: background 0.2s;
    }

    .filter-accordion[open] summary {
        background: var(--color-gray-light);
        border-bottom: 1px solid var(--color-border);
    }

    .filter-accordion .filter-options {
        padding: 12px 16px;
        background: white;
    }

    /* 分类筛选特殊处理 */
    .category-filter-accordion .category-tree {
        max-height: 300px;
        overflow-y: auto;
        overflow-x: hidden;
        padding: 8px 16px 12px;
    }

    /* 美化滚动条 */
    .category-filter-accordion .category-tree::-webkit-scrollbar {
        width: 5px;
    }

    .category-filter-accordion .category-tree::-webkit-scrollbar-track {
        background: var(--color-gray-light);
        border-radius: 3px;
    }

    .category-filter-accordion .category-tree::-webkit-scrollbar-thumb {
        background: var(--color-gray-medium);
        border-radius: 3px;
    }

    .category-filter-accordion .category-tree::-webkit-scrollbar-thumb:hover {
        background: var(--color-secondary);
    }

    /* 筛选器区域整体样式 */
    .products-sidebar {
        padding: 0 !important;
        margin-bottom: 16px !important;
    }

    .sidebar-sticky {
        padding: 0 !important;
    }

    /* 容器调整 */
    .container {
        padding: 0 16px;
    }

    /* ===== 移动端头部 - 现代电商风格 ===== */
    .main-header {
        background: #fff;
        border-bottom: 1px solid #f0f0f0;
        padding: 10px 0;
    }

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

    /* Logo居中 */
    .logo {
        flex: 1;
        text-align: center;
        order: 0;
    }

    .logo-text {
        font-size: 20px;
        font-weight: 700;
        color: var(--color-primary);
    }

    .logo-image {
        max-height: 32px;
        margin: 0 auto;
    }

    /* 菜单按钮 - 左侧 */
    .mobile-menu-toggle {
        order: -1;
        min-width: 44px;
        min-height: 44px;
        display: flex !important;
        align-items: center;
        justify-content: center;
        padding: 10px;
    }

    .mobile-menu-toggle svg {
        width: 22px;
        height: 22px;
        stroke: var(--color-primary);
    }

    /* 右侧操作按钮 - 购物车和收藏清晰可见 */
    .header-actions {
        order: 1;
        display: flex;
        gap: 6px;
        align-items: center;
    }

    .header-actions .icon-link {
        min-width: 40px !important;
        min-height: 40px !important;
        width: 40px !important;
        height: 40px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        position: relative !important;
        padding: 0 !important;
        background: #fff !important;
        border: 1px solid #e5e5e5 !important;
        border-radius: 50% !important;
        transition: all 0.2s ease !important;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08) !important;
    }

    .header-actions .icon-link:active {
        background: #f8f8f8 !important;
        transform: scale(0.95) !important;
        box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06) !important;
    }

    .header-actions .icon-link svg {
        width: 20px !important;
        height: 20px !important;
        color: #111 !important;
        stroke: #111 !important;
        fill: none !important;
    }

    /* 购物车图标特殊处理 */
    .header-actions .icon-link[href*="cart"] svg {
        fill: none !important;
        stroke: #111 !important;
    }

    /* 收藏图标特殊处理 */
    .header-actions .icon-link[href*="wishlist"] svg {
        fill: none !important;
        stroke: #111 !important;
    }

    /* 徽章 - 醒目红点 */
    .cart-badge,
    .wishlist-badge {
        position: absolute !important;
        top: 6px !important;
        right: 6px !important;
        min-width: 16px !important;
        height: 16px !important;
        background: #ff4d4f !important;
        color: #fff !important;
        font-size: 10px !important;
        font-weight: 700 !important;
        border-radius: 8px !important;
        display: flex !important;
        align-items: center;
        justify-content: center;
        padding: 0 4px !important;
        border: 2px solid #fff;
    }

    /* 搜索框 - 移动端全宽 */
    .search-box {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        max-width: 100%;
        padding: 12px 16px;
        background: white;
        border-bottom: 1px solid var(--color-border);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }

    .search-box.active {
        display: block;
    }

    .search-box input {
        width: 100%;
    }

    /* 顶部栏 */
    .top-bar {
        padding: 8px 0;
    }

    .top-bar-left,
    .top-bar-right {
        font-size: 12px;
    }

    .top-bar-right {
        display: none;
    }

    /* 促销横幅 */
    .promo-banner {
        padding: 10px 0;
        font-size: 13px;
    }

    /* 面包屑 */
    .breadcrumb {
        padding: 12px 0;
        font-size: 13px;
    }

    /* ===== 页面头部 - 简洁优雅 ===== */
    .page-header {
        padding: 16px 0 12px 0 !important;
        background: #fff !important;
        border-bottom: 1px solid #f0f0f0 !important;
        margin-bottom: 0 !important;
    }

    .page-header .container {
        padding: 0 12px !important;
    }

    .page-title {
        font-size: 24px !important;
        font-weight: 700 !important;
        color: #111 !important;
        margin: 0 0 4px 0 !important;
        line-height: 1.2 !important;
    }

    .page-subtitle {
        font-size: 13px !important;
        color: #757575 !important;
        margin: 0 !important;
        font-weight: 400 !important;
    }

    /* ===== 产品列表布局 ===== */
    .products-page {
        background: #fafafa !important;
        min-height: 100vh !important;
    }

    .products-page .container {
        padding: 0 !important;
        max-width: 100% !important;
    }

    .products-main {
        background: #fff !important;
    }

    /* 产品网格 - 2列紧凑布局 */
    .products-grid {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px !important;
        padding: 12px !important;
        margin: 0 !important;
        background: #fff !important;
    }

    .products-grid .product-card {
        background: #fff !important;
        padding: 0 !important;
        margin: 0 !important;
        border-radius: 8px !important;
        border: 1px solid #f0f0f0 !important;
        overflow: hidden !important;
    }

    .products-grid .product-link {
        padding: 0 !important;
        display: block !important;
    }

    /* 首页产品网格保持原样 */
    .featured-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
        background: transparent !important;
    }

    .featured-grid .product-card {
        border-radius: 8px !important;
    }

    /* 产品卡片文字 */
    .product-card {
        padding: 0;
    }

    .product-name {
        font-size: 14px;
    }

    .product-category {
        font-size: 12px;
        color: #757575 !important;
    }

    .product-colors {
        font-size: 12px;
        color: #757575 !important;
    }

    .product-price {
        font-size: 15px !important;
        font-weight: 600 !important;
    }

    .price-current {
        color: #111 !important;
    }

    /* 产品列表布局 - 移动端改为上下布局 */
    .products-layout {
        display: flex;
        flex-direction: column;
        gap: 0;
    }

    /* 侧边栏移到顶部 */
    .products-sidebar {
        position: static;
        order: 2; /* 放在工具栏之后 */
        width: 100%;
        border-right: none;
        border-bottom: none;
        padding: 0;
        margin-bottom: 0;
        background: transparent;
    }

    .sidebar-sticky {
        position: static;
    }

    /* 产品主区域 */
    .products-main {
        order: 3;
        width: 100%;
    }

    /* 工具栏优先显示 */
    .products-toolbar {
        order: 1;
        margin-bottom: 12px;
    }

    /* ===== 工具栏 - 现代简洁设计 ===== */
    .products-toolbar {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 10px !important;
        padding: 12px !important;
        background: #fff !important;
        border-bottom: 1px solid #f0f0f0 !important;
        position: sticky !important;
        top: 0 !important;
        z-index: 10 !important;
        margin: 0 !important;
    }

    .toolbar-left {
        flex: 0 0 auto !important;
        width: auto !important;
    }

    .toolbar-right {
        flex: 1 !important;
        width: auto !important;
        display: flex !important;
        justify-content: flex-end !important;
    }

    /* 筛选按钮 - 图标样式 */
    .btn-hide-filters {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 6px !important;
        padding: 10px 14px !important;
        background: #f5f5f5 !important;
        color: #111 !important;
        border: 1px solid #e5e5e5 !important;
        border-radius: 8px !important;
        font-size: 14px !important;
        font-weight: 500 !important;
        transition: all 0.2s !important;
        white-space: nowrap !important;
    }

    .btn-hide-filters:active {
        background: #e5e5e5 !important;
        transform: scale(0.98) !important;
    }

    .btn-hide-filters svg,
    .btn-hide-filters .filter-icon {
        width: 18px !important;
        height: 18px !important;
        transform: none !important;
    }

    /* 排序下拉框 - 精简设计 */
    .sort-dropdown {
        display: flex !important;
        align-items: center !important;
        gap: 8px !important;
        width: auto !important;
    }

    .sort-dropdown label {
        font-size: 14px !important;
        color: #757575 !important;
        white-space: nowrap !important;
        font-weight: 500 !important;
    }

    .sort-dropdown select {
        padding: 10px 32px 10px 12px !important;
        border: 1px solid #e5e5e5 !important;
        border-radius: 8px !important;
        font-size: 14px !important;
        background: #fff !important;
        color: #111 !important;
        font-weight: 500 !important;
        appearance: none !important;
        -webkit-appearance: none !important;
        background-image: url("data:image/svg+xml,%3Csvg width='12' height='12' viewBox='0 0 12 12' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M2 4l4 4 4-4' stroke='%23111' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E") !important;
        background-repeat: no-repeat !important;
        background-position: right 10px center !important;
        cursor: pointer !important;
        transition: all 0.2s !important;
    }

    .sort-dropdown select:focus {
        outline: none !important;
        border-color: #111 !important;
    }

    /* 产品详情页 */
    .product-detail-layout {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .product-detail-info {
        padding: 0;
    }

    .product-detail-title {
        font-size: 24px;
    }

    .product-detail-price {
        font-size: 22px;
    }

    /* 图片画廊 */
    .product-gallery {
        flex-direction: column-reverse;
    }

    .gallery-thumbnails {
        flex-direction: row;
        width: 100%;
        overflow-x: auto;
        gap: 8px;
        padding: 8px 0;
    }

    .gallery-thumbnail {
        min-width: 60px;
        height: 60px;
    }

    .gallery-main {
        min-height: 320px;
        padding: 16px;
    }

    /* 购物车 */
    .cart-layout {
        grid-template-columns: 1fr;
    }

    .cart-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        padding: 16px 0;
    }

    .cart-item-image {
        width: 100%;
        max-width: 200px;
    }

    .cart-item-details {
        width: 100%;
    }

    .cart-item-actions {
        width: 100%;
        flex-direction: row;
        justify-content: space-between;
    }

    /* 结账页面 */
    .checkout-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .checkout-section {
        padding: 20px;
    }

    /* 表单 */
    .form-row {
        flex-direction: column;
        gap: 16px;
    }

    .form-row .form-group {
        width: 100%;
    }

    /* 按钮 */
    .btn {
        width: 100%;
        justify-content: center;
    }

    .btn-group {
        flex-direction: column;
        gap: 12px;
    }

    .btn-group .btn {
        width: 100%;
    }

    /* ===== 分页 - 现代电商风格 ===== */
    .nike-pagination {
        margin-top: 32px !important;
        padding: 24px 12px !important;
        background: #fff !important;
        border-top: 1px solid #f0f0f0 !important;
    }

    .pagination-info {
        text-align: center !important;
        margin-bottom: 16px !important;
    }

    .pagination-info span {
        font-size: 13px !important;
        color: #757575 !important;
        font-weight: 500 !important;
    }

    .pagination-controls {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 8px !important;
        flex-wrap: wrap !important;
    }

    /* 上一页/下一页按钮 */
    .pagination-btn {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 6px !important;
        padding: 10px 16px !important;
        background: #fff !important;
        border: 1px solid #e5e5e5 !important;
        border-radius: 8px !important;
        font-size: 14px !important;
        font-weight: 500 !important;
        color: #111 !important;
        text-decoration: none !important;
        transition: all 0.2s !important;
        min-width: 100px !important;
    }

    .pagination-btn:active {
        background: #f5f5f5 !important;
        transform: scale(0.98) !important;
    }

    .pagination-btn[disabled] {
        opacity: 0.3 !important;
        cursor: not-allowed !important;
        pointer-events: none !important;
    }

    .pagination-btn svg {
        width: 16px !important;
        height: 16px !important;
        stroke: #111 !important;
    }

    /* 页码数字 */
    .pagination-numbers {
        display: flex !important;
        gap: 6px !important;
        align-items: center !important;
        order: -1 !important;
        width: 100% !important;
        justify-content: center !important;
        margin-bottom: 12px !important;
    }

    .pagination-number {
        min-width: 36px !important;
        height: 36px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        border-radius: 8px !important;
        font-size: 14px !important;
        font-weight: 500 !important;
        color: #757575 !important;
        text-decoration: none !important;
        transition: all 0.2s !important;
        background: #fff !important;
        border: 1px solid transparent !important;
    }

    .pagination-number:active {
        background: #f5f5f5 !important;
    }

    .pagination-number.active {
        background: #111 !important;
        color: #fff !important;
        border-color: #111 !important;
        font-weight: 700 !important;
    }

    .pagination-dots {
        color: #757575 !important;
        font-size: 14px !important;
        padding: 0 4px !important;
    }

    /* 页脚 */
    .footer-columns {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .footer-column {
        text-align: center;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

    /* 收藏夹 */
    .wishlist-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    /* 尺码选择器 */
    .size-options {
        grid-template-columns: repeat(4, 1fr);
        gap: 8px;
    }

    .size-option {
        padding: 10px 8px;
        font-size: 14px;
    }
}

/* ===================================
   小屏手机 (320px - 480px)
   =================================== */

@media (max-width: 480px) {
    /* 容器更小的内边距 */
    .container {
        padding: 0 12px;
    }

    /* 头部图标更小 */
    .header-actions {
        gap: 4px;
    }

    .icon-link svg {
        width: 20px;
        height: 20px;
    }

    /* 徽章更小 */
    .cart-badge,
    .wishlist-badge {
        min-width: 16px;
        height: 16px;
        font-size: 10px;
        top: -6px;
        right: -6px;
    }

    /* Logo更小 */
    .logo-text {
        font-size: 16px;
    }

    .logo-image {
        max-height: 24px;
    }

    /* 产品网格在小屏设备下保持两列展示 */
    .products-grid,
    .product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    /* 页面标题 */
    .page-title {
        font-size: 24px;
    }

    .hero-title {
        font-size: 32px;
        line-height: 1.2;
    }

    /* 产品详情 */
    .product-detail-title {
        font-size: 20px;
    }

    .product-detail-price {
        font-size: 20px;
    }

    /* 按钮 */
    .btn {
        padding: 12px 20px;
        font-size: 14px;
    }

    .btn-large {
        padding: 14px 24px;
        font-size: 15px;
    }

    /* 表单输入 */
    input,
    select,
    textarea {
        font-size: 16px; /* 防止iOS自动缩放 */
        padding: 12px;
    }

    /* 价格显示 */
    .price-current {
        font-size: 18px;
    }

    .price-original {
        font-size: 15px;
    }

    /* 购物车项 */
    .cart-item-image {
        max-width: 100%;
    }

    /* 数量选择器 */
    .quantity-selector {
        max-width: 100%;
    }

    /* 尺码选择 */
    .size-options {
        grid-template-columns: repeat(3, 1fr);
        gap: 6px;
    }

    .size-option {
        padding: 8px 4px;
        font-size: 13px;
    }

    /* 分页 */
    .pagination-controls {
        flex-direction: column;
        align-items: stretch;
    }

    .pagination-btn {
        width: 100%;
        justify-content: center;
    }

    .pagination-numbers {
        order: -1;
        justify-content: center;
        margin-bottom: 12px;
    }

    /* 颜色选择器 */
    .color-options {
        gap: 8px;
    }

    .color-swatch {
        width: 32px;
        height: 32px;
    }

    /* 筛选器折叠 */
    .filter-accordion summary {
        padding: 12px 0;
        font-size: 14px;
    }

    .filter-option {
        padding: 8px 0;
        font-size: 14px;
    }

    /* 收藏夹单列 */
    .wishlist-grid {
        grid-template-columns: 1fr;
    }

    /* Toast通知 */
    .toast {
        min-width: 280px;
        max-width: calc(100vw - 32px);
        font-size: 14px;
    }
}

/* ===================================
   超小屏幕 (< 375px)
   =================================== */

@media (max-width: 374px) {
    .container {
        padding: 0 8px;
    }

    .logo-text {
        font-size: 14px;
    }

    .page-title {
        font-size: 20px;
    }

    .btn {
        padding: 10px 16px;
        font-size: 13px;
    }

    .size-options {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ===================================
   横屏模式优化
   =================================== */

@media (max-height: 600px) and (orientation: landscape) {
    .mobile-menu {
        max-width: 280px;
    }

    .gallery-main {
        min-height: 240px;
    }

}

/* ===================================
   触摸设备优化
   =================================== */

@media (hover: none) and (pointer: coarse) {
    /* 增大可点击区域 */
    .btn,
    .icon-link,
    button {
        min-height: 44px;
        min-width: 44px;
    }

    /* 移除悬停效果 */
    .product-card:hover {
        transform: none;
    }

    .product-wishlist-btn:hover {
        opacity: 1;
    }

    /* 触摸反馈 */
    button:active,
    .btn:active,
    .icon-link:active {
        transform: scale(0.95);
        transition: transform 0.1s;
    }
}

/* ===================================
   辅助功能优化
   =================================== */

/* 为屏幕阅读器隐藏的内容 */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* 跳过导航链接 */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--color-primary);
    color: white;
    padding: 8px 16px;
    text-decoration: none;
    z-index: 100;
}

.skip-link:focus {
    top: 0;
}

/* 焦点可见性 */
:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

button:focus-visible,
a:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

/* ===================================
   移动端触摸优化补丁
   =================================== */

/* 确保所有链接和按钮在移动端可点击 */
@media (max-width: 768px) {
    /* 产品卡片链接优化 */
    .product-link,
    .product-link-hero,
    .product-link-compact {
        position: relative;
        z-index: 1;
        display: block;
        -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1);
        touch-action: manipulation;
    }

    /* 确保产品卡片可点击 */
    .product-card,
    .product-card-hero,
    .product-card-compact {
        position: relative;
        pointer-events: auto;
        cursor: pointer;
    }

    /* 增大所有按钮的触摸区域 */
    .btn,
    button,
    .icon-link,
    .hero-cta-btn {
        min-height: 48px !important;
        min-width: 48px !important;
        padding: 12px 24px !important;
        touch-action: manipulation;
        -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1);
    }

    /* 小按钮也要有足够的触摸区域 */
    .btn-sm,
    .size-option,
    .color-option {
        min-height: 44px !important;
        min-width: 44px !important;
        touch-action: manipulation;
    }

    /* 确保产品详情页按钮可点击 */
    .btn-add-to-cart,
    .btn-add-wishlist {
        min-height: 52px !important;
        font-size: 16px !important;
        padding: 16px 32px !important;
        touch-action: manipulation;
        -webkit-user-select: none;
        user-select: none;
    }

    /* 移除可能阻止点击的覆盖层 */
    .product-image-wrapper::after,
    .hero-image-container::after,
    .compact-image-wrapper::after {
        pointer-events: none;
    }

    /* 确保链接不被子元素阻挡 */
    .product-link > *,
    .product-link-hero > *,
    .product-link-compact > * {
        pointer-events: none;
    }

    .product-link,
    .product-link-hero,
    .product-link-compact {
        pointer-events: auto;
    }

    /* 允许按钮内的元素响应点击 */
    .btn > *,
    button > * {
        pointer-events: none;
    }

    /* 导航链接优化 */
    .main-nav a,
    .breadcrumb-link,
    .header-actions a {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        touch-action: manipulation;
    }

    /* 确保收藏按钮可点击 */
    .product-wishlist,
    .product-wishlist-btn {
        position: relative;
        z-index: 2;
        pointer-events: auto;
        min-width: 44px;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* 表单输入框优化 */
    input,
    textarea,
    select {
        font-size: 16px !important; /* 防止iOS自动缩放 */
        min-height: 48px;
        touch-action: manipulation;
    }

    /* 数量选择器按钮 */
    .quantity-decrease,
    .quantity-increase {
        min-width: 44px !important;
        min-height: 44px !important;
        touch-action: manipulation;
    }

    /* 图片画廊箭头 */
    .gallery-arrow {
        min-width: 48px !important;
        min-height: 48px !important;
        touch-action: manipulation;
    }

    /* 缩略图按钮 */
    .thumbnail {
        min-width: 60px !important;
        min-height: 60px !important;
        touch-action: manipulation;
    }

    /* Tab按钮 */
    .tab-button {
        min-height: 48px !important;
        touch-action: manipulation;
    }

    /* 移除悬停效果 */
    .product-card:hover,
    .product-card-hero:hover,
    .product-card-compact:hover {
        transform: none !important;
    }

    /* 添加触摸反馈 */
    .product-link:active,
    .product-link-hero:active,
    .product-link-compact:active {
        opacity: 0.7;
    }

    .btn:active,
    button:active {
        opacity: 0.8;
        transform: scale(0.98);
    }

    /* 修复iOS点击延迟 */
    a,
    button,
    input,
    select,
    textarea {
        -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1);
    }

    /* 确保所有可交互元素清晰可见 */
    .btn,
    button,
    a {
        position: relative;
    }

    /* 产品网格间距优化 */
    .featured-grid,
    .product-grid {
        gap: 16px !important;
    }

    /* 确保卡片完整显示 */
    .product-card,
    .product-card-hero,
    .product-card-compact {
        overflow: visible;
    }
}

/* iOS特定优化 */
@supports (-webkit-touch-callout: none) {
    /* iOS Safari特定修复 */
    .product-link,
    .product-link-hero,
    .product-link-compact,
    .btn,
    button {
        -webkit-touch-callout: none;
        -webkit-user-select: none;
        user-select: none;
    }

    /* 修复iOS滚动问题 */
    body {
        -webkit-overflow-scrolling: touch;
    }
}

/* Android特定优化 */
@media (max-width: 768px) and (hover: none) {
    /* 确保Android设备上的点击响应 */
    * {
        -webkit-tap-highlight-color: transparent;
    }

    a:active,
    button:active,
    .btn:active {
        -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1);
    }
}

/* ===================================
   移动端菜单完整样式
   =================================== */

@media (max-width: 768px) {
    /* 显示移动端菜单按钮 */
    .mobile-menu-toggle {
        display: flex !important;
        align-items: center;
        justify-content: center;
        min-width: 48px;
        min-height: 48px;
        padding: 12px;
        background: none;
        border: none;
        cursor: pointer;
        z-index: 1001;
        order: -1; /* 放在最左边 */
        touch-action: manipulation;
    }

    .mobile-menu-toggle svg {
        width: 24px;
        height: 24px;
    }

    /* 隐藏桌面导航 */
    .main-nav {
        display: none !important;
    }

    /* Header布局调整 */
    .main-header .container {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
    }

    .logo {
        flex: 1;
        display: flex;
        justify-content: center;
        order: 0;
    }

    .header-actions {
        order: 1;
        display: flex;
        gap: 8px;
    }

    /* 隐藏桌面搜索框 */
    .search-box {
        display: none !important;
    }
}

/* 移动菜单样式 */
.mobile-menu {
    position: fixed;
    top: 0;
    left: -100%;
    width: 85%;
    max-width: 360px;
    height: 100vh;
    background: #ffffff;
    z-index: 1002;
    overflow-y: auto;
    transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 2px 0 20px rgba(0, 0, 0, 0.1);
}

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

.mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    border-bottom: 1px solid #e5e7eb;
    background: #f9fafb;
}

.mobile-menu-header h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--color-primary);
    margin: 0;
}

.mobile-menu-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: none;
    border: none;
    cursor: pointer;
    border-radius: 8px;
    transition: background 0.2s;
    touch-action: manipulation;
}

.mobile-menu-close:active {
    background: #e5e7eb;
}

.mobile-menu-close svg {
    stroke: var(--color-secondary);
}

.mobile-menu-content {
    padding: 20px;
}

/* 移动端搜索 */
.mobile-search {
    margin-bottom: 24px;
}

.mobile-search form {
    position: relative;
    display: flex;
    gap: 8px;
}

.mobile-search-input {
    flex: 1;
    height: 48px;
    padding: 0 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.2s;
}

.mobile-search-input:focus {
    outline: none;
    border-color: var(--color-primary);
}

.mobile-search-btn {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-primary);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s;
    touch-action: manipulation;
}

.mobile-search-btn svg {
    stroke: #ffffff;
}

.mobile-search-btn:active {
    background: #333;
}

/* 移动导航 */
.mobile-nav {
    margin-bottom: 24px;
}

.mobile-nav-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0 0 12px 0;
}

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

.mobile-nav-list li {
    margin-bottom: 4px;
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    background: #f9fafb;
    border-radius: 8px;
    color: var(--color-primary);
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
    min-height: 48px;
    touch-action: manipulation;
}

.mobile-nav-link:active {
    background: #e5e7eb;
    transform: scale(0.98);
}

.mobile-nav-link svg {
    stroke: var(--color-secondary);
    transition: transform 0.2s;
}

.mobile-nav-link:active svg {
    transform: translateX(4px);
}

/* 移动菜单覆盖层 */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1001;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

/* ===================================
   移动端商品展示 - 现代电商风格
   参考：淘宝、京东、亚马逊移动端
   =================================== */

@media (max-width: 768px) {
    /* ===================================
       移动端容器 - 极简电商风格
       =================================== */
    .container {
        padding: 0 10px;
    }

    .container-fluid,
    .container-full {
        padding: 0;
    }

    /* ===== Hero轮播 - 极简优雅版 ===== */
    .hero-banner-modern {
        margin: 0 0 16px 0;
        border-radius: 0 !important;
    }

    .hero-slide-modern {
        min-height: 320px !important;
        max-height: 400px !important;
        position: relative !important;
    }

    .hero-image-container {
        height: 100% !important;
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
    }

    .hero-image-modern {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
    }

    .hero-overlay-gradient {
        background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.3) 50%, transparent 100%) !important;
    }

    .hero-content-modern {
        position: absolute !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        padding: 24px 16px !important;
        z-index: 2 !important;
    }

    .hero-label-modern {
        font-size: 11px !important;
        margin-bottom: 6px !important;
        opacity: 0.9 !important;
        text-transform: uppercase !important;
        letter-spacing: 0.5px !important;
        color: #fff !important;
    }

    .hero-title-modern {
        font-size: 22px !important;
        line-height: 1.2 !important;
        margin-bottom: 8px !important;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        color: #fff !important;
        font-weight: 700 !important;
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3) !important;
    }

    .hero-subtitle-modern {
        display: none !important; /* 移动端隐藏描述，更简洁 */
    }

    .hero-price-modern {
        margin-bottom: 12px !important;
    }

    .hero-price-original {
        font-size: 14px !important;
        color: rgba(255, 255, 255, 0.7) !important;
        text-decoration: line-through !important;
        margin-right: 8px !important;
    }

    .hero-price-current {
        font-size: 28px !important;
        font-weight: 700 !important;
        color: #fff !important;
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3) !important;
    }

    .hero-actions-modern {
        display: flex !important;
        gap: 8px !important;
    }

    .btn-hero-primary {
        flex: 1 !important;
        padding: 14px 20px !important;
        font-size: 15px !important;
        font-weight: 600 !important;
        background: #fff !important;
        color: #111 !important;
        border-radius: 6px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 6px !important;
        border: none !important;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
    }

    .btn-hero-primary svg {
        width: 18px !important;
        height: 18px !important;
    }

    .btn-hero-secondary {
        display: none !important; /* 移动端隐藏次要按钮 */
    }

    .hero-dots-modern {
        bottom: 16px !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        display: flex !important;
        gap: 6px !important;
    }

    .dot-modern {
        width: 6px !important;
        height: 6px !important;
        border-radius: 50% !important;
        background: rgba(255, 255, 255, 0.5) !important;
        border: none !important;
        padding: 0 !important;
        transition: all 0.3s ease !important;
    }

    .dot-modern.active {
        width: 20px !important;
        border-radius: 3px !important;
        background: #fff !important;
    }

    /* ===== 产品网格 - 统一2列简洁布局 ===== */
    .products-masonry-grid,
    .products-grid-modern,
    .featured-grid,
    .products-grid,
    .product-grid {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    /* 移除首页的大卡片（Hero Product Card） */
    .product-card-hero {
        grid-column: span 1 !important;
        display: none !important;
    }

    /* 所有商品卡片统一样式 */
    .product-card-compact,
    .product-card-modern,
    .product-card {
        grid-column: span 1 !important;
    }

    /* ===================================
       商品卡片 - 统一简洁风格
       =================================== */
    .product-card,
    .product-card-compact,
    .product-card-modern {
        background: #fff !important;
        border-radius: 8px !important;
        overflow: hidden !important;
        box-shadow: none !important;
        border: none !important;
        margin: 0 !important;
        position: relative !important;
    }

    .product-link,
    .product-link-compact,
    .product-link-modern {
        display: flex !important;
        flex-direction: column !important;
        height: 100% !important;
        text-decoration: none !important;
    }

    /* ===== 图片容器 - 1:1 正方形 ===== */
    .product-image-wrapper,
    .compact-image-wrapper,
    .product-image-wrapper-modern {
        aspect-ratio: 1 / 1 !important;
        width: 100% !important;
        height: auto !important;
        overflow: hidden !important;
        background: #f5f5f5 !important;
        position: relative !important;
        margin: 0 !important;
        border-radius: 8px !important;
    }

    .product-image-inner {
        width: 100%;
        height: 100%;
        position: relative;
    }

    .product-image,
    .compact-image-primary,
    .product-image-primary {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        display: block !important;
    }

    /* 隐藏悬停图片 */
    .product-image.secondary,
    .compact-image-hover,
    .product-image-hover {
        display: none !important;
    }

    /* ===== 产品信息区 - 紧凑布局 ===== */
    .product-info,
    .compact-info,
    .product-info-modern {
        padding: 8px 4px 10px 4px !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 4px !important;
        background: #fff !important;
    }

    /* 品牌 - 灰色小字 */
    .product-brand,
    .compact-brand {
        font-size: 11px !important;
        color: #999 !important;
        margin: 0 !important;
        font-weight: 400 !important;
        line-height: 1.2 !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
    }

    /* 标题 - 2行省略 */
    .product-name,
    .compact-name,
    .compact-title,
    .product-name-modern {
        font-size: 13px !important;
        line-height: 1.4 !important;
        color: #333 !important;
        margin: 0 !important;
        font-weight: 400 !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        min-height: 36px !important;
        word-break: break-word !important;
    }

    /* ===== 价格 - 醒目红色 ===== */
    .product-price-section,
    .compact-price,
    .product-price-modern {
        display: flex !important;
        align-items: baseline !important;
        gap: 6px !important;
        margin: 4px 0 0 0 !important;
        flex-wrap: wrap !important;
    }

    .product-price,
    .compact-price-now,
    .price-now {
        font-size: 17px !important;
        font-weight: 700 !important;
        color: #ff4d4f !important;
        line-height: 1 !important;
    }

    .compact-price-current::before,
    .price-now::before {
        content: '¥' !important;
        font-size: 13px !important;
        margin-right: 2px !important;
    }

    .product-price-original,
    .compact-price-was,
    .price-was {
        font-size: 11px !important;
        color: #999 !important;
        text-decoration: line-through !important;
        font-weight: 400 !important;
    }

    /* 折扣徽章 */
    .compact-badge-sale,
    .price-badge,
    .product-badge-modern {
        position: absolute !important;
        top: 8px !important;
        left: 8px !important;
        font-size: 10px !important;
        padding: 3px 6px !important;
        background: #ff4d4f !important;
        color: #fff !important;
        border-radius: 3px !important;
        font-weight: 600 !important;
        line-height: 1 !important;
        z-index: 2 !important;
    }

    .compact-badge-new {
        position: absolute !important;
        top: 8px !important;
        right: 8px !important;
        font-size: 10px !important;
        padding: 3px 6px !important;
        background: #52c41a !important;
        color: #fff !important;
        border-radius: 3px !important;
        font-weight: 600 !important;
        z-index: 2 !important;
    }

    /* 收藏按钮 - 右上角 */
    .product-wishlist-modern,
    .product-wishlist-hero,
    .compact-wishlist,
    .product-wishlist {
        position: absolute !important;
        top: 8px !important;
        right: 8px !important;
        width: 32px !important;
        height: 32px !important;
        min-width: 32px !important;
        min-height: 32px !important;
        background: rgba(255, 255, 255, 0.95) !important;
        border-radius: 50% !important;
        border: none !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15) !important;
        z-index: 10 !important;
        padding: 0 !important;
        cursor: pointer !important;
    }

    .product-wishlist-modern svg,
    .product-wishlist-hero svg,
    .compact-wishlist svg,
    .product-wishlist svg {
        width: 18px !important;
        height: 18px !important;
        stroke-width: 2 !important;
        stroke: #333 !important;
        fill: none !important;
    }

    .product-wishlist-modern.active svg,
    .product-wishlist-hero.active svg,
    .compact-wishlist.active svg,
    .product-wishlist.active svg {
        fill: #ff4d4f !important;
        stroke: #ff4d4f !important;
    }

    /* 隐藏快速查看按钮（移动端不需要） */
    .compact-quick-view,
    .quick-view-btn {
        display: none !important;
    }

    /* ===== Hero产品卡片（首页大图）===== */
    .product-card-hero {
        grid-column: 1 / -1; /* 占满整行 */
        margin-bottom: 12px;
    }

    .hero-image-container {
        aspect-ratio: 16 / 9; /* 更宽的比例 */
        height: auto;
    }

    .hero-overlay {
        padding: 16px !important;
    }

    .hero-title {
        font-size: 16px !important;
        line-height: 1.4 !important;
        -webkit-line-clamp: 2;
        height: auto;
        max-height: 45px;
    }

    .hero-brand {
        font-size: 12px !important;
    }

    .hero-price-current {
        font-size: 20px !important;
    }

    .hero-cta-btn {
        padding: 10px 20px !important;
        font-size: 14px !important;
        min-height: 40px !important;
    }

    /* ===== 产品列表页 - 3列紧凑布局 ===== */
    .products-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
    }

    /* ===== 精简类别标签 ===== */
    .product-category-badge {
        font-size: 10px !important;
        padding: 2px 6px !important;
    }

    /* ===== 移除不必要的元素 ===== */
    .product-sku,
    .product-description,
    .product-features {
        display: none !important;
    }

    /* ===================================
       移动端产品详情页 - 现代电商风格
       =================================== */

    .product-detail-page {
        padding-bottom: 140px !important;
    }

    .product-detail-page .container,
    .product-detail-page .container-max {
        padding: 0 !important;
    }

    /* 产品图片画廊 - 全宽无边距 */
    .product-main-content {
        grid-template-columns: 1fr !important;
        gap: 0 !important;
    }

    .product-gallery {
        position: static !important;
        margin: 0 !important;
        width: 100vw !important;
        margin-left: calc(-50vw + 50%) !important;
    }

    .gallery-main-view {
        border-radius: 0 !important;
        margin: 0 !important;
        aspect-ratio: 1 / 1;
        background: #f8f8f8;
    }

    .gallery-main-view img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    /* 缩略图 - 水平滚动 */
    .gallery-thumbnails {
        display: flex !important;
        flex-direction: row !important;
        overflow-x: auto !important;
        gap: 8px !important;
        padding: 12px 8px !important;
        background: #fff;
        -webkit-overflow-scrolling: touch;
    }

    .gallery-thumbnails::-webkit-scrollbar {
        display: none;
    }

    .thumbnail {
        flex: 0 0 auto;
        width: 60px !important;
        height: 60px !important;
        min-width: 60px !important;
        min-height: 60px !important;
        border-radius: 8px !important;
        border: 2px solid transparent;
        transition: border-color 0.2s;
    }

    .thumbnail.active,
    .thumbnail:active {
        border-color: var(--color-primary) !important;
    }

    /* ===== 产品信息区 - 清晰分块 ===== */
    .product-info {
        padding: 16px !important;
        background: #fff !important;
        margin: 0 !important;
    }

    .product-detail-title,
    .product-name {
        font-size: 18px !important;
        line-height: 1.4 !important;
        font-weight: 600 !important;
        color: #333 !important;
        margin: 0 0 12px 0 !important;
    }

    /* 价格区域 - 醒目红色 */
    .product-price-block {
        padding: 16px !important;
        background: #fff5f5 !important;
        border-radius: 8px !important;
        margin: 0 0 16px 0 !important;
        border: 1px solid #ffe4e6;
    }

    .product-detail-price,
    .price-sale {
        font-size: 32px !important;
        font-weight: 700 !important;
        color: #ff4d4f !important;
        line-height: 1;
    }

    .price-sale::before {
        content: '¥';
        font-size: 24px;
        margin-right: 4px;
    }

    .price-original {
        font-size: 16px !important;
        color: #999 !important;
        text-decoration: line-through;
        margin-left: 12px;
    }

    /* ===== 选项选择器 - 大按钮易点击 ===== */
    .size-selector,
    .color-options {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(60px, 1fr)) !important;
        gap: 10px !important;
        margin: 16px 0 !important;
    }

    .size-option,
    .color-option {
        min-height: 48px !important;
        height: 48px !important;
        font-size: 15px !important;
        font-weight: 500 !important;
        padding: 0 !important;
        display: flex;
        align-items: center;
        justify-content: center;
        border: 2px solid #e5e7eb !important;
        border-radius: 8px !important;
        background: #fff !important;
        color: #333 !important;
        transition: all 0.2s;
        cursor: pointer;
    }

    .size-option.selected,
    .color-option.selected,
    .size-option:active,
    .color-option:active {
        border-color: var(--color-primary) !important;
        background: #f0f0f0 !important;
    }

    .size-option.disabled {
        opacity: 0.3;
        cursor: not-allowed;
    }

    /* ===================================
       底部操作栏 - 优雅对称设计
       左：收藏  右：加入购物车（各占50%）
       =================================== */
    .product-actions {
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        padding: 10px 12px !important;
        background: #fff !important;
        border-top: 1px solid #e5e7eb !important;
        box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.08) !important;
        z-index: 1000 !important;
        display: flex !important;
        gap: 10px !important;
        align-items: center !important;
    }

    /* 隐藏不必要的容器 */
    .product-actions-left {
        display: contents !important;
    }

    /* 收藏按钮 - 左侧50% */
    .product-actions .btn-wishlist,
    .product-actions .btn-outline {
        flex: 1 !important;
        height: 52px !important;
        min-height: 52px !important;
        padding: 0 16px !important;
        margin: 0 !important;
        border-radius: 8px !important;
        border: 2px solid var(--color-primary, #111) !important;
        background: #fff !important;
        color: var(--color-primary, #111) !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 8px !important;
        font-size: 16px !important;
        font-weight: 600 !important;
        transition: all 0.2s !important;
    }

    .product-actions .btn-wishlist span,
    .product-actions .btn-outline span {
        display: inline !important;
    }

    .product-actions .btn-wishlist svg,
    .product-actions .btn-outline svg {
        width: 22px !important;
        height: 22px !important;
        stroke-width: 2 !important;
        margin: 0 !important;
    }

    .product-actions .btn-wishlist:active,
    .product-actions .btn-outline:active {
        background: #f5f5f5 !important;
        transform: scale(0.98) !important;
    }

    .product-actions .btn-wishlist.active {
        background: #fff0f0 !important;
        border-color: #ff4d4f !important;
        color: #ff4d4f !important;
    }

    .product-actions .btn-wishlist.active svg {
        fill: #ff4d4f !important;
    }

    /* 加入购物车按钮 - 右侧50% */
    .product-actions .btn-add-to-cart,
    .product-actions .btn-primary {
        flex: 1 !important;
        height: 52px !important;
        min-height: 52px !important;
        padding: 0 16px !important;
        margin: 0 !important;
        font-size: 16px !important;
        font-weight: 700 !important;
        border-radius: 8px !important;
        background: var(--color-primary, #111) !important;
        color: #fff !important;
        border: none !important;
        box-shadow: none !important;
        transition: all 0.2s !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        letter-spacing: 0.3px !important;
    }

    .product-actions .btn-add-to-cart:active,
    .product-actions .btn-primary:active {
        background: #333 !important;
        transform: scale(0.98) !important;
    }

    /* 隐藏加入购物车按钮的图标 */
    .product-actions .btn-add-to-cart svg,
    .product-actions .btn-primary svg {
        display: none !important;
    }

    .product-actions .btn-add-to-cart span,
    .product-actions .btn-primary span {
        display: inline !important;
        font-weight: 700 !important;
    }

    /* 确保产品信息区不被底部按钮遮挡 */
    .product-details-section {
        margin-bottom: 24px;
    }

    /* ===== Tab标签 ===== */
    .details-tabs {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        margin: 0 -12px;
        padding: 0 12px;
    }

    .tab-button {
        font-size: 14px !important;
        padding: 12px 16px !important;
        white-space: nowrap;
        min-height: 44px !important;
    }

    .tabs-content-area {
        padding: 16px !important;
        font-size: 14px;
        line-height: 1.6;
    }

    /* ===== 相关产品 ===== */
    .related-products-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px !important;
    }

    /* ===== 购物车和收藏页面 ===== */
    .cart-items-list,
    .wishlist-grid {
        gap: 12px !important;
    }

    .cart-item,
    .wishlist-item {
        padding: 12px !important;
        border-radius: 8px;
    }

    .cart-item-image,
    .wishlist-item-image {
        width: 80px !important;
        height: 80px !important;
        border-radius: 6px;
    }

    /* ===== 面包屑导航 ===== */
    .breadcrumb-nav {
        font-size: 12px !important;
        margin-bottom: 12px !important;
        padding: 8px 0;
    }

    /* ===== 页面标题 ===== */
    .cart-page-title,
    .wishlist-page-title,
    .checkout-page-title {
        font-size: 20px !important;
        margin-bottom: 16px !important;
    }

    /* ===== 空状态 ===== */
    .empty-state-icon svg {
        width: 60px !important;
        height: 60px !important;
    }

    .empty-state-title {
        font-size: 16px !important;
    }

    .empty-state-description {
        font-size: 14px !important;
    }
}

/* ===== 小屏手机 (≤480px) - 更紧凑 ===== */
@media (max-width: 480px) {
    .container {
        padding: 0 8px;
    }

    /* 首页 - 2列 */
    .featured-grid,
    .product-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 6px !important;
    }

    /* 列表页 - 移动端保持 2 列 */
    .products-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }

    .product-info,
    .compact-info {
        padding: 6px !important;
    }

    /* 列表页3列布局 - 极致紧凑 */
    .products-grid .product-info {
        padding: 5px !important;
        gap: 2px;
    }

    .product-name,
    .compact-title {
        font-size: 12px !important;
        height: 34px;
    }

    /* 列表页3列布局 - 更小字号 */
    .products-grid .product-name {
        font-size: 11px !important;
        line-height: 1.3 !important;
        height: 29px;
    }

    .product-price,
    .compact-price-current {
        font-size: 15px !important;
    }

    /* 列表页3列布局 - 紧凑价格 */
    .products-grid .product-price {
        font-size: 13px !important;
    }

    .hero-title {
        font-size: 14px !important;
    }
}

/* ===== 横屏模式优化 ===== */
@media (max-width: 768px) and (orientation: landscape) {
    .featured-grid,
    .product-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    .product-card-hero {
        grid-column: span 2;
    }
}

/* 统一移动端商品栅格为 2 列 */
@media (max-width: 768px) {
    .products-grid,
    .featured-grid,
    .product-grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 12px !important;
    }

    .product-card-hero,
    .products-grid .product-card-hero,
    .featured-grid .product-card-hero {
        grid-column: span 2 !important;
    }
}
