/* 基础样式重置 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  /*font-family: 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;*/
}

/*自定义字体 */
  @font-face {
            font-display: swap;
            /* 给自定义字体取个名字，引用字体 */
            font-family: MyCustomFont;
            /* 字体文件的路径 */
            src: url('https://oss.imaae.com/filedb/storage/fonts/fonttype-1.woff2') format('woff2'),
                 url('/fonts/fonttype-1.woff2') format('woff2');/* 备选 */
            /* 可选的字体样式，如 normal 或 italic */
            font-style: normal;
            /* 可选的字体粗细，如 normal 或 bold */
            font-weight: normal;
    }

 body {
  font-family:MyCustomFont,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI","Helvetica Neue",Roboto,Arial,sans-serif;
}

/* 页面容器 */
.page-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  padding: 80px 20px; /* 减少移动端内边距 */
}
/* 顶部Logo区域（图片在上，文字在下） */
.top-logo {
  display: flex;
  flex-direction: column; /* 垂直排列 */
  align-items: center;    /* 水平居中 */
  margin-bottom: 55px;
  text-align: center;
}
.logo-icon {
  margin-bottom: 15px; /* 图标和文字之间的间距 */
}
.logo-icon img {
  color: #6c63ff;
  text-shadow: 0 3px 15px rgba(108, 99, 255, 0.3);
  background-color: rgba(255, 255, 255, 0.2);
  width: 390px;
  height: 120px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}
.logo-text h1 {
  font-size: 22px;
  font-weight: 700;
  color: #898989;
  letter-spacing: 0.5px;
  text-shadow: 0 5px 15px rgba(137, 137, 137, 0.5);
}
/* 卡片容器 */
.card-container {
  width: 100%;
  max-width: 540px;
  margin-bottom: 30px;
  position: relative;
  height: 335px;
}
/* 卡片翻转核心样式 */
.card-flip {
  perspective: 2000px;
  width: 100%;
  height: 100%;
}
.card-inner {
  position: absolute;
  width: 100%;
  height: 100%;
  transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
  transform-style: preserve-3d;
  border-radius: 22px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
  transform-origin: center;
}
/* 鼠标悬停时翻转 */
.card-flip:hover .card-inner {
  transform: rotateY(180deg);
}
/* 触摸设备支持（添加点击翻转） */
@media (max-width: 768px) {
  .card-inner.active {
    transform: rotateY(180deg);
  }
}
/* 卡片正面和背面公共样式 */
.card-front, .card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: 22px;
  padding: 23px; /* 统一内边距 */
  overflow: hidden;
}
/* 卡片正面样式 */
.card-front {
  background: linear-gradient(135deg, #fff 0%, #4a47a3 100%);
  color: white;
}
/* 卡片背面样式 */
.card-back {
  background: linear-gradient(135deg, #ff6b6b 0%, #ee5253 100%);
  color: white;
  transform: rotateY(180deg);
}
/* 卡片头部样式 */
.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
}
.bank-logo {
  display: flex;
  align-items: center;
  gap: 8px;
}
.bank-logo i {
  font-size: 32px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}
.bank-logo span {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 1px;
}
.card-type {
  background-color: rgba(255, 255, 255, 0.2);
  padding: 6px 18px;
  border-radius: 20px;
  font-weight: 500;
  font-size: 15px;
  backdrop-filter: blur(5px);
}
/* 卡号区域（带超链接） */
.card-number {
  display: flex;
  width: 360px;
  justify-content: space-between;
  margin-bottom: 25px;
  font-size: 16px;
  letter-spacing: 3px;
  font-weight: 400;
}
.number-link {
  color: white;
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
}
.number-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 1px;
  bottom: -2px;
  left: 0;
  background-color: rgba(255, 255, 255, 0.7);
  transition: width 0.3s ease;
}
.number-link:hover::after {
  width: 100%;
}
/* 卡片信息区域 */
.card-info {
  display: flex;
  width: 280px;
  justify-content: space-between;
  margin-bottom: 15px;
}
.card-holder p:first-child,
.card-expiry p:first-child {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 3px;
}
.name, .expiry {
  font-size: 14px;
  font-weight: 500;
}
/* 二维码区域 */
.qrcode-section {
  display: flex;
  justify-content: space-around;
  margin-bottom: 15px;
}
.qrcode-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}
.qrcode-box i {
  font-size: 40px;
  background-color: white;
  color: #6c63ff;
  width: 96px;
  height: 96px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}
.qrcode-box span {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 400;
}
/* 正面底部小字信息 */
.card-footer {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.8);
  padding-top: 5px;
  border-top: 1px dashed rgba(255, 255, 255, 0.3);
}
/* 背面磁条样式 */
.magnetic-stripe {
  width: 100%;
  height: 40px;
  background: linear-gradient(90deg, #333 0%, #666 50%, #333 100%);
  margin-top: 10px;
  margin-bottom: 30px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}
/* CVV区域样式 */
.cvv-section {
  margin-bottom: 20px;
}
.cvv-box {
  width: 100%;
  height: 35px;
  background-color: rgba(255, 255, 255, 0.9);
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 0 20px;
  margin-bottom: 5px;
  border-radius: 4px;
}
.cvv-box span {
  color: #333;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 2px;
}
.cvv-section p {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.8);
}
/* 可修改信息区域 */
.editable-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 15px;
}
.info-item {
  font-size: 13px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.info-item1 {
  font-size: 13px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.info-item span:first-child {
  color: rgba(255, 255, 255, 0.8);
}
.info-item span:last-child {
  font-weight: 500;
}
/* 安全提示 */
.security-tips {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.8;
  padding-top: 10px;
  border-top: 1px dashed rgba(255, 255, 255, 0.3);
}
/* 信息提示样式 */
.info-notice {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #555;
  font-size: 14px;
  padding: 12px 20px;
  background-color: rgba(255, 255, 255, 0.8);
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  margin-bottom: 30px;
  max-width: 540px;
  width: 100%;
  text-align: center;
}
.info-notice i {
  color: #6c63ff;
  font-size: 16px;
}
/* 页面底部版权信息 */
.page-footer {
  text-align: center;
  color: #555;
  font-size: 13px;
  line-height: 1.6;
  margin-top: auto;
  padding-top: 20px;
}
.page-footer p:last-child {
  margin-top: 5px;
  color: #777;
  font-size: 12px;
}
/* 移动设备专用优化 */
@media (max-width: 480px) {
  .card-container {
    height: 290px; /* 调整卡片高度 */
  }
  .card-number {
    display: none;  /* 移动端不显示*/
  }
  .info-item1{
    display: none; /* 移动端不显示*/
  }
  .logo-text h1 {
    font-size: 20px;
  }
  .editable-info {
    grid-template-columns: 1fr 1fr; /* 改为单列布局 */
    gap: 8px;
  }
  .card-header, .card-number, .card-info {
    margin-bottom: 20px;
  }
  .qrcode-section {
    margin-bottom: 10px;
  }
  /* 调整文字间距和大小 */
  .security-tips p {
    margin-bottom: 3px;
  }
}
/* 平板设备优化 */
@media (min-width: 481px) and (max-width: 768px) {
  .card-container {
    height: 320px;
  }
}