* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    color: #3d4b55;
    font: 14px/1.6 "Helvetica Neue", Helvetica, "PingFang SC", Tahoma, Arial, sans-serif;
    background:
        linear-gradient(rgba(255,255,255,.18), rgba(255,255,255,.18)),
        url("https://gmailkey.com/assets/cache/general/image/202602022348483017857.png") center/cover fixed no-repeat;
}

a {
    color: #1592e6;
    text-decoration: none;
}

.container {
    width: min(1080px, calc(100% - 28px));
    margin: 0 auto;
}

.navbar {
    background: rgba(255,255,255,.85);
    border-bottom: 1px solid rgba(255,255,255,.6);
    box-shadow: 0 2px 18px rgba(88, 119, 143, .12);
}

.nav-inner {
    min-height: 58px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.brand-group,
.nav-links {
    display: flex;
    align-items: center;
    gap: 16px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.brand-logo {
    width: 30px;
    height: 30px;
    display: inline-grid;
    place-items: center;
    color: #fff;
    font-weight: 700;
    border-radius: 50%;
    background: linear-gradient(135deg, #58cb9f, #129458);
    box-shadow: #f0d1d4 1px 1px 1px;
}

.brand-name {
    position: relative;
    top: 2px;
    color: rgba(19, 150, 85, .72);
    font-weight: 700;
    font-size: 16px;
}

.login-link {
    position: relative;
    top: 2px;
    color: rgba(121, 185, 251, .74);
    font-size: 18px;
    font-weight: 700;
}

.nav-links a {
    color: #4b5760;
    font-weight: 700;
    padding: 8px 4px;
}

.content-wrapper {
    padding: 26px 0 70px;
}

.card {
    margin-bottom: 22px;
    overflow: hidden;
    background: rgba(255,255,255,.92);
    border: 1px solid rgba(230, 237, 241, .92);
    border-radius: 4px;
    box-shadow: 0 8px 28px rgba(60, 78, 90, .13);
}

.card-header {
    padding: 13px 18px;
    border-bottom: 1px solid #eef2f5;
    background: rgba(249, 252, 253, .9);
}

.card-title {
    margin: 0;
    color: #4a5c66;
    font-weight: 700;
}

.card-block {
    padding: 18px;
}

.notice p {
    margin: 0 0 9px;
}

.notice p:last-child {
    margin-bottom: 0;
}

.commodity-icon {
    color: #4eb889;
}

.table-wrap {
    width: 100%;
    overflow-x: auto;
}

.goods-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
}

.goods-table th,
.goods-table td {
    padding: 12px 14px;
    border: 1px solid #e7edf1;
    text-align: left;
    min-width: 70px;
    vertical-align: middle;
}

.goods-table th {
    color: #50636e;
    font-weight: 700;
    background: #f7fafb;
}

.goods-table th:nth-child(2) {
    text-align: center;
}

.goods-table td:nth-child(2) {
    color: #ec6b51;
    text-align: center;
    font-weight: 700;
}

.goods-icon {
    width: 24px;
    height: 24px;
    display: inline-grid;
    place-items: center;
    margin-right: 5px;
    color: #fff;
    border-radius: 50%;
    background: #75caa7;
}

.buy-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #178cd6;
    font: inherit;
    font-weight: 700;
    background: transparent;
    border: 0;
    cursor: pointer;
}

.modal-mask {
    position: fixed;
    inset: 0;
    z-index: 20;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(255,255,255,.3);
}

.modal-mask.is-open {
    display: flex;
}

.modal-panel {
    position: relative;
    width: min(620px, 100%);
    max-height: min(760px, calc(100vh - 30px));
    overflow: auto;
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 16px 50px rgba(34, 51, 64, .25);
}

.modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 34px;
    height: 34px;
    color: #7d8b93;
    background: #f2f6f8;
    border: 0;
    border-radius: 50%;
    cursor: pointer;
}

.modal-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 178px;
}

.commodity-form {
    padding: 24px 22px 20px;
}

.commodity-form p {
    margin: 0 0 12px;
}

.commodity-name {
    padding-right: 34px;
    color: #263842;
    font-size: 18px;
    font-weight: 700;
}

.share-url {
    color: #1592e6;
}

.description {
    color: #667781;
}

.seckill {
    color: #e15e43;
}

.price {
    color: #e65b44;
    font-size: 24px;
    font-weight: 700;
}

.stock {
    margin-left: 14px;
}

.acg-input {
    width: min(260px, 100%);
    height: 34px;
    padding: 6px 10px;
    color: #33434c;
    border: 1px solid #d7e0e6;
    border-radius: 4px;
    outline: none;
}

.acg-input:focus {
    border-color: #78baf1;
    box-shadow: 0 0 0 3px rgba(120,186,241,.18);
}

.purchase-num {
    width: 90px;
}

.pay-content {
    padding: 24px 16px 20px;
    background: #f8fbfc;
    border-left: 1px solid #edf2f5;
}

.pay-content label {
    display: block;
    margin-bottom: 12px;
    color: #42535c;
    font-weight: 700;
}

.pay-list {
    display: grid;
    gap: 10px;
}

.pay-button {
    min-height: 38px;
    color: #fff;
    font: inherit;
    border: 0;
    border-radius: 4px;
    background: #39a9ec;
    cursor: pointer;
}

.pay-button:nth-child(2) {
    background: #2fbd68;
}

.pay-button:nth-child(3) {
    background: #56a3df;
}

.toast {
    position: fixed;
    left: 50%;
    bottom: 24px;
    z-index: 30;
    display: none;
    transform: translateX(-50%);
    padding: 10px 18px;
    color: #fff;
    background: rgba(38, 56, 66, .92);
    border-radius: 4px;
    box-shadow: 0 10px 28px rgba(0,0,0,.18);
}

.toast.is-open {
    display: block;
}

@media (max-width: 720px) {
    .nav-inner,
    .brand-group,
    .nav-links {
        flex-wrap: wrap;
    }

    .nav-inner {
        padding: 10px 0;
    }

    .modal-mask {
        padding: 0;
        align-items: stretch;
    }

    .modal-panel {
        width: 100%;
        max-height: 100vh;
        border-radius: 0;
    }

    .modal-grid {
        grid-template-columns: 1fr;
    }

    .pay-content {
        border-left: 0;
        border-top: 1px solid #edf2f5;
    }
}
