@charset "utf-8";
/* CSS Document */
         *, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

        :root {
            --brand-primary:   #f0b100;
            --brand-gold-dark: #c79000;
            --brand-gold-bg:   #fef8e7;
            --text-primary:    #191919;
            --text-secondary:  #666666;
            --text-light:      #999999;
            --border-color:    #eeeeee;
            --bg-page:         #f5f5f5;
            transition: all 0.3s ease;
        }

        body {
            font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
            color: var(--text-primary);
            background-color: var(--bg-page);
            line-height: 1.6;
            -webkit-font-smoothing: antialiased;
        }

        a { text-decoration: none; color: inherit; }
        img { max-width: 100%; height: auto; display: block; }
        button { cursor: pointer; border: none; font-family: inherit; background: none; }

        /* ================================================
           华为商城风格 —— 甄选推荐（卡片区全屏宽）
           ================================================ */
        .vmall-section {
            padding: 48px 0 72px;
            overflow: hidden;
        }

        .vmall-container {
            width: 100%;
            max-width: 2500px;
            margin: 0 auto;
            padding: 0;
        }

        /* ====== 标题区 —— 左对齐，仿华为商城 ====== */
        .vmall-header {
            display: flex;
            align-items: flex-start;
            justify-content: space-between;
            margin-bottom: 28px;
        }

        .vmall-header-left {
            display: flex;
            flex-direction: column;
            gap: 8px;
        }

        .vmall-title {
            font-size: 28px;
            font-weight: 700;
            color: var(--text-primary);
            letter-spacing: -0.3px;
        }

        .vmall-title::before {
            content: '';
            display: inline-block;
            width: 4px;
            height: 22px;
            background: var(--brand-primary);
            border-radius: 2px;
            margin-right: 12px;
            vertical-align: middle;
            position: relative;
            top: -1px;
        }

        .vmall-subtitle {
            font-size: 14px;
            color: #888888;
            margin-left: 16px;
            line-height: 1.5;
        }

        .vmall-more {
            font-size: 14px;
            color: var(--text-light);
            cursor: pointer;
            transition: color 0.25s;
            display: flex;
            align-items: center;
            gap: 4px;
        }
        .vmall-more:hover { color: var(--brand-primary); }
        .vmall-more svg {
            width: 14px; height: 14px;
            fill: none; stroke: currentColor;
            stroke-width: 2;
            stroke-linecap: round; stroke-linejoin: round;
        }

        /* ====== 横向滚动容器 —— 突破容器，延伸到屏幕边缘 ====== */
        .vmall-carousel-wrapper {
            position: relative;
            width: 100vw;
            margin-left: calc(-50vw + 50%);
        }

        .vmall-scroll-viewport {
            overflow: hidden;
            width: 100%;
            /* 左侧与标题对齐 */
            padding-left: calc((100vw - min(2500px, 100%)) / 2);
            padding-right: 0;
        }

        .vmall-grid {
            display: flex;
            gap: 20px;
            transition: transform 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
            will-change: transform;
            padding: 4px 60px 4px 0; /* 右侧给导航按钮留空间 */
        }

        /* ====== 卡片 —— 华为商城风格（大图 + 名称 + 描述 + 价格） ====== */
        .vmall-card {
            flex-shrink: 0;
            width: calc(18% - 15px);
            background: #fff;
            border-radius: 12px;
            overflow: hidden;
            transition: all 0.35s ease;
            border: 1px solid var(--border-color);
            cursor: pointer;
            position: relative;
        }

        .vmall-card:hover {
            transform: translateY(-6px);
            box-shadow: 0 12px 36px rgba(0, 0, 0, 0.10);
            border-color: transparent;
        }

        /* 图片区域 */
        .vmall-image-link {
            display: block;
            text-decoration: none;
        }

        .vmall-image-wrapper {
            position: relative;
            width: 100%;
            padding-top: 92%;
            background: linear-gradient(170deg, #fafafa 0%, #f0f0f3 100%);
            overflow: hidden;
        }

        .vmall-image-wrapper img {
            position: absolute;
            top: 0; left: 0;
            width: 100%; height: 100%;
            object-fit: contain;
            object-position: center center;
            padding: 14%;
            transition: transform 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
        }
        .vmall-card:hover .vmall-image-wrapper img {
            transform: scale(1.05);
        }

        /* 角标 */
        .vmall-badge {
            position: absolute;
            top: 10px; left: 10px;
            background: var(--brand-primary);
            color: #fff;
            font-size: 11px;
            font-weight: 600;
            padding: 5px 14px;
            border-radius: 20px;
            z-index: 2;
            letter-spacing: 0.5px;
        }

        /* 信息区 */
        .vmall-info {
            padding: 18px 20px 20px;
        }

        .vmall-name {
            font-size: 16px;
            font-weight: 650;
            color: var(--text-primary);
            line-height: 1.35;
            margin-bottom: 6px;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            transition: color 0.25s;
        }
        .vmall-card:hover .vmall-name { color: var(--brand-gold-dark); }

        .vmall-desc {
            font-size: 13px;
            color: var(--text-secondary);
            line-height: 1.5;
            margin-bottom: 12px;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }

        /* 标签行 */
        .vmall-tags {
            display: flex;
            flex-wrap: wrap;
            gap: 6px;
            margin-bottom: 14px;
        }

        .vmall-tag {
            font-size: 11px;
            color: var(--brand-gold-dark);
            background: var(--brand-gold-bg);
            padding: 3px 9px;
            border-radius: 4px;
            font-weight: 500;
        }
        .vmall-tag.normal {
            color: var(--text-secondary);
            background: #f5f5f5;
        }

        /* 价格 + 操作 */
        .vmall-footer {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding-top: 12px;
            border-top: 1px solid #f5f5f5;
        }

        .vmall-price-label {
            font-size: 13px;
            color: var(--text-light);
        }

        .vmall-action-link {
            font-size: 13px;
            color: var(--text-secondary);
            font-weight: 500;
            transition: color 0.25s;
            display: inline-flex;
            align-items: center;
            gap: 4px;
        }
        .vmall-action-link:hover { color: var(--brand-primary); }
        .vmall-action-link svg {
            width: 14px; height: 14px;
            fill: none; stroke: currentColor;
            stroke-width: 1.8;
            stroke-linecap: round; stroke-linejoin: round;
        }

        /* ====== 导航按钮 —— 右侧贴屏幕边缘 ====== */
        .vmall-nav-btn {
            position: absolute;
            top: 38%;
            transform: translateY(-50%);
            z-index: 10;
            width: 55px;
            height: 55px;
            border-radius: 50%;
            background: #fff;
            border: 1px solid #e0e0e0;
            color: #999;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all 0.3s ease;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
        }
        .vmall-nav-btn:hover {
            border-color: var(--brand-primary);
            color: var(--brand-primary);
            box-shadow: 0 4px 16px rgba(240, 177, 0, 0.15);
        }
        .vmall-nav-btn.prev { left: calc((100vw - min(2500px, 100%)) / 2 + 6px); opacity: 0; pointer-events: none; transition: opacity 0.3s, color 0.3s, border-color 0.3s, box-shadow 0.3s; }
        .vmall-nav-btn.next { right: 120px; }
        .vmall-nav-btn.prev.visible { opacity: 1; pointer-events: auto; }
        .vmall-nav-btn svg {
            width: 16px; height: 16px;
            fill: none; stroke: currentColor;
            stroke-width: 1.8;
            stroke-linecap: round;
            stroke-linejoin: round;
        }

        /* ========== 响应式 ========== */
        @media (max-width: 2500px) {
            .vmall-container { padding: 20px; }
            .vmall-card { width: calc(25% - 15px); }
            .vmall-scroll-viewport { padding-left: calc((100vw - min(2500px, 100%)) / 2); }
            .vmall-nav-btn.prev { left: calc((100vw - min(2500px, 100%)) / 2 + 6px); }
        }

        @media (max-width: 1200px) {
            .vmall-card { width: calc(33.333% - 14px); }
            .vmall-grid { gap: 18px; }
        }

        @media (max-width: 1024px) {
            .vmall-section { padding: 36px 0 56px; }
            .vmall-title { font-size: 24px; }
            .vmall-subtitle { font-size: 13px; }
            .vmall-container { padding: 0; }
            .vmall-card { width: calc(33.333% - 12px); }
            .vmall-scroll-viewport { padding-left: calc((100vw - min(2500px, 100%)) / 2); }
            .vmall-nav-btn.prev { left: calc((100vw - min(2500px, 100%)) / 2 + 6px); }
        }

        @media (max-width: 768px) {
            .vmall-section { padding: 28px 0 44px; }
            .vmall-header { margin-bottom: 20px; }
            .vmall-title { font-size: 21px; }
            .vmall-subtitle { font-size: 12px; margin-left: 16px; }
            .vmall-container { padding: 0; }
            .vmall-card { width: calc(50% - 8px); border-radius: 10px; }
            .vmall-grid { gap: 14px; }
            .vmall-info { padding: 14px 14px 16px; }
            .vmall-name { font-size: 15px; }
            .vmall-desc { font-size: 12px; -webkit-line-clamp: 1; }
            .vmall-image-wrapper { padding-top: 86%; }
            .vmall-nav-btn { width: 36px; height: 36px; top: 34%; }
            .vmall-scroll-viewport { padding-left: calc((100vw - min(2500px, 100%)) / 2); }
            .vmall-nav-btn.prev { left: calc((100vw - min(2500px, 100%)) / 2 + 4px); }
            .vmall-desc { font-size: 12px; -webkit-line-clamp: 1; }
            .vmall-image-wrapper { padding-top: 86%; }
            .vmall-nav-btn { width: 36px; height: 36px; top: 34%; }
            .vmall-scroll-viewport { padding-left: calc((100vw - min(1400px, 100%)) / 2 + 16px); }
            .vmall-nav-btn.prev { left: calc((100vw - min(1400px, 100%)) / 2 + 24px); }
        }

        @media (max-width: 480px) {
            .vmall-container { padding: 0 12px; }
            .vmall-card { width: 80%; max-width: 360px; flex-shrink: 0; }
            .vmall-nav-btn { display: none; }
            .vmall-carousel-wrapper { width: 100%; margin-left: 0; }
            .vmall-scroll-viewport {
                overflow-x: auto;
                scroll-snap-type: x mandatory;
                -webkit-overflow-scrolling: touch;
                padding-left: 12px;
                padding-right: 12px;
            }
            .vmall-card { scroll-snap-align: center; }
            .vmall-grid { gap: 12px; justify-content: flex-start; padding: 4px 2px; }
            .vmall-title { font-size: 19px; }
            .vmall-section { padding: 24px 0 36px; }
        }
