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

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

body {
  font-family: "Noto Sans SC", "PingFang SC", -apple-system, BlinkMacSystemFont, "Segoe UI",
    "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial,
    sans-serif;
  background-color: #F6F6F6;
  background-image: url('../assets/background.webp');
  background-position: top center;
  background-repeat: no-repeat;
  background-size: 100% auto;
  background-attachment: fixed;
  color: #000;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Gradient overlay - no longer needed as it's included in the background image */
.bg-gradient-overlay {
  display: none;
}

/* ---- Status Bar (iOS style) ---- */
.status-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 21px;
  z-index: 100;
  max-width: 390px;
  margin: 0 auto;
}

.status-bar-time {
  font-size: 14px;
  font-weight: 400;
  color: #FFFFFF;
  letter-spacing: -0.28px;
}

.status-bar-icons {
  display: flex;
  align-items: center;
  gap: 5px;
}

.status-bar-icons svg {
  width: auto;
  height: 11px;
  fill: #000000;
}

/* ---- Top Buttons ---- */
.top-buttons {
  position: fixed;
  top: 60px;
  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: #8F4F27;
  transition: transform 0.2s;
  -webkit-tap-highlight-color: transparent;
}

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

.top-btn-icon {
  width: 24px;
  height: 24px;
  display: block;
}

.top-btn span {
  font-size: 10px;
  font-weight: 400;
  color: #8F4F27;
  white-space: nowrap;
  line-height: 16px;
}

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

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

.logo {
  width: 72px;
  height: 72px;
  border-radius: 12px;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  background-image: url('../assets/logo-icon.webp');
  background-size: cover;
  background-position: center;
}

/* ---- Content Card ---- */
.content-card {
  background-image: url('../assets/card-decoration.webp');
  background-size: cover;
  background-position: center;
  border: 3px solid #FFFFFF;
  border-radius: 16px;
  padding: 40px 12px 5px;
  position: relative;
  z-index: 1;
  box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.08);
}

.logo-text {
  width: 155px;
  height: 45px;
  margin: 16px auto 16px;
  background-image: url('../assets/logo-text.webp');
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 1;
  position: relative;
}

.content-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, rgba(255, 172, 77, 0.70) 0.02%, rgba(255, 249, 230, 0.70) 71.79%);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-radius: 16px;
  pointer-events: none;
  z-index: 0;
}

.content-card > * {
  position: relative;
  z-index: 1;
}

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

.subtitle {
  font-size: 14px;
  font-weight: 500;
  color: #E48C34;
  text-align: center;
  margin: 0 0 16px 0;
  padding: 0 20px;
  line-height: 22px;
  position: relative;
  z-index: 1;
}

.highlight-text {
  font-size: 16px;
  font-weight: 500;
  color: #BD4100;
  text-align: center;
  margin: 0 0 24px 0;
  line-height: 22px;
  position: relative;
  z-index: 1;
}

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

.link-row {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #FFFFFF;
  border: 3px solid #FFFFFF;
  border-radius: 28px;
  padding: 0 12px;
  height: 56px;
  position: relative;
  -webkit-tap-highlight-color: transparent;
  text-decoration: none;
  transition: transform 0.2s, opacity 0.2s;
  cursor: pointer;
}

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

.route-label {
  font-size: 16px;
  font-weight: 500;
  color: #000000;
  line-height: 22px;
  text-align: center;
}

/* ---- Copy Instruction ---- */
.copy-instruction {
  font-size: 14px;
  font-weight: 600;
  color: #BD4100;
  text-align: center;
  margin-top: 16px;
  margin-bottom: 8px;
  line-height: 22px;
}

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

.info-highlight {
  font-size: 14px;
  font-weight: 400;
  color: #E48C34;
  margin-bottom: 8px;
  line-height: 22px;
}

.info-text {
  font-size: 14px;
  font-weight: 500;
  color: #E48C34;
  line-height: 22px;
  margin-bottom: 8px;
}

.info-text:last-child {
  margin-bottom: 0;
}

.text-orange {
  color: #FF7700;
  font-weight: 400;
}

.domain-copy {
  cursor: pointer;
  color: #FF7700;
  transition: opacity 0.2s;
  -webkit-tap-highlight-color: transparent;
}

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

/* ---- Browser Tips ---- */
.browser-tips {
  background: linear-gradient(136deg, rgba(255, 254, 195, 1) 8%, rgba(255, 215, 223, 1) 100%);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 3px solid #FFFFFF;
  border-radius: 16px;
  padding: 18px 16px;
  margin-top: 12px;
  text-align: center;
  box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.08);
}

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

/* ---- Toast ---- */
.toast {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: rgba(0, 0, 0, 0.75);
  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: #FFFFFF;
  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, 172, 77, 0.1),
    transparent
  );
  animation: shimmer 1.5s infinite;
}

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

/* ---- Responsive ---- */
@media (max-height: 740px) {
  .container {
    padding-top: 120px;
  }
  .top-buttons {
    top: 50px;
  }
  .title {
    font-size: 20px;
    margin-bottom: 8px;
    margin-top: 48px;
  }
  .subtitle {
    font-size: 13px;
    margin-bottom: 10px;
  }
  .highlight-text {
    font-size: 14px;
    margin-bottom: 14px;
  }
  .content-card {
    padding: 44px 10px 18px;
  }
  .card-section {
    padding-top: 30px;
  }
  .logo {
    width: 60px;
    height: 60px;
  }
  .logo-text {
    width: 130px;
    height: 38px;
    margin: 8px auto 6px;
  }
  .link-list {
    gap: 6px;
    margin-bottom: 14px;
  }
  .link-row {
    height: 48px;
    padding: 0 10px;
  }
  .route-label {
    font-size: 14px;
  }
  .info-text {
    font-size: 13px;
    line-height: 20px;
  }
  .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;
  }
}
