/**
 * 订单详情页样式表
 *
 * @package Land_Custom
 */

/* ===== 容器基础样式 ===== */
.land-order-detail-container {
    max-width: 680px;
    margin: 40px auto;
    padding: 0 16px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: #333;
    line-height: 1.6;
}

/* ===== 未找到订单提示 ===== */
.land-order-not-found {
    text-align: center;
    padding: 60px 20px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.land-order-not-found h2 {
    font-size: 22px;
    color: #666;
    margin-bottom: 12px;
}

.land-order-not-found p {
    font-size: 15px;
    color: #999;
    margin-bottom: 24px;
}

/* ===== 头部区域 ===== */
.land-order-header {
    text-align: center;
    padding: 30px 24px;
    background: #fff;
    border-radius: 12px 12px 0 0;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.land-order-title {
    font-size: 20px;
    font-weight: 600;
    color: #222;
    margin: 0 0 8px;
}

.land-order-number {
    font-size: 14px;
    color: #888;
    margin-bottom: 12px;
}

/* ===== 状态徽章 ===== */
.land-order-status-badge {
    display: inline-block;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    text-transform: capitalize;
}

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

.land-status-processing {
    background: #e3f2fd;
    color: #2196f3;
}

.land-status-completed {
    background: #e8f5e9;
    color: #4caf50;
}

.land-status-cancelled {
    background: #fbe9e7;
    color: #f44336;
}

.land-status-refunded {
    background: #f5f5f5;
    color: #9e9e9e;
}

.land-status-failed {
    background: #fbe9e7;
    color: #f44336;
}

.land-status-on-hold {
    background: #fffde7;
    color: #f9a825;
}

.land-status-default {
    background: #f5f5f5;
    color: #666;
}

/* ===== 分隔线 ===== */
.land-order-divider {
    border: none;
    border-top: 1px solid #eee;
    margin: 0;
}

/* ===== 产品信息卡片 ===== */
.land-order-product-card {
    display: flex;
    gap: 20px;
    padding: 24px;
    background: #fff;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.land-order-product-image {
    flex-shrink: 0;
    width: 120px;
    height: 120px;
    border-radius: 8px;
    overflow: hidden;
    background: #f9f9f9;
}

.land-order-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.land-order-product-info {
    flex: 1;
    min-width: 0;
}

.land-order-product-name {
    font-size: 16px;
    font-weight: 600;
    color: #222;
    margin: 0 0 10px;
    word-break: break-word;
}

.land-order-package-name,
.land-order-quantity,
.land-order-unit-price,
.land-order-total {
    font-size: 14px;
    margin-bottom: 6px;
}

.land-order-label {
    color: #888;
}

.land-order-value {
    color: #333;
    font-weight: 500;
}

.land-order-total-amount {
    font-size: 16px;
    font-weight: 700;
    color: #222;
}

/* ===== 信息区块 ===== */
.land-order-sections {
    margin-top: 2px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.land-order-info-section,
.land-order-shipping-section {
    padding: 20px 24px;
    background: #fff;
}

.land-order-shipping-section {
    border-radius: 0 0 12px 12px;
}

.land-order-section-title {
    font-size: 16px;
    font-weight: 600;
    color: #222;
    margin: 0 0 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f0f0f0;
}

.land-order-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
}

.land-order-info-row + .land-order-info-row {
    border-top: 1px solid #f8f8f8;
}

.land-order-info-label {
    font-size: 14px;
    color: #888;
    flex-shrink: 0;
}

.land-order-info-value {
    font-size: 14px;
    color: #333;
    text-align: right;
    word-break: break-word;
    margin-left: 16px;
}

/* ===== 按钮 ===== */
.land-order-actions {
    text-align: center;
    padding: 24px 0 0;
}

.land-order-btn {
    display: inline-block;
    padding: 12px 32px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    text-align: center;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
}

.land-order-btn-home {
    background: #333;
    color: #fff;
}

.land-order-btn-home:hover {
    background: #555;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* ===== 响应式适配 ===== */
@media (max-width: 480px) {
    .land-order-detail-container {
        margin: 20px auto;
        padding: 0 12px;
    }

    .land-order-header {
        padding: 24px 16px;
    }

    .land-order-title {
        font-size: 18px;
    }

    .land-order-product-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 20px 16px;
    }

    .land-order-product-image {
        width: 100px;
        height: 100px;
    }

    .land-order-info-section,
    .land-order-shipping-section {
        padding: 16px;
    }

    .land-order-info-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .land-order-info-value {
        text-align: left;
        margin-left: 0;
    }
}
