/* =============================================
   分站购买页 sub.css
   布局：左右两栏，套餐列表 + 开通表单
============================================= */

.sub-page {
    max-width: 1295px;
    margin: 0 auto 55px;
    padding: 30px;
    background-color: #ffffff;
    border-radius: 8px;
}

/* =========================
   顶部标题栏
========================= */

.sub-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.sub-header__title {
    font-size: 22px;
    font-weight: 700;
    color: #111;
    margin: 0 0 4px;
}

.sub-header__sub {
    font-size: 13px;
    color: #999;
    margin: 0;
}

.sub-header__right {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #555;
    background: #f4f7ff;
    border: 1px solid #dce8ff;
    border-radius: 20px;
    padding: 6px 14px;
}

.sub-header__right i {
    color: #2b6df6;
    font-size: 15px;
}

.sub-header__right b {
    color: #2b6df6;
}

/* =========================
   左右主布局
========================= */

.sub-layout {
    display: grid;
    grid-template-columns: 1fr 450px;
    gap: 24px;
    align-items: start;
}

@media (max-width: 900px) {
    .sub-layout {
        grid-template-columns: 1fr;
    }
}

/* =========================
   区块标签
========================= */

.sub-section-label {
    font-size: 13px;
    font-weight: 600;
    color: #888;
    text-transform: uppercase;
    letter-spacing: .06em;
    margin-bottom: 12px;
    margin-top: 24px;
}

.sub-left .sub-section-label:first-child,
.sub-right .sub-section-label:first-child {
    margin-top: 0;
}

/* =========================
   套餐列表（左栏）
========================= */

.sub-plan-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.sub-plan-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #fff;
    border: 1.5px solid #e8e8e8;
    border-radius: 10px;
    padding: 14px 16px;
    cursor: pointer;
    transition: border-color .18s, box-shadow .18s;
}

.sub-plan-item:hover {
    border-color: #93b4fd;
    box-shadow: 0 2px 10px rgba(43,109,246,.07);
}

.sub-plan-item.is-active {
    border-color: #2b6df6;
    background: #f4f8ff;
    box-shadow: 0 2px 12px rgba(43,109,246,.12);
}

.sub-plan-item__icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
    transition: transform .18s;
}

.sub-plan-item:hover .sub-plan-item__icon,
.sub-plan-item.is-active .sub-plan-item__icon {
    transform: scale(1.1);
}

.sub-plan-item__main {
    flex: 1;
    min-width: 0;
}

.sub-plan-item__name {
    font-size: 15px;
    font-weight: 600;
    color: #222;
    margin-bottom: 3px;
}

.sub-plan-item__meta {
    font-size: 12px;
    color: #999;
}

.sub-plan-item__price {
    font-size: 20px;
    font-weight: 700;
    color: #2b6df6;
    white-space: nowrap;
    flex-shrink: 0;
}

.sub-plan-item__price span {
    font-size: 12px;
    font-weight: 400;
    color: #aaa;
    margin-left: 1px;
}

.sub-plan-item__check {
    font-size: 18px;
    color: #d0d0d0;
    flex-shrink: 0;
    transition: color .18s;
}

.sub-plan-item.is-active .sub-plan-item__check {
    color: #2b6df6;
}

/* =========================
   套餐说明
========================= */

.sub-desc-box {
    background: #f8faff;
    border: 1px solid #dce8ff;
    border-radius: 8px;
    padding: 16px 18px;
    margin-bottom: 20px;
}

.sub-desc-box__title {
    font-size: 13px;
    font-weight: 600;
    color: #2b6df6;
    margin-bottom: 10px;
}

.sub-desc-box__content {
    font-size: 13px;
    color: #555;
    line-height: 1.8;
}

/* =========================
   套餐对比表格
========================= */

.sub-compare {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 10px;
    padding: 20px;
    margin-top: 8px;
}

.sub-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.sub-table th,
.sub-table td {
    padding: 10px 12px;
    border-bottom: 1px solid #f0f0f0;
    text-align: center;
    white-space: nowrap;
}

.sub-table th {
    background: #f7f9ff;
    font-weight: 600;
    color: #444;
}

.sub-table td:first-child,
.sub-table th:first-child {
    text-align: left;
    color: #666;
}

.sub-table tr:last-child td {
    border-bottom: none;
}

/* =========================
   开通表单（右栏）
========================= */

.sub-form {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0,0,0,.04);
}

/* 已选套餐 */
.sub-selected {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f4f8ff;
    border: 1px solid #dce8ff;
    border-radius: 8px;
    padding: 12px 14px;
    margin-bottom: 20px;
}

.sub-selected__label {
    font-size: 12px;
    color: #999;
    margin-bottom: 2px;
    display: block;
}

.sub-selected__val {
    font-size: 15px;
    font-weight: 700;
    color: #2b6df6;
}

/* 字段 */
.sub-field {
    margin-bottom: 18px;
}

.sub-field__label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #444;
    margin-bottom: 7px;
}

.sub-required {
    color: #e74c3c;
    margin-left: 2px;
}

.sub-input {
    width: 100%;
    height: 40px;
    padding: 0 12px;
    border: 1.5px solid #e0e0e0;
    border-radius: 7px;
    font-size: 14px;
    color: #222;
    outline: none;
    background: #fff;
    box-sizing: border-box;
    transition: border-color .18s, box-shadow .18s;
}

.sub-input:focus {
    border-color: #2b6df6;
    box-shadow: 0 0 0 3px rgba(43,109,246,.08);
}

/* 域名行 */
.sub-domain-row {
    display: flex;
    align-items: center;
    gap: 6px;
}

.sub-domain-prefix {
    flex: 1;
    min-width: 0;
}

.sub-domain-sep {
    font-size: 18px;
    font-weight: 700;
    color: #bbb;
    flex-shrink: 0;
    line-height: 40px;
}

.sub-domain-select {
    flex: 1;
    min-width: 0;
    cursor: pointer;
}

.sub-domain-preview {
    margin-top: 6px;
    font-size: 12px;
    color: #999;
    min-height: 18px;
}

.sub-domain-preview b {
    color: #2b6df6;
    font-weight: 600;
}

/* 提示条 */
.sub-tip {
    background: #fffbec;
    border: 1px solid #ffe58f;
    border-radius: 7px;
    padding: 10px 14px;
    font-size: 12px;
    color: #7a6200;
    margin-bottom: 18px;
    line-height: 1.6;
}

.sub-tip i {
    color: #f7b500;
    margin-right: 5px;
}

/* 提交按钮 */
.sub-submit {
    width: 100%;
    height: 46px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    color: #fff;
    cursor: pointer;
    background: linear-gradient(90deg, #2b6df6, #4f8fff);
    letter-spacing: .03em;
    transition: opacity .18s, transform .1s;
}

.sub-submit:hover {
    opacity: .92;
}

.sub-submit:active {
    transform: scale(.98);
}

.sub-submit:disabled {
    opacity: .6;
    cursor: not-allowed;
}

/* =========================
   加载占位 / 错误
========================= */

.sub-loading {
    text-align: center;
    padding: 40px 0;
    color: #aaa;
    font-size: 14px;
}

.sub-loading--err {
    color: #e74c3c;
}

/* =========================
   功能未启用提示
========================= */

.sub-disabled {
    text-align: center;
    padding: 80px 20px;
    background: #fff;
    border-radius: 12px;
    border: 1px solid #eee;
    margin: 20px 0;
}

.sub-disabled__icon {
    font-size: 52px;
    color: #e0e0e0;
    margin-bottom: 18px;
}

.sub-disabled__title {
    font-size: 20px;
    font-weight: 700;
    color: #333;
    margin-bottom: 10px;
}

.sub-disabled__desc {
    font-size: 14px;
    color: #aaa;
}
