/* ============================================================
   XL-云鉴 AuthWeb 主题（方案二：动态主题 CSS 变量收编）
   ============================================================ */

:root {
    /* 兜底默认主题：紫罗兰（与 ThemeSeedData 默认 violet 一致，避免首帧闪变；2026-10-30 调整） */
    --brand-1: #4f46e5;
    --brand-2: #7c3aed;
    --brand-soft: #eef2ff;
    --page-bg: #faf9f7;
    --footer-bg: #1e293b;
    --footer-text: #cbd5e1;
    --sidebar-bg: #0f172a;
    --nav-bg: #312e81;
    --ink: #1c1917;
    --muted: #78716c;
    --line: #e7e5e4;
    --bg: var(--page-bg);
}

html {
    scroll-behavior: smooth;
}

body {
    color: var(--ink);
    background: var(--page-bg);
    font-family: "PingFang SC", "Microsoft YaHei", "Segoe UI", system-ui, -apple-system, sans-serif;
}

a {
    color: var(--brand-1);
    text-decoration: none;
}

    a:hover {
        color: var(--brand-2);
    }

.btn-accent {
    background: linear-gradient(135deg, var(--brand-1), var(--brand-2));
    border: none;
    color: #fff;
}

    .btn-accent:hover {
        filter: brightness(1.08);
        color: #fff;
    }

.brand-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--brand-1), var(--brand-2));
    color: #fff;
    font-weight: 700;
}

/* 官网部分 (省略，与你原版一致) */
.site-nav {
    background: linear-gradient(135deg, var(--nav-bg), var(--brand-1));
}

.site-header .nav-link {
    color: rgba(255,255,255,.85) !important;
}

    .site-header .nav-link:hover {
        color: #fff !important;
    }

.hero {
    padding: 96px 0;
    background: radial-gradient(1200px 500px at 80% -10%, color-mix(in srgb, var(--brand-1) 12%, transparent), transparent), linear-gradient(180deg, var(--brand-soft), var(--page-bg));
}

    .hero h1 {
        font-weight: 800;
        letter-spacing: -.02em;
    }

    .hero .lead {
        color: var(--muted);
    }

.feature-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 24px;
    height: 100%;
    transition: transform .15s ease, box-shadow .15s ease;
}

    .feature-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 12px 30px rgba(28, 25, 23, .12);
    }

    .feature-card .icon {
        width: 44px;
        height: 44px;
        border-radius: 10px;
        background: var(--brand-soft);
        color: var(--brand-1);
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-size: 20px;
    }

.stat-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 20px;
}

.dash-todo-card {
    border-radius: 12px;
    padding: 14px 16px;
    border: 1px solid var(--line);
}

.dash-todo-num {
    font-size: 26px;
    font-weight: 800;
    line-height: 1.2;
    margin-top: 4px;
}

.stat-num {
    font-size: 28px;
    font-weight: 800;
    color: var(--brand-1);
}

.pricing-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 28px;
    height: 100%;
}

    .pricing-card.featured {
        border: 2px solid var(--brand-1);
        box-shadow: 0 16px 40px rgba(28, 25, 23, .15);
    }

.site-footer {
    background: var(--footer-bg);
    color: var(--footer-text);
    margin-top: 48px;
}

.footer-title {
    color: #fff;
    font-weight: 600;
    margin-bottom: 10px;
}

.footer-link {
    display: block;
    color: #94a3b8;
    padding: 3px 0;
}

    .footer-link:hover {
        color: #fff;
    }

/* 卡片与表格 */
.page-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
}

/* 系统配置：按业务分类的卡片，淡底区分、组名加黑 */
.cfg-card {
    border-radius: 14px;
    border: 1px solid rgba(15, 23, 42, .07);
    padding: 18px 20px 6px;
    height: 100%;
}

.cfg-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}

.cfg-head .bar {
    width: 4px;
    height: 16px;
    border-radius: 2px;
    flex: none;
}

.cfg-head h6 {
    margin: 0;
    font-size: 15px;
    font-weight: 800;
    color: #111827;
}

.cfg-card .form-label {
    color: #374151;
    font-weight: 500;
}

.cfg-a { background: #F7F9FF; }
.cfg-a .bar { background: #6366F1; }
.cfg-b { background: #F4FBF7; }
.cfg-b .bar { background: #16A34A; }
.cfg-c { background: #FFF9F1; }
.cfg-c .bar { background: #F59E0B; }
.cfg-d { background: #FFF7FA; }
.cfg-d .bar { background: #EC4899; }
.cfg-e { background: #F2FBFC; }
.cfg-e .bar { background: #0891B2; }
.cfg-f { background: #F8FAFC; }
.cfg-f .bar { background: #64748B; }

.table thead th {
    background: color-mix(in srgb, var(--brand-1) 6%, var(--page-bg));
    font-weight: 600;
}

.empty-state {
    text-align: center;
    color: var(--muted);
    padding: 48px 0;
}

/* 主题预览 */
.theme-preview {
    border: 1px solid var(--line);
    border-radius: 12px;
    overflow: hidden;
}

    .theme-preview .preview-nav {
        height: 34px;
    }

    .theme-preview .preview-body {
        padding: 12px 14px;
    }

    .theme-preview .preview-footer {
        padding: 10px 14px;
    }

    .theme-preview .preview-btn {
        display: inline-block;
        padding: 6px 16px;
        border-radius: 8px;
        color: #fff;
        font-size: 13px;
    }

.theme-swatch {
    width: 22px;
    height: 22px;
    border-radius: 6px;
    border: 1px solid rgba(0,0,0,.15);
    display: inline-block;
}


/* ============================================================
   🌿 门户首页优雅风格（v2 改造）
   ============================================================ */

/* 主标题衬线字体 */
.display-serif {
    font-family: "Noto Serif SC", "Source Han Serif SC", "SimSun", "思源宋体", serif;
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 1.2;
}

/* 信任区块背景（用品牌浅色，随主题变化） */
.bg-trust {
    background: var(--brand-soft);
}

/* 行动召唤区块背景（用侧边栏和导航栏的渐变，随主题变化） */
.bg-cta {
    background: linear-gradient(135deg, var(--sidebar-bg), var(--nav-bg));
}

/* 琥珀橙主按钮（强调色，固定） */
.btn-amber {
    background: linear-gradient(135deg, #d97706, #f59e0b);
    border: none;
    color: #fff;
    transition: filter 0.15s ease;
}

    .btn-amber:hover {
        filter: brightness(1.08);
        color: #fff;
    }

/* 痛点卡片（用现有变量，随主题变化） */
.pain-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 28px;
    height: 100%;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

    .pain-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
    }

    .pain-card .pain-icon {
        width: 48px;
        height: 48px;
        border-radius: 12px;
        background: var(--brand-soft);
        color: var(--brand-1);
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-size: 22px;
        margin-bottom: 16px;
    }

/* 信任区块小图标（用现有变量） */
.trust-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid var(--line);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 12px;
}

/* 页脚平台入口小字 */
.footer-admin-entry {
    color: var(--footer-text);
    opacity: 0.7;
    font-size: 12px;
}

    .footer-admin-entry:hover {
        opacity: 1;
    }

/* ============================================================
   📋 Portal 后台菜单样式（PlatformLayout + PortalLayout 通用）
   ============================================================ */

/* 侧边栏固定宽度，保证平台端/开发者端左右布局完全一致 */
.portal-sidebar {
    width: 250px;
}

/* 顶级菜单项 */
.portal-sidebar .nav-link {
    color: var(--footer-text);
    transition: all 0.2s;
    text-decoration: none;
}

    .portal-sidebar .nav-link:hover {
        color: #fff;
        background-color: rgba(255, 255, 255, 0.05);
    }

    .portal-sidebar .nav-link.active {
        color: #fff;
        background-color: rgba(255, 255, 255, 0.08);
        border-left: 3px solid var(--brand-2);
        font-weight: 600;
    }

/* 分组标题 */
.portal-sidebar .nav-group-title {
    color: var(--footer-text);
    transition: all 0.2s;
    user-select: none;
}

    .portal-sidebar .nav-group-title:hover {
        color: #fff;
        background-color: rgba(255, 255, 255, 0.03);
    }

/* 子菜单项 */
.portal-sidebar .nav-group-content .nav-link {
    color: #8b8d9b;
    font-size: 0.9rem;
}

    .portal-sidebar .nav-group-content .nav-link:hover {
        color: #fff;
        background-color: rgba(255, 255, 255, 0.05);
    }

    .portal-sidebar .nav-group-content .nav-link.active {
        color: #fff;
        background-color: color-mix(in srgb, var(--brand-1) 25%, transparent);
        border-left: 3px solid var(--brand-1);
        font-weight: 600;
    }

/* 菜单图标三态色 */
.portal-sidebar .nav-link .bi {
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
    color: #94a3b8;
    transition: color 0.2s ease;
}

.portal-sidebar .nav-link:hover .bi {
    color: #ffffff;
}

.portal-sidebar .nav-link.active .bi {
    color: var(--brand-1);
}

/* Hero 右侧收益卡片 */
.hero-card-float {
    animation: heroFloat 4s ease-in-out infinite;
}

@keyframes heroFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.hero-card {
    background: var(--card-bg, #fff);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 12px 40px rgba(15, 23, 42, .12);
}

.hero-card-sm {
    background: var(--card-bg, #fff);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 12px 14px;
    box-shadow: 0 4px 16px rgba(15, 23, 42, .06);
}

/* ============================================================
   隐藏浏览器自带的密码输入框小眼睛
   ============================================================ */

/* 针对 Edge/IE，专门干掉密码框的原生眼睛 */
input[type="password"]::-ms-reveal,
input[type="password"]::-ms-clear {
    display: none !important;
}

/* 针对 Chrome/Edge 的自动填充小图标（比如那个小钥匙/小人头） */
input[type="password"]::-webkit-credentials-auto-fill-button,
input[type="password"]::-webkit-textfield-decoration-container {
    visibility: hidden !important;
    pointer-events: none !important;
    display: none !important;
}

/* Chrome/Edge 自动填充按钮 */
::-webkit-credentials-auto-fill-button {
    visibility: hidden !important;
    pointer-events: none !important;
    display: none !important;
}

/* =========================================================
   解决 Bootstrap input-group 聚焦时光晕断裂（生硬直角/斜角）的问题
   ========================================================= */

/* 1. 全局光晕：强制 0.375rem 圆角 */
.input-group:focus-within {
    border-radius: 0.375rem !important;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25) !important;
    z-index: 3 !important;
}

    /* 2. 强制左侧图标框在聚焦时也是圆角，防止出现斜角切口 */
    .input-group:focus-within > .input-group-text,
    .input-group:focus-within > .input-group-text:first-child {
        border-top-left-radius: 0.375rem !important;
        border-bottom-left-radius: 0.375rem !important;
        border-color: #86b7fe !important;
    }

    /* 3. 强制输入框右侧是圆角 */
    .input-group:focus-within > .form-control {
        border-top-right-radius: 0.375rem !important;
        border-bottom-right-radius: 0.375rem !important;
    }

    /* 4. 干掉内部输入框自带的方形光晕，只保留边框变蓝 */
    .input-group:focus-within .form-control:focus {
        box-shadow: none !important;
        border-color: #86b7fe !important;
    }

    /* 5. 密码框专属处理：因为密码框包了一层 wrapper，需要单独把圆角传递给内部的 input */
    .input-group:focus-within .password-wrapper .form-control:focus {
        box-shadow: none !important;
        border-color: #86b7fe !important;
        border-top-right-radius: 0.375rem !important;
        border-bottom-right-radius: 0.375rem !important;
    }

/* =========================================================
   图形验证码组件专属样式 (并排布局版)
   ========================================================= */

/* 1. 输入框：直接使用原生样式即可，为了美观，给它一点右侧间距 */
.xl-captcha-input {
    flex: 1 1 auto; /* 自动占满剩余空间 */
    /* 如果你希望它和原生表单一样没有特殊处理，这里甚至不需要写额外的规则 */
}

/* 2. 验证码图片：去掉边框，保持高度对齐，鼠标悬停时变成小手 */
.xl-captcha-img {
    height: 38px; /* 与你输入框高度保持一致，如果是大号输入框可以改成 46px */
    width: 110px; /* 验证码固定宽度 */
    border: none !important; /* 彻底去掉边框 */
    border-radius: 0.375rem; /* 稍微加一点圆角显得不那么生硬 */
    object-fit: cover;
    cursor: pointer;
    background-color: #fff;
    /* 可选：加一点极弱的阴影，让它有质感但不抢眼 */
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

/* ============================================================
   官网营销页移动端适配（<768px，Bootstrap md 断点以下，含 sm）
   营销页栅格本身已响应式（Bootstrap col-md/col-lg），这里只针对
   自定义样式的桌面参数做小屏收敛：首屏间距、标题字号、触控面积。
   ============================================================ */
@media (max-width: 767.98px) {
    .hero {
        padding: 48px 0;
    }

    /* 首页主标题：桌面 display-5 = 3rem，手机收敛到 34px */
    .hero h1.display-5 {
        font-size: 2.125rem;
    }

    /* CTA 大标题：桌面 display-4 = 3.5rem（≥1200px），手机收敛到 32px */
    .display-4 {
        font-size: 2rem;
    }

    /* 移动端展开的导航项与按钮增大触控面积（接近 44px 目标） */
    .site-header .navbar .nav-link,
    .site-header .navbar .btn {
        padding-top: .55rem;
        padding-bottom: .55rem;
    }

    /* ① 收紧 section 上下间距（桌面 py-4=24px，手机 18px）与标题下边距（桌面 mb-5=48px，手机 24px） */
    section.py-4 {
        padding-top: 18px !important;
        padding-bottom: 18px !important;
    }
    section h2.mb-5 {
        margin-bottom: 24px !important;
    }

    /* ② 卡片内边距收敛（桌面 24px，手机 18px，内容不松散） */
    .feature-card {
        padding: 18px;
    }

    /* ③ Hero 双按钮手机上全宽堆叠（避免并排换行挤） */
    .hero .d-flex.gap-3 {
        flex-direction: column;
    }
    .hero .d-flex.gap-3 .btn {
        width: 100%;
        justify-content: center;
    }

    /* ④ Hero 副标题强制 <br/> 在手机上取消，自然换行 */
    .hero .lead br {
        display: none;
    }

    /* ⑤ CTA 区底部三行小标签手机上纵向居中堆叠 */
    .bg-cta .row.g-3 {
        flex-direction: column;
        align-items: center;
        gap: .4rem !important;
    }
}

/* ============================================================
   App 管理页（Portal/Apps）表格专用布局
   仅作用于 .apps-table，不影响其他页面。table-layout:fixed 固定列宽，
   长描述限 3 行省略，右侧各列不换行，操作按钮 flex 分组、间距统一。
   ============================================================ */
.apps-table {
    table-layout: fixed;
    width: 100%;
    /* 容器宽度不足时横向滚动，避免描述列被挤成 0 宽 */
    min-width: 1000px;
}

.apps-table > thead th {
    white-space: nowrap;
    vertical-align: middle;
}

/* 列宽：名称/试用/状态/配置/操作固定，描述列自适应占据剩余空间 */
.apps-table .col-name    { width: 150px; }
.apps-table .col-desc    { width: auto; min-width: 200px; }
.apps-table .col-trial   { width: 80px; text-align: center; }
.apps-table .col-status  { width: 90px; text-align: center; }
.apps-table .col-config  { width: 120px; text-align: center; }
.apps-table .col-actions { width: 300px; }

.apps-table td {
    vertical-align: middle;
}

/* 名称列允许换行，避免长名称撑列 */
.apps-table .cell-name {
    word-break: break-word;
}

/* 描述列：限 3 行，超出省略号；鼠标悬停 title 查看完整内容 */
.apps-table .cell-desc {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
    color: var(--muted);
}

/* 试用/状态单元格：居中且不换行 */
.apps-table .cell-trial,
.apps-table .cell-status {
    text-align: center;
    white-space: nowrap;
}

/* 配置文件单元格：徽标不换行，拒绝原因小字可换行 */
.apps-table .cell-config {
    text-align: center;
}
.apps-table .cell-config .badge {
    white-space: nowrap;
}

/* 操作按钮组：flex 换行 + 统一间距，按钮文字不换行、内边距统一 */
.apps-table .action-group {
    display: flex;
    /* 操作按钮固定单排：列宽已按按钮总宽留足，换行会撑高整行 */
    flex-wrap: nowrap;
    gap: 6px;
    justify-content: flex-start;
}
.apps-table .action-group .btn {
    white-space: nowrap;
    margin: 0;
    padding: 0.2rem 0.55rem;
}

/* ============================================================
   统一数据表格规范（全站管理端通用）
   落地方式：<div class="table-wrap"><table class="table data-table">…</table></div>
   列宽由 /js/table-fit.js 按内容计算后写到 th 上：下限 64px，普通列上限
   340px，长文本列压到 260px 并在单元格内省略号截断；被截断的单元格由脚本
   自动补 title，鼠标悬浮即显示全文。容器宽度不足时由 .table-wrap 横向滚动，
   不再把中文列压成单字宽、把行高撑到 200px。
   ============================================================ */
.table-wrap {
    /* 宽高都按需出滚动条：装得下时不可见，装不下自动出现（全站列表统一，不再按页各写 */
    overflow: auto;
    max-width: 100%;
    /* 高度由 table-fit.js 按容器实际位置算好后写进 --table-max-h（不再用 100vh 减固定常数的估算值：
       各页工具条行数不同，固定扣减在筛选区高的页面会低估、在空态页面会高估）。
       JS 未执行时不设上限，整页滚动兜底，避免表格被压成两三行。 */
    max-height: var(--table-max-h, none);
    /* 预留滚动条槽位：避免"纵向滚动条出现 → 内容区变窄 → 表格宽出 2px → 又多出一条横向滚动条" */
    scrollbar-gutter: stable;
}

/* 纵向滚动时表头吸顶，滚到第 30 行也知道每列是什么 */
.table-wrap > .data-table > thead th {
    position: sticky;
    top: 0;
    z-index: 1;
    background: var(--card-bg, #fff);
}

.table-wrap > .data-table {
    margin-bottom: 0;
}

/* 固定表格布局：列宽由脚本显式下发，保证省略号截断可以生效 */
.data-table {
    table-layout: fixed;
    width: 100%;
}

.data-table > thead th,
.data-table > tbody td {
    vertical-align: middle;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 操作列：按钮同排排列、不换行，间距统一；
   容器装得下时把操作列固定在右侧，管理员不用拖动滚动条就能点到按钮；
   容器连各列真实下限都装不下时（table-fit 给 .table-wrap 打 table-overflow），
   取消固定 —— 否则固定列会盖住相邻列，比"需要横向滚动"更难用 */
.table-wrap:not(.table-overflow) .data-table > tbody td.cell-actions {
    white-space: nowrap;
    position: sticky;
    right: 0;
    background: var(--card-bg, #fff);
    box-shadow: -8px 0 10px -8px color-mix(in srgb, var(--ink, #111827) 22%, transparent);
    z-index: 2;
}

.table-wrap:not(.table-overflow) .data-table > thead th.cell-actions-head {
    position: sticky;
    right: 0;
    top: 0;
    background: var(--card-bg, #fff);
    box-shadow: -8px 0 10px -8px color-mix(in srgb, var(--ink, #111827) 22%, transparent);
    z-index: 3;
}

.data-table > tbody td .btn {
    white-space: nowrap;
    margin-right: 6px;
}

.data-table > tbody td .btn:last-child {
    margin-right: 0;
}

/* 显式允许换行的列（备注/说明类，避免一律截断） */
.data-table > tbody td.cell-wrap {
    white-space: normal;
    word-break: break-word;
}

/* 表格内空态：收缩内边距，避免空表把行高撑到 197px */
.table-wrap .empty-state {
    padding: 18px 0;
}

/* 列语义类：页面直接复用，不再写行内 style
   cell-money 金额右对齐等宽数字；cell-two 单元格内两行小字；
   cell-sub-line 副行（编码/时间/邮箱等次要信息） */
.data-table > tbody td.cell-money {
    text-align: right;
    font-variant-numeric: tabular-nums;
}

/* 数字/计数列（table-fit 自动识别后加类）：右对齐 + 等宽数字，便于竖向比对 */
.data-table > thead th.cell-num,
.data-table > tbody td.cell-num {
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.data-table > tbody td.cell-two {
    white-space: normal;
    line-height: 1.3;
}

.data-table .cell-sub-line {
    display: block;
    font-size: 0.75rem;
    line-height: 1.3;
    color: #6c757d;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
/* ============================================================
   后台服务参数页（/platform/serviceSettings）分组视觉分层
   六组柔和淡彩：低饱和、同明度，相邻色相不撞；不使用灰调，
   避免参数条目多时靠"变灰"降层级反而看不清。
   2026-11-09
   ============================================================ */
.svc-group {
    border-radius: 14px;
    padding: 14px 16px 16px;
    margin-bottom: 14px;
    border: 1px solid var(--svc-line);
    background: var(--svc-bg);
    box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
}

/* 六组配色：浅底(--svc-bg) / 描边(--svc-line) / 主色(--svc-bar) / 深字(--svc-ink) */
.svc-g1 { --svc-bg: #eef4fe; --svc-line: #c9dbf8; --svc-bar: #3b82f6; --svc-ink: #1e40af; }
.svc-g2 { --svc-bg: #fef4e7; --svc-line: #f6ddb6; --svc-bar: #f59e0b; --svc-ink: #b45309; }
.svc-g3 { --svc-bg: #e9f8f1; --svc-line: #c3ecdb; --svc-bar: #10b981; --svc-ink: #047857; }
.svc-g4 { --svc-bg: #f4eefc; --svc-line: #ddd0f7; --svc-bar: #8b5cf6; --svc-ink: #6d28d9; }
.svc-g5 { --svc-bg: #e8f7fb; --svc-line: #bfe9f4; --svc-bar: #06b6d4; --svc-ink: #0e7490; }
.svc-g6 { --svc-bg: #fdeef2; --svc-line: #f8cdda; --svc-bar: #f43f5e; --svc-ink: #be123c; }

/* 组标题条：淡彩底 + 圆角，组名放大加粗（不使用左侧竖条，避免圆角处像"["括号） */
.svc-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding: 9px 14px;
    margin: -2px 0 12px 0;
    border-radius: 10px;
    background: color-mix(in srgb, var(--svc-bar) 16%, #fff);
}
.svc-name {
    font-size: .9375rem;
    font-weight: 700;
    letter-spacing: .2px;
    color: var(--svc-ink);
}
.svc-desc {
    margin-left: 8px;
    font-size: .75rem;
    font-weight: 500;
    color: color-mix(in srgb, var(--svc-ink) 72%, #fff);
}

/* 任务浅彩卡：同色系浅底（10%），比组背景（5%）略深，任务之间靠边框+间距分隔 */
.svc-task {
    background: color-mix(in srgb, var(--svc-bar) 10%, #fff);
    border: 1px solid color-mix(in srgb, var(--svc-bar) 22%, #f1f3f7);
    border-radius: 10px;
    padding: 12px 14px;
    margin-top: 10px;
}
.svc-task-title {
    font-size: .8125rem;
    font-weight: 600;
    color: var(--svc-ink);
}
.svc-task-desc {
    margin-left: 6px;
    font-size: .75rem;
    font-weight: 400;
    color: color-mix(in srgb, var(--svc-ink) 66%, #fff);
}

/* 参数标签：带色相深色，不用灰 */
.svc-label {
    font-size: .8125rem;
    font-weight: 600;
    color: var(--svc-ink);
    margin-bottom: 4px;
}

/* 输入框：淡色凹陷底 + 可辨边框 + 聚焦光环；宽度保持栅格原样 */
.svc-input {
    background: color-mix(in srgb, var(--svc-bar) 5%, #fff);
    border: 1px solid color-mix(in srgb, var(--svc-bar) 36%, #dbe3ee);
    /* 值文字纯黑并加粗一档：淡彩底上必须一眼看清当前值 */
    color: #000;
    font-weight: 500;
    transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.svc-input:hover {
    border-color: color-mix(in srgb, var(--svc-bar) 62%, #dbe3ee);
}
.svc-input:focus {
    background: #fff;
    border-color: var(--svc-bar);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--svc-bar) 18%, transparent);
}

/* 参数说明：带色相深色文字，保证条目多时清晰 */
.svc-help {
    margin-top: 4px;
    font-size: .75rem;
    line-height: 1.55;
    color: color-mix(in srgb, var(--svc-ink) 84%, #1c1917);
}
.svc-restart {
    font-weight: 700;
    color: #b91c1c;
}

/* 开机自启与 Bool 开关：选中态跟随该组主色 */
.svc-auto .form-check-label,
.svc-bool .form-check-label {
    font-size: .8125rem;
    font-weight: 600;
    color: var(--svc-ink);
}
.svc-auto .form-check-input:checked,
.svc-bool .form-check-input:checked {
    background-color: var(--svc-bar);
    border-color: var(--svc-bar);
}
.svc-auto .form-check-input:focus,
.svc-bool .form-check-input:focus {
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--svc-bar) 18%, transparent);
}

/* 页头标题不再被按钮挤压成两行 */
.svc-page-head h4 {
    white-space: nowrap;
}