﻿
/* CSS Document */
  * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
            background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
            color: #2c3e50;
            line-height: 1.6;
            overflow-x: hidden;
        }

        /* 状态栏 */
        .status-bar {
            background: linear-gradient(90deg, #1a1a1a 0%, #2d2d2d 100%);
            color: white;
            padding: 8px 15px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            font-size: 12px;
            font-weight: 500;
            box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        }
.category-grid a{text-decoration: none;}
        .status-left {
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .status-right {
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .status-bar i {
            color: #00ff88;
            text-shadow: 0 0 5px rgba(0,255,136,0.3);
        }

        /* 顶部导航栏 */
        .top-nav {
            position: sticky;
            top: 0;
            z-index: 900;
            background: linear-gradient(135deg, var(--theme-color) 0%, var(--theme-color-2) 100%);
            padding: 12px 15px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            box-shadow: 0 4px 15px rgba(48,188,244,0.3);
        }

        .close-btn {
            font-size: 18px;
            font-weight: bold;
            color: white;
            cursor: pointer;
            transition: transform 0.2s ease;
        }

        .close-btn:hover {
            transform: scale(1.1);
        }

        .title-section {
            text-align: center;
        }

        .main-title {
            font-size: 16px;
            font-weight: bold;
            color: white;
            text-shadow: 0 2px 4px rgba(0,0,0,0.3);
        }

        .sub-title {
            font-size: 12px;
            color: rgba(255,255,255,0.8);
        }

        .menu-btn {
            font-size: 18px;
            color: white;
            cursor: pointer;
            transition: transform 0.2s ease;
        }

        .menu-btn:hover {
            transform: scale(1.1);
        }

        /* 主头部 */
        .main-header {
            background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
            padding: 20px 15px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            box-shadow: 0 8px 32px rgba(0,0,0,0.1);
            backdrop-filter: blur(10px);
            border-bottom: 1px solid rgba(255,255,255,0.2);
        }

        .logo {
            width: 45px;
            height: 45px;
            background: linear-gradient(135deg, var(--theme-color) 0%, var(--theme-color-2) 100%);
            border-radius: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-weight: bold;
            font-size: 22px;
            box-shadow: 0 8px 25px rgba(48,188,244,0.4);
            transition: transform 0.3s ease, box-shadow 0.3s ease;
        }

        .logo:hover {
            transform: translateY(-2px);
            box-shadow: 0 12px 35px rgba(48,188,244,0.6);
        }

        .header-title {
            font-size: 20px;
            font-weight: 700;
            background: linear-gradient(135deg, var(--theme-color) 0%, var(--theme-color-2) 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        .header-actions {
            display: flex;
            gap: 12px;
        }

        .action-btn {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
            display: flex;
            align-items: center;
            justify-content: center;
            border: none;
            cursor: pointer;
            box-shadow: 0 4px 15px rgba(0,0,0,0.1);
            transition: all 0.3s ease;
            color: #6c757d;
        }

        .action-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 25px rgba(0,0,0,0.15);
            background: linear-gradient(135deg, var(--theme-color) 0%, var(--theme-color-2) 100%);
            color: white;
        }

        /* 搜索按钮特殊样式 */
        .search-action-btn {
            background: linear-gradient(135deg, var(--theme-color) 0%, var(--theme-color-2) 100%);
            color: white;
        }

        .search-action-btn:hover {
            background: linear-gradient(135deg, #2cb0ea 0%, #2f83d8 100%);
        }

        /* 轮播图 */
        .hero-carousel {
            height: 300px;
            position: relative;
            margin: 0;
            overflow: hidden;
            width: 100%;
            background: #000;
        }

        .carousel-container {
            width: 100%;
            height: 100%;
            position: relative;
        }

        .carousel-slide {
            position: absolute;
            width: 100%;
            height: 100%;
            opacity: 0;
            transition: opacity 0.8s ease;
            z-index: 1;
            pointer-events: none;
        }

        .carousel-slide.active {
            opacity: 1;
            z-index: 2;
            pointer-events: auto;
        }

        .slide-content {
            position: relative;
            width: 100%;
            height: 100%;
        }

        .hero-image {
            width: 100%;
            height: 100%;
            object-fit: cover;
            object-position: center;
            filter: brightness(0.7);
        }

        .slide-overlay {
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: linear-gradient(135deg, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.1) 50%, rgba(0,0,0,0.4) 100%);
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .slide-text {
            text-align: center;
            color: white;
            max-width: 80%;
            animation: slideInUp 0.8s ease-out;
        }

        .slide-text h2 {
            font-size: 2.5rem;
            font-weight: 700;
            margin-bottom: 10px;
            text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
        }

        .slide-text p {
            font-size: 1.1rem;
            margin-bottom: 25px;
            opacity: 0.9;
            text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
        }

        .slide-btn {
            background: linear-gradient(135deg, var(--theme-color) 0%, var(--theme-color-2) 100%);
            color: white;
            border: none;
            padding: 12px 30px;
            border-radius: 25px;
            font-size: 1rem;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            box-shadow: 0 4px 15px rgba(48,188,244,0.4);
            text-decoration: none;
            display: inline-block;
        }

        .slide-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 25px rgba(48,188,244,0.6);
            color: white;
            text-decoration: none;
        }

        /* 轮播图控制按钮 */
        .carousel-btn {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            width: 50px;
            height: 50px;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.2);
            border: 2px solid rgba(255, 255, 255, 0.3);
            color: white;
            font-size: 18px;
            cursor: pointer;
            transition: all 0.3s ease;
            backdrop-filter: blur(10px);
            z-index: 10;
        }

        .carousel-btn:hover {
            background: rgba(255, 255, 255, 0.3);
            border-color: rgba(255, 255, 255, 0.5);
            transform: translateY(-50%) scale(1.1);
        }

        .prev-btn {
            left: 20px;
        }

        .next-btn {
            right: 20px;
        }

        /* 轮播图指示器 */
        .carousel-indicators {
            position: absolute;
            bottom: 30px;
            left: 50%;
            transform: translateX(-50%);
            display: flex;
            gap: 12px;
            z-index: 10;
        }

        .carousel-indicator {
            width: 12px;
            height: 12px;
            border-radius: 50%;
            background-color: rgba(255, 255, 255, 0.4);
            cursor: pointer;
            transition: all 0.3s ease;
            border: 2px solid transparent;
            position: relative;
        }

        .carousel-indicator:hover {
            background-color: rgba(255, 255, 255, 0.7);
            transform: scale(1.2);
        }

        .carousel-indicator.active {
            background-color: white;
            box-shadow: 0 0 15px rgba(255,255,255,0.6);
            transform: scale(1.3);
        }

        /* 轮播图进度条 */
        .carousel-progress {
            position: absolute;
            bottom: 0;
            left: 0;
            width: 100%;
            height: 3px;
            background: rgba(255, 255, 255, 0.2);
            z-index: 10;
        }

        .progress-bar {
            height: 100%;
            background: linear-gradient(90deg, var(--theme-color) 0%, var(--theme-color-2) 100%);
            width: 0%;
            transition: width 0.1s linear;
        }

        /* 轮播图动画 */
        @keyframes slideInUp {
            from {
                opacity: 0;
                transform: translateY(30px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        /* 分类网格 */
        .category-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 20px;
            padding: 25px 15px;
        }

        .category-card {
            background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
            border-radius: 6px;
            padding: 20px 15px;
            text-align: center;
            box-shadow: 0 10px 30px rgba(0,0,0,0.1);
            transition: all 0.3s ease;
            border: 1px solid rgba(255,255,255,0.2);
            backdrop-filter: blur(10px);
        }

        .category-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 20px 40px rgba(0,0,0,0.15);
            background: linear-gradient(135deg, var(--theme-color) 0%, var(--theme-color-2) 100%);
        }

        .category-card:hover .category-image {
            background: rgba(255,255,255,0.2);
        }

        .category-card:hover .category-image i {
            color: white;
        }

        .category-card:hover .category-name {
            color: white;
        }

        .category-image {
            width: 60px;
            height: 60px;
            background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
            border-radius: 12px;
            margin: 0 auto 4px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 28px;
            transition: all 0.3s ease;
            box-shadow: 0 4px 15px rgba(0,0,0,0.1);
        }

        .category-image i {
            color: var(--theme-color);
            transition: all 0.3s ease;
        }

        .category-name {
            font-size: 14px;
            color: #2c3e50;
            font-weight: 600;
            transition: all 0.3s ease;
        }

        /* 推荐部分 */
        .recommendations {
            padding: 0 15px 25px;
            margin-bottom: 50px;
        }

        .section-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 20px;
        }

        .section-title {
            font-size: 20px;
            font-weight: 700;
            background: linear-gradient(135deg, #369cf0 0%, #2787d6 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        .view-all-btn {
            width: 35px;
            height: 35px;
            border-radius: 50%;
            background: linear-gradient(135deg, #369cf0 0%, #2787d6 100%);
            border: none;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            color: white;
            box-shadow: 0 4px 15px rgba(48,188,244,0.3);
            transition: all 0.3s ease;
        }

        .view-all-btn:hover {
            transform: scale(1.1);
            box-shadow: 0 8px 25px rgba(48,188,244,0.5);
        }

        .product-grid {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 10px;
            margin-bottom: 20px;
            align-items: start;
        }

        .product-card {
            background: #fff;
            border-radius: 10px;
            overflow: hidden;
            box-shadow: 0 6px 18px rgba(0,0,0,0.08);
            transition: all 0.3s ease;
            border: 1px solid rgba(0,0,0,0.04);
            display: flex;
            flex-direction: column;
        }

        .product-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 20px 40px rgba(0,0,0,0.15);
        }

        .product-image {
            width: 100%;
            aspect-ratio: 1 / 1;
            height: auto;
            background: linear-gradient(135deg, var(--theme-color) 0%, var(--theme-color-2) 100%);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 45px;
            position: relative;
            overflow: hidden;
        }

        .product-image::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: linear-gradient(45deg, transparent 30%, rgba(255,255,255,0.1) 50%, transparent 70%);
            transform: translateX(-100%);
            transition: transform 0.6s ease;
        }

        .product-card:hover .product-image::before {
            transform: translateX(100%);
        }

        .product-image i {
            color: white;
            text-shadow: 0 2px 10px rgba(0,0,0,0.3);
        }

        .recommendations .product-info {
            padding: 4px 8px 10px;
            text-align: left;
            margin: 0;
        }

        .recommendations .product-name {
            font-size: 14px;
            line-height: 1.4;
            color: #2c3e50;
            font-weight: 600;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }

        .recommendations .product-price {
            font-size: 16px;
            font-weight: 700;
            color: #e74c3c;
            margin-top: 6px;
            margin-bottom: 0;
            display: block;
            text-align: left;
        }

        .save-btn {
            background: linear-gradient(135deg, var(--theme-color) 0%, var(--theme-color-2) 100%);
            color: white;
            border: none;
            padding: 12px 24px;
            border-radius: 25px;
            font-size: 14px;
            font-weight: 600;
            cursor: pointer;
            box-shadow: 0 8px 25px rgba(48,188,244,0.3);
            transition: all 0.3s ease;
            white-space: nowrap;
            width: 100%;
        }

        .save-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 12px 35px rgba(48,188,244,0.5);
        }

        /* 底部导航 */
        .bottom-nav {
            position: fixed;
            bottom: 0;
            left: 0;
            right: 0;
            background: rgba(255, 255, 255, 0.95);
            backdrop-filter: blur(20px);
            display: flex;
            justify-content: space-around;
            padding: 10px 0;
            box-shadow: 0 -10px 30px rgba(0,0,0,0.1);
            border-top: 1px solid rgba(255,255,255,0.2);
            z-index: 1000;
        }

        .nav-item {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 4px;
            cursor: pointer;
            transition: all 0.3s ease;
            padding: 6px 10px;
            border-radius: 12px;
        }

        .nav-item:hover {
            transform: translateY(-2px);
        }

        .nav-icon {
            width: 24px;
            height: 24px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 14px;
            transition: all 0.3s ease;
        }

        .nav-icon i {
            color: #6c757d;
            transition: all 0.3s ease;
        }

        .active .nav-icon {
            background: linear-gradient(135deg, var(--theme-color) 0%, var(--theme-color-2) 100%);
            box-shadow: 0 4px 15px rgba(48,188,244,0.3);
        }

        .active .nav-icon i {
            color: white;
        }

        .nav-text {
            font-size: 11px;
            font-weight: 500;
            transition: all 0.3s ease;
        }

        .active {
            color: var(--theme-color);
        }

        /* 搜索功能样式已移至 skin/styles.css */

        /* 响应式设计 */
        @media (max-width: 480px) {
            .category-grid {
                grid-template-columns: repeat(4, 1fr);
                gap: 8px;
                padding: 14px 8px;
            }

            .category-card {
                min-width: 0;
                padding: 0;
            }

            .category-image {
                width: 100%;
                max-width: 81px;
                aspect-ratio: 81 / 69;
                height: auto;
                font-size: 22px;
                border-radius: 0;
            }

            .category-name {
                font-size: 12px;
            }

            .product-grid {
                grid-template-columns: repeat(2, 1fr);
                gap: 10px;
            }

            .product-image {
                aspect-ratio: 1 / 1;
                height: auto;
                font-size: 35px;
            }

            .product-name {
                font-size: 13px;
            }

            .hero-carousel {
                height: 250px;
                margin: 0;
            }
            
            .slide-text h2 {
                font-size: 1.8rem;
            }
            
            .slide-text p {
                font-size: 1rem;
            }
            
            .slide-btn {
                padding: 10px 25px;
                font-size: 0.9rem;
            }
            
            .carousel-btn {
                width: 40px;
                height: 40px;
                font-size: 16px;
            }
            
            .prev-btn {
                left: 10px;
            }
            
            .next-btn {
                right: 10px;
            }
        }

        /* 添加一些全局动画 */
        @keyframes fadeInUp {
            from {
                opacity: 0;
                transform: translateY(30px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .category-card, .product-card {
            animation: fadeInUp 0.6s ease forwards;
        }

        .category-card:nth-child(1) { animation-delay: 0.1s; }
        .category-card:nth-child(2) { animation-delay: 0.2s; }
        .category-card:nth-child(3) { animation-delay: 0.3s; }
        .category-card:nth-child(4) { animation-delay: 0.4s; }
        .category-card:nth-child(5) { animation-delay: 0.5s; }
        .category-card:nth-child(6) { animation-delay: 0.6s; }
        .category-card:nth-child(7) { animation-delay: 0.7s; }
        .category-card:nth-child(8) { animation-delay: 0.8s; }
        .category-card:nth-child(9) { animation-delay: 0.9s; }
.category-image img{width:100%;height:100%;border-radius: 6px;border-bottom-left-radius: 0px;border-bottom-right-radius: 0px;}
.product-image img{width:100%;height:100%}
.fa-chevron-right:before {
    content: "\f054";
    color: #fff;
}
