    html,
        body {
            height: 100%;
            margin: 0;
            padding: 0;
            background: #f2f3f7;
            font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
        }

        body {
            min-height: 100vh;
            height: 100%;
            box-sizing: border-box;
            display: flex;
            flex-direction: column;
            justify-content: flex-start;
        }

        .header-bar {
            display: flex;
            justify-content: center;
            align-items: center;
            position: relative;
            width: 100vw;
            max-width: 100%;
            height: 52px;
            background: #fff;
            display: flex;
            align-items: center;
            box-sizing: border-box;
            box-shadow: 0 2px 10px 0 rgba(0, 0, 0, 0.04);
            position: sticky;
            top: 0;
            z-index: 10;
            border-radius: 0 0 14px 14px;
            padding: 0 12px;
            margin-bottom: 20px;
        }

        .back-btn {
            position: absolute;
            left: 0px;
            width: 36px;
            height: 36px;
            border: none;
            background: none;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            margin-right: 4px;
            font-size: 22px;
            color: #333;
        }

        .header-title {
            font-size: 18px;
            font-weight: 600;
            color: #222;
            flex: 1;
            text-align: left;
            letter-spacing: 1px;
        }

        .order-container {
            flex: 1;
            min-height: calc(100vh - 52px);
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
        }

        .card {
            width: 100%;
            max-width: 460px;
            height: 100vh;
            background: #fff;
            border-radius: 18px;
            box-shadow: 0 6px 28px rgba(0, 0, 0, 0.08);
            padding: 28px 20px 22px 20px;
            margin: 0 8px;
            box-sizing: border-box;
            animation: fadein 0.6s;
        }

        @keyframes fadein {
            from {
                opacity: 0;
                transform: translateY(40px);
            }

            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .card h2 {
            text-align: center;
            color: #222;
            letter-spacing: 2px;
            font-weight: 600;
            font-size: 22px;
        }

        .product-info {
            display: flex;
            align-items: center;
            margin-bottom: 18px;
            margin-top: 18px;
        }

        .product-img {
            width: 74px;
            height: 74px;
            border-radius: 12px;
            object-fit: cover;
            margin-right: 14px;
            border: 1px solid #f0f0f0;
        }

        .product-detail {
            flex: 1;
        }

        .product-title {
            position: relative;
            display: flex;
            justify-content: space-between;
            font-size: 18px;
            font-weight: 600;
            color: #222;
        }

        .product-desc {
            font-size: 13px;
            color: #888;
            margin: 7px 0;
        }

        .product-price {
            color: #ff7159;
            font-size: 16px;
            font-weight: bold;
            margin-right: 30px;
        }
        .product-delete {
            position: absolute;
            right: 5px;
            top: 5px;
            color: red;
            font-size: 24px;
            font-weight: bold;
            cursor: pointer;
        }


        .form-group {
            margin-bottom: 16px;
        }

        .form-label {
            display: block;
            font-size: 15px;
            color: #444;
            margin-bottom: 6px;
        }

        .form-input,
        .form-select {
            width: 100%;
            font-size: 15px;
            padding: 10px 12px;
            background: #f7f8fa;
            border: 1px solid #e0e0e0;
            border-radius: 8px;
            outline: none;
            transition: border 0.2s;
            box-sizing: border-box;
        }

        .form-input:focus,
        .form-select:focus {
            border: 1.5px solid #ff7159;
            background: #fff;
        }

        .order-summary {
            display: flex;
            justify-content: space-between;
            align-items: center;
            font-size: 16px;
            margin: 18px 0 0 0;
            font-weight: 500;
            color: #333;
        }

        .order-summary .total {
            font-size: 19px;
            color: #ff7159;
            font-weight: bold;
        }

        .submit-btn {
            width: 100%;
            background: linear-gradient(90deg, #ff7159, #ffb357);
            color: #fff;
            font-size: 18px;
            padding: 13px 0;
            border: none;
            border-radius: 10px;
            font-weight: bold;
            margin-top: 22px;
            box-shadow: 0 4px 16px rgba(255, 113, 89, 0.09);
            cursor: pointer;
            transition: background 0.2s;
        }

        .submit-btn:active {
            background: linear-gradient(90deg, #ffb357, #ff7159);
        }

        @media (max-width: 600px) {
            .card {
                padding: 12px 2vw 10px 2vw;
            }

            .product-title {
                font-size: 16px;
            }

            .product-desc,
            .form-label,
            .form-input,
            .form-select,
            .order-summary {
                font-size: 14px;
            }

            .submit-btn {
                font-size: 16px;
                padding: 11px 0;
            }

            .header-bar {
                height: 46px;
            }

            .header-title {
                font-size: 16px;
            }
        }
        .main {
      min-height: 100vh;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
    }
    .add-btn {
      background: linear-gradient(90deg, #3182ce, #6dd5ed);
      color: #fff;
      border: none;
      border-radius: 12px;
      font-size: 18px;
      padding: 5px 10px;
      font-weight: 600;
      width: 100%;
      box-shadow: 0 4px 16px rgba(49,130,206,0.12);
      cursor: pointer;
      transition: background 0.2s;
    }
    .add-btn:active {
      background: linear-gradient(90deg, #6dd5ed, #3182ce);
    }
    /* 弹出层遮罩 */
    .popup-mask {
      position: fixed;
      left: 0; top: 0; width: 100vw; height: 100vh;
      background: rgba(0,0,0,0.32);
      display: none;
      align-items: center;
      justify-content: center;
      z-index: 1000;
      transition: background 0.2s;
    }
    .popup-mask.active {
      display: flex;
    }
    /* 弹出层内容 */
    .popup-content {
      width: 90vw;
      max-width: 400px;
      background: #fff;
      border-radius: 18px;
      box-shadow: 0 8px 32px rgba(49,130,206,0.18);
      padding: 28px 20px 20px 20px;
      position: relative;
      animation: popupIn 0.35s;
    }
    @keyframes popupIn {
      from { opacity: 0; transform: translateY(80px);}
      to   { opacity: 1; transform: translateY(0);}
    }
    .popup-title-bar {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-bottom: 18px;
    }
    .popup-title {
      font-size: 20px;
      font-weight: 600;
      color: #222;
      flex: 1;
      text-align: center;
      letter-spacing: 1px;
    }
    .popup-close {
      position: absolute;
      right: 14px;
      top: 16px;
      font-size: 24px;
      color: #888;
      background: none;
      border: none;
      cursor: pointer;
      z-index: 2;
    }
    .form-group {
      margin-bottom: 18px;
    }
    .form-label {
      display: block;
      color: #444;
      font-size: 15px;
      margin-bottom: 6px;
      font-weight: 500;
    }
    .form-input, .form-select {
      width: 100%;
      padding: 10px 12px;
      font-size: 15px;
      border: 1px solid #e0e0e0;
      border-radius: 8px;
      background: #f7f8fa;
      outline: none;
      transition: border 0.2s;
      box-sizing: border-box;
    }
    .form-input:focus, .form-select:focus {
      border: 1.5px solid #3182ce;
      background: #fff;
    }
    .submit-btn {
      width: 100%;
      background: linear-gradient(90deg, #3182ce, #6dd5ed);
      color: #fff;
      font-size: 18px;
      padding: 13px 0;
      border: none;
      border-radius: 10px;
      font-weight: bold;
      margin-top: 10px;
      box-shadow: 0 4px 14px rgba(49,130,206,0.10);
      cursor: pointer;
      transition: background 0.2s;
    }
    .submit-btn:active {
      background: linear-gradient(90deg, #6dd5ed, #3182ce);
    }
    @media (max-width: 500px) {
      .popup-content { padding: 14px 6px 12px 6px; }
      .popup-title { font-size: 17px; }
      .form-label, .form-input, .form-select, .submit-btn { font-size: 15px; }
    }