/* order.css - 订单查询页面特有样式 */

/* 面包屑导航 */
.breadcrumb {
    padding: 15px 0;
    font-size: 14px;
    color: #666;
}

.breadcrumb a {
    color: #e02b41;
    text-decoration: none;
}

/* 页面标题 */
.page-header {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-title {
    font-size: 24px;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.page-title i {
    margin-right: 10px;
    color: #e02b41;
}

.page-description {
    color: #666;
    font-size: 16px;
}

/* 查询表单 */
.order-query-form {
    background: #fff;
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #333;
}

.form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
}

.form-group input:focus {
    outline: none;
    border-color: #e02b41;
    box-shadow: 0 0 5px rgba(224, 43, 65, 0.3);
}

.query-btn {
    width: 100%;
    padding: 12px;
    background: #e02b41;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.query-btn:hover {
    background: #c41e32;
}

/* 查询结果 */
.query-results {
    background: #fff;
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
}

.results-header h2 {
    font-size: 20px;
    color: #333;
}

.order-status {
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: bold;
}

.status-shipped {
    background: #e8f5e9;
    color: #2e7d32;
}

.status-processing {
    background: #fff3e0;
    color: #ef6c00;
}

.status-delivered {
    background: #e3f2fd;
    color: #1565c0;
}

.order-info {
    margin-bottom: 20px;
}

.info-row {
    display: flex;
    margin-bottom: 15px;
}

.info-item {
    flex: 1;
}

.info-item strong {
    color: #333;
}

/* 订单商品 */
.order-items {
    margin-bottom: 20px;
}

.order-items h3 {
    font-size: 18px;
    margin-bottom: 15px;
    color: #333;
}

.items-list {
    border: 1px solid #f0f0f0;
    border-radius: 5px;
}

.order-item {
    display: flex;
    padding: 15px;
    border-bottom: 1px solid #f0f0f0;
}

.order-item:last-child {
    border-bottom: none;
}

.item-image {
    width: 80px;
    height: 80px;
    border-radius: 5px;
    overflow: hidden;
    margin-right: 15px;
}

.item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.item-details {
    flex: 1;
}

.item-name {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 5px;
    color: #333;
}

.item-sku {
    font-size: 12px;
    color: #666;
    margin-bottom: 5px;
}

.item-price {
    font-size: 16px;
    color: #e02b41;
    font-weight: bold;
    margin-bottom: 5px;
}

.item-quantity {
    font-size: 14px;
    color: #666;
}

/* 订单操作 */
.order-actions {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.action-btn {
    padding: 10px 15px;
    background: #f8f8f8;
    border: 1px solid #ddd;
    border-radius: 5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
}

.action-btn:hover {
    background: #e9e9e9;
}

/* 配送信息 */
.shipping-info, .payment-info {
    margin-bottom: 20px;
}

.shipping-info h3, .payment-info h3 {
    font-size: 18px;
    margin-bottom: 15px;
    color: #333;
}

.shipping-details, .payment-details {
    background: #f8f8f8;
    padding: 15px;
    border-radius: 5px;
}

.shipping-details p, .payment-details p {
    margin-bottom: 8px;
}

.shipping-details a {
    color: #e02b41;
    text-decoration: none;
}

.shipping-details a:hover {
    text-decoration: underline;
}

/* 无结果提示 */
.no-results {
    background: #fff;
    border-radius: 10px;
    padding: 40px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
}

.no-results-icon {
    font-size: 48px;
    color: #e02b41;
    margin-bottom: 20px;
}

.no-results h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: #333;
}

.no-results p {
    font-size: 16px;
    color: #666;
    margin-bottom: 20px;
}

.suggestions {
    text-align: left;
    background: #f8f8f8;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
}

.suggestions p {
    font-weight: bold;
    margin-bottom: 10px;
}

.suggestions ul {
    padding-left: 20px;
}

.suggestions li {
    margin-bottom: 5px;
    color: #666;
}

.support-btn {
    padding: 12px 20px;
    background: #e02b41;
    color: white;
    border: none;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.support-btn:hover {
    background: #c41e32;
}

/* FAQ区域 */
.order-faq {
    background: #fff;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.order-faq h2 {
    font-size: 20px;
    margin-bottom: 20px;
    color: #333;
}

.faq-item {
    border-bottom: 1px solid #f0f0f0;
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-question {
    padding: 15px 0;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
}

.faq-question i {
    transition: transform 0.3s;
}

.faq-question.active i {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 0 15px;
    display: none;
}

.faq-answer p {
    color: #666;
    line-height: 1.6;
}

/* 添加错误样式 */
.form-group.error input {
    border-color: #ff3860;
}

.error-message {
    color: #ff3860;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: none;
}

.form-group.error .error-message {
    display: block;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .info-row {
        flex-direction: column;
        gap: 10px;
    }
    
    .order-actions {
        flex-direction: column;
    }
    
    .action-btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .order-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .item-image {
        margin-right: 0;
        margin-bottom: 15px;
    }
}