body {
    font-family: Inter, -apple-system, BlinkMacSystemFont, PingFang SC, Hiragino Sans GB, noto sans, Microsoft YaHei, Helvetica Neue, Helvetica, Arial, sans-serif;
    background: url(/assets/background.png);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    min-height: 100vh;
}

.toptips {
    background-color: #FEF2F2;
    color: #ff5154;
    text-align: center;
    margin: auto;
    width: 100%;
    padding: 0.5rem;
    font-size: 0.9rem;
}

.navbar {
    background-size: cover;
    background-position: center;
    /* box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03); */
    padding: 0.8rem 0;
}

.navbar>.container,
.navbar>.container-fluid,
.navbar>.container-lg,
.navbar>.container-md,
.navbar>.container-sm,
.navbar>.container-xl,
.navbar>.container-xxl {
    max-width: 1200px;
}

.navbar-brand {
    color: #3369ff !important;
    font-weight: 600;
    letter-spacing: -0.3px;
    text-decoration: none;
}

.navbar-brand:hover {
    color: #2554d9 !important;
}

.page-container {
    max-width: 1200px;
    margin: auto;
    padding: 0 1rem;
}

/* 商家资料卡片 */
.merchant-card {
    background: #fff;
    border-radius: 8px;
    padding: 2rem 1.5rem;
    text-align: center;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.04);
    /* height: 100%; */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-image: linear-gradient(166.25deg, #ddf5f3 -7.92%, #fff 65.65%);
    border-radius: 12px;
    box-shadow: 0 6px 12px -10px #245bdb0f, 0 8px 24px #245bdb0a, 0 10px 36px 10px #245bdb0a;
}

.merchant-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    /* background: #f1f5f9; */
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    color: #94a3b8;
}

.merchant-name {
    font-weight: 700;
    font-size: 1.1rem;
    color: #0f172a;
    margin-bottom: 0.2rem;
}

.merchant-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    background: rgba(51, 105, 255, 0.08);
    color: #3369ff;
    padding: 0.25rem 0.9rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    margin-top: 0.5rem;
}

.merchant-badge:hover {
    background: rgba(51, 105, 255, 0.15);
}

.merchant-stats {
    display: flex;
    gap: 1.5rem;
    margin-top: 1.5rem;
    font-size: 0.8rem;
    color: #64748b;
}

.merchant-stats span {
    display: flex;
    /* flex-direction: column; */
    align-items: center;
}

.merchant-stats strong {
    font-size: 14px;
    color: #3C8CE7;
    font-weight: 320;
    font-family: -webkit-body;
}

.arco-btn-status-success {
    color: rgb(0, 180, 42);
    background-color: #E8FFEA;
    border-radius: 4px;
    border: 1px dashed rgb(76, 210, 99);
    padding: 3px 12px;
    font-weight: 320;
    font-size: 12px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.arco-btn-status-success:hover {
    color: rgb(0, 180, 42);
    background-color: #AFF0B5;
}

.arco-btn-status-success i {
    font-size: 14px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    vertical-align: middle;
}

.arco-btn-status-success i {
    position: relative;
    top: -1px;
    /* 正数向下，负数向上，根据实际情况调整 */
}


.arco-btn-status-gray {
    color: #4e5969;
    background-color: #f2f3f5;
    border-radius: 4px;
    border: 1px dashed #e5e6eb;
    padding: 3px 12px;
    font-weight: 320;
    font-size: 12px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.arco-btn-status-gray:hover {
    background-color: #E5E6EB;
}

.arco-btn-status-gray i {
    font-size: 14px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    vertical-align: middle;
}

.arco-btn-status-gray i {
    position: relative;
    top: -1px;
    /* 正数向下，负数向上，根据实际情况调整 */
}

.arco-btn-status-success {
    color: rgb(0, 180, 42);
    background-color: #E8FFEA;
    border-radius: 4px;
    border: 1px dashed rgb(76, 210, 99);
    padding: 3px 12px;
    font-weight: 400;
    font-size: 12px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.arco-btn-status-success:hover {
    background-color: #AFF0B5;
}

.arco-btn-status-success i {
    font-size: 14px;
    line-height: 1;
}

.arco-btn-status-gray {
    color: #4e5969;
    background-color: #f2f3f5;
    border-radius: 4px;
    border: 1px dashed #e5e6eb;
    padding: 3px 12px;
    font-weight: 400;
    font-size: 12px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.arco-btn-status-gray:hover {
    background-color: #E5E6EB;
}

.arco-btn-status-gray i {
    font-size: 14px;
    line-height: 1;
}

/* 下拉弹出层 */
.merchant-stats {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.stat-item {
    position: relative;
    display: inline-block;
}

.stat-item::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 10px;
}

.stat-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) translateY(-5px);
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 8px 14px;
    white-space: nowrap;
    font-size: 13px;
    color: #334155;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    z-index: 10;
}

.stat-item:hover .stat-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.stat-dropdown a {
    color: #3369ff;
    text-decoration: none;
}

.stat-dropdown a:hover {
    text-decoration: underline;
}

.stat-dropdown::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 6px solid #fff;
}

.stat-dropdown::after {
    content: '';
    position: absolute;
    top: -7px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 7px solid transparent;
    border-right: 7px solid transparent;
    border-bottom: 7px solid #e2e8f0;
    z-index: -1;
}

/* 购买卡片 */
.purchase-card {
    background: #fff;
    border: none;
    border-radius: 8px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.04);
    overflow: hidden;
    height: 100%;
}

.purchase-card .card-body {
    padding: 2.2rem 2rem 2.5rem;
}

.product-meta {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
    margin-bottom: 1.2rem;
}

.badge-tag {
    background: linear-gradient(to right, #F4CF76, #FCF0B2);
    color: #562000;
    font-weight: 500;
    font-size: 0.75rem;
    padding: 0.2rem 0.75rem;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.badge-tag.auto-ship {
    background: rgba(51, 105, 255, 0.08);
    color: #3369ff;
}

.badge-tag.stock-info {
    background: rgba(34, 197, 94, 0.08);
    color: #16a34a;
}

.product-title {
    font-size: 20px;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 1rem;
    line-height: 1.5;
    letter-spacing: 1px;
}

.product-desc {
    color: #64748b;
    font-size: 0.9rem;
    line-height: 1.6;
    background: linear-gradient(200deg, #fff 22.69%, #f2f6ff 104.23%);
    padding: 1rem;
    border-radius: 12px;
    margin-bottom: 0;
}

.divider {
    height: 1px;
    background: #f1f5f9;
    margin: 1.8rem 0;
}

.price-section {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
}

.price-label {
    font-size: 0.85rem;
    color: #94a3b8;
    font-weight: 500;
}

.price-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0f172a;
}

.price-unit {
    font-size: 1rem;
    color: #64748b;
    margin-left: 2px;
}

.form-section {
    margin-bottom: 1.5rem;
}

.form-label {
    font-weight: 600;
    font-size: 0.85rem;
    color: #334155;
    margin-bottom: 0.4rem;
}

.qty-control {
    display: flex;
    align-items: center;
    max-width: 140px;
}

.qty-control .btn {
    width: 40px;
    height: 40px;
    /* padding: 0; */
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e2e8f0;
    background: #fff;
    color: #334155;
    font-size: 1.2rem;
}

.qty-control .btn:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
}

.qty-control input {
    width: 100px;
    margin: 0 5px 0 5px;
    text-align: center;
    border: 1px solid #e2e8f0;
    height: 40px;
    font-weight: 600;
    color: #3369ff;
    background: #fff;
    outline: none;
    text-align: center;
}

.payment-options {
    display: flex;
    gap: 0.75rem;
}

.payment-option {
    flex: 1;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 0.9rem 0.5rem;
    text-align: center;
    cursor: pointer;
    background: #fff;
    user-select: none;
    transition: 0.2s;
}

.payment-option.active {
    border-color: #3369ff;
    background: rgba(51, 105, 255, 0.03);
}

.payment-option i {
    font-size: 1.8rem;
    color: #64748b;
    display: block;
    margin-bottom: 0.2rem;
}

.payment-option.active i {
    color: #3369ff;
}

.payment-option span {
    font-size: 0.8rem;
    font-weight: 500;
    color: #475569;
}

/* QQ输入框样式 */
.qq-input-wrapper .input-group-text {
    background: #fff;
    border-right: none;
    color: #64748b;
    border-color: #e2e8f0;
    transition: border-color 0.2s;
}

.qq-input-wrapper .form-control {
    border-left: none;
    padding-left: 0;
    border-color: #e2e8f0;
    transition: border-color 0.2s;
}

.qq-input-wrapper .form-control:focus {
    box-shadow: none;
    border-color: #3369ff;
}

.qq-input-wrapper .form-control:focus+.input-group-text,
.qq-input-wrapper:focus-within .input-group-text {
    border-color: #3369ff;
}

/* 验证状态 */
.qq-input-wrapper .form-control.is-invalid {
    border-color: #dc3545;
}

.qq-input-wrapper:has(.is-invalid) .input-group-text {
    border-color: #dc3545;
}

.qq-input-wrapper .form-control.is-valid {
    border-color: #16a34a;
}

.qq-input-wrapper:has(.is-valid) .input-group-text {
    border-color: #16a34a;
}

#qqFeedback {
    display: block;
    min-height: 1.2rem;
    font-size: 0.75rem;
    margin-top: 0.2rem;
}

.total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0.5rem 0 1.8rem;
}

.total-amount {
    font-size: 1.4rem;
    font-weight: 700;
    color: #3369ff;
}

.btn-pay {
    background: #3369ff;
    border: none;
    padding: 0.95rem;
    font-weight: 600;
    font-size: 1rem;
    /* border-radius: 16px; */
    letter-spacing: 0.3px;
    transition: all 0.2s;
    box-shadow: 0 5px 6px 0 rgba(73, 105, 230, .22);
    background-image: linear-gradient(135deg, #3C8CE7 10%, #00EAFF 100%);
    border: 0px;
}

.btn-pay:hover {
    transform: translateY(-1px);
    /* box-shadow: 0 12px 25px rgba(51, 105, 255, 0.3); */
}

.footer-note {
    margin-top: 2rem;
    text-align: center;
    font-size: 0.8rem;
    color: #94a3b8;
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.footer-note span {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.modal-content {
    border: none;
    border-radius: 16px;
}

@media (max-width: 991px) {
    .merchant-card {
        margin-bottom: 1rem;
    }
}

.btn-outline-primary {
    color: #FFF;
    border-radius: 100PX;
    padding: 0.4rem 1rem;
    font-size: 0.85rem;
    font-weight: 500;
    box-shadow: 0 5px 6px 0 rgba(73, 105, 230, .22);
    background-image: linear-gradient(135deg, #3C8CE7 10%, #00EAFF 100%);
    border: 0px;
}

/* 订单查询弹窗样式 */
#orderQueryModal .modal-content {
    border: none;
    border-radius: 20px;
    overflow: hidden;
}

.query-form-section {
    background: #fff;
    border-radius: 16px;
}

#queryQQ.is-valid {
    border-color: #16a34a !important;
}

#queryQQ.is-invalid {
    border-color: #dc3545 !important;
}

/* 订单卡片悬停效果 */
.order-card {
    transition: all 0.2s;
    border: 1px solid transparent;
}

.order-card:hover {
    border-color: #e2e8f0;
    background: #fff !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

/* 输入框组样式优化 */
#orderQueryForm .input-group .form-control:focus {
    box-shadow: none;
    border-color: #3369ff;
}

#orderQueryForm .input-group:focus-within .input-group-text {
    border-color: #3369ff;
}