/* ============================================
   172号卡订单管理系统注册页面样式
   ============================================ */

/* Reset通用元素样式 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body, div, img, input, button, a, span, p, h1, h2, h3, ul, li {
  font-family: "Arial", "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", sans-serif;
}

/* 背景特效容器 */
.background-effects {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

/* 气泡样式和动画 */
.bubble {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(1px);
  animation: float linear infinite;
  will-change: transform, opacity;
}

@keyframes float {
  0% {
    transform: translateY(100vh) translateX(0) scale(1);
    opacity: 0;
  }
  10% {
    opacity: 0.6;
  }
  50% {
    opacity: 0.8;
  }
  90% {
    opacity: 0.5;
  }
  100% {
    transform: translateY(-100px) translateX(var(--drift, 0px)) scale(0.2);
    opacity: 0;
  }
}

/* 主体样式 */
body {
  background: linear-gradient(135deg, #ffd8cb 0%, #a2cfff 100%);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  padding: 20px 0 40px;
  color: #333;
  position: relative;
}

/* 主容器 */
.xz_cen {
  max-width: 640px;
  width: 95%;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 20px 35px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  z-index: 1;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.xz_cen:hover {
  box-shadow: 0 25px 45px rgba(0, 0, 0, 0.2);
}

/* 顶部图片 */
.xz_cen_img img {
  display: block;
  width: 100%;
  height: auto;
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
  object-fit: cover;
}

/* 内容区域 */
.xz_cen_ul {
  padding: 20px 5%;
}

/* 注册列表 */
.reg_lb {
  width: 100%;
  text-align: left;
  margin: 10px auto 20px;
}

/* 注册卡片 */
.reg_lb_li {
  width: 100%;
  overflow: hidden;
  margin-bottom: 30px;
  border-radius: 16px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: box-shadow 0.3s ease, transform 0.2s ease;
}

.reg_lb_li:hover {
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.15);
  transform: translateY(-2px);
}

/* 卡片标题 */
.reg_lb_li_tit {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 16px;
  color: #1a1a1a;
  padding-left: 12px;
  position: relative;
}

.reg_lb_li_tit::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 20px;
  background: linear-gradient(135deg, #3a8ee6, #6b9fff);
  border-radius: 2px;
}

/* 卡片链接区域 */
.reg_lb_li_cen {
  display: flex;
  align-items: center;
  padding: 25px 20px;
  background-color: #fafafa;
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  position: relative;
  transition: background-color 0.3s ease;
}

.reg_lb_li_cen:hover {
  background-color: #eef4ff;
}

/* 推荐标签 */
.reg_tuijian {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
}

.reg_tuijian img {
  border-radius: 12px 0 0 0;
}

/* 左侧图标区域 */
.reg_dt {
  width: 175px;
  text-align: center;
  margin-right: 20px;
  flex-shrink: 0;
}

.reg_dt img {
  width: 80px;
  display: block;
  margin: 0 auto;
  transition: transform 0.3s ease;
}

.reg_lb_li_cen:hover .reg_dt img {
  transform: scale(1.05);
}

.reg_dt span {
  display: block;
  font-size: 16px;
  font-weight: 700;
  margin-top: 15px;
  color: #0a3d91;
}

/* 右侧详情区域 */
.reg_dd {
  flex: 1;
}

.reg_dd ul li {
  display: flex;
  align-items: center;
  line-height: 1.5;
}

.reg_dd ul li:nth-child(2) {
  margin: 12px 0;
}

.reg_dd ul li img {
  width: 22px;
  height: 22px;
  margin-right: 12px;
  flex-shrink: 0;
}

.reg_span1 {
  font-weight: 600;
  margin-right: 12px;
  width: 85px;
  flex-shrink: 0;
  color: #555;
}

.reg_span2 {
  flex: 1;
  color: #666;
}

/* 友情提示框 */
.notice-box {
  width: 100%;
  margin: 0 auto 25px;
  padding: 14px 18px;
  background: linear-gradient(135deg, #fff9ef, #fff4e5);
  border-left: 4px solid #ffaa33;
  border-radius: 12px;
  color: #b85c00;
  font-size: 14px;
  line-height: 1.5;
  text-align: left;
  box-shadow: 0 2px 8px rgba(255, 170, 51, 0.2);
}

.notice-box span {
  font-weight: 700;
  color: #d97000;
}

/* 版权信息 */
.copyright {
  font-size: 12px;
  color: rgba(0, 0, 0, 0.6);
  text-align: center;
  margin-top: 20px;
  padding: 15px 0;
  width: 100%;
  z-index: 1;
}

.copyright p {
  line-height: 1.6;
}

.copyright a {
  text-decoration: none;
  color: inherit;
  transition: color 0.2s ease;
}

.copyright a:hover {
  color: #3a8ee6;
  text-decoration: underline;
}

/* ========== 移动端适配 ========== */
@media screen and (max-width: 640px) {
  body {
    padding: 12px 0 30px;
  }

  .xz_cen {
    width: 92%;
    border-radius: 16px;
  }

  .xz_cen_ul {
    padding: 16px 4%;
  }

  .reg_lb_li {
    margin-bottom: 20px;
  }

  .reg_lb_li_cen {
    display: block;
    padding: 20px 16px;
  }

  .reg_dt {
    width: auto;
    margin-bottom: 20px;
    margin-right: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
  }

  .reg_dt img {
    width: 60px;
  }

  .reg_dt span {
    margin-top: 0;
    font-size: 15px;
  }

  .reg_dd {
    width: 100%;
  }

  .reg_dd ul li {
    flex-wrap: wrap;
  }

  .reg_span1 {
    width: 80px;
    font-size: 13px;
  }

  .reg_span2 {
    font-size: 13px;
    width: calc(100% - 92px);
  }

  .reg_lb_li_tit {
    font-size: 17px;
    padding-left: 12px;
  }

  .notice-box {
    padding: 12px 14px;
    font-size: 13px;
    margin-bottom: 20px;
  }

  .copyright {
    font-size: 11px;
    margin-top: 15px;
  }

  /* 移动端禁止缩放 */
  body {
    touch-action: pan-y;
  }
}

/* ========== PC端优化 ========== */
@media (min-width: 641px) {
  html, body {
    height: auto;
    min-height: 100vh;
    overflow-x: hidden;
    overflow-y: auto;
  }

  body {
    padding: 30px 0 50px;
  }

  .xz_cen_ul {
    padding: 24px 6%;
  }

  .reg_lb_li {
    margin-bottom: 28px;
  }

  .copyright {
    margin-top: 30px;
  }

  .reg_dd ul li img {
    transition: transform 0.2s ease;
  }

  .reg_lb_li_cen:hover .reg_dd ul li img {
    transform: scale(1.1);
  }
}

/* 大屏幕优化 */
@media (min-width: 1200px) {
  .xz_cen {
    max-width: 700px;
  }
}

/* 辅助样式 - 无障碍 */
@media (prefers-reduced-motion: reduce) {
  .bubble,
  .reg_lb_li,
  .reg_lb_li_cen .reg_dt img,
  .xz_cen {
    transition: none;
    animation: none;
  }
  
  .bubble {
    display: none;
  }
}

/* 打印样式 */
@media print {
  .background-effects,
  .notice-box,
  .copyright a[href*="//"]:not([href^="https://haoka"]) {
    display: none;
  }
  
  body {
    background: white;
    padding: 0;
  }
  
  .xz_cen {
    box-shadow: none;
    max-width: 100%;
  }
}