/* 颜色变量 */
:root {
    --primary: #EA580C;
    --secondary: #36D399;
    --danger: #F87272;
    --neutral: #F3F4F6;
    --neutral-dark: #4B5563;
    --notification: #D94A00;
}

body {
    /* font-family: "Inter", system-ui, sans-serif; */
    margin: 0;
    background: var(--neutral);
    min-height: 100vh;
}

.container {
    max-width: 600px;
    margin: auto;
    padding: 1rem;
}

.header {
    background: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    /* position: sticky; */
    top: 0;
    z-index: 10;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.header-title {
    font-size: 1.1rem;
    color: var(--neutral-dark);
    font-weight: 600;
}

.card {
    background: white;
    border-radius: 0.75rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.card-header {
    padding: 1rem;
    color: white;
}

.card-header.primary {
    background: var(--primary);
}

.card-body {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.order-field {
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 0.75rem;
}

.field-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: bold;
    color: #333;
}

.field-amount {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

#amount {
    color: #ea580c;
}

.product-img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 0.5rem;
}

.pay-platform-buttons {
    display: flex;
    flex-direction: column;
    gap: 4px;
    /* margin: 8px 0; */
}

.form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.input-icon {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.input-icon input {
    flex: 1;
    padding: 0.5rem 0.75rem;
    border: 1px solid #ccc;
    border-radius: 0.5rem;
    font-size: 1rem;
}

.text-muted {
    color: #6b7280;
}

.text-danger {
    color: var(--danger);
}

.success {
    color: var(--secondary);
}

.danger {
    color: var(--danger);
}

.bold {
    font-weight: bold;
}

.accountPanel {
    margin-top: 1rem;
    margin-bottom: 1rem;
}

.account {
    font-weight: bold;
    font-size: 1.2rem !important;
}

.btn {
    padding: 0.6rem 1rem;
    border: none;
    border-radius: 0.5rem;
    font-size: 1.1rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: background-color 0.3s;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-orange {
    background: #f97316;
    color: white;
}

.btn-red {
    background: #E1251B;
    color: white;
}

.btn:disabled {
    background-color: #ccc;
    /* 灰色背景 */
    color: #999;
    /* 浅灰色文字 */
    cursor: not-allowed;
    /* 禁用鼠标指针样式 */
}


.btn-link {
    background: none;
    color: var(--primary);
    font-size: 1rem;
    text-decoration: underline;
}

.noborder {
    border: none !important;
}

.full-width {
    width: 100%;
}

.loading {
    padding: 3rem 0;
    text-align: center;
}

.spinner {
    width: 3rem;
    height: 3rem;
    border: 4px solid var(--primary);
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: auto;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.countdown {
    background: white;
    padding: 0.75rem 1rem;
    border: 1px solid #eee;
    border-radius: 0.5rem;
    margin-top: 1rem;
    font-weight: bold;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.countdown-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.success-state,
.processing-state,
.error-state {
    padding: 3rem 1rem;
    text-align: center;
}

.pay-btn-container {
    /* margin-top: 1rem; */
}

.icon-large {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.smart-input {
    margin-bottom: 1rem;
}

.smart-input textarea {
    width: 100%;
    /* padding: 0.75rem; */
    border: 1px solid #ccc;
    border-radius: 0.5rem;
    resize: none;
    font-size: 1rem;
}

.smart-status {
    padding: 0.5rem;
    border-radius: 0.5rem;
    border: 1px solid var(--secondary);
    background: rgba(54, 211, 153, 0.1);
    margin-top: 0.5rem;
    color: var(--secondary);
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.hidden {
    display: none !important;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 100;
    overflow: auto;
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    width: 100%;
    max-width: 600px;
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    text-align: left;
    box-sizing: border-box;
}

.modal-content img {
    max-width: 100%;
    height: auto;
    margin: 20px 0;
    border-radius: 0.5rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    display: block;
    /* 确保图片作为块级元素显示 */
    margin-left: auto;
    /* 与 margin-right: auto 一起使图片居中 */
    margin-right: auto;
    object-fit: cover;
}

.modal-content p {
    font-weight: bold;
}

.modal-content .tips {
    font-weight: bold;
    color: var(--notification);
}

.modal-content p .searchKeywordText {
    color: var(--notification);
    font-weight: bold;
    font-size: 1.2rem;
}

/* 让按钮居中 */
.modal-content .btn {
    display: block;
    margin: 0 auto;
}