/* 移动端导航 */
.mobile-header {
    background: #fff;
    padding: 15px;
    display: flex;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: 50px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.mobile-header .back-btn {
    position: absolute;
    left: 15px;
    color: #333;
    font-size: 18px;
}

.mobile-header h1 {
    font-size: 18px;
    margin: 0;
    flex: 1;
    text-align: center;
}

@media (max-width: 768px) {
    .col-md-9 {
        padding-top: 50px;
    }
}

/* PC端头部 */
.pc-header {
    margin-top: 15px;
    background: #fff;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.pc-header h2 {
    font-size: 20px;
    margin: 0;
    color: #333;
}

/* 整体容器样式 */
.order-container {
  
    border-radius: 12px;
    margin-top: 15px;
    margin-bottom: 30px;
}

/* 通用section样式 */
.order-address-section,
.order-goods-section,
.order-coupon-section,
.order-payment-section,
.order-amount-section {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid #eee;
    transition: all 0.3s ease;
}

/* 通用头部样式 */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f5f5f5;
}

.section-header h3 {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-header h3 i {
    color: #d95517;
}

/* 地址模块样式 */
.address-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 15px;
}

.address-item,
.coupon-item,
.payment-item {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 15px;
    border: 1px solid #eee;
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
}
.payment-item {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding: 15px;
    border: 1px solid #eee;
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
    padding-left: 17% !important;
}

.address-item:hover,
.coupon-item:hover,
.payment-item:hover {
    border-color: #d95517;
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(217, 85, 23, 0.1);
}

.address-item.active,
.coupon-item.active,
.payment-item.active {
    border-color: #d95517;
    background-color: #fff9f9;
}

.address-item {
    display: flex;
    flex-direction: column;
    padding: 15px;
    border: 1px solid #eee;
    border-radius: 12px;
    background: #fff;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.address-item:hover {
    border-color: #d95517;
    box-shadow: 0 2px 8px rgba(217, 85, 23, 0.1);
}

.address-item.active {
    border-color: #d95517;
    background-color: #fff9f9;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    position: relative;
    flex-direction: column;
}

.user-info .name {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.user-info .phone {
    color: #666;
}

.user-info .default-tag {
    font-size: 12px;
    color: #d95517;
    border: 1px solid #d95517;
    padding: 2px 6px;
    border-radius: 4px;
}
.user-info1 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    position: relative;
    /* flex-direction: column; */
}
.address-info{
    text-align: left;
    width: 97%;
}
.user-info1 .name {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.user-info1 .phone {
    color: #666;
}

.user-info1 .default-tag {
    font-size: 12px;
    color: #d95517;
    border: 1px solid #d95517;
    padding: 2px 6px;
    border-radius: 4px;
}

.address-action {
    margin-left: auto;
    display: flex;
    align-items: center;
}

.address-detail {
    color: #666;
    font-size: 14px;
    line-height: 1.5;
}

.address-detail i {
    margin-right: 5px;
    color: #999;
}

/* 商品列表样式 */
.goods-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.goods-item {
    display: flex;
    gap: 15px;
    padding: 15px;
    border: 1px solid #eee;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.goods-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.goods-img {
    width: 100px;
    height: 100px;
    border-radius: 8px;
    overflow: hidden;
}

.goods-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.goods-img:hover img {
    transform: scale(1.05);
}

.goods-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.goods-title {
    font-size: 15px;
    font-weight: 500;
    color: #333;
    margin-bottom: 8px;
}

.goods-price-wrap {
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

.price-count {
    display: flex;
    align-items: center;
    gap: 5px;
}

.goods-price {
    color: #d95517;
    font-size: 16px;
    font-weight: 600;
}

.goods-count {
    color: #666;
    font-size: 14px;
    margin-left: 5px;
}

/* 优惠券列表样式 */
.coupon-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-top: 15px;
}

.coupon-item {
    display: flex;
    align-items: center;
    padding: 15px;
    border: 1px solid #eee;
    border-radius: 12px;
    background: #fff;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.coupon-item:hover {
    border-color: #d95517;
    box-shadow: 0 2px 8px rgba(217, 85, 23, 0.1);
}

.coupon-item.active {
    border-color: #d95517;
    background-color: #fff9f9;
}

.coupon-amount {
    padding: 0 20px;
    text-align: center;
    border-right: 1px dashed #eee;
}

.coupon-amount .symbol {
    font-size: 14px;
    color: #d95517;
}

.coupon-amount .value {
    font-size: 24px;
    font-weight: 600;
    color: #d95517;
}

.coupon-info {
    flex: 1;
    padding: 0 15px;
}

.coupon-name {
    font-size: 15px;
    font-weight: 500;
    color: #333;
    margin-bottom: 5px;
}

.coupon-desc {
    font-size: 13px;
    color: #666;
    margin-bottom: 5px;
}

.coupon-time {
    font-size: 12px;
    color: #999;
}

/* 支付方式列表样式优化 */
.payment-list {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
    margin-top: 15px;
}

.payment-item {
    display: flex;
    align-items: center;
    padding: 13px;
    border: 1px solid #eee;
    border-radius: 12px;
    background: #fff;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.payment-item:hover {
    border-color: #d95517;
    box-shadow: 0 2px 8px rgba(217, 85, 23, 0.1);
}

.payment-item.active {
    border-color: #d95517;
    background-color: #fff9f9;
}

.payment-icon {
    margin-right: 15px;
}

.payment-icon i {
    font-size: 24px;
}

.payment-icon i.fab.fa-alipay {
    color: #1677ff;
}

.payment-icon i.fab.fa-weixin {
    color: #07c160;
}

.payment-icon i.fas.fa-credit-card {
    color: #1266f1;
}

.payment-name {
    font-size: 16px;
    color: #333;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .coupon-list {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .payment-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .payment-item,
    .coupon-item {
        padding: 12px;
    }

    .payment-icon i {
        font-size: 20px;
    }

    .payment-name {
        font-size: 14px;
    }

    .coupon-amount {
        padding: 0 15px;
    }

    .coupon-amount .value {
        font-size: 20px;
    }

    .coupon-name {
        font-size: 14px;
    }

    .coupon-desc {
        font-size: 12px;
    }
}

/* 地址列表布局 */
.address-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 15px;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .address-list {
        grid-template-columns: 1fr;
        gap: 15px;
        margin-top: 12px;
    }
}

/* 金额明细样式 */
.amount-list {
    
    border-radius: 8px;
    padding: 5px;
}

.amount-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    font-size: 14px;
    color: #666;
}

.amount-item:last-child {
    margin-bottom: 0;
}

.amount-item.total {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
    font-size: 16px;
    color: #333;
}

.amount-value.discount {
    color: #d95517;
}

.total .amount-value {
    color: #d95517;
    font-size: 20px;
    font-weight: 600;
}

/* 提交按钮样式 */
.order-submit-section {
    margin-top: 30px;
    text-align: center;
}

.submit-btn {
    background: linear-gradient(45deg, #d95517, #e87042);
    color: white;
    border: none;
    border-radius: 5px;
    padding: 12px 40px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(217, 85, 23, 0.2);
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(217, 85, 23, 0.3);
}

.submit-btn:active {
    transform: translateY(2px);
    box-shadow: 0 6px 15px rgba(217, 85, 23, 0.3);
}

/* 移除自定义单选按钮样式 */
input[type="radio"] {
    margin: 0;
}

/* 统一所有单选按钮容器样式 */
.address-action,
.coupon-action,
.payment-action {
    display: flex;
    align-items: center;
    justify-content: center;
   
}
.layui-form-radio {
 margin: 0;   
}

/* 移动端适配 */
@media (max-width: 768px) {
    .address-action,
    .coupon-action,
    .payment-action {
        padding: 0 8px;
    }
}

/* 加载动画 */
.loading {
    position: relative;
}

.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

/* 移除查看更多相关样式 */
.view-more,
.view-more:hover,
.view-more i {
    display: none;
}

/* 新增地址按钮样式 */
.add-address-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    background: #fff;
    border: 1px solid #d95517;
    border-radius: 6px;
    color: #d95517;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.add-address-btn i {
    margin-right: 6px;
    font-size: 14px;
}

.add-address-btn:hover {
    background: #d95517;
    color: #fff;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .add-address-btn {
        padding: 6px 12px;
        font-size: 13px;
    }

    .add-address-btn i {
        font-size: 13px;
    }
    .order-address-section, .order-goods-section, .order-coupon-section, .order-payment-section, .order-amount-section{
        padding: 10px;
    }
}

/* 移动端固定底部 */
.mobile-submit-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    padding: 12px 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
    z-index: 100;
}

.total-amount {
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.total-amount .label {
    font-size: 14px;
    color: #666;
}

.total-amount .amount {
    font-size: 20px;
    font-weight: 600;
    color: #d95517;
}

.mobile-submit-bar .submit-btn {
    height: 40px;
    padding: 0 24px;
    font-size: 15px;
    border-radius: 20px;
}

/* 为底部留出空间 */
@media (max-width: 768px) {
    .order-container {
        padding-bottom: 15px;
    }

    .order-address-section,
    .order-goods-section,
    .order-coupon-section,
    .order-payment-section,
    .order-amount-section {
        padding: 10px;
        background: #fff;
        border-radius: 12px;
        margin-bottom: 10px;
    }

    /* 隐藏PC端提交按钮 */
    .submit-btn:not(.mobile-submit-bar .submit-btn) {
        display: none;
    }
}
