.layer_form{
    padding-bottom: 50px;
}
.form .form-footer{
    position: fixed;
    text-align: right;
    bottom: 0;
    right: 0;
    border-top:1px solid #F0F0F0;
    padding: 10px 20px 10px 20px    ;
    width:100%;
    background-color: #fff;
}

/* 按钮样式 */
.table .table-child-toggle {
    cursor: pointer;
    margin-right: 5px;
    background: none;
    border: none;
}

.table .table-child-toggle:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

.fg-article-content img{
    display: block;
    max-width: 100%;
    height: auto;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    padding: 5px;
    margin: 0 auto;
}

.fg-fv-invalid{border: 1px solid red;}
.fg-fv-valid{border: 1px solid #28a745;}
.fv-plugins-bootstrap5:not(.fv-plugins-bootstrap5-form-inline) label ~ .fv-plugins-icon {top:28px;}

/* 自定义进度条样式 START */
.swal2-popup .progress {
    border-radius: 10px;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.1);
}

.swal2-popup .progress-bar {
    transition: width 0.3s ease;
}

/* 当前处理项样式 */
#batchCurrentItem {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 自定义进度条样式 END */

.cart-items .flags-img{width:16px;}

/* 支付弹窗组件样式 */

.payment-modal .modal-dialog {
    max-width: 800px;
}

.payment-modal .modal-content {
    border-radius: 20px;
    overflow: hidden;
    border: none;
}

.payment-header {
    background: linear-gradient(135deg, #4361ee, #3a56d4);
    color: white;
    padding: 20px 30px;
}

.payment-header h2{color:#fff;}

.payment-header .btn-close {
    opacity: 0.8;
    transition: opacity 0.2s ease;
    filter: invert(1);
}

.payment-header .btn-close:hover {
    opacity: 1;
}

.payment-body {
    display: flex;
}

.payment-methods {
    width: 35%;
    padding: 30px;
    background: #f8f9fa;
    border-right: 1px solid #eee;
}

.payment-content {
    width: 65%;
    padding: 30px;
}

.payment-method {
    margin-bottom: 15px;
}

.payment-method label {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
}

.payment-method label:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.payment-method input[type="radio"] {
    display: none;
}

.payment-method input[type="radio"]:checked + label {
    border-color: #4361ee;
    background: rgba(67, 97, 238, 0.05);
    color: #4361ee;
    font-weight: 500;
}

.payment-method.alipay input[type="radio"]:checked + label {
    border-color: #1677ff;
    background: rgba(22, 119, 255, 0.05);
    color: #1677ff;
}

.payment-method.wechat input[type="radio"]:checked + label {
    border-color: #07c160;
    background: rgba(7, 193, 96, 0.05);
    color: #07c160;
}

.payment-method.balance input[type="radio"]:checked + label {
    border-color: #7209b7;
    background: rgba(114, 9, 183, 0.05);
    color: #7209b7;
}

.payment-method.corporate input[type="radio"]:checked + label {
    border-color: #f8961e;
    background: rgba(248, 150, 30, 0.05);
    color: #f8961e;
}

.payment-method .icon {
    font-size: 28px;
    margin-right: 15px;
    width: 40px;
    text-align: center;
}

.payment-title {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 25px;
    color: #333;
    position: relative;
    padding-bottom: 10px;
}

.payment-title:after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 3px;
    background: #4361ee;
    border-radius: 3px;
}

.amount {
    font-size: 32px;
    font-weight: 700;
    color: #4361ee;
    margin: 30px 0;
    text-align: center;
    position: relative;
}

.amount:before {
    content: '¥';
    font-size: 28px;
    margin-right: 5px;
    vertical-align: top;
}

.qr-code-container {
    text-align: center;
    margin: 30px 0;
    padding: 20px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.qr-code {
    margin: 0 auto;
    padding: 15px;
    background: white;
    border-radius: 10px;
    display: inline-block;
    position: relative;
}

.qr-code img {
    width: 220px;
    height: 220px;
    border: 1px solid #eee;
    border-radius: 10px;
}

.qr-expire {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 8px;
    border-radius: 0 0 10px 10px;
    font-size: 14px;
}

.qr-expire .countdown {
    color: #ffcc00;
    font-weight: bold;
}

.payment-brand {
    margin: 20px 0;
    text-align: center;
}

.instructions {
    font-size: 15px;
    color: #666;
    text-align: center;
    margin: 15px 0;
    line-height: 1.6;
}

.balance-info {
    font-size: 16px;
    color: #333;
    text-align: center;
    margin: 30px 0;
}

.balance-amount {
    font-size: 24px;
    font-weight: 600;
    color: #7209b7;
    margin: 10px 0;
}

.insufficient {
    color: #dc3545;
    font-weight: 500;
    margin: 15px 0;
}

.sufficient {
    color: #4bb543;
    font-weight: 500;
    margin: 15px 0;
}

.corporate-info {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 15px;
    margin: 30px 0;
}

.corporate-info h5 {
    margin-bottom: 20px;
    color: #f8961e;
}

.corporate-info p {
    margin: 12px 0;
    display: flex;
}

.corporate-info p strong {
    width: 80px;
    color: #666;
}

.pay-btn {
    margin-top: 20px;
    background: #4361ee;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    width: 100%;
}

.pay-btn:hover {
    background: #3a56d4;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(67, 97, 238, 0.3);
}

.pay-btn.success {
    background: #4bb543;
}

.pay-btn.success:hover {
    background: #3fa539;
    box-shadow: 0 5px 15px rgba(75, 181, 67, 0.3);
}

.consult-btn {
    margin-top: 20px;
    background: #f8961e;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    width: 100%;
}

.consult-btn:hover {
    background: #e07d0e;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(248, 150, 30, 0.3);
}

.payment-notice {
    background: #fff8e6;
    border-left: 4px solid #ffc107;
    padding: 15px;
    border-radius: 0 8px 8px 0;
    margin-top: 30px;
}

.payment-notice h6 {
    color: #e65100;
    margin-bottom: 10px;
}

.payment-notice ul {
    padding-left: 20px;
    margin-bottom: 0;
}

.payment-notice li {
    margin-bottom: 8px;
}

/* 订单产品项基础样式 */
.fg-order-product-item {
    position: relative;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    overflow: hidden;
    text-align: center;
}

.fg-order-product-item:hover {
    border: 1px solid #1B84FF;
}

/* 标题文字样式 */
.fg-order-product-item b {
    display: block;
    font-weight: 600;
    color: #333;
    margin: 0;
}

/* 特点 */
.fg-order-product-item span.fet {
    position: absolute;
    left: -15px;
    top: 45px;
    width: 100px; /* 标签宽度 */
    padding: 2px 0;
    background-color: #e03e2d; /* 红色背景 */
    color: white;
    font-size: 10px;
    text-align: center;
    transform-origin: 0 0; /* 旋转基准点 */
    transform: translateX(-10px) rotate(-45deg); /* 向左移动并旋转 */
}

/* 选中标记（修正后的三角形实现） */
.fg-order-product-item span.selected {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 0 30px 30px;
    border-color: transparent transparent #1B84FF transparent;
    opacity: 0;
    transition: all 0.3s ease;
}

/* 勾选图标（精确定位） */
.fg-order-product-item span.selected i {
    position: absolute;
    right: 4px;
    bottom: -25px;
    font-size: 10px;
    color: white;
    z-index: 1;
}

/* 激活状态样式 */
.fg-order-product-item.active {
    border-color: #1B84FF;
    background-color: #f0f8ff;
}

/* 激活时显示三角标 */
.fg-order-product-item.active span.selected {
    opacity: 1;
}

.fg-order-continent {
    overflow: auto;
    margin-bottom: 20px;
    padding-bottom: 5px; /* 为下划线留出空间 */
}

.fg-order-continent ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex; /* 使用flex布局替代float */
    gap: 25px; /* 现代间距方式 */
}

.fg-order-continent ul li {
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
}

.fg-order-continent ul li span {
    display: block;
    padding: 8px 5px;
    color: #666;
    font-weight: 500;
    font-size: 15px;
    transition: all 0.3s ease;
    position: relative;
}

/* 悬停效果 - 轻微颜色变化 */
.fg-order-continent ul li:hover span {
    color: #1B84FF;
}

/* 选中状态 - 优雅的下划线动画 */
.fg-order-continent ul li.active span {
    color: #1B84FF;
}

.fg-order-continent ul li.active span::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background-color: #1B84FF;
    animation: underline 0.3s ease-out forwards;
    border-radius: 1px; /* 圆角下划线 */
}

.fg-order-product-item.plan-info{
    text-align: left;
}
.fg-order-product-item.plan-info div{
    margin-bottom: 6px;
}
.fg-order-product-item.plan-info div span{
    width:80px;
    display: inline-block;
    text-align: right;
}
.fg-order-product-item.plan-info b{
    display: inline-block;
    margin-right: 5px;
}
.fg-order-product-item.plan-info .price{
    padding-top: 10px;
    padding-bottom: 15px;
    margin-bottom: 15px;
    text-align: center;
    border-bottom: 1px dotted #cccccc;
}
.fg-order-product-item.plan-info .price strong{
    font-weight: bold;
    color:red;
    font-size: 24px;
    margin-right: 6px;
}

.fg-order-product-item.cloud-os .icon{
    font-size: 48px;
    color:#1B84FF;
}

.fg-order-config-right div span{display: inline-block; width:80px; text-align: left;}
/* 确保 site-template-items 是相对定位 */
.site-template-items {
    position: relative;
}

/* PC图片样式 */
.pc-img {
    position: relative; /* 必须设置为相对定位，使遮罩层可以正确定位 */
    display: inline-block; /* 确保宽度由内容决定 */
}

/* 移动图片样式 */
.site-template-items .pc-mobile-img {
    background: url(/static/assets/images/pc_mobile_bg.png) no-repeat;
    width: 80px;
    height: 160px;
    position: absolute;
    top: -10px;
    right: 5px;
    z-index: 2;
    text-align: center;
    padding-top: 10px;
    display: inline-block; /* 确保宽度由内容决定 */
}

.site-template-items .mobile-img {
    background: url(/static/assets/images/mobile_bg.png) no-repeat center;
    width: 160px;
    height: 315px;
    text-align: center;
    padding-top: 10px;
    display: inline-block; /* 确保宽度由内容决定 */
}

/* 移动图片中的图片样式 */
.site-template-items .pc-mobile-img img {
    width: 74px;
    height: 130px;
}

.site-template-items .mobile-img img {
    width: 140px;
    height: 253px;
    margin-top: 12px;
}

/* 图片预览遮罩层样式 */
.site-preview-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* 半透明黑色背景 */
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0; /* 默认隐藏 */
    transition: opacity 0.3s ease; /* 平滑过渡效果 */
    border-radius: 4px; /* 与图片圆角一致 */
    pointer-events: none; /* 允许点击穿透到下面的元素 */
}

/* 鼠标悬停在PC图片上时显示遮罩层 */
.pc-img:hover .site-preview-overlay {
    opacity: 1;
    pointer-events: auto; /* 悬停时允许点击按钮 */
}

/* 鼠标悬停在移动图片上时显示遮罩层 */
.pc-mobile-img:hover .site-preview-overlay {
    opacity: 1;
    pointer-events: auto; /* 悬停时允许点击按钮 */
}

.mobile-img:hover .site-preview-overlay {
    opacity: 1;
    pointer-events: auto; /* 悬停时允许点击按钮 */
}

/* 预览按钮样式 */
.preview-btn {
    color: white;
    background-color: blue;
    border: 1px solid white;
    border-radius: 50%; /* 圆形按钮 */
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.site-industry{
    position: relative;
}
.site-industry #site_industry_list{
    position: absolute;
    left: 0;
}

.site-template-nav .sel-color{display: none;}

/* 响应式设计 */
@media (max-width: 600px) {
    .payment-modal .modal-dialog {
        margin: 20px auto;
    }

    .payment-header {
        padding: 20px;
    }

    .payment-methods, .payment-content {
        padding: 20px;
        width:100%;
    }

    .payment-method label {
        padding: 15px;
    }

    .amount {
        font-size: 32px;
        margin: 20px 0;
    }

    .qr-code img {
        width: 160px;
        height: 160px;
    }
}

/* 支付页面样式 END */