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

body {
  background: #f5f6fa;
  position: relative;
}

/* 🔥 蓝色渐变背景 */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  
  width: 420px;
  max-width: 100%;
  height: 380px;

  background: linear-gradient(
    180deg,
    rgba(78,107,255,1) 35%,
    rgba(90,130,255,0.95) 55%,
    rgba(100,150,255,0.7) 70%,
    rgba(120,170,255,0.4) 85%,
    rgba(140,180,255,0) 100%
  );

  border-bottom-left-radius: 30px;
  border-bottom-right-radius: 30px;

  z-index: -2;
}

/* 🔥 点阵 */
body::after {
  content: "";
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  
  width: 420px;
  max-width: 100%;
  height: 380px;

  background-image: radial-gradient(rgba(255,255,255,0.18) 0.8px, transparent 0.8px);
  background-size: 8px 8px;

  opacity: 0.35;

  mask-image: linear-gradient(
    to bottom,
    rgba(0,0,0,1) 0%,
    rgba(0,0,0,0.6) 60%,
    rgba(0,0,0,0) 100%
  );

  z-index: -1;
}

/* 容器 */
.container {
  max-width: 420px;
  margin: 0 auto;
  padding: 10px;
  position: relative;
  z-index: 1;
}

/* 🔥 顶部banner */
.top-banner {
  width: 100%;
  display: block;
}

/* PC缩小顶部 */
@media (min-width: 768px) {
  .top-banner {
    max-width: 420px;
    margin: 10px auto 0;
    border-radius: 12px;
  }
}

/* header */
.header {
  padding: 15px 0;
  text-align: center;
}

/* logo */
.title img {
  width: 160px;
  height: auto;
}

/* 卡片 */
.card {
  background: #fff;
  margin-top: 10px;
  padding: 15px;
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.06);
}

/* 标题 */
.card h3 {
  font-size: 16px;
  margin-bottom: 10px;
}

/* 列表 */
.item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-top: 1px solid #eee;
}

.item:first-of-type {
  border-top: none;
}

.left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.name {
  font-size: 14px;
}

.desc {
  font-size: 12px;
  color: #888;
}

/* 图标 */
.icon-img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

/* URL */
.url {
  font-size: 16px;
  color: #3a66ff;
  font-weight: 600;
}

/* 标签 */
.tag {
  margin-left: 1px;
  padding: 5px 8px;
  font-size: 11px;
  color: #fff;
  background: linear-gradient(135deg,#ff4d4f,#ff7a7a);
  border-radius: 999px;
}

/* 按钮 */
.btn {
  border: none;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  cursor: pointer;
}

.btn.orange {
  background: linear-gradient(135deg,#ff8c3a,#ffb347);
  color: #fff;
}

.btn.blue {
  background: linear-gradient(135deg,#4e6bff,#6fa3ff);
  color: #fff;
}

.btn.gray {
  background: #838080;
  color: #fff;
}

.btn.purple {
  background: linear-gradient(135deg,#6a5cff,#8b7bff);
  color: #fff;
  box-shadow: 0 4px 10px rgba(106,92,255,0.4);
}

/* 🔥 弹窗遮罩 */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 999;
  justify-content: center;
  align-items: center;
}

/* 弹窗 */
.modal-box {
  position: relative;
  width: 90%;
  max-width: 360px;
  background: #222;
  border-radius: 12px;
  padding: 15px;
  color: #fff;
}

/* 标题 */
.modal-header {
  font-size: 16px;
  margin-bottom: 10px;
}

/* 🔥 guide关闭按钮（已修复位置） */
.modal-close {
  position: absolute;

  top: -14px;      /* 🔥 向外突出 */
  right: -14px;

  width: 36px;
  height: 36px;

  background: #000;
  color: #fff;

  border-radius: 50%;

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 18px;
  font-weight: bold;

  cursor: pointer;
  z-index: 10;

  /* 🔥 阴影（关键） */
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}

/* 内容 */
.modal-content p {
  font-size: 12px;
  color: #aaa;
  margin: 8px 0;
}

/* 域名 */
.domain {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #333;
  padding: 8px;
  border-radius: 8px;
  margin-bottom: 6px;
}

.domain.main {
  background: #111;
  font-size: 18px;
  color: #ffb36b;
}

/* 复制按钮 */
.domain button {
  background: linear-gradient(135deg,#ff8c3a,#ffb347);
  border: none;
  padding: 4px 10px;
  border-radius: 10px;
  color: #fff;
  font-size: 12px;
}

/* 保存按钮 */
.save-btn {
  width: 100%;
  margin-top: 10px;
  padding: 10px;
  border-radius: 20px;
  border: none;
  background: linear-gradient(135deg,#ff8c3a,#ffb347);
  color: #fff;
}

/* 🔥 引导弹窗 */
.guide-mask {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  z-index: 999;
  justify-content: center;
  align-items: center;
}

.guide-box {
  position: relative;
  width: 90%;
  max-width: 420px;
}

.guide-img {
  width: 100%;
  display: block;
  border-radius: 12px;
}

.guide-box {
  position: relative;
  overflow: visible;   /* 🔥 关键：防止按钮被裁掉 */
}

.guide-close {
  position: absolute;

  top: -14px;     /* 🔥 浮出效果 */
  right: -14px;

  width: 36px;
  height: 36px;

  background: #000;
  color: #fff;

  border-radius: 50%;

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 18px;
  font-weight: bold;

  cursor: pointer;
  z-index: 10;

  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}