/* ==========================================================================
   清野 · 用户端站点样式（首页 / 登录注册 / 控制台）
   纯白极简 · 蓝色主题色 · 大量留白 · Inter 字体（本地自托管）
   ========================================================================== */

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 300;
    font-display: swap;
    src: url('../fonts/inter/inter-latin-300-normal.woff2') format('woff2');
}

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/inter/inter-latin-400-normal.woff2') format('woff2');
}

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('../fonts/inter/inter-latin-500-normal.woff2') format('woff2');
}

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('../fonts/inter/inter-latin-600-normal.woff2') format('woff2');
}

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('../fonts/inter/inter-latin-700-normal.woff2') format('woff2');
}

:root {
    --q-bg: #FFFFFF;
    --q-bg-soft: #F5F8FE;
    --q-surface: #FFFFFF;
    --q-surface-2: #F7FAFF;
    --q-line: #E0E7F6;
    --q-line-2: #B7CBEE;
    --q-brand: #2563EB;
    --q-brand-2: #5B8DEF;
    --q-text: #0F1B2D;
    --q-text-2: #4A5A70;
    --q-text-3: #61708A;
    --q-font: 'Inter', -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
        "Microsoft YaHei", "Segoe UI", Roboto, Arial, sans-serif;
}

/* -------------------------------------------------------------- 基础 */
body.sa-page {
    margin: 0;
    background: var(--q-bg);
    color: var(--q-text-2);
    font-family: var(--q-font);
    font-size: 15px;
    font-weight: 400;
    line-height: 1.75;
    letter-spacing: .01em;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.sa-page *, .sa-page *::before, .sa-page *::after { box-sizing: border-box; }
.sa-page h1, .sa-page h2, .sa-page h3, .sa-page h4, .sa-page h5 { margin: 0; color: var(--q-text); font-weight: 400; letter-spacing: .01em; }
.sa-page p { margin: 0; font-size: inherit; }
.sa-page a { color: inherit; text-decoration: none; transition: color .2s ease, border-color .2s ease, background .2s ease, opacity .2s ease; }
.sa-page a:hover { text-decoration: none; }
.sa-page img { max-width: 100%; }
.sa-page ul { margin: 0; padding: 0; list-style: none; }
.sa-page button { font-family: inherit; }
.sa-page svg { display: block; }

.sa-wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 32px; }
.sa-section { padding: 128px 0; }
.sa-section--soft { background: var(--q-bg-soft); }

.sa-eyebrow {
    display: inline-block;
    color: var(--q-brand);
    font-size: 12px;
    font-weight: 400;
    letter-spacing: .2em;
    text-transform: uppercase;
}

.sa-head { max-width: 640px; margin-bottom: 72px; }
.sa-head h2 { font-size: 30px; line-height: 1.5; margin: 20px 0 16px; font-weight: 300; }
.sa-head p { color: var(--q-text-2); }

/* -------------------------------------------------------------- 品牌标识 */
.sa-brand { display: inline-flex; align-items: center; gap: 12px; }
.sa-brand__mark { flex: 0 0 auto; width: 46px; }
.sa-brand__mark svg { width: 46px; height: 26px; overflow: visible; }
.sa-brand__mark svg path {
    fill: none;
    stroke: var(--q-brand);
    stroke-width: 1.1;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.sa-brand__name { color: var(--q-brand); font-size: 17px; font-weight: 400; letter-spacing: .3em; }

/* -------------------------------------------------------------- 导航 */
.sa-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 60;
    background: rgba(255, 255, 255, .78);
    -webkit-backdrop-filter: saturate(150%) blur(14px);
    backdrop-filter: saturate(150%) blur(14px);
    border-bottom: 1px solid transparent;
    transition: border-color .3s ease, background .3s ease;
}

.sa-nav.is-stuck { background: rgba(255, 255, 255, .96); border-bottom-color: var(--q-line); }

.sa-nav__inner {
    display: flex;
    align-items: center;
    gap: 48px;
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 32px;
    height: 84px;
}

.sa-nav__links { display: flex; align-items: center; gap: 34px; }
.sa-nav__links a { position: relative; color: var(--q-text-2); font-size: 14px; }
.sa-nav__links a:hover, .sa-nav__links a.is-active { color: var(--q-text); }
.sa-nav__links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -7px; height: 1px; background: var(--q-brand); opacity: 0; transition: opacity .2s ease; }
.sa-nav__links a:hover::after, .sa-nav__links a.is-active::after { opacity: 1; }

.sa-nav__right { display: flex; align-items: center; gap: 18px; margin-left: auto; }
.sa-nav__toggle { display: none; margin-left: auto; padding: 4px; background: none; border: 0; color: var(--q-brand); cursor: pointer; }

/* 用户菜单 */
.sa-user { position: relative; }
.sa-user__btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 6px 14px 6px 6px;
    background: transparent;
    border: 1px solid var(--q-line);
    border-radius: 999px;
    color: var(--q-text-2);
    font-size: 14px;
    cursor: pointer;
    transition: border-color .2s ease, color .2s ease;
}
.sa-user__btn:hover { border-color: var(--q-line-2); color: var(--q-text); }
.sa-user__btn img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; }
.sa-user__menu {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    min-width: 176px;
    padding: 8px;
    background: var(--q-surface);
    border: 1px solid var(--q-line);
    border-radius: 14px;
    box-shadow: 0 26px 60px -34px rgba(37, 99, 235, .18);
    display: none;
}
.sa-user.is-open .sa-user__menu { display: block; }
.sa-user__menu a { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 9px; color: var(--q-text-2); font-size: 14px; }
.sa-user__menu a:hover { background: var(--q-surface-2); color: var(--q-text); }
.sa-user__menu i { width: 14px; color: var(--q-text-3); font-size: 12px; }
.sa-user__menu hr { margin: 6px 4px; border: 0; border-top: 1px solid var(--q-line); }

/* -------------------------------------------------------------- 按钮 */
.sa-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: 44px;
    padding: 0 26px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 400;
    letter-spacing: .02em;
    line-height: 1;
    cursor: pointer;
    white-space: nowrap;
    transition: background .22s ease, border-color .22s ease, color .22s ease, opacity .22s ease;
}

.sa-btn--primary { background: var(--q-brand); color: #FFFFFF; }
.sa-btn--primary:hover { background: #1D4ED8; color: #FFFFFF; }

.sa-btn--ghost { border-color: var(--q-line-2); color: var(--q-brand); }
.sa-btn--ghost:hover { background: rgba(37, 99, 235, .06); border-color: var(--q-brand-2); }

.sa-btn--sm { height: 38px; padding: 0 20px; font-size: 13px; }
.sa-btn--lg { height: 50px; padding: 0 32px; }
.sa-btn--block { display: flex; width: 100%; }

/* 链接型按钮 / 文字链接需显式声明颜色，避免被 .sa-page a 的 color:inherit 覆盖 */
.sa-page a.sa-btn--primary, .sa-page a.sa-btn--primary:hover { color: #FFFFFF; }
.sa-page a.sa-btn--ghost, .sa-page a.sa-btn--ghost:hover { color: var(--q-brand); }
.sa-page a.sa-more { color: var(--q-text-3); }
.sa-page a.sa-more:hover { color: var(--q-text); }

/* -------------------------------------------------------------- 首屏 */
.sa-hero { position: relative; overflow: hidden; padding: 232px 0 168px; }
.sa-hero__glow {
    position: absolute;
    top: -320px;
    left: 50%;
    width: 1000px;
    height: 660px;
    margin-left: -500px;
    background: radial-gradient(closest-side, rgba(37, 99, 235, .12), rgba(37, 99, 235, 0));
    pointer-events: none;
}
.sa-hero__ridge { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 180px; pointer-events: none; }
.sa-hero__ridge path { fill: none; stroke: var(--q-brand-2); stroke-width: 1; opacity: .5; }
.sa-hero__inner { position: relative; z-index: 2; max-width: 760px; }
.sa-hero h1 { font-size: 62px; line-height: 1.28; font-weight: 300; margin: 24px 0 22px; letter-spacing: .1em; }
.sa-hero__desc { max-width: 520px; color: var(--q-text-2); font-size: 17px; }
.sa-hero__actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 52px; }

/* -------------------------------------------------------------- 网格 / 卡片 */
.sa-grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--q-line); border: 1px solid var(--q-line); border-radius: 16px; overflow: hidden; }

.sa-card { background: var(--q-surface); padding: 40px 32px; transition: background .25s ease; }
.sa-card:hover { background: var(--q-surface-2); }
.sa-card__ico { margin-bottom: 28px; color: var(--q-brand-2); }
.sa-card__ico svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.1; stroke-linecap: round; stroke-linejoin: round; }
.sa-card h3 { font-size: 16px; margin-bottom: 12px; color: var(--q-text); }
.sa-card p { color: var(--q-text-2); font-size: 14px; line-height: 1.8; }

/* -------------------------------------------------------------- 定制服务 */
.sa-custom { display: grid; grid-template-columns: 1fr 1fr; gap: 96px; align-items: start; }
.sa-steps { display: grid; gap: 0; margin-top: 40px; }
.sa-step { display: flex; gap: 24px; padding: 24px 0; border-top: 1px solid var(--q-line); }
.sa-step:last-child { border-bottom: 1px solid var(--q-line); }
.sa-step__no { flex: 0 0 auto; width: 28px; color: var(--q-brand); font-size: 12px; letter-spacing: .06em; padding-top: 2px; }
.sa-step b { display: block; color: var(--q-text); font-size: 15px; font-weight: 400; margin-bottom: 4px; }
.sa-step span { color: var(--q-text-2); font-size: 14px; }

.sa-contact { display: grid; gap: 0; }
.sa-contact li { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 20px 0; border-top: 1px solid var(--q-line); }
.sa-contact li:last-child { border-bottom: 1px solid var(--q-line); }
.sa-contact li span { color: var(--q-text-2); font-size: 14px; }
.sa-contact li em { color: var(--q-text-2); font-size: 14px; font-style: normal; letter-spacing: .04em; }
.sa-contact li > a { color: var(--q-brand); font-size: 14px; }
.sa-contact li > a:hover { color: var(--q-text); }
.sa-contact__val { display: inline-flex; align-items: center; gap: 10px; }
.sa-tagline { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 36px; }
.sa-tagline span { padding: 5px 14px; border: 1px solid var(--q-line); border-radius: 999px; color: var(--q-text-2); font-size: 12px; }

/* -------------------------------------------------------------- 下载 */
.sa-tabs { display: inline-flex; gap: 36px; border-bottom: 1px solid var(--q-line); }
.sa-tab {
    position: relative;
    padding: 0 0 16px;
    background: none;
    border: 0;
    color: var(--q-text-2);
    font-size: 15px;
    cursor: pointer;
    transition: color .2s ease;
}
.sa-tab:hover { color: var(--q-text); }
.sa-tab.is-active { color: var(--q-text); }
.sa-tab.is-active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: var(--q-brand); }

.sa-pane { display: none; margin-top: 48px; }
.sa-pane.is-active { display: block; }

.sa-qr-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 48px; }
.sa-qr { display: flex; gap: 28px; align-items: flex-start; }
.sa-qr__box {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 132px;
    height: 132px;
    border: 1px dashed var(--q-line-2);
    border-radius: 12px;
    background: var(--q-surface);
    color: var(--q-text-3);
    font-size: 11px;
    letter-spacing: .08em;
    text-align: center;
    line-height: 1.6;
}
.sa-qr__box svg { width: 26px; height: 26px; fill: none; stroke: var(--q-brand-2); stroke-width: 1; }
.sa-qr h4 { color: var(--q-text); font-size: 15px; font-weight: 400; margin-bottom: 10px; }
.sa-qr p { color: var(--q-text-2); font-size: 13px; line-height: 1.8; }
.sa-qr__meta { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 16px; }
.sa-qr__meta span { color: var(--q-text-3); font-size: 12px; letter-spacing: .04em; }

.sa-note { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--q-line); color: var(--q-text-3); font-size: 13px; line-height: 1.8; }

/* -------------------------------------------------------------- 套餐 */
.sa-price-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; align-items: stretch; }
.sa-price {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    padding: 52px 28px 40px;
    background: var(--q-surface);
    border: 1px solid var(--q-line);
    border-radius: 16px;
    transition: border-color .25s ease, box-shadow .25s ease;
}
.sa-price:hover { border-color: var(--q-line-2); box-shadow: 0 30px 60px -44px rgba(37, 99, 235, .22); }
.sa-price--best { border-color: var(--q-line-2); }
.sa-price__hot {
    position: absolute;
    top: 0;
    right: 0;
    display: inline-flex;
    align-items: center;
    height: 26px;
    padding: 0 16px;
    background: linear-gradient(135deg, #FB923C, #EF4444);
    color: #FFFFFF;
    font-size: 11px;
    letter-spacing: .18em;
    border-bottom-left-radius: 12px;
    box-shadow: 0 8px 18px -10px rgba(239, 68, 68, .9);
}
.sa-price h3 { font-size: 17px; }
.sa-price__sub { color: var(--q-text-3); font-size: 13px; margin-top: 8px; }
.sa-price__amount { display: flex; align-items: baseline; gap: 8px; margin: 30px 0 20px; }
.sa-price__amount b { color: var(--q-text); font-size: 34px; font-weight: 300; line-height: 1; letter-spacing: -.01em; }
.sa-price__amount b em { font-style: normal; font-size: 16px; font-weight: 400; margin-right: 2px; }
.sa-price__amount span { color: var(--q-text-3); font-size: 12px; }
.sa-price__device { color: var(--q-text-2); font-size: 13px; padding-bottom: 22px; border-bottom: 1px solid var(--q-line); }
.sa-price__feats { flex: 1; display: grid; gap: 14px; margin: 24px 0 32px; }
.sa-price__feats li { display: flex; gap: 12px; align-items: flex-start; color: var(--q-text-2); font-size: 13px; line-height: 1.7; }
.sa-price__feats i { flex: 0 0 auto; margin-top: 7px; width: 5px; height: 5px; border-radius: 50%; background: var(--q-brand-2); }

/* -------------------------------------------------------------- FAQ */
.sa-faq { max-width: 800px; }
.sa-faq__item { border-top: 1px solid var(--q-line); }
.sa-faq__item:last-child { border-bottom: 1px solid var(--q-line); }
.sa-faq__item summary { display: flex; align-items: center; gap: 20px; padding: 26px 0; color: var(--q-text); font-size: 15px; font-weight: 400; cursor: pointer; list-style: none; outline: none; }
.sa-faq__item summary::-webkit-details-marker { display: none; }
.sa-faq__item summary::after { content: "+"; margin-left: auto; color: var(--q-brand-2); font-size: 16px; font-weight: 300; }
.sa-faq__item[open] summary::after { content: "\2013"; color: var(--q-brand); }
.sa-faq__item p { padding: 0 0 28px; color: var(--q-text-2); font-size: 14px; line-height: 1.9; max-width: 680px; }

/* -------------------------------------------------------------- CTA / 页脚 */
.sa-cta { text-align: center; padding: 40px 0; }
.sa-cta h2 { font-size: 30px; font-weight: 300; line-height: 1.5; }
.sa-cta p { color: var(--q-text-2); margin-top: 16px; }
.sa-cta__actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 16px; margin-top: 40px; }

.sa-footer { border-top: 1px solid var(--q-line); padding: 80px 0 36px; }
.sa-footer__grid { display: grid; grid-template-columns: 1.8fr 1fr 1fr 1fr; gap: 48px; }
.sa-footer__desc { color: var(--q-text-3); font-size: 13px; line-height: 1.9; margin-top: 22px; max-width: 300px; }
.sa-footer h4 { color: var(--q-text-3); font-size: 12px; font-weight: 400; letter-spacing: .2em; margin-bottom: 22px; }
.sa-footer li { margin-bottom: 12px; }
.sa-footer li a { color: var(--q-text-2); font-size: 13px; }
.sa-footer li a:hover { color: var(--q-text); }
.sa-footer__bottom { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; margin-top: 64px; padding-top: 28px; border-top: 1px solid var(--q-line); color: var(--q-text-3); font-size: 12px; letter-spacing: .04em; }

/* -------------------------------------------------------------- 登录 / 注册 */
.sa-auth { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 160px 32px 96px; position: relative; overflow: hidden; }
.sa-auth__glow { position: absolute; top: -320px; left: 50%; width: 860px; height: 600px; margin-left: -430px; background: radial-gradient(closest-side, rgba(37, 99, 235, .14), rgba(37, 99, 235, 0)); pointer-events: none; }
.sa-auth__card {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 400px;
    padding: 44px 40px;
    background: var(--q-surface);
    border: 1px solid var(--q-line);
    border-radius: 18px;
    box-shadow: 0 40px 80px -56px rgba(37, 99, 235, .24);
}
.sa-auth__card h1 { font-size: 24px; font-weight: 300; margin-bottom: 12px; }
.sa-auth__card > p { color: var(--q-text-3); font-size: 14px; }

.sa-tabs-lite { display: flex; gap: 28px; margin: 36px 0 34px; border-bottom: 1px solid var(--q-line); }
.sa-tabs-lite a { padding-bottom: 14px; color: var(--q-text-2); font-size: 15px; }
.sa-tabs-lite a:hover { color: var(--q-text); }
.sa-tabs-lite a.is-active { color: var(--q-text); border-bottom: 1px solid var(--q-brand); margin-bottom: -1px; }

.sa-form { display: grid; gap: 22px; }
.sa-field label { display: block; margin-bottom: 10px; color: var(--q-text-3); font-size: 12px; font-weight: 400; letter-spacing: .1em; }
.sa-field label.required::after { content: " *"; color: var(--q-brand-2); }
.sa-form .form-control {
    width: 100%;
    height: 48px;
    padding: 0 16px;
    background: var(--q-surface-2);
    border: 1px solid var(--q-line);
    border-radius: 10px;
    box-shadow: none;
    color: var(--q-text);
    font-family: inherit;
    font-size: 14px;
    transition: border-color .2s ease, background .2s ease;
}
.sa-form .form-control:focus { background: var(--q-surface); border-color: var(--q-line-2); box-shadow: none; outline: none; }
.sa-form .form-control::placeholder { color: #93A3BC; }
.sa-form .form-group { margin-bottom: 0; }
.sa-form .form-group.has-error .form-control { border-color: #B4706C; }
.sa-form .form-group.has-success .form-control { border-color: var(--q-line-2); }

.sa-form .input-group { display: flex; width: 100%; }
.sa-form .input-group .form-control { border-radius: 10px 0 0 10px; }
.sa-form .input-group-btn { flex: 0 0 auto; width: auto; }
.sa-form .input-group-btn .btn {
    height: 48px;
    padding: 0 16px;
    border: 1px solid var(--q-line);
    border-left: 0;
    border-radius: 0 10px 10px 0;
    background: var(--q-surface-2);
    color: var(--q-brand);
    font-size: 13px;
    font-weight: 400;
}
.sa-form .input-group-btn .btn:hover { color: var(--q-text); }
.sa-form .input-group-btn img { flex: 0 0 auto; height: 48px; width: auto; max-width: none; border: 1px solid var(--q-line); border-left: 0; border-radius: 0 10px 10px 0; cursor: pointer; }

.sa-form .msg-box, .sa-form .help-block { display: block; margin: 8px 0 0; color: #B4706C; font-size: 12px; }
.sa-form .msg-box:empty, .sa-form .help-block:empty { display: none; }

.sa-check { display: flex; align-items: center; justify-content: space-between; gap: 16px; color: var(--q-text-3); font-size: 13px; }
.sa-check label { display: inline-flex; align-items: center; gap: 8px; margin: 0; font-weight: 400; cursor: pointer; }
.sa-check label input { accent-color: var(--q-brand); }
.sa-check a { color: var(--q-brand); }
.sa-check a:hover { color: var(--q-text); }
.sa-auth__foot { margin-top: 30px; padding-top: 26px; border-top: 1px solid var(--q-line); color: var(--q-text-3); font-size: 13px; text-align: center; }
.sa-auth__foot a { color: var(--q-brand); }
.sa-auth__foot a:hover { color: var(--q-text); }

/* -------------------------------------------------------------- 弹窗（Layer）浅色适配
   说明：layer 皮肤样式在运行时由 JS 注入，加载晚于本文件，故统一用 !important 覆盖 */
.layui-layer { border: 1px solid var(--q-line) !important; border-radius: 14px !important; box-shadow: 0 40px 80px -50px rgba(37, 99, 235, .3) !important; }
.layui-layer-title { height: 54px !important; padding: 0 54px 0 24px !important; line-height: 54px !important; background: transparent !important; border-bottom: 1px solid var(--q-line) !important; border-radius: 14px 14px 0 0 !important; color: var(--q-text) !important; font-size: 15px !important; font-weight: 400 !important; }
.layui-layer-setwin { top: 19px !important; right: 18px !important; }
.layui-layer-setwin a { width: 16px !important; height: 16px !important; margin-left: 0 !important; }
.layui-layer-setwin .layui-layer-close1 { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 3 L13 13 M13 3 L3 13' fill='none' stroke='%2361708A' stroke-width='1.4' stroke-linecap='round'/%3E%3C/svg%3E") center / 14px 14px no-repeat !important; opacity: .8; }
.layui-layer-setwin .layui-layer-close1:hover { opacity: 1; }
.layui-layer-content { padding: 24px !important; color: var(--q-text-2) !important; font-family: var(--q-font); }
.layui-layer .control-label { color: var(--q-text-3); font-weight: 400; }
.layui-layer .form-control { border: 1px solid var(--q-line); border-radius: 10px; box-shadow: none; }
.layui-layer .btn-primary { background: var(--q-brand); border-color: var(--q-brand); }
.layui-layer-btn { padding: 0 24px 24px !important; border-top: 0 !important; text-align: right !important; }
.layui-layer-btn a { height: 40px !important; padding: 0 22px !important; line-height: 38px !important; background: #FFFFFF !important; border: 1px solid var(--q-line-2) !important; border-radius: 999px !important; color: var(--q-text-2) !important; font-size: 14px !important; font-weight: 400 !important; }
.layui-layer-btn a:hover { border-color: var(--q-brand-2) !important; color: var(--q-brand) !important; opacity: 1 !important; }
.layui-layer-btn .layui-layer-btn0 { background: var(--q-brand) !important; border-color: var(--q-brand) !important; color: #FFFFFF !important; }
.layui-layer-btn .layui-layer-btn0:hover { background: #1D4ED8 !important; border-color: #1D4ED8 !important; color: #FFFFFF !important; }

/* 轻提示 / 消息层（Layer.msg）浅色化，替代默认半透明黑底 */
.layui-layer-msg { min-width: 200px !important; background: transparent !important; border: 1px solid var(--q-line) !important; border-radius: 12px !important; box-shadow: 0 30px 60px -34px rgba(37, 99, 235, .34) !important; }
.layui-layer-msg .layui-layer-content { padding: 15px 24px !important; background-color: #FFFFFF !important; border-radius: 12px !important; color: var(--q-text-2) !important; font-size: 14px !important; }

/* 气泡提示（Layer.tips） */
.layui-layer-tips .layui-layer-content { background: var(--q-brand) !important; border-radius: 8px !important; color: #FFFFFF !important; font-size: 13px !important; }

/* 加载层（Layer.load）图标容器保持通透 */
.layui-layer-loading .layui-layer-content { background-color: transparent !important; box-shadow: none !important; }

/* -------------------------------------------------------------- 提示浮层（Toastr）浅色适配 */
#toast-container > div {
    width: 340px;
    min-height: 0;
    padding: 15px 40px 15px 20px;
    background-color: #FFFFFF;
    background-image: none !important;
    border: 1px solid var(--q-line);
    border-left: 3px solid var(--q-brand);
    border-radius: 12px;
    box-shadow: 0 26px 60px -34px rgba(37, 99, 235, .42);
    color: var(--q-text-2);
    font-family: var(--q-font);
    font-size: 13px;
    line-height: 1.7;
    opacity: 1;
}
#toast-container > .toast-success, #toast-container > .toast-info { border-left-color: var(--q-brand); }
#toast-container > .toast-error { border-left-color: #DC2626; }
#toast-container > .toast-warning { border-left-color: #F59E0B; }
#toast-container .toast-title { display: none; }
#toast-container .toast-message { padding: 0; color: var(--q-text); font-weight: 400; }
#toast-container .toast-close-button { position: absolute; top: 10px; right: 12px; color: var(--q-text-3); font-size: 16px; font-weight: 400; opacity: .6; text-shadow: none; }
#toast-container .toast-close-button:hover { color: var(--q-text); opacity: 1; }
#toast-container .toast-progress { height: 2px; background: var(--q-brand); opacity: .5; }
#toast-container > div:hover { box-shadow: 0 30px 66px -30px rgba(37, 99, 235, .5); }
#toast-container.toast-top-center { top: 100px; }
@media (max-width: 620px) {
    #toast-container > div { width: calc(100vw - 44px); }
    #toast-container.toast-top-center { top: 88px; }
}

/* -------------------------------------------------------------- 提示 / 跳转页（dispatch_jump） */
.sa-jump-page { padding: 120px 32px 96px; }
.sa-jump { max-width: 480px; padding: 52px 44px 44px; text-align: center; }
.sa-jump__ico {
    display: grid;
    place-items: center;
    width: 76px;
    height: 76px;
    margin: 0 auto 28px;
    background: var(--q-surface-2);
    border: 1px solid var(--q-line);
    border-radius: 50%;
}
.sa-jump__ico svg { width: 36px; height: 36px; fill: none; stroke: var(--q-brand); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.sa-jump h1 { margin-bottom: 0; font-size: 19px; font-weight: 400; line-height: 1.6; word-break: break-word; }
.sa-jump .sa-jump__wait { margin-top: 14px; color: var(--q-text-3); font-size: 13px; letter-spacing: .02em; }
.sa-jump .sa-jump__wait b { color: var(--q-brand); font-weight: 500; }
.sa-jump .sa-jump__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 34px; padding-top: 30px; border-top: 1px solid var(--q-line); }
.sa-jump--success .sa-jump__ico { background: rgba(37, 99, 235, .08); border-color: rgba(37, 99, 235, .24); }
.sa-jump--success .sa-jump__ico svg { stroke: var(--q-brand); }
.sa-jump--error .sa-jump__ico { background: rgba(220, 38, 38, .07); border-color: rgba(220, 38, 38, .22); }
.sa-jump--error .sa-jump__ico svg { stroke: #DC2626; }
@media (max-width: 620px) {
    .sa-jump { padding: 40px 24px 36px; }
    .sa-jump .sa-jump__actions { gap: 12px; }
    .sa-jump .sa-jump__actions .sa-btn { flex: 1 1 auto; }
}

/* -------------------------------------------------------------- 控制台 */
.sa-console { padding: 148px 0 96px; }
.sa-console__head { display: flex; flex-wrap: wrap; align-items: center; gap: 28px; padding-bottom: 44px; border-bottom: 1px solid var(--q-line); }
.sa-console__head img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; border: 1px solid var(--q-line); }
.sa-console__head h1 { font-size: 22px; font-weight: 300; margin-bottom: 8px; }
.sa-console__head p { color: var(--q-text-3); font-size: 13px; }
.sa-console__head .sa-head-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-left: auto; }

.sa-pill { display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 14px; border: 1px solid var(--q-line); border-radius: 999px; background: var(--q-surface); color: var(--q-text-2); font-size: 12px; letter-spacing: .04em; }
.sa-pill svg { width: 13px; height: 13px; fill: none; stroke: var(--q-brand-2); stroke-width: 1.2; }

.sa-tabs-nav { display: flex; flex-wrap: wrap; gap: 34px; margin: 44px 0 48px; border-bottom: 1px solid var(--q-line); }
.sa-tabs-nav button { position: relative; padding: 0 0 16px; background: none; border: 0; color: var(--q-text-2); font-size: 15px; cursor: pointer; transition: color .2s ease; }
.sa-tabs-nav button:hover { color: var(--q-text); }
.sa-tabs-nav button.is-active { color: var(--q-text); }
.sa-tabs-nav button.is-active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: var(--q-brand); }

.sa-panel { display: none; }
.sa-panel.is-active { display: block; }

.sa-stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--q-line); border: 1px solid var(--q-line); border-radius: 16px; overflow: hidden; }
.sa-stat { background: var(--q-surface); padding: 32px 28px; }
.sa-stat i { display: block; margin-bottom: 22px; color: var(--q-brand-2); }
.sa-stat i svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.1; stroke-linecap: round; stroke-linejoin: round; }
.sa-stat b { display: block; color: var(--q-text); font-size: 26px; font-weight: 300; line-height: 1.2; }
.sa-stat span { color: var(--q-text-3); font-size: 12px; letter-spacing: .08em; }

.sa-block { margin-top: 56px; }
.sa-block__head { display: flex; align-items: baseline; gap: 16px; padding-bottom: 20px; border-bottom: 1px solid var(--q-line); }
.sa-block__head h3 { font-size: 16px; }
.sa-block__head .sa-more { margin-left: auto; color: var(--q-text-3); font-size: 13px; }
.sa-block__head .sa-more:hover { color: var(--q-text); }

.sa-actions-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--q-line); border: 1px solid var(--q-line); border-top: 0; }
.sa-action { background: var(--q-surface); padding: 32px 28px; transition: background .25s ease; }
.sa-action:hover { background: var(--q-surface-2); }
.sa-action svg { width: 20px; height: 20px; fill: none; stroke: var(--q-brand-2); stroke-width: 1.1; stroke-linecap: round; stroke-linejoin: round; }
.sa-action b { display: block; margin: 20px 0 8px; color: var(--q-text); font-size: 15px; font-weight: 400; }
.sa-action span { color: var(--q-text-2); font-size: 13px; line-height: 1.8; }

.sa-plan-mini { display: flex; flex-wrap: wrap; align-items: center; gap: 28px; padding-top: 32px; }
.sa-plan-mini__info b { display: block; color: var(--q-text); font-size: 17px; font-weight: 400; margin-bottom: 8px; }
.sa-plan-mini__info span { color: var(--q-text-2); font-size: 13px; }
.sa-plan-mini__btns { margin-left: auto; }

.sa-empty { padding: 88px 0; text-align: center; }
.sa-empty svg { width: 30px; height: 30px; margin: 0 auto 26px; fill: none; stroke: var(--q-brand-2); stroke-width: 1; stroke-linecap: round; stroke-linejoin: round; }
.sa-empty b { display: block; color: var(--q-text); font-size: 15px; font-weight: 400; margin-bottom: 12px; }
.sa-empty p { max-width: 460px; margin: 0 auto; color: var(--q-text-3); font-size: 13px; line-height: 1.9; }
.sa-empty .sa-btn { margin-top: 32px; }

/* 我的套餐（醒目卡片） */
.sa-plan-hero { margin-bottom: 44px; padding: 36px 40px; border: 1px solid var(--q-line-2); border-radius: 18px; background: linear-gradient(135deg, rgba(37, 99, 235, .06), rgba(37, 99, 235, 0) 62%), var(--q-surface); }
.sa-plan-hero__top { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 28px; }
.sa-plan-hero__name { display: flex; align-items: center; gap: 12px; color: var(--q-text); font-size: 20px; font-weight: 400; margin-bottom: 10px; }
.sa-plan-hero__meta { color: var(--q-text-2); font-size: 13px; line-height: 1.9; }
.sa-plan-hero__btns { display: flex; gap: 12px; margin-left: auto; }
.sa-plan-hero__bar { margin-top: 28px; }
.sa-plan-hero__bar-head { display: flex; justify-content: space-between; color: var(--q-text-3); font-size: 12px; letter-spacing: .04em; margin-bottom: 10px; }
.sa-bar { height: 8px; background: var(--q-line); border-radius: 999px; overflow: hidden; }
.sa-bar i { display: block; height: 100%; background: var(--q-brand); border-radius: 999px; }

/* 表单（仅控制台） */
.sa-admin .sa-form { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px 24px; padding-top: 26px; }
.sa-storage-group { display: none; grid-column: 1 / -1; grid-template-columns: repeat(2, 1fr); gap: 18px 24px; }
.sa-storage-group.is-on { display: grid; }
.sa-admin .sa-field { display: grid; gap: 8px; }
.sa-admin .sa-field label { margin-bottom: 0; color: var(--q-text-3); font-size: 12px; letter-spacing: .06em; }
.sa-admin .sa-field input, .sa-admin .sa-field input:focus { height: 42px; padding: 0 14px; border: 1px solid var(--q-line); border-radius: 10px; background: var(--q-surface); color: var(--q-text); font-size: 14px; outline: none; box-shadow: none; transition: border-color .2s ease; }
.sa-admin .sa-field select { height: 42px; padding: 0 34px 0 14px; border: 1px solid var(--q-line); border-radius: 10px; background: var(--q-surface); color: var(--q-text); font-size: 14px; outline: none; box-shadow: none; appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--q-text-3) 50%), linear-gradient(135deg, var(--q-text-3) 50%, transparent 50%); background-position: calc(100% - 18px) 18px, calc(100% - 13px) 18px; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; transition: border-color .2s ease; }
.sa-admin .sa-field select:focus { border-color: var(--q-brand-2); }
.sa-admin .sa-field input::placeholder { color: var(--q-text-3); }
.sa-admin .sa-field input:focus { border-color: var(--q-brand-2); }
.sa-admin .sa-field textarea { width: 100%; min-height: 96px; padding: 12px 14px; border: 1px solid var(--q-line); border-radius: 10px; background: var(--q-surface); color: var(--q-text); font-family: inherit; font-size: 14px; line-height: 1.7; outline: none; box-shadow: none; resize: vertical; transition: border-color .2s ease; }
.sa-admin .sa-field textarea:focus { border-color: var(--q-brand-2); }
.sa-admin .sa-field textarea::placeholder { color: var(--q-text-3); }
.sa-admin .sa-field label.sa-check-line { display: inline-flex; align-items: center; gap: 10px; margin: 0; color: var(--q-text-2); font-size: 14px; letter-spacing: 0; cursor: pointer; }
.sa-admin .sa-field label.sa-check-line input { width: 16px; height: 16px; padding: 0; border: 0; border-radius: 3px; background: none; box-shadow: none; accent-color: var(--q-brand); }
.sa-admin .sa-field input[type="file"] { height: auto; padding: 10px 14px; border-style: dashed; background: var(--q-surface-2); font-size: 13px; cursor: pointer; }
.sa-admin .sa-field label.sa-uploader {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 220px;
    max-width: 100%;
    aspect-ratio: 9 / 16;
    padding: 18px;
    background: var(--q-surface-2);
    border: 1px dashed var(--q-line-2);
    border-radius: 14px;
    color: var(--q-text-3);
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0;
    text-align: center;
    cursor: pointer;
    transition: border-color .2s ease, background .2s ease;
}
.sa-admin .sa-field label.sa-uploader:hover,
.sa-admin .sa-field label.sa-uploader.is-drag { background: rgba(37, 99, 235, .05); border-color: var(--q-brand); }
.sa-admin .sa-field label.sa-uploader.is-uploading { opacity: .55; pointer-events: none; }
.sa-uploader input[type="file"] { display: none; }
.sa-uploader__icon { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; background: rgba(37, 99, 235, .08); border-radius: 50%; color: var(--q-brand); }
.sa-uploader__icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.sa-uploader b { color: var(--q-text-2); font-size: 14px; font-weight: 400; }
.sa-uploader em { color: var(--q-text-3); font-size: 12px; font-style: normal; }
.sa-video-preview { position: relative; width: 220px; max-width: 100%; aspect-ratio: 9 / 16; overflow: hidden; background: #0F1B2D; border: 1px solid var(--q-line); border-radius: 14px; }
.sa-video-preview video { display: block; width: 100%; height: 100%; object-fit: contain; background: #0F1B2D; }
.sa-video-preview__remove { position: absolute; top: 8px; right: 8px; display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; padding: 0; background: rgba(15, 27, 45, .6); border: 0; border-radius: 50%; color: #FFFFFF; cursor: pointer; transition: background .2s ease; }
.sa-video-preview__remove:hover { background: rgba(220, 38, 38, .9); }
.sa-video-preview__remove svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; }
.sa-upload-progress { display: none; width: 220px; max-width: 100%; height: 8px; margin-top: 10px; overflow: hidden; background: var(--q-line); border-radius: 999px; }
.sa-upload-progress.is-on { display: block; }
.sa-upload-progress i { display: block; width: 0; height: 100%; background: var(--q-brand); border-radius: 999px; transition: width .2s ease; }
.sa-upload-tip { max-width: 260px; color: var(--q-text-3); font-size: 12px; line-height: 1.6; }
.sa-admin .sa-form__foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.sa-admin .sa-form__tip { color: var(--q-text-3); font-size: 12px; }

/* 会员中心：头像上传 */
.sa-field--wide { grid-column: 1 / -1; }
.sa-avatar { position: relative; width: 84px; height: 84px; }
.sa-avatar img { display: block; width: 84px; height: 84px; border: 1px solid var(--q-line); border-radius: 50%; object-fit: cover; }
.sa-avatar__hint { position: absolute; top: 0; left: 0; display: grid; place-items: center; width: 100%; height: 100%; border-radius: 50%; background: rgba(15, 27, 45, .46); color: #FFFFFF; font-size: 12px; letter-spacing: .04em; opacity: 0; visibility: hidden; transition: opacity .2s ease, visibility .2s; }
.sa-avatar:hover .sa-avatar__hint { opacity: 1; visibility: visible; }
.sa-avatar__btn { position: absolute; top: 0; left: 0; width: 100%; height: 100%; padding: 0; border: 0; border-radius: 50%; background: transparent; cursor: pointer; }

/* 会员中心：输入组按钮与输入框同高 */
.sa-admin .sa-field input:disabled, .sa-admin .sa-field input[readonly] { background: var(--q-surface-2); color: var(--q-text-3); }
.sa-admin .sa-field .input-group-btn .btn { display: inline-flex; align-items: center; height: 42px; padding: 0 16px; border: 1px solid var(--q-line); border-left: 0; border-radius: 0 10px 10px 0; background: var(--q-surface-2); color: var(--q-brand); font-size: 13px; font-weight: 400; }
.sa-admin .sa-field .input-group-btn .btn:hover { color: var(--q-text); }

/* 修改密码：单列表单 */
.sa-admin .sa-form--single { grid-template-columns: 1fr; max-width: 420px; }

/* Layer 内表单（修改邮箱 / 手机号） */
.sa-layer-form { display: grid; gap: 18px; }
.sa-layer-field { display: grid; gap: 8px; }
.sa-layer-field label { margin: 0; color: var(--q-text-3); font-size: 12px; font-weight: 400; letter-spacing: .06em; }
.sa-layer-form .form-control { width: 100%; height: 44px; padding: 0 14px; background: var(--q-surface-2); border: 1px solid var(--q-line); border-radius: 10px; box-shadow: none; color: var(--q-text); font-size: 14px; }
.sa-layer-form .form-control:focus { background: var(--q-surface); border-color: var(--q-line-2); box-shadow: none; outline: none; }
.sa-layer-form .input-group { display: flex; width: 100%; }
.sa-layer-form .input-group .form-control { border-radius: 10px 0 0 10px; }
.sa-layer-form .input-group-btn { flex: 0 0 auto; width: auto; }
.sa-layer-form .input-group-btn .btn { display: inline-flex; align-items: center; height: 44px; padding: 0 16px; border: 1px solid var(--q-line); border-left: 0; border-radius: 0 10px 10px 0; background: var(--q-surface-2); color: var(--q-brand); font-size: 13px; font-weight: 400; }
.sa-layer-form .input-group-btn .btn:hover { color: var(--q-text); }
.sa-layer-form .msg-box { display: block; margin-top: 6px; color: #B4706C; font-size: 12px; }
.sa-layer-form .msg-box:empty { display: none; }
.sa-layer-foot { padding-top: 4px; }

/* 列表表格 */
.sa-table { overflow-x: auto; }
.sa-table--device { --sa-table-cols: minmax(0, 1.5fr) minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.4fr) minmax(0, 1.1fr) 170px; }
.sa-table--template { --sa-table-cols: minmax(0, 1.6fr) minmax(0, 1.2fr) minmax(0, .8fr) minmax(0, 1.4fr) minmax(0, .8fr) minmax(0, 1.1fr) 96px; }
.sa-table--video { --sa-table-cols: minmax(0, 1.6fr) minmax(0, 1.1fr) minmax(0, 1.1fr) minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.6fr) minmax(0, 1fr) 90px minmax(0, 1.2fr) 70px 96px; }
.sa-table__head, .sa-table__row { display: grid; grid-template-columns: var(--sa-table-cols); align-items: center; gap: 16px; min-width: 780px; }
.sa-table--video .sa-table__head, .sa-table--video .sa-table__row { min-width: 1480px; }
.sa-table--tasks { --sa-table-cols: minmax(0, .9fr) minmax(0, 1.1fr) 80px minmax(0, 1.8fr) 90px 70px 80px minmax(0, 1.4fr) 80px 70px; }
.sa-table--tasks .sa-table__head, .sa-table--tasks .sa-table__row { min-width: 1050px; }
.sa-table--tasks .sa-table__head span:last-child { text-align: left; }
.sa-table--taskcenter { --sa-table-cols: 140px minmax(0, 1.1fr) 110px 80px 70px minmax(0, 1.4fr) 90px 70px 80px minmax(0, 1.3fr) 80px 70px; }
.sa-table--taskcenter .sa-table__head, .sa-table--taskcenter .sa-table__row { min-width: 1250px; }
.sa-table--message { --sa-table-cols: 70px minmax(0, 1fr) 170px 90px; }
.sa-table--message .sa-table__head, .sa-table--message .sa-table__row { min-width: 640px; }
.sa-pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px; margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--q-line); }
.sa-pager__info { margin-right: auto; color: var(--q-text-3); font-size: 12px; }
.sa-pager a { display: inline-flex; align-items: center; justify-content: center; min-width: 34px; height: 34px; padding: 0 10px; border: 1px solid var(--q-line); border-radius: 8px; color: var(--q-text-2); font-size: 13px; }
.sa-pager a:hover { border-color: var(--q-brand-2); color: var(--q-brand); }
.sa-pager a.is-active { background: var(--q-brand); border-color: var(--q-brand); color: #FFFFFF; }
.sa-pager a.is-disabled { opacity: .4; pointer-events: none; }
.sa-table__cell .sa-task-strategy { display: block; color: var(--q-text-3); font-size: 12px; line-height: 1.6; }
.sa-table__head { padding: 14px 0; border-bottom: 1px solid var(--q-line); color: var(--q-text-3); font-size: 12px; letter-spacing: .06em; }
.sa-table__head span:last-child { text-align: right; }
.sa-table__row { padding: 16px 0; border-bottom: 1px solid var(--q-line); }
.sa-table__row:last-child { border-bottom: 0; }
.sa-table__cell { min-width: 0; color: var(--q-text-2); font-size: 13px; overflow-wrap: anywhere; }
.sa-table__cell b { display: block; margin-bottom: 6px; color: var(--q-text); font-size: 14px; font-weight: 400; }
.sa-table__cell .sa-badge + .sa-badge { margin-left: 6px; }
.sa-table__sub { display: block; margin-top: 4px; color: var(--q-text-3); font-size: 12px; }
.sa-table__actions { display: flex; align-items: center; justify-content: flex-end; gap: 14px; }
.sa-table__actions a { white-space: nowrap; }
.sa-task__tasks { cursor: help; color: var(--q-brand); border-bottom: 1px dashed rgba(37, 99, 235, .35); }
.sa-table__cell .sa-link { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; color: var(--q-brand); }
.sa-table__cell .sa-link + .sa-link { margin-top: 4px; }
.sa-table__cell .sa-link:hover { color: var(--q-text); }
.sa-ellipsis { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.sa-table__empty { padding: 40px 0; color: var(--q-text-3); font-size: 13px; text-align: center; }
.sa-badge { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 999px; font-size: 12px; }
.sa-badge--on { background: rgba(37, 99, 235, .1); color: var(--q-brand); }
.sa-badge--off { background: var(--q-surface-2); color: var(--q-text-3); }
.sa-badge--expired { background: rgba(220, 38, 38, .1); color: #DC2626; }
.sa-device__del { color: var(--q-text-3); font-size: 13px; }
.sa-device__del:hover { color: #DC2626; }
.sa-device__restore { color: var(--q-brand); font-size: 13px; }
.sa-device__restore:hover { color: var(--q-text); }

/* 任务段悬浮详情 */
.sa-task-tip {
    position: fixed;
    z-index: 90;
    display: none;
    width: 380px;
    max-width: calc(100vw - 24px);
    max-height: 70vh;
    padding: 14px 18px;
    overflow-y: auto;
    background: var(--q-surface);
    border: 1px solid var(--q-line);
    border-radius: 12px;
    box-shadow: 0 30px 60px -34px rgba(37, 99, 235, .4);
    color: var(--q-text-2);
    font-size: 12px;
}
.sa-task-tip.is-on { display: block; }
.sa-task-tip__item + .sa-task-tip__item { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--q-line); }
.sa-task-tip__head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.sa-task-tip__head b { color: var(--q-text); font-size: 13px; font-weight: 400; }
.sa-task-tip__head span { color: var(--q-text-3); }
.sa-task-tip__rows { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px 14px; }
.sa-task-tip__empty { color: var(--q-text-3); }

/* 提示条 */
.sa-alert { margin-top: 24px; padding: 14px 18px; border-radius: 12px; font-size: 13px; display: none; }
.sa-alert.is-on { display: block; }
.sa-alert--err { background: rgba(220, 38, 38, .08); color: #DC2626; }
.sa-alert--ok { background: rgba(37, 99, 235, .08); color: var(--q-brand); }

/* -------------------------------------------------------------- 联系方式：二维码浮层 */
.sa-qrpop { position: relative; display: inline-flex; align-items: center; }
.sa-qrpop__btn {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    padding: 0;
    background: var(--q-surface-2);
    border: 1px solid var(--q-line);
    border-radius: 8px;
    color: var(--q-brand);
    cursor: pointer;
    transition: background .2s ease, border-color .2s ease, color .2s ease;
}
.sa-qrpop:hover .sa-qrpop__btn, .sa-qrpop.is-open .sa-qrpop__btn { background: var(--q-brand); border-color: var(--q-brand); color: #FFFFFF; }
.sa-qrpop__btn svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round; }
.sa-qrpop__box {
    position: absolute;
    right: 0;
    bottom: calc(100% + 14px);
    width: 196px;
    padding: 14px;
    text-align: center;
    background: var(--q-surface);
    border: 1px solid var(--q-line);
    border-radius: 14px;
    box-shadow: 0 26px 60px -34px rgba(37, 99, 235, .34);
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: opacity .2s ease, transform .2s ease, visibility .2s;
    z-index: 20;
}
.sa-qrpop:hover .sa-qrpop__box, .sa-qrpop.is-open .sa-qrpop__box { opacity: 1; visibility: visible; transform: translateY(0); }
.sa-qrpop__box img { display: block; width: 100%; height: auto; border-radius: 10px; }
.sa-qrpop__box b { display: block; margin-top: 12px; color: var(--q-text); font-size: 13px; font-weight: 400; }
.sa-qrpop__box span { display: block; color: var(--q-text-3); font-size: 12px; }

/* -------------------------------------------------------------- 右侧悬浮联系条 */
.sa-rail { position: fixed; right: 0; top: 50%; transform: translateY(-50%); z-index: 70; display: flex; flex-direction: column; }
.sa-rail__item {
    position: relative;
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    padding: 0;
    background: rgba(255, 255, 255, .94);
    border: 1px solid var(--q-line);
    border-right: 0;
    color: var(--q-brand);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    cursor: pointer;
    transition: background .2s ease, color .2s ease;
}
.sa-rail__item + .sa-rail__item { border-top: 0; }
.sa-rail__item:first-child { border-radius: 12px 0 0 0; }
.sa-rail__item:last-child { border-radius: 0 0 0 12px; }
.sa-rail__item:hover, .sa-rail__item.is-open { background: var(--q-brand); color: #FFFFFF; }
/* 链接型图标需显式声明颜色，避免被 .sa-page a 的 color:inherit 覆盖 */
.sa-page a.sa-rail__item { color: var(--q-brand); }
.sa-page a.sa-rail__item:hover, .sa-page a.sa-rail__item.is-open { color: #FFFFFF; }
.sa-rail__item svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round; }
.sa-rail__pop {
    position: absolute;
    right: calc(100% + 12px);
    top: 50%;
    width: 196px;
    padding: 14px;
    text-align: center;
    background: var(--q-surface);
    border: 1px solid var(--q-line);
    border-radius: 14px;
    box-shadow: 0 26px 60px -34px rgba(37, 99, 235, .34);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-50%) translateX(8px);
    transition: opacity .2s ease, transform .2s ease, visibility .2s;
}
.sa-rail__item:hover .sa-rail__pop, .sa-rail__item.is-open .sa-rail__pop { opacity: 1; visibility: visible; transform: translateY(-50%) translateX(0); }
.sa-rail__pop img { display: block; width: 100%; height: auto; border-radius: 10px; }
.sa-rail__pop b { display: block; color: var(--q-text); font-size: 13px; font-weight: 400; }
.sa-rail__pop b:not(:first-child) { margin-top: 12px; }
.sa-rail__pop span { display: block; margin-top: 4px; color: var(--q-text-3); font-size: 12px; word-break: break-all; }

/* -------------------------------------------------------------- 响应式 */
@media (max-width: 1080px) {
    .sa-hero { padding: 200px 0 128px; }
    .sa-hero h1 { font-size: 50px; }
    .sa-grid-4, .sa-price-grid, .sa-stats-grid, .sa-actions-grid { grid-template-columns: repeat(2, 1fr); }
    .sa-actions-grid { border-top: 1px solid var(--q-line); }
    .sa-custom { grid-template-columns: 1fr; gap: 72px; }
    .sa-footer__grid { grid-template-columns: 1fr 1fr; gap: 40px; }
}

@media (max-width: 860px) {
    .sa-nav__links { display: none; }
    .sa-nav__links a::after { display: none; }
    .sa-nav__toggle { display: block; }
    .sa-rail { display: none; }
    .sa-nav.is-open .sa-nav__links {
        display: flex;
        position: absolute;
        top: 84px;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        padding: 8px 32px 24px;
        background: rgba(255, 255, 255, .98);
        border-bottom: 1px solid var(--q-line);
    }
    .sa-nav.is-open .sa-nav__links a { padding: 14px 0; width: 100%; color: var(--q-text-2); }
    .sa-qr-grid { grid-template-columns: 1fr; gap: 44px; }
    .sa-section { padding: 88px 0; }
}

@media (max-width: 620px) {
    .sa-wrap { padding: 0 22px; }
    .sa-nav__inner { padding: 0 22px; height: 76px; gap: 20px; }
    .sa-nav.is-open .sa-nav__links { top: 76px; padding: 8px 22px 24px; }
    .sa-hero { padding: 152px 0 96px; }
    .sa-hero h1 { font-size: 38px; letter-spacing: .08em; margin: 20px 0 18px; }
    .sa-hero__desc { font-size: 15px; }
    .sa-hero__actions { gap: 12px; margin-top: 40px; }
    .sa-hero__actions .sa-btn { flex: 1 1 auto; }
    .sa-section { padding: 68px 0; }
    .sa-head { margin-bottom: 48px; }
    .sa-head h2 { font-size: 24px; }
    .sa-grid-4, .sa-price-grid, .sa-stats-grid, .sa-actions-grid { grid-template-columns: 1fr; }
    .sa-card, .sa-action, .sa-stat { padding: 30px 24px; }
    .sa-price { padding: 32px 24px; }
    .sa-qr { flex-direction: column; gap: 20px; }
    .sa-footer__grid { grid-template-columns: 1fr; gap: 36px; }
    .sa-footer { padding: 64px 0 32px; }
    .sa-auth { padding: 130px 22px 80px; }
    .sa-auth__card { padding: 32px 24px; }
    .sa-console { padding: 120px 0 72px; }
    .sa-console__head { gap: 20px; padding-bottom: 34px; }
    .sa-console__head .sa-head-actions { margin-left: 0; width: 100%; }
    .sa-tabs-nav { gap: 24px; }
    .sa-plan-mini__btns { margin-left: 0; }
}

/* ==========================================================================
   控制台后台布局（顶栏 + 左侧菜单 + 内容区）
   ========================================================================== */
.sa-admin__top {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 70;
    background: rgba(255, 255, 255, .96);
    border-bottom: 1px solid var(--q-line);
    -webkit-backdrop-filter: saturate(150%) blur(14px);
    backdrop-filter: saturate(150%) blur(14px);
}
.sa-admin__top-inner { display: flex; align-items: center; gap: 18px; height: 64px; padding: 0 24px; }
.sa-admin__top .sa-brand__name { font-size: 16px; }
.sa-admin__crumb { margin-left: 4px; padding-left: 18px; border-left: 1px solid var(--q-line); color: var(--q-text-3); font-size: 13px; letter-spacing: .06em; }
.sa-admin__top-right { display: flex; align-items: center; gap: 14px; margin-left: auto; }
.sa-admin__toggle { display: none; padding: 2px; background: none; border: 0; color: var(--q-brand); cursor: pointer; }
.sa-admin__toggle svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.2; stroke-linecap: round; }

.sa-admin__side {
    position: fixed;
    top: 64px;
    bottom: 0;
    left: 0;
    z-index: 65;
    width: 224px;
    padding: 18px 14px 24px;
    background: var(--q-surface-2);
    border-right: 1px solid var(--q-line);
    overflow-y: auto;
}
.sa-admin__menu { display: grid; align-content: start; gap: 4px; }
.sa-admin__menu-title { padding: 18px 14px 8px; color: var(--q-text-3); font-size: 11px; letter-spacing: .18em; }
.sa-admin__menu a { display: flex; align-items: center; gap: 12px; height: 42px; padding: 0 14px; border-radius: 10px; color: var(--q-text-2); font-size: 14px; }
.sa-admin__menu a:hover { background: rgba(37, 99, 235, .06); color: var(--q-text); }
.sa-admin__menu a.is-active, .sa-admin__menu a.is-active:hover { background: var(--q-brand); color: #FFFFFF; }
.sa-admin__menu svg { flex: 0 0 auto; width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.1; stroke-linecap: round; stroke-linejoin: round; }
.sa-admin__side-foot { margin-top: 22px; padding: 20px 14px 0; border-top: 1px solid var(--q-line); }
.sa-admin__mask { display: none; }

.sa-admin__main { margin-left: 224px; min-height: 100vh; padding-top: 64px; }
.sa-admin__inner { max-width: 1180px; padding: 34px 32px 64px; }
.sa-admin__inner.is-wide { max-width: none; }

.sa-admin__head { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 18px; margin-bottom: 28px; }
.sa-admin__head h1 { font-size: 22px; font-weight: 300; margin-bottom: 8px; }
.sa-admin__head p { color: var(--q-text-3); font-size: 13px; }
.sa-admin__head-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-left: auto; }

.sa-card-box { padding: 24px 28px 26px; background: var(--q-surface); border: 1px solid var(--q-line); border-radius: 16px; }
.sa-card-box + .sa-card-box, .sa-card-box--gap { margin-top: 24px; }
.sa-card-box__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 14px; padding-bottom: 18px; border-bottom: 1px solid var(--q-line); }
.sa-card-box__head h3 { font-size: 15px; }
.sa-card-box__head .sa-more { margin-left: auto; color: var(--q-text-3); font-size: 13px; }
.sa-admin__cols { display: grid; grid-template-columns: 1.35fr 1fr; gap: 24px; margin-top: 24px; }
.sa-admin .sa-plan-mini { padding-top: 26px; }
.sa-admin .sa-price-grid--boxed { padding-top: 26px; }
.sa-admin .sa-empty { padding: 56px 0 48px; }

/* 任务记录 */
.sa-task { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; padding: 18px 0; border-bottom: 1px solid var(--q-line); }
.sa-task:last-child { padding-bottom: 0; border-bottom: 0; }
.sa-task__main { min-width: 180px; }
.sa-task__main b { display: block; margin-bottom: 5px; color: var(--q-text); font-size: 14px; font-weight: 400; }
.sa-task__main span { color: var(--q-text-3); font-size: 12px; letter-spacing: .04em; }
.sa-task__count { color: var(--q-text-3); font-size: 13px; }
.sa-task__count em { color: var(--q-text); font-style: normal; }
.sa-task__meta { display: flex; align-items: center; gap: 12px; margin-left: auto; color: var(--q-text-3); font-size: 12px; }

.sa-badge--wait { background: var(--q-surface-2); color: var(--q-text-3); }
.sa-badge--run { background: rgba(37, 99, 235, .1); color: var(--q-brand); }
.sa-badge--done { background: rgba(22, 163, 74, .1); color: #16A34A; }
.sa-badge--fail { background: rgba(220, 38, 38, .1); color: #DC2626; }

/* 评论模版：任务参数编辑器 */
.sa-task-editor { display: grid; gap: 14px; }
.sa-task-row { display: grid; gap: 16px; padding: 18px 20px; border: 1px solid var(--q-line); border-radius: 14px; background: var(--q-surface-2); }
.sa-task-row__head { display: flex; align-items: center; justify-content: space-between; color: var(--q-text-3); font-size: 12px; letter-spacing: .06em; }
.sa-task-row__head em { color: var(--q-brand); font-style: normal; }
.sa-task-row__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px 18px; }
.sa-time-range { display: flex; align-items: center; gap: 8px; }
.sa-time-range span { color: var(--q-text-3); font-size: 12px; }
.sa-time-range input { flex: 1 1 0; min-width: 0; }
.sa-template__edit { color: var(--q-brand); font-size: 13px; }
.sa-template__edit:hover { color: var(--q-text); }

/* -------------------------------------------------------------- 页签 */
.sa-tabs { display: flex; flex-wrap: wrap; gap: 28px; border-bottom: 1px solid var(--q-line); }
.sa-tabs__item {
    position: relative;
    margin-bottom: -1px;
    padding: 0 0 16px;
    background: transparent;
    border: 0;
    color: var(--q-text-3);
    font-family: inherit;
    font-size: 14px;
    line-height: 1.2;
    cursor: pointer;
    transition: color .2s ease;
}
.sa-tabs__item em { display: inline-block; margin-left: 6px; padding: 2px 8px; background: var(--q-surface-2); border-radius: 999px; color: var(--q-text-3); font-size: 11px; font-style: normal; line-height: 1.6; }
.sa-tabs__item:hover { color: var(--q-text); }
.sa-tabs__item.is-active { color: var(--q-text); border-bottom: 1px solid var(--q-brand); }
.sa-tabs__item.is-active em { background: rgba(37, 99, 235, .1); color: var(--q-brand); }
.sa-tab-pane { display: none; }
.sa-tab-pane.is-on { display: block; }

/* -------------------------------------------------------------- 通用弹窗 */
body.sa-modal-open { overflow: hidden; }
.sa-modal { position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 80; display: none; }
.sa-modal.is-on { display: block; }
.sa-modal__mask { position: absolute; top: 0; right: 0; bottom: 0; left: 0; background: rgba(15, 27, 45, .45); }
.sa-modal__panel {
    position: relative;
    display: flex;
    flex-direction: column;
    width: min(760px, calc(100% - 40px));
    max-height: calc(100vh - 96px);
    margin: 48px auto;
    background: var(--q-surface);
    border: 1px solid var(--q-line);
    border-radius: 16px;
    box-shadow: 0 40px 80px -50px rgba(37, 99, 235, .4);
    overflow: hidden;
}
.sa-modal__panel--wide { width: min(1080px, calc(100% - 40px)); }
.sa-modal__panel--xwide { width: min(1360px, calc(100% - 40px)); }
.sa-modal__head { flex: 0 0 auto; display: flex; flex-wrap: wrap; align-items: center; gap: 14px; padding: 22px 28px; border-bottom: 1px solid var(--q-line); }
.sa-modal__head h3 { font-size: 16px; font-weight: 400; }
.sa-modal__sub { color: var(--q-text-3); font-size: 12px; }
.sa-modal__close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    margin-left: auto;
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 50%;
    color: var(--q-text-3);
    cursor: pointer;
    transition: background .2s ease, color .2s ease;
}
.sa-modal__close:hover { background: var(--q-surface-2); color: var(--q-text); }
.sa-modal__close svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; }
.sa-modal__body { flex: 1 1 auto; min-height: 0; padding: 24px 28px 26px; overflow-y: auto; }
.sa-modal .sa-form { padding-top: 0; }

@media (max-width: 1080px) {
    .sa-admin__cols { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
    .sa-admin__toggle { display: block; }
    .sa-admin__crumb { display: none; }
    .sa-admin__side { transform: translateX(-100%); transition: transform .26s ease; z-index: 76; box-shadow: 0 30px 60px -30px rgba(15, 27, 45, .4); }
    body.sa-admin.is-open .sa-admin__side { transform: translateX(0); }
    .sa-admin__mask { position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 75; background: rgba(15, 27, 45, .32); }
    body.sa-admin.is-open .sa-admin__mask { display: block; }
    .sa-admin__main { margin-left: 0; }
    .sa-admin__inner { padding: 26px 22px 56px; }
    .sa-admin .sa-form { grid-template-columns: 1fr; }
    .sa-storage-group { grid-template-columns: 1fr; }
    .sa-admin .sa-stats-grid { grid-template-columns: repeat(2, 1fr); }
    .sa-task-row__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 620px) {
    .sa-admin__top-inner { height: 58px; padding: 0 22px; gap: 12px; }
    .sa-admin__side { top: 58px; }
    .sa-admin__main { padding-top: 58px; }
    .sa-admin .sa-stats-grid { grid-template-columns: 1fr; }
    .sa-card-box { padding: 20px 22px 22px; }
    .sa-task__meta { margin-left: 0; }
    .sa-task-row__grid { grid-template-columns: 1fr; }
    .sa-modal__panel { width: calc(100% - 24px); max-height: calc(100vh - 48px); margin: 24px auto; }
    .sa-modal__head { padding: 18px 20px; }
    .sa-modal__body { padding: 20px 20px 22px; }
}
