/* 响应式网格布局 - 基于类名控制 */
[class*="grid-cols-"] {
    display: grid;
    grid-gap: 0rem;
    padding: 0rem;
}

/* 自定义间距系统 */
.grid-gap-0 { grid-gap: 0; }
.grid-gap-4 { grid-gap: 0.25rem; } /* 4px */
.grid-gap-5 { grid-gap: 0.32rem; } /* 5px */
.grid-gap-10 { grid-gap: 0.625rem; }  /* 10px */
.grid-gap-12 { grid-gap: 0.75rem; }    /* 12px */
.grid-gap-15 { grid-gap: 0.938rem; }  /* 15px */

/* 超小屏幕 (手机, 小于576px) */
.grid-cols-xs-1 { grid-template-columns: repeat(1, 1fr); }
.grid-cols-xs-2 { grid-template-columns: repeat(2, 1fr); }
.grid-cols-xs-3 { grid-template-columns: repeat(3, 1fr); }
.grid-cols-xs-4 { grid-template-columns: repeat(4, 1fr); }
.grid-cols-xs-5 { grid-template-columns: repeat(5, 1fr); }

/* 小屏幕 (平板, 576px 及以上) */
@media (min-width: 576px) {
    .grid-cols-sm-1 { grid-template-columns: repeat(1, 1fr); }
    .grid-cols-sm-2 { grid-template-columns: repeat(2, 1fr); }
    .grid-cols-sm-3 { grid-template-columns: repeat(3, 1fr); }
    .grid-cols-sm-4 { grid-template-columns: repeat(4, 1fr); }
}

/* 中等屏幕 (桌面显示器, 768px 及以上) */
@media (min-width: 768px) {
    .grid-cols-md-1 { grid-template-columns: repeat(1, 1fr); }
    .grid-cols-md-2 { grid-template-columns: repeat(2, 1fr); }
    .grid-cols-md-3 { grid-template-columns: repeat(3, 1fr); }
    .grid-cols-md-4 { grid-template-columns: repeat(4, 1fr); }
    .grid-cols-md-5 { grid-template-columns: repeat(5, 1fr); }
    .grid-cols-md-6 { grid-template-columns: repeat(6, 1fr); }
}

/* 大屏幕 (大桌面显示器, 992px 及以上) */
@media (min-width: 992px) {
    .grid-cols-lg-1 { grid-template-columns: repeat(1, 1fr); }
    .grid-cols-lg-2 { grid-template-columns: repeat(2, 1fr); }
    .grid-cols-lg-3 { grid-template-columns: repeat(3, 1fr); }
    .grid-cols-lg-4 { grid-template-columns: repeat(4, 1fr); }
    .grid-cols-lg-5 { grid-template-columns: repeat(5, 1fr); }
    .grid-cols-lg-6 { grid-template-columns: repeat(6, 1fr); }
}

/* 超大屏幕 (超大桌面显示器, 1200px 及以上) */
@media (min-width: 1200px) {
    .grid-cols-xl-1 { grid-template-columns: repeat(1, 1fr); }
    .grid-cols-xl-2 { grid-template-columns: repeat(2, 1fr); }
    .grid-cols-xl-3 { grid-template-columns: repeat(3, 1fr); }
    .grid-cols-xl-4 { grid-template-columns: repeat(4, 1fr); }
    .grid-cols-xl-5 { grid-template-columns: repeat(5, 1fr); }
    .grid-cols-xl-6 { grid-template-columns: repeat(6, 1fr); }
    .grid-cols-xl-7 { grid-template-columns: repeat(7, 1fr); }
    .grid-cols-xl-8 { grid-template-columns: repeat(8, 1fr); }
}

/* 行样式 - 用于包裹列，创建flex容器 */
.row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -0.75rem; /* 负外边距，抵消列的内边距，确保边缘对齐 */
    margin-left: -0.75rem;
}

/* 基础列样式 - 控制列之间的间距 */
.col {
    flex: 1 0 0%;
    padding-right: 0.5rem; /* 右侧间距 */
    padding-left: 0.5rem; /* 左侧间距 */
    margin-bottom: 1rem; /* 底部间距，控制上下列之间的距离 */
}

.col-1, .col-2, .col-3, .col-4, .col-5, .col-6, .col-7, .col-8, .col-9, .col-10, .col-11, .col-12, .col, .col-auto, .col-sm-1, .col-sm-2, .col-sm-3, .col-sm-4, .col-sm-5, .col-sm-6, .col-sm-7, .col-sm-8, .col-sm-9, .col-sm-10, .col-sm-11, .col-sm-12, .col-sm, .col-sm-auto, .col-md-1, .col-md-2, .col-md-3, .col-md-4, .col-md-5, .col-md-6, .col-md-7, .col-md-8, .col-md-9, .col-md-10, .col-md-11, .col-md-12, .col-md, .col-md-auto, .col-lg-1, .col-lg-2, .col-lg-3, .col-lg-4, .col-lg-5, .col-lg-6, .col-lg-7, .col-lg-8, .col-lg-9, .col-lg-10, .col-lg-11, .col-lg-12, .col-lg, .col-lg-auto, .col-xl-1, .col-xl-2, .col-xl-3, .col-xl-4, .col-xl-5, .col-xl-6, .col-xl-7, .col-xl-8, .col-xl-9, .col-xl-10, .col-xl-11, .col-xl-12, .col-xl, .col-xl-auto {
    position: relative;
    width: 100%;
    padding-right: 0.75rem;
    padding-left: 0.75rem;
}

/* 超小屏幕 (xs) - 默认不使用媒体查询，适用于 <576px */
.col-1 { width: 8.3333333333%; }
.col-2 { width: 16.6666666667%; }
.col-3 { width: 25%; }
.col-4 { width: 33.3333333333%; }
.col-5 { width: 41.6666666667%; }
.col-6 { width: 50%; }
.col-7 { width: 58.3333333333%; }
.col-8 { width: 66.6666666667%; }
.col-9 { width: 75%; }
.col-10 { width: 83.3333333333%; }
.col-11 { width: 91.6666666667%; }
.col-12 { width: 100%; }

/* 小屏幕 (sm) - ≥576px */
@media (min-width: 576px) {
    .col-sm-1 { width: 8.3333333333%; }
    .col-sm-2 { width: 16.6666666667%; }
    .col-sm-3 { width: 25%; }
    .col-sm-4 { width: 33.3333333333%; }
    .col-sm-5 { width: 41.6666666667%; }
    .col-sm-6 { width: 50%; }
    .col-sm-7 { width: 58.3333333333%; }
    .col-sm-8 { width: 66.6666666667%; }
    .col-sm-9 { width: 75%; }
    .col-sm-10 { width: 83.3333333333%; }
    .col-sm-11 { width: 91.6666666667%; }
    .col-sm-12 { width: 100%; }
}

/* 中等屏幕 (md) - ≥768px */
@media (min-width: 768px) {
    .col-md-1 { width: 8.3333333333%; }
    .col-md-2 { width: 16.6666666667%; }
    .col-md-3 { width: 25%; }
    .col-md-4 { width: 33.3333333333%; }
    .col-md-5 { width: 41.6666666667%; }
    .col-md-6 { width: 50%; }
    .col-md-7 { width: 58.3333333333%; }
    .col-md-8 { width: 66.6666666667%; }
    .col-md-9 { width: 75%; }
    .col-md-10 { width: 83.3333333333%; }
    .col-md-11 { width: 91.6666666667%; }
    .col-md-12 { width: 100%; }
}

/* 大屏幕 (lg) - ≥992px */
@media (min-width: 992px) {
    .col-lg-1 { width: 8.3333333333%; }
    .col-lg-2 { width: 16.6666666667%; }
    .col-lg-3 { width: 25%; }
    .col-lg-4 { width: 33.3333333333%; }
    .col-lg-5 { width: 41.6666666667%; }
    .col-lg-6 { width: 50%; }
    .col-lg-7 { width: 58.3333333333%; }
    .col-lg-8 { width: 66.6666666667%; }
    .col-lg-9 { width: 75%; }
    .col-lg-10 { width: 83.3333333333%; }
    .col-lg-11 { width: 91.6666666667%; }
    .col-lg-12 { width: 100%; }
}

/* 超大屏幕 (xl) - ≥1200px */
@media (min-width: 1200px) {
    .col-xl-1 { width: 8.3333333333%; }
    .col-xl-2 { width: 16.6666666667%; }
    .col-xl-3 { width: 25%; }
    .col-xl-4 { width: 33.3333333333%; }
    .col-xl-5 { width: 41.6666666667%; }
    .col-xl-6 { width: 50%; }
    .col-xl-7 { width: 58.3333333333%; }
    .col-xl-8 { width: 66.6666666667%; }
    .col-xl-9 { width: 75%; }
    .col-xl-10 { width: 83.3333333333%; }
    .col-xl-11 { width: 91.6666666667%; }
    .col-xl-12 { width: 100%; }
}

/* 特大屏幕 (xxl) - ≥1400px */
@media (min-width: 1400px) {
    .col-xxl-1 { width: 8.3333333333%; }
    .col-xxl-2 { width: 16.6666666667%; }
    .col-xxl-3 { width: 25%; }
    .col-xxl-4 { width: 33.3333333333%; }
    .col-xxl-5 { width: 41.6666666667%; }
    .col-xxl-6 { width: 50%; }
    .col-xxl-7 { width: 58.3333333333%; }
    .col-xxl-8 { width: 66.6666666667%; }
    .col-xxl-9 { width: 75%; }
    .col-xxl-10 { width: 83.3333333333%; }
    .col-xxl-11 { width: 91.6666666667%; }
    .col-xxl-12 { width: 100%; }
}



/* 文字溢出隐藏类 */
.row-1-hidden {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
    overflow: hidden;
    text-overflow: ellipsis;
}

.row-2-hidden {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    text-overflow: ellipsis;
}

.badge{
    font-weight: normal;
    padding: 5px 10px;
    font-size: 12px;
    margin-right: 4px;
}
.badge-danger {
    background: #ffbaba78;
    color: #F53F3F;
}
.badge-success {
    background-color: rgb(205 255 211 / 46%);
    color: #28a745;
}

.layui-form-label{
    position: unset;
    text-align: unset;
    width: 100%;
    float: unset;
    padding: 0 0 10px 0;
}
.layui-input-block{
    margin-left: 0;

}
/* 1. 简约优雅款 Blockquote */
.layui-elem-quote.quote-simple {
    position: relative;
    border-left: 4px solid #1E9FFF;
    background-color: #f8f9fa;
    border-radius: 0 4px 4px 0;
    padding: 15px 20px;
    margin: 15px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

/* 2. 彩色主题款 Blockquote */
.quote-primary {
    border-left-color: #1E9FFF;
    background-color: rgba(30, 159, 255, 0.05);
}
.quote-success {
    border-left-color: #5FB878;
    background-color: rgba(95, 184, 120, 0.05);
}
.quote-warning {
    border-left-color: #FFB800;
    background-color: rgba(255, 184, 0, 0.05);
}
.quote-danger {
    border-left-color: #FF5722;
    background-color: rgba(255, 87, 34, 0.05);
}

/* 3. 带图标款 Blockquote */
.layui-elem-quote.quote-icon {
    padding-left: 45px;
    position: relative;
}
.quote-icon::before {
    content: "\e60c"; /* Layui 图标字体 */
    font-family: layui-icon;
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
    color: #1E9FFF;
}
.quote-icon-success::before {
    content: "\e618";
    color: #5FB878;
}
.quote-icon-warning::before {
    content: "\e62a";
    color: #FFB800;
}
.quote-icon-danger::before {
    content: "\e640";
    color: #FF5722;
}

/* 4. 渐变边框款 Blockquote */
.quote-gradient {
    position: relative;
    border-left: none;
    background: #fff;
    overflow: hidden;
}
.quote-gradient::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(to bottom, #1E9FFF, #5FB878);
}

/* 内容样式优化 */
.quote-content {
    color: #666;
    line-height: 1.8;
    margin: 0;
}
.quote-author {
    margin-top: 10px;
    color: #999;
    font-size: 12px;
    text-align: right;
}

.plan-item {
    background: #fff;
    border: 2px solid transparent;
    border-radius: 16px;
    padding: 24px;
    padding-top: 20px;
    padding-bottom: 12px;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    display: flex;
    flex-direction: column;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.plan-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
    border-color: #e9d5ff;
}

.plan-item.active {
    transform: translateY(-4px);
    border-color: #a855f7;
    background: #fff;
    box-shadow: 0 10px 30px -5px rgba(168, 85, 247, 0.2);
    z-index: 10;
}

.plan-tag {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #a855f7 0%, #ec4899 100%);
    color: white;
    font-size: 12px;
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 600;
    box-shadow: 0 4px 6px rgba(168, 85, 247, 0.3);
    opacity: 0;
    transition: opacity 0.3s;
}

.plan-item.active .plan-tag {
    opacity: 1;
}

.plan-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 18px;
    font-weight: 700;
    color: #334155;
    margin-bottom: 15px;
}

.plan-price {
    font-size: 32px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.plan-price small {
    font-size: 14px;
    color: #64748b;
    font-weight: 400;
}

/* Feature List */
.feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
    flex: 1;
}

.feature-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    font-size: 14px;
    color: #64748b;
    border-bottom: 1px dashed #f1f5f9;
}

.feature-item:last-child {
    border-bottom: none;
}

.feature-check { color: #10b981; }
.feature-cross { color: #f43f5e; }
.feature-value { color: #a855f7; font-weight: 600; }

/* Info Box */
.info-box {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    font-size: 13px;
    line-height: 1.8;
    color: #475569;
}

.info-box p {
    margin-bottom: 8px;
}

.info-title {
    font-weight: 700;
    color: #334155;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Action Button */
.btn-submit {
    background: linear-gradient(135deg, #a855f7 0%, #ec4899 100%);
    border: none;
    color: white;
    height: 50px;
    padding: 0 40px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -5px rgba(236, 72, 153, 0.4);
    opacity: 0.95;
}

.btn-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* Layui Grid Fixes */
.layui-row {
    margin-left: -12px;
    margin-right: -12px;
}
.layui-col-md4 {
    padding: 0 12px;
    margin-bottom: 20px;
}

/* Icons */
.icon-crown { width: 20px; height: 20px; }
.icon-check { width: 18px; height: 18px; }
.icon-x { width: 18px; height: 18px; }

.crown-bronze { color: #d97706; fill: #d97706; }

.layui-badge-rim, .layui-border, .layui-colla-content, .layui-colla-item, .layui-collapse, .layui-elem-field, .layui-form-pane .layui-form-item[pane], .layui-form-pane .layui-form-label, .layui-input, .layui-input-split, .layui-panel, .layui-quote-nm, .layui-select, .layui-tab-bar, .layui-tab-card, .layui-tab-title, .layui-tab-title .layui-this:after, .layui-textarea {
    border-color: #d2d6de;
}
.form-tips {
    color: #86909c;
    font-size: 14px;
    margin-top: 5px;
    line-height: 1.5;
}
.layui-panel{
    border: none;
}
.layui-table-view-1 .layui-table-body .layui-table tr .layui-table-cell{
    max-height: unset!important;
}
.layui-btn {
    display: inline-block;
    margin-bottom: 0;
    font-weight: normal;
    text-align: center;
    vertical-align: middle;
    touch-action: manipulation;
    cursor: pointer;
    background-image: none;
    border: 1px solid transparent;
    white-space: nowrap;
    padding: 6px 12px;
    font-size: 13px;
    line-height: 1.42857143;
    border-radius: 3px;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    height: auto;
}
.layui-btn-disabled, .layui-btn-disabled:active, .layui-btn-disabled:hover {
    cursor: not-allowed !important;
    opacity: 0.5;
}
#form-btn {
    background: #eee;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50px;
    line-height: 50px;
    margin: 0 auto;
    text-align: center;
}
.layui-badge{
    height: unset;
    line-height: unset;
    padding: 2px 10px;
    font-size: 13px;
    border-radius: 5px;
}