/* ==========================================
   购物车和订单流程页面样式
   Shopping Cart and Order Flow Page Styles
   ========================================== */

/* 清除浏览器默认样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
}

/* 页面基础设置 */
.zh_body_wrapper {
    background: #f8f9fa;
    padding-top: 100px;
}

/* 页面头部样式 */
.zh_flow_header {
    padding: 80px 0 40px;
    background: linear-gradient(135deg, #749F06 0%, #638708 50%, #18813f 100%);
    position: relative;
    overflow: hidden;
}

.zh_page_header_bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

/* 面包屑导航 */
.zh_breadcrumb_wrapper {
    position: relative;
    z-index: 1;
}

.zh_breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #ffffff;
    font-size: 16px;
}

.zh_breadcrumb_link {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.zh_breadcrumb_link:hover {
    color: #ffffff;
}

.zh_breadcrumb_separator {
    color: rgba(255, 255, 255, 0.6);
}

.zh_breadcrumb_current {
    color: #ffffff;
    font-weight: 600;
}

/* 流程内容区域 */
.zh_flow_content {
    padding: 80px 0 60px;
    min-height: 60vh;
    background: #f8f9fa;
    margin-top: 20px;
}

/* 通用区块标题 */
.zh_section_header {
    text-align: center;
    margin-bottom: 40px;
}

.zh_section_title {
    font-size: 32px;
    font-weight: 700;
    color: #212529;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.zh_section_title i {
    color: #749F06;
}

.zh_section_subtitle {
    color: #6c757d;
    font-size: 16px;
}

/* 购物车样式 */
.zh_cart_section {
    background: #ffffff;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.zh_cart_table_wrapper {
    margin-top: 30px;
}

.zh_cart_header {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
    gap: 20px;
    padding: 20px;
    background: linear-gradient(135deg, #749F06 0%, #638708 100%);
    border-radius: 12px;
    margin-bottom: 20px;
    font-weight: 600;
    color: #ffffff;
    text-align: center;
}

.zh_cart_col {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
}

.zh_cart_product {
    justify-content: flex-start !important;
}

.zh_cart_items {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.zh_cart_item {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
    gap: 20px;
    background: #ffffff;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s ease;
    align-items: center;
}

.zh_cart_item:hover {
    border-color: #749F06;
    box-shadow: 0 4px 15px rgba(116, 159, 6, 0.15);
}

/* 商品信息 */
.zh_product_info {
    display: flex;
    gap: 15px;
    align-items: center;
}

.zh_product_image {
    width: 80px;
    height: 80px;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
    background: #f8f9fa;
}

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

.zh_product_details {
    flex: 1;
    min-width: 0;
}

.zh_product_title {
    margin: 0 0 8px 0;
}

.zh_product_title a {
    color: #212529;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    transition: color 0.3s ease;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.zh_product_title a:hover {
    color: #749F06;
}

.zh_product_attributes {
    color: #6c757d;
    font-size: 14px;
}

/* 价格显示 */
.zh_price_value,
.zh_subtotal_value {
    color: #749F06 !important;
    font-size: 20px;
    font-weight: 700;
}

/* 数量控制 */
.zh_quantity_controls {
    display: flex;
    align-items: center;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    overflow: hidden;
    width: fit-content;
    margin: 0 auto;
}

.zh_qty_btn {
    width: 35px;
    height: 35px;
    background: #f8f9fa;
    border: none;
    color: #495057;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.zh_qty_btn:hover {
    background: #749F06;
    color: #ffffff;
}

.zh_qty_input {
    width: 60px;
    height: 35px;
    background: #ffffff;
    border: none;
    color: #212529;
    text-align: center;
    font-weight: 600;
    outline: none;
}

.zh_qty_fixed {
    width: 60px;
    height: 35px;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    color: #212529;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}

/* 商品操作按钮 */
.zh_item_actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
}

/* 购物车汇总 */
.zh_cart_summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 30px;
    padding: 25px;
    background: #f8f9fa;
    border-radius: 12px;
    border: 2px solid #e9ecef;
}

.zh_cart_total_info {
    flex: 1;
}

.zh_money_info {
    text-align: left;
}

.zh_discount_info {
    color: #749F06;
    font-size: 16px;
    margin-bottom: 8px;
    font-weight: 600;
}

.zh_total_amount {
    color: #212529;
    font-size: 20px;
    font-weight: 700;
}

.zh_cart_actions {
    display: flex;
    gap: 15px;
}

/* 购物车底部操作 */
.zh_cart_bottom_actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 30px;
    padding-top: 25px;
    border-top: 2px solid #e9ecef;
}

/* 收货人信息样式 */
.zh_consignee_section {
    background: #ffffff;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.zh_consignee_form {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 30px;
    border: 2px solid #e9ecef;
}

/* 订单确认样式 */
.zh_checkout_section {
    background: #ffffff;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.zh_order_block,
.flowBox {
    background: #ffffff;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 25px;
}

.zh_block_title,
.flowBox h6 {
    color: #749F06;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: space-between;
}

.zh_block_title span,
.flowBox h6 span {
    color: #749F06;
}

.zh_block_title a,
.flowBox h6 a {
    color: #6c757d;
    font-size: 14px;
    text-decoration: none;
    transition: color 0.3s ease;
}

.zh_block_title a:hover,
.flowBox h6 a:hover {
    color: #749F06;
}

/* 订单商品表格 */
.zh_order_table,
table[bgcolor="#dddddd"] {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

.zh_order_table th,
table[bgcolor="#dddddd"] th {
    background: linear-gradient(135deg, #749F06 0%, #638708 100%);
    color: #ffffff !important;
    padding: 15px;
    text-align: center;
    font-weight: 600;
    border: 1px solid #dee2e6;
}

.zh_order_table td,
table[bgcolor="#dddddd"] td {
    background: #ffffff !important;
    color: #212529 !important;
    padding: 15px;
    text-align: center;
    border: 1px solid #e9ecef;
    vertical-align: middle;
}

.zh_order_table td:first-child {
    text-align: left;
}

.zh_order_table td a,
table[bgcolor="#dddddd"] td a {
    color: #212529;
    text-decoration: none;
    transition: color 0.3s ease;
}

.zh_order_table td a:hover,
table[bgcolor="#dddddd"] td a:hover {
    color: #749F06;
}

.zh_special_text {
    color: #dc3545 !important;
    font-weight: 600;
}

/* 修复白色背景下的文字颜色 */
table[bgcolor="#ffffff"] td,
td[bgcolor="#ffffff"],
table[bgcolor="#ffffff"] th,
th[bgcolor="#ffffff"] {
    background: #ffffff !important;
    color: #212529 !important;
}

table[bgcolor="#ffffff"] td strong,
td[bgcolor="#ffffff"] strong {
    color: #212529 !important;
}

/* 表单输入框样式 */
.inputBg,
input[type="text"].inputBg,
input[type="password"].inputBg,
textarea.inputBg,
select {
    background: #f8f9fa !important;
    border: 1px solid #dee2e6 !important;
    color: #212529 !important;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.inputBg::placeholder {
    color: #6c757d !important;
    font-weight: 400;
}

.inputBg:focus,
input[type="text"].inputBg:focus,
input[type="password"].inputBg:focus,
textarea:focus,
select:focus {
    background: #ffffff !important;
    border-color: #749F06 !important;
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(116, 159, 6, 0.1) !important;
}

/* 单选框和复选框 */
input[type="radio"],
input[type="checkbox"] {
    accent-color: #749F06;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

/* 标签文字 */
label {
    color: #495057 !important;
    font-weight: 500;
    cursor: pointer;
}

table td strong {
    color: #212529 !important;
    font-weight: 600;
}

/* 费用汇总表格 */
.zh_total_table td,
table[bgcolor="#dddddd"] td {
    color: #212529 !important;
}

.f4_b,
.zh_total_highlight {
    color: #749F06 !important;
    font-weight: 700 !important;
}

/* 提交按钮图片 */
input[type="image"] {
    cursor: pointer;
    transition: transform 0.3s ease;
}

input[type="image"]:hover {
    transform: scale(1.05);
}

/* 订单完成样式 */
.zh_order_success,
.flowBox {
    background: #ffffff;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.zh_order_success h6,
.flowBox h6 {
    color: #749F06;
    font-size: 20px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 20px;
}

.flowBox h6 font[style*="color:red"],
.zh_order_number {
    color: #dc3545 !important;
    font-size: 24px;
    font-weight: 700;
}

/* 虚拟卡信息 */
.zh_virtual_card {
    background: #fff9d7;
    border: 2px solid #e2c822;
    border-radius: 12px;
    padding: 25px;
    margin: 20px 0;
    text-align: center;
}

.zh_virtual_card h3 {
    color: #2359b1;
    font-size: 18px;
    margin-bottom: 20px;
}

.zh_virtual_card ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    gap: 30px;
}

.zh_virtual_card li {
    color: #212529;
}

.zh_virtual_card strong {
    color: #212529;
    margin-right: 8px;
}

.zh_virtual_card span[style*="color:red"] {
    color: #dc3545 !important;
    font-weight: 600;
}

/* 登录注册表单 */
.table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
}

.table td {
    background: #ffffff !important;
    color: #212529 !important;
    padding: 15px;
    border: 1px solid #e9ecef;
    vertical-align: middle;
}

.table td strong {
    color: #212529 !important;
    font-weight: 600;
}

/* 修复登录注册页面的布局 */
.flowBox table[width="50%"] {
    width: 50%;
    margin: 10px auto;
}

.flowBox[style*="border-top"] {
    border: none !important;
    border-top: 1px solid #dddddd !important;
    padding-top: 30px;
}

/* 登录注册按钮 */
.bnt_blue,
.bnt_blue_1,
.bnt_blue_2 {
    background: linear-gradient(135deg, #749F06 0%, #638708 100%) !important;
    color: #ffffff !important;
    border: none !important;
    padding: 12px 60px !important;
    border-radius: 8px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    cursor: pointer;
    transition: all 0.3s ease;
}

.bnt_blue:hover,
.bnt_blue_1:hover,
.bnt_blue_2:hover {
    background: linear-gradient(135deg, #638708 0%, #18813f 100%) !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(116, 159, 6, 0.3);
}

/* 通用按钮样式 */
.zh_btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.zh_btn_sm {
    padding: 6px 12px;
    font-size: 13px;
}

.zh_btn_large {
    padding: 15px 30px;
    font-size: 18px;
}

.zh_btn_primary {
    background: linear-gradient(135deg, #749F06 0%, #638708 100%);
    color: #ffffff;
}

.zh_btn_primary:hover {
    background: linear-gradient(135deg, #638708 0%, #18813f 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(116, 159, 6, 0.3);
}

.zh_btn_secondary {
    background: #6c757d;
    color: #ffffff;
}

.zh_btn_secondary:hover {
    background: #5a6268;
    transform: translateY(-2px);
}

.zh_btn_success {
    background: linear-gradient(135deg, #749F06 0%, #638708 100%);
    color: #ffffff;
}

.zh_btn_success:hover {
    background: linear-gradient(135deg, #638708 0%, #18813f 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(116, 159, 6, 0.3);
}

.zh_btn_danger {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: #ffffff;
}

.zh_btn_danger:hover {
    background: linear-gradient(135deg, #c82333 0%, #bd2130 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(220, 53, 69, 0.3);
}

.zh_btn_outline {
    background: transparent;
    border: 2px solid #749F06;
    color: #749F06;
}

.zh_btn_outline:hover {
    background: #749F06;
    color: #ffffff;
}

/* 空白间距 */
.blank {
    height: 20px;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .zh_cart_header,
    .zh_cart_item {
        grid-template-columns: 2fr 1fr 1fr 1fr;
    }

    .zh_cart_quantity {
        display: none;
    }
}

@media (max-width: 768px) {
    .zh_flow_header {
        padding: 60px 0 30px;
    }

    .zh_flow_content {
        padding: 40px 0;
    }

    .zh_cart_section,
    .zh_consignee_section,
    .zh_checkout_section,
    .flowBox {
        padding: 25px;
    }

    .zh_section_title {
        font-size: 26px;
        flex-direction: column;
        gap: 10px;
    }

    .zh_cart_header {
        display: none;
    }

    .zh_cart_item {
        grid-template-columns: 1fr;
        gap: 15px;
        text-align: center;
    }

    .zh_cart_col {
        justify-content: center;
        flex-direction: column;
    }

    .zh_product_info {
        flex-direction: column;
        text-align: center;
    }

    .zh_cart_summary {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .zh_cart_actions {
        flex-direction: column;
        width: 100%;
    }

    .zh_cart_actions .zh_btn {
        width: 100%;
    }

    .zh_cart_bottom_actions {
        flex-direction: column;
        gap: 15px;
    }

    .zh_cart_bottom_actions .zh_btn {
        width: 100%;
    }

    table[bgcolor="#dddddd"],
    .zh_order_table {
        font-size: 13px;
    }

    table[bgcolor="#dddddd"] th,
    table[bgcolor="#dddddd"] td,
    .zh_order_table th,
    .zh_order_table td {
        padding: 10px 8px;
    }
}

@media (max-width: 576px) {
    .zh_cart_section,
    .zh_consignee_section,
    .zh_checkout_section,
    .flowBox {
        padding: 20px;
    }

    .zh_section_title {
        font-size: 22px;
    }

    .zh_cart_item {
        padding: 15px;
    }

    .zh_product_image {
        width: 60px;
        height: 60px;
    }

    .zh_item_actions {
        width: 100%;
    }

    .zh_item_actions .zh_btn {
        width: 100%;
    }

    table[bgcolor="#dddddd"],
    .zh_order_table {
        font-size: 12px;
    }

    table[bgcolor="#dddddd"] th,
    table[bgcolor="#dddddd"] td,
    .zh_order_table th,
    .zh_order_table td {
        padding: 8px 5px;
    }

    .bnt_blue,
    .bnt_blue_1,
    .bnt_blue_2 {
        padding: 10px 40px !important;
        font-size: 14px !important;
    }
}
