/* =========================================================
 * AI识物通 全站共享样式（星夜靛紫设计体系 v2）
 * 设计语言：1200px 版心 / 白底玻璃导航（居中胶囊菜单）/
 *           主色靛紫 #5A4FE0 / 浅紫灰页面底 #F5F5FA /
 *           大圆角卡片（悬浮上移 + 柔和投影）/ 深色三段式页脚
 * 类名与页面标记对应，index 与全部二级页面复用
 * ========================================================= */
:root {
  --brand: #5A4FE0;          /* 主色：靛紫 */
  --brand-deep: #4638C8;     /* 主色加深（悬停） */
  --brand-light: #EEEDFC;    /* 主色浅底 */
  --grad: linear-gradient(135deg, #7C6FF0, #4638C8); /* 品牌渐变 */
  --ink-1: #23223B;          /* 一级文字（墨蓝紫） */
  --ink-2: #6B6A85;          /* 二级文字 */
  --ink-3: #A5A4BC;          /* 三级文字/占位 */
  --line: #E6E5F2;           /* 分割线 */
  --bg: #F5F5FA;             /* 页面背景：浅紫灰 */
  --card: #FFFFFF;           /* 卡片背景 */
  --shadow-hover: 0 16px 34px rgba(50, 40, 140, .13); /* 卡片悬浮投影 */
  --maxw: 1200px;            /* 版心宽度 */
}
* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, "Helvetica Neue", "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", Arial, sans-serif;
  background: var(--bg); color: var(--ink-1);
  -webkit-font-smoothing: antialiased;
  font-size: 14px;
}
a { text-decoration: none; color: inherit; }
ul, li { list-style: none; }
img { max-width: 100%; }
.m-container { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

/* ================= 主导航：白底玻璃 + 居中胶囊菜单（无顶部工具条） ================= */
.m-nav {
  background: rgba(255, 255, 255, .9);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 30;
}
.m-nav .inner {
  max-width: var(--maxw); margin: 0 auto; padding: 0 20px;
  height: 64px; display: flex; align-items: center; gap: 20px;
}
.m-nav .brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.m-nav .brand .logo {
  width: 38px; height: 38px; border-radius: 12px; background: var(--grad);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 16px rgba(90, 79, 224, .35);
}
.m-nav .brand .name { font-size: 19px; font-weight: 700; letter-spacing: 1px; color: var(--ink-1); }
/* 菜单整体居中，链接为胶囊态 */
.m-nav .menu { display: flex; gap: 6px; font-size: 14.5px; margin: 0 auto; }
.m-nav .menu a {
  color: var(--ink-2); padding: 8px 16px; border-radius: 999px;
  transition: color .2s, background .2s;
}
.m-nav .menu a:hover { color: var(--brand); background: var(--brand-light); }
.m-nav .menu a.active { color: #fff; background: var(--grad); font-weight: 600; }
.m-nav .nav-cta {
  flex-shrink: 0;
  background: var(--grad); color: #fff; font-size: 14px; font-weight: 600;
  padding: 10px 26px; border-radius: 999px;
  box-shadow: 0 6px 16px rgba(90, 79, 224, .35);
  transition: filter .2s, transform .2s;
}
.m-nav .nav-cta:hover { filter: brightness(1.1); transform: translateY(-1px); }

/* ================= 按钮：胶囊 ================= */
.m-btn {
  display: inline-block; text-align: center; cursor: pointer; border: none;
  font-size: 15px; font-weight: 600; padding: 13px 38px; border-radius: 999px; transition: all .2s;
}
.m-btn.primary { background: var(--grad); color: #fff; box-shadow: 0 8px 20px rgba(90, 79, 224, .35); }
.m-btn.primary:hover { filter: brightness(1.08); transform: translateY(-1px); }
.m-btn.hollow { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.6); }
.m-btn.hollow:hover { background: rgba(255,255,255,.14); border-color: #fff; }

/* ================= 区块标题：居中 + 渐变短线 ================= */
.m-section { padding: 64px 0; }
.m-section.alt { background: #fff; }
.m-sec-head { text-align: center; margin-bottom: 34px; }
.m-sec-head h2 { font-size: 27px; font-weight: 700; color: var(--ink-1); letter-spacing: 1px; }
.m-sec-head h2::after {
  content: ''; display: block; width: 44px; height: 4px; border-radius: 4px;
  background: var(--grad); margin: 12px auto 0;
}
.m-sec-head p { font-size: 14.5px; color: var(--ink-3); margin-top: 10px; }

/* ================= 页脚：深靛三段式（品牌 / 链接 / 联系 + 备案栏） ================= */
.m-footer { background: #16132F; color: #B9B6D6; }
.m-footer .foot-top {
  max-width: var(--maxw); margin: 0 auto; padding: 46px 20px 36px;
  display: flex; gap: 40px; align-items: flex-start;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.m-footer .f-brand { display: flex; gap: 12px; align-items: center; flex-shrink: 0; }
.m-footer .f-brand .logo {
  width: 44px; height: 44px; border-radius: 12px; background: var(--grad);
  display: flex; align-items: center; justify-content: center; flex: none;
}
.m-footer .f-brand-txt b { color: #fff; font-size: 18px; display: block; }
.m-footer .f-brand-txt p { font-size: 12.5px; color: #8b88ad; margin-top: 3px; }
/* 中部链接：一行流式 */
.m-footer .f-nav { margin: 12px auto 0; display: flex; flex-wrap: wrap; gap: 8px 26px; font-size: 13.5px; }
.m-footer .f-nav a { color: #B9B6D6; transition: color .2s; }
.m-footer .f-nav a:hover { color: #fff; }
/* 右侧联系 */
.m-footer .f-contact { text-align: right; font-size: 13px; line-height: 1.9; flex-shrink: 0; }
.m-footer .f-contact .tel { display: block; color: #fff; font-size: 21px; font-weight: 700; margin-bottom: 4px; }
.m-footer .f-contact p { color: #8b88ad; }
.m-footer .f-contact a { color: #A99DF8; }
/* 底部备案栏：居中小灰字 */
.m-footer .legal {
  max-width: var(--maxw); margin: 0 auto; padding: 16px 20px 26px;
  font-size: 12px; color: #7A77A0; line-height: 2; text-align: center;
}
.m-footer .legal a { color: #7A77A0; }
.m-footer .legal a:hover { color: #fff; }
.m-footer .legal .sep { margin: 0 8px; color: #3A3660; }

/* ================= 二级页面（文档版式：大圆角卡） ================= */
.doc-wrap { max-width: 960px; margin: 34px auto 64px; padding: 0 20px; }
.doc-crumbs { font-size: 13px; color: var(--ink-3); margin-bottom: 14px; }
.doc-crumbs a { color: var(--ink-2); }
.doc-crumbs a:hover { color: var(--brand); }
.doc-card {
  background: #fff; border-radius: 20px; padding: 48px 56px 56px;
  box-shadow: 0 4px 24px rgba(50, 40, 140, .06);
}
.doc-card h1 { font-size: 26px; font-weight: 700; margin-bottom: 8px; }
.doc-card .doc-meta { font-size: 13px; color: var(--ink-3); margin-bottom: 32px; }
.doc-card h2 {
  font-size: 17px; font-weight: 600; margin: 32px 0 12px;
  padding-left: 12px; border-left: 4px solid var(--brand); line-height: 1.4;
}
.doc-card p { font-size: 14.5px; line-height: 2; color: #4b4a66; margin-bottom: 10px; }
.doc-card ul.dots { margin: 6px 0 12px; }
.doc-card ul.dots li {
  font-size: 14.5px; line-height: 2; color: #4b4a66;
  padding-left: 16px; position: relative;
}
.doc-card ul.dots li::before {
  content: ''; position: absolute; left: 2px; top: 12px;
  width: 5px; height: 5px; border-radius: 50%; background: var(--brand);
}
.doc-card table { width: 100%; border-collapse: collapse; margin: 14px 0; }
.doc-card table th, .doc-card table td {
  border: 1px solid var(--line); padding: 12px 16px; font-size: 14px; text-align: left;
}
.doc-card table th { background: #F7F6FD; color: var(--ink-1); font-weight: 600; width: 180px; }
.doc-card table td { color: #4b4a66; }
/* 联系我们卡片组 */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 20px 0 8px; }
.contact-cell { border: 1px solid var(--line); border-radius: 16px; padding: 26px 22px; text-align: center; transition: all .2s; }
.contact-cell:hover { box-shadow: var(--shadow-hover); transform: translateY(-3px); border-color: transparent; }
.contact-cell .ic {
  width: 52px; height: 52px; margin: 0 auto 14px; border-radius: 16px;
  background: var(--brand-light); display: flex; align-items: center; justify-content: center;
}
.contact-cell h3 { font-size: 15px; margin-bottom: 8px; }
.contact-cell p { font-size: 14px; color: var(--ink-2); line-height: 1.8; margin: 0; }
.contact-cell p b { color: var(--brand); font-size: 17px; }

/* ================= 响应式 ================= */
@media (max-width: 960px) {
  .m-footer .foot-top { flex-direction: column; gap: 22px; }
  .m-footer .f-nav { margin: 0; }
  .m-footer .f-contact { text-align: left; }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .m-nav .inner { height: 56px; gap: 12px; }
  .m-nav .menu { display: none; }           /* 移动端隐藏主菜单，入口保留在页脚 */
  .m-nav .brand .logo { width: 32px; height: 32px; border-radius: 10px; }
  .m-nav .brand .name { font-size: 17px; }
  .m-nav .nav-cta { padding: 8px 18px; margin-left: auto; }
  .m-section { padding: 40px 0; }
  .m-sec-head h2 { font-size: 21px; }
  .doc-card { padding: 28px 22px 36px; border-radius: 16px; }
  .doc-card h1 { font-size: 21px; }
}
