
/* 自定义模态框样式 */
.sxpm-modal {
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%; /* 改为全宽 */
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
}

.sxpm-modal-content {
    background-color: #f5f5f5;
    margin: auto;
    border: 1px solid #888;
    width: 90%; /* 保持相对宽度 */
    max-width: 500px; /* 限制最大宽度 */
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.sxpm-modal-header {
    padding: 10px;
    border-bottom: 1px solid #e5e5e5;
    display: flex;
    position: relative; /* 新增：为绝对定位提供参照 */
    text-align: center; /* 新增：确保文本居中 */
}

.sxpm-modal-header h3 {
    margin: 0 auto; /* 修改：自动外边距实现居中 */
    color: #666;
    font-size: 16px;
    font-weight: 500;
    width: max-content; /* 新增：根据内容宽度居中 */
}

.sxpm-modal-close {
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    position: absolute; /* 修改：使用绝对定位 */
    right: 10px; /* 固定在右侧 */
    top: 50%; /* 垂直居中 */
    transform: translateY(-50%); /* 精确垂直居中 */
}

.sxpm-modal-close:hover {
    color: #078786;
}

.sxpm-modal-body {
    padding: 10px 0 ;
    background-color: #fefefe;
}

.sxpm-modal-footer {
    padding: 15px 15px 30px 15px;
    border-top: 1px solid #e5e5e5;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sxpm-modal-footer .sxpm-btn {
    flex: 1;
    max-width: 45%;
    text-align: center;
    margin: 0 5px;
}

/* 表单样式 */

.sxpm-form-group { 
    height: 27px;
    width: 100%;   
    margin-bottom: 15px;    
    padding: 0 20px;
    color: #666;    
    font-size: 14px;    
    display: flex; /* 使用Flex布局 */    
    align-items: center; /* 垂直居中对齐 */    
    background-color: #eee;
}
.sxpm-form-group small{ 
  padding: 0 10px;
  font-size: 12px;
  color: #999;
}
.sxpm-form-group label {    
    display: block;    
    margin-right: 10px; /* 标签和输入框之间的间距 */    
    font-weight: 500;    
    color: #666;    
    font-size: 14px;    
    flex-shrink: 0; /* 防止标签被压缩 */
}

.sxpm-form-group p {    
    margin: 5px 0;    
    border-radius: 4px;
    font-size: 14px;   
    color: #666;
    font-weight: 400;      
}

/* 调整特定表单组的布局 
.sxpm-form-group:last-of-type {
    display: block;  按钮组恢复默认布局
}
*/
/* 商店卡片样式 */
.store-card {
    width: 100%;
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    padding: 10px;
    background: #f5f5f5;
    border-radius: 5px;
    border: 1px solid #eee;
    transition: all 0.3s ease;
}

.store-card:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* 适配水贴详情卡片样式 */
.store-card .user-info-card34 {
    display: flex;
    align-items: center;
    background: #fff;
    border-radius: 5px;
    position: relative;
    width: 100%;
}

.store-card .user-avatar-container {
    padding: 10px;
    margin: 0;
}

.store-card .user-avatar-side {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.store-card .user-avatar-side img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.store-card .user-details34 {
    flex: 1;
}

.store-card .user-name34 {
    font-weight: 500;
    margin-bottom: 5px;
    color: #666;
}

.store-card .user-stats34 {
    font-size: 14px;
    color: #666;
}

.store-card .stat-line34 {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.store-card .user-items34 {
    margin-right: 5px;
    background-color: #eee;
}

.store-card .water-interaction-panel {
    width: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    padding-right: 5px;
}

/* 交易列表样式 */
.trades-list table {
    width: 100%;
    background: #f5f5f5;
    border-radius: 5px;
}

.trades-list th,
.trades-list td {
    padding: 5px 5px; /* 增加垂直内边距，减少水平内边距 */
    text-align: left;
    border-bottom: 1px solid #eee;
    white-space: nowrap; /* 防止文本换行 */
    font-size: 14px;
    color: #666;
    height: 35px;
    background-color: #f5f5f5;
}

.trades-list th {
    font-weight: 500;
}
.trades-list td {
    font-weight: 400;
}
/* 操作列样式 - 靠右对齐 */
.trades-list th:last-child,
.trades-list td:last-child {
    text-align: right;
    width: 120px; /* 固定操作列宽度 */
}
.trades-list tr:hover {
    background-color: #f5f5f5;
}
/* 调整特定列的宽度 */
.trades-list th:nth-child(1), /* 交易号 */
.trades-list td:nth-child(1) {
    width: 12%;
}

.trades-list th:nth-child(2), /* 购买用户 */
.trades-list td:nth-child(2) {
    width: 12%;
}

.trades-list th:nth-child(3), /* 卖出花店 */
.trades-list td:nth-child(3) {
    width: 15%;
}

.trades-list th:nth-child(4), /* 数量 */
.trades-list td:nth-child(4) {
    width: 8%;
    text-align: center;
}

.trades-list th:nth-child(5), /* 发起时间 */
.trades-list td:nth-child(5) {
    width: 12%;
}

.trades-list th:nth-child(6), /* 状态 */
.trades-list td:nth-child(6) {
    width: 10%;
}

.trades-list th:nth-child(7), /* 结束时间 */
.trades-list td:nth-child(7) {
    width: 12%;
}
/* 操作列样式 - 靠右对齐 */
.trades-list th:last-child,
.trades-list td:last-child {
    text-align: right;
    width: 10%; /* 减小操作列宽度 */
    padding-right: 12px; /* 增加右侧内边距 */
}

/* 时间单元格样式 */
.trades-list td:nth-child(5),
.trades-list td:nth-child(7) {
    font-family: monospace; /* 使用等宽字体使时间对齐 */
    font-size: 13px;
}
/* 无内容提示 */
.no-posts {
    text-align: center;
    padding: 30px;
    color: #6c757d;
    font-style: italic;
}
.trade-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}
.trade-table td a {
    color: #078786;
    font-size: 14px;
    font-weight: 400;
    text-decoration: none;
}
.trade-table td {
    color: #666;
    text-align:center;
    font-size: 14px;
    font-weight: 400;
    text-decoration: none;
    font-family:monospace
}
.trade-table th {
    text-align:center;
    color: #666;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    font-family:monospace
}
.trade-table td a:hover {
    color: #078786;
    font-size: 14px;
    font-weight: 400;
    text-decoration: underline;
}

/* trade-detail */
.sxpm-trade-container {
    width:740px;
    max-width: 740px;
    margin: 0 auto;
    padding: 20px;
    background:#f5f5f5;
    border-radius: 8px;
}
.sxpm-trade-container h2 {
    color: #333;
    font-size:18px;
    font-weight: 500;
    text-align: center;
    padding-bottom:20px;
}


.progress-steps {
    margin-top: 15px;
}

.step {
    display: flex;
    margin-bottom: 20px;
    position: relative;
    background: #f5f5f5;
}

.step:last-child {
    margin-bottom: 0;
}
.step.last-step::after {
    content: '';
    position: absolute;
    left: 15px;
    top: 30px;
    height: 15px; /* 缩短高度 */
    width: 2px;
    background: #078786;
    z-index: 1;
    /* 创建竖折效果 */
    clip-path: polygon(0 0, 100% 0, 100% 50%, 0 50%);
}

/* 确保已完成步骤的进度条颜色 */
.step.completed.last-step::after {
    background: #078786;
}
.step-number {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #ddd;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 15px;
    flex-shrink: 0;
}

.step.active .step-number {
    background: #eee;
}

.step.completed .step-number {
    background: #078786;
}

.step-content {
    flex: 1;
    padding-top: 3px;
    color: #666;
    font-size: 14px;
    background: #f5f5f5;
}

.step-content label {
    font-weight: 400;
    display: block;
    margin-bottom: 5px;
    color: #078786;
    font-size: 14px;
}
.step-content .shenshu {
    padding-bottom: 30px;
}

.step::after {
    content: '';
    position: absolute;
    left: 15px;
    top: 30px;
    bottom: -20px;
    width: 2px;
    background: #ddd;
    z-index: 1;
}

.step:last-child::after {
    display: block; /* 确保显示 */
    height: 15px; /* 缩短高度 */
    background: #078786; /* 使用完成颜色 */
    bottom: auto; /* 重置bottom */
    top: 30px; /* 从步骤编号底部开始 */
    /* 创建竖折效果 */
    background-image: linear-gradient(to bottom, #078786 0%, #078786 50%, transparent 50%, transparent 100%);
    width: 2px; /* 保持宽度 */
}
.step.completed:last-child::after {
    background: #078786;
    background-image: linear-gradient(to bottom, #078786 0%, #078786 50%, transparent 50%, transparent 100%);
}
.step.completed:not(:last-child)::after {
    background: #078786;
}
.step:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 15px;
    top: 30px;
    bottom: -20px;
    width: 2px;
    background: #ddd;
    z-index: 1;
}
.step.completed::after {
    background: #078786;
}

.payment-form {
    margin-top: 10px;
    padding: 10px;
    background: #f5f5f5;
    border-radius: 4px;
}

.form-group {
    margin-bottom: 10px;
    position: relative;
    background: #f5f5f5;
}


.form-group input:focus {
    border-color: #078786;
    outline: none;
    box-shadow: 0 0 0 3px rgba(7, 135, 134, 0.1);
    color: #666;
    font-size: 14px;
    font-weight: 400;
    background-color: #f5f5f5;
}
.form-group input:hover {
    border-color: #c8cfd6;
    color: #666;
    font-size: 14px;
    font-weight: 400;
}
.form-group input:disabled {
    background-color: #f8f9fa;
    color: #6c757d;
    cursor: not-allowed;
}
.form-group input.error {
    border-color: #fc6668;
}
.form-group input.error:focus {
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

input[type="datetime-local"] {
    padding: 11px 15px; /* 稍微调整以对齐文本 */
}

.payment-info {
    margin-top: 15px;
    text-align: center;
}

.qr-code {
    max-width: 200px;
    max-height: 200px;
    border: 1px solid #ddd;
    padding: 5px;
    background: white;
}

.btn-primary {
    background: #078786;
    color: white; /* 确保正常状态也是白色 */
    width: 100px;
    height: 30px;
}

.btn-primary:hover {
    background: #066;
    color: white;
}

.btn-secondary {
    background: #999;
    color: white;
    width: 100px;
    height: 30px;
}

.btn-secondary:hover {
    background: #666;
}

.trade-completed {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.error {
    background: #f8d7da;
    color: #721c24;
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 15px;
    border-left: 4px solid #f5c6cb;
}
.form-row {
    display: flex;
    flex-wrap: nowrap; /* 确保不换行 */
    gap: 10px;
    margin-bottom: 10px;
    align-items: flex-end;
    background-color: #f5f5f5;
    padding: 10px;
    border-radius: 6px;
}

.form-row .form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 0;
}

/* 左侧：支付单号 - 宽度较小 */
.form-row .form-group:first-child {
    align-items: flex-start;
    text-align: left;
    flex: 0 0 150px; /* 固定宽度，不伸缩 */
}

/* 中间：支付时间 - 中等宽度 */
.form-row .form-group:nth-child(2) {
    align-items: flex-start; /* 改为左对齐以匹配设计 */
    text-align: left;
    flex: 1; /* 占据剩余空间 */
    min-width: 150px;
}
/* 右侧：按钮 - 固定宽度 */
.form-row .form-group:nth-child(3),
.form-row .form-group:nth-child(4) {
    align-items: flex-end;
    text-align: right;
    justify-content: flex-end;
    flex: 0 0 120px; /* 固定宽度 */
    margin-top: 0; /* 移除顶部边距 */
    min-width: 120px;
}
.form-row .form-group label {
    margin-bottom: 8px;
    font-size: 14px;
    white-space: nowrap;
    font-weight: 500;
    color: #666;
}
/* 支付单号输入框 - 较小宽度 */
.form-row .form-group:first-child input {
    width: 100px; /* 固定宽度 */
    padding: 8px 12px;
    border: 2px solid #e1e5e9;
    border-radius: 6px;
    transition: all 0.3s ease;
    box-sizing: border-box;
    color: #666;
    font-size: 14px;
    font-weight: 400;
    background-color: #fff;
    height: 38px;
}
/* 支付时间输入框 - 正常宽度 */
.form-row .form-group:nth-child(2) input {
    width: 100%;
    padding: 8px 12px;
    border: 2px solid #e1e5e9;
    border-radius: 6px;
    transition: all 0.3s ease;
    box-sizing: border-box;
    color: #666;
    font-size: 14px;
    font-weight: 400;
    background-color: #fff;
    height: 38px;
}

.qr-code-container {
    padding: 10px;
    background: #f5f5f5;
    border-radius: 5px;
    text-align: center;
    background: #f5f5f5;
}

.qr-code {
    max-width: 150px;
    max-height: 150px;
    border: 2px solid #d7d0d0;
    padding: 5px;
    background: white;
}

.qr-warning {
    color: #dc3545;
    text-align: center;
    margin-top: 20px;
    padding: 10px;
    background: #f8d7da;
    border-radius: 4px;
}
.qr-display-section {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.qr-display-section p {
    margin: 10px 0 0 0;
}
.qr-display-section a {
    font-size: 14px;
    color: #666;
    text-decoration: underline;
}
.qr-display-section a:hover {
    color: #078786;
    text-decoration: none;
}
.qr-code {
    max-width: 200px;
    max-height: 200px;
    border: 2px solid #d7d0d0;
    padding: 5px;
    background: white;
}
.qr-upload-section {
    margin-top: 15px;
}

.qr-warning {
    color: #dc3545;
    font-weight: bold;
    margin-bottom: 10px;
}
/* 表单样式 */
#qrUploadForm {
    margin-top: 10px;
}

#qrImage {
    margin-bottom: 10px;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    width: 100%;
    max-width: 300px;
}
/* trade-detail */

/* Tab 3: 小红花互转 */
.transfer-container {
    max-width: 600px;
    margin: 0 auto;
}

.transfer-form-container {
    background: #f5f5f5;
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.check-result {
    margin-top: 5px;
    font-size: 14px;
}

.check-result.checking {
    color: #666;
}

.check-result.valid {
    color: #078786;
}

.check-result.invalid {
    color: #fc6668;
}

.transfer-result {
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.transfer-result.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.transfer-result.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.transfer-details {
    margin-top: 10px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 4px;
}
/* Tab 3: 小红花互转 */

/* 申诉相关样式 */
.sxpm-representation-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}



.representation-table {
    width: 100%;
    border-collapse: collapse;
}

.representation-table th,
.representation-table td {
    padding: 10px;
    border: 1px solid #ddd;
    text-align: left;
}

.representation-table th {
    background-color: #f2f2f2;
}

.representation-detail .detail-row {
    margin-bottom: 15px;
}

.representation-detail label {
    font-weight: bold;
    display: inline-block;
    min-width: 100px;
}

/* 模态框样式 */
.modal-content {
    background-color: #fefefe;
    margin: 10% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 700px;
    border-radius: 8px;
    position: relative;
}

.close-modal {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close-modal:hover {
    color: black;
}

.existing-representation {
    margin-top: 20px;
    padding: 15px;
    background: #fff;
    border-radius: 5px;
    border-left: 4px solid #0073aa;
}
/* <结束修改> */
/* 响应式设计 */
@media (max-width: 768px) {
    .tabs-container {
        width: 100%;
        max-width: 100%;
        padding: 0 5px;
    }
    
    .store-card {
        flex-direction: column;
        text-align: center;
    }
    
    .store-card .user-avatar-container {
        margin-right: 0;
        margin-bottom: 10px;
    }
    
    .store-card .water-interaction-panel {
        margin-top: 10px;
    }
    
    .trades-list table {
        font-size: 14px;
    }
    
    .trades-list th,
    .trades-list td {
        padding: 5px;
    }
    
    .tabs-nav {
        flex-wrap: wrap;
    }
    
    .tabs-nav li {
        margin-bottom: 5px;
    }
    
    .sxpm-modal-content {
        width: 95%;
        margin: 10px;
    }
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .form-row .form-group {
        min-width: 100%;
        margin-bottom: 20px;
    }
    
    .form-group input {
        padding: 10px 12px;
        font-size: 14px;
    }
}