/* 月结支付申请页面样式 - 参考custom-order设计风格 */

/* 主容器 */
.main-container {
    max-width: 1500px;
    width: 100%;
    margin: 0 auto;
    padding: 40px;
    background-color: #f8f9fa;
    box-sizing: border-box;
}

.custom-order-container {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 0 25px rgba(0, 0, 0, 0.08);
    padding: 35px;
    border-top: 4px solid var(--primary-color);
    position: relative;
    overflow: hidden;
}

.custom-order-container::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle at top right, rgba(21, 117, 64, 0.08), transparent 70%);
    border-top-right-radius: 10px;
    z-index: 0;
    pointer-events: none;
}

/* 页面标题 */
.page-title {
    font-size: 24px;
    color: var(--primary-color);
    margin-bottom: 10px;
    position: relative;
    padding-left: 14px;
    font-weight: 600;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
}

.page-title i {
    margin-right: 10px;
    color: var(--primary-color);
    font-size: 24px;
}

.page-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 24px;
    width: 4px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

.page-subtitle {
    font-size: 14px;
    color: #666;
    margin: 0 0 20px 0px;
    font-style: italic;
}

/* 申请表单 */
.application-form {
    position: relative;
    z-index: 1;
}

/* 表单区块 */
.form-section {
    margin-bottom: 30px;
    padding: 20px 22px;
    background-color: #fcfcfc;
    border-radius: 8px;
    border-left: 3px solid #ddf4e4;
    position: relative;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.03);
    transition: all 0.3s;
}

.form-section:hover {
    border-left-color: var(--primary-color);
    background-color: #fafffe;
}

/* 区块标题 */
.section-title {
    font-size: 20px;
    color: #333;
    margin-bottom: 8px;
    font-weight: 500;
    position: relative;
    display: inline-block;
}

.section-title i {
    margin-right: 10px;
    color: var(--primary-color);
}

.section-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 100%;
    height: 2px;
    background: linear-gradient(to right, var(--primary-color), transparent);
}

.section-desc {
    font-size: 14px;
    color: #999;
    margin-bottom: 25px;
    font-style: italic;
}

/* 表单行 */
.form-row {
    display: flex;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

/* 表单组 */
.form-group {
    flex: 1;
    min-width: 250px;
    margin-right: 15px;
    margin-bottom: 10px;
}

/* 占满整行的表单组 */
.form-group-full {
    flex: 0 0 100%;
    max-width: 100%;
}

/* 小节标题 */
.subsection-title {
    font-size: 16px;
    color: #444;
    margin: 20px 0 10px 0;
    font-weight: 500;
    position: relative;
    display: inline-block;
    padding-left: 8px;
    border-left: 3px solid var(--primary-color);
}

.subsection-title i {
    margin-right: 8px;
    color: var(--primary-color);
}

.form-group:last-child {
    margin-right: 0;
}

/* 表单标签 */
.form-label {
    display: block;
    font-size: 14px;
    color: #444;
    margin-bottom: 6px;
    font-weight: 500;
}

.form-label i {
    margin-right: 6px;
    color: var(--primary-color);
}

.required {
    color: #f56c6c;
    margin-left: 4px;
}

/* 输入框 */
.form-control {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.3s;
    background-color: #fff;
    color: #333;
    height: 38px;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(21, 117, 64, 0.15);
    outline: none;
}

.form-control:disabled {
    background: #f5f5f5;
    cursor: not-allowed;
    color: #999;
}

textarea.form-control {
    min-height: 60px;
    height: 60px;
    resize: vertical;
    line-height: 1.4;
}

/* 字段提示 */
.form-text {
    font-size: 14px;
    color: #666;
    margin-top: 8px;
    font-style: italic;
}

.form-text i {
    color: #909399;
    margin-right: 5px;
}

/* 协议确认 */
.agreement-section {
    padding: 20px 25px !important;
    background-color: #f9fff9 !important;
    border-left: 3px solid var(--primary-color) !important;
}

.agreement-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 15px;
    color: #444;
    transition: all 0.3s;
    padding: 8px 15px;
    border-radius: 6px;
    border: 1px solid transparent;
}

.agreement-label:hover {
    background-color: #f5f5f5;
    border-color: #e0e0e0;
}

.agreement-label input[type="checkbox"] {
    margin-right: 8px;
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--primary-color);
}

.agreement-label input[type="checkbox"]:disabled {
    cursor: not-allowed;
}

.agreement-text {
    font-size: 15px;
    color: #444;
    font-weight: 500;
}

.agreement-text a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 600;
}

.agreement-text a:hover {
    color: #0d5e30;
    text-decoration: underline;
}

/* 表单操作按钮 */
.form-actions {
    text-align: center;
    margin-top: 50px;
    position: relative;
}

.form-actions::before {
    content: '';
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--primary-color), transparent);
}

.submit-btn {
    background: linear-gradient(135deg, #1a8d50, #0d5e30);
    color: #fff;
    border: none;
    padding: 16px 40px;
    font-size: 18px;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 600;
    min-width: 200px;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(21, 117, 64, 0.25);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.submit-btn i {
    margin-right: 10px;
    font-size: 20px;
}

.submit-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #0d5e30, #1a8d50);
    box-shadow: 0 6px 20px rgba(21, 117, 64, 0.35);
    transform: translateY(-2px);
}

.submit-btn:active {
    transform: translateY(1px);
    box-shadow: 0 2px 10px rgba(21, 117, 64, 0.3);
}

.submit-btn:disabled {
    background: linear-gradient(135deg, #a0a0a0, #c0c0c0);
    cursor: not-allowed;
    box-shadow: none;
    transform: none !important;
}

/* 驳回提示区域 */
.reject-alert {
    margin-bottom: 30px;
    padding: 0;
    background: linear-gradient(135deg, #fff5f5 0%, #ffe9e9 100%);
    border-radius: 12px;
    border: 2px solid #ff4d4f;
    overflow: hidden;
    animation: slideInRight 0.5s ease;
    box-shadow: 0 4px 20px rgba(255, 77, 79, 0.15);
}

.reject-alert-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 25px;
    background: linear-gradient(135deg, #ff4d4f 0%, #d32f2f 100%);
    color: white;
}

.reject-alert-header i {
    font-size: 28px;
}

.reject-alert-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
}

.reject-alert-content {
    padding: 25px;
}

.reject-alert-reason {
    font-size: 16px;
    color: #333;
    margin: 0 0 15px 0;
    line-height: 1.8;
}

.reject-alert-reason strong {
    color: #d32f2f;
    font-weight: 600;
}

.reject-alert-tip {
    font-size: 14px;
    color: #666;
    margin: 0;
    padding: 12px 15px;
    background: rgba(255, 77, 79, 0.1);
    border-radius: 6px;
    border-left: 3px solid #ff4d4f;
}

/* 审核中/已通过大卡片 */
.status-large-card {
    margin-top: 40px;
    padding: 60px 40px;
    text-align: center;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    animation: fadeInUp 0.6s ease;
}

.status-large-icon {
    width: 120px;
    height: 120px;
    margin: 0 auto 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.status-large-icon i {
    font-size: 64px;
    color: white;
}

.status-icon-pending {
    background: linear-gradient(135deg, #ff9800 0%, #f57c00 100%);
}

.status-icon-approved {
    background: linear-gradient(135deg, #4caf50 0%, #388e3c 100%);
}

.status-large-title {
    font-size: 32px;
    font-weight: 600;
    margin: 0 0 20px 0;
    color: #333;
}

.status-large-desc {
    font-size: 16px;
    color: #666;
    line-height: 1.8;
    margin: 0 0 30px 0;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.status-large-time {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: white;
    border-radius: 50px;
    font-size: 14px;
    color: #666;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    margin-bottom: 30px;
}

.status-large-time i {
    font-size: 16px;
    color: var(--primary-color);
}

.status-large-actions {
    margin-top: 30px;
}

.btn-view-detail {
    background: linear-gradient(135deg, #1a8d50, #0d5e30);
    color: white;
    border: none;
    padding: 14px 36px;
    font-size: 16px;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(21, 117, 64, 0.25);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-view-detail:hover {
    background: linear-gradient(135deg, #0d5e30, #1a8d50);
    box-shadow: 0 6px 20px rgba(21, 117, 64, 0.35);
    transform: translateY(-2px);
}

.btn-view-detail i {
    font-size: 18px;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 平台回复区 - 审核状态 */
.platform-reply {
    margin-bottom: 25px;
    padding: 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 10px;
    border-left: 4px solid var(--primary-color);
    animation: slideInRight 0.5s ease;
}

.reply-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.reply-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.reply-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.reply-name {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.reply-time {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    color: #666;
}

.reply-time i {
    font-size: 14px;
}

/* 状态徽章 */
.status-badge {
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
}

.status-pending {
    background-color: #fff3e0;
    color: #f57c00;
}

.status-approved {
    background-color: #e8f5e9;
    color: #388e3c;
}

.status-rejected {
    background-color: #ffebee;
    color: #d32f2f;
}

.reply-content {
    font-size: 15px;
    line-height: 1.8;
    color: #444;
    padding: 15px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    position: relative;
}

.reply-content::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 10px;
    font-size: 48px;
    color: var(--primary-color);
    opacity: 0.15;
}

.reject-reason {
    margin-top: 15px;
    padding: 12px 15px;
    background-color: #fff1f0;
    border-left: 3px solid #ff4d4f;
    border-radius: 4px;
    color: #d32f2f;
}

.reject-reason strong {
    font-weight: 600;
    margin-right: 8px;
}

/* 演示控制按钮样式（正式环境需删除） */
.demo-controls {
    animation: slideInRight 0.5s ease;
}

.demo-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.demo-btn i {
    font-size: 16px;
}

.demo-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.demo-btn-pending {
    background-color: #fff3e0;
    color: #f57c00;
    border: 2px solid #f57c00;
}

.demo-btn-pending:hover {
    background-color: #f57c00;
    color: white;
}

.demo-btn-approved {
    background-color: #e8f5e9;
    color: #388e3c;
    border: 2px solid #388e3c;
}

.demo-btn-approved:hover {
    background-color: #388e3c;
    color: white;
}

.demo-btn-rejected {
    background-color: #ffebee;
    color: #d32f2f;
    border: 2px solid #d32f2f;
}

.demo-btn-rejected:hover {
    background-color: #d32f2f;
    color: white;
}

.demo-btn-reset {
    background-color: #f5f5f5;
    color: #666;
    border: 2px solid #999;
}

.demo-btn-reset:hover {
    background-color: #999;
    color: white;
}

/* 动画 */
@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes rotating {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.rotating {
    animation: rotating 1s linear infinite;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .main-container {
        padding: 20px;
        width: 100%;
    }

    .custom-order-container {
        padding: 25px 20px;
    }

    .page-title {
        font-size: 26px;
    }

    .page-subtitle {
        font-size: 14px;
        margin-left: 40px;
    }

    .form-section {
        padding: 20px 15px;
    }

    .section-title {
        font-size: 20px;
    }

    .form-group {
        flex: 100%;
        margin-right: 0;
    }

    .form-actions {
        padding: 20px 16px;
    }

    .submit-btn {
        width: 100%;
        justify-content: center;
    }

    /* 平台回复区移动端样式 */
    .platform-reply {
        padding: 15px;
    }

    .reply-avatar {
        width: 40px;
        height: 40px;
    }

    .reply-name {
        font-size: 15px;
    }

    .reply-time {
        font-size: 12px;
    }

    .reply-content {
        font-size: 14px;
        padding: 12px;
    }

    .reply-content::before {
        font-size: 36px;
        top: -8px;
    }

    .reply-header {
        flex-wrap: wrap;
    }

    .status-badge {
        width: 100%;
        text-align: center;
        margin-top: 10px;
    }
    
    /* 演示控制按钮移动端 */
    .demo-controls {
        padding: 15px !important;
    }
    
    .demo-btn {
        flex: 1;
        min-width: 120px;
        justify-content: center;
    }
    
    /* 驳回提示移动端 */
    .reject-alert-header {
        padding: 15px 20px;
    }
    
    .reject-alert-header i {
        font-size: 24px;
    }
    
    .reject-alert-header h3 {
        font-size: 18px;
    }
    
    .reject-alert-content {
        padding: 20px;
    }
    
    .reject-alert-reason {
        font-size: 15px;
    }
    
    /* 审核状态大卡片移动端 */
    .status-large-card {
        padding: 40px 20px;
        margin-top: 30px;
    }
    
    .status-large-icon {
        width: 100px;
        height: 100px;
        margin-bottom: 25px;
    }
    
    .status-large-icon i {
        font-size: 52px;
    }
    
    .status-large-title {
        font-size: 26px;
        margin-bottom: 15px;
    }
    
    .status-large-desc {
        font-size: 15px;
        margin-bottom: 25px;
    }
    
    .status-large-time {
        font-size: 13px;
        padding: 10px 20px;
    }
    
    .btn-view-detail {
        width: 100%;
        justify-content: center;
        padding: 12px 30px;
    }
}

/* 打印样式 */
@media print {
    .main-container {
        background: #fff;
        padding: 0;
    }

    .form-actions,
    .agreement-section {
        display: none;
    }

    .custom-order-container {
        box-shadow: none;
    }
}
