/* ============================================================
 * visitor.css — 访客端四页 + 登录注册页布局。
 * 视觉参数迁移自 ../novel_rank_proto/（剥离手机壳 / 假状态栏）。
 * ============================================================ */

/* ---------- index：头部导航 ---------- */
.nav { padding: 14px 20px 10px; display: flex; align-items: flex-end; justify-content: space-between; }
.nav h1 {
  font-family: var(--serif);
  font-size: 25px;
  color: var(--ink);
  letter-spacing: 1px;
  font-weight: 700;
}
.nav .sub { font-size: 11px; color: var(--muted); margin-top: 3px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.nav .seal {
  background: var(--red);
  color: #fff;
  font-family: var(--serif);
  font-size: 13px;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1.1;
  text-align: center;
  flex: none;
}

/* 搜索框 */
.search-wrap { padding: 0 16px 10px; }
.search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--card);
  border: 1.5px solid var(--input-border);
  border-radius: 12px;
  padding: 10px 13px;
}
.search-box .ic { font-size: 14px; opacity: .7; }
.search-box input { flex: 1; border: none; outline: none; background: transparent; font-size: 14px; }
.search-box input::placeholder { color: var(--placeholder); }

/* 深色头部卡 */
.head {
  margin: 4px 16px 10px;
  background: var(--dark-grad);
  border-radius: 16px;
  color: #EFE6D2;
  padding: 14px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.head .t { font-family: var(--serif); font-size: 15px; }
.head .s { font-size: 11px; color: #C9BBA0; margin-top: 4px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.head .n { font-family: var(--serif); font-size: 26px; color: var(--gold-num); }
.head .s2 { text-align: right; }

/* 列表 */
.list { padding: 2px 16px 0; }
.row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 2px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
}
.row:active { background: rgba(239, 231, 216, .45); }
.row .info { flex: 1; min-width: 0; }
.row .title {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}
.row .title .tt { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row .desc {
  font-size: 12px;
  color: var(--muted);
  margin-top: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.row .score { text-align: right; flex: none; }
.row .score .v { font-family: var(--serif); font-size: 19px; color: var(--red); }
.row .score .ops { font-size: 11px; color: var(--muted); margin-top: 2px; }

/* ---------- detail ---------- */
.nav-sub { padding: 14px 20px 8px; display: flex; align-items: center; gap: 12px; font-size: 17px; font-weight: 600; color: var(--ink); }
.nav-sub .back { color: var(--muted-2); font-size: 22px; line-height: 1; padding: 2px 8px 2px 0; cursor: pointer; user-select: none; }
.hero {
  margin: 6px 16px 0;
  border-radius: 18px;
  padding: 22px 20px;
  color: #F3EDDC;
  position: relative;
  overflow: hidden;
}
.hero .rk {
  position: absolute;
  right: 16px;
  top: 14px;
  background: var(--gold-num);
  color: var(--gold-chip-text);
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 10px;
}
.hero h2 { font-family: var(--serif); font-size: 30px; letter-spacing: 2px; font-weight: 700; padding-right: 70px; }
.hero .au { font-size: 12.5px; color: #D8CFB4; margin-top: 6px; }
.hero .st {
  display: inline-block;
  margin-top: 12px;
  font-size: 11px;
  background: rgba(255, 255, 255, .16);
  padding: 3px 10px;
  border-radius: 9px;
}

/* 分数构成卡（原型 scorebar） */
.scorebar {
  margin: 14px 16px 0;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: space-around;
  text-align: center;
}
.scorebar .big { font-family: var(--serif); font-size: 30px; color: var(--red); }
.scorebar .lab { font-size: 11px; color: var(--muted); margin-top: 2px; }
.scorebar .num { font-size: 17px; font-weight: 600; color: var(--ink); }
.scorebar .num.g { color: var(--ok); }
.scorebar .num.r2 { color: #B0562E; }

/* 投票大按钮 */
.vote { margin: 12px 16px 0; display: flex; gap: 12px; }
.vote button {
  flex: 1;
  border-radius: 14px;
  padding: 14px 0;
  font-size: 16px;
  font-weight: 600;
  transition: all .15s;
}
.vote .like { background: var(--red); color: #fff; box-shadow: 0 8px 18px rgba(178, 58, 46, .35); }
.vote .dis { background: var(--card); color: #6B5B45; border: 1.5px solid var(--input-border); }
.vote .like.on { outline: 2.5px solid #7E241B; outline-offset: -4px; }
.vote .like.on::after { content: ' ✓'; }
.vote .dis.on { border-color: var(--red); color: var(--red); background: var(--no-bg); }

/* 留言入口 */
.msg-entry { margin: 12px 16px 0; }
.msg-entry .btn-msg {
  width: 100%;
  background: var(--card);
  border: 1.5px dashed var(--input-border);
  border-radius: 14px;
  padding: 13px 0;
  font-size: 14px;
  color: #6B5B45;
}
.msg-compose { margin-top: 12px; }
.bubble-compose { display: flex; gap: 8px; margin-top: 10px; }
.bubble-compose textarea {
  flex: 1;
  background: var(--input-bg);
  border: 1.5px solid var(--input-border);
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 14px;
  height: 74px;
  resize: none;
  outline: none;
}
.bubble-compose .send {
  align-self: flex-end;
  background: var(--red);
  color: #fff;
  border-radius: 12px;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 600;
}

/* ---------- submit ---------- */
.form-card {
  margin: 10px 16px 0;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px;
}
.tip { margin: 14px 20px 0; font-size: 12px; color: var(--muted); line-height: 1.7; text-align: center; }
.ok-box {
  margin: 16px 16px 0;
  background: #EFF6EF;
  border: 1px solid #CFE3CF;
  color: var(--ok);
  border-radius: 14px;
  padding: 13px 16px;
  font-size: 13.5px;
  display: flex;
  gap: 9px;
  align-items: center;
  line-height: 1.6;
}
.ok-box a { color: var(--ok); font-weight: 700; text-decoration: underline; }

/* ---------- mine ---------- */
.profile {
  margin: 14px 16px 0;
  background: var(--dark-grad);
  border-radius: 18px;
  padding: 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  color: #EFE6D2;
}
.avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(140deg, var(--gold-num), var(--gold));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex: none;
}
.profile .n { font-size: 17px; font-weight: 600; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.profile .s { font-size: 12px; color: #C9BBA0; margin-top: 3px; }
.profile .ops-row { display: flex; gap: 8px; margin-top: 10px; }
.profile .mini-btn {
  font-size: 11.5px;
  color: #E8DCC2;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 9px;
  padding: 5px 11px;
}
.sec {
  margin: 18px 20px 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--muted-2);
  letter-spacing: 2px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.sec .more { font-size: 11.5px; color: var(--placeholder); font-weight: 400; letter-spacing: 0; }
.item {
  margin: 0 16px 10px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px 16px;
}
.item .t { font-size: 15.5px; font-weight: 600; color: var(--ink); display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.item .d { font-size: 12.5px; color: var(--muted); margin-top: 5px; line-height: 1.55; }
.item .r {
  font-size: 12.5px;
  color: #6B5B45;
  margin-top: 7px;
  background: var(--input-bg);
  border-radius: 9px;
  padding: 8px 10px;
  line-height: 1.55;
}
.item .row-ops { display: flex; gap: 8px; margin-top: 9px; }
.item .row-ops button {
  font-size: 12px;
  border: 1px solid var(--input-border);
  background: var(--input-bg);
  color: #6B5B45;
  border-radius: 9px;
  padding: 5px 12px;
}
.item .row-ops button.danger { color: var(--red); border-color: rgba(178, 58, 46, .4); }
.msg-item { display: flex; gap: 11px; cursor: pointer; }
.msg-item .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--red); margin-top: 7px; flex: none; }
.msg-item .dot.read { background: #D8CFBB; }
.foot-actions { margin: 20px 16px 0; display: flex; flex-direction: column; gap: 10px; }
.ghost-btn {
  background: var(--card);
  border: 1px solid var(--input-border);
  color: #6B5B45;
  border-radius: 14px;
  padding: 12px 0;
  font-size: 14px;
  text-align: center;
  width: 100%;
}
.reset-demo {
  text-align: center;
  font-size: 11px;
  color: var(--placeholder);
  padding: 14px 0 4px;
  cursor: pointer;
  text-decoration: underline;
}

/* 未登录引导 */
.guide-card {
  margin: 26px 16px 0;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 30px 22px;
  text-align: center;
}
.guide-card .big { font-size: 40px; }
.guide-card .t { font-family: var(--serif); font-size: 18px; font-weight: 700; margin-top: 12px; color: var(--ink); }
.guide-card .d { font-size: 13px; color: var(--muted); margin-top: 8px; line-height: 1.8; }
.guide-card .btns { display: flex; gap: 10px; margin-top: 20px; }
.guide-card .btns .btn { flex: 1; box-shadow: none; padding: 12px 0; font-size: 15px; }

/* ---------- 登录 / 注册（独立页，居中卡片） ---------- */
.auth-body { background: var(--bg); }
.auth-wrap {
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  padding: 34px 20px 40px;
  display: flex;
  flex-direction: column;
}
.auth-brand { text-align: center; margin-bottom: 22px; }
.auth-brand .seal-lg {
  background: var(--red);
  color: #fff;
  font-family: var(--serif);
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
  font-size: 15px;
  line-height: 1.2;
  text-align: center;
}
.auth-brand h1 { font-family: var(--serif); font-size: 22px; color: var(--ink); letter-spacing: 1px; }
.auth-brand .sub { font-size: 12px; color: var(--muted); margin-top: 5px; }
.auth-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 22px 20px;
}
.auth-card .btn { margin-top: 20px; }
.auth-alt { text-align: center; font-size: 13px; color: var(--muted); margin-top: 16px; line-height: 1.8; }
.auth-alt a { color: var(--red); font-weight: 600; }
.auth-err {
  margin-top: 12px;
  background: var(--no-bg);
  color: var(--no);
  border-radius: 10px;
  padding: 9px 12px;
  font-size: 12.5px;
  line-height: 1.6;
}
.auth-foot { text-align: center; margin-top: auto; padding-top: 26px; }
