/* 淩设计官网样式 */
:root {
  --pink: #f49bab;
  --mint: #9adbc5;
  --dark: #55494e;
  --bg: #faf7f8;
  --card: #ffffff;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--dark);
  line-height: 1.7;
}

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.wrap.narrow { max-width: 760px; }

/* 导航 */
.nav {
  position: sticky; top: 0; z-index: 10;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid #f3e3e6;
}
.nav .wrap { display: flex; justify-content: space-between; align-items: center; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--dark); font-weight: 600; font-size: 18px; }
.brand img { width: 36px; height: 36px; border-radius: 50%; }
.links a { margin-left: 22px; text-decoration: none; color: #8a7a80; font-size: 15px; }
.links a:hover { color: var(--pink); }

/* 首屏 */
.hero {
  background: linear-gradient(135deg, #fff0f2 0%, #eafaf3 100%);
  padding: 72px 0;
}
.hero-grid { display: grid; grid-template-columns: 1.2fr 1fr; align-items: center; gap: 32px; }
.hero-text h1 { font-size: 44px; line-height: 1.25; font-weight: 700; }
.hero-text .sub { margin: 18px 0 28px; color: #7d6f74; font-size: 17px; }
.btn {
  display: inline-block; padding: 12px 32px; border-radius: 999px;
  background: linear-gradient(90deg, var(--pink), #f7b7c4);
  color: #fff; text-decoration: none; font-size: 16px; font-weight: 600;
  box-shadow: 0 6px 18px rgba(244,155,171,.4);
  transition: transform .15s;
}
.btn:hover { transform: translateY(-2px); }
.hero-img img {
  width: 100%; max-width: 380px; border-radius: 28px;
  box-shadow: 0 16px 40px rgba(154,219,197,.35);
}

/* 通用区块 */
.section { padding: 64px 0; }
.section.alt { background: #fff; }
h2 { text-align: center; font-size: 30px; margin-bottom: 8px; }
.sec-sub { text-align: center; color: #a5949a; margin-bottom: 36px; }

/* 卡片 */
.cards, .contact-cards {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 20px;
}
.card {
  background: var(--card); border-radius: 18px; padding: 28px 24px;
  box-shadow: 0 4px 16px rgba(85,73,78,.06);
  transition: transform .15s, box-shadow .15s;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 10px 24px rgba(85,73,78,.1); }
.card-ico { font-size: 34px; margin-bottom: 12px; }
.card h3 { font-size: 18px; margin-bottom: 8px; }
.card p { font-size: 14.5px; color: #8a7a80; }
.card-qr .qr { width: 180px; border-radius: 12px; margin: 8px 0; display: block; }

/* 步骤 */
.steps { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.step {
  background: var(--card); border-radius: 16px; padding: 22px 26px; text-align: center;
  box-shadow: 0 4px 14px rgba(85,73,78,.06); min-width: 130px;
}
.step span {
  display: inline-block; width: 34px; height: 34px; line-height: 34px;
  background: var(--mint); color: #fff; border-radius: 50%; font-weight: 700; margin-bottom: 8px;
}
.step p { font-size: 15px; }
.arrow { color: var(--pink); font-size: 22px; font-weight: 700; }

/* FAQ */
details {
  background: var(--card); border-radius: 14px; padding: 18px 22px;
  margin-bottom: 14px; box-shadow: 0 3px 10px rgba(85,73,78,.05);
}
summary { font-weight: 600; cursor: pointer; font-size: 16px; }
details p { margin-top: 10px; color: #8a7a80; font-size: 15px; }

/* 页脚 */
.footer {
  background: var(--dark); color: #cfc4c8; text-align: center;
  padding: 30px 0; font-size: 13.5px; margin-top: 40px;
}
.footer a { color: #f0c9d1; text-decoration: none; }
.footer a:hover { text-decoration: underline; }
.footer .sep { margin: 0 10px; }

/* 移动端 */
@media (max-width: 720px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-text h1 { font-size: 34px; }
  .hero-img img { margin: 0 auto; }
  .links { display: none; }
  .arrow { display: none; }
  .steps { flex-direction: column; }
  /* 页脚备案信息：手机端缩字号保持一行 */
  .footer .beian { font-size: 11px; white-space: nowrap; }
  .footer .beian .sep { margin: 0 5px; }
  .footer .beian img { height: 12px; vertical-align: -2px; }
  @media (max-width: 380px) {
    .footer .beian { font-size: 10.5px; }
  }
}

/* 联系客服按钮与弹窗 */
.contact-btn { border: none; cursor: pointer; font-family: inherit; }
.modal-mask {
  display: none; position: fixed; inset: 0; z-index: 100;
  background: rgba(85,73,78,.5); backdrop-filter: blur(3px);
  align-items: center; justify-content: center;
}
.modal {
  position: relative; background: #fff; border-radius: 20px;
  padding: 32px 36px; width: min(420px, 90vw); text-align: center;
  box-shadow: 0 20px 60px rgba(0,0,0,.25);
}
.modal h3 { margin-bottom: 20px; }
.modal-close {
  position: absolute; top: 12px; right: 16px; border: none; background: none;
  font-size: 26px; color: #b9adb2; cursor: pointer; line-height: 1;
}
.channel-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.channel {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 16px 10px; border-radius: 14px; background: var(--bg);
  text-decoration: none; color: var(--dark); font-size: 15px; font-weight: 600;
  transition: transform .15s, background .15s;
}
.channel:hover { transform: translateY(-2px); background: #fff0f2; }
.ch-ico { font-size: 26px; }
.ch-qr { width: 150px; border-radius: 10px; display: none; }
.ch-tip { font-size: 12px; color: #a5949a; font-weight: 400; }
#ch-wechat .ch-qr { display: block; }  /* 微信卡直接展示二维码 */
.channel-wide { grid-column: 1 / -1; flex-direction: row; padding: 14px 10px; }

/* 右侧悬浮栏（默认滑出屏幕隐藏，鼠标靠近右缘滑入） */
.float-bar {
  position: fixed; right: 0; bottom: 88px; z-index: 90;
  display: flex; flex-direction: column; gap: 10px;
  padding-right: 18px;               /* 悬停热区一直贴到屏幕右边缘 */
}
/* 右缘提示条：平时露出一个小粉点，提示这里有东西 */
.float-bar::after {
  content: ''; position: absolute; right: 7px; top: 50%;
  width: 5px; height: 46px; border-radius: 4px;
  transform: translateY(-50%);
  background: #f49bab; opacity: .35;
  transition: opacity .25s;
  pointer-events: none;
}
.float-bar:hover::after { opacity: 0; }

.float-btn {
  width: 48px; height: 48px; border: none; border-radius: 50%;
  background: var(--card); color: var(--dark);
  box-shadow: 0 4px 14px rgba(85,73,78,.15);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; text-decoration: none; position: relative;
  /* 默认滑到屏幕外并透明 */
  transform: translateX(140%); opacity: 0; pointer-events: none;
  transition: transform .3s cubic-bezier(.25,.9,.3,1.2), opacity .25s, box-shadow .15s, background .15s;
}
/* 依次滑入的错落感 */
.float-bar .float-btn:nth-child(1) { transition-delay: .02s; }
.float-bar .float-btn:nth-child(2) { transition-delay: .06s; }
.float-bar .float-btn:nth-child(3) { transition-delay: .10s; }
.float-bar .float-btn:nth-child(4) { transition-delay: .14s; }

/* 鼠标进入右缘热区：整栏滑入 */
.float-bar:hover .float-btn { transform: translateX(0); opacity: 1; pointer-events: auto; }
.float-bar:hover .float-btn:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(244,155,171,.35); background: #fff0f2; }
.float-ico { font-size: 22px; line-height: 1; }
#floatTop .float-ico { font-size: 20px; font-weight: 700; }
/* 回顶部按钮：滚动超过 300px 才出现（JS 控制 .shown） */
#floatTop { display: none; }
#floatTop.shown { display: flex; }

/* 悬停按钮名称提示（显示在按钮左侧） */
.float-btn::before {
  content: attr(data-tip);
  position: absolute; right: 58px; top: 50%; transform: translateY(-50%) translateX(6px);
  padding: 5px 10px; border-radius: 8px; white-space: nowrap;
  background: rgba(85,73,78,.92); color: #fff;
  font-size: 12px; line-height: 1; letter-spacing: 1px;
  opacity: 0; pointer-events: none;
  transition: opacity .15s, transform .15s;
}
.float-btn:hover::before { opacity: 1; transform: translateY(-50%) translateX(0); }
/* 微信按钮弹的是二维码卡片，不再叠加名称提示 */
.float-btn.hover-show::before { display: none; }

/* 悬停弹出微信二维码 */
.float-btn .hover-pop {
  display: none; position: absolute; right: 60px; top: 50%;
  transform: translateY(-50%); width: 170px; padding: 10px;
  background: var(--card); border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,.18);
  font-size: 12px; color: #a5949a; text-align: center;
}
.float-btn .hover-pop img { width: 100%; border-radius: 8px; display: block; }
.float-btn .hover-pop i { display: block; margin-top: 6px; font-style: normal; }
.float-btn:hover .hover-pop { display: block; }

/* 移动端：触屏没有 hover，悬浮栏常驻显示、不显示名称提示 */
@media (hover: none), (max-width: 720px) {
  .float-bar { bottom: 72px; gap: 8px; padding-right: 12px; }
  .float-bar::after { display: none; }
  .float-btn { width: 42px; height: 42px; transform: none; opacity: 1; pointer-events: auto; transition: box-shadow .15s, background .15s; }
  .float-ico { font-size: 19px; }
  .float-btn::before { display: none; }   /* 手机上不弹名称提示 */
}

