/* Feabox Authentication Center – page layout + result styles  v1.0.27 */

/* Hide dealer verification shortcode block (图2) if still on page */
.fea-dealer-search,
.fea-dealer-search-wrap {
    display: none !important;
}

/* ---- Stackable tabs query UI ---- */
.fea-auth-center {
    width: 100%;
    max-width: 900px;
    margin-left: auto !important;
    margin-right: auto !important;
}

.fea-auth-center .stk-block-tab-content,
.fea-auth-center .stk-block-tab-content .stk-inner-blocks {
    margin-top: 16px !important;
}

.fea-auth-center .stk-block-tab-labels {
    max-width: 520px;
    margin-left: auto !important;
    margin-right: auto !important;
}

.fea-auth-center .fea-auth-panel .stk-inner-blocks {
    align-items: center !important;
    row-gap: 1rem !important;
}

.fea-auth-center .fea-auth-field {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    text-align: left;
}

.fea-auth-center .fea-auth-label,
.fea-auth-center .gspb_text-id-gsbp-f6c2817,
.fea-auth-center .gspb_text-id-gsbp-4b628fd {
    color: #ffffff !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    line-height: 16px !important;
    margin-bottom: 4px !important;
}

.fea-auth-center .fea-auth-input,
.fea-auth-center input.gsbp-f296cc8,
.fea-auth-center input.gsbp-b4baae7 {
    display: block;
    width: 100% !important;
    max-width: 400px !important;
    min-width: 280px !important;
    height: 56px !important;
    padding: 12px 16px !important;
    border: none !important;
    border-radius: 12px !important;
    background-color: #3b3953 !important;
    color: #ffffff !important;
    font-size: 15px !important;
    outline: none;
    box-sizing: border-box;
}

.fea-auth-center .fea-auth-input::placeholder,
.fea-auth-center input.gsbp-f296cc8::placeholder,
.fea-auth-center input.gsbp-b4baae7::placeholder {
    color: rgba(255, 255, 255, 0.42) !important;
}

.fea-auth-center .fea-auth-input:focus,
.fea-auth-center input.gsbp-f296cc8:focus,
.fea-auth-center input.gsbp-b4baae7:focus {
    box-shadow: 0 0 0 2px rgba(64, 65, 197, 0.55);
}

.fea-auth-center .fea-auth-action,
.fea-auth-center .gspb_button_wrapper {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    text-align: center;
}

.fea-auth-center .fea-auth-action .gspb-buttonbox,
.fea-auth-center .gspb-buttonbox {
    display: inline-block;
    margin-top: 4px;
    padding: 14px 28px !important;
    border: none !important;
    border-radius: 12px !important;
    background: #4041c5 !important;
    color: #ffffff !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    cursor: pointer;
    transition: background 0.2s ease, opacity 0.2s ease;
}

.fea-auth-center .fea-auth-action .gspb-buttonbox:hover,
.fea-auth-center .gspb-buttonbox:hover {
    background: #4f50d4 !important;
    color: #ffffff !important;
}

.fea-auth-center .stk-block-tabs__tab:not(.stk-block-tabs__tab--active) {
    color: #ffffff !important;
}

.fea-auth-center .stk-block-tabs__tab:not(.stk-block-tabs__tab--active):hover {
    background: rgba(255, 255, 255, 0.08) !important;
}

/* ---- Elementor embed (pill tabs + centered form, feabox.com dark hero) ---- */
.fea-auth-center--elementor {
    width: 100%;
    max-width: 900px;
    margin: 0 auto 80px !important;
    padding: 180px 20px 0;
    box-sizing: border-box;
}

@media screen and (max-width: 1023px) {
    .fea-auth-center--elementor {
        padding-top: 120px;
    }
}

@media screen and (max-width: 767px) {
    .fea-auth-center--elementor {
        padding-top: 72px;
        margin-bottom: 56px !important;
    }
}

.fea-auth-center--elementor .fea-auth-tab-bar {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 4px;
    max-width: 520px;
    width: 100%;
    margin: 0 auto 28px;
    padding: 8px;
    border-radius: 50px;
    background: #14151c;
    box-sizing: border-box;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.fea-auth-center--elementor .fea-auth-tab-bar .stk-block-tabs__tab {
    flex: 1 1 0;
    min-width: 0;
    margin: 0;
    padding: 10px 14px;
    border: none;
    border-radius: 50px;
    background: transparent;
    color: rgba(255, 255, 255, 0.88);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.25;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
    white-space: nowrap;
}

.fea-auth-center--elementor .fea-auth-tab-bar .stk-block-tabs__tab--active {
    background: var(--theme-palette-color-1, #4041c5) !important;
    color: #ffffff !important;
}

.fea-auth-center--elementor .fea-auth-tab-bar .stk-block-tabs__tab:not(.stk-block-tabs__tab--active):hover {
    background: rgba(255, 255, 255, 0.08) !important;
}

.fea-auth-center--elementor .fea-auth-center__panel {
    width: 100%;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.fea-auth-center--elementor .fea-auth-panel--hidden {
    display: none !important;
}

.fea-auth-center--elementor .fea-auth-panel .stk-inner-blocks {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    row-gap: 1.25rem;
    width: 100%;
}

.fea-auth-center--elementor .fea-auth-field {
    width: 100%;
    max-width: none;
    margin: 0;
}

.fea-auth-center--elementor .fea-auth-action {
    width: 100%;
    max-width: none;
    margin: 0;
}

.fea-auth-center--elementor .fea-auth-action .gspb-buttonbox {
    display: block;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 16px 24px !important;
    border-radius: 12px !important;
    text-align: center;
    box-sizing: border-box;
}

.fea-auth-center--elementor .gspb-buttonbox-textwrap,
.fea-auth-center--elementor .gspb-buttonbox-text {
    display: block;
    width: 100%;
}

.fea-auth-center--elementor .fea-wp-results-host {
    margin-left: auto;
    margin-right: auto;
}

/* 结果区突破 400px 表单宽度，整表一行显示 */
.fea-auth-center--elementor .fea-auth-panel-device .fea-wp-results-host {
    width: min(960px, calc(100vw - 32px));
    max-width: min(960px, calc(100vw - 32px));
    margin-top: 28px;
    margin-left: 50%;
    transform: translateX(-50%);
    position: relative;
    z-index: 2;
}

.fea-auth-center--elementor .fea-auth-panel-auth .fea-wp-results-host {
    width: min(1230px, calc(100vw - 32px));
    max-width: min(1230px, calc(100vw - 32px));
    margin-left: 50%;
    transform: translateX(-50%);
}

@media screen and (max-width: 480px) {
    .fea-auth-center--elementor .fea-auth-tab-bar .stk-block-tabs__tab {
        font-size: 11px;
        padding: 10px 6px;
        white-space: normal;
        line-height: 1.2;
        text-align: center;
    }

    .fea-auth-center--elementor .fea-auth-tab-bar {
        max-width: 100%;
        padding: 6px;
        gap: 2px;
    }

    .fea-auth-center--elementor .fea-auth-center__panel {
        max-width: 100%;
        padding: 0 4px;
    }

    .fea-auth-center--elementor .fea-auth-panel-device .fea-wp-results-host,
    .fea-auth-center--elementor .fea-auth-panel-auth .fea-wp-results-host {
        width: 100% !important;
        max-width: 100% !important;
        margin-left: 0 !important;
        transform: none !important;
        padding: 0;
    }

    .fea-superbox-table {
        min-width: 580px;
        font-size: 12px;
    }

    .fea-superbox-table th,
    .fea-superbox-table td {
        padding: 10px 12px;
    }

    .fea-cert-sheet-wrap {
        max-width: 100%;
        padding: 0 4px;
    }
}

@media screen and (max-width: 767px) {
    .fea-auth-center--elementor {
        padding-left: 16px;
        padding-right: 16px;
    }

    .fea-auth-center--elementor .fea-auth-panel-device .fea-wp-results-host,
    .fea-auth-center--elementor .fea-auth-panel-auth .fea-wp-results-host {
        width: calc(100vw - 32px);
        max-width: calc(100vw - 32px);
    }
}

.fea-auth-center .fea-wp-results-device {
    max-width: 900px;
    width: 100%;
}

.fea-auth-center .fea-wp-results-auth {
    max-width: 1230px;
    width: 100%;
}

.fea-wp-results-host {
    width: 100%;
    max-width: 900px;
    margin: 24px auto 0;
    padding: 0;
    clear: both;
}

.fea-wp-msg {
    font-size: 14px;
    color: #a7a9be;
    margin: 0;
    text-align: center;
}

.fea-wp-msg.error {
    color: #ff5d73;
}

/* ---- Device table (dark card; fonts unchanged vs original) ---- */
.fea-superbox-device-result {
    background: #1c1b28;
    border: 1px solid #4041c5 !important;
    outline: none !important;
    border-radius: 12px;
    padding: 0;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
    overflow-x: auto;
    overflow-y: hidden;
    width: 100%;
    -webkit-overflow-scrolling: touch;
}

.fea-superbox-table {
    width: 100%;
    min-width: 760px;
    border-collapse: collapse;
    table-layout: auto;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 13px;
    color: #ffffff;
}

.fea-superbox-table th,
.fea-superbox-table td {
    padding: 12px 16px;
    text-align: center;
    border: 1px solid #4041c5 !important;
    white-space: nowrap;
    word-break: keep-all;
}

/* 外圈由容器圆角描边，单元格去掉最外一圈避免双线 */
.fea-superbox-table thead tr:first-child th {
    border-top: none !important;
}

.fea-superbox-table tbody tr:last-child td {
    border-bottom: none !important;
}

.fea-superbox-table th:first-child,
.fea-superbox-table td:first-child {
    border-left: none !important;
}

.fea-superbox-table th:last-child,
.fea-superbox-table td:last-child {
    border-right: none !important;
}

.fea-superbox-table td:first-child,
.fea-superbox-table th:first-child {
    text-align: left;
}

.fea-superbox-table td:nth-child(2),
.fea-superbox-table th:nth-child(2) {
    text-align: left;
}

.fea-superbox-table th {
    background: #3b3953 !important;
    font-weight: 700;
    color: #ffffff !important;
}

.fea-superbox-table td {
    font-weight: 700;
    color: #ffffff !important;
    background: #1c1b28 !important;
}

.fea-superbox-table tbody tr:hover td {
    background: rgba(64, 65, 197, 0.45) !important;
    color: #ffffff !important;
}

/* 覆盖 Blocksy/主题给 table 的白底 + 本站白字冲突 */
.fea-auth-center .fea-wp-results-host .fea-superbox-device-result,
.fea-wp-results-device .fea-superbox-device-result {
    background: #1c1b28 !important;
}

.fea-auth-center .fea-wp-results-host .fea-superbox-table th,
.fea-wp-results-device .fea-superbox-table th {
    background: #3b3953 !important;
    color: #ffffff !important;
}

.fea-auth-center .fea-wp-results-host .fea-superbox-table td,
.fea-wp-results-device .fea-superbox-table td {
    background: #1c1b28 !important;
    color: #ffffff !important;
}

.fea-auth-center .fea-wp-results-host .fea-superbox-device-result,
.fea-wp-results-device .fea-superbox-device-result {
    border: 1px solid #4041c5 !important;
    outline: none !important;
}

/* ---- Authorization result header ---- */
.fea-superbox-auth-result {
    text-align: center;
}

.fea-inquire-label {
    display: none !important;
}

.fea-auth-status-pill {
    display: inline-block;
    margin: 0 auto 20px;
    padding: 10px 28px;
    min-width: 220px;
    background: rgba(245, 247, 250, 0.95);
    border-radius: 4px;
    font-size: 15px;
    font-weight: 600;
    font-family: Arial, Helvetica, sans-serif;
    letter-spacing: 0.01em;
}

.fea-auth-status-pill.ok {
    color: #67c23a;
}

.fea-auth-status-pill.warn {
    color: #e6a23c;
}

.fea-auth-status-pill.error {
    color: #f56c6c;
}

.fea-auth-status-pill.idle {
    color: #909399;
}

/* ---- Certificate sheet (online.jpg / offline.jpg) ---- */
.fea-cert-sheet-wrap {
    position: relative;
    max-width: 1080px;
    margin: 0 auto;
}

.fea-cert-sheet {
    position: relative;
    width: 100%;
    aspect-ratio: 800 / 550;
    background-repeat: no-repeat;
    background-position: center center;
    background-size: 100% 100%;
    overflow: hidden;
    text-align: left;
}

.fea-cert-year {
    position: absolute;
    left: 50%;
    top: 52%;
    transform: translate(-50%, -50%);
    z-index: 1;
    font-size: clamp(52px, 11vw, 96px);
    font-weight: 800;
    line-height: 1;
    color: transparent;
    -webkit-text-stroke: 1px rgba(128, 0, 128, 0.14);
    pointer-events: none;
    white-space: nowrap;
    user-select: none;
}

/* 上部分：相对背景水平居中；下部分：同宽同左缘，顶边对齐背景蓝章 */
.fea-cert-inner {
    position: absolute;
    left: 50%;
    top: 38%;
    width: 76%;
    transform: translateX(-50%);
    z-index: 2;
    box-sizing: border-box;
    text-align: left;
}

.fea-cert-content {
    position: relative;
    width: 100%;
    text-align: left;
    text-indent: 2em;
    color: #946232;
    font-family: Arial, Helvetica, sans-serif;
    font-size: clamp(12px, 1.65vw, 16px);
    font-weight: 600;
    line-height: 1.82;
    letter-spacing: 0.04em;
    box-sizing: border-box;
}

.fea-cert-online .fea-cert-content {
    font-size: clamp(11px, 1.55vw, 15px);
    line-height: 1.78;
}

.fea-cert-online .fea-cert-sub {
    display: block;
    margin-top: 0.55em;
    text-indent: 0;
}

.fea-cert-content .fea-cert-name {
    color: #000;
    font-weight: 800;
    letter-spacing: 0.05em;
    border-bottom: 1px solid #946232;
}

.fea-cert-content .fea-cert-highlight {
    color: #0000ff;
    font-weight: 800;
    letter-spacing: 0.05em;
    border-bottom: 1px solid #946232;
}

.fea-cert-meta {
    position: absolute;
    left: 50%;
    top: 64%;
    width: 76%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.48em;
    text-align: left;
    box-sizing: border-box;
}

.fea-cert-meta-line {
    margin: 0;
    padding: 0;
    color: #946232;
    font-family: Arial, Helvetica, sans-serif;
    font-size: clamp(11px, 1.55vw, 14px);
    font-weight: 600;
    line-height: 1.78;
    letter-spacing: 0.035em;
    text-align: left;
    white-space: nowrap;
}

.fea-cert-meta-line span {
    color: #000;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.fea-cert-stars {
    font-weight: 400;
    letter-spacing: 0.06em;
    font-size: 1.1em;
    line-height: 1;
}

.fea-cert-image-wrap {
    max-width: 1140px;
}

.fea-cert-image-frame {
    position: relative;
    z-index: 2;
    line-height: 0;
}

.fea-cert-image {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 2px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
}

.fea-cert-stamp {
    display: flex;
    position: absolute;
    inset: 0;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    z-index: 5;
}

.fea-cert-stamp span {
    display: block;
    max-width: 88%;
    padding: 18px 28px;
    border: 6px solid #e74c3c;
    border-radius: 8px;
    color: #fff;
    background: rgba(231, 76, 60, 0.88);
    font-family: Impact, "Arial Black", sans-serif;
    font-size: clamp(14px, 2.8vw, 22px);
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-align: center;
    line-height: 1.25;
    transform: rotate(-18deg);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
}

.fea-wp-loading {
    opacity: 0.7 !important;
}

@media (max-width: 640px) {
    .fea-auth-center {
        max-width: 100%;
        padding: 0 16px;
    }

    .fea-auth-center .fea-auth-field,
    .fea-auth-center .fea-auth-action {
        max-width: 100%;
    }

    .fea-wp-results-host {
        margin-top: 28px;
        padding: 0;
    }

    .fea-superbox-table {
        font-size: 11px;
    }

    .fea-superbox-table th,
    .fea-superbox-table td {
        padding: 10px 6px;
    }

    .fea-cert-sheet-wrap {
        max-width: 100%;
    }

    .fea-cert-sheet {
        background-size: 100% 100%;
    }

    .fea-cert-inner {
        top: 37%;
        width: 78%;
    }

    .fea-cert-content {
        font-size: 11px;
        text-indent: 1.2em;
        line-height: 1.72;
        letter-spacing: 0.03em;
    }

    .fea-cert-online .fea-cert-content {
        font-size: 10.5px;
        line-height: 1.68;
    }

    .fea-cert-online .fea-cert-sub {
        margin-top: 0.45em;
    }

    .fea-cert-meta {
        top: 63%;
        width: 78%;
        gap: 0.36em;
    }

    .fea-cert-meta-line {
        font-size: 11px;
        line-height: 1.68;
        letter-spacing: 0.03em;
        white-space: normal;
    }

    .fea-cert-year {
        font-size: 42px;
        top: 54%;
    }

    .fea-auth-status-pill {
        min-width: 0;
        width: 100%;
        max-width: 320px;
    }
}

/* 覆盖 Blocksy / 主题 table 规则 + 旧版远程 CSS 缓存 */
.fea-auth-center.fea-auth-center--elementor .fea-wp-results-host .fea-superbox-device-result,
.fea-auth-center .fea-wp-results-device .fea-superbox-device-result {
    border: 1px solid #4041c5 !important;
    border-radius: 12px;
}

.fea-auth-center.fea-auth-center--elementor .fea-wp-results-host table.fea-superbox-table th,
.fea-auth-center.fea-auth-center--elementor .fea-wp-results-host table.fea-superbox-table td,
.fea-auth-center .fea-wp-results-device table.fea-superbox-table th,
.fea-auth-center .fea-wp-results-device table.fea-superbox-table td {
    border-color: #4041c5 !important;
    border-style: solid !important;
    border-width: 1px !important;
}
