    * {
        box-sizing: border-box;
        margin: 0;
        padding: 0;
        font-family: -apple-system, BlinkMacSystemFont, "Microsoft YaHei", sans-serif;
        -webkit-tap-highlight-color: transparent;
    }
    html, body {
        background: #f5f6f8;
        color: #1f2937;
        max-width: 100%;
        overflow-x: hidden;
        padding-bottom: 90px;
        line-height: 1.5;
    }
    :root {
        --primary: #2563eb;
        --primary-light: #3b82f6;
        --success: #16a34a;
        --success-light: #22c55e;
        --danger: #dc2626;
        --danger-light: #ef4444;
        --orange: #f97316;
        --orange-dark: #ea580c;
        --purple: #7c3aed;
        --purple-light: #8b5cf6;
        --bg-card: #ffffff;
        --bg-soft: #f9fafb;
        --border: #e5e7eb;
        --text-main: #111827;
        --text-sub: #6b7280;
        --text-minor: #9ca3af;
        --radius-lg: 16px;
        --radius-md: 12px;
        --radius-sm: 8px;
        --shadow-card: 0 2px 12px rgba(0,0,0,0.04);
        --shadow-btn: 0 4px 12px rgba(249, 115, 22, 0.3);
    }
    .container {
        max-width: 720px;
        margin: 0 auto;
        padding: 0 12px;
    }

    .success-wrap {
        padding: 50px 16px 40px;
        max-width: 480px;
        margin: 0 auto;
    }
    .success-card {
        background: var(--bg-card);
        border-radius: 20px;
        padding: 36px 24px 28px;
        box-shadow: 0 4px 20px rgba(0,0,0,0.06);
        text-align: center;
        margin-bottom: 20px;
    }
    .success-icon {
        width: 72px;
        height: 72px;
        border-radius: 50%;
        background: linear-gradient(135deg, var(--success), var(--success-light));
        display: flex;
        align-items: center;
        justify-content: center;
        margin: 0 auto 20px;
        box-shadow: 0 4px 12px rgba(22,163,74,0.25);
    }
    .success-icon::after {
        content: "";
        width: 32px;
        height: 18px;
        border-left: 4px solid #fff;
        border-bottom: 4px solid #fff;
        transform: rotate(-45deg);
        margin-top: -6px;
    }
    .success-title { font-size: 22px; font-weight: 600; color: var(--text-main); margin-bottom: 8px; }
    .success-subtitle { font-size: 14px; color: var(--text-sub); margin-bottom: 22px; }
    .success-tip {
        background: #f0fdf4;
        border-radius: 10px;
        padding: 12px 14px;
        font-size: 13px;
        color: #15803d;
        line-height: 1.6;
        text-align: left;
        margin-bottom: 26px;
    }
    .share-tip-box {
        background: #fff7ed;
        border: 1px solid #fed7aa;
        border-radius: 10px;
        padding: 12px 14px;
        margin-bottom: 20px;
        text-align: left;
    }
    .share-tip-box .title { font-size: 14px; font-weight: 600; color: var(--orange-dark); margin-bottom: 6px; }
    .share-tip-box .desc { font-size: 13px; color: #c2410c; line-height: 1.5; }
    .btn-primary {
        display: block;
        width: 100%;
        padding: 13px;
        background: linear-gradient(135deg, var(--success), var(--success-light));
        color: #fff;
        border-radius: 12px;
        font-size: 15px;
        font-weight: 500;
        text-decoration: none;
        text-align: center;
        box-shadow: 0 4px 12px rgba(22,163,74,0.2);
        margin-bottom: 14px;
    }
    .btn-primary.orange { background: linear-gradient(135deg, var(--orange), var(--orange-dark)); box-shadow: var(--shadow-btn); }
    .btn-primary:active { opacity: 0.9; }
    .btn-secondary-group {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
        margin-bottom: 20px;
    }
    .btn-secondary {
        display: block;
        padding: 11px;
        background: var(--bg-soft);
        border: 1px solid var(--border);
        color: var(--text-main);
        border-radius: 10px;
        font-size: 14px;
        text-decoration: none;
        text-align: center;
    }
    .btn-secondary:active { background: #f3f4f6; }
    .footer-links {
        display: flex;
        justify-content: center;
        gap: 16px;
        font-size: 13px;
    }
    .footer-links a { color: var(--text-sub); text-decoration: none; }

    .tip-wrap { padding: 80px 20px; text-align: center; font-size: 15px; line-height: 1.8; }
    .tip-error { color: var(--danger); }
    .tip-wrap a {
        color: var(--primary);
        text-decoration: none;
        display: inline-block;
        margin-top: 16px;
        font-size: 14px;
    }

    .goods-cover {
        width: 100%;
        aspect-ratio: 16 / 9;
        border-radius: var(--radius-lg);
        overflow: hidden;
        background: var(--bg-soft);
        margin-top: 12px;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: var(--shadow-card);
        position: relative;
    }
    .goods-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
    .back-btn {
        position: absolute;
        top: 12px;
        left: 12px;
        width: 36px;
        height: 36px;
        border-radius: 50%;
        background: rgba(0, 0, 0, 0.2);
        backdrop-filter: blur(6px);
        -webkit-backdrop-filter: blur(6px);
        display: flex;
        align-items: center;
        justify-content: center;
        color: #fff;
        font-size: 18px;
        z-index: 10;
        cursor: pointer;
        transition: background 0.2s;
        user-select: none;
    }
    .back-btn:active { background: rgba(0, 0, 0, 0.35); }
    .cover-tag-hot {
        position: absolute;
        top: 12px;
        right: 12px;
        background: linear-gradient(135deg, var(--danger), var(--danger-light));
        color: #fff;
        font-size: 12px;
        padding: 4px 10px;
        border-radius: 20px;
        font-weight: 500;
        box-shadow: 0 2px 6px rgba(220, 38, 38, 0.3);
        z-index: 5;
    }
    .cover-tag-share {
        position: absolute;
        top: 12px;
        left: 60px;
        background: linear-gradient(135deg, var(--purple), var(--purple-light));
        color: #fff;
        font-size: 12px;
        padding: 4px 10px;
        border-radius: 20px;
        font-weight: 500;
        box-shadow: 0 2px 6px rgba(124, 58, 237, 0.3);
        z-index: 5;
    }
    .cover-tag-cate {
        position: absolute;
        bottom: 2px;
        right: 2px;
        background: rgba(0, 0, 0, 0.6);
        color: #ffffff;
        font-size: 12px;
        padding: 4px 12px;
        border-radius: 20px;
        font-weight: 500;
        backdrop-filter: blur(4px);
        -webkit-backdrop-filter: blur(4px);
        z-index: 5;
    }
    .no-img { color: var(--text-minor); font-size: 14px; }

    .card-info {
        background: var(--bg-card);
        border-radius: var(--radius-lg);
        padding: 16px 18px 18px;
        margin-top: 12px;
        box-shadow: var(--shadow-card);
    }
    .goods-title {
        font-size: 20px;
        font-weight: 600;
        line-height: 1.3;
        color: var(--text-main);
        margin-bottom: 12px;
    }

    .price-row {
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        gap: 10px;
        margin-bottom: 12px;
        flex-wrap: nowrap;
    }
    .price-left {
        flex: 1;
        min-width: 0;
        display: flex;
        flex-direction: column;
        gap: 8px;
    }
    .price-right {
        flex-shrink: 0;
        text-align: right;
        font-size: 13px;
        color: var(--text-sub);
        padding-top: 4px;
    }
    .price-right .sales-num { color: var(--orange); font-weight: 500; }
    .price-right .stock-tight { color: var(--danger); font-weight: 600; margin-top: 2px; }

    .price-two-row {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }
    .price-main-row {
        display: flex;
        align-items: center;
        gap: 10px;
        line-height: 1;
    }
    .price-sub-row {
        display: flex;
        align-items: center;
        gap: 8px;
        line-height: 1;
        flex-wrap: nowrap;
    }
    .price-sub-row .current-label {
        font-size: 12px;
        color: var(--text-sub);
    }
    .price-sub-row .current-price {
        font-size: 16px;
        font-weight: 600;
        color: var(--danger);
    }
    .price-sub-row .price-old {
        font-size: 12px;
        color: var(--text-minor);
        text-decoration: line-through;
    }
    .price-sub-row .save-tag {
        font-size: 12px;
        padding: 2px 8px;
        font-weight: 600;
        background: #fef2f2;
        color: var(--danger);
        border-radius: 4px;
        flex-shrink: 0;
    }

    .price-target-row {
        display: flex;
        align-items: center;
        justify-content: flex-start;
        gap: 10px;
        line-height: 1;
        flex-wrap: nowrap;
    }
    .price-left-group {
        display: flex;
        align-items: center;
        gap: 8px;
        flex-shrink: 0;
    }
    .price-right-group {
        display: flex;
        align-items: center;
        gap: 6px;
        flex-wrap: nowrap;
        flex-shrink: 0;
    }
    .target-tag {
        flex-shrink: 0;
        padding: 3px 8px;
        background: linear-gradient(135deg, var(--danger), var(--orange));
        color: #fff;
        font-size: 12px;
        border-radius: 4px;
        font-weight: 500;
    }
    .target-price {
        font-size: 32px;
        font-weight: 700;
        color: var(--danger);
    }
    .target-price small { font-size: 16px; margin-right: 1px; }

    .current-label { font-size: 13px; color: var(--text-sub); }
    .current-price { font-size: 18px; font-weight: 600; color: var(--text-main); }
    .price-old { font-size: 13px; color: var(--text-minor); text-decoration: line-through; }
    .save-tag {
        padding: 3px 10px;
        background: #fef2f2;
        color: var(--danger);
        font-size: 15px;
        border-radius: 4px;
        font-weight: 700;
        flex-shrink: 0;
    }
    .price-tip { font-size: 12px; color: var(--text-sub); line-height: 1.4; }

    .kj-progress-box {
        background: #f5f3ff;
        border: 1px solid #ede9fe;
        border-radius: 10px;
        padding: 12px 14px;
        margin-bottom: 12px;
        cursor: pointer;
        transition: background 0.2s;
    }
    .kj-progress-box:active {
        background: #ede9fe;
    }
    .kj-progress-top {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 8px;
        font-size: 13px;
    }
    .kj-progress-top .label { color: #5b21b6; font-weight: 500; }
    .kj-progress-top .num { color: var(--purple); font-weight: 600; }
    .kj-progress-bar {
        width: 100%;
        height: 8px;
        background: #e9d5ff;
        border-radius: 4px;
        overflow: hidden;
        margin-bottom: 8px;
    }
    .kj-progress-inner {
        height: 100%;
        background: linear-gradient(90deg, var(--purple), var(--purple-light));
        border-radius: 4px;
        transition: width 0.3s;
    }
    .kj-progress-tip { font-size: 12px; color: #7c3aed; line-height: 1.5; }

    .kj-login-tip {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        background: #f0f9ff;
        border: 1px solid #bae6fd;
        border-radius: 10px;
        padding: 12px 14px;
        margin-bottom: 12px;
        font-size: 13px;
        color: #0369a1;
    }
    .kj-login-btn {
        flex-shrink: 0;
        padding: 4px 12px;
        background: linear-gradient(135deg, #0ea5e9, #0284c7);
        color: #fff;
        border-radius: 12px;
        font-size: 12px;
        text-decoration: none;
        font-weight: 500;
    }

    .promo-bar {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        background: linear-gradient(90deg, #fff1f0, #fff7ed);
        border: 1px solid #fecaca;
        border-radius: 8px;
        padding: 8px 12px;
        margin-bottom: 12px;
        font-size: 13px;
    }
    .promo-bar .countdown {
        display: flex;
        align-items: center;
        gap: 6px;
        color: var(--danger);
        font-weight: 500;
    }
    .promo-bar .countdown .time {
        font-weight: 700;
        font-family: monospace;
        font-size: 14px;
    }
    .promo-bar .countdown .time span {
        display: inline-block;
        background: var(--danger);
        color: #fff;
        padding: 1px 5px;
        border-radius: 4px;
        margin: 0 2px;
    }
    .promo-bar .share-btn {
        color: var(--purple);
        font-weight: 500;
        cursor: pointer;
        white-space: nowrap;
    }

    .safe-row {
        display: flex;
        padding: 12px 0 0;
        margin-top: 10px;
        border-top: 1px dashed #e5e7eb;
        justify-content: space-around;
        gap: 8px;
    }
    .safe-item {
        font-size: 12px;
        color: var(--text-sub);
        text-align: center;
        flex: 1;
        padding: 6px 4px;
        background: var(--bg-soft);
        border-radius: 6px;
    }

    .card-shop {
        background: var(--bg-card);
        border-radius: var(--radius-lg);
        padding: 10px 14px;
        margin-top: 12px;
        box-shadow: var(--shadow-card);
        display: flex;
        gap: 12px;
        align-items: center;
    }
    .shop-logo-link { flex-shrink: 0; display: block; text-decoration: none; }
    .shop-logo {
        width: 44px;
        height: 44px;
        border-radius: 10px;
        overflow: hidden;
        background: var(--bg-soft);
        border: 1px solid var(--border);
    }
    .shop-logo img { width: 100%; height: 100%; object-fit: cover; }
    .logo-text {
        width: 100%;
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        background: linear-gradient(135deg, #3b82f6 0%, #6366f1 100%);
        color: #fff;
        font-size: 18px;
        font-weight: 600;
        border-radius: inherit;
    }
    .shop-body {
        flex: 1;
        min-width: 0;
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 10px;
    }
    .shop-info { flex: 1; min-width: 0; }
    .shop-name-link {
        display: block;
        font-size: 15px;
        font-weight: 500;
        color: var(--text-main);
        margin-bottom: 2px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        text-decoration: none;
        cursor: pointer;
        line-height: 1.3;
    }
    .shop-address {
        font-size: 12px;
        color: #4b5563;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        cursor: pointer;
        text-decoration: underline dotted;
        text-underline-offset: 2px;
        line-height: 1.3;
    }
    .shop-actions {
        flex-shrink: 0;
        display: flex;
        flex-direction: column;
        gap: 4px;
        align-items: flex-end;
    }
    .shop-tel-btn {
        display: inline-block;
        padding: 3px 12px;
        background: linear-gradient(135deg, #3b82f6, #2563eb);
        color: #fff;
        border-radius: 12px;
        font-size: 11px;
        text-decoration: none;
        font-weight: 500;
        line-height: 1.5;
        white-space: nowrap;
    }
    .shop-weixin-btn {
        display: inline-block;
        padding: 3px 12px;
        background: linear-gradient(135deg, #10b981, #059669);
        color: #fff;
        border-radius: 12px;
        font-size: 11px;
        text-decoration: none;
        font-weight: 500;
        line-height: 1.5;
        white-space: nowrap;
        cursor: pointer;
    }

    .toast {
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        background: rgba(0,0,0,0.75);
        color: #fff;
        padding: 12px 20px;
        border-radius: 8px;
        font-size: 14px;
        z-index: 9999;
        display: none;
        text-align: center;
        max-width: 80%;
        line-height: 1.5;
    }

    .card {
        background: var(--bg-card);
        border-radius: var(--radius-lg);
        padding: 18px;
        margin-top: 12px;
        box-shadow: var(--shadow-card);
    }
    .card-title {
        font-size: 16px;
        font-weight: 600;
        color: var(--text-main);
        margin-bottom: 12px;
        display: flex;
        align-items: center;
        gap: 8px;
    }
    .card-title::before {
        content: "";
        width: 4px;
        height: 16px;
        background: var(--primary);
        border-radius: 2px;
    }

    .rule-tag-list {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
        margin-bottom: 12px;
    }
    .rule-tag {
        padding: 7px 6px;
        border-radius: 8px;
        font-size: 12px;
        text-align: center;
        font-weight: 500;
        background: #f3f4f6;
        color: #4b5563;
    }
    .rule-tag.green { background: #f0fdf4; color: #15803d; }
    .rule-tag.orange { background: #fff7ed; color: #c2410c; }

    .time-wrap {
        background: var(--bg-soft);
        border-radius: var(--radius-sm);
        padding: 10px 12px;
    }
    .time-row {
        display: flex;
        flex-wrap: wrap;
        gap: 14px;
        font-size: 13px;
        line-height: 1.6;
    }
    .time-row + .time-row {
        margin-top: 6px;
        padding-top: 6px;
        border-top: 1px dashed #e5e7eb;
    }
    .time-row .time-item {
        display: inline-flex;
        align-items: center;
        gap: 4px;
    }
    .time-item .label { color: var(--text-sub); flex-shrink: 0; }
    .time-item .value { color: var(--text-main); }

    .detail-text {
        font-size: 14px;
        line-height: 1.8;
        color: #374151;
        word-break: break-all;
    }

    .img-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .img-item {
        width: 100%;
        border-radius: var(--radius-md);
        overflow: hidden;
        background: var(--bg-soft);
    }
    .img-item img {
        width: 100%;
        height: auto;
        display: block;
        object-fit: cover;
    }

    .buy-bar {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        max-width: 720px;
        margin: 0 auto;
        background: #fff;
        padding: 12px 16px;
        display: flex;
        align-items: center;
        gap: 16px;
        box-shadow: 0 -2px 16px rgba(0,0,0,0.08);
        z-index: 99;
    }
    .bar-price {
        flex: 1;
        min-width: 0;
        display: flex;
        flex-direction: column;
        gap: 3px;
    }
    .bar-price-main {
        display: flex;
        align-items: baseline;
        gap: 8px;
        flex-wrap: wrap;
    }
    .bar-price .now {
        font-size: 26px;
        color: var(--danger);
        font-weight: 700;
        line-height: 1;
        white-space: nowrap;
    }
    .bar-price .now small { font-size: 14px; }
    .bar-min-tag {
        padding: 2px 8px;
        background: linear-gradient(135deg, #fff7ed, #ffedd5);
        color: var(--orange-dark);
        font-size: 12px;
        border-radius: 4px;
        font-weight: 500;
        white-space: nowrap;
        border: 1px solid #fed7aa;
    }
    .bar-save {
        font-size: 12px;
        color: var(--danger);
        font-weight: 500;
    }
    .btn-buy {
        padding: 12px 24px;
        border: none;
        border-radius: 24px;
        background: linear-gradient(135deg, var(--orange), var(--orange-dark));
        color: #fff;
        font-size: 16px;
        font-weight: 600;
        cursor: pointer;
        white-space: nowrap;
        box-shadow: var(--shadow-btn);
        transition: all 0.2s;
        flex-shrink: 0;
    }
    .btn-buy:active { 
        opacity: 0.9; 
        transform: scale(0.98);
    }
    .btn-buy.btn-disabled {
        background: #9ca3af !important;
        box-shadow: none !important;
        cursor: not-allowed !important;
        opacity: 0.7;
    }

    .mask {
        position: fixed;
        top: 0; left: 0; right: 0; bottom: 0;
        background: rgba(0,0,0,0.6);
        z-index: 999;
        display: none;
        align-items: center;
        justify-content: center;
        padding: 20px;
    }
    .pop-box {
        width: 100%;
        max-width: 400px;
        background: #fff;
        border-radius: var(--radius-lg);
        padding: 24px 20px;
    }
    .pop-title {
        font-size: 18px;
        font-weight: 600;
        text-align: center;
        margin-bottom: 4px;
        color: var(--text-main);
    }
    .pop-subtitle {
        text-align: center;
        font-size: 13px;
        color: var(--text-sub);
        margin-bottom: 16px;
    }

    .form-item { margin-bottom: 14px; }
    .form-row { display: flex; gap: 10px; margin-bottom: 14px; }
    .form-row .form-item { flex: 1; margin-bottom: 0; }
    .form-item label {
        display: block;
        font-size: 13px;
        margin-bottom: 6px;
        color: #374151;
    }
    .form-item label .req { color: var(--danger); }
    .form-item input, .form-item textarea {
        width: 100%;
        padding: 10px 12px;
        border: 1px solid var(--border);
        border-radius: var(--radius-md);
        font-size: 14px;
        outline: none;
        background: #fcfcfd;
        box-sizing: border-box;
        transition: border-color 0.2s;
    }
    .form-item input:focus, .form-item textarea:focus {
        border-color: var(--primary-light);
        background: #fff;
    }
    .form-item textarea { resize: none; font-family: inherit; }
    .num-row { display: flex; align-items: center; }
    .num-btn {
        width: 38px;
        height: 38px;
        border: 1px solid var(--border);
        background: var(--bg-soft);
        font-size: 18px;
        border-radius: var(--radius-sm);
        color: var(--text-sub);
        cursor: pointer;
        flex-shrink: 0;
    }
    .num-btn:active { background: #eef1f5; }
    .num-input {
        flex: 1;
        height: 38px;
        text-align: center;
        border-top: 1px solid var(--border);
        border-bottom: 1px solid var(--border);
        border-left: none;
        border-right: none;
        border-radius: 0;
        -moz-appearance:textfield;
    }
    .num-input::-webkit-outer-spin-button,
    .num-input::-webkit-inner-spin-button{
        -webkit-appearance:none;
        margin:0;
    }
    .btn-row {
        display: grid;
        grid-template-columns: 1fr 1.5fr;
        gap: 10px;
        margin-top: 20px;
    }
    .btn-cancel {
        padding: 12px;
        border-radius: var(--radius-md);
        border: 1px solid var(--border);
        background: var(--bg-soft);
        font-size: 15px;
        color: var(--text-sub);
        cursor: pointer;
    }
    .btn-submit {
        padding: 12px;
        border-radius: var(--radius-md);
        border: none;
        background: linear-gradient(135deg, var(--orange), var(--orange-dark));
        color: #fff;
        font-size: 15px;
        font-weight: 600;
        cursor: pointer;
        box-shadow: var(--shadow-btn);
    }
    .btn-submit:active { opacity: 0.9; }

    /* µ¯´°ÄÚ¼Û¸ñ¿¨Æ¬ */
    .price-summary-card {
        background: #f9fafb;
        padding: 12px;
        border-radius: 10px;
        margin-bottom: 16px;
    }
    .price-summary-row {
        display: flex;
        justify-content: space-between;
        align-items: center;
        font-size: 14px;
        margin-bottom: 8px;
    }
    .price-summary-row:last-child {
        margin-bottom: 0;
        padding-top: 8px;
        border-top: 1px dashed #e5e7eb;
        font-size: 16px;
    }
    .price-summary-row .label { color: #6b7280; }
    .price-summary-row .save-val { color: #dc2626; }
    .price-summary-row .total-val {
        color: #dc2626;
        font-weight: 700;
        font-size: 18px;
    }

    @media (min-width: 768px) {
        .rule-tag-list { grid-template-columns: repeat(6, 1fr); }
    }