/* ============================================
   地址发布页 - Styles
   Mobile-first dark theme
   Design tokens extracted from Figma
   ============================================ */

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

body {
  font-family: "PingFang SC", -apple-system, BlinkMacSystemFont, "Segoe UI",
    "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial,
    sans-serif;
  background-color: #000;
  color: #fff;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ---- Top Buttons ---- */
.top-buttons {
  position: fixed;
  top: 16px;
  right: 16px;
  display: flex;
  gap: 12px;
  z-index: 50;
}

.top-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-decoration: none;
  color: #fff;
  transition: transform 0.2s;
  -webkit-tap-highlight-color: transparent;
}

.top-btn:active {
  transform: scale(0.95);
}

.top-btn-icon {
  width: 44px;
  height: 44px;
  background: #ff7a00;
  border-radius: 10px;
  padding: 10px;
}

.top-btn span {
  font-size: 11px;
  color: #c7c7c7;
  white-space: nowrap;
}

/* ---- Container ---- */
.container {
  width: 100%;
  max-width: 390px;
  padding: 16px;
  padding-top: 90px;
}

/* ---- Card Section (logo + content card) ---- */
.card-section {
  position: relative;
  padding-top: 36px; /* half of 72px logo */
}

.logo {
  width: 72px;
  height: 72px;
  border-radius: 12px;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

/* ---- Content Card ---- */
.content-card {
  background: rgba(28, 28, 28, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 16px;
  padding: 52px 16px 24px; /* 36px overlap + 16px gap */
  position: relative;
  z-index: 1;
}

.title {
  font-size: 24px;
  font-weight: 700;
  color: #fff;
  text-align: center;
  margin-bottom: 12px;
  line-height: 22px;
}

.subtitle {
  font-size: 14px;
  font-weight: 400;
  color: #c7c7c7;
  text-align: center;
  margin-bottom: 16px;
  line-height: 22px;
}

.highlight-text {
  font-size: 16px;
  font-weight: 500;
  color: #fff;
  text-align: center;
  margin-bottom: 20px;
  line-height: 22px;
}

/* ---- Link Rows ---- */
.link-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

.link-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(28, 28, 28, 0.9);
  border: 1px solid rgba(255, 122, 0, 0.5);
  border-radius: 28px;
  padding: 6px 20px;
  min-height: 56px;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, transform 0.1s;
  -webkit-tap-highlight-color: transparent;
}

.link-row:hover {
  background: rgba(40, 40, 40, 0.9);
  border-color: rgba(255, 122, 0, 0.8);
}

.link-row:active {
  transform: scale(0.98);
}

.link-title {
  font-size: 16px;
  font-weight: 500;
  color: #fff;
  text-align: center;
  line-height: 24px;
  margin-bottom: 4px;
}

.link-domain {
  font-size: 14px;
  font-weight: 400;
  color: #ff7a00;
  text-align: center;
  line-height: 20px;
}

/* ---- Download Button ---- */
.download-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  background: #ff7a00;
  border: none;
  border-radius: 28px;
  padding: 14px 20px;
  margin-bottom: 20px;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
  -webkit-tap-highlight-color: transparent;
}

.download-btn:hover {
  background: #e06e00;
}

.download-btn:active {
  transform: scale(0.98);
}

.download-icon {
  width: 22px;
  height: 22px;
  color: #fff;
}

.download-btn span {
  font-size: 16px;
  font-weight: 500;
  color: #fff;
  line-height: 22px;
}

/* ---- Info Section ---- */
.info-section {
  text-align: center;
}

.info-highlight {
  font-size: 14px;
  font-weight: 500;
  color: #ff7a00;
  margin-bottom: 12px;
  line-height: 22px;
}

.info-text {
  font-size: 14px;
  font-weight: 400;
  color: #c7c7c7;
  line-height: 2;
}

.text-orange {
  color: #ff7a00;
  font-weight: 500;
}

.domain-copy {
  cursor: pointer;
  border-bottom: 1px dashed #ff7a00;
  transition: opacity 0.2s;
  -webkit-tap-highlight-color: transparent;
}

.domain-copy:active {
  opacity: 0.7;
}

/* ---- Browser Tips ---- */
.browser-tips {
  background: rgba(28, 28, 28, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 16px;
  padding: 18px 16px;
  margin-top: 12px;
  text-align: center;
}

.browser-tips p {
  font-size: 14px;
  font-weight: 400;
  color: #c7c7c7;
  line-height: 22px;
}

/* ---- Toast ---- */
.toast {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #fff;
  padding: 10px 24px;
  border-radius: 20px;
  font-size: 14px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s, transform 0.3s;
  z-index: 100;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ---- Loading skeleton ---- */
.link-row.skeleton {
  background: rgba(255, 255, 255, 0.15);
  position: relative;
  overflow: hidden;
}

.link-row.skeleton::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.04),
    transparent
  );
  animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
  100% {
    left: 100%;
  }
}

/* ---- Responsive ---- */
@media (max-height: 740px) {
  .container {
    padding-top: 80px;
  }
  .top-btn-icon {
    width: 38px;
    height: 38px;
    padding: 8px;
  }
  .top-btn span {
    font-size: 10px;
  }
  .title {
    font-size: 20px;
    margin-bottom: 8px;
  }
  .subtitle {
    font-size: 13px;
    margin-bottom: 10px;
  }
  .highlight-text {
    font-size: 14px;
    margin-bottom: 14px;
  }
  .content-card {
    padding: 44px 14px 18px;
  }
  .card-section {
    padding-top: 30px;
  }
  .logo {
    width: 60px;
    height: 60px;
  }
  .link-list {
    gap: 8px;
    margin-bottom: 14px;
  }
  .link-row {
    min-height: 48px;
    padding: 4px 16px;
  }
  .link-title {
    font-size: 14px;
  }
  .link-domain {
    font-size: 12px;
  }
  .info-text {
    font-size: 13px;
    line-height: 1.8;
  }
  .browser-tips {
    padding: 14px 12px;
    margin-top: 8px;
  }
  .browser-tips p {
    font-size: 13px;
    line-height: 20px;
  }
}

@media (max-width: 390px) {
  .container {
    padding-left: 16px;
    padding-right: 16px;
    padding-bottom: 30px;
  }
}
