 * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
            -webkit-overflow-scrolling: touch;
        }

         html {
    font-size: clamp(14px, 4vw, 18px);
  }

        body {
            background: #f7f8fa;
            padding-bottom: 70px;
            color: #333;
        }

      :root {
            font-size: clamp(14px, 4vw, 18px);
        }
        .text-space{
                overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
        }
        .ovhidde{
            overflow: hidden;
        }
         .pt-header{
      padding-top:3.4rem;
      padding-bottom: 4.2rem;
    }
.nickee{
color: red;
}
 

     
        .carousel {
            width: 100%;
            height: 260px; 
            position: relative;
            overflow: hidden;
            touch-action: pan-y;
            margin: 0;
            padding: 0;
        }
        .carousel-wrap {
            display: flex;
            height: 100%;
            transition: transform 0.3s ease;
            user-select: none;
            width: 100%;
        }
        .carousel-item {
            min-width: 100%;
            height: 100%;
            width: 100%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: clamp(14px, 4vw, 18px);
            color: #666;
            margin: 0;
            padding: 0;
        }
    
        .carousel-item img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
        .carousel-dots {
            position: absolute;
            bottom: 12px;
            left: 50%;
            transform: translateX(-50%);
            display: flex;
            gap: 6px;
        }
        .dot {
            width: 8px;
            height: 8px;
            border-radius: 50%;
            background: rgba(255,255,255,0.4);
            cursor: pointer;
            transition: all 0.2s;
            margin-right: 2px;
        }
        .dot.active {
            background: #fff;
        }

        .combo-box {
            padding: 22px 18px;
        }
        .main-title {
            font-size: clamp(18px, 5vw, 22px);
            font-weight: 600;
            color: #222;
            margin-bottom: 6px;
            text-align: center;
        }
        .sub-title {
            font-size: clamp(13px, 3.5vw, 15px);
            color: #999;
            margin-bottom: 20px;
            padding-bottom: 16px;
            border-bottom: 0.5px solid #f0f0f0;
        }
        .info-title {
            font-size: clamp(15px, 4.2vw, 18px);
            font-weight: 600;
            color: #222;
            margin-bottom: 14px;
            padding-left: 8px;
            border-left: 3px solid #409eff;
        }
        .info-item {
            font-size: clamp(16px, 3.8vw, 18px);
            color: #555;
            padding: 11px 0;
            line-height: 26px;
        }
        .info-item:last-child {
            border-bottom: none;
        }
        .tip {
            color: #ff6b81;
            font-weight: 500;
        }


        .bottom-btn {
            position: fixed;
            bottom: 0;
            left: 0;
            width: 100%;
            height: 60px;
            background: rgba(37, 99, 235, 0.9);
            color: #fff;
            font-size: clamp(15px, 4.5vw, 18px);
            font-weight: 500;
            border: none;
            outline: none;
            z-index: 99;
        }

  
        .modal {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0,0,0,0.6);
            display: none;
            align-items: center;
            justify-content: center;
            z-index: 100;
        }
        .modal-card {
            width: 72%;
            max-width: 360px;
            background: #fff;
            border-radius: 20px;
            padding: 40px 10px 10px 10px;
            text-align: center;
            position: relative;
            box-shadow: 0 5px 30px rgba(0,0,0,0.2);
        }
        .close {
            position: absolute;
            top: 16px;
            right: 18px;
            font-size: 24px;
            color: #999;
            background: none;
            border: none;
        }
        .addtxt{
            font-size:clamp(16px, 4.5vw, 18px); font-weight:600; margin-bottom:20px;
        }
        .spot{
            width: 75%;
        }
        .qrcode {
            width: 220px;
            height: 220px;
            margin: 0 auto 20px;
            background: #f7f8fa;
            border-radius: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: clamp(14px, 4vw, 16px);
            color: #888;
        }
        .modal-text {
            font-size: clamp(13px, 3.5vw, 15px);
            color: #666;
        }
               /* 字体自适应工具类 */
        .text-responsive {
            font-size: clamp(1.125rem, 2.5vw, 1.135rem);
        }
        .text-responsive-sm {
            font-size: clamp(0.95rem, 2vw, 1.1rem);
        }
        .text-responsive-xs {
            font-size: clamp(0.725rem, 1.8vw, 0.975rem);
        }
          .text-responsive-state {
            font-size: clamp(0.802rem, 1.8vw, 0.905rem);
        }
        .pay-state{
        justify-content: flex-end;
}
.generate-state{
     font-size: clamp(0.95rem, 2vw, 1.1rem);
}

 .text-responsive-lg {
            font-size: clamp(1rem, 3vw, 1.25rem);    
        }
        .text-responsive-md {
            font-size: clamp(1.1rem, 2.5vw, 1.18rem); 
        }
        .text-responsive-sm {
            font-size: clamp(1.12rem, 2vw, 1.2rem);   
        }
        .text-responsive-xs {
            font-size: clamp(0.125rem, 1.8vw, 0.175rem); 
        }
        
        .toast {
            position: fixed;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            padding: 0.75rem 1.5rem;
            border-radius: 0.5rem;
            color: white;
            font-size: clamp(0.95rem, 2vw, 1.1rem);
            z-index: 9999;
            opacity: 0;
            transition: opacity 0.3s ease;
        }
        .toast.show {
            opacity: 1;
        }
        .toast.success {
            background-color: rgba(16, 185, 129, 0.9);
        }
        .toast.error {
            background-color: rgba(239, 68, 68, 0.9);
        }


         .pay-container {
      
            padding:4.5rem 0 5rem 0;
        }

   
        .pay-card {
            background: #fff;
            /* border-radius: 0.8rem; */
            overflow: hidden;
            /* box-shadow: 0 2px 10px rgba(0,0,0,0.05); */
        }

        .pay-item {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 0.85rem 1rem;
            border-bottom: 1px solid #f5f5f5;
            font-size: 1.1rem;
        }

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

        .label {
            color: #333;
        }

        .value {
            color: #666;
            display: flex;
            align-items: center;
            gap: 0.3rem;
        }

        .price {
            font-size: 1.2rem;
            font-weight: bold;
            color: rgba(37, 99, 235, 0.9);
        }

  
        .pay-arrow {
            width: 0.6rem;
            height: 0.6rem;
            border-top: 1px solid #999;
            border-right: 1px solid #999;
            transform: rotate(45deg);
            margin-left: 0.4rem;
        }

      
        .paybottom-btn {
            position: fixed;
            bottom: 0;
            left: 0;
            width: 100%;
            height: 3.5rem;
            background: rgba(37, 99, 235, 0.9);
            color: #fff;
            font-size: 1.1rem;
            /* font-weight: 600; */
            border: none;
            z-index: 999;
            cursor: pointer;
        }

    
        .paymask {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0,0,0,0.5);
            z-index: 1000;
            display: none;
        }

      
        .coupon-popup {
            position: fixed;
            bottom: 0;
            left: 0;
            width: 100%;
            background: #fff;
            border-radius: 20px 20px 0 0;
            padding: 20px 15px;
            z-index: 1001;
            transform: translateY(100%);
            transition: transform 0.3s ease;
            max-height: 75vh;
            overflow-y: auto;
            box-shadow: 0 -5px 20px rgba(0,0,0,0.08);
        }

        .coupon-popup.show {
            transform: translateY(0);
        }

        .popup-title {
            text-align: center;
            font-size: 1.2rem;
            /* font-weight: 600; */
            color: #222;
            margin-bottom: 18px;
            padding-bottom: 12px;
            border-bottom: 1px solid #f2f2f2;
        }


        .coupon-item {
            background: linear-gradient(135deg, #fff 90%, #fdf5f5 100%);
            padding: 16px 14px;
            border-radius: 12px;
            margin-bottom: 10px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            border: 1px solid #f0f0f0;
            position: relative;
            transition: all 0.2s ease;
        }

    
        .coupon-item.active {
            border-color: rgba(37, 99, 235, 0.9);
            background: #1758e712;
            box-shadow: 0 3px 10px rgba(37, 99, 235, 0.1);
        }

        .coupon-left {
            display: flex;
            flex-direction: column;
            gap: 4px;
        }

        .coupon-name {
            font-size: 1.1rem;
            color: #333;
            font-weight: 500;
        }

        .coupon-desc {
            font-size: 0.95rem;
            color: #999;
        }


        .coupon-price {
            font-size: 1.1rem;
            color: rgba(37, 99, 235, 0.9);
            font-weight: bold;
            margin-left: auto;
            margin-right: 20px;
        }

        .radio {
            width: 22px;
            height: 22px;
            border: 1px solid #ddd;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.2s;
        }

        .radio.active {
            border-color: rgba(37, 99, 235, 0.9);
            background: rgba(37, 99, 235, 0.9);
        }


        .radio.active::after {
            content: "✓";
            color: #fff;
            font-size: 14px;
            font-weight: bold;
        }

 
        .empty-coupon {
            display: none; 
            flex-direction: column;
            align-items: center;
            justify-content: center;
            padding: 60px 20px;
            color: #999;
        }
        .empty-coupon.show {
            display: flex;
        }
        .empty-icon {
            width: 80px;
            height: 80px;
            margin-bottom: 12px;
            opacity: 0.4;
        }
        .empty-text {
            font-size: 14px;
            color: #bbb;
        }

   
        .wx-pay-popup {
            position: fixed;
            bottom: 0;
            left: 0;
            width: 100%;
            background: #fff;
            border-radius: 1rem 1rem 0 0;
            z-index: 1002;
            transform: translateY(100%);
            transition: transform 0.3s ease;
            padding-bottom: 2rem;
        }
        .wx-pay-popup.show {
            transform: translateY(0);
        }
        .wx-header {
            padding: 1rem;
            text-align: center;
            font-size: 1.1rem;
            font-weight: 500;
            border-bottom: 1px solid #eee;
            position: relative;
        }
        .wx-close {
            position: absolute;
            left: 1rem;
            top: 50%;
            transform: translateY(-50%);
            font-size: 1rem;
            color: #666;
            background: none;
            border: none;
        }
        .wx-price {
            text-align: center;
            padding: 2rem 1rem;
            font-size: 2.2rem;
            font-weight: bold;
            color: #07c160;
        }
        .wx-pay-way {
            padding: 1rem;
            border-top: 1px solid #eee;
            display: flex;
            align-items: center;
            gap: 0.8rem;
        }
        .wx-pay-way img {
            width: 2rem;
            height: 2rem;
        }
        .wx-pay-btn {
            margin: 1.5rem 1rem 0;
            width: calc(100% - 2rem);
            height: 3rem;
            background: #07c160;
            color: #fff;
            border: none;
            border-radius: 0.5rem;
            font-size: 1rem;
            font-weight: 500;
        }


           .my-header {
          width: 100%;
      background: rgba(37,99, 235,.8);
          display: flex;
          align-items: center;
          padding: 3.6rem 1.5rem;
          z-index: 999;
          color: #fff;
      
          margin-bottom: 1.2rem;
        }
     
        .avatar {
            width: 6.5rem;
            height: 6.5rem;
            border-radius: 100%;
            background: #fff;
            margin-right: 1rem;
            overflow: hidden;
            border: 3px solid rgba(255,255,255,0.5);
        }
        .avatar img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

   
        .nickname {
            font-size: 1.3rem;
            text-shadow: 0 1px 2px rgba(0,0,0,0.1);
        }


      

       
        .menu-card {
            background: #ffffff;
            overflow: hidden;
        }

  
        .menu-item {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 0.9rem 1.2rem;
            border-bottom: 1px solid #f1f5f9;
            color: #333;
            font-size: 1.1rem;
            transition: all 0.25s ease;
        }
        .menu-item:last-child {
            border-bottom: none;
        }
        .menu-item:active {
            background: #f8fafc;
        }

  
        .menu-left {
            display: flex;
            align-items: center;
            gap: 1rem;
        }

    
        .menu-icon {
            font-size: 1.25rem;
            color: #2563eb;
            width: 1.4rem;
            text-align: center;
        }

 
        .menu-arrow {
            width: 0.9rem;
            height: 0.9rem;
            border-top: 1px solid #c0c4cc;
            border-right: 1px solid #c0c4cc;
            transform: rotate(45deg);
        }