/**
 * 详情页面弹窗样式 - 统一设计系统
 */

/* ====================
   统一模态框样式 - 所有弹窗使用一套设计
===================== */

/* 模态框容器 */
.unified-modal {
    display: none;
    position: fixed;
    z-index: 99999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.6);
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}

/* 模态框内容 */
.unified-modal-content {
    background-color: #fff;
    border-radius: 8px;
    width: 420px;
    max-width: 100%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 6px 24px rgba(0,0,0,0.15);
    position: relative;
    overflow: hidden;
    animation: modalFadeIn 0.3s ease;
}

/* 模态框头部 */
.unified-modal-header {
    padding: 12px 20px 10px;
    border-bottom: 1px solid #e8e8e8;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
    background: #fafbfc;
    height: 42px;
    box-sizing: border-box;
}

.unified-modal-header h3 {
    margin: 0;
    color: #333;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: -0.3px;
}

/* 模态框关闭按钮 */
.unified-modal-close {
    font-size: 20px;
    cursor: pointer;
    color: #999;
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    background: transparent;
    border: none;
    transition: all 0.2s;
}

.unified-modal-close:hover {
    color: #666;
    background: #f5f5f5;
}

/* 模态框主体 */
.unified-modal-body {
    padding: 20px;
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-height: 0;
}

/* 模态框底部 */
.unified-modal-footer {
    padding: 12px 20px;
    border-top: 1px solid #e8e8e8;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    flex-shrink: 0;
    background: #fafbfc;
}

/* 统一按钮样式 */
.unified-btn {
    padding: 8px 20px;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.unified-btn-cancel {
    background: #fff;
    color: #666;
    border: 1px solid #e0e0e0;
}

.unified-btn-cancel:hover {
    background: #f8f9fa;
    border-color: #999;
    color: #333;
}

.unified-btn-primary {
    background: linear-gradient(135deg, #1890ff 0%, #40a9ff 100%);
    color: #fff;
    border: none;
}

.unified-btn-primary:hover {
    background: linear-gradient(135deg, #0070e0 0%, #1890ff 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(24, 144, 255, 0.3);
}

.unified-btn-primary:active {
    transform: translateY(0);
}

.unified-btn-primary:disabled {
    background: #d9d9d9;
    color: #999;
    cursor: not-allowed;
    box-shadow: none;
}

.unified-btn-success {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: #fff;
    border: none;
}

.unified-btn-success:hover {
    background: linear-gradient(135deg, #218838 0%, #1aa179 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

.unified-btn-warning {
    background: linear-gradient(135deg, #ff6600 0%, #ff8800 100%);
    color: #fff;
    border: none;
}

.unified-btn-warning:hover {
    background: linear-gradient(135deg, #ff5500 0%, #ff7700 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 102, 0, 0.3);
}

.unified-btn-danger {
    background: linear-gradient(135deg, #dc3545 0%, #ff4757 100%);
    color: #fff;
    border: none;
}

.unified-btn-danger:hover {
    background: linear-gradient(135deg, #c82333 0%, #dc3545 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
}

/* 统一输入框样式 */
.unified-input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-size: 13px;
    line-height: 1.6;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.unified-input:focus {
    outline: none;
    border-color: #1890ff;
    box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.1);
}

/* 统一文本域样式 */
.unified-textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    resize: vertical;
    font-family: inherit;
    font-size: 13px;
    line-height: 1.6;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.unified-textarea:focus {
    outline: none;
    border-color: #1890ff;
    box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.1);
}

/* 统一错误提示样式 */
.unified-error {
    color: #ff4757;
    font-size: 12px;
    padding: 8px 12px;
    background: #fff1f0;
    border-radius: 4px;
    border-left: 3px solid #ff4757;
}

/* 动画效果 */
@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ====================
   密码验证模态框特有样式
===================== */

.password-input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* 操作说明样式 */
.action-description {
    padding: 12px 15px;
    background-color: #f5f7fa;
    border-radius: 6px;
    border-left: 3px solid #1890ff;
    font-size: 13px;
    line-height: 1.6;
    color: #666;
}

.action-description.refresh {
    background-color: #f0f7ff;
    border-left-color: #1890ff;
}

.action-description.edit {
    background-color: #f6ffed;
    border-left-color: #52c41a;
}

.action-description.delete {
    background-color: #fff1f0;
    border-left-color: #ff4d4f;
}

.action-description p {
    margin: 0;
    color: #333;
}

/* ====================
   举报模态框特有样式
===================== */

.report-section {
    display: flex;
    flex-direction: column;
}

.report-types {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.report-type-item {
    display: flex;
    align-items: center;
    padding: 10px 12px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 13px;
    background: #fff;
}

.report-type-item:hover {
    background-color: #f8f9fa;
    border-color: #ff6600;
}

.report-type-item input[type="radio"] {
    margin-right: 8px;
    accent-color: #ff6600;
}

.report-type-item:has(input:checked) {
    background-color: #fff3e0;
    border-color: #ff6600;
    color: #ff6600;
    font-weight: 500;
}

/* ====================
   置顶模态框样式
===================== */

.top-modal {
    display: none;
    position: fixed;
    z-index: 99999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.6);
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}

.top-modal-content {
    background-color: #fff;
    border-radius: 8px;
    width: 500px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 6px 24px rgba(0,0,0,0.15);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.top-modal-header {
    padding: 12px 20px 10px;
    border-bottom: 1px solid #e8e8e8;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
    background: #fafbfc;
    height: 42px;
    box-sizing: border-box;
}

.top-modal-header h3 {
    margin: 0;
    color: #333;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: -0.3px;
}

.top-modal-close {
    font-size: 20px;
    cursor: pointer;
    color: #999;
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    background: transparent;
    border: none;
}

.top-modal-close:hover {
    color: #666;
    background: #f5f5f5;
}

.top-modal-body {
    padding: 15px 20px 18px;
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    min-height: 0;
    box-sizing: border-box;
}

#topConfigs {
    min-height: 104px;
    height: auto;
    position: relative;
    margin-bottom: 12px;
}

.top-type-tabs {
    display: flex;
    margin-bottom: 12px;
    margin-top: 0;
    border-bottom: 1px solid #e0e0e0;
    padding: 0;
    background: none;
    height: 36px;
}

.top-type-tab {
    flex: 1;
    padding: 8px 16px;
    border: none;
    background: none;
    cursor: pointer;
    font-size: 13px;
    color: #666;
    border-radius: 0;
    font-weight: 500;
    position: relative;
    border-bottom: 2px solid transparent;
}

.top-type-tab.active {
    color: #007bff;
    background: none;
    border-bottom-color: #007bff;
    font-weight: 600;
}

.top-type-tab:hover:not(.active) {
    color: #333;
    background: rgba(0,123,255,0.05);
}

.config-list {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 8px;
    padding: 0;
    margin-bottom: 0;
    height: 100%;
}

.config-placeholder {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    padding: 0;
    margin-bottom: 0;
}

.placeholder-item {
    border: 1px dashed #d9d9d9;
    border-radius: 6px;
    padding: 8px 6px;
    min-height: 48px;
    background: #fafafa;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.6;
    }
}

.config-item {
    border: 0.5px solid #d9d9d9;
    border-radius: 6px;
    padding: 8px 6px;
    cursor: pointer;
    min-height: 48px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    background: #fff;
}

.config-item:hover {
    border-color: #007bff;
    box-shadow: 0 2px 4px rgba(0,123,255,0.12);
    transform: translateY(-1px);
    background: #f8fbff;
    z-index: 2;
}

.config-item.selected {
    border-color: #007bff;
    background: #f0f8ff;
    box-shadow: 0 2px 4px rgba(0,123,255,0.12);
    z-index: 3;
}

.config-content {
    text-align: center;
    width: 100%;
}

.config-title {
    font-weight: 600;
    color: #333;
    font-size: 12px;
    margin-bottom: 2px;
    line-height: 1.2;
}

.config-price {
    color: #ff4757;
    font-weight: 700;
    font-size: 14px;
    line-height: 1;
}

.config-days {
    color: #666;
    font-size: 10px;
    margin-top: 2px;
    line-height: 1;
}

.discount-corner {
    position: absolute;
    top: -1px;
    right: -1px;
    background: linear-gradient(135deg, #ff4757 0%, #ff3742 100%);
    color: white;
    font-size: 8px;
    font-weight: bold;
    padding: 1px 3px;
    border-radius: 0 4px 0 4px;
    min-width: 14px;
    text-align: center;
    box-shadow: 0 1px 2px rgba(255, 71, 87, 0.3);
}

.payment-section {
    border-top: 1px solid #e0e0e0;
    padding-top: 12px;
    margin-top: auto;
    min-height: 85px;
    display: flex;
    flex-direction: column;
}

.section-title {
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
    font-size: 13px;
}

.payment-methods {
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
    justify-content: center;
    align-items: center;
}

.payment-methods.inline {
    display: inline-flex !important;
    margin-bottom: 0 !important;
    justify-content: flex-end !important;
    flex-wrap: nowrap !important;
    width: auto !important;
    vertical-align: middle !important;
}

.payment-method {
    flex: 0 0 auto;
    min-width: 85px;
    max-width: 105px;
    border: 1px solid #d9d9d9;
    border-radius: 6px;
    padding: 8px 10px;
    text-align: center;
    cursor: pointer;
    background: #fff;
    box-shadow: 0 1px 2px rgba(0,0,0,0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.payment-method:hover {
    border-color: #007bff;
    box-shadow: 0 2px 4px rgba(0,123,255,0.12);
    transform: translateY(-1px);
    background: #f8fbff;
}

.payment-method.selected {
    border-color: #007bff;
    background: #f0f8ff;
    box-shadow: 0 2px 4px rgba(0,123,255,0.12);
}

.payment-image {
    width: 100%;
    height: auto;
    max-width: 80px;
    max-height: 40px;
    object-fit: contain;
    border-radius: 4px;
    padding: 0;
    margin: 0;
}

.submit-btn {
    width: 100%;
    padding: 10px 16px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 0;
    box-shadow: 0 2px 6px rgba(0,123,255,0.2);
}

.submit-btn:hover:not(:disabled) {
    background: #0056b3;
    box-shadow: 0 3px 8px rgba(0,123,255,0.3);
    transform: translateY(-1px);
}

.submit-btn:disabled {
    background: #e9ecef;
    color: #6c757d;
    cursor: not-allowed;
    opacity: 1;
    box-shadow: none;
}

.loading, .error, .no-configs {
    text-align: center;
    padding: 15px;
    color: #666;
    font-size: 12px;
}

.error {
    color: #dc3545;
}

.success {
    color: #28a745;
}

/* 支付相关样式 */
.order-details {
    padding: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.order-info {
    flex: 1;
    margin-bottom: 24px;
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
}

.order-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #e9ecef;
    font-size: 15px;
}

.order-item.total {
    font-weight: 600;
    font-size: 18px;
    border-top: 2px solid #007bff;
}

/* ====================
   扫码支付页面 - 简洁大方设计
===================== */

.payment-qrcode-page {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 0;
}

/* 主体区域 - 二维码展示 */
.qr-main-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 0 20px;
    min-height: 0;
}

/* 二维码容器 */
.qr-code-wrapper {
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    background: #fff;
    border-radius: 8px;
    padding: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    animation: zoomIn 0.4s ease;
}

.qr-code-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

/* 支付金额 */
.payment-price {
    font-size: 28px;
    font-weight: 700;
    color: #ff4757;
    margin-bottom: 8px;
    letter-spacing: 1px;
    animation: fadeInUp 0.5s ease;
}

/* 支付提示 */
.payment-hint {
    font-size: 13px;
    color: #666;
    text-align: center;
    margin-bottom: 12px;
    animation: fadeInUp 0.6s ease;
}

/* 状态区域 */
.qr-status-section {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 16px 20px;
    margin-top: 0;
}

.status-indicator {
    font-size: 13px;
    color: #666;
    font-weight: 500;
    text-align: center;
}

.countdown-timer {
    font-size: 13px;
    text-align: center;
}

.countdown-timer span {
    color: #ff4757;
    font-weight: 600;
    font-family: 'Courier New', monospace;
}

/* 操作按钮区域 */
.qr-actions-section {
    display: flex;
    gap: 12px;
    padding: 16px 20px;
    background: #fff;
}

.qr-action-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 12px 16px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.qr-action-btn i {
    font-size: 14px;
}

.qr-btn-check {
    background: #fff;
    color: #666;
    border: 1px solid #e0e0e0;
}

.qr-btn-check:hover {
    background: #f8f9fa;
    border-color: #007bff;
    color: #007bff;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 123, 255, 0.15);
}

.qr-btn-done {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: #fff;
    border: none;
}

.qr-btn-done:hover {
    background: linear-gradient(135deg, #218838 0%, #1aa179 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

.qr-btn-done:active {
    transform: translateY(0);
}

/* 动画效果 */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* 旧样式兼容保留 */
