        body {
            font-family: 'PingFang SC', 'Helvetica Neue', Arial, sans-serif;
            font-size: 14px;
            line-height: 1.5;
            color: #333333;
            background-color: #FFFFFF;
        }
        
        .header-icon {
            width: 24px;
            height: 24px;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        
        .main-image {
            width: 100%;
            height: auto;
        }
        
        .thumbnail-item {
            width: 100%;
            height: auto;
            border: 2px solid transparent;
            transition: border-color 0.3s;
        }
        
        .thumbnail-item.active {
            border-color: #FF4400;
        }
        
        .service-icon {
            width: 20px;
            height: 20px;
            margin-right: 5px;
        }
        
        .tab-button {
            position: relative;
            padding-bottom: 5px;
        }
        
        .tab-button.active::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            width: 100%;
            height: 2px;
            background-color: #FF4400;
        }
        
        .buy-record-item {
            padding: 10px 0;
            border-bottom: 1px solid #EEEEEE;
        }
        
        .footer-button {
            height: 50px;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        
        .original-price {
            background-image: url('<?php echo $res['img'];?>');
            background-size: 115% 100%;
            background-repeat: no-repeat;
            padding: 4px 16px;
            color: white;
            font-weight: bold;
            font-size: 20px;
            line-height: 1.5;
            display: inline-block;
            min-width: 120px;
            text-align: center;
        }
        
        .original-price span {
            font-size: 16px;
            font-weight: normal;
            margin-right: 4px;
        }
        
        .sales-count {
            color: #FF4400;
            font-size: 14px;
            margin-left: 10px;
            padding: 2px 8px;
            border: 1px solid #FF4400;
            border-radius: 12px;
        }
        
        .w-4\/12 {
            width: auto !important;
        }
        
        .px-4 {
            padding-right: 0 !important;
        }
        
        /* 弹窗样式 */
        .popup-overlay {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0, 0, 0, 0.5);
            z-index: 999;
            display: none;
            opacity: 0;
            transition: opacity 0.3s ease;
        }
        
        .popup-overlay.active {
            display: block;
            opacity: 1;
        }
        
        .buy-popup {
            position: fixed;
            bottom: 0;
            left: 0;
            right: 0;
            background: white;
            border-radius: 20px 20px 0 0;
            z-index: 1000;
            transform: translateY(100%);
            transition: transform 0.3s ease;
            max-height: 80vh;
            overflow-y: auto;
        }
        
        .buy-popup.active {
            transform: translateY(0);
        }
        
        .popup-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 15px;
            border-bottom: 1px solid #eee;
        }
        
        .popup-product-info {
            display: flex;
            align-items: center;
            flex: 1;
        }
        
        .popup-product-img {
            width: 60px;
            height: 60px;
            border-radius: 8px;
            margin-right: 10px;
        }
        
        .popup-product-detail {
            flex: 1;
        }
        
        .popup-product-title {
            font-size: 14px;
            color: #333;
            margin-bottom: 5px;
        }
        
        .popup-product-price {
            font-size: 16px;
            color: #ff4757;
            font-weight: bold;
        }
        
        .close-btn {
            font-size: 24px;
            color: #999;
            cursor: pointer;
            padding: 5px;
        }
        
        .popup-content {
            padding: 15px;
        }
        
        .section-title {
            font-size: 14px;
            color: #333;
            margin-bottom: 10px;
            font-weight: bold;
        }
        
        .address-section, .spec-section, .quantity-section {
            margin-bottom: 20px;
        }
        
        .address-info {
            border: 1px solid #eee;
            border-radius: 8px;
            padding: 10px;
        }
        
        .address-info-content {
            display: flex;
            align-items: center;
            justify-content: space-between;
        }
        
        .location-icon {
            width: 30px;
            height: 30px;
            background: #ff4757;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-right: 10px;
        }
        
        .address-text {
            flex: 1;
        }
        
        .no-address {
            color: #999;
            font-size: 14px;
        }
        
        .has-address {
            color: #333;
        }
        
        .address-user {
            font-size: 14px;
            margin-bottom: 5px;
        }
        
        .address-name {
            font-weight: bold;
        }
        
        .address-phone {
            color: #666;
        }
        
        .address-detail {
            font-size: 12px;
            color: #666;
        }
        
        .address-edit {
            color: #ff4757;
            font-size: 14px;
        }
        
        .popup-spec-items {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
        }
        
        .popup-spec-item {
            border: 1px solid #eee;
            border-radius: 4px;
            padding: 8px 12px;
            font-size: 14px;
            cursor: pointer;
        }
        
        .popup-spec-item[data-selected="true"] {
            border-color: #ff4757;
            color: #ff4757;
            background: rgba(255, 71, 87, 0.1);
        }
        
        .number-input {
            display: flex;
            align-items: center;
            border: 1px solid #eee;
            border-radius: 4px;
            width: fit-content;
        }
        
        .number-input .minus, .number-input .plus {
            width: 30px;
            height: 30px;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            background: #f5f5f5;
        }
        
        .number-input input {
            width: 50px;
            height: 30px;
            border: none;
            text-align: center;
            outline: none;
        }
        
        .popup-footer {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 15px;
            border-top: 1px solid #eee;
            background: white;
        }
        
        .popup-total-price {
            font-size: 16px;
            color: #333;
            font-weight: bold;
        }
        
        .popup-confirm-btn {
            background: #ff4757;
            color: white;
            border: none;
            border-radius: 20px;
            padding: 10px 30px;
            font-size: 16px;
            cursor: pointer;
        }
        
        /* 地址弹窗样式 */
        .address-popup {
            position: fixed; 
            bottom: 50px;    
            left: 0;
            right: 0;
            background: white;
            border-radius: 20px 20px 0 0;
            z-index: 1001;
            transform: translateY(100%);
            transition: transform 0.3s ease;
            max-height: 70vh;
            display: none;
        }
        
        .address-popup.active {
            transform: translateY(0);
            display: block;
        }
        
        .address-popup-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 15px;
            border-bottom: 1px solid #eee;
        }
        
        .address-popup-title {
            font-size: 16px;
            font-weight: bold;
        }
        
        .address-popup-close {
            font-size: 24px;
            color: #999;
            cursor: pointer;
        }
        
        .address-popup-content {
            padding: 15px;
        }
        
        .form-item {
            margin-bottom: 15px;
        }
        
        .form-item label {
            display: block;
            font-size: 14px;
            color: #333;
            margin-bottom: 5px;
        }
        
        .form-item input, .form-item textarea {
            width: 100%;
            padding: 10px;
            border: 1px solid #eee;
            border-radius: 4px;
            font-size: 14px;
            box-sizing: border-box;
        }
        
        .save-address-btn {
            background: #ff4757;
            color: white;
            text-align: center;
            padding: 12px;
            border-radius: 4px;
            font-size: 16px;
            cursor: pointer;
            margin-top: 20px;
        }
        
        /* 新的购买弹窗样式 */
        .payment-buy-popup {
            position: fixed;
            bottom: 0;
            left: 0;
            right: 0;
            background: white;
            z-index: 1000;
            transform: translateY(100%);
            transition: transform 0.3s ease;
            max-height: 90vh;
            overflow-y: auto;
            border-radius: 16px 16px 0 0;
        }
        
        .payment-buy-popup.active {
            transform: translateY(0);
        }
        
        .payment-header {
            padding: 15px;
            background: linear-gradient(135deg, #f8f8f8, #ffffff);
            border-bottom: 1px solid #f0f0f0;
        }
        
        .payment-close-btn {
            position: absolute;
            top: 15px;
            right: 15px;
            font-size: 24px;
            color: #999;
            cursor: pointer;
            z-index: 1001;
        }
        
        .address-reminder-bar {
            background: #f8f8f8;
            padding: 12px 15px;
            display: flex;
            align-items: center;
            border-bottom: 1px solid #eaeaea;
        }
        
        .address-reminder-icon {
            width: 20px;
            height: 20px;
            background: #ff4757;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-right: 10px;
        }
        
        .address-reminder-icon i {
            color: white;
            font-size: 12px;
        }
        
        .address-reminder-text {
            flex: 1;
            color: #333;
            font-size: 14px;
        }
        
        .address-add-btn {
            color: #ff4757;
            font-size: 14px;
            display: flex;
            align-items: center;
        }
        
        .address-add-btn i {
            margin-left: 5px;
        }
        
        .delivery-info {
            padding: 8px 15px;
            background: white;
            font-size: 12px;
            color: #666;
            border-bottom: 10px solid #f5f5f5;
        }
        
        .delivery-promise {
            margin-left: 10px;
            color: #999;
        }
        
        .product-info-section {
            padding: 15px;
            background: white;
            border-bottom: 1px solid #f0f0f0;
        }
        
        .product-info-row {
            display: flex;
            align-items: center;
            margin-bottom: 10px;
        }
        
        .product-info-label {
            width: 80px;
            color: #666;
            font-size: 14px;
        }
        
        .product-info-value {
            flex: 1;
            color: #333;
            font-size: 14px;
        }
        
        .product-price {
            color: #ff4757;
            font-size: 18px;
            font-weight: bold;
        }
        
        .product-price .price-symbol {
            font-size: 14px;
        }
        
        .product-avatar {
            width: 60px;
            height: 60px;
            border-radius: 6px;
            overflow: hidden;
            margin-right: 10px;
        }
        
        .product-avatar img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
        
        .product-detail-info {
            flex: 1;
        }
        
        .product-name {
            font-size: 14px;
            color: #333;
            margin-bottom: 5px;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }
        
        .quantity-control {
            display: flex;
            align-items: center;
        }
        
        .quantity-btn {
            width: 28px;
            height: 28px;
            border: 1px solid #ddd;
            background: white;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            font-size: 16px;
            color: #666;
        }
        
        .quantity-btn:disabled {
            opacity: 0.5;
            cursor: not-allowed;
        }
        
        .quantity-input {
            width: 40px;
            height: 28px;
            border: 1px solid #ddd;
            border-left: none;
            border-right: none;
            text-align: center;
            font-size: 14px;
            outline: none;
        }
        
        .quantity-limit {
            margin-left: 10px;
            font-size: 12px;
            color: #ff4757;
        }
        
        .spec-section {
            padding: 15px;
            background: white;
            border-bottom: 10px solid #f5f5f5;
        }
        
        .spec-group {
            margin-bottom: 10px;
        }
        
        .spec-title {
            font-size: 14px;
            color: #666;
            margin-bottom: 10px;
        }
        
        .spec-items {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
        }
        
        .spec-item {
            border: 1px solid #ddd;
            border-radius: 4px;
            padding: 8px 12px;
            font-size: 14px;
            color: #333;
            cursor: pointer;
            transition: all 0.3s;
        }
        
        .spec-item.selected {
            border-color: #ff4757;
            color: #ff4757;
            background-color: #fff5f5;
        }
        
        .remark-section {
            padding: 15px;
            background: white;
            border-bottom: 1px solid #f0f0f0;
        }
        
        .remark-row {
            display: flex;
            align-items: center;
        }
        
        .remark-label {
            width: 80px;
            color: #666;
            font-size: 14px;
            font-weight: bold;
        }
        
        .remark-value {
            flex: 1;
            color: #999;
            font-size: 14px;
            display: flex;
            justify-content: flex-end;
            align-items: center;
        }
        
        .remark-value i {
            color: #ccc;
        }
        
        .payment-methods-section {
            padding: 15px;
            background: white;
            border-bottom: 10px solid #f5f5f5;
        }
        
        .payment-methods-title {
            font-size: 14px;
            color: #333;
            margin-bottom: 15px;
        }
        
        .payment-method-item {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 12px 0;
            border-bottom: 1px solid #f0f0f0;
        }
        
        .payment-method-item:last-child {
            border-bottom: none;
        }
        
        .payment-method-left {
            display: flex;
            align-items: center;
        }
        
        .payment-method-icon {
            width: 24px;
            height: 24px;
            margin-right: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        
        .payment-method-icon i {
            font-size: 20px;
        }
        
        .payment-method-name {
            font-size: 14px;
            color: #333;
        }
        
        .payment-method-desc {
            font-size: 12px;
            color: #999;
            margin-top: 2px;
        }
        
        .payment-method-check {
            width: 20px;
            height: 20px;
            border-radius: 50%;
            border: 1px solid #ddd;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        
        .payment-method-check.selected {
            border-color: #ff4757;
            background-color: #ff4757;
        }
        
        .payment-method-check.selected i {
            color: white;
            font-size: 12px;
        }
        
        .more-payment-methods {
            text-align: center;
            padding: 12px 0;
            color: #666;
            font-size: 14px;
            cursor: pointer;
        }
        
        .more-payment-methods i {
            margin-left: 5px;
        }
        
        .payment-footer {
            padding: 15px;
            background: white;
            position: sticky;
            bottom: 0;
            border-top: 1px solid #f0f0f0;
        }
        
        .pay-now-btn {
            width: 100%;
            height: 44px;
            background: #ff4757;
            color: white;
            border: none;
            border-radius: 22px;
            font-size: 16px;
            font-weight: bold;
            cursor: pointer;
            transition: background-color 0.3s;
        }
        
        .pay-now-btn:hover {
            background: #ff3847;
        }
        
        .pay-now-btn:active {
            background: #ff2937;
        }
        
        .coupon-info {
            padding: 8px 15px;
            background: #fff5f5;
            border-left: 4px solid #ff4757;
            margin-bottom: 15px;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        
        .coupon-left {
            display: flex;
            align-items: center;
        }
        
        .coupon-icon {
            margin-right: 8px;
            color: #ff4757;
        }
        
        .coupon-text {
            color: #666;
            font-size: 12px;
        }
        
        .coupon-arrow i {
            color: #999;
            font-size: 12px;
        }
        
        /* 地区选择器弹窗样式 */
        .region-picker-popup {
            position: fixed;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%) scale(0.9);
            width: 90%;
            max-width: 400px;
            background: white;
            border-radius: 12px;
            z-index: 1002;
            opacity: 0;
            visibility: hidden;
            transition: all 0.3s ease;
            max-height: 80vh;
            display: flex;
            flex-direction: column;
        }
        
        .region-picker-popup.active {
            opacity: 1;
            visibility: visible;
            transform: translate(-50%, -50%) scale(1);
        }
        
        .region-picker-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 15px 20px;
            border-bottom: 1px solid #eee;
        }
        
        .region-picker-title {
            font-size: 16px;
            font-weight: bold;
            color: #333;
        }
        
        .region-picker-close {
            font-size: 24px;
            color: #999;
            cursor: pointer;
            line-height: 1;
        }
        
        .region-picker-content {
            flex: 1;
            overflow: hidden;
        }
        
        .region-picker-columns {
            display: flex;
            height: 300px;
        }
        
        .region-picker-column {
            flex: 1;
            overflow-y: auto;
            border-right: 1px solid #eee;
        }
        
        .region-picker-column:last-child {
            border-right: none;
        }
        
        .region-picker-item {
            padding: 12px 20px;
            font-size: 14px;
            color: #333;
            cursor: pointer;
            transition: background-color 0.2s;
        }
        
        .region-picker-item:hover,
        .region-picker-item.active {
            background-color: #f0f7ff;
            color: #1890ff;
        }
        
        .region-picker-spacer {
            pointer-events: none;
        }
        
        .region-picker-footer {
            padding: 15px 20px;
            border-top: 1px solid #eee;
        }
        
        .region-picker-confirm {
            padding: 12px;
            background: #1890ff;
            color: white;
            border: none;
            border-radius: 6px;
            font-size: 14px;
            cursor: pointer;
            transition: background-color 0.2s;
        }
        
        .region-picker-confirm:hover {
            background: #40a9ff;
        }
        
        .region-picker-confirm:disabled {
            background: #ccc;
            cursor: not-allowed;
        }
        
        /* 支付跳转遮罩层样式 */
        .payment-redirect-overlay {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background-color: rgba(255, 255, 255, 0.95);
            z-index: 9999;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            backdrop-filter: blur(5px);
            -webkit-backdrop-filter: blur(5px);
        }
        
        .loading-icon {
            width: 50px;
            height: 50px;
            margin-bottom: 20px;
        }
        
        .spinning-circle {
            width: 100%;
            height: 100%;
            border: 4px solid #f3f3f3;
            border-top: 4px solid #ff4757;
            border-radius: 50%;
            animation: spin 1s linear infinite;
        }
        
        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }
        
        .redirect-text {
            font-size: 18px;
            color: #333;
            margin-bottom: 10px;
            font-weight: 500;
        }
        
        .order-number {
            font-size: 14px;
            color: #666;
            text-align: center;
        }
        