/* ============================================================
   共享设计令牌 —— 三个版本共用一套变量，改这里能统一微调
   ============================================================ */
:root {
  /* 品牌 */
  --brand: #ff5a3c;
  --brand-soft: rgba(255, 90, 60, .12);
  --accent: #2b6cff;

  /* 中性色阶 */
  --ink: #12131a;
  --ink-2: #2a2d3a;
  --ink-3: #5b6072;
  --ink-4: #8b91a3;
  --line: #e6e8ee;
  --line-2: #f0f2f6;
  --bg: #ffffff;
  --bg-2: #f7f8fa;
  --bg-3: #fbfbfd;

  /* 尺寸 */
  --radius: 14px;
  --radius-sm: 9px;
  --radius-lg: 22px;
  --maxw: 1560px;

  --shadow-sm: 0 1px 2px rgba(18, 19, 26, .06);
  --shadow: 0 4px 16px rgba(18, 19, 26, .08);
  --shadow-lg: 0 18px 48px rgba(18, 19, 26, .14);

  --ease: cubic-bezier(.4, 0, .2, 1);
}

/* ============================================================
   基础重置
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; border: none; background: none; }
input { font: inherit; color: inherit; }

::selection { background: var(--brand); color: #fff; }

/* 滚动条 */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg-2); }
::-webkit-scrollbar-thumb { background: #cfd3dd; border-radius: 6px; border: 2px solid var(--bg-2); }
::-webkit-scrollbar-thumb:hover { background: #b3b9c8; }

/* ============================================================
   通用工具类
   ============================================================ */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }
.hidden { display: none !important; }

.tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.5;
  background: var(--bg-2);
  color: var(--ink-3);
  border: 1px solid var(--line);
}
.tag-brand { background: var(--brand-soft); color: var(--brand); border-color: transparent; }
.tag-dot::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: currentColor;
}

/* 按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 600;
  transition: all .2s var(--ease);
  white-space: nowrap;
}
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: var(--ink-2); transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-brand { background: var(--brand); color: #fff; }
.btn-brand:hover { filter: brightness(1.06); transform: translateY(-1px); box-shadow: 0 8px 20px rgba(255,90,60,.3); }
.btn-ghost { border: 1px solid var(--line); background: var(--bg); color: var(--ink-2); }
.btn-ghost:hover { border-color: var(--ink-3); background: var(--bg-2); }
.btn-sm { padding: 7px 14px; font-size: 13px; }

/* ============================================================
   网盘分享卡片 —— 三个版本的核心组件，借鉴 nsthwj.cn 的分享形式
   ============================================================ */
.netdisk {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #f2f6ff, #f7f9ff);
  border: 1px solid #e2e9fb;
}
.netdisk-logo {
  width: 40px; height: 40px;
  flex: 0 0 40px;
  border-radius: 11px;
  display: grid; place-items: center;
  font-weight: 700; font-size: 17px;
  color: #fff;
  background: linear-gradient(135deg, #3b7dff, #2b6cff);
  box-shadow: 0 4px 12px rgba(43,108,255,.28);
}
.netdisk-body { flex: 1; min-width: 0; }
.netdisk-title { font-size: 13px; font-weight: 600; color: var(--ink); }
.netdisk-meta { font-size: 12px; color: var(--ink-3); margin-top: 1px; }
.netdisk-actions { display: flex; align-items: center; gap: 8px; }

.copy-field {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid #dde5f8;
  font-size: 12px;
  color: var(--ink-3);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  cursor: pointer;
  transition: all .18s var(--ease);
}
.copy-field:hover { border-color: var(--accent); color: var(--accent); }
.copy-field b { color: var(--ink); font-weight: 700; letter-spacing: .06em; }
.copy-field.copied { border-color: #16a34a; color: #16a34a; background: #f0fdf4; }

/* 复制提示 */
.toast {
  position: fixed;
  left: 50%;
  bottom: 40px;
  transform: translate(-50%, 20px);
  padding: 11px 20px;
  border-radius: 100px;
  background: var(--ink);
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  pointer-events: none;
  transition: all .28s var(--ease);
  z-index: 9999;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
