/* Honey V 设计系统 —— 清爽、温和的蜂蜜色风格 */

:root {
  --bg: #fffbf2;
  --bg-soft: #fff6e3;
  --card: #ffffff;
  --ink: #3d3428;
  --ink-soft: #7a6c56;
  --ink-faint: #a89a82;
  --line: #f2e7d0;
  --honey: #f5a623;
  --honey-deep: #e08a00;
  --honey-soft: #fff3dc;
  --green: #58a96b;
  --green-soft: #e8f6ec;
  --red: #e26d5a;
  --red-soft: #fdeeea;
  --blue: #5b9bd5;
  --blue-soft: #eaf3fb;
  --amber-soft: #fff1cd;
  --radius: 16px;
  --shadow: 0 6px 24px rgba(214, 158, 63, 0.10);
  --shadow-lift: 0 10px 30px rgba(214, 158, 63, 0.18);
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Segoe UI", sans-serif;
  background:
    radial-gradient(1200px 500px at 85% -100px, rgba(255, 214, 130, 0.25), transparent 60%),
    radial-gradient(900px 400px at -100px 30%, rgba(255, 236, 190, 0.35), transparent 55%),
    var(--bg);
  color: var(--ink);
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--honey-deep); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---------- 头部 ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 253, 247, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  max-width: 1080px; margin: 0 auto; padding: 10px 20px;
  display: flex; align-items: center; gap: 18px;
}
.logo {
  display: flex; align-items: center; gap: 8px;
  font-weight: 800; font-size: 20px; color: var(--ink); letter-spacing: 0.5px;
}
.logo:hover { text-decoration: none; }
.logo .bee { font-size: 24px; }
.main-nav { display: flex; gap: 4px; flex: 1; flex-wrap: wrap; }
.main-nav a {
  padding: 7px 14px; border-radius: 999px; color: var(--ink-soft); font-weight: 500;
}
.main-nav a:hover { background: var(--honey-soft); color: var(--honey-deep); text-decoration: none; }
.main-nav a.active { background: var(--honey-soft); color: var(--honey-deep); font-weight: 700; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.header-user { color: var(--ink-soft); font-size: 14px; max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- 布局 ---------- */

.container { max-width: 1080px; margin: 0 auto; padding: 24px 20px 80px; }
.section { margin-top: 36px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.section-title { font-size: 20px; font-weight: 800; display: flex; align-items: center; gap: 8px; margin: 0; }
.section-title .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--honey); box-shadow: 0 0 0 4px var(--honey-soft); }
.section-sub { color: var(--ink-faint); font-size: 13px; }

/* ---------- 按钮 / 表单 ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border: none; cursor: pointer; font-size: 15px; font-weight: 600;
  padding: 10px 20px; border-radius: 12px;
  background: linear-gradient(135deg, #ffc75e, var(--honey));
  color: #5c3d00; transition: transform 0.12s, box-shadow 0.12s, filter 0.12s;
  font-family: inherit;
}
.btn:hover { box-shadow: var(--shadow-lift); transform: translateY(-1px); text-decoration: none; }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none; box-shadow: none; }
.btn.ghost {
  background: var(--card); color: var(--ink-soft);
  border: 1.5px solid var(--line);
}
.btn.ghost:hover { border-color: var(--honey); color: var(--honey-deep); }
.btn.danger { background: var(--red-soft); color: var(--red); }
.btn.small { padding: 6px 12px; font-size: 13px; border-radius: 10px; }
.btn.block { width: 100%; }

label { display: block; font-size: 14px; font-weight: 600; color: var(--ink-soft); margin: 16px 0 6px; }
label .optional { color: var(--ink-faint); font-weight: 400; font-size: 12px; }
input[type="text"], input[type="password"], input[type="date"], input[type="number"], textarea, select {
  width: 100%; padding: 11px 14px; font-size: 15px; font-family: inherit;
  border: 1.5px solid var(--line); border-radius: 12px; background: var(--card);
  color: var(--ink); outline: none; transition: border-color 0.15s, box-shadow 0.15s;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--honey); box-shadow: 0 0 0 3px rgba(245, 166, 35, 0.15);
}
textarea { resize: vertical; min-height: 90px; }
.hint { color: var(--ink-faint); font-size: 12.5px; margin-top: 5px; }

/* ---------- 卡片 ---------- */

.card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px;
}
.card + .card { margin-top: 16px; }

/* ---------- VUP 卡片 ---------- */

.vup-grid {
  display: grid; gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(232px, 1fr));
}
.vup-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px; box-shadow: var(--shadow); transition: transform 0.15s, box-shadow 0.15s;
  display: flex; flex-direction: column; gap: 10px; color: var(--ink); position: relative;
}
.vup-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); text-decoration: none; }
.vup-card-top { display: flex; gap: 12px; align-items: center; }
.vup-avatar {
  width: 58px; height: 58px; border-radius: 50%; object-fit: cover; flex: none;
  border: 2px solid var(--honey-soft); background: var(--honey-soft);
}
.vup-name { font-weight: 800; font-size: 16px; line-height: 1.3; }
.vup-sign {
  color: var(--ink-faint); font-size: 12.5px; margin-top: 2px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.chip-row { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  font-size: 12px; padding: 3px 10px; border-radius: 999px;
  background: var(--honey-soft); color: var(--honey-deep); font-weight: 600;
}
.chip.plain { background: var(--bg-soft); color: var(--ink-soft); }
.chip.green { background: var(--green-soft); color: var(--green); }
.chip.blue { background: var(--blue-soft); color: var(--blue); }
.chip.amber { background: var(--amber-soft); color: #a36a00; }
.chip.red { background: var(--red-soft); color: var(--red); }
.vup-card-foot {
  margin-top: auto; padding-top: 10px; border-top: 1px dashed var(--line);
  display: flex; justify-content: space-between; color: var(--ink-faint); font-size: 12.5px;
}
.badge-pick {
  position: absolute; top: 10px; right: 10px; font-size: 11px;
  background: var(--honey); color: #fff; padding: 2px 8px; border-radius: 999px; font-weight: 700;
}

/* ---------- 首页 hero ---------- */

.hero { text-align: center; padding: 46px 10px 10px; }
.hero h1 { font-size: clamp(26px, 4.5vw, 38px); margin: 0 0 10px; letter-spacing: 1px; }
.hero h1 .hl { color: var(--honey-deep); }
.hero p { color: var(--ink-soft); margin: 0 auto 24px; max-width: 560px; font-size: 15px; }
.hero-search { display: flex; gap: 10px; max-width: 520px; margin: 0 auto; }
.hero-search input { flex: 1; padding: 13px 18px; border-radius: 999px; }

.stats-strip {
  display: flex; justify-content: center; gap: 26px; flex-wrap: wrap;
  margin-top: 26px; color: var(--ink-soft); font-size: 13px;
}
.stats-strip b { color: var(--honey-deep); font-size: 17px; margin-right: 3px; }

/* ---------- 详情页 ---------- */

.profile-head { display: flex; gap: 20px; align-items: flex-start; flex-wrap: wrap; }
.profile-avatar {
  width: 108px; height: 108px; border-radius: 50%; object-fit: cover; flex: none;
  border: 3px solid var(--honey-soft); background: var(--honey-soft);
  box-shadow: var(--shadow);
}
.profile-main { flex: 1; min-width: 240px; }
.profile-name-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.profile-name { font-size: 24px; font-weight: 800; margin: 0; }
.profile-meta { color: var(--ink-faint); font-size: 13px; margin-top: 4px; }
.profile-sign { color: var(--ink-soft); font-size: 14px; margin-top: 8px; }
.profile-intro { white-space: pre-wrap; color: var(--ink); font-size: 15px; margin-top: 12px; }
.profile-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }

.info-box {
  background: var(--bg-soft); border: 1px dashed var(--line);
  border-radius: 12px; padding: 14px 16px; margin-top: 14px; font-size: 14px;
}
.info-box b { color: var(--honey-deep); }

/* ---------- 评论 ---------- */

.comment-item { display: flex; gap: 12px; padding: 14px 0; border-top: 1px solid var(--line); }
.comment-item:first-child { border-top: none; }
.comment-avatar {
  width: 38px; height: 38px; border-radius: 50%; flex: none;
  background: var(--honey-soft); color: var(--honey-deep);
  display: flex; align-items: center; justify-content: center; font-weight: 800;
}
.comment-body { flex: 1; min-width: 0; }
.comment-meta { font-size: 12.5px; color: var(--ink-faint); display: flex; gap: 10px; align-items: center; }
.comment-meta .cname { color: var(--ink-soft); font-weight: 700; font-size: 13.5px; }
.comment-content { margin-top: 3px; white-space: pre-wrap; word-break: break-word; }
.comment-del { background: none; border: none; color: var(--ink-faint); cursor: pointer; font-size: 12px; padding: 0; }
.comment-del:hover { color: var(--red); }

/* ---------- 列表行（我的 / 管理） ---------- */

.row-list { display: flex; flex-direction: column; gap: 12px; }
.row-item {
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  padding: 16px 18px; box-shadow: var(--shadow);
}
.row-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.row-title { font-weight: 700; }
.row-time { color: var(--ink-faint); font-size: 12.5px; margin-left: auto; }
.row-body { color: var(--ink-soft); font-size: 14px; margin-top: 8px; white-space: pre-wrap; word-break: break-word; }
.diff-block {
  background: var(--bg-soft); border-radius: 10px; padding: 10px 12px; margin-top: 8px; font-size: 13px;
}
.diff-line { display: flex; gap: 8px; padding: 3px 0; }
.diff-line .k { color: var(--ink-faint); flex: none; width: 84px; }
.diff-line .old { color: var(--red); text-decoration: line-through; word-break: break-all; }
.diff-line .new { color: var(--green); word-break: break-all; }
.row-actions { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; align-items: center; }

/* ---------- 提交页步骤 ---------- */

.steps { display: flex; gap: 8px; margin-bottom: 20px; flex-wrap: wrap; }
.step {
  padding: 7px 16px; border-radius: 999px; font-size: 13.5px; font-weight: 600;
  background: var(--bg-soft); color: var(--ink-faint);
}
.step.on { background: var(--honey-soft); color: var(--honey-deep); }
.step.done { background: var(--green-soft); color: var(--green); }

.fetch-result { border-left: 4px solid var(--honey); }
.fetch-result.fail { border-left-color: var(--red); background: var(--red-soft); }

.preview-card { display: flex; gap: 14px; align-items: center; }
.preview-card img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; border: 2px solid var(--honey-soft); }

.notice {
  background: var(--blue-soft); color: #33608c; border-radius: 12px;
  padding: 12px 16px; font-size: 13.5px; margin-bottom: 16px;
}
.notice.amber { background: var(--amber-soft); color: #8a5a00; }
.notice.green { background: var(--green-soft); color: var(--green); }

/* ---------- 提示气泡 ---------- */

.toast-wrap { position: fixed; bottom: 28px; left: 50%; transform: translateX(-50%); z-index: 99; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.toast {
  background: var(--ink); color: #fff; padding: 10px 22px; border-radius: 999px;
  font-size: 14px; box-shadow: var(--shadow-lift); animation: toast-in 0.25s ease;
  max-width: 86vw;
}
.toast.err { background: #a33f2e; }
.toast.ok { background: var(--green); }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- 空状态 / loading ---------- */

.empty {
  text-align: center; color: var(--ink-faint); padding: 40px 16px;
  border: 1.5px dashed var(--line); border-radius: var(--radius); font-size: 14px;
}
.spinner {
  width: 26px; height: 26px; border-radius: 50%; margin: 0 auto;
  border: 3px solid var(--honey-soft); border-top-color: var(--honey);
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- 认证页 ---------- */

.auth-card { max-width: 380px; margin: 60px auto; }

/* ---------- 出道动态行 ---------- */

.debut-item {
  display: flex; align-items: center; gap: 14px; padding: 12px 16px;
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
}
.debut-date { font-weight: 800; color: var(--honey-deep); font-variant-numeric: tabular-nums; flex: none; }
.debut-name { font-weight: 700; }
.debut-note { color: var(--ink-faint); font-size: 12.5px; margin-left: auto; text-align: right; }

/* ---------- 页脚 ---------- */

.site-footer {
  border-top: 1px solid var(--line); color: var(--ink-faint);
  text-align: center; padding: 26px 16px; font-size: 13px; background: rgba(255, 253, 247, 0.7);
}

/* ---------- 响应式 ---------- */

@media (max-width: 640px) {
  .header-inner { padding: 10px 14px; gap: 10px; flex-wrap: wrap; }
  .logo { font-size: 17px; }
  .header-actions { margin-left: auto; }
  .main-nav { order: 3; width: 100%; flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .main-nav::-webkit-scrollbar { display: none; }
  .main-nav a { white-space: nowrap; padding: 6px 10px; font-size: 14px; }
  .container { padding: 16px 14px 60px; }
  .vup-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
  .hero { padding-top: 28px; }
  .profile-avatar { width: 84px; height: 84px; }
  .card { padding: 16px; }
  .row-time { margin-left: 0; width: 100%; }
}

/* ---------- B 站实时搜索结果 ---------- */

.bili-row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.bili-row .bili-avatar { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; border: 2px solid var(--honey-soft); background: var(--honey-soft); flex: none; }
.bili-row .row-time { margin-left: 0; }

/* ---------- 直播中标记 ---------- */

.live-dot { color: var(--red); font-weight: 800; }
