/* ============================================================
 * 资源页（参考夸克资源获取页）
 * ============================================================ */
* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  background: #f5f6f8;
  color: #333;
  min-height: 100dvh;
  padding-bottom: calc(24px + env(safe-area-inset-bottom));
  -webkit-font-smoothing: antialiased;
}

/* ---------- 顶部导航 ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  padding-top: calc(12px + env(safe-area-inset-top));
  background: #fff;
  border-bottom: 1px solid #f0f0f0;
}

.header-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #333;
  background: none;
  border: none;
  font-size: 22px;
  cursor: pointer;
}

.header-center { text-align: center; }

.header-title {
  font-size: 17px;
  font-weight: 600;
  color: #1a1a1a;
  line-height: 1.3;
}

.header-url {
  display: block;
  margin-top: 2px;
  font-size: 11px;
  font-weight: 400;
  color: #999;
}

/* ---------- 主体 ---------- */
.main {
  max-width: 480px;
  margin: 0 auto;
  padding: 40px 16px;
}

.logo-area {
  text-align: center;
  margin-bottom: 32px;
  padding: 24px 0;
}

.logo-wrap {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.logo-img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  border-radius: 12px;
}

.logo-text {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: 2px;
  color: #1e88e5;
}

.share-name {
  margin-top: 12px;
  font-size: 12px;
  color: #9aa0a6;
  line-height: 1.5;
  word-break: break-all;
}

/* ---------- 卡片 ---------- */
.card {
  background: #fff;
  border-radius: 12px;
  padding: 24px 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .04);
  margin-bottom: 16px;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  font-size: 16px;
  font-weight: 600;
  color: #1a1a1a;
}

.section-title::before {
  content: "";
  width: 4px;
  height: 14px;
  background: #1e88e5;
  border-radius: 2px;
}

.section-desc {
  margin-bottom: 20px;
  font-size: 13px;
  line-height: 1.6;
  color: #666;
}

/* ---------- 主按钮 ---------- */
.btn-get {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  max-width: 280px;
  margin: 24px auto;
  padding: 14px 24px;
  border-radius: 30px;
  background: linear-gradient(180deg, #42a5f5 0%, #1e88e5 100%);
  box-shadow: 0 4px 12px rgba(30, 136, 229, .35);
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  text-align: center;
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease;
}

.btn-get:active { transform: scale(.97); box-shadow: 0 2px 8px rgba(30, 136, 229, .4); }

/* ---------- 链接卡片 ---------- */
.url-box {
  padding: 14px 16px;
  margin-bottom: 16px;
  border: 1px solid #ececec;
  border-radius: 8px;
  background: #f5f6f8;
  color: #1e88e5;
  font-size: 14px;
  line-height: 1.5;
  word-break: break-all;
  user-select: all;
  -webkit-user-select: all;
}

.btn-copy-wrap { text-align: center; margin-bottom: 20px; }

.btn-copy {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 24px;
  border: 1px solid #e0e0e0;
  border-radius: 20px;
  background: #fff;
  color: #333;
  font-size: 14px;
  font-family: inherit;
  cursor: pointer;
  transition: background .2s;
}

.btn-copy:active { background: #f5f5f5; }

.tip {
  padding: 0 8px;
  font-size: 13px;
  line-height: 1.6;
  color: #999;
  text-align: center;
}

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: 8px;
  background: rgba(0, 0, 0, .85);
  color: #fff;
  font-size: 14px;
  opacity: 0;
  transform: translate(-50%, -50%) scale(.9);
  transition: opacity .25s, transform .25s;
  pointer-events: none;
}

.toast.show { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.toast svg { flex: none; }

/* ---------- 桌面 ---------- */
@media (min-width: 720px) {
  .main { padding-top: 56px; }
  .logo-img { width: 56px; height: 56px; }
}
