        @font-face {
            font-family: 'AlimamaFangYuanTiVF-Thin';
            src: url('./fonts/AlimamaFangYuanTiVF-Thin.woff2') format('woff2'),
                url('./fonts/AlimamaFangYuanTiVF-Thin.woff') format('woff'),
                url('./AlimamaFangYuanTiVF-Thin.ttf') format('truetype');
            font-weight: normal;
            font-style: normal;
            font-display: swap;
        }

        /*基础重置样式*/
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            min-height: 100vh;
            max-width: 430px;
            margin: 0 auto;
            position: relative;
        }

        /*总容器*/
        .container {
            max-width: 430px;
            margin: 0 auto;
            height: 92vh;
            background: #fff;
            box-shadow: 0 0 30px rgba(0, 0, 0, 0.1);
            position: relative;
        }
        /* 页面切换 */
        .page {
            display: none;
        }

        .page.active {
            display: block;
        }

        /*首页*/
        #home {
            height: 100%;
            width: 100%;
        }

        /*轮播区*/
        .carousel-container {
            position: relative;
            height: 25%;
            width: 100%;
            overflow: hidden;
            margin: 0;
        }

        .carousel {
            display: flex;
            height: 100%;
            transition: transform 0.5s ease;
        }

        .carousel-item {
            min-width: 100%;
            height: 100%;
            position: relative;
            background-size: cover;
            background-position: center;
        }

        .carousel-item:nth-child(1) {
            background: linear-gradient(45deg, #ff6b6b, #feca57);
        }

        .carousel-item:nth-child(2) {
            background: linear-gradient(45deg, #48cae4, #023e8a);
        }

        .carousel-item:nth-child(3) {
            background: linear-gradient(45deg, #06d6a0, #118ab2);
        }

        .carousel-content {
            position: absolute;
            top: 50%;
            left: 0px;
            transform: translateY(-50%);
            color: white;
            height: 100%;
            width: 100%;
        }

        .carousel-content img {
            width: 100%;
            height: 100%;
            object-fit: fill; /* ⭐ 不保持比例，强制拉伸填满容器 */
            
        }

        .carousel-title {
            font-size: 24px;
            font-weight: bold;
            margin-bottom: 8px;
        }

        .carousel-subtitle {
            font-size: 14px;
            opacity: 0.9;
        }

        .carousel-dots {
            position: absolute;
            bottom: 15px;
            left: 50%;
            transform: translateX(-50%);
            display: flex;
            gap: 8px;
        }

        .dot {
            width: 8px;
            height: 8px;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.5);
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .dot.active {
            background: white;
            transform: scale(1.2);
        }

        /*公告区*/
        .notice-section {
            height: 10%;
            padding: 1% 2%;
        }

        .home-notice-content {
            width: 100%;
            height: 100%;
            color: #64748b;
            font-size: 1.7vh;
            padding: 1.5%;
            border-radius: 8px;
            background-color: #f1f5f9;
            border-left: 3px solid #4f66cf;
            border-right: 3px solid #4f66cf;
        }

        /* 商品区 */
        .products-section {
            height: 65%;
            padding: 3% 2%;
        }

        .section-title {
            width: 100%;
            height: 2%;
            font-size: 2.5vh;
            line-height: 1;
            font-weight: 600;
            display: flex;
            justify-content: center;
            align-items: center;
            color: #1e293b;
            margin-bottom: 3%;
        }

        .category-tabs {
            width: 100%;
            height: 10%;
            display: flex;
            background: #f1f5f9;
            border-radius: 8px;
            padding: 1%;
            margin-bottom: 2%;
        }

        .category-tab {
            flex: 1;
            display: flex;
            justify-content: center;
            align-items: center;
            font-size: 1.8vh;
            color: #64748b;
            border-radius: 5px;
            transition: all 0.3s ease;
            font-weight: 500;
        }

        .category-tab.active {
            background: white;
            color: #6366f1;
            box-shadow: 0 2px 8px rgba(99, 102, 241, 0.15);
        }

        .products-grid {
            height: 85%;
            display: flex;
            flex-wrap: wrap;
            overflow-y: auto;
            -ms-overflow-style: none;
            scrollbar-width: none;
            
        }


        .product-card-container {
            margin: 1.5%;
            width: 47%;
            aspect-ratio: 1 / 1.3;
        }

        .product-card {
            position: relative;
            width: 100%;
            height: 100%;
            transition: transform 0.8s ease;
            transform-style: preserve-3d;
        }

        .card-face {
            position: absolute;
            width: 100%;
            height: 100%;
            backface-visibility: hidden;
            border-radius: 12px;
            overflow: hidden;
            box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
            background: white;
        }

        .card-face:hover {
            box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
        }

        .card-front {
            background: linear-gradient(135deg, #dfe6fd, #ebedee);
        }

        .card-back {
            transform: rotateY(180deg);
            background: linear-gradient(135deg, #dfe6fd, #ebedee);
        }

        .card-back .product-image {
            background: rgba(255, 255, 255, 0);
            backdrop-filter: blur(10px);
        }

        .card-back .product-info {
            background: rgba(255, 255, 255, 0);
            backdrop-filter: blur(10px);
        }

        .product-image {
            height: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 40px;
            position: relative;
        }

        .product-info {
            height: 50%;
            width: 100%;
        }

        .sale-badge {
            position: absolute;
            top: 3%;
            right: 2%;
            background: linear-gradient(45deg, #ff4757, #ff3838);
            color: white;
            padding: 1.5% 3%;
            border-radius: 12px;
            font-size: 0.8rem;
            font-weight: bold;
        }

        .product-name {
            padding: 2% 0 1.5% 3%;
            height: 25%;
            font-size: 1.4vh;
            font-weight: 600;
            color: #1e293b;
            line-height: 1.1;
        }

        .product-description {
            height: 25%;
            color: #414a4b;
            font-size: 1.1vh;
            line-height: 1.1;
            padding-left: 3%;
        }

        .product-price {
            padding: 0 0 0 3%;
            height: 25%;
            width: 100%;
            font-weight: bold;
            display: flex;
            align-items: flex-end;
            gap: 1%;
        }

        .product-price-left {
            width: 50%;
        }

        .product-current-price {
            color: #e74c3c;
            font-size: 2vh;
            font-weight: bold;
            line-height: 1;
        }

        .product-original-price {
            color: #94a3b8;
            font-size: 1vh;
            text-decoration: line-through;
            line-height: 1;
        }

        .product-price-right { 
            width: 50%;
            height: 100%;
            display: flex;
            padding: 0 3% 1% 0;
            justify-content: flex-end;
        }

        .goumaibtn {
            background: linear-gradient(135deg, #ff4757, #ff3838);
            color: white;
            width: 80%;
            height: 100%;
            display: flex;
            justify-content: center;
            align-items: center;
            border-radius: 10px;
            font-size: 1.1vh;
            font-weight: bold;
        }


        .rating {
            padding-left: 2.5%;
            height: 25%;
            display: flex;
            align-items: center;
            gap: 5px;
        }

        .stars {
            color: #f39c12;
            font-size: 15px;
        }

        .rating-text {
            color: #7f8c8d;
            font-size: 12px;
            margin-top: 1%;
        }

        /*商城页面*/

        #mall {
            height: 100%;
            width: 100%;
        }

        .mall-header {
            height: 5%;
            background: linear-gradient(135deg, #52525e, #8b5cf6);
            color: white;
            padding: 1%;
            display: flex;
            align-items: center;
            justify-content: center;
            line-height: 1;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        }

        .mall-title {
            font-size: 2.5vh;
            font-weight: 500;
        }

        .mall-category-tabs {
            height: 15%;
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            background: #f1f5f9;
            border-radius: 12px;
            padding: 2%;
            margin: 2%;
            gap: 1%;
        }

        .mall-category-tab {
            display: flex;
            justify-content: center;
            align-items: center;
            text-align: center;
            font-size: 2vh;
            color: #64748b;
            border-radius: 8px;
            transition: all 0.3s ease;
            font-weight: 500;
            line-height: 1;
        }

        .mall-category-tab.active {
            background: white;
            color: #6366f1;
            box-shadow: 0 2px 8px rgba(99, 102, 241, 0.15);
        }
        
        .filter-section {
            height: 10%;
            padding: 1% 4%;
            background: #f1f5f9;
            margin: 0 2%;
            border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        }

        .filter-row {
            height: 50%;
            display: flex;
            line-height: 1;
            align-items: center;
            gap: 1%;
            margin-bottom: 1%;
        }

        .filter-label {
            display: flex;
            align-items: center;
            justify-content: center;
            height: 100%;
            width: 10%;
            font-size: 1.8vh;
            color: #374151;
        }

        .filter-options {
            width: 90%;
            height: 100%;
            display: flex;
            gap: 5px;
        }

        .filter-option {
            display: flex;
            align-items: center;
            justify-content: center;
            line-height: 1;
            width: 20%;
            height: 90%;
            background: white;
            border: 1px solid #d1d5db;
            border-radius: 16px;
            font-size: 1.2vh;
            color: #6b7280;
            transition: all 0.3s ease;
        }

        .filter-option.active {
            background: #6366f1;
            color: white;
            border-color: #6366f1;
        }

        .mall-products-section {
            background-color: white;
            height: 68%;
            padding: 1% 2% 2% 2%;
        }

        .mall-products-grid {
            overflow-y: auto;
            -ms-overflow-style: none;
            scrollbar-width: none;
            height: 100%;
            display: flex;
            flex-wrap: wrap;
        }

        .mall-products-grid::-webkit-scrollbar {
            display: none;
        }

        .mall-card-container {
            margin: 1.5%;
            width: 47%;
            aspect-ratio: 1 / 1.3;
        }

        .mall-product-card {
            width: 100%;
            height: 100%;
        }

        .mall-card-front {
            width: 100%;
            height: 100%;
            overflow: hidden;
            box-shadow: 0 0 4px rgba(80, 79, 79, 0.6);
            background: linear-gradient(135deg, #dfe6fd, #ebedee);
        }

        .mall-product-image {
            position: relative;
            width: 100%;
            height: 77%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 40px;
        }

        .mall-sale-badge {
            position: absolute;
            top: 3%;
            right: 3%;
            background: linear-gradient(45deg, #ff4757, #ff3838);
            color: white;
            padding: 1.5% 3%;
            border-radius: 12px;
            font-size: 0.8rem;
            font-weight: bold;
        }

        .mall-product-info {
            padding: 1% 0 0 3%;
            width: 100%;
            height: 23%;
            
        }

        .mall-product-name {
            height: 30%;
            font-size: 1.5vh;
            color: #1e293b;
            line-height: 1.1;
            white-space: nowrap;    /* 禁止换行 */
            overflow: hidden;       /* 超出部分隐藏 */
            text-overflow: ellipsis; /* 超出显示省略号...（可选） */
        }

        .mall-product-bottom {
            height: 70%;
            display: flex;
        }
        .mall-rating {
            display: flex;
            align-items: center;
            gap: 5px;
        }

        .mall-stars {
            color: #f39c12;
            font-size: 0.8rem;
            align-self: flex-end;
        }

        .mall-rating-text {
            color: #7f8c8d;
            font-size: 0.8rem;
            align-self: flex-end;
        }

        .mall-product-price {
            display: flex;
        }

        .mall-product-left {
            width: 50%;  
            display: flex;
            flex-direction: column;
            justify-content: space-between;
        }

        .mall-product-current-price {
            color: #e74c3c;
            font-size: 1rem;
            font-weight: bold;
            line-height: 1;
        }

        .mall-product-original-price {
            color: #94a3b8;
            margin-left: 2.5%;
            font-size: 0.8rem;
            text-decoration: line-through;
        }

        .mall-product-right {
            width: 50%;
            display: flex;
            justify-content: end;
            align-items: end;
        }

        .mall-goumaibtn {
            bottom: 10%;
            background: linear-gradient(135deg, #ff4757, #ff3838);
            color: white;
            width: 80%;
            height: 70%;
            display: flex;
            border-radius: 3px;
            margin: 0 3% 2% 0;
            justify-content: center;
            align-items: center;
            font-size: 1.2vh;
            font-weight: bold;
        }



        


        /* ================================
         * 12. 活动页面
         * ================================ */
        #campaign {
            overflow: hidden;
            height: 100%;
        }

        .campaign-header {
            height: 35%;
            width: 98%;
            margin: 0 auto;
            padding: 1%;
        }

        .notice-board {
            height: 100%;
            background: white;
            border-radius: 15px;
            overflow: hidden;
        }

        .board-header {
            background: linear-gradient(45deg, #4153a7, #5c3681);
            color: white;
            height: 22%;
            padding: 10px;
            display: flex;
            align-items: center;
            justify-content: space-between;
        }

        .status-indicator {
            width: 12px;
            height: 12px;
            background: #13e40c;
            border-radius: 50%;
            margin-right: 10px;
            animation: status-pulse 2s infinite;
        }

        @keyframes status-pulse {

            0%,
            100% {
                opacity: 1;
            }

            50% {
                opacity: 0.5;
            }
        }

        .board-title {
            display: flex;
            align-items: center;
            font-size: 17px;
            font-weight: 600;
        }

        .notice-count {
            font-size: 14px;
            opacity: 0.9;
        }

        .scroll-container {
            height: 78%;
            width: 100%;
            overflow: hidden;
            position: relative;
            background: linear-gradient(to bottom, #f8f9fa, #ffffff);
        }

        .scroll-content {
            width: 100%;
            background-color: #cec7c7;
            will-change: transform;
            backface-visibility: hidden;
            animation: scrollUp 15s linear infinite;
            transition: animation-play-state 0s;
        }

        @keyframes scrollUp {
            0% {
                transform: translateY(0) translateZ(0);
            }

            100% {
                transform: translateY(-50%) translateZ(0);
            }
        }

        .notice-item {
            width: 100%;
            height: 50px;
            margin-top: 1px;
            border-bottom: 1px solid #e9ecef;
            background-color: #ffffff;
            display: flex;
            justify-content: center;
            align-items: center;
            transition: background-color 0.3s;
            position: relative;
            transform: translateZ(0);
        }


        .notice-content {
            width: 100%;
            display: flex;
            align-items: center;
            flex: 1;
        }

        .notice-dot {
            width: 8px;
            height: 8px;
            background: #667eea;
            border-radius: 50%;
            margin: 0 15px 0 10px;
            flex-shrink: 0;
        }

        .notice-text {
            width: 90%;
            color: #333;
            font-size: 15px;
        }

        .fade-top,
        .fade-bottom {
            position: absolute;
            left: 0;
            right: 0;
            height: 15px;
            pointer-events: none;
        }

        .fade-top {
            top: 0;
            background: linear-gradient(to bottom, rgb(222, 226, 226), rgba(248, 249, 250, 0));
        }

        .fade-bottom {
            bottom: 0;
            background: linear-gradient(to top, rgb(222, 226, 226), rgba(172, 24, 24, 0));
        }

        .campaign-promotion {
            width: 100%;
            height: 35%;
            overflow: hidden;
        }

        .promotion-notice {
            margin: 1%;
            border-radius: 14px;
            display: flex;
            align-items: center;
            justify-content: center;
            width: 98%;
            height: 47%;
            background:rgb(226, 223, 223);
        }   

        .campaign-entrance {
            background-image: url('images/background.jpg');
            background-size: 100% 100%;
            background-repeat: no-repeat;
            background-position: center;
            border-radius: 10px;
            margin: 0 1%;
            width: 98%;
            height: 30%;
            position: relative;
        }

        .entrance-btn {
            position: absolute;
            bottom: 0;
            color: rgba(255, 255, 255, 0.9);
            left: 30%;
            width: 40%;
            height: 20%;
            font-size: 3vh;
            text-align: center;
        }






        /* ================================
         * 12. 账号页面
         * ================================ */
        #account {
            position: relative;
            width: 100%;
            height: 100%;
            padding: 0 3% 0 3%;
            min-height: 200px;
            background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none"><defs><linearGradient id="rectGradient" x1="0%" y1="0%" x2="0%" y2="100%"><stop offset="0%" stop-color="%23ff4d4d"/><stop offset="100%" stop-color="%23ff9999"/></linearGradient></defs><rect x="0" y="0" width="100%" height="100%" fill="url(%23rectGradient)"/><circle cx="20%" cy="-5" r="35%" fill="white" fill-opacity="0.3"/><circle cx="70%" cy="-5" r="50%" fill="white" fill-opacity="0.3"/></svg>');
            background-size: 100% 30%;
            background-repeat: no-repeat;
            background-position: top;
        }

        .account-header {
            display: flex;
            height: 17%;
        }

        .avatar {
            width: 12vh;
            height: 12vh;
            border-radius: 50%;
            overflow: hidden;
            background-color: #fff;
            margin: 5% 2% 5% 0;
        }

        .account-details {
            font-family: 'AlimamaFangYuanTiVF-Thin', sans-serif;
            font-size: 2.4vh;
            color: #ffffff;
            margin: 3.5vh 0 3.5vh 0;
        }

        .account-details-bottom {
            margin: 2% 0 0 0;
            height: 3vh;
            font-size: 1.7vh;
        }

        .setting {
            position: absolute;
            top: 2vh;
            right: 2vh;
        }

        .account-commission {
            height: 20%;
            position: relative;
            background-color: #f1f5f9;
            padding: 2vh 1.5vh;
            border-radius: 10px;
        }

        .commission-header {
            font-size: 2.2vh;
        }

        .commission-withdraw {
            position: absolute;
            display: flex;
            justify-content: space-between;
            align-items: center;
            right: 2vw;
            padding: 0 5px 0 5px;
            top: 12%;
            width: 40%;
            height: 25%;

        }

        .commission-btn {
            font-size: 13px;
            border-radius: 20px;
            width: 45%;
            height: 80%;
            display: flex;
            justify-content: center;
            align-items: center;
            background-color: #f73535;
            color: #ffffff;
        }

        .commission-detail {
            display: flex;
            align-items: center;
            width: 100%;
            height: 70%;
            justify-content: space-between;
        }

        .detail-card {
            font-size: 15px;
            width: 30%;
            height: 70%;
            color: #000000;
            background-color: #ffffff;
            border-radius: 5px;
            box-sizing: border-box;
            display: flex;
            justify-content: center;
            align-items: center;
        }

        .account-order {
            height: 20%;
            background-color: #ffffff;
            padding: 2vh 1.5vh;
            margin: 5% 0 0 0;
            border-radius: 10px;
        }
        
        .order-header {
            position: relative;
            display: flex;
            height: 20%;
            width: 100%;
            border-bottom: 2px solid #a5a3a3;
        }

        .my-order {
            display: flex;
            align-items: center;
            position: absolute;
            height: 100%;
            font-size: 2.2vh;
            bottom: 4px;
        }

        .all-order {
            font-size: 1.6vh;
            position: absolute;
            bottom: 3px;
            right: 3%;
        }

        .order-list {
            display: flex;
            height: 85%;
            width: 100%;
            /*background-color: #023e8a;*/
        }

        .order-btn {
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            font-size: 2vh;
            flex: 1;
            margin: 10px 10px 0px 10px;
            padding: 5px;
            gap: 5px;
        }

        .account-feature {
            height: 36%;
            background-color: #ffffff;
            padding: 2vh 1.5vh;
            margin: 5% 0 0 0;
            border-radius: 10px;
        }

        .feature-header { 
            font-size: 2.2vh;
        }

        .feature-list {
            height: 90%;
            width: 100%;
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 5px;
        }

        .feature-btn {
            width: 100%;
            height: 100%;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            font-size: 1.8vh;
            flex: 1;
            padding: 5px;
            margin-top: 5px;
            gap: 5px;
        }


        /* ================================
         * 12. 底部导航样式
         * ================================ */
        .bottom-nav {
            position: fixed;
            bottom: 0;
            left: 50%;
            transform: translateX(-50%);
            width: 100%;
            height: 8vh;
            padding: 1px 0 2px 0;
            max-width: 430px;
            background: white;
            border-top: 1px solid rgba(0, 0, 0, 0.1);
            display: flex;
            z-index: 100;
        }

        .nav {
            width: 100%;
            height: 100%;
        }

        .nav-container {
            height: 100%;
            inset: 0;
            display: flex;
            justify-content: space-around;
            align-items: center;
            padding: 0.5em;
            background: #ffffff;
        }

        .btn {
            padding: 0.5em 1.5em;
            color: #000000;
            border-radius: 10px;
            cursor: pointer;
            transition: 0.1s;
        }

        .btn.active {
            background-color: rgb(106, 122, 122);
            color: #fff;
        }

        /* ================================
         * 13. 其他页面样式
         * ================================ */
        .page-content {
            padding: 40px 20px;
            text-align: center;
            color: #64748b;
        }

        .page-icon {
            font-size: 60px;
            margin-bottom: 20px;
            opacity: 0.6;
        }

        .page-title {
            font-size: 20px;
            font-weight: 600;
            color: #1e293b;
            margin-bottom: 10px;
        }

        .page-desc {
            font-size: 14px;
            line-height: 1.5;
        }

        /* ================================
         * 14. 动画效果
         * ================================ */
        @keyframes pulse {

            0%,
            100% {
                transform: scale(1);
            }

            50% {
                transform: scale(1.05);
            }
        }

        @keyframes fund-slideUp {
            from {
                opacity: 0;
                transform: translateY(30px);
            }

            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        @keyframes fund-slideDown {
            from {
                opacity: 1;
                transform: translateY(0);
            }

            to {
                opacity: 0;
                transform: translateY(30px);
            }
        }