/* ==========================================================================
   南途锦域建站 - 全站基础样式
   风格：暗黑系穿搭风 · 纯黑 + 深灰 + 暗紫
   布局：左右悬浮不对称（左导航坞 + 右动作轨，双向悬浮、非对称）
   ========================================================================== */

/* ---------- 设计变量 ---------- */
:root {
  /* 主色：暗黑系 */
  --ink: #0a0a0c;        /* 纯黑底 */
  --coal: #0f0f14;       /* 次黑 */
  --slate: #16161e;      /* 深灰 */
  --slate-2: #1e1e28;    /* 深灰2 */
  --slate-3: #262633;    /* 深灰3 */
  --panel: #14141c;      /* 面板底 */

  /* 暗紫系 */
  --purple: #6b4ba8;     /* 主暗紫 */
  --purple-deep: #3d2b5e;/* 深暗紫 */
  --purple-soft: #8b6fc7;/* 柔紫 */
  --purple-glow: #a78bda;/* 亮紫 */
  --purple-mist: #c4b3e8;/* 紫雾 */

  /* 中性 */
  --text: #e9e7f2;       /* 主文字 */
  --text-2: #b8b6c8;     /* 次文字 */
  --muted: #7a7a8c;      /* 弱文字 */
  --line: rgba(139, 111, 199, 0.16);
  --line-2: rgba(255, 255, 255, 0.06);
  --white: #ffffff;

  /* 阴影 */
  --shadow-sm: 0 2px 12px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.6);
  --glow-purple: 0 0 24px rgba(107, 75, 168, 0.35);

  /* 圆角 */
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-pill: 999px;

  /* 布局尺寸 */
  --dock-w: 232px;
  --rail-w: 58px;
  --main-max: 1180px;

  /* 字体 */
  --font: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  --font-en: "Georgia", "Times New Roman", serif;
  --font-mono: "SF Mono", "Menlo", monospace;
}

/* ---------- 重置 ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  color: var(--text-2);
  background: var(--ink);
  line-height: 1.75;
  font-size: 15px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
  height: auto;
}

a {
  color: var(--text);
  text-decoration: none;
  transition: color 0.28s ease, opacity 0.28s ease;
}

a:hover {
  color: var(--purple-glow);
}

ul,
ol {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--text);
  font-weight: 700;
  line-height: 1.3;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

::selection {
  background: var(--purple);
  color: #fff;
}

/* 滚动条 */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--coal);
}
::-webkit-scrollbar-thumb {
  background: var(--slate-3);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--purple);
}

/* ==========================================================================
   布局：左右悬浮不对称
   左：导航坞（内容丰富，纵向悬浮）
   右：动作轨（精简，居中悬浮）
   ========================================================================== */
.layout {
  position: relative;
  min-height: 100vh;
}

/* ---------- 左侧悬浮导航坞 ---------- */
.dock-left {
  position: fixed;
  top: 22px;
  left: 22px;
  bottom: 22px;
  width: var(--dock-w);
  background: linear-gradient(180deg, var(--panel) 0%, var(--coal) 100%);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  display: flex;
  flex-direction: column;
  z-index: 100;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.dock-inner {
  flex: 1;
  overflow-y: auto;
  padding: 26px 0 14px;
}

.dock-inner::-webkit-scrollbar {
  width: 3px;
}

/* 品牌区 */
.dock-brand {
  padding: 0 24px 22px;
  border-bottom: 1px solid var(--line-2);
}

.dock-brand .logo {
  display: flex;
  align-items: center;
  gap: 11px;
}

.dock-brand .logo-mark {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  filter: drop-shadow(0 0 8px rgba(107, 75, 168, 0.4));
}

.dock-brand .logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.dock-brand .logo-text strong {
  font-size: 18px;
  color: var(--text);
  letter-spacing: 2px;
}

.dock-brand .logo-text span {
  font-size: 9.5px;
  color: var(--purple-soft);
  letter-spacing: 2.5px;
  text-transform: uppercase;
  font-family: var(--font-en);
  margin-top: 2px;
}

.dock-brand .brand-slogan {
  margin-top: 14px;
  font-size: 11.5px;
  color: var(--muted);
  line-height: 1.7;
  padding-left: 11px;
  border-left: 2px solid var(--purple);
}

/* 导航 */
.dock-nav {
  padding: 16px 14px;
}

.dock-nav .nav-label {
  font-size: 10px;
  color: var(--purple-soft);
  letter-spacing: 3px;
  padding: 8px 12px 10px;
  text-transform: uppercase;
  font-family: var(--font-en);
  opacity: 0.7;
}

.dock-nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-radius: var(--r-sm);
  color: var(--text-2);
  font-size: 14px;
  font-weight: 500;
  transition: all 0.25s ease;
  position: relative;
  margin-bottom: 2px;
}

.dock-nav a .en {
  font-size: 10px;
  color: var(--muted);
  font-family: var(--font-en);
  letter-spacing: 1px;
  opacity: 0.6;
}

.dock-nav a:hover {
  background: var(--slate);
  color: var(--text);
  transform: translateX(3px);
}

.dock-nav a.active {
  background: linear-gradient(135deg, var(--purple-deep) 0%, var(--purple) 100%);
  color: #fff;
  box-shadow: var(--glow-purple);
}

.dock-nav a.active .en {
  color: rgba(255, 255, 255, 0.7);
}

/* 子菜单 */
.dock-nav .has-sub > a::after {
  content: "+";
  font-size: 15px;
  color: var(--purple-soft);
  transition: transform 0.3s ease;
}

.dock-nav .has-sub.open > a::after {
  transform: rotate(45deg);
}

.dock-nav .sub {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
  padding-left: 12px;
}

.dock-nav .has-sub.open .sub {
  max-height: 600px;
}

.dock-nav .sub a {
  font-size: 13px;
  padding: 7px 12px;
  color: var(--muted);
}

.dock-nav .sub a::before {
  content: "·";
  margin-right: 7px;
  color: var(--purple-glow);
}

/* 坞底信息 */
.dock-foot {
  padding: 18px 24px 22px;
  border-top: 1px solid var(--line-2);
  background: rgba(0, 0, 0, 0.25);
}

.dock-foot .hot-line {
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 2px;
  margin-bottom: 3px;
}

.dock-foot .hot-num {
  font-size: 20px;
  font-weight: 700;
  color: var(--purple-glow);
  font-family: var(--font-en);
  letter-spacing: 0.5px;
}

.dock-foot .dock-cta {
  display: block;
  margin-top: 13px;
  text-align: center;
  padding: 10px;
  border-radius: var(--r-pill);
  background: linear-gradient(135deg, var(--purple) 0%, var(--purple-deep) 100%);
  color: #fff;
  font-weight: 600;
  font-size: 13px;
  box-shadow: var(--glow-purple);
  transition: all 0.3s ease;
}

.dock-foot .dock-cta:hover {
  transform: translateY(-2px);
  color: #fff;
  box-shadow: 0 0 32px rgba(107, 75, 168, 0.55);
}

.dock-foot .dock-meta {
  margin-top: 12px;
  font-size: 11px;
  color: var(--muted);
  line-height: 1.7;
}

/* ---------- 右侧悬浮动作轨 ---------- */
.rail-right {
  position: fixed;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  width: var(--rail-w);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  padding: 14px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 90;
  box-shadow: var(--shadow-md);
}

.rail-right .rail-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--purple);
  box-shadow: 0 0 10px var(--purple);
  margin-bottom: 4px;
}

.rail-right .rail-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-2);
  background: var(--slate);
  transition: all 0.3s ease;
  position: relative;
}

.rail-right .rail-btn:hover {
  background: var(--purple);
  color: #fff;
  transform: scale(1.1);
}

.rail-right .rail-btn .tip {
  position: absolute;
  right: 52px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--slate-3);
  color: var(--text);
  font-size: 12px;
  padding: 5px 12px;
  border-radius: var(--r-sm);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.rail-right .rail-btn:hover .tip {
  opacity: 1;
}

.rail-right .rail-divider {
  width: 24px;
  height: 1px;
  background: var(--line-2);
  margin: 2px 0;
}

/* 进度指示 */
.rail-right .rail-progress {
  width: 2px;
  height: 60px;
  background: var(--slate-3);
  border-radius: 2px;
  overflow: hidden;
  position: relative;
}

.rail-right .rail-progress .bar {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  background: linear-gradient(180deg, var(--purple-glow), var(--purple));
  height: 0%;
  transition: height 0.1s linear;
}

/* 遮罩 */
.overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 95;
  backdrop-filter: blur(2px);
}

.overlay.show {
  display: block;
}

/* ---------- 主内容区 ---------- */
.main {
  margin-left: calc(var(--dock-w) + 44px);
  margin-right: calc(var(--rail-w) + 44px);
  min-width: 0;
  min-height: 100vh;
}

/* 移动端顶栏（默认隐藏） */
.mobile-bar {
  display: none;
}

.hamburger {
  display: none;
}

/* ==========================================================================
   通用组件
   ========================================================================== */

/* ---------- 容器 ---------- */
.container {
  width: 100%;
  max-width: var(--main-max);
  margin: 0 auto;
  padding: 0 36px;
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: var(--r-pill);
  font-size: 14px;
  font-weight: 600;
  transition: all 0.3s ease;
  cursor: pointer;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--purple) 0%, var(--purple-deep) 100%);
  color: #fff;
  box-shadow: var(--glow-purple);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 36px rgba(107, 75, 168, 0.6);
  color: #fff;
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--line);
}

.btn-ghost:hover {
  background: var(--purple);
  color: #fff;
  border-color: var(--purple);
}

.btn-light {
  background: var(--text);
  color: var(--ink);
}

.btn-light:hover {
  background: var(--purple-glow);
  color: var(--ink);
  transform: translateY(-2px);
}

/* ---------- 区块标题 ---------- */
.sec-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 54px;
}

.sec-head .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  letter-spacing: 4px;
  color: var(--purple-glow);
  text-transform: uppercase;
  font-family: var(--font-en);
  margin-bottom: 16px;
  padding: 5px 16px;
  background: rgba(107, 75, 168, 0.12);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
}

.sec-head .eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--purple-glow);
  box-shadow: 0 0 8px var(--purple-glow);
}

.sec-head h2 {
  font-size: 36px;
  color: var(--text);
  margin-bottom: 16px;
  letter-spacing: 1px;
}

.sec-head h2 .accent {
  color: var(--purple-glow);
  position: relative;
}

.sec-head h2 .accent::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 2px;
  width: 100%;
  height: 8px;
  background: rgba(107, 75, 168, 0.25);
  z-index: -1;
}

.sec-head p {
  color: var(--text-2);
  font-size: 15px;
}

.sec-head.left {
  text-align: left;
  margin-left: 0;
}

/* ---------- 通用 section ---------- */
.section {
  padding: 88px 0;
  position: relative;
}

.section.tight {
  padding: 56px 0;
}

.bg-coal {
  background: var(--coal);
}

.bg-slate {
  background: var(--slate);
}

.bg-purple {
  background: linear-gradient(135deg, var(--purple-deep) 0%, #2a1d44 100%);
  color: var(--text);
}

.bg-purple h2,
.bg-purple h3 {
  color: #fff;
}

.bg-purple p {
  color: rgba(233, 231, 242, 0.8);
}

/* 分隔线装饰 */
.divider-line {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line), transparent);
}

/* ---------- 面包屑 ---------- */
.breadcrumb {
  padding: 22px 0;
  font-size: 13px;
  color: var(--muted);
  border-bottom: 1px solid var(--line-2);
  margin-bottom: 10px;
}

.breadcrumb a {
  color: var(--muted);
}

.breadcrumb a:hover {
  color: var(--purple-glow);
}

.breadcrumb span {
  margin: 0 8px;
  color: var(--purple-soft);
}

.breadcrumb .current {
  color: var(--text);
  font-weight: 600;
}

/* ---------- 页面通用头部（非首页） ---------- */
.page-hero {
  padding: 76px 0 64px;
  background: linear-gradient(135deg, var(--coal) 0%, var(--slate) 100%);
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.page-hero::before {
  content: "";
  position: absolute;
  right: -80px;
  top: -80px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(107, 75, 168, 0.22) 0%, transparent 70%);
}

.page-hero::after {
  content: "";
  position: absolute;
  left: -60px;
  bottom: -100px;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(167, 139, 218, 0.12) 0%, transparent 70%);
}

.page-hero .container {
  position: relative;
  z-index: 2;
}

.page-hero .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  letter-spacing: 4px;
  color: var(--purple-glow);
  text-transform: uppercase;
  font-family: var(--font-en);
  margin-bottom: 16px;
  padding: 5px 16px;
  background: rgba(107, 75, 168, 0.12);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
}

.page-hero .eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--purple-glow);
}

.page-hero h1 {
  font-size: 44px;
  color: var(--text);
  letter-spacing: 1px;
  margin-bottom: 14px;
}

.page-hero p {
  color: var(--text-2);
  font-size: 16px;
  max-width: 620px;
}

/* ==========================================================================
   滚动渐入动画
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

.reveal.d1 { transition-delay: 0.1s; }
.reveal.d2 { transition-delay: 0.2s; }
.reveal.d3 { transition-delay: 0.3s; }
.reveal.d4 { transition-delay: 0.4s; }

/* ==========================================================================
   返回顶部
   ========================================================================== */
.back-top {
  position: fixed;
  right: 96px;
  bottom: 32px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--purple);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 80;
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px);
  transition: all 0.3s ease;
  box-shadow: var(--glow-purple);
}

.back-top.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.back-top:hover {
  background: var(--purple-glow);
  transform: translateY(-3px);
}

/* ==========================================================================
   页脚
   ========================================================================== */
.site-foot {
  background: linear-gradient(180deg, var(--coal) 0%, #050507 100%);
  color: var(--text-2);
  padding: 60px 0 0;
  border-top: 1px solid var(--line);
}

.foot-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 44px;
}

.foot-col h4 {
  color: var(--text);
  font-size: 15px;
  margin-bottom: 20px;
  letter-spacing: 1px;
  position: relative;
  padding-bottom: 12px;
}

.foot-col h4::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 28px;
  height: 2px;
  background: var(--purple);
}

.foot-col p {
  font-size: 13px;
  line-height: 1.9;
  color: var(--muted);
}

.foot-col ul li {
  margin-bottom: 10px;
}

.foot-col ul li a {
  color: var(--text-2);
  font-size: 13px;
  transition: all 0.25s ease;
  display: inline-block;
}

.foot-col ul li a:hover {
  color: var(--purple-glow);
  transform: translateX(4px);
}

.foot-contact li {
  display: flex;
  gap: 10px;
  margin-bottom: 13px;
  font-size: 13px;
  color: var(--text-2);
}

.foot-contact li svg {
  flex-shrink: 0;
  margin-top: 3px;
  color: var(--purple-glow);
}

.foot-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.foot-brand strong {
  color: var(--text);
  font-size: 18px;
  letter-spacing: 1px;
}

.foot-brand img {
  width: 38px;
  height: 38px;
}

.foot-bottom {
  border-top: 1px solid var(--line-2);
  padding: 22px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--muted);
  flex-wrap: wrap;
  gap: 12px;
}

.foot-bottom a {
  color: var(--muted);
}

.foot-bottom a:hover {
  color: var(--purple-glow);
}

.foot-links a {
  margin-left: 18px;
}

.foot-icp {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.foot-icp svg {
  color: var(--purple-soft);
}

/* ==========================================================================
   响应式
   ========================================================================== */
@media (max-width: 1180px) {
  :root {
    --dock-w: 210px;
  }
  .container {
    padding: 0 28px;
  }
  .sec-head h2 {
    font-size: 32px;
  }
}

@media (max-width: 980px) {
  /* 左坞改为抽屉 */
  .dock-left {
    transform: translateX(-120%);
    transition: transform 0.35s ease;
    box-shadow: var(--shadow-lg);
    top: 0;
    left: 0;
    bottom: 0;
    border-radius: 0 0 var(--r-lg) 0;
    width: 280px;
  }

  .dock-left.show {
    transform: translateX(0);
  }

  /* 右轨隐藏，关键动作进底栏 */
  .rail-right {
    display: none;
  }

  .main {
    margin-left: 0;
    margin-right: 0;
  }

  .mobile-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 90;
    padding: 13px 22px;
    background: rgba(10, 10, 12, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
  }

  .mobile-bar .m-logo {
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .mobile-bar .m-logo img {
    width: 32px;
    height: 32px;
  }

  .mobile-bar .m-logo strong {
    font-size: 16px;
    color: var(--text);
    letter-spacing: 1px;
  }

  .hamburger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    border-radius: var(--r-sm);
    background: var(--slate);
  }

  .hamburger span {
    width: 20px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: all 0.3s ease;
  }

  .hamburger.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }
  .hamburger.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .container {
    padding: 0 22px;
  }

  .section {
    padding: 54px 0;
  }

  .page-hero h1 {
    font-size: 32px;
  }

  .foot-grid {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }

  .back-top {
    right: 22px;
    bottom: 22px;
  }
}

@media (max-width: 560px) {
  .sec-head h2 {
    font-size: 25px;
  }
  .page-hero h1 {
    font-size: 26px;
  }
  .foot-grid {
    grid-template-columns: 1fr;
  }
  .foot-bottom {
    flex-direction: column;
    text-align: center;
  }
  .foot-links a {
    margin: 0 9px;
  }
}
