/* ============================================================
   星途拓联 · 全站统一视觉层
   统一品牌色、页头、页脚、卡片、表单、按钮与移动端节奏
   ============================================================ */
:root {
    --xt-brand: #2f6bff;
    --xt-brand-dark: #1f55e0;
    --xt-brand-soft: #eaf1ff;
    --xt-ink: #0f1e33;
    --xt-ink-2: #4b5b74;
    --xt-muted: #8a99b3;
    --xt-line: #e6edf9;
    --xt-bg: #f5f7fb;
    --xt-card: #ffffff;
    --xt-radius: 16px;
    --xt-radius-sm: 12px;
    --xt-shadow: 0 12px 30px -24px rgba(15, 30, 51, .42);
}

html {
    background: var(--xt-bg);
}

body {
    background-color: var(--xt-bg);
    color: var(--xt-ink);
    -webkit-font-smoothing: antialiased;
}

/* 主站主题色统一：无论模板配置成哪种颜色，按钮、价格、导航高亮都使用品牌蓝 */
body.ch-body {
    --ch-primary: #2f6bff !important;
    --ch-primary-dark: #1f55e0 !important;
    --ch-primary-soft: #eaf1ff !important;
    --ch-grad: linear-gradient(135deg, #4a84ff 0%, #2f6bff 60%, #6a5cff 100%) !important;
    --ch-grad-soft: linear-gradient(135deg, #eef5ff 0%, #eef0ff 100%) !important;
}

/* 顶部统一为一条品牌蓝渐变线，不再混用多色 */
body.ch-body .ch-rainbow-strip {
    background: linear-gradient(90deg, #2f6bff 0%, #6a9bff 55%, #8ea8ff 100%) !important;
    height: 2px;
}

body.ch-body .ch-rainbow-strip i {
    display: none !important;
}

/* 主站页头与全站保持同一容器宽度、同一品牌标 */
body.ch-body .ch-header {
    background: rgba(255, 255, 255, .94) !important;
    border-bottom: 1px solid var(--xt-line) !important;
    box-shadow: 0 8px 24px -22px rgba(15, 30, 51, .45);
}

body.ch-body .ch-header .wrapper {
    max-width: 1200px;
}

body.ch-body .ch-logo-mark,
body.ch-body .ch-footer-logo .ch-logo-mark {
    background: linear-gradient(135deg, #4a84ff, #2f6bff) !important;
    color: #fff !important;
    border-radius: 10px;
    box-shadow: 0 8px 16px -10px rgba(47, 107, 255, .8);
}

body.ch-body .main-nav a.is-active,
body.ch-body .main-nav a.active {
    color: var(--xt-brand) !important;
    background: var(--xt-brand-soft) !important;
}

/* 主站页脚统一深色底 */
body.ch-body .ch-footer {
    background: #0b1220 !important;
}

body.ch-body .ch-footer-badges span {
    border-radius: 999px;
}

/* 页面标题与面包屑统一 */
body .page-title,
body .ch-page-title {
    font-size: 20px;
    font-weight: 800;
    color: var(--xt-ink);
    letter-spacing: -.2px;
    line-height: 1.4;
    padding-left: 13px;
    position: relative;
}

body .page-title::before,
body .ch-page-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 18px;
    border-radius: 2px;
    background: var(--xt-brand);
}

body .ch-crumb,
body .breadcrumb {
    background: rgba(255, 255, 255, .86);
    border: 1px solid var(--xt-line);
    border-radius: 999px;
    min-height: 30px;
    padding: 5px 11px;
    color: var(--xt-muted);
    box-shadow: 0 2px 8px rgba(32, 36, 47, .03);
}

body .ch-crumb a,
body .breadcrumb a {
    color: var(--xt-ink-2);
}

/* 主站卡片、空状态、表格统一 */
body.ch-body .ch-card,
body.ch-body .ch-goods-table,
body.ch-body .ch-list-head,
body.ch-body .blog-article-card,
body.ch-body .coupon-card,
body.ch-body .empty-state {
    border-radius: var(--xt-radius);
    border: 1px solid var(--xt-line);
    background: var(--xt-card);
    box-shadow: var(--xt-shadow);
}

body.ch-body .ch-goods-row {
    border-bottom-color: #f1f5fc;
}

body.ch-body .ch-goods-thumb {
    border-radius: 12px;
    background: #f5f8ff;
}

body.ch-body .ch-col-price,
body.ch-body .ch-price-now {
    color: var(--xt-brand);
}

body.ch-body .ch-col-buy .ch-buy-btn,
body.ch-body .ch-col-buy button,
body.ch-body .empty-cta {
    background: var(--xt-brand);
    border-color: var(--xt-brand);
    color: #fff;
    border-radius: 10px;
}

body.ch-body .ch-col-buy .ch-buy-btn:hover,
body.ch-body .empty-cta:hover {
    background: var(--xt-brand-dark);
    border-color: var(--xt-brand-dark);
}

/* ============================================================
   独立插件页（订单投诉 / 投稿中心）页头统一
   ============================================================ */
body .sx-topbar,
body .bs-header {
    background: rgba(255, 255, 255, .94) !important;
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--xt-line) !important;
    box-shadow: 0 8px 24px -22px rgba(15, 30, 51, .45);
    position: sticky;
    top: 0;
    z-index: 100;
}

body .sx-topbar__inner,
body .bs-header__inner {
    max-width: 1200px !important;
    height: 64px !important;
    margin: 0 auto;
    padding: 0 20px !important;
    display: flex !important;
    align-items: center;
    gap: 18px;
    box-sizing: border-box;
}

body .sx-brand,
body .bs-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    color: var(--xt-ink) !important;
    font-size: 15.5px;
    font-weight: 800;
    letter-spacing: -.2px;
    text-decoration: none;
}

body .sx-mark,
body .bs-brand__mark {
    width: 32px !important;
    height: 32px !important;
    flex: 0 0 32px;
    border-radius: 10px !important;
    background: linear-gradient(135deg, #4a84ff, #2f6bff) !important;
    color: #fff !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    font-size: 0 !important;
    box-shadow: 0 8px 16px -10px rgba(47, 107, 255, .8);
}

body .sx-mark svg,
body .bs-brand__mark svg {
    width: 17px;
    height: 17px;
    fill: currentColor;
    display: block;
}

body .sx-name,
body .bs-brand > span:last-child {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

body .sx-nav,
body .bs-nav {
    display: flex !important;
    align-items: center;
    gap: 4px;
    margin-left: 6px;
}

body .sx-nav a,
body .bs-nav a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 36px;
    padding: 0 14px;
    border-radius: 10px;
    color: var(--xt-ink-2) !important;
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
    transition: background .16s ease, color .16s ease;
}

body .sx-nav a:hover,
body .bs-nav a:hover {
    background: #f3f7ff;
    color: var(--xt-brand) !important;
}

body .sx-nav a.is-active,
body .bs-nav a.is-active {
    background: var(--xt-brand-soft) !important;
    color: var(--xt-brand) !important;
}

body .sx-back {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 36px;
    padding: 0 14px;
    border-radius: 10px;
    border: 1px solid #dbe6f8;
    background: #fff;
    color: var(--xt-brand) !important;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

body .sx-back:hover {
    background: #f4f8ff;
    border-color: #cfe0ff;
}

body .bs-user {
    margin-left: auto;
    gap: 10px;
}

body .bs-user__link {
    color: var(--xt-ink-2) !important;
    font-size: 13px;
    text-decoration: none;
}

body .bs-user__link:hover {
    color: var(--xt-brand) !important;
}

body .bs-btn-login {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 34px;
    padding: 0 16px;
    border-radius: 10px;
    background: var(--xt-brand) !important;
    border: 1px solid var(--xt-brand) !important;
    color: #fff !important;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

body .bs-btn-login:hover {
    background: var(--xt-brand-dark) !important;
    border-color: var(--xt-brand-dark) !important;
}

/* 插件页内容卡片与按钮 */
body .oc-wrap,
body .bs-wrap {
    max-width: 1200px !important;
}

body .oc-card,
body .bs-hero,
body .bs-panel {
    border-radius: var(--xt-radius) !important;
    border: 1px solid var(--xt-line) !important;
    box-shadow: var(--xt-shadow);
}

body .oc-btn--primary,
body .bs-btn-primary,
body .bs-submit-btn {
    border-radius: 10px !important;
}

/* ============================================================
   全站统一深色页脚（插件页）
   ============================================================ */
.xt-footer {
    background: #0b1220 !important;
    color: #95a3ba;
    margin-top: 38px;
    font-size: 13px;
}

.xt-footer__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 42px 20px 30px;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.15fr;
    gap: 36px;
    box-sizing: border-box;
}

.xt-footer__logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    font-size: 16px;
    font-weight: 800;
    letter-spacing: -.2px;
}

.xt-footer__mark {
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
    border-radius: 10px;
    background: linear-gradient(135deg, #4a84ff, #2f6bff);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 16px -10px rgba(47, 107, 255, .8);
}

.xt-footer__mark svg {
    width: 17px;
    height: 17px;
    fill: currentColor;
    display: block;
}

.xt-footer__brand p {
    max-width: 340px;
    margin: 12px 0 14px;
    color: #93a1b8;
    line-height: 1.7;
}

.xt-footer__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.xt-footer__badges span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, .08);
    background: rgba(255, 255, 255, .05);
    color: #b6c3d6;
    font-size: 11.5px;
    line-height: 1.4;
}

.xt-footer__title {
    margin-bottom: 12px;
    color: #dbe4f2;
    font-size: 13px;
    font-weight: 700;
}

.xt-footer__links {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.xt-footer__links a,
.xt-footer__links span {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #95a3ba;
    font-size: 12.5px;
    line-height: 1.5;
    text-decoration: none;
}

.xt-footer__links a:hover {
    color: #fff;
}

.xt-footer__links i {
    width: 14px;
    color: #6f89b5;
    text-align: center;
}

.xt-footer__bar {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 20px 22px;
    border-top: 1px solid rgba(255, 255, 255, .08);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    color: #6f7f96;
    font-size: 12px;
    box-sizing: border-box;
}

/* ============================================================
   账号页统一
   ============================================================ */
body .auth-screen {
    background-color: var(--xt-bg);
}

body .auth-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 36px;
    padding: 0 14px;
    border-radius: 999px;
    border: 1px solid var(--xt-line);
    background: rgba(255, 255, 255, .86);
    color: var(--xt-ink-2);
    box-shadow: 0 4px 14px -12px rgba(15, 30, 51, .4);
    text-decoration: none;
}

body .auth-back:hover {
    color: var(--xt-brand);
    border-color: #cfe0ff;
    background: #fff;
}

body .auth-card {
    border-radius: 20px;
    border: 1px solid var(--xt-line);
    box-shadow: 0 24px 60px -36px rgba(15, 30, 51, .45);
}

body .auth-card button[type="submit"],
body .auth-card .btn-primary {
    background: var(--xt-brand);
    border-color: var(--xt-brand);
    border-radius: 12px;
}

body .auth-card button[type="submit"]:hover,
body .auth-card .btn-primary:hover {
    background: var(--xt-brand-dark);
    border-color: var(--xt-brand-dark);
}

/* ============================================================
   移动端
   ============================================================ */
@media (max-width: 768px) {
    body .sx-topbar__inner,
    body .bs-header__inner {
        height: 56px !important;
        padding: 0 12px !important;
        gap: 8px;
    }

    body .sx-mark,
    body .bs-brand__mark {
        width: 30px !important;
        height: 30px !important;
        flex-basis: 30px;
        border-radius: 9px !important;
    }

    body .sx-name,
    body .bs-brand > span:last-child {
        font-size: 13.5px;
    }

    body .sx-nav,
    body .bs-nav {
        display: none !important;
    }

    body .sx-back {
        height: 30px;
        padding: 0 10px;
        font-size: 12px;
    }

    body .bs-user__name {
        display: none;
    }

    body .bs-user__link {
        font-size: 12px;
    }

    body .bs-btn-login {
        height: 30px;
        padding: 0 12px;
        font-size: 12px;
    }

    .xt-footer {
        margin-top: 26px;
    }

    .xt-footer__inner {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 30px 16px 22px;
    }

    .xt-footer__brand p {
        max-width: none;
    }

    .xt-footer__bar {
        padding: 14px 16px 20px;
    }
}


/* 插件页脚固定在视口底部，避免短页面下方留白 */
body.oc-body,
body.bs-body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

body.oc-body > .xt-footer,
body.bs-body > .xt-footer {
    margin-top: auto;
}


/* 主站页脚：深色底上的文字对比度 */
.ch-footer {
    color: #b9c5da !important;
}

.ch-footer-logo,
.ch-footer-logo span,
.ch-footer-brand span {
    color: #ffffff !important;
}

.ch-footer-title {
    color: #ffffff !important;
}

.ch-footer-desc,
.ch-footer-links,
.ch-footer-links a,
.ch-footer-plain,
.ch-footer-copy,
.ch-footer-meta {
    color: #96a4bd !important;
}

.ch-footer-badges span {
    background: rgba(255, 255, 255, .09) !important;
    border: 1px solid rgba(255, 255, 255, .12) !important;
    color: #dbe6fb !important;
}

.ch-footer-badges span i {
    color: #8fb4ff;
}


/* 主站页脚与主站内容同宽，并补齐快捷入口列 */
@media (min-width: 901px) {
    .ch-footer-main {
        grid-template-columns: 1.55fr .75fr 1fr !important;
        gap: 30px !important;
    }

    .ch-footer-col--contact {
        grid-column: auto !important;
    }
}

.ch-footer-links a:hover {
    color: #ffffff !important;
}


/* 插件页顶部品牌渐变线，与主站保持一致 */
body.oc-body::before,
body.bs-body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    z-index: 9999;
    pointer-events: none;
    background: linear-gradient(90deg, #2f6bff 0%, #6a9bff 55%, #8ea8ff 100%);
}


/* 登录/注册全屏页也保留站点品牌顶线 */
.auth-screen::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    z-index: 9999;
    pointer-events: none;
    background: linear-gradient(90deg, #2f6bff 0%, #6a9bff 55%, #8ea8ff 100%);
}
