/* 下单流程页面样式 */
.zh_flow_container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background: #f8f9fa;
    min-height: 100vh;
}

/* 流程盒子样式 */
.zh_flow_box {
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.zh_flow_box:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

/* 标题样式 */
.zh_flow_title {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 15px 20px;
    margin: 0;
    font-size: 18px;
    font-weight: 500;
    border-bottom: none;
}

.zh_flow_title span {
    display: inline-block;
    margin-right: 10px;
}

.zh_flow_title a {
    color: #fff;
    text-decoration: none;
    float: right;
    background: rgba(255, 255, 255, 0.2);
    padding: 5px 15px;
    border-radius: 15px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.zh_flow_title a:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

/* 购物车表格样式 */
.zh_cart_table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
}

.zh_cart_table th {
    background: #f8f9fa;
    padding: 15px;
    text-align: center;
    font-weight: 600;
    color: #495057;
    border-bottom: 2px solid #e9ecef;
}

.zh_cart_table td {
    padding: 20px 15px;
    border-bottom: 1px solid #e9ecef;
    vertical-align: middle;
}

.zh_cart_table tr:hover {
    background: #f8f9fa;
}

/* 商品信息样式 */
.zh_goods_info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.zh_goods_info img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.zh_goods_name {
    flex: 1;
}

.zh_goods_name a {
    color: #495057;
    text-decoration: none;
    font-weight: 500;
    line-height: 1.4;
}

.zh_goods_name a:hover {
    color: #007bff;
}

/* 数量输入框样式 */
.zh_quantity_input {
    width: 60px;
    padding: 8px;
    border: 2px solid #e9ecef;
    border-radius: 6px;
    text-align: center;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.zh_quantity_input:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

/* 价格样式 */
.zh_price {
    font-size: 18px;
    font-weight: 600;
    color: #dc3545;
}

.zh_price_total {
    font-size: 20px;
    font-weight: 700;
    color: #dc3545;
}

/* 按钮样式 */
.zh_btn {
    display: inline-block;
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 120px;
}

.zh_btn_primary {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
}

.zh_btn_primary:hover {
    background: linear-gradient(135deg, #0056b3 0%, #004085 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

.zh_btn_danger {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white;
}

.zh_btn_danger:hover {
    background: linear-gradient(135deg, #c82333 0%, #a71e2a 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
}

/* .zh_btn_success {
    background: linear-gradient(135deg, #28a745 0%, #1e7e34 100%);
    color: white;
} */

/* .zh_btn_success:hover {
    background: linear-gradient(135deg, #1e7e34 0%, #155724 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
} */

.zh_btn_outline {
    background: transparent;
    border: 2px solid #007bff;
    color: #007bff;
}

.zh_btn_outline:hover {
    background: #007bff;
    color: white;
}

/* 操作区域样式 */
.zh_cart_actions {
    background: #f8f9fa;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

/* 底部按钮区域居中对齐 */
.zh_cart_actions:last-of-type {
    justify-content: center !important;
    background: #ffffff;
    border-top: 1px solid #e9ecef;
    margin-top: 0;
    padding: 30px 20px !important;
    display: flex !important;
    align-items: center !important;
    text-align: center !important;
}

/* 强制覆盖按钮容器的对齐方式 */
div.zh_cart_actions:last-child {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    flex-direction: row !important;
    gap: 20px !important;
}

/* 继续购物和去结算按钮样式 */
.continue_buy {
    background: transparent !important;
    border: 2px solid #6c757d !important;
    color: #6c757d !important;
    margin-right: 20px;
    padding: 15px 30px !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
}

.continue_buy:hover {
    background: #6c757d !important;
    color: white !important;
    transform: translateY(-2px);
}

.jmcheckout {
    background: linear-gradient(135deg, #28a745 0%, #1e7e34 100%) !important;
    color: white !important;
    padding: 15px 30px !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
    border: none !important;
}

.jmcheckout:hover {
    background: linear-gradient(135deg, #1e7e34 0%, #155724 100%) !important;
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

.zh_cart_total {
    font-size: 18px;
    font-weight: 600;
    color: #495057;
}

.zh_cart_buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

/* 收货人信息表格样式 */
.zh_info_table {
    width: 100%;
    border-collapse: collapse;
}

.zh_info_table td {
    padding: 15px;
    border: 1px solid #e9ecef;
    vertical-align: middle;
}

.zh_info_table td:first-child {
    background: #f8f9fa;
    font-weight: 600;
    width: 150px;
    text-align: center;
}

/* 配送方式和支付方式样式 */
.zh_method_table {
    width: 100%;
    border-collapse: collapse;
}

.zh_method_table th {
    background: #f8f9fa;
    padding: 15px;
    text-align: center;
    font-weight: 600;
    border: 1px solid #e9ecef;
}

.zh_method_table td {
    padding: 15px;
    border: 1px solid #e9ecef;
    text-align: center;
    vertical-align: middle;
}

.zh_method_table tr:hover {
    background: #f8f9fa;
}

/* 单选按钮样式 */
.zh_radio_wrapper {
    position: relative;
    display: inline-block;
}

.zh_radio_wrapper input[type="radio"] {
    appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid #007bff;
    border-radius: 50%;
    margin: 0;
    cursor: pointer;
    position: relative;
}

.zh_radio_wrapper input[type="radio"]:checked::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 12px;
    height: 12px;
    background: #007bff;
    border-radius: 50%;
}

/* 表单输入框样式 */
.zh_input {
    width: 100% !important;
    padding: 12px !important;
    border: 2px solid #e9ecef !important;
    border-radius: 6px !important;
    font-size: 16px !important;
    transition: border-color 0.3s ease !important;
    box-sizing: border-box !important;
    background: white !important;
}

.zh_input:focus {
    outline: none !important;
    border-color: #007bff !important;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1) !important;
}

.zh_select {
    width: auto !important;
    min-width: 120px !important;
    padding: 8px 12px !important;
    margin: 0 5px !important;
    border: 2px solid #e9ecef !important;
    border-radius: 6px !important;
    font-size: 16px !important;
    background: white !important;
    cursor: pointer !important;
    transition: border-color 0.3s ease !important;
}

.zh_select:focus {
    outline: none !important;
    border-color: #007bff !important;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1) !important;
}

/* 文本域样式 */
.zh_textarea {
    width: 100%;
    min-height: 100px;
    padding: 12px;
    border: 2px solid #e9ecef;
    border-radius: 6px;
    font-size: 16px;
    resize: vertical;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.zh_textarea:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

/* 复选框样式 */
.zh_checkbox_wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.zh_checkbox_wrapper input[type="checkbox"] {
    appearance: none;
    width: 18px;
    height: 18px;
    border: 2px solid #007bff;
    border-radius: 3px;
    cursor: pointer;
    position: relative;
}

.zh_checkbox_wrapper input[type="checkbox"]:checked::after {
    content: '✓';
    position: absolute;
    top: -2px;
    left: 2px;
    color: #007bff;
    font-size: 14px;
    font-weight: bold;
}

/* 登录注册表单样式 */
.zh_login_container {
    max-width: 800px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    padding: 20px;
}

.zh_login_box {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.zh_login_header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    text-align: center;
    font-size: 18px;
    font-weight: 600;
}

.zh_login_form {
    padding: 30px;
}

.zh_form_group {
    margin-bottom: 20px;
}

.zh_form_label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #495057;
}

/* 费用总计样式 */
.zh_total_box {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
}

.zh_total_row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #dee2e6;
}

.zh_total_row:last-child {
    border-bottom: none;
    font-size: 20px;
    font-weight: 700;
    color: #dc3545;
}

/* 订单完成样式 */
.zh_success_box {
    text-align: center;
    padding: 40px;
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    border-radius: 8px;
    border: 1px solid #b8daff;
}

.zh_order_number {
    font-size: 24px;
    font-weight: 700;
    color: #155724;
    margin: 20px 0;
}

.zh_payment_info {
    background: white;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
    border: 1px solid #dee2e6;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .zh_flow_container {
        padding: 10px;
    }
    
    .zh_login_container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .zh_cart_actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .zh_cart_buttons {
        justify-content: center;
    }
    
    .zh_goods_info {
        flex-direction: column;
        text-align: center;
    }
    
    .zh_method_table,
    .zh_info_table,
    .zh_cart_table {
        font-size: 14px;
    }
    
    .zh_method_table td,
    .zh_info_table td,
    .zh_cart_table td {
        padding: 10px 5px;
    }
}

/* 动画效果 */
@keyframes zh_fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.zh_flow_box {
    animation: zh_fadeIn 0.6s ease-out;
}

/* 加载动画 */
.zh_loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #007bff;
    border-radius: 50%;
    animation: zh_spin 1s linear infinite;
}

@keyframes zh_spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 收货人信息表单特殊样式 */
.zh_info_table .zh_input {
    width: 95% !important;
    padding: 10px !important;
    margin: 0 !important;
}

.zh_info_table .zh_select {
    width: auto !important;
    min-width: 100px !important;
    padding: 8px !important;
    margin: 0 3px !important;
    display: inline-block !important;
}

.zh_info_table td {
    padding: 15px !important;
    vertical-align: middle !important;
}

.zh_info_table tr {
    background: white !important;
}

.zh_info_table tr:hover {
    background: #f8f9fa !important;
}

/* 地区选择器样式 */
.zh_region_selects {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

@media (max-width: 768px) {
    .zh_region_selects {
        flex-direction: column;
        align-items: stretch;
    }
    
    .zh_info_table .zh_select {
        width: 100% !important;
        margin: 5px 0 !important;
    }
}

/* 工具类 */
.zh_text_center { text-align: center; }
.zh_text_left { text-align: left; }
.zh_text_right { text-align: right; }
.zh_mb_10 { margin-bottom: 10px; }
.zh_mb_20 { margin-bottom: 20px; }
.zh_mt_10 { margin-top: 10px; }
.zh_mt_20 { margin-top: 20px; }
.zh_p_10 { padding: 10px; }
.zh_p_20 { padding: 20px; }
