/* ═══════════════════════════════════════════════════════════════
   全球开源情报研究中心 · 全站定制样式（2026-09 焕新）
   范围：仅移动端导航体验（汉堡按钮 / 侧边抽屉 / 遮罩）
   桌面端样式不受影响；此文件在 style.css 之后加载
   ═══════════════════════════════════════════════════════════════ */

/* —— 汉堡按钮：浅色圆角、品牌蓝点缀 —— */
.nk-navbar-toggle .btn {
  background-color: rgba(43, 92, 253, 0.08);
  border: 1px solid rgba(43, 92, 253, 0.14);
  color: #2b5cfd;
  border-radius: 0.75rem !important;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.nk-navbar-toggle .btn:hover,
.nk-navbar-toggle .btn:focus {
  background-color: rgba(43, 92, 253, 0.16);
  border-color: rgba(43, 92, 253, 0.28);
  color: #2b5cfd;
  box-shadow: 0 0.25rem 0.75rem rgba(43, 92, 253, 0.18);
}
.nk-navbar-toggle .btn.active {
  background-color: #2b5cfd;
  border-color: #2b5cfd;
  color: #fff;
  box-shadow: 0 0.375rem 1rem rgba(43, 92, 253, 0.32);
}

/* —— 遮罩：深色 + 毛玻璃，替换原生灰色 —— */
.navbar-overlay {
  background: rgba(10, 20, 37, 0.46);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  z-index: 1024;
}

/* —— 抽屉底部留言 CTA（默认隐藏，仅抽屉形态显示） —— */
/* —— 大模型页 · 三方对比表：收窄维度列，宽让给内容列 —— */
.nk-compare-slim .nk-compare-col.lg {
  width: 220px;
}
.nk-compare-slim .nk-compare-col .lead {
  white-space: normal;
}
/* 平板：维度列再收窄一点 */
@media (max-width: 991.98px) {
  .nk-compare-slim .nk-compare-col.lg {
    width: 168px;
  }
}
/* 手机：表格改堆叠卡片式——每行变一张卡，列名变前缀标签 */
@media (max-width: 767.98px) {
  .nk-compare-slim .table,
  .nk-compare-slim .table tbody,
  .nk-compare-slim .table tr,
  .nk-compare-slim .table td {
    display: block;
    width: auto;
  }
  .nk-compare-slim .table thead {
    display: none;
  }
  /* 清除 Bootstrap 表格单元格边线，堆叠卡片间只留分组分隔线 */
  .nk-compare-slim .table td {
    border-top: 0 !important;
    border-bottom: 0 !important;
  }
  .nk-compare-slim .table tr {
    padding: 0.55rem 0.9rem 0.75rem;
    border-bottom: 1px solid #e5e7eb;
  }
  .nk-compare-slim .table tr:last-child {
    border-bottom: 0;
  }
  .nk-compare-slim td.nk-compare-col.lg {
    padding: 0.85rem 0 0.45rem !important;
  }
  .nk-compare-slim td.nk-compare-col.lg .lead {
    font-size: 1rem;
    font-weight: 700;
    color: #0a1425;
  }
  .nk-compare-slim td.nk-compare-col.center {
    padding: 0.6rem 0.85rem !important;
    margin-bottom: 0.45rem;
    border-radius: 0.6rem;
    background: #f6f8fb;
    text-align: left;
  }
  .nk-compare-slim td.nk-compare-col.center p {
    text-align: left;
    margin: 0;
  }
  .nk-compare-slim td.nk-compare-col.active {
    background: #eaefff;
  }
  .nk-compare-slim tbody tr td:nth-child(2)::before {
    content: "国内通用";
  }
  .nk-compare-slim tbody tr td:nth-child(3)::before {
    content: "海外通用";
  }
  .nk-compare-slim tbody tr td:nth-child(4)::before {
    content: "卧龙";
  }
  .nk-compare-slim td.nk-compare-col.center::before {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    color: #8b96ad;
    margin-bottom: 0.25rem;
  }
  .nk-compare-slim td.nk-compare-col.active::before {
    color: #2b5cfd;
  }
}

/* 白底卡片表面：发丝边 + 柔和投影，避免白上白隐形 */
.shadow-soft {
  border: 1px solid rgba(10, 20, 37, 0.06);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 12px 32px rgba(15, 23, 42, 0.08);
}

/* —— 卧龙工作台页 · 卡片布局升级（wolo.work 风格）—— */
/* 五步卡：幽灵序号 + 英文眉标，无图标 */
.ww-steps-bg {background: #f4f7fd}
.ww-step {position: relative; height: 100%; display: flex; flex-direction: column; background: rgba(255, 255, 255, .88); border: 1px solid rgba(38, 40, 52, .07); border-radius: 1rem; padding: 1.5rem 1.35rem 1.4rem; overflow: hidden; box-shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 12px 30px rgba(15, 23, 42, .05); transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease}
.ww-step:hover {transform: translateY(-6px); box-shadow: 0 3px 8px rgba(15, 23, 42, .06), 0 22px 50px rgba(15, 23, 42, .10); border-color: rgba(43, 92, 253, .2)}
.ww-gnum {position: absolute; top: .65rem; right: 1rem; font-size: 2rem; font-weight: 800; line-height: 1; letter-spacing: -.02em; color: rgba(43, 92, 253, .10); pointer-events: none}
.ww-en {font-size: .72rem; font-weight: 700; letter-spacing: .24em; color: #9aa6bd; text-transform: uppercase}
.ww-step h5 {margin: .6rem 0 0; font-size: 1.06rem; font-weight: 700; color: #0a1425}
.ww-step p {margin: .55rem 0 0; font-size: .9rem; line-height: 1.7; color: #4b5563}
/* 模块卡：小图标块与标题同行 */
.ww-mod {height: 100%; background: #fff; border: 1px solid rgba(38, 40, 52, .07); border-radius: 1rem; padding: 1.3rem 1.25rem 1.2rem; box-shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 10px 26px rgba(15, 23, 42, .05); transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease}
.ww-mod:hover {transform: translateY(-5px); box-shadow: 0 3px 8px rgba(15, 23, 42, .06), 0 18px 42px rgba(15, 23, 42, .09); border-color: rgba(43, 92, 253, .2)}
.ww-mini-ico {flex: 0 0 auto; width: 2.35rem; height: 2.35rem; border-radius: .6rem; display: inline-flex; align-items: center; justify-content: center; font-size: 1.05rem; color: #2b5cfd; background: rgba(43, 92, 253, .08); border: 1px solid rgba(43, 92, 253, .12)}
.ww-mod .title {font-size: 1.02rem; font-weight: 700; color: #0a1425}
.ww-mod p {margin: 0; font-size: .88rem; line-height: 1.65; color: #4b5563}
@media (max-width: 767.98px) {
  .ww-step {padding: 1.25rem 1.1rem 1.15rem}
  .ww-gnum {font-size: 1.6rem}
  .ww-mod {padding: 1.1rem 1.05rem 1rem}
}

/* 手机端：杜绝离屏抽屉导航造成的 4px 横向滚动 */
@media (max-width: 767.98px) {
  body {overflow-x: hidden}
}

/* —— 全站圆角统一：消除直角/小直角元素 —— */
/* 内容图片：统一圆角方（页脚 logo/备案图标除外；带 rounded-* 工具类的图片保持原值） */
.nk-pages img:not(.logo-img):not(.beian) {
  border-radius: 0.9rem;
}
/* 对比表容器：裁出圆角（内部横向滚动不受影响） */
.nk-compare {
  overflow: hidden;
}

/* 侧边悬浮按钮（返回首页/在线留言）：直角 → 圆角方 */
.nk-sticky-badge-icon {
  border-radius: 0.85rem !important;
}

/* —— 卧龙工作台 · 五步闭环图标（白色玻璃圆角方块 + 品牌蓝） —— */
.ww-step-icon {
  width: 3.4rem;
  height: 3.4rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.85rem;
  color: #2b5cfd;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(43, 92, 253, 0.14);
  box-shadow: 0 1px 2px rgba(10, 20, 37, 0.04), 0 6px 18px rgba(43, 92, 253, 0.10);
}
.ww-step-icon .icon {
  font-size: 1.45rem;
}

/* —— 移动端（全局）：卡片图标缩小并左置于标题旁 —— */
@media (max-width: 767.98px) {
  .nk-pages .card-body:has(> .media.media-circle),
  .nk-pages .card-body:has(> .ww-step-icon),
  .nk-pages .card-body > .nk-feature-block-content:has(> .media.media-circle) {
    display: flex;
    flex-direction: row !important;
    flex-wrap: wrap;
    align-items: center;
    column-gap: 0.85rem;
    row-gap: 0.5rem;
  }
  /* 图标缩小、去下边距 */
  .nk-pages .card-body .media.media-lg.media-circle,
  .nk-pages .card-body .media.media-md.media-circle {
    width: 2.6rem;
    height: 2.6rem;
    margin: 0 !important;
    flex: 0 0 auto;
  }
  .nk-pages .card-body .media.media-circle .icon {
    font-size: 1.15rem;
  }
  .nk-pages .card-body .ww-step-icon {
    width: 2.6rem;
    height: 2.6rem;
    margin: 0 !important;
    border-radius: 0.65rem;
    box-shadow: 0 1px 2px rgba(10, 20, 37, 0.05), 0 4px 12px rgba(43, 92, 253, 0.10);
    flex: 0 0 auto;
  }
  .nk-pages .card-body .ww-step-icon .icon {
    font-size: 1.1rem;
  }
  /* 标题与图标同行 */
  .nk-pages .card-body > h4,
  .nk-pages .card-body > h5,
  .nk-pages .card-body > h6,
  .nk-pages .card-body > .nk-feature-block-content > h4 {
    flex: 1 1 calc(100% - 3.6rem);
    margin-bottom: 0 !important;
  }
  /* 描述、列表、链接回到整行 */
  .nk-pages .card-body > p,
  .nk-pages .card-body > ul,
  .nk-pages .card-body > a,
  .nk-pages .card-body > .nk-feature-block-content > p,
  .nk-pages .card-body > .nk-feature-block-content > ul,
  .nk-pages .card-body > .nk-feature-block-content > a {
    flex-basis: 100%;
  }
}

.nk-navbar .nk-navbar-btn {
  display: none;
}

/* —— 侧边抽屉（仅 <992px 的抽屉形态） —— */
@media (max-width: 991.98px) {
  /* 面板：右侧圆角 + 立体投影 + 顶部呼吸留白 */
  .nk-navbar {
    border-radius: 0 1.25rem 1.25rem 0;
    box-shadow: 0 2px 6px rgba(10, 20, 37, 0.05), 0 24px 64px rgba(10, 20, 37, 0.18);
    padding-top: 1.125rem;
  }
  /* 抽屉顶部眉标 */
  .nk-navbar.navbar-mobile::before {
    content: "导航菜单 \00b7 MENU";
    display: block;
    padding: 0.375rem 1.375rem 0.875rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    color: #9aa6bd;
  }
  /* 菜单项：圆角条目 + 悬停着色 + 右侧箭头 */
  .nk-navbar .nk-nav {
    padding: 0 1rem;
  }
  .nk-navbar .nk-nav-item + .nk-nav-item {
    margin-top: 0.25rem;
  }
  .nk-navbar .nk-nav-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.9rem 1rem;
    border-radius: 0.75rem;
    font-size: 0.9375rem;
    color: #3e4a63;
    background-color: #f5f7fc;
    border: 1px solid rgba(10, 20, 37, 0.045);
    transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
  }
  .nk-navbar .nk-nav-link::after {
    content: "\203a";
    font-size: 1.2rem;
    line-height: 1;
    color: #b6c1d6;
    transition: color 0.25s ease, transform 0.25s ease;
  }
  .nk-navbar .nk-nav-link:hover,
  .nk-navbar .nk-nav-link:focus-visible {
    background-color: #e9effd;
    border-color: rgba(43, 92, 253, 0.22);
    color: #2b5cfd;
  }
  .nk-navbar .nk-nav-link:hover::after,
  .nk-navbar .nk-nav-link:focus-visible::after {
    color: #2b5cfd;
    transform: translateX(2px);
  }
  /* 抽屉底部留言 CTA（默认隐藏，仅抽屉形态显示） */
  .nk-navbar .nk-navbar-btn {
    display: block;
    margin-top: auto;
    padding: 1.125rem 1.25rem 1.375rem;
    border-top: 1px solid rgba(10, 20, 37, 0.07);
  }
  .nk-navbar .nk-navbar-btn .btn {
    box-shadow: 0 0.5rem 1.25rem rgba(43, 92, 253, 0.28);
  }
}
