

.content {
    /* max-width: 1200px; */
    margin: 2rem auto;
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}
h1 {
    color: #e91e63;
    text-align: center;
    margin-bottom: 30px;
}
.form-group {
    margin-bottom: 20px;
}
label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
}
input[type="text"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
}
button {
    background-color: #e91e63;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    width: 100%;
}
button:hover {
    background-color: #c2185b;
}
.error {
    color: #f44336;
    margin: 15px 0;
    padding: 10px;
    background: #ffebee;
    border-radius: 4px;
}

.order-items {
    margin: 20px 0;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
}

.order-items h3 {
    background: #f8f9fa;
    padding: 15px;
    margin: 0;
    border-bottom: 1px solid #e0e0e0;
    font-size: 18px;
    color: #333;
}

/* 桌面端表格样式 */
.items-table {
    width: 100%;
    border-collapse: collapse;
}

.items-table th {
    background: #f5f5f5;
    padding: 12px 15px;
    text-align: left;
    font-weight: 600;
    color: #333;
    border-bottom: 1px solid #e0e0e0;
}

.items-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #f0f0f0;
}

.items-table tr:last-child td {
    border-bottom: none;
}

.items-table tr:hover {
    background: #f8f9fa;
}

.item-image {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
}

.item-name {
    font-weight: 500;
    color: #333;
}

.item-price {
    color: #ff6b6b;
    font-weight: 600;
}

.item-quantity {
    color: #666;
}

/* 优化标题样式 */
.section-title {
    position: relative;
    margin: 40px 0 25px 0;
    padding: 0 0 15px 0;
    font-size: 22px;
    font-weight: 700;
    color: #2c3e50;
    border-bottom: 3px solid #ff6b6b;
}

.section-title::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: -3px;
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, #ff6b6b, #ff8e8e);
    border-radius: 2px;
}

.section-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 40px;
    height: 3px;
    background: #ff6b6b;
    opacity: 0.6;
    border-radius: 2px;
}

.section-title.with-icon {
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-icon {
    font-size: 24px;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #ff6b6b, #ff8e8e);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

/* 支付操作区域优化 */
.payment-actions {
    margin-top: 30px;
    padding: 25px;
    background: linear-gradient(135deg, #fff5f5, #ffecec);
    border-radius: 12px;
    border-left: 5px solid #ff6b6b;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.1);
}

.payment-actions h3 {
    margin-top: 0;
    color: #d63031;
    margin-bottom: 15px;
    font-size: 20px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.payment-actions h3::before {
    content: '💳';
    font-size: 24px;
}

.payment-actions p {
    color: #666;
    margin-bottom: 20px;
    font-size: 15px;
    line-height: 1.5;
}

.payment-button {
    background: linear-gradient(135deg, #ff6b6b, #ff8e8e);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.3);
}

.payment-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4);
    background: linear-gradient(135deg, #ff8e8e, #ff6b6b);
}

.payment-button:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* 已支付状态样式 */
.payment-success {
    background: linear-gradient(135deg, #d4edda, #c3e6cb);
    border-left-color: #28a745;
}

.payment-success h3 {
    color: #155724;
}

.payment-success h3::before {
    content: '✅';
}

.no-items {
    padding: 30px;
    text-align: center;
    color: #666;
    font-style: italic;
}

.total-row {
    background: #f8f9fa !important;
    font-weight: 600;
}

.total-row td {
    border-top: 2px solid #e0e0e0;
}

/* 详情行优化 */
.detail-row {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    padding: 12px 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 3px solid #ff6b6b;
    transition: all 0.3s ease;
}

.detail-row:hover {
    background: #e9ecef;
    transform: translateX(5px);
}

.detail-label {
    flex: 0 0 180px;
    font-weight: 600;
    color: #495057;
    font-size: 15px;
}

.detail-value {
    flex: 1;
    color: #212529;
    font-weight: 500;
}

.status {
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    min-width: 80px;
    display: inline-block;
}

.status-1, .status-2 { 
    background: #fff3cd; 
    color: #856404; 
    border: 1px solid #ffeaa7;
}
.status-3 { 
    background: #d1edff; 
    color: #004085; 
    border: 1px solid #b3d9f2;
}
.status-5, .status-6 { 
    background: #d4edda; 
    color: #155724; 
    border: 1px solid #c3e6cb;
}
.status-7 { 
    background: #d1e7dd; 
    color: #0f5132; 
    border: 1px solid #bcd0c7;
}
.status-0 { 
    background: #f8d7da; 
    color: #721c24; 
    border: 1px solid #f1b0b7;
}

/* 贺卡内容特殊样式 */
.greeting-card {
    background: linear-gradient(135deg, #fff9db, #fff3bf) !important;
    border-left: 3px solid #f59f00 !important;
    padding: 20px !important;
    font-style: italic;
    line-height: 1.6;
}

.greeting-card .detail-label {
    color: #e67700;
}

/* 移动端商品列表样式 */
.mobile-items {
    display: none;
}

.mobile-item {
    padding: 15px;
    border-bottom: 1px solid #f0f0f0;
    background: white;
}

.mobile-item:last-child {
    border-bottom: none;
}

.mobile-item-header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 10px;
}

.mobile-item-image {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
}

.mobile-item-info {
    flex: 1;
}

.mobile-item-name {
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
    font-size: 16px;
}

.mobile-item-specs {
    color: #666;
    font-size: 14px;
    margin-bottom: 8px;
}

.mobile-item-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    background: #f8f9fa;
    padding: 10px;
    border-radius: 6px;
    font-size: 14px;
}

.mobile-detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mobile-detail-label {
    color: #666;
}

.mobile-detail-value {
    color: #333;
    font-weight: 500;
}

.mobile-detail-value.price {
    color: #ff6b6b;
    font-weight: 600;
}

.mobile-totals {
    background: #f8f9fa;
    padding: 15px;
    border-top: 2px solid #e0e0e0;
}

.mobile-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #e0e0e0;
}

.mobile-total-row:last-child {
    border-bottom: none;
    font-weight: 600;
    font-size: 16px;
    color: #ff6b6b;
}

.mobile-total-label {
    color: #333;
}

.mobile-total-value {
    color: #ff6b6b;
    font-weight: 600;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .items-table {
        display: none;
    }
    
    .mobile-items {
        display: block;
    }
    
    .section-title {
        font-size: 20px;
        margin: 30px 0 20px 0;
    }
    
    .section-icon {
        width: 36px;
        height: 36px;
        font-size: 20px;
    }
    
    .payment-actions {
        margin-top: 20px;
        padding: 20px;
    }
    
    .payment-button {
        width: 100%;
        text-align: center;
        padding: 14px;
        justify-content: center;
    }
    
    .detail-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        padding: 15px;
    }
    
    .detail-label {
        flex: none;
        font-size: 14px;
        color: #666;
    }
    
    .detail-value {
        width: 100%;
    }
}

/* 修复返回顶部按钮样式 */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #ff6b6b;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 20px;
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.3);
    transition: all 0.3s ease;
    z-index: 1000;
    border: none;
    cursor: pointer;
}

.back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4);
    background: #ff8e8e;
}

@media (max-width: 768px) {
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 18px;
    }
}
