/* ========================================
   下单表单样式 - Order Form Styles
   独立模块，无需登录即可访问
   ======================================== */

/* 下单页面主体 */
.order-body {
    background-color: #f5f6fa;
    padding: 30px 0 50px;
    min-height: calc(100vh - 200px);
}

.order-container {
    max-width: 960px;
}

/* ========== 页面标题 ========== */
.order-page-header {
    text-align: center;
    margin-bottom: 25px;
    padding: 20px 0;
}

.order-page-header h2 {
    font-size: 22px;
    color: #333;
    font-weight: bold;
    letter-spacing: 2px;
    margin-bottom: 8px;
}

.order-page-header h2 i {
    color: #667eea;
    font-size: 24px;
    margin-right: 8px;
}

.order-page-header p {
    font-size: 13px;
    color: #999;
}

/* 表单容器 */
.order-form-wrap {
    background: transparent;
}

/* ========== 订单区域（Section） ========== */
.order-section {
    background: #fff;
    border-radius: 6px;
    margin-bottom: 18px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    border: 1px solid #eee;
}

.section-title {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    padding: 13px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    font-size: 14px;
    font-weight: bold;
    letter-spacing: 1px;
}

.section-title i {
    font-size: 16px;
    margin-right: 7px;
}

.section-subtitle {
    font-size: 11px;
    font-weight: normal;
    opacity: 0.85;
    margin-left: 10px;
    letter-spacing: 0;
}

.section-body {
    padding: 22px 20px;
}

/* ========== 表单项样式 ========== */
.form-item-wrap {
    margin-bottom: 15px;
}

.form-item-wrap .form-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #444;
    margin-bottom: 5px;
}

.form-item-wrap .form-label.required::after {
    content: ' *';
    color: #e74c3c;
    margin-left: 2px;
}

.form-item-wrap .layui-input,
.form-item-wrap .layui-select,
.form-item-wrap .layui-textarea {
    border-radius: 4px;
    border-color: #ddd;
    transition: all 0.3s;
    height: 38px;
    line-height: 36px;
}

.form-item-wrap .layui-input:focus,
.form-item-wrap .layui-textarea:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.08);
}

.form-tip {
    font-size: 11px;
    color: #aaa;
    margin-top: 3px;
    line-height: 1.4;
}

.form-tip i {
    font-size: 12px;
    color: #f39c12;
    margin-right: 2px;
}

/* 表单行间距 */
.form-row {
    margin-left: -8px !important;
    margin-right: -8px !important;
}

.form-row > div {
    padding: 0 8px;
}

.size-row .form-item-wrap {
    margin-bottom: 12px;
}

/* ========== 文件上传区域 ========== */
.upload-area {
    border: 2px dashed #d9d9d9;
    border-radius: 6px;
    padding: 18px 20px;
    text-align: left;
    background: #fafbfc;
    transition: border-color 0.3s, background 0.3s;
}

.upload-area:hover {
    border-color: #667eea;
    background: #f0f4ff;
}

.upload-area .upload-hint {
    display: inline-block;
    vertical-align: middle;
    margin-left: 12px;
    font-size: 12px;
    color: #e74c3c;
}

.upload-file-list {
    list-style: none;
    padding: 0;
    margin: 10px 0 0;
}

.upload-file-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    background: #f0f7ff;
    border-radius: 4px;
    margin-top: 6px;
    font-size: 13px;
    color: #333;
}

.upload-file-list li i.layui-icon-file {
    color: #1890ff;
    margin-right: 6px;
}

.del-file {
    cursor: pointer;
    color: #999;
    transition: color 0.2s;
}

.del-file:hover {
    color: #e74c3c;
}

/* ========== 提交按钮区域 ========== */
.order-actions {
    text-align: center;
    padding: 30px 20px;
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    border: 1px solid #eee;
}

.order-btn-reset {
    min-width: 120px;
    margin-right: 15px;
    border-radius: 4px;
}

.order-btn-submit {
    min-width: 180px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    font-size: 15px;
    letter-spacing: 3px;
    border-radius: 4px;
}

.order-btn-submit:hover {
    opacity: 0.92;
}

/* LayUI select optgroup 样式微调 */
.layui-form-select dl dd.layui-this {
    background-color: #667eea;
}

/* ========== 响应式适配 ========== */

/* 平板及以下 */
@media screen and (max-width: 992px) {
    .order-container {
        max-width: 90%;
        padding: 0 15px;
    }

    .section-title {
        font-size: 13px;
        padding: 11px 15px;
    }

    .section-body {
        padding: 18px 15px;
    }
}

/* 手机端 */
@media screen and (max-width: 576px) {
    .order-body {
        padding: 15px 0 30px;
    }

    .order-container {
        max-width: 100%;
        padding: 0 10px;
    }

    .order-page-header h2 {
        font-size: 17px;
    }

    .order-page-header h2 i {
        font-size: 19px;
    }

    .section-title {
        font-size: 13px;
        padding: 10px 12px;
    }

    .section-subtitle {
        display: block;
        width: 100%;
        margin-left: 0;
        margin-top: 3px;
        opacity: 0.75;
    }

    .section-body {
        padding: 15px 12px;
    }

    .form-row > div {
        padding: 0 0 10px 0;
    }

    .upload-hint {
        display: block !important;
        margin-left: 0 !important;
        margin-top: 10px !important;
    }

    .order-actions .layui-btn-lg {
        display: block;
        width: 100%;
        margin: 8px 0;
        border-radius: 4px;
    }

    .order-btn-reset {
        margin-right: 0;
        order: 2;
    }

    .order-btn-submit {
        order: 1;
    }

    .form-item-wrap .layui-input,
    .form-item-wrap .layui-select {
        height: 40px;
        line-height: 38px;
    }
}
