/* ─── 凌云海全球账户平台 - 云平台风格 ─── */

:root {
    /* 值对齐 sup 站 main.css 变量体系，保证两站显示效果完全一致 */
    --ac-primary: #165dff;
    --ac-primary-hover: #0e4fd6;
    --ac-primary-light: #e8f0ff;
    --ac-primary-bg: #f0f5ff;
    --ac-gradient: linear-gradient(135deg, #165dff 0%, #4d7fff 100%);
    --ac-gradient-warm: linear-gradient(135deg, #ff6a00 0%, #ff9f43 100%);
    --ac-bg: #f5f6f8;
    --ac-bg-white: #ffffff;
    --ac-text: #1a1a2e;
    --ac-text-secondary: #5a6070;
    --ac-text-muted: #8a9099;
    --ac-border: #e8eaee;
    --ac-border-light: #f0f0f5;
    --ac-shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
    --ac-shadow: 0 2px 10px rgba(0, 0, 0, 0.07);
    --ac-shadow-lg: 0 6px 24px rgba(0, 0, 0, 0.10);
    --ac-radius: 0px;
    --ac-radius-control: 4px;
    --ac-radius-pill: 999px;

    --ac-logo-h: 28px;
}

/* ─── 基础 ─── */
body {
    background-color: var(--ac-bg);
    color: var(--ac-text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* 圆角分层：卡片/导航直角(0)，控件 4px，主 CTA 胶囊 */
.card, .modal-content, .dropdown-menu, .toast, .list-group-item,
.navbar, .nav-pills .nav-link, .pagination .page-link {
    border-radius: var(--ac-radius) !important;
}
.btn, .form-control, .input-group-text, .badge, .alert {
    border-radius: var(--ac-radius-control) !important;
}
.btn-pill { border-radius: var(--ac-radius-pill) !important; }

/* 统一 logo 尺寸：三站同值，图片源集中到 www.mclinyunhai.com */
.navbar-brand img, .navbar-brand-centered img { height: var(--ac-logo-h); width: auto; }

/* ─── 前台导航栏（与 sup 站完全相同：白底 + 下边框 + 60px，吸顶，三栏 grid）─── */
.navbar-sup {
    background: #fff !important;
    border-bottom: 1px solid var(--ac-border);
    height: 60px;
    padding: 0 24px;
    position: sticky;
    top: 0;
    z-index: 1030;
}
.navbar-sup .navbar-brand { font-weight: 700; font-size: 16px; color: var(--ac-text); display: flex; align-items: center; gap: 10px; }
.navbar-sup .navbar-brand img { height: 28px; width: auto; display: block; }
.navbar-sup .nav-link { color: var(--ac-text-secondary); font-size: 14px; padding: 18px 16px !important; transition: color .2s; }
.navbar-sup .nav-link:hover, .navbar-sup .nav-link.active { color: var(--ac-primary); }
/* 三栏布局：中列相对整条导航栏严格居中，左右 1fr 对称（品牌靠左、用户区靠右） */
.navbar-sup .container { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; }
.navbar-sup .nav-left { display: flex; align-items: center; gap: 12px; justify-self: start; min-width: 0; }
.navbar-sup .nav-center { justify-self: center; }
.navbar-sup .nav-right { display: flex; align-items: center; justify-self: end; min-width: 0; }
/* 移动端下拉面板：absolute 浮层覆盖在内容上，不撑高导航栏（修复展开时导航栏变高/内容被顶开的问题） */
.navbar-sup .nav-mobile {
    position: absolute;
    top: 60px;
    left: -24px;
    right: -24px;
    background: #fff;
    border-top: 1px solid var(--ac-border);
    box-shadow: 0 8px 20px rgba(0, 0, 0, .08);
    z-index: 1040;
    margin: 0;
}
.navbar-sup .nav-mobile .nav-link {
    display: flex; align-items: center; gap: 10px;
    padding: 12px 20px !important;
    font-size: 14px;
}
.navbar-sup .nav-mobile .nav-link i { width: 18px; text-align: center; font-size: 15px; color: var(--ac-text-muted); }
.navbar-sup .nav-mobile .nav-link:hover { background: #f7f9ff; color: var(--ac-primary); }
.navbar-sup .nav-mobile .nav-link.active { background: var(--ac-primary-bg); color: var(--ac-primary); }
.navbar-sup .nav-mobile .nav-link.active i { color: var(--ac-primary); }
/* 移动端 Logo 居中（nav-center 为 grid 中列自动居中；三栏：菜单左 / Logo 中 / 头像右） */
@media (max-width: 991.98px) {
    .navbar-sup .nav-center { display: flex; align-items: center; }
}
/* 产品生态下拉（对齐 www：浅色卡片网格） */
.navbar-sup .dropdown-menu { margin-top: 0; }
.navbar-sup .eco-drop-item { border-radius: 0; }
.navbar-sup .eco-drop-item:hover { background: var(--ac-primary-bg); }
.navbar-sup .eco-drop-item i { font-size: 18px; }

/* ═══════════════════════════════════════
   页面切换过渡（View Transitions，渐进增强；与 sup / www 官网实现一致）
   ═══════════════════════════════════════ */
@view-transition {
    navigation: auto;
}

::view-transition-old(root) {
    animation: vt-out 0.25s ease;
}

::view-transition-new(root) {
    animation: vt-in 0.25s ease;
}

@keyframes vt-out {
    to {
        opacity: 0;
        transform: translateY(-8px);
    }
}

@keyframes vt-in {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
}

/* 导航栏不参与页面过渡（保持静止，只有内容区过渡） */
.navbar-sup {
    view-transition-name: site-nav;
}

::view-transition-old(site-nav),
::view-transition-new(site-nav) {
    animation: none;
}

/* 尊重系统"减少动效"偏好 */
@media (prefers-reduced-motion: reduce) {
    ::view-transition-old(root),
    ::view-transition-new(root) {
        animation: none;
    }
}

/* ─── 按钮 ─── */
.btn {
    font-size: 14px;
    padding: 7px 20px;
    font-weight: 500;
    transition: all 0.2s;
}
.btn-primary {
    background: var(--ac-gradient);
    border: none;
    color: #fff;
}
.btn-primary:hover {
    background: linear-gradient(135deg, #0e4fd6 0%, #3b6fe6 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(22, 93, 255, 0.3);
}
.btn-outline-primary {
    border: 1px solid var(--ac-primary);
    color: var(--ac-primary);
    background: transparent;
}
.btn-outline-primary:hover {
    background: var(--ac-primary);
    border-color: var(--ac-primary);
    color: #fff;
}
.btn-lg {
    padding: 10px 32px;
    font-size: 16px;
}
.btn-sm {
    padding: 4px 12px;
    font-size: 12px;
}

/* ─── 卡片 ─── */
.card {
    border: 1px solid var(--ac-border);
    background: #fff;
    box-shadow: var(--ac-shadow-sm);
    transition: box-shadow 0.2s, transform 0.2s;
}
.card-header {
    background: transparent;
    border-bottom: 1px solid var(--ac-border);
    padding: 16px 20px;
    font-weight: 500;
}

/* ─── 表单 ─── */
.form-control {
    font-size: 14px;
    padding: 8px 14px;
    border: 1px solid var(--ac-border);
    transition: border-color 0.2s, box-shadow 0.2s;
}
.form-control:focus, .form-select:focus {
    border-color: var(--ac-primary);
    box-shadow: 0 0 0 3px rgba(22, 93, 255, 0.18);
}
.btn:focus-visible { box-shadow: 0 0 0 3px rgba(22, 93, 255, 0.25); outline: none; }
.form-label {
    font-size: 13px;
    font-weight: 500;
    color: var(--ac-text);
    margin-bottom: 6px;
}

/* ─── 链接 ─── */
a { color: var(--ac-primary); text-decoration: none; }
a:hover { color: var(--ac-primary-hover); }

/* ─── Hero 区（云平台风格） ─── */
.hero-section {
    background: linear-gradient(180deg, #f0f5ff 0%, #e8f0ff 40%, #fff 100%);
    padding: 80px 0 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(ellipse at 30% 50%, rgba(22,93,255,0.03) 0%, transparent 60%),
                radial-gradient(ellipse at 70% 50%, rgba(77,127,255,0.03) 0%, transparent 60%);
    pointer-events: none;
}
.hero-section h1 {
    font-size: 38px;
    font-weight: 700;
    color: var(--ac-text);
    margin-bottom: 16px;
    position: relative;
}
.hero-section .hero-subtitle {
    font-size: 18px;
    color: var(--ac-text-secondary);
    max-width: 600px;
    margin: 0 auto 36px;
    line-height: 1.7;
    position: relative;
}
.hero-section .btn-hero {
    position: relative;
}

/* ─── 功能卡片（首页） ─── */
.feature-card {
    border: 1px solid var(--ac-border);
    background: #fff;
    padding: 36px 28px;
    text-align: center;
    transition: all 0.3s;
    box-shadow: var(--ac-shadow-sm);
}
.feature-card:hover { border-color: var(--ac-primary); box-shadow: var(--ac-shadow-lg); }
.feature-card .icon-wrap {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 26px;
    color: var(--ac-primary);
}
.feature-card h5 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
}
.feature-card p {
    font-size: 13px;
    color: var(--ac-text-secondary);
    margin: 0;
    line-height: 1.7;
}

/* ─── 后台菜单 ─── */
.sidebar-nav .nav-link {
    color: var(--ac-text-secondary);
    padding: 10px 18px;
    font-size: 14px;
    border-radius: 0;
    transition: all 0.2s;
}
.sidebar-nav .nav-link:hover {
    background: var(--ac-primary-bg);
    color: var(--ac-primary);
}
.sidebar-nav .nav-link.active {
    background: var(--ac-primary-bg);
    color: var(--ac-primary);
    font-weight: 600;
    border-left: 3px solid var(--ac-primary);
}
.sidebar-nav .nav-link i {
    margin-right: 10px;
    width: 18px;
    text-align: center;
    font-size: 15px;
}

/* ─── 后台表格增强 ─── */
.admin-table {
    margin-bottom: 0;
    border-collapse: separate;
    border-spacing: 0;
}
.admin-table thead th {
    background: #f7f8fa;
    font-size: 12px;
    font-weight: 600;
    color: var(--ac-text-muted);
    padding: 10px 14px;
    border-bottom: 2px solid var(--ac-border);
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}
.admin-table tbody td {
    padding: 10px 14px;
    font-size: 13px;
    border-bottom: 1px solid var(--ac-border);
    vertical-align: middle;
}
.admin-table tbody tr:hover {
    background: #fafbfc;
}
.admin-table tbody tr:last-child td {
    border-bottom: none;
}

/* ─── 后台卡片统一风格 ─── */
.admin-card {
    background: #fff;
    border: 1px solid var(--ac-border);
    box-shadow: var(--ac-shadow-sm);
}
.admin-card .card-header {
    background: #fafbfc;
    padding: 12px 20px;
    border-bottom: 1px solid var(--ac-border);
    font-size: 13px;
    font-weight: 600;
}
.admin-card .card-body {
    padding: 20px;
}

/* ─── 状态指示器 ─── */
.status-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 4px;
    vertical-align: middle;
}
.status-dot.active {
    background: #22c55e;
}
.status-dot.inactive {
    background: #d1d5db;
}

/* ─── 表单分区 ─── */
.form-section {
    background: #fff;
    border: 1px solid var(--ac-border);
    padding: 20px 24px;
    box-shadow: var(--ac-shadow-sm);
}
.form-section h6 {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--ac-border);
    color: var(--ac-text);
}

/* ─── 后台页面内容间距 ─── */
.admin-content-area > * + * {
    margin-top: 20px;
}

/* ─── 统计卡片（后台） ─── */
.stat-card {
    background: #fff;
    border: 1px solid var(--ac-border);
    padding: 24px;
    box-shadow: var(--ac-shadow-sm);
    transition: box-shadow 0.2s;
}
.stat-card .stat-number {
    font-size: 30px;
    font-weight: 700;
    color: var(--ac-primary);
    line-height: 1.2;
}
.stat-card .stat-label {
    font-size: 13px;
    color: var(--ac-text-secondary);
    margin-top: 4px;
}

/* ─── 表格 ─── */
.table {
    margin: 0;
    font-size: 13px;
}
.table th {
    border-top: none;
    border-bottom: 1px solid var(--ac-border);
    font-weight: 600;
    font-size: 12px;
    color: var(--ac-text-secondary);
    padding: 12px 12px;
    background: #fafbfc;
}
.table td {
    border-color: var(--ac-border);
    padding: 12px;
    vertical-align: middle;
}

/* ─── 登录/注册卡片 ─── */
.auth-card {
    max-width: 400px;
    margin: 80px auto;
    padding: 40px;
}
.auth-card h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 6px;
}

/* ─── OAuth 授权页 ─── */
.authorize-card {
    max-width: 460px;
    margin: 80px auto;
    padding: 40px;
}
.authorize-card .app-icon {
    width: 72px;
    height: 72px;
    object-fit: contain;
    border: 1px solid var(--ac-border);
    padding: 10px;
    background: #fff;
}

/* ─── 面包屑/页面标题 ─── */
.page-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
}

/* ─── 徽标 ─── */
.badge {
    font-weight: 500;
    font-size: 12px;
    padding: 3px 10px;
}

/* ─── 分页 ─── */
.pagination {
    margin: 20px 0 0;
}
.page-link {
    border: 1px solid var(--ac-border);
    color: var(--ac-text);
    padding: 6px 14px;
    font-size: 13px;
}
.page-link:hover {
    border-color: var(--ac-primary);
    color: var(--ac-primary);
}
.page-item.active .page-link {
    background: var(--ac-primary);
    border-color: var(--ac-primary);
}

/* ─── 面包屑导航（顶部管理导航） ─── */
.admin-topbar {
    background: #fff;
    border-bottom: 2px solid var(--ac-primary);
    height: 56px;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* ─── 响应式 ─── */
@media (max-width: 768px) {
    .hero-section { padding: 40px 0 30px; }
    .hero-section h1 { font-size: 26px; }
    .hero-section .hero-subtitle { font-size: 15px; }
    .auth-card, .authorize-card { margin: 40px 20px; padding: 24px; }
}

/* ─── 用户中心内容区排版 ─── */
.user-content-card {
    background: #fff;
    border: 1px solid var(--ac-border);
    padding: 28px 32px;
    margin-bottom: 20px;
    box-shadow: var(--ac-shadow-sm);
}
.user-content-card:last-child {
    margin-bottom: 0;
}
.user-content-card h5.section-title {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--ac-border);
}
.user-content-card .field-label {
    font-size: 12px;
    color: var(--ac-text-muted);
    margin-bottom: 4px;
}
.user-content-card .field-value {
    font-size: 14px;
    color: var(--ac-text);
}

/* ─── 后台管理增强 ─── */

/* 页面标题栏 */
.admin-page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}
.admin-page-header h1 {
    font-size: 20px;
    font-weight: 700;
    margin: 0;
}

/* 筛选/搜索栏 */
.admin-filter-bar {
    background: #fff;
    border: 1px solid var(--ac-border);
    padding: 16px 20px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
.admin-filter-bar .form-control,
.admin-filter-bar .form-select {
    width: auto;
    min-width: 180px;
}

/* 操作按钮组 */
.action-group {
    display: flex;
    gap: 6px;
}
.action-group .btn {
    padding: 3px 10px;
    font-size: 12px;
}

/* 空状态 */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--ac-text-muted);
}
.empty-state i {
    font-size: 40px;
    display: block;
    margin-bottom: 12px;
    opacity: 0.4;
}

/* 表单卡片 */
.form-section {
    background: #fff;
    border: 1px solid var(--ac-border);
    padding: 24px;
    margin-bottom: 20px;
}
.form-section h6 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--ac-border);
}

/* 状态标签 */
.status-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    margin-right: 6px;
}
.status-dot.active { background: #22c55e; }
.status-dot.inactive { background: #9ca3af; }

/* 卡片 hover 动效 */
.card-hover {
    transition: box-shadow 0.2s, transform 0.2s;
}

/* 搜索输入框组 */
.search-box {
    display: flex;
    gap: 0;
}
.search-box .form-control {
    border-right: none;
}
.search-box .btn {
    border: 1px solid var(--ac-border);
    border-left: none;
    background: #fff;
}
.search-box .btn:hover {
    color: var(--ac-primary);
}

/* 数字统计卡片 - 后台仪表盘增强 */
.stat-card-lg {
    background: #fff;
    border: 1px solid var(--ac-border);
    padding: 28px 24px;
    text-align: center;
    transition: box-shadow 0.2s;
}
.stat-card-lg .stat-icon {
    font-size: 28px;
    color: var(--ac-primary);
    margin-bottom: 12px;
}
.stat-card-lg .stat-number {
    font-size: 32px;
    font-weight: 700;
    color: var(--ac-text);
    line-height: 1.2;
}
.stat-card-lg .stat-label {
    font-size: 13px;
    color: var(--ac-text-secondary);
    margin-top: 4px;
}

/* ═══════════════════════════════════════
   顶部加载进度条 + 返回顶部（复用 www 官网实现，效果与 sup 一致）
   ═══════════════════════════════════════ */
.page-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 2px;
    width: 0;
    background: linear-gradient(90deg, rgba(22, 93, 255, 0.85), rgba(139, 92, 246, 0.85));
    z-index: 1100;
    opacity: 0;
    transition: width 0.2s ease, opacity 0.3s ease;
}

.btn-back-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--ac-primary);
    color: #fff;
    border: none;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 1050;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}
.btn-back-top.show {
    opacity: 1;
    visibility: visible;
}
.btn-back-top:hover {
    background: #0f4fd6;
}

/* 滚动进度圆环（戒指式：套在按钮最外围） */
.btn-back-top-ring {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 52px;
    height: 52px;
    transform: translate(-50%, -50%) rotate(-90deg);
    pointer-events: none;
}
.btn-back-top-ring circle {
    fill: none;
    stroke-width: 3;
}
.btn-back-top-ring-bg {
    stroke: rgba(255, 255, 255, 0.3);
}
.btn-back-top-ring-fg {
    stroke: #fff;
    stroke-linecap: round;
    stroke-dasharray: 131.9;
    stroke-dashoffset: 131.9;
    transition: stroke-dashoffset 0.1s linear;
}

/* 滚动中显示百分比；停止滚动（idle）或鼠标悬浮时淡入箭头 */
.btn-back-top i,
.btn-back-top-pct {
    position: absolute;
    transition: opacity 0.25s ease;
}
.btn-back-top-pct {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1;
    opacity: 1;
}
.btn-back-top i {
    font-size: 18px;
    opacity: 0;
}
.btn-back-top.idle .btn-back-top-pct,
.btn-back-top:hover .btn-back-top-pct {
    opacity: 0;
}
.btn-back-top.idle i,
.btn-back-top:hover i {
    opacity: 1;
}

/* ─── 前台页脚（与 sup 站完全相同：浅色 / 白底 + 上边框）─── */
.footer-sup { background: #fff !important; border-top: 1px solid var(--ac-border); padding: 32px 0 24px; margin-top: auto; color: var(--ac-text-muted); }
.footer-sup a { color: var(--ac-text-muted); }
.footer-sup a:hover { color: var(--ac-primary); }
.footer-sup .f-title { color: var(--ac-text); font-weight: 600; font-size: 14px; margin-bottom: 14px; }
.footer-sup .footer-brand-logo { height: 22px; width: auto; }
/* 页脚链接：文字不移动，悬停时右侧 ">" 箭头淡入 */
.footer-sup .footer-link { position: relative; align-self: flex-start; padding-right: 16px; }
.footer-sup .footer-link i {
    position: absolute; right: 0; top: 50%; margin: 0; width: auto;
    transform: translateY(-50%); opacity: 0;
    transition: opacity .45s ease;
    color: var(--ac-text-muted); font-size: 12px;
}
.footer-sup .footer-link:hover i { opacity: 1; color: var(--ac-primary); }

/* ─── 法律条款排版组件（协议/隐私政策，与 sup 一致）─── */
.legal-callout {
    background: #f0f5ff;
    border-left: 3px solid var(--ac-primary);
    padding: 14px 18px;
    margin: 20px 0;
    font-size: 15px;
    line-height: 1.9;
}
.legal-warning {
    background: #fff8e6;
    border-left: 3px solid #f5a623;
    padding: 14px 18px;
    margin: 20px 0;
    font-size: 15px;
    line-height: 1.9;
}
.legal-quote {
    background: #fafbfc;
    border-left: 3px solid #d5dbe3;
    padding: 14px 18px;
    margin: 16px 0;
    font-size: 15px;
    line-height: 2;
    color: var(--ac-text-secondary);
}

/* 法律条款正文列表排版（对齐论坛：子条款独立标题 + 有序列表逐条换行）
   display:block 覆盖 Bootstrap .card 的 flex：flex 容器内块级 margin 不折叠，
   会使 h5(mt-4) 与前一 ol(margin-bottom) 间距相加（42px）而比 sup 多出空行 */
.legal-body { display: block; }
.legal-body p { margin-bottom: 14px; }
.legal-body ol { padding-left: 24px; margin: 12px 0 18px; }
.legal-body ol li { margin-bottom: 10px; }
.legal-body h6 { font-weight: 700; font-size: 17px; margin: 26px 0 10px; }

/* ─── 首页门户（对齐 sup/官网风格：docs-hero + portal 网格，0 圆角/左对齐/悬停边框+阴影）─── */
.docs-hero {
    background: linear-gradient(180deg, #f0f5ff 0%, #ffffff 100%);
    border-bottom: 1px solid var(--ac-border);
    padding: 64px 0 56px;
}
.docs-hero-title {
    font-size: 42px; font-weight: 800; letter-spacing: -.5px;
    color: var(--ac-text); line-height: 1.2; margin-bottom: 14px;
}
.docs-hero-sub {
    font-size: 17px; color: var(--ac-text-secondary);
    max-width: 640px; line-height: 1.8; margin-bottom: 28px;
}
.docs-hero-links {
    margin-top: 22px; font-size: 13px; color: var(--ac-text-muted);
    display: flex; flex-wrap: wrap; align-items: center;
}
.docs-hero-links a { color: var(--ac-primary); margin-left: 16px; }
.docs-hero-links a:hover { text-decoration: underline; }

.home-section-title { font-size: 24px; font-weight: 700; margin-bottom: 4px; }
.home-section-sub { color: var(--ac-text-muted); margin-bottom: 20px; }

.portal-section { margin-bottom: 40px; }
.portal-section-head { margin-bottom: 18px; }
.portal-section-title { font-size: 22px; font-weight: 700; margin-bottom: 2px; }
.portal-section-sub { font-size: 14px; color: var(--ac-text-muted); }

.portal-services { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.portal-svc {
    display: flex; align-items: center; gap: 14px;
    background: #fff; border: 1px solid var(--ac-border);
    padding: 18px 16px; color: var(--ac-text);
    transition: border-color .2s, box-shadow .2s;
}
.portal-svc:hover { border-color: var(--ac-primary); box-shadow: 0 12px 32px rgba(22,93,255,.10); color: var(--ac-text); }
.portal-svc-icon {
    flex: 0 0 auto; width: 44px; height: 44px;
    color: var(--ac-primary);
    display: inline-flex; align-items: center; justify-content: center; font-size: 20px;
}
.portal-svc-text { flex: 1 1 auto; min-width: 0; }
.portal-svc-title { font-size: 15px; font-weight: 700; line-height: 1.3; }
.portal-svc-desc {
    font-size: 12px; color: var(--ac-text-muted); line-height: 1.5; margin-top: 2px;
    overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.portal-svc-arrow { flex: 0 0 auto; color: var(--ac-text-muted); font-size: 14px; }
.portal-svc:hover .portal-svc-arrow { color: var(--ac-primary); }

@media (max-width: 992px) { .portal-services { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 576px) { .portal-services { grid-template-columns: 1fr; } }
@media (max-width: 768px) {
    .docs-hero { padding: 44px 0 40px; }
    .docs-hero-title { font-size: 28px; }
    .docs-hero-sub { font-size: 15px; }
}

/* === 仪表盘改进：统计卡 + 图表 + 范围切换（接入 Chart.js / Alpine / dayjs） === */
.dash-stat {
    background: var(--ac-bg-white, #fff);
    border: 1px solid var(--ac-border);
    padding: 16px 18px;
    display: flex;
    align-items: center;
    gap: 14px;
    height: 100%;
    transition: box-shadow .15s ease, border-color .15s ease;
}
.dash-stat:hover { border-color: var(--ac-primary); box-shadow: var(--ac-shadow, 0 2px 10px rgba(0,0,0,.07)); }
.dash-stat__icon {
    flex: 0 0 auto;
    width: 44px; height: 44px;
    display: flex; align-items: center; justify-content: center;
    font-size: 20px;
    background: var(--ac-primary-bg, #f0f5ff);
    color: var(--ac-primary);
    border-radius: 4px;
}
.dash-stat--warn .dash-stat__icon { background: #fff4e6; color: #d9730d; }
.dash-stat--ok   .dash-stat__icon { background: #e6f7ed; color: #1a9c54; }
.dash-stat--info .dash-stat__icon { background: #e8f0ff; color: #165dff; }
.dash-stat__body { min-width: 0; }
.dash-stat__num { font-size: 24px; font-weight: 700; color: var(--ac-text); line-height: 1.1; font-variant-numeric: tabular-nums; }
.dash-stat--warn .dash-stat__num { color: #d9730d; }
.dash-stat__label { font-size: 12px; color: var(--ac-text-secondary, #5a6070); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dash-stat__sub { font-size: 11px; color: var(--ac-text-muted, #8a9099); margin-top: 4px; }

.chart-box { position: relative; width: 100%; height: 260px; }
.chart-box--sm { height: 240px; }

.range-toggle { display: inline-flex; border: 1px solid var(--ac-border); border-radius: 4px; overflow: hidden; }
.range-toggle button {
    border: none; background: transparent; color: var(--ac-text-secondary, #5a6070);
    font-size: 12px; padding: 3px 11px; cursor: pointer; line-height: 1.5;
    transition: background .12s ease, color .12s ease;
}
.range-toggle button + button { border-left: 1px solid var(--ac-border); }
.range-toggle button:hover { color: var(--ac-primary); }
.range-toggle button.active { background: var(--ac-primary); color: #fff; }

.dash-env-row { display: flex; justify-content: space-between; font-size: 13px; padding: 7px 0; border-bottom: 1px solid var(--ac-border-light, #f0f0f5); }
.dash-env-row:last-child { border-bottom: none; }

.dash-quick .btn { justify-content: flex-start; text-align: left; }
/* === /仪表盘改进 === */

/* === SVG 图标基础样式（svg-icons.js 配套，参考 Zibll svg.icon 机制） === */
svg.icon {
    width: 1em;
    height: 1em;
    vertical-align: -0.15em;
    fill: currentColor;
    overflow: hidden;
}
i[data-svg] {
    display: inline-block;
    width: 1em;
    height: 1em;
    vertical-align: -0.15em;
    fill: currentColor;
    overflow: hidden;
    font-style: normal;
}
.portal-svc-icon svg,
.portal-svc-icon i[data-svg] {
    width: 24px;
    height: 24px;
    font-size: 24px;
}
svg.icon-arrow,
i[data-svg].icon-arrow {
    width: 14px;
    height: 14px;
    font-size: 14px;
}

.card:hover { box-shadow: var(--ac-shadow); }

.stat-card:hover { box-shadow: var(--ac-shadow); }

.card-hover:hover { box-shadow: var(--ac-shadow); }

.stat-card-lg:hover { box-shadow: var(--ac-shadow); }
